:root {
  --navy: #0b1220;
  --navy-2: #121c2e;
  --navy-3: #1a2740;
  --ink: #f4efe6;
  --muted: rgba(244, 239, 230, 0.62);
  --faint: rgba(244, 239, 230, 0.35);
  --gold: #c4a484;
  --gold-bright: #e0c4a8;
  --gold-dim: rgba(196, 164, 132, 0.18);
  --line: rgba(196, 164, 132, 0.22);
  --good: #8fbf9f;
  --watch: #d4a574;
  --danger: #c98989;
  --radius: 18px;
  --font-display: "Cormorant Garamond", Georgia, serif;
  --font-ui: "Outfit", system-ui, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  font-family: var(--font-ui);
  color: var(--ink);
  background:
    radial-gradient(ellipse 80% 50% at 20% -10%, rgba(196, 164, 132, 0.14), transparent 55%),
    radial-gradient(ellipse 60% 40% at 90% 100%, rgba(26, 39, 64, 0.9), transparent 50%),
    linear-gradient(160deg, #070b14 0%, #0e1624 45%, #151f33 100%);
  background-attachment: fixed;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.07;
  background-image: url("data:image/svg+xml,%3Csvg width='48' height='48' viewBox='0 0 48 48' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M24 2 L28 24 L24 46 L20 24 Z M2 24 L24 20 L46 24 L24 28 Z' fill='none' stroke='%23c4a484' stroke-width='0.6'/%3E%3C/svg%3E");
}

.stage {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 2.5rem;
  align-items: start;
  max-width: 1200px;
  margin: 0 auto;
  padding: 2.5rem 1.5rem 4rem;
}

.stage-header {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.75rem;
  margin-bottom: 0.5rem;
}

.stage-mark {
  font-family: var(--font-display);
  font-size: 1.35rem;
  letter-spacing: 0.28em;
  color: var(--gold-bright);
  font-weight: 600;
}

.stage-sub {
  display: block;
  margin-top: 0.35rem;
  font-size: 0.8rem;
  color: var(--muted);
  letter-spacing: 0.04em;
  font-weight: 300;
}

.stage-note {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 300;
}

.device {
  grid-column: 2;
  width: 390px;
  height: 800px;
  border-radius: 42px;
  background: var(--navy);
  border: 1px solid rgba(196, 164, 132, 0.35);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.04) inset,
    0 40px 80px rgba(0, 0, 0, 0.55),
    0 0 60px rgba(196, 164, 132, 0.08);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  animation: device-in 0.9s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes device-in {
  from {
    opacity: 0;
    transform: translateY(24px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.device-notch {
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  width: 120px;
  height: 28px;
  background: #05080f;
  border-radius: 20px;
  z-index: 5;
}

.status-bar {
  display: flex;
  justify-content: space-between;
  padding: 16px 28px 0;
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  color: var(--muted);
  position: relative;
  z-index: 2;
}

.app {
  flex: 1;
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(196, 164, 132, 0.06) 0%, transparent 28%),
    var(--navy);
}

.screen {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(12px);
  transition: opacity 0.35s ease, transform 0.45s cubic-bezier(0.22, 1, 0.36, 1), visibility 0.35s;
  display: flex;
  flex-direction: column;
  z-index: 0;
}

.screen.is-active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: none;
  z-index: 1;
}

.screen-scroll {
  flex: 1;
  overflow-y: auto;
  padding: 1.1rem 1.25rem 5.5rem;
  scrollbar-width: none;
}

.screen-scroll::-webkit-scrollbar {
  display: none;
}

.top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1rem;
  animation: rise 0.55s ease both;
}

.top.compact {
  margin-bottom: 0.85rem;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.eyebrow {
  margin: 0;
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 400;
}

.greeting {
  margin: 0.15rem 0 0;
  font-family: var(--font-display);
  font-size: 2.35rem;
  font-weight: 400;
  letter-spacing: 0.02em;
  line-height: 1;
}

.avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--gold);
  background: var(--gold-dim);
  color: var(--gold-bright);
  font-family: var(--font-display);
  font-size: 1.1rem;
  cursor: pointer;
}

.avatar.large {
  width: 56px;
  height: 56px;
  font-size: 1.5rem;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.tier-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.35rem 0.75rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold-bright);
  margin-bottom: 1.15rem;
  animation: rise 0.55s ease 0.05s both;
}

.tier-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 10px var(--gold);
  animation: pulse 2.4s ease-in-out infinite;
}

