:root {
  --ink: #1B1B2F; --ink-2: #24243C; --body: #464A5F; --muted: #808496; --paper: #FAFAF7; --white: #fff; --line: #E4E5E0;
  --teal: #2E9A98; --teal-light: #54BAB8; --teal-soft: #E2F3F2; --orange: #F28A2E; --orange-soft: #FFF0DB; --code: #F3F4F0; --mist: #C7CCE0;
  --serif: 'Fraunces', Georgia, serif; --sans: 'Hanken Grotesk', system-ui, sans-serif; --mono: 'IBM Plex Mono', ui-monospace, monospace;
  --container: 1120px;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--sans); font-size: 16px; line-height: 1.6; color: var(--body); background: var(--paper); -webkit-font-smoothing: antialiased; }
h1, h2, h3, h4 { font-family: var(--serif); color: var(--ink); margin: 0; font-weight: 700; }
h1 { font-size: clamp(36px, 5vw, 56px); line-height: 1.06; letter-spacing: -0.015em; }
h2 { font-size: clamp(26px, 3vw, 36px); line-height: 1.14; letter-spacing: -0.01em; }
h3 { font-family: var(--sans); font-size: 19px; line-height: 1.25; }
p { margin: 0; }
a { color: var(--teal); text-decoration: none; }
a:hover { text-decoration: underline; }
img, video { max-width: 100%; height: auto; display: block; }
code { font-family: var(--mono); font-size: 0.92em; background: var(--code); padding: 2px 6px; border-radius: 5px; color: var(--ink); }
pre { background: var(--code); border-radius: 10px; padding: 14px 18px; overflow-x: auto; }
pre code { background: none; padding: 0; }
.container { width: min(var(--container), calc(100% - 40px)); margin: 0 auto; }
.skip { position: absolute; left: -999px; } .skip:focus { left: 16px; top: 16px; background: var(--white); padding: 8px; z-index: 100; }

/* nav */
.nav { background: var(--white); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 50; }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-family: var(--serif); font-weight: 700; font-size: 20px; letter-spacing: -0.01em; color: var(--ink); }
.brand:hover { text-decoration: none; }
.brand-light { color: var(--white); font-size: 18px; }
.nav-links { display: flex; align-items: center; gap: 32px; }
.nav-links a { color: var(--body); font-weight: 600; font-size: 15px; }
.nav-links a.active { color: var(--teal); font-weight: 700; }
.nav-links a:hover { text-decoration: none; color: var(--ink); }
.nav-toggle { display: none; background: none; border: 0; width: 40px; height: 40px; padding: 8px; cursor: pointer; }
.nav-toggle span { display: block; height: 2px; background: var(--ink); margin: 5px 0; }

/* buttons, pills */
.btn { display: inline-flex; align-items: center; justify-content: center; padding: 12px 22px; border-radius: 999px; font-weight: 700; font-size: 13px; letter-spacing: 0.06em; text-transform: uppercase; border: 1px solid transparent; white-space: nowrap; }
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-ink { background: var(--ink); color: var(--white) !important; }
.btn-teal { background: var(--teal); color: var(--white) !important; }
.btn-ghost { background: var(--white); color: var(--ink) !important; border-color: var(--line); }
.pill { display: inline-block; padding: 4px 12px; border-radius: 999px; font-size: 11px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }
.pill-teal { background: var(--teal-soft); color: var(--teal); } .pill-orange { background: var(--orange-soft); color: var(--orange); } .pill-ink { background: var(--ink); color: var(--white); } .pill-white { background: var(--white); color: var(--ink); border: 1px solid var(--line); }
.eyebrow { font-size: 13px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--teal); margin-bottom: 12px; }
.label { font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.lead { font-size: 20px; line-height: 1.5; color: var(--body); }

/* sections and grids */
.section { padding: 80px 0; }
.section.tight { padding: 56px 0; }
.section.white { background: var(--white); }
.section.ink { background: var(--ink); color: var(--mist); }
.section.ink h2, .section.ink h3 { color: var(--white); }
.section.teal { background: var(--teal); color: var(--white); }
.section.teal h2 { color: var(--white); }
.page-head { max-width: 820px; margin-bottom: 40px; }
.page-head h1 { margin-bottom: 14px; }
.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); } .grid-3 { grid-template-columns: repeat(3, 1fr); } .grid-4 { grid-template-columns: repeat(4, 1fr); }
.card { background: var(--white); border: 1px solid var(--line); border-radius: 16px; padding: 24px 24px 26px; }
.card h3 { margin: 12px 0 8px; } .card p { font-size: 15px; line-height: 1.55; }
.card .icon { width: 36px; height: 36px; border-radius: 9px; background: var(--teal-soft); }
.card.paper { background: var(--paper); }
.ink .card { background: var(--ink-2); border-color: rgba(255,255,255,0.08); } .ink .card p { color: var(--mist); }
.section-title { display: flex; align-items: center; gap: 14px; margin-bottom: 28px; }

