/* ============================================================
   Clarifyr.io — landing page styles
   Edit tokens in :root, everything else cascades from there.
   ============================================================ */

:root {
  --paper:        #FAFAF7;
  --paper-2:      #F4F5F0;
  --panel:        #EEF1EC;
  --panel-2:      #E6EAE3;
  --ink:          #1B2330;
  --ink-2:        #2A3340;
  --ink-soft:     #4B5563;
  --mute:         #8A8F87;
  --hair:         rgba(27,35,48,0.12);
  --hair-2:       rgba(27,35,48,0.06);
  --sage:         #5B7A5A;
  --sage-deep:    #3F5A3F;
  --sage-tint:    #D8E1D2;
  --sand:         #D9C9A8;
  --sand-deep:    #B9A578;
  --sky:          #B7C7D6;
  --max:          1240px;
  --gutter:       28px;
}

* { box-sizing: border-box; }
html, body { background: var(--paper); color: var(--ink); }
body {
  margin: 0;
  font-family: "Inter Tight", "Söhne", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  font-feature-settings: "ss01" on, "cv11" on;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  flex-direction: column;
}

.diagram { overflow: hidden; }
.out-card { overflow: hidden; }
.out-card pre { white-space: pre-wrap; }

.mono { font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace; }
.label {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--mute);
}
.hair { border: 0; border-top: 1px solid var(--hair); margin: 0; }

a { color: inherit; text-decoration: none; }

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* ───── Top strip ───── */
.strip {
  border-bottom: 1px solid var(--hair);
  background: var(--paper);
  font-size: 12.5px;
  color: var(--ink-soft);
}
.strip .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 36px;
  gap: 16px;
}
.strip .left { display: flex; align-items: center; gap: 14px; }
.strip .right { display: flex; align-items: center; gap: 18px; color: var(--mute); }
.strip .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--sage);
  box-shadow: 0 0 0 3px rgba(91,122,90,0.15);
}
.strip a:hover { color: var(--ink); }

