/* nistis.com — one stylesheet for every page.
   Palette comes from the app icon: cream ground, forest-green ring, warm gray. */

:root {
  --bg: #fbfaf6;
  --bg-alt: #f3f1ea;
  --surface: #ffffff;
  --ink: #1d1d1f;
  --ink-2: #5f6064;
  --line: #e4e1d7;
  --green: #2f6f4f;
  --green-hover: #275e43;
  --green-soft: #e4ede6;
  --sand: #d6d2c4;
  --deep: #1d3a2c;
  --deep-ink: #f4f1e8;
  --deep-ink-2: #b9c6bd;
  --deep-line: rgba(244, 241, 232, 0.14);
  --shadow: 0 1px 2px rgba(29, 29, 31, 0.04), 0 24px 48px -28px rgba(29, 29, 31, 0.28);

  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --max: 1120px;
  --gutter: clamp(20px, 5vw, 40px);
  --section: clamp(88px, 12vw, 152px);
  --radius: 28px;

  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0c0d0c;
    --bg-alt: #141614;
    --surface: #1b1d1b;
    --ink: #f5f5f2;
    --ink-2: #a3a6a1;
    --line: #2a2d2a;
    --green: #6cbf92;
    --green-hover: #84cda5;
    --green-soft: #18291f;
    --sand: #3a3d38;
    --deep: #11241a;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 24px 48px -28px rgba(0, 0, 0, 0.8);
  }
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 72px;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.55;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  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: 0.18em; }
:focus-visible { outline: 2px solid var(--green); outline-offset: 3px; border-radius: 6px; }
strong { font-weight: 600; color: var(--ink); }