@keyframes pulse {
  0%,
  100% {
    opacity: 0.6;
  }
  50% {
    opacity: 1;
  }
}

.hero-panel,
.programme,
.result-hero {
  position: relative;
  padding: 1.35rem 1.25rem 1.25rem;
  border-radius: var(--radius);
  background:
    linear-gradient(145deg, rgba(196, 164, 132, 0.16), rgba(18, 28, 46, 0.4) 45%, rgba(11, 18, 32, 0.85)),
    var(--navy-2);
  border: 1px solid var(--line);
  overflow: hidden;
  animation: rise 0.6s ease 0.1s both;
}

.hero-panel::after,
.programme::after,
.result-hero::after {
  content: "";
  position: absolute;
  right: -20%;
  top: -40%;
  width: 70%;
  height: 120%;
  background: radial-gradient(circle, rgba(224, 196, 168, 0.12), transparent 65%);
  pointer-events: none;
}

.hero-label,
.programme-phase {
  margin: 0;
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  position: relative;
}

.hero-title,
.programme h2,
.result-hero h2 {
  margin: 0.45rem 0 0.55rem;
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 400;
  line-height: 1.05;
  position: relative;
}

.hero-copy,
.programme p,
.result-hero p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 300;
  line-height: 1.45;
  max-width: 28ch;
  position: relative;
}

.hero-metrics,
.tech-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  margin-top: 1.25rem;
  position: relative;
}

.tech-row {
  margin-top: 0;
  padding: 1rem 0.25rem;
}

.tech-row.triple {
  margin: 1rem 0;
}

.metric-value {
  display: block;
  font-family: var(--font-display);
  font-size: 1.85rem;
  color: var(--gold-bright);
  line-height: 1;
}

.metric-value.sm {
  font-size: 1.45rem;
}

.metric-label {
  display: block;
  margin-top: 0.3rem;
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--faint);
}

.block {
  margin-top: 1.5rem;
  animation: rise 0.55s ease 0.18s both;
}

.block-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 0.75rem;
}

.block-head h3 {
  margin: 0;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--muted);
}

.text-link {
  background: none;
  border: none;
  color: var(--gold);
  font: inherit;
  font-size: 0.8rem;
  cursor: pointer;
  padding: 0;
}