/* ───── Nav ───── */
nav.top {
  position: sticky; top: 0; z-index: 50;
  background: rgba(250,250,247,0.85);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--hair);
}
nav.top .wrap {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  height: 68px;
}
.brand {
  display: flex; align-items: center; gap: 10px;
  font-weight: 600; font-size: 17px; letter-spacing: -0.01em;
}
.brand .mark {
  width: 22px; height: 22px;
  background: var(--ink);
  color: var(--paper);
  display: grid; place-items: center;
  border-radius: 4px;
  font-family: "JetBrains Mono", monospace;
  font-size: 13px;
  font-weight: 500;
}
.brand .tld { color: var(--mute); font-weight: 400; }
.nav-links {
  display: flex; gap: 28px;
  font-size: 14px; color: var(--ink-soft);
}
.nav-links a:hover { color: var(--ink); }
.nav-cta { display: flex; gap: 10px; justify-content: flex-end; align-items: center; }

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  height: 38px;
  padding: 0 16px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.005em;
  border: 1px solid transparent;
  transition: 120ms ease;
  cursor: pointer;
  white-space: nowrap;
}
.btn .arr { font-family: "JetBrains Mono", monospace; font-weight: 400; opacity: 0.8; }
.btn.primary { background: var(--ink); color: var(--paper); }
.btn.primary:hover { background: #000; }
.btn.ghost { background: transparent; color: var(--ink); border-color: var(--hair); }
.btn.ghost:hover { border-color: var(--ink); }
.btn.link { background: transparent; padding: 0 4px; color: var(--ink); }
.btn.link:hover { color: var(--sage-deep); }

/* ───── Hero ───── */
section.hero {
  border-bottom: 1px solid var(--hair);
  padding: 72px 0 88px;
  position: relative;
  overflow: hidden;
}
.hero .wrap {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 64px;
  align-items: start;
}
.hero-meta {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 36px;
}
.pill {
  display: inline-flex; align-items: center; gap: 10px;
  height: 30px; padding: 0 12px;
  border: 1px solid var(--hair);
  border-radius: 999px;
  background: var(--paper);
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.pill .flag {
  width: 14px; height: 10px; border-radius: 1.5px;
  background:
    linear-gradient(to bottom,
      #006AA7 0 30%,
      #006AA7 30% 50%,
      #006AA7 50% 100%);
  position: relative;
  overflow: hidden;
}
.pill .flag::before {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(to right,
      transparent 0 4px,
      #FECC00 4px 6px,
      transparent 6px 100%),
    linear-gradient(to bottom,
      transparent 0 4px,
      #FECC00 4px 6px,
      transparent 6px 100%);
}
.pill.sage { background: var(--sage-tint); border-color: rgba(91,122,90,0.25); color: var(--sage-deep); }
.pill.sage .dot {
  width: 6px; height: 6px; border-radius: 50%; background: var(--sage);
}

h1.display {
  font-family: "Inter Tight", sans-serif;
  font-weight: 500;
  font-size: clamp(44px, 5.4vw, 76px);
  line-height: 0.98;
  letter-spacing: -0.035em;
  margin: 0 0 24px;
  color: var(--ink);
  text-wrap: balance;
}
h1.display em {
  font-style: normal;
  color: var(--sage-deep);
  /* subtle marker underline */
  background-image: linear-gradient(transparent 78%, rgba(91,122,90,0.18) 78%);
  padding: 0 0.05em;
}
.lead {
  font-size: 18px;
  line-height: 1.5;
  color: var(--ink-soft);
  max-width: 540px;
  margin: 0 0 32px;
  text-wrap: pretty;
}
.hero-cta { display: flex; gap: 12px; margin-bottom: 36px; }
.hero-meta-row {
  display: flex; align-items: center; gap: 24px;
  font-size: 12.5px; color: var(--mute);
}
.hero-meta-row .sep { width: 1px; height: 14px; background: var(--hair); }
.hero-meta-row .ok {
  display: inline-flex; align-items: center; gap: 6px;
}
.hero-meta-row .ok::before {
  content: ""; width: 5px; height: 5px; border-radius: 50%;
  background: var(--sage);
}

/* ───── Hero diagram ───── */
.diagram {
  position: relative;
  border: 1px solid var(--hair);
  background:
    linear-gradient(var(--paper), var(--paper)) padding-box,
    repeating-linear-gradient(90deg, var(--hair-2) 0 1px, transparent 1px 64px) padding-box;
  border-radius: 6px;
  padding: 28px;
  min-height: 460px;
}
.diagram::before {
  /* dotted grid */
  content: "";
  position: absolute; inset: 0;
  background-image:
    radial-gradient(rgba(27,35,48,0.10) 1px, transparent 1px);
  background-size: 18px 18px;
  background-position: 9px 9px;
  pointer-events: none;
  opacity: 0.45;
  mask-image: linear-gradient(to bottom, transparent, #000 18%, #000 82%, transparent);
}
.diagram-head {
  position: relative;
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 26px;
  z-index: 2;
}
.diagram-head .left { display: flex; gap: 14px; align-items: center; }
.traffic {
  display: flex; gap: 5px;
}
.traffic span {
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--panel-2);
  border: 1px solid var(--hair);
}

.diagram-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1.05fr 1fr;
  gap: 0;
  align-items: stretch;
  min-height: 360px;
  z-index: 2;
}

.col-inputs { display: flex; flex-direction: column; gap: 14px; justify-content: center; padding-right: 12px; }
.col-pipe { position: relative; }
.col-out { display: flex; justify-content: flex-end; align-items: center; padding-left: 12px; }

.input-card {
  background: var(--paper);
  border: 1px solid var(--hair);
  border-radius: 4px;
  padding: 12px 14px;
  display: flex; gap: 12px; align-items: center;
  font-size: 13px;
  position: relative;
}
.input-card .ico {
  width: 36px; height: 36px;
  border-radius: 3px;
  display: grid; place-items: center;
  background: var(--panel);
  border: 1px solid var(--hair);
  flex-shrink: 0;
}
.input-card .meta { display: flex; flex-direction: column; min-width: 0; }
.input-card .name { font-weight: 500; color: var(--ink); }
.input-card .sub { font-family: "JetBrains Mono", monospace; font-size: 10.5px; color: var(--mute); letter-spacing: 0.03em; }
.input-card .size {
  margin-left: auto;
  font-family: "JetBrains Mono", monospace;
  font-size: 10.5px; color: var(--mute);
}

/* SVG ico glyphs (simple geometric) */
.ico .glyph { width: 18px; height: 18px; display: block; }

.pipe-svg {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  overflow: visible;
}
.pipe-core {
  position: absolute;
  left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  width: 92px; height: 92px;
  border-radius: 50%;
  background: var(--paper);
  border: 1px solid var(--hair);
  display: grid; place-items: center;
  box-shadow:
    0 0 0 6px rgba(91,122,90,0.06),
    0 0 0 12px rgba(91,122,90,0.03);
  z-index: 3;
}
.pipe-core .inner {
  width: 64px; height: 64px;
  background: var(--ink);
  color: var(--paper);
  border-radius: 50%;
  display: grid; place-items: center;
  font-family: "JetBrains Mono", monospace;
  font-size: 10px;
  letter-spacing: 0.08em;
  text-align: center;
  line-height: 1.15;
}
.pipe-core .inner b { display:block; font-weight: 500; }
.pipe-core .inner span { color: var(--sand); }

.out-card {
  width: 100%;
  background: var(--paper);
  border: 1px solid var(--hair);
  border-radius: 5px;
  padding: 16px 16px 18px;
  font-size: 12px;
  position: relative;
  box-shadow: 0 1px 0 var(--hair-2), 0 12px 24px -18px rgba(27,35,48,0.18);
}
.out-card .topline {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 12px;
}
.out-card .topline .tag {
  font-family: "JetBrains Mono", monospace;
  font-size: 10px; letter-spacing: 0.08em;
  color: var(--sage-deep);
  background: var(--sage-tint);
  padding: 3px 7px;
  border-radius: 3px;
}
.out-card .topline .v {
  font-family: "JetBrains Mono", monospace;
  font-size: 10px; color: var(--mute);
}
.out-card pre {
  margin: 0;
  font-family: "JetBrains Mono", monospace;
  font-size: 10.5px;
  line-height: 1.7;
  color: var(--ink-2);
  white-space: pre;
  overflow: hidden;
}
.out-card .k { color: var(--sage-deep); }
.out-card .s { color: var(--ink); }
.out-card .c { color: var(--mute); }

/* connector lines drawn via svg overlay on .diagram-grid */
.links {
  position: absolute; inset: 0;
  pointer-events: none;
  z-index: 1;
}

/* ───── Generic section ───── */
section.bay { padding: 96px 0; border-bottom: 1px solid var(--hair); position: relative; }
.sect-head {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 64px;
  margin-bottom: 56px;
}
.sect-head h2 {
  font-size: clamp(30px, 3.2vw, 44px);
  line-height: 1.04;
  letter-spacing: -0.025em;
  margin: 0;
  font-weight: 500;
  color: var(--ink);
  max-width: 720px;
  text-wrap: balance;
}
.sect-head .kicker {
  display: flex; flex-direction: column; gap: 10px;
}
.sect-head .kicker .num {
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  color: var(--mute);
  letter-spacing: 0.1em;
}
.sect-head .kicker .tag {
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--sage-deep);
}
.sect-head .desc {
  grid-column: 2;
  color: var(--ink-soft);
  font-size: 17px;
  max-width: 560px;
  margin-top: 18px;
  text-wrap: pretty;
}

/* ───── How it works ───── */
.flow {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--hair);
  border-left: 1px solid var(--hair);
}
.step {
  border-right: 1px solid var(--hair);
  border-bottom: 1px solid var(--hair);
  padding: 28px 24px 32px;
  background: var(--paper);
  position: relative;
  display: flex; flex-direction: column;
  min-height: 280px;
}
.step .num {
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  color: var(--mute);
  letter-spacing: 0.08em;
  margin-bottom: 18px;
}
.step .icon-frame {
  width: 56px; height: 56px;
  border: 1px solid var(--hair);
  border-radius: 4px;
  background: var(--panel);
  display: grid; place-items: center;
  margin-bottom: 24px;
}
.step h3 {
  margin: 0 0 10px;
  font-size: 19px;
  font-weight: 500;
  letter-spacing: -0.01em;
}
.step p {
  margin: 0;
  font-size: 14px;
  color: var(--ink-soft);
  line-height: 1.55;
  text-wrap: pretty;
}
.step .foot {
  margin-top: auto;
  padding-top: 20px;
  font-family: "JetBrains Mono", monospace;
  font-size: 10.5px;
  color: var(--mute);
  letter-spacing: 0.04em;
  display: flex; justify-content: space-between;
}
.step:nth-child(2) { background: linear-gradient(180deg, var(--paper) 0%, var(--paper-2) 100%); }
.step:nth-child(3) .icon-frame { background: var(--sage-tint); }
.step .icon-frame svg { width: 24px; height: 24px; }

