/* Public site (home, pricing, legal, contact, sign in/up). No build step; the accent colour comes from
   platform branding and is injected as --accent on <html>. System font stack only (CSP: 'self'). */
:root {
  --accent: #2457F5;
  --accent-ink: #fff;
  --accent-soft: #eef2ff; --accent-line: #c7d2fe; --accent-deep: #1d4ed8; /* fallbacks for browsers without color-mix() */
  --accent-soft: color-mix(in srgb, var(--accent) 10%, #fff);
  --accent-line: color-mix(in srgb, var(--accent) 28%, #fff);
  --accent-deep: color-mix(in srgb, var(--accent) 82%, #000);
  --ink: #0f172a;
  --ink-2: #334155;
  --body: #4b5563;
  --muted: #7c8697;
  --bg: #fff;
  --bg-2: #f6f7fb;
  --line: #e5e8ef;
  --line-2: #d7dce6;
  --ok: #15803d;
  --ok-soft: #e8f7ee;
  --warn: #b45309;
  --warn-soft: #fff4e0;
  --err: #b91c1c;
  --err-soft: #fdecec;
  --r: 14px;
  --r-sm: 9px;
  --shadow: 0 1px 2px rgba(15,23,42,.04), 0 8px 24px -12px rgba(15,23,42,.12);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  color-scheme: light;
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body { font-family: var(--font); color: var(--body); background: var(--bg); line-height: 1.6; -webkit-font-smoothing: antialiased; font-size: 16px; }
h1, h2, h3, h4 { color: var(--ink); line-height: 1.15; letter-spacing: -.02em; font-weight: 700; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
img, svg { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 760px; margin: 0 auto; padding: 0 24px; }
.sr { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.muted { color: var(--muted); }
.small { font-size: 13.5px; }
.center { text-align: center; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 11px 20px; border-radius: 10px; background: var(--accent); color: var(--accent-ink); font-weight: 600; border: 1px solid var(--accent); cursor: pointer; line-height: 1.25; white-space: nowrap; transition: background .15s, border-color .15s, transform .05s; }
.btn:hover { background: var(--accent-deep); border-color: var(--accent-deep); text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn.ghost { background: transparent; color: var(--ink); border-color: var(--line-2); }
.btn.ghost:hover { background: var(--bg-2); border-color: var(--line-2); }
.btn.soft { background: var(--accent-soft); color: var(--accent-deep); border-color: transparent; }
.btn.soft:hover { background: var(--accent-line); }
.btn.lg { padding: 14px 26px; font-size: 17px; border-radius: 12px; }
.btn.block { width: 100%; }
.btn.danger { background: #fff; color: var(--err); border-color: #f1c4c4; }
.btn.danger:hover { background: var(--err-soft); }
.btn[disabled] { opacity: .55; pointer-events: none; }
.btn svg { width: 18px; height: 18px; }

/* Header */
.site-head { position: sticky; top: 0; z-index: 20; background: rgba(255,255,255,.88); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.site-head .bar { display: flex; align-items: center; gap: 28px; height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); font-weight: 700; font-size: 18px; letter-spacing: -.01em; }
.brand:hover { text-decoration: none; }
.brand img { height: 30px; width: auto; }
.brand .mark { width: 30px; height: 30px; border-radius: 9px; background: var(--accent); color: var(--accent-ink); display: grid; place-items: center; font-size: 14px; font-weight: 800; }
.site-head nav { margin-left: auto; display: flex; align-items: center; gap: 4px; }
.site-head nav a.lnk { color: var(--ink-2); font-weight: 500; padding: 8px 12px; border-radius: 8px; font-size: 15px; }
.site-head nav a.lnk:hover { background: var(--bg-2); text-decoration: none; color: var(--ink); }
.site-head nav a.lnk.active { color: var(--accent-deep); background: var(--accent-soft); }
.site-head nav .btn { margin-left: 8px; padding: 9px 16px; }
.site-head .menu-toggle { display: none; margin-left: auto; background: none; border: 1px solid var(--line-2); border-radius: 8px; width: 40px; height: 40px; cursor: pointer; color: var(--ink); }
.site-head .menu-toggle svg { width: 22px; height: 22px; margin: auto; }

/* Hero */
.hero { position: relative; overflow: hidden; background: radial-gradient(900px 420px at 15% -10%, var(--accent-soft), transparent 70%), radial-gradient(700px 380px at 95% 0%, color-mix(in srgb, var(--accent) 7%, #fff), transparent 70%), #fff; border-bottom: 1px solid var(--line); }
.hero .wrap { padding: 88px 24px 72px; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 56px; align-items: center; }
.eyebrow svg { width: 15px; height: 15px; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; color: var(--accent-deep); background: var(--accent-soft); border: 1px solid var(--accent-line); font-weight: 600; font-size: 13px; padding: 5px 12px; border-radius: 999px; margin-bottom: 20px; }
.hero h1 { font-size: 54px; margin-bottom: 18px; max-width: 14ch; }
.hero .lead { font-size: 19px; color: var(--ink-2); max-width: 46ch; margin-bottom: 30px; }
.hero .cta { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.hero .fine { margin-top: 16px; font-size: 13.5px; color: var(--muted); }
.hero .fine b { color: var(--ink-2); font-weight: 600; }

/* Product mock (pure CSS) */
.mock { background: #fff; border: 1px solid var(--line); border-radius: 18px; box-shadow: 0 30px 60px -30px rgba(15,23,42,.35), 0 1px 2px rgba(15,23,42,.06); overflow: hidden; }
.mock .top { display: flex; align-items: center; gap: 6px; padding: 12px 14px; border-bottom: 1px solid var(--line); background: var(--bg-2); }
.mock .top i { width: 10px; height: 10px; border-radius: 50%; background: #d8dce5; display: block; }
.mock .top span { margin-left: auto; font-size: 12px; color: var(--muted); }
.mock .body { padding: 18px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.mock .tile { border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; }
.mock .tile small { display: block; color: var(--muted); font-size: 11.5px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; margin-bottom: 4px; }
.mock .tile b { font-size: 22px; color: var(--ink); letter-spacing: -.02em; }
.mock .tile .ok { color: var(--ok); } .mock .tile .warn { color: var(--warn); }
.mock .wide { grid-column: 1 / -1; }
.mock .bars { display: flex; align-items: flex-end; gap: 6px; height: 72px; margin-top: 10px; }
.mock .bars i { flex: 1; display: block; background: var(--accent-line); border-radius: 4px 4px 0 0; }
.mock .bars i:nth-child(3n) { background: var(--accent); }
.mock .row { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--ink-2); padding: 8px 0; border-top: 1px solid var(--line); }
.mock .row:first-of-type { border-top: 0; }
.mock .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); flex: none; }
.mock .dot.warn { background: #d97706; }
.mock .row em { margin-left: auto; font-style: normal; color: var(--muted); font-size: 12px; }

/* Sections */
.section { padding: 84px 0; }
.section.alt { background: var(--bg-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { max-width: 640px; margin: 0 auto 48px; text-align: center; }
.section-head h2 { font-size: 36px; margin-bottom: 12px; }
.section-head p { font-size: 17px; color: var(--ink-2); }
.kicker { display: block; color: var(--accent-deep); font-weight: 700; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 12px; }

/* Feature grid */
.features { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.feature { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 24px; transition: border-color .15s, box-shadow .15s; }
.feature:hover { border-color: var(--accent-line); box-shadow: var(--shadow); }
.feature .ic { width: 42px; height: 42px; border-radius: 11px; background: var(--accent-soft); color: var(--accent-deep); display: grid; place-items: center; margin-bottom: 16px; }
.feature .ic svg { width: 22px; height: 22px; }
.feature h3 { font-size: 17px; margin-bottom: 6px; }
.feature p { font-size: 14.5px; color: var(--body); }

/* How it works */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; counter-reset: step; }
.step { position: relative; padding: 26px 24px 24px; border-radius: var(--r); background: #fff; border: 1px solid var(--line); }
.step::before { counter-increment: step; content: counter(step); position: absolute; top: -14px; left: 22px; width: 28px; height: 28px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); display: grid; place-items: center; font-weight: 700; font-size: 13px; }
.step h3 { font-size: 17px; margin-bottom: 6px; }
.step p { font-size: 14.5px; }

/* Pricing */
.cycle { display: inline-flex; align-items: center; gap: 4px; background: #fff; border: 1px solid var(--line-2); border-radius: 999px; padding: 4px; margin: 0 auto 36px; }
.cycle button { border: 0; background: transparent; padding: 8px 18px; border-radius: 999px; font-weight: 600; color: var(--ink-2); cursor: pointer; }
.cycle button[aria-pressed="true"] { background: var(--ink); color: #fff; }
.cycle .save { color: var(--ok); font-size: 12.5px; font-weight: 700; margin-left: 4px; }
.cycle-wrap { text-align: center; }
.plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; align-items: stretch; }
.plan { position: relative; background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 28px; display: flex; flex-direction: column; box-shadow: var(--shadow); }
.plan.featured { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent), 0 24px 48px -24px color-mix(in srgb, var(--accent) 45%, transparent); }
.plan .tag { position: absolute; top: -13px; left: 28px; background: var(--accent); color: var(--accent-ink); font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 999px; letter-spacing: .02em; }
.plan h3 { font-size: 21px; margin-bottom: 4px; }
.plan .tagline { color: var(--body); font-size: 14.5px; min-height: 44px; }
.plan .price { margin: 18px 0 4px; display: flex; align-items: baseline; gap: 6px; }
.plan .price b { font-size: 44px; color: var(--ink); letter-spacing: -.03em; line-height: 1; }
.plan .price span { color: var(--muted); font-size: 14px; }
.plan .per-year { font-size: 13px; color: var(--muted); min-height: 20px; }
.plan .price[data-cycle="yearly"], .plan .per-year[data-cycle="yearly"] { display: none; }
body.cycle-yearly .plan .price[data-cycle="monthly"], body.cycle-yearly .plan .per-year[data-cycle="monthly"] { display: none; }
body.cycle-yearly .plan .price[data-cycle="yearly"] { display: flex; }
body.cycle-yearly .plan .per-year[data-cycle="yearly"] { display: block; }
.plan .btn { margin: 20px 0 22px; }
.plan ul { list-style: none; display: grid; gap: 10px; font-size: 14.5px; color: var(--ink-2); margin-top: auto; }
.plan li { display: flex; gap: 10px; align-items: flex-start; }
.plan li svg { width: 18px; height: 18px; flex: none; margin-top: 2px; color: var(--ok); }
.plan li.off { color: var(--muted); }
.plan li.off svg { color: #c7cdd8; }
.plan li b { color: var(--ink); font-weight: 600; }
.pricing-note { text-align: center; margin-top: 28px; color: var(--muted); font-size: 14px; }

/* FAQ */
.faq { max-width: 760px; margin: 0 auto; display: grid; gap: 10px; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 0 20px; }
.faq summary { cursor: pointer; list-style: none; padding: 18px 0; font-weight: 600; color: var(--ink); display: flex; align-items: center; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; margin-left: auto; color: var(--muted); font-size: 20px; font-weight: 400; line-height: 1; transition: transform .15s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 0 18px; color: var(--body); font-size: 15px; }

/* CTA band */
.cta-band { background: var(--ink); color: #cbd5e1; padding: 72px 0; text-align: center; }
.cta-band h2 { color: #fff; font-size: 34px; margin-bottom: 12px; }
.cta-band p { font-size: 17px; margin-bottom: 26px; }
.cta-band .btn { background: #fff; color: var(--ink); border-color: #fff; }
.cta-band .btn:hover { background: #e2e8f0; border-color: #e2e8f0; }

/* Footer */
.site-foot { border-top: 1px solid var(--line); background: #fff; }
.site-foot .cols { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px; padding: 48px 24px 32px; }
.site-foot p { font-size: 14.5px; max-width: 320px; margin-top: 12px; }
.site-foot h4 { font-size: 13px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin-bottom: 12px; }
.site-foot .lnk { display: grid; gap: 8px; font-size: 14.5px; }
.site-foot .lnk a { color: var(--ink-2); }
.site-foot .base { border-top: 1px solid var(--line); padding: 18px 24px; font-size: 13px; color: var(--muted); display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; }

/* Legal / prose */
.legal { padding: 64px 0 24px; }
.legal h1 { font-size: 42px; margin-bottom: 8px; }
.legal .updated { color: var(--muted); font-size: 14px; margin-bottom: 36px; }
.legal h2 { font-size: 23px; margin: 36px 0 10px; }
.legal h3 { font-size: 18px; margin: 24px 0 6px; }
.legal p, .legal li { font-size: 16px; margin-bottom: 12px; }
.legal ul, .legal ol { padding-left: 22px; margin-bottom: 12px; }
.legal li { margin-bottom: 6px; }
.callout { background: var(--accent-soft); border: 1px solid var(--accent-line); border-radius: 12px; padding: 16px 20px; margin: 20px 0; color: var(--ink-2); }

/* Forms (contact, sign in, sign up) */
.form-card { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 30px; box-shadow: var(--shadow); }
.field { margin-bottom: 16px; display: flex; flex-direction: column; gap: 6px; }
.field label { font-weight: 600; color: var(--ink); font-size: 14px; }
.field input, .field textarea, .field select { border: 1px solid var(--line-2); border-radius: 10px; padding: 11px 14px; background: #fff; width: 100%; color: var(--ink); }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.field textarea { min-height: 140px; resize: vertical; }
.field small { color: var(--muted); font-size: 12.5px; }
.field.row { flex-direction: row; align-items: center; justify-content: space-between; gap: 12px; font-size: 14px; }
.check { display: inline-flex; gap: 8px; align-items: flex-start; font-size: 14px; color: var(--ink-2); }
.check input { margin-top: 3px; width: auto; }
.hp { position: absolute; left: -9999px; top: -9999px; width: 1px; height: 1px; overflow: hidden; }
.note { padding: 12px 16px; border-radius: 10px; margin-bottom: 18px; font-size: 14.5px; border: 1px solid transparent; }
.note.ok { background: var(--ok-soft); color: var(--ok); border-color: #bfe8cc; }
.note.err { background: var(--err-soft); color: var(--err); border-color: #f5c2c2; }
.note.warn { background: var(--warn-soft); color: var(--warn); border-color: #f5dcae; }
.note.info { background: var(--accent-soft); color: var(--accent-deep); border-color: var(--accent-line); }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; padding: 64px 0; align-items: start; }
.two-col .intro h1 { font-size: 40px; margin-bottom: 12px; }
.two-col .intro p { font-size: 17px; margin-bottom: 20px; max-width: 44ch; }
.info-rows { display: grid; gap: 12px; }
.info-rows .row { display: flex; gap: 12px; }
.info-rows .k { font-weight: 600; color: var(--ink); min-width: 80px; }

/* Auth pages */
.auth { min-height: calc(100vh - 68px); display: grid; grid-template-columns: minmax(0, 1fr) minmax(360px, 460px); gap: 48px; align-items: center; padding: 48px 0; }
.auth .pitch h1 { font-size: 40px; margin: 18px 0 14px; max-width: 16ch; }
.auth .pitch p { font-size: 17px; max-width: 44ch; color: var(--ink-2); }
.auth .pitch ul { list-style: none; margin-top: 26px; display: grid; gap: 12px; }
.auth .pitch li { display: flex; gap: 10px; align-items: center; color: var(--ink-2); font-size: 15px; }
.auth .pitch li svg { width: 20px; height: 20px; color: var(--accent); flex: none; }
.auth .form-card { width: 100%; max-width: 460px; }
.auth h2 { font-size: 24px; margin-bottom: 6px; }
.auth .sub { color: var(--muted); font-size: 14.5px; margin-bottom: 22px; }
.auth .btn { width: 100%; padding: 12px; }
.auth .foot { margin-top: 18px; text-align: center; font-size: 14px; color: var(--muted); }
.plan-pick { display: grid; gap: 8px; margin-bottom: 16px; }
.plan-pick label { display: flex; align-items: center; gap: 12px; border: 1px solid var(--line-2); border-radius: 10px; padding: 10px 12px; cursor: pointer; font-size: 14px; color: var(--ink-2); }
.plan-pick label:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); }
.plan-pick input { width: auto; }
.plan-pick b { color: var(--ink); }
.plan-pick em { margin-left: auto; font-style: normal; color: var(--muted); font-size: 13px; white-space: nowrap; }
.chooser { display: grid; gap: 10px; }
.chooser button { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; background: #fff; border: 1px solid var(--line-2); border-radius: 12px; padding: 14px 16px; cursor: pointer; color: var(--ink); }
.chooser button:hover { border-color: var(--accent); background: var(--accent-soft); }
.chooser button b { display: block; }
.chooser button small { color: var(--muted); }
.chooser button span.role { margin-left: auto; font-size: 12px; background: var(--bg-2); border: 1px solid var(--line); border-radius: 999px; padding: 2px 9px; color: var(--ink-2); }

/* Responsive */
@media (max-width: 1000px) {
  .features { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero .wrap { grid-template-columns: 1fr; padding: 64px 24px 56px; }
  .hero h1 { font-size: 42px; }
  .site-foot .cols { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 820px) {
  .plans, .steps { grid-template-columns: 1fr; }
  .plan.featured { order: -1; }
  .two-col, .auth { grid-template-columns: 1fr; gap: 28px; }
  .auth .pitch { display: none; }
  .auth { padding: 32px 0; min-height: 0; }
  .site-head nav { display: none; position: absolute; top: 68px; left: 0; right: 0; background: #fff; border-bottom: 1px solid var(--line); flex-direction: column; align-items: stretch; padding: 12px 16px 16px; gap: 6px; }
  .site-head nav .btn { margin-left: 0; }
  .site-head.open nav { display: flex; }
  .site-head .menu-toggle { display: inline-flex; }
  .section { padding: 60px 0; }
  .section-head h2 { font-size: 30px; }
}
@media (max-width: 560px) {
  .features { grid-template-columns: 1fr; }
  .hero h1 { font-size: 34px; }
  .hero .lead { font-size: 17px; }
  .mock .body { grid-template-columns: 1fr 1fr; }
  .site-foot .cols { grid-template-columns: 1fr; }
  .legal h1, .two-col .intro h1 { font-size: 32px; }
  .form-card { padding: 22px; }
}
