/* ═══════════════════════════════════════════════════════════════════
   Igneous — website v4
   Dark first (black glass, cooled rock, one ember accent), with a light
   theme from prefers-color-scheme. System fonts only: the page makes no
   third-party requests at all, which is the right look for a product
   whose pitch is "nothing leaves your device".
   ═══════════════════════════════════════════════════════════════════ */

:root {
  color-scheme: dark light;

  --bg:        #07080a;
  --bg-2:      #0c0e11;
  --bg-3:      #12151a;
  --surface:   rgba(255, 255, 255, 0.035);
  --surface-2: rgba(255, 255, 255, 0.065);
  --line:      rgba(255, 255, 255, 0.09);
  --line-2:    rgba(255, 255, 255, 0.16);
  --text:      #edebe7;
  --text-2:    #aeaba5;
  --text-3:    #8b8883;
  --accent:    #ff7a45;
  --accent-2:  #ffb088;
  --accent-ink:#170904;
  --glow:      rgba(255, 106, 50, 0.22);
  --glow-2:    rgba(255, 150, 90, 0.10);
  --good:      #7fd4a4;
  --device:    #0d0e10;
  --device-edge: rgba(255, 255, 255, 0.16);
  --shadow:    0 40px 90px -30px rgba(0, 0, 0, 0.85), 0 12px 30px -12px rgba(0, 0, 0, 0.6);
  --grain-opacity: 0.035;

  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Inter, Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Inter, Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", SFMono-Regular, "JetBrains Mono", Menlo, Consolas, monospace;

  --gutter: clamp(16px, 4.5vw, 44px);
  --max: 1200px;
  --radius: 18px;
  --radius-sm: 12px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

@media (prefers-color-scheme: light) {
  :root {
    --bg:        #f4f2ed;
    --bg-2:      #ebe8e1;
    --bg-3:      #e2ded5;
    --surface:   rgba(20, 16, 10, 0.035);
    --surface-2: rgba(20, 16, 10, 0.06);
    --line:      rgba(20, 16, 10, 0.11);
    --line-2:    rgba(20, 16, 10, 0.2);
    --text:      #15130f;
    --text-2:    #45423d;
    --text-3:    #625e58;
    --accent:    #b8400f;
    --accent-2:  #8f300a;
    --accent-ink:#fff8f3;
    --glow:      rgba(230, 110, 50, 0.18);
    --glow-2:    rgba(230, 150, 90, 0.10);
    --good:      #1f7a4a;
    --shadow:    0 40px 80px -34px rgba(40, 25, 10, 0.45), 0 10px 26px -12px rgba(40, 25, 10, 0.25);
    --grain-opacity: 0.03;
  }
}

/* ─────────────────── base ─────────────────── */

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 84px;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 17px/1.6 var(--font);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
  text-rendering: optimizeLegibility;
}

/* Fine grain over everything, so the black reads as stone rather than as
   an empty screen. An SVG turbulence tile: about 300 bytes, no request. */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 100;
  pointer-events: none;
  opacity: var(--grain-opacity);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .5 0 0 0 0 .5 0 0 0 0 .5 0 0 0 1 0'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
  /* No mix-blend-mode: a blended full-screen fixed layer makes the browser
     re-composite the whole page on every scroll frame. */
}

img, svg, canvas, video { display: block; max-width: 100%; }
img { height: auto; }

a { color: inherit; text-decoration-color: color-mix(in srgb, currentColor 40%, transparent); text-underline-offset: 3px; }
a:hover { text-decoration-color: currentColor; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  margin: 0;
  font-weight: 700;
  letter-spacing: -0.028em;
  line-height: 1.06;
  text-wrap: balance;
}

p { margin: 0; text-wrap: pretty; }

code, kbd {
  font-family: var(--mono);
  font-size: 0.86em;
}

code {
  padding: 0.12em 0.4em;
  border-radius: 6px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  overflow-wrap: anywhere;
}

kbd {
  display: inline-block;
  min-width: 1.9em;
  padding: 0.18em 0.5em;
  border-radius: 7px;
  border: 1px solid var(--line-2);
  border-bottom-width: 2px;
  background: var(--surface);
  text-align: center;
  line-height: 1.3;
}

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

::selection { background: color-mix(in srgb, var(--accent) 35%, transparent); }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

.skip {
  position: absolute;
  left: 12px; top: -60px;
  z-index: 200;
  padding: 10px 16px;
  border-radius: 10px;
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 600;
  text-decoration: none;
  transition: top 0.2s var(--ease);
}
.skip:focus { top: 12px; }

