/* ─── HRintel · "The Last Khata" ───
   Professional papercraft: warm paper, indigo ink, layered cut-paper sheets.
   Fraunces (display) · Instrument Sans (body) · Spline Sans Mono (numbers) */

:root{
  --paper:#F6F7F5;
  --paper-2:#EFF0F6;          /* pale indigo wash */
  --paper-deep:#E9EAF2;
  --card:#FFFFFF;
  --ink:#141715;
  --ink-2:#3D443F;
  --ink-3:#7C847E;
  --indigo-deep:#4A4F8C;
  --indigo:#666EB8;
  --indigo-pastel:#7B82C4;
  --indigo-soft:#EEEFF8;
  --ochre:#C08A50;
  --ochre-soft:#F7EFE3;
  --green:#4E9A6E;
  --green-soft:#E9F2ED;
  --red:#C98A82;
  --line:#E3E4EC;
  --maxw:1440px;
  --sheet-shadow:
    0 1px 2px rgba(74,79,140,.06),
    0 6px 14px -6px rgba(74,79,140,.14),
    0 24px 40px -24px rgba(74,79,140,.28);
}

*{box-sizing:border-box;margin:0;padding:0}
html{scroll-behavior:smooth}
body{
  background:var(--paper);
  color:var(--ink);
  font-family:"Instrument Sans",sans-serif;
  font-size:17px;line-height:1.6;
  overflow-x:hidden;
  -webkit-font-smoothing:antialiased;
}
::selection{background:var(--indigo);color:#fff}
.mono{font-family:"Spline Sans Mono",monospace}
.dim{color:var(--ink-3)}
h1,h2{font-family:"Fraunces",serif;font-weight:500;letter-spacing:-.02em;line-height:1.1;color:var(--ink)}
em{font-style:italic;color:var(--indigo)}
a{color:inherit;text-decoration:none}

/* paper grain */
.grain{
  position:fixed;inset:0;z-index:998;pointer-events:none;opacity:.35;mix-blend-mode:multiply;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2'/%3E%3CfeColorMatrix values='0 0 0 0 .96 0 0 0 0 .96 0 0 0 0 .97 0 0 0 .05 0'/%3E%3C/filter%3E%3Crect width='240' height='240' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ─── sheet: the core paper card ─── */
.sheet{
  position:relative;background:var(--card);border-radius:18px;
  border:1px solid var(--line);
  box-shadow:var(--sheet-shadow);
}
.sheet::before{ /* offset paper layer behind */
  content:"";position:absolute;inset:0;z-index:-1;border-radius:inherit;
  background:var(--paper-deep);transform:rotate(-1.1deg) translate(-5px,7px);
}
.sheet::after{ /* second layer */
  content:"";position:absolute;inset:0;z-index:-2;border-radius:inherit;
  background:var(--indigo-soft);transform:rotate(1.3deg) translate(7px,12px);
}

/* ─── chapter tab rail ─── */
.tabs{
  position:fixed;right:0;top:50%;transform:translateY(-50%);z-index:55;
  display:flex;flex-direction:column;gap:8px;
}
.tabs a{
  display:flex;align-items:center;gap:7px;
  background:var(--card);border:1px solid var(--line);border-right:0;
  border-radius:12px 0 0 12px;padding:7px 12px 7px 10px;
  font-size:11px;font-weight:600;letter-spacing:.05em;color:var(--ink-3);
  box-shadow:-6px 6px 16px -10px rgba(74,79,140,.3);
  transform:translateX(0);transition:transform .3s,color .3s,background .3s;
}
.tabs a span{font-family:"Spline Sans Mono",monospace;font-size:10px;color:var(--indigo)}
.tabs a:hover{transform:translateX(-4px)}
.tabs a.on{transform:translateX(0);background:var(--indigo-deep);color:#fff;border-color:var(--indigo-deep)}
.tabs a.on span{color:#C9CDF0}

/* ─── nav ─── */
.nav{
  position:fixed;top:0;left:0;right:0;z-index:60;
  display:flex;align-items:center;gap:34px;
  padding:16px clamp(20px,4vw,48px);
  background:rgba(246,247,245,.85);backdrop-filter:blur(10px);
  border-bottom:1px solid var(--line);
}
.nav-logo{font-family:"Sora",sans-serif;font-weight:700;font-size:24px;letter-spacing:-.02em;
  display:inline-flex;align-items:center}
.nav-logo>span:last-of-type{color:var(--indigo-pastel)}
.nav-mk{width:40px;height:40px;border-radius:12px;flex:none;display:grid;place-items:center;margin-right:11px;
  background:linear-gradient(150deg,#5A61A8,#7E86C4);box-shadow:0 4px 12px -4px rgba(74,79,140,.55)}
.nav-mk svg{width:24px;height:24px}
.nav-links{display:flex;gap:26px;margin-left:auto}
.nav-links a{font-size:14.5px;color:var(--ink-2);transition:color .2s}
.nav-links a:hover{color:var(--indigo)}
.btn{
  display:inline-flex;align-items:center;justify-content:center;
  padding:11px 22px;border-radius:12px;font-weight:600;font-size:15px;
  border:1px solid transparent;transition:transform .2s,box-shadow .2s;
}
.btn:hover{transform:translateY(-2px)}
.btn-indigo{background:var(--indigo-deep);color:#fff;box-shadow:0 8px 22px -8px rgba(74,79,140,.55)}
.btn-ink{background:var(--ink);color:var(--paper)}
.btn-paper{background:var(--card);border-color:var(--line);color:var(--ink);box-shadow:var(--sheet-shadow)}
.btn-big{padding:15px 30px;font-size:16.5px;border-radius:14px}

/* ─── hero bento ─── */
.hero{padding:110px clamp(16px,2.5vw,40px) 30px;max-width:none;margin:0 auto;position:relative}
.bento{position:relative;z-index:1}
.bento{
  display:grid;gap:20px;
  grid-template-columns:1.25fr .8fr 1.05fr .85fr;
  grid-template-areas:
    "head   head phone punch"
    "stat   cal  phone slab"
    "ticker pay  phone get";
}
.tile{padding:24px;overflow:hidden}
.t-head{grid-area:head;padding:clamp(28px,3.2vw,46px)}
.t-phone{grid-area:phone;display:grid;place-items:center;background:linear-gradient(160deg,var(--indigo-soft),var(--card) 70%);min-height:540px;overflow:visible}
.t-punch{grid-area:punch}
.t-slab{grid-area:slab}
.t-stat{grid-area:stat}
.t-cal{grid-area:cal}
.t-pay{grid-area:pay}
.t-ticker{grid-area:ticker}
.t-get{grid-area:get}

/* punch tile */
.punch-stage{position:relative;height:110px;display:grid;place-items:center;margin:2px 0 10px}
.punch-stage .ava{width:56px;height:56px;font-size:17px}
.geo-ring{
  position:absolute;width:80px;height:80px;border-radius:50%;
  border:1.5px solid var(--indigo-pastel);animation:georing 2.6s ease-out infinite;
}
.geo-ring.g2{animation-delay:1.3s}
@keyframes georing{0%{transform:scale(.7);opacity:1}100%{transform:scale(1.9);opacity:0}}
.stamp-sm{font-size:14px;padding:7px 14px;align-self:flex-start}
.ledger-sm .ledger-row{font-size:12.5px;padding:7px 2px}
.t-pay .scr-btn{margin-top:12px}

.eyebrow{font-size:11.5px;letter-spacing:.22em;color:var(--indigo);margin-bottom:18px}
.t-head h1{font-size:clamp(38px,4.6vw,62px)}
.lede{margin:20px 0 26px;color:var(--ink-2);font-size:18px;max-width:30em}
.cta-row{display:flex;gap:12px;flex-wrap:wrap}
.cta-row.center{justify-content:center}

.t-label{display:block;font-size:10.5px;letter-spacing:.2em;color:var(--ink-3);margin-bottom:12px}
.stat-big{font-size:56px;font-weight:600;color:var(--indigo-deep);line-height:1}
.stat-of{font-size:22px;color:var(--ink-3)}
.t-stat small{display:block;margin-top:10px;color:var(--ink-3);font-size:13px}

.mini-cal{display:grid;grid-template-columns:repeat(7,1fr);gap:6px;margin:4px 0 10px}
.mini-cal i{height:22px;border-radius:6px;background:var(--paper-2)}
.mini-cal .c-p{background:var(--indigo-pastel)}
.mini-cal .c-h{background:var(--indigo-soft);border:1px solid var(--indigo-pastel)}
.mini-cal .c-a{background:var(--red)}
.mini-cal .c-l{background:var(--ochre)}
.mini-cal .c-o{background:var(--paper-deep)}
.mini-cal .c-t{background:var(--indigo-deep);box-shadow:0 0 0 2px var(--card),0 0 0 3.5px var(--indigo-deep)}
.t-cal small{color:var(--ink-3);font-size:12.5px}

.t-art img{width:100%;height:100%;object-fit:cover;border-radius:18px;display:block}
.art-fallback{position:relative;height:100%;min-height:190px;background:var(--indigo-soft);border-radius:18px;overflow:hidden}
.art-fallback i{position:absolute;border-radius:14px}
.art-fallback .af1{width:60%;height:55%;left:8%;bottom:-6%;background:var(--indigo-pastel);transform:rotate(-4deg)}
.art-fallback .af2{width:45%;height:48%;right:6%;bottom:-8%;background:var(--indigo-deep);transform:rotate(3deg)}
.art-fallback .af3{width:26%;height:26%;right:30%;top:12%;background:var(--ochre);border-radius:50%}

.ticker-mask{height:120px;overflow:hidden;position:relative}
.ticker-mask::after{content:"";position:absolute;inset:0;background:linear-gradient(var(--card),transparent 25%,transparent 70%,var(--card))}
.ticker p{font-size:13px;color:var(--ink-2);padding:6px 0;border-bottom:1px dashed var(--line)}
.ticker p .mono{color:var(--indigo);font-size:11.5px;margin-right:6px}
.ticker p b{color:var(--ink)}
.ticker .struck{text-decoration:line-through;opacity:.45}

.stores{display:flex;gap:10px;flex-wrap:wrap}
.stores.center{justify-content:center;margin-top:22px}
.store{
  display:flex;align-items:center;gap:9px;
  background:var(--ink);color:#fff;border-radius:12px;padding:9px 16px 9px 12px;
  transition:transform .2s,box-shadow .2s;box-shadow:0 10px 22px -10px rgba(20,23,21,.5);
}
.store:hover{transform:translateY(-2px)}
.store svg{width:22px;height:22px;fill:#fff;flex-shrink:0}
.store span{display:flex;flex-direction:column;line-height:1.15;text-align:left}
.store small{font-size:9.5px;opacity:.75;letter-spacing:.02em}
.store b{font-size:14.5px;font-weight:600}
.store-note{display:block;margin-top:12px;color:var(--ink-3);font-size:12.5px}

/* ─── 3D phone (true depth: back plate + JS-generated side slices + raised screen) ─── */
.phone-scene{perspective:1100px;position:relative}
.phone3d{
  position:relative;width:284px;transform-style:preserve-3d;
  transform:rotateY(-18deg) rotateX(6deg);
}
.p-back{
  position:absolute;inset:0;border-radius:47px;
  background:linear-gradient(150deg,#2A2E45,#171A2B 55%,#232741);
  transform:translateZ(-16px);
  box-shadow:0 60px 90px -32px rgba(74,79,140,.5);
}
.p-cam{
  position:absolute;top:16px;left:16px;width:64px;height:64px;border-radius:20px;
  background:linear-gradient(140deg,#3A3F5E,#1C2036);
  box-shadow:inset 0 1px 2px rgba(255,255,255,.18), 0 2px 6px rgba(0,0,0,.4);
}
.p-lens{
  position:absolute;top:26px;left:26px;width:20px;height:20px;border-radius:50%;
  background:radial-gradient(circle at 35% 35%, #6E7BD8 0%, #23274A 55%, #0B0D1C 100%);
  box-shadow:0 0 0 4px #14172A, 24px 0 0 0 #14172A, 24px 0 0 -1px #0B0D1C,
    inset 0 1px 2px rgba(255,255,255,.35);
}
.p-slice{ /* stacked by JS between back and body = visible side wall */
  position:absolute;inset:0;border-radius:47px;background:#1B1E33;
  box-shadow:inset 0 0 0 1.5px #2E3350;
}
.p-body{
  position:relative;border-radius:47px;padding:9px;transform-style:preserve-3d;
  background:linear-gradient(115deg,#3A3E58,#14172A 28%,#262A44 50%,#101321 72%,#343956);
  box-shadow:inset 0 0 0 2.5px rgba(200,206,255,.28), inset 0 0 0 5px rgba(0,0,0,.55);
}
.p-island{
  position:absolute;top:20px;left:50%;transform:translateX(-50%);z-index:5;
  width:84px;height:24px;border-radius:14px;background:#000;
  box-shadow:inset 0 0 4px rgba(255,255,255,.15), 22px 0 0 -9px rgba(90,120,255,.35) inset;
}
.p-screen{
  border-radius:39px;background:#FAFAFC;min-height:552px;
  padding:56px 14px 18px;overflow:hidden;
  display:flex;flex-direction:column;gap:10px;
  transform:translateZ(3px);
  box-shadow:inset 0 0 10px rgba(20,23,40,.18);
}
.p-glare{
  position:absolute;inset:9px;border-radius:39px;pointer-events:none;
  transform:translateZ(5px);
  background:linear-gradient(115deg,transparent 28%,rgba(255,255,255,.22) 42%,rgba(255,255,255,.03) 56%,transparent 68%);
}
.phone-shadow{
  position:absolute;bottom:-34px;left:50%;transform:translateX(-50%) rotateX(70deg);
  width:75%;height:46px;border-radius:50%;
  background:radial-gradient(closest-side,rgba(74,79,140,.4),transparent);
  filter:blur(6px);
}

/* app UI inside phone (light, brand indigo — mirrors the real app) */
.scr-head{display:flex;justify-content:space-between;align-items:flex-start;padding-bottom:4px}
.scr-head b{font-size:16px;color:var(--ink)}
.scr-head small{display:block;font-size:9px;letter-spacing:.16em;color:var(--ink-3);margin-top:2px}
.scr-time{font-size:12px;color:var(--indigo);font-weight:600}
.att-row{
  display:flex;align-items:center;gap:10px;
  background:#fff;border:1px solid var(--line);border-radius:13px;padding:9px 11px;
}
.ava{
  width:34px;height:34px;border-radius:50%;flex-shrink:0;font-style:normal;
  display:grid;place-items:center;font-size:12px;font-weight:600;
  background:var(--indigo-soft);color:var(--indigo-deep);letter-spacing:.02em;
}
.ava-big{width:84px;height:84px;font-size:26px}
.att-info{flex:1;line-height:1.25}
.att-info b{font-size:13.5px;display:block;color:var(--ink)}
.att-info small{font-size:11px;color:var(--ink-3)}
.pill{
  width:30px;height:30px;border-radius:9px;display:grid;place-items:center;
  font-size:12.5px;font-weight:700;flex-shrink:0;
}
.pill-p{background:var(--green-soft);color:var(--green)}
.pill-h{background:var(--ochre-soft);color:var(--ochre)}
.scr-btn{
  border:0;border-radius:13px;padding:13px;margin-top:auto;
  background:var(--indigo);color:#fff;font-weight:600;font-size:14px;
  font-family:inherit;display:block;text-align:center;
  box-shadow:0 10px 20px -8px rgba(102,110,184,.6);
}
.scr-btn.sm{padding:10px;font-size:12.5px;margin-top:0;flex:1}
.scr-btn.ghost{background:var(--indigo-soft);color:var(--indigo-deep);box-shadow:none}
.pay-btns{display:flex;gap:8px;margin-top:auto}

.chip{
  display:inline-flex;align-items:center;gap:7px;
  font-size:11.5px;padding:8px 11px;border-radius:10px;width:fit-content;
  background:var(--paper-2);border:1px solid var(--line);color:var(--ink-2);
}
.chip .ic{width:14px;height:14px;color:var(--indigo)}
.chip-ok{background:var(--green-soft);border-color:#CBE4D6;color:#2F6B4C}
.chip-ok .ic{color:var(--green)}

/* selfie / stamp */
.selfie{
  position:relative;height:170px;border-radius:16px;overflow:hidden;
  background:linear-gradient(160deg,var(--indigo-soft),#DFE2F3);
  display:grid;place-items:center;
}
.scanline{
  position:absolute;left:10%;right:10%;height:2px;
  background:linear-gradient(90deg,transparent,var(--indigo),transparent);
  animation:scan 2.6s ease-in-out infinite;
}
@keyframes scan{0%,100%{top:15%}50%{top:82%}}
.stamp{
  align-self:center;text-align:center;
  font-family:"Spline Sans Mono",monospace;font-weight:600;font-size:18px;letter-spacing:.1em;
  color:var(--green);border:2px solid var(--green);border-radius:10px;
  padding:9px 22px;transform:rotate(-2.5deg);
  display:flex;flex-direction:column;gap:3px;background:var(--green-soft);
}
.stamp small{font-size:8.5px;letter-spacing:.05em;font-weight:400;color:#2F6B4C}

/* slab / tally */
.slab{display:flex;flex-direction:column;gap:9px;background:#fff;border:1px solid var(--line);border-radius:13px;padding:13px}
.slab-tier{display:grid;grid-template-columns:32px 1fr 52px;gap:9px;align-items:center;font-size:10.5px;color:var(--ink-3)}
.slab-bar{height:10px;border-radius:5px;background:var(--paper-2);overflow:hidden}
.slab-bar i{display:block;height:100%;width:var(--w);border-radius:5px;background:linear-gradient(90deg,var(--indigo-pastel),var(--indigo-deep))}
.tally{
  display:flex;justify-content:space-between;align-items:center;gap:8px;
  padding:12px 13px;border-radius:12px;background:var(--indigo-soft);
  border:1px solid #DCDFF3;font-size:12.5px;color:var(--ink-2);
}
.tally b{font-size:18px;color:var(--indigo-deep)}
.mini-rows{display:flex;flex-direction:column;gap:6px}
.mini-row{
  display:flex;justify-content:space-between;padding:9px 12px;font-size:12px;
  background:#fff;border:1px solid var(--line);border-radius:11px;color:var(--ink-2);
}
.mini-row b{color:var(--ink)}

/* ledger */
.ledger{display:flex;flex-direction:column}
.ledger-row{
  display:flex;justify-content:space-between;gap:12px;padding:9px 2px;
  font-size:12.5px;color:var(--ink-2);border-bottom:1px dashed var(--line);
}
.ledger-row b{color:var(--ink)}
.ledger-row.ded b{color:var(--red)}
.ledger-total{border-bottom:0;border-top:2px solid var(--indigo);margin-top:5px;padding-top:11px;font-weight:600;color:var(--ink)}
.ledger-total b{color:var(--indigo-deep);font-size:16.5px}

/* chat */
.chat{display:flex;flex-direction:column;gap:8px;flex:1}
.bub{max-width:88%;padding:9px 12px;border-radius:14px;font-size:12.5px;line-height:1.45}
.bub.me{align-self:flex-end;background:var(--indigo);color:#fff;border-bottom-right-radius:4px}
.bub.ai{align-self:flex-start;background:#fff;border:1px solid var(--line);color:var(--ink-2);border-bottom-left-radius:4px}

/* ─── torn dividers ─── */
.tear{height:30px;margin:-1px 0;position:relative;z-index:2}
.tear svg{display:block;width:100%;height:30px}
.tear path{fill:var(--paper-2)}
.tear.flip{transform:scaleY(-1)}
.tear.flip path{fill:var(--paper-2)}

/* ─── chapters ─── */
.chapter{padding:12vh clamp(20px,5vw,64px);position:relative}
.chapter.alt{background:var(--paper-2)}
.ch-grid{
  max-width:var(--maxw);margin:0 auto;display:grid;grid-template-columns:1fr 1fr;
  gap:clamp(36px,6vw,90px);align-items:center;
}
.ch-no{font-size:11.5px;letter-spacing:.24em;color:var(--indigo);margin-bottom:16px}
.ch-copy h2{font-size:clamp(32px,3.5vw,50px);margin-bottom:18px}
.ch-copy>p{color:var(--ink-2);max-width:34em}
.fact-list{list-style:none;margin-top:26px;display:flex;flex-direction:column;gap:11px}
.fact-list li{
  display:flex;align-items:flex-start;gap:12px;
  background:var(--card);border:1px solid var(--line);border-radius:13px;
  padding:13px 16px;font-size:14.5px;color:var(--ink-2);
  box-shadow:0 4px 12px -8px rgba(74,79,140,.25);
}
.fact-list .ic{width:20px;height:20px;color:var(--indigo);flex-shrink:0;margin-top:2px}
.fact-list b{color:var(--ink);font-weight:600}
.ch-stage{position:relative;display:flex;justify-content:center;padding:30px 0}
.ph-sm{width:270px}
.ph-sm .p-screen{min-height:520px}
.chapter.alt .ph-sm{transform:rotateY(14deg) rotateX(5deg)}
.chapter:not(.alt) .ph-sm{transform:rotateY(-14deg) rotateX(5deg)}
.ch-stage{perspective:1300px}

/* paper notes (the old-way artifacts) */
.note{
  position:absolute;z-index:3;background:#FFFDF4;border:1px solid #EDE6CC;
  border-radius:4px;padding:14px 16px;width:200px;
  box-shadow:0 14px 28px -12px rgba(74,79,140,.35);
  font-size:12px;color:var(--ink-2);
}
.note>.mono{display:block;font-size:9px;letter-spacing:.18em;color:var(--ochre);margin-bottom:8px}
.note em{display:block;font-size:11.5px;color:var(--ink-3);margin-top:8px}
.note-1{top:-6px;left:-4px;transform:rotate(-6deg)}
.note-2{top:-10px;right:-8px;transform:rotate(5deg)}
.note-grid{display:grid;grid-template-columns:repeat(6,1fr);gap:4px}
.note-grid i{height:14px;border-bottom:1.5px solid #D8D0B4}
.note-grid i:nth-child(3),.note-grid i:nth-child(8){position:relative}
.note-grid i:nth-child(3)::after,.note-grid i:nth-child(8)::after{
  content:"P";position:absolute;inset:0;font-size:10px;color:#9A917A;text-align:center;
}
.chit{font-size:12.5px;line-height:1.8;color:#6B6350}
.chit s{color:var(--red)}
.chit b{color:var(--ochre)}

/* prove section */
.ch-head{max-width:760px;margin:0 auto 56px;text-align:center}
.ch-head h2{font-size:clamp(38px,5vw,64px);margin-bottom:18px}
.ch-lede{color:var(--ink-2);font-size:18px}
.prove-grid{
  max-width:var(--maxw);margin:0 auto;display:grid;grid-template-columns:1fr 1.15fr;
  gap:clamp(24px,4vw,48px);align-items:stretch;
}
.prove-card{padding:26px}
.prove-note{margin-top:16px;font-size:13.5px;color:var(--ink-3)}
.audit{display:flex;flex-direction:column}
.audit-row{
  display:grid;grid-template-columns:46px 1fr auto;gap:10px;align-items:baseline;
  padding:10px 0;border-bottom:1px dashed var(--line);font-size:13.5px;color:var(--ink-2);
}
.audit-row b{color:var(--ink)}
.audit-row .at{color:var(--indigo);font-size:11.5px}
.audit-row .aid{font-size:10.5px;color:var(--ink-3)}
.audit-row.struck span:nth-child(2){text-decoration:line-through;opacity:.5}
.audit-row.fix{background:linear-gradient(90deg,var(--green-soft),transparent);border-radius:8px;padding-left:6px;margin-left:-6px}

/* pay: file fan */
.file-fan{position:absolute;bottom:-8px;right:clamp(0px,3vw,30px);display:flex;flex-direction:column;z-index:3}
.file-fan span{
  background:#fff;border:1px solid var(--line);border-radius:8px;
  font-size:10px;letter-spacing:.12em;color:var(--ink-2);padding:9px 14px;
  box-shadow:0 10px 22px -12px rgba(74,79,140,.4);
}
.file-fan span:nth-child(1){transform:rotate(-5deg) translateX(-14px)}
.file-fan span:nth-child(2){transform:rotate(2deg)}
.file-fan span:nth-child(3){transform:rotate(-2deg) translateX(-7px);background:var(--indigo-soft)}

/* everything */
.everything{padding:14vh clamp(20px,3vw,56px);max-width:none;margin:0 auto;position:relative}
.everything .ev-grid{max-width:1560px;margin:0 auto}
.ev-title{font-size:clamp(34px,4.4vw,58px);text-align:center}
.ev-sub{text-align:center;color:var(--ink-3);margin:14px 0 48px}
.ev-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:18px}
.ev-cell{padding:22px;font-size:13.5px;color:var(--ink-3);transition:transform .25s}
.ev-cell:hover{transform:translateY(-4px) rotate(-.4deg)}
.ev-cell b{display:block;color:var(--ink);font-size:15px;margin-bottom:7px;font-weight:600}

/* cta */
.cta{padding:6vh clamp(20px,5vw,64px) 14vh}
.cta-sheet{max-width:820px;margin:0 auto;padding:clamp(36px,5vw,64px);text-align:center}
.cta-sheet h2{font-size:clamp(34px,4.6vw,58px);margin-bottom:16px}
.cta-sub{color:var(--ink-2);margin-bottom:30px}

/* footer — simple: brand · links · copyright */
.foot{
  display:flex;justify-content:space-between;align-items:center;gap:16px 28px;flex-wrap:wrap;
  padding:26px clamp(20px,5vw,64px);border-top:1px solid var(--line);background:var(--paper-2);
}
.foot-brand{font-family:"Sora",sans-serif;font-weight:700;font-size:19px;letter-spacing:-.02em;
  display:inline-flex;align-items:center;color:var(--ink)}
.foot-brand>span:last-of-type{color:var(--indigo-pastel)}
.foot-brand .nav-mk{width:30px;height:30px;border-radius:9px;margin-right:9px}
.foot-brand .nav-mk svg{width:18px;height:18px}
.foot .mono{font-size:11px;letter-spacing:.16em;color:var(--ink-3)}
.foot-links{display:flex;gap:22px;flex-wrap:wrap}
.foot-links a{font-size:13.5px;color:var(--ink-3);transition:color .2s}
.foot-links a:hover{color:var(--indigo)}

/* generic icon sizing safety */
.ic{width:18px;height:18px}

/* ─── responsive ─── */
@media(max-width:1080px){
  .bento{
    grid-template-columns:1fr 1fr;
    grid-template-areas:
      "head head" "phone phone" "stat cal" "ticker get" "art art";
  }
  .t-phone{min-height:600px}
  .prove-grid{grid-template-columns:1fr}
  .ev-grid{grid-template-columns:repeat(2,1fr)}
}
@media(max-width:900px){
  .ch-grid{grid-template-columns:1fr;gap:48px}
  .ch-stage{order:2}
  .tabs{display:none}
  .nav-links{display:none}
}
@media(max-width:560px){
  .bento{grid-template-columns:1fr;grid-template-areas:"head" "phone" "stat" "cal" "ticker" "get" "art"}
  .ev-grid{grid-template-columns:1fr}
  .phone3d{width:262px}
  .note{width:170px}
  .note-1{left:-2px}
  .note-2{right:-2px}
  body{font-size:16px}
  .file-fan{right:0}
}
@media(prefers-reduced-motion:reduce){
  *,*::before,*::after{animation:none!important;transition:none!important}
}

/* ═══════════ PREMIUM LAYER: gradients, decor, marquee, boot, industries, reactive cards ═══════════ */

/* ambient page gradients */
body{
  background:
    radial-gradient(60% 40% at 12% 0%, rgba(102,110,184,.10), transparent 60%),
    radial-gradient(50% 36% at 88% 8%, rgba(192,138,80,.07), transparent 60%),
    radial-gradient(70% 50% at 50% 100%, rgba(74,79,140,.08), transparent 65%),
    var(--paper);
}

/* premium sheet surface */
.sheet{
  background:linear-gradient(165deg,#FFFFFF 0%,#FDFDFF 55%,#F5F6FC 100%);
}
.sheet{border-top:1px solid rgba(255,255,255,.9)}

/* gradient display accents */
h1 em,h2 em,.stat-big{
  background:linear-gradient(120deg,var(--indigo-deep) 0%,var(--indigo) 45%,var(--indigo-pastel) 100%);
  -webkit-background-clip:text;background-clip:text;color:transparent;
}
h1 em,h2 em{-webkit-text-fill-color:transparent}

/* gradient buttons */
.btn-indigo{
  background:linear-gradient(135deg,var(--indigo-deep) 0%,var(--indigo) 60%,var(--indigo-pastel) 130%);
  box-shadow:0 10px 26px -10px rgba(74,79,140,.65), inset 0 1px 0 rgba(255,255,255,.25);
}
.btn-indigo:hover{box-shadow:0 16px 34px -12px rgba(74,79,140,.75), inset 0 1px 0 rgba(255,255,255,.3)}
.btn-ink{background:linear-gradient(140deg,#23262B,#141715 70%);box-shadow:0 10px 24px -10px rgba(20,23,21,.6)}
.scr-btn{background:linear-gradient(135deg,var(--indigo-deep),var(--indigo) 80%)}
.scr-btn.ghost{background:var(--indigo-soft)}
.store{background:linear-gradient(140deg,#2A2E45,#141721 70%)}
.tally{background:linear-gradient(135deg,var(--indigo-soft),#F7F8FE 80%)}
.t-head{
  background:
    radial-gradient(46% 60% at 88% 6%, rgba(192,138,80,.10), transparent 65%),
    radial-gradient(50% 70% at 0% 100%, rgba(102,110,184,.10), transparent 60%),
    linear-gradient(165deg,#FFFFFF,#F7F8FD);
}
.t-phone{background:
  radial-gradient(70% 60% at 50% 30%, rgba(102,110,184,.16), transparent 70%),
  linear-gradient(160deg,var(--indigo-soft),#FFFFFF 75%)}

/* reactive cards — universal */
.tile,.ind-card,.ev-cell,.prove-card,.fact-list li,.note,.store,.chip,.att-row,.mini-row,.dash-stat{
  transition:transform .28s cubic-bezier(.22,.9,.3,1.4),box-shadow .28s;
  will-change:transform;
}
.tile:hover,.ind-card:hover,.prove-card:hover{
  transform:translateY(-5px);
  box-shadow:
    0 1px 2px rgba(74,79,140,.08),
    0 12px 24px -10px rgba(74,79,140,.22),
    0 40px 64px -30px rgba(74,79,140,.4);
}
.ev-cell:hover{transform:translateY(-5px) rotate(-.4deg)}
.fact-list li:hover{transform:translateX(6px);box-shadow:0 10px 22px -10px rgba(74,79,140,.35)}
.fact-list li:hover .ic{color:var(--indigo-deep)}
.note:hover{transform:scale(1.06) rotate(0deg)!important;z-index:9}
.chip:hover{transform:translateY(-2px)}
.att-row:hover,.mini-row:hover{transform:translateX(3px)}

/* ─── background decor shapes ─── */
.decor{position:absolute;inset:0;pointer-events:none;z-index:0;overflow:hidden}
.chapter,.cta,.industries{position:relative}
.chapter .ch-grid,.chapter .ch-head,.chapter .prove-grid,.cta-sheet,.industries>*{position:relative;z-index:1}
.shp{position:absolute;display:grid;place-items:center;font-style:normal;will-change:transform}
.shp.ring{width:64px;height:64px;border-radius:50%;border:10px solid var(--indigo-soft);
  box-shadow:0 8px 18px -8px rgba(74,79,140,.25), inset 0 2px 4px rgba(74,79,140,.12)}
.shp.ring.sm{width:40px;height:40px;border-width:7px}
.shp.dot{width:18px;height:18px;border-radius:50%;
  background:linear-gradient(140deg,var(--indigo-pastel),var(--indigo-deep));
  box-shadow:0 6px 12px -4px rgba(74,79,140,.4)}
.shp.plus{width:34px;height:34px}
.shp.plus::before,.shp.plus::after{content:"";position:absolute;background:linear-gradient(140deg,#D9B08C,var(--ochre));border-radius:4px}
.shp.plus::before{width:100%;height:9px}
.shp.plus::after{width:9px;height:100%}
.shp.strip{width:88px;height:16px;border-radius:8px;transform:rotate(-14deg);
  background:linear-gradient(90deg,var(--paper-deep),#E2E4F0);
  box-shadow:0 8px 14px -6px rgba(74,79,140,.2)}
.shp.coin{width:44px;height:44px;border-radius:50%;font-size:19px;font-weight:600;color:#fff;
  background:radial-gradient(circle at 32% 28%,#D9A876,var(--ochre) 60%,#9A6C3B);
  box-shadow:0 10px 18px -6px rgba(140,106,63,.5), inset 0 2px 3px rgba(255,255,255,.4)}
.shp.cloud{width:96px;height:34px;border-radius:20px;
  background:linear-gradient(180deg,#FFFFFF,var(--paper-deep));
  box-shadow:0 10px 20px -8px rgba(74,79,140,.18)}
.shp.cloud::before{content:"";position:absolute;left:18px;top:-16px;width:34px;height:34px;border-radius:50%;
  background:inherit}
.shp.cloud::after{content:"";position:absolute;right:20px;top:-10px;width:24px;height:24px;border-radius:50%;
  background:inherit}
.shp.cloud.sm{transform:scale(.6)}
@keyframes floaty{0%,100%{translate:0 0}50%{translate:0 -12px}}
.shp{animation:floaty 6s ease-in-out infinite}
.shp.dot{animation-duration:4.5s}
.shp.coin{animation-duration:5.2s}
.plane{position:absolute;width:54px;height:54px;top:16%;left:-6%;z-index:2;
  filter:drop-shadow(0 10px 14px rgba(74,79,140,.3))}

/* ─── marquee ─── */
.marquee{
  overflow:hidden;border-top:1px solid var(--line);border-bottom:1px solid var(--line);
  background:linear-gradient(90deg,var(--paper-2),#FFFFFF 30%,#FFFFFF 70%,var(--paper-2));
  padding:13px 0;position:relative;z-index:2;
  -webkit-mask-image:linear-gradient(90deg,transparent,#000 6%,#000 94%,transparent);
  mask-image:linear-gradient(90deg,transparent,#000 6%,#000 94%,transparent);
}
.marquee-track{
  display:inline-flex;align-items:center;gap:26px;white-space:nowrap;
  font-size:12px;letter-spacing:.22em;color:var(--ink-3);
  animation:marq 30s linear infinite;
}
.marquee-track i{color:var(--ochre);font-style:normal}
.marquee:hover .marquee-track{animation-play-state:paused}
@keyframes marq{to{transform:translateX(-50%)}}

/* ─── boot overlay (minimal: the mark, the name, a hairline) ─── */
.boot{
  position:fixed;inset:0;z-index:1000;display:grid;place-items:center;
  background:radial-gradient(60% 60% at 50% 42%,#20264A 0%,#12162A 60%,#0D1020 100%);
}
.boot-inner{display:flex;flex-direction:column;align-items:center;gap:24px}
.boot-mk{
  width:84px;height:84px;border-radius:23px;display:grid;place-items:center;
  background:linear-gradient(150deg,#5A61A8,#7E86C4);
  box-shadow:0 20px 50px -18px rgba(102,110,184,.75), inset 0 1px 0 rgba(255,255,255,.25);
}
.boot-mk svg{width:50px;height:50px}
#bootDot{transform-box:fill-box;transform-origin:center;animation:bootpulse 1.4s ease-in-out infinite}
@keyframes bootpulse{0%,100%{opacity:.55;transform:scale(.82)}50%{opacity:1;transform:scale(1)}}
.boot-logo{font-family:"Sora",sans-serif;font-weight:700;font-size:30px;letter-spacing:-.02em;color:#EEEFF8}
.boot-logo b{color:#A6ADF2;font-weight:700}
.boot-line{width:132px;height:2px;border-radius:2px;background:rgba(166,173,242,.18);overflow:hidden}
.boot-line i{display:block;height:100%;width:0%;border-radius:2px;
  background:linear-gradient(90deg,#7E86C4,#A6ADF2)}

/* ─── industries ─── */
.industries{padding:14vh clamp(20px,3vw,56px);text-align:center}
.ind-grid{
  max-width:1560px;margin:48px auto 0;display:grid;
  grid-template-columns:repeat(4,1fr);gap:22px;text-align:left;
}
.ind-card{overflow:hidden;padding:0;display:flex;flex-direction:column}
.ind-card img{width:100%;aspect-ratio:4/3;object-fit:cover;display:block;
  border-bottom:1px solid var(--line)}
.ind-body{padding:20px 22px 24px}
.ind-body b{display:block;font-size:17px;margin-bottom:7px;color:var(--ink)}
.ind-body p{font-size:13.5px;color:var(--ink-3);line-height:1.55}
.ind-more{max-width:640px;margin:36px auto 0;color:var(--ink-3);font-size:14.5px}

/* z-layering for hero decor */
.hero .decor{z-index:0}
.hero .bento{position:relative;z-index:1}

@media(max-width:1280px){
  .bento{
    grid-template-columns:1.2fr .9fr 1fr;
    grid-template-areas:
      "head head phone"
      "stat cal  phone"
      "punch slab phone"
      "ticker pay get";
  }
}
@media(max-width:1080px){
  .ind-grid{grid-template-columns:repeat(2,1fr)}
}
@media(max-width:560px){
  .bento{grid-template-columns:1fr;grid-template-areas:"head" "phone" "punch" "stat" "cal" "slab" "ticker" "pay" "get"}
  .ind-grid{grid-template-columns:1fr}
  .shp{display:none}
  .plane{display:none}
}

/* ═══════════ DARK MODE ═══════════
   Dark indigo-night desk; product surfaces (phone screens) stay light paper. */

:root{
  --paper:#0F1220;
  --paper-2:#151A2E;
  --paper-deep:#1E2440;
  --card:#191E33;
  --ink:#F2F3F7;
  --ink-2:#C4C8DA;
  --ink-3:#8B90A9;
  --indigo-deep:#5A62B0;
  --indigo:#8A92E0;
  --indigo-pastel:#A6ADF2;
  --indigo-soft:#242B4C;
  --ochre:#D9A86A;
  --ochre-soft:#33290F;
  --green:#5FBF8A;
  --green-soft:#16281F;
  --red:#E0958B;
  --line:#2A3050;
  --sheet-shadow:
    0 1px 2px rgba(0,0,0,.3),
    0 8px 18px -6px rgba(0,0,0,.45),
    0 30px 50px -24px rgba(0,0,0,.6);
}

body{
  background:
    radial-gradient(60% 40% at 12% 0%, rgba(102,110,184,.16), transparent 60%),
    radial-gradient(50% 36% at 88% 8%, rgba(217,168,106,.06), transparent 60%),
    radial-gradient(70% 50% at 50% 100%, rgba(90,98,176,.12), transparent 65%),
    var(--paper);
}
.grain{mix-blend-mode:screen;opacity:.16}

.sheet{
  background:linear-gradient(165deg,#1F2440 0%,#191E33 55%,#151A2E 100%);
  border-color:var(--line);border-top:1px solid rgba(255,255,255,.08);
}
.sheet::before{background:var(--paper-deep)}
.sheet::after{background:var(--indigo-soft)}

.nav{background:rgba(15,18,32,.82);border-bottom-color:var(--line)}
.btn-ink{background:linear-gradient(140deg,#F6F7F5,#DDE0EC);color:#141721;box-shadow:0 10px 24px -10px rgba(0,0,0,.5)}
.btn-paper{background:#20264200;background:var(--card);border-color:var(--line);color:var(--ink)}
.tabs a{background:var(--card);border-color:var(--line)}
.tabs a.on{background:var(--indigo);border-color:var(--indigo);color:#0F1220}
.tabs a.on span{color:#2A3050}

h1 em,h2 em,.stat-big{
  background:linear-gradient(120deg,var(--indigo) 0%,var(--indigo-pastel) 55%,var(--ochre) 130%);
  -webkit-background-clip:text;background-clip:text;color:transparent;
}
.t-head{
  background:
    radial-gradient(46% 60% at 88% 6%, rgba(217,168,106,.08), transparent 65%),
    radial-gradient(50% 70% at 0% 100%, rgba(138,146,224,.12), transparent 60%),
    linear-gradient(165deg,#20264A,#181D33);
}
.t-phone{background:
  radial-gradient(70% 60% at 50% 30%, rgba(138,146,224,.2), transparent 70%),
  linear-gradient(160deg,#232B52,#161A2E 75%)}

.store{background:linear-gradient(140deg,#F2F3F7,#D8DBE8 75%);color:#141721;box-shadow:0 12px 24px -10px rgba(0,0,0,.5)}
.store svg{fill:#141721}
.store small{opacity:.6}
.marquee{background:linear-gradient(90deg,var(--paper-2),#1B2036 30%,#1B2036 70%,var(--paper-2));border-color:var(--line)}
.tally{background:linear-gradient(135deg,var(--indigo-soft),#1B2140 80%);border-color:#2E3560;color:var(--ink-2)}
.tally b{color:var(--indigo-pastel)}
.ledger-total{border-top-color:var(--indigo)}
.ledger-total b{color:var(--indigo-pastel)}

/* product widgets that sit OUTSIDE phone screens go dark-translucent */
.tile .slab,.prove-card .slab{background:rgba(255,255,255,.045);border-color:var(--line)}
.file-fan span{background:#20264A;border-color:var(--line);color:var(--ink-2)}
.file-fan span:nth-child(3){background:var(--indigo-soft)}
.note{background:#FFFDF4;color:#4B4535} /* post-its stay real paper */
.note em{color:#7A7157}
/* boot is always the dark brand moment — no light/dark variance needed */
.tear path{fill:var(--paper-2)}
.foot{background:var(--paper-2);border-top-color:var(--line)}
.shp.ring{border-color:var(--indigo-soft);box-shadow:0 8px 18px -8px rgba(0,0,0,.4)}
.shp.strip{background:linear-gradient(90deg,#242B4C,#1C2340)}
.shp.cloud{background:linear-gradient(180deg,#2A3157,#1E2440)}
.plane path{fill:#242B4C;stroke:#8A92E0}
.selfie{background:linear-gradient(160deg,#242B4C,#1B2140)}
.chip{background:rgba(255,255,255,.05)}
.ind-card img{border-bottom-color:var(--line)}
.mini-cal .c-h{background:var(--indigo-soft)}
.mini-cal .c-t{box-shadow:0 0 0 2px var(--card),0 0 0 3.5px var(--indigo)}
.stat-big{font-weight:600}
.p-back{box-shadow:0 60px 100px -30px rgba(0,0,0,.75)}
.phone-shadow{background:radial-gradient(closest-side,rgba(0,0,0,.65),transparent)}

/* phone screens: re-scope the light palette — the product stays paper-white */
.p-screen{
  --card:#FFFFFF; --ink:#141715; --ink-2:#3D443F; --ink-3:#7C847E;
  --line:#E3E4EC; --paper-2:#EFF0F6; --paper-deep:#E9EAF2;
  --indigo-deep:#4A4F8C; --indigo:#666EB8; --indigo-pastel:#7B82C4; --indigo-soft:#EEEFF8;
  --green:#4E9A6E; --green-soft:#E9F2ED; --ochre:#C08A50; --ochre-soft:#F7EFE3; --red:#C98A82;
}
.p-screen .slab{background:#fff;border-color:var(--line)}
.p-screen .selfie{background:linear-gradient(160deg,#EEEFF8,#DFE2F3)}
.p-screen .chip{background:var(--paper-2)}
.p-screen .chip-ok{background:var(--green-soft)}
.p-screen .tally{background:linear-gradient(135deg,#EEEFF8,#F7F8FE 80%);border-color:#DCDFF3;color:#3D443F}
.p-screen .tally b{color:#4A4F8C}
.p-screen .ledger-total b{color:#4A4F8C}

/* ═══════════ HERO: PRODUCT SHOWCASE (replaces bento) ═══════════ */
.hero{padding:118px clamp(16px,2.5vw,40px) 40px}
.hero-top{position:relative;z-index:2;text-align:center;max-width:860px;margin:0 auto}
.hero-top h1{font-size:clamp(42px,5.4vw,76px)}
.hero-top .lede{margin:22px auto 28px;max-width:34em}
.hero-top .stores{margin-top:18px}

.hero-stage{
  position:relative;z-index:1;max-width:1280px;margin:64px auto 0;
  min-height:680px;display:grid;place-items:center;
}
.hero-stage .phone-scene{z-index:2}
.hero-stage .phone3d{width:300px}

/* floating callouts around the phone */
.co{position:absolute;padding:20px 22px;width:264px;z-index:3}
.co .t-label{margin-bottom:10px}
.co-punch{top:2%;left:clamp(0px,6vw,90px)}
.co-stat{bottom:6%;left:clamp(10px,9vw,130px)}
.co-slab{top:0%;right:clamp(0px,6vw,90px)}
.co-pay{bottom:4%;right:clamp(10px,8vw,120px)}
.co-audit{top:38%;left:clamp(-10px,2vw,30px);width:280px}
.co-chip{position:absolute;z-index:3}
.co-chip.c1{top:26%;right:clamp(10px,14vw,210px)}
.co-chip.c2{bottom:22%;right:clamp(0px,5vw,70px)}
.co-stat .stat-big{font-size:46px}
.co-audit .ticker-mask{height:96px}

/* gentle idle float, alternating phases */
@keyframes co-float{0%,100%{transform:translateY(0)}50%{transform:translateY(-10px)}}
.co,.co-chip{animation:co-float 7s ease-in-out infinite}
.co-slab,.co-pay{animation-duration:8s;animation-delay:1.2s}
.co-audit{animation-duration:9s;animation-delay:.6s}
.co-chip.c2{animation-delay:2s}

@media(max-width:1150px){
  .co-audit{display:none}
}
@media(max-width:980px){
  .hero-stage{min-height:0;display:flex;flex-direction:column;align-items:center;gap:22px;margin-top:44px}
  .co,.co-chip{position:static;width:min(420px,100%);animation:none}
  .co-chip{width:auto}
  .co-audit{display:block}
  .hero-stage .phone-scene{margin-bottom:26px}
}

/* ═══════════ PHONE: cream/off-white body + iPhone notch ═══════════ */
.p-back{
  background:linear-gradient(150deg,#F4F1E7,#DDD9CB 55%,#EFEBDF);
  box-shadow:0 60px 100px -30px rgba(0,0,0,.6), inset 0 0 0 1px rgba(255,255,255,.5);
}
.p-cam{
  background:linear-gradient(140deg,#E8E4D7,#CFCABB);
  box-shadow:inset 0 1px 2px rgba(255,255,255,.7), 0 2px 6px rgba(90,84,60,.35);
}
.p-lens{
  background:radial-gradient(circle at 35% 35%, #8A92E0 0%, #2A2F55 55%, #101322 100%);
  box-shadow:0 0 0 4px #DAD5C6, 24px 0 0 0 #DAD5C6, 24px 0 0 -1px #B8B3A2,
    inset 0 1px 2px rgba(255,255,255,.35);
}
.p-slice{
  background:#E4E0D2;
  box-shadow:inset 0 0 0 1.5px #CFCABB;
}
.p-body{
  background:linear-gradient(115deg,#FBF9F2,#D8D4C5 26%,#F1EDE1 50%,#CBC6B6 74%,#F6F3EA);
  box-shadow:inset 0 0 0 2.5px rgba(255,255,255,.85), inset 0 0 0 5px rgba(150,144,124,.4);
}
.p-screen{box-shadow:inset 0 0 0 1px rgba(20,23,40,.22), inset 0 0 10px rgba(20,23,40,.14)}
.phone-shadow{background:radial-gradient(closest-side,rgba(10,12,24,.55),transparent)}

/* classic iPhone notch, hugging the screen's top edge */
.p-island{
  top:9px;left:50%;transform:translateX(-50%);
  width:152px;height:27px;border-radius:0 0 17px 17px;
  background:#0A0C16;
  box-shadow:none;
}
.p-island::before{ /* speaker slot */
  content:"";position:absolute;left:50%;top:9px;transform:translateX(-50%);
  width:44px;height:5px;border-radius:3px;background:#232741;
}
.p-island::after{ /* front camera */
  content:"";position:absolute;right:22px;top:8px;width:8px;height:8px;border-radius:50%;
  background:radial-gradient(circle at 35% 35%, #4A5588, #10131F 70%);
}

/* chip repositioning: keep them in empty air, off the cards */
.co-chip.c1{top:16%;right:auto;left:31%}
.co-chip.c2{bottom:3%;right:31%}
@media(max-width:1150px){.co-chip.c1{left:24%}.co-chip.c2{right:24%}}

/* ═══════════ HERO: MINIMAL PREMIUM (headline overlaps the phone) ═══════════ */
.hero{padding:96px clamp(16px,2.5vw,40px) 8px}
.hero-min{position:relative;z-index:1;text-align:center;max-width:1200px;margin:0 auto}
.hm-title{font-size:clamp(40px,5.4vw,74px);margin-top:4px;position:relative;z-index:3;line-height:1.04;
  text-shadow:0 2px 24px rgba(15,18,32,.45)}
.hm-row{
  display:grid;grid-template-columns:1fr auto 1fr;align-items:center;
  gap:clamp(16px,3vw,48px);
}
.hm-row .phone-scene{position:relative;z-index:2}
.hm-side{display:flex;flex-direction:column;gap:18px;position:relative;z-index:3}
.hm-left{text-align:right;align-items:flex-end}
.hm-right{text-align:left;align-items:flex-start}
.hm-left .lede{margin:0;max-width:20em;font-size:17px}
.hm-foot{font-size:10px;letter-spacing:.2em;color:var(--ink-3)}
/* right column: two stacked CTAs, store badges paired below */
.hm-right .cta-row{flex-direction:column;align-items:stretch;gap:10px;width:206px}
.hm-right .btn{width:100%}
.hm-right .stores{flex-direction:row;flex-wrap:wrap;gap:10px;width:206px}
.hm-right .store{flex:1;min-width:96px}

/* minimal: fewer, fainter shapes in hero */
.hero .shp.dot,.hero .shp.strip,.hero .shp.plus{display:none}
.hero .shp{opacity:.55}

@media(max-width:1050px){
  .hm-row{grid-template-columns:1fr;margin-top:8px;gap:34px}
  .hm-row .phone-scene{margin-top:0;order:1}
  .hm-left{order:2;text-align:center;align-items:center}
  .hm-right{order:3;text-align:center;align-items:center}
  .hm-right .cta-row,.hm-right .stores{flex-direction:row;justify-content:center;align-items:center;width:auto}
  .hm-right .btn{width:auto;min-width:172px}
}

/* ═══════════ PHONE: back to black (cream retired) ═══════════ */
.p-back{
  background:linear-gradient(150deg,#2A2E45,#14172A 55%,#232741);
  box-shadow:0 60px 100px -30px rgba(0,0,0,.75), inset 0 0 0 1px rgba(255,255,255,.07);
}
.p-cam{background:linear-gradient(140deg,#3A3F5E,#1C2036);
  box-shadow:inset 0 1px 2px rgba(255,255,255,.18), 0 2px 6px rgba(0,0,0,.4)}
.p-lens{
  background:radial-gradient(circle at 35% 35%, #6E7BD8 0%, #23274A 55%, #0B0D1C 100%);
  box-shadow:0 0 0 4px #14172A, 24px 0 0 0 #14172A, 24px 0 0 -1px #0B0D1C, inset 0 1px 2px rgba(255,255,255,.35);
}
.p-slice{background:#101322;box-shadow:inset 0 0 0 1.5px #23273F}
.p-body{
  background:linear-gradient(115deg,#3A3E58,#0C0F1C 28%,#20243A 50%,#080A14 72%,#2E3350);
  box-shadow:inset 0 0 0 2.5px rgba(180,188,255,.22), inset 0 0 0 5px rgba(0,0,0,.6);
}

/* generated black phone frame (assets/phone-frame.png), real UI overlaid on its screen */
.phone-img{position:relative;width:300px}
.phone-img img{width:100%;display:block;filter:drop-shadow(0 50px 80px rgba(0,0,0,.6))}
.phone-img .p-screen{
  position:absolute;border-radius:24px;min-height:0;
  /* inset tuned to the render's screen area — adjust after inspecting */
  top:3.2%;left:6.2%;right:6.2%;bottom:3.2%;
  padding:50px 13px 16px;
}
.phone-img .p-island{z-index:6}

/* image-frame phone: measured insets for assets/phone-frame.png (768x1376 render) */
.phone-img{width:380px;transform:rotateY(-12deg) rotateX(4deg)}
.phone-img img{width:100%;display:block;filter:drop-shadow(0 46px 70px rgba(0,0,0,.55))}
.phone-img .p-screen{
  top:11.7%;left:19.4%;right:19.1%;bottom:12.2%;
  border-radius:26px;min-height:0;padding:46px 12px 14px;
  box-shadow:none;transform:none;
  display:flex;flex-direction:column;gap:9px;overflow:hidden;
}
.phone-img .p-island{
  position:absolute;top:calc(11.7% + 6px);left:50%;transform:translateX(-50%);
  width:118px;height:22px;border-radius:0 0 13px 13px;background:#0A0C16;z-index:6;
}
.phone-img .p-island::before{width:34px;height:4px;top:7px}
.phone-img .p-island::after{width:7px;height:7px;top:6px;right:18px}
.phone-img .scr-head{padding-top:0}
.phone-img .att-row{padding:8px 10px}
.phone-img .ava{width:30px;height:30px;font-size:11px}
.phone-img .att-info b{font-size:12.5px}
.phone-img .scr-btn{padding:11px;font-size:13px}
@media(max-width:1050px){.phone-img{width:320px}}

/* phone-frame.png now transparent + tight-cropped (547x1109): re-measured insets */
.phone-img{width:300px}
.phone-img .p-screen{top:2.5%;left:7%;right:6.5%;bottom:3%;border-radius:30px;padding:46px 13px 15px}
.phone-img .p-island{top:calc(2.5% + 5px)}
/* the headline overlaps the phone's top — text pops above the card */
.hm-row{margin-top:clamp(-64px,-4.5vw,-32px)}
.hm-row .phone-scene{margin-top:0}
@media(max-width:1050px){.phone-img{width:280px}.hm-row{margin-top:8px}}
.phone-img .p-screen{gap:11px}
.phone-img .att-row{padding:11px 12px}
.scr-proof{margin-top:auto;align-self:center}

/* chapter phones on the rendered frame */
.phone-img.ph-sm{width:300px}
.phone-img.ph-sm .p-screen{padding:42px 11px 13px;gap:8px}
.phone-img.ph-sm .p-island{width:104px;height:20px}
.phone-img.ph-sm .selfie{height:150px}
.phone-img.ph-sm .chat .bub{font-size:11.5px}
.phone-img.ph-sm .ledger-row{font-size:11.5px;padding:7px 2px}
.phone-img.ph-sm .slab{padding:11px}
.phone-img.ph-sm .mini-row{padding:8px 10px;font-size:11px}
.phone-img.ph-sm .tally{padding:10px 12px;font-size:11.5px}
.phone-img .ava-big{width:76px;height:76px;font-size:24px}
.phone-img .p-screen>.chip:last-of-type{margin-top:auto}
.phone-img .p-screen>.scr-btn,.phone-img .p-screen>.pay-btns{margin-top:12px}
.phone-img .p-screen>.scr-proof{margin-top:auto}

/* ═══════════ SCROLL SNAPPING ═══════════
   proximity (not mandatory): sections gently settle without fighting free scroll */
html{scroll-snap-type:y proximity}
.chapter,.industries,.everything,.cta{scroll-snap-align:start;scroll-margin-top:74px}
.hero{scroll-snap-align:start}
@media(prefers-reduced-motion:reduce){html{scroll-snap-type:none}}

/* ─── accessibility: visible keyboard focus (was missing on the dark homepage) ─── */
a:focus-visible,button:focus-visible,.btn:focus-visible,[tabindex]:focus-visible{
  outline:3px solid var(--indigo-pastel);outline-offset:3px;border-radius:6px;
}
:focus:not(:focus-visible){outline:none}

/* ═══════════════════════════════════════════════════════════════════════
   HERO REPAIR + IN-PHONE FEATURE CALLOUTS + MOBILE
   Appended deliberately: these override earlier rules by source order, so
   the original declarations stay intact and this block can be reverted whole.
   ═══════════════════════════════════════════════════════════════════════ */

/* ─── 1. Title/phone collision ───
   .hm-row carried margin-top:clamp(-64px,-4.5vw,-32px), which lifted the phone
   70px into the <em> line of the h1 — "do the" landed on the dark bezel and became
   unreadable. z-index was never the problem (title 3 / phone 2); the geometry was.
   Title bottom sits at ~292px, so the row needs to start just below it. */
.hm-row{margin-top:clamp(6px,.8vw,18px)}

/* ─── 2. Gradient headline needs a fallback ───
   h1 em uses -webkit-background-clip:text + color:transparent. If background-clip
   fails (older engines, forced-colors, some print paths) the line renders INVISIBLE.
   Paint a real colour first so the text always exists, then let the clip enhance it. */
h1 em,h2 em,.stat-big{color:var(--indigo-pastel)}
@supports ((-webkit-background-clip:text) or (background-clip:text)){
  h1 em,h2 em,.stat-big{color:transparent}
}
@media (forced-colors:active){
  h1 em,h2 em,.stat-big{color:CanvasText;background:none;-webkit-text-fill-color:CanvasText}
}

/* ─── 3. Hero buttons ───
   Match heights, give the primary a clear lead, and stop the label wrapping. */
.hm-right .cta-row{width:232px}
.hm-right .btn{
  min-height:50px;padding:13px 20px;font-size:15.5px;letter-spacing:-.005em;
  white-space:nowrap;border-radius:13px;
}
.hm-right .btn-indigo{font-weight:650}
.hm-right .btn-paper{background:rgba(255,255,255,.055);border-color:rgba(255,255,255,.16);color:#EDEFF7}
.hm-right .btn-paper:hover{background:rgba(255,255,255,.1);border-color:rgba(255,255,255,.28)}

/* ─── 4. Store badges ───
   They were laid out as two columns inside a 206px rail = 98px each, so
   "Download on the / App / Store" wrapped onto THREE lines and the badge rendered
   98x73 — nearly square. Stack them full-width and forbid wrapping. */
.hm-right .stores{width:232px;flex-direction:column;gap:9px}
.hm-right .store{
  width:100%;min-height:52px;padding:8px 16px;gap:11px;border-radius:13px;
  align-items:center;
}
.store span{min-width:0}
.store small,.store b{white-space:nowrap}
.store small{font-size:9px;letter-spacing:.09em;text-transform:uppercase}
.store b{font-size:15px;letter-spacing:-.01em}
.store svg{width:24px;height:24px}

/* unpublished apps: the badge is not a link yet, so it must not look clickable */
.store.is-soon{cursor:default;opacity:.9}
.store.is-soon:hover{transform:none}
.soon-tag{
  margin-left:auto;flex:none;font-style:normal;font-family:var(--mono),ui-monospace,monospace;
  font-size:8.5px;letter-spacing:.12em;text-transform:uppercase;font-weight:700;
  padding:3px 7px;border-radius:999px;background:rgba(20,23,33,.12);color:#3A3F52;
}

/* ─── 5. In-phone feature callouts: AI photo scan + GPS attendance ───
   These live INSIDE .p-screen so they read as part of the product, not as
   floating marketing chrome, and they inherit the phone's light token set. */
.fx-card{
  display:flex;align-items:center;gap:11px;position:relative;
  padding:10px 11px;border-radius:15px;border:1px solid var(--line);
  background:var(--card);box-shadow:0 6px 16px -10px rgba(20,23,40,.3);
}
.fx-text{display:flex;flex-direction:column;gap:1px;min-width:0}
.fx-tag{font-size:8px;letter-spacing:.16em;color:var(--indigo);font-weight:700}
.fx-card b{font-size:12.5px;line-height:1.25;color:var(--ink)}
.fx-card small{font-size:10.5px;line-height:1.3;color:var(--ink-3)}

.fx-scan{background:linear-gradient(135deg,var(--indigo-soft),var(--card) 78%);border-color:#DCDEEF}
.fx-lens{
  position:relative;width:46px;height:46px;flex:none;border-radius:12px;overflow:hidden;
  background:linear-gradient(155deg,#2A2F52,#171B31);color:#AEB4E4;
  display:grid;place-items:center;
}
.fx-face{width:24px;height:26px;display:block}
.fx-bracket{position:absolute;width:9px;height:9px;border:1.5px solid var(--ochre)}
.fx-bracket.tl{top:5px;left:5px;border-right:0;border-bottom:0}
.fx-bracket.tr{top:5px;right:5px;border-left:0;border-bottom:0}
.fx-bracket.bl{bottom:5px;left:5px;border-right:0;border-top:0}
.fx-bracket.br{bottom:5px;right:5px;border-left:0;border-top:0}
.fx-sweep{
  position:absolute;left:0;right:0;height:2px;
  background:linear-gradient(90deg,transparent,#B9BEF0,transparent);
  animation:fxSweep 2.6s cubic-bezier(.5,0,.5,1) infinite;
}
@keyframes fxSweep{0%{top:12%;opacity:0}15%{opacity:1}85%{opacity:1}100%{top:88%;opacity:0}}

.fx-geo{background:linear-gradient(135deg,var(--green-soft),var(--card) 78%);border-color:#D7E6DD}
.fx-geo .fx-tag{color:var(--green)}
.fx-bell{
  width:34px;height:34px;flex:none;border-radius:11px;display:grid;place-items:center;
  background:var(--green-soft);color:var(--green);
}
.fx-bell svg{width:19px;height:19px}
.fx-ping{
  position:absolute;top:11px;right:11px;width:7px;height:7px;border-radius:50%;
  background:var(--green);
}
.fx-ping::after{
  content:"";position:absolute;inset:-4px;border-radius:50%;
  border:1.5px solid var(--green);animation:fxPing 1.9s ease-out infinite;
}
@keyframes fxPing{0%{transform:scale(.5);opacity:.9}100%{transform:scale(1.5);opacity:0}}

@media(prefers-reduced-motion:reduce){
  .fx-sweep{animation:none;top:50%}
  .fx-ping::after{animation:none;opacity:.35}
}

/* ─── 6. Header: logo mark only, no wordmark ─── */
.nav-mk{margin-right:0}
.nav-logo{gap:0}
.nav-links a.on{color:var(--indigo-pastel);font-weight:600}

/* ═══════════════ 7. MOBILE ═══════════════ */
@media(max-width:900px){
  /* hero stacks: lede, phone, then CTAs — the phone stops splitting the pitch
     from the buttons that close it */
  .hm-row{
    grid-template-columns:1fr;justify-items:center;gap:24px;
    margin-top:14px;
  }
  .hm-left,.hm-right{text-align:center;align-items:center}
  .hm-left{order:1}
  .phone-scene{order:2}
  .hm-right{order:3}
  .hm-left .lede{max-width:26em}
  .hm-title{text-shadow:0 2px 18px rgba(15,18,32,.55)}
}

@media(max-width:640px){
  .nav{gap:12px;padding:11px 15px}
  /* nav links scroll horizontally instead of wrapping into the logo */
  .nav-links{
    margin-left:auto;gap:17px;overflow-x:auto;
    -webkit-overflow-scrolling:touch;scrollbar-width:none;
    mask-image:linear-gradient(90deg,transparent 0,#000 12px,#000 calc(100% - 14px),transparent 100%);
  }
  .nav-links::-webkit-scrollbar{display:none}
  .nav-links a{white-space:nowrap;font-size:14px;padding:6px 0}
  .nav-mk{width:34px;height:34px}
  .nav-mk svg{width:20px;height:20px}

  .hero{padding-top:88px}
  .hm-title{font-size:clamp(33px,10.5vw,46px)}
  .hm-left .lede{font-size:15.5px}
  .hm-foot{font-size:9px;letter-spacing:.14em}

  /* one full-width rail for CTAs and badges — 44px+ tap targets throughout */
  .hm-right .cta-row,.hm-right .stores{width:min(310px,86vw)}
  .hm-right .btn{min-height:52px}
  .hm-right .store{min-height:56px}

  .fx-card b{font-size:12px}
  .fx-card small{font-size:10px}
}

@media(max-width:430px){
  .phone-img{width:min(268px,78vw)}
  .hm-title{font-size:clamp(30px,9.6vw,40px)}
}

/* never let a stray wide child scroll the whole page sideways on a phone */
@media(max-width:640px){
  html,body{overflow-x:hidden;max-width:100%}
  .decor{overflow:hidden}
}

/* fx cards: notifications read left-aligned, and the screen inherits centring */
.p-screen .fx-card{text-align:left}
.fx-text{text-align:left}
.fx-card b{font-size:12px}

/* ─── mobile nav on the homepage ───
   story.css:488 hides .nav-links below 900px but index.html has no hamburger to
   replace them (the subpages do, via site.css .nav-toggle), so every nav link —
   including Home — was unreachable on a phone. Bring them back as a single
   horizontally-scrollable row that shares the bar with the logo and the CTA. */
@media(max-width:900px){
  .nav{gap:14px}
  .nav-links{
    display:flex;flex:1 1 auto;min-width:0;margin-left:8px;
    gap:18px;overflow-x:auto;overscroll-behavior-x:contain;
    -webkit-overflow-scrolling:touch;scrollbar-width:none;
    mask-image:linear-gradient(90deg,#000 0,#000 calc(100% - 16px),transparent 100%);
  }
  .nav-links::-webkit-scrollbar{display:none}
  .nav-links a{white-space:nowrap;flex:none;font-size:14px;padding:7px 0}
  .nav-cta{flex:none;padding:10px 15px;font-size:14px}
}
@media(max-width:430px){
  /* the hero already carries a Book-a-demo, so the bar CTA can go and give the
     links their full width rather than squeezing both */
  .nav-cta{display:none}
  .nav-links{gap:16px}
}

/* ═══════════════════════════════════════════════════════════════════
   MOBILE REPAIR — homepage (measured at 390x844)
   ═══════════════════════════════════════════════════════════════════ */

/* --mono was referenced but never defined anywhere in story.css or site.css, so the
   declaration was invalid and .soon-tag silently inherited Instrument Sans. */
:root{--mono:"Spline Sans Mono",ui-monospace,SFMono-Regular,Menlo,monospace}

/* ─── Nav strip: "Pricing" sat 39px past the viewport, 100% invisible ───
   My earlier fix made the strip scrollable but left it 358px of content in a 304px rail,
   with only a mask fade as the hint. Tighten type and gaps so all five fit unscrolled;
   the overflow-x stays as a backstop for larger locales. */
@media(max-width:430px){
  .nav-links{gap:11px}
  .nav-links a{font-size:12.5px;padding:9px 0;letter-spacing:-.01em}
}

/* tap targets: nav links were 36.4px, the logo 34x34 */
@media(max-width:900px){
  .nav-links a{min-height:44px;display:inline-flex;align-items:center}
  .nav-logo{min-height:44px;min-width:44px;display:inline-flex;align-items:center}
}

/* ─── .fact-list labels broke mid-phrase on 15 of 16 rows ───
   The <b> is an anonymous flex item, so flex-shrink:1 squeezed "Filing-ready files" from
   the 114px it needs down to 64.6px → three lines. Stop it shrinking. */
.fact-list b{flex:none}
@media(max-width:560px){
  .fact-list li{display:block}
  .fact-list b{display:block;margin-bottom:2px}
}

/* ─── Footer links were 21.6px tall with 22px gaps ─── */
@media(max-width:900px){
  .foot-links{gap:4px 20px;flex-wrap:wrap}
  .foot-links a{min-height:44px;display:inline-flex;align-items:center}
  .foot-brand{min-height:44px}
}

/* ─── The free-tier offer was set at 9px — it's a conversion message, not a label ─── */
@media(max-width:640px){
  .hm-foot{font-size:10.5px;letter-spacing:.1em}
}

/* ─── Industry images are 1200x896 natural for a 348px slot (3.45x oversampled, 5.5MB) ───
   Real fix is a 700px WebP via srcset; until those assets exist, at least stop the phone
   decoding four full-size bitmaps at once. */
@media(max-width:560px){
  .ind-card img{content-visibility:auto}
}

/* <picture> wrapping (added for WebP srcset) inserts a DOM level between the card and the
   <img>. Direct-child selectors were rewritten to descendant selectors; this makes the
   wrapper layout-transparent as well, so flex/grid parents treat the img as their own child. */
.phone-img>picture,.ind-card>picture,.t-art>picture{display:contents}

/* width/height attributes were added to the <img>s to reserve layout space. They land as
   presentational hints, and with a definite width AND height the browser ignores
   `aspect-ratio` — which stretched the industry cards to 348x896 and the phone frame to
   278x1136. height:auto restores intrinsic/aspect-ratio sizing while keeping the CLS
   benefit of the attributes. */
.phone-img img,.ind-card img,.t-art img{height:auto}
.ind-card img{aspect-ratio:4/3;object-fit:cover}