/* ───── Inputs grid ───── */
.inputs-grid {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 0;
  border-top: 1px solid var(--hair);
  border-left: 1px solid var(--hair);
}
.in-cell {
  grid-column: span 2;
  border-right: 1px solid var(--hair);
  border-bottom: 1px solid var(--hair);
  padding: 22px;
  background: var(--paper);
  display: flex; flex-direction: column;
  min-height: 150px;
  position: relative;
  transition: background 160ms ease;
}
.in-cell:hover { background: var(--paper-2); }
.in-cell .ext {
  font-family: "JetBrains Mono", monospace;
  font-size: 10.5px;
  color: var(--mute);
  letter-spacing: 0.06em;
  margin-bottom: auto;
}
.in-cell .label-name {
  font-size: 15px;
  color: var(--ink);
  font-weight: 500;
  letter-spacing: -0.005em;
  margin-top: 36px;
}
.in-cell .label-sub {
  font-size: 12.5px;
  color: var(--mute);
  margin-top: 4px;
}
.in-cell .corner {
  position: absolute;
  top: 22px; right: 22px;
  width: 22px; height: 22px;
  display: grid; place-items: center;
  color: var(--ink-soft);
}
.in-cell.feature {
  grid-column: span 4;
  background: var(--panel);
  min-height: 300px;
}
.in-cell.feature .label-name { font-size: 22px; max-width: 18ch; }
.in-cell.feature .label-sub { font-size: 14px; max-width: 36ch; line-height: 1.5; }
.in-cell .demo {
  margin-top: 22px;
  display: flex; align-items: center; gap: 12px;
  font-family: "JetBrains Mono", monospace;
  font-size: 11.5px;
  color: var(--ink-soft);
}
.in-cell .demo .arrow { color: var(--sage); }