.wrap {
  width: min(var(--max), 100% - 2 * var(--gutter));
  margin-inline: auto;
}

.shard { color: var(--text); }

/* ─────────────────── banner + header ─────────────────── */

.banner {
  position: relative;
  z-index: 60;
  padding: 9px var(--gutter);
  border-bottom: 1px solid var(--line);
  background: var(--bg-2);
  color: var(--text-2);
  font-size: 13.5px;
  line-height: 1.45;
  text-align: center;
}
.banner b { color: var(--text); font-weight: 600; }
.banner .dot { color: var(--text-3); padding-inline: 0.45em; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid transparent;
  transition: background-color 0.3s var(--ease), border-color 0.3s var(--ease);
}
.site-header.is-scrolled {
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  -webkit-backdrop-filter: saturate(160%) blur(18px);
  backdrop-filter: saturate(160%) blur(18px);
  border-bottom-color: var(--line);
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .site-header.is-scrolled { background: var(--bg); }
}

.header-row {
  display: flex;
  align-items: center;
  gap: 20px;
  min-height: 64px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 19px;
  letter-spacing: -0.02em;
  text-decoration: none;
  flex-shrink: 0;
}
.brand svg { width: 13px; height: 30px; }

.site-nav { margin-left: auto; }
.site-nav ul {
  display: flex;
  gap: 4px;
  margin: 0; padding: 0;
  list-style: none;
}
.site-nav a {
  display: block;
  padding: 8px 12px;
  border-radius: 999px;
  color: var(--text-2);
  font-size: 15px;
  text-decoration: none;
  transition: color 0.2s, background-color 0.2s;
}
.site-nav a:hover { color: var(--text); background: var(--surface-2); }

.header-cta { flex-shrink: 0; }

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

/* ─────────────────── buttons / CTAs ─────────────────── */

.btn {
  --h: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: var(--h);
  padding: 0 22px;
  border-radius: 999px;
  border: 1px solid var(--line-2);
  font: 600 16px/1.2 var(--font);
  letter-spacing: -0.005em;
  text-decoration: none;
  text-align: center;
  white-space: normal;
  transition: transform 0.2s var(--ease), background-color 0.2s, border-color 0.2s, box-shadow 0.2s;
}
.btn-sm { --h: 38px; padding: 0 15px; font-size: 14px; gap: 8px; }

/* The honest default: nothing to download yet. Not a link, not focusable,
   not styled as pressable — just a clear status in button clothing. */
.btn.is-soon {
  background: var(--surface);
  color: var(--text-2);
  cursor: default;
}
.btn.is-soon::before {
  content: "";
  width: 7px; height: 7px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 22%, transparent);
}

/* What main.js turns a CTA into once CONFIG has a URL for it. */
.btn.is-live {
  background: var(--accent);
  border-color: transparent;
  color: var(--accent-ink);
  box-shadow: 0 10px 30px -10px var(--glow);
}
.btn.is-live:hover { transform: translateY(-1px); }
.btn.is-live.is-secondary { background: var(--surface-2); color: var(--text); border-color: var(--line-2); box-shadow: none; }
.btn-badge { padding: 0; border: 0; background: none !important; box-shadow: none !important; }
.btn-badge img { height: 50px; width: auto; }

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--text);
  font-weight: 600;
  text-decoration: none;
  padding: 6px 2px;
}
.text-link span { transition: transform 0.25s var(--ease); }
.text-link:hover span { transform: translateY(3px); }

/* ─────────────────── section furniture ─────────────────── */

