/* ==========================================================================
   Sift — sift-scanner.com
   Design system + page styles
   ========================================================================== */

/* ---------- Fonts ---------- */
@font-face {
  font-family: 'Bricolage Grotesque';
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url('../fonts/bricolage-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Bricolage Grotesque';
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url('../fonts/bricolage-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF,
    U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020,
    U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'DM Sans';
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url('../fonts/dmsans-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'DM Sans';
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url('../fonts/dmsans-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF,
    U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020,
    U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* ---------- Tokens ---------- */
:root {
  /* surfaces */
  --paper:      #F7F5F0;
  --paper-2:    #EFEDE5;
  --card:       #FFFFFF;
  --ink:        #0C1310;
  --ink-2:      #131E19;

  /* brand, sampled from the Sift mark */
  --brand-900:  #143024;
  --brand-700:  #22563C;
  --brand-600:  #2E6A48;
  --brand-500:  #3E8760;
  --brand-400:  #5FA97F;
  --brand-300:  #98D0AB;
  --brand-100:  #DEEEE4;

  /* score colours, taken from the app itself */
  --score-good: #09B77E;
  --score-ok:   #F59B03;
  --score-bad:  #EF3E3E;

  /* text */
  --text:       #131C17;
  --text-2:     #4C5C54;
  --text-3:     #5C6B63;
  --on-ink:     #F2F5F2;
  --on-ink-2:   #A8B8AF;
  --on-ink-3:   #7B8C83;

  --line:       rgba(19, 28, 23, 0.12);
  --line-soft:  rgba(19, 28, 23, 0.07);
  --line-ink:   rgba(242, 245, 242, 0.14);

  /* type */
  --display: 'Bricolage Grotesque', 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --sans: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* rhythm */
  --gut: clamp(20px, 4.2vw, 56px);
  --wrap: 1240px;
  --wrap-narrow: 820px;
  --sec-y: clamp(96px, 13vh, 168px);

  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 24px;
  --r-xl: 34px;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-io: cubic-bezier(0.65, 0, 0.35, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scrollbar-gutter: stable;
}
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }

body {
  font-family: var(--sans);
  font-size: clamp(1rem, 0.94rem + 0.24vw, 1.0625rem);
  line-height: 1.62;
  color: var(--text);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  font-synthesis-weight: none;
}

img, svg, video { display: block; max-width: 100%; height: auto; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: inherit; }

::selection { background: var(--brand-300); color: var(--brand-900); }

:focus-visible {
  outline: 2px solid var(--brand-500);
  outline-offset: 3px;
  border-radius: 4px;
}
.on-ink :focus-visible { outline-color: var(--brand-300); }

/* ---------- Page background, cross fades between section themes ---------- */
#page-bg {
  position: fixed;
  inset: 0;
  z-index: -2;
  background: var(--paper);
  transition: background-color 120ms linear;
}
#grain {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.105;
  background-image: url('../img/grain.webp');
  background-size: 128px 128px;
  background-repeat: repeat;
  mix-blend-mode: multiply;
  transition: opacity 400ms linear;
}
.theme-ink #grain { mix-blend-mode: screen; opacity: 0.055; }

/* ---------- Layout ---------- */
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gut); }
.wrap-narrow { width: 100%; max-width: var(--wrap-narrow); margin-inline: auto; padding-inline: var(--gut); }

section { position: relative; scroll-margin-top: 84px; }
.sec { padding-block: var(--sec-y); }

.on-ink { color: var(--on-ink); }
.on-ink h1, .on-ink h2, .on-ink h3 { color: var(--on-ink); }
.on-ink p { color: var(--on-ink-2); }

.skip {
  position: absolute; left: -9999px; top: 0;
  background: var(--ink); color: var(--on-ink);
  padding: 12px 18px; border-radius: 0 0 var(--r-sm) 0; z-index: 999;
}
.skip:focus { left: 0; }

/* ---------- Type ---------- */
h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 700;
  letter-spacing: -0.032em;
  line-height: 0.98;
  text-wrap: balance;
  color: var(--text);
}

.h-display {
  font-size: clamp(2.65rem, 1.5rem + 3.9vw, 5.3rem);
  font-variation-settings: 'opsz' 96, 'wght' 700;
  letter-spacing: -0.042em;
  line-height: 0.94;
}
h2, .h2 {
  font-size: clamp(2rem, 1.2rem + 3.4vw, 3.7rem);
  font-variation-settings: 'opsz' 72, 'wght' 700;
  letter-spacing: -0.038em;
  line-height: 0.98;
}
h3, .h3 {
  font-size: clamp(1.25rem, 1.05rem + 0.85vw, 1.7rem);
  font-variation-settings: 'opsz' 32, 'wght' 600;
  letter-spacing: -0.026em;
  line-height: 1.14;
}
h4, .h4 {
  font-size: clamp(1.05rem, 1rem + 0.3vw, 1.2rem);
  font-variation-settings: 'opsz' 24, 'wght' 600;
  letter-spacing: -0.018em;
  line-height: 1.25;
}

