:root {
  --bg: #f7f7fb; --card: #fff; --text: #13131f; --muted: #5c5f73; --line: #e4e4ee;
  --accent: #4f46e5; --accent-hover: #4338ca; --accent-soft: #eef0ff; --on-accent: #fff;
  --good: #047857; --good-soft: #e7f6ef; --bad: #b91c1c; --bad-soft: #fdecec; --warn: #a15c07; --warn-soft: #fdf3e2;
  --shadow: 0 1px 2px rgba(16,24,40,.06), 0 8px 24px rgba(16,24,40,.08);
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  color-scheme: light;
}
/* Dark: chosen on the page, or following the system when nothing is chosen. */
:root[data-theme="dark"] {
    --bg: #0d0e14; --card: #161722; --text: #e8e8f0; --muted: #a0a2b5; --line: #272938;
    --accent: #8b85ff; --accent-hover: #a5a0ff; --accent-soft: #232246; --on-accent: #0d0e14;
    --good: #34d399; --good-soft: #10261d; --bad: #f87171; --bad-soft: #2d1414; --warn: #fbbf24; --warn-soft: #2d2410;
    --shadow: 0 2px 6px rgba(0,0,0,.5), 0 10px 30px rgba(0,0,0,.4);
    color-scheme: dark;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0d0e14; --card: #161722; --text: #e8e8f0; --muted: #a0a2b5; --line: #272938;
    --accent: #8b85ff; --accent-hover: #a5a0ff; --accent-soft: #232246; --on-accent: #0d0e14;
    --good: #34d399; --good-soft: #10261d; --bad: #f87171; --bad-soft: #2d1414; --warn: #fbbf24; --warn-soft: #2d2410;
    --shadow: 0 2px 6px rgba(0,0,0,.5), 0 10px 30px rgba(0,0,0,.4);
    color-scheme: dark;
  }
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 16px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, summary:focus-visible, [tabindex]:focus-visible {
  outline: 2px solid var(--accent); outline-offset: 2px;
}
code, kbd { font-family: var(--mono); font-size: .9em; }
kbd { padding: 1px 6px; border: 1px solid var(--line); border-bottom-width: 2px; border-radius: 5px; background: var(--card); white-space: nowrap; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 10; padding: 8px 14px; border-radius: 8px; background: var(--accent); color: var(--on-accent); }
.skip:focus { top: 12px; }

.top, .foot, main > section, main > article { width: min(1080px, 100% - 32px); margin-inline: auto; }
.top { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-weight: 700; font-size: 18px; }
.top-right { display: flex; align-items: center; gap: 22px; }
.top nav { display: flex; gap: 20px; }
.top nav a { color: var(--muted); text-decoration: none; font-size: 15px; }
.top nav a:hover { color: var(--text); }
.theme { display: inline-flex; gap: 2px; padding: 3px; border-radius: 10px; background: var(--card); border: 1px solid var(--line); }
.theme button { display: inline-grid; place-items: center; width: 30px; height: 28px; padding: 0; border: 0; border-radius: 7px; background: none; color: var(--muted); cursor: pointer; }
.theme button:hover { color: var(--text); }
.theme button[aria-pressed="true"] { background: var(--accent-soft); color: var(--accent); }
.theme svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
@media (max-width: 720px) { .top nav a:not(.nav-keep) { display: none; } .top-right { gap: 12px; } .top nav { gap: 14px; } .top nav a { white-space: nowrap; } }
@media (max-width: 440px) { .theme button { width: 26px; } .top nav { gap: 10px; } }
@media (max-width: 359px) { .brand span { display: none; } }

h1 { font-size: clamp(34px, 5.4vw, 56px); line-height: 1.07; letter-spacing: -.025em; margin: 12px 0 18px; }
h2 { letter-spacing: -.015em; }
.eyebrow { margin: 0; color: var(--accent); font-weight: 600; font-size: 14px; letter-spacing: .04em; text-transform: uppercase; }
.lead { color: var(--muted); font-size: 18px; max-width: 680px; margin: 0 auto 26px; }
.small { color: var(--muted); font-size: 14px; }
.hero { text-align: center; padding: 44px 0 16px; }
.cta { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.cta-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 12px; }
.cta-note { color: var(--muted); font-size: 14px; }
.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 46px; padding: 0 22px; border-radius: 12px; border: 1px solid var(--line);
  background: var(--card); color: var(--text); font: inherit; font-weight: 600; text-decoration: none; cursor: pointer;
}
.button:hover { border-color: var(--accent); }
.button.primary { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.button.primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); }
.button.small { min-height: 36px; padding: 0 14px; border-radius: 10px; font-size: 14px; }
.button[disabled], .button[aria-disabled="true"] { opacity: .6; cursor: default; }
.soon {
  display: inline-flex; align-items: center; height: 26px; padding: 0 11px; border-radius: 999px;
  background: var(--warn-soft); color: var(--warn); font-weight: 700; font-size: 12px; letter-spacing: .04em; text-transform: uppercase;
}
.notice { padding: 12px 16px; border-radius: 12px; border: 1px solid var(--line); background: var(--card); }
.notice.good { background: var(--good-soft); color: var(--good); border-color: transparent; }
.notice.bad { background: var(--bad-soft); color: var(--bad); border-color: transparent; }
.notice.warn { background: var(--warn-soft); color: var(--warn); border-color: transparent; }

