/* ConsentChecks marketing site. Hand-written CSS, no framework. Fonts are self-hosted (no request leaves this origin). */

@font-face {
  font-family: "Instrument Serif";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/InstrumentSerif-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Instrument Serif";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/InstrumentSerif-italic.woff2") format("woff2");
}
@font-face {
  font-family: "Hanken Grotesk";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("fonts/HankenGrotesk-normal.woff2") format("woff2");
}

:root {
  --brand: #6815ea;
  --brand-2: #8a4dff;
  --brand-ink: #4b0fb3;
  --ground: #faf8ff;
  --surface: #ffffff;
  --tint: #f1ebff;
  --ink: #1a1130;
  --ink-2: #4a4262;
  --ink-3: #6e6788;
  --line: #e4dcf7;
  --deep: #1d1233;
  --deep-line: #3a2c5c;
  --on-deep: #efe9ff;
  --on-deep-2: #b9aedb;

  --display: "Instrument Serif", "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, "Times New Roman", serif;
  --body: "Hanken Grotesk", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", "Cascadia Mono", Menlo, Consolas, monospace;

  --gutter: clamp(1rem, 4vw, 2rem);
  --wrap: 72rem;
  --radius: 14px;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 5rem; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; animation: none !important; } }

body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { max-width: 100%; display: block; }
a { color: var(--brand); text-underline-offset: 0.2em; }
a:hover { color: var(--brand-ink); }
:focus-visible { outline: 3px solid var(--brand-2); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--brand); color: #fff; }

h1, h2, h3 { font-family: var(--display); font-weight: 400; line-height: 1.05; margin: 0; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.9rem, 8.2vw, 5.6rem); }
h2 { font-size: clamp(2.2rem, 5.2vw, 3.5rem); }
h3 { font-size: 1.6rem; line-height: 1.15; }
h1 em, h2 em { font-style: italic; color: var(--brand); }
p { margin: 0 0 1em; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.eyebrow {
  display: inline-flex; align-items: center; gap: 0.6rem;
  font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--brand);
  margin: 0 0 1.25rem;
}
.eyebrow::before { content: ""; width: 1.75rem; height: 2px; background: currentColor; border-radius: 2px; }
.lede { font-size: clamp(1.125rem, 2.2vw, 1.3rem); color: var(--ink-2); max-width: 38rem; }
.skip { position: absolute; left: -999px; top: 0; background: var(--ink); color: #fff; padding: 0.6rem 1rem; z-index: 100; }
.skip:focus { left: 0.5rem; top: 0.5rem; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  font: inherit; font-weight: 600; font-size: 1rem; line-height: 1;
  padding: 0.95rem 1.5rem; border-radius: 999px; border: 2px solid transparent;
  text-decoration: none; cursor: pointer; transition: background-color .15s, color .15s, border-color .15s, transform .15s;
}
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-ink); color: #fff; transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: #fff; }
.btn-sm { padding: 0.65rem 1.1rem; font-size: 0.9375rem; }
.btn-light { background: #fff; color: var(--deep); }
.btn-light:hover { background: var(--tint); color: var(--deep); }
.btn[disabled] { opacity: .6; cursor: progress; transform: none; }

/* Header */
.site-header { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50; background: rgba(250, 248, 255, 0.88); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 4.25rem; }
.brand-link { display: block; flex: none; }
.brand-link img { height: 1.9rem; width: auto; }
.nav { display: flex; align-items: center; gap: clamp(0.9rem, 2.4vw, 1.75rem); flex-wrap: wrap; }
.nav a:not(.btn) { color: var(--ink-2); text-decoration: none; font-weight: 500; font-size: 0.975rem; }
.nav a:not(.btn):hover { color: var(--brand); }
.menu-btn { display: none; background: none; border: 2px solid var(--ink); color: var(--ink); border-radius: 999px; font: inherit; font-weight: 600; font-size: 0.9rem; padding: 0.5rem 1rem; cursor: pointer; }
@media (max-width: 52rem) {
  .js .menu-btn { display: inline-block; }
  .js .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--ground); border-bottom: 1px solid var(--line); padding: 1rem var(--gutter) 1.5rem; flex-direction: column; align-items: stretch; gap: 0; }
  .js .nav.open { display: flex; }
  .js .nav a:not(.btn) { padding: 0.85rem 0; border-bottom: 1px solid var(--line); font-size: 1.05rem; }
  .js .nav .btn { margin-top: 1rem; }
  .site-header .wrap { position: relative; }
  html:not(.js) .site-header .wrap { flex-wrap: wrap; padding-block: 0.75rem; }
}

