/* Assertline product site. Plain CSS, no build step. Colours are the product's design
   tokens (shared/design/tokens.json): indigo brand scale on slate neutrals. */
:root {
  --brand-50: #eef2ff; --brand-100: #e0e7ff; --brand-200: #c7d2fe; --brand-500: #6366f1;
  --brand-600: #4f46e5; --brand-700: #4338ca; --brand-900: #312e81;
  --ink: #0f172a; --body: #334155; --muted: #64748b; --line: #e2e8f0; --raised: #f8fafc;
  --card: #ffffff; --page: #ffffff; --ok: #15803d; --ok-bg: #f0fdf4;
  --shadow: 0 1px 2px rgba(15, 23, 42, .06), 0 12px 32px -12px rgba(15, 23, 42, .18);
  --radius: 12px; --max: 1120px;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--page); color: var(--body);
  font: 16px/1.6 Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand-700); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { color: var(--ink); line-height: 1.15; margin: 0; letter-spacing: -0.02em; text-wrap: balance; }
h1 { font-size: clamp(2.25rem, 5vw, 3.6rem); font-weight: 700; }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.25rem); font-weight: 700; }
h3 { font-size: 1.1rem; font-weight: 600; letter-spacing: -0.01em; }
p { margin: 0; }
code { font: .9em ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; background: var(--brand-50); color: var(--brand-900); padding: .1em .35em; border-radius: 4px; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.eyebrow { font-size: .8rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--brand-700); margin-bottom: 12px; }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 62ch; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; background: var(--card); padding: 8px 12px; border-radius: 8px; z-index: 100; }
:focus-visible { outline: 2px solid var(--brand-500); outline-offset: 2px; border-radius: 4px; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .88); backdrop-filter: saturate(180%) blur(10px); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; gap: 28px; height: 64px; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 1.1rem; color: var(--ink); letter-spacing: -0.01em; }
.logo:hover { text-decoration: none; }
.logo img { width: 28px; height: 28px; border-radius: 7px; }
.nav { display: flex; gap: 24px; margin-left: 12px; }
.nav a { color: var(--body); font-size: .95rem; font-weight: 500; }
.nav a[aria-current="page"] { color: var(--brand-700); }
.header-cta { margin-left: auto; display: flex; align-items: center; gap: 16px; }
.header-cta .signin { color: var(--body); font-size: .95rem; font-weight: 500; }
@media (max-width: 760px) { .nav { display: none; } .header-cta .signin { display: none; } }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-weight: 600; font-size: .95rem; padding: 10px 18px; border-radius: 9px; border: 1px solid transparent; transition: background .15s, border-color .15s, transform .15s; white-space: nowrap; }
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--brand-600); color: #fff; }
.btn-primary:hover { background: var(--brand-700); }
.btn-ghost { background: var(--card); color: var(--ink); border-color: #cbd5e1; }
.btn-ghost:hover { background: var(--raised); }
.btn-lg { padding: 13px 22px; font-size: 1rem; }

/* Hero */
.hero { padding: 84px 0 0; background: radial-gradient(1100px 480px at 50% -80px, var(--brand-50), transparent 70%); text-align: center; }
.hero .lead { margin: 20px auto 0; }
.hero-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 32px; }
.hero-note { margin-top: 14px; font-size: .88rem; color: var(--muted); }
.frame { border: 1px solid var(--line); border-radius: 14px; background: var(--card); box-shadow: var(--shadow); overflow: hidden; }
.frame-bar { display: flex; gap: 6px; padding: 11px 14px; border-bottom: 1px solid var(--line); background: var(--raised); }
.frame-bar i { width: 10px; height: 10px; border-radius: 50%; background: #cbd5e1; display: block; }
.hero .frame { margin: 56px auto 0; max-width: 1040px; }
.caption { font-size: .85rem; color: var(--muted); margin-top: 12px; text-align: center; }

/* Sections */
section { padding: 96px 0; }
.section-head { max-width: 720px; margin-bottom: 48px; }
.section-head .lead { margin-top: 14px; }
.alt { background: var(--raised); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.grid { display: grid; gap: 20px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .grid-3, .grid-2, .grid-4 { grid-template-columns: 1fr; } section { padding: 64px 0; } }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.card h3 { margin-bottom: 8px; }
.card p { font-size: .95rem; color: var(--muted); }
.step-num { width: 32px; height: 32px; border-radius: 9px; background: var(--brand-600); color: #fff; font-weight: 700; font-size: .9rem; display: grid; place-items: center; margin-bottom: 16px; }
.icon { width: 36px; height: 36px; border-radius: 9px; background: var(--brand-50); color: var(--brand-700); display: grid; place-items: center; margin-bottom: 14px; }
.icon svg { width: 19px; height: 19px; }

/* Feature rows */
.feature { display: grid; grid-template-columns: 5fr 7fr; gap: 56px; align-items: center; padding: 40px 0; }
.feature.flip { grid-template-columns: 7fr 5fr; }
.feature.flip .feature-text { order: 2; }
.grid > *, .feature > * { min-width: 0; }
.feature-text h2 { font-size: clamp(1.4rem, 2.6vw, 1.85rem); }
.feature-text p { margin-top: 14px; 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: .97rem; color: var(--body); }
.ticks li::before { content: ""; position: absolute; left: 0; top: .28em; width: 18px; height: 18px; border-radius: 50%; background: var(--ok-bg) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='%2315803d' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5.5 10.5l3 3 6-7'/%3E%3C/svg%3E") center/14px no-repeat; }
@media (max-width: 900px) { .feature, .feature.flip { grid-template-columns: 1fr; gap: 28px; } .feature.flip .feature-text { order: 0; } }

/* Check kinds */
.spec { font: .84rem/1.7 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; background: #0f172a; color: #e2e8f0; border-radius: var(--radius); padding: 22px 24px; overflow-x: auto; box-shadow: var(--shadow); }
.spec .k { color: #a5b4fc; } .spec .s { color: #86efac; } .spec .c { color: #64748b; } .spec .p { color: #4ade80; font-weight: 600; }

/* CTA band */
.cta-band { background: linear-gradient(135deg, var(--brand-700), var(--brand-900)); color: #e0e7ff; text-align: center; padding: 80px 0; }
.cta-band h2 { color: #fff; }
.cta-band p { margin: 14px auto 28px; max-width: 56ch; }
.cta-band .btn-primary { background: #fff; color: var(--brand-700); }
.cta-band .btn-primary:hover { background: var(--brand-50); }
.cta-band .btn-ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .45); }
.cta-band .btn-ghost:hover { background: rgba(255, 255, 255, .1); }

/* Pricing */
.page-head { padding: 72px 0 24px; text-align: center; background: radial-gradient(900px 380px at 50% -80px, var(--brand-50), transparent 70%); }
.page-head .lead { margin: 16px auto 0; }
.toggle { display: inline-flex; margin-top: 28px; padding: 4px; border: 1px solid var(--line); border-radius: 10px; background: var(--card); }
.toggle button { font: inherit; font-size: .9rem; font-weight: 600; padding: 7px 16px; border: 0; border-radius: 7px; background: transparent; color: var(--muted); cursor: pointer; }
.toggle button[aria-pressed="true"] { background: var(--brand-600); color: #fff; }
.plans { padding: 32px 0 72px; }
.plan { display: flex; flex-direction: column; padding: 28px; }
.plan.featured { border-color: var(--brand-500); box-shadow: 0 0 0 1px var(--brand-500), var(--shadow); }
.plan-name { display: flex; align-items: center; gap: 10px; font-weight: 700; color: var(--ink); font-size: 1.1rem; }
.tag { font-size: .72rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--brand-700); background: var(--brand-50); padding: 3px 8px; border-radius: 999px; }
.price { margin: 18px 0 4px; color: var(--ink); font-size: 2.5rem; font-weight: 700; letter-spacing: -0.03em; line-height: 1; }
.price small { font-size: .95rem; font-weight: 500; color: var(--muted); letter-spacing: 0; }
.price-note { font-size: .88rem; color: var(--muted); min-height: 2.9em; }
.plan .btn { margin: 20px 0 4px; }
.plan .ticks { margin-top: 18px; }
.plan .ticks li { font-size: .93rem; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); }
table { width: 100%; border-collapse: collapse; font-size: .93rem; min-width: 640px; }
th, td { text-align: left; padding: 13px 18px; border-bottom: 1px solid var(--line); vertical-align: top; }
thead th { background: var(--raised); color: var(--ink); font-weight: 600; }
tbody th { font-weight: 500; color: var(--body); width: 34%; }
tbody tr:last-child th, tbody tr:last-child td { border-bottom: 0; }
td.yes { color: var(--ok); font-weight: 600; } td.no { color: #94a3b8; }
.group th { background: var(--raised); font-size: .78rem; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.faq { max-width: 760px; margin: 0 auto; }
.faq details { border-bottom: 1px solid var(--line); padding: 18px 0; }
.faq summary { cursor: pointer; font-weight: 600; color: var(--ink); list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--muted); font-weight: 400; font-size: 1.3rem; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin-top: 10px; color: var(--muted); font-size: .97rem; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 48px 0 40px; font-size: .92rem; color: var(--muted); }
.site-footer .cols { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px; }
.site-footer h4 { margin: 0 0 12px; font-size: .8rem; letter-spacing: .06em; text-transform: uppercase; color: var(--ink); }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.site-footer a { color: var(--muted); }
.site-footer a:hover { color: var(--ink); }
.site-footer .fine { margin-top: 36px; padding-top: 20px; border-top: 1px solid var(--line); font-size: .85rem; }
@media (max-width: 760px) { .site-footer .cols { grid-template-columns: 1fr 1fr; } }

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .btn { transition: none; } }
