/* ==========================================================================
   YumKlick.ai: midnight canvas, candy ingredient tags, one blue voice
   ========================================================================== */
:root {
  --canvas: #000814;
  --deep: #010d1e;
  --indigo: #001533;
  --cobalt: #00215e;
  --white: #ffffff;
  --fog: #ccced0;
  --mist: #999ca1;
  --steel: #11263b;
  --blue: #1c6cff;

  --coral: #ff4433;
  --lime: #00cc4b;
  --tangerine: #ff8833;
  --hotpink: #ff33aa;
  --violet: #9019e6;
  --sunflower: #ffcc02;
  --sky: #00acfe;
  --ember: #ea687c;
  --olive: #94ae43;
  --slate: #5c6f8a;

  --f-display: "Bricolage Grotesque", "Space Grotesk", system-ui, sans-serif;
  --f-body: "Geist", "Inter", system-ui, sans-serif;
  --f-mono: "Geist Mono", ui-monospace, monospace;

  --inset: rgba(255,255,255,.16) 4px 4px 16px -4px inset, rgba(0,0,0,.2) -4px -4px 16px -4px inset, rgba(255,255,255,.08) 4px 4px 8px 0 inset, rgba(255,255,255,.4) 1px 1px 1px -.5px inset;
  --inset-glow: rgba(38,113,217,.08) 0 0 12px 0 inset, rgba(0,0,0,.32) 0 -4px 8px 0 inset;
  --ease: cubic-bezier(.2,.8,.2,1);
  --spring: cubic-bezier(.34,1.56,.64,1);
  --maxw: 1200px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--canvas);
  color: var(--white);
  font-family: var(--f-body);
  font-weight: 200;
  font-size: 17px;
  line-height: 1.55;
  letter-spacing: -0.005em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
