/* Cu intenție member app prototype. Layout: phone = one column + bottom tabs;
   desktop >= 960px = left rail + main column + context column (>= 1240px).
   Brand comes from the approved artwork: rust sun, olive arch, two chairs (rust = you, olive = them). */
:root {
  --paper: #f6f1e7;
  --paper-2: #ede4d3;
  --sand: #e2d1b6;
  --ink: #22261f;
  --muted: #5d6057;
  --rust: #b34430;
  --rust-soft: #f1d3c4;
  --olive: #3b4b3c;
  --olive-soft: #d9dfcf;
  --sage: #7d8c6a;
  --line: rgba(34, 38, 31, .14);
  --card: rgba(255, 252, 246, .78);
  --card-solid: #fffcf6;
  --on-rust: #fff8f0;
  --on-olive: #f6f1e7;
  --glow: #f3d6ae;
  --shadow: 0 1px 2px rgba(34, 38, 31, .06), 0 12px 32px -12px rgba(59, 47, 30, .22);
  --display: "Fraunces", "Iowan Old Style", Georgia, serif;
  --sans: "Bricolage Grotesque", "Segoe UI", system-ui, sans-serif;
  --r-s: 12px; --r-m: 20px; --r-l: 32px; --arch: 999px 999px 24px 24px;
  --spring: linear(0, .009, .035 2.1%, .141, .281 6.7%, .723 12.9%, .938 16.7%, 1.017, 1.077, 1.121, 1.149 24.3%, 1.159, 1.163, 1.161, 1.154 29.9%, 1.129 32.8%, 1.051 39.6%, 1.017 43.1%, .991, .977 51%, .974 53.8%, .975 57.1%, .997 69.8%, 1.003 76.9%, 1);
  --ease-out: cubic-bezier(.2, .8, .2, 1);
  --tab-h: 68px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #141712; --paper-2: #1c2019; --sand: #2b2f26; --ink: #efe8da; --muted: #aeac9f;
    --rust: #e27652; --rust-soft: #3a2219; --olive: #a9b994; --olive-soft: #262d22; --sage: #7f8f6c;
    --line: rgba(239, 232, 218, .14); --card: rgba(31, 35, 28, .78); --card-solid: #1f231c;
    --on-rust: #1b0f0a; --on-olive: #141712; --glow: #6b4128;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 16px 40px -16px rgba(0, 0, 0, .6);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper: #141712; --paper-2: #1c2019; --sand: #2b2f26; --ink: #efe8da; --muted: #aeac9f;
  --rust: #e27652; --rust-soft: #3a2219; --olive: #a9b994; --olive-soft: #262d22; --sage: #7f8f6c;
  --line: rgba(239, 232, 218, .14); --card: rgba(31, 35, 28, .78); --card-solid: #1f231c;
  --on-rust: #1b0f0a; --on-olive: #141712; --glow: #6b4128;
  --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 16px 40px -16px rgba(0, 0, 0, .6);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html, body { height: 100%; }
html, .main { overflow-x: clip; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 16px/1.5 var(--sans); font-optical-sizing: auto; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
h1, h2, h3 { font-family: var(--display); font-weight: 450; font-variation-settings: "SOFT" 60; line-height: 1.08; letter-spacing: -.015em; text-wrap: balance; margin: 0; }
h1 { font-size: clamp(2rem, 6.5vw, 3.25rem); }
h2 { font-size: clamp(1.45rem, 4vw, 1.9rem); }
h3 { font-size: 1.2rem; }
p { margin: 0; text-wrap: pretty; }
button, input, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid var(--rust); outline-offset: 3px; border-radius: 8px; }
svg[aria-hidden="true"] { width: 1.25em; height: 1.25em; flex: none; vertical-align: -.25em; }
.btn-text { display: inline-flex; align-items: center; gap: 6px; text-decoration: none; }
.eyebrow { font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Ambient layer: daylight glow, sun, leaf shadows, grain ---------- */
.ambient { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.ambient .glow { position: absolute; inset: -20%; background:
  radial-gradient(40% 35% at var(--gx, 78%) var(--gy, 12%), color-mix(in oklab, var(--glow) 80%, transparent), transparent 70%),
  radial-gradient(35% 30% at 10% 90%, color-mix(in oklab, var(--olive-soft) 70%, transparent), transparent 70%);
  animation: breathe 22s ease-in-out infinite alternate; transition: background 2s var(--ease-out); }
.ambient .sun { position: absolute; width: clamp(90px, 14vw, 170px); aspect-ratio: 1; border-radius: 50%; left: var(--sun-x, 72%); top: var(--sun-y, 14%); background: radial-gradient(circle at 35% 35%, color-mix(in oklab, var(--rust) 80%, #fff 20%), var(--rust)); opacity: .9; filter: saturate(.95); transition: left 3s var(--ease-out), top 3s var(--ease-out); box-shadow: 0 0 80px 10px color-mix(in oklab, var(--glow) 60%, transparent); }
.ambient .leaves { position: absolute; right: -6%; top: -4%; width: min(70vw, 620px); opacity: .55; filter: blur(7px); transform-origin: 80% 0; animation: sway 14s ease-in-out infinite alternate; }
.ambient .leaves path { fill: color-mix(in oklab, var(--olive) 22%, transparent); }
.ambient .grain { position: absolute; inset: 0; opacity: .07; mix-blend-mode: multiply; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }
@media (max-width: 959px) { .ambient .sun { width: 84px; top: auto; bottom: calc(var(--tab-h) + 96px + env(safe-area-inset-bottom, 0px)); opacity: .75; } }
[hidden] { display: none !important; }
@keyframes breathe { from { transform: translate3d(0, 0, 0) scale(1); } to { transform: translate3d(-3%, 2%, 0) scale(1.06); } }
@keyframes sway { 0% { transform: rotate(-3deg) translate3d(0, 0, 0); } 100% { transform: rotate(4deg) translate3d(-2%, 1.5%, 0); } }
.paused .ambient * { animation-play-state: paused !important; }

/* ---------- Shell ---------- */
.shell { position: relative; z-index: 1; min-height: 100%; display: grid; grid-template-columns: 1fr; }
.rail { display: none; }
.main { min-width: 0; padding: 72px max(16px, env(safe-area-inset-right, 0px)) calc(var(--tab-h) + 28px + env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px)); }
.screen { max-width: 760px; margin: 0 auto; display: grid; gap: 28px; animation: enter .5s var(--ease-out) both; }
@keyframes enter { from { opacity: .001; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.context { display: none; }
.no-tabs .tabs { display: none; }
.no-tabs .main { padding-bottom: 32px; }

.tabs { position: fixed; z-index: 20; left: 0; right: 0; bottom: 0; height: calc(var(--tab-h) + env(safe-area-inset-bottom, 0px)); padding: 6px max(10px, env(safe-area-inset-right, 0px)) env(safe-area-inset-bottom, 0px) max(10px, env(safe-area-inset-left, 0px)); display: grid; grid-template-columns: repeat(4, 1fr); background: color-mix(in oklab, var(--paper) 82%, transparent); backdrop-filter: blur(18px) saturate(1.2); -webkit-backdrop-filter: blur(18px) saturate(1.2); border-top: 1px solid var(--line); }
.tab { display: grid; justify-items: center; align-content: center; gap: 3px; min-height: 48px; border: 0; background: none; color: var(--muted); font-size: .74rem; font-weight: 600; text-decoration: none; position: relative; }
.tab svg { width: 24px; height: 24px; transition: transform .4s var(--spring); }
.tab[aria-current="page"] { color: var(--rust); }
.tab[aria-current="page"] svg { transform: translateY(-2px) scale(1.08); }
.tab[aria-current="page"]::after { content: ""; position: absolute; top: 2px; width: 6px; height: 6px; border-radius: 50%; background: var(--rust); view-transition-name: tabdot; }
.tab .badge { position: absolute; top: 6px; left: calc(50% + 8px); min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--rust); color: var(--on-rust); font-size: .68rem; display: grid; place-items: center; }

/* Prototype bar */
.proto { position: fixed; z-index: 30; top: 0; left: 0; right: 0; padding: calc(10px + env(safe-area-inset-top, 0px)) max(16px, env(safe-area-inset-right, 0px)) 10px max(16px, env(safe-area-inset-left, 0px)); display: flex; align-items: center; justify-content: space-between; gap: 10px; pointer-events: none; }
.proto > * { pointer-events: auto; }
.proto::before { content: ""; position: absolute; inset: 0 0 -18px; z-index: -1; pointer-events: none; background: linear-gradient(to bottom, color-mix(in oklab, var(--paper) 94%, transparent) 55%, transparent); }
.journey .st { white-space: nowrap; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-family: var(--display); font-size: 1.25rem; font-weight: 500; text-decoration: none; color: var(--ink); }
.brand-mark { width: 26px; height: 26px; position: relative; }
.brand-mark::before { content: ""; position: absolute; left: 0; top: 0; width: 16px; height: 16px; border-radius: 50%; background: var(--rust); }
.brand-mark::after { content: ""; position: absolute; right: 0; bottom: 0; width: 14px; height: 18px; border-radius: 7px 7px 2px 2px; border: 3.5px solid var(--olive); border-bottom: 0; }
.proto-menu { position: relative; }
.proto-menu summary { list-style: none; display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 14px; border-radius: 999px; background: var(--card); border: 1px solid var(--line); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); font-size: .82rem; font-weight: 600; cursor: pointer; }
.proto-menu summary::-webkit-details-marker { display: none; }
.proto-menu summary .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--sage); }
.proto-panel { position: absolute; right: 0; top: 48px; width: min(320px, calc(100vw - 32px)); max-height: min(75vh, 640px); overflow: auto; padding: 16px; border-radius: var(--r-m); background: var(--card-solid); border: 1px solid var(--line); box-shadow: var(--shadow); display: grid; gap: 14px; animation: pop .35s var(--spring) both; transform-origin: top right; }
@keyframes pop { from { opacity: 0; transform: scale(.94) translateY(-6px); } to { opacity: 1; transform: none; } }
.proto-panel ol { margin: 0; padding: 0; list-style: none; display: grid; gap: 2px; }
.proto-panel a { display: flex; gap: 10px; padding: 8px 10px; border-radius: 10px; color: var(--ink); text-decoration: none; font-size: .92rem; }
.proto-panel a:hover, .proto-panel a[aria-current="page"] { background: var(--paper-2); }
.proto-panel a span { color: var(--muted); font-variant-numeric: tabular-nums; width: 1.4em; }
.seg { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; padding: 4px; border-radius: 12px; background: var(--paper-2); }
.seg button { min-height: 36px; border: 0; border-radius: 9px; background: none; font-size: .78rem; font-weight: 600; color: var(--muted); }
.seg button[aria-pressed="true"] { background: var(--card-solid); color: var(--ink); box-shadow: 0 1px 3px rgba(0, 0, 0, .12); }
.switch { display: flex; justify-content: space-between; align-items: center; gap: 12px; font-size: .9rem; }
.switch input { width: 44px; height: 26px; appearance: none; border-radius: 13px; background: var(--sand); position: relative; cursor: pointer; transition: background .2s; }
.switch input::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: var(--card-solid); transition: transform .35s var(--spring); }
.switch input:checked { background: var(--olive); }
.switch input:checked::after { transform: translateX(18px); }

/* ---------- Components ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 24px; border-radius: 999px; border: 1.5px solid transparent; font-weight: 650; font-size: 1rem; text-decoration: none; transition: transform .45s var(--spring), background .2s, box-shadow .2s; -webkit-tap-highlight-color: transparent; }
.btn:active { transform: scale(.96); }
.btn:disabled { opacity: .4; cursor: not-allowed; box-shadow: none; transform: none; }
.btn svg { width: 20px; height: 20px; }
.btn-primary { background: var(--rust); color: var(--on-rust); box-shadow: 0 10px 24px -12px color-mix(in oklab, var(--rust) 80%, transparent); }
.btn-primary:hover { box-shadow: 0 14px 30px -12px color-mix(in oklab, var(--rust) 90%, transparent); }
.btn-olive { background: var(--olive); color: var(--on-olive); }
.btn-ghost { background: transparent; border-color: var(--line); color: var(--ink); }
.btn-ghost:hover { background: var(--card); }
.btn-text { background: none; border: 0; color: var(--muted); min-height: 44px; padding: 0 8px; font-weight: 600; }
.btn-block { width: 100%; }
.row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.stack { display: grid; gap: 12px; }
.panel { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-l); padding: clamp(18px, 4vw, 28px); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: var(--shadow); }
.chip { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--card); font-weight: 550; transition: transform .4s var(--spring), background .2s, border-color .2s, color .2s; }
.chip[aria-pressed="true"], .chip[aria-checked="true"] { background: var(--olive); border-color: var(--olive); color: var(--on-olive); transform: scale(1.03); }
.chip .num { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: var(--rust); color: var(--on-rust); font-size: .78rem; font-weight: 700; animation: popnum .5s var(--spring) both; }
@keyframes popnum { from { transform: scale(0); } to { transform: scale(1); } }
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.tag { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; background: var(--paper-2); font-size: .8rem; font-weight: 600; color: var(--muted); }
.tag.demo { background: color-mix(in oklab, var(--sage) 22%, transparent); color: var(--ink); }
.field { display: grid; gap: 8px; }
.field label { font-weight: 600; font-size: .92rem; }
.input { min-height: 54px; width: 100%; padding: 0 18px; border-radius: 16px; border: 1.5px solid var(--line); background: var(--card-solid); font-size: 1.05rem; transition: border-color .2s, box-shadow .2s; }
.input:focus { outline: none; border-color: var(--rust); box-shadow: 0 0 0 4px color-mix(in oklab, var(--rust) 18%, transparent); }
textarea.input { padding: 14px 18px; min-height: 120px; resize: vertical; line-height: 1.5; }
.otp { display: grid; grid-template-columns: repeat(6, minmax(0, 52px)); gap: 8px; }
.otp input { height: 60px; text-align: center; font-size: 1.5rem; font-weight: 650; padding: 0; }
.toast { position: fixed; z-index: 40; left: 50%; bottom: calc(var(--tab-h) + 18px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); padding: 12px 18px; border-radius: 999px; background: var(--ink); color: var(--paper); font-weight: 600; font-size: .92rem; box-shadow: var(--shadow); animation: toast 2.8s var(--ease-out) both; max-width: calc(100vw - 32px); }
@keyframes toast { 0% { opacity: 0; transform: translate(-50%, 16px); } 10%, 85% { opacity: 1; transform: translate(-50%, 0); } 100% { opacity: 0; transform: translate(-50%, 8px); } }

/* Portraits from the fictional sprite (3 columns). */
.portrait { position: relative; overflow: hidden; background: var(--sand); border-radius: var(--arch); aspect-ratio: 4 / 5; }
.portrait img { position: absolute; top: 0; height: 100%; width: 300%; max-width: none; object-fit: cover; }
.portrait[data-i="0"] img { left: 0; }
.portrait[data-i="1"] img { left: -100%; }
.portrait[data-i="2"] img { left: -200%; }
.portrait .ai { position: absolute; left: 12px; bottom: 12px; padding: 4px 10px; border-radius: 999px; background: rgba(20, 23, 18, .55); color: #f6f1e7; font-size: .72rem; font-weight: 600; backdrop-filter: blur(6px); }
.mono { display: grid; place-items: center; border-radius: var(--arch); aspect-ratio: 4 / 5; background: linear-gradient(160deg, var(--olive-soft), var(--sand)); font-family: var(--display); font-size: 2rem; color: var(--olive); }
.avatar { width: 44px; height: 44px; flex: none; border-radius: 50%; aspect-ratio: 1; }
.avatar img { width: 300%; }

/* ---------- Login ---------- */
.hero-login { min-height: calc(100dvh - 120px); display: grid; align-content: center; gap: 28px; max-width: 560px; }
.hero-login h1 { font-size: clamp(2.6rem, 10vw, 4.6rem); font-weight: 380; font-variation-settings: "SOFT" 100; }
.hero-login h1 em { font-style: italic; color: var(--rust); }
.kinetic span { display: inline-block; animation: rise .9s var(--spring) both; animation-delay: calc(var(--i) * 70ms + 120ms); }
@keyframes rise { from { opacity: 0; transform: translateY(.45em) rotate(2deg); font-variation-settings: "SOFT" 0, "wght" 250; } to { opacity: 1; transform: none; } }
.promise { display: grid; gap: 10px; }
.promise li { display: flex; gap: 12px; align-items: flex-start; }
.promise svg { width: 22px; height: 22px; color: var(--olive); flex: none; margin-top: 2px; }
ul.plain { list-style: none; padding: 0; margin: 0; }

/* ---------- Onboarding ---------- */
.thread { display: grid; grid-template-columns: repeat(var(--n, 3), 1fr); gap: 6px; }
.thread i { height: 4px; border-radius: 2px; background: var(--line); overflow: hidden; position: relative; }
.thread i::after { content: ""; position: absolute; inset: 0; background: var(--rust); transform: scaleX(var(--p, 0)); transform-origin: left; transition: transform .8s var(--spring); }
.voice { display: grid; justify-items: center; gap: 18px; padding: 12px 0; }
.mic { width: 132px; height: 132px; border-radius: 50%; border: 0; background: var(--rust); color: var(--on-rust); position: relative; display: grid; place-items: center; box-shadow: 0 18px 40px -18px var(--rust); transition: transform .5s var(--spring); }
.mic svg { width: 40px; height: 40px; }
.mic::before, .mic::after { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--rust); opacity: 0; }
.mic.rec { transform: scale(1.06); }
.mic.rec::before { animation: ring 1.6s var(--ease-out) infinite; }
.mic.rec::after { animation: ring 1.6s .8s var(--ease-out) infinite; }
@keyframes ring { from { opacity: .6; transform: scale(1); } to { opacity: 0; transform: scale(1.7); } }
.wave { display: flex; align-items: center; gap: 4px; height: 44px; }
.wave b { width: 5px; border-radius: 3px; background: var(--olive); height: 8px; transition: height .12s; }
.draft { white-space: pre-wrap; min-height: 6em; }
.caret::after { content: ""; display: inline-block; width: 2px; height: 1.1em; vertical-align: -.2em; background: var(--rust); margin-left: 2px; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

/* ---------- S.T.A.R. cards (Mihai Stanca's system, colours from the book, softened) ---------- */
.star-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.star-card { position: relative; display: grid; gap: 6px; align-content: start; justify-items: start; text-align: left; padding: 16px; min-height: 150px; border-radius: 24px; border: 2px solid color-mix(in oklab, var(--c) 35%, transparent); background: color-mix(in oklab, var(--c) 10%, var(--card-solid)); transition: transform .45s var(--spring), background .2s, border-color .2s; }
.star-card .hex { width: 40px; height: 44px; display: grid; place-items: center; clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%); background: var(--c); color: var(--on, #fff); font-family: var(--display); font-weight: 600; font-size: 1.2rem; }
.star-card b { font-family: var(--display); font-size: 1.15rem; font-weight: 500; }
.star-card .small { color: var(--muted); line-height: 1.35; }
.star-card .num { position: absolute; top: 12px; right: 12px; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--c); color: var(--on, #fff); font-weight: 700; animation: popnum .5s var(--spring) both; }
.star-card[aria-pressed="true"] { border-color: var(--c); background: color-mix(in oklab, var(--c) 22%, var(--card-solid)); transform: scale(1.02); }
.star-reveal { animation: unfold .7s var(--spring) both; }
.star-tip { border-left: 6px solid var(--c); }
@media (max-width: 360px) { .star-grid { grid-template-columns: 1fr; } }

/* ---------- Home ---------- */
.greet h1 { font-weight: 400; }
.journey { display: grid; grid-template-columns: auto 1fr auto 1fr auto; align-items: center; gap: 8px; font-size: .8rem; font-weight: 650; color: var(--muted); }
.journey .st { display: grid; justify-items: center; gap: 6px; }
.journey .st i { width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--line); background: var(--paper); }
.journey .st.on { color: var(--rust); }
.journey .st.on i { background: var(--rust); border-color: var(--rust); box-shadow: 0 0 0 6px color-mix(in oklab, var(--rust) 16%, transparent); }
.journey .ln { height: 2px; min-width: 24px; margin-top: -22px; border-radius: 1px; background: var(--rust); transform-origin: left; animation: grow 1.2s .3s var(--spring) both; }
.journey .ln.later { background: repeating-linear-gradient(90deg, var(--line) 0 4px, transparent 4px 9px); animation: none; }
@keyframes grow { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.avatar .ai { display: none; }
.next { display: grid; grid-template-columns: auto 1fr; gap: 16px; align-items: center; }
.drop-head { display: flex; justify-content: space-between; align-items: end; gap: 12px; flex-wrap: wrap; }
.drop { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(250px, 78%); gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 6px 2px 18px; scrollbar-width: none; overscroll-behavior-x: contain; }
.drop::-webkit-scrollbar { display: none; }
.intro-card { scroll-snap-align: start; display: grid; gap: 14px; padding: 12px 12px 18px; border-radius: 36px 36px var(--r-l) var(--r-l); background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow); text-decoration: none; color: inherit; transition: transform .5s var(--spring); }
.intro-card:hover { transform: translateY(-4px) rotate(-.4deg); }
.intro-card .meta { padding: 0 8px; display: grid; gap: 6px; }
.intro-card h3 { font-size: 1.5rem; }
.reasons-mini { display: flex; gap: 6px; flex-wrap: wrap; }
.slot-note { scroll-snap-align: start; display: grid; align-content: center; gap: 12px; padding: 24px; border-radius: var(--r-l); border: 1.5px dashed var(--line); color: var(--muted); }
@supports (animation-timeline: view()) {
  .drop > * { animation: cardin linear both; animation-timeline: view(inline); animation-range: entry 0% cover 40%; }
  @keyframes cardin { from { opacity: .35; transform: scale(.9) rotate(1.5deg); } to { opacity: 1; transform: none; } }
}
.event-strip { display: grid; grid-template-columns: 96px 1fr; gap: 16px; align-items: center; text-decoration: none; color: inherit; }
.event-strip .thumb { aspect-ratio: 1; border-radius: 24px; overflow: hidden; }
.event-strip .thumb img { width: 100%; height: 100%; object-fit: cover; }
.dilemma { background: var(--olive); color: var(--on-olive); border: 0; }
.dilemma .eyebrow { color: color-mix(in oklab, var(--on-olive) 70%, transparent); }
.dilemma .chip { background: transparent; border-color: color-mix(in oklab, var(--on-olive) 35%, transparent); color: var(--on-olive); }
.dilemma .chip[aria-pressed="true"] { background: var(--on-olive); color: var(--olive); }

/* ---------- Profile ---------- */
.profile-top { display: grid; gap: 20px; }
.profile-top .portrait { width: min(100%, 420px); justify-self: center; view-transition-name: hero-portrait; }
.reasons { display: grid; gap: 12px; }
.reason { display: grid; grid-template-columns: 40px 1fr; gap: 12px; align-items: start; }
.reason .ic { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--olive-soft); color: var(--olive); }
.reason .ic svg { width: 20px; height: 20px; }
.reason.talk .ic { background: var(--rust-soft); color: var(--rust); }
.qa { display: grid; gap: 4px; padding: 16px 0; border-top: 1px solid var(--line); }
.qa dt { font-size: .85rem; color: var(--muted); font-weight: 600; }
.qa dd { margin: 0; font-family: var(--display); font-size: 1.2rem; line-height: 1.35; }
.voice-note { display: flex; align-items: center; gap: 14px; padding: 10px 16px 10px 10px; border-radius: 999px; background: var(--paper-2); border: 0; width: 100%; text-align: left; }
.voice-note .play { width: 44px; height: 44px; border-radius: 50%; background: var(--olive); color: var(--on-olive); display: grid; place-items: center; flex: none; }
.voice-note .bars { display: flex; gap: 3px; align-items: center; flex: 1; height: 28px; }
.voice-note .bars b { flex: 1; max-width: 4px; border-radius: 2px; background: color-mix(in oklab, var(--olive) 45%, transparent); }
.voice-note.playing .bars b { animation: eq .9s ease-in-out infinite alternate; animation-delay: calc(var(--d) * -1s); background: var(--olive); }
@keyframes eq { from { transform: scaleY(.35); } to { transform: scaleY(1); } }
.decide { position: sticky; bottom: calc(var(--tab-h) + 10px + env(safe-area-inset-bottom, 0px)); z-index: 5; display: grid; gap: 8px; padding: 12px; border-radius: 28px; background: color-mix(in oklab, var(--paper) 86%, transparent); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border: 1px solid var(--line); box-shadow: var(--shadow); }
.decide .row { justify-content: center; }
.decide-row { grid-template-columns: auto auto 1fr; align-items: center; padding: 8px; border-radius: 999px; }
.decide-row .btn { min-height: 48px; padding: 0 18px; white-space: nowrap; }
@media (max-width: 420px) { .decide-row .btn svg { display: none; } .decide-row .btn { padding: 0 14px; } }
@media (max-width: 959px) { .profile-top .portrait { width: min(100%, 42vh); } }

/* ---------- Mutual moment ---------- */
.mutual { min-height: calc(100dvh - 160px); display: grid; align-content: center; justify-items: center; text-align: center; gap: 26px; }
.orbs { position: relative; width: min(320px, 82vw); aspect-ratio: 16 / 10; }
.orb { position: absolute; top: 0; width: 62.5%; aspect-ratio: 1; border-radius: 50%; mix-blend-mode: multiply; }
.orb.you { left: 0; background: var(--rust); animation: inL 1.4s var(--spring) both; }
.orb.them { right: 0; background: var(--sage); animation: inR 1.4s var(--spring) both; }
:root[data-theme="dark"] .orb { mix-blend-mode: screen; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .orb { mix-blend-mode: screen; } }
@keyframes inL { from { transform: translateX(-60%) scale(.7); opacity: 0; } to { transform: none; opacity: .95; } }
@keyframes inR { from { transform: translateX(60%) scale(.7); opacity: 0; } to { transform: none; opacity: .95; } }
.orbs figcaption { position: absolute; inset: auto 0 -28px; display: flex; justify-content: space-between; font-weight: 650; font-size: .85rem; color: var(--muted); }
.shared { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; max-width: 420px; }
.shared .tag { animation: popnum .6s var(--spring) both; animation-delay: calc(1s + var(--i) * 120ms); }

/* ---------- Chat ---------- */
.chat { display: grid; gap: 14px; }
.chat-head { display: flex; align-items: center; gap: 12px; }
.chat-head .avatar { width: 52px; height: 52px; }
.stages { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; }
.stages button { flex: none; min-height: 36px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--line); background: none; font-size: .8rem; font-weight: 600; color: var(--muted); }
.stages button[aria-pressed="true"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.msgs { display: grid; gap: 10px; padding: 8px 0; }
.msg { max-width: 82%; padding: 12px 16px; border-radius: 22px; line-height: 1.45; animation: bubble .45s var(--spring) both; }
.msg.them { background: var(--card-solid); border: 1px solid var(--line); border-bottom-left-radius: 6px; }
.msg.me { justify-self: end; background: var(--olive); color: var(--on-olive); border-bottom-right-radius: 6px; }
.msg time { display: block; font-size: .72rem; opacity: .7; margin-top: 4px; }
@keyframes bubble { from { opacity: 0; transform: translateY(10px) scale(.96); } to { opacity: 1; transform: none; } }
.day { justify-self: center; font-size: .75rem; color: var(--muted); font-weight: 600; }
.composer { position: sticky; bottom: calc(var(--tab-h) + 10px + env(safe-area-inset-bottom, 0px)); z-index: 5; display: grid; gap: 10px; }
.composer .bar { display: grid; grid-template-columns: auto 1fr auto; gap: 8px; align-items: end; padding: 8px; border-radius: 28px; background: color-mix(in oklab, var(--paper) 88%, transparent); border: 1px solid var(--line); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); box-shadow: var(--shadow); }
.composer textarea { border: 0; background: none; resize: none; min-height: 44px; max-height: 140px; padding: 11px 6px; line-height: 1.4; }
.composer textarea:focus { outline: none; }
.icon-btn { width: 44px; height: 44px; border-radius: 50%; border: 0; display: grid; place-items: center; background: var(--paper-2); color: var(--ink); transition: transform .4s var(--spring); }
.icon-btn svg { width: 22px; height: 22px; }
.icon-btn.send { background: var(--rust); color: var(--on-rust); }
.icon-btn[aria-expanded="true"] { background: var(--ink); color: var(--paper); transform: rotate(-8deg); }
.ideas { display: grid; gap: 10px; padding: 14px; border-radius: 26px; background: var(--card-solid); border: 1px solid var(--line); box-shadow: var(--shadow); animation: pop .4s var(--spring) both; transform-origin: bottom left; }
.idea { text-align: left; padding: 12px 14px; border-radius: 16px; border: 1px solid var(--line); background: var(--paper); line-height: 1.4; animation: fan .5s var(--spring) both; animation-delay: calc(var(--i) * 60ms); }
.idea:hover { border-color: var(--rust); }
@keyframes fan { from { opacity: 0; transform: translateY(12px) rotate(calc(var(--i) * 1.5deg - 1.5deg)); } to { opacity: 1; transform: none; } }
.suggest-date { display: grid; grid-template-columns: 1fr auto; gap: 12px; align-items: center; padding: 14px 16px; border-radius: 22px; background: var(--rust-soft); }

/* ---------- Date planner ---------- */
.week { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.dayc { display: grid; justify-items: center; gap: 6px; padding: 10px 0; border-radius: 16px; border: 1px solid var(--line); background: var(--card); font-size: .78rem; font-weight: 600; }
.dayc b { font-family: var(--display); font-size: 1.25rem; font-weight: 500; }
.dayc .dots { display: flex; gap: 3px; }
.dayc .dots i { width: 7px; height: 7px; border-radius: 50%; background: var(--line); }
.dayc .dots i.y { background: var(--rust); }
.dayc .dots i.t { background: var(--sage); }
.dayc.both { border-color: var(--olive); background: var(--olive-soft); }
.options { display: grid; gap: 10px; }
.opt { display: grid; grid-template-columns: auto 1fr auto; gap: 14px; align-items: center; padding: 14px 16px; border-radius: 20px; border: 1.5px solid var(--line); background: var(--card); text-align: left; transition: transform .45s var(--spring), border-color .2s, background .2s; }
.opt[aria-checked="true"] { border-color: var(--olive); background: var(--olive-soft); transform: scale(1.01); }
.opt .radio { width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--line); display: grid; place-items: center; }
.opt[aria-checked="true"] .radio { border-color: var(--olive); }
.opt[aria-checked="true"] .radio::after { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--olive); animation: popnum .4s var(--spring); }
.ticket { position: relative; display: grid; gap: 14px; padding: 24px; border-radius: 28px; background: var(--olive); color: var(--on-olive); overflow: hidden; animation: unfold .9s var(--spring) both; transform-origin: top; }
.ticket::before { content: ""; position: absolute; width: 180px; height: 180px; border-radius: 50%; right: -50px; top: -60px; background: var(--rust); opacity: .9; }
.ticket > * { position: relative; }
.ticket .eyebrow { color: color-mix(in oklab, var(--on-olive) 70%, transparent); }
.ticket h2 { font-size: clamp(1.7rem, 5vw, 2.2rem); }
.ticket .btn-ghost { color: var(--on-olive); border-color: color-mix(in oklab, var(--on-olive) 35%, transparent); }
@keyframes unfold { from { opacity: 0; transform: perspective(800px) rotateX(-40deg) translateY(-10px); } to { opacity: 1; transform: none; } }
.tip { display: grid; grid-template-columns: 48px 1fr; gap: 14px; }
.tip .seal { width: 48px; height: 48px; border-radius: 50%; background: var(--sand); display: grid; place-items: center; font-family: var(--display); font-size: 1.2rem; }

/* ---------- Events ---------- */
.ev-hero { position: relative; border-radius: var(--r-l); overflow: hidden; min-height: 360px; display: grid; align-content: end; color: #fff8ef; text-decoration: none; isolation: isolate; }
.ev-hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transform: scale(1.08); animation: kenburns 24s ease-in-out infinite alternate; }
.ev-hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(20, 16, 10, 0) 30%, rgba(20, 16, 10, .78)); }
@keyframes kenburns { from { transform: scale(1.08) translate3d(0, 0, 0); } to { transform: scale(1.16) translate3d(-2%, -1.5%, 0); } }
.ev-hero .body { padding: 24px; display: grid; gap: 10px; }
.ev-hero h2 { font-size: clamp(1.8rem, 6vw, 2.6rem); color: #fff8ef; }
.ev-hero .tag { background: rgba(255, 248, 239, .18); color: #fff8ef; backdrop-filter: blur(6px); }
.ev-list { display: grid; gap: 14px; }
.ev-card { display: grid; grid-template-columns: 76px 1fr; gap: 16px; align-items: center; padding: 14px; border-radius: 24px; background: var(--card); border: 1px solid var(--line); text-decoration: none; color: inherit; transition: transform .45s var(--spring); }
.ev-card:hover { transform: translateX(4px); }
.datebox { display: grid; justify-items: center; align-content: center; aspect-ratio: 1; border-radius: 20px; background: var(--paper-2); font-weight: 650; font-size: .75rem; text-transform: uppercase; letter-spacing: .06em; }
.datebox b { font-family: var(--display); font-size: 1.7rem; font-weight: 500; letter-spacing: 0; line-height: 1; }
.balance { display: grid; gap: 6px; }
.balance .bar { display: flex; height: 8px; border-radius: 4px; overflow: hidden; background: var(--paper-2); }
.balance .bar i { display: block; height: 100%; transition: width 1s var(--spring); }
.timeline { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.timeline li { display: grid; grid-template-columns: 64px 18px 1fr; gap: 12px; padding-bottom: 18px; position: relative; }
.timeline time { font-weight: 700; font-variant-numeric: tabular-nums; }
.timeline .node { width: 14px; height: 14px; border-radius: 50%; background: var(--rust); margin-top: 5px; position: relative; z-index: 1; }
.timeline li:not(:last-child)::before { content: ""; position: absolute; left: 82px; top: 18px; bottom: 0; width: 2px; background: var(--line); }

/* ---------- Ticket QR ---------- */
.pass { position: relative; display: grid; justify-items: center; gap: 18px; padding: 28px 20px; border-radius: 32px; background: var(--card-solid); border: 1px solid var(--line); box-shadow: var(--shadow); overflow: hidden; }
.qr { position: relative; width: min(240px, 70vw); aspect-ratio: 1; border-radius: 18px; padding: 14px; background: #fffdf8; }
.qr canvas { width: 100%; height: 100%; image-rendering: pixelated; display: block; }
.qr::after { content: ""; position: absolute; inset: 0; border-radius: 18px; pointer-events: none; background: radial-gradient(60% 60% at var(--mx, 30%) var(--my, 20%), rgba(255, 210, 160, .55), rgba(170, 220, 190, .25) 40%, transparent 70%); mix-blend-mode: multiply; transition: background .15s; }
.pass .cut { width: 100%; border-top: 2px dashed var(--line); }

/* ---------- After event / reflection ---------- */
.people { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 14px; }
.person { display: grid; gap: 10px; }
.person .name { font-weight: 650; }
.pick { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.pick button { min-height: 44px; border-radius: 14px; border: 1.5px solid var(--line); background: var(--card); font-weight: 650; font-size: .85rem; transition: transform .4s var(--spring), background .2s; }
.pick button[aria-pressed="true"] { background: var(--rust); border-color: var(--rust); color: var(--on-rust); transform: scale(1.04); }
.pick button.maybe[aria-pressed="true"] { background: var(--sage); border-color: var(--sage); color: #fff; }
.countdown { display: flex; align-items: center; gap: 16px; }
.countdown .mini-sun { width: 54px; height: 54px; border-radius: 50%; background: var(--rust); animation: dip 6s ease-in-out infinite; flex: none; }
@keyframes dip { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(8px) scale(.94); opacity: .8; } }
.closing { display: grid; gap: 12px; padding: 18px; border-radius: 22px; background: var(--paper-2); }

/* ---------- Survey ---------- */
.survey { max-width: 620px; margin: 0 auto; display: grid; gap: 24px; min-height: calc(100dvh - 140px); align-content: start; }
.survey .q { display: grid; gap: 18px; animation: qin .55s var(--spring) both; }
.survey.back .q { animation-name: qback; }
@keyframes qin { from { opacity: 0; transform: translateX(28px); } to { opacity: 1; transform: none; } }
@keyframes qback { from { opacity: 0; transform: translateX(-28px); } to { opacity: 1; transform: none; } }
.survey h1 { font-size: clamp(1.7rem, 6vw, 2.4rem); }
.answers { display: grid; gap: 10px; }
.ans { display: grid; grid-template-columns: 28px 1fr; gap: 12px; align-items: center; min-height: 56px; padding: 12px 16px; border-radius: 18px; border: 1.5px solid var(--line); background: var(--card); text-align: left; font-weight: 500; transition: transform .4s var(--spring), border-color .2s, background .2s; }
.ans .box { width: 24px; height: 24px; border-radius: 50%; border: 2px solid var(--line); display: grid; place-items: center; }
.ans.multi .box { border-radius: 7px; }
.ans[aria-checked="true"] { border-color: var(--olive); background: var(--olive-soft); }
.ans[aria-checked="true"] .box { border-color: var(--olive); background: var(--olive); color: var(--on-olive); }
.ans[aria-checked="true"] .box::after { content: "✓"; font-size: .8rem; font-weight: 800; animation: popnum .35s var(--spring); }
.ans:disabled { opacity: .45; }
.scale { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
.scale .ans { grid-template-columns: 1fr; justify-items: center; text-align: center; padding: 10px 4px; font-size: .82rem; }
.scale .ans .box { display: none; }
.scale .ans b { font-family: var(--display); font-size: 1.5rem; font-weight: 500; }
.survey-nav { display: flex; justify-content: space-between; align-items: center; gap: 12px; position: sticky; bottom: calc(14px + env(safe-area-inset-bottom, 0px)); padding: 10px; border-radius: 999px; background: color-mix(in oklab, var(--paper) 86%, transparent); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border: 1px solid var(--line); }
.concept { display: grid; gap: 14px; padding: 22px; border-radius: 28px; background: var(--olive); color: var(--on-olive); }
.concept .row span { display: inline-flex; gap: 8px; align-items: center; }
.price-row { display: grid; grid-template-columns: 1fr auto; gap: 10px; align-items: center; }
.price-row .input { max-width: 160px; }

/* ---------- Desktop ---------- */
@media (min-width: 960px) {
  .shell { grid-template-columns: 248px minmax(0, 1fr); }
  .rail { display: flex; flex-direction: column; gap: 6px; position: sticky; top: 0; height: 100dvh; padding: 28px 18px; border-right: 1px solid var(--line); background: color-mix(in oklab, var(--paper) 60%, transparent); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
  .rail .brand { margin: 0 10px 26px; }
  .rail a { display: flex; align-items: center; gap: 14px; min-height: 48px; padding: 0 14px; border-radius: 14px; color: var(--ink); text-decoration: none; font-weight: 600; transition: background .2s; }
  .rail a svg { width: 22px; height: 22px; color: var(--muted); }
  .rail a:hover { background: var(--card); }
  .rail a[aria-current="page"] { background: var(--card-solid); box-shadow: var(--shadow); color: var(--rust); }
  .rail a[aria-current="page"] svg { color: var(--rust); }
  .rail .foot { margin-top: auto; font-size: .8rem; color: var(--muted); padding: 0 12px; }
  .tabs { display: none; }
  .main { padding: 88px 40px 48px; }
  .proto .brand { visibility: hidden; }
  .decide, .composer { bottom: 18px; }
  .toast { bottom: 28px; }
  .drop { grid-auto-columns: minmax(260px, 1fr); grid-auto-flow: column; }
  .profile-top { grid-template-columns: 380px 1fr; align-items: start; }
  .profile-top .portrait { position: sticky; top: 88px; }
  .no-tabs .shell { grid-template-columns: 1fr; }
  .no-tabs .rail { display: none; }
  .no-tabs .proto .brand { visibility: visible; }
}
@media (min-width: 1240px) {
  .shell.has-context { grid-template-columns: 248px minmax(0, 1fr) 340px; }
  .has-context .context { display: grid; align-content: start; gap: 18px; position: sticky; top: 0; height: 100dvh; overflow: auto; padding: 88px 28px 28px 0; }
}

/* ---------- Motion preferences ---------- */
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .32s; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .ambient .glow, .ambient .leaves { animation: none !important; }
}
:root[data-motion="reduced"] *, :root[data-motion="reduced"] *::before, :root[data-motion="reduced"] *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
