/* Raven Logics — design system
   Cloudflare Pages static site. No external font CDNs. */

:root {
  --bg: #070b14;
  --bg-elevated: #0d1424;
  --bg-soft: #111a2e;
  --bg-card: rgba(17, 26, 46, 0.72);
  --border: rgba(148, 163, 184, 0.14);
  --border-strong: rgba(148, 163, 184, 0.28);
  --text: #e8eef9;
  --text-muted: #9aabc4;
  --text-faint: #6b7c96;
  --accent: #5eead4;
  --accent-2: #38bdf8;
  --accent-3: #818cf8;
  --accent-soft: rgba(94, 234, 212, 0.12);
  --danger: #f87171;
  --success: #34d399;
  --warning: #fbbf24;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
  --radius: 16px;
  --radius-sm: 10px;
  --radius-pill: 999px;
  --max: 1120px;
  --nav-h: 72px;
  --font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  color-scheme: dark;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background:
    radial-gradient(1200px 600px at 10% -10%, rgba(56, 189, 248, 0.12), transparent 55%),
    radial-gradient(900px 500px at 90% 0%, rgba(129, 140, 248, 0.14), transparent 50%),
    radial-gradient(700px 400px at 50% 100%, rgba(94, 234, 212, 0.08), transparent 55%),
    var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: var(--accent-2);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
  transition: color 0.2s var(--ease);
}

a:hover {
  color: var(--accent);
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -100px;
  z-index: 1000;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  background: var(--accent);
  color: #042f2e;
  font-weight: 600;
  text-decoration: none;
}

.skip-link:focus {
  top: 1rem;
}

.container {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--nav-h);
  border-bottom: 1px solid transparent;
  background: rgba(7, 11, 20, 0.72);
  backdrop-filter: blur(16px) saturate(1.2);
  transition: border-color 0.25s var(--ease), background 0.25s var(--ease);
}

.site-header.is-scrolled {
  border-bottom-color: var(--border);
  background: rgba(7, 11, 20, 0.88);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--nav-h);
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--text);
  text-decoration: none;
  font-weight: 650;
  letter-spacing: -0.02em;
}

.brand:hover {
  color: var(--text);
}

.brand img,
.brand svg {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  object-fit: cover;
  background: transparent;
  flex-shrink: 0;
  display: block;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: linear-gradient(145deg, rgba(94, 234, 212, 0.18), rgba(129, 140, 248, 0.18));
  border: 1px solid var(--border);
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.brand-text strong {
  font-size: 0.98rem;
}

.brand-text span {
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: 0.02em;
}

.nav-links {
  display: none;
  align-items: center;
  gap: 0.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 0.8rem;
  border-radius: 999px;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 500;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-shrink: 0;
}

/* Primary CTA lives in the mobile menu on small screens */
.nav-actions > .btn {
  display: none;
}

.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--bg-elevated);
  color: var(--text);
  cursor: pointer;
}

.nav-toggle svg {
  width: 20px;
  height: 20px;
}

@media (min-width: 900px) {
  .nav-links {
    display: flex;
  }

  .nav-toggle {
    display: none;
  }

  .nav-actions > .btn {
    display: inline-flex;
  }
}

.mobile-nav {
  display: none;
  border-bottom: 1px solid var(--border);
  background: rgba(7, 11, 20, 0.96);
  backdrop-filter: blur(16px);
}

.mobile-nav.is-open {
  display: block;
}

.mobile-nav ul {
  list-style: none;
  margin: 0;
  padding: 0.75rem 1rem 1.25rem;
}

.mobile-nav a {
  display: block;
  padding: 0.85rem 0.5rem;
  color: var(--text);
  text-decoration: none;
  border-bottom: 1px solid var(--border);
  font-weight: 500;
}

.mobile-nav a:last-child {
  border-bottom: 0;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 44px;
  padding: 0.7rem 1.15rem;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  font: inherit;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.2s var(--ease), background 0.2s var(--ease), border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  color: #042f2e;
  background: linear-gradient(135deg, #5eead4 0%, #38bdf8 55%, #818cf8 120%);
  box-shadow: 0 10px 30px rgba(56, 189, 248, 0.18);
}

.btn-primary:hover {
  color: #042f2e;
}

.btn-secondary {
  color: var(--text);
  background: rgba(255, 255, 255, 0.03);
  border-color: var(--border-strong);
}

.btn-secondary:hover {
  color: var(--text);
  border-color: rgba(94, 234, 212, 0.45);
  background: rgba(94, 234, 212, 0.06);
}

.btn-ghost {
  color: var(--text-muted);
  background: transparent;
}

.btn-ghost:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
}