/* home */
.hero { background: var(--ink); color: var(--white); padding: 88px 0 0; text-align: center; }
.hero .eyebrow { color: var(--teal-light); }
.hero h1 { color: var(--white); font-size: clamp(44px, 7vw, 88px); line-height: 1; letter-spacing: -0.025em; margin: 0 auto 22px; max-width: 860px; }
.hero h1 em { font-style: normal; color: var(--teal-light); }
.hero .sub { font-size: clamp(18px, 2vw, 24px); color: var(--mist); max-width: 760px; margin: 0 auto 32px; }
.hero .ctas { display: flex; gap: 20px; justify-content: center; align-items: center; flex-wrap: wrap; margin-bottom: 36px; }
.hero .ctas a.link { color: var(--white); font-weight: 700; font-size: 13px; letter-spacing: 0.06em; text-transform: uppercase; }
.hero-media { background: var(--ink-2); border-radius: 24px 24px 0 0; padding: 32px 32px 0; margin: 0 auto; max-width: var(--container); overflow: hidden; }
.hero-media video { width: 100%; border-radius: 16px 16px 0 0; box-shadow: 0 12px 40px rgba(0,0,0,0.3); }
.strip { background: var(--white); border-bottom: 1px solid var(--line); padding: 28px 0; }
.strip .container { display: flex; gap: 12px; align-items: center; justify-content: center; flex-wrap: wrap; }
.strip .made { font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin-right: 8px; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.step { background: var(--paper); border: 1px solid var(--line); border-radius: 16px; padding: 28px; }
.step .num { width: 40px; height: 40px; border-radius: 50%; background: var(--ink); color: var(--white); display: flex; align-items: center; justify-content: center; font-weight: 800; margin-bottom: 14px; }
.step h3 { font-family: var(--serif); font-size: 22px; margin-bottom: 10px; }
.step p { font-size: 15px; line-height: 1.55; }
.numbers { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; }
.stat { border-left: 1px solid var(--line); padding: 0 32px 0 24px; }
.stat .big { font-family: var(--serif); font-size: 64px; line-height: 1; color: var(--teal); letter-spacing: -0.02em; }
.stat .what { font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink); margin: 8px 0; }
.stat p { font-size: 14px; }
.demo { text-align: center; }
.demo .video-wrap { position: relative; border-radius: 20px; overflow: hidden; background: var(--ink-2); margin: 40px 0 24px; }
.demo video { width: 100%; aspect-ratio: 16 / 9; }
.play { position: absolute; inset: 0; margin: auto; width: 84px; height: 84px; border-radius: 50%; border: 0; background: var(--teal); color: var(--white); font-size: 28px; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.demo .cap { font-size: 15px; color: var(--mist); }
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-bottom: 20px; }
.plan { background: var(--white); border: 1px solid var(--line); border-radius: 20px; padding: 30px; display: flex; flex-direction: column; gap: 18px; }
.plan.hi { background: var(--ink); border-color: var(--ink); color: var(--white); }
.plan .top { display: flex; justify-content: space-between; align-items: center; font-size: 13px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--teal); }
.plan .price { font-family: var(--serif); font-size: 44px; letter-spacing: -0.02em; color: var(--ink); line-height: 1.1; }
.plan.hi .price, .plan.hi li { color: var(--white); }
.plan.hi .sub { color: var(--mist); }
.plan ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; font-size: 15px; }
.plan li::before { content: '✓  '; color: var(--teal); font-weight: 700; }
.plan .btn { margin-top: auto; }
.faq .item { padding: 22px 0; border-bottom: 1px solid var(--line); }
.faq h3 { margin-bottom: 8px; } .faq p { font-size: 15px; }
.closing { text-align: center; }
.closing h2 { font-size: clamp(36px, 5vw, 56px); margin-bottom: 20px; }
.closing p { font-size: 18px; margin-bottom: 24px; }
.note { font-size: 13px; color: var(--muted); }

