/* Keel site. Tokens follow the product's design system (teal on cool navy, dark by default). */
@font-face { font-family: "Outfit"; src: url("/fonts/outfit-latin-wght-normal.woff2") format("woff2"); font-weight: 100 900; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Outfit"; src: url("/fonts/outfit-latin-ext-wght-normal.woff2") format("woff2"); font-weight: 100 900; font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "JetBrains Mono"; src: url("/fonts/jetbrains-mono-latin-wght-normal.woff2") format("woff2"); font-weight: 100 800; font-display: swap; }

:root {
  /* Keel dark theme. */
  --bg: #0b1220; --surface: #0e1626; --raised: #121d30; --ink: #e6edf5; --muted: #8a97ab; --line: #1e2a3d;
  --accent: #14b8a6; --accent-muted: #123c37; --accent-ink: #5eead4; --solid: #14b8a6; --solid-hover: #2dd4bf; --on-solid: #042f2e;
  --ring: #2dd4bf; --positive: #34d399; --critical: #f87171;
  --shadow: 0 1px 0 rgb(255 255 255 / .04), 0 24px 48px -24px rgb(0 0 0 / .6);
  --radius: 20px; --field: 12px;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: "Outfit", ui-sans-serif, system-ui, sans-serif; font-size: 16px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { line-height: 1.12; letter-spacing: -0.025em; margin: 0; font-weight: 600; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
.wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 640px) { .wrap { padding: 0 24px; } }
.muted { color: var(--muted); }
.mono { font-family: "JetBrains Mono", ui-monospace, monospace; }
.skip { position: absolute; left: -9999px; top: 8px; background: var(--surface); padding: 8px 14px; border-radius: 999px; z-index: 50; }
.skip:focus { left: 16px; }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--ring) 55%, transparent); outline-offset: 2px; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 30; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 9px; text-decoration: none; font-weight: 600; font-size: 21px; letter-spacing: -0.02em; }
.brand svg { width: 28px; height: 28px; }
.nav { display: none; gap: 4px; }
.nav a { text-decoration: none; padding: 8px 14px; border-radius: 999px; font-size: 15px; font-weight: 500; color: var(--muted); }
.nav a:hover, .nav a[aria-current="page"] { color: var(--ink); background: var(--raised); }
@media (min-width: 760px) { .nav { display: flex; } }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 20px; border-radius: 999px; border: 1px solid transparent;
  font: inherit; font-size: 15px; font-weight: 600; text-decoration: none; cursor: pointer; transition: background-color .18s, transform .18s cubic-bezier(.16,1,.3,1); }
.btn:active { transform: scale(.98); }
.btn-primary { background: var(--solid); color: var(--on-solid); }
.btn-primary:hover { background: var(--solid-hover); }
.btn-ghost { background: var(--surface); border-color: var(--line); color: var(--ink); }
.btn-ghost:hover { background: var(--raised); }
.btn-sm { min-height: 38px; padding: 0 16px; font-size: 14px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

/* Sections */
section { padding: 72px 0; }
@media (min-width: 900px) { section { padding: 96px 0; } }
.band { background: var(--surface); border-block: 1px solid var(--line); }
.eyebrow { color: var(--accent-ink); font-weight: 600; font-size: 13px; letter-spacing: .06em; text-transform: uppercase; margin-bottom: 12px; }
.h1 { font-size: clamp(38px, 6vw, 60px); letter-spacing: -0.035em; line-height: 1.04; }
.h2 { font-size: clamp(28px, 3.6vw, 40px); }
.lede { font-size: 18px; line-height: 1.6; color: var(--muted); max-width: 46ch; margin-top: 20px; }
.section-head { max-width: 680px; }
.section-head p { margin-top: 14px; color: var(--muted); font-size: 17px; }

/* Hero */
.hero { padding-top: 48px; }
.hero .grid { display: grid; gap: 40px; align-items: center; }
@media (min-width: 1000px) { .hero .grid { grid-template-columns: 5fr 7fr; gap: 56px; } .hero { padding-top: 80px; } }
.frame { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--surface); box-shadow: var(--shadow); }
.frame img { width: 100%; }
.note { font-size: 13px; color: var(--muted); margin-top: 10px; }

