:root {
  --bg: #faf9f6;
  --surface: #ffffff;
  --ink: #1c1b22;
  --muted: #74727d;
  --faint: #a3a1ab;
  --line: #e6e4dd;
  --dark: #19181f;
  --dark-line: #34323d;
  --dark-muted: #a09eab;
  --accent: #2b77b8;
  --sky: #62b8f5;
  --grad: linear-gradient(160deg, #3d8fd1 0%, #62b8f5 60%, #a9d8fb 100%);
  --serif: "Newsreader", Georgia, serif;
  --sans: "Geist", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --wrap: 1280px;
  --gutter: clamp(16px, 4vw, 48px);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
h1, h2, h3, p { margin: 0; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: clamp(64px, 9vw, 120px) 0; }

/* ---------- nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  backdrop-filter: blur(10px);
}
.nav-in { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 16px; }
.logo { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; font-size: 20px; letter-spacing: -0.02em; }
.logo svg { width: 26px; height: 26px; }
.nav-links { display: flex; gap: 4px; background: #eeece6; border-radius: 8px; padding: 4px; }
.nav-links a { padding: 6px 16px; border-radius: 6px; font-size: 15px; font-weight: 500; }
.nav-links a:hover { background: var(--surface); }
.nav-cta { display: flex; gap: 8px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 0; border-radius: 8px; padding: 10px 20px;
  font-size: 15px; font-weight: 500; white-space: nowrap;
  transition: transform .15s ease, background .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: #33313d; }
.btn-soft { background: #e6e4dd; }
.btn-light { background: #fff; color: var(--ink); }
.btn-lg { padding: 16px 28px; font-size: 16px; }

/* ---------- hero ---------- */
.hero { padding: clamp(40px, 6vw, 80px) 0 clamp(48px, 6vw, 88px); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(32px, 4vw, 56px); align-items: center; }
.hero h1 {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(38px, 4.1vw, 58px); line-height: 1.06; letter-spacing: -0.025em;
  text-wrap: balance;
}
.hero h1 b { font-weight: 600; }
.hero .lede { margin-top: 28px; font-size: clamp(18px, 1.6vw, 21px); max-width: 30em; }
.hero .btn { margin-top: 36px; }
.hero .fine { margin-top: 20px; color: var(--muted); font-size: 15px; }

.stage { position: relative; padding: 0 0 36px 0; }
.stage-glow {
  position: absolute; right: -22px; bottom: 10px; width: 66%; height: 74%;
  background: var(--grad); border-radius: 28px; overflow: hidden;
}
.doc {
  position: relative; width: 82%; margin-top: 28px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 22px;
  box-shadow: 0 30px 60px -30px rgba(28,27,34,.25);
  overflow: hidden;
}
.doc-bar { display: flex; align-items: center; gap: 10px; padding: 14px 18px; border-bottom: 1px solid var(--line); font-size: 14px; color: var(--muted); }
.doc-bar i { width: 18px; height: 22px; border-radius: 3px; background: #4b8bf5; display: inline-block; }
.doc-bar span { color: var(--ink); font-weight: 500; }
.doc-bar em { margin-left: auto; font-style: normal; font: 12px var(--mono); }
.doc-page { padding: 28px 30px 30px; height: 430px; overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end; }
.doc-text { font-family: Georgia, "Times New Roman", serif; font-size: 16px; line-height: 1.75; color: #24232b; white-space: pre-wrap; }
.caret { display: inline-block; width: 2px; height: 1.15em; background: var(--ink); vertical-align: -0.2em; margin-left: 1px; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

/* The hero panel is the extension's real panel (panel.css), scaled and pinned to the stage */
.stage #dcpe-panel { position: absolute; top: 0; right: 0; z-index: 2; zoom: .68; user-select: none; }
.stage #dcpe-panel .dcpe-body { max-height: none; overflow: visible; }
.stage #dcpe-panel .dcpe-header, .stage #dcpe-panel .dcpe-tile, .stage #dcpe-panel .dcpe-chip, .stage #dcpe-panel .dcpe-btn, .stage #dcpe-panel .dcpe-icon-btn { cursor: default; }
.stage #dcpe-panel .dcpe-icon-btn { display: grid; place-items: center; }
.stage #dcpe-panel .dcpe-tile, .stage #dcpe-panel .dcpe-chip, .stage #dcpe-panel .dcpe-btn { text-align: center; }
.stage #dcpe-panel .dcpe-payload { height: 66px; overflow: hidden; resize: none; cursor: default; }
.stage #dcpe-panel .dcpe-more summary { cursor: default; }
.stage #dcpe-panel .dcpe-more summary::before { content: "▸ "; }

/* ---------- desktop app ---------- */
.desk { display: grid; grid-template-columns: minmax(0, 380px) minmax(0, 1fr); gap: clamp(32px, 6vw, 96px); align-items: center; }
.appshot { margin: 0; border: 1px solid #c9d3e0; border-radius: 14px; overflow: hidden; background: #f5f9fd; box-shadow: 0 40px 80px -40px rgba(17,28,45,.45); }
.appshot-bar { position: relative; display: flex; gap: 8px; padding: 12px 14px; background: #e9eff6; border-bottom: 1px solid #d5dde8; }
.appshot-bar i { width: 11px; height: 11px; border-radius: 50%; background: #c3cede; }
.appshot-bar span { position: absolute; inset: 0; display: grid; place-items: center; color: #6b7280; font-size: 13px; font-weight: 500; }
.appshot img { display: block; width: 100%; height: auto; }
.app-facts { display: grid; gap: 28px; margin-top: 40px; max-width: 34em; }
.app-facts h3 { font-size: 19px; font-weight: 500; letter-spacing: -0.02em; }
.app-facts p { color: var(--muted); font-size: 16px; margin-top: 6px; }
@media (max-width: 860px) { .desk { grid-template-columns: 1fr; } .appshot { max-width: 380px; margin: 0 auto; order: 2; } }

/* ---------- facts strip ---------- */
.strip { display: grid; grid-template-columns: 1.6fr repeat(5, 1fr); border: 1px solid var(--line); background: var(--bg); }
.strip > * { padding: 22px 24px; border-left: 1px solid var(--line); display: flex; align-items: center; justify-content: center; text-align: center; }
.strip > :first-child { border-left: 0; justify-content: flex-start; text-align: left; }
.strip p { font: 500 13px/1.6 var(--mono); letter-spacing: .04em; text-transform: uppercase; }
.strip span { color: var(--muted); font-weight: 600; font-size: 16px; letter-spacing: -0.01em; }

/* ---------- headings ---------- */
.h2 { font-weight: 500; font-size: clamp(28px, 3.1vw, 40px); line-height: 1.15; letter-spacing: -0.03em; }
.h2 span { color: var(--faint); display: block; }

/* ---------- four-up grid ---------- */
.box { border: 1px solid var(--line); background: var(--surface); }
.box-head { padding: clamp(28px, 4vw, 52px) clamp(24px, 4vw, 48px); border-bottom: 1px solid var(--line); }
.four { display: grid; grid-template-columns: 1fr 1fr; }
.four article { display: flex; justify-content: space-between; gap: 24px; padding: clamp(28px, 5vw, 72px) clamp(24px, 4vw, 48px); min-height: 300px; }
.four article:nth-child(odd) { border-right: 1px solid var(--line); }
.four article:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
.four h3 { font-weight: 500; font-size: 21px; letter-spacing: -0.02em; margin-bottom: 14px; }
.four p { color: var(--muted); max-width: 19em; }
.dots { display: grid; grid-template-columns: repeat(10, 8px); gap: 10px; flex: none; align-content: start; }
.dots i { width: 8px; height: 8px; border-radius: 50%; background: #e3e1ea; }
.dots i.l1 { background: #a9a6b6; }
.dots i.l2 { background: var(--ink); }

/* ---------- stepper ---------- */
.steps { margin-top: 56px; border: 1px solid var(--line); background: var(--bg); }
.steps-bar { display: flex; border-bottom: 1px solid var(--line); }
.steps-num { flex: 1; padding: 22px clamp(24px, 4vw, 56px); font-size: 20px; font-weight: 500; }
.steps-bar button { width: 80px; background: none; border: 0; border-left: 1px solid var(--line); font-size: 22px; }
.steps-bar button:hover { background: #f0eee8; }
.steps-body { display: grid; grid-template-columns: 1.9fr 1fr; min-height: 520px; }
.steps-copy { padding: clamp(32px, 5vw, 76px) clamp(24px, 4vw, 56px); display: flex; flex-direction: column; }
.steps-copy h3 { font-weight: 500; font-size: clamp(26px, 3vw, 38px); line-height: 1.12; letter-spacing: -0.03em; max-width: 14em; }
.steps-copy > p { margin-top: 20px; color: var(--muted); max-width: 26em; }
.steps-copy ul { list-style: none; margin: auto 0 0; padding: 48px 0 0; display: grid; gap: 14px; }
.steps-copy li { display: flex; gap: 14px; }
.steps-copy li::before { content: "+"; color: var(--muted); font-weight: 400; }
.steps-art { background: var(--grad); position: relative; overflow: hidden; min-height: 220px; }
.steps-art::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, var(--bg), transparent 30%); z-index: 1; }
.steps-art pre { margin: 0; padding: 28px 20px; font: 500 14px/2.7 var(--mono); letter-spacing: .22em; color: rgba(255,255,255,.75); white-space: pre-wrap; word-break: break-all; }

/* ---------- dark ---------- */
.dark { background: var(--dark); color: #fff; }
.dark .h2 span { color: var(--dark-muted); }
.dark-head { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; margin-bottom: 64px; }
.six { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--dark-line); }
.six article { padding: 32px; min-height: 340px; display: flex; flex-direction: column; border-right: 1px solid var(--dark-line); border-bottom: 1px solid var(--dark-line); }
.six article:nth-child(3n) { border-right: 0; }
.six article:nth-child(n+4) { border-bottom: 0; }
.six svg { width: 20px; height: 20px; stroke: #fff; fill: none; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.six h3 { margin-top: auto; font-size: 17px; font-weight: 500; }
.six p { margin-top: 8px; color: var(--dark-muted); font-size: 16px; }

/* ---------- styles row ---------- */
.styles-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin: 48px 0; }
.style-card { background: var(--surface); border: 1px solid var(--line); padding: 24px; }
.style-card h3 { font-size: 19px; font-weight: 500; letter-spacing: -0.02em; }
.style-card p { color: var(--muted); font-size: 15px; margin-top: 4px; }
.style-card .wpm { margin-top: 28px; font: 500 13px var(--mono); color: var(--muted); letter-spacing: .04em; }
.style-card .wpm b { font: 500 34px var(--sans); color: var(--ink); letter-spacing: -0.04em; margin-right: 6px; }
.ticks { display: flex; align-items: flex-end; gap: 3px; height: 40px; margin-top: 18px; }
.ticks i { flex: 1; background: var(--ink); border-radius: 1px; opacity: .85; }
.ticks i.typo { background: var(--sky); }
.split { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.split p { color: var(--muted); font-size: 19px; max-width: 32em; }
.tint { background: #f4f2ed; }

/* ---------- stats ---------- */
.stats { display: grid; grid-template-columns: 1fr 1.65fr; gap: 48px; }
.stat { display: grid; grid-template-columns: 1.1fr 1fr; gap: 32px; align-items: center; padding: 36px 0; border-top: 1px solid var(--line); }
.stat:first-child { border-top: 0; padding-top: 0; }
.stat b { font-weight: 400; font-size: clamp(64px, 8vw, 108px); line-height: 1; letter-spacing: -0.05em; font-variant-numeric: tabular-nums; }
.stat p { color: var(--muted); }

/* ---------- faq ---------- */
.faq { display: grid; grid-template-columns: 1fr 2fr; gap: 48px; }
.faq h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(36px, 4.4vw, 56px); line-height: 1.05; letter-spacing: -0.02em; }
.faq details { border-bottom: 1px solid var(--dark-line); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 24px; padding: 24px 0; font-size: 17px; font-weight: 500; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-weight: 300; font-size: 22px; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq details p { color: var(--dark-muted); padding: 0 48px 28px 0; max-width: 46em; }

/* ---------- cta + footer ---------- */
.cta { text-align: center; }
.cta h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(36px, 5vw, 64px); line-height: 1.06; letter-spacing: -0.025em; max-width: 14em; margin: 0 auto; text-wrap: balance; }
.cta p { color: var(--muted); margin: 24px auto 0; max-width: 34em; font-size: 19px; }
.cta .btn { margin-top: 36px; }
.cta small { display: block; margin-top: 20px; color: var(--muted); font-size: 14px; }
.foot { border-top: 1px solid var(--line); padding: 32px 0 110px; color: var(--muted); font-size: 14px; }
.foot-in { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; align-items: center; }
.foot nav { display: flex; gap: 24px; }
.foot a:hover { color: var(--ink); }

.float-cta {
  position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 60;
  display: inline-flex; align-items: center; gap: 12px;
  background: var(--ink); color: #fff; padding: 9px 20px 9px 10px; border-radius: 10px;
  font-weight: 500; font-size: 16px; box-shadow: 0 14px 30px -10px rgba(0,0,0,.45);
}
.float-cta svg { width: 26px; height: 26px; }
.float-cta:hover { background: #33313d; }

/* ---------- install page ---------- */
.page-head { padding: clamp(48px, 7vw, 96px) 0 48px; }
.page-head h1 { font-family: var(--serif); font-weight: 400; font-size: clamp(40px, 5vw, 68px); line-height: 1.05; letter-spacing: -0.025em; }
.page-head p { margin-top: 20px; font-size: 20px; color: var(--muted); max-width: 32em; }
.page-head .btn { margin-top: 32px; }
.guide { display: grid; grid-template-columns: 1fr 1fr; gap: 0; border: 1px solid var(--line); background: var(--surface); }
.guide > section { padding: clamp(28px, 4vw, 52px); }
.guide > section + section { border-left: 1px solid var(--line); }
.guide h2 { font-size: 24px; font-weight: 500; letter-spacing: -0.02em; margin-bottom: 28px; }
.guide ol { list-style: none; margin: 0; padding: 0; counter-reset: n; display: grid; gap: 22px; }
.guide li { counter-increment: n; display: grid; grid-template-columns: 44px 1fr; }
.guide li::before { content: counter(n, decimal-leading-zero); font: 500 14px var(--mono); color: var(--faint); padding-top: 3px; }
.guide li span { color: var(--muted); display: block; font-size: 16px; margin-top: 2px; }
code { font: 500 .88em var(--mono); background: #f0eee8; padding: 2px 6px; border-radius: 4px; }
.notes { margin-top: 56px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.notes div { border: 1px solid var(--line); padding: 24px; background: var(--surface); }
.notes h3 { font-size: 17px; font-weight: 500; margin-bottom: 8px; }
.notes p { color: var(--muted); font-size: 16px; }

/* ---------- responsive ---------- */
@media (max-width: 960px) {
  .nav-links { display: none; }
  .hero-grid, .stats, .faq, .steps-body, .guide { grid-template-columns: 1fr; }
  .guide > section + section { border-left: 0; border-top: 1px solid var(--line); }
  .strip { grid-template-columns: repeat(3, 1fr); }
  .strip > :first-child { grid-column: 1 / -1; border-bottom: 1px solid var(--line); }
  .strip > :nth-child(2), .strip > :nth-child(5) { border-left: 0; }
  .strip > :nth-child(n+5) { border-top: 1px solid var(--line); }
  .six { grid-template-columns: 1fr 1fr; }
  .six article { min-height: 240px; border-right: 1px solid var(--dark-line) !important; border-bottom: 1px solid var(--dark-line) !important; }
  .styles-row { grid-template-columns: 1fr 1fr; }
  .notes { grid-template-columns: 1fr; }
  .steps-art::before { background: linear-gradient(180deg, var(--bg), transparent 30%); }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .four, .six, .styles-row { grid-template-columns: 1fr; }
  .four article { border-right: 0 !important; border-bottom: 1px solid var(--line) !important; min-height: 0; }
  .four article:last-child { border-bottom: 0 !important; }
  .dots { grid-template-columns: repeat(10, 6px); gap: 6px; }
  .dots i { width: 6px; height: 6px; }
  .stat { grid-template-columns: 1fr; gap: 12px; }
  .doc { width: 100%; margin-top: 0; }
  .doc-page { height: 260px; }
  .stage #dcpe-panel { position: relative; top: auto; right: auto; margin: -48px auto 0; zoom: .8; }
  .stage-glow { right: 0; width: 100%; height: 50%; }
  .nav-cta .btn-soft { display: none; }
  .steps-bar button { width: 60px; }
  .faq details p { padding-right: 0; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .caret { animation: none; }
  .btn { transition: none; }
}

/* ---------- pricing ---------- */
.nav-links a[aria-current="page"] { background: var(--surface); }
.price-head { text-align: center; padding: clamp(48px, 7vw, 96px) 0 48px; }
.price-head h1 { font-family: var(--serif); font-weight: 400; font-size: clamp(40px, 5vw, 68px); line-height: 1.05; letter-spacing: -0.025em; }
.price-head p { margin: 18px auto 0; font-size: 20px; color: var(--muted); max-width: 30em; }
.price-head small { display: block; margin-top: 14px; color: var(--faint); font: 12px var(--mono); }
.bill { margin-top: 32px; display: inline-flex; align-items: center; gap: 16px; flex-wrap: wrap; justify-content: center; }
.bill-toggle { display: inline-flex; background: #eeece6; border-radius: 10px; padding: 4px; }
.bill-toggle button { border: 0; background: none; padding: 8px 18px; border-radius: 7px; font-size: 15px; font-weight: 500; }
.bill-toggle button[aria-pressed="true"] { background: var(--ink); color: #fff; }
.bill > span { color: var(--accent); font-size: 15px; font-weight: 500; }

.plans { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; max-width: 920px; margin: 0 auto; align-items: start; }
.plan { position: relative; background: var(--surface); border: 1px solid var(--line); padding: 40px; }
.plan h2 { font: 500 14px var(--mono); letter-spacing: .14em; text-transform: uppercase; }
.plan-sub { margin-top: 10px; color: var(--muted); }
.plan-price { margin-top: 28px; display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.plan-price b { font-weight: 400; font-size: 72px; line-height: 1; letter-spacing: -0.05em; }
.plan-price span { color: var(--muted); }
.plan-total { margin-top: 8px; color: var(--faint); font-size: 14px; }
.plan .btn { width: 100%; margin-top: 28px; }
.plan ul { list-style: none; margin: 28px 0 0; padding: 28px 0 0; border-top: 1px solid var(--line); display: grid; gap: 12px; }
.plan li { display: flex; gap: 12px; font-size: 16px; }
.plan li::before { content: "✓"; color: var(--accent); font-weight: 600; }
.plan-pro { background: var(--dark); color: #fff; border-color: var(--dark); padding-top: 72px; }
.plan-pro .plan-sub, .plan-pro .plan-price span { color: var(--dark-muted); }
.plan-pro .plan-total { color: #7d7b88; }
.plan-pro ul { border-color: var(--dark-line); }
.plan-pro li::before { color: var(--sky); }
.plan-flag { position: absolute; inset: 0 0 auto 0; height: 40px; display: grid; place-items: center; background: var(--sky); color: #111c2d; font: 500 12px var(--mono); letter-spacing: .14em; text-transform: uppercase; }
.checkout-note { max-width: 920px; margin: 20px auto 0; padding: 14px 18px; border: 1px dashed var(--sky); color: var(--ink); font-size: 15px; text-align: center; }

.compare { max-width: 920px; margin: 48px auto 0; border: 1px solid var(--line); background: var(--surface); }
.compare > div { display: grid; grid-template-columns: 1.3fr 1fr 1fr; border-top: 1px solid var(--line); }
.compare > div:first-child { border-top: 0; }
.compare span[role] { padding: 16px 24px; }
.compare [role="cell"], .compare [role="columnheader"]:not(:first-child) { text-align: center; border-left: 1px solid var(--line); }
.compare [role="rowheader"] { font-weight: 500; }
.compare [role="cell"] { color: var(--muted); }
.compare-head span { font: 500 12px var(--mono); letter-spacing: .12em; text-transform: uppercase; }
@media (max-width: 720px) {
  .plans { grid-template-columns: 1fr; }
  .plan { padding: 28px; }
  .plan-pro { padding-top: 64px; }
  .compare span[role] { padding: 12px; font-size: 14px; }
}

/* ---- Thanks page: license key ---- */
.keybox { display: inline-flex; align-items: center; gap: 12px; flex-wrap: wrap; justify-content: center; margin: 4px 0 8px; padding: 12px 14px 12px 18px; border: 1px solid var(--line); border-radius: 14px; background: #fff; }
.keybox code { font-family: var(--mono); font-size: 16px; letter-spacing: 0.04em; user-select: all; white-space: nowrap; }
.keynote { margin: 0 0 20px; color: var(--muted); font-size: 14px; min-height: 1.4em; }

/* ---- Thanks page: desktop app downloads ---- */
[hidden] { display: none !important; }
.desk-dl { margin-top: 28px; }
.page-head .desk-dl p { margin: 0; font-size: 16px; }
.desk-dl > div { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }
.page-head .desk-dl .btn { margin-top: 0; }
