/* Quillpage website.
   System: SF Pro (system font) type scale, 4px spacing grid, one accent (blue),
   warm-neutral greys, 28px card radius, 12px window radius, full pills for actions. */

:root {
  color-scheme: light dark;
  --bg: #ffffff;
  --bg-alt: #f5f5f7;
  --tile: #f5f5f7;
  --tile-on-alt: #ffffff;
  --ink: #1d1d1f;
  --ink-2: #6e6e73;
  --ink-3: #86868b;
  --line: rgba(0, 0, 0, 0.1);
  --accent: #0071e3;
  --accent-hover: #0077ed;
  --link: #0066cc;
  --nav-bg: rgba(251, 251, 253, 0.8);
  --shadow-window: 0 0 0 1px rgba(0, 0, 0, 0.07), 0 2px 6px rgba(20, 30, 60, 0.06), 0 24px 64px -16px rgba(20, 40, 90, 0.28);
  --glow-a: rgba(0, 113, 227, 0.16);
  --glow-b: rgba(140, 90, 255, 0.12);
  --grad: linear-gradient(100deg, #0071e3 0%, #6e4bf0 55%, #c13584 100%);
  --radius-card: 28px;
  --radius-window: 12px;
  --max: 1080px;
  --gutter: 22px;
  --font: -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'SF Pro Display', 'Helvetica Neue', 'Segoe UI', Roboto, Arial, sans-serif;
  --mono: ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

/* Dark colours: automatic (system setting), unless the visitor picked Light or Dark in
   the footer (data-theme on <html>, set by theme.js before the page paints). */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) {
    --bg: #000000;
    --bg-alt: #0c0c0d;
    --tile: #161617;
    --tile-on-alt: #1c1c1e;
    --ink: #f5f5f7;
    --ink-2: #a1a1a6;
    --ink-3: #86868b;
    --line: rgba(255, 255, 255, 0.14);
    --accent: #0071e3;
    --accent-hover: #0077ed;
    --link: #2997ff;
    --nav-bg: rgba(22, 22, 23, 0.72);
    --shadow-window: 0 0 0 1px rgba(255, 255, 255, 0.12), 0 24px 64px -12px rgba(0, 0, 0, 0.8);
    --glow-a: rgba(41, 151, 255, 0.2);
    --glow-b: rgba(150, 100, 255, 0.16);
    --grad: linear-gradient(100deg, #2997ff 0%, #8b6bff 55%, #e0569b 100%);
  }
}
:root[data-theme='dark'] {
    --bg: #000000;
    --bg-alt: #0c0c0d;
    --tile: #161617;
    --tile-on-alt: #1c1c1e;
    --ink: #f5f5f7;
    --ink-2: #a1a1a6;
    --ink-3: #86868b;
    --line: rgba(255, 255, 255, 0.14);
    --accent: #0071e3;
    --accent-hover: #0077ed;
    --link: #2997ff;
    --nav-bg: rgba(22, 22, 23, 0.72);
    --shadow-window: 0 0 0 1px rgba(255, 255, 255, 0.12), 0 24px 64px -12px rgba(0, 0, 0, 0.8);
    --glow-a: rgba(41, 151, 255, 0.2);
    --glow-b: rgba(150, 100, 255, 0.16);
    --grad: linear-gradient(100deg, #2997ff 0%, #8b6bff 55%, #e0569b 100%);
}
:root[data-theme='light'] { color-scheme: light; }
:root[data-theme='dark'] { color-scheme: dark; }

/* ------------------------------------------------------------------ base */

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

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

body {
  display: flex; flex-direction: column; min-height: 100vh;
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.47;
  letter-spacing: -0.022em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; }
button { font: inherit; letter-spacing: inherit; color: inherit; }
[hidden] { display: none !important; }

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

.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: -48px; z-index: 100;
  padding: 8px 14px; border-radius: 10px;
  background: var(--ink); color: var(--bg); font-size: 14px;
  transition: top 0.2s var(--ease);
}
.skip:focus { top: 8px; text-decoration: none; }

.container { width: 100%; max-width: calc(var(--max) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }
.container-narrow { max-width: calc(820px + var(--gutter) * 2); }
.center { text-align: center; }

main { flex: 1 0 auto; }

/* ------------------------------------------------------------------ nav */

.nav {
  position: sticky; top: 0; z-index: 50;
  background: var(--nav-bg);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease);
}
.nav.is-scrolled { border-bottom-color: var(--line); }
.nav-inner {
  display: flex; align-items: center; gap: 24px;
  max-width: calc(var(--max) + var(--gutter) * 2); height: 52px;
  margin: 0 auto; padding: 0 var(--gutter);
}
.brand {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--ink); font-size: 19px; font-weight: 600; letter-spacing: -0.02em;
}
.brand:hover { text-decoration: none; }
.brand img { width: 24px; height: 24px; }
.nav-links { display: flex; gap: 28px; margin-left: auto; }
.nav-links a { color: var(--ink); opacity: 0.8; font-size: 13px; letter-spacing: -0.01em; transition: opacity 0.2s; }
.nav-links a:hover { opacity: 1; text-decoration: none; }
.nav-actions { display: flex; align-items: center; gap: 8px; }

