/* Crosstela — site styles. One file, no framework.
   Warm paper light theme and warm charcoal dark theme, mirroring the app
   (docs/UI_DIRECTION.md: "тепла майстерня з інструментами хірурга"). */

@font-face {
  font-family: "Newsreader";
  font-style: normal;
  font-weight: 300 800;
  font-display: swap;
  src: url("fonts/newsreader-normal-latin.woff2") format("woff2");
}
@font-face {
  font-family: "Newsreader";
  font-style: italic;
  font-weight: 300 800;
  font-display: swap;
  src: url("fonts/newsreader-italic-latin.woff2") format("woff2");
}

:root {
  color-scheme: light dark;
  /* paper */
  --paper: #faf6ef;
  --paper-2: #f2ece2;
  --paper-3: #e9e1d4;
  --ink: #1e1a16;
  --ink-2: #4d453d;
  --ink-3: #837a70;
  --line: rgba(30, 26, 22, 0.11);
  --line-2: rgba(30, 26, 22, 0.2);
  --accent: #b14a32;
  --accent-hover: #9e4029;
  --on-accent: #fff7f2;
  --cloth: #ede6d8;
  --moss: #4f6b3a;
  --shadow: 0 1px 2px rgba(60, 40, 20, 0.06), 0 12px 40px -12px rgba(60, 40, 20, 0.22);
  --shadow-lg: 0 2px 4px rgba(60, 40, 20, 0.06), 0 40px 90px -30px rgba(60, 40, 20, 0.35);
  --bezel: #141210;
  --radius: 20px;
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, Inter, Helvetica, Arial, sans-serif;
  --serif: ui-serif, "New York", "Newsreader", "Iowan Old Style", Georgia, serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
}
:root[data-theme="dark"] {
  --paper: #1b1917;
  --paper-2: #232019;
  --paper-3: #2d2924;
  --ink: #f1eadf;
  --ink-2: #c3b9ab;
  --ink-3: #8f857a;
  --line: rgba(241, 234, 223, 0.12);
  --line-2: rgba(241, 234, 223, 0.22);
  --accent: #d8735a;
  --accent-hover: #e6866e;
  --on-accent: #1b1210;
  --moss: #8fae6f;
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 12px 40px -12px rgba(0, 0, 0, 0.6);
  --shadow-lg: 0 2px 4px rgba(0, 0, 0, 0.4), 0 40px 90px -30px rgba(0, 0, 0, 0.8);
  --bezel: #0c0b0a;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #1b1917;
    --paper-2: #232019;
    --paper-3: #2d2924;
    --ink: #f1eadf;
    --ink-2: #c3b9ab;
    --ink-3: #8f857a;
    --line: rgba(241, 234, 223, 0.12);
    --line-2: rgba(241, 234, 223, 0.22);
    --accent: #d8735a;
    --accent-hover: #e6866e;
    --on-accent: #1b1210;
    --moss: #8fae6f;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 12px 40px -12px rgba(0, 0, 0, 0.6);
    --shadow-lg: 0 2px 4px rgba(0, 0, 0, 0.4), 0 40px 90px -30px rgba(0, 0, 0, 0.8);
    --bezel: #0c0b0a;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg, canvas, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration-thickness: from-font; text-underline-offset: 0.14em; }
a:hover { color: var(--accent); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
button { font: inherit; color: inherit; }
::selection { background: rgba(177, 74, 50, 0.22); }

.skip {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--ink); color: var(--paper); padding: 10px 14px; border-radius: 10px;
}
.skip:focus { top: 12px; }

.wrap { width: min(1180px, 100% - 48px); margin-inline: auto; }
@media (max-width: 640px) { .wrap { width: min(1180px, 100% - 36px); } }

/* ---------- type ---------- */
.serif, h1, h2, .display { font-family: var(--serif); font-weight: 460; letter-spacing: -0.015em; }
h1 {
  font-size: clamp(2.5rem, 1.2rem + 4.2vw, 4.4rem);
  line-height: 1.02;
  margin: 0 0 0.6em;
  text-wrap: balance;
}
h2 {
  font-size: clamp(2rem, 1.1rem + 2.6vw, 3.2rem);
  line-height: 1.06;
  margin: 0 0 0.5em;
  text-wrap: balance;
}
h3 { font-size: 1.1875rem; line-height: 1.3; margin: 0 0 0.35em; font-weight: 600; letter-spacing: -0.01em; }
p { margin: 0 0 1em; }
.lede { font-size: clamp(1.125rem, 1rem + 0.5vw, 1.375rem); line-height: 1.5; color: var(--ink-2); max-width: 36em; text-wrap: pretty; }
.eyebrow {
  font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.02em;
  color: var(--accent); margin: 0 0 1rem; display: inline-flex; align-items: center; gap: 0.5em;
}
.eyebrow::before { content: ""; width: 1.5em; height: 2px; background: currentColor; border-radius: 2px; }
.muted { color: var(--ink-3); }
.small { font-size: 0.9375rem; }
.mono { font-family: var(--mono); font-size: 0.92em; letter-spacing: 0.01em; font-variant-numeric: tabular-nums; }
.num { font-variant-numeric: tabular-nums; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: saturate(160%) blur(16px);
  -webkit-backdrop-filter: saturate(160%) blur(16px);
  background: color-mix(in srgb, var(--paper) 78%, transparent);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 60px; gap: 16px; min-width: 0; }
.site-header .nav { flex: 1; justify-content: center; min-width: 0; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 600; letter-spacing: -0.01em; font-size: 1.125rem; flex-shrink: 0; white-space: nowrap; }
.brand img { width: 28px; height: 28px; border-radius: 7px; box-shadow: 0 0 0 1px var(--line); }
.nav { display: flex; gap: 22px; align-items: center; font-size: 0.9375rem; }
.nav a { text-decoration: none; color: var(--ink-2); }
.nav a:hover { color: var(--ink); }
@media (max-width: 760px) { .nav .hide-sm { display: none; } }
@media (max-width: 560px) {
  .nav { display: none; }
  .brand { font-size: 1.0625rem; }
  .header-actions { gap: 6px; }
  .header-actions .btn-sm { height: 36px; padding: 0 12px; font-size: 0.875rem; }
}
@media (max-width: 360px) { .brand span { display: none; } }
.header-actions { display: flex; align-items: center; gap: 10px; }

.theme-toggle {
  appearance: none; border: 1px solid var(--line-2); background: transparent; border-radius: 999px;
  width: 38px; height: 38px; display: grid; place-items: center; cursor: pointer; color: var(--ink-2);
}
.theme-toggle:hover { color: var(--ink); border-color: var(--ink-3); }
.theme-toggle svg { width: 18px; height: 18px; }
.theme-toggle .moon { display: none; }
:root[data-theme="dark"] .theme-toggle .sun { display: none; }
:root[data-theme="dark"] .theme-toggle .moon { display: block; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-toggle .sun { display: none; }
  :root:not([data-theme="light"]) .theme-toggle .moon { display: block; }
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 0 20px; height: 48px; border-radius: 14px; font-weight: 600; font-size: 1rem;
  text-decoration: none; border: 1px solid transparent; cursor: pointer; white-space: nowrap;
  transition: transform 0.15s ease, background-color 0.15s ease, border-color 0.15s ease;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--accent); color: var(--on-accent); }