/* how it works */
.how-step { display: grid; grid-template-columns: 1fr 520px; gap: 48px; align-items: center; padding: 28px 0; }
.how-step:nth-child(even) { grid-template-columns: 520px 1fr; } .how-step:nth-child(even) .text { order: 2; }
.how-step .num { width: 44px; height: 44px; border-radius: 50%; background: var(--ink); color: var(--white); display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 18px; margin-bottom: 14px; }
.how-step h3 { font-family: var(--serif); font-size: 30px; margin-bottom: 12px; }
.how-step img { border-radius: 16px; border: 1px solid var(--line); background: #ECECE9; width: 100%; }

/* roadmap, changelog */
.rows { border: 1px solid var(--line); border-radius: 16px; background: var(--white); }
.row { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; padding: 14px 20px; border-top: 1px solid var(--line); }
.row:first-child { border-top: 0; }
.row h4 { font-family: var(--sans); font-size: 16px; } .row p { font-size: 14px; }
.entry { display: grid; grid-template-columns: 160px 1fr; gap: 32px; padding: 14px 0; }
.entry .v { font-family: var(--serif); font-size: 32px; color: var(--ink); line-height: 1.1; }
.entry .when { font-size: 13px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }

/* guide */
.guide { display: grid; grid-template-columns: 220px 1fr 200px; gap: 48px; padding: 56px 0 96px; align-items: start; }
.sidebar nav a, .toc a { display: block; font-size: 15px; padding: 8px 12px; border-radius: 8px; color: var(--body); font-weight: 500; }
.sidebar nav a.active { background: var(--teal-soft); color: var(--teal); font-weight: 700; }
.toc a { font-size: 14px; padding: 4px 0; }
.sidebar, .toc { position: sticky; top: 96px; }
.article h1 { font-size: 48px; margin-bottom: 16px; }
.article h2 { font-size: 28px; margin: 36px 0 12px; }
.article h3 { margin: 24px 0 8px; }
.article p, .article li { line-height: 1.6; }
.article p { margin: 12px 0; }
.article ul, .article ol { padding-left: 22px; margin: 12px 0; }
.article li { margin: 6px 0; } .article li::marker { color: var(--teal); font-weight: 700; }
.callout { border-radius: 12px; padding: 16px 20px; margin: 20px 0; }
.callout strong { display: block; font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 4px; }
.callout p { margin: 0; font-size: 15px; color: var(--ink); }
.tip { background: var(--teal-soft); } .tip strong { color: var(--teal); }
.warn { background: var(--orange-soft); } .warn strong { color: var(--orange); }
figure { margin: 20px 0; } figure img { border-radius: 12px; border: 1px solid var(--line); width: 100%; } figcaption { font-size: 13px; color: var(--muted); margin-top: 8px; }
.table-wrap { overflow-x: auto; margin: 16px 0; border: 1px solid var(--line); border-radius: 12px; background: var(--white); }
table { border-collapse: collapse; width: 100%; font-size: 14px; }
th { text-align: left; background: var(--code); padding: 10px 16px; font-weight: 700; color: var(--ink); }
td { padding: 10px 16px; border-top: 1px solid var(--line); vertical-align: top; }
.pager { display: flex; justify-content: space-between; border-top: 1px solid var(--line); padding-top: 20px; margin-top: 36px; font-weight: 600; }
.pager a:first-child { color: var(--body); }

/* forms */
.form-grid { display: grid; grid-template-columns: 1fr 380px; gap: 48px; align-items: start; }
.form { background: var(--paper); border: 1px solid var(--line); border-radius: 20px; padding: 28px; display: grid; gap: 18px; }
.field { display: grid; gap: 6px; } .field label { font-weight: 700; font-size: 14px; color: var(--ink); } .field small { color: var(--muted); font-size: 13px; }
.field input, .field textarea, .field select { font: inherit; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--white); color: var(--ink); width: 100%; }
.field input:focus, .field textarea:focus, .field select:focus { outline: 2px solid var(--teal); outline-offset: 1px; }
.hp { position: absolute; left: -9999px; }
.form .btn { justify-self: start; border: 0; cursor: pointer; font-family: var(--sans); }
.form-note { font-size: 14px; color: var(--muted); }
.form-aside { display: grid; gap: 16px; }

