@font-face { font-family: Montserrat; src: url(fonts/montserrat.woff2) format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "JetBrains Mono"; src: url(fonts/jetbrains-mono.woff2) format("woff2"); font-weight: 100 800; font-display: swap; }
@font-face { font-family: Roboto; src: url(fonts/roboto.woff2) format("woff2"); font-weight: 100 900; font-display: swap; }

:root {
  --amethyst: #4B0082;
  --amethyst-hover: #380062;
  --lavender: #9B7EBD;
  --lavender-light: #F4EFF9;
  --slate: #2B2B36;
  --slate-muted: #4A4A5A;
  --paper: #F8F9FA;
  --surface: #FFFFFF;
  --line: #E4E4EA;
  --radius: 12px;
  --radius-lg: 24px;
  --mono: "JetBrains Mono", ui-monospace, Menlo, monospace;
  --section: 72px;
}

@media (min-width: 900px) { :root { --section: 120px; } }

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 88px; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--slate);
  font: 400 1.0625rem/1.6 Roboto, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

::selection { background: var(--amethyst); color: #fff; }

:focus-visible { outline: 2px solid var(--amethyst); outline-offset: 2px; }
.slate :focus-visible { outline-color: #fff; }

a { color: var(--amethyst); text-underline-offset: 0.18em; }
p { margin: 0 0 16px; }
p:last-child { margin-bottom: 0; }

h1, h2, h3, h4 { margin: 0; color: var(--slate); font-family: Montserrat, Arial, sans-serif; text-wrap: balance; }
h1 { font-size: clamp(2.25rem, 5vw, 4.25rem); font-weight: 800; line-height: 1.06; letter-spacing: -0.025em; }
h2 { margin-bottom: 20px; font-size: clamp(1.875rem, 3.4vw, 3rem); font-weight: 800; line-height: 1.12; letter-spacing: -0.02em; }
h3 { font-size: 1.3125rem; font-weight: 700; line-height: 1.25; letter-spacing: -0.01em; }
h4 { margin-bottom: 6px; font-size: 1.0625rem; font-weight: 700; line-height: 1.3; color: var(--amethyst); }

.wrap { width: min(100%, 1240px); margin-inline: auto; padding-inline: 20px; }
@media (min-width: 900px) { .wrap { padding-inline: 32px; } }

.skip { position: absolute; left: -9999px; top: 8px; z-index: 30; padding: 12px 16px; background: #fff; }
.skip:focus { left: 8px; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 14px 26px;
  border: 1px solid var(--amethyst);
  border-radius: var(--radius);
  background: var(--amethyst);
  color: #fff;
  font: 700 0.8125rem/1.2 Montserrat, Arial, sans-serif;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 160ms ease, border-color 160ms ease, transform 160ms ease;
}
.btn:hover { background: var(--amethyst-hover); transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-small { min-height: 44px; padding: 10px 18px; border-radius: 999px; font-size: 0.75rem; white-space: nowrap; }
.btn-quiet { background: var(--surface); border-color: var(--line); color: var(--slate); }
.btn-quiet:hover { background: var(--surface); border-color: var(--amethyst); color: var(--amethyst); }
.btn-on-dark { background: #fff; border-color: #fff; color: var(--amethyst); }
.btn-on-dark:hover { background: var(--lavender-light); border-color: var(--lavender-light); }

.bar { position: sticky; top: 0; z-index: 20; background: var(--surface); border-bottom: 1px solid var(--line); }
.bar-in { display: flex; align-items: center; gap: 28px; min-height: 72px; }
.mark { display: block; margin-right: auto; line-height: 0; }
.mark img { display: block; width: auto; height: 44px; }
.bar nav { display: none; gap: 28px; }
.bar nav a, .login { display: inline-flex; align-items: center; min-height: 44px; color: var(--slate-muted); font: 700 0.75rem Montserrat, Arial, sans-serif; letter-spacing: 0.06em; text-transform: uppercase; text-decoration: none; }
.bar nav a:hover, .login:hover { color: var(--amethyst); }
@media (min-width: 1100px) { .bar nav { display: flex; } }
@media (max-width: 420px) { .bar-in { gap: 14px; } .mark img { height: 36px; } }

.hero { display: grid; gap: 40px; padding-block: 48px var(--section); align-items: center; }
@media (min-width: 1000px) { .hero { grid-template-columns: 1.15fr 1fr; gap: 64px; padding-top: 80px; } }
.lede { margin: 24px 0 0; max-width: 40em; color: var(--slate-muted); font-size: clamp(1.125rem, 1.6vw, 1.3125rem); line-height: 1.55; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.note { margin: 14px 0 0; color: var(--slate-muted); font-size: 0.9375rem; }

.panel { padding: 28px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: 0 12px 24px -6px rgba(43, 43, 54, 0.08), 0 4px 8px -2px rgba(43, 43, 54, 0.04); }

.test .scene { margin-bottom: 10px; color: var(--slate-muted); }
.test blockquote { margin: 0 0 22px; font: 700 clamp(1.1875rem, 1.8vw, 1.4375rem)/1.32 Montserrat, Arial, sans-serif; letter-spacing: -0.01em; }
.test-q { margin-bottom: 12px; font-size: 1.0625rem; letter-spacing: 0; }
.answers { display: grid; gap: 10px; }
.answer button {
  display: block; width: 100%; min-height: 48px; padding: 14px 16px;
  border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); color: var(--slate);
  font: 400 1rem/1.42 Roboto, Arial, sans-serif; text-align: left; cursor: pointer;
  transition: border-color 160ms ease, background-color 160ms ease;
}
.answer button:hover { border-color: var(--amethyst); background: var(--surface); }
.answer button[aria-expanded="true"] { border-color: var(--amethyst); background: var(--lavender-light); }
.result { padding: 12px 16px 4px; }
.result strong { color: var(--amethyst); }
.js .result { display: none; }
.js .open-result .result { display: block; animation: settle 260ms cubic-bezier(0.16, 1, 0.3, 1); }
@keyframes settle { from { opacity: 0; transform: translateY(-6px); } }

.section { padding-block: var(--section); }
.split { display: grid; gap: 40px; align-items: center; }
@media (min-width: 900px) { .split { grid-template-columns: 1fr 1fr; gap: 72px; } }

.truth { margin: 0; padding: 36px; background: var(--slate); border-radius: var(--radius-lg); }
.truth blockquote { margin: 0; color: #fff; font: 700 clamp(1.375rem, 2.2vw, 1.875rem)/1.28 Montserrat, Arial, sans-serif; letter-spacing: -0.015em; }

.band { background: var(--surface); border-block: 1px solid var(--line); }
.intro { max-width: 720px; margin: 0 auto 40px; text-align: center; color: var(--slate-muted); }
.intro-left { margin-left: 0; text-align: left; }

.tabs { display: grid; gap: 10px; max-width: 980px; margin: 0 auto 14px; }
@media (min-width: 760px) { .tabs { grid-template-columns: repeat(3, 1fr); } }
.tabs button {
  min-height: 72px; padding: 16px 18px; border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--surface); color: var(--slate); text-align: left; cursor: pointer; font: inherit;
}
.tabs button:hover { border-color: var(--amethyst); }
.tabs button[aria-selected="true"] { border-color: var(--amethyst); box-shadow: inset 0 0 0 1px var(--amethyst); }
.tabs strong { display: block; font: 700 1.0625rem/1.3 Montserrat, Arial, sans-serif; }
.tabs span { display: block; margin-top: 2px; font-size: 0.9375rem; }

.tabpanel { max-width: 980px; margin: 0 auto 14px; color: var(--slate-muted); }
.tabpanel h3 { margin-bottom: 8px; }
.tabpanel > p:first-of-type { margin-bottom: 24px; }
.js .tabpanel[hidden] { display: none; }
.grid-2, .grid-3 { display: grid; gap: 24px; }
@media (min-width: 760px) { .grid-2 { grid-template-columns: 1fr 1fr; } .grid-3 { grid-template-columns: repeat(3, 1fr); } }
.check { margin: 24px 0 0; padding: 14px 16px; background: var(--slate); border-radius: var(--radius); color: #fff; line-height: 1.5; }

.protocols dl { margin: 0; }
.protocols header { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 14px; }
.protocols .panel h3 { margin: 0; }
.tag { padding: 4px 10px; border: 1px solid #D9CDE8; border-radius: 6px; background: var(--lavender-light); color: var(--amethyst); }
.protocols dl { display: grid; gap: 10px; }
.protocols dt { display: none; }
.protocols dd { margin: 0; padding: 14px; border-radius: var(--radius); background: #F1F2F4; color: var(--slate); font-size: 0.9375rem; line-height: 1.5; }
.protocols dd::before { content: "Typical Agent"; display: block; margin-bottom: 4px; font: 700 0.75rem Montserrat, Arial, sans-serif; letter-spacing: 0.05em; text-transform: uppercase; }
.protocols dt.ours + dd { background: var(--lavender-light); color: var(--slate); }
.protocols dt.ours + dd::before { content: "AuthentiQ Standard"; color: var(--amethyst); }

.mono { font-family: var(--mono); font-size: 0.75rem; font-style: normal; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; }
.check.mono { font-size: 0.8125rem; letter-spacing: 0.02em; text-transform: none; }
.label { margin-bottom: 10px; color: var(--amethyst); font: 600 0.75rem/1.4 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; }
.slate .label, .truth .label { color: #CDBDE0; }
.truth .label { display: block; margin-bottom: 14px; }
h1 em { color: var(--amethyst); font-family: Georgia, "Times New Roman", serif; font-style: italic; font-weight: 700; letter-spacing: -0.015em; }
.pill { display: inline-flex; margin-bottom: 20px; padding: 6px 14px; border: 1px solid #D9CDE8; border-radius: 999px; background: var(--lavender-light); color: var(--amethyst); font: 700 0.75rem/1.3 Montserrat, Arial, sans-serif; letter-spacing: 0.1em; text-transform: uppercase; }
.topline { background: var(--slate); color: #E9E9EE; font-size: 0.8125rem; }
.topline-in { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 4px 16px; padding-block: 0; min-height: 36px; }
.topline-right { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 16px; }
.topline a { display: inline-flex; align-items: center; min-height: 44px; color: #CDBDE0; text-decoration: none; }
.topline a:hover { color: #fff; }
.topline :focus-visible { outline-color: #fff; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 28px 0 0; padding-top: 22px; border-top: 1px solid var(--line); max-width: 36em; }
@media (max-width: 480px) { .stats { grid-template-columns: 1fr; gap: 12px; } .stats > div { display: grid; grid-template-columns: 5.5rem 1fr; gap: 12px; align-items: baseline; } }
.nb { white-space: nowrap; }
.stats dt { font: 800 1.5rem/1.2 Montserrat, Arial, sans-serif; }
.stats dt.purple { color: var(--amethyst); }
.stats dd { margin: 2px 0 0; color: var(--slate-muted); font-size: 0.8125rem; line-height: 1.4; }
.card-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; padding-bottom: 14px; border-bottom: 1px solid var(--line); font: 700 0.75rem Montserrat, Arial, sans-serif; letter-spacing: 0.06em; text-transform: uppercase; }
.card-head .mono { color: var(--amethyst); }
.tabs em { display: block; margin-bottom: 4px; color: var(--amethyst); }
.slate { background: var(--slate); }
.slate h2 { color: #fff; }
.slate p { color: #E9E9EE; }
.slate .math { margin: 0; color: #fff; font-size: clamp(2.5rem, 6vw, 4.5rem); font-weight: 700; text-align: center; white-space: nowrap; }
.closing { display: grid; justify-items: start; gap: 8px; }

.ways > div { padding-block: 22px; border-top: 1px solid var(--line); }
.ways > div:last-child { padding-bottom: 0; }
.ways h3 { margin-bottom: 6px; }
.ways p { color: var(--slate-muted); }
.ways .btn { margin-top: 6px; }

.form h3 { margin-bottom: 8px; }
.form label { display: block; margin: 14px 0 6px; font-weight: 500; }
.form input:not([type=hidden]) {
  width: 100%; min-height: 48px; padding: 10px 14px; border: 1px solid #B9B9C4; border-radius: var(--radius);
  background: var(--surface); color: var(--slate); font: 400 1rem/1.3 Roboto, Arial, sans-serif;
}
.form input:focus { border-color: var(--amethyst); }
.pair { display: grid; grid-template-columns: 2fr 1fr; gap: 12px; }
.form .btn { width: 100%; margin-top: 20px; }
.status { margin: 10px 0 0; font-weight: 500; min-height: 1.5em; }
.aq-hp { position: absolute; left: -9999px; height: 0; overflow: hidden; }

.modules { margin: 0; padding: 0; list-style: none; }
.modules li { padding: 14px 0; border-top: 1px solid var(--line); }
.modules strong { font-family: Montserrat, Arial, sans-serif; }

.foot { padding-block: 36px; border-top: 1px solid var(--line); color: var(--slate-muted); font-size: 0.875rem; line-height: 1.5; }
.foot p { max-width: 80ch; margin-bottom: 8px; }
.foot a { display: inline-flex; align-items: center; min-height: 44px; margin-right: 18px; }

.js [data-rise] { opacity: 0; transform: translateY(14px); transition: opacity 520ms cubic-bezier(0.16, 1, 0.3, 1), transform 520ms cubic-bezier(0.16, 1, 0.3, 1); }
.js [data-rise].in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js [data-rise] { opacity: 1; transform: none; }
}

.policy { max-width: 800px; padding-block: 48px 72px; }
.policy h1 { margin-bottom: 24px; font-size: clamp(2.25rem, 5vw, 3.25rem); }
.policy h2 { margin: 40px 0 12px; font-size: 1.5rem; letter-spacing: -0.01em; }
.policy ul { margin: 0 0 16px; padding-left: 22px; }
.policy li { margin-bottom: 6px; }

.login { white-space: nowrap; }
@media (max-width: 420px) { .login:not(.login-end) { display: none; } }

.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.next-steps { margin: 20px 0 0; padding-left: 20px; color: var(--slate-muted, #4A4A5A); font-size: 1rem; line-height: 1.5; }
.next-steps li { margin-top: 6px; }