.wrap {
  width: 100%;
  max-width: calc(var(--max) + 2 * var(--gutter));
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.narrow { max-width: calc(720px + 2 * var(--gutter)); }

.skip {
  position: absolute; left: -9999px; top: 8px;
  background: var(--ink); color: var(--bg);
  padding: 8px 14px; border-radius: 8px; z-index: 100;
}
.skip:focus { left: 8px; }

/* ---------- Header ---------- */

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease;
}
.site-header.scrolled { border-bottom-color: var(--line); }
.site-header .wrap {
  display: flex; align-items: center; gap: 28px;
  height: 60px;
}
.brand {
  display: inline-flex; align-items: center; gap: 10px;
  color: var(--ink); font-weight: 650; font-size: 1.1rem; letter-spacing: -0.01em;
}
.brand:hover { text-decoration: none; }
.brand img { width: 28px; height: 28px; border-radius: 7px; box-shadow: 0 0 0 0.5px rgba(0,0,0,0.12); }
.nav { display: flex; gap: 26px; margin-left: auto; }
.nav a { color: var(--ink-2); font-size: 0.9375rem; }
.nav a:hover, .nav a[aria-current] { color: var(--ink); text-decoration: none; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: inherit; font-weight: 600; font-size: 0.9375rem; line-height: 1;
  padding: 11px 18px; border-radius: 999px; border: 0; cursor: pointer;
  background: var(--green); color: #fff;
  transition: background-color 0.15s ease, transform 0.15s ease;
}
.btn:hover { background: var(--green-hover); text-decoration: none; }
.btn:active { transform: scale(0.98); }
@media (prefers-color-scheme: dark) { .btn { color: #08130d; } }
.btn-sm { padding: 8px 14px; font-size: 0.875rem; }

@media (max-width: 720px) {
  .nav { display: none; }
  .site-header .btn { margin-left: auto; }
}

/* ---------- Type ---------- */

.eyebrow {
  font-size: 0.9375rem; font-weight: 600; color: var(--green);
  letter-spacing: 0.005em; margin-bottom: 14px;
}
.display {
  font-size: clamp(2.75rem, 1.3rem + 6.2vw, 5.75rem);
  font-weight: 700; letter-spacing: -0.045em; line-height: 0.98;
}
.headline {
  font-size: clamp(2.125rem, 1.25rem + 3.6vw, 4rem);
  font-weight: 700; letter-spacing: -0.035em; line-height: 1.04;
}
.title {
  font-size: clamp(1.375rem, 1.1rem + 0.9vw, 1.75rem);
  font-weight: 650; letter-spacing: -0.02em; line-height: 1.2;
}
.lede {
  font-size: clamp(1.1875rem, 1.05rem + 0.55vw, 1.4375rem);
  line-height: 1.45; color: var(--ink-2); letter-spacing: -0.01em;
}
.lede strong { color: var(--ink); font-weight: 600; }
.muted { color: var(--ink-2); }
.green { color: var(--green); }
.fine { font-size: 0.8125rem; line-height: 1.5; color: var(--ink-2); }

/* ---------- Sections ---------- */

.section { padding: var(--section) 0; }
.section.alt { background: var(--bg-alt); }
.section-head { max-width: 760px; margin-bottom: clamp(44px, 6vw, 72px); }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head .lede { margin-top: 20px; }

.split .headline { font-size: clamp(2.125rem, 1.2rem + 2.8vw, 3.375rem); }
.split {
  display: grid; gap: clamp(48px, 7vw, 96px);
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center;
}
@media (max-width: 900px) {
  .split { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- Store badges ---------- */

.badges { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.badges a { display: block; border-radius: 9px; transition: transform 0.15s ease, opacity 0.15s ease; }
.badges a:hover { opacity: 0.86; }
.badges a:active { transform: scale(0.98); }
.badges img { height: 50px; width: auto; }
.badges.center { justify-content: center; }
@media (max-width: 380px) { .badges img { height: 44px; } }

/* ---------- Devices ---------- */

.phone {
  position: relative;
  width: var(--w, 320px);
  aspect-ratio: 720 / 1564;
  border-radius: calc(var(--w, 320px) * 0.155);
  padding: calc(var(--w, 320px) * 0.032);
  background: #111;
  box-shadow:
    inset 0 0 0 1.5px #3a3a3c,
    0 0 0 1px rgba(0, 0, 0, 0.06),
    0 40px 80px -36px rgba(20, 30, 24, 0.5),
    0 18px 36px -24px rgba(20, 30, 24, 0.35);
  flex: none;
}
.phone img {
  width: 100%; height: 100%; object-fit: cover;
  border-radius: calc(var(--w, 320px) * 0.125);
  background: var(--surface);
}

.watch {
  position: relative;
  width: var(--w, 150px);
  aspect-ratio: 416 / 496;
  padding: calc(var(--w, 150px) * 0.08);
  border-radius: calc(var(--w, 150px) * 0.3);
  background: #0b0b0b;
  box-shadow:
    inset 0 0 0 1.5px #3a3a3c,
    0 30px 60px -30px rgba(0, 0, 0, 0.55);
  flex: none;
}
.watch img { width: 100%; height: 100%; border-radius: calc(var(--w, 150px) * 0.22); }
.watch::after {
  content: ""; position: absolute; right: -5px; top: 30%;
  width: 6px; height: 18%; border-radius: 0 4px 4px 0; background: #2a2a2c;
}

/* ---------- Hero ---------- */

.hero { padding: clamp(48px, 8vw, 112px) 0 clamp(72px, 10vw, 128px); overflow: hidden; }
.hero .split { grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); }
.hero .display { font-size: clamp(2.6rem, 1rem + 5.2vw, 5rem); }
.hero-icon { width: 76px; height: 76px; border-radius: 17px; margin-bottom: 28px; box-shadow: var(--shadow), 0 0 0 0.5px rgba(0,0,0,0.1); }
.hero .display .green { display: block; }
.hero .lede { margin: 26px 0 36px; max-width: 30ch; }
.hero .fine { margin-top: 18px; }
.hero-visual {
  position: relative; display: flex; justify-content: center;
  padding: 0 0 24px;
}
.hero-visual::before {
  content: ""; position: absolute; z-index: -1;
  width: 120%; aspect-ratio: 1; top: 50%; left: 50%; transform: translate(-50%, -50%);
  background: radial-gradient(closest-side, var(--green-soft), transparent 70%);
}
.hero-visual .phone { --w: clamp(250px, 27vw, 330px); }
.hero-visual .watch {
  --w: clamp(118px, 12vw, 156px);
  position: absolute; bottom: 0; left: calc(50% + clamp(70px, 9vw, 120px));
}
@media (max-width: 900px) {
  .hero .split { grid-template-columns: minmax(0, 1fr); text-align: center; }
  .hero-icon { margin-left: auto; margin-right: auto; }
  .hero .lede { margin-left: auto; margin-right: auto; }
  .hero .badges { justify-content: center; }
  .hero-visual .watch { left: calc(50% + 80px); }
}
@media (max-width: 480px) {
  .hero-visual .watch { left: auto; right: 0; }
}

/* ---------- Timer section: presets ---------- */

.presets {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px;
}
.preset {
  background: var(--surface); border: 1px solid var(--line); border-radius: 22px;
  padding: 22px 22px 20px;
  display: flex; flex-direction: column; gap: 4px;
  min-width: 0; container-type: inline-size;
}
/* The label is sized by the tile it sits in, not the viewport: "Custom" is six
   wide letters where "16:8" is four narrow ones, and at laptop widths the
   viewport-based size let it run past the tile's right edge. 25cqi keeps the
   longest label inside the tile's content box; the vw line is the fallback for
   browsers without container units. */
.preset b { font-size: clamp(1.5rem, 1rem + 1.4vw, 2.5rem); font-size: clamp(1.375rem, 25cqi, 2.5rem); font-weight: 650; letter-spacing: -0.03em; line-height: 1; font-variant-numeric: tabular-nums; }
.preset span { color: var(--ink-2); font-size: 0.9375rem; }
.preset.on { background: var(--green-soft); border-color: var(--green); }
.preset.on b { color: var(--green); }
@media (max-width: 480px) {
  .presets { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .preset { padding: 18px; border-radius: 18px; }
}

.points {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(28px, 4vw, 48px);
  margin-top: clamp(56px, 7vw, 88px); padding-top: clamp(36px, 4vw, 48px);
  border-top: 1px solid var(--line);
}
.points h3 { font-size: 1.125rem; font-weight: 650; letter-spacing: -0.01em; margin-bottom: 8px; }
.points p { color: var(--ink-2); }
@media (max-width: 820px) { .points { grid-template-columns: 1fr; } }

/* ---------- History section ---------- */

.phones {
  position: relative; display: flex; justify-content: center; align-items: flex-start;
}
.phones .phone { --w: min(clamp(220px, 24vw, 300px), calc((100vw - 2 * var(--gutter)) / 1.86)); }
.phones .phone + .phone { margin-left: calc(var(--w) * -0.16); margin-top: calc(var(--w) * 0.22); }
.phones .phone:first-child { z-index: 1; }

.checks { list-style: none; margin-top: 32px; display: grid; gap: 14px; }
.checks li { display: flex; gap: 12px; align-items: flex-start; font-size: 1.0625rem; }
.checks li::before {
  content: ""; flex: none; width: 22px; height: 22px; margin-top: 1px; border-radius: 50%;
  background: var(--green) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 22 22'%3E%3Cpath d='M6.5 11.5l3 3 6-7' fill='none' stroke='white' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 22px no-repeat;
}
@media (prefers-color-scheme: dark) {
  .checks li::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 22 22'%3E%3Cpath d='M6.5 11.5l3 3 6-7' fill='none' stroke='%2308130d' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  }
}
.pill {
  display: inline-flex; align-items: center; gap: 8px;
  margin-top: 32px; padding: 9px 16px; border-radius: 999px;
  background: var(--green-soft); color: var(--green); font-weight: 600; font-size: 0.9375rem;
}

/* ---------- Stages timeline ---------- */

.stages {
  list-style: none;
  display: grid; grid-template-columns: 4fr 4fr 4fr 4fr 8fr 5fr; gap: 6px;
}
.stage { position: relative; padding-top: 30px; }
.stage .bar { height: 14px; border-radius: 7px; background: var(--c); }
.stage h3 { font-size: 1rem; font-weight: 650; letter-spacing: -0.01em; margin-top: 18px; line-height: 1.25; }
.stage .hrs { display: block; font-size: 0.875rem; color: var(--ink-2); margin-top: 2px; font-variant-numeric: tabular-nums; }
.stage p { font-size: 0.875rem; color: var(--ink-2); margin-top: 8px; line-height: 1.45; }
.stage h3, .stage .hrs, .stage p { padding-right: 14px; }
.stage:nth-child(1) { --c: color-mix(in srgb, var(--green) 12%, var(--bg-alt)); }
.stage:nth-child(2) { --c: color-mix(in srgb, var(--green) 26%, var(--bg-alt)); }
.stage:nth-child(3) { --c: color-mix(in srgb, var(--green) 44%, var(--bg-alt)); }
.stage:nth-child(4) { --c: color-mix(in srgb, var(--green) 64%, var(--bg-alt)); }
.stage:nth-child(5) { --c: color-mix(in srgb, var(--green) 82%, var(--bg-alt)); }
.stage:nth-child(6) { --c: var(--green); }
.stage .bar { background: var(--c); }
.section.alt .stage:nth-child(1) .bar { box-shadow: inset 0 0 0 1px var(--line); }
.stage.now::before {
  content: "You are here"; position: absolute; top: 0; left: 50%; transform: translateX(-50%);
  font-size: 0.75rem; font-weight: 650; color: var(--green); white-space: nowrap;
}
.stage.now .bar { outline: 3px solid var(--bg-alt); box-shadow: 0 0 0 5px var(--green); }
@media (max-width: 900px) {
  .stages { grid-template-columns: 1fr; gap: 0; }
  .stage { display: grid; grid-template-columns: 14px 1fr; column-gap: 20px; padding: 0 0 22px; }
  .stage > * { grid-column: 2; }
  .stage .bar { grid-column: 1; grid-row: 1 / span 4; width: 14px; height: auto; min-height: 100%; }
  .stage h3 { margin-top: 0; }
  .stage.now::before { position: static; transform: none; grid-column: 2; order: -1; margin-bottom: 2px; }
  .stage.now .bar { box-shadow: 0 0 0 4px var(--green); }
}
.stages-note { margin-top: 36px; }

/* ---------- Pro bento ---------- */

.bento {
  display: grid; grid-template-columns: repeat(12, 1fr); gap: 16px;
}
.tile {
  position: relative; overflow: hidden;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: clamp(26px, 3vw, 36px);
  display: flex; flex-direction: column;
}
.tile h3 { font-size: clamp(1.25rem, 1.05rem + 0.6vw, 1.5rem); font-weight: 650; letter-spacing: -0.02em; line-height: 1.2; }
.tile p { color: var(--ink-2); margin-top: 8px; max-width: 46ch; }
.tile .tag { font-size: 0.8125rem; font-weight: 600; color: var(--green); margin-bottom: 10px; }
.tile-wide { grid-column: span 8; }
.tile-tall { grid-column: span 4; grid-row: span 2; }
.tile-small { grid-column: span 3; }
.tile-img {
  margin: 28px calc(-1 * clamp(26px, 3vw, 36px)) calc(-1 * clamp(26px, 3vw, 36px));
  margin-top: auto; padding-top: 28px;
}
.tile-img img { width: 100%; height: auto; aspect-ratio: 2 / 1; object-fit: cover; object-position: 50% 46%; }
.tile-dark { background: #0b0b0b; border-color: #0b0b0b; color: #f5f5f7; }
.tile-dark h3 { color: #f5f5f7; }
.tile-dark p { color: #a1a1a6; }
.tile-dark .tag { color: #8fd3ac; }
@media (prefers-color-scheme: dark) { .tile-dark { border-color: var(--line); } }
.tile-dark .watch-wrap { flex: 1; padding-top: 36px; display: flex; justify-content: center; align-items: center; }
.tile-dark .watch { --w: clamp(150px, 16vw, 196px); box-shadow: inset 0 0 0 1.5px #3a3a3c, 0 0 0 1px #1c1c1e; }
.tile-small .icon {
  width: 40px; height: 40px; border-radius: 11px; margin-bottom: 18px;
  display: grid; place-items: center; background: var(--green-soft); color: var(--green);
}
.tile-small .icon svg { width: 22px; height: 22px; }
.tile-small h3 { font-size: 1.125rem; }
.tile-small p { font-size: 0.9375rem; }
.bento-note { margin-top: 28px; text-align: center; }
@media (max-width: 980px) {
  .tile-wide, .tile-tall { grid-column: span 12; grid-row: auto; }
  .tile-small { grid-column: span 6; }
}
@media (max-width: 560px) {
  .bento { gap: 12px; }
  .tile-small { grid-column: span 12; }
}

/* ---------- Manifesto (deep green) ---------- */

.deep {
  background: var(--deep); color: var(--deep-ink);
}
.deep .eyebrow { color: #9fd6b5; }
.deep .lede { color: var(--deep-ink-2); }
.nots {
  list-style: none;
  display: grid; grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--deep-line);
}
.nots li { padding: 32px 32px 36px 0; border-bottom: 1px solid var(--deep-line); }
.nots li:not(:nth-child(3n + 1)) { padding-left: 32px; border-left: 1px solid var(--deep-line); }
.nots h3 {
  font-size: clamp(1.5rem, 1.15rem + 1.1vw, 2rem); font-weight: 700; letter-spacing: -0.03em; line-height: 1.1;
  color: var(--deep-ink);
}
.nots p { color: var(--deep-ink-2); margin-top: 10px; max-width: 34ch; }
@media (max-width: 900px) {
  .nots { grid-template-columns: 1fr 1fr; }
  .nots li, .nots li:not(:nth-child(3n + 1)) { padding: 28px 24px 30px 0; border-left: 0; }
  .nots li:nth-child(2n) { padding-left: 24px; border-left: 1px solid var(--deep-line); }
}
@media (max-width: 560px) {
  .nots { grid-template-columns: 1fr; }
  .nots li, .nots li:nth-child(2n) { padding: 24px 0; border-left: 0; }
}

/* ---------- Privacy ---------- */

.privacy-big { text-align: center; }
.privacy-big .display { margin: 0 auto; }
.privacy-big .lede { max-width: 44ch; margin: 28px auto 0; }
.facts {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px;
  margin-top: clamp(48px, 6vw, 72px); text-align: left;
}
.fact { background: var(--surface); border: 1px solid var(--line); border-radius: 22px; padding: 26px; }
.fact h3 { font-size: 1.0625rem; font-weight: 650; margin-bottom: 6px; }
.fact p { color: var(--ink-2); font-size: 0.9375rem; }
.privacy-big .more { display: inline-block; margin-top: 36px; font-weight: 600; }
@media (max-width: 820px) { .facts { grid-template-columns: 1fr; } }

/* ---------- Pricing ---------- */

.plans { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; max-width: 960px; margin: 0 auto; }
.plan {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: clamp(28px, 4vw, 44px);
  display: flex; flex-direction: column;
}
.plan.pro { border: 2px solid var(--green); box-shadow: var(--shadow); }
.plan .name { font-size: 1.0625rem; font-weight: 650; }
.plan .price { margin-top: 18px; display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.plan .price b { font-size: clamp(2.75rem, 2rem + 2.4vw, 3.75rem); font-weight: 700; letter-spacing: -0.04em; line-height: 1; }
.plan .price span { color: var(--ink-2); font-size: 1.0625rem; }
.plan .pitch { margin-top: 10px; color: var(--ink-2); }
.plan ul { list-style: none; margin: 28px 0 0; padding-top: 24px; border-top: 1px solid var(--line); display: grid; gap: 11px; }
.plan li { display: flex; gap: 10px; font-size: 0.9875rem; line-height: 1.45; }
.plan li::before {
  content: ""; flex: none; width: 18px; height: 18px; margin-top: 2px;
  background: var(--green);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Cpath d='M4 9.5l3.2 3.2L14 5.5' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Cpath d='M4 9.5l3.2 3.2L14 5.5' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
}
.plan li.lead { font-weight: 600; }
.plan li.lead::before { display: none; }
.plan li small { color: var(--ink-2); font-size: 0.875rem; }
.plan .alt-price { margin-top: auto; padding-top: 28px; font-size: 0.9375rem; color: var(--ink-2); }
.promises {
  display: grid; grid-template-columns: 1fr 1fr; gap: 20px; max-width: 960px; margin: 20px auto 0;
}
.promise { padding: 28px clamp(28px, 4vw, 44px); border-radius: var(--radius); background: var(--bg-alt); }
.section.alt .promise { background: var(--bg); }
.promise h3 { font-size: 1.1875rem; font-weight: 650; letter-spacing: -0.015em; }
.promise p { color: var(--ink-2); margin-top: 6px; }
.pricing-note { max-width: 960px; margin: 28px auto 0; text-align: center; }
@media (max-width: 820px) {
  .plans, .promises { grid-template-columns: 1fr; }
}

/* ---------- FAQ teaser ---------- */

.faq-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px 64px; }
.faq-grid h3 { font-size: 1.125rem; font-weight: 650; letter-spacing: -0.01em; margin-bottom: 8px; }
.faq-grid p { color: var(--ink-2); }
.faq-more { margin-top: 48px; font-weight: 600; }
@media (max-width: 820px) { .faq-grid { grid-template-columns: 1fr; gap: 32px; } }

/* ---------- Final CTA ---------- */

.cta { text-align: center; }
.cta img.app { width: 96px; height: 96px; border-radius: 22px; margin: 0 auto 32px; box-shadow: var(--shadow), 0 0 0 0.5px rgba(0,0,0,0.1); }
.cta .lede { margin: 22px auto 40px; max-width: 34ch; }

/* ---------- Footer ---------- */

.site-footer {
  border-top: 1px solid var(--line);
  padding: 48px 0 56px;
  font-size: 0.875rem; color: var(--ink-2);
}
.site-footer .top { display: flex; flex-wrap: wrap; gap: 24px 48px; justify-content: space-between; align-items: flex-start; }
.site-footer .brand { font-size: 1rem; }
.site-footer .about { margin-top: 12px; max-width: 40ch; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 12px 28px; }
.site-footer nav a { color: var(--ink); }
.site-footer .legal { margin-top: 36px; padding-top: 20px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; }

/* ---------- Document pages (help, privacy, terms) ---------- */

.doc-hero { padding: clamp(56px, 8vw, 104px) 0 clamp(36px, 5vw, 56px); }
.doc-hero .headline { margin-top: 4px; }
.doc-hero .lede { margin-top: 18px; max-width: 34ch; }
.tldr {
  margin-top: 32px; padding: 22px 26px; border-radius: 20px;
  background: var(--green-soft); color: var(--ink);
  font-size: clamp(1.25rem, 1.1rem + 0.6vw, 1.5rem); font-weight: 650; letter-spacing: -0.02em;
}
.doc { padding-bottom: var(--section); }
.doc h2 {
  font-size: clamp(1.375rem, 1.15rem + 0.7vw, 1.75rem); font-weight: 700; letter-spacing: -0.025em; line-height: 1.2;
  margin: 56px 0 14px;
}
.doc h2:first-child { margin-top: 0; }
.doc h3 { font-size: 1.0625rem; font-weight: 650; margin: 24px 0 6px; }
.doc p, .doc li { color: var(--ink-2); }
.doc p + p { margin-top: 14px; }
.doc ul { padding-left: 1.25rem; margin-top: 10px; display: grid; gap: 6px; }
.doc .updated { margin-top: 56px; padding-top: 20px; border-top: 1px solid var(--line); }

/* Help: topic chips + accordions */
.topics { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 32px; }
.topics a {
  padding: 8px 15px; border-radius: 999px; font-size: 0.9375rem; font-weight: 500;
  background: var(--surface); border: 1px solid var(--line); color: var(--ink);
}
.topics a:hover { border-color: var(--green); color: var(--green); text-decoration: none; }
.qa { border-top: 1px solid var(--line); }
.qa details { border-bottom: 1px solid var(--line); }
.qa summary {
  list-style: none; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center; gap: 20px;
  padding: 20px 0; font-size: 1.0625rem; font-weight: 600; color: var(--ink);
}
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after {
  content: ""; flex: none; width: 12px; height: 12px;
  border-right: 2px solid var(--ink-2); border-bottom: 2px solid var(--ink-2);
  transform: translateY(-3px) rotate(45deg); transition: transform 0.2s ease;
}
.qa details[open] summary::after { transform: translateY(2px) rotate(-135deg); }
.qa summary:hover { color: var(--green); }
.qa .a { padding: 0 0 22px; max-width: 64ch; }
.qa .a p + p { margin-top: 12px; }
.doc .intro { font-size: 1.0625rem; margin-bottom: 8px; }
.contact {
  margin-top: 72px; padding: clamp(28px, 4vw, 44px); border-radius: var(--radius);
  background: var(--bg-alt); text-align: center;
}
.contact h2 { margin: 0 0 8px; }
.contact p { margin: 0 auto; max-width: 44ch; }
.contact .btn { margin-top: 22px; }

/* 404 */
.lost { min-height: 62vh; display: grid; place-items: center; text-align: center; padding: var(--section) 0; }
.lost .lede { margin: 18px auto 32px; max-width: 30ch; }

/* ---------- Reveal on scroll (only when JS is running) ---------- */

.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.8s cubic-bezier(.2,.7,.2,1), transform 0.8s cubic-bezier(.2,.7,.2,1); }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; transition: none; }
}

/* Platform tag on the Pro tiles: which store the feature lives in. */
.plat { display: inline-block; vertical-align: middle; margin-left: 8px; padding: 2px 8px; border-radius: 999px; font-size: 0.6875rem; font-weight: 600; letter-spacing: 0.02em; color: var(--ink-2); background: var(--surface-2, rgba(127,127,127,0.12)); border: 1px solid var(--line); }
.tile-dark .plat { color: #a1a1a6; background: #1c1c1e; border-color: #3a3a3c; }
.tile .tag .plat { color: var(--ink-2); }
.nots a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
.maker { margin-top: 36px; text-align: center; color: var(--deep-ink-2); }
.maker a { color: #9fd6b5; }
