/* Preend website
   Layout: a document desk. Full-width bands; content sits on a 1160px measure with page-like margins.
   The hero is a Night Ink band where an AI answer is combed into a finished page. */
:root {
  color-scheme: light;
  --ink: #081436;
  --ink-2: #36456A;
  --ink-3: #55628A;
  --paper: #F6F8FC;
  --sheet: #FFFFFF;
  --desk: #E7ECF6;
  --line: #D4DBEA;
  --line-2: #BAC6DD;
  --brand: #1C5CEB;
  --btn: #1C5CEB;
  --btn-hover: #1546D6;
  --on-btn: #FFFFFF;
  --link: #1A52D1;
  --spark: #FF7631;
  --spark-ink: #B23F00;
  --down: #E2EBFE;
  --ok: #137A55;
  --night: #081436;
  --night-2: #10245A;
  --night-line: rgba(172, 191, 223, 0.2);
  --on-night: #F3F6FD;
  --on-night-2: #B9C7E5;
  --mark: rgba(255, 118, 49, 0.16);
  --shadow-page: 0 1px 2px rgba(8, 20, 54, 0.08), 0 14px 34px -10px rgba(8, 20, 54, 0.22);
  --shadow-soft: 0 1px 2px rgba(8, 20, 54, 0.06), 0 8px 24px -14px rgba(8, 20, 54, 0.25);
  --logo-ink: #FFFFFF;   /* wordmark letters on dark grounds */

  --display: "Inter Tight", "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --serif: "Instrument Serif", Georgia, "Times New Roman", serif;
  --text: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;

  --fs-xs: 0.8125rem;   /* 13 */
  --fs-s: 0.9375rem;    /* 15 */
  --fs-m: 1.0625rem;    /* 17 */
  --fs-l: 1.25rem;      /* 20 */
  --fs-xl: clamp(1.375rem, 1.1rem + 1vw, 1.75rem);
  --fs-2xl: clamp(2rem, 1.3rem + 3.2vw, 3.375rem);
  --fs-hero: clamp(2.75rem, 1.4rem + 6.2vw, 6rem);
  --measure: 1160px;
  --radius: 14px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --ink: #EDF1FA; --ink-2: #B9C6E1; --ink-3: #93A1C1;
    --paper: #070C20; --sheet: #0E1735; --desk: #0A1229; --line: #1E2A4C; --line-2: #2D3B66;
    --brand: #5B8CFF; --btn: #2D62EA; --btn-hover: #3B6FF5; --on-btn: #FFFFFF; --link: #93B4FF;
    --spark-ink: #FF9A66; --down: #13234D; --ok: #55D3A3;
    --night: #040817; --night-2: #0B1A45; --mark: rgba(255, 118, 49, 0.2);
    --shadow-page: 0 1px 2px rgba(0, 0, 0, 0.5), 0 18px 44px -12px rgba(0, 0, 0, 0.7);
    --shadow-soft: 0 1px 2px rgba(0, 0, 0, 0.4), 0 10px 28px -16px rgba(0, 0, 0, 0.7);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --ink: #EDF1FA; --ink-2: #B9C6E1; --ink-3: #93A1C1;
  --paper: #070C20; --sheet: #0E1735; --desk: #0A1229; --line: #1E2A4C; --line-2: #2D3B66;
  --brand: #5B8CFF; --btn: #2D62EA; --btn-hover: #3B6FF5; --on-btn: #FFFFFF; --link: #93B4FF;
  --spark-ink: #FF9A66; --down: #13234D; --ok: #55D3A3;
  --night: #040817; --night-2: #0B1A45; --mark: rgba(255, 118, 49, 0.2);
  --shadow-page: 0 1px 2px rgba(0, 0, 0, 0.5), 0 18px 44px -12px rgba(0, 0, 0, 0.7);
  --shadow-soft: 0 1px 2px rgba(0, 0, 0, 0.4), 0 10px 28px -16px rgba(0, 0, 0, 0.7);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 var(--fs-m)/1.6 var(--text);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg, video, canvas { max-width: 100%; }
img { height: auto; display: block; }
a { color: var(--link); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 3px; border-radius: 4px; }
.night :focus-visible { outline-color: #8FB0FF; }
::selection { background: rgba(28, 92, 235, 0.22); }
[hidden] { display: none !important; }
.sr-only { position: absolute; 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: 50; background: var(--sheet); color: var(--ink); padding: 10px 14px; border-radius: 8px; box-shadow: var(--shadow-soft); font-weight: 600; }
.skip:focus { top: calc(12px + env(safe-area-inset-top, 0px)); }

/* ---------- layout ---------- */
.band { position: relative; }
.wrap {
  max-width: var(--measure);
  margin-inline: auto;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}
@media (min-width: 720px) {
  .wrap { padding-left: max(32px, env(safe-area-inset-left, 0px)); padding-right: max(32px, env(safe-area-inset-right, 0px)); }
}
.section { padding-block: clamp(64px, 9vw, 120px); }
.section:not(.desk):not(.night) + .section:not(.desk):not(.night) { padding-top: 0; }
.nowrap { white-space: nowrap; }
.desk { background: var(--desk); }
.night { background: var(--night); color: var(--on-night); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font: 600 var(--fs-xs)/1 var(--text); letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--brand); margin: 0 0 18px;
}
.eyebrow::before { content: ""; width: 18px; height: 2px; background: var(--spark); border-radius: 2px; }
.night .eyebrow { color: #9DBBFF; }
h1, h2, h3 { font-family: var(--display); font-weight: 800; letter-spacing: -0.03em; line-height: 1.05; text-wrap: balance; margin: 0; }
h2 { font-size: var(--fs-2xl); }
h3 { font-size: var(--fs-l); letter-spacing: -0.015em; line-height: 1.2; font-weight: 700; }
em.accent { font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: -0.01em; }
.lede { font-size: var(--fs-l); line-height: 1.55; color: var(--ink-2); max-width: 60ch; margin: 20px 0 0; text-wrap: pretty; }
.night .lede { color: var(--on-night-2); }
.head { display: grid; gap: 0; max-width: 760px; margin-bottom: clamp(36px, 5vw, 56px); }
p { text-wrap: pretty; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 12px 20px; border-radius: 12px;
  font: 600 var(--fs-s)/1.2 var(--text); text-decoration: none; cursor: pointer;
  border: 1px solid transparent; transition: background 0.2s, border-color 0.2s, transform 0.2s;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--btn); color: var(--on-btn); }
.btn-primary:hover { background: var(--btn-hover); }
.btn-ghost { border-color: var(--line-2); color: var(--ink); background: transparent; }
.btn-ghost:hover { border-color: var(--ink-3); }
.night .btn-ghost { border-color: rgba(185, 199, 229, 0.38); color: var(--on-night); }
.night .btn-ghost:hover { border-color: var(--on-night-2); }
.btn svg { width: 18px; height: 18px; flex: none; }
.soon {
  display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 8px 16px 8px 10px;
  border-radius: 12px; border: 1px dashed rgba(185, 199, 229, 0.4); color: var(--on-night-2);
  font: 500 var(--fs-s)/1.25 var(--text);
}
.soon img { width: 30px; height: 30px; border-radius: 8px; }
.soon b { display: block; color: var(--on-night); font-weight: 650; }

/* ---------- logo ---------- */
.logo { display: block; height: 30px; width: auto; aspect-ratio: 3556.4 / 1240; overflow: visible; }
/* the paths carry fill="#FF7631" and fill="url(#lg-grad)" as attributes; dark grounds switch the letters to white */
.night .logo .lg-main { fill: var(--logo-ink); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .logo .lg-main { fill: var(--logo-ink); } }
:root[data-theme="dark"] .logo .lg-main { fill: var(--logo-ink); }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

/* ---------- header ---------- */
.site-header { position: relative; z-index: 3; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 18px; }
.site-header .home { display: inline-flex; padding: 6px 0; border-radius: 6px; }
.nav { display: flex; align-items: center; gap: 4px; }
.nav a { color: inherit; text-decoration: none; font: 550 var(--fs-s)/1 var(--text); padding: 10px 12px; border-radius: 9px; opacity: 0.88; }
.nav a:hover { opacity: 1; background: rgba(127, 150, 200, 0.14); }
.nav a[aria-current="page"] { opacity: 1; background: rgba(127, 150, 200, 0.16); }
@media (max-width: 760px) { .nav a.opt { display: none; } }
@media (max-width: 380px) { .nav a { padding: 10px 8px; } }
.plain-header { border-bottom: 1px solid var(--line); background: var(--paper); }

/* ---------- hero ---------- */
.hero { overflow: hidden; isolation: isolate; background: radial-gradient(120% 90% at 85% 10%, var(--night-2) 0%, var(--night) 58%); }
.hero canvas.barbs { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; opacity: 0.9; pointer-events: none; }
.hero-grid {
  display: grid; gap: clamp(36px, 5vw, 64px); align-items: center;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  padding-block: clamp(28px, 5vw, 64px) clamp(56px, 8vw, 104px);
}
@media (max-width: 960px) { .hero-grid { grid-template-columns: minmax(0, 1fr); } }
.hero h1 { font-size: var(--fs-hero); letter-spacing: -0.045em; line-height: 0.98; color: var(--on-night); }
.hero h1 em.accent { color: var(--spark); padding-right: 0.04em; }
.hero .lede { font-size: clamp(1.125rem, 1rem + 0.5vw, 1.3125rem); max-width: 52ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero-facts { display: flex; flex-wrap: wrap; gap: 8px 20px; margin: 28px 0 0; padding: 0; list-style: none; color: var(--on-night-2); font-size: var(--fs-s); }
.hero-facts li { display: inline-flex; align-items: center; gap: 8px; }
.hero-facts svg { width: 16px; height: 16px; color: #8FB0FF; flex: none; }

.hero-meta { margin-top: 28px; }
.soon { margin: 0; }
.soon span { display: block; }

/* the demo: an AI answer combed into a page */
.demo { position: relative; width: min(100%, 448px); margin: 0 auto; }
.demo-stage { position: relative; }
@media (max-width: 960px) { .demo { width: min(100%, 420px); } }
.demo-sheet {
  --p: 1;
  position: relative; aspect-ratio: 210 / 297; border-radius: 4px; overflow: hidden;
  background: #FFFFFF; box-shadow: 0 2px 4px rgba(0, 0, 0, 0.25), 0 30px 70px -20px rgba(0, 0, 0, 0.7);
}
.demo-sheet .pages, .demo-sheet .raw { position: absolute; inset: 0; }
.demo-sheet .pages img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 0.7s ease; }
.demo-sheet .pages img.on { opacity: 1; }
.demo-sheet .pages { clip-path: inset(0 0 calc((1 - var(--p)) * 100%) 0); }
.demo-sheet .raw {
  padding: 9% 8%; background: #FBFCFE; color: #2A3550;
  font: 400 clamp(9px, 2.45vw, 11.2px)/1.55 var(--mono);
  clip-path: inset(calc(var(--p) * 100%) 0 0 0);
  display: flex; flex-direction: column; gap: 0.55em; overflow: hidden;
}
.raw .l { display: block; transform-origin: 0 50%; transition: transform 0.55s cubic-bezier(0.2, 0.8, 0.2, 1), opacity 0.4s; transition-delay: calc(var(--i, 0) * 28ms); white-space: pre-wrap; overflow-wrap: anywhere; }
.raw .l.gap { height: 0.2em; }
.raw .mk, .raw .junk { color: #C2410C; transition: opacity 0.35s calc(var(--i, 0) * 28ms + 0.15s), color 0.3s; }
.raw .chat { color: #6B7697; }
.raw .chat s { text-decoration: none; background-image: linear-gradient(currentColor, currentColor); background-repeat: no-repeat; background-size: 0 1.5px; background-position: 0 55%; transition: background-size 0.5s ease 0.1s; }
.demo[data-phase="raw"] .raw .l { transform: rotate(var(--r, 0deg)) translateX(var(--x, 0px)); }
.demo[data-phase="straight"] .raw .mk, .demo[data-phase="straight"] .raw .junk, .demo[data-phase="comb"] .raw .mk, .demo[data-phase="comb"] .raw .junk { opacity: 0; }
.demo[data-phase="straight"] .raw .chat s, .demo[data-phase="comb"] .raw .chat s { background-size: 100% 1.5px; }
.demo[data-phase="straight"] .raw .chat, .demo[data-phase="comb"] .raw .chat { opacity: 0.45; }
.comb {
  position: absolute; left: -2%; right: -2%; top: calc(var(--p) * 100%); height: 0; z-index: 2; pointer-events: none;
  opacity: 0; transition: opacity 0.25s;
}
.comb::before { content: ""; position: absolute; left: 0; right: 0; top: -1px; height: 3px; background: var(--spark); box-shadow: 0 0 14px 3px rgba(255, 118, 49, 0.55); border-radius: 3px; }
.comb::after { content: ""; position: absolute; left: 0; right: 0; top: 2px; height: 10px; background: repeating-linear-gradient(90deg, rgba(255, 118, 49, 0.55) 0 2px, transparent 2px 9px); -webkit-mask: linear-gradient(#000, transparent); mask: linear-gradient(#000, transparent); }
.demo[data-phase="comb"] .comb { opacity: 1; }
.demo-sheet.pasting .raw { clip-path: none; animation: paste 0.65s ease both; }
@keyframes paste { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.demo-chip {
  position: absolute; left: -14px; bottom: 22px; z-index: 3; margin: 0;
  display: inline-flex; align-items: center; gap: 10px; padding: 9px 14px 9px 10px; border-radius: 12px;
  background: rgba(8, 20, 54, 0.82); color: #F3F6FD; -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(185, 199, 229, 0.18);
  font: 600 var(--fs-s)/1.2 var(--text); transition: transform 0.35s, opacity 0.35s;
}
.demo-chip small { display: block; font-weight: 500; color: #B9C7E5; font-size: var(--fs-xs); }
.demo-chip .sw { width: 26px; height: 34px; border-radius: 3px; flex: none; background: var(--sw-paper, #fff); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.25); position: relative; overflow: hidden; }
.demo-chip .sw::after { content: ""; position: absolute; left: 4px; right: 4px; top: 6px; height: 4px; border-radius: 1px; background: var(--sw-accent, #1C5CEB); box-shadow: 0 7px 0 -1px var(--sw-line, rgba(0, 0, 0, 0.25)), 0 13px 0 -1px var(--sw-line, rgba(0, 0, 0, 0.25)); }
.demo[data-phase="raw"] .demo-chip, .demo[data-phase="straight"] .demo-chip, .demo[data-phase="comb"] .demo-chip { opacity: 0; transform: translateY(6px); }
@media (max-width: 520px) { .demo-chip { left: 8px; bottom: 12px; } }
.demo-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 18px; flex-wrap: wrap; }
.demo-steps { display: flex; gap: 6px; margin: 0; padding: 0; list-style: none; color: var(--on-night-2); font-size: var(--fs-xs); flex-wrap: wrap; }
.demo-steps li { padding: 6px 10px; border-radius: 99px; border: 1px solid rgba(185, 199, 229, 0.22); transition: background 0.3s, color 0.3s, border-color 0.3s; }
.demo-steps li.on { background: rgba(91, 140, 255, 0.2); border-color: rgba(143, 176, 255, 0.55); color: #FFFFFF; }
.demo-controls { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.demo-styles { display: flex; gap: 6px; }
.demo-styles button {
  width: 34px; height: 34px; border-radius: 9px; border: 1px solid rgba(185, 199, 229, 0.3); background: transparent; cursor: pointer; padding: 5px;
  display: grid; place-items: center;
}
.demo-styles button span { display: block; width: 16px; height: 21px; border-radius: 2px; background: var(--sw-paper); box-shadow: inset 0 3px 0 var(--sw-accent), inset 0 0 0 1px rgba(255, 255, 255, 0.25); }
.demo-styles button[aria-pressed="true"] { border-color: #8FB0FF; background: rgba(91, 140, 255, 0.22); }
.motion-toggle {
  display: inline-flex; align-items: center; gap: 8px; min-height: 34px; padding: 6px 12px; border-radius: 9px;
  border: 1px solid rgba(185, 199, 229, 0.3); background: transparent; color: var(--on-night-2); cursor: pointer; font: 500 var(--fs-xs)/1 var(--text);
}
.motion-toggle svg { width: 14px; height: 14px; }
.motion-toggle:hover { color: #FFFFFF; border-color: #8FB0FF; }

/* ---------- clean-up: before and after ---------- */
.compare { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); border: 1px solid var(--line); border-radius: var(--radius); background: var(--sheet); overflow: hidden; }
@media (max-width: 860px) { .compare { grid-template-columns: minmax(0, 1fr); } }
.compare > div { padding: clamp(20px, 3vw, 34px); min-width: 0; }
.compare .before { background: color-mix(in srgb, var(--desk) 55%, var(--sheet)); border-right: 1px solid var(--line); }
@media (max-width: 860px) { .compare .before { border-right: 0; border-bottom: 1px solid var(--line); } }
.compare h3 { font: 600 var(--fs-xs)/1 var(--text); letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 18px; display: flex; align-items: center; gap: 10px; }
.compare h3 .count { margin-left: auto; letter-spacing: 0; text-transform: none; font-weight: 600; color: var(--ok); font-variant-numeric: tabular-nums; }
.rawlist { margin: 0; padding: 0; list-style: none; font: 400 var(--fs-s)/1.55 var(--mono); color: var(--ink-2); display: grid; gap: 12px; }
.rawlist li, .cleanlist [data-pair] { position: relative; border-radius: 5px; transition: background 0.35s, box-shadow 0.35s; box-decoration-break: clone; -webkit-box-decoration-break: clone; }
.rawlist .mk, .rawlist .junk { color: var(--spark-ink); font-weight: 600; }
.rawlist .stock { background: var(--mark); border-radius: 3px; box-decoration-break: clone; -webkit-box-decoration-break: clone; }
.tag { display: inline-block; vertical-align: 1px; margin-left: 6px; padding: 2px 7px; border-radius: 99px; font: 600 11px/1.4 var(--text); letter-spacing: 0.02em; color: var(--spark-ink); background: var(--mark); white-space: nowrap; }
.cleanlist { display: grid; gap: 12px; }
.cleanlist .t { font: 800 clamp(1.5rem, 1.2rem + 1vw, 1.875rem)/1.1 var(--display); letter-spacing: -0.03em; color: var(--ink); }
.cleanlist .t::after { content: ""; display: block; width: 44px; height: 3px; background: var(--brand); border-radius: 2px; margin-top: 12px; }
.cleanlist p { margin: 0; color: var(--ink-2); }
.cleanlist .hd { font: 700 var(--fs-l)/1.2 var(--display); letter-spacing: -0.015em; color: var(--ink); }
.cleanlist ul { margin: 0; padding-left: 1.2em; color: var(--ink-2); }
.cleanlist .gone { font: 500 var(--fs-xs)/1.4 var(--text); color: var(--ok); display: inline-flex; gap: 6px; align-items: center; }
.cleanlist .gone svg { width: 14px; height: 14px; }
.pair-on { background: var(--down) !important; box-shadow: 0 0 0 5px var(--down); }
.compare-note { margin: 18px 0 0; font-size: var(--fs-s); color: var(--ink-3); }

/* ---------- wording swaps ---------- */
.swaps { margin: 0; padding: 0; list-style: none; display: grid; gap: 2px; border-top: 1px solid var(--line); }
.swaps li {
  display: grid; grid-template-columns: minmax(0, 1fr) 40px minmax(0, 1fr); align-items: center; gap: 12px;
  padding: 18px 4px; border-bottom: 1px solid var(--line); transition: background 0.4s;
}
@media (max-width: 720px) { .swaps li { grid-template-columns: minmax(0, 1fr); gap: 4px; } .swaps .arr { display: none; } }
.swaps .ai { color: var(--ink-3); font-size: var(--fs-m); position: relative; }
.swaps .ai span { background-image: linear-gradient(var(--spark), var(--spark)); background-repeat: no-repeat; background-size: 100% 2px; background-position: 0 58%; box-decoration-break: clone; -webkit-box-decoration-break: clone; }
.swaps .plain { font: 400 clamp(1.25rem, 1.05rem + 0.8vw, 1.625rem)/1.25 var(--serif); color: var(--ink); letter-spacing: -0.005em; }
.swaps .arr { color: var(--brand); justify-self: center; }
.swaps .arr svg { width: 22px; height: 22px; }
.swaps li.on { background: linear-gradient(90deg, transparent, var(--down) 18%, var(--down) 82%, transparent); }
.swaps li.on .ai span { animation: strike 0.7s ease both; }
.swaps li.on .plain { animation: rise 0.6s 0.35s ease both; }
@keyframes strike { from { background-size: 0 2px; } to { background-size: 100% 2px; } }
@keyframes rise { from { transform: translateY(5px); color: var(--brand); } to { transform: none; } }

/* ---------- style gallery ---------- */
.groups { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 36px; padding: 0; list-style: none; }
.groups li { display: inline-flex; align-items: baseline; gap: 8px; padding: 8px 14px; border-radius: 99px; background: var(--sheet); border: 1px solid var(--line); font: 550 var(--fs-s)/1 var(--text); }
.groups li b { font-variant-numeric: tabular-nums; color: var(--brand); font-weight: 700; }
.groups li.dark { background: #0B1430; color: #EDF1FA; border-color: #0B1430; }
.groups li.dark b { color: #9DBBFF; }
.marquee { position: relative; overflow: hidden; padding-block: 8px 18px; -webkit-mask: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); mask: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.marquee + .marquee { margin-top: 6px; }
.track { display: flex; gap: 18px; width: max-content; animation: marq var(--dur, 90s) linear infinite; }
.marquee.rev .track { animation-direction: reverse; }
.marquee:hover .track, .marquee:focus-within .track, .motion-paused .track { animation-play-state: paused; }
@keyframes marq { to { transform: translateX(calc(-50% - 9px)); } }
.style-card { margin: 0; width: clamp(118px, 13vw, 168px); flex: none; }
.style-card img { width: 100%; aspect-ratio: 210 / 297; object-fit: cover; border-radius: 3px; box-shadow: var(--shadow-page); background: var(--sheet); }
.style-card figcaption { margin-top: 10px; font: 600 var(--fs-s)/1.2 var(--text); color: var(--ink); }
.style-card figcaption small { display: block; font-weight: 500; font-size: var(--fs-xs); color: var(--ink-3); margin-top: 2px; }
.gallery-foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; margin-top: 28px; color: var(--ink-3); font-size: var(--fs-s); }
.gallery-foot p { margin: 0; max-width: 70ch; }
@media (prefers-reduced-motion: reduce) {
  .marquee { -webkit-mask: none; mask: none; overflow-x: auto; scrollbar-width: thin; }
  .track { animation: none; }
  .track [aria-hidden="true"] { display: none; }
}

/* ---------- feature tiles ---------- */
.tiles { display: grid; gap: 18px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 1000px) { .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .tiles { grid-template-columns: minmax(0, 1fr); } }
.tile { display: flex; flex-direction: column; gap: 10px; padding: 22px; border-radius: var(--radius); background: var(--sheet); border: 1px solid var(--line); min-width: 0; }
.tile p { margin: 0; color: var(--ink-2); font-size: var(--fs-s); line-height: 1.55; }
.stage { order: -1; position: relative; height: 172px; border-radius: 10px; background: var(--desk); margin-bottom: 8px; overflow: hidden; display: grid; place-items: center; padding: 14px; }
.also { margin: 28px 0 0; color: var(--ink-2); font-size: var(--fs-s); max-width: 80ch; }
/* spelling */
.spell-stage { flex-direction: column; gap: 14px; }
.spell { margin: 0; font: 400 1.0625rem/1.65 var(--text); color: var(--ink); max-width: 26ch; text-align: left; }
.spell .w { text-decoration: underline wavy var(--spark); text-decoration-thickness: 1.5px; text-underline-offset: 3px; text-decoration-skip-ink: none; }
.spell .f { display: none; color: var(--brand); font-weight: 600; border-radius: 3px; }
.spell.fixed .w { display: none; }
.spell.fixed .f { display: inline; animation: fixed-in 0.6s ease both; }
@keyframes fixed-in { from { background: var(--down); opacity: 0.2; } 50% { background: var(--down); opacity: 1; } to { background: transparent; } }
.tile-btn { min-height: 34px; padding: 6px 12px; border-radius: 9px; border: 1px solid var(--line-2); background: var(--sheet); color: var(--ink); font: 600 var(--fs-xs)/1 var(--text); cursor: pointer; }
.tile-btn:hover { border-color: var(--brand); color: var(--brand); }
/* studio */
.mini { --mp-paper: #FFFFFF; --mp-ink: #1F2937; --mp-head: #0B1430; --mp-accent: #1C5CEB; width: 92px; aspect-ratio: 210 / 297; border-radius: 3px; background: var(--mp-paper); box-shadow: var(--shadow-page); padding: 12px 11px; display: flex; flex-direction: column; gap: 5px; transition: background 0.5s; }
.mini i { display: block; height: 4px; border-radius: 2px; background: var(--mp-ink); opacity: 0.32; transition: background 0.5s; }
.mini .mt { height: 9px; width: 78%; background: var(--mp-head); opacity: 1; }
.mini .ma { height: 3px; width: 26px; background: var(--mp-accent); opacity: 1; margin-bottom: 4px; }
.mini .mh { height: 5px; width: 52%; background: var(--mp-head); opacity: 0.9; margin-top: 4px; }
.mini .s { width: 70%; }
.mini[data-paper="ivory"] { --mp-paper: #FBF8F1; --mp-ink: #2B2620; --mp-head: #2B2620; --mp-accent: #8B5E34; }
.mini[data-paper="navy"] { --mp-paper: #0C1A30; --mp-ink: #D5DCE8; --mp-head: #F4EFE2; --mp-accent: #C8A45A; }
.mini[data-paper="forest"] { --mp-paper: #0F221C; --mp-ink: #D6E2DA; --mp-head: #F3EBD9; --mp-accent: #D4B25E; }
.mini[data-paper="black"] { --mp-paper: #0B0B0C; --mp-ink: #D4D4D8; --mp-head: #FFFFFF; --mp-accent: #FFFFFF; }
.studio-stage { display: flex; align-items: center; gap: 20px; }
.papers { display: grid; gap: 7px; }
.papers button { width: 28px; height: 28px; border-radius: 8px; border: 1px solid var(--line-2); cursor: pointer; padding: 0; box-shadow: inset 0 0 0 2px var(--sheet); }
.papers button[aria-pressed="true"] { outline: 2px solid var(--brand); outline-offset: 1px; }
/* paper sizes, drawn to scale */
.sizes { position: absolute; left: 22px; top: 14px; height: calc(100% - 28px); width: 120px; overflow: visible; }
.sizes rect { fill: none; stroke: var(--line-2); stroke-width: 1.4; transition: stroke 0.35s, fill 0.35s; vector-effect: non-scaling-stroke; }
.sizes g.on rect { stroke: var(--brand); stroke-width: 2.2; fill: color-mix(in srgb, var(--brand) 10%, transparent); }
.sizes text { font: 700 30px var(--text); fill: var(--brand); opacity: 0; transition: opacity 0.35s; }  /* user units are millimetres */
.sizes g.on text { opacity: 1; }
.size-read { position: absolute; right: 12px; bottom: 10px; min-height: 30px; font: 600 var(--fs-xs)/1 var(--text); color: var(--ink); background: var(--sheet); border: 1px solid var(--line); padding: 6px 9px; border-radius: 8px; font-variant-numeric: tabular-nums; cursor: pointer; }
.size-read:hover { border-color: var(--brand); }
/* pictures */
.picpage { width: 120px; aspect-ratio: 210 / 297; background: #FFFFFF; border-radius: 3px; box-shadow: var(--shadow-page); padding: 12px 11px; display: flex; flex-direction: column; gap: 5px; }
.picpage i { display: block; height: 4px; border-radius: 2px; background: #1F2937; opacity: 0.28; }
.picpage .mt { height: 8px; width: 70%; background: #0B1430; opacity: 1; margin-bottom: 4px; }
.picpage .photo { height: 46px; border-radius: 2px; margin: 3px 0; background: linear-gradient(180deg, #8EC5FF 0%, #CFE6FF 55%, #5B8A5A 56%, #3F6B43 100%); position: relative; overflow: hidden; }
.picpage .photo::before { content: ""; position: absolute; width: 12px; height: 12px; border-radius: 50%; background: #FFD27A; right: 12px; top: 8px; }
.picpage .photo::after { content: ""; position: absolute; left: -6px; bottom: 0; width: 60px; height: 26px; background: #2F5634; clip-path: polygon(0 100%, 45% 10%, 100% 100%); }
.picpage .cap { height: 3px; width: 55%; opacity: 0.5; }
.picpage .s { width: 64%; }
.srcs { position: absolute; left: 12px; top: 12px; display: grid; gap: 6px; }
.srcs span { font: 600 11px/1 var(--text); padding: 5px 8px; border-radius: 6px; background: var(--sheet); border: 1px solid var(--line); color: var(--ink-2); }
/* editing */
.editor { width: min(100%, 250px); background: var(--sheet); border-radius: 10px; box-shadow: var(--shadow-soft); overflow: hidden; }
.editor .tb { display: flex; gap: 2px; padding: 6px; border-bottom: 1px solid var(--line); }
.editor .tb span { min-width: 26px; height: 26px; padding: 0 6px; border-radius: 6px; display: grid; place-items: center; font: 700 12px/1 var(--text); color: var(--ink-2); }
.editor .tb span.on { background: var(--down); color: var(--brand); }
.editor .tx { padding: 12px 12px 14px; font: 400 13px/1.55 var(--text); color: var(--ink-2); }
.editor .tx b { color: var(--ink); }
.caret { display: inline-block; width: 1.5px; height: 1.05em; background: var(--brand); vertical-align: -0.15em; margin-left: 1px; animation: blink 1.1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
/* exports */
.formats { display: flex; flex-wrap: wrap; justify-content: center; gap: 7px; margin: 0; padding: 0; list-style: none; max-width: 270px; }
.formats li { font: 600 12px/1 var(--text); padding: 8px 10px; border-radius: 8px; background: var(--sheet); border: 1px solid var(--line); color: var(--ink); }
.formats li.copy { background: var(--down); border-color: transparent; color: var(--brand); }
.formats.play li { animation: lift 0.5s ease both; animation-delay: calc(var(--i) * 70ms); }
@keyframes lift { 40% { transform: translateY(-5px); } to { transform: none; } }

/* ---------- steps ---------- */
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin: 0; padding: 0; list-style: none; counter-reset: step; }
@media (max-width: 860px) { .steps { grid-template-columns: minmax(0, 1fr); } }
.steps li { counter-increment: step; padding: 26px 24px 24px; border-top: 2px solid var(--ink); background: transparent; }
.steps li::before { content: counter(step); display: block; font: 800 3rem/1 var(--display); letter-spacing: -0.04em; color: var(--brand); margin-bottom: 16px; }
.steps h3 { margin-bottom: 8px; }
.steps p { margin: 0; color: var(--ink-2); font-size: var(--fs-s); }

/* ---------- devices ---------- */
.devices { position: relative; display: grid; grid-template-columns: minmax(0, 1fr); margin-top: 8px; }
.frame-mac { position: relative; border-radius: 14px; background: var(--sheet); box-shadow: var(--shadow-page); border: 1px solid var(--line); overflow: hidden; width: 86%; }
.frame-mac .bar {
  height: 26px; border-bottom: 1px solid var(--line);
  background: radial-gradient(circle at 15px 50%, #FF5F57 0 4.5px, transparent 5px), radial-gradient(circle at 31px 50%, #FEBC2E 0 4.5px, transparent 5px),
    radial-gradient(circle at 47px 50%, #28C840 0 4.5px, transparent 5px), var(--desk);
}
.devices figure { margin: 0; }
.frame-mac img { width: 100%; }
.frame-pad, .frame-phone { position: absolute; background: #0B1022; box-shadow: 0 2px 4px rgba(0, 0, 0, 0.25), 0 26px 60px -18px rgba(8, 20, 54, 0.55); overflow: hidden; }
.frame-pad { right: 0; top: 14%; width: 30%; border-radius: 22px; padding: 10px; }
.frame-pad img { border-radius: 13px; }
.frame-phone { right: 24%; bottom: -8%; width: 17%; border-radius: 30px; padding: 7px; }
.frame-phone img { border-radius: 24px; }
@media (max-width: 720px) {
  .frame-mac { width: 100%; }
  .frame-pad { display: none; }
  .frame-phone { position: relative; right: auto; bottom: auto; width: 46%; margin: -18% 0 0 auto; }
}
.device-notes { display: flex; flex-wrap: wrap; gap: 10px 28px; margin: clamp(56px, 8vw, 96px) 0 0; padding: 0; list-style: none; color: var(--ink-2); font-size: var(--fs-s); }
.device-notes li { display: flex; gap: 10px; align-items: baseline; max-width: 34ch; }
.device-notes b { color: var(--ink); }

/* ---------- privacy band ---------- */
.facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; margin: 48px 0 0; padding: 0; list-style: none; border-top: 1px solid var(--night-line); }
@media (max-width: 960px) { .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .facts { grid-template-columns: minmax(0, 1fr); } }
.facts li { padding: 24px 24px 8px 0; }
.facts svg { width: 26px; height: 26px; color: #8FB0FF; margin-bottom: 14px; }
.facts h3 { color: var(--on-night); font-size: var(--fs-m); margin-bottom: 8px; }
.facts p { margin: 0; color: var(--on-night-2); font-size: var(--fs-s); }
.night a { color: #A9C2FF; }
.privacy-link { margin-top: 32px; }

/* ---------- pricing ---------- */
.plans { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
@media (max-width: 820px) { .plans { grid-template-columns: minmax(0, 1fr); } }
.plan { padding: clamp(24px, 3vw, 36px); border-radius: var(--radius); background: var(--sheet); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 6px; }
.plan.pro { border: 2px solid var(--brand); }
.plan .price { font: 800 var(--fs-xl)/1.1 var(--display); letter-spacing: -0.02em; margin-top: 2px; }
.plan .price { margin: 2px 0 0; }
.plan .price small { display: block; margin-top: 4px; font: 500 var(--fs-s)/1.4 var(--text); color: var(--ink-3); letter-spacing: 0; }
.plan ul { margin: 18px 0 0; padding: 0; list-style: none; display: grid; gap: 12px; }
.plan li { display: grid; grid-template-columns: 20px minmax(0, 1fr); gap: 10px; color: var(--ink-2); font-size: var(--fs-s); }
.plan li svg { width: 18px; height: 18px; color: var(--ok); margin-top: 2px; }
.plan.pro li svg { color: var(--brand); }
.plans-note { margin: 18px 0 0; color: var(--ink-3); font-size: var(--fs-s); }

/* ---------- FAQ ---------- */
.faq { max-width: 860px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq details:first-of-type { border-top: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 2px; font: 650 var(--fs-m)/1.35 var(--text); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex: none; width: 12px; height: 12px; border-right: 2px solid var(--ink-3); border-bottom: 2px solid var(--ink-3); transform: rotate(45deg) translateY(-3px); transition: transform 0.25s; }
.faq details[open] summary::after { transform: rotate(225deg) translateY(-3px); }
.faq details > div { padding: 0 2px 22px; color: var(--ink-2); max-width: 70ch; }
.faq details > div p { margin: 0 0 10px; }

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--line); background: var(--paper); }
.site-footer .wrap { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 28px; padding-block: 44px calc(36px + env(safe-area-inset-bottom, 0px)); align-items: start; }
@media (max-width: 720px) { .site-footer .wrap { grid-template-columns: minmax(0, 1fr); } }
.site-footer .logo { height: 26px; }
.site-footer .tag-line { margin: 12px 0 0; color: var(--ink-3); font-size: var(--fs-s); }
.foot-nav { display: flex; flex-wrap: wrap; gap: 6px 22px; margin: 0; padding: 0; list-style: none; }
.foot-nav a { color: var(--ink); text-decoration: none; font-weight: 550; font-size: var(--fs-s); }
.foot-nav a:hover { text-decoration: underline; }
.fine { grid-column: 1 / -1; margin: 0; color: var(--ink-3); font-size: var(--fs-xs); line-height: 1.6; }

/* ---------- inner pages: legal and support ---------- */
.page-head { padding-block: clamp(48px, 7vw, 88px) clamp(28px, 4vw, 44px); }
.page-head h1 { font-size: clamp(2.25rem, 1.5rem + 3.4vw, 3.75rem); letter-spacing: -0.04em; }
.page-head .meta { margin: 18px 0 0; color: var(--ink-3); font-size: var(--fs-s); }
.doc-grid { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); padding-bottom: clamp(64px, 9vw, 120px); align-items: start; }
@media (max-width: 900px) { .doc-grid { grid-template-columns: minmax(0, 1fr); } }
.toc { position: sticky; top: calc(20px + env(safe-area-inset-top, 0px)); font-size: var(--fs-s); }
@media (max-width: 900px) { .toc { position: static; } }
.toc p { font: 600 var(--fs-xs)/1 var(--text); letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-3); margin: 0 0 12px; }
.toc ol { margin: 0; padding: 0; list-style: none; display: grid; gap: 2px; counter-reset: toc; }
.toc li { counter-increment: toc; }
.toc a { display: grid; grid-template-columns: 24px minmax(0, 1fr); padding: 6px 8px; margin-inline: -8px; border-radius: 7px; color: var(--ink-2); text-decoration: none; line-height: 1.35; }
.toc a::before { content: counter(toc); color: var(--ink-3); font-variant-numeric: tabular-nums; }
.toc a:hover { background: var(--desk); color: var(--ink); }
.doc { max-width: 68ch; min-width: 0; counter-reset: sec; }
.doc .summary { padding: 22px 24px; border-radius: var(--radius); background: var(--sheet); border: 1px solid var(--line); margin-bottom: 40px; }
.doc .summary h2 { font-size: var(--fs-l); margin-bottom: 10px; letter-spacing: -0.015em; }
.doc .summary ul { margin: 0; padding-left: 1.15em; color: var(--ink-2); display: grid; gap: 6px; }
.doc section { scroll-margin-top: 24px; padding-top: 8px; margin-bottom: 36px; }
.doc section > h2 { counter-increment: sec; font-size: var(--fs-xl); letter-spacing: -0.02em; margin-bottom: 14px; display: flex; gap: 12px; align-items: baseline; }
.doc section > h2::before { content: counter(sec); font: 700 var(--fs-s)/1 var(--text); color: var(--brand); min-width: 1.4em; font-variant-numeric: tabular-nums; }
.doc h3 { font-size: var(--fs-m); margin: 22px 0 8px; letter-spacing: -0.01em; }
.doc p, .doc li { color: var(--ink-2); }
.doc ul, .doc ol { padding-left: 1.2em; }
.doc li { margin-bottom: 6px; }
.doc table { width: 100%; border-collapse: collapse; font-size: var(--fs-s); margin: 12px 0 18px; }
.doc th, .doc td { text-align: left; vertical-align: top; padding: 10px 12px 10px 0; border-bottom: 1px solid var(--line); }
.doc th { font-weight: 650; color: var(--ink); white-space: nowrap; }
.tablewrap { overflow-x: auto; }
.todo { background: rgba(255, 118, 49, 0.18); color: var(--ink); border-radius: 4px; padding: 0 4px; box-shadow: inset 0 -2px 0 var(--spark); font-weight: 600; }
.licence { font: 400 12.5px/1.55 var(--mono); white-space: pre-wrap; background: var(--sheet); border: 1px solid var(--line); border-radius: 10px; padding: 16px; max-height: 340px; overflow: auto; color: var(--ink-2); }
.contact { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: 18px; margin-bottom: clamp(48px, 7vw, 80px); }
@media (max-width: 860px) { .contact { grid-template-columns: minmax(0, 1fr); } }
.contact .card { padding: clamp(22px, 3vw, 32px); border-radius: var(--radius); background: var(--sheet); border: 1px solid var(--line); }
.contact .card h2 { font-size: var(--fs-xl); margin-bottom: 10px; letter-spacing: -0.02em; }
.contact .card p { color: var(--ink-2); margin: 0 0 12px; }
.email { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 16px 0 6px; }
.email code { font: 600 var(--fs-l)/1.3 var(--text); color: var(--ink); user-select: all; -webkit-user-select: all; overflow-wrap: anywhere; }
.copy-btn { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 6px 12px; border-radius: 9px; border: 1px solid var(--line-2); background: transparent; color: var(--ink); font: 600 var(--fs-xs)/1 var(--text); cursor: pointer; }
.copy-btn svg { width: 14px; height: 14px; }
.copy-btn.done { color: var(--ok); border-color: var(--ok); }
.checklist { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.checklist li { display: grid; grid-template-columns: 20px minmax(0, 1fr); gap: 10px; color: var(--ink-2); font-size: var(--fs-s); }
.checklist svg { width: 18px; height: 18px; color: var(--brand); margin-top: 2px; }
.support-faq h2 { font-size: var(--fs-xl); letter-spacing: -0.02em; margin: 36px 0 12px; }
.not-found { padding-block: clamp(72px, 12vw, 160px); }
.not-found h1 { font-size: clamp(2.5rem, 1.6rem + 4vw, 4.5rem); letter-spacing: -0.04em; }

/* ---------- motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
  .caret { animation: none; }
}
.motion-paused *, .motion-paused *::before, .motion-paused *::after { animation-play-state: paused !important; }
