/* ============================================================
   KRIKDEX — shared design system
   "Daylight": bright paper ground, blue-slate ink, one dark
   moment per page (the footer). Each app accents its own
   section with its own colour; there is no studio gold.
   Type: Fraunces (display, soft + wonk axes) · Golos Text (body)
   ============================================================ */

:root {
  /* ---- daylight ground ---- */
  --paper:     #FBFAF7;
  --paper-2:   #EFEDE6;
  --card:      #FFFFFF;

  /* ---- ink ---- */
  --ink:       #16202A;
  --ink-mut:   #4A5763;   /* body copy — 7.2:1 on paper */
  --ink-soft:  #5F6B78;   /* tertiary; 5.3:1 on paper */

  /* ---- rules ---- */
  --line:      rgba(22,32,42,.13);
  --line-soft: rgba(22,32,42,.07);

  /* ---- the one dark moment ---- */
  --dark:      #16202A;
  --on-dark:   #EDEFF1;
  --on-dark-mut: rgba(237,239,241,.62);
  --line-d:    rgba(255,255,255,.13);

  /* ---- studio ---- */
  --marine:    #0F5661;   /* 8.1:1 on paper */
  --marine-hi: #17747F;
  --sun:       #F0A92E;   /* non-text only: marks, rules, focus */

  /* ---- per app: hue for fills, -ink for text, -tint for washes ---- */
  --labs:          #1E948C;
  --labs-ink:      #0F5F59;
  --scripts:       #1E6FB2;
  --scripts-ink:   #175A91;
  --stockman:      #3F9F52;
  --stockman-ink:  #2A6B38;
  --practiceone:      #1D4E8F;
  --practiceone-ink:  #1D4E8F;
  --fona:      #187885;
  --fona-ink:  #13606B;

  /* ---- type ---- */
  --f-display: "Fraunces", Georgia, "Times New Roman", serif;
  --f-body: "Golos Text", ui-sans-serif, system-ui, -apple-system, sans-serif;

  /* ---- spacing scale ---- */
  --s1: 8px;  --s2: 12px; --s3: 16px; --s4: 24px;
  --s5: 32px; --s6: 48px; --s7: 64px; --s8: 96px;

  /* ---- shape + motion ---- */
  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 24px;
  --r-pill: 999px;
  --ease: cubic-bezier(.22,1,.36,1);
  --ease-spring: cubic-bezier(.34,1.56,.64,1);
  --lift: 0 18px 38px -24px rgba(22,32,42,.30), 0 4px 12px -8px rgba(22,32,42,.16);
  --lift-hi: 0 30px 60px -30px rgba(22,32,42,.38), 0 8px 20px -12px rgba(22,32,42,.18);
  --maxw: 1160px;
}

/* ---------- reset ---------- */
*,*::before,*::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  font-family: var(--f-body);
  font-size: 18px;
  line-height: 1.6;
  color: var(--ink-mut);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; background: none; border: none; }
:focus-visible { outline: 2px solid var(--marine); outline-offset: 3px; border-radius: 4px; }

/* ---------- paper tooth ---------- */
.grain {
  position: fixed; inset: 0; z-index: 1000; pointer-events: none;
  opacity: .028; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- layout ---------- */
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: 26px; }
.section { padding-block: clamp(56px, 7.5vw, 104px); }
.center { text-align: center; }
.light { background: var(--paper); color: var(--ink); }
.light-2 { background: var(--paper-2); }
.ruled { border-top: 1px solid var(--line-soft); }
section.light-2 + section.light-2,
section.light:not(.light-2) + section.light:not(.light-2) { border-top: 1px solid var(--line-soft); }

/* ---------- type ---------- */
h1,h2,h3,h4 {
  font-family: var(--f-display);
  text-wrap: balance;
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -.018em;
  color: var(--ink);
  font-variation-settings: "SOFT" 50, "WONK" 1, "opsz" 40;
}
.display {
  font-family: var(--f-display);
  font-weight: 600;
  line-height: 1.04;
  letter-spacing: -.022em;
  color: var(--ink);
  font-variation-settings: "SOFT" 60, "WONK" 1, "opsz" 96;
}
.lede {
  font-size: clamp(1.08rem, 1.5vw, 1.24rem);
  text-wrap: pretty;
  line-height: 1.62;
  color: var(--ink-mut);
  max-width: 62ch;
}
.section-head { max-width: 52ch; }
.section-head.center { margin-inline: auto; }
.section-head h2 { font-size: clamp(1.9rem, 3.6vw, 2.8rem); }
.section-head .lede { margin-top: var(--s3); }
/* a single load-bearing statement, set across the measure rather than
   stranded in the left half of an empty section */
