/* ============================================================
   TRUSTY — landing page styles
   Type: Schibsted Grotesk (text) + JetBrains Mono (data)
   Palette: cool near-white / near-black ink / restrained accent
   ============================================================ */

:root {
  /* accent is tweakable */
  --accent: oklch(0.50 0.15 285);
  --accent-ink: oklch(0.40 0.15 285);
  --accent-weak: color-mix(in oklch, var(--accent) 10%, white);
  --accent-weaker: color-mix(in oklch, var(--accent) 5%, white);

  --bg: oklch(0.984 0.003 250);
  --bg-2: oklch(0.967 0.004 250);
  --surface: oklch(1 0 0);

  --ink: oklch(0.24 0.013 260);
  --ink-2: oklch(0.46 0.012 260);
  --ink-3: oklch(0.62 0.010 260);

  --line: oklch(0.905 0.005 260);
  --line-2: oklch(0.85 0.006 260);

  --pass: oklch(0.58 0.12 158);
  --pass-weak: color-mix(in oklch, var(--pass) 12%, white);
  --warn: oklch(0.72 0.13 72);
  --warn-weak: color-mix(in oklch, var(--warn) 16%, white);
  --fail: oklch(0.57 0.18 24);
  --fail-weak: color-mix(in oklch, var(--fail) 12%, white);

  --r-sm: 8px;
  --r: 12px;
  --r-lg: 18px;
  --r-xl: 26px;

  --shadow-sm: 0 1px 2px oklch(0.24 0.02 260 / 0.05), 0 1px 1px oklch(0.24 0.02 260 / 0.04);
  --shadow: 0 4px 16px oklch(0.24 0.03 260 / 0.06), 0 1px 3px oklch(0.24 0.03 260 / 0.05);
  --shadow-lg: 0 24px 60px -20px oklch(0.24 0.06 260 / 0.22), 0 8px 24px -12px oklch(0.24 0.04 260 / 0.10);

  --maxw: 1180px;
  --ff: "Schibsted Grotesk", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--ff);
  background: var(--bg);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-size: 17px;
  line-height: 1.5;
}

h1, h2, h3, h4 { margin: 0; font-weight: 600; letter-spacing: -0.02em; line-height: 1.08; }
p { margin: 0; }
a { color: inherit; text-decoration: none; }

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 28px; }

.eyebrow {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-3);
  font-weight: 500;
}
.accent-text { color: var(--accent-ink); }

/* ---------- buttons ---------- */
.btn {
  font-family: var(--ff);
  font-weight: 500;
  font-size: 15px;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 11px 20px;
  cursor: pointer;
  transition: transform .14s ease, background .18s ease, box-shadow .18s ease, border-color .18s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--accent); color: white; box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--accent-ink); box-shadow: var(--shadow); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line-2); }
.btn-ghost:hover { background: var(--surface); border-color: var(--ink-3); }
.btn-sm { padding: 8px 14px; font-size: 13.5px; }

/* ---------- nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in oklch, var(--bg) 82%, transparent);
  backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease, background .2s ease;
}
.nav.scrolled { border-bottom-color: var(--line); background: color-mix(in oklch, var(--bg) 92%, transparent); }
.nav-inner { display: flex; align-items: center; gap: 30px; height: 68px; }
.brand { display: flex; align-items: center; gap: 9px; font-weight: 700; letter-spacing: -0.01em; font-size: 19px; }
.brand .mark { width: 24px; height: 24px; flex: none; }
.nav-links { display: flex; gap: 26px; margin-left: 8px; }
.nav-links a { font-size: 15px; color: var(--ink-2); font-weight: 450; transition: color .15s; }
.nav-links a:hover { color: var(--ink); }
.nav-cta { margin-left: auto; display: flex; align-items: center; gap: 14px; }
.nav-cta .login { font-size: 15px; color: var(--ink-2); font-weight: 450; }
.nav-cta .login:hover { color: var(--ink); }

/* ---------- hero ---------- */
.hero { position: relative; padding: 74px 0 30px; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.04fr 0.96fr; gap: 56px; align-items: center; }
.hero h1 { font-size: clamp(40px, 5vw, 60px); margin: 18px 0 0; }
.hero h1 .soft { color: var(--ink-3); }
.hero .lede { font-size: 19px; color: var(--ink-2); margin-top: 22px; max-width: 30em; line-height: 1.55; }
.hero-cta { display: flex; gap: 14px; margin-top: 30px; align-items: center; }
.hero-trust { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 34px; font-family: var(--mono); font-size: 12.5px; color: var(--ink-3); }
.hero-trust span { display: inline-flex; align-items: center; gap: 7px; }
.dot { width: 6px; height: 6px; border-radius: 50%; background: var(--pass); flex: none; }

