/* =========================================================
   NORDICSEO — Premium Minimal Design System
   Stripe/Pitch-inspired: off-white + sage accent + Onest sans
   ========================================================= */

:root {
  --bg: #faf9f5;
  --surface: #ffffff;
  --bg-deep: #f3f1e9;
  --bg-dark: #14140f;

  --ink: #161614;
  --ink-soft: #4a4a45;
  --ink-mute: #8a8a82;

  --line: rgba(22, 22, 20, 0.08);
  --line-strong: rgba(22, 22, 20, 0.14);

  --sage: #7d8f6c;
  --sage-deep: #5e6e4f;
  --sage-light: #eef1e6;
  --sage-pale: #f5f7ef;

  --warm: #c4632a;
  --radius: 6px;
  --radius-lg: 14px;
  --max: 1240px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
*:focus-visible { outline: 2px solid var(--sage); outline-offset: 3px; border-radius: 4px; }

html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: 'Onest', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 16.5px;
  line-height: 1.55;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

::selection { background: var(--sage); color: white; }

.mono { font-family: 'JetBrains Mono', monospace; font-feature-settings: 'ss01'; }

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

a { color: inherit; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 32px; }
@media (max-width: 720px) { .wrap { padding: 0 20px; } body { font-size: 15.5px; } }

/* ======== HEADER ======== */
header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 249, 245, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 0;
}

.logo {
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -0.025em;
  color: var(--ink);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 6px;
}

.logo-dot {
  width: 8px;
  height: 8px;
  background: var(--sage);
  border-radius: 50%;
  display: inline-block;
}

.nav-links {
  display: flex;
  gap: 32px;
  align-items: center;
  list-style: none;
}

.nav-links a {
  color: var(--ink-soft);
  text-decoration: none;
  font-size: 14.5px;
  font-weight: 500;
  transition: color 0.2s;
}

.nav-links a:hover, .nav-links a.active { color: var(--ink); }

.nav-cta {
  background: var(--ink);
  color: white !important;
  padding: 9px 16px;
  border-radius: 100px;
  font-size: 14px !important;
  text-decoration: none;
  transition: background 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.nav-cta:hover { background: var(--sage-deep); }

.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.menu-toggle svg { width: 24px; height: 24px; color: var(--ink); }

@media (max-width: 820px) {
  .nav-links { display: none; position: absolute; top: 100%; left: 0; right: 0; background: var(--bg); padding: 20px; flex-direction: column; align-items: stretch; gap: 4px; border-bottom: 1px solid var(--line); }
  .nav-links.open { display: flex; }
  .nav-links li { width: 100%; }
  .nav-links a { padding: 12px 16px; display: block; border-radius: 8px; }
  .nav-links a:hover { background: var(--bg-deep); }
  .nav-cta { justify-content: center; }
  .menu-toggle { display: block; }
}

/* ======== TYPOGRAPHY ======== */
h1, h2, h3, h4, h5 { letter-spacing: -0.025em; font-weight: 600; color: var(--ink); }

.h-display {
  font-size: clamp(40px, 6.4vw, 80px);
  line-height: 1.02;
  letter-spacing: -0.035em;
  font-weight: 600;
}

.h-section {
  font-size: clamp(30px, 4.2vw, 52px);
  line-height: 1.05;
  letter-spacing: -0.03em;
  font-weight: 600;
}

.h-sub {
  font-size: clamp(22px, 2.6vw, 30px);
  line-height: 1.2;
  letter-spacing: -0.02em;
  font-weight: 600;
}

.italic { font-style: italic; color: var(--sage-deep); font-weight: 500; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  color: var(--sage-deep);
  margin-bottom: 28px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  font-weight: 500;
}
.eyebrow::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--sage);
  display: inline-block;
}

.lede {
  font-size: clamp(17px, 1.6vw, 20px);
  color: var(--ink-soft);
  line-height: 1.55;
  max-width: 58ch;
}