.statement {
  max-width: none; display: grid; grid-template-columns: 1fr 1fr;
  column-gap: clamp(26px,4.5vw,64px); row-gap: 0; align-items: start;
}
.statement h2 { font-size: clamp(1.8rem,3.2vw,2.5rem); grid-column: 1; }
/* every non-heading child stacks in the second column, however many there are */
.statement > :not(h2) { grid-column: 2; }
.statement .lede { margin-top: 0; max-width: 52ch; }
.statement .lede + .lede { margin-top: var(--s3); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .5em;
  padding: 14px 26px; border-radius: var(--r-pill);
  font-family: var(--f-body);
  font-weight: 600; font-size: .98rem; letter-spacing: -.005em;
  transition: transform .3s var(--ease-spring), box-shadow .3s var(--ease),
              background-color .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease);
}
.btn:active { transform: translateY(1px) scale(.985); }

.btn-primary { background: var(--marine); color: #FBFAF7; box-shadow: var(--lift); }
.btn-primary:hover { background: var(--marine-hi); transform: translateY(-2px); box-shadow: var(--lift-hi); }

.btn-quiet { color: var(--ink); border: 1px solid var(--line); background: var(--card); }
.btn-quiet:hover { transform: translateY(-2px); border-color: var(--ink); box-shadow: var(--lift); }

.btn-app { background: var(--app-ink, var(--marine)); color: #fff; box-shadow: var(--lift); }
.btn-app:hover { transform: translateY(-2px); box-shadow: var(--lift-hi); filter: saturate(1.1) brightness(1.06); }


/* ---------- crest / wordmark ---------- */
.mark { display: inline-flex; align-items: center; gap: 11px; font-family: var(--f-display); font-weight: 600; letter-spacing: -.015em; font-variation-settings: "SOFT" 50, "WONK" 1, "opsz" 24; }
.mark img { width: 32px; height: 32px; object-fit: contain; }
/* krikdex-mark.webp carries its own alpha, so no blend mode is needed. Blend modes
   were unreliable here: .nav.scrolled sets backdrop-filter, which opens a stacking
   context and isolates the blend, leaving a white plate on tinted grounds. */
.crest-ink { /* dark mark, reads as-is on paper */ }
.crest-ivory { filter: brightness(0) invert(1); }  /* forced to white for the dark footer */

/* ---------- header / nav (light) ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px clamp(18px,4vw,34px);
  border-bottom: 1px solid transparent;
  transition: background-color .35s var(--ease), backdrop-filter .35s var(--ease),
              border-color .35s var(--ease), padding .35s var(--ease);
}
.nav .mark { color: var(--ink); font-size: 1.1rem; }
.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a {
  padding: 9px 14px; border-radius: var(--r-pill); font-size: .95rem; font-weight: 500;
  color: var(--ink-mut);
  transition: color .2s var(--ease), background-color .2s var(--ease);
}
.nav-links a:hover { color: var(--ink); background: rgba(22,32,42,.06); }
.nav-links .nav-cta { color: #FBFAF7; background: var(--marine); margin-left: 8px; font-weight: 600; }
.nav-links .nav-cta:hover { background: var(--marine-hi); color: #FBFAF7; }
.nav.scrolled {
  background: rgba(251,250,247,.82); backdrop-filter: blur(14px) saturate(150%);
  border-bottom-color: var(--line-soft); padding-top: 11px; padding-bottom: 11px;
}
.nav-toggle { display: none; width: 42px; height: 42px; border-radius: 12px; border: 1px solid var(--line); align-items: center; justify-content: center; }
.nav-toggle span { position: relative; width: 18px; height: 1.5px; background: var(--ink); transition: transform .3s var(--ease), opacity .2s; }
.nav-toggle span::before, .nav-toggle span::after { content:""; position: absolute; left: 0; width: 18px; height: 1.5px; background: var(--ink); transition: transform .3s var(--ease); }
.nav-toggle span::before { top: -6px; } .nav-toggle span::after { top: 6px; }
.nav.open .nav-toggle span { background: transparent; }
.nav.open .nav-toggle span::before { transform: translateY(6px) rotate(45deg); }
.nav.open .nav-toggle span::after { transform: translateY(-6px) rotate(-45deg); }

/* ---------- hero (light, deliberately shorter than the viewport) ---------- */
.hero { position: relative; background: var(--paper); color: var(--ink); overflow: hidden; isolation: isolate; }
.hero::before {
  content:""; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(52% 46% at 12% 0%, rgba(15,86,97,.09), transparent 62%),
    radial-gradient(46% 44% at 92% 8%, rgba(240,169,46,.10), transparent 62%);
}
.hero-inner { padding-block: clamp(112px,15vw,150px) clamp(38px,5vw,56px); }
.hero-head { display: grid; grid-template-columns: 1.3fr 1fr; gap: clamp(20px,4vw,56px); align-items: end; }
.hero h1 { font-size: clamp(2.5rem, 6.2vw, 4.5rem); max-width: 17ch; }
.hero .sub { font-size: clamp(1.04rem,1.25vw,1.14rem); line-height: 1.62; color: var(--ink-mut); max-width: 44ch; padding-bottom: 6px; }
.hero .cta-row { display: flex; gap: 12px; flex-wrap: wrap; margin-top: var(--s5); }

/* ---------- the tool directory (the hero's one bold moment) ---------- */
.tools {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(158px, 1fr)); gap: 0 clamp(16px,2.2vw,30px);
  margin-top: clamp(46px,6vw,74px);
}
.tool {
  display: block; position: relative;
  padding: var(--s4) 0 var(--s5);
  border-top: 3px solid color-mix(in srgb, var(--app) 62%, transparent);
  transition: border-color .3s var(--ease), transform .3s var(--ease-spring);
}
.tool::after {
  content:""; position: absolute; top: -3px; left: 0; width: 0; height: 3px;
  background: var(--app); transition: width .45s var(--ease);
}
.tool:hover { transform: translateY(-3px); }
.tool:hover::after, .tool:focus-visible::after { width: 100%; }
.tool:focus-visible { outline-offset: 6px; }
.tool img { width: 52px; height: 52px; border-radius: 13px; margin-bottom: var(--s3); box-shadow: var(--lift); }
.tool h2 { font-size: 1.3rem; letter-spacing: -.012em; transition: color .25s var(--ease); }
.tool:hover h2 { color: var(--app-ink, var(--app)); }
.tool p { margin-top: 6px; font-size: .95rem; line-height: 1.45; color: var(--ink-mut); }
.tool .soon { display: inline-block; margin-top: var(--s2); font-size: .74rem; font-weight: 600; color: var(--app-ink, var(--app)); background: color-mix(in srgb, var(--app) 12%, transparent); padding: 3px 9px; border-radius: var(--r-pill); }

/* ---------- app showcase rows ---------- */
.app-row { display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(28px,4.5vw,64px); align-items: center; }
.app-row + .app-row { margin-top: clamp(48px,6.5vw,92px); padding-top: clamp(48px,6.5vw,92px); border-top: 1px solid var(--line-soft); }
.app-row.flip .app-media { order: 2; }
.app-icon { width: 58px; height: 58px; border-radius: 15px; overflow: hidden; background: #fff; box-shadow: var(--lift); flex: none; }
.app-icon img { width: 100%; height: 100%; object-fit: cover; }
.app-head { display: flex; align-items: center; gap: clamp(12px,1.2vw,16px); }
.app-head img { flex: none; width: clamp(42px,3.4vw,50px); height: clamp(42px,3.4vw,50px); border-radius: 12px; box-shadow: var(--lift); }
.app-copy h3 { font-size: clamp(1.7rem,3vw,2.35rem); }
.app-copy .one { font-size: 1.08rem; color: var(--ink-mut); margin-top: var(--s3); max-width: 52ch; }
.feat-list { list-style: none; padding: 0; margin: var(--s4) 0 var(--s4); display: grid; gap: 11px; }
.feat-list li { display: flex; gap: 12px; align-items: flex-start; font-size: 1rem; color: var(--ink); }
.feat-list .chk { flex: none; width: 22px; height: 22px; margin-top: 3px; border-radius: 7px; display: grid; place-items: center; background: color-mix(in srgb, var(--app, var(--marine)) 14%, transparent); color: var(--app-ink, var(--marine)); }
.feat-list .chk svg { width: 13px; height: 13px; }
.app-link { display: inline-flex; align-items: center; gap: .45em; font-weight: 600; color: var(--app-ink, var(--marine)); border-bottom: 1.5px solid color-mix(in srgb, var(--app) 35%, transparent); padding-bottom: 2px; transition: border-color .25s var(--ease); }
.app-link:hover { border-bottom-color: var(--app-ink, var(--marine)); }

/* App media. .app-shots holds real device screenshots (fona.html is a worked
   example); .app-stage is the icon fallback used until they land. To convert a
   row, replace its .app-stage block with an .app-shots div of <img> tags
   followed by the same .store-row. */
.app-media { position: relative; display: flex; flex-direction: column; align-items: center; gap: clamp(20px,2.4vw,30px); }
.app-shots { display: flex; gap: clamp(10px,1.4vw,18px); align-items: flex-end; justify-content: center; }
.app-shots img {
  width: clamp(118px, 14.5vw, 186px); height: auto;
  filter: drop-shadow(0 26px 40px color-mix(in srgb, var(--app) 38%, transparent))
          drop-shadow(0 8px 16px rgba(22,32,42,.16));
}
.app-shots img:nth-child(2) { margin-bottom: clamp(16px,2.4vw,34px); }
.app-stage {
  position: relative; isolation: isolate;
  display: flex; flex-direction: column; align-items: center; gap: clamp(22px,2.6vw,32px);
  padding: clamp(18px,2.6vw,30px) 0;
}
.app-stage::before {
  content:""; position: absolute; z-index: -1;
  top: 2%; left: 50%; transform: translateX(-50%);
  width: min(80%, 330px); aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle, color-mix(in srgb, var(--app) 30%, transparent), transparent 68%);
}
.app-stage .big-icon { display: block; width: clamp(138px,17vw,194px); height: clamp(138px,17vw,194px); border-radius: 38px; overflow: hidden; background: #fff; box-shadow: 0 26px 52px -20px color-mix(in srgb, var(--app) 52%, #16202A), 0 6px 16px -8px rgba(22,32,42,.2); transition: transform .4s var(--ease-spring), box-shadow .4s var(--ease); }
.app-stage .big-icon img { width: 100%; height: 100%; object-fit: cover; }
a.big-icon:hover { transform: translateY(-4px) scale(1.03); }
a.big-icon:active { transform: translateY(-1px) scale(1.005); }
a.big-icon:focus-visible { outline: 2px solid var(--app-ink, var(--marine)); outline-offset: 6px; }

/* store buttons */
.store-row { display: flex; flex-wrap: wrap; gap: 9px; justify-content: center; }
.store-btn {
  display: inline-flex; align-items: center; gap: 7px; padding: 9px 15px;
  border-radius: var(--r-pill); font-weight: 600; font-size: .84rem;
  color: var(--app-ink, var(--marine)); background: var(--card);
  border: 1px solid color-mix(in srgb, var(--app) 26%, var(--line));
  box-shadow: 0 6px 14px -10px rgba(22,32,42,.4);
  transition: transform .3s var(--ease-spring), box-shadow .3s var(--ease), background-color .25s var(--ease);
}
.store-btn .store-ic { width: 15px; height: 15px; flex: none; }
.store-btn:hover { transform: translateY(-2px); background: color-mix(in srgb, var(--app) 8%, #fff); box-shadow: var(--lift); }
.store-btn:active { transform: translateY(0) scale(.97); }
.store-btn:focus-visible { outline: 2px solid var(--app-ink, var(--marine)); outline-offset: 3px; }
.store-soon { font-size: .78rem; font-weight: 600; color: var(--app-ink, var(--marine)); padding: 9px 16px; border-radius: var(--r-pill); background: color-mix(in srgb, var(--app) 10%, #fff); border: 1px dashed color-mix(in srgb, var(--app) 34%, var(--line)); }

/* ---------- device screenshot grid (fona.html + stockman.html) ---------- */
/* Device shots, cropped out of the App Store images so the app itself, not a
   marketing backdrop, sits on the page. The corners are transparent, so the
   shadow has to be a drop-shadow filter rather than a rectangular box-shadow. */
.screens {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: clamp(18px, 3vw, 44px); align-items: start;
  margin: 0;
}
.screen { margin: 0; text-align: center; }
.screen img {
  width: 100%; max-width: 300px; height: auto; margin: 0 auto;
  filter: drop-shadow(0 28px 42px color-mix(in srgb, var(--app) 40%, transparent))
          drop-shadow(0 8px 16px rgba(20, 22, 30, .16));
}
.screen figcaption {
  margin-top: clamp(18px, 2.4vw, 26px);
  font-size: .95rem; line-height: 1.6;
  color: var(--ink-mut);
  max-width: 30ch; margin-inline: auto;
}
.screen figcaption b {
  display: block; margin-bottom: 5px;
  font-weight: 600; color: var(--ink); letter-spacing: -.01em;
}
@media (max-width: 780px) {
  .screens { grid-template-columns: 1fr; gap: clamp(40px, 8vw, 56px); }
  .screen img { max-width: 260px; }
}


/* ---------- macOS window grid (practiceone.html) ---------- */
.windows { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(26px,3.6vw,52px) clamp(24px,3.2vw,46px); align-items: start; }
.window { margin: 0; }
.window img {
  width: 100%; height: auto;
  filter: drop-shadow(0 24px 40px color-mix(in srgb, var(--app) 32%, transparent))
          drop-shadow(0 8px 18px rgba(22, 32, 42, .18));
}
.window figcaption { margin-top: clamp(14px,1.8vw,20px); font-size: .95rem; line-height: 1.55; color: var(--ink-mut); }
.window figcaption b { display: block; margin-bottom: 4px; font-weight: 600; color: var(--ink); letter-spacing: -.01em; }
@media (max-width: 820px) { .windows { grid-template-columns: 1fr; gap: clamp(30px,6vw,44px); } }

/* a single wide window sits in an app row where phones would otherwise go */
.app-shots.wide img { width: min(100%, 480px); }

/* ---------- ruled point list (replaces the old three-card kit) ---------- */
.points { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px,3vw,40px); margin-top: clamp(34px,4.5vw,56px); }
.point { padding-top: var(--s4); border-top: 1px solid var(--line); }
.point .ic { width: 30px; height: 30px; color: var(--marine); margin-bottom: var(--s3); }
.point .ic svg { width: 100%; height: 100%; }
.point h3 { font-size: 1.16rem; margin-bottom: 7px; }
.point p { font-size: 1rem; color: var(--ink-mut); }


/* ---------- FAQ accordion ---------- */
.faq { max-width: 780px; margin-inline: auto; }
.faq-item { border-top: 1px solid var(--line); }
.faq-item:last-child { border-bottom: 1px solid var(--line); }
.faq-q {
  width: 100%; text-align: left; display: flex; gap: 20px; align-items: flex-start; justify-content: space-between;
  padding: 22px 4px; font-family: var(--f-display); font-size: clamp(1.04rem,1.7vw,1.22rem); font-weight: 600;
  letter-spacing: -.015em; color: var(--ink); font-variation-settings: "SOFT" 50, "WONK" 1, "opsz" 24;
  transition: color .2s var(--ease);
}
.faq-q:hover { color: var(--app-ink, var(--marine)); }
.faq-ic { flex: none; width: 24px; height: 24px; position: relative; margin-top: 4px; }
.faq-ic::before, .faq-ic::after { content:""; position: absolute; background: var(--app-ink, var(--marine)); border-radius: 2px; transition: transform .35s var(--ease-spring), opacity .25s; }
.faq-ic::before { top: 11px; left: 3px; width: 18px; height: 2px; }
.faq-ic::after { top: 3px; left: 11px; width: 2px; height: 18px; }
.faq-item.open .faq-ic::after { transform: scaleY(0); opacity: 0; }
.faq-a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .4s var(--ease); }
.faq-a > div { overflow: hidden; }
.faq-item.open .faq-a { grid-template-rows: 1fr; }
.faq-a p { padding: 0 4px 24px; color: var(--ink-mut); font-size: 1rem; }
.faq-a p + p { padding-top: 0; margin-top: -8px; }
.faq-a a { color: var(--app-ink, var(--marine)); text-decoration: underline; text-underline-offset: 3px; }
.faq-cta { text-align: center; margin-top: var(--s6); }

/* ---------- footer: the one dark moment ---------- */
.footer { background: var(--dark); color: var(--on-dark); padding-block: clamp(52px,7vw,86px) 36px; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 38px; }
.footer .mark { color: var(--on-dark); font-size: 1.2rem; margin-bottom: var(--s3); }
.footer .about { color: var(--on-dark-mut); font-size: .95rem; max-width: 34ch; }
.footer h5 { font-family: var(--f-display); font-size: .98rem; font-weight: 600; color: var(--on-dark); margin-bottom: var(--s3); letter-spacing: -.01em; font-variation-settings: "SOFT" 50, "WONK" 1, "opsz" 20; }
.footer ul { list-style: none; padding: 0; display: grid; gap: 10px; }
.footer ul a { color: var(--on-dark-mut); font-size: .94rem; transition: color .2s var(--ease), transform .2s var(--ease); display: inline-block; }
.footer ul a:hover { color: var(--on-dark); transform: translateX(3px); }
.footer :focus-visible { outline-color: var(--sun); }
.footer-base { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 14px; margin-top: var(--s7); padding-top: var(--s4); border-top: 1px solid var(--line-d); color: var(--on-dark-mut); font-size: .86rem; }
.footer-base .legal-links { display: flex; gap: 20px; flex-wrap: wrap; }
/* two-level legal list, so links never need a dash between app and document */
.footer .sub-list { display: grid; gap: 5px; margin: 4px 0 13px; padding-left: 0; }
.footer .sub-list-label { color: var(--on-dark); font-size: .9rem; font-weight: 600; }
.footer .sub-list a { font-size: .89rem; }
.footer .inline-pair { display: flex; gap: 14px; }

/* ---------- reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.stagger > * { opacity: 0; transform: translateY(18px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.stagger.in > * { opacity: 1; transform: none; }
.stagger.in > *:nth-child(2){ transition-delay: .07s; }
.stagger.in > *:nth-child(3){ transition-delay: .14s; }
.stagger.in > *:nth-child(4){ transition-delay: .21s; }
.stagger.in > *:nth-child(5){ transition-delay: .28s; }

/* one orchestrated page-load sequence, in the hero only */
.hero [data-in] { opacity: 0; transform: translateY(18px); animation: rise .8s var(--ease) forwards; }
.hero [data-in="1"]{ animation-delay: .04s; }
.hero [data-in="2"]{ animation-delay: .14s; }
.hero [data-in="3"]{ animation-delay: .24s; }
.hero [data-in="4"]{ animation-delay: .34s; }
@keyframes rise { to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .reveal, .stagger > *, .hero [data-in] { opacity: 1 !important; transform: none !important; }
}

/* ---------- sub-hero (product + legal pages), now on paper ---------- */
.subhero {
  position: relative; color: var(--ink);
  background: color-mix(in srgb, var(--app, var(--marine)) 6%, var(--paper));
  overflow: hidden; isolation: isolate; padding-top: 108px;
  border-bottom: 1px solid var(--line-soft);
}
.subhero::before {
  content:""; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(56% 66% at 6% 0%, color-mix(in srgb, var(--app, var(--marine)) 24%, transparent), transparent 64%),
    radial-gradient(48% 54% at 97% 2%, color-mix(in srgb, var(--app, var(--marine)) 13%, transparent), transparent 60%);
}
.subhero-inner { padding-block: clamp(18px,3vw,32px) clamp(46px,6vw,78px); }
.breadcrumb { font-size: .88rem; color: var(--ink-soft); display: flex; gap: 9px; align-items: center; flex-wrap: wrap; }
.breadcrumb a { transition: color .2s var(--ease); }
.breadcrumb a:hover { color: var(--app-ink, var(--marine)); }
.subhero h1 { font-size: clamp(2.3rem,5.2vw,4rem); margin-top: var(--s4); }
.subhero .one { color: var(--ink-mut); max-width: 56ch; margin-top: var(--s3); font-size: 1.12rem; }
.subhero-head { display: flex; align-items: center; gap: var(--s4); }
.subhero .app-icon { width: 74px; height: 74px; border-radius: 19px; }
.subhero .cta-row { display: flex; gap: 12px; flex-wrap: wrap; margin-top: var(--s5); }
.subhero .tagrow { display: flex; gap: 20px; flex-wrap: wrap; margin-top: var(--s5); color: var(--ink-soft); font-size: .88rem; }
.subhero .tagrow span { display: inline-flex; align-items: center; gap: 8px; }
.subhero .tagrow span::before { content:""; width: 6px; height: 6px; border-radius: 50%; background: var(--app, var(--marine)); }

/* ---------- product page bits ---------- */
.overview { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(30px,4.5vw,64px); align-items: start; }
.overview .lede-big { font-family: var(--f-display); font-size: clamp(1.25rem,2.1vw,1.6rem); line-height: 1.35; color: var(--ink); font-weight: 600; letter-spacing: -.018em; font-variation-settings: "SOFT" 50, "WONK" 1, "opsz" 32; }
.overview .body p { color: var(--ink-mut); margin-bottom: var(--s3); }
.pill-tag { display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; border-radius: var(--r-pill); background: color-mix(in srgb, var(--app, var(--marine)) 12%, transparent); color: var(--app-ink, var(--marine)); font-size: .84rem; font-weight: 600; }

.feature-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: clamp(20px,3vw,36px) clamp(24px,3.4vw,44px); }
.feature { padding-top: var(--s4); border-top: 1px solid var(--line); }
.feature .ic { width: 28px; height: 28px; color: var(--app-ink, var(--marine)); margin-bottom: var(--s3); }
.feature .ic svg { width: 100%; height: 100%; }
.feature h3 { font-size: 1.14rem; margin-bottom: 6px; }
.feature p { font-size: 1rem; color: var(--ink-mut); }

.legal-strip { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; justify-content: center; }
.legal-strip a { padding: 11px 22px; border-radius: var(--r-pill); border: 1px solid var(--line); background: var(--card); font-weight: 600; font-size: .94rem; color: var(--ink); transition: transform .25s var(--ease), border-color .25s var(--ease), box-shadow .25s var(--ease); }
.legal-strip a:hover { transform: translateY(-2px); border-color: var(--ink); box-shadow: var(--lift); }

/* ---------- pricing / plans ---------- */
.plans { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; align-items: stretch; }
.plan {
  position: relative; display: flex; flex-direction: column;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r-md);
  padding: 28px 22px 26px; box-shadow: var(--lift);
  transition: transform .4s var(--ease-spring), box-shadow .4s var(--ease), border-color .25s var(--ease);
}
.plan:hover { transform: translateY(-4px); box-shadow: var(--lift-hi); }
.plan.featured { border-color: color-mix(in srgb, var(--app, var(--marine)) 50%, var(--line)); box-shadow: 0 26px 52px -26px color-mix(in srgb, var(--app) 40%, #16202A); }
.plan-tag { position: absolute; top: -11px; left: 22px; font-size: .72rem; font-weight: 600; color: #fff; background: var(--app-ink, var(--marine)); padding: 4px 12px; border-radius: var(--r-pill); }
.plan h4 { font-size: 1.3rem; }
.plan .tier-blurb { color: var(--ink-mut); font-size: .86rem; line-height: 1.45; margin-top: 5px; min-height: 3.2em; }
.plan .price { margin-top: var(--s3); display: flex; align-items: baseline; gap: 5px; }
.plan .price .amt, .plan .price-free { font-family: var(--f-display); font-size: 2rem; font-weight: 600; letter-spacing: -.02em; color: var(--ink); font-variation-settings: "SOFT" 50, "WONK" 1, "opsz" 36; }
.plan .price-free { margin-top: var(--s3); }
.plan .price .per { color: var(--ink-mut); font-size: .86rem; }
.plan .price-annual { color: var(--ink-soft); font-size: .82rem; margin-top: 5px; min-height: 1.2em; }
.plan-feats { list-style: none; padding: 0; margin: var(--s4) 0 0; display: grid; gap: 11px; }
.plan-feats li { display: flex; gap: 10px; align-items: flex-start; font-size: .92rem; line-height: 1.45; color: var(--ink); }
.plan-feats .chk { flex: none; width: 19px; height: 19px; margin-top: 3px; border-radius: 6px; display: grid; place-items: center; background: color-mix(in srgb, var(--app, var(--marine)) 14%, transparent); color: var(--app-ink, var(--marine)); }
.plan-feats .chk svg { width: 11px; height: 11px; }
.plans-note { text-align: center; color: var(--ink-mut); font-size: .92rem; line-height: 1.6; margin: var(--s5) auto 0; max-width: 660px; }

/* ---------- legal / prose ---------- */
.prose { max-width: 70ch; margin-inline: auto; }
.prose .meta { font-size: .9rem; color: var(--ink-soft); margin-bottom: var(--s6); padding-bottom: var(--s4); border-bottom: 1px solid var(--line); }
.prose h2 { font-size: clamp(1.28rem,2.2vw,1.6rem); margin: var(--s6) 0 var(--s2); }
.prose h2:first-of-type { margin-top: 0; }
.prose h3 { font-size: 1.14rem; margin: var(--s5) 0 var(--s1); }
.prose p { color: var(--ink-mut); margin-bottom: var(--s3); line-height: 1.72; }
.prose ul { margin: 0 0 var(--s3); padding-left: 22px; color: var(--ink-mut); }
.prose li { margin-bottom: 7px; line-height: 1.68; }
.prose a { color: var(--app-ink, var(--marine)); text-decoration: underline; text-underline-offset: 3px; word-break: break-word; }
.prose strong { color: var(--ink); font-weight: 600; }
/* Tables scroll inside their own box, so a three-column POPIA table never widens the page on a phone. */
.prose .table-wrap { overflow-x: auto; margin: var(--s1) 0 var(--s4); border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--card); }
.prose .table-wrap:focus-visible { outline: 2px solid var(--app-ink, var(--marine)); outline-offset: 3px; }
.prose table { width: 100%; min-width: 520px; border-collapse: collapse; font-size: .93rem; line-height: 1.55; }
.prose th, .prose td { text-align: left; vertical-align: top; padding: 12px 16px; border-bottom: 1px solid var(--line-soft); color: var(--ink-mut); }
.prose th { color: var(--ink); font-weight: 600; background: color-mix(in srgb, var(--app, var(--marine)) 7%, var(--card)); border-bottom-color: var(--line); }
.prose tr:last-child td { border-bottom: 0; }
.toc { background: var(--paper-2); border: 1px solid var(--line-soft); border-radius: var(--r-md); padding: 24px 28px; margin: var(--s1) 0 var(--s6); }
.toc h4 { font-size: 1.02rem; margin-bottom: var(--s2); }
.toc ol { margin: 0; padding-left: 20px; columns: 2; column-gap: 34px; color: var(--ink-mut); }
.toc li { margin-bottom: 6px; font-size: .93rem; }
.toc a { color: var(--ink-mut); }
.toc a:hover { color: var(--app-ink, var(--marine)); }
.back-link { display: inline-flex; align-items: center; gap: .45em; font-weight: 600; color: var(--app-ink, var(--marine)); margin-top: var(--s6); }

/* ---------- responsive ---------- */
@media (max-width: 1000px) {
  .plans { grid-template-columns: repeat(2, 1fr); gap: 20px 16px; }
}
@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 30px; }
  .footer-grid > :first-child { grid-column: 1 / -1; }
  .app-row { grid-template-columns: 1fr; gap: 26px; }
  .app-row.flip .app-media { order: 2; }
  .points, .feature-grid { grid-template-columns: 1fr 1fr; }
  .overview, .statement { grid-template-columns: 1fr; }
  .statement > :not(h2) { grid-column: auto; }
  .statement .lede { margin-top: var(--s3); }
  .toc ol { columns: 1; }
}
@media (max-width: 720px) {
  body { font-size: 17px; }
  .points, .feature-grid { grid-template-columns: 1fr; }
  .nav-links { position: fixed; inset: 0 0 0 auto; width: min(82vw,330px); flex-direction: column; align-items: stretch; justify-content: center; gap: 6px; padding: 80px 24px; background: rgba(251,250,247,.97); backdrop-filter: blur(18px); border-left: 1px solid var(--line); transform: translateX(105%); transition: transform .45s var(--ease); }
  .nav.open .nav-links { transform: none; }
  .nav-links a { font-size: 1.1rem; padding: 12px 16px; }
  .nav-links .nav-cta { text-align: center; margin-left: 0; margin-top: var(--s1); }
  .nav-toggle { display: inline-flex; z-index: 1; }
  .subhero-head { flex-direction: column; align-items: flex-start; gap: var(--s3); }
  .hero-head { grid-template-columns: 1fr; gap: var(--s4); align-items: start; }
  .app-shots img:nth-child(2) { margin-bottom: 0; }
}
@media (max-width: 460px) {
  .plans { grid-template-columns: 1fr; }
}
