  :root {
    --cream: #F7F2EA;
    --cream-deep: #EFE7D8;
    --surface: #FBF8F3;
    --surface-raised: #FFFFFF;
    --rose: #E8B4A0;
    --rose-soft: #F2D5C7;
    --rose-deep: #C98A75;
    --sage: #A8B5A0;
    --sage-soft: #D6DDD0;
    --sage-deep: #6B7A66;
    --gold: #B8924E;
    --gold-soft: #E5D2A8;
    --ink: #1F2937;
    --ink-soft: #2D3340;
    --char: #4A4F5B;
    --gray-warm: #5A5247;
    --gray-mid: #8B8478;
    --gray-soft: #B8B0A2;
    --border-soft: #EDE5D8;
    --border-mid: #DDD3C2;

    --serif: 'Fraunces', 'Cormorant Garamond', Georgia, serif;
    --sans: 'Geist', system-ui, -apple-system, sans-serif;
    --mono: 'Geist Mono', 'JetBrains Mono', monospace;

    --pad: 24px;
    --pad-lg: 32px;
    --radius: 16px;
    --radius-sm: 10px;
    --radius-pill: 999px;

    --ease: cubic-bezier(0.22, 1, 0.36, 1);
    --ease-soft: cubic-bezier(0.4, 0, 0.2, 1);
  }

  * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
  }

  html,
  body {
    height: 100%;
  }

  body {
    font-family: var(--sans);
    background: var(--cream);
    color: var(--ink-soft);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
    line-height: 1.5;
  }

  button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
    color: inherit;
  }

  input,
  textarea {
    font-family: inherit;
    outline: none;
    border: none;
    background: none;
    color: inherit;
  }

  .frame {
    width: 100%;
    max-width: 420px;
    min-height: 100vh;
    margin: 0 auto;
    position: relative;
    background: var(--cream);
    overflow: hidden;
    box-shadow: 0 0 0 1px var(--border-soft);
  }

  /* Desktop styles handled in the responsive layer at bottom of stylesheet */

  .screen {
    position: absolute;
    inset: 0;
    opacity: 0;
    pointer-events: none;
    visibility: hidden;
    display: none;
    overflow-y: auto;
    overflow-x: hidden;
    transition: opacity 420ms var(--ease);
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-y: contain;
  }

  .screen.active {
    opacity: 1;
    pointer-events: auto;
    visibility: visible;
    display: block;
  }

  .screen-inner {
    min-height: 100%;
    width: 100%;
    padding: 64px var(--pad) calc(var(--pad-lg) + env(safe-area-inset-bottom, 0px));
    display: flex;
    flex-direction: column;
  }

  .topbar {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 var(--pad);
    z-index: 10;
    background: linear-gradient(to bottom, var(--cream) 50%, transparent);
  }

  .topbar.dark {
    background: linear-gradient(to bottom, var(--ink) 50%, transparent);
  }

  .top-back {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: var(--gray-warm);
    transition: background 200ms var(--ease);
  }

  .topbar.dark .top-back {
    color: var(--gray-soft);
  }

  .top-back:hover {
    background: rgba(0, 0, 0, 0.04);
  }

  .top-back svg {
    width: 18px;
    height: 18px;
  }

  .top-progress {
    display: flex;
    gap: 4px;
    flex: 1;
    margin: 0 16px;
    align-items: center;
  }

  .top-progress .dot {
    flex: 1;
    height: 3px;
    border-radius: 999px;
    background: var(--border-mid);
    transition: background 300ms var(--ease);
  }

  .top-progress .dot.done {
    background: var(--rose-deep);
  }

  .top-progress .dot.active {
    background: var(--rose-deep);
  }

  h1.serif {
    font-family: var(--serif);
    font-weight: 400;
    letter-spacing: -0.02em;
    line-height: 1.1;
  }

  h2.serif {
    font-family: var(--serif);
    font-weight: 400;
    letter-spacing: -0.015em;
    line-height: 1.15;
  }

  .eyebrow {
    font-family: var(--mono);
    font-size: 11px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--gold);
    font-weight: 500;
  }

  .why {
    font-size: 13px;
    color: var(--gray-mid);
    margin-top: 12px;
    padding-left: 12px;
    border-left: 2px solid var(--rose-soft);
    font-style: italic;
  }

  .btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 18px 24px;
    border-radius: 14px;
    font-size: 16px;
    font-weight: 500;
    transition: all 220ms var(--ease);
    letter-spacing: -0.01em;
    min-height: 56px;
  }

  .btn-primary {
    background: var(--ink);
    color: var(--cream);
  }

  .btn-primary:hover {
    background: var(--ink-soft);
    transform: translateY(-1px);
  }

  .btn-primary:active {
    transform: translateY(0);
  }

  .btn-primary:disabled {
    background: var(--border-mid);
    color: var(--gray-mid);
    cursor: not-allowed;
    transform: none;
  }

  .btn-secondary {
    background: transparent;
    color: var(--gray-warm);
    font-size: 14px;
    padding: 12px;
    min-height: auto;
  }

  .btn-secondary:hover {
    color: var(--ink);
  }

  .btn-row {
    display: flex;
    gap: 12px;
  }

  .btn-row .btn {
    flex: 1;
  }

  .btn-ghost {
    background: var(--surface-raised);
    color: var(--ink);
    border: 1px solid var(--border-mid);
  }

  .btn-ghost:hover {
    border-color: var(--ink);
  }

  .btn-gold {
    background: var(--gold);
    color: var(--ink);
  }

  .btn-gold:hover {
    background: #A07F44;
  }

  .input-wrap {
    background: var(--surface-raised);
    border: 1px solid var(--border-mid);
    border-radius: 14px;
    padding: 16px 18px;
    transition: border-color 200ms var(--ease), box-shadow 200ms var(--ease);
  }

  .input-wrap:focus-within {
    border-color: var(--rose-deep);
    box-shadow: 0 0 0 4px rgba(201, 138, 117, 0.12);
  }

  .input-wrap input,
  .input-wrap textarea {
    width: 100%;
    font-size: 16px;
    color: var(--ink);
  }

  .input-wrap textarea {
    min-height: 100px;
    resize: none;
    line-height: 1.5;
  }

  .input-wrap input::placeholder,
  .input-wrap textarea::placeholder {
    color: var(--gray-soft);
  }

  .charcount {
    font-family: var(--mono);
    font-size: 11px;
    color: var(--gray-mid);
    margin-top: 8px;
    text-align: right;
  }

  .card {
    background: var(--surface-raised);
    border: 1px solid var(--border-soft);
    border-radius: var(--radius);
    padding: 18px;
    transition: all 220ms var(--ease);
    text-align: left;
    width: 100%;
  }

  .card:hover {
    border-color: var(--gray-soft);
    transform: translateY(-1px);
  }

  .card.selected {
    border-color: var(--rose-deep);
    background: linear-gradient(180deg, var(--surface-raised), #FBF1ED);
    box-shadow: 0 4px 20px -8px rgba(201, 138, 117, 0.3);
  }

  .card-stack {
    display: flex;
    flex-direction: column;
    gap: 10px;
  }

  .stack-bottom {
    margin-top: auto;
    padding-top: 28px;
  }

  .question-block {
    margin-bottom: 24px;
  }

  .question-block h2.serif {
    font-size: 28px;
    margin-bottom: 4px;
  }

  .question-block .eyebrow {
    margin-bottom: 14px;
    display: block;
  }

  /* ============ LANDING ============ */
  #landing {
    background: linear-gradient(180deg, var(--cream) 0%, var(--cream-deep) 50%, var(--rose-soft) 100%);
  }

  #landing .screen-inner {
    padding-top: 56px;
  }

  .landing-mark {
    font-family: var(--mono);
    font-size: 11px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--ink);
    margin-bottom: 56px;
    display: flex;
    align-items: center;
    gap: 8px;
  }

  .landing-mark::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--rose-deep);
    box-shadow: 0 0 0 4px rgba(201, 138, 117, 0.2);
  }

  #landing h1.serif {
    font-size: 44px;
    font-variation-settings: "SOFT" 30, "WONK" 0, "opsz" 144;
    color: var(--ink);
    margin-bottom: 20px;
  }

  #landing h1.serif em {
    font-style: italic;
    color: var(--rose-deep);
    font-variation-settings: "SOFT" 60, "WONK" 1, "opsz" 144;
  }

  #landing .lead {
    font-size: 16px;
    color: var(--gray-warm);
    margin-bottom: 36px;
    line-height: 1.55;
    max-width: 340px;
  }

  .signal-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 36px;
  }

  .signal {
    font-family: var(--mono);
    font-size: 10px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--gray-warm);
    padding: 6px 10px;
    background: rgba(255, 255, 255, 0.6);
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-pill);
  }

  /* ============ HOW IT WORKS ============ */
  .hiw-step {
    display: flex;
    gap: 14px;
    padding: 16px 0;
    border-bottom: 1px solid var(--border-soft);
  }

  .hiw-step:last-child {
    border-bottom: none;
  }

  .hiw-num {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--rose-soft);
    color: var(--rose-deep);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--serif);
    font-size: 16px;
    font-weight: 500;
  }

  .hiw-title {
    font-family: var(--serif);
    font-size: 17px;
    color: var(--ink);
    margin-bottom: 2px;
    font-variation-settings: "SOFT" 30, "opsz" 60;
  }

  .hiw-desc {
    font-size: 13px;
    color: var(--gray-warm);
    line-height: 1.5;
  }

  /* ============ Q0 PROFESSION ============ */
  .prof-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }

  .prof-card {
    padding: 14px 12px;
    text-align: center;
    font-size: 13px;
    color: var(--ink);
    line-height: 1.3;
    min-height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  /* ============ GOAL CATEGORY ============ */
  .goal-helpers {
    background: linear-gradient(180deg, var(--rose-soft), var(--surface-raised));
    border: 1px solid var(--rose-soft);
    border-radius: var(--radius);
    padding: 16px 18px;
    margin-top: 14px;
    margin-bottom: 8px;
  }

  .goal-helpers .lab {
    font-family: var(--mono);
    font-size: 10px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--rose-deep);
    margin-bottom: 8px;
  }

  .goal-helpers .ex {
    font-family: var(--serif);
    font-size: 14px;
    color: var(--ink);
    line-height: 1.5;
    font-style: italic;
    font-variation-settings: "SOFT" 40, "opsz" 50;
  }

  .goal-helpers .ex+.ex {
    margin-top: 4px;
  }

  /* ============ PROOF PROMPTS ============ */
  .prompt-card .text {
    font-family: var(--serif);
    font-size: 16px;
    line-height: 1.4;
    color: var(--ink);
    font-variation-settings: "SOFT" 50, "opsz" 50;
    font-weight: 350;
  }

  .prompt-card.write-own {
    text-align: center;
    padding: 14px;
    border-style: dashed;
    color: var(--gray-warm);
  }

  .prompt-card.write-own .text {
    font-family: var(--sans);
    font-size: 14px;
  }

  /* ============ AFFIRMATIONS ============ */
  .affirm-counter {
    font-family: var(--mono);
    font-size: 11px;
    letter-spacing: 0.1em;
    color: var(--gray-warm);
    margin-bottom: 14px;
    display: flex;
    justify-content: space-between;
  }

  .affirm-card {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px;
    cursor: pointer;
  }

  .affirm-check {
    width: 22px;
    height: 22px;
    border-radius: 7px;
    border: 1.5px solid var(--border-mid);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 1px;
    transition: all 200ms var(--ease);
  }

  .affirm-card.selected .affirm-check {
    background: var(--rose-deep);
    border-color: var(--rose-deep);
  }

  .affirm-card.selected .affirm-check svg {
    opacity: 1;
    transform: scale(1);
  }

  .affirm-check svg {
    width: 12px;
    height: 12px;
    color: white;
    opacity: 0;
    transform: scale(0.6);
    transition: all 180ms var(--ease);
  }

  .affirm-text {
    font-family: var(--serif);
    font-size: 15px;
    line-height: 1.4;
    color: var(--ink);
    font-variation-settings: "SOFT" 50, "opsz" 50;
    font-weight: 380;
  }

  /* ============ VOICE PICKER ============ */
  .voice-picker-row {
    display: flex;
    gap: 10px;
  }

  /* Hero "Your voice" card */
  .voice-pick-hero {
    width: 100%;
    background: linear-gradient(180deg, #FBF1ED, var(--surface-raised));
    border: 1.5px solid var(--rose-deep);
    border-radius: 18px;
    padding: 18px 18px 16px;
    margin-bottom: 16px;
    text-align: left;
    cursor: pointer;
    transition: all 220ms var(--ease);
    position: relative;
    box-shadow: 0 8px 24px -8px rgba(201, 138, 117, 0.35);
  }

  .voice-pick-hero:hover {
    transform: translateY(-1px);
    box-shadow: 0 12px 30px -8px rgba(201, 138, 117, 0.45);
  }

  .voice-pick-hero.selected {
    background: linear-gradient(180deg, var(--rose-soft), #FBF1ED);
    border-color: var(--rose-deep);
    box-shadow: 0 12px 30px -8px rgba(201, 138, 117, 0.5), 0 0 0 4px rgba(201, 138, 117, 0.12);
  }

  .vp-hero-tag {
    font-family: var(--mono);
    font-size: 10px;
    letter-spacing: 0.18em;
    color: var(--gold);
    text-transform: uppercase;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
  }

  .vp-hero-tag::before {
    content: '';
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--gold);
  }

  .vp-hero-row {
    display: flex;
    align-items: center;
    gap: 14px;
  }

  .vp-hero-glyph {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: var(--rose-deep);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 6px 16px -4px rgba(201, 138, 117, 0.5);
  }

  .vp-hero-text {
    flex: 1;
  }

  .vp-hero-name {
    font-family: var(--serif);
    font-size: 22px;
    color: var(--ink);
    font-variation-settings: "SOFT" 30, "opsz" 80;
    line-height: 1.1;
    margin-bottom: 4px;
  }

  .vp-hero-sub {
    font-size: 13px;
    color: var(--gray-warm);
  }

  .vp-hero-arrow {
    color: var(--rose-deep);
    flex-shrink: 0;
  }

  /* Divider between hero and stock voices */
  .vp-divider {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 4px 0 14px;
  }

  .vp-divider::before,
  .vp-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border-soft);
  }

  .vp-divider span {
    font-family: var(--mono);
    font-size: 9px;
    letter-spacing: 0.16em;
    color: var(--gray-mid);
    text-transform: uppercase;
  }

  .voice-pick {
    flex: 1;
    padding: 16px;
    text-align: center;
    cursor: pointer;
    transition: all 220ms var(--ease);
  }

  .voice-pick .vp-glyph {
    width: 48px;
    height: 48px;
    margin: 0 auto 10px;
    border-radius: 50%;
    background: var(--rose-soft);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--rose-deep);
  }

  .voice-pick.selected .vp-glyph {
    background: var(--rose-deep);
    color: white;
  }

  .voice-pick .vp-name {
    font-family: var(--serif);
    font-size: 16px;
    color: var(--ink);
    font-variation-settings: "SOFT" 30, "opsz" 60;
  }

  .voice-pick .vp-tag {
    font-family: var(--mono);
    font-size: 10px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--gray-mid);
    margin-top: 4px;
  }

  /* ============ GENERATING WITH LIFE AREA ============ */
  #generating {
    background: linear-gradient(180deg, var(--cream) 0%, var(--rose-soft) 100%);
  }

  .gen-orb-small {
    width: 90px;
    height: 90px;
    margin: 16px auto;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .gen-orb-core {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, var(--rose-soft), var(--rose-deep) 70%);
    box-shadow: 0 0 30px rgba(201, 138, 117, 0.4);
    animation: orbBreath 3s var(--ease) infinite;
  }

  @keyframes orbBreath {

    0%,
    100% {
      transform: scale(1);
      box-shadow: 0 0 30px rgba(201, 138, 117, 0.4);
    }

    50% {
      transform: scale(1.08);
      box-shadow: 0 0 50px rgba(201, 138, 117, 0.55);
    }
  }

  .gen-ring {
    position: absolute;
    inset: 0;
    border: 1px solid var(--rose-soft);
    border-radius: 50%;
    animation: orbRing 3s var(--ease) infinite;
  }

  .gen-ring.r2 {
    animation-delay: 1s;
    inset: -10px;
  }

  .gen-ring.r3 {
    animation-delay: 2s;
    inset: -20px;
  }

  @keyframes orbRing {
    0% {
      opacity: 0.6;
      transform: scale(0.9);
    }

    100% {
      opacity: 0;
      transform: scale(1.2);
    }
  }

  .gen-status {
    font-family: var(--mono);
    font-size: 11px;
    letter-spacing: 0.14em;
    color: var(--gray-warm);
    text-align: center;
    text-transform: uppercase;
    margin-top: 4px;
  }

  .gen-eyebrow-block {
    text-align: center;
    margin: 16px auto 0;
    max-width: 320px;
  }

  .gen-eyebrow-block h3 {
    font-family: var(--serif);
    font-size: 18px;
    color: var(--ink);
    margin: 4px 0 6px;
    font-variation-settings: "SOFT" 30, "opsz" 80;
    font-weight: 400;
  }

  .gen-eyebrow-block p {
    font-size: 13px;
    color: var(--gray-warm);
    line-height: 1.5;
  }

  .gen-right-col {
    margin-top: 24px;
  }

  .area-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-top: 8px;
  }

  .area-pick {
    padding: 16px 12px;
    text-align: left;
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
  }

  .area-pick .ap-glyph {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
  }

  .area-pick .ap-name {
    font-size: 14px;
    color: var(--ink);
    font-weight: 500;
  }

  .ap-glyph.wealth {
    background: var(--gold-soft);
    color: var(--gold);
  }

  .ap-glyph.health {
    background: #F5DCDC;
    color: #C97575;
  }

  .ap-glyph.spiritual {
    background: #DCD4E8;
    color: #7B6BA8;
  }

  .ap-glyph.career {
    background: var(--rose-soft);
    color: var(--rose-deep);
  }

  .ap-glyph.relationships {
    background: #F2D5C7;
    color: #C98A75;
  }

  .ap-glyph.growth {
    background: var(--sage-soft);
    color: var(--sage-deep);
  }

  .ap-glyph.creativity {
    background: #E8DCC4;
    color: #9C7B3F;
  }

  .ap-glyph.purpose {
    background: #D4E0D8;
    color: #5A7565;
  }

  .micro-toast {
    position: absolute;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    background: var(--ink);
    color: var(--cream);
    padding: 12px 18px;
    border-radius: var(--radius-pill);
    font-family: var(--mono);
    font-size: 11px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    z-index: 50;
    opacity: 0;
    transition: opacity 400ms var(--ease), transform 400ms var(--ease);
    display: flex;
    gap: 10px;
    align-items: center;
    white-space: nowrap;
    box-shadow: 0 8px 20px -4px rgba(0, 0, 0, 0.2);
  }

  .micro-toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }

  .toast-spinner {
    width: 12px;
    height: 12px;
    border: 2px solid var(--gold);
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
  }

  .toast-check {
    width: 14px;
    height: 14px;
    color: var(--sage);
  }

  @keyframes spin {
    to {
      transform: rotate(360deg);
    }
  }

  /* ============ PLAYER ============ */
  #player {
    background: linear-gradient(180deg, var(--cream) 0%, var(--cream-deep) 100%);
    /* Positioning context for the .player-interstitial overlay. Without
       this the overlay anchors to the viewport and shifts when the
       page scrolls — confusing for the user. */
    position: relative;
  }

  .player-card {
    background: var(--surface-raised);
    border: 1px solid var(--border-soft);
    border-radius: 22px;
    padding: 22px;
    margin-bottom: 16px;
  }

  .player-cover {
    height: 180px;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--rose-soft), var(--gold-soft));
    position: relative;
    overflow: hidden;
    margin-bottom: 18px;
  }

  .player-cover-orb {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 110px;
    height: 110px;
    margin: -55px 0 0 -55px;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 35%, rgba(255, 255, 255, 0.7), rgba(201, 138, 117, 0.6) 70%);
    animation: visualBreath 4s var(--ease) infinite;
  }

  @keyframes visualBreath {

    0%,
    100% {
      transform: scale(1);
    }

    50% {
      transform: scale(1.1);
    }
  }

  .player-cover.cloned {
    background: linear-gradient(135deg, var(--rose-deep), var(--gold));
  }

  .player-cover.cloned .player-cover-orb {
    background: radial-gradient(circle at 35% 35%, rgba(255, 255, 255, 0.85), rgba(255, 210, 180, 0.7) 70%);
  }

  .player-cover-tag {
    position: absolute;
    top: 12px;
    left: 12px;
    font-family: var(--mono);
    font-size: 10px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.95);
    padding: 4px 10px;
    background: rgba(31, 41, 55, 0.4);
    backdrop-filter: blur(8px);
    border-radius: var(--radius-pill);
  }

  .player-title {
    font-family: var(--serif);
    font-size: 20px;
    color: var(--ink);
    margin-bottom: 4px;
    font-variation-settings: "SOFT" 30, "opsz" 80;
  }

  .player-subtitle {
    font-family: var(--mono);
    font-size: 11px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--gray-warm);
    margin-bottom: 14px;
  }

  .player-controls {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 8px;
  }

  .play-btn {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--ink);
    color: var(--cream);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 220ms var(--ease);
  }

  .play-btn:hover {
    transform: scale(1.05);
  }

  /* While the cloned audio is still rendering, the play button shows a
     spinner and is non-interactive. */
  .play-btn.preparing {
    opacity: 0.6;
    cursor: default;
  }

  .play-btn.preparing:hover {
    transform: none;
  }

  .play-btn svg {
    width: 22px;
    height: 22px;
  }

  .player-time-block {
    flex: 1;
  }

  .player-time-bar {
    height: 4px;
    background: var(--border-soft);
    border-radius: 999px;
    overflow: hidden;
    margin-bottom: 6px;
  }

  .player-time-fill {
    height: 100%;
    background: var(--ink);
    width: 0%;
    transition: width 200ms linear;
  }

  .player-time-text {
    font-family: var(--mono);
    font-size: 11px;
    color: var(--gray-warm);
    display: flex;
    justify-content: space-between;
  }

  .story-text {
    background: var(--surface-raised);
    border: 1px solid var(--border-soft);
    border-radius: var(--radius);
    padding: 18px;
    font-family: var(--serif);
    font-size: 15px;
    line-height: 1.65;
    color: var(--ink);
    font-variation-settings: "SOFT" 40, "opsz" 60;
    font-weight: 380;
    max-height: 200px;
    overflow-y: auto;
    margin-bottom: 14px;
  }

  .story-text .highlight {
    background: linear-gradient(180deg, transparent 60%, rgba(201, 138, 117, 0.2) 60%);
    transition: background 300ms var(--ease);
  }

  .story-text .spoken {
    background: linear-gradient(180deg, transparent 60%, rgba(201, 138, 117, 0.35) 60%);
    color: var(--rose-deep);
  }

  .clone-cta {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    background: var(--surface-raised);
    border: 1px solid var(--border-mid);
    border-radius: 14px;
    cursor: pointer;
    transition: all 220ms var(--ease);
    width: 100%;
    text-align: left;
  }

  .clone-cta:hover {
    border-color: var(--rose-deep);
    background: linear-gradient(180deg, var(--surface-raised), #FBF1ED);
  }

  .clone-cta-glyph {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: var(--rose-soft);
    color: var(--rose-deep);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
  }

  .clone-cta-text {
    flex: 1;
  }

  .clone-cta-title {
    font-size: 14px;
    color: var(--ink);
    font-weight: 500;
  }

  .clone-cta-sub {
    font-size: 12px;
    color: var(--gray-warm);
    margin-top: 2px;
  }

  .clone-cta-arrow {
    color: var(--gray-mid);
    flex-shrink: 0;
  }

  /* ============ VOICE CLONE ============ */
  .voice-mic-vis {
    width: 160px;
    height: 160px;
    margin: 24px auto;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .voice-mic-vis::before,
  .voice-mic-vis::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 1px solid var(--rose-soft);
    animation: ripple 2.4s var(--ease) infinite;
  }

  .voice-mic-vis::after {
    animation-delay: 1.2s;
  }

  .voice-mic-vis.recording::before,
  .voice-mic-vis.recording::after {
    border-color: var(--rose-deep);
    animation-duration: 1.6s;
  }

  @keyframes ripple {
    0% {
      transform: scale(0.7);
      opacity: 0.8;
    }

    100% {
      transform: scale(1.4);
      opacity: 0;
    }
  }

  .voice-mic-core {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    background: linear-gradient(180deg, var(--rose-soft), var(--rose-deep));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    box-shadow: 0 12px 30px -6px rgba(201, 138, 117, 0.5);
    z-index: 2;
    transition: transform 200ms var(--ease);
  }

  .voice-mic-core svg {
    width: 34px;
    height: 34px;
  }

  .voice-mic-vis.recording .voice-mic-core {
    animation: micPulse 1.2s var(--ease) infinite;
  }

  @keyframes micPulse {

    0%,
    100% {
      transform: scale(1);
    }

    50% {
      transform: scale(1.06);
    }
  }

  .voice-script {
    background: var(--surface-raised);
    border: 1px solid var(--border-soft);
    border-radius: var(--radius);
    padding: 18px;
    margin: 12px 0 18px;
    font-family: var(--serif);
    font-size: 15px;
    line-height: 1.6;
    color: var(--ink);
    font-variation-settings: "SOFT" 40, "opsz" 60;
    font-weight: 380;
    max-height: 220px;
    overflow-y: auto;
  }

  .voice-script .quote-mark {
    font-family: var(--serif);
    color: var(--rose-deep);
    font-size: 24px;
    line-height: 0;
    vertical-align: -8px;
  }

  .voice-timer {
    font-family: var(--mono);
    font-size: 28px;
    color: var(--ink);
    text-align: center;
    margin: 4px 0 16px;
    font-weight: 500;
    letter-spacing: 0.04em;
  }

  .voice-timer.recording {
    color: var(--rose-deep);
  }

  .voice-waveform {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 3px;
    height: 36px;
    margin-bottom: 16px;
  }

  .voice-bar {
    width: 3px;
    background: var(--rose-deep);
    border-radius: 2px;
    transition: height 100ms ease-out;
    height: 4px;
  }

  /* Voice recording — 4-step strip */
  .record-steps-strip {
    display: flex;
    gap: 6px;
    margin: 0 0 8px;
  }

  .rss-seg {
    flex: 1;
    height: 4px;
    border-radius: 999px;
    background: var(--border-mid);
    transition: background 400ms var(--ease);
  }

  .rss-seg.active {
    background: var(--rose-deep);
  }

  .rss-seg.done {
    background: var(--gold);
  }

  /* Step success overlay */
  .step-success-overlay {
    position: absolute;
    inset: 0;
    background: rgba(247, 242, 234, 0.97);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 90;
    backdrop-filter: blur(6px);
    animation: fadeOverlay 200ms var(--ease);
  }

  @keyframes fadeOverlay {
    from {
      opacity: 0;
    }

    to {
      opacity: 1;
    }
  }

  .step-success-card {
    text-align: center;
    animation: scaleIn 400ms var(--ease);
  }

  .step-success-icon {
    width: 72px;
    height: 72px;
    margin: 0 auto 16px;
    border-radius: 50%;
    background: var(--sage);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    box-shadow: 0 12px 30px -6px rgba(168, 181, 160, 0.5);
  }

  .step-success-icon svg {
    width: 32px;
    height: 32px;
  }

  .step-success-title {
    font-family: var(--serif);
    font-size: 24px;
    font-variation-settings: "SOFT" 30, "opsz" 80;
    color: var(--ink);
    margin-bottom: 6px;
  }

  .step-success-sub {
    font-family: var(--mono);
    font-size: 11px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--gray-warm);
  }

  .countdown-overlay {
    position: absolute;
    inset: 0;
    background: rgba(247, 242, 234, 0.96);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100;
    backdrop-filter: blur(4px);
  }

  .countdown-num {
    font-family: var(--serif);
    font-size: 120px;
    font-variation-settings: "SOFT" 0, "opsz" 144;
    color: var(--ink);
    animation: countdownPop 1s var(--ease);
  }

  @keyframes countdownPop {
    0% {
      transform: scale(1.3);
      opacity: 0;
    }

    20% {
      opacity: 1;
    }

    100% {
      transform: scale(0.85);
      opacity: 0;
    }
  }

  .check-success {
    width: 80px;
    height: 80px;
    margin: 32px auto 20px;
    border-radius: 50%;
    background: var(--sage);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    animation: scaleIn 500ms var(--ease);
  }

  .check-success svg {
    width: 36px;
    height: 36px;
  }

  @keyframes scaleIn {
    from {
      transform: scale(0);
    }

    to {
      transform: scale(1);
    }
  }

  .training-status {
    text-align: center;
    margin-top: 24px;
  }

  .training-bar {
    height: 4px;
    background: var(--border-soft);
    border-radius: 999px;
    overflow: hidden;
    max-width: 240px;
    margin: 12px auto 8px;
  }

  .training-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--rose-deep), var(--gold));
    width: 0%;
    transition: width 300ms var(--ease);
  }

  /* ============ MUSIC PICKER ============ */
  .music-row {
    display: flex;
    gap: 8px;
    margin-bottom: 14px;
  }

  .music-chip {
    flex: 1;
    padding: 12px 8px;
    border: 1px solid var(--border-mid);
    border-radius: 12px;
    background: var(--surface-raised);
    text-align: center;
    cursor: pointer;
    transition: all 220ms var(--ease);
  }

  .music-chip.selected {
    border-color: var(--rose-deep);
    background: linear-gradient(180deg, var(--surface-raised), #FBF1ED);
  }

  .music-chip-icon {
    margin: 0 auto 6px;
    width: 28px;
    height: 28px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--rose-deep);
    background: var(--rose-soft);
  }

  .music-chip-name {
    font-size: 12px;
    color: var(--ink);
    font-weight: 500;
  }

  .music-chip-tag {
    font-family: var(--mono);
    font-size: 9px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--gray-mid);
    margin-top: 2px;
  }

  .music-chip.none .music-chip-icon {
    background: var(--border-soft);
    color: var(--gray-mid);
  }

  /* ============ NEXT-STEP CARDS ============ */
  .next-step-card {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 18px;
    cursor: pointer;
    margin-bottom: 10px;
  }

  .nsc-glyph {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: var(--rose-soft);
    color: var(--rose-deep);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
  }

  .next-step-card.primary .nsc-glyph {
    background: var(--ink);
    color: var(--gold-soft);
  }

  .nsc-content {
    flex: 1;
  }

  .nsc-title {
    font-family: var(--serif);
    font-size: 17px;
    color: var(--ink);
    margin-bottom: 2px;
    font-variation-settings: "SOFT" 30, "opsz" 60;
  }

  .nsc-desc {
    font-size: 13px;
    color: var(--gray-warm);
    line-height: 1.45;
  }

  .nsc-arrow {
    color: var(--gray-mid);
    flex-shrink: 0;
    margin-top: 14px;
  }

  /* ============ CALENDAR ============ */
  #calendar {
    background: linear-gradient(180deg, var(--cream) 0%, var(--cream-deep) 100%);
  }

  .cal-week {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
    margin: 16px 0 24px;
  }

  .cal-day {
    aspect-ratio: 0.8;
    background: var(--surface-raised);
    border: 1px solid var(--border-soft);
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 6px 2px;
    transition: all 400ms var(--ease);
    opacity: 0.5;
  }

  .cal-day.scheduled {
    background: linear-gradient(180deg, var(--rose-soft), var(--surface-raised));
    border-color: var(--rose-deep);
    opacity: 1;
  }

  .cal-day-name {
    font-family: var(--mono);
    font-size: 9px;
    letter-spacing: 0.1em;
    color: var(--gray-warm);
  }

  .cal-day-num {
    font-family: var(--serif);
    font-size: 18px;
    color: var(--ink);
    margin: 2px 0;
    font-variation-settings: "SOFT" 30, "opsz" 60;
  }

  .cal-day-time {
    font-family: var(--mono);
    font-size: 9px;
    color: var(--rose-deep);
    opacity: 0;
    transition: opacity 300ms var(--ease);
  }

  .cal-day.scheduled .cal-day-time {
    opacity: 1;
  }

  .cal-day-icon {
    color: var(--rose-deep);
    margin-top: 2px;
    opacity: 0;
    transform: scale(0);
    transition: all 300ms var(--ease);
  }

  .cal-day.scheduled .cal-day-icon {
    opacity: 1;
    transform: scale(1);
  }

  .time-picker {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: var(--surface-raised);
    border: 1px solid var(--border-mid);
    border-radius: 14px;
    padding: 14px;
    margin-bottom: 16px;
  }

  .time-num {
    font-family: var(--serif);
    font-size: 32px;
    font-variation-settings: "SOFT" 30, "opsz" 80;
    color: var(--ink);
    min-width: 60px;
    text-align: center;
  }

  .time-controls {
    display: flex;
    flex-direction: column;
    gap: 4px;
  }

  .time-arrow {
    width: 28px;
    height: 22px;
    background: var(--cream);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gray-warm);
  }

  .time-arrow:hover {
    background: var(--rose-soft);
    color: var(--rose-deep);
  }

  .time-period {
    display: flex;
    background: var(--cream);
    border-radius: 8px;
    padding: 2px;
  }

  .time-period button {
    padding: 6px 12px;
    font-family: var(--mono);
    font-size: 11px;
    letter-spacing: 0.1em;
    color: var(--gray-warm);
    border-radius: 6px;
  }

  .time-period button.active {
    background: var(--ink);
    color: var(--cream);
  }

  .cal-providers {
    display: flex;
    gap: 10px;
    margin: 16px 0;
  }

  .cal-provider {
    flex: 1;
    padding: 14px;
    background: var(--surface-raised);
    border: 1px solid var(--border-mid);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
    transition: all 220ms var(--ease);
  }

  .cal-provider:hover {
    border-color: var(--ink);
  }

  .cal-provider.selected {
    border-color: var(--rose-deep);
    background: linear-gradient(180deg, var(--surface-raised), #FBF1ED);
  }

  .cal-provider-name {
    font-size: 14px;
    color: var(--ink);
    font-weight: 500;
  }

  .cal-icon {
    width: 22px;
    height: 22px;
    flex-shrink: 0;
  }

  /* ============ CONVERSION (DARK) ============ */
  #conversion {
    background: var(--ink);
    color: var(--cream);
  }

  #conversion .screen-inner {
    padding: 56px 24px 32px;
  }

  #conversion h1.serif {
    color: var(--cream);
    font-size: 32px;
    font-variation-settings: "SOFT" 0, "opsz" 100;
    margin-bottom: 8px;
  }

  #conversion h1.serif em {
    font-style: italic;
    color: var(--gold-soft);
  }

  #conversion .lead {
    color: var(--gray-soft);
    font-size: 15px;
    line-height: 1.55;
    margin-bottom: 24px;
  }

  .timeline-block {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 18px;
    margin-bottom: 20px;
  }

  /* Conversion calendar visual */
  .conv-cal-block {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(184, 146, 78, 0.25);
    border-radius: 16px;
    padding: 18px;
    margin-bottom: 20px;
  }

  .conv-cal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 14px;
  }

  .conv-cal-provider {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--mono);
    font-size: 10px;
    letter-spacing: 0.14em;
    color: var(--gold);
  }

  .conv-cal-provider svg {
    color: var(--sage);
  }

  .conv-cal-week {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
  }

  .conv-cal-day {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(184, 146, 78, 0.3);
    border-radius: 8px;
    padding: 8px 4px;
    text-align: center;
    opacity: 0;
    transform: translateY(6px);
    transition: opacity 400ms var(--ease), transform 400ms var(--ease);
  }

  .conv-cal-day.show {
    opacity: 1;
    transform: translateY(0);
  }

  .conv-cal-day-name {
    font-family: var(--mono);
    font-size: 9px;
    letter-spacing: 0.1em;
    color: var(--gray-soft);
    margin-bottom: 2px;
  }

  .conv-cal-day-num {
    font-family: var(--serif);
    font-size: 16px;
    font-variation-settings: "SOFT" 30, "opsz" 60;
    color: var(--cream);
    margin-bottom: 4px;
  }

  .conv-cal-day-time {
    font-family: var(--mono);
    font-size: 8px;
    letter-spacing: 0.06em;
    color: var(--gold);
  }

  .conv-cal-foot {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    font-size: 11px;
    color: var(--gray-soft);
    font-family: var(--mono);
    letter-spacing: 0.04em;
  }

  .conv-cal-foot svg {
    color: var(--gold);
  }

  .timeline-row {
    display: flex;
    gap: 14px;
    padding: 8px 0;
  }

  .timeline-row+.timeline-row {
    border-top: 1px solid rgba(255, 255, 255, 0.06);
  }

  .timeline-label {
    font-family: var(--mono);
    font-size: 10px;
    letter-spacing: 0.14em;
    color: var(--gold);
    flex-shrink: 0;
    width: 80px;
    padding-top: 4px;
  }

  .timeline-content {
    flex: 1;
  }

  .timeline-title {
    font-family: var(--serif);
    font-size: 15px;
    color: var(--cream);
    font-variation-settings: "SOFT" 30, "opsz" 60;
    margin-bottom: 2px;
  }

  .timeline-desc {
    font-size: 12px;
    color: var(--gray-soft);
    line-height: 1.4;
  }

  .price-block {
    text-align: center;
    margin: 24px 0 16px;
  }

  .price-amount {
    font-family: var(--serif);
    font-size: 44px;
    font-variation-settings: "SOFT" 30, "opsz" 144;
    color: var(--cream);
    letter-spacing: -0.02em;
  }

  .price-amount span {
    font-size: 16px;
    color: var(--gray-soft);
    font-family: var(--mono);
    letter-spacing: 0.05em;
  }

  .price-tag {
    font-family: var(--mono);
    font-size: 11px;
    letter-spacing: 0.14em;
    color: var(--gold);
    margin-top: 4px;
  }

  .reassure {
    font-family: var(--mono);
    font-size: 10px;
    letter-spacing: 0.12em;
    color: var(--gray-soft);
    text-align: center;
    margin-top: 12px;
    line-height: 1.5;
  }

  /* ============ MISC ============ */
  .fade-in {
    animation: fadeIn 600ms var(--ease) backwards;
  }

  @keyframes fadeIn {
    from {
      opacity: 0;
      transform: translateY(8px);
    }

    to {
      opacity: 1;
      transform: translateY(0);
    }
  }

  .stagger-1 {
    animation-delay: 80ms;
  }

  .stagger-2 {
    animation-delay: 160ms;
  }

  .stagger-3 {
    animation-delay: 240ms;
  }

  .stagger-4 {
    animation-delay: 320ms;
  }

  .stagger-5 {
    animation-delay: 400ms;
  }

  .hidden {
    display: none !important;
  }

  /* Landing visual is desktop-only; hidden on mobile/tablet */
  .landing-visual {
    display: none;
  }

  /* ==========================================================================
     RESPONSIVE LAYER
     Mobile-first foundation above. Below: tablet (>=640) and desktop (>=1024).
     ========================================================================== */

  /* ---------- TABLET (>=640px) ---------- */
  @media (min-width: 640px) {
    .frame {
      max-width: 100%;
      box-shadow: none;
      background: var(--cream);
    }

    /* Hero/scrollable screens get a centered content column */
    .screen-inner {
      max-width: 560px;
      width: 100%;
      margin: 0 auto;
      padding: 80px 32px 48px;
    }

    /* Topbar contents centered with content */
    .topbar {
      padding: 0 32px;
    }

    .topbar>* {
      max-width: 560px;
    }

    .topbar {
      max-width: 624px;
      left: 50%;
      transform: translateX(-50%);
      right: auto;
      width: 100%;
    }

    /* Type scales up */
    #landing h1.serif {
      font-size: 56px;
    }

    .question-block h2.serif {
      font-size: 32px;
    }

    h2.serif {
      font-size: 30px;
    }

    /* Two-card rows breathe more */
    .voice-picker-row {
      gap: 14px;
    }

    .area-grid-2 {
      grid-template-columns: repeat(3, 1fr);
      gap: 10px;
    }

    .prof-grid {
      grid-template-columns: repeat(3, 1fr);
    }

    /* Conversion screen */
    #conversion h1.serif {
      font-size: 38px;
    }

    .price-amount {
      font-size: 56px;
    }
  }

  /* ---------- DESKTOP (>=1024px) ---------- */
  @media (min-width: 1024px) {
    body {
      background: var(--cream);
      padding: 0;
    }

    .frame {
      max-width: 100%;
      min-height: 100vh;
    }

    .screen-inner {
      max-width: 1100px;
      padding: 88px 56px 64px;
    }

    .topbar {
      max-width: 1212px;
      padding: 0 56px;
    }

    .topbar>* {
      max-width: 1100px;
    }

    /* ===== LANDING — desktop 2-column hero =====
       NOTE: these legacy rules target the OLD single-column landing markup.
       The current landing uses `.landing-inner-compact` + `.landing-grid`
       (see the compact section lower in this file). We scope every legacy
       rule with `:not(.landing-inner-compact)` so they never fight the
       compact layout — previously the `.screen-inner` grid here was
       re-applying to the compact inner and stretching the orb into a giant
       ellipse. */
    #landing .screen-inner:not(.landing-inner-compact) {
      display: grid;
      grid-template-columns: 1.1fr 1fr;
      grid-template-rows: auto;
      gap: 80px;
      align-items: center;
      padding-top: 96px;
      padding-bottom: 96px;
      max-width: 1180px;
    }

    #landing .screen-inner:not(.landing-inner-compact) .landing-mark {
      grid-column: 1 / -1;
      margin-bottom: 0;
    }

    /* All hero text sits in column 1 */
    #landing .screen-inner:not(.landing-inner-compact) h1.serif,
    #landing .screen-inner:not(.landing-inner-compact) .lead,
    #landing .screen-inner:not(.landing-inner-compact) .signal-row,
    #landing .screen-inner:not(.landing-inner-compact) .stack-bottom {
      grid-column: 1;
    }

    #landing .screen-inner:not(.landing-inner-compact) h1.serif {
      font-size: 76px;
      line-height: 1.05;
    }

    #landing .screen-inner:not(.landing-inner-compact) .lead {
      font-size: 18px;
      max-width: 480px;
    }

    #landing .screen-inner:not(.landing-inner-compact) .signal-row {
      max-width: 480px;
    }

    #landing .screen-inner:not(.landing-inner-compact) .stack-bottom {
      margin-top: 24px;
      padding-top: 0;
      max-width: 360px;
    }

    /* Right-column visual (legacy single-column landing only) */
    #landing .screen-inner:not(.landing-inner-compact) .landing-visual {
      grid-column: 2;
      grid-row: 2 / span 4;
      align-self: stretch;
      display: flex;
      align-items: center;
      justify-content: center;
      min-height: 480px;
      position: relative;
    }

    .landing-visual-orb {
      width: 380px;
      height: 380px;
      border-radius: 50%;
      background: radial-gradient(circle at 30% 30%, var(--rose-soft), var(--rose-deep) 70%);
      box-shadow: 0 30px 80px -10px rgba(201, 138, 117, 0.5);
      animation: orbBreath 4s var(--ease) infinite;
      position: relative;
    }

    .landing-visual-orb::before,
    .landing-visual-orb::after {
      content: '';
      position: absolute;
      inset: -30px;
      border: 1px solid var(--rose-soft);
      border-radius: 50%;
      animation: orbRing 4s var(--ease) infinite;
    }

    .landing-visual-orb::after {
      animation-delay: 2s;
      inset: -60px;
    }

    .landing-visual-quote {
      position: absolute;
      bottom: 24px;
      left: 0;
      right: 0;
      text-align: center;
      font-family: var(--serif);
      font-style: italic;
      font-size: 14px;
      color: var(--gray-warm);
      max-width: 320px;
      margin: 0 auto;
      font-variation-settings: "SOFT" 60, "WONK" 1, "opsz" 50;
    }

    /* ===== HOW IT WORKS — wider, flowing ===== */
    #how-it-works .screen-inner {
      max-width: 720px;
    }

    #how-it-works h2.serif {
      font-size: 40px;
    }

    .hiw-step {
      padding: 22px 0;
    }

    .hiw-num {
      width: 44px;
      height: 44px;
      font-size: 18px;
    }

    .hiw-title {
      font-size: 19px;
    }

    .hiw-desc {
      font-size: 14px;
    }

    /* ===== INTAKE — keep narrow & centered for focus ===== */
    #q1-goal .screen-inner,
    #q2-proof .screen-inner,
    #q3-affirm .screen-inner,
    #voice-pick .screen-inner {
      max-width: 600px;
    }

    .question-block h2.serif {
      font-size: 36px;
    }

    /* ===== GENERATING — desktop 2-column ===== */
    #generating .screen-inner {
      display: grid;
      grid-template-columns: 1fr 1.2fr;
      gap: 64px;
      align-items: center;
      max-width: 1000px;
      padding-top: 80px;
    }

    #generating .gen-orb-small {
      width: 200px;
      height: 200px;
      margin: 0 auto;
    }

    #generating .gen-orb-small .gen-orb-core {
      width: 140px;
      height: 140px;
    }

    #generating .gen-status {
      font-size: 13px;
      margin-top: 24px;
    }

    .gen-left-col {
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      text-align: center;
    }

    .gen-left-col .gen-eyebrow-block {
      margin-top: 32px;
      max-width: 300px;
    }

    .gen-left-col .gen-eyebrow-block h3 {
      font-family: var(--serif);
      font-size: 22px;
      color: var(--ink);
      margin: 8px 0 6px;
      font-variation-settings: "SOFT" 30, "opsz" 80;
      font-weight: 400;
    }

    .gen-left-col .gen-eyebrow-block p {
      font-size: 13px;
      color: var(--gray-warm);
      line-height: 1.5;
    }

    .gen-right-col h2.serif {
      font-size: 28px;
    }

    .gen-right-col .area-grid-2 {
      grid-template-columns: 1fr 1fr;
      gap: 10px;
    }

    .gen-right-col .stack-bottom {
      max-width: 360px;
      margin-top: 32px;
      padding-top: 0;
    }

    /* ===== PLAYER — desktop 2-column ===== */
    #player .screen-inner {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 48px;
      max-width: 1100px;
      padding-top: 88px;
      align-items: start;
    }

    #player .player-card {
      grid-column: 1;
      grid-row: 1 / span 4;
      padding: 28px;
      position: sticky;
      top: 88px;
    }

    /* Right column items */
    #player .story-text,
    #player .immersion-panel,
    #player .clone-cta,
    #player #schedule-cta,
    #player #music-chips-block {
      grid-column: 2;
    }

    .player-cover {
      height: 240px;
    }

    .player-cover-orb {
      width: 140px;
      height: 140px;
      margin: -70px 0 0 -70px;
    }

    .player-title {
      font-size: 26px;
    }

    .player-controls {
      margin-top: 16px;
    }

    .play-btn {
      width: 64px;
      height: 64px;
    }

    .play-btn svg {
      width: 26px;
      height: 26px;
    }

    .story-text {
      /* Keep the transcript a compact, internally-scrolling window on
         desktop too. Previously this was `max-height: none`, which let the
         full 6-minute script expand to its natural height and pushed the
         Immersion and Schedule blocks far below the fold with a large empty
         gap beside them. A bounded window keeps all four player components
         close together; the transcript auto-scrolls to the spoken line as
         playback advances (see playerTick). */
      max-height: 320px;
      overflow-y: auto;
      font-size: 17px;
      line-height: 1.75;
      padding: 28px;
    }

    /* ===== VOICE RECORD — narrow & focused ===== */
    #voice-pre .screen-inner,
    #voice-record .screen-inner,
    #voice-training .screen-inner {
      max-width: 560px;
    }

    .voice-mic-vis {
      width: 200px;
      height: 200px;
    }

    .voice-mic-core {
      width: 110px;
      height: 110px;
    }

    .voice-script {
      font-size: 16px;
      max-height: 280px;
      padding: 24px;
    }

    .voice-timer {
      font-size: 36px;
    }

    /* ===== NEXT STEPS ===== */
    #next-steps .screen-inner {
      max-width: 640px;
    }

    /* ===== EDIT STORY ===== */
    #edit-story .screen-inner {
      max-width: 640px;
    }

    /* ===== CALENDAR ===== */
    #calendar .screen-inner {
      max-width: 720px;
    }

    #calendar h2.serif {
      font-size: 36px;
    }

    .cal-week {
      gap: 8px;
      margin: 24px 0 32px;
    }

    .cal-day {
      padding: 12px 4px;
    }

    .cal-day-num {
      font-size: 22px;
    }

    .cal-day-name {
      font-size: 10px;
    }

    .cal-day-time {
      font-size: 10px;
    }

    .time-picker {
      padding: 18px;
    }

    .time-num {
      font-size: 38px;
      min-width: 80px;
    }

    .cal-providers {
      gap: 14px;
    }

    .cal-provider {
      padding: 18px;
    }

    .cal-provider-name {
      font-size: 15px;
    }

    /* ===== CONVERSION ===== */
    #conversion .screen-inner {
      max-width: 640px;
      padding-top: 72px;
    }

    #conversion h1.serif {
      font-size: 52px;
    }

    #conversion .lead {
      font-size: 16px;
      max-width: 520px;
    }

    .timeline-block {
      padding: 24px;
    }

    .timeline-row {
      padding: 12px 0;
    }

    .timeline-label {
      width: 100px;
      font-size: 11px;
    }

    .timeline-title {
      font-size: 17px;
    }

    .timeline-desc {
      font-size: 13px;
    }

    .price-amount {
      font-size: 64px;
    }

    /* Buttons feel right at desktop scale */
    .btn {
      font-size: 16px;
      padding: 18px 28px;
      min-height: 60px;
    }
  }

  /* ---------- LARGE DESKTOP (>=1440px) ---------- */
  @media (min-width: 1440px) {
    #landing .screen-inner:not(.landing-inner-compact) h1.serif {
      font-size: 88px;
    }

    #landing .screen-inner:not(.landing-inner-compact) {
      max-width: 1280px;
      gap: 100px;
    }

    /* Only enlarge the orb in the LEGACY layout. The compact layout caps
       it at 340px via .landing-visual-compact and must not be overridden. */
    #landing .screen-inner:not(.landing-inner-compact) .landing-visual-orb {
      width: 440px;
      height: 440px;
    }
  }

  /* ────────────────────────────────────────────────────────────────────────
 * WIZARD (intake — one question per screen, no inner scroll)
 * Shared by #chat-orientation (step 1) and #chat (steps 2-N).
 * ─────────────────────────────────────────────────────────────────────── */
  #chat-orientation,
  #chat {
    min-height: 100dvh;
    height: 100dvh;
  }

  #chat-orientation.active,
  #chat.active {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    /* no page-level scroll; card fits viewport */
  }

  /* Top bar: back + clean stepper + captured icon */
  .wiz-top {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px 10px;
    flex-shrink: 0;
  }

  .wiz-back,
  .wiz-top-spacer {
    width: 36px;
    height: 36px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    color: var(--gray-warm, #6B7280);
    cursor: pointer;
    border-radius: 50%;
  }

  .wiz-back:hover {
    background: rgba(31, 41, 55, 0.05);
  }

  .wiz-top-spacer {
    cursor: default;
  }

  .wiz-stepper {
    flex: 1;
    min-width: 0;
  }

  .wiz-progress {
    height: 4px;
    background: rgba(75, 85, 99, 0.12);
    border-radius: 2px;
    overflow: hidden;
  }

  .wiz-progress-fill {
    height: 100%;
    width: 0;
    background: linear-gradient(90deg, var(--gold, #C9A86A), #E2C58E);
    border-radius: 2px;
    transition: width 420ms cubic-bezier(0.22, 1, 0.36, 1);
  }

  .wiz-step-text {
    margin-top: 7px;
    font-family: var(--mono, "Geist Mono"), monospace;
    font-size: 11px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--gray-warm, #6B7280);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .wiz-step-text span:first-child {
    color: var(--gold, #C9A86A);
    font-weight: 600;
  }

  /* Body holds the single card, vertically centered, never scrolls internally */
  .wiz-body {
    flex: 1;
    min-height: 0;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 8px 18px 12px;
    overflow-y: auto;
    /* graceful: scrolls ONLY if a step truly overflows */
  }

  .wiz-card {
    width: 100%;
    max-width: 560px;
    padding: 18px 4px 8px;
    animation: wizFade 360ms cubic-bezier(0.22, 1, 0.36, 1);
  }

  @keyframes wizFade {
    from {
      opacity: 0;
      transform: translateY(8px);
    }

    to {
      opacity: 1;
      transform: translateY(0);
    }
  }

  .wiz-framing {
    font-family: var(--mono, "Geist Mono"), monospace;
    font-size: 11px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--gold, #C9A86A);
    margin-bottom: 10px;
    font-weight: 600;
    line-height: 1.4;
  }

  .wiz-question {
    font-size: 26px;
    line-height: 1.2;
    color: var(--ink, #1F2937);
    margin: 0 0 6px;
    font-variation-settings: "SOFT" 30, "opsz" 70;
  }

  .wiz-sub {
    font-size: 14px;
    color: var(--gray-warm, #6B7280);
    line-height: 1.5;
    margin: 0 0 18px;
  }

  .wiz-options {
    display: flex;
    flex-direction: column;
    gap: 9px;
    margin-top: 16px;
  }

  .wiz-option {
    text-align: left;
    background: var(--cream-soft, #FBF8F2);
    border: 1.5px solid var(--gray-line, rgba(75, 85, 99, 0.15));
    border-radius: 14px;
    padding: 15px 17px;
    cursor: pointer;
    transition: border-color 160ms ease, background 160ms ease, transform 100ms ease;
    width: 100%;
    font-family: inherit;
    display: flex;
    align-items: center;
    gap: 12px;
  }

  .wiz-option:hover {
    border-color: var(--gold, #C9A86A);
    background: var(--cream, #F7F2EA);
  }

  .wiz-option:active {
    transform: scale(0.995);
  }

  .wiz-option.selected {
    border-color: var(--gold, #C9A86A);
    background: linear-gradient(180deg, rgba(201, 168, 106, 0.08) 0%, rgba(201, 168, 106, 0.03) 100%);
    box-shadow: 0 0 0 1px var(--gold, #C9A86A);
  }

  .wiz-option-title {
    font-family: var(--serif, "Fraunces"), serif;
    font-size: 17px;
    color: var(--ink, #1F2937);
    font-variation-settings: "SOFT" 30, "opsz" 60;
    line-height: 1.3;
  }

  .wiz-option-sub {
    color: var(--gray-warm, #6B7280);
    font-size: 13px;
    line-height: 1.4;
    margin-top: 3px;
  }

  /* simple (label-only) option cards */
  .wiz-option.simple {
    display: block;
  }

  .wiz-option.simple .wiz-option-title {
    font-size: 16px;
  }

  /* selected check mark */
  .wiz-option .wiz-check {
    margin-left: auto;
    width: 22px;
    height: 22px;
    flex-shrink: 0;
    border-radius: 50%;
    border: 1.5px solid var(--gray-line, rgba(75, 85, 99, 0.25));
    display: flex;
    align-items: center;
    justify-content: center;
    color: transparent;
    transition: all 160ms ease;
  }

  .wiz-option.selected .wiz-check {
    background: var(--gold, #C9A86A);
    border-color: var(--gold, #C9A86A);
    color: white;
  }

  /* Write-your-own */
  .wiz-own {
    margin-top: 14px;
  }

  .wiz-own-toggle {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: transparent;
    border: none;
    color: var(--gold, #C9A86A);
    font-family: inherit;
    font-size: 13.5px;
    font-weight: 500;
    cursor: pointer;
    padding: 6px 0;
  }

  .wiz-own-toggle:hover {
    text-decoration: underline;
  }

  .wiz-own-field {
    margin-top: 8px;
  }

  .wiz-own-input {
    width: 100%;
    border: 1.5px solid rgba(75, 85, 99, 0.18);
    border-radius: 12px;
    padding: 12px 14px;
    font-family: inherit;
    font-size: 15px;
    line-height: 1.45;
    resize: none;
    background: white;
    color: var(--ink, #1F2937);
    transition: border-color 160ms ease;
    box-sizing: border-box;
  }

  .wiz-own-input:focus {
    outline: none;
    border-color: var(--gold, #C9A86A);
  }

  .wiz-own-input::placeholder {
    color: var(--gray-mid, #9CA3AF);
  }

  /* Inline triage / refinement */
  .wiz-triage {
    margin-top: 14px;
    background: linear-gradient(180deg, rgba(201, 168, 106, 0.1), rgba(201, 168, 106, 0.04));
    border: 1px solid rgba(201, 168, 106, 0.3);
    border-radius: 12px;
    padding: 13px 15px;
    animation: wizFade 300ms ease;
  }

  .wiz-triage-note {
    font-size: 14px;
    color: var(--ink, #1F2937);
    line-height: 1.5;
  }

  .wiz-triage-suggestion {
    margin-top: 8px;
    font-family: var(--serif, "Fraunces"), serif;
    font-size: 15px;
    color: var(--ink, #1F2937);
    font-style: italic;
    padding: 10px 12px;
    background: white;
    border-radius: 9px;
    border: 1px solid rgba(75, 85, 99, 0.1);
    cursor: pointer;
    line-height: 1.45;
  }

  .wiz-triage-suggestion:hover {
    border-color: var(--gold, #C9A86A);
  }

  /* Footer: Back / Next */
  .wiz-footer {
    display: flex;
    align-items: center;
    gap: 10px;
    position: sticky;
    bottom: 0;
    padding: 12px 18px calc(14px + env(safe-area-inset-bottom, 0px));
    flex-shrink: 0;
    border-top: 1px solid rgba(75, 85, 99, 0.07);
    background: var(--cream, #F7F2EA);
    z-index: 5;
  }

  .wiz-footer-back,
  .wiz-footer-back-spacer {
    flex: 0 0 auto;
    min-width: 96px;
  }

  /* Override global .btn { width:100% } inside wizard footer so the Back
     button doesn't stretch and push Next off-canvas on shorter/wider viewports. */
  .wiz-footer .btn {
    width: auto;
  }

  .wiz-footer-back {
    white-space: nowrap;
  }

  .wiz-footer-back-spacer {
    visibility: hidden;
  }

  .wiz-footer-next,
  .wiz-footer-generate {
    flex: 1;
    width: 100%;
    min-width: 0;
  }

  .wiz-footer .btn:disabled {
    opacity: 0.45;
    cursor: default;
  }

  /* Loading overlay */
  .wiz-loading {
    position: absolute;
    inset: 0;
    background: rgba(247, 242, 234, 0.82);
    backdrop-filter: blur(2px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    z-index: 20;
  }

  .wiz-loading.hidden {
    display: none;
  }

  .wiz-loading-dots {
    display: flex;
    gap: 6px;
  }

  .wiz-loading-dots span {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--gold, #C9A86A);
    animation: wizBlink 1.4s infinite ease-in-out;
  }

  .wiz-loading-dots span:nth-child(2) {
    animation-delay: 0.2s;
  }

  .wiz-loading-dots span:nth-child(3) {
    animation-delay: 0.4s;
  }

  @keyframes wizBlink {

    0%,
    60%,
    100% {
      opacity: 0.3;
      transform: translateY(0);
    }

    30% {
      opacity: 1;
      transform: translateY(-4px);
    }
  }

  .wiz-loading-text {
    font-family: var(--mono, "Geist Mono"), monospace;
    font-size: 11px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--gray-warm, #6B7280);
  }


  /* Captured-data drawer (slides up from bottom) */
  .chat-drawer {
    position: absolute;
    inset: 0;
    background: rgba(31, 41, 55, 0.45);
    backdrop-filter: blur(3px);
    z-index: 50;
    display: flex;
    align-items: flex-end;
    animation: drawerFadeIn 240ms ease;
  }

  .chat-drawer.hidden {
    display: none;
  }

  @keyframes drawerFadeIn {
    from {
      opacity: 0;
    }

    to {
      opacity: 1;
    }
  }

  .chat-drawer-inner {
    position: relative;
    width: 100%;
  }

  .chat-drawer-body {
    background: var(--cream, #F7F2EA);
    border-top-left-radius: 22px;
    border-top-right-radius: 22px;
    padding: 16px 20px 24px;
    max-height: 70vh;
    overflow-y: auto;
    width: 100%;
    box-shadow: 0 -10px 30px -10px rgba(0, 0, 0, 0.2);
    animation: drawerSlide 280ms cubic-bezier(0.22, 1, 0.36, 1);
  }

  @keyframes drawerSlide {
    from {
      transform: translateY(100%);
    }

    to {
      transform: translateY(0);
    }
  }

  .chat-drawer-header {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    background: var(--cream, #F7F2EA);
    border-top-left-radius: 22px;
    border-top-right-radius: 22px;
    padding: 14px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    z-index: 1;
    border-bottom: 1px solid rgba(75, 85, 99, 0.08);
  }

  .chat-drawer-title {
    font-family: var(--mono, "Geist Mono"), monospace;
    font-size: 11px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--gold, #C9A86A);
    font-weight: 600;
  }

  .chat-drawer-close {
    background: transparent;
    border: none;
    padding: 4px;
    cursor: pointer;
    color: var(--gray-warm, #6B7280);
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
  }

  .chat-drawer-close:hover {
    background: rgba(31, 41, 55, 0.06);
  }

  .chat-drawer-body {
    padding-top: 56px;
  }

  .captured-item {
    background: white;
    border-radius: 12px;
    padding: 10px 14px;
    margin-bottom: 8px;
    border: 1px solid rgba(75, 85, 99, 0.08);
  }

  .captured-item-label {
    font-family: var(--mono, "Geist Mono"), monospace;
    font-size: 9px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--gold, #C9A86A);
    margin-bottom: 4px;
    font-weight: 600;
  }

  .captured-item-value {
    font-size: 14px;
    color: var(--ink, #1F2937);
    line-height: 1.5;
    font-family: var(--serif, "Fraunces"), serif;
    font-variation-settings: "SOFT" 20, "opsz" 60;
  }

  /* ────────────────────────────────────────────────────────────────────────
 * VOICE PICKER (restructured — 3 equal-weight choices)
 * ─────────────────────────────────────────────────────────────────────── */
  .voice-choice-stack {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 18px;
  }

  .voice-choice {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px;
    text-align: left;
    cursor: pointer;
    transition: border-color 180ms ease, background 180ms ease, transform 120ms ease;
    position: relative;
  }

  .voice-choice:hover {
    border-color: var(--gold, #C9A86A);
  }

  .voice-choice.selected {
    border-color: var(--gold, #C9A86A);
    background: linear-gradient(180deg, rgba(201, 168, 106, 0.06) 0%, rgba(201, 168, 106, 0.02) 100%);
    box-shadow: 0 0 0 1px var(--gold, #C9A86A);
  }

  .voice-choice.voice-choice-own {
    background: linear-gradient(180deg, var(--cream-soft, #FBF8F2) 0%, rgba(201, 168, 106, 0.03) 100%);
    border-color: rgba(201, 168, 106, 0.25);
  }

  .vc-tag {
    position: absolute;
    top: 8px;
    right: 14px;
    font-family: var(--mono, "Geist Mono"), monospace;
    font-size: 9px;
    letter-spacing: 0.14em;
    color: var(--gold, #C9A86A);
    font-weight: 600;
  }

  .vc-glyph {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--cream, #F7F2EA);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gray-warm, #6B7280);
    flex-shrink: 0;
  }

  .voice-choice.voice-choice-own .vc-glyph {
    background: var(--gold-soft, rgba(201, 168, 106, 0.1));
    color: var(--gold, #C9A86A);
  }

  .vc-text {
    flex: 1;
    min-width: 0;
  }

  .vc-name {
    font-family: var(--serif, "Fraunces"), serif;
    font-size: 19px;
    color: var(--ink, #1F2937);
    margin-bottom: 2px;
    font-variation-settings: "SOFT" 30, "opsz" 60;
  }

  .vc-sub {
    font-size: 13px;
    color: var(--gray-warm, #6B7280);
    line-height: 1.4;
  }

  .vc-arrow {
    color: var(--gray-mid, #9CA3AF);
    flex-shrink: 0;
  }

  /* ────────────────────────────────────────────────────────────────────────
 * LISTENING-TIME RECOMMENDATION CARD
 * ─────────────────────────────────────────────────────────────────────── */
  .listen-rec {
    background: linear-gradient(135deg, var(--ink, #1F2937) 0%, #2A3441 100%);
    color: var(--cream, #F7F2EA);
    border-radius: 18px;
    padding: 22px 22px 18px;
    margin-bottom: 14px;
    position: relative;
    overflow: hidden;
  }

  .listen-rec.hidden {
    display: none;
  }

  .listen-rec-eyebrow {
    font-family: var(--mono, "Geist Mono"), monospace;
    font-size: 10px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--gold, #C9A86A);
    margin-bottom: 8px;
    font-weight: 600;
  }

  .listen-rec-time {
    font-family: var(--serif, "Fraunces"), serif;
    font-size: 38px;
    line-height: 1.05;
    margin-bottom: 4px;
    font-variation-settings: "SOFT" 30, "opsz" 80;
    color: var(--cream, #F7F2EA);
  }

  .listen-rec-label {
    font-family: var(--serif, "Fraunces"), serif;
    font-size: 18px;
    margin-bottom: 8px;
    font-variation-settings: "SOFT" 30, "opsz" 60;
    color: rgba(247, 242, 234, 0.92);
  }

  .listen-rec-reason {
    font-size: 13px;
    color: rgba(247, 242, 234, 0.7);
    line-height: 1.55;
    margin-bottom: 14px;
  }

  .listen-rec-cta {
    width: 100%;
    background: var(--gold, #C9A86A);
    color: var(--ink, #1F2937);
  }

  .listen-rec-cta:hover {
    background: #D9B97D;
  }

  /* ────────────────────────────────────────────────────────────────────────
 * IMMERSION PANEL (player)
 * ─────────────────────────────────────────────────────────────────────── */
  .immersion-panel {
    margin: 16px 0;
    border: 1px solid rgba(75, 85, 99, 0.12);
    border-radius: 16px;
    background: var(--cream-soft, #FBF8F2);
    overflow: hidden;
  }

  .immersion-header {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    background: transparent;
    border: none;
    cursor: pointer;
    font-family: inherit;
  }

  .immersion-header-left {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--mono, "Geist Mono"), monospace;
    font-size: 11px;
    letter-spacing: 0.16em;
    color: var(--ink, #1F2937);
    font-weight: 600;
  }

  .immersion-header-left svg {
    color: var(--gold, #C9A86A);
  }

  .immersion-header-right {
    display: flex;
    align-items: center;
    gap: 8px;
  }

  .immersion-summary {
    font-family: var(--mono, "Geist Mono"), monospace;
    font-size: 10px;
    letter-spacing: 0.08em;
    color: var(--gray-warm, #6B7280);
    text-transform: uppercase;
    max-width: 160px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .immersion-chevron {
    color: var(--gray-mid, #9CA3AF);
    transition: transform 240ms ease;
  }

  .immersion-chevron.open {
    transform: rotate(180deg);
  }

  .immersion-body {
    padding: 4px 16px 16px;
    border-top: 1px solid rgba(75, 85, 99, 0.08);
  }

  .immersion-hint {
    display: flex;
    align-items: center;
    gap: 6px;
    font-family: var(--mono, "Geist Mono"), monospace;
    font-size: 10px;
    letter-spacing: 0.08em;
    color: var(--gold, #C9A86A);
    text-transform: uppercase;
    margin: 12px 0 4px;
  }

  .imm-group {
    margin-top: 16px;
  }

  .imm-label {
    font-family: var(--mono, "Geist Mono"), monospace;
    font-size: 10px;
    letter-spacing: 0.14em;
    color: var(--gray-warm, #6B7280);
    margin-bottom: 8px;
    font-weight: 600;
  }

  .imm-help {
    font-size: 11.5px;
    color: var(--gray-mid, #9CA3AF);
    margin-top: 7px;
    line-height: 1.4;
  }

  /* Segmented control (rotation) */
  .imm-seg {
    display: flex;
    background: rgba(75, 85, 99, 0.06);
    border-radius: 12px;
    padding: 4px;
    gap: 4px;
  }

  .imm-seg-btn {
    flex: 1;
    border: none;
    background: transparent;
    padding: 9px 4px;
    border-radius: 9px;
    font-family: var(--mono, "Geist Mono"), monospace;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.04em;
    color: var(--gray-warm, #6B7280);
    cursor: pointer;
    transition: background 160ms ease, color 160ms ease;
  }

  .imm-seg-btn.selected {
    background: var(--ink, #1F2937);
    color: var(--cream, #F7F2EA);
  }

  /* Chip rows (binaural, soundscape) */
  .imm-chip-row {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
  }

  .imm-chip {
    border: 1.5px solid rgba(75, 85, 99, 0.16);
    background: white;
    color: var(--ink, #1F2937);
    padding: 8px 13px;
    border-radius: 999px;
    font-family: inherit;
    font-size: 13px;
    cursor: pointer;
    transition: border-color 160ms ease, background 160ms ease, color 160ms ease;
  }

  .imm-chip:hover {
    border-color: var(--gold, #C9A86A);
  }

  .imm-chip.selected {
    border-color: var(--gold, #C9A86A);
    background: var(--gold, #C9A86A);
    color: white;
  }

  /* Toggle pills (reverb, width) */
  .imm-toggle-row {
    display: flex;
    gap: 8px;
  }

  .imm-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    border: 1.5px solid rgba(75, 85, 99, 0.16);
    background: white;
    color: var(--ink, #1F2937);
    padding: 9px 16px;
    border-radius: 12px;
    font-family: inherit;
    font-size: 13.5px;
    cursor: pointer;
    transition: border-color 160ms ease, background 160ms ease;
  }

  .imm-toggle-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--gray-mid, #9CA3AF);
    transition: background 160ms ease, box-shadow 160ms ease;
  }

  .imm-toggle.on {
    border-color: var(--gold, #C9A86A);
    background: var(--gold-soft, rgba(201, 168, 106, 0.1));
  }

  .imm-toggle.on .imm-toggle-dot {
    background: var(--gold, #C9A86A);
    box-shadow: 0 0 0 3px rgba(201, 168, 106, 0.2);
  }

  .imm-apply-row {
    margin-top: 18px;
  }

  .imm-apply-btn {
    width: 100%;
  }

  .imm-apply-btn:disabled {
    opacity: 0.5;
    cursor: default;
  }

  /* ────────────────────────────────────────────────────────────────────────
 * CAPTURED ICON (wizard top bar)
 * ─────────────────────────────────────────────────────────────────────── */
  .top-meta {
    position: relative;
    width: 36px;
    height: 36px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    color: var(--gray-warm, #6B7280);
    cursor: pointer;
    border-radius: 50%;
  }

  .top-meta:hover {
    background: rgba(31, 41, 55, 0.05);
  }

  .chat-meta-badge {
    position: absolute;
    top: 2px;
    right: 2px;
    min-width: 15px;
    height: 15px;
    padding: 0 3px;
    border-radius: 8px;
    background: var(--gold, #C9A86A);
    color: white;
    font-family: var(--mono, "Geist Mono"), monospace;
    font-size: 9px;
    font-weight: 600;
    line-height: 15px;
    text-align: center;
  }

  .chat-meta-badge:empty {
    display: none;
  }
  /* ============================================================
   * LANDING — INLINE ORIENTATION + PERSONALIZED GREETING
   * ============================================================
   * The orientation question used to live on its own screen
   * (#chat-orientation). It's now inlined into the landing page so
   * tapping a chip starts the chat in a single tap. The standalone
   * #chat-orientation screen still exists as a back-navigation
   * fallback for users who return from deeper in the funnel. */
  .landing-greeting {
    font-family: var(--mono, "Geist Mono"), monospace;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.12em;
    color: var(--gray-mid, #8a8a85);
    text-transform: uppercase;
    margin-bottom: 8px;
  }

  .landing-orient {
    width: 100%;
    max-width: 560px;
    margin: 20px 0 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
  }
  .landing-orient-eyebrow {
    font-size: 13px;
    color: var(--gray-warm, #6b6b65);
    font-weight: 500;
    margin-bottom: 4px;
  }
  .landing-orient-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
  }
  @media (min-width: 640px) {
    .landing-orient-grid {
      grid-template-columns: 1fr 1fr;
    }
  }
  .landing-orient-chip {
    text-align: left;
    border: 1px solid rgba(75, 85, 99, 0.12);
    background: rgba(255, 255, 255, 0.65);
    border-radius: 14px;
    padding: 12px 14px;
    cursor: pointer;
    transition: transform 120ms ease, border-color 120ms ease, background 120ms ease;
    font: inherit;
    color: inherit;
  }
  .landing-orient-chip:hover {
    border-color: var(--gold, #c69646);
    transform: translateY(-1px);
    background: rgba(255, 255, 255, 0.92);
  }
  .landing-orient-chip:active,
  .landing-orient-chip.loading {
    transform: translateY(0);
  }
  .landing-orient-chip.loading {
    border-color: var(--gold, #c69646);
    background: rgba(255, 255, 255, 0.92);
    cursor: progress;
    opacity: 0.85;
  }
  .landing-orient-chip-title {
    font-family: var(--serif, "Source Serif Pro"), Georgia, serif;
    font-size: 17px;
    font-weight: 500;
    color: var(--ink, #2a2a28);
    margin-bottom: 2px;
  }
  .landing-orient-chip-sub {
    font-size: 12px;
    color: var(--gray-warm, #6b6b65);
    line-height: 1.4;
  }
  .landing-how {
    align-self: flex-start;
    margin-top: 8px;
    padding: 8px 14px;
    width: auto;
    font-size: 13px;
  }

  /* ============================================================
   * PLAYER INTERSTITIAL — after 10 s of listening
   * ============================================================
   * Floats over the player card without blocking playback (audio
   * keeps going under it). Anonymous-user-only — once they sign
   * up, this never shows again. Dismiss = X or "Keep listening";
   * neither stops the audio. */
  .player-interstitial {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: calc(100% - 32px);
    max-width: 380px;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(198, 150, 70, 0.35);
    border-radius: 18px;
    padding: 22px 22px 18px;
    box-shadow: 0 20px 50px -16px rgba(0, 0, 0, 0.18);
    z-index: 50;
    animation: pi-fade-in 320ms ease-out;
  }
  .player-interstitial.hidden {
    display: none;
  }
  @keyframes pi-fade-in {
    from {
      opacity: 0;
      transform: translate(-50%, -45%);
    }
    to {
      opacity: 1;
      transform: translate(-50%, -50%);
    }
  }
  .player-interstitial-close {
    position: absolute;
    top: 10px;
    right: 10px;
    background: transparent;
    border: 0;
    cursor: pointer;
    padding: 6px;
    color: var(--gray-warm, #6b6b65);
    border-radius: 8px;
  }
  .player-interstitial-close:hover {
    background: rgba(0, 0, 0, 0.04);
  }
  .player-interstitial-eyebrow {
    font-family: var(--mono, "Geist Mono"), monospace;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.14em;
    color: var(--gold, #c69646);
    margin-bottom: 6px;
  }
  .player-interstitial-title {
    font-family: var(--serif, "Source Serif Pro"), Georgia, serif;
    font-size: 22px;
    line-height: 1.25;
    margin: 0 0 6px;
    color: var(--ink, #2a2a28);
  }
  .player-interstitial-sub {
    font-size: 13px;
    line-height: 1.5;
    color: var(--gray-warm, #6b6b65);
    margin: 0 0 14px;
  }
  .player-interstitial-example {
    color: var(--ink, #2a2a28);
    font-weight: 500;
  }
  .player-interstitial #pi-name-input {
    width: 100%;
  }
  .player-interstitial-buttons {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 12px;
  }
  .player-interstitial-buttons .btn {
    width: 100%;
  }
  .player-interstitial-fine {
    font-size: 11px;
    color: var(--gray-mid, #8a8a85);
    margin: 10px 0 0;
    text-align: center;
  }

  /* ============================================================
   * LANDING — COMPACT TWO-COLUMN LAYOUT (Round 5)
   * ============================================================
   * The previous landing was a single column ~2 viewports tall.
   * Users had to scroll to discover the orientation chips (the
   * actual call-to-action). Compact layout: text + chips on the
   * left, orb on the right, fits a typical viewport without
   * scrolling. Stacks on mobile via media query. */
  .landing-topbar {
    position: absolute;
    top: 14px;
    right: 18px;
    display: flex;
    gap: 16px;
    align-items: center;
    z-index: 10;
  }
  .landing-topbar-signin {
    font-family: var(--mono, "Geist Mono"), monospace;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--gray-warm, #6b6b65);
    text-decoration: none;
    padding: 6px 10px;
    border-radius: 8px;
    transition: background 120ms;
  }
  .landing-topbar-signin:hover {
    background: rgba(0, 0, 0, 0.04);
    color: var(--ink, #2a2a28);
  }
  .landing-topbar-dashboard {
    color: var(--gold, #c69646);
  }
  .landing-topbar-signin.hidden {
    display: none;
  }

  .landing-inner-compact {
    /* Push content into a compact band rather than letting it sprawl. */
    padding-top: 56px;
    padding-bottom: 24px;
    min-height: 0;          /* let the inner grid set its own height */
    justify-content: flex-start;
  }
  .landing-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
    width: 100%;
    align-items: center;
  }
  @media (min-width: 880px) {
    .landing-grid {
      grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
      gap: 40px;
      align-items: center;
    }
  }
  .landing-left {
    min-width: 0;           /* prevent text overflow pushing the grid */
  }
  .landing-right {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
  }

  .landing-inner-compact .landing-mark {
    margin-bottom: 8px;
  }
  .landing-h1-compact {
    font-size: clamp(28px, 4.4vw, 44px);
    line-height: 1.05;
    margin: 6px 0 10px;
  }
  .landing-lead-compact {
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 10px;
    max-width: 460px;
  }
  .landing-signals-compact {
    margin: 0 0 16px;
    gap: 6px;
  }
  .landing-signals-compact .signal {
    padding: 4px 10px;
    font-size: 10px;
  }

  .landing-orient-compact {
    margin: 4px 0 0;
    gap: 8px;
  }
  .landing-orient-eyebrow-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 600;
    color: var(--ink, #2a2a28);
    margin-bottom: 6px;
  }
  .landing-orient-arrow {
    color: var(--gold, #c69646);
    animation: landing-arrow-nudge 1.6s ease-in-out infinite;
  }
  @keyframes landing-arrow-nudge {
    0%, 60%, 100% { transform: translateX(0); }
    30% { transform: translateX(4px); }
  }
  .landing-orient-grid-compact {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }
  .landing-orient-grid-compact .landing-orient-chip {
    padding: 10px 12px;
    /* Subtle pulse on the chip surface so the user's eye locks on. */
    animation: landing-chip-pulse 3.6s ease-in-out infinite;
  }
  .landing-orient-grid-compact .landing-orient-chip:nth-child(2) { animation-delay: 0.4s; }
  .landing-orient-grid-compact .landing-orient-chip:nth-child(3) { animation-delay: 0.8s; }
  .landing-orient-grid-compact .landing-orient-chip:nth-child(4) { animation-delay: 1.2s; }
  @keyframes landing-chip-pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(198, 150, 70, 0); }
    50%      { box-shadow: 0 0 0 3px rgba(198, 150, 70, 0.08); }
  }
  .landing-orient-grid-compact .landing-orient-chip-title {
    font-size: 15px;
  }
  .landing-orient-grid-compact .landing-orient-chip-sub {
    font-size: 11px;
  }

  /* The visual orb — significantly downscaled vs the previous version
     that filled the right half of the page. Stays expressive but no
     longer dominates. */
  .landing-visual-compact {
    position: relative;
    width: 100%;
    max-width: 340px;
    max-height: 340px;
    aspect-ratio: 1 / 1;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 1;
    margin: 0 auto;
  }
  /* Win against every legacy `.landing-visual-orb` rule with high enough
     specificity, and force a true circle that can't stretch. */
  .landing-visual-compact .landing-visual-orb {
    width: 88%;
    height: auto;
    max-width: 300px;
    aspect-ratio: 1 / 1;
    border-radius: 50%;
    flex-shrink: 0;
  }
  .landing-visual-compact .landing-visual-quote {
    position: absolute;
    bottom: 4%;
    left: 50%;
    transform: translateX(-50%);
    width: 96%;
    text-align: center;
    font-size: 12px;
  }
  @media (max-width: 879px) {
    /* On narrow viewports, hide the orb to maximize space for the cards.
       The product value is the cards; the orb is mood. */
    .landing-right { display: none; }
  }

  .btn-link {
    background: transparent;
    border: 0;
    color: var(--gray-warm, #6b6b65);
    padding: 6px 0;
    font-size: 12px;
    text-decoration: underline;
    cursor: pointer;
    text-align: left;
    font-family: inherit;
  }
  .btn-link:hover { color: var(--ink, #2a2a28); }

  /* ============================================================
   * DASHBOARD (post-signup home)
   * ============================================================ */
  #dashboard {
    background: linear-gradient(180deg, var(--cream, #F7F2EA) 0%, var(--cream-deep, #EFE6D2) 100%);
  }
  .dashboard-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 20px;
    border-bottom: 0.5px solid rgba(0, 0, 0, 0.06);
  }
  .dashboard-mark {
    font-family: var(--mono, "Geist Mono"), monospace;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.14em;
    color: var(--ink, #2a2a28);
  }
  .dashboard-actions { display: flex; gap: 12px; }
  .dashboard-inner {
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 20px;
    max-width: 720px;
    margin: 0 auto;
    width: 100%;
    box-sizing: border-box;
  }

  .dash-card {
    background: rgba(255, 255, 255, 0.85);
    border: 0.5px solid rgba(0, 0, 0, 0.06);
    border-radius: 16px;
    padding: 16px 18px;
  }
  .dash-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
  }
  .dash-card-title {
    font-family: var(--serif, "Source Serif Pro"), Georgia, serif;
    font-size: 17px;
    font-weight: 500;
    margin: 0;
    color: var(--ink, #2a2a28);
  }

  /* Mini-player — visually distinct (a touch more saturated) and sticky. */
  .dash-miniplayer {
    background: rgba(255, 255, 255, 0.95);
    border-color: rgba(198, 150, 70, 0.35);
    display: grid;
    grid-template-columns: 64px 1fr;
    gap: 14px;
    align-items: center;
    position: sticky;
    top: 8px;
    z-index: 5;
    box-shadow: 0 10px 24px -16px rgba(0, 0, 0, 0.12);
  }
  .dash-miniplayer-cover {
    width: 64px;
    height: 64px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--rose-soft, #E6C5B6), var(--gold-soft, #E0B07A));
    display: flex; align-items: center; justify-content: center;
    overflow: hidden;
  }
  .dash-miniplayer-orb {
    width: 70%;
    height: 70%;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 35%, #F5DAC4 0%, #C69646 80%);
  }
  .dash-miniplayer-body { min-width: 0; }
  .dash-miniplayer-tag {
    font-family: var(--mono, "Geist Mono"), monospace;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.12em;
    color: var(--gold, #c69646);
    text-transform: uppercase;
  }
  .dash-miniplayer-title {
    font-family: var(--serif, "Source Serif Pro"), Georgia, serif;
    font-size: 16px;
    font-weight: 500;
    color: var(--ink, #2a2a28);
    margin-top: 2px;
    /* truncate so a long title doesn't break the layout */
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  }
  .dash-miniplayer-sub {
    font-size: 11px;
    color: var(--gray-warm, #6b6b65);
    margin-bottom: 6px;
  }
  .dash-miniplayer-controls {
    display: flex;
    align-items: center;
    gap: 10px;
  }
  .dash-miniplayer-play {
    width: 32px; height: 32px;
    border-radius: 50%;
    background: var(--ink, #2a2a28);
    border: 0;
    color: #fff;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
  }
  .dash-miniplayer-play svg { width: 12px; height: 12px; }
  .dash-miniplayer-bar {
    flex: 1;
    height: 4px;
    background: rgba(0, 0, 0, 0.08);
    border-radius: 2px;
    position: relative;
    cursor: pointer;
  }
  .dash-miniplayer-fill {
    position: absolute; left: 0; top: 0;
    height: 100%;
    width: 0%;
    background: var(--gold, #c69646);
    border-radius: 2px;
    transition: width 120ms linear;
  }
  .dash-miniplayer-time {
    font-family: var(--mono, "Geist Mono"), monospace;
    font-size: 10px;
    color: var(--gray-mid, #8a8a85);
    white-space: nowrap;
  }

  /* Story list */
  .dash-stories {
    display: flex;
    flex-direction: column;
    gap: 8px;
  }
  .dash-story-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 12px;
    border-radius: 10px;
    background: rgba(0, 0, 0, 0.02);
    border: 0.5px solid rgba(0, 0, 0, 0.04);
    transition: background 120ms;
  }
  .dash-story-row:hover { background: rgba(0, 0, 0, 0.04); }
  .dash-story-row.active {
    border-color: rgba(198, 150, 70, 0.4);
    background: rgba(198, 150, 70, 0.06);
  }
  .dash-story-title {
    font-family: var(--serif, "Source Serif Pro"), Georgia, serif;
    font-size: 14px;
    color: var(--ink, #2a2a28);
    /* truncate gracefully */
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
    min-width: 0;
    flex: 1;
  }
  .dash-story-meta {
    font-family: var(--mono, "Geist Mono"), monospace;
    font-size: 10px;
    color: var(--gray-mid, #8a8a85);
    margin-left: 10px;
    white-space: nowrap;
  }

  /* Schedule list */
  .dash-schedule {
    display: flex;
    flex-direction: column;
    gap: 6px;
  }
  .dash-sched-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 12px;
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.02);
    font-size: 13px;
  }
  .dash-sched-day {
    color: var(--ink, #2a2a28);
    font-weight: 500;
  }
  .dash-sched-time {
    font-family: var(--mono, "Geist Mono"), monospace;
    font-size: 11px;
    color: var(--gray-warm, #6b6b65);
  }

  .dash-empty {
    font-size: 12px;
    color: var(--gray-mid, #8a8a85);
    text-align: center;
    padding: 12px 0;
  }

  .dash-card-account {
    background: rgba(0, 0, 0, 0.02);
  }
  .dash-account-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
  }
  .dash-account-label {
    font-family: var(--mono, "Geist Mono"), monospace;
    font-size: 9px;
    font-weight: 600;
    letter-spacing: 0.12em;
    color: var(--gray-mid, #8a8a85);
    text-transform: uppercase;
  }
  .dash-account-email {
    font-size: 14px;
    color: var(--ink, #2a2a28);
    margin-top: 2px;
  }
  .dash-account-plan {
    font-family: var(--mono, "Geist Mono"), monospace;
    font-size: 10px;
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(198, 150, 70, 0.15);
    color: var(--gold, #c69646);
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
  }
