/* Adstratis marketing site. Tokens from brand/README.md; AA contrast in both themes. */
:root {
  --brand: #a8322d;       /* fills; white on it 6.6:1, as text on paper 6.2:1 */
  --brand-hover: #922a26;
  --on-brand: #fff;
  --accent-text: #a8322d;
  --bg: #f7f6f3;          /* Paper */
  --surface: #ffffff;
  --text: #18181b;        /* Ink, 16:1 */
  --muted: #57564f;       /* 6.8:1 */
  --border: #e3e1db;
  --font: "Geist", -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --mono: "Geist Mono", ui-monospace, Consolas, monospace;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --brand-hover: #bb3a34;
    --accent-text: #e87870;  /* 6:1 on dark surface */
    --bg: #141416;
    --surface: #1c1c1f;
    --text: #f2f1ee;
    --muted: #a3a29c;
    --border: #2f2f34;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --brand-hover: #bb3a34; --accent-text: #e87870; --bg: #141416; --surface: #1c1c1f;
  --text: #f2f1ee; --muted: #a3a29c; --border: #2f2f34; color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--font); line-height: 1.55; font-size: 17px; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration-color: var(--brand); text-underline-offset: 3px; }
a:hover { color: var(--accent-text); }
:focus-visible { outline: 2px solid var(--accent-text); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { letter-spacing: -0.03em; line-height: 1.15; font-weight: 600; }
.inner { max-width: 1040px; margin: 0 auto; padding-left: 16px; padding-right: 16px; }
@media (min-width: 700px) { .inner { padding-left: 32px; padding-right: 32px; } }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

.bar { position: sticky; top: 0; z-index: 5; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(8px); border-bottom: 1px solid var(--border); }
.bar .inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.lockup { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; font-size: 19px; letter-spacing: -0.03em; text-decoration: none; }
.lockup:hover { color: inherit; }
.tile { width: 30px; height: 30px; border-radius: 7px; background: var(--brand); display: grid; place-items: center; }
.tile svg { width: 22px; height: 22px; }

.btn { display: inline-block; font: inherit; font-weight: 600; font-size: 16px; padding: 12px 22px; border-radius: 999px; border: 0; background: var(--brand); color: var(--on-brand); text-decoration: none; cursor: pointer; }
.btn:hover { background: var(--brand-hover); color: var(--on-brand); }
.btn.small { font-size: 14px; padding: 8px 16px; }
.btn:disabled { opacity: .6; cursor: default; }
.link { font-weight: 500; }

section { padding-top: 72px; padding-bottom: 8px; }
.hero { padding-top: 96px; padding-bottom: 32px; }
.eyebrow { font-family: var(--mono); font-size: 13px; text-transform: uppercase; letter-spacing: .08em; color: var(--accent-text); margin: 0 0 18px; }
.hero h1 { font-size: clamp(36px, 6vw, 62px); max-width: 17ch; margin: 0 0 24px; }
.lede { font-size: clamp(18px, 2.2vw, 21px); color: var(--muted); max-width: 60ch; margin: 0 0 32px; }
.cta-row { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }

h2 { font-size: clamp(26px, 3.4vw, 34px); margin: 0 0 12px; }
.section-lede { color: var(--muted); max-width: 60ch; margin: 0 0 32px; }

.loop { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; counter-reset: none; }
@media (max-width: 900px) { .loop { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .loop { grid-template-columns: 1fr; } }
.loop li { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 22px; }
.loop .num { font-family: var(--mono); font-size: 13px; color: var(--accent-text); }
.loop h3 { font-size: 21px; margin: 8px 0 8px; }
.loop p { margin: 0; color: var(--muted); font-size: 15.5px; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }
@media (max-width: 760px) { .split { grid-template-columns: 1fr; gap: 24px; } }
.split p { color: var(--muted); margin: 0 0 14px; }
.checks { list-style: none; padding: 0; margin: 0; }
.checks li { position: relative; padding: 0 0 12px 30px; }
.checks li::before { content: ""; position: absolute; left: 2px; top: 6px; width: 14px; height: 7px; border-left: 2px solid var(--accent-text); border-bottom: 2px solid var(--accent-text); transform: rotate(-45deg); }

.waitlist { padding-bottom: 72px; }
.waitlist > p { color: var(--muted); max-width: 56ch; }
form { display: flex; gap: 10px; flex-wrap: wrap; max-width: 520px; margin-top: 20px; }
input[type=email] { flex: 1 1 240px; font: inherit; font-size: 16px; padding: 12px 16px; border-radius: 999px; border: 1px solid var(--border); background: var(--surface); color: var(--text); }
input[type=email]:focus { outline: 2px solid var(--accent-text); outline-offset: 1px; }
.hp { position: absolute; left: -9999px; }
.form-msg { min-height: 1.5em; font-weight: 500; margin: 12px 0 0; }
.fine { font-size: 14px; color: var(--muted); max-width: 56ch; }

.foot { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding-top: 24px; padding-bottom: 40px; border-top: 1px solid var(--border); color: var(--muted); font-size: 14px; }