.section { padding-block: clamp(80px, 11vw, 150px); position: relative; }
.section + .section { border-top: 1px solid var(--line); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  color: var(--accent);
  font: 600 12.5px/1.2 var(--mono);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.eyebrow::before {
  content: "";
  width: 22px; height: 1px;
  background: currentColor;
  opacity: 0.7;
}

.section-head { max-width: 780px; margin-bottom: clamp(40px, 6vw, 72px); }
.section-head h2, .section-title { font-size: clamp(2.1rem, 5vw, 3.6rem); }
.section-head p { margin-top: 20px; font-size: clamp(1.05rem, 1.6vw, 1.22rem); color: var(--text-2); max-width: 640px; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head.center p { margin-inline: auto; }
.section-head.center .eyebrow { justify-content: center; }

.lede { font-size: clamp(1.1rem, 1.8vw, 1.3rem); color: var(--text-2); }
.fine { font-size: 13.5px; color: var(--text-3); line-height: 1.5; }

/* ─────────────────── hero ─────────────────── */

.hero {
  position: relative;
  padding-block: clamp(48px, 8vw, 110px) clamp(64px, 9vw, 120px);
  isolation: isolate;
}
.hero::before {
  /* the ember: a low warm glow under the devices, like rock still cooling */
  content: "";
  position: absolute;
  z-index: -1;
  inset: 20% 0 -10% 30%;   /* never past the right edge: no sideways scroll */
  background:
    radial-gradient(40% 45% at 60% 70%, var(--glow), transparent 70%),
    radial-gradient(35% 30% at 30% 90%, var(--glow-2), transparent 70%);
  filter: blur(10px);
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.12fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}

.hero h1 {
  font-size: clamp(2.6rem, 6.4vw, 5.2rem);
  letter-spacing: -0.04em;
  line-height: 0.98;
}
.hero h1 .dim { color: var(--text-3); }
.hero .lede { margin-top: 26px; max-width: 34em; }

.cta-group {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 34px;
}
.cta-group .text-link { margin-left: 6px; }

.trust {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin: 26px 0 0;
  padding: 0;
  list-style: none;
  color: var(--text-3);
  font-size: 14px;
}
.trust li { display: inline-flex; align-items: center; gap: 8px; }
.trust li::before {
  content: "";
  width: 14px; height: 14px;
  flex-shrink: 0;
  background: var(--good);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3 8.5l3 3 7-7' 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 16 16'%3E%3Cpath d='M3 8.5l3 3 7-7' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* The stage: a Mac window behind, the phone in front. */
.stage {
  position: relative;
  aspect-ratio: 100 / 84;
}
.stage .window {
  position: absolute;
  top: 4%;
  left: 0;
  width: 88%;
}
.stage .iphone {
  position: absolute;
  right: 1%;
  bottom: 0;
  width: 33%;
}

@media (max-width: 960px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr); }
  .stage { max-width: 640px; margin-inline: auto; width: 100%; }
}
@media (max-width: 560px) {
  .stage { aspect-ratio: 100 / 100; }
  .stage .window { width: 94%; top: 2%; }
  .stage .iphone { width: 41%; right: 0; }
  .cta-group .btn { width: 100%; }
  .cta-group .text-link { margin-left: 0; }
}

/* ─────────────────── device frames (CSS only) ─────────────────── */

/* cq units on a container resolve against *its* ancestor, so the frame's
   measurements live on the screen inside it: the bezel is the screen's own
   box-shadow spread, which follows its corner radius exactly. */
.iphone, .ipad {
  container-type: inline-size;
  position: relative;
}
.iphone .screen {
  position: relative;
  overflow: hidden;
  margin: 3.6cqw;
  border-radius: 12.4cqw;
  background: #000;
  aspect-ratio: 760 / 1652;
  transform: translateZ(0);
  box-shadow:
    0 0 0 3.6cqw var(--device),
    0 0 0 calc(3.6cqw + 1px) var(--device-edge),
    0 0 0 calc(3.6cqw + 2.5px) rgba(0, 0, 0, 0.7),
    var(--shadow);
}
.iphone .screen::after {
  /* the island, drawn on the hardware rather than baked into the capture */
  content: "";
  position: absolute;
  z-index: 3;
  top: 2.4cqw;
  left: 50%;
  width: 30%;
  height: 8cqw;
  transform: translateX(-50%);
  border-radius: 999px;
  background: #000;
}
.ipad .screen {
  position: relative;
  overflow: hidden;
  margin: 3.6cqw;
  border-radius: 2.6cqw;
  background: #000;
  aspect-ratio: 1200 / 1600;
  transform: translateZ(0);
  box-shadow:
    0 0 0 3.6cqw var(--device),
    0 0 0 calc(3.6cqw + 1px) var(--device-edge),
    0 0 0 calc(3.6cqw + 2.5px) rgba(0, 0, 0, 0.7),
    var(--shadow);
}
.stills .ipad .screen { margin: 3.2cqw; box-shadow: 0 0 0 3.2cqw var(--device), 0 0 0 calc(3.2cqw + 1px) var(--device-edge), var(--shadow); }

.window {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  background: #1d1d1f;
  box-shadow:
    0 0 0 1px rgba(255,255,255,0.12),
    0 0 0 1.5px rgba(0,0,0,0.7),
    var(--shadow);
}
@media (prefers-color-scheme: light) {
  .window { box-shadow: 0 0 0 1px rgba(0,0,0,0.18), var(--shadow); }
}

/* ─────────────────── frame-sequence films ─────────────────── */

.film { position: relative; }
.film > img,
.film > .film-canvas {
  display: block;
  width: 100%;
  height: auto;
}
.film > .film-canvas {
  position: absolute;
  inset: 0;
  height: 100%;
  opacity: 0;
  transition: opacity 0.25s linear;
}
.film.is-live > .film-canvas { opacity: 1; }

.film-toggle {
  position: absolute;
  z-index: 4;
  right: 10px;
  bottom: 10px;
  display: grid;
  place-items: center;
  width: 36px; height: 36px;
  padding: 0;
  border: 1px solid rgba(255,255,255,0.22);
  border-radius: 50%;
  background: rgba(10, 10, 12, 0.62);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  color: #fff;
  cursor: pointer;
  opacity: 0.8;
  transition: opacity 0.2s, transform 0.2s var(--ease);
}
.film-toggle:hover, .film-toggle:focus-visible { opacity: 1; transform: scale(1.05); }
.film-toggle svg { width: 14px; height: 14px; }
.film-toggle .i-play { display: none; }
.film-toggle[data-state="paused"] .i-play { display: block; }
.film-toggle[data-state="paused"] .i-pause { display: none; }
.iphone .film-toggle { right: 7%; bottom: 13%; width: 30px; height: 30px; }
.iphone .film-toggle svg { width: 11px; height: 11px; }
@media (max-width: 560px) {
  .stage .iphone .film-toggle { width: 26px; height: 26px; bottom: 12%; }
}

/* ─────────────────── proof strip ─────────────────── */

.proof {
  border-block: 1px solid var(--line);
  background: linear-gradient(180deg, var(--bg-2), var(--bg));
}
.proof-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 0;
}
.proof-grid > div {
  padding: clamp(26px, 4vw, 44px) clamp(14px, 2.4vw, 30px);
  border-left: 1px solid var(--line);
}
.proof-grid > div:first-child { border-left: 0; padding-left: 0; }
.proof dt {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 4.6vw, 3.6rem);
  font-weight: 700;
  letter-spacing: -0.045em;
  line-height: 1;
}
.proof dt small { font-size: 0.5em; letter-spacing: -0.02em; margin-left: 0.08em; color: var(--text-2); }
.proof dd { margin: 12px 0 0; color: var(--text-2); font-size: 15px; line-height: 1.45; max-width: 22ch; }
.proof .note { padding-bottom: 26px; }
.proof sup a { color: var(--accent); text-decoration: none; }