/* ───── EU sovereignty ───── */
section.eu {
  background: var(--ink);
  color: var(--paper);
  border-bottom: 1px solid var(--ink);
  padding: 110px 0 110px;
  position: relative;
  overflow: hidden;
}
section.eu::before {
  content: "";
  position: absolute; inset: 0;
  background-image:
    radial-gradient(rgba(217,201,168,0.06) 1px, transparent 1px);
  background-size: 28px 28px;
  background-position: 14px 14px;
  mask-image: linear-gradient(to bottom, transparent 0%, #000 20%, #000 80%, transparent 100%);
  pointer-events: none;
}
section.eu .sect-head h2 { color: var(--paper); }
section.eu .sect-head .kicker .tag { color: var(--sand); }
section.eu .sect-head .kicker .num { color: rgba(250,250,247,0.55); }
section.eu .sect-head .desc { color: rgba(250,250,247,0.7); }

.eu-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 1px;
  background: rgba(250,250,247,0.08);
  border: 1px solid rgba(250,250,247,0.08);
  border-radius: 6px;
  overflow: hidden;
}
.eu-cell {
  background: var(--ink);
  padding: 32px;
  display: flex; flex-direction: column;
  min-height: 280px;
}
.eu-cell .micro {
  font-family: "JetBrains Mono", monospace;
  font-size: 10.5px;
  letter-spacing: 0.1em;
  color: var(--sand);
  text-transform: uppercase;
}
.eu-cell h4 {
  margin: 18px 0 10px;
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.015em;
  color: var(--paper);
}
.eu-cell p {
  margin: 0;
  color: rgba(250,250,247,0.7);
  font-size: 14px;
  line-height: 1.55;
  text-wrap: pretty;
}
.eu-cell.map {
  grid-row: span 2;
  grid-column: 1;
  padding: 0;
  position: relative;
  overflow: hidden;
}
.map-frame {
  position: relative;
  padding: 28px;
  height: 100%;
  display: flex; flex-direction: column;
}
.map-frame .top {
  display: flex; justify-content: space-between; align-items: flex-start;
  margin-bottom: 20px;
}
.map-frame .coord {
  font-family: "JetBrains Mono", monospace;
  font-size: 10.5px;
  color: rgba(250,250,247,0.55);
  letter-spacing: 0.06em;
  text-align: right;
  line-height: 1.55;
}
.map-frame .label {
  font-family: "JetBrains Mono", monospace;
  font-size: 10.5px;
  letter-spacing: 0.1em;
  color: var(--sand);
  text-transform: uppercase;
}
.map-svg-wrap {
  flex: 1;
  position: relative;
  min-height: 280px;
}
.map-svg-wrap svg { width: 100%; height: 100%; display: block; }
.map-frame .city {
  margin-top: 12px;
  font-size: 20px;
  font-weight: 500;
  letter-spacing: -0.015em;
}
.map-frame .city span { color: var(--sand); }
.map-frame .latency {
  margin-top: 6px;
  font-family: "JetBrains Mono", monospace;
  font-size: 11.5px;
  color: rgba(250,250,247,0.6);
}

