:root {
  --bg: #ffffff;
  --bg-soft: #f6f7fb;
  --text: #1d2130;
  --muted: #5b6275;
  --border: #e3e5ee;
  --accent: #5b3df5;
  --accent-text: #ffffff;
  --accent-soft: #efebff;
  --todo-bg: #fff3b0;
  --todo-text: #6b4e00;
  --radius: 12px;
  --wrap: 1080px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #11131a;
    --bg-soft: #181b25;
    --text: #e8eaf2;
    --muted: #a3a9bb;
    --border: #2a2f3d;
    --accent: #8f7bff;
    --accent-text: #11131a;
    --accent-soft: #241f45;
    --todo-bg: #5a4a00;
    --todo-text: #fff3b0;
  }
}
:root[data-theme="dark"] {
  --bg: #11131a;
  --bg-soft: #181b25;
  --text: #e8eaf2;
  --muted: #a3a9bb;
  --border: #2a2f3d;
  --accent: #8f7bff;
  --accent-text: #11131a;
  --accent-soft: #241f45;
  --todo-bg: #5a4a00;
  --todo-text: #fff3b0;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.65 system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", sans-serif;
}
a { color: var(--accent); text-underline-offset: 2px; }
h1, h2, h3 { line-height: 1.25; margin: 1.6em 0 .5em; }
h1 { font-size: clamp(1.9rem, 4vw, 2.7rem); margin-top: .8em; letter-spacing: -.02em; }
h2 { font-size: 1.4rem; }
h3 { font-size: 1.05rem; margin: 0 0 .35em; }
p, ul, ol, dl, table { margin: 0 0 1em; }
ul, ol { padding-left: 1.3em; }
li { margin-bottom: .35em; }
table { width: 100%; border-collapse: collapse; font-size: .95rem; display: block; overflow-x: auto; }
th, td { text-align: left; vertical-align: top; padding: .55em .7em; border-bottom: 1px solid var(--border); }
th { background: var(--bg-soft); }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 760px; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 8px; background: var(--bg); padding: 8px; z-index: 10; }
.lead { font-size: 1.15rem; color: var(--muted); }
.small { font-size: .9rem; color: var(--muted); }
.eyebrow { text-transform: uppercase; letter-spacing: .08em; font-size: .8rem; font-weight: 600; color: var(--accent); margin: 0; }
mark.todo { background: var(--todo-bg); color: var(--todo-text); padding: 0 .25em; border-radius: 4px; }

.site-header { border-bottom: 1px solid var(--border); background: var(--bg); position: sticky; top: 0; z-index: 5; }
.header-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; flex-wrap: wrap; }
.brand { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: 1.15rem; color: var(--text); text-decoration: none; }
.site-header nav { display: flex; gap: 4px; flex-wrap: wrap; }
.site-header nav a { color: var(--muted); text-decoration: none; padding: 6px 10px; border-radius: 8px; }
.site-header nav a:hover, .site-header nav a[aria-current="page"] { color: var(--text); background: var(--bg-soft); }

.button {
  display: inline-block; padding: .7em 1.2em; border-radius: 10px; border: 1px solid var(--border);
  color: var(--text); background: var(--bg); text-decoration: none; font-weight: 600; margin: 0 6px 6px 0; white-space: nowrap;
}
.button:hover { border-color: var(--accent); }
.button.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-text); }
.button.primary:hover { filter: brightness(1.08); }

.hero { background: linear-gradient(180deg, var(--accent-soft), var(--bg)); padding: 56px 0 40px; }
.hero h1 { max-width: 760px; }
.hero .lead { max-width: 680px; }
.cta-row { margin-top: 1.5em; }

.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.card { border: 1px solid var(--border); border-radius: var(--radius); padding: 18px 20px; background: var(--bg); }
.card p:last-child { margin-bottom: 0; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; margin-bottom: 48px; }
.ticks { list-style: none; padding: 0; }
.ticks li { padding-left: 1.6em; position: relative; }
.ticks li::before { content: "✓"; position: absolute; left: 0; color: var(--accent); font-weight: 700; }
.steps li { margin-bottom: .6em; }

.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 28px 0; }
.plan { text-align: center; }
.plan.featured { border: 2px solid var(--accent); }
.price { font-size: 2rem; font-weight: 700; margin: .2em 0 0; }
.price span { font-size: 1rem; font-weight: 400; color: var(--muted); }
.alt-price { color: var(--muted); margin-bottom: .6em; }
.get-started { display: flex; align-items: center; justify-content: space-between; gap: 24px; background: var(--bg-soft); border-radius: var(--radius); padding: 4px 24px 18px; }
.faq dt { font-weight: 600; margin-top: 1em; }
.faq dd { margin: .25em 0 0; color: var(--muted); }

.contact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 24px; }
.contact-grid h2 { margin-top: 0; font-size: 1.1rem; }
.contact-grid p { overflow-wrap: break-word; }