@media (max-width: 820px) {
  .proof-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .proof-grid > div { border-left: 0; padding-left: 0; }
  .proof-grid > div:nth-child(2n) { border-left: 1px solid var(--line); padding-left: 18px; }
  .proof-grid > div:nth-child(n + 3) { border-top: 1px solid var(--line); }
}

/* ─────────────────── problem cards ─────────────────── */

.problems {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin: 0; padding: 0;
  list-style: none;
  counter-reset: p;
}
.problem {
  counter-increment: p;
  position: relative;
  padding: clamp(24px, 3vw, 36px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, var(--surface-2), var(--surface) 60%);
}
.problem::before {
  content: "0" counter(p);
  position: absolute;
  top: clamp(24px, 3vw, 36px);
  right: clamp(24px, 3vw, 36px);
  color: var(--text-3);
  font: 500 13px/1 var(--mono);
}
.problem h3 { font-size: clamp(1.3rem, 2.2vw, 1.6rem); padding-right: 36px; }
.problem .was { margin-top: 12px; color: var(--text-3); font-size: 15.5px; }
.problem .now {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px dashed var(--line-2);
  color: var(--text-2);
}
.problem .now b { color: var(--text); font-weight: 600; }
.tag {
  display: block;
  margin-bottom: 6px;
  color: var(--accent);
  font: 600 11.5px/1.2 var(--mono);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
@media (max-width: 760px) {
  .problems { grid-template-columns: minmax(0, 1fr); }
}

/* ─────────────────── feature modules ─────────────────── */

.feature {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(32px, 6vw, 88px);
  align-items: center;
}
.feature + .feature { margin-top: clamp(96px, 13vw, 170px); }
.feature.flip .feature-media { order: -1; }
.feature-num {
  display: block;
  margin-bottom: 14px;
  color: var(--text-3);
  font: 500 13px/1 var(--mono);
  letter-spacing: 0.08em;
}
.feature h3 { font-size: clamp(1.9rem, 3.8vw, 2.9rem); }
.feature .lede { margin-top: 18px; }
.feature-media { position: relative; min-width: 0; }
.feature-media.phone-media { display: flex; justify-content: center; }
.feature-media.phone-media .iphone { width: min(330px, 78%); }

.points {
  margin: 26px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 14px;
}
.points li {
  position: relative;
  padding-left: 26px;
  color: var(--text-2);
}
.points li::before {
  content: "";
  position: absolute;
  left: 2px; top: 0.62em;
  width: 9px; height: 9px;
  border-radius: 2px;
  transform: rotate(45deg);
  background: linear-gradient(135deg, var(--accent-2), var(--accent));
}
.points b { color: var(--text); font-weight: 600; }

.requires {
  margin-top: 22px;
  padding: 12px 14px;
  border-left: 2px solid var(--accent);
  background: var(--surface);
  border-radius: 0 10px 10px 0;
  color: var(--text-3);
  font-size: 14px;
}

@media (max-width: 900px) {
  .feature { grid-template-columns: minmax(0, 1fr); }
  .feature.flip .feature-media { order: 0; }
}

/* Capture surfaces: an illustration built from HTML, labelled as one. */
.surfaces {
  position: relative;
  padding: clamp(18px, 3vw, 30px);
  border: 1px solid var(--line);
  border-radius: 28px;
  background:
    radial-gradient(60% 50% at 70% 0%, var(--glow-2), transparent 70%),
    linear-gradient(180deg, var(--bg-3), var(--bg-2));
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.surface {
  padding: 16px;
  border-radius: 20px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  min-width: 0;
}
.surface h4 {
  margin-bottom: 10px;
  color: var(--text-3);
  font: 600 11px/1.2 var(--mono);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.tile {
  aspect-ratio: 1;
  border-radius: 22%;
  background: color-mix(in srgb, var(--text) 10%, transparent);
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 6px;
  font-size: 12px;
  line-height: 1.2;
  text-align: center;
  color: var(--text);
  padding: 6px;
}
.tile svg { width: 26px; height: 26px; }
.tile.on { background: var(--text); color: var(--bg); }
.menu { margin: 0; padding: 0; list-style: none; border-radius: 14px; overflow: hidden; }
.menu li {
  display: flex; justify-content: space-between; align-items: center; gap: 8px;
  padding: 9px 12px;
  background: color-mix(in srgb, var(--text) 7%, transparent);
  font-size: 14px;
  border-top: 1px solid var(--line);
}
.menu li:first-child { border-top: 0; }
.menu svg { width: 16px; height: 16px; flex-shrink: 0; color: var(--text-2); }
.bubble {
  padding: 12px 14px;
  border-radius: 16px 16px 16px 4px;
  background: color-mix(in srgb, var(--text) 9%, transparent);
  font-size: 14.5px;
}
.bubble + .bubble { margin-top: 8px; border-radius: 16px 16px 4px 16px; margin-left: 18%; background: color-mix(in srgb, var(--accent) 20%, transparent); }
.surface.wide { grid-column: 1 / -1; }
.lock-widget {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 14px;
  border-radius: 18px;
  background: color-mix(in srgb, var(--text) 9%, transparent);
  font-size: 14px;
}
.lock-widget .ring {
  width: 38px; height: 38px; border-radius: 50%;
  border: 3px solid color-mix(in srgb, var(--text) 30%, transparent);
  border-top-color: var(--text);
  display: grid; place-items: center; flex-shrink: 0;
}
.lock-widget .ring svg { width: 16px; height: 16px; }
.illustration-note { margin-top: 12px; text-align: right; }
@media (max-width: 420px) {
  .surfaces { grid-template-columns: minmax(0, 1fr); }
}

/* Writing Tools repair: a before/after in monospace. */
.repair {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-2);
  overflow: hidden;
  font-size: 14.5px;
}
.repair-row { padding: 18px 20px; border-top: 1px solid var(--line); }
.repair-row:first-child { border-top: 0; }
.repair-row .tag { color: var(--text-3); }
.repair-row.is-after { background: color-mix(in srgb, var(--good) 7%, transparent); }
.repair-row.is-after .tag { color: var(--good); }
.repair-row.is-bad .tag { color: var(--accent); }
.repair pre {
  margin: 0;
  font: 14px/1.65 var(--mono);
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  color: var(--text);
}
.repair mark { background: color-mix(in srgb, var(--good) 22%, transparent); color: inherit; border-radius: 4px; padding: 0 2px; }
.repair .lost { color: var(--accent); text-decoration: underline wavy; text-decoration-thickness: 1px; text-underline-offset: 4px; }
.repair .gone { color: var(--text-3); }

/* Obsidian-flavoured syntax chips. */
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}
.chips li {
  padding: 6px 11px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  background: var(--surface);
  font: 500 13px/1.3 var(--mono);
  color: var(--text-2);
  overflow-wrap: anywhere;
}

.tree {
  margin-top: 24px;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--bg-2);
  font: 14px/1.9 var(--mono);
  color: var(--text-2);
}
.tree ul { margin: 0; padding-left: 18px; list-style: none; border-left: 1px solid var(--line); }
.tree > ul { padding-left: 0; border: 0; }
.tree li { overflow-wrap: anywhere; }
.tree .d { color: var(--text); }
.tree .d::before { content: "▸ "; color: var(--text-3); }
.tree .hl { color: var(--accent); }