.lead {
  font-size: clamp(1.09rem, 1rem + 0.55vw, 1.42rem);
  line-height: 1.5;
  color: var(--text-2);
  text-wrap: pretty;
  max-width: 34ch;
}
.on-ink .lead { color: var(--on-ink-2); }
.lead-wide { max-width: 52ch; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.17em;
  text-transform: uppercase;
  color: var(--brand-600);
  margin-bottom: 22px;
}
.on-ink .eyebrow { color: var(--brand-300); }
.eyebrow::before {
  content: ''; width: 22px; height: 1px; background: currentColor; opacity: 0.55;
}

.body-lg { font-size: 1.08rem; line-height: 1.66; color: var(--text-2); text-wrap: pretty; }
.muted { color: var(--text-3); }
.on-ink .muted { color: var(--on-ink-3); }
.small { font-size: 0.86rem; line-height: 1.55; }
.tiny { font-size: 0.775rem; line-height: 1.5; letter-spacing: 0.01em; }

.sec-head { max-width: 46ch; margin-bottom: clamp(48px, 6vw, 84px); }
.sec-head .lead { max-width: 46ch; margin-top: 24px; }
.sec-head h2 + .lead, .sec-head .h-display + .lead { margin-top: 26px; }

/* ---------- Buttons ---------- */
.btn {
  --btn-bg: var(--ink);
  --btn-fg: #fff;
  position: relative;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 15px 26px;
  border: 0; border-radius: 100px;
  background: var(--btn-bg); color: var(--btn-fg);
  font-weight: 600; font-size: 0.98rem; letter-spacing: -0.01em;
  text-decoration: none; cursor: pointer;
  overflow: hidden; isolation: isolate;
  transition: transform 420ms var(--ease), box-shadow 420ms var(--ease), background-color 300ms var(--ease);
  box-shadow: 0 1px 2px rgba(12,19,16,.18), 0 8px 22px -10px rgba(12,19,16,.5);
}
.btn::after {
  content: '';
  position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(120px 120px at var(--mx, 50%) var(--my, 50%), rgba(255,255,255,.22), transparent 62%);
  opacity: 0; transition: opacity 320ms var(--ease);
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 2px 4px rgba(12,19,16,.2), 0 18px 34px -14px rgba(12,19,16,.55); }
.btn:hover::after { opacity: 1; }
.btn:active { transform: translateY(0); }
.btn svg { flex: none; }

.btn-brand { --btn-bg: var(--brand-600); box-shadow: 0 1px 2px rgba(20,48,36,.2), 0 10px 26px -12px rgba(46,106,72,.75); }
.btn-brand:hover { background: var(--brand-700); }

.btn-ghost {
  --btn-bg: transparent; --btn-fg: var(--text);
  border: 1px solid var(--line); box-shadow: none;
  padding: 14px 24px;
}
.btn-ghost:hover { background: rgba(19,28,23,.05); box-shadow: none; transform: translateY(-2px); }
.on-ink .btn-ghost { --btn-fg: var(--on-ink); border-color: var(--line-ink); }
.on-ink .btn-ghost:hover { background: rgba(255,255,255,.07); }

.btn-light { --btn-bg: #fff; --btn-fg: var(--ink); }

/* link with a drawn underline */
.link {
  position: relative; text-decoration: none; font-weight: 500;
  color: var(--brand-700); white-space: nowrap;
}
.on-ink .link { color: var(--brand-300); }
.link::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: -2px; height: 1px;
  background: currentColor; transform-origin: right; transform: scaleX(1);
  transition: transform 380ms var(--ease);
}
.link:hover::after { transform-origin: left; animation: link-draw 520ms var(--ease); }
@keyframes link-draw {
  0% { transform: scaleX(1); transform-origin: right; }
  49% { transform: scaleX(0); transform-origin: right; }
  50% { transform: scaleX(0); transform-origin: left; }
  100% { transform: scaleX(1); transform-origin: left; }
}
.link .arw { display: inline-block; transition: transform 340ms var(--ease); }
.link:hover .arw { transform: translateX(4px); }