.hero-bg {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(60% 50% at 78% 8%, color-mix(in oklch, var(--accent) 9%, transparent), transparent 70%);
}
.hero-bg::before {
  content: ""; position: absolute; inset: 0;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(70% 60% at 70% 0%, black, transparent 72%);
          mask-image: radial-gradient(70% 60% at 70% 0%, black, transparent 72%);
  opacity: .5;
}

/* ---------- demo widget ---------- */
.demo {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.demo-top { display: flex; align-items: center; gap: 8px; padding: 13px 16px; border-bottom: 1px solid var(--line); background: var(--bg-2); }
.demo-top .lights { display: flex; gap: 6px; }
.demo-top .lights i { width: 10px; height: 10px; border-radius: 50%; background: var(--line-2); display: block; }
.demo-top .title { font-family: var(--mono); font-size: 12px; color: var(--ink-3); letter-spacing: .04em; margin-left: 6px; }
.demo-top .live { margin-left: auto; font-family: var(--mono); font-size: 11px; color: var(--pass); display: inline-flex; align-items: center; gap: 6px; letter-spacing: .08em; }
.demo-top .live .dot { background: var(--pass); animation: pulse 2s infinite; }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: .35; } }

.tabs { display: flex; padding: 6px 8px 0; gap: 2px; border-bottom: 1px solid var(--line); }
.tab {
  appearance: none; border: 0; background: transparent; cursor: pointer;
  font-family: var(--ff); font-size: 14px; font-weight: 500; color: var(--ink-3);
  padding: 12px 14px 13px; position: relative; transition: color .15s; border-radius: 8px 8px 0 0;
}
.tab:hover { color: var(--ink-2); }
.tab.active { color: var(--ink); }
.tab.active::after { content: ""; position: absolute; left: 10px; right: 10px; bottom: -1px; height: 2px; background: var(--accent); border-radius: 2px; }