.menu-btn {
  display: none; position: relative;
  width: 36px; height: 36px; padding: 0; margin-right: -8px;
  border: 0; background: none; cursor: pointer;
}
.menu-btn span {
  position: absolute; left: 11px; width: 14px; height: 1.5px; border-radius: 1px;
  background: var(--ink); transition: transform 0.3s var(--ease), top 0.3s var(--ease);
}
.menu-btn span:first-child { top: 14px; }
.menu-btn span:last-child { top: 20px; }
.nav.is-open .menu-btn span:first-child { top: 17px; transform: rotate(45deg); }
.nav.is-open .menu-btn span:last-child { top: 17px; transform: rotate(-45deg); }

@media (max-width: 833px) {
  .menu-btn { display: block; }
  .nav-actions { margin-left: auto; }
  .nav-links {
    position: absolute; top: 52px; left: 0; right: 0;
    display: none; flex-direction: column; gap: 0;
    padding: 8px var(--gutter) 24px;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
  }
  .nav.is-open .nav-links { display: flex; }
  .nav-links a {
    padding: 12px 0; font-size: 24px; font-weight: 600; letter-spacing: -0.02em; opacity: 1;
    border-bottom: 1px solid var(--line);
  }
  .nav-links a:last-child { border-bottom: 0; }
}

/* ------------------------------------------------------------------ actions */

.pill {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.3em;
  min-height: 44px; padding: 11px 22px;
  border: 0; border-radius: 980px;
  background: var(--accent); color: #fff;
  font-size: 17px; font-weight: 400; line-height: 1.18; white-space: nowrap;
  cursor: pointer;
  transition: background-color 0.2s var(--ease), transform 0.2s var(--ease), opacity 0.2s;
}
.pill:hover { background: var(--accent-hover); text-decoration: none; }
.pill:active { transform: scale(0.98); }
.pill:disabled { opacity: 0.55; cursor: progress; }
.pill-small { min-height: 28px; padding: 4px 13px; font-size: 13px; }
.pill-large { min-height: 52px; padding: 15px 34px; font-size: 18px; }
.pill-ghost {
  background: transparent; color: var(--link);
  box-shadow: inset 0 0 0 1px currentColor;
}
.pill-ghost:hover { background: color-mix(in srgb, var(--link) 8%, transparent); }

.more { display: inline-flex; align-items: center; font-size: 17px; }
.more:hover { text-decoration: none; opacity: 0.8; }
.more::after {
  content: ''; width: 7px; height: 7px; margin-left: 6px;
  border-top: 1.6px solid currentColor; border-right: 1.6px solid currentColor;
  transform: rotate(45deg) translateY(1px);
}

/* ------------------------------------------------------------------ type */

.eyebrow { color: var(--ink-2); font-size: 21px; font-weight: 600; letter-spacing: 0.004em; }
.eyebrow-accent {
  display: inline-block;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
  font-size: 17px;
}
.display {
  font-size: clamp(44px, 7.2vw, 84px); font-weight: 700; line-height: 1.05; letter-spacing: -0.035em;
  text-wrap: balance;
}
.display-sm { font-size: clamp(40px, 5.6vw, 64px); }
.headline {
  font-size: clamp(32px, 4.8vw, 56px); font-weight: 700; line-height: 1.07; letter-spacing: -0.03em;
  text-wrap: balance;
}
.section-title {
  margin-bottom: clamp(36px, 5vw, 64px);
  font-size: clamp(32px, 4.8vw, 56px); font-weight: 700; line-height: 1.07; letter-spacing: -0.03em;
  text-align: center; text-wrap: balance;
}

