/* Twinless site. Editorial serif for display, Inter for everything else.
   Self-hosted so the page makes no third-party requests. */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('./fonts/inter-latin.woff2') format('woff2');
}
@font-face {
  font-family: 'Instrument Serif';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('./fonts/instrument-serif-latin.woff2') format('woff2');
}
@font-face {
  font-family: 'Instrument Serif';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url('./fonts/instrument-serif-italic-latin.woff2') format('woff2');
}

:root {
  color-scheme: light dark;
  --bg: #fbfaf7;
  --surface: #ffffff;
  --raised: #f2efe9;
  --line: #e5e0d6;
  --ink: #16161a;
  --ink-2: #4c4a45;
  --ink-3: #7d7a72;
  --accent: #0b57d0;
  --on-accent: #ffffff;
  --accent-soft: #e5edfb;
  --serif: 'Instrument Serif', 'Iowan Old Style', Palatino, Georgia, serif;
  --sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  --ease: cubic-bezier(.2, 0, 0, 1);
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #111112;
    --surface: #191919;
    --raised: #202020;
    --line: #2e2e2c;
    --ink: #f0efeb;
    --ink-2: #b9b6ae;
    --ink-3: #8a877f;
    --accent: #a8c7fa;
    --on-accent: #062e6f;
    --accent-soft: #1c2b45;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 17px/1.65 var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
h1, h2, h3, p, ul { margin: 0; }
ul { padding: 0; list-style: none; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

.wrap { max-width: 1140px; margin: 0 auto; padding-left: 28px; padding-right: 28px; }

/* ---------- type ---------- */
h1, h2 { font-family: var(--serif); font-weight: 400; letter-spacing: -.018em; }
h1 { font-size: clamp(34px, 5.4vw, 66px); line-height: 1; text-wrap: balance; max-width: none; }
h1 em { font-style: italic; }
h2 { font-size: clamp(30px, 3.7vw, 46px); line-height: 1.04; text-wrap: balance; max-width: 22ch; }
.lede { color: var(--ink-2); font-size: clamp(17px, 1.35vw, 19px); line-height: 1.6; max-width: 60ch; text-wrap: pretty; }
.label {
  font-size: 12px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase;
  color: var(--ink-3);
}
.label b { color: var(--accent); font-weight: 600; margin-right: 10px; }

/* ---------- mark ---------- */
.mark { width: 30px; height: 30px; overflow: visible; flex: none; }
.mark-ghost { fill: none; stroke: var(--accent); stroke-width: 1.7; opacity: .45; transition: transform .5s var(--ease), opacity .5s var(--ease); }
.mark-core { fill: var(--accent); }
.mark-check {
  fill: none; stroke: var(--on-accent); stroke-width: 2.6;
  stroke-linecap: round; stroke-linejoin: round;
  stroke-dasharray: 15; stroke-dashoffset: 0;
}
.brand:hover .mark-ghost { transform: translate(-4px, 4px); opacity: 0; }
.brand:hover .mark-check { animation: draw .55s .08s var(--ease); }
@keyframes draw { from { stroke-dashoffset: 15; } to { stroke-dashoffset: 0; } }

/* ---------- nav ---------- */
.nav { position: sticky; top: 0; z-index: 10; background: color-mix(in oklab, var(--bg) 88%, transparent); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.nav .wrap { display: flex; align-items: center; gap: 28px; padding-top: 15px; padding-bottom: 15px; }
.brand { display: flex; align-items: center; gap: 11px; font-family: var(--serif); font-size: 23px; line-height: 1; color: var(--ink); letter-spacing: -.01em; }
.brand:hover { text-decoration: none; }
.nav nav { margin-left: auto; display: flex; align-items: center; gap: 26px; font-size: 14.5px; }
.nav nav a { color: var(--ink-2); }
.nav nav a:hover { color: var(--ink); text-decoration: none; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 46px; padding: 0 24px; border-radius: 999px; border: 1px solid transparent;
  font: 500 15px/1 var(--sans); cursor: pointer; white-space: nowrap;
  transition: background-color .16s var(--ease), border-color .16s var(--ease), transform .16s var(--ease), box-shadow .16s var(--ease);
}
.btn:active { transform: translateY(1px); }
.btn.filled { background: var(--accent); color: var(--on-accent); }
.btn.filled:hover { text-decoration: none; box-shadow: 0 2px 10px color-mix(in oklab, var(--accent) 35%, transparent); }
.btn.outlined { border-color: var(--line); color: var(--ink); background: var(--surface); }
.btn.outlined:hover { background: var(--raised); text-decoration: none; }
.btn.small { min-height: 38px; padding: 0 18px; font-size: 14px; }

/* ---------- hero ---------- */
.hero { padding-top: 84px; padding-bottom: 40px; }
.chip {
  display: inline-flex; align-items: center; gap: 9px; max-width: 100%;
  padding: 6px 14px 6px 8px; border: 1px solid var(--line); border-radius: 999px;
  background: var(--surface); color: var(--ink-2); font-size: 13.5px; margin-bottom: 26px;
}
.chip .mark { width: 22px; height: 22px; }
/* The mark tells the product story once on load: the extra copy leaves, the check draws. */
.chip .mark-ghost { animation: ghost-away 1.2s .45s var(--ease) both; }
.chip .mark-check { animation: draw 1.2s .6s var(--ease) both; }
@keyframes ghost-away {
  0%, 18% { transform: none; opacity: .45; }
  70%, 100% { transform: translate(-4px, 4px); opacity: 0; }
}
.hero .lede { margin-top: 24px; }
.hero .cta { margin-top: 32px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 14px; }
.hero .fine { margin-top: 18px; color: var(--ink-3); font-size: 14px; }
.hero-shot { padding-bottom: 76px; }
.shot {
  border: 1px solid var(--line); border-radius: 22px; overflow: hidden; background: var(--surface);
  box-shadow: 0 1px 2px oklch(0 0 0 / .04), 0 24px 60px -28px oklch(0 0 0 / .22);
}
.shot picture { display: block; }
.shot img { width: 100%; height: auto; }

/* ---------- sections ---------- */
.section { padding-top: 76px; padding-bottom: 76px; border-top: 1px solid var(--line); }
.section .label { margin-bottom: 18px; }
.section .sub { margin-top: 18px; color: var(--ink-2); max-width: 62ch; text-wrap: pretty; }

.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 40px; }
.card {
  border: 1px solid var(--line); border-radius: 20px; padding: 28px; background: var(--surface);
  display: grid; gap: 10px; align-content: start;
  transition: border-color .2s var(--ease), transform .2s var(--ease);
}
.card:hover { border-color: color-mix(in oklab, var(--accent) 30%, var(--line)); transform: translateY(-2px); }
.card h3 { font-family: var(--serif); font-size: 23px; font-weight: 400; letter-spacing: -.01em; }
.card p { color: var(--ink-2); font-size: 15.5px; line-height: 1.6; }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 40px; counter-reset: step; }
.step { padding: 28px; border-radius: 20px; background: var(--raised); display: grid; gap: 12px; align-content: start; }
.step::before {
  counter-increment: step; content: counter(step, decimal-leading-zero);
  font-family: var(--serif); font-size: 22px; line-height: 1; color: var(--accent);
  border-bottom: 1px solid color-mix(in oklab, var(--accent) 25%, var(--line));
  padding-bottom: 12px; width: 100%;
}
.step h3 { font-family: var(--serif); font-size: 24px; font-weight: 400; letter-spacing: -.01em; }
.step p { color: var(--ink-2); font-size: 15.5px; line-height: 1.6; }

/* ---------- pricing ---------- */
.plans { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 40px; max-width: 880px; align-items: stretch; }
.plan {
  border: 1px solid var(--line); border-radius: 24px; padding: 32px; background: var(--surface);
  display: grid; gap: 16px; align-content: start;
}
.plan h3 { font-family: var(--serif); font-size: 25px; font-weight: 400; letter-spacing: -.01em; }
.price { font-family: var(--serif); font-size: 52px; line-height: 1; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.price small { font-family: var(--sans); font-size: 14px; letter-spacing: 0; color: var(--ink-3); margin-left: 6px; }
.plan ul { display: grid; gap: 10px; color: var(--ink-2); font-size: 15px; }
.plan li { padding-left: 26px; position: relative; }
.plan li::before {
  content: ""; position: absolute; left: 2px; top: .55em; width: 11px; height: 6px;
  border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent);
  transform: rotate(-45deg);
}
.plan .note { color: var(--ink-3); font-size: 13px; line-height: 1.5; }
.plan.featured { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.plan.featured h3, .plan.featured .price { color: var(--bg); }
.plan.featured ul { color: color-mix(in oklab, var(--bg) 78%, transparent); }
.plan.featured li::before { border-color: var(--bg); }
.plan.featured .note { color: color-mix(in oklab, var(--bg) 62%, transparent); }
.plan.featured .btn { background: var(--bg); color: var(--ink); }
.plan.featured .btn:hover { box-shadow: 0 2px 10px oklch(0 0 0 / .25); }

/* ---------- faq ---------- */
.faq { margin-top: 34px; max-width: 840px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  cursor: pointer; padding: 20px 0; font: 500 16.5px/1.45 var(--sans);
  list-style: none; display: flex; align-items: center; gap: 12px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; margin-left: auto; color: var(--ink-3); font-size: 22px; font-weight: 300; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq details p { padding: 0 0 22px; color: var(--ink-2); max-width: 68ch; font-size: 15.5px; }

/* ---------- footer ---------- */
.foot { border-top: 1px solid var(--line); padding-top: 44px; padding-bottom: 64px; color: var(--ink-3); font-size: 14px; }
.foot .foot-top { display: flex; flex-wrap: wrap; gap: 14px 32px; align-items: center; }
.foot .disclaimer { margin-top: 26px; color: var(--ink-3); font-size: 12.5px; line-height: 1.6; max-width: 72ch; }
.foot .brand { font-size: 20px; color: var(--ink); }
.foot .brand .mark { width: 26px; height: 26px; }
.foot nav { margin-left: auto; display: flex; gap: 22px; }
.foot a { color: var(--ink-3); }
.foot a:hover { color: var(--ink); }

/* ---------- legal ---------- */
.legal { max-width: 780px; padding-top: 64px; padding-bottom: 88px; }
.legal h1 { font-size: clamp(40px, 5vw, 60px); }
.legal .updated { color: var(--ink-3); font-size: 14px; margin-top: 12px; }
.legal h2 { font-size: 24px; margin-top: 42px; letter-spacing: -.005em; }
.legal p, .legal li { color: var(--ink-2); margin-top: 14px; font-size: 16px; }
.legal ul { list-style: disc; padding-left: 22px; }
.legal li { margin-top: 8px; }

/* ---------- motion ---------- */
[data-reveal] { opacity: 1; }
.js [data-reveal] { opacity: 0; transform: translateY(16px); transition: opacity .65s var(--ease), transform .65s var(--ease); }
.js [data-reveal].in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .js [data-reveal] { opacity: 1; transform: none; }
}
@media print {
  .js [data-reveal] { opacity: 1; transform: none; }
  .nav { position: static; }
}

@media (max-width: 900px) {
  .hero { padding-top: 48px; padding-bottom: 28px; }
  .hero-shot { padding-bottom: 48px; }
  .cards, .steps, .plans { grid-template-columns: 1fr; }
  .nav nav { gap: 16px; }
  .nav nav a:not(.btn) { display: none; }
  .section { padding-top: 56px; padding-bottom: 56px; }
  .wrap { padding-left: 20px; padding-right: 20px; }
}