.stamp-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  margin-top: 32px;
  border-top: 1px solid rgba(250,250,247,0.12);
  border-left: 1px solid rgba(250,250,247,0.12);
}
.stamp {
  border-right: 1px solid rgba(250,250,247,0.12);
  border-bottom: 1px solid rgba(250,250,247,0.12);
  padding: 22px;
  display: flex; flex-direction: column; gap: 6px;
}
.stamp .k {
  font-family: "JetBrains Mono", monospace;
  font-size: 10.5px; letter-spacing: 0.1em;
  color: rgba(250,250,247,0.55);
  text-transform: uppercase;
}
.stamp .v {
  font-size: 17px;
  color: var(--paper);
  font-weight: 500;
  letter-spacing: -0.01em;
}

/* ───── Integrations ───── */
.int-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  border-top: 1px solid var(--hair);
  border-left: 1px solid var(--hair);
}
.int {
  border-right: 1px solid var(--hair);
  border-bottom: 1px solid var(--hair);
  padding: 28px 22px;
  background: var(--paper);
  display: flex; align-items: center; gap: 14px;
  min-height: 96px;
  transition: background 140ms ease;
}
.int:hover { background: var(--paper-2); }
.int .badge {
  width: 36px; height: 36px;
  border-radius: 4px;
  border: 1px solid var(--hair);
  background: var(--panel);
  display: grid; place-items: center;
  flex-shrink: 0;
  font-family: "JetBrains Mono", monospace;
  font-size: 13px;
  color: var(--ink);
  font-weight: 500;
}
.int .nm { font-size: 15px; color: var(--ink); font-weight: 500; }
.int .tg { font-family: "JetBrains Mono", monospace; font-size: 10.5px; color: var(--mute); margin-top: 2px; letter-spacing: 0.04em; }
.int .meta { display: flex; flex-direction: column; }

.int-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 28px;
  font-size: 13px;
  color: var(--ink-soft);
}
.int-footer a { color: var(--sage-deep); border-bottom: 1px solid currentColor; padding-bottom: 1px; }

/* ───── CTA ───── */
section.cta {
  padding: 110px 0;
  background: var(--panel);
  border-bottom: 1px solid var(--hair);
  position: relative;
  overflow: hidden;
}
section.cta::before {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(rgba(91,122,90,0.10) 1px, transparent 1px);
  background-size: 22px 22px;
  background-position: 11px 11px;
  mask-image: radial-gradient(60% 80% at 50% 50%, #000 30%, transparent 80%);
}
.cta-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 64px;
  align-items: end;
}
.cta-inner h2 {
  font-size: clamp(36px, 4.2vw, 60px);
  line-height: 1.02;
  letter-spacing: -0.03em;
  margin: 0;
  font-weight: 500;
  max-width: 16ch;
  text-wrap: balance;
}
.cta-inner p {
  margin: 0 0 18px;
  font-size: 16px;
  color: var(--ink-soft);
  max-width: 38ch;
  text-wrap: pretty;
}
.cta-actions { display: flex; gap: 12px; align-items: center; margin-top: 18px; }
.cta-meta {
  display: flex; gap: 18px;
  margin-top: 24px;
  font-family: "JetBrains Mono", monospace;
  font-size: 10.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--mute);
}
.cta-meta .ok::before {
  content: "✓ "; color: var(--sage);
}

/* ───── Footer ───── */
footer {
  background: var(--paper);
  padding: 72px 0 36px;
}
.foot-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(4, 1fr);
  gap: 48px;
  padding-bottom: 56px;
  border-bottom: 1px solid var(--hair);
}
.foot-col h5 {
  margin: 0 0 16px;
  font-family: "JetBrains Mono", monospace;
  font-size: 10.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--mute);
  font-weight: 500;
}
.foot-col ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.foot-col a { font-size: 14px; color: var(--ink-soft); }
.foot-col a:hover { color: var(--ink); }
.foot-brand p {
  color: var(--ink-soft);
  font-size: 14px;
  max-width: 32ch;
  margin: 16px 0 0;
}
.foot-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 24px;
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--mute);
}