.btn-sm {
  min-height: 36px;
  padding: 0.4rem 0.85rem;
  font-size: 0.85rem;
}

/* ---------- Hero & sections ---------- */

main {
  min-height: calc(100vh - var(--nav-h));
}

.section {
  padding: 4.5rem 0;
}

.section-tight {
  padding: 3rem 0;
}

.section-head {
  max-width: 640px;
  margin-bottom: 2.5rem;
}

.section-head.center {
  margin-inline: auto;
  text-align: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0 0 1rem;
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.03);
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(94, 234, 212, 0.15);
}

h1,
h2,
h3,
h4 {
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin: 0 0 0.85rem;
  font-weight: 700;
}

h1 {
  font-size: clamp(2.4rem, 5vw, 3.75rem);
}

h2 {
  font-size: clamp(1.75rem, 3.2vw, 2.4rem);
}

h3 {
  font-size: 1.25rem;
}

p {
  margin: 0 0 1rem;
  color: var(--text-muted);
}

.lead {
  font-size: 1.125rem;
  max-width: 54ch;
}

.hero {
  position: relative;
  padding: 5rem 0 4rem;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  gap: 2.5rem;
  align-items: center;
}

@media (min-width: 920px) {
  .hero-grid {
    grid-template-columns: 1.15fr 0.85fr;
    gap: 3rem;
  }
}

.hero-copy .btn-row {
  margin-top: 1.75rem;
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.hero-panel {
  position: relative;
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) + 4px);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), transparent 40%),
    var(--bg-card);
  box-shadow: var(--shadow);
  padding: 1.25rem;
  overflow: hidden;
}

.hero-panel::before {
  content: "";
  position: absolute;
  inset: -40% auto auto 40%;
  width: 280px;
  height: 280px;
  background: radial-gradient(circle, rgba(94, 234, 212, 0.18), transparent 65%);
  pointer-events: none;
}

.panel-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
  font-size: 0.8rem;
  color: var(--text-faint);
  font-family: var(--mono);
}

.panel-list {
  display: grid;
  gap: 0.75rem;
}

.panel-item {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  padding: 0.95rem 1rem;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: rgba(7, 11, 20, 0.45);
}

.panel-item strong {
  display: block;
  color: var(--text);
  font-size: 0.95rem;
  margin-bottom: 0.15rem;
}

.panel-item span {
  color: var(--text-muted);
  font-size: 0.88rem;
}

.dot {
  width: 10px;
  height: 10px;
  margin-top: 0.35rem;
  border-radius: 50%;
  flex-shrink: 0;
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(94, 234, 212, 0.12);
}

.dot.blue {
  background: var(--accent-2);
  box-shadow: 0 0 0 4px rgba(56, 189, 248, 0.12);
}

.dot.violet {
  background: var(--accent-3);
  box-shadow: 0 0 0 4px rgba(129, 140, 248, 0.12);
}

/* ---------- Cards & grids ---------- */

.grid-2,
.grid-3 {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 720px) {
  .grid-2 {
    grid-template-columns: repeat(2, 1fr);
  }

  .grid-3 {
    grid-template-columns: repeat(3, 1fr);
  }
}

.card {
  position: relative;
  height: 100%;
  padding: 1.4rem 1.4rem 1.5rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--bg-card);
  backdrop-filter: blur(8px);
  transition: border-color 0.2s var(--ease), transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.card:hover {
  border-color: rgba(94, 234, 212, 0.28);
  transform: translateY(-2px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.25);
}

.card h3 {
  margin-bottom: 0.5rem;
}

.card p:last-child {
  margin-bottom: 0;
}

.card-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin-bottom: 1rem;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 1.1rem;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.25rem 0.6rem;
  border-radius: var(--radius-pill);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border: 1px solid rgba(251, 191, 36, 0.35);
  color: #fcd34d;
  background: rgba(251, 191, 36, 0.1);
}

.badge-soon {
  border-color: rgba(251, 191, 36, 0.35);
  color: #fcd34d;
  background: rgba(251, 191, 36, 0.1);
}

.badge-soft {
  border-color: var(--border);
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.03);
}