::selection { background: var(--blue); color: #fff; }
a { color: inherit; text-decoration: none; }
img, svg, canvas { display: block; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
em { font-style: normal; }
b, strong { font-weight: 500; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 8px; }

.grain {
  position: fixed; inset: -50%; z-index: 100; pointer-events: none; opacity: .045;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 32px; }
.container.narrow { max-width: 860px; }
.center { text-align: center; }
.dim { color: var(--mist); }
.small { font-size: 14px; }
.mono { font-family: var(--f-mono); font-weight: 400; font-size: .82em; letter-spacing: 0; }

/* ---------- type ---------- */
.display, .h2, .h3, .h4, .giant, .display-num {
  font-family: var(--f-display);
  font-variation-settings: "wdth" 96;
  font-weight: 600;
}
.display { font-size: clamp(64px, 11vw, 168px); line-height: .9; letter-spacing: -0.024em; margin: 0; }
.h2 { text-wrap: balance; font-size: clamp(42px, 5.6vw, 76px); line-height: .98; letter-spacing: -0.018em; margin: 0; }
.h2.xl { font-size: clamp(46px, 6.4vw, 92px); max-width: 14ch; margin-inline: auto; }
.h3 { font-size: clamp(26px, 2.6vw, 34px); line-height: 1.05; letter-spacing: -0.02em; margin: 0 0 12px; }
.h3.big { font-size: clamp(32px, 3.6vw, 48px); }
.h4 { font-size: 24px; line-height: 1.1; letter-spacing: -0.015em; margin: 0 0 8px; }
h4 { font-family: var(--f-body); font-weight: 400; font-size: 15px; margin: 0 0 14px; letter-spacing: .01em; }
.lead { font-size: clamp(18px, 1.6vw, 21px); line-height: 1.55; color: var(--fog); font-weight: 300; max-width: 58ch; margin: 22px 0 0; }
.center .lead { margin-left: auto; margin-right: auto; }

.eyebrow {
  font-family: var(--f-body); font-weight: 600; text-transform: uppercase;
  font-size: 13px; letter-spacing: .14em; margin: 0 0 22px; color: var(--fog);
  display: inline-flex; align-items: center; gap: 10px;
}
.eyebrow::before { content: ""; width: 18px; height: 1px; background: currentColor; opacity: .6; }
.center .eyebrow::after { content: ""; width: 18px; height: 1px; background: currentColor; opacity: .6; }
.eyebrow--blue { color: #fff; }
.eyebrow--blue::before, .eyebrow--blue::after { background: var(--blue) !important; opacity: 1 !important; height: 2px !important; }

.section-head { margin-bottom: clamp(40px, 4vw, 56px); }

/* candy gradient highlight (the one sanctioned gradient) */
.candy {
  background: linear-gradient(100deg, #ffd23f 0%, #ff9a3c 30%, #ff5a3c 55%, #ff9a3c 80%, #ffd23f 100%);
  background-size: 220% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: candy 9s ease-in-out infinite alternate; filter: saturate(1.15);
  padding-right: .04em;
}
@keyframes candy { from { background-position: 0% 50%; } to { background-position: 100% 50%; } }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  border-radius: 16px; font-weight: 400; font-size: 15px; letter-spacing: 0;
  padding: 12px 20px; white-space: nowrap; transition: transform .35s var(--ease), background .3s, box-shadow .3s, border-color .3s;
  position: relative;
}
.btn--lg { padding: 10px 24px 10px 10px; font-size: 16px; height: 58px; }
.btn--ghost.btn--lg, .btn--lg:not(:has(.btn__icon)) { padding: 0 28px; }
.btn--sm { padding: 9px 16px; font-size: 14px; border-radius: 12px; }
.btn--block { width: 100%; height: 54px; }
.btn--blue { background: var(--blue); color: #fff; box-shadow: var(--inset), 0 0 0 0 rgba(28,108,255,0); }
.btn--blue:hover { box-shadow: var(--inset), 0 0 48px -6px rgba(28,108,255,.75); transform: translateY(-1px); }
.btn--white { background: #fff; color: var(--canvas); font-weight: 500; }
.btn--white:hover { background: #e9eefc; }
.btn--ghost { border: 1px solid rgba(255,255,255,.28); color: #fff; }
.btn--ghost:hover { border-color: #fff; background: rgba(255,255,255,.04); }
.btn__icon {
  width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center;
  background: rgba(255,255,255,.16); box-shadow: rgba(255,255,255,.3) 1px 1px 1px -.5px inset;
}

/* ---------- announcement + nav ---------- */
.announce {
  position: relative; z-index: 60; height: 40px; display: flex; align-items: center; justify-content: center; gap: 14px;
  background: var(--blue); font-size: 13px; font-weight: 300; padding: 0 16px; text-align: center;
}
.announce__dot { width: 6px; height: 6px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 0 #fff; animation: ping 2s infinite; flex: none; }
.announce__go { display: inline-flex; align-items: center; gap: 4px; font-weight: 500; }
.announce:hover .announce__go svg { transform: translateX(3px); }
.announce__go svg { transition: transform .3s var(--ease); }
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(255,255,255,.7); } 100% { box-shadow: 0 0 0 8px rgba(255,255,255,0); } }

.nav { position: sticky; top: 0; z-index: 50; transition: background .4s, backdrop-filter .4s, border-color .4s; border-bottom: 1px solid transparent; }
.nav.is-scrolled { background: rgba(0,8,20,.66); backdrop-filter: blur(18px) saturate(1.4); -webkit-backdrop-filter: blur(18px) saturate(1.4); border-color: rgba(17,38,59,.7); }
.nav__inner { max-width: 1320px; margin: 0 auto; height: 68px; padding: 0 32px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-family: var(--f-display); font-weight: 600; font-size: 19px; letter-spacing: -0.02em; font-variation-settings: "wdth" 90; }
.brand__word span { color: var(--mist); font-weight: 400; }
.brand__mark { width: 32px; height: 32px; border-radius: 10px; background: #fff; color: var(--canvas); display: grid; place-items: center; }
.brand__mark svg { width: 24px; height: 24px; }
.brand__mark.sm { width: 22px; height: 22px; border-radius: 7px; }
.brand__mark.sm svg { width: 16px; height: 16px; }
.nav__links { display: flex; gap: 6px; }
.nav__links a { font-size: 14px; font-weight: 300; padding: 8px 14px; border-radius: 10px; color: var(--fog); transition: color .2s, background .2s; }
.nav__links a:hover { color: #fff; background: rgba(255,255,255,.05); }
.nav__actions { display: flex; justify-content: flex-end; align-items: center; gap: 20px; }
.nav__login { font-size: 14px; font-weight: 300; color: var(--fog); }
.nav__login:hover { color: #fff; }

/* ---------- hero ---------- */
.hero { position: relative; min-height: calc(100svh - 108px); min-height: max(720px, calc(100svh - 108px)); display: grid; place-items: center; overflow: hidden; isolation: isolate; }
.hero__canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; }
.hero::after { /* bottom fade into next band */
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 70px; z-index: 0; pointer-events: none;
  background: linear-gradient(to bottom, rgba(0,8,20,0), var(--canvas));
}
.hero__content { position: relative; z-index: 2; text-align: center; padding: 40px 24px 96px; display: flex; flex-direction: column; align-items: center; will-change: transform, opacity; }
.hero__kicker {
  display: inline-flex; align-items: center; gap: 10px; margin: 0 0 30px; padding: 8px 16px 8px 12px;
  border-radius: 999px; font-size: 13px; font-weight: 300; color: var(--fog);
  background: rgba(1,13,30,.6); border: 1px solid rgba(255,255,255,.1); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  box-shadow: var(--inset);
}
.live-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 12px var(--lime); }
.hero__title { text-shadow: 0 0 80px rgba(0,8,20,.9); }
.hero__title .line { display: block; overflow: hidden; padding: 0 .06em .06em; margin-bottom: -.06em; }
.hero__title .line__in { display: inline-block; transform: translateY(105%); animation: lineUp 1.2s var(--ease) forwards; }
.hero__title .line:nth-child(2) .line__in { animation-delay: .12s; }
@keyframes lineUp { to { transform: none; } }
.hero__sub { max-width: 34em; font-size: clamp(17px, 1.5vw, 20px); line-height: 1.55; color: var(--fog); margin: 34px 0 0; text-shadow: 0 0 24px var(--canvas), 0 0 24px var(--canvas); }
.hero__ctas { display: flex; gap: 12px; margin-top: 40px; flex-wrap: wrap; justify-content: center; }
.hero__meta { display: flex; gap: 0; list-style: none; padding: 0; margin: 34px 0 0; font-size: 13px; color: var(--mist); font-weight: 300; flex-wrap: wrap; justify-content: center; }
.hero__meta li { display: inline-flex; align-items: center; gap: 8px; padding: 0 16px; }
.hero__meta li + li { border-left: 1px solid rgba(255,255,255,.14); }
.hero__meta li::before { content: ""; width: 14px; height: 14px; border-radius: 50%; background: no-repeat center/10px url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 10'%3E%3Cpath d='M2 5.2l2 2 4-4.4' fill='none' stroke='%23fff' stroke-width='1.4'/%3E%3C/svg%3E"), rgba(255,255,255,.1); }
.reveal-up { opacity: 0; transform: translateY(18px); animation: fadeUp 1s var(--ease) forwards; }
.hero__kicker.reveal-up { animation-delay: .05s; }
.hero__sub.reveal-up { animation-delay: .45s; }
.hero__ctas.reveal-up { animation-delay: .6s; }
.hero__meta.reveal-up { animation-delay: .75s; }
@keyframes fadeUp { to { opacity: 1; transform: none; } }

.hero__scan { position: absolute; left: 0; right: 0; top: 0; height: 0; z-index: 1; pointer-events: none; opacity: 0; }
.hero__scan span {
  position: absolute; left: 0; right: 0; height: 2px; top: 0;
  background: linear-gradient(90deg, transparent, rgba(28,108,255,.9) 20%, #9fc0ff 50%, rgba(28,108,255,.9) 80%, transparent);
  box-shadow: 0 0 24px 4px rgba(28,108,255,.55), 0 0 90px 20px rgba(28,108,255,.18);
}
.hero__scan span::after { content: ""; position: absolute; left: 0; right: 0; bottom: 2px; height: 120px; background: linear-gradient(to top, rgba(28,108,255,.12), transparent); }

.hero__scroll { position: absolute; bottom: 28px; left: 50%; translate: -50% 0; width: 22px; height: 36px; border: 1px solid rgba(255,255,255,.3); border-radius: 12px; z-index: 3; }
.hero__scroll span { position: absolute; top: 7px; left: 50%; width: 2px; height: 7px; margin-left: -1px; border-radius: 2px; background: #fff; animation: wheel 1.8s var(--ease) infinite; }
@keyframes wheel { 0% { opacity: 0; transform: translateY(-2px); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(12px); } }

/* ---------- candy tags (DOM) ---------- */
.ftag, .itag, .chip {
  --c: var(--coral);
  display: inline-flex; align-items: center; gap: 8px; white-space: nowrap;
  padding: 9px 16px; border-radius: 20px; background: var(--c); color: #fff;
  font-size: 15px; font-weight: 400; letter-spacing: 0; line-height: 1.1;
  box-shadow: inset 0 1.5px 0 rgba(255,255,255,.45), inset 0 -6px 14px rgba(0,0,0,.18), inset 6px 6px 18px -8px rgba(255,255,255,.55), 0 10px 40px -10px var(--c);
  transform: rotate(var(--r, 0deg));
}
.ftag--coral, .chip--coral { --c: var(--coral); }
.ftag--lime, .itag--lime, .chip--lime { --c: var(--lime); }
.ftag--tangerine { --c: var(--tangerine); }
.ftag--hotpink { --c: var(--hotpink); }
.ftag--violet { --c: var(--violet); }
.ftag--sunflower { --c: var(--sunflower); color: #241a00; }
.ftag--sky, .itag--sky, .chip--sky { --c: var(--sky); }
.ftag--olive, .chip--olive { --c: var(--olive); }
.ftag--slate { --c: var(--slate); }
.itag--blue { --c: var(--blue); }
.chip--ghost { --c: transparent; box-shadow: inset 0 0 0 1px rgba(255,255,255,.25); }

/* ---------- statement ---------- */
.statement { padding: clamp(100px, 12vw, 170px) 24px clamp(80px, 10vw, 140px); max-width: 1180px; margin: 0 auto; }
.statement__text {
  font-family: var(--f-display); font-variation-settings: "wdth" 85; font-weight: 500;
  font-size: clamp(30px, 4.5vw, 64px); line-height: 1.28; letter-spacing: -0.02em; margin: 0; text-align: center; text-wrap: balance;
}
.statement__text .w { opacity: .14; transition: opacity .5s var(--ease); }
.statement__text .w.on { opacity: 1; }
.statement__text em { color: #fff; }
.nw { white-space: nowrap; }
.itag { font-family: var(--f-body); font-size: .5em; vertical-align: .38em; padding: .45em .85em; border-radius: 16px; margin: 0 .1em; font-weight: 400; transition: transform .7s var(--spring), opacity .5s; }
.statement__text .itag.w:not(.on) { transform: rotate(0) scale(.7) translateY(20%); }

/* ---------- cards ---------- */
.card {
  background: var(--deep); border-radius: 28px; border: 1px solid rgba(17,38,59,.55);
  box-shadow: var(--inset); padding: 28px; position: relative;
}

/* ---------- how it works ---------- */
.how { padding: 40px 0 clamp(100px, 12vw, 160px); background: var(--canvas); }
.how__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
.how__steps { padding: 6vh 0 22vh; }
.step { min-height: 64vh; display: flex; flex-direction: column; justify-content: center; max-width: 470px; opacity: .06; transition: opacity .6s var(--ease); }
.step.is-active { opacity: 1; }
.step__num { font-family: var(--f-mono); font-size: 13px; color: var(--blue); margin-bottom: 18px; display: flex; align-items: center; gap: 12px; }
.step__num::after { content: ""; height: 1px; width: 48px; background: rgba(28,108,255,.5); }
.step p { color: var(--fog); font-size: 18px; margin: 0; }
.step p em { color: #fff; font-weight: 400; }
.step__chips { list-style: none; padding: 0; margin: 22px 0 0; display: flex; gap: 8px; flex-wrap: wrap; }
.step__chips li { font-size: 14px; padding: 7px 14px; border-radius: 12px; background: var(--indigo); box-shadow: var(--inset); }

.how__stage { position: sticky; top: calc(50vh - 340px); height: 680px; display: grid; place-items: center; }
.stage-tags .ftag { position: absolute; left: var(--x); top: var(--y); z-index: 3; font-size: 14px; transition: transform .8s var(--spring), opacity .6s; animation: bob 6s ease-in-out infinite; }
.stage-tags .ftag:nth-child(2) { animation-delay: -1.5s; } .stage-tags .ftag:nth-child(3) { animation-delay: -3s; } .stage-tags .ftag:nth-child(4) { animation-delay: -4.5s; }
@keyframes bob { 0%,100% { translate: 0 0; } 50% { translate: 0 -10px; } }

.phone {
  position: relative; width: 320px; height: 660px; border-radius: 54px; padding: 11px;
  background: linear-gradient(145deg, #1a2433, #070d18 40%, #121b2a);
  box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.14), inset 0 0 0 5px #05080f, 0 60px 120px -30px rgba(28,108,255,.35), 0 0 0 1px rgba(0,0,0,.6);
}
.phone::before { /* soft blue halo */
  content: ""; position: absolute; inset: 10% -30%; z-index: -1; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(28,108,255,.28), transparent); filter: blur(30px);
}
.phone__notch { position: absolute; top: 22px; left: 50%; translate: -50% 0; width: 96px; height: 28px; border-radius: 20px; background: #000; z-index: 10; }
.phone__screen { position: relative; height: 100%; border-radius: 44px; overflow: hidden; background: var(--canvas); }
.app-bar { position: absolute; top: 0; left: 0; right: 0; height: 58px; display: flex; align-items: flex-end; justify-content: space-between; padding: 0 26px 6px; font-size: 11px; font-weight: 500; z-index: 5; }
.app-bar__url { display: none; }
.app-bar__icons { letter-spacing: -1px; font-size: 9px; }

.scr { position: absolute; inset: 0; padding: 70px 18px 20px; display: flex; flex-direction: column; opacity: 0; visibility: hidden; transition: opacity .5s var(--ease), visibility .5s, transform .6s var(--ease); transform: scale(.97); }
.phone[data-state="0"] .scr[data-screen="0"],
.phone[data-state="1"] .scr[data-screen="1"],
.phone[data-state="2"] .scr[data-screen="2"],
.phone[data-state="3"] .scr[data-screen="3"] { opacity: 1; visibility: visible; transform: none; }
.scr__title { font-family: var(--f-display); font-variation-settings: "wdth" 85; font-weight: 600; font-size: 24px; letter-spacing: -0.02em; margin: 4px 4px 2px; }
.scr__hint { font-size: 12px; color: var(--mist); margin: 0 4px 14px; }
.scr__hint.center { text-align: center; margin-top: auto; margin-bottom: 0; }
.scr__cta { margin-top: 16px; height: 46px; border-radius: 14px; background: var(--blue); display: grid; place-items: center; font-size: 14px; font-weight: 400; box-shadow: var(--inset); }
.scr__cta--ghost { background: transparent; box-shadow: inset 0 0 0 1px rgba(255,255,255,.2); margin-bottom: -8px; }
.pill-mini { font-size: 11px; font-weight: 400; padding: 5px 10px; border-radius: 999px; background: rgba(255,255,255,.1); backdrop-filter: blur(8px); white-space: nowrap; }

/* scan screen */
.scr--scan { padding: 0; }
.fridge {
  position: absolute; inset: 0; overflow: hidden;
  background:
    radial-gradient(120% 60% at 50% 0%, rgba(210,230,255,.35), transparent 60%),
    linear-gradient(180deg, #c9d6e6 0%, #9fb2c8 45%, #7f93ab 100%);
}
.fridge::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,8,20,.0) 50%, rgba(0,8,20,.75) 100%); }
.fridge__shelf { position: absolute; left: -4%; right: -4%; top: 31%; height: 8px; background: linear-gradient(180deg, rgba(255,255,255,.8), rgba(255,255,255,.15)); box-shadow: 0 8px 18px rgba(0,30,70,.25); }
.fridge__shelf.s2 { top: 61%; } .fridge__shelf.s3 { top: 90%; }
.fi { position: absolute; left: var(--x); top: calc(var(--y) + 54px); font-size: calc(46px * var(--s)); filter: drop-shadow(0 10px 8px rgba(0,30,60,.35)); }
.det { position: absolute; left: var(--x); top: calc(var(--y) + 54px); width: var(--w); height: var(--h); z-index: 2; opacity: 0; transform: scale(1.15);
  border-radius: 12px; border: 1.5px solid #fff; box-shadow: 0 0 0 4px rgba(28,108,255,.35), inset 0 0 20px rgba(28,108,255,.25); }
.det b { position: absolute; left: -1px; top: -24px; font-size: 11px; font-weight: 500; background: var(--blue); padding: 3px 8px; border-radius: 8px; white-space: nowrap; }
.phone[data-state="0"] .det { animation: detIn .5s var(--spring) forwards; animation-delay: calc(var(--d) + .4s); }
@keyframes detIn { to { opacity: 1; transform: none; } }
.fridge__scan { position: absolute; left: 0; right: 0; height: 2px; top: 0; z-index: 3; background: #fff; box-shadow: 0 0 18px 4px rgba(28,108,255,.9), 0 0 60px 20px rgba(28,108,255,.3); opacity: 0; }
.phone[data-state="0"] .fridge__scan { animation: fscan 2.2s var(--ease) .2s 1 forwards; }
@keyframes fscan { 0% { top: 8%; opacity: 0; } 10% { opacity: 1; } 90% { opacity: 1; } 100% { top: 92%; opacity: 0; } }
.scr__bottom { position: absolute; left: 0; right: 0; bottom: 22px; display: flex; justify-content: space-between; align-items: center; padding: 0 18px; z-index: 4; }
.shutter { width: 62px; height: 62px; border-radius: 50%; border: 3px solid #fff; display: grid; place-items: center; }
.shutter::after { content: ""; width: 48px; height: 48px; border-radius: 50%; background: #fff; }

/* confirm screen */
.ing-list { list-style: none; padding: 0; margin: 0 0 14px; display: grid; gap: 6px; }
.ing-list li {
  display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 14px; background: var(--deep); box-shadow: var(--inset); font-size: 14px; font-weight: 400;
  opacity: 0; transform: translateX(14px);
}
.phone[data-state="1"] .ing-list li { animation: slideIn .5s var(--ease) forwards; animation-delay: calc(var(--i) * 70ms + .15s); }
@keyframes slideIn { to { opacity: 1; transform: none; } }
.ing-list li > span { width: 26px; height: 26px; display: grid; place-items: center; border-radius: 8px; background: rgba(255,255,255,.06); font-size: 15px; }
.ing-list em { margin-left: auto; font-size: 11px; color: var(--mist); font-weight: 300; }
.ing-list i { font-style: normal; width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; font-size: 10px; }
.ing-list .ok { background: var(--blue); }
.ing-list .x { background: rgba(255,255,255,.1); }
.ing-list .removed { text-decoration: line-through; text-decoration-color: rgba(255,255,255,.4); color: var(--mist); }
.ing-list .add { background: transparent; box-shadow: inset 0 0 0 1px dashed rgba(255,255,255,.2); border: 1px dashed rgba(255,255,255,.22); color: var(--fog); }

/* prefs screen */
.pref-row { display: flex; justify-content: space-between; align-items: center; font-size: 13px; font-weight: 400; padding: 10px 4px; }
.stepper { display: inline-flex; align-items: center; gap: 12px; padding: 4px; border-radius: 12px; background: var(--deep); box-shadow: var(--inset); font-weight: 500; }
.stepper b { width: 24px; height: 24px; display: grid; place-items: center; border-radius: 8px; background: rgba(255,255,255,.08); }
.slider { height: 4px; border-radius: 4px; background: rgba(255,255,255,.1); margin: 0 4px 14px; position: relative; }
.slider span { position: absolute; left: 0; top: 0; bottom: 0; width: calc(var(--v) * 100%); border-radius: 4px; background: var(--blue); }
.slider span::after { content: ""; position: absolute; right: -9px; top: -7px; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: 0 2px 8px rgba(0,0,0,.4); }
.phone[data-state="2"] .slider span { animation: slide 1.2s var(--ease) .2s backwards; }
@keyframes slide { from { width: 70%; } }
.pref-chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0 6px; }
.pref-chips span { font-size: 11.5px; padding: 6px 10px; border-radius: 10px; background: var(--deep); box-shadow: inset 0 0 0 1px rgba(255,255,255,.1); font-weight: 300; transition: background .3s; }
.pref-chips span.on { background: var(--blue); box-shadow: var(--inset); font-weight: 400; }
.toggle { width: 40px; height: 24px; border-radius: 12px; background: rgba(255,255,255,.15); position: relative; }
.toggle.on { background: var(--blue); }
.toggle::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; transition: left .3s; }
.toggle.on::after { left: 19px; }

/* results screen */
.rcard { display: flex; gap: 12px; align-items: center; padding: 10px; border-radius: 18px; background: var(--deep); box-shadow: var(--inset); margin-bottom: 8px; opacity: 0; transform: translateY(18px) scale(.97); }
.phone[data-state="3"] .rcard { animation: cardIn .7s var(--spring) forwards; animation-delay: calc(var(--i) * 120ms + .15s); }
@keyframes cardIn { to { opacity: 1; transform: none; } }
.rcard__art { flex: none; width: 74px; height: 74px; border-radius: 14px; display: grid; place-items: center; font-size: 34px; background: radial-gradient(circle at 30% 25%, var(--c2), var(--c1) 70%); box-shadow: inset 0 2px 0 rgba(255,255,255,.35), inset 0 -8px 16px rgba(0,0,0,.2); }
.rcard b { display: block; font-size: 14px; font-weight: 500; line-height: 1.2; margin-bottom: 4px; }
.rcard small { display: block; font-size: 11px; color: var(--mist); }
.rcard .have { color: var(--fog); margin-top: 2px; }
.rcard .have::before, .res__miss.ok::before { content: ""; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--lime); margin-right: 6px; vertical-align: 1px; box-shadow: 0 0 8px var(--lime); }

/* ---------- demo ---------- */
.demo { padding: clamp(64px, 7vw, 96px) 0; background: var(--deep); }
.demo .card { background: var(--canvas); }
.demo__panel { display: grid; grid-template-columns: 400px 1fr; gap: 0; padding: 0; overflow: hidden; border-radius: 36px; }
.demo__controls { padding: 32px; border-right: 1px solid rgba(17,38,59,.8); display: flex; flex-direction: column; gap: 30px; }
.demo__results { padding: 32px; background: radial-gradient(80% 60% at 70% 0%, rgba(28,108,255,.08), transparent 70%); display: flex; flex-direction: column; }
.ctrl__label { font-size: 13px; color: var(--mist); margin: 0 0 12px; font-weight: 300; display: flex; justify-content: space-between; }
.ctrl--row { display: flex; flex-wrap: wrap; gap: 24px 28px; align-items: flex-end; }
.ing-toggles { display: flex; flex-wrap: wrap; gap: 8px; }
.ing-toggle {
  --c: var(--slate);
  display: inline-flex; align-items: center; gap: 7px; padding: 8px 13px; border-radius: 16px; font-size: 14px; font-weight: 300;
  background: transparent; box-shadow: inset 0 0 0 1px rgba(255,255,255,.14); color: var(--fog);
  transition: background .35s, box-shadow .35s, transform .45s var(--spring), color .3s;
}
.ing-toggle:hover { box-shadow: inset 0 0 0 1px rgba(255,255,255,.35); }
.ing-toggle.on {
  background: var(--c); color: #fff; font-weight: 400; transform: rotate(var(--r));
  box-shadow: inset 0 1.5px 0 rgba(255,255,255,.45), inset 0 -6px 14px rgba(0,0,0,.18), 0 8px 28px -10px var(--c);
}
.ing-toggle.on.dark { color: #241a00; }
.ing-toggle:active { transform: scale(.94); }
.seg { display: inline-flex; padding: 4px; border-radius: 14px; background: var(--deep); box-shadow: var(--inset-glow), inset 0 0 0 1px rgba(255,255,255,.06); gap: 2px; }
.seg button { padding: 9px 14px; border-radius: 10px; font-size: 14px; font-weight: 300; color: var(--fog); transition: background .3s, color .3s; display: inline-flex; align-items: center; gap: 8px; }
.seg button.on { background: #fff; color: var(--canvas); font-weight: 500; }
.seg--lg button { padding: 11px 18px; font-size: 15px; }
.stepper-lg { display: inline-flex; align-items: center; gap: 4px; padding: 4px; border-radius: 14px; background: var(--deep); box-shadow: var(--inset-glow), inset 0 0 0 1px rgba(255,255,255,.06); }
.stepper-lg button { width: 36px; height: 36px; border-radius: 10px; font-size: 18px; background: rgba(255,255,255,.07); transition: background .2s; }
.stepper-lg button:hover { background: rgba(255,255,255,.16); }
.stepper-lg span { min-width: 34px; text-align: center; font-family: var(--f-mono); font-size: 15px; }
.stepper-lg.sm button { width: 30px; height: 30px; font-size: 16px; }
.switch { display: flex; align-items: center; gap: 14px; cursor: pointer; }
.switch input { position: absolute; opacity: 0; pointer-events: none; }
.switch__track { width: 50px; height: 30px; border-radius: 15px; background: rgba(255,255,255,.14); position: relative; transition: background .3s; flex: none; }
.switch__track span { position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; border-radius: 50%; background: #fff; transition: transform .4s var(--spring); box-shadow: 0 2px 6px rgba(0,0,0,.3); }
.switch input:checked + .switch__track { background: var(--blue); }
.switch input:checked + .switch__track span { transform: translateX(20px); }
.switch input:focus-visible + .switch__track { outline: 2px solid var(--blue); outline-offset: 3px; }
.switch__label { font-size: 15px; font-weight: 400; line-height: 1.25; }
.switch__label small { display: block; font-size: 12px; color: var(--mist); font-weight: 300; }

.results { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.res {
  border-radius: 24px; background: var(--deep); box-shadow: var(--inset); padding: 12px 12px 18px; display: flex; flex-direction: column;
  animation: resIn .7s var(--spring) backwards; animation-delay: calc(var(--i) * 90ms);
}
@keyframes resIn { from { opacity: 0; transform: translateY(24px) scale(.96); } }
.res .plate { width: 100%; aspect-ratio: 1; border-radius: 16px; }
.res h3 { font-family: var(--f-display); font-variation-settings: "wdth" 85; font-weight: 600; font-size: 21px; line-height: 1.1; letter-spacing: -0.02em; margin: 16px 6px 8px; }
.res__meta { display: flex; gap: 6px; flex-wrap: wrap; margin: 0 6px; }
.res__meta span { font-family: var(--f-mono); font-size: 11.5px; padding: 4px 8px; border-radius: 8px; background: rgba(255,255,255,.06); color: var(--fog); }
.res__miss { margin: 12px 6px 0; font-size: 13px; font-weight: 400; }
.res__miss.ok { color: var(--fog); }
.res__miss.no { color: var(--fog); }
.res__miss.no::before { content: ""; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--tangerine); margin-right: 6px; vertical-align: 1px; }
.res__uses { margin: 4px 6px 0; font-size: 12px; color: var(--mist); }
.res--ghost { border: 1px dashed rgba(255,255,255,.14); box-shadow: none; background: transparent; display: grid; place-items: center; text-align: center; color: var(--mist); font-size: 14px; padding: 24px; min-height: 280px; }
.results__note {
  margin-top: 20px; padding: 18px 20px; border-radius: 18px; display: flex; gap: 16px; align-items: center; flex-wrap: wrap;
  background: var(--indigo); box-shadow: var(--inset); font-size: 15px; font-weight: 300;
}
.results__note[hidden] { display: none; }
.results__note p { margin: 0; flex: 1 1 260px; }
.results__note .acts { display: flex; gap: 8px; flex-wrap: wrap; }
.results__note button { font-size: 13px; padding: 8px 14px; border-radius: 11px; background: rgba(255,255,255,.08); font-weight: 400; transition: background .2s; }
.results__note button:hover { background: rgba(255,255,255,.16); }

/* plate illustration */
.plate {
  position: relative; aspect-ratio: 1; display: grid; place-items: center; overflow: hidden;
  background: radial-gradient(circle at 30% 20%, color-mix(in srgb, var(--c2) 70%, #fff), var(--c1) 55%, color-mix(in srgb, var(--c1) 60%, #000) 100%);
  box-shadow: inset 0 2px 0 rgba(255,255,255,.35), inset 0 -20px 40px rgba(0,0,0,.25);
}
.plate::before { /* ceramic plate */
  content: ""; position: absolute; width: 74%; aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle at 40% 35%, #fdfcf8, #e9e4da 60%, #cfc8bb 100%);
  box-shadow: 0 24px 40px -10px rgba(0,0,0,.45), inset 0 0 0 10px rgba(255,255,255,.55), inset 0 0 0 11px rgba(0,0,0,.06), inset 0 -6px 18px rgba(0,0,0,.08);
}
.plate__food { position: relative; font-size: clamp(48px, 7vw, 76px); filter: drop-shadow(0 8px 6px rgba(0,0,0,.25)); }
.plate__garnish { position: absolute; left: 50%; top: 50%; font-size: 22px; transform: rotate(var(--a)) translateY(-30%) translateY(-50px) rotate(calc(var(--a) * -1)); filter: drop-shadow(0 4px 3px rgba(0,0,0,.25)); margin: -12px 0 0 -12px; }
.badge-illu { position: absolute; left: 10px; bottom: 10px; z-index: 2; font-size: 10.5px; font-weight: 400; letter-spacing: .02em; padding: 4px 8px; border-radius: 8px; background: rgba(0,8,20,.55); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); color: #fff; }
.plate--xl .plate__food { font-size: clamp(80px, 11vw, 130px); }
.plate--xl .plate__garnish { font-size: 34px; transform: rotate(var(--a)) translateY(-118px) rotate(calc(var(--a) * -1)); margin: -18px 0 0 -18px; }
.badge-illu { pointer-events: none; }

/* ---------- recipe bento ---------- */
.recipe { padding: clamp(64px, 7vw, 96px) 0; }
.bento { display: grid; grid-template-columns: repeat(12, 1fr); gap: 16px; }
.b-hero { grid-column: span 7; grid-row: span 2; padding: 14px; display: flex; flex-direction: column; }
.b-hero .plate { border-radius: 20px; aspect-ratio: 16/10; }
.b-hero .plate::before { width: 52%; }
.b-hero__text { padding: 22px 16px 10px; }
.b-hero__text p { margin: 0; max-width: 46ch; }
.b-hero__text .mono { margin-bottom: 10px; }
.b-ing { grid-column: span 5; }
.b-head { display: flex; justify-content: space-between; align-items: center; }
.b-head h4 { margin: 0; }
.b-ing .small { margin: 8px 0 14px; }
.qty { list-style: none; margin: 0; padding: 0; }
.qty li { display: flex; justify-content: space-between; padding: 10px 0; border-top: 1px solid rgba(255,255,255,.07); font-size: 15px; font-weight: 300; }
.qty li b { font-family: var(--f-mono); font-weight: 400; font-size: 13.5px; color: #fff; transition: color .3s; }
.qty li b.bump { animation: bump .5s var(--spring); }
@keyframes bump { 40% { color: var(--sunflower); transform: scale(1.15); } }
.qty li span { display: inline-flex; gap: 10px; }
.b-steps { grid-column: span 5; }
.steps-list { margin: 0; padding: 0; list-style: none; counter-reset: s; display: grid; gap: 10px; }
.steps-list li { counter-increment: s; display: grid; grid-template-columns: 28px 1fr; gap: 10px; font-size: 15px; font-weight: 300; color: var(--fog); line-height: 1.45; }
.steps-list li::before { content: counter(s); width: 24px; height: 24px; border-radius: 8px; display: grid; place-items: center; font-family: var(--f-mono); font-size: 12px; background: var(--indigo); color: #fff; box-shadow: var(--inset); }
.b-nutri { grid-column: span 4; }
.kcal { margin: 0 0 18px; display: flex; align-items: baseline; gap: 8px; }
.display-num { font-family: var(--f-display); font-variation-settings: "wdth" 85; font-weight: 600; font-size: 64px; letter-spacing: -0.04em; line-height: 1; }
.kcal small { color: var(--mist); font-size: 15px; }
.macro { display: grid; grid-template-columns: 110px 1fr 46px; align-items: center; gap: 12px; font-size: 14px; font-weight: 300; padding: 6px 0; }
.macro i { height: 6px; border-radius: 4px; background: rgba(255,255,255,.07); position: relative; overflow: hidden; }
.macro i::after { content: ""; position: absolute; inset: 0; width: calc(var(--v) * 100%); background: var(--c); border-radius: 4px; transform-origin: left; transform: scaleX(0); transition: transform 1.4s var(--ease); box-shadow: 0 0 12px var(--c); }
.in-view .macro i::after { transform: scaleX(1); }
.macro b { font-family: var(--f-mono); font-weight: 400; font-size: 13px; text-align: right; }
.b-swap { grid-column: span 4; }
.swap { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; color: var(--mist); }
.swap .chip { font-size: 14px; padding: 8px 14px; }
.b-note { grid-column: span 4; display: flex; gap: 16px; align-items: flex-start; background: var(--indigo); }
.b-note p { margin: 0; font-size: 14.5px; color: var(--fog); line-height: 1.55; }
.b-note b { color: #fff; }
.note-icon { flex: none; width: 30px; height: 30px; border-radius: 10px; display: grid; place-items: center; background: var(--sunflower); color: #241a00; font-weight: 700; font-size: 15px; }

/* ---------- extras ---------- */
.extras { padding: clamp(64px, 7vw, 96px) 0; background: var(--deep); }
.extras .card { background: var(--canvas); }
.extras__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.x-card { padding: 16px 16px 30px; }
.x-card h3, .x-card p { padding: 0 14px; }
.x-card p { margin: 0; color: var(--fog); font-size: 16px; max-width: 48ch; }
.x-visual { height: 240px; border-radius: 20px; background: var(--deep); box-shadow: var(--inset-glow); margin-bottom: 26px; position: relative; overflow: hidden; display: grid; place-items: center; }
.x-first { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; }
.x-first .ftag { font-size: 15px; }
.flag { font-size: 10px; text-transform: uppercase; letter-spacing: .08em; font-weight: 600; padding: 3px 7px; border-radius: 7px; background: rgba(0,8,20,.35); }
.dimmed { opacity: .35; filter: saturate(.4); }
.x-card:hover .x-first .ftag:not(.dimmed) { transform: rotate(0) scale(1.05); transition: transform .5s var(--spring); }
.mini-rc { width: 76%; padding: 18px 20px; border-radius: 20px; background: var(--indigo); box-shadow: var(--inset); display: flex; flex-direction: column; gap: 4px; transform: rotate(-2deg); transition: transform .6s var(--spring); }
.x-card:hover .mini-rc { transform: rotate(0) translateY(-4px); }
.mini-rc b { font-family: var(--f-display); font-variation-settings: "wdth" 85; font-weight: 600; font-size: 24px; letter-spacing: -0.02em; }
.mini-rc small { color: var(--mist); font-family: var(--f-mono); font-size: 12px; margin-bottom: 10px; }
.mini-rc .miss { font-size: 14px; color: #fff; font-weight: 400; }
.mini-rc .sub { font-size: 13px; color: var(--fog); }
.x-adapt { align-content: center; gap: 18px; padding: 24px; }
.prompt { width: 100%; max-width: 380px; height: 52px; border-radius: 16px; background: var(--canvas); box-shadow: inset 0 0 0 1px rgba(28,108,255,.6), 0 0 32px -8px rgba(28,108,255,.6); display: flex; align-items: center; padding: 0 18px; font-size: 16px; font-weight: 300; }
.caret { width: 1.5px; height: 20px; background: var(--blue); margin-left: 2px; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.adapt-chips { display: flex; gap: 6px; flex-wrap: wrap; justify-content: center; }
.adapt-chips span { font-size: 12.5px; padding: 6px 11px; border-radius: 10px; box-shadow: inset 0 0 0 1px rgba(255,255,255,.14); color: var(--fog); transition: background .3s, color .3s; }
.adapt-chips span.on { background: var(--blue); color: #fff; box-shadow: none; }
.x-cooked { align-content: center; gap: 22px; }
.stars { display: flex; gap: 6px; font-size: 34px; }
.stars i { font-style: normal; color: rgba(255,255,255,.12); transition: color .3s, transform .5s var(--spring); cursor: pointer; }
.stars i.on { color: var(--sunflower); transform: scale(1.12) rotate(-6deg); text-shadow: 0 0 20px rgba(255,204,2,.5); }
.again { display: inline-flex; align-items: center; gap: 10px; padding: 12px 20px; border-radius: 16px; box-shadow: inset 0 0 0 1px rgba(255,255,255,.2); font-size: 15px; transition: background .3s, box-shadow .3s; justify-self: center; }
.again .heart { color: var(--mist); transition: color .3s, transform .5s var(--spring); display: inline-block; }
.again.on { box-shadow: inset 0 0 0 1px var(--blue), 0 0 30px -8px var(--blue); }
.again.on .heart { color: var(--blue); transform: scale(1.35); }

/* ---------- share ---------- */
.share { padding: clamp(64px, 7vw, 96px) 0; overflow: hidden; }
.share__grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 64px; align-items: center; }
.share .seg { margin-top: 34px; }
.fi-ico { width: 12px; height: 16px; border: 1.3px solid currentColor; border-radius: 3px; display: inline-block; }
.fi-ico.s { width: 14px; height: 14px; } .fi-ico.l { width: 17px; height: 12px; }
.privacy { display: flex; align-items: center; gap: 10px; margin-top: 26px; font-size: 14.5px; color: var(--fog); }
.privacy svg { color: var(--lime); flex: none; }
.share__stage { height: 600px; display: grid; place-items: center; position: relative; }
.share__stage::before { content: ""; position: absolute; width: 70%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(closest-side, rgba(0,204,75,.18), transparent); filter: blur(20px); }
.sharecard {
  position: relative; display: grid; border-radius: 28px; overflow: hidden; background: #fbf8f1; color: var(--canvas);
  box-shadow: 0 50px 100px -30px rgba(0,0,0,.8), 0 0 0 1px rgba(255,255,255,.1);
  transition: width .8s var(--ease), height .8s var(--ease), grid-template-columns .8s var(--ease), grid-template-rows .8s var(--ease);
  transform: rotate(-3deg);
}
.sharecard[data-f="portrait"] { width: 340px; height: 560px; grid-template-rows: 1.15fr 1fr; grid-template-columns: 1fr; }
.sharecard[data-f="square"] { width: 470px; height: 470px; grid-template-rows: 1fr 1fr; grid-template-columns: 1fr; }
.sharecard[data-f="landscape"] { width: 560px; height: 340px; grid-template-columns: 1fr 1fr; grid-template-rows: 1fr; }
.sharecard__art { position: relative; min-height: 0; overflow: hidden; }
.sharecard__art .plate { position: absolute; inset: 0; aspect-ratio: auto; }
.sharecard__art .plate::before { width: auto; height: 72%; }
.sharecard__art .plate__food { font-size: 66px; }
.sharecard__body { padding: 22px 24px; display: flex; flex-direction: column; min-height: 0; }
.sharecard__brand { display: flex; align-items: center; gap: 8px; font-family: var(--f-display); font-weight: 600; font-size: 14px; margin: 0 0 8px; letter-spacing: -0.01em; }
.sharecard__brand .brand__mark { background: var(--canvas); color: #fff; }
.sharecard h3 { font-family: var(--f-display); font-variation-settings: "wdth" 85; font-weight: 700; font-size: 30px; line-height: 1; letter-spacing: -0.03em; margin: 0 0 12px; }
.sharecard__meta { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; }
.sharecard__meta span { font-size: 12px; font-weight: 400; padding: 4px 9px; border-radius: 8px; background: rgba(0,8,20,.06); }
.sharecard__foot { margin-top: auto; display: flex; align-items: center; gap: 14px; }
.sharecard__foot p { margin: 0; font-size: 14px; font-weight: 500; line-height: 1.2; }
.sharecard__foot small { display: block; font-family: var(--f-mono); font-size: 10.5px; font-weight: 400; color: #5c6f8a; margin-top: 6px; }
.qr { width: 72px; height: 72px; border-radius: 6px; image-rendering: pixelated; flex: none; }

/* ---------- challenge ---------- */
.challenge { position: relative; padding: clamp(120px, 14vw, 190px) 0; background: var(--indigo); overflow: hidden; }
.challenge::before { content: ""; position: absolute; inset: 0; background: radial-gradient(60% 50% at 50% 100%, rgba(28,108,255,.22), transparent 70%); pointer-events: none; }
.challenge .container { position: relative; z-index: 2; }
.challenge__tags .ftag { position: absolute; left: var(--x); top: var(--y); font-size: 17px; padding: 12px 20px; z-index: 1; }
.ch-steps { list-style: none; padding: 0; margin: 56px auto 48px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; max-width: 760px; }
.ch-steps li { padding: 22px 18px; border-radius: 22px; background: rgba(0,8,20,.45); box-shadow: var(--inset); display: flex; flex-direction: column; align-items: center; gap: 6px; }
.ch-steps span { width: 34px; height: 34px; border-radius: 11px; display: grid; place-items: center; background: var(--blue); font-family: var(--f-mono); font-size: 14px; margin-bottom: 6px; box-shadow: var(--inset); }
.ch-steps b { font-weight: 500; font-size: 16px; }
.ch-steps small { color: var(--mist); font-size: 13px; }

/* ---------- pricing ---------- */
.pricing { padding: clamp(64px, 7vw, 96px) 0; }
.plans { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; max-width: 980px; margin: 0 auto; }
.plan { padding: 36px; display: flex; flex-direction: column; overflow: hidden; }
.plan__name { font-size: 15px; font-weight: 500; margin: 0 0 18px; display: flex; align-items: center; gap: 10px; }
.tagline--ghost { background: rgba(255,255,255,.1) !important; }
.tagline { font-size: 11px; font-weight: 500; text-transform: uppercase; letter-spacing: .08em; padding: 4px 9px; border-radius: 8px; background: var(--blue); }
.plan__price { margin: 0 0 8px; }
.plan__price .display-num { font-size: 72px; }
.plan > .dim { text-wrap: pretty; margin: 0 0 28px; font-size: 15px; min-height: 2.9em; }
.plan__list { list-style: none; padding: 0; margin: 0 0 32px; display: grid; gap: 12px; flex: 1; }
.plan__list li { display: grid; grid-template-columns: 22px 1fr; align-items: start; gap: 12px; font-size: 15px; font-weight: 300; line-height: 1.4; }
.plan__list li::before { content: ""; width: 22px; height: 22px; border-radius: 7px; background: no-repeat center/12px; }
.plan__list li.y::before { background-color: rgba(0,204,75,.16); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2.5 6.3l2.3 2.2 4.7-5' fill='none' stroke='%2300cc4b' stroke-width='1.6'/%3E%3C/svg%3E"); }
.plan__list li.p::before { background-color: rgba(255,204,2,.14); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M3 6h6' stroke='%23ffcc02' stroke-width='1.6'/%3E%3C/svg%3E"); }
.plan__list li.n { color: var(--mist); }
.plan__list li.n::before { background-color: rgba(255,255,255,.05); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M3.5 3.5l5 5m0-5l-5 5' stroke='%23999ca1' stroke-width='1.3'/%3E%3C/svg%3E"); }
.plan__list em { display: inline-block; margin-left: 6px; padding: 1px 7px; border-radius: 6px; background: rgba(255,255,255,.08); color: var(--fog); font-size: 12px; }
.plan .small { margin: 14px 0 0; }
.plan--pro { background: var(--cobalt); border-color: rgba(28,108,255,.35); box-shadow: var(--inset), 0 0 0 1px rgba(28,108,255,.25); }
.plan--pro .dim { color: #b6c6e6; }
.plan--pro .plan__list em { color: #b6c6e6; }
.plan__glow { position: absolute; width: 420px; height: 420px; right: -160px; top: -200px; border-radius: 50%; background: radial-gradient(closest-side, rgba(28,108,255,.55), transparent); filter: blur(10px); pointer-events: none; }

/* ---------- creator ---------- */
.creator { padding: clamp(64px, 7vw, 96px) 0; background: var(--deep); }
.creator__grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: 64px; align-items: center; }
.giant { font-size: clamp(140px, 20vw, 280px); line-height: .8; letter-spacing: -0.06em; margin: 0; display: flex; align-items: flex-start; }
.giant .pct { font-size: .42em; margin-top: .12em; margin-left: .04em; color: var(--blue); }
.creator__big .lead { margin-top: 26px; }
.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; margin: 40px 0 28px; border-top: 1px solid rgba(255,255,255,.1); }
.facts div { padding: 20px 16px 0 0; }
.facts div + div { padding-left: 16px; border-left: 1px solid rgba(255,255,255,.1); }
.facts dt { font-family: var(--f-display); font-variation-settings: "wdth" 85; font-weight: 600; font-size: 30px; letter-spacing: -0.03em; }
.facts dd { margin: 6px 0 0; font-size: 13.5px; color: var(--mist); line-height: 1.4; }
.creator__big > .small { margin: 0 0 30px; max-width: 52ch; line-height: 1.6; }
.dash { background: var(--canvas); padding: 26px; border-radius: 32px; }
.dash__top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
.dash__top p { margin: 0; font-weight: 400; font-size: 15px; }
.dash__kpis { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.dash__kpis div { padding: 16px 18px; border-radius: 18px; background: var(--deep); box-shadow: var(--inset); }
.dash__kpis small { display: block; font-size: 12.5px; color: var(--mist); }
.dash__kpis b { font-family: var(--f-display); font-variation-settings: "wdth" 85; font-weight: 600; font-size: 34px; letter-spacing: -0.03em; }
.dash__chart { position: relative; margin: 10px 0; height: 150px; border-radius: 18px; background: var(--deep); box-shadow: var(--inset); padding: 24px 0 0; overflow: hidden; }
.dash__chart svg { width: 100%; height: 100%; }
.dash__chart .line { stroke-dasharray: 600; stroke-dashoffset: 600; transition: stroke-dashoffset 2s var(--ease); filter: drop-shadow(0 0 6px rgba(28,108,255,.8)); }
.in-view .dash__chart .line { stroke-dashoffset: 0; }
.dash__conv { position: absolute; top: 14px; left: 18px; font-size: 12.5px; color: var(--mist); }
.dash__conv b { color: #fff; font-family: var(--f-mono); font-weight: 400; margin-left: 6px; }
.dash__payout { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.dash__payout div { padding: 14px 16px; border-radius: 16px; background: var(--deep); box-shadow: var(--inset); }
.dash__payout i { display: inline-block; width: 7px; height: 7px; border-radius: 50%; margin-right: 6px; vertical-align: 1px; }
.dash__payout small { font-size: 12px; color: var(--mist); }
.dash__payout b { display: block; font-family: var(--f-mono); font-weight: 400; font-size: 17px; margin-top: 4px; }
.fineprint { margin: 56px 0 0; font-size: 12.5px; color: var(--mist); max-width: 90ch; }

/* ---------- faq ---------- */
.faq { padding: clamp(64px, 7vw, 96px) 0; }
.faq__list { border-top: 1px solid rgba(255,255,255,.1); }
.faq details { border-bottom: 1px solid rgba(255,255,255,.1); }
.faq summary { list-style: none; cursor: pointer; padding: 26px 48px 26px 0; position: relative; font-size: clamp(18px, 1.8vw, 22px); font-weight: 300; transition: color .2s; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 6px; top: 50%; width: 14px; height: 14px; margin-top: -7px; background: linear-gradient(#fff,#fff) center/14px 1.3px no-repeat, linear-gradient(#fff,#fff) center/1.3px 14px no-repeat; transition: transform .4s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq summary:hover { color: var(--fog); }
.faq details p { margin: 0; padding: 0 48px 28px 0; color: var(--fog); font-size: 16.5px; max-width: 64ch; }

/* ---------- final ---------- */
.final { position: relative; min-height: 88svh; display: grid; place-items: start center; overflow: hidden; background: var(--canvas); padding-top: clamp(100px, 14vh, 160px); }
.final__copy { position: relative; z-index: 2; padding: 0 20px; text-align: center; display: flex; flex-direction: column; align-items: center; pointer-events: none; }
.final__copy a { pointer-events: auto; }
.final__copy .lead { margin: 26px 0 36px; }
.final__title { font-size: clamp(64px, 11vw, 168px); }
.pile { position: absolute; inset: 0; z-index: 1; }
.pile .ftag { position: absolute; left: 0; top: 0; cursor: grab; user-select: none; -webkit-user-select: none; will-change: transform; touch-action: none; font-size: 18px; padding: 12px 20px; border-radius: 22px; }
.pile .ftag:active { cursor: grabbing; }

/* ---------- footer ---------- */
.footer { border-top: 1px solid rgba(17,38,59,.9); padding: 40px 0 48px; background: var(--canvas); }
.footer__inner { display: flex; align-items: center; gap: 28px 40px; flex-wrap: wrap; justify-content: space-between; }
.footer__links, .footer__legal { display: flex; gap: 22px; flex-wrap: wrap; font-size: 14px; color: var(--fog); }
.footer__legal { color: var(--mist); font-size: 13px; }
.footer a:hover { color: #fff; }

/* ---------- reveal ---------- */
.rv { opacity: 0; transform: translateY(40px); transition: opacity 1s var(--ease), transform 1.1s var(--ease); transition-delay: var(--d, 0s); }
.rv.in-view { opacity: 1; transform: none; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1080px) {
  .nav__links { display: none; }
  .nav__inner { grid-template-columns: 1fr auto; }
  .demo__panel { grid-template-columns: 1fr; }
  .demo__controls { border-right: 0; border-bottom: 1px solid rgba(17,38,59,.8); }
  .b-hero { grid-column: span 12; grid-row: auto; }
  .b-ing, .b-steps { grid-column: span 6; }
  .b-nutri, .b-swap, .b-note { grid-column: span 6; }
  .b-note { grid-column: span 12; }
  .creator__grid, .share__grid { grid-template-columns: 1fr; gap: 48px; }
  .share__stage { height: 560px; }
}

@media (max-width: 820px) {
  body { font-size: 16px; }
  .container { padding: 0 20px; }
  .nav__inner { padding: 0 20px; height: 60px; }
  .nav__login { display: none; }
  .announce { font-size: 12px; gap: 8px; }
  .announce > span:nth-child(2) { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .hero { min-height: calc(100svh - 100px); }
  .hero__content { padding: 24px 20px 90px; }
  .hero__title { font-size: 20.5vw; }
  .hero__kicker { margin-bottom: 22px; }
  .hero__ctas { flex-direction: column; width: 100%; max-width: 360px; }
  .hero__ctas .btn { width: 100%; }
  .hero__meta { gap: 6px 0; }
  .hero__meta li { padding: 0 10px; font-size: 12px; }

  /* how: phone sticky, steps scroll over it as glass cards */
  .how__grid { display: block; position: relative; }
  .how__stage { position: sticky; top: 72px; height: auto; padding: 0; z-index: 1; margin-bottom: -10px; }
  .phone { transform: scale(.82); transform-origin: top center; margin-bottom: calc(660px * -.18); }
  .stage-tags { display: none; }
  .how__steps { position: relative; z-index: 2; padding: 0 0 10vh; margin-top: -42vh; }
  .step { min-height: 0; margin: 0 0 56vh; opacity: 1; padding: 22px; border-radius: 24px; background: rgba(1,13,30,.82); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); box-shadow: var(--inset); border: 1px solid rgba(255,255,255,.06); }
  .step:first-child { margin-top: 56vh; }
  .step p { font-size: 15.5px; }

  .results { grid-template-columns: 1fr; }
  .res { flex-direction: row; gap: 14px; align-items: center; padding: 10px; }
  .res .plate { width: 108px; flex: none; }
  .res .plate__food { font-size: 46px; }
  .res .plate__garnish { display: none; }
  .res .badge-illu { font-size: 9px; padding: 3px 6px; left: 6px; bottom: 6px; }
  .res h3 { margin: 0 0 6px; font-size: 19px; }
  .res__meta, .res__miss, .res__uses { margin-left: 0; }
  .res--ghost { min-height: 120px; }
  .demo__controls, .demo__results { padding: 22px; }
  .demo__results { min-height: 0; }
  .demo__panel { border-radius: 28px; }

  .bento { display: flex; flex-direction: column; }
  .plate--xl .plate__garnish { transform: rotate(var(--a)) translateY(-80px) rotate(calc(var(--a) * -1)); font-size: 26px; }
  .extras__grid, .plans { grid-template-columns: 1fr; }
  .x-visual { height: 210px; }
  .ch-steps { grid-template-columns: 1fr; }
  .challenge__tags .ftag { font-size: 13px; padding: 8px 14px; }
  .challenge__tags .ftag:nth-child(1) { --y: 3% !important; --x: 4% !important; }
  .challenge__tags .ftag:nth-child(2) { --y: 5% !important; --x: 52% !important; }
  .challenge__tags .ftag:nth-child(3) { --y: 93% !important; --x: 50% !important; }
  .challenge__tags .ftag:nth-child(4) { --y: 94% !important; --x: 6% !important; }
  .facts { grid-template-columns: 1fr; }
  .facts div + div { border-left: 0; padding-left: 0; border-top: 1px solid rgba(255,255,255,.1); }
  .facts div { padding: 16px 0; }
  .dash { padding: 16px; border-radius: 26px; }
  .dash__kpis b { font-size: 28px; }
  .dash__payout { grid-template-columns: 1fr; }
  .share__stage { height: 520px; }
  .sharecard[data-f="portrait"] { width: 290px; height: 480px; }
  .sharecard[data-f="square"] { width: 320px; height: 320px; }
  .sharecard[data-f="landscape"] { width: 340px; height: 220px; }
  .sharecard[data-f="square"] .sharecard__meta, .sharecard[data-f="landscape"] .sharecard__meta { display: none; }
  .sharecard[data-f="landscape"] h3, .sharecard[data-f="square"] h3 { font-size: 22px; }
  .sharecard[data-f="landscape"] .sharecard__body, .sharecard[data-f="square"] .sharecard__body { padding: 14px 16px; }
  .sharecard[data-f="landscape"] .qr { width: 52px; height: 52px; }
  .sharecard[data-f="landscape"] .sharecard__foot p { font-size: 12px; }
  .sharecard[data-f="landscape"] .sharecard__foot small { display: none; }
  .final__title { font-size: clamp(60px, 17vw, 120px); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  html { scroll-behavior: auto; }
}

/* ---------- critique round 1 additions ---------- */
.m-only { display: none; }
.phone--mini { display: none; }
@media (max-width: 820px) { .phone--mini { display: block; } }
.how__steps { -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 12%, #000 88%, transparent 100%); mask-image: linear-gradient(to bottom, transparent 0, #000 12%, #000 88%, transparent 100%); }

/* viewfinder cursor */
.viewfinder { position: absolute; left: 0; top: 0; width: 110px; height: 76px; z-index: 3; pointer-events: none; opacity: 0; transition: opacity .3s; }
.viewfinder.on { opacity: 1; }
.viewfinder i { position: absolute; width: 18px; height: 18px; border: 0 solid #fff; filter: drop-shadow(0 0 6px rgba(28,108,255,.9)); transition: border-color .2s; }
.viewfinder i:nth-child(1) { left: 0; top: 0; border-top-width: 2px; border-left-width: 2px; border-top-left-radius: 8px; }
.viewfinder i:nth-child(2) { right: 0; top: 0; border-top-width: 2px; border-right-width: 2px; border-top-right-radius: 8px; }
.viewfinder i:nth-child(3) { left: 0; bottom: 0; border-bottom-width: 2px; border-left-width: 2px; border-bottom-left-radius: 8px; }
.viewfinder i:nth-child(4) { right: 0; bottom: 0; border-bottom-width: 2px; border-right-width: 2px; border-bottom-right-radius: 8px; }
.viewfinder.lock i { border-color: var(--blue); }
.viewfinder b { position: absolute; left: -2px; top: -30px; white-space: nowrap; font-family: var(--f-mono); font-weight: 400; font-size: 11.5px; padding: 4px 9px; border-radius: 8px; background: var(--blue); opacity: 0; transform: translateY(4px); transition: opacity .2s, transform .3s var(--spring); }
.viewfinder.lock b { opacity: 1; transform: none; }
@media (hover: hover) and (pointer: fine) { .hero.vf-active { cursor: none; } }

@media (hover: none) { .hero__scroll { display: none; } }

@media (max-width: 820px) {
  .m-only { display: inline; } .d-only { display: none; }
  .hero__meta { flex-wrap: nowrap; }
  .hero__ctas .btn--ghost { border: 0; height: 44px; text-decoration: underline; text-underline-offset: 5px; text-decoration-color: rgba(255,255,255,.35); }
  .statement__text { font-size: 29px; }

  /* how: horizontal snap strip, each card pairs copy with its own phone */
  .how__stage { display: none; }
  .how__grid { display: block; padding: 0; }
  .how__steps { -webkit-mask-image: none; mask-image: none; margin: 0; padding: 0 20px 8px; display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
  .how__steps::-webkit-scrollbar { display: none; }
  .step, .step:first-child { flex: 0 0 86%; scroll-snap-align: center; margin: 0; min-height: 0; opacity: 1; padding: 22px 20px 0; overflow: hidden; display: flex; flex-direction: column; justify-content: flex-start; background: var(--deep); backdrop-filter: none; }
  .step .phone--mini { margin: 22px auto 0; transform: scale(.7); transform-origin: top center; margin-bottom: calc(660px * -.3 - 60px); flex: none; }
  .step .phone--mini::before { display: none; }
  .how__dots { display: flex; justify-content: center; gap: 6px; margin-top: 18px; }
  .how__dots i { width: 6px; height: 6px; border-radius: 3px; background: rgba(255,255,255,.2); transition: width .3s, background .3s; }
  .how__dots i.on { width: 20px; background: #fff; }

  .sharecard__meta { flex-wrap: nowrap; overflow: hidden; }
  .sharecard__foot { margin-top: 16px; }
  .sharecard[data-f="portrait"] { height: 500px; }
  .final { min-height: 80svh; padding-top: 96px; }
}
@media (min-width: 821px) { .how__dots { display: none; } }

/* ---------- critique round 2 ---------- */
.statement .nw .itag { margin-right: -.05em; }
.b-swap, .b-note { align-self: start; }
.challenge { padding: clamp(64px, 7vw, 96px) 0; }
.fineprint { margin-top: 40px; }
.final { min-height: 92svh; }
@media (max-width: 820px) {
  .hero__scroll { display: none; }
  .h2 br { display: none; }
  .how { padding-bottom: 64px; }
  .step .phone--mini { -webkit-mask-image: linear-gradient(#000 78%, transparent 98%); mask-image: linear-gradient(#000 78%, transparent 98%); }
  .ch-steps { margin: 40px auto 36px; gap: 8px; }
  .ch-steps li { flex-direction: row; text-align: left; padding: 12px 14px; gap: 14px; display: grid; grid-template-columns: 34px 1fr; grid-template-rows: auto auto; }
  .ch-steps li span { grid-row: span 2; margin: 0; align-self: center; }
  .ch-steps li small { grid-column: 2; }
  .dash__payout { grid-template-columns: repeat(3, 1fr); gap: 6px; }
  .dash__payout div { padding: 10px; }
  .dash__payout b { font-size: 15px; }
  .final { min-height: 100svh; }
}

/* ---------- critique round 3 ---------- */
.h2 { overflow-wrap: anywhere; hyphens: manual; }
.h2.xl { font-size: clamp(38px, 10vw, 92px); }
.plan__list em { display: inline; }
.scr--prefs .scr__cta--ghost { margin-top: auto; }
.scr--prefs .pref-chips { gap: 7px; margin: 6px 0 10px; }
.scr--prefs .pref-chips span { padding: 8px 12px; font-size: 12.5px; }
.scr--prefs .pref-row { padding: 12px 4px; }
@media (min-width: 1081px) { .h2.xl { font-size: clamp(46px, 6.4vw, 92px); } }
@media (max-width: 820px) {
  .h2.xl { font-size: 11vw; }
  .final { min-height: 0; padding-bottom: 320px; }
  .step .phone--mini { -webkit-mask-image: linear-gradient(#000 66%, transparent 88%); mask-image: linear-gradient(#000 66%, transparent 88%); }
}
@media (max-width: 820px) { .ch-steps li { row-gap: 2px; align-items: center; } .ch-steps li b { align-self: end; } .ch-steps li small { align-self: start; } }
@media (max-width: 820px) {
  .hero__kicker { backdrop-filter: none; -webkit-backdrop-filter: none; background: rgba(1,13,30,.9); }
  .step .phone--mini { transform: scale(.56); margin-bottom: calc(660px * -.44); -webkit-mask-image: none; mask-image: none; }
  .challenge__tags .ftag:nth-child(3), .challenge__tags .ftag:nth-child(4) { display: none; }
}

/* ==========================================================================
   Creator application dialog
   ========================================================================== */
html.modal-open { overflow: hidden; }
.apply { padding: 0; border: 0; background: transparent; color: #fff; max-width: min(640px, calc(100vw - 24px)); width: 100%; max-height: calc(100dvh - 24px); overflow: visible; }
.apply::backdrop { background: rgba(0,4,12,.72); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.apply[open] { animation: applyIn .5s var(--ease); }
.apply[open]::backdrop { animation: fade .4s ease; }
@keyframes applyIn { from { opacity: 0; transform: translateY(24px) scale(.98); } }
@keyframes fade { from { opacity: 0; } }
.apply__panel { position: relative; background: var(--deep); border-radius: 32px; border: 1px solid rgba(17,38,59,.8); box-shadow: var(--inset), 0 40px 120px -30px rgba(28,108,255,.35); padding: 40px; max-height: calc(100dvh - 24px); overflow-y: auto; overscroll-behavior: contain; }
.apply__close { position: absolute; top: 18px; right: 18px; width: 38px; height: 38px; border-radius: 12px; font-size: 22px; line-height: 1; color: var(--fog); background: rgba(255,255,255,.06); transition: background .2s, color .2s; z-index: 2; }
.apply__close:hover { background: rgba(255,255,255,.14); color: #fff; }
.apply .eyebrow { margin-bottom: 16px; }
.apply__title { font-family: var(--f-display); font-variation-settings: "wdth" 96; font-weight: 600; font-size: clamp(32px, 5vw, 44px); line-height: 1; letter-spacing: -0.02em; margin: 0; outline: none; }
.apply__lead { color: var(--fog); font-size: 16px; font-weight: 300; margin: 14px 0 28px; max-width: 48ch; }
.apply__view--done { display: none; text-align: center; }
.apply[data-view="done"] .apply__view--form { display: none; }
.apply[data-view="done"] .apply__view--done { display: block; animation: applyIn .5s var(--ease); }
.apply__view--done .apply__lead { margin-inline: auto; }
.apply__check { width: 72px; height: 72px; border-radius: 22px; margin: 8px auto 24px; display: grid; place-items: center; background: var(--blue); box-shadow: var(--inset), 0 0 60px -10px var(--blue); }
.apply__check svg { width: 40px; height: 40px; }
.apply__check path { stroke-dasharray: 30; stroke-dashoffset: 30; }
.apply[data-view="done"] .apply__check path { animation: draw .6s .25s var(--ease) forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.apply__next { list-style: none; counter-reset: n; padding: 0; margin: 0 0 28px; text-align: left; display: grid; gap: 8px; }
.apply__next li { counter-increment: n; display: grid; grid-template-columns: 34px 1fr; column-gap: 14px; padding: 14px 16px; border-radius: 18px; background: var(--canvas); box-shadow: var(--inset); }
.apply__next li::before { content: counter(n); grid-row: span 2; width: 30px; height: 30px; border-radius: 10px; display: grid; place-items: center; background: var(--indigo); font-family: var(--f-mono); font-size: 13px; align-self: center; }
.apply__next b { font-weight: 500; font-size: 15px; }
.apply__next small { color: var(--mist); font-size: 13.5px; line-height: 1.45; }

.af-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 14px; }
.af-field--full { grid-column: 1 / -1; }
.af-field label, .af-profiles legend { display: block; font-size: 13px; color: var(--fog); font-weight: 400; margin-bottom: 8px; }
.af-profiles legend span { color: var(--mist); font-weight: 300; margin-left: 6px; }
.af-input { display: flex; align-items: center; height: 52px; border-radius: 14px; background: var(--canvas); box-shadow: inset 0 0 0 1px rgba(255,255,255,.1), var(--inset-glow); transition: box-shadow .2s; }
.af-input:focus-within { box-shadow: inset 0 0 0 1.5px var(--blue), 0 0 0 4px rgba(28,108,255,.18); }
.has-error .af-input { box-shadow: inset 0 0 0 1.5px var(--coral); }
.af-input input, .af-input select { flex: 1; min-width: 0; height: 100%; background: transparent; border: 0; outline: 0; color: #fff; font: 300 16px/1 var(--f-body); padding: 0 16px; }
.af-input input::placeholder { color: rgba(255,255,255,.3); }
.af-input--select { position: relative; }
.af-input--select select { appearance: none; -webkit-appearance: none; cursor: pointer; padding-right: 40px; }
.af-input--select select:invalid { color: rgba(255,255,255,.4); }
.af-input--select option { color: #000; }
.af-input--select::after { content: ""; position: absolute; right: 18px; top: 50%; width: 8px; height: 8px; margin-top: -6px; border-right: 1.5px solid var(--fog); border-bottom: 1.5px solid var(--fog); transform: rotate(45deg); pointer-events: none; }
.af-err { min-height: 18px; margin: 6px 2px 4px; font-size: 12.5px; color: #ff7a6b; font-weight: 400; }
.af-profiles { border: 0; padding: 0; margin: 8px 0 0; min-width: 0; }
.af-profile { display: grid; grid-template-columns: 1fr auto; column-gap: 8px; }
.af-profile .af-err { grid-column: 1 / -1; }
.af-platform { flex: none; margin-left: 8px; padding: 6px 10px; border-radius: 9px; font-size: 12px; font-weight: 400; background: rgba(255,255,255,.07); color: var(--mist); transition: background .3s, color .3s; min-width: 44px; text-align: center; }
.af-profile.is-known .af-platform { background: var(--blue); color: #fff; }
.af-input--url input { padding-left: 10px; }
.af-remove { width: 52px; height: 52px; border-radius: 14px; font-size: 20px; color: var(--mist); background: rgba(255,255,255,.05); transition: background .2s, color .2s; }
.af-remove:hover { background: rgba(255,255,255,.12); color: #fff; }
.af-add { font-size: 14px; color: #fff; padding: 8px 0; text-decoration: underline; text-decoration-color: rgba(255,255,255,.3); text-underline-offset: 4px; }
.af-add:hover { text-decoration-color: #fff; }
.af-hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.af-consent { margin-top: 18px; }
.af-check { display: grid !important; grid-template-columns: 22px 1fr; gap: 12px; align-items: start; cursor: pointer; font-size: 14px !important; line-height: 1.5; color: var(--fog) !important; margin: 0 !important; }
.af-check input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.af-check__box { width: 22px; height: 22px; border-radius: 7px; box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.3); display: grid; place-items: center; transition: background .2s, box-shadow .2s; margin-top: 1px; }
.af-check input:checked + .af-check__box { background: var(--blue) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2.5 6.3l2.3 2.2 4.7-5' fill='none' stroke='%23fff' stroke-width='1.8'/%3E%3C/svg%3E") center/12px no-repeat; box-shadow: none; }
.af-check input:focus-visible + .af-check__box { outline: 2px solid var(--blue); outline-offset: 3px; }
.has-error .af-check__box { box-shadow: inset 0 0 0 1.5px var(--coral); }
.af-check a { color: #fff; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(255,255,255,.35); }
.af-formerr { margin: 4px 0 16px; padding: 14px 16px; border-radius: 14px; background: rgba(255,68,51,.1); box-shadow: inset 0 0 0 1px rgba(255,68,51,.35); font-size: 14px; color: #ffd0ca; outline: none; }
#apply-submit { margin-top: 10px; gap: 10px; }
#apply-submit:disabled { opacity: .75; cursor: progress; }
.af-spinner { display: none; width: 16px; height: 16px; border-radius: 50%; border: 2px solid rgba(255,255,255,.35); border-top-color: #fff; animation: spin .7s linear infinite; }
.is-loading .af-spinner { display: block; }
@keyframes spin { to { transform: rotate(360deg); } }
.af-note { text-align: center; font-size: 13px; color: var(--mist); margin: 14px 0 0; }

/* referral banner */
.refbar { position: fixed; left: 50%; bottom: 20px; z-index: 90; display: flex; align-items: center; gap: 14px; width: max-content; max-width: calc(100vw - 24px); padding: 10px 10px 10px 12px; border-radius: 18px; background: rgba(1,13,30,.88); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); box-shadow: var(--inset), 0 20px 60px -20px rgba(0,0,0,.8); border: 1px solid rgba(28,108,255,.35); transform: translate(-50%, 140%); transition: transform .7s var(--spring); }
.refbar.is-in { transform: translate(-50%, 0); }
.refbar.is-in.is-hidden { transform: translate(-50%, 140%); }
.refbar__code { flex: none; font-family: var(--f-mono); font-size: 13px; padding: 6px 10px; border-radius: 10px; background: var(--blue); }
.refbar p { margin: 0; font-size: 13.5px; font-weight: 300; color: var(--fog); max-width: 52ch; }
.refbar__x { flex: none; width: 32px; height: 32px; border-radius: 10px; font-size: 18px; color: var(--mist); background: rgba(255,255,255,.06); }
.refbar__x:hover { color: #fff; background: rgba(255,255,255,.12); }

@media (max-width: 640px) {
  .apply { max-width: 100vw; margin: auto 0 0; max-height: 100dvh; }
  .apply__panel { border-radius: 28px 28px 0 0; padding: 28px 20px calc(24px + env(safe-area-inset-bottom)); max-height: 94dvh; }
  .apply[open] { animation: sheetIn .5s var(--ease); }
  @keyframes sheetIn { from { transform: translateY(40%); opacity: 0; } }
  .af-grid { grid-template-columns: 1fr; }
  .refbar { bottom: 12px; align-items: flex-start; }
  .refbar p { font-size: 12.5px; }
}
.af-profile:not(:has(.af-remove)) { grid-template-columns: 1fr; }