/* ======== SECTIONS ======== */
.section { padding: 110px 0; }
.section-sm { padding: 70px 0; }
@media (max-width: 720px) { .section { padding: 70px 0; } .section-sm { padding: 50px 0; } }

.section-head {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 60px;
  margin-bottom: 60px;
  align-items: start;
}

.section-tag {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-mute);
  font-weight: 500;
  padding-top: 12px;
  border-top: 1px solid var(--ink);
}

@media (max-width: 720px) {
  .section-head { grid-template-columns: 1fr; gap: 20px; margin-bottom: 40px; }
}

/* ======== BUTTONS ======== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 22px;
  border-radius: 100px;
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.2s;
  border: none;
  cursor: pointer;
  font-family: inherit;
  line-height: 1;
}

.btn-primary {
  background: var(--ink);
  color: white;
}
.btn-primary:hover { background: var(--sage-deep); transform: translateY(-1px); }

.btn-secondary {
  background: var(--surface);
  color: var(--ink);
  border: 1px solid var(--line-strong);
}
.btn-secondary:hover { border-color: var(--ink); }

.btn-ghost {
  color: var(--ink);
  padding: 14px 0;
  border-bottom: 1px solid var(--ink);
  border-radius: 0;
}
.btn-ghost:hover { color: var(--sage-deep); border-color: var(--sage-deep); }

.btn .arrow { transition: transform 0.2s; font-size: 16px; }
.btn:hover .arrow { transform: translateX(3px); }

/* ======== CARDS ======== */
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 36px;
  transition: all 0.25s;
}

.card-soft { background: var(--bg-deep); }

/* ======== HERO ======== */
.hero { padding: 80px 0 100px; position: relative; }

.hero-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 80px;
  align-items: center;
}

@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; gap: 50px; }
}

.hero h1 em { color: var(--sage-deep); font-style: italic; font-weight: 500; }

.hero-sub {
  font-size: clamp(17px, 1.7vw, 20px);
  color: var(--ink-soft);
  margin: 32px 0 40px;
  max-width: 50ch;
  line-height: 1.55;
}

.hero-cta { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }

.hero-trust {
  margin-top: 60px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}
.hero-trust-text {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  color: var(--ink-mute);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.hero-trust-pills { display: flex; gap: 8px; flex-wrap: wrap; }
.hero-trust-pills span {
  font-size: 12.5px;
  padding: 4px 10px;
  background: var(--sage-light);
  color: var(--sage-deep);
  border-radius: 100px;
  font-weight: 500;
}

/* Hero dashboard visualization */
.hero-viz {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: 0 20px 60px -25px rgba(22, 22, 20, 0.08);
  position: relative;
}

.viz-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
}

.viz-header-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
}

.viz-header-meta {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--ink-mute);
}

.viz-stat {
  font-size: 36px;
  font-weight: 600;
  letter-spacing: -0.03em;
  margin-bottom: 4px;
}

.viz-stat-change {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  color: var(--sage-deep);
  font-weight: 500;
}

.viz-chart { margin-top: 24px; }

/* ======== METRICS BAR ======== */
.metrics-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.metric {
  background: var(--bg);
  padding: 36px 28px;
  text-align: left;
}

.metric-val {
  font-size: clamp(34px, 4vw, 48px);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1;
  color: var(--ink);
  margin-bottom: 8px;
}
.metric-val em { color: var(--sage-deep); font-style: normal; }

