/* ==========================================================================
   Nafroo home page styles (site-20261013.css), used by index.html only.
   "A and B combined": the food label scan demo up top with its scan moments
   down the page (preview B), and the sky turning from morning to night
   behind the whole page (preview A).
   1 base  2 shared classes  3 page layers and section skies  4 focus,
   buttons  5 top bar and menu  6 hero  7 demo phone  8 callouts and demo
   controls  9 the moving sky  10 MOTION  11 safety nets.
   Files in /assets are cached for a year: change this file only together
   with a new file name, and update the <link> in index.html.
   ========================================================================== */

/* ---------- 1. Base ---------- */
html{-webkit-text-size-adjust:100%;scroll-padding-top:72px;scroll-padding-bottom:16px}
body{margin:0;background:#F7F6F9;color:#17131C;font-family:'DM Sans',system-ui,sans-serif;-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility}
/* Zero specificity, so a link's own class or inline colour always wins */
:where(a){color:#7B3F73}:where(a:hover){color:#5E2F58}
:root{--gut:clamp(16px,4vw,40px);--ease:cubic-bezier(.16,1,.3,1);--focus:#7B2D63}
nafroo-plum{display:inline-block;aspect-ratio:1/1;vertical-align:middle;line-height:0}
nafroo-plum>svg{display:block;width:100%;height:100%;overflow:visible}
.stars{background-image:radial-gradient(0.8px 0.8px at 231px 238px,rgba(236,214,230,0.7) 50%,transparent 51%),radial-gradient(0.9px 0.9px at 262px 243px,rgba(236,214,230,0.68) 50%,transparent 51%),radial-gradient(0.6px 0.6px at 155px 72px,rgba(255,255,255,0.68) 50%,transparent 51%),radial-gradient(1.1px 1.1px at 21px 202px,rgba(255,255,255,0.63) 50%,transparent 51%),radial-gradient(1.0px 1.0px at 80px 7px,rgba(236,214,230,0.42) 50%,transparent 51%),radial-gradient(1.0px 1.0px at 123px 15px,rgba(255,255,255,0.51) 50%,transparent 51%),radial-gradient(0.7px 0.7px at 100px 265px,rgba(236,214,230,0.5) 50%,transparent 51%),radial-gradient(0.9px 0.9px at 43px 234px,rgba(255,255,255,0.54) 50%,transparent 51%),radial-gradient(0.8px 0.8px at 42px 130px,rgba(255,255,255,0.48) 50%,transparent 51%),radial-gradient(0.8px 0.8px at 35px 55px,rgba(255,255,255,0.7) 50%,transparent 51%),radial-gradient(0.9px 0.9px at 8px 350px,rgba(255,255,255,0.58) 50%,transparent 51%),radial-gradient(1.5px 1.5px at 240px 192px,rgba(236,214,230,0.66) 50%,transparent 51%),radial-gradient(1.4px 1.4px at 322px 101px,rgba(236,214,230,0.61) 50%,transparent 51%),radial-gradient(1.5px 1.5px at 170px 7px,rgba(236,214,230,0.8) 50%,transparent 51%),radial-gradient(1.0px 1.0px at 126px 361px,rgba(255,255,255,0.52) 50%,transparent 51%),radial-gradient(1.2px 1.2px at 90px 349px,rgba(236,214,230,0.68) 50%,transparent 51%),radial-gradient(1.2px 1.2px at 374px 67px,rgba(255,255,255,0.65) 50%,transparent 51%),radial-gradient(1.6px 1.6px at 217px 0px,rgba(255,255,255,0.99) 50%,transparent 51%),radial-gradient(1.5px 1.5px at 311px 20px,rgba(255,255,255,0.82) 50%,transparent 51%),radial-gradient(1.4px 1.4px at 657px 102px,rgba(255,255,255,0.74) 50%,transparent 51%),radial-gradient(1.9px 1.9px at 9px 336px,rgba(236,214,230,0.82) 50%,transparent 51%),radial-gradient(1.4px 1.4px at 213px 248px,rgba(255,255,255,0.81) 50%,transparent 51%);background-size:331px 271px,331px 271px,331px 271px,331px 271px,331px 271px,331px 271px,331px 271px,331px 271px,331px 271px,331px 271px,467px 389px,467px 389px,467px 389px,467px 389px,467px 389px,467px 389px,467px 389px,683px 521px,683px 521px,683px 521px,683px 521px,683px 521px;background-repeat:repeat}

/* ---------- 2. Shared classes (repeated styles of the page) ---------- */
.ft{display:inline-flex;align-items:center;min-height:44px;color:#C3C8D0;text-decoration:none;font-size:15px;font-weight:500}
.eb-n{font-family:'Fraunces', Georgia, serif;font-style:italic;font-weight:500;font-size:19px;letter-spacing:0;text-transform:none}
.glass-i{width:20px;height:26px;display:block;flex:none}
.faq-i{padding:clamp(22px,2.4vw,30px) 0;border-top:1px solid rgba(58,42,53,.14)}
.faq-q{font-family:'Bricolage Grotesque', system-ui, sans-serif;font-size:clamp(20px,1.8vw,24px);font-weight:700;letter-spacing:-.02em;line-height:1.25;color:#17131C}
.faq-a{margin:10px 0 0;font-size:17px;line-height:1.65;color:#463E4C;max-width:62ch}
.dd-a{color:#5E2F58;font-weight:700;padding:12px 0}
.chip-d{display:inline-flex;align-items:center;min-height:34px;padding:0 13px;border-radius:999px;background:#22262E;box-shadow:inset 0 0 0 1px #2A2F3A;font-size:14px;font-weight:600;color:#C9CDD4}
.chip-c{display:inline-flex;align-items:center;min-height:28px;padding:0 11px;border-radius:999px;background:#22262E;box-shadow:inset 0 0 0 1px #313744;font-size:13px;font-weight:600;color:#D6D9DF}
.chip-l{display:inline-flex;align-items:center;min-height:36px;padding:0 14px;border-radius:999px;background:#FFFFFF;box-shadow:inset 0 0 0 1px rgba(23,19,28,.12);font-size:15px;font-weight:600;color:#2F2A36}
.chip-m{display:inline-flex;align-items:center;min-height:36px;padding:0 12px;border-radius:999px;font-size:14px;font-weight:600;color:#474C59;box-shadow:inset 0 0 0 1px rgba(23,19,28,.13)}
.m-name{flex:none;width:76px;font-size:13.5px;font-weight:700;color:#E2E5EA}
.m-food{flex:1;min-width:0;font-size:13.5px;color:#AEB4BE}
.m-kcal{flex:none;font-size:13.5px;font-weight:600;color:#E2E5EA}
.m-row{display:flex;align-items:baseline;gap:12px;padding:11px 0;border-top:1px solid #262B33}
.pl-li-d{display:flex;align-items:center;gap:12px;font-size:16.5px;line-height:1.4;color:#FFFFFF}
.pl-ck-d{flex:none;width:26px;height:26px;border-radius:50%;background:rgba(255,255,255,.12);display:flex;align-items:center;justify-content:center}
.pl-li{display:flex;align-items:center;gap:12px;font-size:16.5px;line-height:1.4;color:#17131C}
.pl-ck{flex:none;width:26px;height:26px;border-radius:50%;background:#F5EEF3;display:flex;align-items:center;justify-content:center}
.i15g{display:block;flex:none;width:15px;height:15px;color:#F2C14E}
.i15p{display:block;flex:none;width:15px;height:15px;color:#7B3F73}
.i16p{display:block;flex:none;width:16px;height:16px;color:#7B3F73}
.i18{display:block;flex:none;width:18px;height:18px}
.i17{display:block;flex:none;width:17px;height:17px}
.chk{display:inline-flex;align-items:center;gap:6px}
.h2{margin:0;font-family:'Bricolage Grotesque', system-ui, sans-serif;font-size:clamp(42px,5.4vw,78px);line-height:.97;font-weight:760;letter-spacing:-0.026em;color:#17131C}
.em{font-family:'Fraunces', Georgia, serif;font-style:italic;font-weight:500;letter-spacing:-0.025em;color:#6E3566}
.step{display:flex;flex-wrap:wrap;align-items:center;gap:22px clamp(24px,4vw,64px);padding:clamp(30px,3.4vw,46px) 0;border-top:1px solid rgba(23,19,28,.11)}
.step-head{flex:1 1 300px;min-width:0;max-width:470px;display:flex;align-items:flex-start;gap:clamp(18px,2.4vw,34px)}
.step-n{flex:none;width:clamp(44px,6vw,86px);font-family:'Fraunces', Georgia, serif;font-style:italic;font-weight:300;font-size:clamp(70px,8vw,118px);line-height:.78;letter-spacing:-.04em;color:#9E7192}
.step-body{min-width:0;padding-top:clamp(2px,.6vw,8px)}
.step-h3{margin:0;font-family:'Bricolage Grotesque', system-ui, sans-serif;font-size:clamp(28px,2.6vw,36px);line-height:1.05;font-weight:800;letter-spacing:-0.03em;color:#17131C}
.sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0)}
.step-p{margin:12px 0 0;font-size:17px;line-height:1.6;color:#474C59}
.flag-row{display:flex;flex-wrap:wrap;align-items:baseline;gap:6px 16px;padding:15px 0;border-top:1px solid rgba(255,255,255,.09)}
.flag-txt{flex:1 1 220px;min-width:0;font-size:16px;line-height:1.55;color:#C6CAD2}
.res-txt{flex:1 1 180px;min-width:0;font-size:16.5px;line-height:1.45;color:#E4E6EA;padding-top:2px}
.mac-k{display:flex;align-items:center;gap:8px;font-size:14px;font-weight:700;color:#474C59}
.mac-v{margin-top:6px;font-family:'Fraunces', Georgia, serif;font-size:clamp(28px,2.6vw,36px);font-weight:400;letter-spacing:-.02em;color:#17131C}
.bar-h{display:flex;justify-content:space-between;gap:10px;font-size:14px}
.bar-k{display:flex;align-items:center;gap:8px;font-weight:700;color:#E2E5EA}
.bar-t{margin-top:8px;height:6px;border-radius:999px;background:#2A2F3A}
.tile{flex:1 1 300px;min-width:0;background:#FFFDF9;padding:clamp(26px,3vw,40px);display:flex;flex-direction:column;gap:12px}
.tile-h3{margin:12px 0 0;font-family:'Bricolage Grotesque', system-ui, sans-serif;font-size:clamp(23px,2vw,26px);font-weight:800;letter-spacing:-.025em;color:#17131C}
.tile-p{margin:0;font-size:16px;line-height:1.6;color:#474C59}
.who{display:flex;flex-direction:column;align-items:center;gap:7px;font-size:13px;font-weight:600;color:#5C6270}
.h-ic{flex:none;width:38px;height:38px;border-radius:11px;background:#22262E;display:flex;align-items:center;justify-content:center}
.h-txt{display:flex;flex-direction:column;gap:4px;min-width:0}
.h-name{font-size:14px;font-weight:700;color:#F3F4F6}
.seg-ink-l{flex:1;display:flex;align-items:center;justify-content:center;font-size:15px;font-weight:700;color:#FFFFFF}
.seg-ink-d{flex:1;display:flex;align-items:center;justify-content:center;font-size:15px;font-weight:700;font-weight:800;color:#1A1320}
.wrap{max-width:1240px;margin:0 auto;padding-left:max(clamp(16px,4vw,40px),env(safe-area-inset-left));padding-right:max(clamp(16px,4vw,40px),env(safe-area-inset-right));box-sizing:border-box}
.ft:hover{color:#FFFFFF}

/* ---------- 3. Page layers ----------
   Section backgrounds sit on ::before layers (z-index -2), so the moving
   sky (z-index -1) passes between them and the content. Without the sky
   (no JavaScript, reduced motion) the sections alone still go from a
   morning blue at the top to night at the bottom. */
.page{position:relative;isolation:isolate;overflow-x:hidden;overflow-x:clip}
.bgl::before{content:"";position:absolute;inset:0;z-index:-2;background:var(--bg);pointer-events:none}
#top{position:relative;overflow-x:hidden;overflow-x:clip;padding-top:132px;--bg:linear-gradient(180deg,#B7D3EE 0%,#CADFF3 20%,#DDE9F6 42%,#EBF0F8 64%,#F4F4F8 84%,#F7F6F9 100%)}
#track{--bg:linear-gradient(180deg,#F7F6F9 0%,#F9F5F0 35%,#F5EEE4 100%)}
#features{--bg:#F5EEE4}
#features::before{background:radial-gradient(rgba(58,42,53,.075) 1px,transparent 1.3px) 0 0/20px 20px,var(--bg)}
#plans{--bg:linear-gradient(180deg,#F5EEE4 0%,#F7E7D6 28%,#F7DCC8 60%,#F2CFC2 100%)}
#faq{--bg:linear-gradient(180deg,#F2CFC2 0%,#ECCCD2 28%,#E0CADD 60%,#D0C6E4 88%,#C8C1E2 100%)}
#get{--bg:linear-gradient(180deg,#C8C1E2 0%,#B3A9D7 5%,#9284C2 11%,#6A5D9E 18%,#463D78 26%,#2C2752 34%,#1C1A33 44%,#13131D 56%,#0D0F12 70%)}

/* Hero sky decorations (the painted sun, clouds and balloon) */
.hero-sky{position:absolute;inset:0;overflow:hidden;pointer-events:none}
.hero-sky svg{display:block;width:100%;height:auto}
.hero-halo{position:absolute;left:50%;top:0;width:1100px;height:700px;margin-left:-550px;background:radial-gradient(closest-side,rgba(255,255,255,.55),rgba(255,255,255,0))}
.hero-sun{position:absolute;top:clamp(110px,calc(254px - 10vw),150px);left:calc(-1 * clamp(50px,8vw,120px));width:clamp(120px,22vw,330px)}
.hero-cloud-l{position:absolute;top:clamp(226px,17vw,250px);left:clamp(-44px,calc(5vw - 60px),30px);width:clamp(84px,15vw,230px);filter:drop-shadow(0 18px 28px rgba(90,169,230,.16))}
.hero-balloon{position:absolute;top:clamp(160px,11vw,170px);right:clamp(-28px,5vw,96px);width:min(clamp(128px,15vw,236px),max(0px,(100vw - 900px) * 1000));color:#2F3170}
.hero-cloud-r{position:absolute;top:clamp(370px,29vw,420px);right:calc(-1 * clamp(30px,3vw,50px));width:min(clamp(170px,19vw,290px),max(0px,(100vw - 900px) * 1000));filter:drop-shadow(0 18px 28px rgba(90,169,230,.16))}
/* Narrow phones: a slightly smaller sun so its rays never touch the headline */
@media (max-width:379px){.hero-sun{width:100px}}

/* ---------- 4. Focus states and button feedback ---------- */
:focus-visible{outline:3px solid var(--focus);outline-offset:3px}
.on-dark,.night .bar,.night .nav{--focus:#F4C6DD}
.skip{position:fixed;left:max(12px,env(safe-area-inset-left));top:-80px;z-index:100;display:inline-flex;align-items:center;min-height:44px;padding:0 18px;border-radius:999px;background:#17131C;color:#fff;font-weight:700;text-decoration:none}
.skip:focus{top:max(12px,env(safe-area-inset-top));color:#fff}
.btn{-webkit-tap-highlight-color:transparent;transition:scale .16s var(--ease),translate .3s var(--ease)}
.btn:active{scale:.97}
.btn svg{transition:translate .3s var(--ease)}
@media (hover:hover) and (pointer:fine){.btn:hover{translate:0 -2px}.btn:hover svg:last-child{translate:2px 0}}

/* ---------- 5. Top bar (logo and "Join early access" stay with you) and menu ---------- */
.bar{position:relative;z-index:50;margin-bottom:-78px;padding-top:max(14px,env(safe-area-inset-top))}
.js .bar{position:sticky;top:calc(env(safe-area-inset-top) - max(14px,env(safe-area-inset-top)))}
.bar::before,.bar::after{content:"";position:absolute;inset:0;z-index:-1;opacity:0;pointer-events:none;transition:opacity .35s ease}
.bar::before{background:rgba(247,246,249,.74);-webkit-backdrop-filter:blur(16px) saturate(1.5);backdrop-filter:blur(16px) saturate(1.5);box-shadow:0 1px 0 rgba(23,19,28,.07),0 14px 30px -24px rgba(23,19,28,.45)}
.bar::after{background:rgba(16,15,22,.82);box-shadow:0 1px 0 rgba(255,255,255,.07)}
.scrolled .bar::before{opacity:1}
.scrolled.night .bar::after{opacity:1}
.bar-row{position:relative;display:flex;align-items:center;justify-content:space-between;gap:16px;min-height:64px;max-width:1240px;margin:0 auto;padding:0 max(var(--gut),env(safe-area-inset-right)) 0 max(var(--gut),env(safe-area-inset-left));box-sizing:border-box}
.bar-home{display:flex;align-items:center;gap:10px;min-width:0;flex:0 1 auto;min-height:44px;transition:color .35s ease;color:#17131C;text-decoration:none;font-family:'Bricolage Grotesque',system-ui,sans-serif;font-size:24px;font-weight:800;letter-spacing:-0.035em}
.bar-home:hover{color:#17131C}
.hd-icon{flex:none;width:32px;height:32px;border-radius:9px;background:linear-gradient(155deg,#6A35A6 0%,#56288C 38%,#260A46 100%);box-shadow:inset 0 1px 0 rgba(255,255,255,.28),0 6px 14px -6px rgba(38,10,70,.55);display:inline-flex;align-items:center;justify-content:center}
.hd-icon img{display:block;width:76%;height:auto}
.bar-cta{display:inline-flex;align-items:center;gap:8px;min-height:44px;padding:0 18px 0 14px;border-radius:999px;background:#17131C;color:#fff;text-decoration:none;font-size:15px;font-weight:700;line-height:1.15;text-align:center;min-width:0;box-shadow:inset 0 1px 0 rgba(255,255,255,.14),0 1px 2px rgba(23,19,28,.2),0 8px 18px -8px rgba(23,19,28,.5)}
.bar-cta:hover{color:#fff}
.bar-cta svg{display:block;flex:none;width:18px;height:18px}
.night .bar-home,.night .bar-home:hover{color:#fff}
.night .bar-cta,.night .bar-cta:hover{background:#fff;color:#2A1426}
.nav{position:relative;z-index:51;display:flex;justify-content:center;width:fit-content;max-width:calc(100% - 2 * var(--gut));box-sizing:border-box;margin:84px auto -132px;padding:2px;border-radius:999px;background:rgba(255,255,255,.52);box-shadow:inset 0 0 0 1px rgba(255,255,255,.85),0 1px 2px rgba(30,40,70,.05),0 10px 26px -14px rgba(30,40,70,.28);-webkit-backdrop-filter:blur(12px) saturate(1.3);backdrop-filter:blur(12px) saturate(1.3)}
.nav a{display:inline-flex;align-items:center;min-height:44px;padding:0 clamp(9px,1.3vw,18px);border-radius:999px;color:#262230;text-decoration:none;font-size:clamp(14px,1.05vw,15px);font-weight:600;white-space:nowrap;transition:background-color .2s,color .35s ease}
.nav a:hover{color:#17131C;background:rgba(255,255,255,.75)}
@media (min-width:900px){
  .nav{margin:24px auto -72px}
  .js .nav{position:sticky;top:8px}
  .night .nav{background:rgba(255,255,255,.08);box-shadow:inset 0 0 0 1px rgba(255,255,255,.14)}
  .night .nav a{color:#EEEAF2}
  .night .nav a:hover{background:rgba(255,255,255,.12)}
  #top{padding-top:72px}
}
@media (max-width:374px){.nav a{padding:0 8px;font-size:13.5px}.bar-cta{padding:0 14px 0 12px}}
/* Very small phones (under 360 px): keep the bar and the menu inside the screen */
@media (max-width:359px){.hd-icon{display:none}.nav a{padding:0 6px;font-size:13px}}

/* ---------- 6. Hero: the scan demo first, then the words ---------- */
.hero{position:relative;z-index:2;max-width:1240px;margin:0 auto;box-sizing:border-box;
  padding:clamp(6px,2vw,28px) max(var(--gut),env(safe-area-inset-right)) clamp(56px,6vw,96px) max(var(--gut),env(safe-area-inset-left));
  display:grid;grid-template-columns:minmax(0,1fr);grid-template-areas:"head" "stage" "body";justify-items:center;text-align:center}
.hero-head{grid-area:head;display:flex;flex-direction:column;align-items:center}
.hero-stage{grid-area:stage;width:100%;min-width:0}
.hero-body{grid-area:body;display:flex;flex-direction:column;align-items:center;width:100%;max-width:560px;margin-top:22px}
.hero-icon{display:none;position:relative;width:clamp(76px,6.4vw,92px);height:clamp(76px,6.4vw,92px);border-radius:27%;background:linear-gradient(155deg,#6A35A6 0%,#56288C 38%,#260A46 100%);box-shadow:inset 0 1px 0 rgba(255,255,255,.28),inset 0 -2px 6px rgba(0,0,0,.3),0 2px 4px rgba(38,10,70,.18),0 22px 44px -14px rgba(38,10,70,.55);align-items:center;justify-content:center}
.hero-icon img{display:block;width:76%;height:auto}
.hero-h1{margin:0;font-family:'Bricolage Grotesque',system-ui,sans-serif;font-size:clamp(50px,13.6vw,58px);line-height:.9;font-weight:760;letter-spacing:-0.03em;color:#17131C}
.hero-h1 .h1-brand{display:block;font-size:.4em;font-weight:800;letter-spacing:-0.035em;line-height:1;margin-bottom:.25em}
.hero-h1 .h1-em{font-family:'Fraunces',Georgia,serif;font-style:italic;font-weight:500;letter-spacing:-0.025em;color:#6E3566}
.hero-sub{margin:4px 0 0;font-size:clamp(17.5px,1.4vw,20px);line-height:1.6;max-width:560px;color:#3B4252}
.hero-ctas{display:flex;flex-wrap:wrap;justify-content:center;gap:12px;margin-top:clamp(22px,2vw,28px);width:100%;max-width:460px}
.hero-note{margin:14px 0 0;max-width:440px;font-size:15px;line-height:1.55;color:#3B4252;text-wrap:balance}
.hero-checks{margin:14px 0 0;display:flex;flex-wrap:wrap;justify-content:center;gap:6px 20px;font-size:14.5px;font-weight:600;color:#3B4252}
@media (min-width:980px){
  .hero{grid-template-columns:minmax(0,1.08fr) minmax(0,1fr);grid-template-rows:auto auto;grid-template-areas:"stage head" "stage body";column-gap:clamp(28px,4vw,72px);text-align:left;justify-items:start;padding-top:clamp(12px,2vw,28px)}
  .hero-head{align-self:end;align-items:flex-start}
  .hero-body{align-self:start;align-items:flex-start;max-width:520px;margin-top:0}
  .hero-icon{display:flex;margin-bottom:clamp(18px,1.7vw,24px)}
  .hero-h1{font-size:clamp(64px,6.4vw,96px)}
  .hero-sub{margin-top:clamp(18px,1.6vw,24px)}
  .hero-ctas{justify-content:flex-start;max-width:none}
  .hero-ctas>a{flex:0 0 auto!important}
  .hero-checks{justify-content:flex-start}
  .hero-stage{align-self:center}
  .hero-balloon{top:88px}
  .hero-cloud-r{top:auto;bottom:8%;right:-110px}
}

/* ---------- 7. The demo phone ---------- */
.hero-stage{--pw:min(222px,56vw);--top:calc(var(--pw) * .34)}
.demo{position:relative;width:100%;max-width:600px;margin:0 auto;padding-top:var(--top);box-sizing:border-box}
@media (min-width:980px){.hero-stage{--pw:max(232px,min(300px,22vw,calc((100svh - 250px) * .43)))}}
.demo-glow{position:absolute;left:50%;top:40%;width:min(150%,760px);height:60%;margin-left:min(-75%,-380px);border-radius:50%;background:radial-gradient(closest-side,rgba(110,60,130,.20),rgba(110,60,130,0));pointer-events:none}
.dev{position:relative;width:var(--pw);margin:0 auto}
.demo-plum{position:absolute;z-index:0;width:calc(var(--pw) * .4);left:calc(var(--pw) * .5);top:calc(var(--pw) * -.285);--plum-focus-color:#7B2D63}
/* Plum peeks from behind the phone; when focused it steps forward so the whole focus ring shows */
.demo-plum:focus-visible{z-index:2}
.demo-phone{container-type:inline-size;position:relative;z-index:1;width:100%;-webkit-tap-highlight-color:transparent;user-select:none;-webkit-user-select:none}
.motion .demo-phone{cursor:pointer}
/* Forced colours: the phone is a picture (role=img), so it keeps its own colours */
.demo-phone{forced-color-adjust:none}
.demo-phone .sb{position:absolute;width:.8cqw;border-radius:.6cqw;background:linear-gradient(90deg,#2A2C31,#7D828C 60%,#3A3D43)}
.ph-o{position:relative;border-radius:15cqw;padding:.85cqw;background:linear-gradient(135deg,#A9AEB8 0%,#4A4E57 7%,#1A1B1F 24%,#0F1012 55%,#202227 82%,#7E838D 96%,#A9AEB8 100%);box-shadow:0 0 0 1px rgba(10,8,20,.30),0 2px 3px rgba(20,16,40,.10),0 18px 30px -14px rgba(28,20,60,.35),0 60px 100px -40px rgba(40,24,72,.50)}
.ph-i{border-radius:14.2cqw;padding:2.2cqw;background:#040405;box-shadow:inset 0 0 0 .25cqw rgba(255,255,255,.07),inset 1.4cqw 0 1.6cqw -1.2cqw rgba(255,255,255,.10)}
.scr{position:relative;border-radius:12cqw;overflow:hidden;background:#0D0F12;aspect-ratio:414/880;color:#F3F4F6;font-family:'DM Sans',system-ui,sans-serif;line-height:1.25;text-align:left;font-size:3.1cqw}
.st{height:9.3cqw;display:flex;align-items:center;justify-content:space-between;padding:0 5.7cqw;font-weight:600}
.st svg{display:block}
.tb{display:flex;align-items:center;justify-content:space-between;height:9cqw;padding:0 3.6cqw;font-size:3.36cqw;font-weight:600}
.tb-x{width:7.75cqw;height:7.75cqw;border-radius:50%;display:inline-flex;align-items:center;justify-content:center;background:rgba(255,255,255,.08)}
.cam{position:relative;margin-top:1.5cqw;height:124cqw;overflow:hidden;background:radial-gradient(90% 70% at 50% 45%,#3E3440 0%,#231E24 55%,#131215 100%)}
.cam:after{content:"";position:absolute;left:0;right:0;bottom:0;height:28%;background:linear-gradient(180deg,rgba(0,0,0,0),rgba(0,0,0,.35))}
.lab{position:absolute;z-index:1;left:12cqw;width:70cqw;top:45cqw;box-sizing:border-box;padding:3.4cqw 3.8cqw 3.8cqw;border-radius:2.4cqw;background:#FFFDF8;color:#5A5F6B;font-size:2.55cqw;line-height:1.55;box-shadow:0 3cqw 6cqw -2.5cqw rgba(0,0,0,.75);transform:translate(0,-27cqw) rotate(-3deg) scale(.8)}
.lab-t{display:block;font-family:'Bricolage Grotesque',system-ui,sans-serif;font-size:4.1cqw;font-weight:800;color:#17131C;letter-spacing:-.02em;line-height:1.1}
.lab-h{display:block;margin-top:1.8cqw;font-size:2.2cqw;font-weight:800;letter-spacing:.12em;text-transform:uppercase;color:#17131C}
.lab-l{display:block}
.hl{position:relative;font-weight:800;color:#2F5326;white-space:nowrap}
.hl i{position:absolute;z-index:-1;left:-.6cqw;right:-.6cqw;top:.1em;bottom:0;border-radius:.8cqw;background:#DDEBD3;transform-origin:0 50%}
.lab-n{display:block;white-space:normal;color:#17131C;font-weight:700}
.lab-n i{left:-1cqw;right:-1cqw;top:-.4cqw;bottom:-.4cqw;background:#F3EAD7}
.lab-n em{font-style:normal;white-space:nowrap}
.dot{display:inline-block;width:1.6cqw;height:1.6cqw;margin-right:.6cqw;border-radius:50%;vertical-align:.05em}
.cnr{position:absolute;z-index:2;left:7cqw;right:7cqw;top:37cqw;height:51cqw;opacity:0}
.cnr span{position:absolute;width:8cqw;height:8cqw;border:0 solid #fff}
.cnr span:nth-child(1){left:0;top:0;border-left-width:.8cqw;border-top-width:.8cqw;border-top-left-radius:3.6cqw}
.cnr span:nth-child(2){right:0;top:0;border-right-width:.8cqw;border-top-width:.8cqw;border-top-right-radius:3.6cqw}
.cnr span:nth-child(3){left:0;bottom:0;border-left-width:.8cqw;border-bottom-width:.8cqw;border-bottom-left-radius:3.6cqw}
.cnr span:nth-child(4){right:0;bottom:0;border-right-width:.8cqw;border-bottom-width:.8cqw;border-bottom-right-radius:3.6cqw}
.scan{position:absolute;z-index:3;left:9cqw;right:9cqw;top:39cqw;height:.6cqw;border-radius:2px;background:linear-gradient(90deg,rgba(199,155,187,0),#F3DCEB 50%,rgba(199,155,187,0));box-shadow:0 0 3.6cqw .8cqw rgba(199,155,187,.65);opacity:0}
.flash{position:absolute;z-index:4;inset:0;background:#fff;opacity:0;pointer-events:none}
.mode{display:flex;justify-content:center;margin-top:3.6cqw}
.mode>span{display:flex;gap:.5cqw;padding:.8cqw;border-radius:999px;background:#191D22;border:1px solid #2A2F3A;font-size:2.85cqw;font-weight:700}
.mode i{font-style:normal;padding:1.5cqw 3.6cqw;border-radius:999px;color:#9AA1AC}
.mode i:first-child{background:#8A4F80;color:#fff}
.shut{display:flex;justify-content:center;margin-top:3.6cqw}
.shut>span{width:14.5cqw;height:14.5cqw;border-radius:50%;box-shadow:inset 0 0 0 .8cqw #fff;display:flex;align-items:center;justify-content:center}
.shut i{width:11.1cqw;height:11.1cqw;border-radius:50%;background:#fff}
.toast{position:absolute;z-index:6;left:5cqw;right:5cqw;top:10cqw;display:flex;align-items:center;gap:2cqw;height:10.5cqw;padding:0 3cqw;box-sizing:border-box;border-radius:999px;background:#22262E;border:1px solid #39404C;box-shadow:0 2cqw 5cqw -1cqw rgba(0,0,0,.7);font-size:3.1cqw;font-weight:700;white-space:nowrap}
.toast b{flex:none;width:5.4cqw;height:5.4cqw;border-radius:50%;background:#8A4F80;display:inline-flex;align-items:center;justify-content:center}
.toast small{font-size:inherit;font-weight:500;color:#C3C8D0}
.sheet{position:absolute;z-index:5;left:0;right:0;top:88cqw;bottom:0;padding:2.6cqw 4.1cqw 0;border-radius:6cqw 6cqw 0 0;background:#14171B;box-shadow:0 -1px 0 #2A2F3A,0 -3cqw 6cqw -2cqw rgba(0,0,0,.6)}
.grab{display:block;width:10cqw;height:1cqw;margin:0 auto 2.6cqw;border-radius:9px;background:#3A3F4A}
.sh-row{display:flex;align-items:center;justify-content:space-between;gap:2cqw}
.sh-name{font-size:5cqw;font-weight:700;letter-spacing:-.01em}
.sh-for{padding:.8cqw 2cqw;border-radius:999px;background:#241C23;border:1px solid #4A3A47;font-size:2.45cqw;font-weight:600;color:#E3CCDC}
.verdict{display:inline-flex;align-items:center;gap:1.4cqw;margin-top:2.4cqw;padding:1.3cqw 2.8cqw 1.3cqw 2cqw;border-radius:999px;background:#1E2819;color:#A2C48D;font-size:3cqw;font-weight:700;white-space:nowrap}
.verdict svg{width:3.4cqw;height:3.4cqw;display:block}
.why{margin-top:3cqw;padding:3.3cqw;border-radius:3.6cqw;background:#191D22;border:1px solid #2A2F3A;display:flex;flex-direction:column;gap:3cqw}
.why-h{font-size:2.45cqw;letter-spacing:.12em;font-weight:700;color:#9AA1AC}
.fl{display:flex;gap:2cqw;align-items:flex-start;font-size:3.18cqw;line-height:1.4;color:#C9CDD4}
.tag{flex:none;display:inline-flex;align-items:center;padding:.6cqw 2cqw;border-radius:999px;background:#1E2819;color:#A2C48D;font-size:2.84cqw;font-weight:600;line-height:1.3}
.hist{display:flex;align-items:center;gap:1.3cqw;margin-top:3cqw;font-size:2.45cqw;color:#9AA1AC}
.acts{position:absolute;left:0;right:0;bottom:0;padding:2.6cqw 3.1cqw 3.6cqw;background:linear-gradient(180deg,rgba(20,23,27,0),#14171B 30%)}
.acts>span{display:flex;gap:1.3cqw;padding:1cqw;border-radius:999px;background:#191D22;border:1px solid #2A2F3A}
.acts i{flex:1;display:flex;align-items:center;justify-content:center;gap:1.8cqw;height:9.3cqw;border-radius:999px;font-style:normal;color:#C9CDD4;font-size:3.1cqw;font-weight:600}
.acts i.con{flex:1.1;background:#8A4F80;color:#fff;font-weight:700}
.acts svg{width:3.6cqw;height:3.6cqw;display:block}
.punch{position:absolute;z-index:7;left:50%;top:2.84cqw;width:3.1cqw;height:3.1cqw;margin-left:-1.55cqw;border-radius:50%;background:#000;box-shadow:0 0 0 .41cqw #16181C}
.glare{position:absolute;z-index:8;inset:0;background:linear-gradient(115deg,rgba(255,255,255,.085) 0%,rgba(255,255,255,0) 28%);pointer-events:none}

/* ---------- 8. Readable callouts that pop out of the phone, and the demo controls ---------- */
.co{position:absolute;z-index:4;box-sizing:border-box;display:flex;align-items:center;gap:10px;padding:10px 14px 10px 10px;border-radius:18px;background:#fff;color:#17131C;text-align:left;box-shadow:inset 0 0 0 1px rgba(23,19,28,.06),0 2px 4px rgba(40,30,70,.06),0 24px 48px -20px rgba(40,30,70,.5);pointer-events:none}
.co-v{right:max(0px,calc(50% - var(--pw) * .5 - 128px));top:calc(var(--top) + var(--pw) * .96)}
.co-f{left:max(0px,calc(50% - var(--pw) * .5 - 128px));top:calc(var(--top) + min(var(--pw) * 1.26, var(--pw) * 1.6 - 100px));flex-direction:column;align-items:flex-start;gap:6px;max-width:176px;padding:11px 14px 12px}
.co-c{left:0;right:0;margin:0 auto;width:min(100%,308px);top:calc(var(--top) + var(--pw) * 1.6);flex-direction:column;align-items:stretch;gap:10px;padding:14px 16px 15px}
@media (forced-colors:active){.co{border:1px solid CanvasText}}
.co-ic{flex:none;width:36px;height:36px;border-radius:50%;background:#E5EFDF;color:#2F5326;display:flex;align-items:center;justify-content:center}
.co-ic svg{width:19px;height:19px;display:block}
.co-v b{display:block;font-size:15.5px;font-weight:800;line-height:1.2;white-space:nowrap}
.co-v small{display:block;margin-top:2px;font-size:13px;color:#5C6270;white-space:nowrap}
.co-tag{display:inline-flex;align-items:center;gap:5px;min-height:24px;padding:0 10px 0 8px;border-radius:999px;background:#E5EFDF;color:#2F5326;font-size:12.5px;font-weight:800;line-height:1}
.co-tag svg{width:13px;height:13px;display:block}
.co-f span:last-child{font-size:14.5px;font-weight:700;line-height:1.3}
.cc-top{display:flex;align-items:center;justify-content:space-between;gap:8px}
.cc-lbl{font-size:11.5px;font-weight:800;letter-spacing:.14em;text-transform:uppercase;color:#7B3F73}
.cc-add{display:inline-flex;align-items:center;min-height:24px;padding:0 10px;border-radius:999px;background:#7B3F73;color:#fff;font-size:12.5px;font-weight:800}
.cc-big{display:flex;align-items:baseline;gap:6px;font-size:14px;color:#5C6270}
.cc-big b{font-family:'Bricolage Grotesque',system-ui,sans-serif;font-size:26px;line-height:1;font-weight:760;letter-spacing:-.03em;color:#17131C;font-variant-numeric:tabular-nums}
.cc-mac{display:flex;gap:12px}
.cc-mac>span{flex:1;min-width:0;display:flex;flex-direction:column;gap:3px}
.cc-k{display:flex;align-items:center;gap:6px;font-size:12.5px;font-weight:700;color:#474C59}
.cc-k i{flex:none;width:8px;height:8px;border-radius:50%}
.cc-v{font-size:15px;font-weight:700;color:#17131C;font-variant-numeric:tabular-nums}
.cc-bar{display:block;height:5px;margin-top:2px;border-radius:9px;background:#F1EAEF;overflow:hidden}
.cc-bar i{display:block;height:100%;border-radius:9px;transform-origin:0 50%}
/* Wide screens: "Fine" hangs from 30px above the day's total, so taller text grows upward */
@media (min-width:980px){.co-f{top:auto;bottom:calc(100% - var(--top) - var(--pw) * 1.6 + 30px)}}
.demo-bar{position:relative;z-index:3;display:flex;flex-wrap:wrap;align-items:center;justify-content:center;gap:10px;margin-top:max(16px,calc(161px - var(--pw) * .454))}
/* Phones: the phone shrinks with the screen but the callouts keep their size,
   so stack them by their real heights instead of by phone proportions */
@media (max-width:979px){
  .co-f{top:calc(var(--top) + var(--pw) * .96 + 66px);max-width:none}
  .co-f span:last-child{font-size:14px;white-space:nowrap}
  /* the day's total sits just below the shutter button */
  .co-c{top:calc(var(--top) + var(--pw) * 1.74 + 20px)}
  .demo-bar{margin-top:calc(181px - var(--pw) * .314)}
  /* the results pop in with each scan instead of covering the label first */
  .motion .demo:not(.rest) .co-v,.motion .demo:not(.rest) .co-f{opacity:0}
}
.steps{display:flex;gap:2px;margin:0;padding:3px;list-style:none;border-radius:999px;background:rgba(255,255,255,.62);box-shadow:inset 0 0 0 1px rgba(255,255,255,.9),0 1px 2px rgba(30,40,70,.05),0 10px 26px -14px rgba(30,40,70,.28)}
.steps li{position:relative;display:flex;border-radius:999px;overflow:hidden}
.steps li>span{display:flex;align-items:center;gap:5px;min-height:36px;padding:0 11px;border-radius:999px;font-size:14px;font-weight:700;color:#3B4252;white-space:nowrap}
.steps li>span+span{position:absolute;inset:0;display:none;justify-content:center;padding:0;background:#7B3F73;color:#fff;opacity:0;transition:opacity .25s ease}
/* The lit copy of a step only exists while the demo can play, so no-JS and
   reduced-motion pages never hold invisible text */
.motion .steps li>span+span{display:flex}
.steps em{font-family:'Fraunces',Georgia,serif;font-style:italic;font-weight:500;color:#9E7192}
.steps li>span+span em{color:#F6D9EA}
.demo[data-step="1"]~.demo-bar .steps li:nth-child(1)>span+span,
.demo[data-step="2"]~.demo-bar .steps li:nth-child(2)>span+span,
.demo[data-step="3"]~.demo-bar .steps li:nth-child(3)>span+span{opacity:1}
.demo-ctl{display:flex;gap:8px}
.demo-ctl[hidden]{display:none}
.ctl{display:inline-flex;align-items:center;justify-content:center;width:44px;height:44px;padding:0;border:0;border-radius:50%;background:rgba(255,255,255,.75);color:#17131C;cursor:pointer;box-shadow:inset 0 0 0 1px rgba(23,19,28,.10),0 8px 18px -10px rgba(23,19,28,.4)}
.ctl{-webkit-tap-highlight-color:transparent;transition:scale .16s var(--ease),background-color .2s}
.ctl:active{scale:.94}
@media (hover:hover) and (pointer:fine){.ctl:hover{background:#fff}}
.ctl svg{width:18px;height:18px;display:block}
.ctl .i-play{display:none}
.ctl[data-paused] .i-play{display:block}
.ctl[data-paused] .i-pause{display:none}

/* ---------- 9. The sky layer: the sun that crosses the page, and the washes
   of dawn, dusk and evening blue (only shown with html.motion) ---------- */
.sky{display:none;position:fixed;inset:0;z-index:-1;pointer-events:none;overflow:hidden;contain:strict}
.sky-wash{position:absolute;inset:0;opacity:0;will-change:opacity}
.sky-dawn{background:radial-gradient(90% 60% at 10% 30%,rgba(255,196,160,.55),rgba(255,196,160,0) 70%)}
.sky-dusk{background:radial-gradient(120% 75% at 88% 100%,rgba(255,146,104,.34),rgba(255,146,104,0) 70%)}
.sky-blue{background:linear-gradient(180deg,rgba(76,66,158,.24),rgba(76,66,158,0) 58%)}
.sky-sun{position:absolute;left:0;top:0;width:clamp(120px,22vw,330px);aspect-ratio:1;will-change:transform}
.sky-sun-in,.sky-sun svg,.sun-glow{position:absolute;inset:0}
.sky-sun svg{display:block;width:100%;height:100%}
.sun-glow{inset:-115%;border-radius:50%}
.sun-glow-day{background:radial-gradient(closest-side,rgba(255,222,140,.42),rgba(255,222,140,.12) 55%,rgba(255,222,140,0))}
.sun-glow-dusk{opacity:0;background:radial-gradient(closest-side,rgba(255,140,96,.55),rgba(255,140,96,.16) 55%,rgba(255,140,96,0))}
.sun-dusk{opacity:0}

/* ==========================================================================
   10. MOTION. Nothing here applies without html.motion, which the small
   script in <head> adds before the first paint only when JavaScript runs
   and the visitor has not asked for reduced motion. Only transform and
   opacity are animated. Loops run only while their part of the page is on
   screen (.live, not .hero-off) and the tab is visible (not .tab-hidden).
   Text is never hidden while waiting.
   ========================================================================== */
.motion{scroll-behavior:smooth}
/* .ready: the script has placed the moving sun (same task, so no wrong frame) */
.motion.ready .sky{display:block}
.motion.ready .hero-sun{visibility:hidden}
.motion .hero-cloud,.motion .hero-balloon,.motion .get-moon{will-change:transform}
.motion .get-stars{opacity:.3}

/* One load moment: dawn fades, the sun comes up, the clouds and words settle */
.intro .sky-dawn{animation:dawn 2.2s .1s ease-out both}
.intro .sky-sun-in{animation:sunUp 1.5s .05s var(--ease) both}
.intro .hi{animation:soft .9s var(--d,0s) var(--ease) both}
.late .sky-sun-in,.late .sky-dawn{animation:none}
@keyframes dawn{from{opacity:1}to{opacity:0}}
@keyframes sunUp{from{opacity:0;transform:translateY(48px) scale(.86)}}
@keyframes cloudL{from{opacity:0;transform:translateX(-56px)}}
@keyframes cloudR{from{opacity:0;transform:translateX(56px)}}
@keyframes rise{from{opacity:0;transform:translateY(44px)}}
@keyframes soft{from{opacity:.55;translate:0 18px}}

/* Quiet loops: drifting clouds, a bobbing balloon, twinkling stars, the moon's star on its line */
.motion .hero-cloud-l svg{animation:cloudL 1.6s .1s var(--ease) both,drift 12s 1.7s ease-in-out infinite alternate}
.motion .hero-cloud-r svg{animation:cloudR 1.6s .2s var(--ease) both,drift 14s 1.8s ease-in-out infinite alternate-reverse}
.motion .hero-balloon svg{animation:rise 2s .3s var(--ease) both,bob 7s 2.3s ease-in-out infinite alternate}
.motion .tw{animation:tw 3.4s ease-in-out infinite alternate;animation-play-state:paused}
.motion .tw:nth-child(2n){animation-duration:4.6s;animation-delay:-1.3s}
.motion .tw:nth-child(3n){animation-duration:5.2s;animation-delay:-2.4s}
.motion .live .tw{animation-play-state:running}
.motion .live .moon-star{transform-box:view-box;animation:swing 4.4s ease-in-out infinite}
.motion .live .spark{animation:twinkle 2.6s ease-in-out infinite}
.motion .live .spark:nth-of-type(2n){animation-delay:-1.3s}
.motion .hero-off .hero-cloud svg,.motion .hero-off .hero-balloon svg,.motion .still .hero-cloud svg,.motion .still .hero-balloon svg,.tab-hidden *{animation-play-state:paused!important}
/* Under 900px the balloon and right cloud are 0px wide: no loops for them */
@media (max-width:899px){.motion .hero-balloon svg,.motion .hero-cloud-r svg{animation:none}}
@keyframes drift{to{transform:translateX(16px)}}
@keyframes bob{to{transform:translateY(-10px) rotate(2deg)}}
@keyframes tw{from{opacity:.2;transform:scale(.7)}to{opacity:.9;transform:scale(1.1)}}
@keyframes twinkle{0%,100%{opacity:.95}50%{opacity:.5}}
@keyframes swing{0%,100%{transform:rotate(-5deg)}50%{transform:rotate(5deg)}}

/* Soft rise for headings and cards: starts nearly visible, never hidden */
.motion .rv{opacity:.55;translate:0 22px}
.motion .rv.in{opacity:1;translate:none;transition:opacity .7s ease var(--rd,0s),translate 1s var(--ease) var(--rd,0s)}

/* The scan demo, before its first frame plays: the same picture as the
   start of each loop (label in the viewfinder, results sheet down), so the
   page never flashes the finished frame first. The day's total (and, on
   wide screens, the callouts) stay visible from the first frame.
   .rest = the finished frame. */
.motion .demo:not(.rest) .lab{transform:translate(5cqw,9cqw) rotate(-9deg) scale(.9)}
.motion .demo:not(.rest) .cnr{opacity:.35;transform:scale(1.16)}
.motion .demo:not(.rest) .sheet{transform:translateY(104%)}
.motion .demo:not(.rest) .toast,.motion .demo:not(.rest) .hl i,.motion .demo:not(.rest) .cc-add{opacity:0}

/* ---------- 11. Safety nets ---------- */
@media (prefers-reduced-motion:reduce){
  .sky{display:none!important}.hero-sun{visibility:visible!important}
  .rv{opacity:1!important;translate:none!important}.get-stars{opacity:1!important}
  .steps li>span+span{display:none!important}
  *,*::before,*::after{animation:none!important;transition:none!important;scroll-behavior:auto!important}
}
@media print{.sky,.skip{display:none}.rv{opacity:1!important;translate:none!important}.bar,.nav{position:relative!important}}