.product-card {
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

.product-card .card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.product-card .card-actions {
  margin-top: auto;
  padding-top: 1.25rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

/* Products page: full-width stacked rows (less empty space) */
.product-stack {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.product-stack > .product-card {
  min-height: auto;
  height: auto;
  flex: 0 0 auto;
}

.product-stack > .product-row:not(:last-child) {
  margin-bottom: 2rem;
}

.product-row {
  min-height: 0;
  padding: 1.75rem 1.6rem;
  margin: 0;
}

.product-row-title {
  font-size: 1.5rem;
  margin-bottom: 0.6rem;
}

.product-row .product-row-main p {
  margin-bottom: 0;
  max-width: 62ch;
}

.product-row .card-actions {
  margin-top: 1.25rem;
  padding-top: 0;
}

@media (min-width: 800px) {
  .product-stack > .product-row:not(:last-child) {
    margin-bottom: 2.25rem;
  }

  .product-row {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 1.5rem 2.5rem;
    align-items: center;
    padding: 2rem 2rem;
    min-height: 200px;
  }

  .product-row .card-top {
    margin-bottom: 1.1rem;
  }

  .product-row-title {
    font-size: 1.75rem;
  }

  .product-row .card-actions,
  .product-row-actions {
    margin-top: 0;
    padding-top: 0;
    flex-direction: column;
    align-items: stretch;
    min-width: 11.5rem;
  }

  .product-row-actions .btn {
    width: 100%;
    justify-content: center;
  }
}

.meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1rem 0 0;
}

.chip {
  display: inline-flex;
  padding: 0.3rem 0.65rem;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.78rem;
  background: rgba(255, 255, 255, 0.02);
}

/* ---------- CTA band ---------- */

.cta-band {
  position: relative;
  overflow: hidden;
  border-radius: calc(var(--radius) + 6px);
  border: 1px solid var(--border);
  background:
    radial-gradient(500px 200px at 10% 0%, rgba(94, 234, 212, 0.14), transparent 60%),
    radial-gradient(500px 200px at 90% 100%, rgba(129, 140, 248, 0.16), transparent 60%),
    var(--bg-elevated);
  padding: 2.5rem 1.75rem;
}

@media (min-width: 720px) {
  .cta-band {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    padding: 2.75rem;
  }
}

.cta-band h2 {
  margin-bottom: 0.5rem;
}

.cta-band p {
  margin: 0;
  max-width: 48ch;
}

/* ---------- Forms ---------- */

.form {
  display: grid;
  gap: 1rem;
}

.form-row {
  display: grid;
  gap: 1rem;
}

@media (min-width: 720px) {
  .form-row.two {
    grid-template-columns: 1fr 1fr;
  }
}

label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
}

/* Keep title + optional hint on one line; controls stack below */
label:not(.checkbox) > input,
label:not(.checkbox) > textarea,
label:not(.checkbox) > select {
  display: block;
  margin-top: 0.45rem;
}

label .hint {
  font-weight: 500;
  color: var(--text-faint);
  font-size: 0.8rem;
}

input,
textarea,
select {
  width: 100%;
  min-height: 46px;
  padding: 0.7rem 0.9rem;
  border-radius: 12px;
  border: 1px solid var(--border-strong);
  background: rgba(7, 11, 20, 0.65);
  color: var(--text);
  font: inherit;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

textarea {
  min-height: 140px;
  resize: vertical;
}

input::placeholder,
textarea::placeholder {
  color: var(--text-faint);
}

input:hover,
textarea:hover,
select:hover {
  border-color: rgba(148, 163, 184, 0.45);
}

input:focus,
textarea:focus,
select:focus {
  border-color: rgba(94, 234, 212, 0.55);
  box-shadow: 0 0 0 3px rgba(94, 234, 212, 0.12);
  outline: none;
}

.checkbox {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  font-weight: 500;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.checkbox input {
  width: 18px;
  height: 18px;
  min-height: 0;
  margin-top: 0.15rem;
  accent-color: var(--accent);
}

.form-status {
  min-height: 1.4em;
  font-size: 0.9rem;
}

.form-status.ok {
  color: var(--success);
}

.form-status.err {
  color: var(--danger);
}

.turnstile-wrap {
  min-height: 0;
  margin: 0.25rem 0 0.35rem;
}

.turnstile-wrap:empty {
  display: none;
}

.form-card {
  padding: 1.5rem;
  border-radius: calc(var(--radius) + 2px);
  border: 1px solid var(--border);
  background: var(--bg-card);
  box-shadow: var(--shadow);
}

/* ---------- Page chrome ---------- */

.page-hero {
  padding: 3.5rem 0 2rem;
}

.page-hero-compact {
  padding-bottom: 0.5rem;
}

/* Tighten gap when content follows a page hero (avoid empty vertical band) */
.page-hero + .section,
.page-hero + .section-tight,
.page-hero-compact + .section,
.page-hero-compact + .section-tight,
.page-hero-compact + .section-compact {
  padding-top: 1.25rem;
}

.section-compact {
  padding: 1.25rem 0 3rem;
}

.page-doc-body:not(.prose) {
  /* empty-state / form bodies still get the top rule */
}

.product-page-body .form-card {
  margin-top: 1.25rem;
}

.page-hero .lead {
  margin-bottom: 0;
  max-width: 60ch;
}

/* ---------- Contact page ---------- */

.contact-layout {
  display: grid;
  gap: 1.75rem;
  align-items: start;
}

@media (min-width: 960px) {
  .contact-layout {
    grid-template-columns: minmax(0, 1.55fr) minmax(240px, 0.85fr);
    gap: 2rem;
  }
}

.contact-panel {
  min-width: 0;
}

.contact-tabs {
  display: inline-flex;
  gap: 0.35rem;
  padding: 0.3rem;
  margin-bottom: 1rem;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.03);
}

.contact-tab {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--text-muted);
  font: inherit;
  font-weight: 600;
  font-size: 0.92rem;
  padding: 0.55rem 1.15rem;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: background 0.2s var(--ease), color 0.2s var(--ease);
}

.contact-tab:hover {
  color: var(--text);
}

.contact-tab.is-active {
  color: #042f2e;
  background: linear-gradient(135deg, #5eead4 0%, #38bdf8 70%);
}

.contact-form-card {
  padding: 1.6rem 1.5rem 1.75rem;
}

@media (min-width: 720px) {
  .contact-form-card {
    padding: 1.85rem 1.85rem 2rem;
  }
}

.contact-panel-title {
  font-size: 1.35rem;
  margin-bottom: 0.35rem;
}

.contact-panel-lead {
  margin: 0 0 1.35rem;
  color: var(--text-muted);
  font-size: 0.98rem;
}

.contact-aside {
  display: grid;
  gap: 1rem;
}

.contact-aside-card {
  padding: 1.25rem 1.3rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--bg-card);
}

.contact-aside-card h2 {
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-faint);
  font-weight: 650;
  margin: 0 0 0.9rem;
}