/* legal */
.legal { max-width: 760px; } .legal h2 { font-size: 24px; margin: 32px 0 10px; } .legal p { margin: 10px 0; } .legal .updated { font-size: 13px; color: var(--muted); font-weight: 500; }

/* lightbox */
.zoom { display: block; cursor: zoom-in; }
.zoom:hover { text-decoration: none; }
.lightbox { position: fixed; inset: 0; z-index: 100; background: rgba(27,27,47,0.9); display: flex; align-items: center; justify-content: center; padding: 40px; cursor: zoom-out; }
.lightbox img { max-width: min(1600px, 100%); max-height: 100%; border-radius: 12px; background: #ECECE9; box-shadow: 0 20px 60px rgba(0,0,0,0.4); }
.lightbox-close { position: absolute; top: 16px; right: 20px; width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--white); color: var(--ink); font-size: 26px; cursor: pointer; }

/* footer */
.footer { background: var(--ink); color: var(--mist); padding: 64px 0 40px; }
.footer-cols { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 48px; }
.footer-brand p { font-size: 14px; margin-top: 12px; max-width: 320px; }
.footer-col h4 { font-family: var(--sans); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--white); margin-bottom: 12px; }
.footer-col a { display: block; color: var(--mist); font-size: 14px; margin: 6px 0; }
.footer-legal { display: flex; justify-content: space-between; border-top: 1px solid rgba(255,255,255,0.15); margin-top: 40px; padding-top: 24px; font-size: 12px; }
.footer-legal a { color: var(--mist); }

@media (max-width: 980px) {
  .nav-toggle { display: block; }
  .nav-links { display: none; position: absolute; top: 72px; left: 0; right: 0; background: var(--white); border-bottom: 1px solid var(--line); padding: 16px 20px 24px; flex-direction: column; align-items: flex-start; gap: 16px; }
  .nav-links.open { display: flex; }
  .grid-3, .grid-4, .steps, .plans, .numbers { grid-template-columns: repeat(2, 1fr); }
  .how-step, .how-step:nth-child(even) { grid-template-columns: 1fr; } .how-step:nth-child(even) .text { order: 0; }
  .guide { grid-template-columns: 1fr; } .sidebar, .toc { position: static; } .toc { display: none; }
  .sidebar nav { display: flex; flex-wrap: wrap; gap: 4px; }
  .form-grid { grid-template-columns: 1fr; }
  .footer-cols { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .grid-2, .grid-3, .grid-4, .steps, .plans, .numbers { grid-template-columns: 1fr; }
  .stat { border-left: 0; padding: 0; }
  .section { padding: 56px 0; }
  .hero { padding-top: 56px; } .hero-media { padding: 16px 16px 0; }
  .entry { grid-template-columns: 1fr; gap: 8px; }
  .footer-cols { grid-template-columns: 1fr; } .footer-legal { flex-direction: column; gap: 8px; }
  .article h1 { font-size: 36px; }
}