/* ---------- Nav ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 250;
  height: 68px;
  display: flex; align-items: center;
  transition: height 420ms var(--ease), background-color 420ms var(--ease), box-shadow 420ms var(--ease), backdrop-filter 300ms;
}
.nav::before {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background: color-mix(in srgb, var(--paper) 78%, transparent);
  -webkit-backdrop-filter: blur(18px) saturate(1.4);
  backdrop-filter: blur(18px) saturate(1.4);
  border-bottom: 1px solid transparent;
  opacity: 0; transition: opacity 420ms var(--ease), border-color 420ms var(--ease);
}
.nav.is-stuck { height: 60px; }
.nav.is-stuck::before { opacity: 1; border-bottom-color: var(--line-soft); }
.nav.on-dark::before { background: color-mix(in srgb, var(--ink) 74%, transparent); }
.nav.on-dark.is-stuck::before { border-bottom-color: var(--line-ink); }

.nav-inner {
  width: 100%; max-width: var(--wrap); margin-inline: auto;
  padding-inline: var(--gut);
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.brand { display: inline-flex; align-items: center; text-decoration: none; }
.brand img { height: 24px; width: auto; transition: opacity 300ms var(--ease); }
.brand:hover img { opacity: 0.72; }
.nav.on-dark .brand img { filter: brightness(1.75) saturate(0.85); }

.nav-links { display: flex; align-items: center; gap: clamp(14px, 2vw, 30px); list-style: none; }
.nav-links a {
  position: relative;
  font-size: 0.9rem; font-weight: 500; letter-spacing: -0.005em;
  color: var(--text-2); text-decoration: none;
  padding: 6px 0;
  transition: color 260ms var(--ease);
}
.nav.on-dark .nav-links a { color: var(--on-ink-2); }
.nav-links a::after {
  content: ''; position: absolute; left: 0; bottom: 0; height: 1.5px; width: 100%;
  background: currentColor; transform: scaleX(0); transform-origin: right;
  transition: transform 380ms var(--ease);
}
.nav-links a:hover, .nav-links a[aria-current="true"] { color: var(--text); }
.nav.on-dark .nav-links a:hover, .nav.on-dark .nav-links a[aria-current="true"] { color: var(--on-ink); }
.nav-links a:hover::after, .nav-links a[aria-current="true"]::after { transform: scaleX(1); transform-origin: left; }

.nav-cta { display: flex; align-items: center; gap: 12px; }
.nav .btn { padding: 11px 20px; font-size: 0.88rem; }
.nav.on-dark .btn { --btn-bg: #fff; --btn-fg: var(--ink); }

.burger {
  display: none;
  width: 42px; height: 42px; border: 0; background: none; cursor: pointer;
  border-radius: 12px; position: relative; z-index: 210;
}
.burger span {
  display: block; width: 20px; height: 1.6px; margin: 0 auto;
  background: var(--text); border-radius: 2px;
  transition: transform 420ms var(--ease), opacity 220ms var(--ease), background-color 300ms;
}
.burger span + span { margin-top: 5px; }
.nav.on-dark .burger span { background: var(--on-ink); }
.burger[aria-expanded="true"] span { background: var(--on-ink); }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.6px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; transform: scaleX(0.2); }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6.6px) rotate(-45deg); }

.drawer {
  position: fixed; inset: 0; z-index: 200;
  background: var(--ink);
  display: flex; flex-direction: column; justify-content: center;
  padding: 104px var(--gut) 40px;
  overflow-y: auto; overscroll-behavior: contain;
  clip-path: circle(0% at calc(100% - 42px) 34px);
  transition: clip-path 720ms var(--ease);
  visibility: hidden;
}
.drawer.open { clip-path: circle(150% at calc(100% - 42px) 34px); visibility: visible; }
body.menu-open .nav::before { opacity: 0; }
body.menu-open .brand img { filter: brightness(1.75) saturate(0.85); }
.drawer ul { list-style: none; display: flex; flex-direction: column; gap: 4px; }
.drawer > nav a {
  display: block; padding: 9px 0;
  font-family: var(--display);
  font-size: clamp(1.75rem, 7.2vw, 2.7rem);
  font-variation-settings: 'opsz' 48, 'wght' 600;
  letter-spacing: -0.035em;
  color: var(--on-ink); text-decoration: none;
  opacity: 0; transform: translateY(18px);
  transition: opacity 520ms var(--ease), transform 520ms var(--ease), color 240ms;
}
.drawer.open a { opacity: 1; transform: none; }
.drawer.open li:nth-child(1) a { transition-delay: 140ms; }
.drawer.open li:nth-child(2) a { transition-delay: 190ms; }
.drawer.open li:nth-child(3) a { transition-delay: 240ms; }
.drawer.open li:nth-child(4) a { transition-delay: 290ms; }
.drawer.open li:nth-child(5) a { transition-delay: 340ms; }
.drawer.open li:nth-child(6) a { transition-delay: 390ms; }
.drawer a:hover { color: var(--brand-300); }
.drawer-foot {
  margin-top: 40px; display: flex; flex-wrap: wrap; gap: 16px 26px; align-items: center;
  opacity: 0; transition: opacity 520ms var(--ease) 440ms;
}
.drawer.open .drawer-foot { opacity: 1; }
.drawer-foot .btn { flex: 0 0 auto; width: auto; white-space: nowrap; }
.drawer-foot .link { flex: 0 0 auto; }

/* ---------- Reveals ---------- */
[data-reveal] {
  opacity: 0;
  transform: translate3d(0, 26px, 0);
  transition: opacity 900ms var(--ease), transform 900ms var(--ease);
  transition-delay: var(--d, 0ms);
}
[data-reveal="fade"] { transform: none; }
[data-reveal="left"] { transform: translate3d(-28px, 0, 0); }
[data-reveal="right"] { transform: translate3d(28px, 0, 0); }
[data-reveal="scale"] { transform: translate3d(0, 34px, 0) scale(0.965); }
.is-in[data-reveal] { opacity: 1; transform: none; }