.contact-email-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.9rem;
}

.contact-email-list li {
  display: grid;
  gap: 0.15rem;
}

.contact-email-label {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-faint);
}

.contact-email-list a {
  color: var(--text);
  text-decoration: none;
  font-weight: 500;
  word-break: break-word;
}

.contact-email-list a:hover {
  color: var(--accent);
}

.contact-aside-card p {
  margin: 0;
  font-size: 0.95rem;
}

/* Continuous document pages (About, Security, etc.) — no stacked section voids */
.page-doc {
  padding: 3rem 0 4rem;
}

.page-doc-header {
  max-width: 65ch;
  margin-bottom: 0;
}

.page-doc-header .lead {
  margin-bottom: 0;
  max-width: 60ch;
}

.page-doc-body {
  margin-top: 1.75rem;
  padding-top: 1.75rem;
  border-top: 1px solid var(--border);
}

.page-doc-body.prose > h2:first-child {
  margin-top: 0;
}

.page-doc-cta {
  margin-top: 2.5rem;
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  align-items: center;
  margin-bottom: 1rem;
  color: var(--text-faint);
  font-size: 0.85rem;
}

.breadcrumbs a {
  color: var(--text-muted);
  text-decoration: none;
}

.breadcrumbs a:hover {
  color: var(--accent);
}

.prose {
  max-width: 65ch;
}

.prose h2,
.prose h3 {
  margin-top: 2rem;
}

.prose > h2:first-child,
.prose > h3:first-child {
  margin-top: 0;
}

.prose ul,
.prose ol {
  color: var(--text-muted);
  padding-left: 1.2rem;
}

.prose li {
  margin-bottom: 0.45rem;
}

.prose strong {
  color: var(--text);
}

.stat-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(2, 1fr);
}

@media (min-width: 800px) {
  .stat-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.stat {
  padding: 1.2rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.02);
}

.stat strong {
  display: block;
  font-size: 1.4rem;
  letter-spacing: -0.03em;
  margin-bottom: 0.25rem;
}

.stat span {
  color: var(--text-muted);
  font-size: 0.88rem;
}

.split {
  display: grid;
  gap: 2rem;
}

/* Two columns only when both sides have comparable substance.
   Product pages use .split.split-form which stacks: copy, then form. */
@media (min-width: 900px) {
  .split:not(.split-form) {
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
  }

  .split.split-form {
    grid-template-columns: minmax(0, 36rem);
    justify-content: start;
  }
}

.split-form {
  gap: 1.75rem;
}

.split-form .form-card {
  margin-top: 0;
  max-width: 36rem;
}

.timeline {
  display: grid;
  gap: 1rem;
}

.timeline-item {
  display: grid;
  grid-template-columns: 16px 1fr;
  gap: 0.9rem;
}