.legal { max-width: 800px; padding-bottom: 48px; }
.legal .meta { color: var(--muted); font-size: .9rem; }
.legal section { scroll-margin-top: 80px; }
.toc { background: var(--bg-soft); border-radius: var(--radius); padding: 12px 20px; margin: 1.5em 0; }
.toc ol { margin: 0; columns: 2; column-gap: 32px; }
.toc li { break-inside: avoid; }

.site-footer { border-top: 1px solid var(--border); background: var(--bg-soft); margin-top: 48px; padding: 32px 0 24px; font-size: .92rem; color: var(--muted); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 24px; }
.footer-grid nav { display: flex; flex-direction: column; gap: 6px; }
.footer-grid a { color: var(--muted); }
.brand-small { font-weight: 700; color: var(--text); margin-bottom: .5em; }
.fineprint { margin-top: 16px; font-size: .82rem; }

@media (max-width: 760px) {
  .split, .plans, .contact-grid, .footer-grid { grid-template-columns: 1fr; }
  .get-started { flex-direction: column; align-items: flex-start; }
  .toc ol { columns: 1; }
  .hero { padding-top: 32px; }
}

/* ---------- Product pages: hero, screenshots, showcase ---------- */
.accent { color: var(--accent); }
.center { text-align: center; }
.band { background: var(--bg-soft); padding: 8px 0 40px; margin: 48px 0; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; align-items: center; }
.hero-grid .shot { margin: 0; }
.hero-grid .shot .frame a { max-height: 520px; }

.shot { margin: 0; min-width: 0; }
.frame { border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; background: #fff; box-shadow: 0 18px 40px -18px rgba(20, 20, 50, .35); }
.frame-bar { display: flex; align-items: center; gap: 6px; padding: 9px 12px; background: var(--bg-soft); border-bottom: 1px solid var(--border); font-size: .78rem; color: var(--muted); }
.frame-bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--border); flex: none; }
.frame-bar span { margin-left: 8px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.frame a { display: block; position: relative; }
.frame img { display: block; width: 100%; height: auto; }
.shot.tall .frame a { max-height: 560px; overflow: hidden; }
.shot.tall .frame a::after { content: "View full size"; position: absolute; left: 0; right: 0; bottom: 0; padding: 48px 0 12px; text-align: center; font-size: .85rem; font-weight: 600; color: var(--accent); background: linear-gradient(transparent, #fff 70%); }
.shot figcaption { font-size: .88rem; color: var(--muted); margin-top: 10px; text-align: center; }

.strip { border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.strip-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 28px; padding: 16px; font-size: .9rem; font-weight: 600; color: var(--muted); }

.showcase .row { display: grid; grid-template-columns: 1fr 1.15fr; gap: 56px; align-items: center; margin: 72px 0; }
.showcase .row.reverse .copy { order: 2; }
.showcase h2 { margin-top: .2em; font-size: 1.7rem; }

.link-card { color: inherit; text-decoration: none; transition: border-color .15s, transform .15s; }
.link-card:hover { border-color: var(--accent); transform: translateY(-2px); }
.link-card h3 { color: var(--accent); }

/* ---------- Features page ---------- */
.page-head { padding-top: 8px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 20px 0 8px; }
.chips a { border: 1px solid var(--border); border-radius: 999px; padding: 5px 14px; text-decoration: none; font-size: .9rem; color: var(--text); background: var(--bg); }
.chips a:hover { border-color: var(--accent); color: var(--accent); }
.feature { display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: start; padding: 48px 0; border-top: 1px solid var(--border); scroll-margin-top: 72px; }
.feature.wide { display: block; }
.feature h2 { margin-top: .2em; font-size: 1.6rem; }
.feature .lead { font-size: 1.05rem; }
.feature .shot { position: sticky; top: 88px; }
.feature.wide .shot { position: static; max-width: 760px; margin: 24px auto 0; }
.options th { width: 32%; font-weight: 600; background: none; }
.options { display: table; }
.tip { background: var(--accent-soft); border-radius: 10px; padding: 12px 16px; font-size: .95rem; }
.rule-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px; margin: 8px 0 16px; }
.rule-grid ul { padding-left: 1.1em; margin: 0; font-size: .95rem; }
code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .88em; background: var(--bg-soft); border: 1px solid var(--border); border-radius: 5px; padding: 1px 5px; overflow-wrap: anywhere; }

@media (max-width: 900px) {
  .hero-grid, .showcase .row, .feature { grid-template-columns: 1fr; gap: 28px; }
  .showcase .row.reverse .copy { order: 0; }
  .feature .shot { position: static; }
  .showcase .row { margin: 48px 0; }
}
@media (max-width: 760px) {
  .options th, .options td { display: block; width: auto; padding: 4px 0; border: 0; }
  .options tr { display: block; padding: 8px 0; border-bottom: 1px solid var(--border); }
  .shot.tall .frame a { max-height: 420px; }
}

.shot.phone { max-width: 340px; margin-left: auto; margin-right: auto; }
.shot.phone .frame { border-radius: 24px; }
@media (max-width: 480px) {
  .header-row { gap: 4px; padding-top: 8px; padding-bottom: 6px; }
  .site-header nav a { padding: 4px 7px; font-size: .92rem; }
}