/* line by line headline reveal */
.rl { display: block; overflow: hidden; }
.rl > span {
  display: block;
  transform: translateY(105%);
  transition: transform 1050ms var(--ease);
  transition-delay: var(--d, 0ms);
}
.is-in .rl > span, .rl.is-in > span { transform: none; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex; align-items: center;
  padding-block: 128px 72px;
  overflow: hidden;
}
.hero-glow {
  position: absolute; z-index: 0; pointer-events: none;
  width: min(1100px, 120vw); aspect-ratio: 1;
  top: -34%; left: 50%; translate: -50% 0;
  background:
    radial-gradient(closest-side, rgba(94,169,127,.24), transparent 72%),
    radial-gradient(closest-side, rgba(46,106,72,.14), transparent 78%);
  filter: blur(10px);
}
.hero-grid {
  position: relative; z-index: 1;
  width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gut);
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.98fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}
.hero-copy { max-width: 620px; }
.hero h1 { margin-bottom: 26px; }
.hero h1 em {
  font-style: normal;
  color: var(--brand-600);
}
.hero .lead { margin-bottom: 34px; max-width: 30ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-bottom: 34px; }

.pill-store {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 7px 15px 7px 9px;
  border: 1px solid var(--line); border-radius: 100px;
  background: rgba(255,255,255,.6);
  font-size: 0.775rem; font-weight: 500; letter-spacing: 0.01em; color: var(--text-2);
  margin-bottom: 28px;
}
.pill-store img { width: 22px; height: 22px; border-radius: 6px; }
.dot-live {
  width: 6px; height: 6px; border-radius: 50%; background: var(--score-good);
  box-shadow: 0 0 0 0 rgba(9,183,126,.6);
  animation: pulse 2.6s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(9,183,126,.55); }
  70% { box-shadow: 0 0 0 8px rgba(9,183,126,0); }
  100% { box-shadow: 0 0 0 0 rgba(9,183,126,0); }
}

.trust-row {
  display: flex; flex-wrap: wrap; gap: 10px 22px; align-items: center;
  padding-top: 26px; border-top: 1px solid var(--line-soft);
}
.trust-row span {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.815rem; font-weight: 500; color: var(--text-2); letter-spacing: 0.005em;
}
.trust-row svg { color: var(--brand-500); flex: none; }

/* hero device */
.stage { position: relative; display: grid; place-items: center; }
.device {
  position: relative;
  width: min(100%, 460px);
  filter: drop-shadow(0 4px 8px rgba(12,19,16,.08)) drop-shadow(0 48px 70px rgba(12,19,16,.22));
  will-change: transform;
}
/* The source screens are cropped flat at the foot of the handset.
   A short fade turns that hard edge into a deliberate one. */