.metric-label {
  font-size: 13px;
  color: var(--ink-mute);
  font-family: 'JetBrains Mono', monospace;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

@media (max-width: 880px) {
  .metrics-bar { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
  .metric { padding: 24px 20px; }
}

/* ======== SERVICES GRID ======== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.service-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 0;
  transition: all 0.25s;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.service-card:hover { border-color: var(--line-strong); transform: translateY(-2px); box-shadow: 0 18px 40px -22px rgba(22,22,20,0.1); }

.service-viz {
  background: var(--sage-pale);
  padding: 28px;
  height: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 1px solid var(--line);
}

.service-body { padding: 28px 28px 32px; }

.service-card h3 {
  font-size: 19px;
  font-weight: 600;
  margin-bottom: 10px;
  letter-spacing: -0.015em;
}

.service-card p {
  font-size: 14.5px;
  color: var(--ink-soft);
  line-height: 1.55;
}

@media (max-width: 980px) {
  .services-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .services-grid { grid-template-columns: 1fr; }
}

/* ======== WHY US ======== */
.why-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 80px;
  align-items: start;
}

.why-list {
  margin-top: 28px;
  display: grid;
  gap: 18px;
}

.why-list li {
  list-style: none;
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 14px;
  align-items: start;
  font-size: 15.5px;
  color: var(--ink-soft);
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

.why-list li::before {
  content: '';
  width: 16px;
  height: 16px;
  margin-top: 4px;
  background: var(--sage);
  mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='3'><polyline points='20 6 9 17 4 12'/></svg>") no-repeat center;
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='3'><polyline points='20 6 9 17 4 12'/></svg>") no-repeat center;
}

.why-stat {
  background: var(--sage-light);
  padding: 48px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
}

.why-stat-num {
  font-size: clamp(64px, 8vw, 96px);
  font-weight: 600;
  color: var(--sage-deep);
  letter-spacing: -0.04em;
  line-height: 0.95;
  margin-bottom: 14px;
}

.why-stat-label {
  font-size: 17px;
  color: var(--ink);
  font-weight: 500;
}

.why-stat-sub {
  font-size: 14px;
  color: var(--ink-soft);
  margin-top: 8px;
}

@media (max-width: 880px) {
  .why-grid { grid-template-columns: 1fr; gap: 40px; }
  .why-stat { padding: 32px; }
}

/* ======== PROCESS / STEPS ======== */
.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.step {
  background: var(--surface);
  border: 1px solid var(--line);
  padding: 32px 28px;
  border-radius: var(--radius-lg);
}

.step-num {
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  color: var(--sage-deep);
  margin-bottom: 60px;
  font-weight: 500;
}

.step h3 {
  font-size: 19px;
  margin-bottom: 10px;
  letter-spacing: -0.015em;
}

.step p {
  font-size: 14.5px;
  color: var(--ink-soft);
  line-height: 1.55;
}

@media (max-width: 880px) {
  .process-grid { grid-template-columns: 1fr 1fr; }
  .step-num { margin-bottom: 32px; }
}
@media (max-width: 520px) {
  .process-grid { grid-template-columns: 1fr; }
}

/* ======== TESTIMONIALS ======== */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.testimonial {
  background: var(--surface);
  border: 1px solid var(--line);
  padding: 36px 32px;
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.stars {
  display: flex;
  gap: 2px;
  color: var(--sage);
  font-size: 14px;
}

.testimonial blockquote {
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  letter-spacing: -0.005em;
}

.author {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  margin-top: auto;
}

.author-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--sage-light);
  color: var(--sage-deep);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 600;
}

.author-name { font-size: 14px; font-weight: 600; }
.author-role { font-size: 13px; color: var(--ink-mute); }

@media (max-width: 880px) {
  .testimonials-grid { grid-template-columns: 1fr; }
}

/* ======== CTA BANNER ======== */
.cta-banner {
  background: var(--bg-dark);
  color: white;
  padding: 80px 0;
  position: relative;
  overflow: hidden;
}

.cta-banner::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(125, 143, 108, 0.18) 0%, transparent 65%);
  pointer-events: none;
}

.cta-banner-inner {
  display: grid;
  grid-template-columns: 1.5fr auto;
  gap: 60px;
  align-items: center;
  position: relative;
}