.booking-row {
  width: 100%;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 0.9rem;
  align-items: center;
  text-align: left;
  padding: 1rem;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(18, 28, 46, 0.65);
  color: inherit;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.booking-row:hover {
  border-color: rgba(196, 164, 132, 0.45);
  background: rgba(26, 39, 64, 0.8);
}

.booking-time {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  min-width: 3.2rem;
}

.booking-time span:first-child {
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: var(--gold-bright);
}

.booking-time span:last-child,
.booking-body span,
.list-main span,
.session span {
  font-size: 0.75rem;
  color: var(--muted);
  font-weight: 300;
}

.booking-body {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.booking-body strong,
.list-main strong,
.session strong,
.action-tile strong {
  font-weight: 500;
  font-size: 0.95rem;
}

.chevron {
  color: var(--gold);
  font-size: 1.4rem;
  line-height: 1;
}

.action-rail {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.action-tile {
  text-align: left;
  padding: 1rem 1.05rem;
  border-radius: 14px;
  border: 1px solid transparent;
  border-bottom-color: var(--line);
  background: linear-gradient(90deg, rgba(196, 164, 132, 0.08), transparent 55%);
  color: inherit;
  cursor: pointer;
  display: grid;
  gap: 0.2rem;
  transition: background 0.25s ease, border-color 0.25s ease;
}

.action-tile:hover {
  border-color: var(--line);
  background: rgba(196, 164, 132, 0.1);
}

.action-kicker {
  font-size: 0.65rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
}

.action-tile span:last-child {
  font-size: 0.78rem;
  color: var(--muted);
  font-weight: 300;
}

.soft-footer {
  text-align: center;
  color: var(--faint);
  font-size: 0.75rem;
  font-weight: 300;
  letter-spacing: 0.04em;
}

.soft-footer p {
  margin: 0.5rem 0 0;
}

/* Book */
.segmented {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.35rem;
  padding: 0.3rem;
  border-radius: 12px;
  background: rgba(18, 28, 46, 0.9);
  border: 1px solid var(--line);
  margin-bottom: 1rem;
}

.seg {
  border: none;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 0.82rem;
  padding: 0.55rem;
  border-radius: 9px;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

.seg.is-on {
  background: var(--gold-dim);
  color: var(--gold-bright);
}

.day-strip {
  display: flex;
  gap: 0.45rem;
  margin-bottom: 1.1rem;
  overflow-x: auto;
}

.day {
  flex: 1;
  min-width: 3.2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  padding: 0.55rem 0.35rem;
  border-radius: 12px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font: inherit;
}

.day span {
  font-size: 0.65rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.day strong {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 400;
}

.day.is-on {
  border-color: var(--line);
  background: var(--gold-dim);
  color: var(--gold-bright);
}

.list {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.list.is-hidden,
.is-hidden {
  display: none !important;
}

.list-item {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 0.85rem;
  align-items: center;
  padding: 0.95rem 0.85rem;
  border-bottom: 1px solid rgba(196, 164, 132, 0.12);
}

.list-item.featured {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(196, 164, 132, 0.07);
}

.list-meta {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  min-width: 3.4rem;
}

.list-meta span:first-child {
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--gold-bright);
}

.list-meta span:last-child {
  font-size: 0.68rem;
  color: var(--faint);
}

.list-main {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.pill {
  border: 1px solid var(--line);
  background: transparent;
  color: var(--gold-bright);
  border-radius: 999px;
  padding: 0.4rem 0.75rem;
  font: inherit;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
}

.pill.solid {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--navy);
}

.integration-note {
  margin: 1.25rem 0 0;
  font-size: 0.72rem;
  color: var(--faint);
  letter-spacing: 0.04em;
  font-weight: 300;
}

.integration-note.center {
  text-align: center;
}

/* Train */
.programme h2 {
  font-size: 1.85rem;
}

.progress {
  margin-top: 1.15rem;
  height: 3px;
  background: rgba(244, 239, 230, 0.1);
  border-radius: 99px;
  overflow: hidden;
  position: relative;
}

.progress-bar {
  height: 100%;
  width: var(--p);
  background: linear-gradient(90deg, var(--gold), var(--gold-bright));
  border-radius: inherit;
  animation: fill-bar 1.1s cubic-bezier(0.22, 1, 0.36, 1) 0.3s both;
  transform-origin: left;
}

@keyframes fill-bar {
  from {
    transform: scaleX(0);
  }
  to {
    transform: scaleX(1);
  }
}

.progress-meta {
  display: flex;
  justify-content: space-between;
  margin-top: 0.45rem;
  font-size: 0.72rem;
  color: var(--muted);
  position: relative;
}

.session-stack {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.session {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 0.85rem;
  align-items: center;
  padding: 0.85rem 0;
  border-bottom: 1px solid rgba(196, 164, 132, 0.1);
}

.session > div {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.session-check {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 0.75rem;
  border: 1px solid var(--line);
  color: var(--gold);
}

.session.done .session-check {
  background: var(--gold-dim);
}

.session.next .session-check {
  border-color: var(--gold);
  color: var(--gold-bright);
}

/* Insights */
.insight-tabs {
  display: flex;
  gap: 0.35rem;
  overflow-x: auto;
  margin-bottom: 1rem;
  padding-bottom: 0.15rem;
}

.insight-tab {
  flex-shrink: 0;
  border: 1px solid transparent;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 0.8rem;
  padding: 0.45rem 0.75rem;
  border-radius: 999px;
  cursor: pointer;
}

.insight-tab.is-on {
  border-color: var(--line);
  color: var(--gold-bright);
  background: var(--gold-dim);
}

.result-hero.compact h2 {
  font-size: 1.65rem;
}

.cta {
  margin-top: 1rem;
  position: relative;
  border: none;
  background: var(--gold);
  color: var(--navy);
  font: inherit;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.7rem 1rem;
  border-radius: 999px;
  cursor: pointer;
}

.marker-list {
  margin-top: 1.15rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.marker-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.45rem;
}

.marker-top strong {
  font-weight: 500;
  font-size: 0.92rem;
}

.tag {
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.2rem 0.45rem;
  border-radius: 999px;
}

.tag.good {
  color: var(--good);
  background: rgba(143, 191, 159, 0.12);
}

.tag.watch {
  color: var(--watch);
  background: rgba(212, 165, 116, 0.12);
}

.marker-track {
  height: 3px;
  background: rgba(244, 239, 230, 0.1);
  border-radius: 99px;
  position: relative;
}

.marker-track i {
  position: absolute;
  top: 50%;
  left: var(--x);
  width: 9px;
  height: 9px;
  margin: -4.5px 0 0 -4.5px;
  border-radius: 50%;
  background: var(--good);
  box-shadow: 0 0 0 3px rgba(143, 191, 159, 0.2);
}

.marker-track i.watch {
  background: var(--watch);
  box-shadow: 0 0 0 3px rgba(212, 165, 116, 0.2);
}

.marker-val {
  display: block;
  margin-top: 0.35rem;
  font-size: 0.75rem;
  color: var(--muted);
}

.note {
  margin: 1.35rem 0 0;
  padding: 1rem 0 0;
  border-top: 1px solid var(--line);
}

.note p {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-style: italic;
  line-height: 1.35;
  color: var(--ink);
}

.note cite {
  display: block;
  margin-top: 0.65rem;
  font-style: normal;
  font-size: 0.75rem;
  color: var(--gold);
  letter-spacing: 0.04em;
}

.spark {
  display: flex;
  align-items: flex-end;
  gap: 0.45rem;
  height: 100px;
  margin: 1.25rem 0 0.5rem;
  padding: 0 0.25rem;
}

.spark span {
  flex: 1;
  height: var(--h);
  border-radius: 6px 6px 2px 2px;
  background: rgba(196, 164, 132, 0.25);
  animation: rise 0.5s ease both;
}

.spark span.today {
  background: linear-gradient(180deg, var(--gold-bright), var(--gold));
}

.fuel-list {
  list-style: none;
  margin: 1rem 0 0;
  padding: 0;
}

.fuel-list li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem 0;
  border-bottom: 1px solid rgba(196, 164, 132, 0.12);
  font-size: 0.9rem;
}

.fuel-list span {
  color: var(--muted);
  font-weight: 300;
  text-align: right;
}

/* Profile */
.profile-card {
  display: flex;
  gap: 1rem;
  align-items: center;
  margin-bottom: 1.5rem;
}

.profile-card h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.65rem;
  font-weight: 400;
}

.profile-card p {
  margin: 0.25rem 0 0;
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 300;
}

.menu {
  display: flex;
  flex-direction: column;
}

.menu button {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  width: 100%;
  padding: 1.05rem 0;
  border: none;
  border-bottom: 1px solid rgba(196, 164, 132, 0.12);
  background: none;
  color: inherit;
  font: inherit;
  font-size: 0.95rem;
  cursor: pointer;
  text-align: left;
}

.menu button span:last-child {
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 300;
}

.powered {
  margin: 2rem 0 0;
  text-align: center;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.05rem;
  color: var(--gold);
  letter-spacing: 0.04em;
}

/* Tab bar */
.tabbar {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0.15rem;
  padding: 0.55rem 0.4rem calc(0.65rem + env(safe-area-inset-bottom));
  background: linear-gradient(180deg, rgba(11, 18, 32, 0.72), rgba(7, 11, 20, 0.96));
  border-top: 1px solid var(--line);
  backdrop-filter: blur(12px);
  z-index: 4;
}

.tab {
  border: none;
  background: none;
  color: var(--faint);
  font: inherit;
  font-size: 0.62rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
  padding: 0.35rem;
  cursor: pointer;
  transition: color 0.2s ease;
}

.tab-icon {
  font-size: 1rem;
  line-height: 1;
  color: inherit;
}

.tab.is-on {
  color: var(--gold-bright);
}

/* Captions */
.captions {
  grid-column: 3;
  align-self: center;
  max-width: 280px;
  padding: 1.25rem 0;
  animation: rise 0.7s ease 0.25s both;
}

.captions h2 {
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--gold-bright);
}

.captions ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.captions li {
  font-size: 0.88rem;
  color: var(--muted);
  font-weight: 300;
  line-height: 1.4;
}

.captions strong {
  display: block;
  color: var(--ink);
  font-weight: 500;
  margin-bottom: 0.15rem;
}

.captions-foot {
  margin: 1.5rem 0 0;
  font-size: 0.78rem;
  color: var(--faint);
  line-height: 1.45;
}

@media (max-width: 980px) {
  .stage {
    grid-template-columns: 1fr;
    justify-items: center;
  }

  .stage-header,
  .captions {
    grid-column: 1;
    max-width: 390px;
    width: 100%;
  }

  .device {
    grid-column: 1;
  }

  .captions {
    order: 3;
  }
}

@media (max-width: 420px) {
  .device {
    width: 100%;
    height: 100dvh;
    border-radius: 0;
    border: none;
  }

  .stage {
    padding: 0;
  }

  .stage-header {
    display: none;
  }

  .captions {
    display: none;
  }
}
