/* Acyntria site styles.
   Colors come from the Acyntria Notes "Paper" theme (Color.kt), so the site matches the app.
   Shape system: containers 20px radius, interactive elements and tags fully round. Keep it that way.
   Z-index scale: 50 sticky header, 100 skip link. Nothing else should need one. */

@font-face {
  font-family: "Geist";
  src: url("/assets/fonts/Geist-Variable.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

/* Studio palette: white, near-black ink (from the logo) and the app icon's blue. */
:root {
  --bg: #ffffff;
  --surface: #f8f8f9;
  --surface-2: #f1f1f3;
  --ink: #0f1115;
  --ink-2: #454a53;
  --ink-3: #686d76;
  --line: #e3e4e8;
  --accent: #1865c4;
  --accent-text: #124f9c;
  --accent-ink: #ffffff;
  --accent-soft: #e6effb;
  --shadow-rgb: 15 17 21;

  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --spring: cubic-bezier(.34, 1.56, .64, 1);

  --radius: 20px;
  --max: 1120px;
  --gutter: clamp(16px, 5vw, 40px);
  --font: "Geist", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color-scheme: light;
}
:root[data-theme="light"] { color-scheme: light; }

:root[data-theme="dark"] {
  --bg: #0b0d12;
  --surface: #12151c;
  --surface-2: #1a1e27;
  --ink: #eceef2;
  --ink-2: #c0c5ce;
  --ink-3: #8f95a1;
  --line: #252a35;
  --accent: #5b9df0;
  --accent-text: #8ab9f7;
  --accent-ink: #04142b;
  --accent-soft: #12233f;
  --shadow-rgb: 0 0 0;
  color-scheme: dark;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) {
    --bg: #0b0d12;
    --surface: #12151c;
    --surface-2: #1a1e27;
    --ink: #eceef2;
    --ink-2: #c0c5ce;
    --ink-3: #8f95a1;
    --line: #252a35;
    --accent: #5b9df0;
    --accent-text: #8ab9f7;
    --accent-ink: #04142b;
    --accent-soft: #12233f;
    --shadow-rgb: 0 0 0;
    color-scheme: dark;
  }
}

/* App scope: Acyntria Notes keeps its warm Paper palette. Put data-brand="notes" on <html>
   (whole page) or on one element (a card). Copy this block for each future app. */
[data-brand="notes"] {
  --bg: #fff8f3;
  --surface: #fffdfb;
  --surface-2: #f5ebe0;
  --ink: #221a12;
  --ink-2: #52443a;
  --ink-3: #6f6154;
  --line: #e6d6c8;
  --accent: #8c5a3d;
  --accent-text: #6b3f27;
  --accent-ink: #ffffff;
  --accent-soft: #ffdcc2;
  --shadow-rgb: 34 26 18;
}
:root[data-theme="dark"] [data-brand="notes"],
:root[data-theme="dark"][data-brand="notes"] {
  --bg: #19120c;
  --surface: #211810;
  --surface-2: #2d2218;
  --ink: #efe0d4;
  --ink-2: #d6c3b4;
  --ink-3: #9f8d7f;
  --line: #3d3025;
  --accent: #ffb68c;
  --accent-text: #ffb68c;
  --accent-ink: #562100;
  --accent-soft: #3a2412;
  --shadow-rgb: 0 0 0;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) [data-brand="notes"],
  :root:not([data-theme])[data-brand="notes"] {
    --bg: #19120c;
    --surface: #211810;
    --surface-2: #2d2218;
    --ink: #efe0d4;
    --ink-2: #d6c3b4;
    --ink-3: #9f8d7f;
    --line: #3d3025;
    --accent: #ffb68c;
    --accent-text: #ffb68c;
    --accent-ink: #562100;
    --accent-soft: #3a2412;
    --shadow-rgb: 0 0 0;
  }
}
[data-brand] { color: var(--ink); }
html[data-brand] { background: var(--bg); }

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

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