/* The home page demo: a pretend browser tab with a button, a cursor and the clicker's controls. */
.demo { max-width: 760px; margin: 34px auto 0; text-align: left; background: var(--card); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow); overflow: hidden; }
.demo-bar { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-bottom: 1px solid var(--line); }
.demo-dots { display: flex; gap: 6px; }
.demo-dots i { width: 10px; height: 10px; border-radius: 50%; background: var(--line); }
.demo-url { flex: 1; padding: 4px 12px; border-radius: 8px; background: var(--bg); color: var(--muted); font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.demo-stage { position: relative; height: 230px; display: grid; place-items: center; overflow: hidden; background: linear-gradient(var(--bg), var(--card)); }
.demo-target { display: grid; justify-items: center; gap: 8px; }
.demo-button { min-width: 150px; min-height: 48px; padding: 0 22px; border: 0; border-radius: 12px; background: var(--accent); color: var(--on-accent); font: inherit; font-weight: 700; cursor: pointer; transition: transform .08s; }
.demo-button.pressed { transform: scale(.94); }
.demo-count { font-size: 14px; color: var(--muted); }
.demo-count strong { font-size: 22px; color: var(--text); font-variant-numeric: tabular-nums; }
.demo-cursor { position: absolute; left: 0; top: 0; width: 22px; height: 22px; pointer-events: none; transition: transform .6s cubic-bezier(.3,.7,.2,1); filter: drop-shadow(0 1px 1px rgba(0,0,0,.35)); }
.demo-cursor path { fill: #fff; stroke: #13131f; stroke-width: 1.4; stroke-linejoin: round; }
.demo-ripple { position: absolute; width: 34px; height: 34px; margin: -17px 0 0 -17px; border-radius: 50%; border: 2px solid var(--accent); pointer-events: none; animation: ripple .45s ease-out forwards; }
@keyframes ripple { from { transform: scale(.3); opacity: 1; } to { transform: scale(1.4); opacity: 0; } }
.demo-pill { position: absolute; right: 12px; bottom: 12px; display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; background: var(--text); color: var(--bg); font-size: 12px; font-weight: 600; }
.demo-pill::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #22c55e; }
.demo-panel { display: flex; flex-wrap: wrap; align-items: end; gap: 12px 16px; padding: 14px 16px; border-top: 1px solid var(--line); }
.demo-panel label { display: grid; gap: 4px; font-size: 13px; color: var(--muted); }
.demo-panel select, .field-input { height: 36px; padding: 0 10px; border: 1px solid var(--line); border-radius: 9px; background: var(--card); color: var(--text); font: inherit; font-size: 14px; }
.demo-panel .demo-note { flex: 1 1 200px; margin: 0; font-size: 13px; color: var(--muted); text-align: right; }
@media (prefers-reduced-motion: reduce) { .demo-cursor { transition: none; } .demo-ripple { animation: none; opacity: 0; } }

/* Feature grids */
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 16px; padding: 56px 0 8px; }
.facts article, .card { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 22px; }
.facts h2, .facts h3 { font-size: 18px; margin: 0 0 8px; }
.facts p { margin: 0; color: var(--muted); font-size: 15px; }
.section-head { text-align: center; padding: 48px 0 0; }
.section-head h2 { font-size: 30px; margin: 0 0 8px; }
.section-head .lead { margin-bottom: 0; }
.steps-row { counter-reset: step; list-style: none; padding: 0; margin: 26px auto 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.steps-row li { counter-increment: step; background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 20px 22px; color: var(--muted); font-size: 15px; }
.steps-row li::before { content: counter(step); display: inline-grid; place-items: center; width: 28px; height: 28px; margin-bottom: 8px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); font-weight: 700; }
.steps-row strong { display: block; color: var(--text); font-size: 17px; margin-bottom: 4px; }
.honest { max-width: 760px; margin: 40px auto 0; padding: 20px 22px; border-radius: 14px; background: var(--warn-soft); color: var(--text); }
.honest h2 { margin: 0 0 6px; font-size: 20px; }
.honest p { margin: 0; color: var(--text); }
.checks { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.checks li { position: relative; padding-left: 28px; color: var(--muted); }
.checks li::before { content: ""; position: absolute; left: 4px; top: .45em; width: 12px; height: 7px; border-left: 2px solid var(--good); border-bottom: 2px solid var(--good); transform: rotate(-45deg); }

/* Pricing */
.price { text-align: center; padding: 44px 0 16px; }
.price h2 { font-size: 32px; margin: 0 0 10px; }
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 16px; text-align: left; }
.plan { display: flex; flex-direction: column; gap: 4px; background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 24px; }
.plan.main { border: 2px solid var(--accent); }
.plan h2, .plan h3 { margin: 0; font-size: 16px; color: var(--muted); }
.plan .amount { font-size: 36px; font-weight: 700; margin: 4px 0 10px; letter-spacing: -.02em; }
.plan .amount small { font-size: 15px; color: var(--muted); font-weight: 500; }
.plan ul { margin: 0 0 16px; padding-left: 20px; color: var(--muted); flex: 1; }
.plan .button { width: 100%; }
.badge { align-self: flex-start; padding: 2px 9px; border-radius: 999px; background: var(--accent-soft); color: var(--accent); font-size: 12px; font-weight: 700; }
.buy-message { max-width: 680px; margin: 18px auto 0; text-align: left; }
.table-wrap { overflow-x: auto; margin: 26px 0 0; border: 1px solid var(--line); border-radius: 14px; background: var(--card); }
table.compare, table.rows { width: 100%; border-collapse: collapse; font-size: 15px; }
.compare th, .compare td, .rows th, .rows td { padding: 11px 16px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.compare tr:last-child td, .rows tr:last-child td { border-bottom: 0; }
.compare thead th, .rows thead th { font-size: 13px; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: .04em; }
.compare td + td, .compare th + th { width: 22%; text-align: center; }
.yes { color: var(--good); font-weight: 700; }
.no { color: var(--muted); }

.faq { padding: 40px 0 24px; max-width: 760px; }
.faq h2 { font-size: 26px; }
.faq details { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 14px 18px; margin: 10px 0; }
.faq summary { cursor: pointer; font-weight: 600; }
.faq details p { color: var(--muted); margin: 10px 0 2px; }

.narrow { max-width: 700px; padding: 40px 0 60px; }
.narrow h1 { font-size: clamp(30px, 4vw, 42px); }
.narrow .lead { margin-left: 0; }
.prose h2 { font-size: 21px; margin-top: 32px; }
.prose li { margin: 6px 0; }
.foot { display: flex; flex-wrap: wrap; gap: 10px 20px; padding: 36px 0 48px; color: var(--muted); font-size: 14px; border-top: 1px solid var(--line); margin-top: 48px; }
.foot a { color: var(--muted); }

/* Guides */
.guide-list { list-style: none; padding: 0; margin: 18px 0; display: grid; gap: 10px; }
.guide-list a { display: grid; gap: 2px; padding: 14px 18px; border: 1px solid var(--line); border-radius: 12px; background: var(--card); color: var(--text); text-decoration: none; }
.guide-list a:hover { border-color: var(--accent); }
.guide-list span { color: var(--muted); font-size: 14px; }
.guides-home { max-width: 760px; padding: 48px 0 0; }
.guides-home h2 { font-size: 26px; }
.guide .crumbs { margin: 0 0 6px; font-size: 14px; color: var(--muted); }
.guide h1 { margin-top: 4px; }
.guide ol li, .guide ul li { margin: 8px 0; }
.guide .updated { color: var(--muted); font-size: 14px; }
.guide-cta { margin: 36px 0 10px; padding: 22px; border: 2px solid var(--accent); border-radius: 16px; background: var(--card); }
.guide-cta h2 { margin-top: 0; }
.guide-cta .cta-row { justify-content: flex-start; }
.guide-more ul { padding-left: 20px; }

/* The test page */
.test-head { padding: 40px 0 0; }
.test-head h1 { font-size: clamp(30px, 4vw, 42px); }
.test-head .lead { margin-left: 0; }
.test-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 16px; padding: 18px 0 0; }
.test-grid .card { scroll-margin-top: 16px; }
.test-grid .wide { grid-column: 1 / -1; }
.card h2 { font-size: 18px; margin: 0 0 4px; }
.card > p { margin: 0 0 14px; color: var(--muted); font-size: 14px; }
.row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.count { font-variant-numeric: tabular-nums; font-weight: 700; font-size: 20px; }
.point-area { position: relative; height: 220px; border: 2px dashed var(--line); border-radius: 12px; background: var(--bg); cursor: crosshair; touch-action: none; }
.point-area .dot { position: absolute; width: 14px; height: 14px; margin: -7px 0 0 -7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); pointer-events: none; }
.moving-area { position: relative; height: 160px; border-radius: 12px; background: var(--bg); overflow: hidden; }
.moving-area .button { position: absolute; transition: left .25s, top .25s; }
.out { font-family: var(--mono); font-size: 13px; color: var(--muted); min-height: 1.6em; overflow-wrap: anywhere; }
.form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px 16px; }
.form-grid label, .stack { display: grid; gap: 4px; font-size: 14px; color: var(--muted); }
.form-grid .full { grid-column: 1 / -1; }
.field-input { width: 100%; }
textarea.field-input { height: auto; min-height: 72px; padding: 8px 10px; resize: vertical; }
fieldset { margin: 0; padding: 0; border: 0; }
fieldset legend { font-size: 14px; color: var(--muted); margin-bottom: 4px; }
.inline { display: inline-flex !important; grid-auto-flow: column; align-items: center; gap: 6px !important; margin-right: 14px; color: var(--text) !important; }
.scroll-list { height: 220px; overflow-y: auto; margin: 0; padding: 0; list-style: none; border: 1px solid var(--line); border-radius: 12px; }
.scroll-list li { padding: 9px 14px; border-bottom: 1px solid var(--line); font-size: 14px; }
.scroll-list li.loading { color: var(--muted); font-style: italic; }
.canvas-box { display: block; width: 100%; height: auto; aspect-ratio: 2 / 1; border-radius: 12px; background: #13131f; cursor: pointer; }
.state-text { min-height: 2em; font-weight: 700; color: var(--good); }

/* Sign-in, account, checkout */
.account-box { display: grid; gap: 14px; margin: 22px 0; padding: 22px; border: 1px solid var(--line); border-radius: 16px; background: var(--card); }
.account-box dl { display: grid; grid-template-columns: max-content 1fr; gap: 6px 18px; margin: 0; }
.account-box dt { color: var(--muted); }
.account-box dd { margin: 0; font-weight: 600; }
.checkout-done { margin: 22px 0; padding: 20px 22px; border-radius: 14px; background: var(--good-soft); }
.checkout-done h2 { margin: 0 0 4px; color: var(--good); }
.checkout-done p { margin: 0; }
.account-actions { justify-content: flex-start; }
.cta-soon { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); font-size: 14px; font-weight: 600; }
.facts.three { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.section-head + .facts { padding-top: 24px; }
.facts + .cta { padding-top: 16px; }
.prose pre { margin: 14px 0; padding: 12px 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--card); overflow-x: auto; font-size: 14px; }

