/* Keelson landing page: one hand-written stylesheet. */
:root {
  --bg: #f7f8fa; --surface: #fff; --text: #14181f; --muted: #555f6d; --border: #dfe3e8;
  --accent: #2f4fd6; --accent-2: #0f8a7e; --on-accent: #fff; --band: #eef1f7;
  --ok: #1d7a3e; --err: #b3261e; --radius: 14px;
  --shadow: 0 1px 2px rgb(0 0 0 / .05), 0 8px 24px rgb(20 30 60 / .07);
  --maxw: 72rem; color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0e1116; --surface: #171b22; --text: #e8ebf0; --muted: #a2abb8; --border: #2a303a;
    --accent: #8fa6ff; --accent-2: #5fd4c4; --on-accent: #0b1020; --band: #131820;
    --ok: #6fd18f; --err: #ff8a80; --shadow: none;
  }
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--text); font: 1.0625rem/1.65 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-underline-offset: .15em; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
h1, h2, h3 { line-height: 1.15; letter-spacing: -.015em; }
h1 { font-size: clamp(2rem, 4.5vw, 3.2rem); margin: .3em 0 .4em; }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); margin: 0 0 .6em; }
h3 { font-size: 1.15rem; margin: 0 0 .4em; }
code { font-size: .9em; background: var(--border); padding: .1em .35em; border-radius: 4px; }
.wrap { width: min(100% - 2rem, var(--maxw)); margin-inline: auto; }
.narrow { max-width: 40rem; }
main > section { padding-block: clamp(2.5rem, 6vw, 4.5rem); }
.skip { position: absolute; left: -999px; top: 0; background: var(--accent); color: var(--on-accent); padding: .5rem 1rem; z-index: 10; }
.skip:focus { left: 1rem; }

.top { background: var(--surface); border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 5; }
.bar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: .5rem 1rem; padding-block: .7rem; }
.brand { display: flex; align-items: center; gap: .5rem; font-weight: 800; font-size: 1.2rem; color: var(--text); text-decoration: none; }
.brand img { border-radius: 8px; }
.top ul { list-style: none; display: flex; flex-wrap: wrap; gap: .25rem; margin: 0; padding: 0; }
.top nav a { display: block; padding: .4rem .7rem; border-radius: 999px; color: var(--muted); text-decoration: none; font-size: .95rem; }
.top nav a:hover { color: var(--text); background: var(--border); }
.top nav a.pill { background: var(--accent); color: var(--on-accent); font-weight: 600; }

.hero-grid { display: grid; gap: 2.5rem; align-items: center; grid-template-columns: 1.05fr 1fr; }
@media (max-width: 52rem) { .hero-grid { grid-template-columns: 1fr; } }
.eyebrow { text-transform: uppercase; letter-spacing: .1em; font-size: .8rem; font-weight: 700; color: var(--accent-2); margin: 0; }
.lede { font-size: 1.2rem; color: var(--muted); max-width: 62ch; }
.small { font-size: .88rem; color: var(--muted); }
.actions { display: flex; flex-wrap: wrap; gap: .75rem; margin: 1.5rem 0 .75rem; }
.btn { display: inline-block; padding: .7rem 1.2rem; border-radius: 10px; border: 2px solid var(--accent); background: var(--accent); color: var(--on-accent); font: inherit; font-weight: 650; text-decoration: none; cursor: pointer; }
.btn.alt { background: transparent; color: var(--accent); }
.btn:hover { filter: brightness(1.08); }

.shot { margin: 0; }
.shot img { border-radius: var(--radius); border: 1px solid var(--border); box-shadow: var(--shadow); }
.shot.phone { max-width: 18rem; justify-self: center; }
figcaption { font-size: .82rem; color: var(--muted); margin-top: .4rem; text-align: center; }

.grid3 { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.4rem; box-shadow: var(--shadow); }
.card p:last-child, .card ul:last-child { margin-bottom: 0; }
.features { columns: 2 18rem; column-gap: 2rem; padding-left: 1.2rem; margin: 0 0 2rem; }
.features li { break-inside: avoid; margin-bottom: .5rem; }
.split { display: grid; gap: 2rem; grid-template-columns: 1.4fr 1fr; align-items: start; }
@media (max-width: 52rem) { .split { grid-template-columns: 1fr; } }