/* CSS-only product panel: stands in until screenshots arrive in /img. */
.panel { padding: 20px; display: grid; gap: 14px; font-size: 14px; }
.panel-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.panel-top strong { font-size: 16px; }
.panel-top span { color: var(--muted); font-size: 12px; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
@media (min-width: 480px) { .stats { grid-template-columns: repeat(5, 1fr); } }
.stat { background: var(--raised); border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; }
.stat b { display: block; font-size: 20px; font-weight: 600; line-height: 1.2; }
.stat span { display: block; color: var(--muted); font-size: 11.5px; margin-top: 2px; }
.rows { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.rows li { display: grid; grid-template-columns: 10px 1fr auto; align-items: center; gap: 12px; background: var(--raised); border: 1px solid var(--line); border-radius: 12px; padding: 10px 14px; }
.rows li > span:first-child { width: 10px; height: 10px; border-radius: 999px; background: var(--muted); }
.rows li.due > span:first-child { background: var(--critical); }
.rows li.wait > span:first-child { background: #fbbf24; }
.rows li.done > span:first-child { background: var(--positive); }
.rows small { display: block; color: var(--muted); font-size: 12px; }
.rows em { font-style: normal; font-size: 12.5px; font-weight: 600; color: var(--accent-ink); border: 1px solid color-mix(in srgb, var(--accent) 35%, transparent); border-radius: 999px; padding: 4px 10px; white-space: nowrap; }
.panel-mini { padding: 16px; gap: 10px; font-size: 13px; }
.panel-mini .rows li { padding: 8px 12px; }

/* Lifecycle */
.stages { list-style: none; padding: 0; margin: 48px 0 0; display: grid; gap: 28px; }
@media (min-width: 700px) { .stages { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1080px) { .stages { grid-template-columns: repeat(3, 1fr); gap: 36px 28px; } }
.stage-num { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 12px; border: 1px solid var(--line);
  background: var(--raised); font-family: "JetBrains Mono", ui-monospace, monospace; font-size: 14px; }
.stages li:nth-child(4) .stage-num { background: var(--solid); color: var(--on-solid); border-color: var(--solid); }
.stages h3 { font-size: 18px; margin-top: 14px; }
.stages p { margin-top: 6px; color: var(--muted); font-size: 15px; }

/* Feature rows */
.feature { display: grid; gap: 32px; align-items: center; padding: 40px 0; }
.feature + .feature { border-top: 1px solid var(--line); }
@media (min-width: 960px) { .feature { grid-template-columns: 5fr 7fr; gap: 56px; padding: 56px 0; } .feature.flip > :first-child { order: 2; } }
.feature h3 { font-size: clamp(24px, 2.6vw, 30px); }
.feature p { margin-top: 12px; color: var(--muted); }
.ticks { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 10px; }
.ticks li { position: relative; padding-left: 28px; font-size: 15.5px; }
.ticks li::before { content: ""; position: absolute; left: 2px; top: 7px; width: 14px; height: 8px; border-left: 2px solid var(--positive); border-bottom: 2px solid var(--positive); transform: rotate(-45deg); }

/* Portals */
.portals { display: grid; gap: 20px; margin-top: 48px; }
@media (min-width: 960px) { .portals { grid-template-columns: 7fr 5fr; } }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.card h3 { font-size: 21px; }
.card p { margin-top: 8px; color: var(--muted); font-size: 15.5px; }
.card .frame { margin-top: 24px; box-shadow: none; }
.card.accent { background: var(--accent-muted); border-color: color-mix(in srgb, var(--accent) 25%, transparent); }
.card.accent .frame { background: var(--surface); }
.phone { max-width: 260px; margin: 24px auto 0; border-radius: 32px; border: 8px solid var(--line); overflow: hidden; background: var(--surface); }

/* Automation table */
.auto { list-style: none; padding: 0; margin: 40px 0 0; display: grid; gap: 0; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--surface); }
.auto li { display: grid; gap: 4px; padding: 16px 20px; font-size: 15px; }
.auto li + li { border-top: 1px solid var(--line); }
@media (min-width: 760px) { .auto li { grid-template-columns: 2fr 3fr; gap: 24px; } }
.auto strong { font-weight: 600; }
.auto span { color: var(--muted); }

/* Callout and CTA */
.callout { display: grid; gap: 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; }
@media (min-width: 900px) { .callout { grid-template-columns: 1fr 1.4fr; align-items: center; padding: 48px; gap: 40px; } }
.facts { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
@media (min-width: 640px) { .facts { grid-template-columns: 1fr 1fr; } }
.facts li { border-top: 1px solid var(--line); padding-top: 14px; font-size: 15px; color: var(--muted); }
.facts strong { display: block; color: var(--ink); font-size: 16px; margin-bottom: 4px; }
.cta { text-align: left; background: var(--accent-muted); color: var(--ink); border: 1px solid color-mix(in srgb, var(--accent) 30%, transparent); border-radius: var(--radius); padding: 48px 28px; }
@media (min-width: 900px) { .cta { padding: 72px 64px; } }
.cta p { color: var(--muted); margin-top: 14px; max-width: 52ch; font-size: 17px; }
.cta .btn-ghost { background: transparent; }

/* Pricing */
.tiers { display: grid; gap: 16px; margin-top: 40px; }
@media (min-width: 700px) { .tiers { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1080px) { .tiers { grid-template-columns: repeat(4, 1fr); } }
.tier { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.tier h3 { font-size: 19px; }
.tier .band-label { margin-top: 4px; font-size: 14px; color: var(--muted); }
.tier p { flex: 1; margin-top: 16px; color: var(--muted); font-size: 15px; }
.tier .price { margin-top: 24px; font-weight: 600; font-size: 15px; }
.two-col { display: grid; gap: 48px; }
@media (min-width: 900px) { .two-col { grid-template-columns: 1fr 1fr; } }
.pay { margin: 24px 0 0; display: grid; gap: 20px; }
.pay div { border-top: 1px solid var(--line); padding-top: 18px; }
.pay dt { font-weight: 600; } .pay dd { margin: 6px 0 0; color: var(--muted); }

/* Form */
.talk { display: grid; gap: 40px; }
@media (min-width: 960px) { .talk { grid-template-columns: 4fr 6fr; } }
.form { display: grid; gap: 18px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
@media (min-width: 640px) { .form { grid-template-columns: 1fr 1fr; padding: 32px; } .form .full { grid-column: 1 / -1; } }
.form label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 6px; }
.form .opt { font-weight: 400; color: var(--muted); }
.form input, .form select, .form textarea { width: 100%; font: inherit; font-size: 15px; color: var(--ink); background: var(--bg); border: 1px solid var(--line);
  border-radius: var(--field); padding: 11px 12px; min-height: 46px; }
.form textarea { min-height: 96px; resize: vertical; }
.form [aria-invalid="true"] { border-color: var(--critical); }
.err { color: var(--critical); font-size: 13px; margin-top: 6px; }
.err:empty { display: none; }
.form-foot { display: flex; flex-direction: column; gap: 14px; }
@media (min-width: 640px) { .form-foot { flex-direction: row; align-items: center; justify-content: space-between; } }
.form-foot p { font-size: 13px; color: var(--muted); max-width: 48ch; }
.form-foot a { color: var(--accent-ink); }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-status { grid-column: 1 / -1; font-size: 14px; color: var(--critical); }
.form-status:empty { display: none; }
.thanks { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; }
.thanks h3 { font-size: 22px; } .thanks p { margin-top: 10px; color: var(--muted); }
[hidden] { display: none !important; }

/* Prose (privacy) */
.prose { max-width: 720px; }
.prose h2 { font-size: 22px; margin-top: 40px; }
.prose p, .prose ul { margin-top: 12px; color: var(--muted); }
.prose ul { padding-left: 22px; }
.prose li { margin: 6px 0; }
.prose a { color: var(--accent-ink); }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 32px 0 40px; font-size: 14px; color: var(--muted); }
.site-footer .wrap { display: flex; flex-direction: column; gap: 16px; }
@media (min-width: 760px) { .site-footer .wrap { flex-direction: row; align-items: center; justify-content: space-between; } }
.site-footer nav { display: flex; gap: 20px; }
.site-footer a { text-decoration: none; } .site-footer a:hover { color: var(--ink); }

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .btn { transition: none; } }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
/* Grid children may shrink below their content, so phones get no sideways scroll. */
.grid > *, .feature > *, .portals > *, .two-col > *, .talk > *, .callout > *, .stages > *, .tiers > *, .auto > *, .rows > * { min-width: 0; }