/* Shared scenario (/s): the site it works on first and prominent, then the warnings and the steps. */
.share-site { margin: 0 0 14px; padding: 14px 18px; border-radius: 12px; background: var(--accent-soft); font-size: 19px; }
.share-site strong { color: var(--accent); overflow-wrap: anywhere; }
.share-facts { display: grid; grid-template-columns: max-content 1fr; gap: 4px 18px; margin: 0 0 14px; }
.share-facts dt { color: var(--muted); }
.share-facts dd { margin: 0; font-weight: 600; overflow-wrap: anywhere; }
.share-warnings { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.share-warnings .notice { margin: 0; }
.share-steps li { overflow-wrap: anywhere; }
.share-steps .badge { vertical-align: 1px; }
.share-fields { margin: 4px 0; padding-left: 20px; font-size: 14px; color: var(--muted); }
.share-off, .share-note { color: var(--muted); font-size: 14px; }
.share-note { display: block; }
.share-unknown { color: var(--warn); }
.share-add { margin: 28px 0 10px; padding: 22px; border: 2px solid var(--accent); border-radius: 16px; background: var(--card); }
.share-add .cta-row { justify-content: flex-start; }
.share-install > p:first-child { margin-top: 0; }
.share-add #share-status { margin: 14px 0 0; }
.share-privacy { margin-top: 28px; }

/* Account: alerts (Pro) */
.alerts h2 { margin-bottom: 4px; }
.alerts-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; margin: 16px 0; }
.alerts-grid .card { display: grid; gap: 10px; align-content: start; }
.alerts-grid h3 { margin: 0; font-size: 17px; }
.alerts-grid p { margin: 0; }
.alert-state { color: var(--muted); overflow-wrap: anywhere; }
.alert-state.on { color: var(--good); font-weight: 600; }
.alerts-grid form { display: grid; gap: 10px; }