.cta-banner h2 {
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: white;
}
.cta-banner h2 em { color: #a4b894; font-style: italic; font-weight: 500; }

.cta-banner p {
  font-size: 16px;
  color: rgba(255,255,255,0.65);
  margin-top: 14px;
  max-width: 56ch;
}

.cta-banner .btn-primary {
  background: white;
  color: var(--ink);
  padding: 16px 26px;
}
.cta-banner .btn-primary:hover { background: var(--sage); color: white; }

@media (max-width: 880px) {
  .cta-banner-inner { grid-template-columns: 1fr; gap: 28px; }
  .cta-banner { padding: 60px 0; }
}

/* ======== PRICING ======== */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.tier {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 40px 32px;
  display: flex;
  flex-direction: column;
  position: relative;
}

.tier-featured {
  background: var(--bg-dark);
  color: white;
  border: 1px solid transparent;
}
.tier-featured h3, .tier-featured .tier-price { color: white; }
.tier-featured .tier-desc { color: rgba(255,255,255,0.65); }
.tier-featured .tier-features li { color: rgba(255,255,255,0.85); border-color: rgba(255,255,255,0.1); }
.tier-featured .tier-features li::before { background: #a4b894; }
.tier-featured .btn-primary { background: white; color: var(--ink); }
.tier-featured .btn-primary:hover { background: var(--sage); color: white; }

.tier-badge {
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--sage);
  color: white;
  padding: 5px 14px;
  border-radius: 100px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.tier h3 {
  font-size: 16px;
  font-weight: 600;
  color: var(--ink-soft);
  letter-spacing: 0.02em;
  text-transform: uppercase;
  font-family: 'JetBrains Mono', monospace;
  margin-bottom: 18px;
}

.tier-price {
  font-size: 42px;
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1;
  margin-bottom: 10px;
}
.tier-price small {
  font-size: 16px;
  color: var(--ink-mute);
  font-weight: 400;
  letter-spacing: 0;
}
.tier-featured .tier-price small { color: rgba(255,255,255,0.5); }

.tier-desc {
  color: var(--ink-soft);
  font-size: 14.5px;
  line-height: 1.55;
  margin-bottom: 30px;
  min-height: 60px;
}

.tier-features {
  list-style: none;
  display: grid;
  gap: 12px;
  margin-bottom: 32px;
  flex-grow: 1;
}

.tier-features li {
  font-size: 14.5px;
  color: var(--ink-soft);
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: 10px;
  align-items: start;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}
.tier-features li:last-child { border-bottom: none; }
.tier-features li::before {
  content: '';
  width: 14px;
  height: 14px;
  margin-top: 3px;
  background: var(--sage);
  mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='3'><polyline points='20 6 9 17 4 12'/></svg>") no-repeat center;
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='3'><polyline points='20 6 9 17 4 12'/></svg>") no-repeat center;
}

@media (max-width: 980px) {
  .pricing-grid { grid-template-columns: 1fr; }
}

/* ======== TIMELINE ======== */
.timeline { display: grid; gap: 30px; }
.timeline-row {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 40px;
  padding: 28px 0;
  border-top: 1px solid var(--line);
}
.timeline-row:last-child { border-bottom: 1px solid var(--line); }
.timeline-year {
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  color: var(--sage-deep);
  letter-spacing: 0.04em;
  font-weight: 500;
}
.timeline-body h4 {
  font-size: 21px;
  margin-bottom: 6px;
  letter-spacing: -0.015em;
}
.timeline-body p {
  font-size: 15.5px;
  color: var(--ink-soft);
  max-width: 60ch;
}

@media (max-width: 720px) {
  .timeline-row { grid-template-columns: 1fr; gap: 10px; }
}

/* ======== FOOTER ======== */
footer {
  background: var(--bg);
  padding: 80px 0 36px;
  border-top: 1px solid var(--line);
  margin-top: 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
  gap: 60px;
  margin-bottom: 60px;
}

.footer-brand p {
  color: var(--ink-soft);
  font-size: 14.5px;
  margin-top: 16px;
  max-width: 36ch;
  line-height: 1.6;
}

.footer-newsletter {
  margin-top: 22px;
}

.footer-newsletter form {
  display: flex;
  gap: 8px;
  max-width: 320px;
}
.footer-newsletter input {
  flex: 1;
  padding: 11px 14px;
  border: 1px solid var(--line-strong);
  background: var(--surface);
  font-family: inherit;
  font-size: 14px;
  border-radius: 100px;
  color: var(--ink);
}
.footer-newsletter input:focus { outline: none; border-color: var(--sage); }
.footer-newsletter button {
  background: var(--ink);
  color: white;
  border: none;
  padding: 11px 18px;
  border-radius: 100px;
  cursor: pointer;
  font-size: 14px;
  font-family: inherit;
}

.footer-col h5 {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin-bottom: 20px;
  font-weight: 500;
}

.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 12px; }
.footer-col a {
  color: var(--ink);
  text-decoration: none;
  font-size: 14.5px;
  transition: color 0.2s;
}
.footer-col a:hover { color: var(--sage-deep); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  padding-top: 28px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  color: var(--ink-mute);
  flex-wrap: wrap;
  gap: 16px;
}

.footer-bottom-links { display: flex; gap: 20px; }
.footer-bottom-links a { color: var(--ink-mute); text-decoration: none; }
.footer-bottom-links a:hover { color: var(--ink); }

@media (max-width: 980px) {
  .footer-grid { grid-template-columns: 1fr 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 600px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}

/* ======== PAGE HEADER (for inner pages) ======== */
.page-header {
  padding: 80px 0 60px;
  border-bottom: 1px solid var(--line);
  background: var(--bg-deep);
}

.page-header h1 {
  font-size: clamp(38px, 5.5vw, 64px);
  line-height: 1.02;
  letter-spacing: -0.035em;
  font-weight: 600;
  max-width: 18ch;
}
.page-header h1 em { color: var(--sage-deep); font-style: italic; font-weight: 500; }

.page-header .lede {
  margin-top: 24px;
}

/* ======== LEGAL PAGES ======== */
.legal-wrap {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 80px;
  padding: 70px 0 100px;
}

.legal-nav {
  position: sticky;
  top: 100px;
  align-self: start;
}

.legal-nav h5 {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin-bottom: 18px;
  font-weight: 500;
}

.legal-nav ul { list-style: none; }
.legal-nav li { margin-bottom: 4px; }
.legal-nav a {
  display: block;
  padding: 10px 14px;
  text-decoration: none;
  color: var(--ink-soft);
  font-size: 14.5px;
  border-radius: 8px;
  transition: all 0.2s;
}
.legal-nav a:hover { background: var(--bg-deep); color: var(--ink); }
.legal-nav a.active { background: var(--sage-light); color: var(--sage-deep); font-weight: 500; }

.legal-content {
  max-width: 760px;
}

.legal-content .updated {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  color: var(--ink-mute);
  padding: 8px 14px;
  background: var(--sage-light);
  color: var(--sage-deep);
  border-radius: 100px;
  display: inline-block;
  margin-bottom: 28px;
  letter-spacing: 0.03em;
}

.legal-content h2 {
  font-size: 24px;
  margin: 48px 0 16px;
  letter-spacing: -0.02em;
  font-weight: 600;
}
.legal-content h2:first-of-type { margin-top: 0; }

.legal-content h3 {
  font-size: 17px;
  margin: 28px 0 12px;
  font-weight: 600;
}

.legal-content p {
  color: var(--ink-soft);
  margin-bottom: 14px;
  line-height: 1.65;
}

.legal-content ul, .legal-content ol {
  padding-left: 20px;
  margin-bottom: 18px;
  color: var(--ink-soft);
}
.legal-content li { margin-bottom: 8px; line-height: 1.6; }

.legal-content a { color: var(--sage-deep); text-decoration: underline; }
.legal-content a:hover { color: var(--ink); }

.legal-content strong { color: var(--ink); font-weight: 600; }

.legal-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
  font-size: 14.5px;
}
.legal-content th, .legal-content td {
  padding: 12px 14px;
  text-align: left;
  border-bottom: 1px solid var(--line);
}
.legal-content th {
  background: var(--bg-deep);
  font-weight: 600;
  font-size: 13px;
  color: var(--ink);
}
.legal-content td { color: var(--ink-soft); }

@media (max-width: 880px) {
  .legal-wrap { grid-template-columns: 1fr; gap: 30px; }
  .legal-nav { position: static; }
  .legal-nav ul { display: flex; gap: 4px; overflow-x: auto; padding-bottom: 6px; }
  .legal-nav li { margin-bottom: 0; flex-shrink: 0; }
}

/* ======== CONTACT FORM ======== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 80px;
  padding: 70px 0 100px;
}

.contact-info { display: grid; gap: 28px; align-content: start; }

.contact-block h4 {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin-bottom: 8px;
  font-weight: 500;
}

.contact-block p, .contact-block a {
  font-size: 17px;
  color: var(--ink);
  text-decoration: none;
  font-weight: 500;
}

.contact-block a:hover { color: var(--sage-deep); }

.contact-form {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 40px;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-bottom: 18px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.field.full { grid-column: 1 / -1; }

.field label {
  font-size: 12.5px;
  color: var(--ink-soft);
  font-weight: 500;
  font-family: 'JetBrains Mono', monospace;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.field input, .field textarea, .field select {
  padding: 12px 14px;
  border: 1px solid var(--line-strong);
  background: var(--bg);
  font-family: inherit;
  font-size: 15px;
  border-radius: var(--radius);
  color: var(--ink);
  width: 100%;
  font-weight: 400;
}

.field input:focus, .field textarea:focus, .field select:focus {
  outline: none;
  border-color: var(--sage);
  background: var(--surface);
}

.field textarea { min-height: 130px; resize: vertical; font-family: inherit; }

.form-footer {
  margin-top: 22px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.form-consent {
  font-size: 12.5px;
  color: var(--ink-mute);
  line-height: 1.5;
  max-width: 38ch;
}
.form-consent a { color: var(--sage-deep); text-decoration: underline; }

.form-success {
  display: none;
  background: var(--sage-light);
  border: 1px solid var(--sage);
  border-radius: var(--radius);
  padding: 16px;
  color: var(--sage-deep);
  font-size: 14.5px;
  margin-top: 18px;
}
.form-success.show { display: block; }

@media (max-width: 880px) {
  .contact-grid { grid-template-columns: 1fr; gap: 40px; padding: 50px 0 70px; }
  .form-grid { grid-template-columns: 1fr; }
  .contact-form { padding: 28px; }
}

/* ======== COOKIE BANNER ======== */
.cookie-banner {
  position: fixed;
  bottom: 20px;
  left: 20px;
  right: 20px;
  max-width: 480px;
  margin-left: auto;
  background: var(--bg-dark);
  color: white;
  padding: 24px;
  border-radius: var(--radius-lg);
  box-shadow: 0 30px 70px -10px rgba(0,0,0,0.3);
  z-index: 200;
  display: none;
}

.cookie-banner.show { display: block; animation: slideUp 0.4s ease-out; }

@keyframes slideUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.cookie-banner h4 {
  font-size: 16px;
  color: white;
  margin-bottom: 8px;
  letter-spacing: -0.015em;
}

.cookie-banner p {
  font-size: 13.5px;
  color: rgba(255,255,255,0.7);
  line-height: 1.5;
  margin-bottom: 18px;
}
.cookie-banner p a { color: #a4b894; text-decoration: underline; }

.cookie-actions { display: flex; gap: 10px; flex-wrap: wrap; }

.cookie-btn {
  padding: 9px 16px;
  border-radius: 100px;
  font-size: 13px;
  font-weight: 500;
  border: none;
  cursor: pointer;
  font-family: inherit;
}

.cookie-btn-primary { background: white; color: var(--ink); }
.cookie-btn-primary:hover { background: var(--sage); color: white; }

.cookie-btn-secondary { background: transparent; color: white; border: 1px solid rgba(255,255,255,0.25); }
.cookie-btn-secondary:hover { border-color: white; }

@media (max-width: 540px) {
  .cookie-banner { left: 12px; right: 12px; bottom: 12px; padding: 20px; }
}

/* ======== UTILITIES ======== */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity 0.6s ease-out, transform 0.6s ease-out; }
.reveal.in { opacity: 1; transform: translateY(0); }

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