/* ============================================================
   KeepLabs — studio site
   Mobile-first. Base styles are for a narrow phone; layout is
   added with min-width queries, never removed from a desktop
   original.

   Palette: KeepLabs' own neutral studio identity. MyKeep green
   (#2F7D57) is a restrained accent, not the house colour.
   ============================================================ */

/* Instrument Sans — SIL Open Font License 1.1 (see assets/fonts/OFL.txt).
   Self-hosted Latin subset: one 29 KB variable file covers weights 400–700.
   No third-party font service. Glyphs outside the subset fall back per-glyph. */
@font-face {
  font-family: "Instrument Sans";
  src: url("../fonts/instrument-sans-latin.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0020-007E, U+00A0-00FF, U+2010-2014, U+2018-201E, U+2022, U+2026,
                 U+2032-2033, U+2039-203A, U+20AC, U+2122, U+2190-2193, U+2212;
}

:root {
  /* neutrals — slightly deeper and warmer, for more depth behind the type */
  --bg:        #FBFBF9;
  --bg-2:      #F4F5F2;
  --surface:   #FFFFFF;
  --ink:       #121A15;
  --ink-2:     #33403A;
  --muted:     #59665F;
  --line:      #E5E8E3;
  --line-2:    #D4D9D3;

  --green:     #2F7D57;
  --green-deep:#235F41;
  --green-soft:#D3EEDF;

  --night:       #0D1210;
  --night-2:     #171E1A;
  --night-line:  #2A332D;
  --night-ink:   #E6EBE7;
  --night-muted: #A3AEA7;

  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 16px;
  --r-xl: 22px;

  /* elevation — used sparingly, never as decoration */
  --sh-1: 0 1px 2px rgba(18,26,21,.045), 0 1px 3px rgba(18,26,21,.035);
  --sh-2: 0 2px 4px rgba(18,26,21,.045), 0 4px 12px rgba(18,26,21,.05);
  --sh-3: 0 8px 22px rgba(18,26,21,.075), 0 2px 8px rgba(18,26,21,.04);
  --sh-4: 0 18px 40px rgba(18,26,21,.10), 0 4px 12px rgba(18,26,21,.05);

  --pad: 20px;                 /* page gutter, mobile by default */
  --header-h: 62px;
  --maxw: 1100px;

  --font: "Instrument Sans", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
          "Segoe UI", Roboto, "Helvetica Neue", "Noto Sans", Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
}

/* ---------------------------------------------------------------- reset */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16.5px;
  line-height: 1.7;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  font-synthesis-weight: none;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--green); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }

h1, h2, h3, h4 {
  margin: 0 0 .5em;
  font-weight: 620;
  line-height: 1.1;
  letter-spacing: -.026em;
  color: var(--ink);
  overflow-wrap: break-word;
  text-wrap: balance;
}
h1 { font-size: clamp(2.1rem, 7.4vw, 3.5rem); letter-spacing: -.034em; line-height: 1.05; }
h2 { font-size: clamp(1.56rem, 4.9vw, 2.32rem); letter-spacing: -.03em; line-height: 1.12; }
h3 { font-size: 1.09rem; letter-spacing: -.019em; }
p  { margin: 0 0 1.05rem; text-wrap: pretty; }
ul, ol { margin: 0 0 1rem; padding-left: 1.15rem; }
li { margin-bottom: .42rem; }
strong { font-weight: 640; }
hr { border: 0; border-top: 1px solid var(--line); margin: 2rem 0; }

:focus-visible { outline: 2.5px solid var(--green); outline-offset: 3px; border-radius: 3px; }

[id] { scroll-margin-top: calc(var(--header-h) + 18px); }

