/* Ryra onboarding — "Horizon" (2026-11-11)
   Black space, two planets with glowing Ryra-blue rims (after the user's Pinterest reference: cinematic blue horizon).
   No cards: the content floats in the dark gap between the two horizons. One surface level, white pill = primary / chosen. */

@font-face { font-family: Inter; src: url(/start/v/horizon/fonts/inter-latin.woff2) format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: Inter; src: url(/start/v/horizon/fonts/inter-latin-ext.woff2) format("woff2"); font-weight: 100 900; font-display: swap;
  unicode-range: U+0100-02AF, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

@property --a { syntax: "<angle>"; inherits: true; initial-value: 0deg; }
@property --pulse { syntax: "<number>"; inherits: true; initial-value: 1; }

:root {
  color-scheme: dark;
  --bg: #000;
  --ink: #F4F6FB;
  --ink-2: rgba(232, 238, 255, .64);
  --ink-3: rgba(232, 238, 255, .58);
  --field: rgba(255, 255, 255, .065);
  --field-hi: rgba(255, 255, 255, .11);
  --blue: #2359FF;           /* Ryra blue */
  --glow: #2F6BFF;
  --glow-hi: #9DBBFF;
  --ease: cubic-bezier(.22, .8, .2, 1);
  --move: 1.6s;

  /* horizon geometry (desktop). d = planet diameter, y = where its lit edge sits, x = sideways shift */
  --dT: max(2300px, 158vw);
  --dB: max(1750px, 118vw);
  --yT: 19vh; --yB: 83vh;
  --xT: 6vw;  --xB: -3vw;
  --gT: .9;   --gB: .8;      /* glow strength */
}
@supports (height: 1dvh) { :root { --yT: 19dvh; --yB: 83dvh; } }

* { box-sizing: border-box; }
html { background: var(--bg); }
body {
  margin: 0; min-height: 100vh; min-height: 100dvh; background: transparent; color: var(--ink);
  font: 400 16px/1.5 Inter, system-ui, -apple-system, "Segoe UI", sans-serif; letter-spacing: -.011em;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
button, input { font: inherit; color: inherit; letter-spacing: inherit; }
button { cursor: pointer; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--glow-hi); outline-offset: 3px; }

/* ---------------------------------------------------------------- the sky */
.sky { position: fixed; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; background: #000; }
.planet { position: absolute; left: 50%; top: 0; aspect-ratio: 1; border-radius: 50%; background: #000;
  transition: transform var(--move) var(--ease), width var(--move) var(--ease); }
.planet--top    { --rot: 0deg;   width: var(--dT); transform: translate3d(calc(-50% + var(--xT)), calc(var(--yT) - var(--dT)), 0); --g: var(--gT); }
.planet--bottom { --rot: 180deg; width: var(--dB); transform: translate3d(calc(-50% + var(--xB)), var(--yB), 0); --g: var(--gB); }
/* the rim: one radial-gradient ring (no blur filters) — crisp bright edge, soft glow fading outward into the gap.
   A conic mask keeps only the lit side and fades the ends, brighter on one side, like the reference. */
.planet::before { content: ""; position: absolute; inset: -150px; border-radius: 50%; opacity: var(--g); will-change: transform;
  background: radial-gradient(closest-side,
    transparent calc(100% - 152px),
    rgba(120, 160, 255, .0) calc(100% - 151px),
    #8DB0FF calc(100% - 150px),
    #3C76FF calc(100% - 148px),
    #2462FF calc(100% - 143px),
    rgba(30, 88, 255, .78) calc(100% - 132px),
    rgba(28, 80, 255, .40) calc(100% - 108px),
    rgba(24, 68, 240, .15) calc(100% - 66px),
    transparent 100%);
  -webkit-mask-image: conic-gradient(from var(--rot), transparent 0deg 108deg, rgba(0,0,0,.55) 136deg, #000 158deg 186deg, rgba(0,0,0,.4) 214deg, rgba(0,0,0,.12) 236deg, transparent 258deg 360deg);
          mask-image: conic-gradient(from var(--rot), transparent 0deg 108deg, rgba(0,0,0,.55) 136deg, #000 158deg 186deg, rgba(0,0,0,.4) 214deg, rgba(0,0,0,.12) 236deg, transparent 258deg 360deg); }
/* a faint blue sheen just inside the lit edge (the planet's atmosphere) */
.planet::after { content: ""; position: absolute; inset: 0; border-radius: 50%; opacity: calc(.7 * var(--g)); will-change: transform;
  background: radial-gradient(closest-side, transparent calc(100% - 60px), rgba(20, 50, 160, .22) calc(100% - 2px), transparent 100%);
  -webkit-mask-image: conic-gradient(from var(--rot), transparent 0deg 130deg, #000 165deg 185deg, transparent 230deg 360deg);
          mask-image: conic-gradient(from var(--rot), transparent 0deg 130deg, #000 165deg 185deg, transparent 230deg 360deg); }

/* light slowly sweeps along each rim, like the reference's motion. The ring is round, so turning the whole layer only moves
   the lit part: a transform the GPU does without repainting (animating the mask angle repainted 2000px layers every frame). */
.planet::before, .planet::after { animation: ring-sweep 16s ease-in-out infinite alternate; }
.planet--bottom::before, .planet--bottom::after { animation-duration: 19s; animation-delay: -7s; animation-direction: alternate-reverse; }
@keyframes ring-sweep { from { transform: rotate(-16deg); } to { transform: rotate(16deg); } }

/* flash where the two horizons meet (setup) */
.flare { position: absolute; left: 50%; top: 50%; width: 70vw; height: 18vh; transform: translate(-50%, -50%) scaleX(.2);
  background: radial-gradient(closest-side, rgba(120, 165, 255, .55), rgba(35, 89, 255, .22) 55%, transparent);
  filter: blur(18px); opacity: 0; transition: opacity 1.2s var(--ease), transform 1.6s var(--ease); }

/* ---------------------------------------------------------------- scenes (where the horizons sit per step) */
[data-scene="welcome"] { --yT: 21vh; --yB: 81vh; --xT: 7vw;  --xB: -4vw; }
[data-scene="idea"]    { --yT: 17vh; --yB: 85vh; --xT: -5vw; --xB: 5vw; }
[data-scene="confirm"] { --yT: 18vh; --yB: 84vh; --xT: -2vw; --xB: 2vw; --gB: 1; }
[data-scene="auth"]    { --yT: 15vh; --yB: 87vh; --xT: 9vw;  --xB: -7vw; }
[data-scene="q"]       { --yT: 14vh; --yB: calc(90vh - var(--p, 0) * 3vh); --xT: calc(-6vw + var(--p, 0) * 8vw); --xB: calc(6vw - var(--p, 0) * 8vw);
                         --gB: calc(.7 + var(--p, 0) * .4); }
[data-scene="setup"]   { --yT: 44vh; --yB: 56vh; --xT: 0vw; --xB: 0vw; --gT: 1.15; --gB: 1.15; }
[data-scene="setup"] .flare { opacity: 1; transform: translate(-50%, -50%) scaleX(1); }

/* ---------------------------------------------------------------- frame */
.top { position: fixed; top: 0; left: 0; right: 0; z-index: 5; display: flex; align-items: center; justify-content: space-between;
  padding: max(20px, env(safe-area-inset-top)) clamp(16px, 4vw, 40px) 0; pointer-events: none; }
.top > * { pointer-events: auto; }
.brand img { display: block; height: 24px; width: auto; }
.brand .logo-light { display: none; }
.top__end { display: flex; align-items: center; gap: 14px; }
.theme { display: grid; place-items: center; width: 36px; height: 36px; padding: 0; border: 0; border-radius: 50%; background: var(--field); color: var(--ink-2); transition: background-color .2s, color .2s; }
.theme:hover { background: var(--field-hi); color: var(--ink); }
.theme svg { width: 18px; height: 18px; }
.theme .i-sun { display: none; }
[data-theme="light"] .theme .i-sun { display: block; }
[data-theme="light"] .theme .i-moon { display: none; }
.top__right { font-size: 14px; color: var(--ink-2); }
.top__right button { background: none; border: 0; padding: 6px 0; color: var(--ink); font-weight: 500; }
.top__right button:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 4px; }

.stage { position: relative; z-index: 2; min-height: 100vh; min-height: 100dvh; display: grid; place-items: center;
  padding: 88px 16px 64px; }
.view { width: 100%; max-width: 660px; text-align: center; animation: in .6s var(--ease) both; }
.view--wide { max-width: 720px; }
.view.is-out { animation: out .22s ease-in both; }
@keyframes in  { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes out { to { opacity: 0; transform: translateY(-8px); } }

.eyebrow { margin: 0 0 14px; font-size: 13px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--glow-hi); }
h1 { margin: 0; font-size: clamp(32px, 4.6vw, 52px); line-height: 1.06; font-weight: 500; letter-spacing: -.045em; text-wrap: balance; }
.lead { margin: 14px auto 0; max-width: 440px; font-size: 17px; color: var(--ink-2); text-wrap: pretty; }
.small { margin: 22px 0 0; font-size: 14px; color: var(--ink-3); }
.small button, .link { background: none; border: 0; padding: 0; color: var(--ink); font-weight: 500; text-decoration: underline;
  text-decoration-color: rgba(255,255,255,.3); text-underline-offset: 4px; }
.small button:hover, .link:hover { text-decoration-color: currentColor; }
.small button[disabled] { color: var(--ink-3); text-decoration: none; cursor: default; }
.legal { margin-top: 26px; font-size: 13px; color: var(--ink-3); }
.legal a { color: var(--ink-2); }

/* back link: top-left of the content, plain text */
.back { position: fixed; z-index: 6; top: max(64px, calc(env(safe-area-inset-top) + 48px)); left: clamp(16px, 4vw, 40px);
  display: inline-flex; align-items: center; gap: 6px; background: none; border: 0; padding: 6px 0; color: var(--ink-2); font-size: 14px; }
.back:hover { color: var(--ink); }
.back svg { width: 16px; height: 16px; }

/* ---------------------------------------------------------------- buttons */
.actions { display: grid; gap: 10px; margin: 34px auto 0; max-width: 380px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; width: 100%; min-height: 52px; padding: 0 22px;
  border: 0; border-radius: 999px; font-size: 16px; font-weight: 500; text-decoration: none;
  transition: transform .2s var(--ease), background-color .2s, box-shadow .3s, opacity .2s; }
.btn:active { transform: scale(.98); }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn--light { background: #fff; color: #05070D; box-shadow: 0 0 0 0 rgba(47,107,255,0); }
.btn--light:hover { box-shadow: 0 0 34px 2px rgba(47, 107, 255, .55); }
.btn--dark { background: var(--field); color: var(--ink); }
.btn--dark:hover { background: var(--field-hi); }
.btn[disabled] { opacity: .35; pointer-events: none; }
.btn.is-busy { pointer-events: none; }
.btn.is-busy::after { content: ""; width: 16px; height: 16px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* path choice on Get started: two big rows, no boxes around them */
.paths { display: grid; gap: 12px; margin: 40px auto 0; max-width: 400px; text-align: left; }
.path { display: grid; border-radius: 999px !important; grid-template-columns: 44px 1fr 20px; align-items: center; gap: 16px; width: 100%; padding: 12px 22px 12px 12px;
  border: 0; border-radius: 22px; background: var(--field); text-align: left; transition: background-color .2s, box-shadow .3s, transform .2s var(--ease); }
.path:hover { background: var(--field-hi); box-shadow: 0 0 40px -6px rgba(47, 107, 255, .5); }
.path:active { transform: scale(.985); }
.path__icon { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: #fff; color: #05070D; }
.path:nth-child(2) .path__icon { background: var(--blue); color: #fff; }
.path__icon svg { width: 20px; height: 20px; }
.path__t b { display: block; font-size: 17px; font-weight: 500; }
.path__t span { display: block; margin-top: 2px; font-size: 14px; color: var(--ink-2); line-height: 1.4; }
.path__go { width: 20px; height: 20px; color: var(--ink-3); transition: transform .2s var(--ease), color .2s; }
.path:hover .path__go { transform: translateX(3px); color: var(--ink); }

/* ---------------------------------------------------------------- fields */
.field { position: relative; display: flex; align-items: center; gap: 10px; min-height: 58px; margin: 34px auto 0; max-width: 600px;
  padding: 0 8px 0 22px; border-radius: 999px; background: var(--field); transition: background-color .2s, box-shadow .3s; text-align: left; }
.field:focus-within { background: var(--field-hi); box-shadow: 0 0 0 1px rgba(157,187,255,.55), 0 0 40px -4px rgba(47,107,255,.6); }
.field > svg { width: 18px; height: 18px; color: var(--ink-3); flex: none; }
.field input { flex: 1; min-width: 0; height: 56px; border: 0; background: none; outline: none; font-size: 16px; }
.field input::placeholder { color: var(--ink-3); }
.field .btn { width: auto; min-height: 44px; padding: 0 18px; font-size: 15px; }
.field--plain { max-width: 380px; padding-right: 22px; }
.stack { display: grid; gap: 10px; max-width: 380px; margin: 30px auto 0; }
.stack .field { margin: 0; max-width: none; }
.stack .btn { margin-top: 6px; }
.err { min-height: 20px; margin: 10px 0 0; font-size: 14px; color: #FF9C9C; }

.chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 8px; margin: 18px auto 0; max-width: 640px; }
.chip { display: inline-flex; align-items: center; gap: 8px; min-height: 36px; padding: 0 14px; border: 0; border-radius: 999px;
  background: transparent; color: var(--ink-2); font-size: 14px; transition: color .2s, background-color .2s; }
.chip:hover { color: var(--ink); background: var(--field); }
.chip img { width: 20px; height: 20px; border-radius: 6px; }
.chip svg { width: 15px; height: 15px; }
.chip--spark { color: var(--glow-hi); }

/* app search results (Grow) */
.results { display: grid; gap: 4px; max-width: 520px; margin: 14px auto 0; text-align: left; }
.result { display: grid; grid-template-columns: 40px 1fr auto; gap: 14px; align-items: center; width: 100%; padding: 10px 14px; border: 0;
  border-radius: 18px; background: transparent; text-align: left; transition: background-color .2s; }
.result:hover, .result:focus-visible { background: var(--field); }
.result img { width: 40px; height: 40px; border-radius: 10px; background: #111; }
.result b { display: block; font-weight: 500; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.result span { display: block; font-size: 13px; color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.result em { font-style: normal; font-size: 12px; color: var(--ink-3); }
.hint { margin: 16px 0 0; font-size: 14px; color: var(--ink-3); }

/* the picked idea / app, shown big on the confirm step and small on later steps */
.pick { display: grid; justify-items: center; gap: 16px; margin: 0 auto; max-width: 560px; }
.pick__icon { width: 76px; height: 76px; border-radius: 20px; background: #0B1020; box-shadow: 0 0 60px -6px rgba(47,107,255,.7); display: grid; place-items: center; overflow: hidden; }
.pick__icon img { width: 100%; height: 100%; object-fit: cover; }
.pick__icon svg { width: 32px; height: 32px; color: var(--glow-hi); }
.pick__name { font-size: clamp(28px, 3.4vw, 40px); line-height: 1.12; }
.pick__meta { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 16px; font-size: 14px; color: var(--ink-2); }
.pick__meta span::before { content: ""; display: inline-block; width: 6px; height: 6px; margin-right: 8px; border-radius: 50%; background: var(--glow); box-shadow: 0 0 8px var(--glow); vertical-align: 2px; }
.pick__desc { margin: 0; max-width: 460px; font-size: 15px; color: var(--ink-2); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.edit { margin-top: 4px; }

.tag { display: inline-flex; align-items: center; gap: 8px; max-width: 100%; margin: 18px auto 0; padding: 6px 14px 6px 6px; border-radius: 999px;
  background: var(--field); font-size: 14px; color: var(--ink-2); }
.tag img, .tag i { width: 24px; height: 24px; border-radius: 7px; flex: none; }
.tag i { display: grid; place-items: center; background: var(--blue); color: #fff; border-radius: 50%; }
.tag i svg { width: 13px; height: 13px; }
.tag b { color: var(--ink); font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 280px; }

/* 6-digit code */
.code { display: flex; justify-content: center; gap: 10px; margin: 30px auto 0; }
.code input { width: 52px; height: 62px; border: 0; border-radius: 16px; background: var(--field); text-align: center; font-size: 24px; font-weight: 500;
  outline: none; caret-color: var(--glow-hi); transition: background-color .2s, box-shadow .3s; }
.code input:focus { background: var(--field-hi); box-shadow: 0 0 0 1px rgba(157,187,255,.55), 0 0 26px -2px rgba(47,107,255,.65); }
.code input.is-filled { background: rgba(35, 89, 255, .22); }
.code .gap { width: 6px; }

/* ---------------------------------------------------------------- questions */
.qhead { position: fixed; z-index: 4; top: max(18px, env(safe-area-inset-top)); left: 50%; transform: translateX(-50%); width: min(360px, 52vw);
  display: grid; gap: 8px; justify-items: center; }
.qhead__count { font-size: 13px; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.bar { position: relative; width: 100%; height: 2px; border-radius: 2px; background: rgba(255,255,255,.12); }
.bar b { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 2px; background: var(--glow-hi);
  box-shadow: 0 0 10px 1px var(--glow), 0 0 22px 2px rgba(47,107,255,.6); transition: width .8s var(--ease); }
.opts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; max-width: 520px; margin: 34px auto 0; }
.opts--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); max-width: 640px; }
.opts--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); max-width: 600px; }
.opt { display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 56px; padding: 0 16px; border: 0; border-radius: 999px;
  background: var(--field); font-size: 15.5px; font-weight: 450; transition: background-color .2s, color .2s, box-shadow .3s, transform .2s var(--ease); }
.opt svg { width: 18px; height: 18px; color: var(--ink-2); flex: none; transition: color .2s; }
.opt:hover { background: var(--field-hi); }
.opt:active { transform: scale(.97); }
.opt.is-on { background: #fff; color: #05070D; box-shadow: 0 0 36px 0 rgba(47,107,255,.6); }
.opt.is-on svg { color: var(--blue); }
.why { margin: 22px auto 0; max-width: 420px; font-size: 14px; color: var(--ink-3); }
.skip { margin-top: 18px; }

/* ---------------------------------------------------------------- setup */
.setup { position: fixed; inset: 0; z-index: 8; display: grid; place-items: center; text-align: center; padding: 16px; opacity: 0; transition: opacity .8s var(--ease); }
.setup.is-on { opacity: 1; }
.setup[hidden] { display: none; }
[hidden] { display: none !important; }
.setup__title { font-size: clamp(26px, 3.4vw, 38px); }
.setup__step { margin: 12px 0 0; color: var(--ink-2); transition: opacity .16s, transform .16s; }
.setup__step.is-swap { opacity: 0; transform: translateY(4px); }
.is-setup .stage, .is-setup .top, .is-setup .back, .is-setup .qhead { opacity: 0; pointer-events: none; transition: opacity .4s; }

/* ---------------------------------------------------------------- phones */
@media (max-width: 640px) {
  :root { --dT: 175vw; --dB: 128vw; }
  [data-scene="welcome"] { --yT: 15vh; --yB: 85vh; --xT: 10vw; --xB: -6vw; }
  [data-scene="idea"]    { --yT: 12vh; --yB: 89vh; }
  [data-scene="confirm"] { --yT: 12vh; --yB: 89vh; }
  [data-scene="auth"]    { --yT: 11vh; --yB: 90vh; }
  [data-scene="q"]       { --yT: 14vh; --yB: calc(93vh - var(--p, 0) * 2vh); }
  [data-scene="setup"]   { --yT: 43vh; --yB: 57vh; }
  .stage { padding: 96px 16px 56px; }
  h1 { font-size: clamp(30px, 8.6vw, 38px); }
  .lead { font-size: 16px; }
  .opts--4, .opts--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hide-sm { display: none; }
  .opt { min-height: 52px; font-size: 15px; padding: 0 12px; }
  .code { gap: 6px; }
  .code input { width: 44px; height: 56px; font-size: 22px; border-radius: 14px; }
  .code .gap { width: 2px; }
  .back { top: max(58px, calc(env(safe-area-inset-top) + 44px)); }
  .qhead { width: min(240px, 56vw); top: max(24px, env(safe-area-inset-top)); }
  [data-scene="q"] .brand { visibility: hidden; }
  .path { padding: 14px 16px 14px 14px; gap: 14px; }
  .field .btn span { display: none; }
}
@media (max-width: 360px) {
  .code input { width: 40px; height: 52px; }
  .opt { font-size: 14px; }
}
@media (max-height: 700px) and (min-width: 641px) {
  [data-scene] { --yT: 11vh; --yB: 92vh; }
  [data-scene="setup"] { --yT: 44vh; --yB: 56vh; }
}

@media (prefers-reduced-motion: reduce) {
  .planet, .planet::before, .planet::after { animation: none !important; transition-duration: .01s; }
  .view, .view.is-out { animation: none; }
}

/* ================================================================ light mode (2026-11-11)
   Same horizon on an off-white page: white planets, the same Ryra-blue rim with a softer glow, near-black text.
   Main button and chosen answer = black pill. Switch: the sun/moon button (saved in localStorage "ryra-theme") or ?theme=light. */
[data-theme="light"] {
  color-scheme: light;
  --bg: #F3F5FA;
  --ink: #0B0F1A;
  --ink-2: rgba(11, 15, 26, .62);
  --ink-3: rgba(11, 15, 26, .58);
  --field: rgba(16, 28, 72, .055);
  --field-hi: rgba(16, 28, 72, .09);
  --glow: #2F6BFF;
  --glow-hi: #2359FF;
}
[data-theme="light"] .sky { background: var(--bg); }
[data-theme="light"] .planet { background: radial-gradient(closest-side, #FFFFFF 92%, #F7F9FF 100%); box-shadow: 0 0 0 1px rgba(35, 89, 255, .04); }
[data-theme="light"] .planet::before { background: radial-gradient(closest-side,
    transparent calc(100% - 151px),
    #4F82FF calc(100% - 150px),
    #2462FF calc(100% - 148px),
    rgba(36, 98, 255, .55) calc(100% - 142px),
    rgba(36, 98, 255, .26) calc(100% - 128px),
    rgba(36, 98, 255, .10) calc(100% - 96px),
    rgba(36, 98, 255, .03) calc(100% - 52px),
    transparent 100%); }
[data-theme="light"] .planet::after { background: radial-gradient(closest-side, transparent calc(100% - 70px), rgba(35, 89, 255, .07) calc(100% - 2px), transparent 100%); }
[data-theme="light"] .flare { background: radial-gradient(closest-side, rgba(35, 89, 255, .30), rgba(35, 89, 255, .10) 55%, transparent); }
[data-theme="light"] .brand .logo-dark { display: none; }
[data-theme="light"] .brand .logo-light { display: block; }
[data-theme="light"] .small button, [data-theme="light"] .link { text-decoration-color: rgba(11, 15, 26, .3); }
[data-theme="light"] .btn--light { background: #0B0F1A; color: #fff; }
[data-theme="light"] .btn--light:hover { box-shadow: 0 10px 30px -8px rgba(35, 89, 255, .55); }
[data-theme="light"] .path:hover, [data-theme="light"] .btn--dark:hover { box-shadow: none; }
[data-theme="light"] .path__icon { background: #0B0F1A; color: #fff; }
[data-theme="light"] .path:nth-child(2) .path__icon { background: var(--blue); }
[data-theme="light"] .field:focus-within { background: #fff; box-shadow: 0 0 0 1px rgba(35, 89, 255, .45), 0 10px 34px -10px rgba(35, 89, 255, .45); }
[data-theme="light"] .code input:focus { background: #fff; box-shadow: 0 0 0 1px rgba(35, 89, 255, .5), 0 8px 24px -8px rgba(35, 89, 255, .5); }
[data-theme="light"] .code input.is-filled { background: rgba(35, 89, 255, .1); }
[data-theme="light"] .pick__icon { background: #fff; box-shadow: 0 14px 40px -12px rgba(35, 89, 255, .55); }
[data-theme="light"] .result img { background: #E6EAF3; }
[data-theme="light"] .bar { background: rgba(11, 15, 26, .1); }
[data-theme="light"] .bar b { background: var(--blue); box-shadow: 0 0 10px rgba(35, 89, 255, .45); }
[data-theme="light"] .opt.is-on { background: #0B0F1A; color: #fff; box-shadow: 0 10px 28px -10px rgba(35, 89, 255, .6); }
[data-theme="light"] .opt.is-on svg { color: #8DB0FF; }
[data-theme="light"] .err { color: #D23B3B; }
/* light: controls are white pills with a hairline shadow (grey fills looked dull on the off-white page) */
[data-theme="light"] .path, [data-theme="light"] .btn--dark, [data-theme="light"] .opt, [data-theme="light"] .field,
[data-theme="light"] .code input, [data-theme="light"] .tag, [data-theme="light"] .theme {
  background: #fff; box-shadow: 0 1px 2px rgba(16, 28, 72, .06), 0 0 0 1px rgba(16, 28, 72, .05); }
[data-theme="light"] .path:hover, [data-theme="light"] .btn--dark:hover, [data-theme="light"] .opt:hover, [data-theme="light"] .theme:hover {
  background: #fff; box-shadow: 0 6px 20px -8px rgba(35, 89, 255, .35), 0 0 0 1px rgba(35, 89, 255, .18); }
[data-theme="light"] .code input.is-filled { background: #EEF3FF; }
[data-theme="light"] .result:hover, [data-theme="light"] .chip:hover { background: #fff; }
[data-theme="light"] .opt.is-on, [data-theme="light"] .opt.is-on:hover { background: #0B0F1A; color: #fff; box-shadow: 0 10px 28px -10px rgba(35, 89, 255, .6); }

/* ================================================================ animated icons (2026-11-11)
   Style after the user's Pinterest reference: white line icons that draw themselves and move a little.
   1) every stroke draws in when a screen opens (staggered by --d, set in app.js)
   2) on hover / focus each icon makes its own small move (named groups inside the SVG)
   3) a chosen answer pops and redraws its icon */
.ic { overflow: visible; }
.ic path, .ic g { transform-box: fill-box; transform-origin: center; }
.ic path[pathLength] { stroke-dasharray: 1 1.02; stroke-dashoffset: 0; }
.view .ic path[pathLength], .setup .ic path[pathLength] { animation: ic-draw .75s cubic-bezier(.65, 0, .25, 1) both; animation-delay: calc(140ms + var(--d, 0) * 55ms); }
@keyframes ic-draw { from { stroke-dashoffset: 1; } }
.view .ic .dot { animation: ic-dot .4s cubic-bezier(.3, 1.8, .5, 1) both; animation-delay: calc(420ms + var(--d, 0) * 55ms); }
@keyframes ic-dot { from { transform: scale(0); } }
@keyframes ic-redraw { from { stroke-dashoffset: 1; } }
.ic .off { opacity: .28; }

/* what counts as "hovering the icon's control" */
:is(.path, .opt, .chip, .btn, .result, .back, .theme):hover .ic .redraw,
.field:focus-within > .ic .redraw, .opt:hover .ic .bar.on, .opt.is-on .ic .bar.on { animation: ic-redraw .6s cubic-bezier(.65, 0, .25, 1) both; }
:is(.path, .opt, .chip, .btn, .result, .back, .theme):hover .ic .r2, .opt.is-on .ic .r2, .opt:hover .ic .b1, .opt.is-on .ic .b1 { animation-delay: .12s; }
:is(.path, .opt, .chip, .btn, .result, .back, .theme):hover .ic .r3, .opt.is-on .ic .r3, .opt:hover .ic .b2, .opt.is-on .ic .b2 { animation-delay: .24s; }
.opt:hover .ic .b3, .opt.is-on .ic .b3 { animation-delay: .36s; }

:is(.path, .opt, .chip, .btn, .result, .theme):hover .ic .spin, .opt.is-on .ic .spin { animation: ic-spin .7s cubic-bezier(.3, 1.4, .5, 1); }
@keyframes ic-spin { 0% { transform: rotate(0) scale(1); } 45% { transform: rotate(90deg) scale(.78); } 100% { transform: rotate(90deg) scale(1); } }
:is(.path, .opt, .chip, .btn):hover .ic .tw, .opt.is-on .ic .tw { animation: ic-twinkle .8s ease-in-out; }
@keyframes ic-twinkle { 0%, 100% { opacity: 1; transform: scale(1); } 40% { opacity: .2; transform: scale(.4) rotate(45deg); } }
:is(.path, .btn, .result):hover .ic .mvr { animation: ic-nudge-r .6s ease-in-out; }
@keyframes ic-nudge-r { 50% { transform: translateX(3.5px); } }
.back:hover .ic .mvl { animation: ic-nudge-l .6s ease-in-out; }
@keyframes ic-nudge-l { 50% { transform: translateX(-3px); } }
:is(.opt, .chip, .field):is(:hover, :focus-within) .ic .wig, .opt.is-on .ic .wig { animation: ic-wiggle .7s ease-in-out; }
@keyframes ic-wiggle { 25% { transform: rotate(-14deg); } 60% { transform: rotate(10deg); } 85% { transform: rotate(-3deg); } }
.field:focus-within .ic .lift, .btn:hover .ic .lift { transform: translateY(-1.8px); transition: transform .3s cubic-bezier(.3, 1.6, .5, 1); }
.ic .lift { transition: transform .3s ease; }
:is(.opt, .chip, .result):hover .ic .spinx, .opt.is-on .ic .spinx, .pick__icon .ic .spinx { animation: ic-spinx 1.4s ease-in-out; }
.pick__icon .ic .spinx { animation-iteration-count: infinite; animation-delay: 1s; }
@keyframes ic-spinx { 50% { transform: scaleX(.12); } }
:is(.opt, .chip):hover .ic .buzz, .opt.is-on .ic .buzz { animation: ic-buzz .5s linear; }
@keyframes ic-buzz { 15% { transform: rotate(9deg); } 30% { transform: rotate(-8deg); } 45% { transform: rotate(6deg); } 60% { transform: rotate(-4deg); } 75% { transform: rotate(2deg); } }
:is(.opt, .chip):hover .ic .blink, .opt.is-on .ic .blink { animation: ic-blink .5s ease-in-out; }
@keyframes ic-blink { 45% { transform: scaleY(.1); } }
:is(.opt, .chip):hover .ic .front, .opt.is-on .ic .front { animation: ic-front .6s cubic-bezier(.3, 1.5, .5, 1); }
@keyframes ic-front { 0% { transform: translate(-3px, -3px); } 100% { transform: none; } }
:is(.opt, .chip):hover .ic .roll, .opt.is-on .ic .roll { animation: ic-roll .7s ease-in-out; }
@keyframes ic-roll { 40% { transform: translateX(3px) rotate(-6deg); } 70% { transform: translateX(-1px); } }
:is(.opt, .chip):hover .ic .mvd, .opt.is-on .ic .mvd { animation: ic-drop .6s ease-in-out; }
@keyframes ic-drop { 50% { transform: translateY(2.5px); } }
:is(.opt, .chip):hover .ic .shout, .opt.is-on .ic .shout { animation: ic-shout .5s ease-in-out; }
@keyframes ic-shout { 40% { transform: scale(1.12) rotate(-6deg); } }
:is(.opt, .chip, .btn):hover .ic .pop, .opt.is-on .ic .pop { animation: ic-pop-in .5s cubic-bezier(.3, 1.6, .5, 1); }
@keyframes ic-pop-in { 0% { transform: scale(1); } 40% { transform: scale(.72); } 100% { transform: scale(1); } }
:is(.opt, .chip):hover .ic .dots3 path, .opt.is-on .ic .dots3 path { animation: ic-hop .6s ease-in-out; }
:is(.opt, .chip):hover .ic .dots3 .d2, .opt.is-on .ic .dots3 .d2 { animation-delay: .1s; }
:is(.opt, .chip):hover .ic .dots3 .d3, .opt.is-on .ic .dots3 .d3 { animation-delay: .2s; }
@keyframes ic-hop { 40% { transform: translateY(-3px); } }
:is(.opt, .chip, .btn):hover .ic .fly, .opt.is-on .ic .fly { animation: ic-fly .8s ease-in-out; }
@keyframes ic-fly { 45% { transform: translate(6px, -6px); opacity: 0; } 46% { transform: translate(-6px, 6px); opacity: 0; } 100% { transform: none; opacity: 1; } }
:is(.opt, .chip):hover .ic .peek, .opt.is-on .ic .peek { animation: ic-peek .6s ease-in-out; }
@keyframes ic-peek { 50% { transform: translateX(2px); } }

/* a chosen answer: the whole icon pops */
.opt.is-on .ic { animation: ic-chosen .5s cubic-bezier(.3, 1.7, .5, 1); }
@keyframes ic-chosen { 0% { transform: scale(1); } 35% { transform: scale(.6); } 100% { transform: scale(1); } }

/* the two Get-started icons breathe now and then, like the reference reel */
.path .path__icon .ic .spin { animation: ic-spin-idle 5s cubic-bezier(.3, 1.4, .5, 1) 1.6s infinite; }
@keyframes ic-spin-idle { 0%, 82% { transform: rotate(0); } 92% { transform: rotate(90deg) scale(.78); } 100% { transform: rotate(90deg) scale(1); } }
.path:nth-child(2) .path__icon .ic .redraw { animation: ic-draw .75s cubic-bezier(.65, 0, .25, 1) both, ic-redraw-idle 5s cubic-bezier(.65, 0, .25, 1) 3.2s infinite; }
@keyframes ic-redraw-idle { 0% { stroke-dashoffset: 1; } 14%, 100% { stroke-dashoffset: 0; } }

/* setup: a spark that keeps drawing itself while the workspace is prepared */
.setup__ic { display: block; width: 44px; height: 44px; margin: 0 auto 18px; color: var(--glow-hi); }
.setup.is-on .setup__ic path[pathLength] { animation: ic-loop 1.8s cubic-bezier(.65, 0, .35, 1) infinite; }
.setup.is-on .setup__ic .tw path { animation: ic-twinkle 1.8s ease-in-out infinite; }
@keyframes ic-loop { 0% { stroke-dashoffset: 1; } 45%, 60% { stroke-dashoffset: 0; } 100% { stroke-dashoffset: -1; } }

/* light / dark switch: icons turn in */
.theme svg { transition: transform .5s cubic-bezier(.3, 1.5, .5, 1); }
.theme:hover svg { transform: rotate(40deg); }
[data-theme="light"] .theme .i-sun, .theme .i-moon { animation: ic-turn .5s cubic-bezier(.3, 1.5, .5, 1); }
@keyframes ic-turn { from { transform: rotate(-90deg) scale(.4); opacity: 0; } }

@media (prefers-reduced-motion: reduce) {
  .ic, .ic path, .ic g, .setup__ic path { animation: none !important; transition: none !important; }
}

/* highlighted words in a heading (Get started): Ryra-blue gradient that slowly shimmers */
h1 .hl { background: linear-gradient(90deg, #6F9BFF, #2F6BFF 40%, #9DBBFF 60%, #2F6BFF); background-size: 220% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent; animation: hl-shine 6s ease-in-out infinite; }
[data-theme="light"] h1 .hl { background-image: linear-gradient(90deg, #2359FF, #4F82FF 40%, #1B3FD0 60%, #2359FF); }
@keyframes hl-shine { 0%, 100% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } }
@media (prefers-reduced-motion: reduce) { h1 .hl { animation: none; } }

/* heavier, bigger icons (user, 2026-11-11: "more weight and bigger") */
.ic { stroke-width: 2.2; }
.path { grid-template-columns: 52px 1fr 24px; }
.path__icon { width: 52px; height: 52px; }
.path__icon svg { width: 27px; height: 27px; }
.path__icon .ic { stroke-width: 2.4; }
.path__go { width: 24px; height: 24px; }
.path__go.ic { stroke-width: 2.3; }
.opt svg { width: 20px; height: 20px; }
.field > svg { width: 20px; height: 20px; }
.btn svg { width: 20px; height: 20px; }
@media (max-width: 640px) {
  .path { grid-template-columns: 48px 1fr 22px; }
  .path__icon { width: 48px; height: 48px; }
  .path__icon svg { width: 25px; height: 25px; }
}

/* code screen: "Checking code…" with a small spinner instead of a button; wrong code shakes the boxes */
.checking { display: inline-flex; align-items: center; gap: 10px; min-height: 22px; margin: 18px 0 0; font-size: 14px; color: var(--ink-2); }
.checking.is-on::before { content: ""; width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--glow-hi); border-right-color: transparent; animation: spin .7s linear infinite; }
.code.is-checking input { opacity: .6; }
.code.is-wrong { animation: code-shake .45s cubic-bezier(.36, .07, .19, .97); }
@keyframes code-shake { 20%, 60% { transform: translateX(-6px); } 40%, 80% { transform: translateX(6px); } }

/* light/dark button: in light mode it sat white-on-white over the top planet — give it a ring and a soft shadow */
[data-theme="light"] .theme { background: rgba(255, 255, 255, .85); color: var(--ink);
  box-shadow: 0 0 0 1px rgba(11, 15, 26, .14), 0 6px 16px -8px rgba(11, 15, 26, .35); }
[data-theme="light"] .theme:hover { box-shadow: 0 0 0 1px rgba(35, 89, 255, .35), 0 6px 18px -8px rgba(35, 89, 255, .5); }
.theme { color: var(--ink); box-shadow: 0 0 0 1px rgba(255, 255, 255, .12); }

/* ---------------------------------------------------------------- production additions (A/B arm, 2026-11-11)
   The live backend needs a password at sign-up (8+ characters, a number, a symbol), so the email step carries two password
   fields and this rule line; the same line is used on "New password". Error lines can carry an inline action. */
.pwrules { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 14px; margin: 2px 0 0; font-size: 13px; color: var(--ink-3); }
.pwrules span { display: inline-flex; align-items: center; gap: 6px; transition: color .2s; }
.pwrules span::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; opacity: .55; transition: background .2s, opacity .2s, box-shadow .2s; }
.pwrules span.is-ok { color: var(--ink-2); }
.pwrules span.is-ok::before { background: var(--glow-hi); opacity: 1; box-shadow: 0 0 8px var(--glow-hi); }
.err .link { color: inherit; font-size: inherit; }

/* 11 Nov responsive pass: "Your idea" label wrapped onto two lines on phones; keep it on one line, the idea itself truncates */
.tag { white-space: nowrap; }
.tag b { min-width: 0; }
.view { min-width: 0; }