/* ─────────────────── Mac ─────────────────── */

.mac-hero .window { width: 100%; }
.mac-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  gap: 18px;
  margin-top: 18px;
}
.card {
  padding: clamp(22px, 3vw, 32px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, var(--surface-2), var(--surface) 70%);
  min-width: 0;
}
.card h3 { font-size: clamp(1.25rem, 2vw, 1.5rem); }
.card p { margin-top: 10px; color: var(--text-2); }
.card .window { margin-top: 22px; border-radius: 9px; }
.card-stack { display: grid; gap: 18px; align-content: start; }
/* A CSS crop of a film: the frames aren't re-encoded, just shown larger
   inside a smaller window, anchored at the top left where the note is. */
.window.crop { aspect-ratio: 16 / 7.4; }
.window.crop .film { width: 165%; }
/* keep the pause button inside the visible part: the crop shows the top
   44.85% of the film (7.4/16 of W over 1.65 × 0.625 W) and the left 1/1.65 */
.window.crop .film-toggle { top: calc(44.85% - 46px); bottom: auto; right: calc(39.4% + 10px); }

.keys {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin: 18px 0 0;
}
.keys div {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  min-width: 0;
}
.keys dt { flex-shrink: 0; }
.keys dd { margin: 0; color: var(--text-2); font-size: 14.5px; line-height: 1.3; }