html { scrollbar-color: color-mix(in srgb, var(--ink) 32%, transparent) transparent; accent-color: var(--accent); }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-underline-offset: .18em; text-decoration-thickness: 1px; }
h1, h2, h3 { line-height: 1.08; letter-spacing: -0.03em; margin: 0; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
::selection { background: var(--accent-soft); color: var(--ink); }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.skip {
  position: absolute; left: -9999px; top: 8px;
  background: var(--ink); color: var(--bg); padding: 8px 14px; border-radius: 999px; z-index: 100;
}
.skip:focus { left: 8px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

/* ---------- Logo masks (footer, decorative marks) ---------- */

.logo {
  display: block; background-color: currentColor; aspect-ratio: 955 / 151;
  -webkit-mask: url("/assets/logo.svg") no-repeat left center / contain;
          mask: url("/assets/logo.svg") no-repeat left center / contain;
}
.mark {
  display: block; background-color: currentColor; aspect-ratio: 224 / 151;
  -webkit-mask: url("/assets/mark.svg") no-repeat center / contain;
          mask: url("/assets/mark.svg") no-repeat center / contain;
}

/* ---------- 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(14px);
          backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s;
}
.site-header.scrolled { border-bottom-color: var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 16px; }
.brand { color: var(--ink); text-decoration: none; }
.brand .logo-svg { height: 26px; width: auto; }
.nav { display: flex; align-items: center; gap: 4px; }
.nav a {
  text-decoration: none; color: var(--ink-2); font-size: 15px; font-weight: 500;
  padding: 11px 13px; border-radius: 999px; transition: color .15s, background .15s;
}
.nav a:hover { color: var(--ink); background: var(--surface-2); }
.nav a[aria-current="page"] { color: var(--ink); }
.nav a.btn { color: var(--accent-ink); margin-left: 4px; padding: 9px 18px; font-size: 15px; }
.nav a.btn:hover { background: var(--ink); color: var(--bg); }
.nav a.btn.ghost { color: var(--ink); background: transparent; }
.nav a.btn.ghost:hover { background: var(--surface-2); color: var(--ink); }
@media (max-width: 640px) {
  .nav a.hide-sm, .nav a .pre { display: none; }
  .brand .logo-svg { height: 20px; }
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex; align-items: center; gap: 8px; white-space: nowrap;
  background: var(--accent); color: var(--accent-ink);
  font: inherit; font-weight: 600; font-size: 16px; text-decoration: none;
  padding: 13px 22px; border-radius: 999px; border: 0; cursor: pointer;
  transition: transform .15s, background .15s, color .15s;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0) scale(.98); }
.btn.ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line); }
.btn.ghost:hover { box-shadow: inset 0 0 0 1.5px var(--ink-3); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- App icon (the real Acyntria Notes launcher icon) ---------- */

.app-icon { display: block; width: 72px; height: 72px; border-radius: 22%; box-shadow: 0 0 0 1px var(--line), 0 10px 22px -10px rgb(var(--shadow-rgb) / .4); background: #fff; }
.feature-copy .app-icon { margin-bottom: 22px; }

/* ---------- Tags ---------- */

.tag {
  display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase;
  padding: 5px 11px; border-radius: 999px; background: var(--surface-2); color: var(--ink-2);
}
.tag.soon { background: var(--accent-soft); color: var(--accent-text); }

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

.hero { position: relative; padding: clamp(40px, 6vw, 88px) 0 clamp(56px, 7vw, 96px); overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: 1.25fr .75fr; gap: clamp(24px, 5vw, 64px); align-items: center; }
.hero-bg { position: absolute; right: -8%; top: 50%; width: min(70vw, 820px); transform: translateY(-50%); color: var(--ink); opacity: .035; pointer-events: none; }
.hero h1 { font-size: clamp(36px, 5.2vw, 64px); font-weight: 720; letter-spacing: -0.04em; line-height: 1.02; }
.hero h1 em { font-style: normal; color: var(--accent); }
.hero .lede { margin-top: 22px; font-size: clamp(18px, 1.6vw, 20px); color: var(--ink-2); max-width: 36ch; }
.hero .actions { margin-top: 32px; align-items: center; }
.hero .app-icon { width: 64px; height: 64px; margin-bottom: 24px; }
@media (max-width: 860px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .phone-stage { order: 2; }
}

/* ---------- App screenshots (already framed, with transparent corners) ---------- */

.phone-stage { display: flex; justify-content: center; }
.shot { display: block; width: min(290px, 74vw); height: auto; filter: drop-shadow(0 30px 40px rgb(var(--shadow-rgb) / .18)); }
.shot.tilt { transform: rotate(-4deg); }
.shot.tilt-r { transform: rotate(4deg); }
@media (max-width: 860px) { .shot { width: min(250px, 66vw); } }


.duo { display: flex; justify-content: center; align-items: flex-start; width: min(540px, 100%); margin: 0 auto; }
.duo .shot { width: 54%; filter: drop-shadow(0 26px 34px rgb(var(--shadow-rgb) / .2)); }
.duo .shot:first-child { transform: rotate(-5deg) translateY(7%); }
.duo .shot + .shot { position: relative; width: 58%; margin-left: -14%; transform: rotate(2deg); }
@media (max-width: 640px) {
  .duo .shot:first-child { display: none; }
  .duo .shot + .shot { width: min(280px, 72vw); margin: 0; transform: none; }
}

/* ---------- Hero notebook page: a note that can be locked ---------- */

.paper-stage { display: flex; flex-direction: column; align-items: center; gap: 18px; }
.paper {
  position: relative; width: min(440px, 100%);
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px 26px 20px 58px;
  box-shadow: 0 34px 50px -30px rgb(var(--shadow-rgb) / .38), 0 2px 6px rgb(var(--shadow-rgb) / .06);
  transform: rotate(-1.2deg);
}
.paper::before { content: ""; position: absolute; left: 42px; top: 0; bottom: 0; width: 1px; background: color-mix(in srgb, var(--accent) 38%, transparent); }
.paper-lines { background-image: repeating-linear-gradient(to bottom, transparent 0, transparent 31px, var(--line) 31px, var(--line) 32px); }
.paper .ln { margin: 0; line-height: 32px; white-space: nowrap; overflow: hidden; text-overflow: clip; color: var(--ink); }
.paper .ln.strong { font-weight: 680; }
.paper.is-locked .ln { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 14.5px; letter-spacing: .02em; color: var(--ink-2); }
.paper-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; margin-top: 18px; padding-top: 16px; border-top: 1px dashed var(--line); }
.paper-foot .fine { margin: 0; }
.btn.lock-btn { padding: 10px 18px; font-size: 15px; min-height: 44px; }
.lock-ico { width: 18px; height: 18px; background: currentColor; -webkit-mask: url("/assets/lock.svg") center / contain no-repeat; mask: url("/assets/lock.svg") center / contain no-repeat; }
.lock-btn[aria-pressed="true"] .lock-ico { -webkit-mask-image: url("/assets/unlock.svg"); mask-image: url("/assets/unlock.svg"); }
.fine.caption { text-align: center; max-width: 36ch; }
@media (max-width: 860px) { .paper-stage { order: 2; } }
@media (max-width: 480px) { .paper { padding: 20px 16px 18px 44px; } .paper::before { left: 30px; } .paper.is-locked .ln { font-size: 12.5px; } }

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

.section { padding: clamp(52px, 6.5vw, 88px) 0; }
.section.flush-top { padding-top: 0; }
.section-head { max-width: 640px; margin-bottom: clamp(32px, 5vw, 56px); }
.section-head h2, .split h2 { font-size: clamp(30px, 4vw, 46px); font-weight: 700; }
.section-head p { margin-top: 16px; color: var(--ink-2); font-size: 18px; max-width: 54ch; }
.section.tight { padding: clamp(40px, 5vw, 64px) 0; }
.section.tight .section-head { margin-bottom: clamp(24px, 3.5vw, 40px); }
.alt { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.narrow { max-width: 760px; }

.fine { color: var(--ink-3); font-size: 14px; }
.fine.center { text-align: center; margin-top: 18px; }
.fine a { color: var(--accent-text); }
.fine.reveal { margin-top: 18px; }

/* ---------- Two-column statement + stacked facts ---------- */

.split { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(32px, 7vw, 104px); align-items: start; }
.split-head { position: sticky; top: 104px; }
.split-head p { margin-top: 18px; color: var(--ink-2); font-size: 18px; max-width: 38ch; }
.split-head .fine { margin-top: 20px; }
.facts { display: grid; gap: 0; }
.fact { padding: 24px 0; border-top: 1px solid var(--line); }
.fact:last-child { padding-bottom: 0; }
.fact h3 { font-size: 20px; font-weight: 680; letter-spacing: -0.02em; }
.fact p { color: var(--ink-2); margin-top: 8px; max-width: 54ch; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } .split-head { position: static; } }

/* ---------- Feature card (home) ---------- */

.feature-card {
  position: relative; transition: border-color .2s; display: grid; grid-template-columns: .95fr 1.05fr; gap: clamp(24px, 5vw, 64px); align-items: center;
  background: var(--bg); border: 1px solid var(--line); border-radius: calc(var(--radius) + 8px);
  padding: clamp(24px, 5vw, 56px); overflow: hidden;
}
.feature-card:hover { border-color: var(--ink-3); }
.feature-copy h3 { font-size: clamp(30px, 4vw, 42px); font-weight: 720; margin: 14px 0 12px; }
.feature-copy h3 a { text-decoration: none; }
.feature-copy h3 a::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.feature-copy p { color: var(--ink-2); max-width: 46ch; }
.feature-copy .actions { margin-top: 28px; position: relative; }
.feature-art { display: flex; justify-content: center; }
.feature-art .duo { width: min(480px, 100%); }
@media (max-width: 860px) { .feature-card { grid-template-columns: 1fr; } }

/* ---------- Bento ---------- */

.bento { display: grid; grid-template-columns: repeat(12, 1fr); gap: 16px; }
.cell { grid-column: span 6; background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px 28px; }
.cell.s7 { grid-column: span 7; } .cell.s5 { grid-column: span 5; } .cell.s12 { grid-column: 1 / -1; }
.cell h3 { font-size: 21px; font-weight: 680; letter-spacing: -0.02em; }
.cell p { color: var(--ink-2); margin-top: 10px; max-width: 48ch; }
.cell.tint { background: var(--accent-soft); border-color: transparent; }
.cell.tint p { color: var(--ink); }
.cell.deep { background: var(--ink); border-color: transparent; color: var(--bg); }
.cell.deep p { color: color-mix(in srgb, var(--bg) 78%, transparent); }
.cell.big h3 { font-size: clamp(26px, 3vw, 34px); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.chip { padding: 6px 13px; border-radius: 999px; background: var(--surface-2); font-size: 14px; font-weight: 600; color: var(--ink-2); }
.cell.tint .chip { background: color-mix(in srgb, var(--bg) 60%, transparent); color: var(--ink); }
.theme-dots { list-style: none; padding: 0; margin: 20px 0 0; display: flex; flex-wrap: wrap; gap: 10px; }
.theme-dots li { position: relative; width: 36px; height: 36px; border-radius: 50%; background: var(--bgc); box-shadow: inset 0 0 0 1px var(--line); }
.theme-dots li::after { content: ""; position: absolute; inset: 11px; border-radius: 50%; background: var(--fgc); }
.sw-paper { --bgc: #fff8f3; --fgc: #8c5a3d; } .sw-midnight { --bgc: #13131a; --fgc: #c3c0ff; }
.sw-sage { --bgc: #f3fbf6; --fgc: #296a44; } .sw-rose { --bgc: #fff7f9; --fgc: #a1395c; }
.sw-glacier { --bgc: #f4fafe; --fgc: #00668a; } .sw-twilight { --bgc: #fbf8ff; --fgc: #6a5296; }
.sw-graphite { --bgc: #f8f9fb; --fgc: #2b2c2d; } .sw-champagne { --bgc: #fcf9f4; --fgc: #785901; }
@media (max-width: 760px) { .cell, .cell.s7, .cell.s5, .cell.s12 { grid-column: 1 / -1; } }

/* ---------- Gallery ---------- */

.phones { display: flex; justify-content: center; align-items: flex-start; gap: clamp(14px, 3vw, 40px); flex-wrap: wrap; }
.phones figure { margin: 0; width: min(280px, 82vw); text-align: center; }
.phones .shot { width: 100%; }
.phones figcaption { margin-top: 14px; color: var(--ink-2); font-size: 15px; }

/* ---------- Call to action band ---------- */

.cta {
  position: relative; overflow: hidden;
  background: var(--ink); color: var(--bg); border-radius: calc(var(--radius) + 8px);
  padding: clamp(40px, 7vw, 80px) clamp(24px, 6vw, 72px);
  display: grid; grid-template-columns: 1fr auto; gap: 32px; align-items: end;
}
.cta h2 { font-size: clamp(30px, 4.4vw, 48px); font-weight: 720; max-width: 16ch; }
.cta p { margin-top: 14px; opacity: .78; font-size: 18px; max-width: 42ch; }
.cta .btn { background: var(--bg); color: var(--ink); position: relative; }
.cta-bg { position: absolute; right: -40px; bottom: -30px; width: 360px; color: var(--bg); opacity: .06; pointer-events: none; }
@media (max-width: 720px) { .cta { grid-template-columns: 1fr; align-items: start; } }

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

.site-footer { padding: 48px 0 40px; color: var(--ink-3); font-size: 14px; }
.site-footer .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 32px; }
.site-footer .brand .logo { height: 16px; color: var(--ink-2); }
.site-footer nav { display: flex; gap: 20px; flex-wrap: wrap; }
.site-footer a { text-decoration: none; display: inline-block; padding: 11px 0; }
.site-footer a:hover { color: var(--ink); text-decoration: underline; }

/* ---------- Long-form pages (legal, 404) ---------- */

.doc { padding: clamp(48px, 8vw, 96px) 0; }
.doc .wrap { max-width: 760px; }
.doc h1 { font-size: clamp(36px, 5vw, 52px); font-weight: 720; }
.doc .updated { margin-top: 12px; color: var(--ink-3); font-size: 15px; }
.doc .updated strong { font-weight: 600; color: var(--ink-2); }
.doc h2 { font-size: 22px; font-weight: 680; margin: 44px 0 12px; scroll-margin-top: 92px; }
.doc p, .doc li { color: var(--ink-2); }
.doc p + p { margin-top: 14px; }
.doc ul { padding-left: 22px; margin: 12px 0 0; }
.doc li + li { margin-top: 6px; }
.doc a { color: var(--accent-text); }
.doc .toc { margin: 28px 0 36px; padding: 20px 24px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.doc .toc ol { list-style: none; margin: 0; padding: 0; columns: 2; column-gap: 32px; font-size: 15px; }
.doc .toc li { break-inside: avoid; padding: 3px 0; }
.doc .toc a { color: var(--ink-2); text-decoration: none; }
.doc .toc a:hover { color: var(--accent-text); text-decoration: underline; }
@media (max-width: 640px) { .doc .toc ol { columns: 1; } }
.doc .doc-nav { margin-top: 56px; padding-top: 20px; border-top: 1px solid var(--line); font-size: 15px; }

.center-page { min-height: 70vh; display: grid; place-items: center; text-align: center; padding: 64px 0; }
.center-page .mark { width: 96px; margin: 0 auto 28px; color: var(--accent); }
.center-page h1 { font-size: clamp(36px, 6vw, 56px); font-weight: 720; }
.center-page p { color: var(--ink-2); margin: 14px auto 32px; max-width: 36ch; }

/* ---------- Plans table ---------- */

.table-wrap { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); overflow: hidden; }
.compare { width: 100%; border-collapse: collapse; }
.compare th, .compare td { padding: 14px 18px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.compare tbody tr:last-child th, .compare tbody tr:last-child td { border-bottom: 0; }
.compare thead th { padding-top: 18px; padding-bottom: 14px; }
.compare thead th:not(:first-child), .compare td { width: 24%; }
.compare tbody th[scope="row"] { font-weight: 500; color: var(--ink); }
.compare td { color: var(--ink-2); font-size: 15px; font-variant-numeric: tabular-nums; }
.compare tr.all td { width: auto; background: color-mix(in srgb, var(--accent-soft) 45%, transparent); color: var(--ink); }
.compare tr.grp th { background: var(--surface-2); font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); font-weight: 700; padding-top: 10px; padding-bottom: 10px; }
.plan { display: inline-block; padding: 4px 14px; border-radius: 999px; background: var(--surface-2); font-weight: 700; font-size: 14px; }
.plan.pro { background: var(--accent); color: var(--accent-ink); }
.yes { position: relative; display: inline-block; width: 16px; height: 16px; background: var(--accent-text); vertical-align: middle; -webkit-mask: url("/assets/check.svg") center / contain no-repeat; mask: url("/assets/check.svg") center / contain no-repeat; }
.no { display: inline-block; width: 12px; height: 2px; border-radius: 2px; background: var(--ink-3); opacity: .55; vertical-align: middle; }
@media (max-width: 640px) {
  .compare, .compare tbody { display: block; }
  .compare thead { display: none; }
  .compare tr { display: grid; grid-template-columns: 1fr 1fr; border-bottom: 1px solid var(--line); }
  .compare tbody tr:last-child { border-bottom: 0; }
  .compare th, .compare td { border: 0; padding: 0 16px; width: auto; }
  .compare tbody th[scope="row"] { grid-column: 1 / -1; padding-top: 14px; padding-bottom: 6px; }
  .compare td { padding-bottom: 14px; font-size: 14px; }
  .compare td::before { content: attr(data-label); display: block; font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 2px; }
  .compare tr.grp, .compare tr.all { display: block; }
  .compare tr.all td { padding: 14px 16px; }
  .compare tr.all td::before { content: none; }
  .compare tr.grp th { display: block; padding: 10px 16px; }
}

.honest { margin-top: 28px; border: 1.5px solid var(--accent); background: var(--accent-soft); border-radius: var(--radius); padding: 26px 28px; }
.honest h3 { font-size: 20px; font-weight: 700; }
.honest p { margin-top: 10px; color: var(--ink); }
.honest ul { margin: 14px 0 0; padding-left: 20px; display: grid; gap: 8px; color: var(--ink); }
.table-wrap + .honest { margin-top: 28px; }

.perms { width: 100%; border-collapse: collapse; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.perms th, .perms td { text-align: left; padding: 14px 20px; border-bottom: 1px solid var(--line); vertical-align: top; }
.perms tr:last-child th, .perms tr:last-child td { border-bottom: 0; }
.perms th { width: 32%; font-weight: 650; }
.perms td { color: var(--ink-2); }
.section .sub { font-size: 22px; font-weight: 680; margin: 56px 0 16px; }
@media (max-width: 560px) { .perms th, .perms td { display: block; width: auto; padding: 4px 18px; } .perms th { padding-top: 14px; } .perms td { padding-bottom: 14px; } }

/* ---------- What Pro adds + disclosure ---------- */

.pro-adds h3 { font-size: 22px; font-weight: 680; margin-bottom: 18px; }
.pro-adds ul { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 14px 40px; }
.pro-adds li { position: relative; padding-left: 30px; color: var(--ink); }
.pro-adds li::before { content: ""; position: absolute; left: 0; top: .28em; width: 16px; height: 16px; background: var(--accent-text); -webkit-mask: url("/assets/check.svg") center / contain no-repeat; mask: url("/assets/check.svg") center / contain no-repeat; }
@media (max-width: 760px) { .pro-adds ul { grid-template-columns: 1fr; } }

.compare-details { margin-top: 36px; }
.compare-details > summary {
  display: inline-flex; align-items: center; gap: 12px; cursor: pointer; list-style: none;
  padding: 12px 20px; border-radius: 999px; font-weight: 600; box-shadow: inset 0 0 0 1.5px var(--line);
  transition: box-shadow .15s;
}
.compare-details > summary::-webkit-details-marker { display: none; }
.compare-details > summary:hover { box-shadow: inset 0 0 0 1.5px var(--ink-3); }
.compare-details > summary::after { content: ""; width: 8px; height: 8px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: translateY(-2px) rotate(45deg); transition: transform .2s; }
.compare-details[open] > summary::after { transform: translateY(2px) rotate(-135deg); }
.compare-details .table-wrap { margin-top: 18px; }

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

.faq { border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary { cursor: pointer; list-style: none; padding: 20px 36px 20px 0; font-weight: 650; font-size: 18px; position: relative; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::before, .faq-item summary::after { content: ""; position: absolute; right: 6px; top: 50%; width: 14px; height: 2px; margin-top: -1px; border-radius: 2px; background: var(--ink-3); transition: transform .2s; }
.faq-item summary::after { transform: rotate(90deg); }
.faq-item[open] summary::after { transform: rotate(0); }
.faq-item p { color: var(--ink-2); padding: 0 0 22px; max-width: 62ch; }
.faq-item a { color: var(--accent-text); }

/* ---------- Animated logo (inline SVG; plays once per visit) ---------- */

.logo-svg .bar, .logo-svg .mk, .logo-svg .l { transform-box: fill-box; }
.logo-svg .bar { transform-origin: top; animation: logo-bar .55s cubic-bezier(.2, .7, .2, 1) backwards; }
.logo-svg .mk { animation: logo-mark .85s cubic-bezier(.3, .6, .2, 1) .15s backwards; transition: transform .35s cubic-bezier(.2, .7, .2, 1); }
.logo-svg .l { animation: logo-letter .6s cubic-bezier(.2, .7, .2, 1) backwards; }
.logo-svg g:first-of-type .l:nth-child(1) { animation-delay: .65s; }
.logo-svg g:first-of-type .l:nth-child(2) { animation-delay: .72s; }
.logo-svg g:first-of-type .l:nth-child(3) { animation-delay: .79s; }
.logo-svg g:first-of-type .l:nth-child(4) { animation-delay: .86s; }
.logo-svg g:first-of-type .l:nth-child(5) { animation-delay: .93s; }
.logo-svg g:first-of-type .l:nth-child(6) { animation-delay: 1s; }
.logo-svg g:first-of-type .l:nth-child(7) { animation-delay: 1.07s; }
.logo-svg g:first-of-type .l:nth-child(8) { animation-delay: 1.14s; }
.brand:hover .logo-svg .mk { transform: translateX(2px) scale(1.05); }
@keyframes logo-bar { from { transform: scaleY(0); } }
@keyframes logo-mark { from { clip-path: inset(0 100% 0 0); opacity: 0; } to { clip-path: inset(0 0 0 0); opacity: 1; } }
@keyframes logo-letter { from { opacity: 0; transform: translateY(45%); } }
.intro-done .logo-svg * { animation: none; }

/* ---------- Reveal on scroll ---------- */



@media print {
  .site-header, .site-footer, .hero-bg, .skip { display: none; }
  body { background: #fff; color: #000; }
  .doc p, .doc li, .doc .updated { color: #000; }
}


/* ---------- Theme switch ---------- */

.theme-toggle {
  display: none; place-items: center; flex: none; width: 44px; height: 44px; border: 0; border-radius: 50%;
  background: transparent; color: var(--ink-2); cursor: pointer; transition: background .15s, color .15s;
}
.js .theme-toggle { display: inline-grid; }
.theme-toggle:hover { background: var(--surface-2); color: var(--ink); }
.theme-toggle svg { width: 22px; height: 22px; overflow: visible; }
.theme-toggle .core, .theme-toggle .rays { transform-box: fill-box; transform-origin: center; }
.theme-toggle .core { transform: scale(.56); transition: transform .7s var(--spring); }
.theme-toggle .cut { transform: translate(15px, -15px); transition: transform .7s var(--ease-out); }
.theme-toggle .rays { transition: transform .7s var(--ease-out), opacity .35s; }
:root[data-theme="dark"] .theme-toggle .core { transform: scale(1); }
:root[data-theme="dark"] .theme-toggle .cut { transform: translate(0, 0); }
:root[data-theme="dark"] .theme-toggle .rays { transform: rotate(90deg) scale(.4); opacity: 0; }

/* Soft fallback when the browser cannot do the circular reveal */
html.theme-fade, html.theme-fade * { transition: background-color .4s ease, color .4s ease, border-color .4s ease, fill .4s ease, box-shadow .4s ease !important; }

/* Circular reveal from the button (View Transitions); the JS animates the clip-path */
html.theme-vt::view-transition-old(root), html.theme-vt::view-transition-new(root) { animation: none; mix-blend-mode: normal; }
html.theme-vt::view-transition-old(root) { z-index: 1; }
html.theme-vt::view-transition-new(root) { z-index: 2; }
html.theme-vt .site-header { view-transition-name: none; }

/* ---------- Smooth page-to-page transitions (cross-document View Transitions) ---------- */

@media (prefers-reduced-motion: no-preference) {
  @view-transition { navigation: auto; }
  .site-header { view-transition-name: site-header; }
  ::view-transition-old(root), ::view-transition-new(root) { animation-duration: .4s; animation-timing-function: var(--ease-out); }
}

/* ---------- Motion ---------- */

/* Entrance on load: one authored moment. Skipped once the visitor has already seen it this session. */
@keyframes line-rise { from { translate: 0 110%; } }
@keyframes fade-up { from { opacity: 0; translate: 0 18px; } }
@keyframes icon-pop { from { opacity: 0; scale: .7; translate: 0 10px; } }
@keyframes paper-in { from { opacity: 0; translate: 0 56px; rotate: -5deg; scale: .96; } }
.js .hero h1 .line { display: block; overflow: hidden; padding-bottom: .14em; margin-bottom: -.14em; }
.js .hero h1 .line > span { display: block; animation: line-rise 1s var(--ease-out) both; }
.js .hero h1 .line:nth-child(2) > span { animation-delay: .12s; }
.js .hero .lede { animation: fade-up .9s var(--ease-out) .3s both; }
.js .hero .actions { animation: fade-up .9s var(--ease-out) .45s both; }
.js .hero .app-icon { animation: icon-pop .9s var(--spring) .05s both; }
.js .paper { animation: paper-in 1.1s var(--spring) .35s both; }
.intro-done .hero h1 .line > span, .intro-done .hero .lede, .intro-done .hero .actions, .intro-done .hero .app-icon, .intro-done .paper { animation: none; }

/* Scroll reveals: different entrances for different kinds of content */
.js .reveal { opacity: 0; translate: 0 26px; transition: opacity .8s var(--ease-out), translate .9s var(--ease-out); }
.js .reveal.in { opacity: 1; translate: 0 0; }
.js .reveal-scale { opacity: 0; scale: .96; translate: 0 22px; transition: opacity .8s var(--ease-out), scale 1s var(--ease-out), translate 1s var(--ease-out); }
.js .reveal-scale.in { opacity: 1; scale: 1; translate: 0 0; }
.js .pop .shot { opacity: 0; translate: 0 56px; scale: .92; transition: opacity .9s var(--ease-out), translate 1.1s var(--spring), scale 1.1s var(--spring); }
.js .pop.in .shot { opacity: 1; translate: 0 0; scale: 1; }
.js .pop .shot + .shot { transition-delay: .14s; }
.phones figure:nth-child(2) .shot { transition-delay: .12s; }
.phones figure:nth-child(3) .shot { transition-delay: .24s; }
.reveal:nth-child(2) { transition-delay: .06s; } .reveal:nth-child(3) { transition-delay: .12s; }
.reveal:nth-child(4) { transition-delay: .18s; } .reveal:nth-child(5) { transition-delay: .24s; }
.reveal:nth-child(n+6) { transition-delay: .3s; }

/* Headline words rise in (short headlines only; split by main.js) */
.js .split-words .w { display: inline-block; opacity: 0; translate: 0 .55em; transition: opacity .7s var(--ease-out), translate .85s var(--ease-out); }
.js .split-words.in .w { opacity: 1; translate: 0 0; }
.split-words .w:nth-child(2) { transition-delay: .05s; } .split-words .w:nth-child(3) { transition-delay: .1s; }
.split-words .w:nth-child(4) { transition-delay: .15s; } .split-words .w:nth-child(5) { transition-delay: .2s; }
.split-words .w:nth-child(6) { transition-delay: .25s; } .split-words .w:nth-child(7) { transition-delay: .3s; }
.split-words .w:nth-child(n+8) { transition-delay: .35s; }

/* Buttons: a soft light sweep on hover */
.btn { position: relative; overflow: hidden; }
.btn:not(.ghost)::after { content: ""; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 30%, rgb(255 255 255 / .26) 50%, transparent 70%); translate: -130% 0; transition: translate .8s var(--ease-out); pointer-events: none; }
.btn:not(.ghost):hover::after { translate: 130% 0; }

/* Hover-capable devices: spotlight on feature cells, depth tilt on the phones */
@media (hover: hover) and (pointer: fine) {
  .cell { position: relative; overflow: hidden; isolation: isolate; }
  .cell::before {
    content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: 0; transition: opacity .35s;
    background: radial-gradient(340px circle at var(--mx, 50%) var(--my, 50%), color-mix(in srgb, var(--accent) 17%, transparent), transparent 70%);
  }
  .cell:hover::before { opacity: 1; }
  .duo { transform: perspective(1100px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform .3s ease-out; }
}

/* Scroll-linked, no JavaScript: reading progress line and a slow drift of the watermark */
.progress { display: none; }
@supports (animation-timeline: scroll()) {
  @media (prefers-reduced-motion: no-preference) {
    @keyframes progress { to { transform: scaleX(1); } }
    @keyframes drift { to { translate: 0 90px; } }
    .progress { display: block; position: fixed; inset: 0 0 auto 0; height: 3px; z-index: 60; background: var(--accent); transform: scaleX(0); transform-origin: left; animation: progress linear both; animation-timeline: scroll(root); }
    .hero-bg { animation: drift linear both; animation-timeline: scroll(root); animation-range: 0 700px; }
  }
}

/* Smooth opening for FAQ items and the comparison (where the browser supports it) */
:root { interpolate-size: allow-keywords; }
.faq-item::details-content, .compare-details::details-content { block-size: 0; overflow: clip; transition: block-size .4s var(--ease-out), content-visibility .4s allow-discrete; }
.faq-item[open]::details-content, .compare-details[open]::details-content { block-size: auto; }

/* Visitors who ask for less motion get the final, readable state with no movement */
@media (prefers-reduced-motion: reduce) {
  .js .hero h1 .line > span, .js .hero .lede, .js .hero .actions, .js .hero .app-icon, .js .paper { animation: none; }
  .js .reveal, .js .reveal-scale, .js .pop .shot, .js .split-words .w { opacity: 1; translate: none; scale: none; transition: none; }
  .btn:not(.ghost)::after, .theme-toggle *, .cell::before, .duo { transition: none; }
  .faq-item::details-content, .compare-details::details-content { transition: none; }
  .logo-svg * { animation: none !important; transition: none !important; }
}

/* ---------- In-page nav (Notes) ---------- */

.subnav {
  position: sticky; top: 68px; z-index: 40;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  -webkit-backdrop-filter: saturate(180%) blur(14px); backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line); border-top: 1px solid var(--line);
}
.subnav .wrap { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; }
.subnav .wrap::-webkit-scrollbar { display: none; }
.subnav a { flex: none; text-decoration: none; color: var(--ink-2); font-size: 15px; font-weight: 500; padding: 13px 14px; min-height: 44px; display: inline-flex; align-items: center; }
.subnav a:hover { color: var(--ink); }
html:has(.subnav) { scroll-padding-top: 132px; }
@media print { .subnav { display: none; } }