.device img {
  width: 100%; height: auto;
  -webkit-mask-image: linear-gradient(to bottom, #000 89%, transparent 100%);
  mask-image: linear-gradient(to bottom, #000 89%, transparent 100%);
}

.scan {
  position: absolute; left: 4%; right: 4%; top: 0; height: 34%;
  pointer-events: none; border-radius: 40px; overflow: hidden;
  mask-image: linear-gradient(to bottom, transparent, #000 22%, #000 78%, transparent);
}
.scan i {
  position: absolute; left: 0; right: 0; height: 100%;
  background: linear-gradient(to bottom, rgba(9,183,126,0) 0%, rgba(9,183,126,.16) 55%, rgba(9,183,126,.55) 94%, rgba(255,255,255,.85) 100%);
  animation: sweep 4.6s cubic-bezier(.55,0,.2,1) infinite;
}
@keyframes sweep {
  0%   { transform: translateY(-105%); opacity: 0; }
  12%  { opacity: 1; }
  62%  { transform: translateY(300%); opacity: 1; }
  74%  { transform: translateY(300%); opacity: 0; }
  100% { transform: translateY(-105%); opacity: 0; }
}

.tag {
  position: absolute;
  display: inline-flex; align-items: center; gap: 9px;
  padding: 9px 14px;
  background: rgba(255,255,255,.86);
  -webkit-backdrop-filter: blur(14px) saturate(1.5);
  backdrop-filter: blur(14px) saturate(1.5);
  border: 1px solid rgba(255,255,255,.9);
  border-radius: 100px;
  box-shadow: 0 2px 4px rgba(12,19,16,.06), 0 16px 32px -14px rgba(12,19,16,.34);
  font-size: 0.775rem; font-weight: 600; letter-spacing: -0.005em; color: var(--text);
  white-space: nowrap;
  will-change: transform;
}
.tag .src { width: 15px; height: 15px; flex: none; color: var(--text-3); }
.tag-1 { top: 12%;  left: -6%; }
.tag-2 { top: 40%;  right: -8%; }
.tag-3 { bottom: 21%; left: -10%; }
.tag em {
  font-style: normal; font-weight: 700; font-family: var(--display);
  font-variation-settings: 'opsz' 20, 'wght' 700; color: var(--score-good);
}

.scroll-cue {
  transition: opacity 500ms var(--ease);
  position: absolute; bottom: 26px; left: 50%; translate: -50% 0; z-index: 2;
  display: inline-flex; flex-direction: column; align-items: center; gap: 9px;
  font-size: 0.68rem; letter-spacing: 0.19em; text-transform: uppercase; color: var(--text-3);
}
.scroll-cue i {
  display: block; width: 1px; height: 38px; background: var(--line);
  position: relative; overflow: hidden;
}
.scroll-cue i::after {
  content: ''; position: absolute; inset: 0; background: var(--brand-500);
  animation: cue 2.4s var(--ease-io) infinite;
}
@keyframes cue {
  0% { transform: translateY(-100%); }
  55%, 100% { transform: translateY(100%); }
}

body.scrolled .scroll-cue { opacity: 0; pointer-events: none; }

/* ---------- Problem, dark with photography ---------- */
.problem { overflow: hidden; }
.problem-photo {
  position: absolute; inset: 0; z-index: 0; overflow: hidden;
}
.problem-photo img {
  width: 100%; height: 118%; object-fit: cover; object-position: center 40%;
  opacity: 0.34;
  will-change: transform;
}
.problem-photo::after {
  content: ''; position: absolute; inset: 0;
  background:
    linear-gradient(to bottom, var(--ink) 0%, rgba(12,19,16,.55) 26%, rgba(12,19,16,.72) 68%, var(--ink) 100%),
    radial-gradient(80% 60% at 22% 46%, rgba(12,19,16,.2), rgba(12,19,16,.86));
}
.problem .wrap { position: relative; z-index: 1; }
.problem-grid {
  display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr);
  gap: clamp(32px, 6vw, 96px); align-items: end;
}
.pull {
  font-family: var(--display);
  font-size: clamp(1.35rem, 0.9rem + 1.7vw, 2.05rem);
  font-variation-settings: 'opsz' 40, 'wght' 500;
  letter-spacing: -0.028em; line-height: 1.18;
  color: var(--on-ink);
  text-wrap: pretty;
}
.pull b { font-variation-settings: 'opsz' 40, 'wght' 700; color: #fff; font-weight: 700; }

/* ---------- Product walkthrough, alternating rows ---------- */
.rows { display: flex; flex-direction: column; gap: clamp(56px, 8vh, 104px); }
.row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(28px, 5vw, 88px);
  align-items: center;
}
.row:nth-child(even) .row-media { order: -1; }
.row-copy { max-width: 46ch; }
.row-copy .num {
  display: inline-block;
  font-family: var(--display);
  font-variation-settings: 'opsz' 24, 'wght' 700;
  font-size: 0.72rem; letter-spacing: 0.12em;
  color: var(--brand-700);
  padding: 5px 11px; border: 1px solid var(--brand-100); border-radius: 100px;
  background: rgba(255,255,255,.65);
  margin-bottom: 20px;
}
.row-copy h3 { margin-bottom: 14px; }
.row-copy p { color: var(--text-2); }
.row-media { position: relative; display: grid; place-items: center; }
.row-media .device { width: min(100%, 340px); }

.walk-caption {
  display: inline-flex; align-items: center; gap: 12px; flex-wrap: wrap;
  margin-top: 26px; padding: 10px 16px;
  border: 1px solid var(--line); border-radius: 100px;
  background: rgba(255,255,255,.66);
  font-size: 0.8rem; color: var(--text-2);
}
.walk-caption b { color: var(--text); font-weight: 600; }

/* how it works, connected steps */
.flow { position: relative; }
.flow::before {
  content: ''; position: absolute; left: 0; right: 0; top: 34px; height: 1px;
  background: var(--line);
}
.flow::after {
  content: ''; position: absolute; left: 0; top: 34px; height: 1px;
  background: var(--brand-500);
  width: 100%; transform: scaleX(0); transform-origin: left;
  transition: transform 1900ms var(--ease);
}
.flow.is-in::after { transform: scaleX(1); }
.flow-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: clamp(20px, 3vw, 44px); }
.flow-step { position: relative; padding-top: 0; }
.flow-dot {
  width: 68px; height: 68px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--paper); border: 1px solid var(--line);
  font-family: var(--display); font-variation-settings: 'opsz' 32, 'wght' 700;
  font-size: 1.02rem; letter-spacing: -0.01em; color: var(--brand-700);
  margin-bottom: 26px;
  transition: border-color 600ms var(--ease), color 600ms var(--ease), background-color 600ms var(--ease);
}
.is-in .flow-dot { border-color: var(--brand-400); }
.flow-step .k {
  font-size: 0.68rem; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--text-3); font-weight: 600; margin-bottom: 10px;
}
.flow-step h3, .flow-step .h3 { margin-bottom: 12px; }
.flow-step p { color: var(--text-2); font-size: 0.97rem; }
.chip-score {
  display: inline-flex; align-items: center; gap: 7px;
  font-family: var(--display); font-variation-settings: 'opsz' 20, 'wght' 700;
  font-size: 0.85rem; letter-spacing: -0.01em;
}
.chip-score::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.s-good { color: #067953; }
.s-ok   { color: #8A5602; }
.s-bad  { color: #B4241C; }

.shots-rail {
  display: grid; grid-auto-flow: column; gap: 18px;
  overflow-x: auto; scroll-snap-type: x mandatory;
  padding-block: 6px 22px; margin-inline: calc(var(--gut) * -1); padding-inline: var(--gut);
  scrollbar-width: none;
}
.shots-rail::-webkit-scrollbar { display: none; }
.shots-rail > figure { scroll-snap-align: center; width: min(72vw, 300px); }
.shots-rail figcaption { margin-top: 14px; font-size: 0.82rem; color: var(--text-2); }

/* ---------- Cards / grids ---------- */
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: clamp(16px, 2vw, 26px); }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: clamp(20px, 3vw, 48px); }

.card {
  position: relative;
  padding: clamp(24px, 2.6vw, 34px);
  background: var(--card);
  border: 1px solid var(--line-soft);
  border-radius: var(--r-lg);
  box-shadow: 0 1px 2px rgba(12,19,16,.03), 0 18px 34px -26px rgba(12,19,16,.32);
  transition: transform 520ms var(--ease), box-shadow 520ms var(--ease);
}
.card:hover { transform: translateY(-3px); box-shadow: 0 2px 4px rgba(12,19,16,.05), 0 28px 48px -28px rgba(12,19,16,.38); }
.on-ink .card {
  background: rgba(255,255,255,.045); border-color: var(--line-ink); box-shadow: none;
}
.on-ink .card:hover { background: rgba(255,255,255,.07); box-shadow: none; }

.step-card { display: flex; flex-direction: column; gap: 14px; }
.step-n {
  font-family: var(--display); font-variation-settings: 'opsz' 60, 'wght' 700;
  font-size: 2.6rem; line-height: 1; letter-spacing: -0.05em;
  color: var(--brand-300);
}
.on-ink .step-n { color: var(--brand-500); }
.step-card .k {
  font-size: 0.7rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--text-3); font-weight: 600;
}
.on-ink .step-card .k { color: var(--on-ink-3); }