/* Hero */
.hero { position: relative; padding-block: clamp(3rem, 8vw, 6.5rem) clamp(3.5rem, 8vw, 6rem); overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; position: relative; z-index: 1; }
.hero h1 { margin-bottom: 1.5rem; }
.hero .lede { margin-bottom: 2.25rem; }
.cta-row { display: flex; flex-wrap: wrap; gap: 0.85rem; }
.proof { display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; margin: 2.5rem 0 0; padding: 0; list-style: none; font-size: 0.9rem; color: var(--ink-3); }
.proof li { display: flex; align-items: center; gap: 0.5rem; }
.proof li::before { content: ""; width: 0.45rem; height: 0.45rem; border-radius: 50%; background: var(--brand-2); }
.hero-cookie { position: absolute; right: -6rem; top: -4rem; width: min(34rem, 80vw); opacity: 0.08; transform: rotate(14deg); pointer-events: none; z-index: 0; }

/* Banner mock (decorative; shows the product's actual choices) */
.mock { position: relative; }
.mock-page { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem 1.1rem 7.5rem; box-shadow: 0 30px 60px -28px rgba(104, 21, 234, 0.35); }
.mock-bar { display: flex; gap: 0.35rem; margin-bottom: 1.1rem; }
.mock-bar i { width: 0.6rem; height: 0.6rem; border-radius: 50%; background: var(--line); }
.mock-line { height: 0.6rem; border-radius: 4px; background: var(--tint); margin-bottom: 0.65rem; }
.mock-line.w1 { width: 62%; height: 1.1rem; background: var(--line); }
.mock-line.w2 { width: 92%; } .mock-line.w3 { width: 78%; } .mock-line.w4 { width: 55%; }
.mock-banner { position: absolute; left: 1rem; right: -1rem; bottom: -1.75rem; background: var(--deep); color: var(--on-deep); border-radius: var(--radius); padding: 1.15rem 1.2rem 1.2rem; box-shadow: 0 24px 48px -18px rgba(29, 18, 51, 0.6); }
.mock-banner .chip { display: inline-block; font-size: 0.7rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; background: var(--brand); color: #fff; border-radius: 999px; padding: 0.2rem 0.65rem; margin-bottom: 0.6rem; }
.mock-banner p { font-size: 0.9rem; line-height: 1.5; margin: 0 0 0.9rem; color: var(--on-deep-2); }
.mock-btns { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.mock-btns span { font-size: 0.8rem; font-weight: 600; padding: 0.5rem 0.9rem; border-radius: 999px; border: 1.5px solid var(--deep-line); color: var(--on-deep); }
.mock-btns span.yes { background: #fff; color: var(--deep); border-color: #fff; }
@media (max-width: 56rem) {
  .hero-grid { grid-template-columns: 1fr; }
  .mock { margin-top: 0.5rem; padding-bottom: 1.75rem; }
  .mock-banner { right: 0; left: 0.5rem; }
}

/* Sections */
section { padding-block: clamp(3.5rem, 8vw, 6.5rem); }
.section-head { max-width: 46rem; margin-bottom: clamp(2rem, 5vw, 3.5rem); }
.section-head p { color: var(--ink-2); font-size: 1.15rem; margin: 1.1rem 0 0; }

/* Features: ruled editorial grid, not a card wall */
.features-grid { display: grid; grid-template-columns: repeat(12, 1fr); border-top: 1px solid var(--ink); }
.feat { grid-column: span 4; padding: 1.75rem 1.5rem 2rem 0; border-bottom: 1px solid var(--line); position: relative; }
.feat:nth-child(3n + 2), .feat:nth-child(3n + 3) { padding-left: 1.5rem; border-left: 1px solid var(--line); }
.feat h3 { margin-bottom: 0.6rem; }
.feat p { color: var(--ink-2); margin: 0; font-size: 1rem; }
.feat .n { font-size: 0.8rem; font-weight: 700; letter-spacing: 0.1em; color: var(--brand); display: block; margin-bottom: 1rem; }
.feat.wide { grid-column: span 8; background: var(--tint); padding: 2rem 2rem 2.25rem; border-left: none; }
.feat.wide + .feat { padding-left: 1.5rem; border-left: none; }
.feat.wide h3 { font-size: clamp(1.9rem, 3.5vw, 2.5rem); max-width: 22ch; }
.feat.wide p { max-width: 38rem; font-size: 1.075rem; }
.regions { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1.4rem; }
.regions span { font-size: 0.8rem; font-weight: 600; padding: 0.35rem 0.8rem; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); color: var(--ink-2); }
.regions b { color: var(--brand); font-weight: 700; }
@media (max-width: 62rem) {
  .feat, .feat.wide { grid-column: span 6; }
  .feat.wide { grid-column: span 12; }
  .feat, .feat:nth-child(n) { padding: 1.5rem 1.25rem 1.75rem 0; border-left: none; }
  .feat:nth-child(even):not(.wide) { padding-left: 1.25rem; border-left: 1px solid var(--line); }
  .feat.wide { padding: 1.75rem; }
}
@media (max-width: 38rem) {
  .feat, .feat.wide, .feat:nth-child(n) { grid-column: span 12; padding: 1.5rem 0 1.75rem; border-left: none !important; }
  .feat.wide { padding: 1.5rem 1.25rem 1.75rem; }
}

/* How it works (dark band) */
.how { background: var(--deep); color: var(--on-deep); position: relative; overflow: hidden; }
.how h2 { color: #fff; }
.how h2 em { color: var(--brand-2); }
.how .eyebrow { color: #b79bff; }
.how .section-head p { color: var(--on-deep-2); }
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1.5rem, 4vw, 3rem); counter-reset: step; }
.steps li { counter-increment: step; border-top: 2px solid var(--brand-2); padding-top: 1.25rem; }
.steps li::before { content: "0" counter(step); font-family: var(--display); font-size: 3.5rem; line-height: 1; color: var(--brand-2); display: block; margin-bottom: 0.9rem; }
.steps h3 { color: #fff; margin-bottom: 0.6rem; }
.steps p { color: var(--on-deep-2); margin: 0; }
.steps code, .code-inline { font-family: var(--mono); font-size: 0.85em; background: rgba(255, 255, 255, 0.1); padding: 0.1rem 0.4rem; border-radius: 5px; }
@media (max-width: 52rem) { .steps { grid-template-columns: 1fr; } }

/* Pricing */
.pricing-note { display: inline-block; font-size: 0.85rem; font-weight: 600; background: var(--tint); color: var(--brand-ink); border-radius: 999px; padding: 0.35rem 0.9rem; margin-top: 1.25rem; }
.plans { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; align-items: stretch; }
@media (max-width: 74rem) { .plans { grid-template-columns: repeat(2, 1fr); } }
.plan { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 2rem 1.75rem 1.9rem; display: flex; flex-direction: column; position: relative; }
.plan.featured { background: var(--deep); color: var(--on-deep); border-color: var(--deep); box-shadow: 0 30px 60px -30px rgba(104, 21, 234, 0.55); }
.plan .tag { position: absolute; top: -0.8rem; left: 1.75rem; background: var(--brand); color: #fff; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; border-radius: 999px; padding: 0.3rem 0.8rem; }
.plan h3 { font-size: 2rem; }
.plan .for { color: var(--ink-3); font-size: 0.95rem; margin: 0.35rem 0 1.4rem; min-height: 2.9em; }
.plan.featured .for { color: var(--on-deep-2); }
.price { font-family: var(--display); font-size: 3.6rem; line-height: 1; margin-bottom: 0.35rem; }
.price small { font-family: var(--body); font-size: 1rem; color: var(--ink-3); margin-left: 0.25rem; }
.plan.featured .price small { color: var(--on-deep-2); }
.plan ul { list-style: none; margin: 1.5rem 0 2rem; padding: 1.5rem 0 0; border-top: 1px solid var(--line); display: grid; gap: 0.7rem; flex: 1; }
.plan.featured ul { border-top-color: var(--deep-line); }
.plan li { display: grid; grid-template-columns: 1.1rem 1fr; gap: 0.6rem; font-size: 0.975rem; line-height: 1.45; }
.plan li::before { content: ""; width: 0.55rem; height: 0.55rem; margin-top: 0.4rem; border-radius: 50%; background: var(--brand-2); }
.plan .btn { width: 100%; }
.plan:not(.featured) .btn { background: transparent; color: var(--ink); border-color: var(--ink); }
.plan:not(.featured) .btn:hover { background: var(--ink); color: #fff; }
.plan.featured .btn { background: #fff; color: var(--deep); }
.plan.featured .btn:hover { background: var(--tint); }
.fine { margin-top: 1.75rem; color: var(--ink-3); font-size: 0.9rem; max-width: 46rem; }
@media (max-width: 62rem) { .plans { grid-template-columns: 1fr; max-width: 30rem; } .plan .for { min-height: 0; } }

/* FAQ */
.faq { max-width: 52rem; border-top: 1px solid var(--ink); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 1.4rem 3rem 1.4rem 0; font-family: var(--display); font-size: clamp(1.4rem, 3vw, 1.75rem); line-height: 1.2; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 0.25rem; top: 50%; width: 0.7rem; height: 0.7rem; border-right: 2px solid var(--brand); border-bottom: 2px solid var(--brand); transform: translateY(-70%) rotate(45deg); transition: transform .2s; }
.faq details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq summary:hover { color: var(--brand); }
.faq .answer { padding: 0 3rem 1.6rem 0; color: var(--ink-2); max-width: 44rem; }
.faq .answer p:last-child { margin-bottom: 0; }

/* Request access */
.access { background: var(--tint); position: relative; overflow: hidden; }
.start-block { position: relative; z-index: 1; max-width: 44rem; }
.start-block .lede { margin-bottom: 1.5rem; }
.access-cookie { position: absolute; left: -7rem; bottom: -8rem; width: 26rem; opacity: 0.07; transform: rotate(-18deg); pointer-events: none; }
.form-note { font-size: 0.85rem; color: var(--ink-3); margin: 1rem 0 0; }

/* Footer */
.site-footer { background: var(--deep); color: var(--on-deep-2); padding-block: 3.5rem 2.5rem; font-size: 0.95rem; }
.footer-grid { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2rem 3rem; }
.footer-brand img { height: 1.7rem; width: auto; filter: brightness(0) invert(1); opacity: 0.95; margin-bottom: 1rem; }
.footer-brand p { max-width: 24rem; margin: 0; }
.footer-links { display: flex; flex-wrap: wrap; gap: 0.5rem 2rem; align-items: flex-start; }
.footer-links a { color: var(--on-deep); text-decoration: none; }
.footer-links a:hover { color: #fff; text-decoration: underline; }
.footer-base { border-top: 1px solid var(--deep-line); margin-top: 2.5rem; padding-top: 1.5rem; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.5rem 2rem; font-size: 0.875rem; }
.footer-base strong { color: var(--on-deep); font-weight: 600; }

/* Long-form pages (privacy, terms, install) */
.page-head { padding-block: clamp(2.5rem, 7vw, 5rem) clamp(1.5rem, 4vw, 2.5rem); border-bottom: 1px solid var(--line); }
.page-head h1 { font-size: clamp(2.6rem, 6.5vw, 4.4rem); margin-bottom: 1rem; }
.page-head .lede { margin-bottom: 0; }
.draft-flag { display: inline-block; margin-top: 1.25rem; font-size: 0.875rem; font-weight: 600; color: var(--brand-ink); background: var(--tint); border-left: 3px solid var(--brand); padding: 0.5rem 0.9rem; border-radius: 0 8px 8px 0; }
.prose { max-width: 46rem; padding-block: clamp(2rem, 5vw, 3.5rem) clamp(3rem, 7vw, 5.5rem); }
.prose h2 { font-size: clamp(1.8rem, 4vw, 2.4rem); margin: 2.75rem 0 0.9rem; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-family: var(--body); font-size: 1.05rem; font-weight: 700; letter-spacing: 0; margin: 1.75rem 0 0.4rem; }
.prose ul, .prose ol { padding-left: 1.3rem; margin: 0 0 1.25em; }
.prose li { margin-bottom: 0.45rem; }
.prose li::marker { color: var(--brand-2); }
.prose code { font-family: var(--mono); font-size: 0.88em; background: var(--tint); padding: 0.1rem 0.4rem; border-radius: 5px; }
.prose table { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
.table-scroll { overflow-x: auto; margin: 0 0 1.5em; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); }
.table-scroll table { min-width: 34rem; }
.prose th, .prose td { text-align: left; vertical-align: top; padding: 0.75rem 0.9rem; border-bottom: 1px solid var(--line); }
.prose th { font-size: 0.78rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-3); background: var(--tint); }
.prose tr:last-child td { border-bottom: none; }
.placeholder { background: #fff3c4; padding: 0 0.3rem; border-radius: 4px; font-weight: 600; color: #5a4300; }
.codeblock { background: var(--deep); color: var(--on-deep); border-radius: var(--radius); padding: 1.1rem 1.25rem; overflow-x: auto; font-family: var(--mono); font-size: 0.875rem; line-height: 1.7; margin: 1.25rem 0 1.75rem; }
.codeblock .c { color: var(--on-deep-2); }
.codeblock .k { color: #c9b0ff; }
.callout { background: var(--tint); border-left: 3px solid var(--brand); border-radius: 0 var(--radius) var(--radius) 0; padding: 1rem 1.25rem; margin: 1.5rem 0; }
.callout p:last-child { margin-bottom: 0; }
.install-steps { list-style: none; padding: 0; margin: 0; counter-reset: s; display: grid; gap: 2.25rem; }
.install-steps > li { counter-increment: s; display: grid; grid-template-columns: 3rem minmax(0, 1fr); gap: 1rem; }
.install-steps > li::before { content: counter(s); font-family: var(--display); font-size: 2.6rem; line-height: 1; color: var(--brand); }
.install-steps h2 { font-family: var(--display); font-size: 1.9rem; font-weight: 400; margin: 0 0 0.5rem; }
.install-steps > li > div > :last-child { margin-bottom: 0; }

.faq-section { background: var(--surface); border-block: 1px solid var(--line); }
.how-cta { margin: 2.5rem 0 0; }