.demo-body { padding: 22px; }
.demo-input-row { display: flex; gap: 10px; }
.demo-input {
  flex: 1; display: flex; align-items: center; gap: 10px;
  background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--r);
  padding: 0 14px;
}
.demo-input svg { color: var(--ink-3); flex: none; }
.demo-value {
  flex: 1; font-family: var(--mono); font-size: 14.5px; color: var(--ink); padding: 13px 0;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

.demo-hint { margin-top: 12px; font-family: var(--mono); font-size: 11.5px; color: var(--ink-3); display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.chip {
  font-family: var(--mono); font-size: 11.5px; color: var(--ink-2);
  background: var(--bg-2); border: 1px solid var(--line); border-radius: 999px;
  padding: 4px 10px; cursor: pointer; transition: all .14s;
}
.chip:hover { border-color: var(--accent); color: var(--accent-ink); }

/* result */
.result { margin-top: 20px; min-height: 10px; }
.result-card {
  border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden;
  opacity: 0; transform: translateY(8px); animation: rise .42s cubic-bezier(.2,.7,.3,1) forwards;
}
@keyframes rise { to { opacity: 1; transform: none; } }
.verdict { display: flex; align-items: center; gap: 14px; padding: 16px 18px; }
.verdict .badge {
  width: 44px; height: 44px; border-radius: 12px; flex: none;
  display: grid; place-items: center;
}
.verdict h4 { font-size: 18px; }
.verdict .sub { font-size: 13.5px; color: var(--ink-2); margin-top: 2px; }
.verdict .score { margin-left: auto; text-align: right; }
.verdict .score b { font-family: var(--mono); font-size: 26px; font-weight: 600; letter-spacing: -0.02em; display: block; line-height: 1; }
.verdict .score span { font-family: var(--mono); font-size: 10.5px; color: var(--ink-3); letter-spacing: .1em; text-transform: uppercase; }

.v-pass { background: var(--pass-weak); } .v-pass .badge { background: var(--pass); color: white; } .v-pass h4 { color: oklch(0.40 0.10 158); }
.v-warn { background: var(--warn-weak); } .v-warn .badge { background: var(--warn); color: white; } .v-warn h4 { color: oklch(0.46 0.10 70); }
.v-fail { background: var(--fail-weak); } .v-fail .badge { background: var(--fail); color: white; } .v-fail h4 { color: oklch(0.44 0.14 24); }

.fields { display: grid; grid-template-columns: 1fr 1fr; gap: 0; border-top: 1px solid var(--line); background: var(--surface); }
.field { padding: 13px 18px; border-bottom: 1px solid var(--line); }
.field:nth-child(odd) { border-right: 1px solid var(--line); }
.field .k { font-family: var(--mono); font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }
.field .val { font-family: var(--mono); font-size: 14px; color: var(--ink); margin-top: 4px; display: flex; align-items: center; gap: 7px; }
.flag-yes { color: var(--fail); } .flag-no { color: var(--pass); }
.taglist { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.tag { font-family: var(--mono); font-size: 11px; padding: 3px 8px; border-radius: 6px; background: var(--bg-2); border: 1px solid var(--line); color: var(--ink-2); }
.tag.bad { background: var(--fail-weak); border-color: color-mix(in oklch, var(--fail) 30%, white); color: oklch(0.44 0.14 24); }

.scanning { display: flex; align-items: center; gap: 12px; padding: 18px; font-family: var(--mono); font-size: 13px; color: var(--ink-2); border: 1px dashed var(--line-2); border-radius: var(--r-lg); }
.spinner { width: 16px; height: 16px; border: 2px solid var(--line-2); border-top-color: var(--accent); border-radius: 50%; animation: spin .7s linear infinite; flex: none; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- generic section ---------- */
section { position: relative; }
.sec { padding: 96px 0; }
.sec-head { max-width: 40rem; }
.sec-head h2 { font-size: clamp(30px, 3.6vw, 42px); margin-top: 14px; }
.sec-head p { color: var(--ink-2); font-size: 18px; margin-top: 16px; line-height: 1.55; }
.center { margin-left: auto; margin-right: auto; text-align: center; }

/* feature cards */
.feat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 52px; }
.feat {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 26px; transition: transform .2s ease, box-shadow .2s ease, border-color .2s;
}
.feat:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--line-2); }
.feat .icn { width: 42px; height: 42px; border-radius: 11px; display: grid; place-items: center; background: var(--accent-weak); color: var(--accent-ink); margin-bottom: 18px; }
.feat h3 { font-size: 20px; }
.feat p { color: var(--ink-2); margin-top: 9px; font-size: 15.5px; line-height: 1.5; }
.feat .meta { font-family: var(--mono); font-size: 11.5px; color: var(--ink-3); margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; }
.feat-link {
  display: inline-flex; align-items: center; gap: 6px; margin-top: 16px;
  font-size: 14.5px; font-weight: 500; color: var(--accent-ink);
}
.feat-link svg { transition: transform .18s ease; }
.feat:hover .feat-link svg { transform: translateX(3px); }

.suite { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 30px; }
.suite .pill { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; color: var(--ink-2); background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 8px 15px; }
.suite .pill .d { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
.suite .pill.soon { color: var(--ink-3); }
.suite .pill.soon .d { background: var(--line-2); }

/* how it works */
.steps { display: grid; grid-template-columns: 1.1fr 1fr; gap: 56px; margin-top: 56px; align-items: start; }
.step { display: flex; gap: 18px; padding: 22px 0; border-top: 1px solid var(--line); }
.step:first-child { border-top: 0; }
.step .n { font-family: var(--mono); font-size: 13px; color: var(--accent-ink); font-weight: 600; padding-top: 3px; }
.step h3 { font-size: 19px; }
.step p { color: var(--ink-2); margin-top: 7px; font-size: 15.5px; }
.code {
  background: oklch(0.21 0.013 260); color: oklch(0.92 0.01 260);
  border-radius: var(--r-lg); padding: 22px; font-family: var(--mono); font-size: 13px; line-height: 1.7;
  box-shadow: var(--shadow-lg); position: sticky; top: 90px; overflow-x: auto;
}
.code .cm { color: oklch(0.6 0.02 260); }
.code .ky { color: oklch(0.78 0.11 230); }
.code .st { color: oklch(0.78 0.10 150); }
.code .fn { color: oklch(0.82 0.11 70); }
.code .pa { color: oklch(0.75 0.13 350); }

/* teams */
.teams-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 52px; }
.teams-grid.two { grid-template-columns: repeat(2, 1fr); max-width: 820px; margin-left: auto; margin-right: auto; }
.teams-grid.two .team { padding: 32px; }
.team { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 24px; }
.team .icn { width: 38px; height: 38px; color: var(--accent-ink); margin-bottom: 16px; }
.team h3 { font-size: 17px; }
.team p { color: var(--ink-2); font-size: 14.5px; margin-top: 8px; line-height: 1.5; }

/* pricing */
.pricing { background: var(--bg-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.price-grid { display: grid; grid-template-columns: 1fr 1.5fr; gap: 40px; margin-top: 52px; align-items: start; }
.per-query { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 8px 0; }
.pq-row { display: flex; justify-content: space-between; align-items: center; padding: 14px 22px; border-bottom: 1px solid var(--line); }
.pq-row:last-child { border-bottom: 0; }
.pq-row .name { font-size: 15px; }
.pq-row .price { font-family: var(--mono); font-size: 15px; color: var(--ink); }
.pq-row .price small { color: var(--ink-3); }

.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.plan { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 24px; display: flex; flex-direction: column; }
.plan.featured { border-color: var(--accent); box-shadow: var(--shadow); position: relative; }
.plan.featured .tagm { position: absolute; top: -11px; left: 24px; font-family: var(--mono); font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; background: var(--accent); color: white; padding: 3px 9px; border-radius: 999px; }
.plan .pname { font-size: 16px; font-weight: 600; }
.plan .amt { font-size: 34px; font-weight: 600; letter-spacing: -0.03em; margin-top: 14px; }
.plan .amt span { font-size: 15px; color: var(--ink-3); font-weight: 450; }
.plan .note { font-size: 13px; color: var(--ink-3); margin-top: 6px; }
.plan .btn { margin-top: 20px; justify-content: center; }

/* cta band */
.cta-band { padding: 92px 0; text-align: center; }
.cta-band h2 { font-size: clamp(30px, 4vw, 46px); }
.cta-band p { color: var(--ink-2); font-size: 18px; margin: 16px auto 0; max-width: 34rem; }
.cta-band .hero-cta { justify-content: center; }

/* faq */
.faq { max-width: 760px; margin: 48px auto 0; }
.q { border-top: 1px solid var(--line); }
.q:last-child { border-bottom: 1px solid var(--line); }
.q summary { list-style: none; cursor: pointer; padding: 22px 0; display: flex; align-items: center; gap: 16px; font-size: 18px; font-weight: 500; }
.q summary::-webkit-details-marker { display: none; }
.q summary .pm { margin-left: auto; width: 20px; height: 20px; position: relative; flex: none; transition: transform .25s; color: var(--ink-3); }
.q[open] summary .pm { transform: rotate(45deg); }
.q .ans { padding: 0 0 22px 36px; color: var(--ink-2); font-size: 16px; line-height: 1.6; max-width: 60ch; }

/* footer */
.footer { background: var(--surface); border-top: 1px solid var(--line); padding: 64px 0 40px; }
.foot-grid { display: grid; grid-template-columns: 1.6fr repeat(4, 1fr); gap: 32px; }
.foot-brand .brand { margin-bottom: 14px; }
.foot-brand p { color: var(--ink-3); font-size: 14px; max-width: 26ch; line-height: 1.5; }
.foot-col h5 { font-family: var(--mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); font-weight: 500; margin-bottom: 14px; }
.foot-col a { display: block; color: var(--ink-2); font-size: 14.5px; padding: 5px 0; transition: color .15s; }
.foot-col a:hover { color: var(--ink); }
.foot-bottom { display: flex; align-items: center; gap: 16px; margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line); font-size: 13px; color: var(--ink-3); }
.foot-bottom .gdpr { margin-left: auto; font-family: var(--mono); font-size: 11px; border: 1px solid var(--line); border-radius: 999px; padding: 5px 12px; color: var(--ink-2); }

/* ---------- legal / text page ---------- */
.legal-hero { padding: 64px 0 28px; border-bottom: 1px solid var(--line); }
.legal-hero .updated { font-family: var(--mono); font-size: 12.5px; color: var(--ink-3); }
.legal-hero h1 { font-size: clamp(34px, 4.4vw, 52px); margin-top: 16px; }
.legal-wrap { display: grid; grid-template-columns: 230px 1fr; gap: 56px; padding: 56px 0 96px; align-items: start; }
.legal-toc { position: sticky; top: 92px; }
.legal-toc h5 { font-family: var(--mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); font-weight: 500; margin: 0 0 12px; }
.legal-toc a { display: block; font-size: 14px; color: var(--ink-2); padding: 6px 0; line-height: 1.35; transition: color .15s; }
.legal-toc a:hover { color: var(--accent-ink); }
.legal-body { max-width: 760px; }
.legal-body h2 { font-size: 26px; margin: 52px 0 0; scroll-margin-top: 92px; }
.legal-body h2:first-child { margin-top: 0; }
.legal-body h3 { font-size: 18px; margin: 30px 0 0; color: var(--ink); }
.legal-body p { color: var(--ink-2); font-size: 16.5px; line-height: 1.65; margin-top: 16px; }
.legal-body ul, .legal-body ol { color: var(--ink-2); font-size: 16.5px; line-height: 1.65; margin: 16px 0 0; padding-left: 22px; }
.legal-body li { margin-top: 10px; padding-left: 4px; }
.legal-body li::marker { color: var(--ink-3); }
.legal-body a { color: var(--accent-ink); text-decoration: underline; text-underline-offset: 2px; text-decoration-color: var(--line-2); }
.legal-body a:hover { text-decoration-color: var(--accent); }
/* buttons inside article copy must keep button styling, not link styling */
.legal-body a.btn { text-decoration: none; }
.legal-body a.btn-primary, .legal-body a.btn-primary:hover { color: white; }
.legal-body a.btn-ghost { color: var(--ink); }
.legal-body strong { color: var(--ink); font-weight: 600; }
.legal-body .lead { font-size: 18px; color: var(--ink-2); }
@media (max-width: 860px) {
  .legal-wrap { grid-template-columns: 1fr; gap: 0; }
  .legal-toc { display: none; }
}
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s cubic-bezier(.2,.7,.3,1), transform .7s cubic-bezier(.2,.7,.3,1); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- auth / login page ---------- */
.auth-page { min-height: 100vh; display: flex; flex-direction: column; }
.auth-top { padding: 26px 0; }
.auth-main { flex: 1; display: grid; place-items: center; padding: 40px 0 64px; position: relative; overflow: hidden; }
.auth-bg { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.auth-bg::before {
  content: ""; position: absolute; inset: 0;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(58% 52% at 50% 36%, black, transparent 72%);
          mask-image: radial-gradient(58% 52% at 50% 36%, black, transparent 72%);
  opacity: .4;
}
.auth-card {
  position: relative; z-index: 1; width: 100%; max-width: 410px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-xl);
  box-shadow: var(--shadow-lg); padding: 40px 38px 34px;
}
.auth-card .eyebrow { text-align: center; }
.auth-card h1 { font-size: 30px; text-align: center; margin-top: 12px; }
.auth-card .sub { text-align: center; color: var(--ink-2); font-size: 15.5px; margin-top: 10px; }
.auth-form { margin-top: 28px; display: flex; flex-direction: column; gap: 17px; }
.field-group { display: flex; flex-direction: column; gap: 8px; }
.field-group .label-row { display: flex; align-items: baseline; justify-content: space-between; }
.field-group label { font-size: 13.5px; font-weight: 500; color: var(--ink); }
.field-group .forgot { font-size: 13px; color: var(--accent-ink); }
.field-group .forgot:hover { text-decoration: underline; text-underline-offset: 2px; }
.input-shell {
  display: flex; align-items: center; gap: 10px;
  background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--r);
  padding: 0 14px; transition: border-color .15s, box-shadow .15s, background .15s;
}
.input-shell:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-weak); background: var(--surface); }
.input-shell.invalid { border-color: var(--fail); box-shadow: 0 0 0 3px var(--fail-weak); }
.input-shell svg { color: var(--ink-3); flex: none; }
.input-shell input {
  flex: 1; border: 0; background: transparent; outline: none;
  font-family: var(--ff); font-size: 15px; color: var(--ink); padding: 13px 0;
}
.input-shell input::placeholder { color: var(--ink-3); }
.input-shell .reveal-btn { background: none; border: 0; cursor: pointer; color: var(--ink-3); padding: 4px; display: grid; place-items: center; border-radius: 6px; }
.input-shell .reveal-btn:hover { color: var(--ink-2); }
.auth-form .btn { justify-content: center; width: 100%; padding: 13px; font-size: 15.5px; margin-top: 6px; }
.field-error { font-size: 12.5px; color: var(--fail); display: none; }
.field-group.show-error .field-error { display: block; }
.remember { display: flex; align-items: center; gap: 9px; font-size: 14px; color: var(--ink-2); cursor: pointer; user-select: none; }
.remember input { position: absolute; opacity: 0; width: 0; height: 0; }
.remember .box { width: 18px; height: 18px; border: 1px solid var(--line-2); border-radius: 5px; background: var(--bg-2); display: grid; place-items: center; transition: all .15s; flex: none; }
.remember .box svg { opacity: 0; color: white; transition: opacity .12s; }
.remember input:checked + .box { background: var(--accent); border-color: var(--accent); }
.remember input:checked + .box svg { opacity: 1; }
.remember input:focus-visible + .box { box-shadow: 0 0 0 3px var(--accent-weak); }
.auth-foot { text-align: center; font-size: 14.5px; color: var(--ink-2); margin-top: 24px; }
.auth-foot a { color: var(--accent-ink); font-weight: 500; }
.auth-foot a:hover { text-decoration: underline; text-underline-offset: 2px; }
.auth-legal { text-align: center; font-size: 12.5px; color: var(--ink-3); margin-top: 22px; line-height: 1.5; }
.auth-legal a { color: var(--ink-2); text-decoration: underline; text-underline-offset: 2px; text-decoration-color: var(--line-2); }
.auth-slim-foot { text-align: center; padding: 22px 0; font-size: 13px; color: var(--ink-3); border-top: 1px solid var(--line); background: var(--surface); }
.auth-slim-foot .gdpr { font-family: var(--mono); font-size: 11px; border: 1px solid var(--line); border-radius: 999px; padding: 5px 12px; color: var(--ink-2); margin-left: 10px; }