/* in / out lists */
.io-col h3, .io-col .h3 { margin-bottom: 6px; }
.io-list { list-style: none; display: flex; flex-direction: column; gap: 2px; margin-top: 26px; }
.io-list li {
  display: grid; grid-template-columns: 26px 1fr; gap: 14px;
  padding: 20px 0; border-top: 1px solid var(--line-ink);
}
.io-list li:last-child { border-bottom: 1px solid var(--line-ink); }
.io-list .ico { margin-top: 3px; }
.io-list b { display: block; font-weight: 600; color: var(--on-ink); margin-bottom: 3px; font-size: 1.02rem; }
.io-list p { font-size: 0.94rem; color: var(--on-ink-2); margin: 0; }
.ico-in  { color: var(--score-good); }
.ico-out { color: var(--score-bad); }

/* ---------- Score anatomy ---------- */
.score-grid {
  display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(32px, 5vw, 76px); align-items: center;
}
.meter {
  position: relative; width: min(100%, 300px); aspect-ratio: 1; margin-inline: auto;
  display: grid; place-items: center;
}
.meter svg { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); }
.meter .track { fill: none; stroke: var(--line); stroke-width: 10; }
.meter .val {
  fill: none; stroke: var(--score-good); stroke-width: 10; stroke-linecap: round;
  stroke-dasharray: var(--circ); stroke-dashoffset: var(--circ);
  transition: stroke-dashoffset 1800ms var(--ease);
}
.meter.is-in .val { stroke-dashoffset: var(--target); }
.meter-num {
  font-family: var(--display); font-variation-settings: 'opsz' 96, 'wght' 700;
  font-size: clamp(3.4rem, 8vw, 4.6rem); line-height: 1; letter-spacing: -0.05em;
  font-variant-numeric: tabular-nums;
}
.meter-lab { font-size: 0.72rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--text-3); margin-top: 8px; }