.btn-primary:hover { background: var(--accent-hover); color: var(--on-accent); }
.btn-ghost { border-color: var(--line-2); color: var(--ink); background: transparent; }
.btn-ghost:hover { border-color: var(--ink-3); color: var(--ink); }
.btn-sm { height: 38px; padding: 0 14px; font-size: 0.9375rem; border-radius: 11px; }

.appstore {
  display: inline-flex; align-items: center; gap: 10px; height: 52px; padding: 0 16px 0 12px;
  background: #000; color: #fff; border-radius: 12px; text-decoration: none; border: 1px solid rgba(255,255,255,0.14);
  line-height: 1.05; white-space: nowrap;
}
.appstore:hover { color: #fff; background: #111; }
.appstore svg { width: 24px; height: 24px; fill: #fff; }
.appstore small { display: block; font-size: 0.6875rem; font-weight: 500; opacity: 0.9; }
.appstore strong { display: block; font-size: 1.1875rem; font-weight: 600; letter-spacing: -0.01em; }
:root[data-theme="dark"] .appstore { background: #fff; color: #000; border-color: transparent; }
:root[data-theme="dark"] .appstore svg { fill: #000; }
:root[data-theme="dark"] .appstore:hover { background: #f3f3f3; color: #000; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .appstore { background: #fff; color: #000; border-color: transparent; }
  :root:not([data-theme="light"]) .appstore svg { fill: #000; }
  :root:not([data-theme="light"]) .appstore:hover { background: #f3f3f3; color: #000; }
}

/* ---------- hero ---------- */
.hero { padding: clamp(40px, 6vw, 96px) 0 clamp(32px, 4vw, 64px); position: relative; }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 4vw, 64px); align-items: center; }
@media (max-width: 900px) { .hero .wrap { grid-template-columns: minmax(0, 1fr); } }
.hero-copy { max-width: 34rem; min-width: 0; }
.hero-copy .lede, .hero-copy h1 { overflow-wrap: anywhere; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; margin-top: 1.75rem; }
.hero-note { margin-top: 1.1rem; color: var(--ink-3); font-size: 0.9375rem; }
.hero-note b { color: var(--ink-2); font-weight: 600; }

.stitchbox {
  position: relative;
  display: grid; grid-template-columns: minmax(0, 1fr) 15.5rem; gap: 18px; align-items: start;
}
@media (max-width: 1100px) { .stitchbox { grid-template-columns: minmax(0, 1fr) 13.5rem; } }
@media (max-width: 640px) { .stitchbox { grid-template-columns: minmax(0, 1fr); } }
.cloth-frame {
  position: relative; min-width: 0; border-radius: 22px; overflow: hidden;
  box-shadow: var(--shadow-lg);
  background: var(--cloth);
  aspect-ratio: 1 / 1;
  border: 1px solid rgba(60, 40, 20, 0.14);
}
.cloth-frame canvas { width: 100%; height: 100%; }
.capsule {
  position: absolute; top: 14px; right: 14px;
  font-family: var(--serif); font-size: 1.5rem; font-weight: 500; letter-spacing: -0.02em;
  background: color-mix(in srgb, var(--paper) 86%, transparent);
  color: var(--ink);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-radius: 999px; padding: 4px 14px 4px 14px; line-height: 1.25;
  box-shadow: 0 1px 2px rgba(0,0,0,0.08), inset 0 0 0 1px var(--line);
  font-variant-numeric: tabular-nums;
}
.capsule small { font-size: 0.72em; }
.cloth-caption { position: absolute; left: 14px; bottom: 12px; font-size: 0.8125rem; color: rgba(40, 30, 20, 0.7); background: rgba(250, 246, 239, 0.78); padding: 4px 10px; border-radius: 999px; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }

.legend {
  background: var(--paper-2); border: 1px solid var(--line); border-radius: 18px; padding: 12px;
  box-shadow: var(--shadow);
}
.legend-head { display: flex; align-items: baseline; justify-content: space-between; padding: 4px 6px 10px; }
.legend-head h3 { margin: 0; font-size: 1rem; }
.legend-head span { font-size: 0.75rem; color: var(--ink-3); }
.legend ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.thread {
  display: grid; grid-template-columns: 26px 1fr auto; align-items: center; gap: 10px;
  width: 100%; text-align: left; padding: 7px 8px; border-radius: 12px; border: 0; background: transparent; cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease;
}
.thread:hover { background: var(--paper-3); }
.thread[aria-pressed="true"] { background: var(--accent); color: var(--on-accent); }
.thread[aria-pressed="true"] .thread-left { color: var(--on-accent); }
.thread .swatch { width: 26px; height: 26px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(0,0,0,0.12); }
.thread .code { font-family: var(--mono); font-size: 0.875rem; }
.thread-left { font-size: 0.8125rem; color: var(--ink-2); font-variant-numeric: tabular-nums; white-space: nowrap; }
.thread.done .thread-left { color: var(--ink-3); }
.legend-foot { padding: 10px 6px 2px; font-size: 0.75rem; color: var(--ink-3); }
@media (max-width: 640px) {
  .legend ol { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2px 6px; }
  .thread { grid-template-columns: 22px minmax(0, 1fr); grid-template-rows: auto auto; gap: 0 8px; padding: 6px 6px; }
  .thread .swatch { width: 22px; height: 22px; grid-row: 1 / span 2; }
  .thread .code { font-size: 0.8125rem; }
  .thread-left { grid-column: 2; font-size: 0.75rem; white-space: normal; }
  .legend-foot { display: none; }
}

/* ---------- facts strip ---------- */
.facts { padding: clamp(28px, 4vw, 48px) 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.facts ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px; }
@media (max-width: 900px) { .facts ul { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .facts ul { grid-template-columns: 1fr 1fr; gap: 14px; } }
.facts li { font-size: 0.9375rem; color: var(--ink-2); min-width: 0; }
.facts li b { display: block; color: var(--ink); font-size: 1.0625rem; font-weight: 600; margin-bottom: 2px; }

/* ---------- sections ---------- */
.section { padding: clamp(64px, 9vw, 140px) 0; }
.section + .section { padding-top: 0; }
.section-head { max-width: 40rem; margin-bottom: clamp(28px, 4vw, 56px); }
.split { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(28px, 5vw, 80px); align-items: center; }
@media (max-width: 900px) { .split { grid-template-columns: minmax(0, 1fr); } .split.reverse .media { order: -1; } }
.split .copy h2 { margin-top: 0; }

.feature-list { list-style: none; margin: 1.5rem 0 0; padding: 0; display: grid; gap: 1.1rem; }
.feature-list li { display: grid; grid-template-columns: 32px 1fr; gap: 14px; }
.feature-list svg { width: 26px; height: 26px; color: var(--accent); margin-top: 2px; }
.feature-list h3 { margin-bottom: 0.15em; font-size: 1.0625rem; }
.feature-list p { margin: 0; color: var(--ink-2); }

/* device frames */
.device { position: relative; margin-inline: auto; }
.device .screen { display: block; width: 100%; height: auto; border-radius: inherit; background: var(--paper-2); }
.device.ipad {
  padding: 14px; border-radius: 30px; background: var(--bezel);
  box-shadow: var(--shadow-lg), inset 0 0 0 1px rgba(255,255,255,0.06);
  max-width: 560px;
}
.device.ipad .screen { border-radius: 18px; }
.device.iphone {
  padding: 12px; border-radius: 46px; background: var(--bezel);
  box-shadow: var(--shadow-lg), inset 0 0 0 1px rgba(255,255,255,0.06);
  max-width: 300px;
}
.device.iphone .screen { border-radius: 36px; }
.device.iphone::after {
  content: ""; position: absolute; top: 24px; left: 50%; transform: translateX(-50%);
  width: 32%; height: 26px; border-radius: 999px; background: var(--bezel);
}
.device-row { display: flex; gap: clamp(16px, 3vw, 40px); align-items: flex-end; justify-content: center; }
.device-row .device.iphone { max-width: 240px; }
@media (max-width: 640px) { .device-row { flex-direction: column; align-items: center; } }

/* view-mode slider */
.compare {
  position: relative; border-radius: 22px; overflow: hidden; box-shadow: var(--shadow-lg);
  aspect-ratio: 3 / 4; max-width: 560px; margin-inline: auto; background: var(--paper-2);
  user-select: none; -webkit-user-select: none; touch-action: pan-y;
  border: 1px solid var(--line);
}
.compare img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top left; }
.compare .after { clip-path: inset(0 0 0 var(--split, 50%)); }
.compare .handle {
  position: absolute; top: 0; bottom: 0; left: var(--split, 50%); width: 2px; background: var(--paper);
  box-shadow: 0 0 0 1px rgba(0,0,0,0.15); transform: translateX(-1px);
}
.compare .knob {
  position: absolute; top: 50%; left: var(--split, 50%); transform: translate(-50%, -50%);
  width: 44px; height: 44px; border-radius: 50%; background: var(--paper); color: var(--ink);
  display: grid; place-items: center; box-shadow: 0 2px 10px rgba(0,0,0,0.25); cursor: ew-resize;
}
.compare .knob svg { width: 20px; height: 20px; }
.compare input[type="range"] {
  position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize;
}
.compare .tag {
  position: absolute; bottom: 12px; font-size: 0.75rem; font-weight: 600; padding: 4px 10px; border-radius: 999px;
  background: rgba(20, 16, 12, 0.62); color: #fff; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}
.compare .tag.l { left: 12px; } .compare .tag.r { right: 12px; }

/* cards */
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
@media (max-width: 900px) { .cards { grid-template-columns: minmax(0, 1fr); } }
.card {
  background: var(--paper-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px;
  box-shadow: var(--shadow);
}
.card h3 { margin-top: 0.4rem; }
.card p { color: var(--ink-2); margin-bottom: 0; }
.card .glyph { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--paper); border: 1px solid var(--line); color: var(--accent); }
.card .glyph svg { width: 22px; height: 22px; }

/* receipt replica */
.receipt {
  background: var(--paper-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 24px; box-shadow: var(--shadow);
  font-size: 0.9375rem; max-width: 440px;
}
.receipt h4 { margin: 0 0 12px; font-size: 1rem; }
.receipt ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.receipt li { display: grid; grid-template-columns: 22px 1fr; gap: 10px; align-items: start; color: var(--ink-2); }
.receipt li b { color: var(--ink); font-weight: 600; }
.receipt li svg { width: 20px; height: 20px; margin-top: 1px; }
.receipt .ok svg { color: var(--moss); }
.receipt .warn svg { color: var(--accent); }

/* thread swatches */
.swatches { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 10px; margin-top: 1.5rem; }
.swatch-card { display: grid; grid-template-columns: 34px 1fr; gap: 10px; align-items: center; padding: 8px 10px; border-radius: 12px; background: var(--paper-2); border: 1px solid var(--line); }
.swatch-card i { display: block; width: 34px; height: 34px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(0,0,0,0.12); }
.swatch-card b { display: block; font-weight: 600; font-size: 0.9375rem; letter-spacing: -0.01em; }
.swatch-card span { display: block; font-size: 0.75rem; color: var(--ink-3); }
.badge { display: inline-block; font-size: 0.6875rem; font-weight: 600; padding: 1px 7px; border-radius: 999px; border: 1px solid var(--line-2); color: var(--ink-2); vertical-align: middle; }
.badge.pub { border-color: color-mix(in srgb, var(--moss) 50%, transparent); color: var(--moss); }

/* privacy diagram */
.privacy-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-top: 2rem; }
@media (max-width: 900px) { .privacy-grid { grid-template-columns: minmax(0, 1fr); } }
.privacy-grid .card { text-align: left; }
.privacy-grid .big { font-family: var(--serif); font-size: 2.6rem; line-height: 1; letter-spacing: -0.02em; margin: 0.2rem 0 0.4rem; }

/* compare table */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper-2); box-shadow: var(--shadow); }
table { border-collapse: collapse; width: 100%; min-width: 720px; font-size: 0.9375rem; }
th, td { text-align: left; padding: 14px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-weight: 600; color: var(--ink-2); font-size: 0.8125rem; letter-spacing: 0.01em; }
thead th { background: var(--paper-3); position: sticky; top: 0; }
tbody tr:last-child td { border-bottom: 0; }
td.us { background: color-mix(in srgb, var(--accent) 7%, transparent); font-weight: 500; }
th.us { background: color-mix(in srgb, var(--accent) 14%, var(--paper-3)); color: var(--ink); }
.yes { color: var(--moss); font-weight: 600; }
.no { color: var(--ink-3); }
.footnote { font-size: 0.8125rem; color: var(--ink-3); margin-top: 12px; }

/* pricing */
.free-block { text-align: center; padding: clamp(48px, 7vw, 96px) 24px; border-radius: 28px; background: var(--paper-2); border: 1px solid var(--line); box-shadow: var(--shadow); }
.free-block .display { font-size: clamp(3rem, 2rem + 6vw, 7rem); line-height: 1; margin: 0 0 0.35em; }
.free-block .lede { margin-inline: auto; }

/* CTA band */
.cta { text-align: center; padding: clamp(48px, 8vw, 120px) 0; }
.cta .hero-cta { justify-content: center; }
.cta .icon { width: 96px; height: 96px; border-radius: 22px; margin: 0 auto 24px; box-shadow: var(--shadow-lg); }

/* footer */
.site-footer { border-top: 1px solid var(--line); padding: 40px 0 56px; font-size: 0.9375rem; color: var(--ink-3); }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 20px 40px; justify-content: space-between; align-items: flex-start; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.site-footer a { text-decoration: none; color: var(--ink-2); }
.site-footer a:hover { color: var(--accent); }
.site-footer p { margin: 6px 0 0; max-width: 44rem; }

/* reveal */
/* Only hidden when the script that reveals it is running; without JS everything shows. */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.7s cubic-bezier(.2,.7,.2,1), transform 0.7s cubic-bezier(.2,.7,.2,1); }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

/* ---------- legal / support pages ---------- */
.doc { max-width: 44rem; margin: 0 auto; padding: clamp(40px, 6vw, 80px) 0 clamp(60px, 8vw, 120px); }
.doc h1 { font-size: clamp(2.2rem, 1.4rem + 2.6vw, 3.4rem); }
.doc h2 { font-size: 1.5rem; margin: 2.2em 0 0.5em; font-family: var(--sans); font-weight: 600; letter-spacing: -0.01em; }
.doc h3 { margin-top: 1.6em; }
.doc p, .doc li { color: var(--ink-2); }
.doc li { margin-bottom: 0.4em; }
.doc strong { color: var(--ink); }
.doc .meta { color: var(--ink-3); font-size: 0.9375rem; margin-bottom: 2.5rem; }
.doc table { min-width: 0; font-size: 0.9375rem; }
.doc .table-wrap { margin: 1rem 0 1.5rem; }
.doc code { font-family: var(--mono); font-size: 0.9em; background: var(--paper-2); border: 1px solid var(--line); border-radius: 6px; padding: 1px 6px; }
.doc .toc { background: var(--paper-2); border: 1px solid var(--line); border-radius: 16px; padding: 18px 22px; margin: 0 0 2rem; }
.doc .toc ol { margin: 0.4em 0 0; padding-left: 1.2em; }
.doc .toc a { text-decoration: none; }
.faq details { border-top: 1px solid var(--line); padding: 14px 0; }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; font-weight: 600; color: var(--ink); list-style: none; display: flex; justify-content: space-between; gap: 12px; align-items: baseline; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--ink-3); font-weight: 400; font-size: 1.3em; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: 0.8em 0 0; }
.contact-card { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 1.5rem 0 2.5rem; }
@media (max-width: 600px) { .contact-card { grid-template-columns: 1fr; } }

/* hero iPad */
.hero-device { min-width: 0; }
.hero-ipad { max-width: 520px; }
.device video.screen { aspect-ratio: 3 / 4; object-fit: cover; background: #f2f0ec; }
.hero-figcaption { text-align: center; font-size: 0.8125rem; color: var(--ink-3); margin: 14px auto 0; max-width: 32rem; }
@media (max-width: 900px) { .hero-ipad { max-width: 440px; margin-top: 8px; } }

/* try-it block */
.tryit { margin-top: clamp(40px, 6vw, 88px); padding-top: clamp(32px, 4vw, 56px); border-top: 1px solid var(--line); display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.4fr); gap: clamp(24px, 4vw, 64px); align-items: start; }
@media (max-width: 900px) { .tryit { grid-template-columns: minmax(0, 1fr); } }
.tryit-copy h3 { font-family: var(--serif); font-weight: 460; font-size: clamp(1.6rem, 1rem + 1.6vw, 2.2rem); letter-spacing: -0.015em; margin-bottom: 0.4em; }
.tryit-copy p { color: var(--ink-2); }