.spec {
  display: flex; flex-wrap: wrap; gap: 8px 22px;
  margin: 26px 0 0; padding: 0; list-style: none;
  color: var(--text-3); font-size: 14.5px;
}
.spec li::before { content: "—"; margin-right: 8px; color: var(--accent); }

@media (max-width: 900px) {
  .mac-grid { grid-template-columns: minmax(0, 1fr); }
  .keys { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 420px) {
  .keys { gap: 8px; }
  .keys div { flex-direction: column; align-items: flex-start; gap: 6px; padding: 10px 12px; }
  .keys dd { font-size: 13.5px; }
}

/* ─────────────────── iPad ─────────────────── */

.ipad-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1fr);
  gap: clamp(32px, 6vw, 88px);
  align-items: center;
}
.ipad-layout .ipad { width: min(520px, 100%); margin-inline: auto; }
.stills {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 32px;
}
.stills figure { margin: 0; }
.stills figcaption { margin-top: 10px; color: var(--text-3); font-size: 13.5px; text-align: center; }
@media (max-width: 900px) {
  .ipad-layout { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 520px) {
  .stills { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ─────────────────── sync ─────────────────── */

.sync-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: clamp(32px, 6vw, 80px);
  align-items: center;
}
.sync-art {
  width: 100%;
  height: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    radial-gradient(50% 60% at 50% 40%, var(--glow-2), transparent 70%),
    var(--bg-2);
}
.sync-art .house { fill: none; stroke: var(--line-2); stroke-dasharray: 5 7; }
.sync-art .dev { fill: var(--bg-3); stroke: var(--text-3); stroke-width: 1.5; }
.sync-art .scr { fill: var(--surface-2); }
.sync-art .link { fill: none; stroke: var(--accent); stroke-width: 2; stroke-dasharray: 3 8; stroke-linecap: round; }
.sync-art .lbl { fill: var(--text-2); font: 600 15px var(--font); }
.sync-art .lbl-dim { fill: var(--text-3); font: 500 12.5px var(--mono); letter-spacing: 0.04em; }
.sync-art .packet { fill: var(--accent); }
.sync-art .cloud { fill: none; stroke: var(--text-3); stroke-width: 1.5; }
.sync-art .cross { stroke: var(--accent); stroke-width: 2.2; stroke-linecap: round; }
@media (prefers-reduced-motion: no-preference) {
  .sync-art .link { animation: dash 1.6s linear infinite; }
  @keyframes dash { to { stroke-dashoffset: -22; } }
}
@media (max-width: 900px) {
  .sync-layout { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 560px) {
  /* SVG text scales with the drawing; set it larger so it stays legible */
  .sync-art .lbl { font-size: 19px; }
  .sync-art .lbl-dim { font-size: 15px; }
}

/* ─────────────────── compare ─────────────────── */

.compare-wrap {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-2);
}
.compare {
  width: 100%;
  border-collapse: collapse;
  font-size: 15.5px;
}
.compare caption { text-align: left; }
.compare th, .compare td {
  padding: 18px 20px;
  text-align: left;
  vertical-align: top;
  border-top: 1px solid var(--line);
}
.compare thead th {
  border-top: 0;
  color: var(--text-2);
  font: 600 13px/1.3 var(--font);
  letter-spacing: 0.02em;
  background: var(--surface);
}
.compare tbody th { width: 26%; font-weight: 600; color: var(--text); }
.compare td { color: var(--text-2); }
.compare .us { background: color-mix(in srgb, var(--accent) 7%, transparent); color: var(--text); }
.compare thead .us { color: var(--accent); }
.yes, .no, .part { font-weight: 600; }
.yes { color: var(--good); }
.no { color: var(--text-3); }
.part { color: var(--text-2); }

@media (max-width: 760px) {
  .compare thead { display: none; }
  .compare, .compare tbody, .compare tr, .compare th, .compare td { display: block; width: 100%; }
  .compare tr { border-top: 1px solid var(--line-2); padding: 6px 0; }
  .compare tr:first-child { border-top: 0; }
  .compare tbody th { width: 100%; padding: 16px 18px 8px; border: 0; font-size: 16.5px; }
  .compare td {
    position: relative;
    padding: 7px 18px 7px calc(18px + 7.6em);
    border: 0;
  }
  /* the column name, as a label beside the value; the value stays inline */
  .compare td::before {
    content: attr(data-col);
    position: absolute;
    left: 18px;
    top: 8px;
    width: 7.2em;
    color: var(--text-3);
    font-size: 13.5px;
    font-weight: 600;
  }
  .compare .us { background: none; }
  .compare td.us::before { color: var(--accent); }
  .compare tr { padding-bottom: 12px; }
}

/* ─────────────────── pricing ─────────────────── */

.price-card {
  max-width: 820px;
  margin-inline: auto;
  padding: clamp(28px, 5vw, 56px);
  border: 1px solid var(--line-2);
  border-radius: 28px;
  background:
    radial-gradient(70% 90% at 50% 0%, var(--glow-2), transparent 70%),
    linear-gradient(180deg, var(--surface-2), var(--surface));
  text-align: center;
}
.price-card h2 { font-size: clamp(2rem, 4.6vw, 3.2rem); }
.price-card .lede { margin: 18px auto 0; max-width: 36em; }
.price-card .trust { justify-content: center; margin-top: 30px; }

/* The plan's cards, kept for the owner behind an HTML comment in
   index.html. Styled here so enabling them is only an uncomment. */
.tiers { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 40px; text-align: left; }
.tier { padding: 28px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.tier.is-featured { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent), 0 30px 60px -30px var(--glow); }
.tier h3 { font-size: 1.3rem; }
.tier .amount { margin-top: 12px; font: 700 2.6rem/1 var(--font-display); letter-spacing: -0.04em; }
.tier .amount small { font-size: 0.4em; color: var(--text-3); letter-spacing: 0; font-weight: 500; }
.tier ul { margin: 18px 0 0; padding-left: 18px; color: var(--text-2); font-size: 15px; }
@media (max-width: 900px) { .tiers { grid-template-columns: minmax(0, 1fr); } }

/* ─────────────────── FAQ ─────────────────── */

.faq { max-width: 860px; margin-inline: auto; }
.faq details {
  border-top: 1px solid var(--line);
}
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary {
  position: relative;
  padding: 24px 48px 24px 0;
  cursor: pointer;
  list-style: none;
  font: 600 clamp(1.08rem, 1.8vw, 1.25rem)/1.35 var(--font-display);
  letter-spacing: -0.012em;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "";
  position: absolute;
  right: 6px; top: 50%;
  width: 12px; height: 12px;
  margin-top: -8px;
  border-right: 2px solid var(--text-3);
  border-bottom: 2px solid var(--text-3);
  transform: rotate(45deg);
  transition: transform 0.25s var(--ease), margin 0.25s var(--ease);
}
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
.faq summary:hover::after { border-color: var(--accent); }
.faq .answer { padding: 0 0 26px; color: var(--text-2); max-width: 68ch; }
.faq .answer p + p { margin-top: 12px; }

/* ─────────────────── final CTA + footer ─────────────────── */

.final {
  text-align: center;
  overflow: hidden;
  isolation: isolate;
}
.final::before {
  content: "";
  position: absolute;
  z-index: -1;
  left: 50%; bottom: -30%;
  width: min(1100px, 140%);
  aspect-ratio: 2 / 1;
  transform: translateX(-50%);
  background: radial-gradient(closest-side, var(--glow), transparent);
  pointer-events: none;
}
.final .big-shard { width: 44px; height: 104px; margin: 0 auto 30px; color: var(--text); filter: drop-shadow(0 16px 30px var(--glow)); }
.final h2 { font-size: clamp(2.3rem, 6vw, 4.6rem); letter-spacing: -0.04em; }
.final .lede { margin: 20px auto 0; max-width: 32em; }
.final .cta-group { justify-content: center; }

.site-footer {
  border-top: 1px solid var(--line);
  padding-block: 56px 48px;
  background: var(--bg-2);
  color: var(--text-3);
  font-size: 14px;
}
.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 32px 48px;
}
.footer-grid .brand { color: var(--text); }
.footer-grid .tagline { margin-top: 10px; color: var(--text-2); }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 22px; justify-content: flex-end; align-items: start; margin: 0; padding: 0; list-style: none; }
.footer-links a { color: var(--text-2); text-decoration: none; }
.footer-links a:hover { color: var(--text); text-decoration: underline; }
.legal { grid-column: 1 / -1; padding-top: 28px; border-top: 1px solid var(--line); line-height: 1.6; }
.legal p + p { margin-top: 10px; }
@media (max-width: 700px) {
  .footer-grid { grid-template-columns: minmax(0, 1fr); }
  .footer-links { justify-content: flex-start; }
}