.inputs { list-style: none; display: flex; flex-direction: column; gap: 0; }
.inputs li { padding: 22px 0; border-top: 1px solid var(--line); }
.inputs li:last-child { border-bottom: 1px solid var(--line); }
.inputs .row { display: flex; align-items: baseline; justify-content: space-between; gap: 18px; }
.inputs b { font-weight: 600; font-size: 1.05rem; }
.inputs p { color: var(--text-2); font-size: 0.94rem; margin-top: 5px; max-width: 52ch; }
.inputs .tagn {
  font-size: 0.7rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--brand-600); font-weight: 600; white-space: nowrap;
}

.weights { display: flex; flex-direction: column; gap: 18px; }
.weight { display: grid; gap: 8px; }
.weight .wl { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; font-size: 0.92rem; }
.weight .wl b { font-weight: 600; }
.weight .wl span { color: var(--text-3); font-size: 0.82rem; }
.bar { height: 6px; border-radius: 100px; background: var(--line); overflow: hidden; }
.bar i {
  display: block; height: 100%; border-radius: 100px; background: var(--brand-500);
  transform: scaleX(0); transform-origin: left;
  transition: transform 1500ms var(--ease); transition-delay: var(--d, 0ms);
}
.is-in .bar i { transform: scaleX(var(--w, 1)); }

/* honesty block */
.limits {
  border: 1px solid var(--line); border-radius: var(--r-xl);
  padding: clamp(28px, 4vw, 54px);
  background:
    linear-gradient(180deg, rgba(255,255,255,.7), rgba(255,255,255,.35));
}
.on-ink .limits {
  border-color: var(--line-ink);
  background: linear-gradient(180deg, rgba(255,255,255,.055), rgba(255,255,255,.02));
}
.on-ink .no-list li { border-bottom-color: var(--line-ink); }
.no-list { list-style: none; display: grid; gap: 2px; }
.no-list li {
  display: grid; grid-template-columns: 22px 1fr; gap: 14px; align-items: start;
  padding: 16px 0; border-bottom: 1px solid var(--line-soft);
  font-size: 1rem;
}
.no-list li:last-child { border-bottom: 0; }
.no-list svg { margin-top: 4px; color: var(--score-bad); flex: none; }
.yes-list svg { color: var(--brand-500); }

/* ---------- FAQ ---------- */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 26px 0;
  font-family: var(--display); font-variation-settings: 'opsz' 28, 'wght' 600;
  font-size: clamp(1.02rem, 0.95rem + 0.35vw, 1.22rem); letter-spacing: -0.022em;
  transition: color 260ms var(--ease);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--brand-700); }
.faq .plus { position: relative; width: 18px; height: 18px; flex: none; }
.faq .plus::before, .faq .plus::after {
  content: ''; position: absolute; inset: 50% 0 auto 0; height: 1.5px;
  background: currentColor; border-radius: 2px;
  transition: transform 460ms var(--ease), opacity 300ms var(--ease);
}
.faq .plus::after { transform: rotate(90deg); }
.faq details[open] .plus::after { transform: rotate(0deg); opacity: 0; }
.faq .ans { overflow: hidden; }
.faq .ans-in { padding: 0 0 28px; max-width: 68ch; color: var(--text-2); }
.faq .ans-in p + p { margin-top: 12px; }