/* ---------------------------------------------------------------- layout */
.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--pad); }
.section { padding: clamp(52px, 11vw, 104px) 0; }
.section--tight { padding: clamp(36px, 7vw, 64px) 0; }
.section--band { background: var(--bg-2); }
.section--line { border-top: 1px solid var(--line); }
.section--night { background: var(--night); color: var(--night-ink); }
.section--night h2, .section--night h3 { color: var(--night-ink); }
.section--night p { color: var(--night-muted); }
.section--night a { color: #86D3A9; }

.lede {
  font-size: clamp(1rem, 2.6vw, 1.14rem);
  color: var(--muted);
  max-width: 60ch;
  line-height: 1.62;
}
.section--night .lede { color: var(--night-muted); }
.center { text-align: center; }
.center .lede { margin-inline: auto; }

.eyebrow {
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 14px;
}
.eyebrow--green { color: var(--green); }

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--ink); color: #fff; padding: 11px 16px; border-radius: 0 0 var(--r-sm) 0;
}
.skip:focus { left: 0; }

/* ---------------------------------------------------------------- header */
.hdr {
  position: sticky; top: 0; z-index: 60;
  background: rgba(251, 252, 250, .9);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s ease;
}
.hdr.is-stuck { border-bottom-color: var(--line); }
.hdr__in {
  height: var(--header-h);
  display: flex; align-items: center; gap: 14px;
  max-width: var(--maxw); margin: 0 auto; padding: 0 var(--pad);
}

.logo {
  display: inline-flex; align-items: center; gap: 10px;
  color: var(--ink); flex: none; min-height: 44px;
}
.logo:hover { text-decoration: none; }
.logo__mark { width: 28px; height: 28px; flex: none; color: var(--ink); }
.logo__word { font-size: 1.06rem; font-weight: 700; letter-spacing: -.028em; line-height: 1; }
.logo__word span { font-weight: 400; color: var(--muted); }

.nav { display: none; }
.nav ul { display: flex; align-items: center; gap: 2px; list-style: none; margin: 0; padding: 0; }
.nav a {
  display: block; padding: 9px 13px; border-radius: var(--r-sm);
  color: var(--ink-2); font-size: .94rem; font-weight: 540;
}
.nav a:hover { background: var(--bg-2); text-decoration: none; }
.nav a[aria-current="page"] { color: var(--ink); font-weight: 640; }

.navtoggle {
  display: inline-flex; align-items: center; justify-content: center;
  margin-left: auto; width: 42px; height: 42px; padding: 0;
  border: 1px solid var(--line); background: var(--surface);
  border-radius: var(--r-md); cursor: pointer;
}
.navtoggle i { display: block; width: 17px; height: 1.8px; background: var(--ink); position: relative; }
.navtoggle i::before, .navtoggle i::after {
  content: ""; position: absolute; left: 0; width: 17px; height: 1.8px; background: var(--ink);
}
.navtoggle i::before { top: -5.5px; }
.navtoggle i::after  { top: 5.5px; }

.hdr__cta { display: none; }

/* mobile menu panel */
.mnav {
  display: none;
  border-bottom: 1px solid var(--line);
  background: var(--surface);
  box-shadow: 0 10px 26px rgba(24,32,27,.08);
}
.mnav.is-open { display: block; }
.mnav ul { list-style: none; margin: 0; padding: 8px var(--pad) 16px; }
.mnav a {
  display: block; padding: 13px 4px; font-size: 1.02rem; font-weight: 540;
  color: var(--ink); border-bottom: 1px solid var(--line);
}
.mnav li:last-child a { border-bottom: 0; }
.mnav .btn { margin-top: 14px; width: 100%; }