/* ------ Pricing ------- */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid var(--hair);
  border-left: 1px solid var(--hair);
}

.plan {
  border-right: 1px solid var(--hair);
  border-bottom: 1px solid var(--hair);
  padding: 32px;
  background: var(--paper);
  display: flex; flex-direction: column;
  min-height: 320px;
}

.price {
  font-size: 28px;
  color: var(--ink);
  font-weight: 500;
  letter-spacing: -0.02em;
  margin: 18px 0 12px;
}

.plan .btn {
  margin-top: auto;
  width: max-content;
}
.foot-bottom .right { display: flex; gap: 20px; }

/* ───── Responsive ───── */
@media (max-width: 1080px) {
  .hero .wrap { grid-template-columns: 1fr; gap: 48px; }
  .sect-head { grid-template-columns: 1fr; gap: 24px; }
  .sect-head .desc { grid-column: 1; }
  .flow { grid-template-columns: repeat(2, 1fr); }
  .inputs-grid { grid-template-columns: repeat(4, 1fr); }
  .in-cell.feature { grid-column: span 4; }
  .int-grid { grid-template-columns: repeat(3, 1fr); }
  .eu-grid { grid-template-columns: 1fr 1fr; }
  .eu-cell.map { grid-row: span 1; grid-column: span 2; }
  .stamp-row { grid-template-columns: repeat(2, 1fr); }
  .cta-inner { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 680px) {

  /* Nav */
  .strip .right { display: none; }
  nav.top .wrap { grid-template-columns: 1fr auto; }
  .nav-cta { grid-column: 2; grid-row: 1; }
  .nav-cta .btn.link { display: none; }
  .nav-links { display: none; }

  /* Hero */
  section.hero { padding: 48px 0 56px; overflow: hidden; }
  .hero .wrap { grid-template-columns: 1fr; gap: 32px; }
  h1.display { font-size: clamp(32px, 9vw, 44px); letter-spacing: -0.025em; }
  .hero-meta { flex-wrap: wrap; gap: 8px; }
  .pill { font-size: 10px; padding: 0 10px; height: 26px; }
  .lead { font-size: 15px; max-width: 100%; }
  .hero-cta { flex-direction: column; align-items: flex-start; gap: 10px; }
  .hero-meta-row { flex-wrap: wrap; gap: 8px; }
  .hero-meta-row .sep { display: none; }

  /* Diagram */
  .diagram { padding: 16px; min-height: auto; overflow: hidden; }
  .diagram-grid { grid-template-columns: 1fr; min-height: auto; }
  .col-pipe { display: none; }
  .col-out { padding-left: 0; }
  .links { display: none; }
  .out-card pre { overflow-x: auto; font-size: 9.5px; }

  /* Sections */
  section.bay { padding: 56px 0; }
  .sect-head { grid-template-columns: 1fr; gap: 20px; }
  .sect-head .desc { grid-column: 1; margin-top: 8px; }

  /* How it works */
  .flow { grid-template-columns: 1fr; }
  .step { min-height: auto; }

  /* Inputs */
  .inputs-grid { grid-template-columns: 1fr 1fr; }
  .in-cell { min-height: 120px; padding: 16px; }
  .in-cell.feature { grid-column: span 2; min-height: 200px; }

  /* EU */
  section.eu { padding: 64px 0; }
  .eu-grid { grid-template-columns: 1fr; }
  .eu-cell.map { grid-column: span 1; grid-row: auto; }
  .eu-cell { min-height: auto; padding: 24px; }
  .stamp-row { grid-template-columns: 1fr 1fr; }

  /* Integrations */
  .int-grid { grid-template-columns: 1fr 1fr; }
  .int { min-height: auto; padding: 16px; }
  .int-footer { flex-direction: column; gap: 12px; align-items: flex-start; }

  /* Pricing */
  .pricing-grid { grid-template-columns: 1fr; }

  /* CTA */
  section.cta { padding: 64px 0; }
  .cta-inner { grid-template-columns: 1fr; gap: 32px; }
  .cta-actions { flex-direction: column; align-items: flex-start; }
  .cta-meta { flex-wrap: wrap; gap: 12px; }

  /* Footer */
  .foot-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .foot-bottom { flex-direction: column; gap: 16px; align-items: flex-start; }
}