.band { background: var(--band); border-block: 1px solid var(--border); }
.stats { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr)); margin-bottom: 1rem; }
.stats div { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.2rem; display: grid; }
.num { font-size: 2.4rem; font-weight: 800; color: var(--accent-2); line-height: 1.1; }

.steps { padding-left: 1.3rem; margin: 0; }
.steps li { margin-bottom: .7rem; }

.tiers { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr)); }
.price { font-weight: 700; color: var(--accent-2); }

form.wl { display: grid; gap: 1rem; }
.field { display: grid; gap: .3rem; }
label { font-weight: 600; }
input[type=email], input[type=text] { font: inherit; color: var(--text); background: var(--surface); border: 1px solid var(--border); border-radius: 10px; padding: .65rem .8rem; width: 100%; }
input:focus { border-color: var(--accent); }
.check { display: flex; align-items: center; gap: .5rem; }
.check input { width: 1.2rem; height: 1.2rem; accent-color: var(--accent); }
[aria-invalid="true"] { border-color: var(--err) !important; }
.error { color: var(--err); margin: 0; font-size: .9rem; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
form.wl .btn { justify-self: start; }
.notice { padding: .9rem 1rem; border-radius: 10px; border: 1px solid currentColor; }
.notice.ok { color: var(--ok); } .notice.err { color: var(--err); }

.foot { border-top: 1px solid var(--border); padding-block: 2rem; font-size: .92rem; color: var(--muted); }
.tm { font-size: .8rem; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
#features, #migration, #pricing, #waitlist { scroll-margin-top: 4.5rem; }
.split.even { grid-template-columns: 1fr 1fr; }
@media (max-width: 52rem) { .split.even { grid-template-columns: 1fr; } }
.card.pro { border-color: var(--accent); }
.tag { display: inline-block; font-size: .75rem; font-weight: 700; padding: .1rem .55rem; border-radius: 999px; background: var(--accent); color: var(--on-accent); vertical-align: middle; }
.ticks { padding-left: 1.2rem; } .ticks li { margin-bottom: .45rem; }
.shot.center { margin: 2rem auto 0; }
.grid3 { grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); }
.demos { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); }
.demo { padding: 0; overflow: hidden; display: flex; flex-direction: column; color: var(--text); text-decoration: none; }
.demo img { aspect-ratio: 4 / 3; object-fit: cover; object-position: top; width: 100%; border-bottom: 1px solid var(--border); }
.demo:hover { border-color: var(--accent); }
.demo-body { display: grid; gap: .2rem; padding: 1rem 1.2rem 1.2rem; }
.demo .go { color: var(--accent); font-weight: 600; margin-top: .3rem; }
.demo.soon { justify-content: center; border-style: dashed; min-height: 8rem; }
.demo.soon .tag { justify-self: start; margin-top: .4rem; }
#demos { scroll-margin-top: 4.5rem; }
.notice.info { color: var(--text); border-color: var(--accent-2); background: color-mix(in srgb, var(--accent-2) 10%, transparent); display: inline-block; }
.plain-list { padding-left: 1.2rem; margin: 0; }
#pro { scroll-margin-top: 4.5rem; }
#pricing { margin-top: 2rem; scroll-margin-top: 4.5rem; }
#pricing .tiers { grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); margin-bottom: 1rem; }
.tier { display: flex; flex-direction: column; gap: .4rem; }
.tier h4 { margin: 0; font-size: 1.15rem; }
.tier .sites { margin: 0; color: var(--muted); }
.tier .price { margin: .3rem 0; color: var(--text); }
.tier .amount { font-size: 2rem; font-weight: 800; color: var(--accent-2); }
.tier .per { font-size: .9rem; color: var(--muted); font-weight: 400; }
.tier ul { margin-bottom: .8rem; }
.tier .btn { margin-top: auto; text-align: center; }
.btn.disabled { background: transparent; color: var(--muted); border-color: var(--border); cursor: not-allowed; filter: none; }
.seller { margin-top: -.4rem; }