/* ------------------------------------------------------------------ hero */

.hero { padding: clamp(56px, 9vw, 104px) 0 clamp(72px, 10vw, 128px); text-align: center; overflow: hidden; }
.hero .eyebrow { margin-bottom: 12px; }
.hero-sub {
  max-width: 640px; margin: 24px auto 0;
  color: var(--ink-2); font-size: clamp(19px, 2.1vw, 24px); line-height: 1.38; letter-spacing: -0.015em;
  text-wrap: pretty;
}
.hero-cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 16px 32px; margin-top: 36px; }
.hero-fine { margin-top: 20px; text-wrap: balance; color: var(--ink-3); font-size: 14px; letter-spacing: -0.01em; }

.hero-shot { position: relative; max-width: 1200px; margin: clamp(48px, 7vw, 80px) auto 0; padding: 0 var(--gutter); }
.hero-shot::before {
  content: ''; position: absolute; inset: 8% 4% -6%; z-index: -1;
  background: radial-gradient(50% 55% at 30% 45%, var(--glow-a), transparent 70%), radial-gradient(45% 50% at 72% 55%, var(--glow-b), transparent 70%);
  filter: blur(40px);
}

/* A macOS window around each screenshot, with traffic lights sized to the image. */
.window {
  position: relative; overflow: hidden;
  border-radius: var(--radius-window);
  box-shadow: var(--shadow-window);
  background: var(--tile);
  container-type: inline-size;
}
.window img { width: 100%; }
.lights { position: absolute; top: 0.88cqw; left: 0.97cqw; display: flex; gap: 0.56cqw; }
.lights i { width: 0.83cqw; height: 0.83cqw; min-width: 5px; min-height: 5px; border-radius: 50%; background: #ff5f57; box-shadow: inset 0 0 0 0.5px rgba(0, 0, 0, 0.12); }
.lights i:nth-child(2) { background: #febc2e; }
.lights i:nth-child(3) { background: #28c840; }
@media (max-width: 600px) {
  .window { border-radius: 8px; }
}

/* ------------------------------------------------------------------ sections */

.section { padding: clamp(80px, 11vw, 140px) 0; }
.section-alt { background: var(--bg-alt); }

.chapter { max-width: 820px; margin: 0 auto; text-align: center; }
.chapter .eyebrow { margin-bottom: 12px; }
.chapter-text {
  max-width: 700px; margin: 20px auto 0;
  color: var(--ink-2); font-size: clamp(17px, 1.7vw, 21px); line-height: 1.42; letter-spacing: -0.012em;
  text-wrap: pretty;
}
.shot { max-width: 1080px; margin: clamp(48px, 6vw, 72px) auto 0; }

/* bento highlights */
.bento { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.tile {
  display: flex; flex-direction: column;
  min-height: 320px; padding: clamp(28px, 3.4vw, 44px);
  border-radius: var(--radius-card);
  background: var(--tile);
}
.tile-wide { grid-column: span 2; }
.tile-kicker { color: var(--ink-2); font-size: 17px; font-weight: 600; }
.tile-head { margin-top: 8px; font-size: clamp(36px, 4.4vw, 56px); font-weight: 700; line-height: 1.05; letter-spacing: -0.03em; }
.tile-head-sm { font-size: clamp(24px, 2.4vw, 28px); line-height: 1.14; letter-spacing: -0.02em; }
.tile-text { margin-top: 12px; color: var(--ink-2); font-size: 17px; text-wrap: pretty; }
.tile-wide .tile-text { max-width: 520px; }
.tile-icon {
  width: 44px; height: 44px; margin-bottom: 56px;
  fill: none; stroke: var(--link); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round;
}
.tile-price { justify-content: flex-end; container-type: inline-size; }
.tile-price .tile-kicker { margin-bottom: auto; }
.tile-figure {
  font-size: min(84px, 25cqw); font-weight: 700; line-height: 1; letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
  padding-bottom: 0.06em;
}
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; padding-top: 32px; }
.chips li {
  padding: 5px 13px; border-radius: 980px;
  box-shadow: inset 0 0 0 1px var(--line);
  color: var(--ink-2); font-size: 14px; letter-spacing: -0.01em;
}
.chips .chip-strong { background: var(--ink); color: var(--bg); box-shadow: none; font-weight: 600; }

@media (max-width: 960px) {
  .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tile-wide { grid-column: 1 / -1; }
  .tile { min-height: 280px; }
}
@media (max-width: 600px) {
  .bento { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .tile { min-height: 0; border-radius: 22px; }
  .tile-icon { margin-bottom: 24px; }
  .tile-price .tile-kicker { margin-bottom: 24px; }
}

/* split chapter (text beside picture) */
.split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.paper {
  justify-self: center; width: 100%; max-width: 560px;
  border-radius: 4px; overflow: hidden;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.06), 0 2px 4px rgba(20, 30, 60, 0.06), 0 32px 64px -24px rgba(20, 40, 90, 0.3);
  -webkit-mask-image: linear-gradient(to bottom, #000 72%, transparent);
  mask-image: linear-gradient(to bottom, #000 72%, transparent);
}
.paper img { width: 100%; }
.headline-left { text-align: left; }
.split .chapter-text { margin-left: 0; }
.split-text .eyebrow { margin-bottom: 12px; }
.checks { display: grid; gap: 12px; margin-top: 32px; }
.checks li { position: relative; padding-left: 30px; font-size: 17px; }
.checks li::before {
  content: ''; position: absolute; left: 4px; top: 4px;
  width: 6px; height: 12px;
  border-right: 2px solid var(--link); border-bottom: 2px solid var(--link);
  transform: rotate(45deg);
}
@media (max-width: 833px) {
  .split { grid-template-columns: minmax(0, 1fr); }
  .split-text { text-align: center; }
  .headline-left { text-align: center; }
  .split .chapter-text { margin-left: auto; }
  .checks { justify-content: center; text-align: left; }
}

/* essentials grid */
.features { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 56px 40px; }
.features svg {
  width: 32px; height: 32px; margin-bottom: 16px;
  fill: none; stroke: var(--link); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round;
}
.features h3 { font-size: 19px; font-weight: 600; letter-spacing: -0.02em; }
.features p { margin-top: 6px; color: var(--ink-2); font-size: 15px; line-height: 1.47; letter-spacing: -0.01em; }
@media (max-width: 960px) {
  .features { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 44px 32px; }
}
@media (max-width: 480px) {
  .features { grid-template-columns: minmax(0, 1fr); gap: 36px; }
}

/* comparison */
.compare { margin-top: clamp(40px, 5vw, 56px); padding: 8px clamp(20px, 3vw, 36px); border-radius: var(--radius-card); background: var(--tile-on-alt); }
.compare table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.compare th, .compare td { padding: 20px 0; text-align: left; vertical-align: top; border-top: 1px solid var(--line); }
.compare thead th { padding: 18px 0 14px; border-top: 0; color: var(--ink-3); font-size: 12px; font-weight: 600; letter-spacing: 0.02em; text-transform: uppercase; }
.compare th[scope='row'] { padding-right: 20px; font-weight: 600; }
.compare td { padding-left: 16px; color: var(--ink-2); white-space: nowrap; }
.compare thead th:not(:first-child) { padding-left: 16px; }
.compare .num { text-align: right; color: var(--ink); font-weight: 600; }
.compare thead th:last-child { text-align: right; }
.compare small { display: block; margin-top: 2px; color: var(--ink-2); font-size: 14px; font-weight: 400; letter-spacing: -0.01em; }
.compare .row-us th[scope='row'], .compare .row-us td { color: var(--ink); }
.compare .row-us .num { color: var(--link); }
.footnote { max-width: 700px; margin: 20px auto 0; color: var(--ink-3); font-size: 13px; line-height: 1.5; letter-spacing: -0.005em; text-align: center; }
/* On phones each option becomes a small card: name, then price and 3-year total. */
@media (max-width: 600px) {
  .compare { padding: 4px 20px; border-radius: 22px; }
  .compare thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); }
  .compare tr { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 12px; padding: 18px 0; border-top: 1px solid var(--line); }
  .compare tbody tr:first-child { border-top: 0; }
  .compare th, .compare td { padding: 0; border-top: 0; }
  .compare th[scope='row'] { grid-column: 1 / -1; padding: 0 0 10px; }
  .compare td { padding-left: 0; align-self: end; }
  .compare .num::before { content: attr(data-label) ' '; color: var(--ink-3); font-size: 13px; font-weight: 400; }
}

/* buy card */
.buy-card {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center;
  max-width: 920px; margin: clamp(40px, 5vw, 56px) auto 0;
  border-radius: var(--radius-card); background: var(--tile); overflow: hidden;
}
.buy-main { display: flex; flex-direction: column; align-items: center; padding: clamp(40px, 5vw, 56px) 32px; text-align: center; }
.buy-icon { width: 88px; height: 88px; margin-bottom: 16px; }
.buy-main h3 { font-size: 24px; font-weight: 600; letter-spacing: -0.02em; }
.buy-price { margin-top: 12px; font-size: 64px; font-weight: 700; line-height: 1; letter-spacing: -0.04em; font-variant-numeric: tabular-nums; }
.buy-once { margin-top: 8px; color: var(--ink-2); }
.buy-main .pill { margin-top: 28px; min-width: 200px; }
.buy-fine { max-width: 300px; margin-top: 16px; color: var(--ink-3); font-size: 13px; line-height: 1.45; }
.buy-list {
  display: grid; gap: 14px; align-self: stretch; align-content: center;
  padding: clamp(32px, 4vw, 56px);
  border-left: 1px solid var(--line);
}
.buy-list li { position: relative; padding-left: 30px; font-size: 17px; line-height: 1.4; }
.buy-list li::before {
  content: ''; position: absolute; left: 4px; top: 3px;
  width: 6px; height: 12px;
  border-right: 2px solid var(--link); border-bottom: 2px solid var(--link);
  transform: rotate(45deg);
}
@media (max-width: 760px) {
  .buy-card { grid-template-columns: minmax(0, 1fr); border-radius: 22px; }
  .buy-list { border-left: 0; border-top: 1px solid var(--line); padding: 32px 24px 36px; }
}

/* FAQ */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  position: relative; display: block;
  padding: 24px 48px 24px 0;
  font-size: clamp(19px, 2vw, 21px); font-weight: 600; line-height: 1.3; letter-spacing: -0.02em;
  cursor: pointer; list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before,
.faq summary::after {
  content: ''; position: absolute; right: 6px; top: 50%;
  width: 14px; height: 1.6px; margin-top: -0.8px; border-radius: 1px;
  background: var(--ink-2);
  transition: transform 0.3s var(--ease);
}
.faq summary::after { transform: rotate(90deg); }
.faq details[open] summary::after { transform: rotate(0deg); }
.faq summary:hover::before,
.faq summary:hover::after { background: var(--ink); }
.faq details p { max-width: 700px; padding: 0 48px 28px 0; color: var(--ink-2); font-size: 17px; text-wrap: pretty; }
@supports (interpolate-size: allow-keywords) {
  .faq { interpolate-size: allow-keywords; }
  .faq details::details-content {
    block-size: 0; overflow: clip;
    transition: block-size 0.35s var(--ease), content-visibility 0.35s allow-discrete;
  }
  .faq details[open]::details-content { block-size: auto; }
}

/* closing */
.closing { text-align: center; }
.closing-icon { width: 120px; height: 120px; margin: 0 auto 28px; }

/* ------------------------------------------------------------------ footer */

.footer { padding: 20px 0 28px; background: var(--bg-alt); color: var(--ink-2); font-size: 12px; line-height: 1.4; letter-spacing: -0.005em; }
.section-alt + .footer, .closing.section-alt + .footer { border-top: 1px solid var(--line); }
.footer .legal { padding-bottom: 14px; border-bottom: 1px solid var(--line); color: var(--ink-3); }
.footer-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; padding-top: 14px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 4px 0; }
.footer-links a { padding: 0 10px; color: var(--ink-2); border-left: 1px solid var(--line); }
.footer-links a:first-child { padding-left: 0; border-left: 0; }
.footer-links a:hover { color: var(--ink); text-decoration: none; }
@media (max-width: 600px) {
  .footer-row { flex-direction: column-reverse; }
}

/* ------------------------------------------------------------------ motion
   Pure CSS: the hero rises in on load; later content rises as it scrolls into view
   (scroll-driven animations). Browsers without support, or with reduced motion,
   simply show everything. */

@keyframes rise { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: none; } }
@keyframes settle { from { opacity: 0; transform: translateY(40px) scale(0.97); } to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: no-preference) {
  .hero .reveal { animation: rise 1s var(--ease) both; }
  .hero .reveal:nth-child(2) { animation-delay: 0.06s; }
  .hero .reveal:nth-child(3) { animation-delay: 0.14s; }
  .hero .reveal:nth-child(4) { animation-delay: 0.22s; }
  .hero .reveal:nth-child(5) { animation-delay: 0.28s; }
  .hero .reveal-zoom { animation: settle 1.2s var(--ease) 0.3s both; }

  @supports (animation-timeline: view()) {
    .section .reveal {
      animation: rise linear both;
      animation-timeline: view();
      animation-range: entry 0% entry 70%;
    }
  }
}

/* ------------------------------------------------------------------ secondary pages */

.page { padding: clamp(56px, 8vw, 96px) 0 clamp(80px, 10vw, 120px); min-height: 62vh; }
.page h1 { font-size: clamp(36px, 5vw, 48px); font-weight: 700; line-height: 1.08; letter-spacing: -0.03em; text-wrap: balance; }
.page .lede { margin-top: 16px; color: var(--ink-2); font-size: clamp(19px, 2vw, 21px); line-height: 1.42; letter-spacing: -0.015em; text-wrap: pretty; }
.page .lede + .pill { margin-top: 32px; }
.panel { margin-top: 36px; padding: clamp(24px, 4vw, 40px); border-radius: var(--radius-card); background: var(--tile); }
.panel:first-child { margin-top: 0; }
.status { display: flex; align-items: center; gap: 12px; color: var(--ink-2); }
.spinner {
  width: 20px; height: 20px; border-radius: 50%;
  border: 2.5px solid var(--line); border-top-color: var(--link);
  animation: spin 0.9s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.code-box {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  margin-bottom: 24px; padding: 18px 20px;
  border-radius: 16px; background: var(--bg);
  box-shadow: inset 0 0 0 1px var(--line);
}
.code-label { color: var(--ink-3); font-size: 12px; font-weight: 600; letter-spacing: 0.02em; text-transform: uppercase; }
.code {
  margin-top: 4px;
  font: 600 clamp(17px, 3.2vw, 22px) / 1.3 var(--mono); letter-spacing: 0.04em;
  user-select: all; overflow-wrap: anywhere;
}
.panel .pill-large { width: 100%; white-space: normal; }

.steps { display: grid; gap: 14px; margin-top: 28px; counter-reset: step; }
.steps li { position: relative; min-height: 28px; padding: 2px 0 0 42px; counter-increment: step; color: var(--ink-2); }
.steps li strong { color: var(--ink); font-weight: 600; }
.steps li::before {
  content: counter(step);
  position: absolute; left: 0; top: 0;
  display: grid; place-items: center;
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--ink); color: var(--bg);
  font-size: 14px; font-weight: 600; letter-spacing: 0;
}
.note { margin-top: 28px; padding: 16px 18px; border-radius: 14px; background: var(--bg); box-shadow: inset 0 0 0 1px var(--line); color: var(--ink-2); font-size: 15px; }
.note strong { color: var(--ink); }

.form-row { display: flex; flex-wrap: wrap; gap: 12px; }
.form-row input {
  flex: 1 1 240px; min-width: 0; height: 52px; padding: 0 18px;
  border: 1px solid var(--line); border-radius: 12px;
  background: var(--bg); color: var(--ink);
  font: inherit; font-size: 17px;
}
.form-row input:focus { outline: none; border-color: var(--link); box-shadow: 0 0 0 3px color-mix(in srgb, var(--link) 28%, transparent); }
.form-row .pill { min-height: 52px; }
.msg { min-height: 1.47em; margin-top: 16px; color: var(--ink-2); }
.msg.error { color: #e0352b; }

.prose { max-width: 700px; }
.prose h2 { margin: 44px 0 10px; font-size: 24px; font-weight: 600; letter-spacing: -0.02em; }
.prose p { margin-top: 12px; color: var(--ink-2); text-wrap: pretty; }
.prose .fine { margin-top: 44px; color: var(--ink-3); font-size: 14px; }

/* toast */
.toast {
  position: fixed; left: 50%; bottom: 24px; z-index: 60;
  max-width: min(520px, calc(100vw - 32px)); padding: 14px 20px;
  border-radius: 14px; background: var(--ink); color: var(--bg);
  font-size: 15px; line-height: 1.4; text-align: center;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25);
  opacity: 0; transform: translate(-50%, 12px); pointer-events: none;
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease);
}
.toast.is-shown { opacity: 1; transform: translate(-50%, 0); }

