/* ==========================================================================
   Jagrutech site styles (light theme, brand blue #069aff)
   ========================================================================== */

:root {
  --bg: #ffffff;
  --bg-2: #f5f8fc;
  --bg-3: #eef4fb;
  --surface: #ffffff;
  --line: #e4e9f1;
  --line-strong: #cfd8e5;
  --text: #0b1424;
  --muted: #4a5568;
  --faint: #7a8597;
  --brand: #069aff;
  --brand-600: #0a84e0;
  --brand-700: #0668b8;
  --brand-50: #eaf6ff;
  --brand-100: #d4ecff;
  --navy: #0b1d3a;
  --green: #12b76a;
  --grad: linear-gradient(120deg, #069aff 0%, #2f6bff 100%);
  --shadow-sm: 0 1px 2px rgba(15, 30, 60, 0.05), 0 2px 8px rgba(15, 30, 60, 0.04);
  --shadow-md: 0 4px 12px rgba(15, 30, 60, 0.06), 0 16px 40px -12px rgba(15, 30, 60, 0.12);
  --shadow-brand: 0 24px 60px -24px rgba(6, 154, 255, 0.45);
  --radius: 16px;
  --maxw: 1180px;
  --font-sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-display: "Space Grotesk", var(--font-sans);
  --font-mono: "JetBrains Mono", ui-monospace, "Cascadia Code", monospace;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.65 var(--font-sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
::selection { background: var(--brand-100); }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; border-radius: 4px; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 16px; }
@media (min-width: 720px) { .container { padding: 0 32px; } }

/* ---------- Background ambience ---------- */
.bg-grid {
  position: absolute; inset: 0 0 auto 0; height: 900px; z-index: -2; pointer-events: none;
  background-image:
    linear-gradient(rgba(6, 154, 255, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(6, 154, 255, 0.07) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 75% 70% at 50% 0%, #000 25%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 75% 70% at 50% 0%, #000 25%, transparent 75%);
}
.bg-glow {
  position: absolute; z-index: -1; pointer-events: none;
  width: 1000px; height: 640px; left: 50%; top: -260px; transform: translateX(-50%);
  background:
    radial-gradient(closest-side, rgba(6, 154, 255, 0.16), transparent 70%),
    radial-gradient(closest-side at 75% 60%, rgba(47, 107, 255, 0.10), transparent 70%);
  filter: blur(30px);
}

/* ---------- Typography helpers ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font: 500 0.78rem/1 var(--font-mono);
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--brand-700);
  margin: 0 0 18px;
}
.eyebrow::before { content: ""; width: 18px; height: 2px; border-radius: 2px; background: var(--brand); }
.grad-text {
  background: var(--grad);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
}
h1, h2, h3 { font-family: var(--font-display); letter-spacing: -0.02em; margin: 0; color: var(--text); }
h2 { font-size: clamp(1.9rem, 4vw, 2.8rem); line-height: 1.1; font-weight: 600; }
h3 { font-size: 1.15rem; font-weight: 600; line-height: 1.3; }
.section-head { max-width: 720px; margin-bottom: 48px; }
.section-head p { color: var(--muted); font-size: 1.08rem; margin: 16px 0 0; }
.section-head .price-note {
  font-size: 0.95rem; color: var(--text); padding: 14px 18px; border-radius: 12px;
  background: var(--brand-50); border: 1px solid var(--brand-100); border-left: 4px solid var(--brand);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 13px 22px; border-radius: 999px;
  font: 600 0.95rem/1 var(--font-sans); text-decoration: none;
  border: 1px solid transparent; cursor: pointer;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background 0.25s, border-color 0.25s, color 0.25s;
}
.btn svg { width: 16px; height: 16px; transition: transform 0.25s var(--ease); }
.btn:hover svg { transform: translateX(3px); }
.btn-primary { background: var(--brand); color: #fff; box-shadow: 0 6px 20px -6px rgba(6, 154, 255, 0.6); }
.btn-primary:hover { background: var(--brand-600); transform: translateY(-1px); box-shadow: 0 12px 30px -8px rgba(6, 154, 255, 0.65); }
.btn-ghost { border-color: var(--line-strong); color: var(--text); background: #fff; }
.btn-ghost:hover { border-color: var(--brand); color: var(--brand-700); }

/* ---------- Header ---------- */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  transition: background 0.3s, border-color 0.3s, box-shadow 0.3s;
  border-bottom: 1px solid transparent;
}
.site-header.scrolled {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom-color: var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 24px; }
.brand { display: inline-flex; align-items: center; text-decoration: none; }
.brand img { height: 26px; width: auto; }

.nav-links { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav-links a {
  display: block; padding: 8px 14px; border-radius: 999px;
  color: var(--muted); text-decoration: none; font-size: 0.92rem; font-weight: 500;
  transition: color 0.2s, background 0.2s;
}
.nav-links a:hover, .nav-links a.active { color: var(--brand-700); background: var(--brand-50); }
.nav-cta { padding: 10px 18px; font-size: 0.88rem; }

.nav-toggle {
  display: none; width: 42px; height: 42px; border-radius: 12px;
  border: 1px solid var(--line-strong); background: #fff; color: var(--text); cursor: pointer;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  display: block; width: 18px; height: 1.5px; background: currentColor; margin: 0 auto;
  position: relative; transition: transform 0.3s var(--ease), background 0.2s;
}
.nav-toggle span::before, .nav-toggle span::after { content: ""; position: absolute; left: 0; }
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }
.nav-open .nav-toggle span { background: transparent; }
.nav-open .nav-toggle span::before { transform: translateY(6px) rotate(45deg); }
.nav-open .nav-toggle span::after { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 900px) {
  .nav-toggle { display: inline-grid; place-items: center; }
  .nav-cta { display: none; }
  .nav-links {
    position: fixed; top: 72px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    padding: 12px 16px 24px;
    background: #fff;
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-md);
    transform: translateY(-8px); opacity: 0; visibility: hidden;
    transition: opacity 0.25s, transform 0.25s var(--ease), visibility 0.25s;
  }
  .nav-links a { padding: 14px 12px; border-radius: 10px; font-size: 1rem; }
  .nav-open .nav-links { transform: none; opacity: 1; visibility: visible; }
  .nav-open .site-header { background: #fff; border-bottom-color: var(--line); }
}

/* ---------- Hero ---------- */
.hero { position: relative; padding: 150px 0 96px; overflow-x: clip; }
.hero-grid { display: grid; gap: 56px; align-items: center; grid-template-columns: 1fr; }
@media (min-width: 1000px) { .hero-grid { grid-template-columns: 1.1fr 0.9fr; } }

.pill {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 6px 14px 6px 6px; border-radius: 999px;
  border: 1px solid var(--line); background: #fff; box-shadow: var(--shadow-sm);
  font-size: 0.82rem; color: var(--muted); margin-bottom: 28px;
}
.pill b {
  font: 600 0.7rem/1 var(--font-mono); letter-spacing: 0.08em; text-transform: uppercase;
  padding: 5px 9px; border-radius: 999px; background: var(--brand); color: #fff;
}
.hero h1 {
  font-size: clamp(2.5rem, 6.2vw, 4.4rem);
  line-height: 1.04; font-weight: 600; letter-spacing: -0.035em;
}
.hero-lead { font-size: clamp(1.05rem, 1.6vw, 1.2rem); color: var(--muted); max-width: 580px; margin: 26px 0 36px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-meta {
  display: flex; flex-wrap: wrap; gap: 20px 32px; margin-top: 48px; padding-top: 28px;
  border-top: 1px solid var(--line); max-width: 600px;
}
.hero-meta div { font-size: 0.85rem; color: var(--faint); padding-left: 30px; position: relative; }
.hero-meta div::before {
  content: ""; position: absolute; left: 0; top: 2px; width: 20px; height: 20px; border-radius: 50%;
  background: var(--brand-50) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23069aff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E") center/11px no-repeat;
}
.hero-meta strong { display: block; font: 600 0.98rem/1.4 var(--font-display); color: var(--text); }

/* Hero lead-capture card */
.lead-card {
  position: relative; display: grid; gap: 16px; padding: 30px 28px; border-radius: 22px;
  background: #fff; border: 1px solid var(--line);
  box-shadow: var(--shadow-md), var(--shadow-brand);
}
.lead-card::before {
  content: ""; position: absolute; left: 28px; right: 28px; top: -1px; height: 3px; border-radius: 0 0 3px 3px;
  background: var(--grad);
}
@media (max-width: 560px) { .lead-card { padding: 24px 18px; } }
.lead-head p { color: var(--muted); margin: 6px 0 0; font-size: 0.95rem; }
.lead-title { font-size: 1.5rem; margin-top: 14px; }
.lead-badge { display: inline-flex; align-items: center; gap: 8px; font: 500 0.74rem/1 var(--font-mono); color: #067a4a; letter-spacing: 0.04em; }
.field-row { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 480px) { .field-row { grid-template-columns: 1fr 1fr; } }
.field { display: grid; gap: 7px; margin: 0; padding: 0; border: 0; min-width: 0; }
.field > span, .field legend { font-size: 0.82rem; font-weight: 600; color: var(--text); padding: 0; }
.field legend { margin-bottom: 7px; }
.field input, .field select, .field textarea {
  width: 100%; padding: 11px 13px; border-radius: 10px;
  border: 1px solid var(--line-strong); background: var(--bg-2); color: var(--text);
  font: 0.95rem/1.4 var(--font-sans); transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
}
.field textarea { resize: vertical; min-height: 76px; }
.field input::placeholder, .field textarea::placeholder { color: var(--faint); }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--brand); background: #fff; box-shadow: 0 0 0 4px rgba(6, 154, 255, 0.14);
}
.field input[aria-invalid="true"] { border-color: #e5484d; box-shadow: 0 0 0 4px rgba(229, 72, 77, 0.12); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips label { position: relative; cursor: pointer; }
.chips input { position: absolute; opacity: 0; pointer-events: none; }
.chips span {
  display: inline-block; padding: 8px 13px; border-radius: 999px; font-size: 0.86rem;
  border: 1px solid var(--line-strong); color: var(--muted); background: #fff; transition: all 0.2s;
}
.chips label:hover span { border-color: var(--brand); color: var(--text); }
.chips input:checked + span { color: var(--brand-700); border-color: var(--brand); background: var(--brand-50); font-weight: 500; }
.chips input:focus-visible + span { outline: 2px solid var(--brand); outline-offset: 2px; }
.btn-block { width: 100%; justify-content: center; margin-top: 4px; padding: 15px 22px; }
.lead-foot { margin: 0; font-size: 0.82rem; color: var(--faint); text-align: center; }
.lead-foot a { color: var(--brand-700); }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 0 rgba(18, 183, 106, 0.5); animation: ping 2s infinite; }
@keyframes ping { 70% { box-shadow: 0 0 0 8px rgba(18, 183, 106, 0); } 100% { box-shadow: 0 0 0 0 rgba(18, 183, 106, 0); } }

/* ---------- Stack marquee ---------- */
.stack { padding: 28px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--bg-2); }
.stack-label { text-align: center; font: 500 0.74rem/1 var(--font-mono); color: var(--faint); letter-spacing: 0.14em; text-transform: uppercase; margin: 0 0 20px; }
.marquee { overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.marquee-track { display: flex; gap: 48px; width: max-content; animation: scroll 38s linear infinite; }
.marquee-track span { font: 600 1.1rem/1 var(--font-display); color: #8a95a8; white-space: nowrap; letter-spacing: -0.01em; }
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes scroll { to { transform: translateX(-50%); } }

/* ---------- Sections ---------- */
.section { position: relative; padding: 112px 0; }
.section.tight { padding: 96px 0; }
.section-alt { background: var(--bg-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

/* ---------- Services bento ---------- */
.bento { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 700px) { .bento { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) {
  .bento { grid-template-columns: repeat(6, 1fr); }
  .bento .card:nth-child(1) { grid-column: span 3; }
  .bento .card:nth-child(2) { grid-column: span 3; }
  .bento .card:nth-child(n+3) { grid-column: span 2; }
}
.card {
  position: relative; padding: 30px; border-radius: var(--radius);
  background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-sm);
  overflow: hidden; isolation: isolate;
  transition: border-color 0.3s, transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.card::before {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0; transition: opacity 0.4s;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 0%), rgba(6, 154, 255, 0.08), transparent 60%);
}
.card:hover { border-color: var(--brand-100); transform: translateY(-3px); box-shadow: var(--shadow-md); }
.card:hover::before { opacity: 1; }
.card p { color: var(--muted); margin: 10px 0 0; font-size: 0.97rem; }
.icon {
  display: grid; place-items: center; width: 48px; height: 48px; border-radius: 12px; margin-bottom: 22px;
  background: var(--brand-50); border: 1px solid var(--brand-100);
}
.icon svg { width: 22px; height: 22px; stroke: var(--brand); }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 20px; }
.tags span { font: 500 0.72rem/1 var(--font-mono); padding: 6px 9px; border-radius: 6px; background: var(--bg-2); border: 1px solid var(--line); color: var(--muted); }

/* ---------- Data & AI ---------- */
.da-grid { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 820px) { .da-grid { grid-template-columns: repeat(2, 1fr); } }
.da-card { display: flex; flex-direction: column; padding: 32px; }
.da-card .tags { margin-top: auto; padding-top: 22px; }
.da-top { display: flex; justify-content: space-between; align-items: flex-start; }
.da-num { font: 600 2.4rem/1 var(--font-display); color: var(--bg-3); letter-spacing: -0.03em; -webkit-text-stroke: 1px var(--brand-100); }
.da-card h3 { font-size: 1.3rem; }
.da-list { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 9px; }
.da-list li { position: relative; padding-left: 26px; font-size: 0.95rem; color: var(--text); }
.da-list li::before {
  content: ""; position: absolute; left: 0; top: 4px; width: 16px; height: 16px; border-radius: 50%;
  background: var(--brand-50) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23069aff' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E") center/9px no-repeat;
}

.usecases {
  display: grid; gap: 28px; margin-top: 24px; padding: 36px; border-radius: 20px;
  background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-sm);
}
@media (max-width: 560px) { .usecases { padding: 24px 18px; } }
.usecases-head p { color: var(--muted); margin: 6px 0 0; }
.usecases .btn { justify-self: start; }
.usecase-list { display: grid; gap: 12px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .usecase-list { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .usecase-list { grid-template-columns: repeat(4, 1fr); } }
.usecase { padding: 18px; border-radius: 12px; background: var(--bg-2); border: 1px solid var(--line); border-top: 3px solid var(--brand); }
.usecase b { display: block; font: 600 1rem/1.3 var(--font-display); margin-bottom: 6px; }
.usecase span { font-size: 0.9rem; color: var(--muted); }

/* ---------- Process ---------- */
.process { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 700px) { .process { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .process { grid-template-columns: repeat(4, 1fr); } }
.step { padding: 28px 26px; border-radius: var(--radius); border: 1px solid var(--line); background: #fff; box-shadow: var(--shadow-sm); position: relative; }
.step-num { font: 600 0.78rem/1 var(--font-mono); color: var(--brand); letter-spacing: 0.1em; }
.step h3 { margin: 18px 0 8px; }
.step p { color: var(--muted); margin: 0; font-size: 0.95rem; }
.step-line { height: 3px; margin-top: 22px; background: var(--bg-3); border-radius: 3px; overflow: hidden; }
.step-line::after { content: ""; display: block; height: 100%; width: 0; background: var(--grad); transition: width 1.2s var(--ease); }
.step.in .step-line::after { width: 100%; }
.step:nth-child(2) .step-line::after { transition-delay: 0.15s; }
.step:nth-child(3) .step-line::after { transition-delay: 0.3s; }
.step:nth-child(4) .step-line::after { transition-delay: 0.45s; }

/* ---------- Pricing ---------- */
.pricing { display: grid; gap: 16px; grid-template-columns: 1fr; align-items: stretch; }
@media (min-width: 900px) { .pricing { grid-template-columns: repeat(3, 1fr); } }
.plan { display: flex; flex-direction: column; padding: 32px 28px; border-radius: 20px; border: 1px solid var(--line); background: #fff; box-shadow: var(--shadow-sm); }
.plan.featured { border: 2px solid var(--brand); box-shadow: var(--shadow-md), var(--shadow-brand); }
.plan-tag { align-self: flex-start; font: 600 0.68rem/1 var(--font-mono); letter-spacing: 0.1em; text-transform: uppercase; padding: 6px 10px; border-radius: 999px; background: var(--brand); color: #fff; margin-bottom: 18px; }
.plan-name { font: 600 1.2rem/1.2 var(--font-display); }
.plan-desc { color: var(--muted); font-size: 0.93rem; margin: 8px 0 24px; min-height: 3em; }
.plan-price { font: 600 2.1rem/1 var(--font-display); letter-spacing: -0.02em; }
.plan-price small { font: 500 0.9rem var(--font-sans); color: var(--faint); letter-spacing: 0; }
.plan-from { font: 500 0.75rem/1 var(--font-mono); color: var(--faint); text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 8px; }
.plan ul { list-style: none; padding: 0; margin: 26px 0 30px; display: grid; gap: 10px; font-size: 0.93rem; color: var(--muted); }
.plan li { display: flex; gap: 10px; }
.plan li::before { content: "✓"; color: var(--brand); font-weight: 700; }
.plan .btn { margin-top: auto; justify-content: center; }
.pricing-note {
  display: flex; flex-wrap: wrap; gap: 8px 32px; justify-content: space-between; align-items: center;
  margin-top: 16px; padding: 20px 24px; border-radius: 14px; border: 1px solid var(--line); background: var(--bg-2);
  font-size: 0.92rem; color: var(--muted);
}
.pricing-note strong { color: var(--text); font-family: var(--font-display); }
.fine { font-size: 0.86rem; color: var(--faint); margin-top: 20px; max-width: 760px; }
.fine a { color: var(--brand-700); }

/* ---------- Company facts ---------- */
.facts-grid { display: grid; gap: 32px; grid-template-columns: 1fr; }
@media (min-width: 900px) { .facts-grid { grid-template-columns: 0.9fr 1.1fr; gap: 16px; } }
.facts { display: grid; grid-template-columns: 1fr; margin: 0; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: #fff; box-shadow: var(--shadow-sm); }
.facts > div { display: grid; grid-template-columns: 1fr; gap: 2px; padding: 16px 22px; border-bottom: 1px solid var(--line); }
@media (min-width: 560px) { .facts > div { grid-template-columns: 200px 1fr; gap: 16px; } }
.facts > div:last-child { border-bottom: 0; }
.facts dt { font: 500 0.78rem/1.8 var(--font-mono); color: var(--faint); text-transform: uppercase; letter-spacing: 0.06em; }
.facts dd { margin: 0; font-weight: 500; }

/* ---------- Contact ---------- */
.contact {
  position: relative; overflow: hidden; border-radius: 28px; padding: 64px 32px; text-align: center;
  color: #fff;
  background:
    radial-gradient(700px circle at 85% -10%, rgba(255, 255, 255, 0.22), transparent 55%),
    radial-gradient(600px circle at 0% 110%, rgba(11, 29, 58, 0.35), transparent 60%),
    linear-gradient(135deg, #069aff 0%, #1f6fff 100%);
  box-shadow: var(--shadow-brand);
}
@media (min-width: 720px) { .contact { padding: 88px 56px; } }
.contact h2 { font-size: clamp(2rem, 5vw, 3.4rem); color: #fff; }
.contact .grad-text { background: none; color: #fff; text-decoration: underline; text-decoration-color: rgba(255, 255, 255, 0.45); text-decoration-thickness: 4px; text-underline-offset: 8px; }
.contact .eyebrow { color: #e3f3ff; }
.contact .eyebrow::before { background: #fff; }
.contact > p { color: rgba(255, 255, 255, 0.88); max-width: 560px; margin: 18px auto 32px; font-size: 1.08rem; }
.contact .hero-actions { justify-content: center; }
.contact .btn-primary { background: #fff; color: var(--brand-700); box-shadow: 0 10px 30px -10px rgba(11, 29, 58, 0.5); }
.contact .btn-primary:hover { background: #f0f8ff; }
.contact .btn-ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, 0.55); }
.contact .btn-ghost:hover { border-color: #fff; background: rgba(255, 255, 255, 0.1); color: #fff; }
.contact-cards { display: grid; gap: 12px; margin-top: 56px; text-align: left; grid-template-columns: 1fr; }
@media (min-width: 800px) { .contact-cards { grid-template-columns: repeat(3, 1fr); } }
.contact-card { padding: 22px; border-radius: 14px; background: #fff; color: var(--text); box-shadow: var(--shadow-sm); }
.contact-card span { display: block; font: 500 0.74rem/1 var(--font-mono); color: var(--faint); text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 10px; }
.contact-card a { color: var(--brand-700); text-decoration: none; border-bottom: 1px solid var(--brand-100); }
.contact-card a:hover { border-color: var(--brand); }
.contact-card p { margin: 0; color: var(--muted); font-size: 0.94rem; }
.contact-card p + p { margin-top: 4px; }

/* ---------- Policy pages ---------- */
.subpage .site-header { background: rgba(255, 255, 255, 0.92); }
.page-hero {
  padding: 136px 0 48px; border-bottom: 1px solid var(--line);
  background:
    radial-gradient(700px circle at 85% -20%, rgba(6, 154, 255, 0.12), transparent 60%),
    var(--bg-2);
}
.page-hero h1 { font-size: clamp(2rem, 5vw, 3rem); line-height: 1.1; letter-spacing: -0.03em; font-weight: 600; max-width: 820px; }
.crumbs { display: flex; gap: 10px; font-size: 0.86rem; color: var(--faint); margin-bottom: 18px; }
.crumbs a { color: var(--brand-700); text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }
.lede { font-size: 1.1rem; color: var(--muted); max-width: 680px; margin: 16px 0 0; }
.updated { font: 500 0.76rem/1 var(--font-mono); color: var(--faint); letter-spacing: 0.06em; margin: 22px 0 0; }

.legal-page { padding: 56px 0 96px; }
.legal-layout { display: grid; gap: 32px; grid-template-columns: 1fr; }
.legal-layout > * { min-width: 0; } /* let the scrolling policy tabs shrink instead of widening the page */
@media (min-width: 960px) { .legal-layout { grid-template-columns: 270px 1fr; gap: 56px; } }
.legal-nav h4 { font: 500 0.74rem/1 var(--font-mono); color: var(--faint); text-transform: uppercase; letter-spacing: 0.12em; margin: 0 0 14px; }
.legal-nav ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.legal-nav a {
  display: block; padding: 10px 14px; border-radius: 10px; text-decoration: none;
  color: var(--muted); font-size: 0.93rem; font-weight: 500; border: 1px solid transparent; transition: all 0.2s;
}
.legal-nav a:hover { color: var(--text); background: var(--bg-2); }
.legal-nav a[aria-current="page"] { color: var(--brand-700); background: var(--brand-50); border-color: var(--brand-100); }
@media (min-width: 960px) { .legal-nav { position: sticky; top: 100px; align-self: start; } }
@media (max-width: 959px) {
  .legal-nav ul { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding-bottom: 4px; }
  .legal-nav ul::-webkit-scrollbar { display: none; }
  .legal-nav a { white-space: nowrap; border-color: var(--line); }
}
.legal-help { margin-top: 24px; padding: 18px; border-radius: 12px; background: var(--bg-2); border: 1px solid var(--line); font-size: 0.9rem; }
.legal-help b { display: block; font-family: var(--font-display); margin-bottom: 4px; }
.legal-help p { margin: 0; color: var(--muted); }
.legal-help a { color: var(--brand-700); }
@media (max-width: 959px) { .legal-help { display: none; } }

.prose { max-width: 760px; }
.prose h2 { font-size: 1.45rem; margin: 40px 0 12px; padding-top: 28px; border-top: 1px solid var(--line); }
.prose .entity + h2 { margin-top: 28px; }
.prose p, .prose li { color: #374151; font-size: 1rem; line-height: 1.75; }
.prose ul { padding-left: 22px; margin: 12px 0 0; }
.prose li { margin-bottom: 12px; }
.prose li::marker { color: var(--brand); }
.prose li strong { color: var(--text); }
.prose a { color: var(--brand-700); }
.entity { padding: 16px 18px; border-radius: 12px; background: var(--brand-50); border: 1px solid var(--brand-100); font-size: 0.93rem !important; margin: 0 0 8px; }

/* ---------- Footer ---------- */
.site-footer { padding: 64px 0 40px; border-top: 1px solid var(--line); background: var(--bg-2); margin-top: 40px; }
.footer-grid { display: grid; gap: 40px; grid-template-columns: 1fr; }
@media (min-width: 800px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; } }
.site-footer .brand img { height: 24px; }
.site-footer p { color: var(--muted); font-size: 0.9rem; max-width: 360px; }
.site-footer h4 { font: 500 0.74rem/1 var(--font-mono); color: var(--faint); text-transform: uppercase; letter-spacing: 0.12em; margin: 0 0 16px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.site-footer ul a { color: var(--muted); text-decoration: none; font-size: 0.93rem; }
.site-footer ul a:hover { color: var(--brand-700); }
.footer-bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px;
  margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--line);
  font-size: 0.84rem; color: var(--faint);
}

/* ---------- Reveal on scroll ---------- */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }
.js .reveal[data-delay="1"] { transition-delay: 0.08s; }
.js .reveal[data-delay="2"] { transition-delay: 0.16s; }
.js .reveal[data-delay="3"] { transition-delay: 0.24s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
  .step-line::after { width: 100%; }
}