/* ---------------------------------------------------------------- buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 20px; border-radius: var(--r-md);
  font-size: .95rem; font-weight: 600; letter-spacing: -.008em;
  border: 1px solid transparent; cursor: pointer; text-align: center;
  transition: background .18s ease, border-color .18s ease, transform .18s ease;
  min-height: 46px;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn--primary { background: var(--green); color: #fff; }
.btn--primary:hover { background: var(--green-deep); }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line-2); }
.btn--ghost:hover { border-color: var(--muted); background: var(--surface); }
.btn--light { background: transparent; color: var(--night-ink); border-color: var(--night-line); }
.btn--light:hover { border-color: var(--night-muted); }
.btn--sm { padding: 9px 15px; font-size: .88rem; min-height: 40px; }
.btnrow { display: flex; flex-wrap: wrap; gap: 11px; margin: 1.5rem 0 0; }

/* ---------------------------------------------------------------- hero */
.hero { padding: clamp(44px, 12vw, 92px) 0 clamp(40px, 9vw, 76px); }
.hero h1 { margin-bottom: .32em; }
.hero__lede { font-size: clamp(1.02rem, 3vw, 1.2rem); color: var(--muted); max-width: 46ch; }

/* ---------------------------------------------------------------- device */
.device {
  --dw: 234px;
  width: var(--dw);
  aspect-ratio: 740 / 1622;
  padding: 9px;
  border-radius: 40px;
  background: linear-gradient(165deg, #2B332E 0%, #131816 46%, #0B0E0C 100%);
  box-shadow: 0 20px 46px rgba(24, 32, 27, .22), 0 0 0 1px rgba(24,32,27,.08);
  position: relative;
  flex: none;
}
.device::after {
  content: ""; position: absolute; right: -2.5px; top: 30%;
  width: 2.5px; height: 10%; border-radius: 3px;
  background: linear-gradient(#3A4440, #1E2622);
}
.device__screen {
  position: relative; width: 100%; height: 100%;
  border-radius: 32px; overflow: hidden; background: var(--bg);
}
.device__screen img { width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.device__cam {
  position: absolute; top: 16px; left: 50%; transform: translateX(-50%);
  width: 9px; height: 9px; border-radius: 50%;
  background: #050706; box-shadow: inset 0 0 0 1.4px #1A201D; z-index: 3;
}

/* ---------------------------------------------------------------- product intro (home) */
.intro { display: grid; gap: clamp(28px, 7vw, 48px); align-items: center; }
.intro__media { display: flex; justify-content: center; }
.intro__tag { color: var(--green); font-weight: 620; font-size: 1.02rem; margin: -.2em 0 .5em; }
.intro__desc { color: var(--muted); max-width: 50ch; }

/* ---------------------------------------------------------------- principles */
.principles { display: grid; gap: 0; margin-top: 8px; border-top: 1px solid var(--line); }
.principle {
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}
.principle h3 { margin-bottom: .3em; }
.principle p { margin: 0; color: var(--muted); font-size: .95rem; }

/* ---------------------------------------------------------------- apps listing */
.applist { border-top: 1px solid var(--line); margin-top: 26px; }
.approw {
  display: grid; gap: 18px;
  padding: 26px 0;
  border-bottom: 1px solid var(--line);
}
.approw__icon { width: 62px; height: 62px; border-radius: 15px; flex: none; }
.approw__body h3 { font-size: 1.22rem; margin-bottom: .18em; }
.approw__tag { color: var(--green); font-weight: 600; font-size: .95rem; margin: 0 0 .55em; }
.approw__body p { color: var(--muted); font-size: .95rem; margin: 0 0 1rem; max-width: 54ch; }
.approw__actions { display: flex; flex-wrap: wrap; gap: 10px; }

.future { padding: 26px 0 4px; color: var(--muted); }
.future h3 { color: var(--ink-2); font-size: 1.02rem; }
.future p { margin: 0; font-size: .94rem; max-width: 52ch; }

/* ---------------------------------------------------------------- feature tour */
.tour__head { max-width: 56ch; margin-bottom: clamp(26px, 6vw, 44px); }

/* MOBILE: each step shows its own screen inline */
.tour__media { display: none; }
.tour__steps { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.tour__step { padding: 30px 0; border-bottom: 1px solid var(--line); }
.tour__num {
  font-family: var(--mono); font-size: .76rem; font-weight: 600;
  color: var(--green); letter-spacing: .1em; display: block; margin-bottom: 8px;
}
.tour__step h3 { font-size: 1.22rem; margin-bottom: .4em; }
.tour__step > p { color: var(--muted); font-size: .96rem; margin: 0 0 1.1rem; max-width: 52ch; }
.step__shot { display: flex; justify-content: center; margin-bottom: 18px; }
.step__shot .device { --dw: min(216px, 62vw); }
.tour__facts { list-style: none; margin: .9rem 0 0; padding: 0; display: grid; gap: 7px; }
.tour__facts li {
  display: flex; gap: 10px; font-size: .91rem; color: var(--muted); margin: 0; line-height: 1.55;
}
.tour__facts li::before {
  content: ""; flex: none; width: 5px; height: 5px; border-radius: 50%;
  background: var(--green); margin-top: .58em;
}

/* ---------------------------------------------------------------- feature groups */
.fgroups { display: grid; gap: 0; margin-top: 26px; border-top: 1px solid var(--line); }
.fgroup { padding: 24px 0; border-bottom: 1px solid var(--line); }
.fgroup h3 { margin-bottom: .45em; }
.fgroup p { color: var(--muted); font-size: .95rem; margin: 0; max-width: 58ch; }

/* ---------------------------------------------------------------- privacy list */
.plist { list-style: none; margin: 1.4rem 0 0; padding: 0; display: grid; gap: 14px; }
.plist li {
  display: flex; gap: 12px; align-items: flex-start; margin: 0;
  font-size: .96rem; color: var(--night-muted); line-height: 1.55;
}
.plist b { color: var(--night-ink); font-weight: 620; }
.plist svg { flex: none; width: 17px; height: 17px; color: #86D3A9; margin-top: .28em; }

/* ---------------------------------------------------------------- facts table */
.facts { width: 100%; border-collapse: collapse; font-size: .93rem; margin-top: 20px; }
.facts th, .facts td {
  text-align: left; padding: 11px 0; border-bottom: 1px solid var(--line); vertical-align: top;
}
.facts th { font-weight: 560; color: var(--muted); width: 40%; padding-right: 16px; }
.facts td { font-weight: 560; }
.facts tr:last-child th, .facts tr:last-child td { border-bottom: 0; }
.section--night .facts th, .section--night .facts td { border-bottom-color: var(--night-line); }

/* ---------------------------------------------------------------- callout */
.callout {
  border-left: 3px solid var(--green);
  padding: 4px 0 4px 18px;
  margin: 1.5rem 0;
}
.callout p { margin: 0 0 .5rem; font-size: .95rem; color: var(--ink-2); }
.callout p:last-child { margin-bottom: 0; }
.callout--warn { border-left-color: #B45309; }
.callout--warn strong { color: #7C2D12; }

/* ---------------------------------------------------------------- prose */
.prose { max-width: 70ch; }
.prose h2 { font-size: clamp(1.28rem, 3.4vw, 1.6rem); margin-top: 2.4rem; }
.prose h3 { margin-top: 1.7rem; }
.prose h2:first-child { margin-top: 0; }
.prose p, .prose li { color: var(--ink-2); }
.prose ul li { margin-bottom: .5rem; }
code, .mono {
  font-family: var(--mono); font-size: .85em;
  background: var(--bg-2); padding: 2px 6px; border-radius: 4px;
  word-break: break-word;
}
.updated { font-size: .87rem; color: var(--muted); }

/* ---------------------------------------------------------------- support */
.mailer {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 1.02rem; font-weight: 620; color: var(--green);
  background: var(--green-soft); padding: 13px 19px; border-radius: var(--r-md);
  word-break: break-all;
}
.mailer:hover { text-decoration: none; background: #C3E7D6; }
.mailer svg { flex: none; }

/* ---------------------------------------------------------------- download */
.dlgrid { display: grid; gap: clamp(28px, 7vw, 52px); align-items: start; }
.dlbox {
  border: 1px solid var(--line); border-radius: var(--r-xl);
  padding: clamp(22px, 5vw, 30px); background: var(--surface);
}
.dlbox h2 { font-size: 1.22rem; margin-bottom: .1em; }
.dlbox .tag { color: var(--green); font-weight: 600; font-size: .95rem; margin: 0 0 1.2rem; }

/* ---------------------------------------------------------------- footer */
.ftr {
  border-top: 1px solid var(--line);
  padding: clamp(40px, 8vw, 62px) 0 26px;
  margin-top: 0;
  background: var(--bg);
}
.ftr__top { display: grid; gap: 30px; }
.ftr h4 {
  font-size: .74rem; text-transform: uppercase; letter-spacing: .13em;
  color: var(--muted); margin: 0 0 12px; font-weight: 700;
}
.ftr ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.ftr li { margin: 0; font-size: .92rem; }
.ftr a { color: var(--ink-2); display: inline-block; padding: 10px 0; }
.ftr a:hover { color: var(--green); }
.ftr__about { font-size: .93rem; color: var(--muted); max-width: 34ch; margin: 12px 0 0; }
.ftr__bot {
  margin-top: 30px; padding-top: 20px; border-top: 1px solid var(--line);
  display: grid; gap: 8px; font-size: .84rem; color: var(--muted);
}

/* ---------------------------------------------------------------- reveal */
.rv { opacity: 0; transform: translateY(14px); transition: opacity .55s ease, transform .55s cubic-bezier(.16,1,.3,1); }
.rv.is-in { opacity: 1; transform: none; }

/* ================================================================
   Larger screens — added, never subtracted
   ================================================================ */
@media (min-width: 600px) {
  :root { --pad: 28px; }
  body { font-size: 17px; }
  .device { --dw: 250px; }
  .facts th { width: 32%; }
  .ftr__top { grid-template-columns: 1fr 1fr; gap: 34px; }
  .ftr__bot { grid-template-columns: 1fr auto; align-items: center; }
  .approw { grid-template-columns: 62px 1fr; gap: 22px; align-items: start; }
  .approw__actions { grid-column: 2; }
}

@media (min-width: 900px) {
  :root { --pad: 36px; --header-h: 72px; }
  body { font-size: 17.5px; }

  .navtoggle { display: none; }
  .nav { display: block; margin-left: auto; }
  .hdr__cta { display: inline-flex; }
  .mnav { display: none !important; }

  .hero { padding: clamp(64px, 9vw, 104px) 0 clamp(56px, 7vw, 84px); }

  .intro { grid-template-columns: 1.15fr .85fr; gap: clamp(32px, 5vw, 64px); }
  .intro__media { justify-content: flex-end; }

  .principles { grid-template-columns: repeat(3, 1fr); gap: 0; }
  .principle { padding: 26px 26px 26px 0; border-bottom: 1px solid var(--line); }
  .principle + .principle { padding-left: 26px; border-left: 1px solid var(--line); }

  .approw { grid-template-columns: 72px 1fr auto; align-items: center; gap: 26px; }
  .approw__icon { width: 72px; height: 72px; border-radius: 17px; }
  .approw__body p { margin-bottom: 0; }
  .approw__actions { grid-column: auto; justify-content: flex-end; }

  /* tour becomes sticky-device + scrolling steps */
  .tour__grid {
    display: grid; grid-template-columns: 1fr 1fr;
    gap: clamp(36px, 5vw, 72px); align-items: start;
  }
  .tour__media {
    display: block;
    position: sticky; top: calc(var(--header-h) + 32px);
  }
  .tour__media .device { --dw: min(300px, 34vw); margin-inline: auto; }
  .tour__progress { display: flex; align-items: center; justify-content: center; gap: 12px; margin-top: 22px; }
  .tour__count { font-family: var(--mono); font-size: .78rem; color: var(--muted); letter-spacing: .06em; }
  .tour__count b { color: var(--green); font-weight: 700; }
  .tour__dots { display: flex; gap: 8px; }
  .tour__dot {
    position: relative;
    width: 26px; height: 32px; padding: 0; border: 0; cursor: pointer;
    background: transparent;
    transition: width .3s ease;
  }
  .tour__dot::before {
    content: ""; position: absolute; left: 0; right: 0; top: 50%;
    transform: translateY(-50%); height: 4px; border-radius: 999px;
    background: var(--line-2); transition: background .3s ease;
  }
  .tour__dot:hover::before { background: var(--muted); }
  .tour__dot[aria-current="true"] { width: 40px; }
  .tour__dot[aria-current="true"]::before { background: var(--green); }
  .tour__progress { align-items: center; }

  .tour__step { padding: 30px 0; opacity: .42; transition: opacity .4s ease; }
  .tour__step.is-active { opacity: 1; }
  .step__shot { display: none; }

  .fgroups { grid-template-columns: repeat(2, 1fr); gap: 0 40px; }

  .dlgrid { grid-template-columns: 1fr 1fr; }
  .ftr__top { grid-template-columns: 1.7fr 1fr 1fr 1fr; gap: 32px; }
}

@media (min-width: 1200px) {
  .tour__grid { gap: 88px; }
  .intro { gap: 76px; }
}

/* sticky device: layer cross-fade */
.tour__media .device__screen { background: var(--bg); }
.tour__layer {
  position: absolute; inset: 0; opacity: 0;
  transition: opacity .5s cubic-bezier(.4,0,.2,1), transform .5s cubic-bezier(.4,0,.2,1);
  transform: scale(1.014);
}
.tour__layer.is-active { opacity: 1; transform: none; }
.tour__layer img { width: 100%; height: 100%; object-fit: cover; object-position: top center; }

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

@media print {
  .hdr, .ftr, .navtoggle, .btn { display: none !important; }
  body { background: #fff; }
}

/* simple text list — used for short, non-feature-list groupings */
.plainlist { list-style: none; margin: 1.5rem 0 0; padding: 0; display: grid; gap: 12px; }
.plainlist li {
  display: flex; gap: 12px; align-items: baseline; margin: 0;
  font-size: .97rem; color: var(--muted); line-height: 1.55;
}
.plainlist li::before {
  content: ""; flex: none; width: 5px; height: 5px; border-radius: 50%;
  background: var(--green); transform: translateY(-3px);
}
@media (min-width: 900px) {
  .plainlist { grid-template-columns: 1fr 1fr; gap: 12px 40px; max-width: 62ch; }
}

/* lazy promo video — preload=none keeps it off the critical path */
.video { margin: 2rem 0 0; }
.video video {
  display: block; width: 100%; height: auto; max-width: 100%;
  border-radius: 12px; background: var(--night);
}
.video figcaption { margin-top: .85rem; font-size: .9rem; color: var(--muted); }

/* ================================================================
   PREMIUM REFINEMENT
   Craft only: elevation, rhythm, micro-interaction, type detail.
   No new sections, no new copy, no decorative imagery.
   ================================================================ */

::selection { background: var(--green-soft); color: var(--ink); }

a { text-decoration-thickness: 1px; text-underline-offset: .18em; }

:focus-visible { outline: 2px solid var(--green); outline-offset: 3px; border-radius: 4px; }

/* header — lift on scroll rather than a hard rule */
.hdr {
  background: rgba(251, 251, 249, .82);
  backdrop-filter: saturate(180%) blur(16px);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  transition: background .25s ease, border-color .25s ease, box-shadow .25s ease;
}
.hdr.is-stuck {
  background: rgba(251, 251, 249, .94);
  border-bottom-color: var(--line);
  box-shadow: var(--sh-1);
}
.logo__word { font-size: 1.08rem; font-weight: 680; letter-spacing: -.033em; }

/* nav — quiet underline instead of a pill */
@media (min-width: 900px) {
  .nav a { padding: 9px 14px; position: relative; }
  .nav a:hover { background: transparent; text-decoration: none; }
  .nav a::after {
    content: ""; position: absolute; left: 14px; right: 14px; bottom: 3px;
    height: 1.5px; border-radius: 2px; background: var(--green);
    transform: scaleX(0); transform-origin: left center;
    transition: transform .22s cubic-bezier(.22,.61,.36,1);
  }
  .nav a:hover::after,
  .nav a[aria-current="page"]::after { transform: scaleX(1); }
}

/* buttons — real elevation, restrained lift */
.btn { transition: background .18s ease, border-color .18s ease,
       transform .18s ease, box-shadow .18s ease; }
.btn--primary { box-shadow: var(--sh-2); }
.btn--primary:hover { background: var(--green-deep); box-shadow: var(--sh-3); }
.btn--ghost:hover { background: var(--surface); border-color: var(--line-2); box-shadow: var(--sh-1); }

/* more air between sections on large screens — floors equal the previous
   maximums (104 / 64 px), so no desktop width ever gets less than before */
@media (min-width: 900px) {
  .section { padding: clamp(104px, 9vw, 128px) 0; }
  .section--tight { padding: clamp(64px, 6vw, 80px) 0; }
}

.eyebrow { font-size: .69rem; font-weight: 660; letter-spacing: .16em; margin: 0 0 16px; }
.lede { line-height: 1.66; max-width: 58ch; }

/* callout — quiet panel instead of a bare rule */
.callout {
  border-left: 2px solid var(--green);
  background: var(--bg-2);
  border-radius: 0 var(--r-md) var(--r-md) 0;
  padding: 15px 20px;
  margin: 1.6rem 0;
}

.facts th, .facts td { padding: 13px 0; }
.facts th { font-weight: 540; }

/* device frame — more physical, still not glossy */
.device {
  box-shadow: 0 24px 54px rgba(18,26,21,.20),
              0 2px 6px rgba(18,26,21,.10),
              0 0 0 1px rgba(18,26,21,.06);
}

.ftr { padding-top: clamp(48px, 8vw, 76px); }
.ftr h4 { font-size: .71rem; letter-spacing: .15em; }
.ftr__bot { margin-top: 40px; padding-top: 24px; }

.rv {
  transform: translateY(16px);
  transition: opacity .6s cubic-bezier(.22,.61,.36,1),
              transform .6s cubic-bezier(.22,.61,.36,1);
}

/* the one dark band: let the primary button sit properly on it */
.section--night .btn--primary,
.section--night .btn--primary:hover { color: #fff; }
.section--night .btn--primary { box-shadow: 0 8px 22px rgba(0,0,0,.30); }
.section--night .btn--ghost {
  background: transparent; color: var(--night-ink); border-color: var(--night-line);
}
.section--night .btn--ghost:hover { border-color: var(--night-muted); background: var(--night-2); }

/* tactile objects only: app icon, download panel, video */
.approw__icon { box-shadow: var(--sh-2), 0 0 0 1px rgba(18,26,21,.05); }
.dlbox { box-shadow: var(--sh-1); }
.video video { border-radius: var(--r-lg); box-shadow: var(--sh-4); }
.facts td { font-variant-numeric: tabular-nums; }

/* contrast fixes found by the AA audit (both pre-dated the premium pass) */
.section--night code, .section--night .mono {
  background: var(--night-2); color: var(--night-ink);
  box-shadow: inset 0 0 0 1px var(--night-line);
}
.mailer { color: var(--green-deep); }      /* 4.07:1 -> 6.1:1 on --green-soft */

/* reduced motion must still win over everything above */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .rv { opacity: 1 !important; transform: none !important; }
  .tour__step { opacity: 1 !important; }
  .btn:hover { transform: none !important; }
  .nav a::after { transition: none; }
}