/* account and shared-link pages */
.stack { display: grid; gap: 14px; }
.field { display: grid; gap: 6px; color: var(--ink-2); font-size: 14px; font-weight: 600; }
.field input {
  height: 48px; padding: 0 16px;
  border: 1px solid var(--line); border-radius: 12px;
  background: var(--bg); color: var(--ink); font: inherit; font-size: 17px; font-weight: 400;
}
.field input:focus { outline: none; border-color: var(--link); box-shadow: 0 0 0 3px color-mix(in srgb, var(--link) 28%, transparent); }
.stack .pill-large { width: 100%; }
.alt { color: var(--ink-2); font-size: 14px; text-align: center; }
.account .panel { max-width: 460px; }

/* appearance switch (footer) */
.theme-switch { display: inline-flex; gap: 2px; padding: 2px; border-radius: 980px; box-shadow: inset 0 0 0 1px var(--line); }
.theme-switch button {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 3px 10px; border: 0; border-radius: 980px;
  background: none; color: var(--ink-2); font-size: 12px; cursor: pointer;
}
.theme-switch button[aria-pressed='true'] { background: var(--ink); color: var(--bg); }
.theme-switch button:hover:not([aria-pressed='true']) { color: var(--ink); }
.footer-end { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 20px; }

/* text-style buttons (Buy, beside the main call to action) */
.link-btn { padding: 0; border: 0; background: none; color: var(--link); font: inherit; font-size: 17px; cursor: pointer; }
.link-btn:hover { opacity: 0.8; }
.link-btn:disabled { opacity: 0.5; cursor: progress; }
.buy-now { margin-top: 16px; }
.features-4 { margin-top: clamp(40px, 5vw, 64px); }
@media (max-width: 600px) {
  .footer-links { gap: 6px 18px; }
  .footer-links a { padding: 0; border-left: 0; }
}
.cloud-box { padding: 16px 18px; border-radius: 14px; background: var(--bg); box-shadow: inset 0 0 0 1px var(--line); }
.cloud-box h2 { margin: 0 0 6px; font-size: 17px; font-weight: 600; }
.cloud-box p { color: var(--ink-2); font-size: 15px; }
.cloud-buttons { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }
.cloud-box > .pill { margin-top: 12px; }

/* Quillpage Cloud card (pricing) */
.cloud-card {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center;
  max-width: 920px; margin: 20px auto 0; border-radius: var(--radius-card);
  box-shadow: inset 0 0 0 1px var(--line);
}
.cloud-head { padding: clamp(32px, 4vw, 48px) 32px; text-align: center; }
.cloud-head h3 { margin-top: 6px; font-size: 24px; font-weight: 600; letter-spacing: -0.02em; }
.cloud-price { margin-top: 10px; font-size: 44px; font-weight: 700; line-height: 1; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.cloud-price small { font-size: 17px; font-weight: 400; letter-spacing: -0.01em; color: var(--ink-2); }
.cloud-list { border-left: 1px solid var(--line); }
@media (max-width: 760px) {
  .cloud-card { grid-template-columns: minmax(0, 1fr); border-radius: 22px; }
  .cloud-list { border-left: 0; border-top: 1px solid var(--line); }
}
