/* Fresh Squeeze — Citrus Sunrise theme. Crisp, juicy orange, warm ivory, and sleek glassmorphism. */

:root {
  --charcoal:  #241508;
  --ink:       #38200E;
  --gray:      #D8D3CA;
  --gray-2:    #EFECE6;
  --ivory:     #FFFDF7;
  --slate:     #FF7A00;
  --slate-deep:#E65A00;
  --citrus-gold:#FFA726;

  --serif: 'Outfit', 'Lora', system-ui, -apple-system, sans-serif;
  --hair: 1px solid rgba(180, 100, 30, 0.25);
  --r: 16px; --r-sm: 10px;
  --shadow-card: 0 16px 38px rgba(50, 25, 0, 0.18);
  --shadow-soft: 0 8px 24px rgba(255, 122, 0, 0.22);
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; background: #181410; color: var(--ink); font-family: var(--serif); overflow: hidden; overscroll-behavior: none; -webkit-tap-highlight-color: transparent; }
#stage { display: block; position: fixed; inset: 0; width: 100%; height: 100%; touch-action: none; }
#cam { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }

.vignette { position: fixed; inset: 0; pointer-events: none; z-index: 1; background: radial-gradient(125% 105% at 50% 40%, transparent 56%, rgba(40, 40, 40, 0.28) 100%); }
.grain { position: fixed; inset: 0; pointer-events: none; z-index: 2; opacity: 0.10; mix-blend-mode: soft-light;
  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='0.8' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }
.noscript { position: fixed; z-index: 5; inset: 0; display: grid; place-items: center; }

/* ---------------------------------------------------------------- top bar */
.bar { position: fixed; z-index: 4; top: calc(18px + var(--safe-top)); left: 0; right: 0; display: flex; justify-content: space-between; align-items: flex-start; padding: 0 20px; gap: 16px; pointer-events: none; }
.bar > * { pointer-events: auto; }

.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ivory); }
.brand .mark { flex: none; filter: drop-shadow(0 2px 10px rgba(30, 30, 30, 0.6)); }
.wordmark { display: flex; flex-direction: column; }
.wordmark .name { font-family: var(--serif); font-weight: 600; font-size: 30px; line-height: 0.98; letter-spacing: -0.01em; text-shadow: 0 2px 14px rgba(25, 25, 25, 0.8), 0 0 3px rgba(25, 25, 25, 0.65); }
.wordmark .name em { font-style: italic; font-weight: 500; color: #cfd6df; }
.wordmark .tagline { margin-top: 6px; font-family: var(--serif); font-weight: 500; font-size: 10px; letter-spacing: 0.3em; text-transform: uppercase; color: var(--ivory); opacity: 0.85; text-shadow: 0 1px 8px rgba(25, 25, 25, 0.85); }

/* Guide: top-right type over the scene, so it never covers your face. A soft
   wash falls from the top edge so the words read over any picture. */
.scrim { position: fixed; z-index: 3; left: 0; right: 0; top: 0; height: 34vh; pointer-events: none;
  background: linear-gradient(to bottom, rgba(18, 18, 24, 0.62) 0%, rgba(18, 18, 24, 0.34) 45%, rgba(18, 18, 24, 0.08) 78%, transparent 100%); }

.coach { width: min(370px, 52vw); text-align: right; pointer-events: none; }
.coach[hidden] { display: none; }
.coach-rule { display: none; }
.coach-head { display: flex; justify-content: flex-end; align-items: baseline; gap: 10px; }
.coach .step { font-weight: 600; font-size: 11px; letter-spacing: 0.24em; text-transform: uppercase; color: #c9d2dc; text-shadow: 0 1px 9px rgba(18, 18, 24, 0.9); }
.coach .state { font-weight: 500; font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ivory); opacity: 0.82; }
.coach .hint { margin: 8px 0 12px auto; font-weight: 500; font-size: clamp(17px, 1.55vw, 21px); line-height: 1.3; letter-spacing: -0.005em; color: var(--ivory); text-shadow: 0 2px 16px rgba(18, 18, 24, 0.95), 0 0 3px rgba(18, 18, 24, 0.8); min-height: 2.6em; }
.coach .hint.soft { font-style: italic; font-weight: 400; opacity: 0.92; }
.gauge { display: flex; align-items: center; justify-content: flex-end; }
.meter { position: relative; width: 180px; height: 8px; border-radius: 999px; background: rgba(255, 255, 255, 0.2); overflow: hidden; box-shadow: inset 0 1px 3px rgba(0,0,0,0.5); border: 1px solid rgba(255,255,255,0.25); }
.meter span { display: block; height: 100%; width: 0; border-radius: 999px; background: linear-gradient(90deg, #FFD54F, #FFA726, #FF6D00); box-shadow: 0 0 14px rgba(255, 122, 0, 0.9); transition: width .12s linear; }
.meter.loading span { background: rgba(255, 255, 227, 0.8); }
.coach .debug { margin: 9px 0 0; font-size: 11px; color: var(--ivory); opacity: 0.8; letter-spacing: 0.02em; text-shadow: 0 1px 7px rgba(18, 18, 24, 0.85); }

/* A new instruction lifts and fades in so a change is noticed. */
@keyframes caption-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.coach .hint.enter, .coach .step.enter { animation: caption-in .28s cubic-bezier(.2, .7, .3, 1) both; }

/* Buttons: softly rounded, filled or outlined, a gentle lift on hover. */
.btn { font-family: var(--serif); font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; border: var(--hair); border-radius: var(--r-sm); cursor: pointer; text-decoration: none; display: inline-flex; align-items: center; justify-content: center; transition: transform .16s ease, box-shadow .16s ease, background .16s ease, color .16s ease; }
.btn-ghost { flex: none; font-size: 11px; letter-spacing: 0.14em; padding: 2px 0; color: var(--ivory); background: transparent; border: 0; border-radius: 0; text-shadow: 0 1px 8px rgba(18, 18, 24, 0.85); }
.btn-ghost:hover { color: #c9d2dc; text-decoration: underline; text-underline-offset: 4px; }
.btn-cta { width: 100%; font-size: 14px; padding: 16px 18px; color: var(--ivory); background: var(--slate); border-color: var(--slate-deep); box-shadow: var(--shadow-soft); }
.btn-cta:hover { background: var(--slate-deep); transform: translateY(-2px); box-shadow: 0 12px 26px rgba(35, 35, 35, 0.24); }
.btn-cta:active { transform: translateY(0); box-shadow: var(--shadow-soft); }
.btn-cta:disabled { background: var(--gray); color: #6f6f6f; border-color: var(--gray); box-shadow: none; cursor: progress; transform: none; }
.btn:focus-visible, .foot a:focus-visible { outline: 2px solid var(--slate); outline-offset: 3px; }

/* --------------------------------------------------------------- intro sheet */
.sheet { position: fixed; z-index: 4; left: 50%; top: 50%; transform: translate(-50%, -50%); width: min(500px, calc(100vw - 36px)); padding: 34px 34px 28px; background: var(--ivory); border: var(--hair); border-radius: var(--r); box-shadow: 0 30px 70px rgba(30, 30, 30, 0.34); transition: opacity .3s ease, transform .3s ease; }
.sheet[hidden] { display: none; }
.sheet.leaving { opacity: 0; transform: translate(-50%, -47%); pointer-events: none; }
.eyebrow { display: flex; align-items: center; gap: 9px; margin: 0 0 16px; font-size: 11px; font-weight: 600; letter-spacing: 0.24em; text-transform: uppercase; color: var(--slate-deep); }
.eyebrow .tick { width: 8px; height: 8px; border-radius: 50%; background: var(--slate); display: inline-block; }
.eyebrow .badge { margin-left: auto; padding: 3px 9px; border: 1.5px solid var(--charcoal); border-radius: 999px; font-size: 11px; letter-spacing: 0.12em; color: var(--charcoal); }
.age-q { margin: 0 0 8px; font-size: 20px; font-weight: 600; color: var(--charcoal); }
.age .fine { margin: 0 0 18px; font-style: normal; }
.age .fine b { color: var(--charcoal); font-weight: 600; }
.age-actions { display: grid; grid-template-columns: 1fr auto; gap: 10px; align-items: stretch; }
.age-actions .btn-ghost { padding: 0 22px; font-size: 13px; color: var(--charcoal); background: transparent; border: var(--hair); border-radius: var(--r-sm); text-shadow: none; }
.age-actions .btn-ghost:hover { background: var(--charcoal); color: var(--ivory); text-decoration: none; }
.age[hidden], .ready[hidden] { display: none; }
.sheet h1 { margin: 0 0 24px; font-family: var(--serif); font-size: clamp(34px, 6vw, 50px); line-height: 1.03; font-weight: 600; letter-spacing: -0.02em; color: var(--charcoal); }
.sheet h1 em { font-style: italic; font-weight: 500; color: var(--slate); }
.steps { margin: 0 0 26px; padding: 24px 0 4px; list-style: none; display: grid; gap: 16px; border-top: var(--hair); }
.steps li { display: flex; gap: 15px; align-items: flex-start; font-size: 15px; line-height: 1.5; color: var(--ink); }
.steps .num { flex: none; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--slate); color: var(--ivory); font-weight: 600; font-size: 13px; font-style: italic; }
.steps b { color: var(--charcoal); font-weight: 600; }
.fine { margin: 16px 0 0; font-size: 13px; font-style: italic; line-height: 1.5; color: #6f6f6f; }
.fine.error { color: #9a4a3a; font-weight: 600; font-style: normal; }

/* --------------------------------------------------------------- footer */
.foot { position: fixed; z-index: 4; left: 0; right: 0; bottom: calc(16px + var(--safe-bottom)); display: flex; justify-content: center; align-items: center; gap: 10px; pointer-events: none; }
/* Legal line lives in the bottom-right corner, out of the way of the pills. */
.foot .legal { position: absolute; right: 18px; bottom: 0; margin: 0; max-width: 34vw; text-align: right; font-size: 11px; line-height: 1.45; letter-spacing: 0.04em; color: var(--ivory); opacity: 0.85; text-shadow: 0 1px 8px rgba(18, 18, 24, 0.9); }
.foot-btn, .foot a { pointer-events: auto; display: inline-flex; align-items: center; gap: 9px; font-family: var(--serif); font-size: 13px; font-weight: 500; letter-spacing: 0.01em; color: var(--charcoal); text-decoration: none; background: var(--ivory); border: var(--hair); border-radius: 999px; padding: 9px 16px 9px 18px; transition: background .16s ease, color .16s ease; }
.foot-btn { font-family: var(--serif); font-size: 13px; font-weight: 500; letter-spacing: 0.01em; color: var(--charcoal); background: var(--ivory); border: var(--hair); border-radius: 999px; padding: 9px 18px; cursor: pointer; transition: background .16s ease, color .16s ease; }
.foot-btn:hover, .foot a:hover { background: var(--charcoal); color: var(--ivory); }
.foot-btn:focus-visible { outline: 2px solid var(--slate); outline-offset: 3px; }
.foot .li { flex: none; color: var(--slate); transition: color .16s ease; }
.foot a:hover .li { color: var(--ivory); }
.heart { color: var(--slate); display: inline-block; }
.foot a:hover .heart { color: var(--ivory); }

/* --------------------------------------------------------------- responsive */
@media (max-width: 680px) {
  .bar { flex-direction: column; align-items: stretch; gap: 10px; padding: 0 14px; top: calc(12px + var(--safe-top)); }
  .brand { align-self: flex-start; }
  .wordmark .name { font-size: 24px; }
  .scrim { height: 40vh; }
  .coach { width: auto; text-align: left; }
  .coach-head, .gauge { justify-content: flex-start; }
  .coach .hint { margin: 7px auto 11px 0; font-size: 17px; min-height: 0; max-width: 22em; }
  .sheet { top: auto; bottom: calc(58px + var(--safe-bottom)); left: 14px; right: 14px; width: auto; transform: none; padding: 26px 22px 22px; }
  .foot { flex-wrap: wrap; padding: 0 14px; }
  .foot .legal { position: static; flex-basis: 100%; max-width: none; text-align: center; margin-bottom: 2px; }
  .sheet.leaving { transform: translateY(14px); }
}
@media (max-width: 400px) { .wordmark .tagline { display: none; } }
@media (prefers-reduced-motion: reduce) { .btn, .foot a, .foot-btn, .sheet { transition: none; } .btn-cta:hover { transform: none; }
  .coach .hint.enter, .coach .step.enter { animation: none; } }

