:root {
  color-scheme: dark;
  --bg: #0f1113;
  --panel: #171a1d;
  --panel-2: #202429;
  --line: #2e353a;
  --text: #f2f0e9;
  --muted: #a8aca7;
  --soft: #737a78;
  --red: #c7433d;
  --amber: #c99a43;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
  color: var(--text);
  background: var(--bg);
}

a {
  color: inherit;
  text-decoration: none;
}

.companion-shell {
  min-height: 100vh;
}

.companion-top {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  padding: 16px clamp(16px, 4vw, 42px);
  border-bottom: 1px solid var(--line);
  background: rgba(15, 17, 19, 0.95);
  backdrop-filter: blur(10px);
}

.companion-brand {
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--amber);
}

.companion-top nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
}

.companion-top nav a {
  padding: 8px 10px;
  color: var(--muted);
  border-bottom: 2px solid transparent;
}

.companion-top nav a:hover {
  color: var(--text);
  border-color: var(--red);
}

.companion-main {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 34px 0 58px;
}

.hero-panel,
.panel {
  border: 1px solid var(--line);
  background: var(--panel);
  padding: clamp(20px, 4vw, 34px);
  margin-bottom: 16px;
}

.hero-panel {
  border-left: 3px solid var(--red);
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--amber);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

h1,
h2 {
  margin: 0;
  line-height: 1.08;
}

h1 {
  font-size: clamp(34px, 6vw, 72px);
}

h2 {
  font-size: 20px;
}

.lead,
.muted {
  color: var(--muted);
}

.metric-grid,
.split,
.target-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
  margin-bottom: 16px;
}

.metric-grid article,
.target-card,
.leg-card {
  border: 1px solid var(--line);
  background: var(--panel-2);
  padding: 18px;
}

.metric-grid span,
.status-row span {
  display: block;
  color: var(--soft);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.metric-grid strong {
  display: block;
  margin-top: 8px;
  font-size: 28px;
}

.leg-row,
.hint-row,
.status-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

.leg-row:last-child,
.hint-row:last-child,
.status-row:last-child {
  border-bottom: 0;
}

.leg-row span,
.hint-row span {
  color: var(--muted);
  text-align: right;
}

.timeline {
  display: grid;
  gap: 12px;
}

.timeline-day {
  border-left: 3px solid var(--amber);
  background: #131619;
  padding: 18px;
}

.access-form {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 18px 0;
}

input,
button,
.button {
  min-height: 44px;
  border: 1px solid var(--line);
  background: #121517;
  color: var(--text);
  padding: 0 14px;
  font: inherit;
}

button,
.button {
  display: inline-flex;
  align-items: center;
  cursor: pointer;
  background: #2a1717;
  border-color: rgba(199, 67, 61, 0.7);
  font-weight: 800;
}

.companion-footer {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 26px 0 42px;
  color: var(--soft);
  border-top: 1px solid var(--line);
}

@media (max-width: 760px) {
  .companion-top {
    align-items: flex-start;
    flex-direction: column;
  }

  .companion-top nav {
    justify-content: flex-start;
  }

  .leg-row,
  .hint-row,
  .status-row {
    display: grid;
  }

  .leg-row span,
  .hint-row span {
    text-align: left;
  }
}