/* ---------- CTA + footer ---------- */
.cta-final { text-align: center; }
.cta-final .h-display { margin-bottom: 26px; }
.cta-final .lead { margin-inline: auto; max-width: 44ch; }
.cta-icon {
  width: 76px; height: 76px; border-radius: 20px; margin: 0 auto 30px;
  box-shadow: 0 10px 30px -12px rgba(0,0,0,.6);
}

.support-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: clamp(18px, 2.4vw, 28px); }

footer {
  padding-block: clamp(56px, 7vw, 88px) 40px;
  border-top: 1px solid var(--line-ink);
}
.foot-grid {
  display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr));
  gap: clamp(28px, 4vw, 56px);
  margin-bottom: 56px;
}
footer .foot-h {
  font-family: var(--sans); font-size: 0.7rem; font-weight: 600;
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--on-ink-3);
  margin-bottom: 18px;
}
footer ul { list-style: none; display: grid; gap: 11px; }
footer a { color: var(--on-ink-2); text-decoration: none; font-size: 0.93rem; transition: color 240ms var(--ease); }
footer a:hover { color: var(--on-ink); }
.foot-bottom {
  display: flex; flex-wrap: wrap; gap: 14px 28px; align-items: center; justify-content: space-between;
  padding-top: 28px; border-top: 1px solid var(--line-ink);
  font-size: 0.82rem; color: var(--on-ink-3);
}
.foot-logo { height: 22px; width: auto; filter: brightness(1.75) saturate(0.85); margin-bottom: 18px; }

/* ---------- Sub page hero ---------- */
.page-hero { padding-block: 168px clamp(56px, 7vw, 92px); }
.page-hero .h-display { font-size: clamp(2.5rem, 1.4rem + 5.2vw, 5rem); }
.crumb { font-size: 0.8rem; color: var(--text-3); margin-bottom: 26px; }
.crumb a { text-decoration: none; }
.crumb a:hover { color: var(--text); }

.prose > * + * { margin-top: 22px; }
.prose h3 { margin-top: 52px; }
.prose p { color: var(--text-2); max-width: 68ch; }
.prose .kicker {
  font-size: 0.7rem; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--brand-600); font-weight: 600; margin-top: 56px;
}
.next-link {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 30px 0; margin-top: 64px;
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  text-decoration: none;
  font-family: var(--display); font-variation-settings: 'opsz' 40, 'wght' 600;
  font-size: clamp(1.2rem, 1rem + 1.2vw, 1.9rem); letter-spacing: -0.03em;
  transition: color 300ms var(--ease);
}
.next-link:hover { color: var(--brand-700); }
.next-link .arw { transition: transform 420ms var(--ease); }
.next-link:hover .arw { transform: translateX(8px); }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .hero-grid { grid-template-columns: 1fr; gap: 48px; }
  .hero { min-height: auto; padding-block: 118px 64px; }
  .hero-copy { max-width: none; }
  .hero .lead { max-width: 40ch; }
  .stage { order: 2; }
  .device { width: min(78%, 380px); }
  .tag-1 { left: -2%; }
  .tag-2 { right: -2%; }
  .tag-3 { left: -4%; }
  .scroll-cue { display: none; }
  .score-grid { grid-template-columns: 1fr; }
  .problem-grid { grid-template-columns: 1fr; gap: 32px; }
  .row { grid-template-columns: 1fr; gap: 34px; }
  .row .row-media, .row:nth-child(even) .row-media { order: -1; }
  .row-copy { max-width: none; }
  .flow-grid { grid-template-columns: 1fr; gap: 40px; }
  .flow::before, .flow::after { display: none; }
}

@media (max-width: 860px) {
  .nav-links, .nav-cta .btn { display: none; }
  .burger { display: block; }
  .grid-3 { grid-template-columns: 1fr; }
  .grid-2, .support-grid { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
}

@media (max-width: 560px) {
  :root { --sec-y: clamp(72px, 11vh, 110px); }
  .device { width: min(84%, 320px); }
  .tag { font-size: 0.7rem; padding: 7px 11px; }
  .tag-2 { right: -6%; }
  .foot-grid { grid-template-columns: 1fr; gap: 34px; }
  .btn { width: 100%; }
  .hero-actions { gap: 10px; }
  .nav .btn { width: auto; }
  .drawer .btn { width: auto; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  [data-reveal] { opacity: 1 !important; transform: none !important; }
  .rl > span { transform: none !important; }
  .bar i { transform: scaleX(var(--w, 1)) !important; }
  .meter .val { stroke-dashoffset: var(--target) !important; }
  .scan, .scroll-cue i::after, .dot-live { display: none; }
  .problem-photo img { transform: none !important; }
}