/* responsive */
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .steps { grid-template-columns: 1fr; gap: 30px; }
  .code { position: static; }
  .price-grid { grid-template-columns: 1fr; }
  .teams-grid { grid-template-columns: repeat(2, 1fr); }
  .nav-links { display: none; }
}
@media (max-width: 720px) {
  .wrap { padding: 0 18px; }
  .feat-grid { grid-template-columns: 1fr; }
  .plans { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .hero-cta { flex-wrap: wrap; }
  .fields { grid-template-columns: 1fr; }
  .field:nth-child(odd) { border-right: 0; }
}

/* ---- Django messages (flash) ---- */
.flash-wrap{position:fixed;top:16px;left:50%;transform:translateX(-50%);z-index:9999;width:min(520px,92vw);display:flex;flex-direction:column;gap:8px}
.flash{padding:12px 16px;border-radius:10px;font-size:14px;line-height:1.45;border:1px solid var(--line);background:var(--bg-2);color:var(--ink);box-shadow:0 8px 24px rgba(0,0,0,.12)}
.flash a{color:var(--accent);text-decoration:underline}
.flash-success{border-color:color-mix(in oklch,var(--pass) 50%,var(--line));background:color-mix(in oklch,var(--pass) 12%,var(--bg-2))}
.flash-error{border-color:color-mix(in oklch,var(--fail) 50%,var(--line));background:color-mix(in oklch,var(--fail) 12%,var(--bg-2))}
.flash-close{float:right;margin-left:12px;cursor:pointer;border:0;background:none;font-size:16px;line-height:1;color:inherit;opacity:.6}
.flash-close:hover{opacity:1}