/* ─────────────────── arrival motion ─────────────────── */

/* Nothing is hidden by the stylesheet. main.js adds .rise-wait only to
   elements that start below the fold, and only when motion is allowed, so
   a page whose script never runs (or a crawler) sees everything. */
.rise-wait { opacity: 0; transform: translateY(18px); }
.rise-go { transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; }
}

/* ─────────────────── fine-print pages ─────────────────── */

.doc-page { padding-block: clamp(56px, 8vw, 100px) clamp(72px, 10vw, 120px); }
.doc { max-width: 760px; margin-inline: auto; }
.doc h1 { font-size: clamp(2.4rem, 6vw, 4rem); letter-spacing: -0.04em; }
.doc .doc-lede { margin-top: 22px; font-size: clamp(1.1rem, 1.8vw, 1.28rem); color: var(--text-2); }
.doc section { margin-top: 48px; padding-top: 32px; border-top: 1px solid var(--line); }
.doc h2 { font-size: clamp(1.4rem, 2.6vw, 1.8rem); margin-bottom: 14px; }
.doc h3 { font-size: 1.12rem; margin: 26px 0 8px; letter-spacing: -0.01em; }
.doc p, .doc li { color: var(--text-2); }
.doc p + p, .doc p + ul, .doc p + ol, .doc ul + p, .doc ol + p { margin-top: 14px; }
.doc ul, .doc ol { padding-left: 1.3em; margin: 14px 0 0; }
.doc li + li { margin-top: 8px; }
.doc b, .doc strong { color: var(--text); font-weight: 600; }
.doc-meta {
  display: flex; flex-wrap: wrap; gap: 10px 28px;
  margin: 26px 0 0; padding: 0; list-style: none;
  color: var(--text-3); font-size: 14px;
}
.doc-meta b { color: var(--text-2); font-weight: 600; margin-right: 6px; }
.doc .doc-meta { padding: 0; margin-top: 26px; }
.doc .doc-meta li { margin: 0; color: var(--text-3); }
.site-nav a[aria-current="page"] { color: var(--text); background: var(--surface-2); }
@media (max-width: 860px) {
  .doc-body .site-nav { display: block; margin-left: auto; }
  .doc-body .site-nav a { padding: 8px 9px; font-size: 14px; }
}