.timeline-item::before {
  content: "";
  width: 10px;
  height: 10px;
  margin-top: 0.45rem;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(94, 234, 212, 0.12);
}

/* ---------- Footer ---------- */

.site-footer {
  margin-top: 4rem;
  border-top: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.22);
  padding: 3.25rem 0 2rem;
}

.footer-grid {
  display: grid;
  gap: 2.5rem;
  align-items: start;
}

@media (min-width: 900px) {
  .footer-grid {
    grid-template-columns: minmax(220px, 1.35fr) repeat(3, minmax(0, 1fr));
    gap: 2.5rem 3rem;
  }
}

.site-footer h4 {
  margin: 0 0 0.85rem;
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-faint);
  font-weight: 650;
}

.site-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-footer li {
  margin-bottom: 0.5rem;
}

.site-footer a {
  color: var(--text-muted);
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--accent);
}

/* Large stacked brand mark — logo dominates the footer brand column */
.footer-brand .brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1rem;
}

.footer-brand .brand img,
.footer-brand .brand svg {
  width: 120px;
  height: 120px;
  border-radius: 22px;
  background: transparent;
  object-fit: cover;
}

.footer-brand .brand-text {
  gap: 0.15rem;
}

.footer-brand .brand-text strong {
  font-size: 1.35rem;
  letter-spacing: -0.03em;
}

.footer-brand p {
  max-width: 28ch;
  margin: 1rem 0 0;
  font-size: 0.95rem;
  line-height: 1.55;
}

@media (max-width: 899px) {
  .footer-brand .brand {
    flex-direction: row;
    align-items: center;
    gap: 1rem;
  }

  .footer-brand .brand img,
  .footer-brand .brand svg {
    width: 88px;
    height: 88px;
    border-radius: 18px;
  }
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  justify-content: space-between;
  align-items: center;
  margin-top: 2.75rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
  color: var(--text-faint);
  font-size: 0.85rem;
}

/* ---------- Cookie banner ---------- */

.cookie-banner {
  position: fixed;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  z-index: 80;
  max-width: 420px;
  margin-left: auto;
  padding: 1rem 1.1rem;
  border-radius: 16px;
  border: 1px solid var(--border-strong);
  background: rgba(13, 20, 36, 0.98);
  box-shadow: var(--shadow);
  display: none;
}

.cookie-banner.is-visible {
  display: block;
}

/* Reserve space so the banner does not cover form CTAs / footer links */
body.has-cookie-banner {
  padding-bottom: 9.5rem;
}

@media (max-width: 640px) {
  .cookie-banner {
    left: 0.75rem;
    right: 0.75rem;
    bottom: 0.75rem;
    max-width: none;
    margin-left: 0;
  }

  body.has-cookie-banner {
    padding-bottom: 10.5rem;
  }
}

.cookie-banner p {
  margin: 0 0 0.85rem;
  font-size: 0.88rem;
}

.cookie-banner .btn-row {
  gap: 0.5rem;
}

/* ---------- Utilities ---------- */

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.muted {
  color: var(--text-muted);
}

.faint {
  color: var(--text-faint);
}

.center {
  text-align: center;
}

.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mb-0 { margin-bottom: 0; }

.divider {
  height: 1px;
  background: var(--border);
  border: 0;
  margin: 2rem 0;
}

.logo-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  align-items: center;
  color: var(--text-faint);
  font-size: 0.85rem;
}

.kicker-list {
  display: grid;
  gap: 0.75rem;
  margin: 1.5rem 0 0;
  padding: 0;
  list-style: none;
}

.kicker-list li {
  display: flex;
  gap: 0.7rem;
  align-items: flex-start;
  color: var(--text-muted);
}

.kicker-list li::before {
  content: "✓";
  color: var(--accent);
  font-weight: 700;
  margin-top: 0.1rem;
}

.empty-state {
  padding: 2.5rem 1.5rem;
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius);
  text-align: center;
  background: rgba(255, 255, 255, 0.02);
}

/* ---------- 404 ---------- */

.error-page {
  min-height: calc(100vh - var(--nav-h) - 200px);
  display: grid;
  place-items: center;
  text-align: center;
  padding: 4rem 1rem;
}

.error-page .code {
  font-family: var(--mono);
  font-size: clamp(4rem, 12vw, 7rem);
  letter-spacing: -0.06em;
  background: linear-gradient(135deg, var(--accent), var(--accent-2), var(--accent-3));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  line-height: 1;
  margin-bottom: 0.5rem;
}

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

  .btn,
  .card {
    transition: none;
  }

  .btn:hover,
  .card:hover {
    transform: none;
  }
}
