:root {
  --ink: #12181f;
  --blueprint: #0f2a44;
  --blueprint-2: #163a5c;
  --paper: #f6f4ec;
  --paper-2: #efece1;
  --line: #7fa6c4;
  --line-soft: rgba(127, 166, 196, 0.28);
  --flag: #e1550a;
  --flag-dark: #b8430a;
  --graphite: #5b6672;
  --border: #dcd8c9;
  --success: #1f7a4d;
  --error: #b8430a;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

.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;
}

html { scroll-behavior: smooth; }

body {
  font-family: "IBM Plex Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  font-size: 16px;
}

h1, h2, h3 {
  font-family: "Space Grotesk", "IBM Plex Sans", sans-serif;
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.01em;
}

.mono { font-family: "IBM Plex Mono", monospace; }

a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; display: block; }

.container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 28px;
}

@media (prefers-reduced-motion: no-preference) {
  .diagram-anim { animation: diagram-reveal 1.1s ease-out 0.15s both; }
}
@keyframes diagram-reveal {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ===== Header ===== */
header {
  position: sticky;
  top: 0;
  background: var(--paper);
  border-bottom: 1px solid var(--border);
  z-index: 100;
}

nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 28px;
  max-width: 1160px;
  margin: 0 auto;
}

.logo {
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: 8px;
}
.logo .mark {
  width: 22px; height: 22px;
  border: 1.5px solid var(--ink);
  position: relative;
  flex-shrink: 0;
}
.logo .mark::after {
  content: "";
  position: absolute;
  inset: 4px;
  border: 1.5px solid var(--flag);
}
.logo span { color: var(--flag-dark); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 30px;
  font-size: 0.95rem;
}

.nav-links a {
  color: var(--graphite);
  padding-bottom: 3px;
  border-bottom: 1.5px solid transparent;
  transition: color .15s, border-color .15s;
}
.nav-links a:hover, .nav-links a:focus-visible { color: var(--ink); }
.nav-links a.active { color: var(--ink); border-bottom-color: var(--flag); }

.nav-cta {
  background: var(--ink) !important;
  color: var(--paper) !important;
  padding: 10px 18px;
  border: none !important;
  font-weight: 600;
}
.nav-cta:hover { background: var(--flag) !important; }

.nav-toggle {
  display: none;
  background: none;
  border: 1.5px solid var(--ink);
  width: 40px;
  height: 40px;
  font-size: 1.1rem;
  cursor: pointer;
  color: var(--ink);
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 26px;
  font-weight: 600;
  font-size: 0.98rem;
  cursor: pointer;
  border: 1.5px solid transparent;
  transition: background .15s, color .15s, border-color .15s;
  font-family: "IBM Plex Sans", sans-serif;
}
.btn-primary { background: var(--flag); color: #fff; }
.btn-primary:hover { background: var(--flag-dark); }
.btn-outline { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-outline:hover { background: var(--ink); color: var(--paper); }
.btn-outline-light { background: transparent; color: var(--paper); border-color: var(--line-soft); }
.btn-outline-light:hover { background: var(--paper); color: var(--blueprint); }

/* ===== Hero ===== */
.hero {
  background: var(--paper);
  padding: 72px 0 88px;
}
.hero .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}
.hero-copy h1 {
  font-size: 3rem;
  margin-bottom: 22px;
}
.hero-copy p {
  color: var(--graphite);
  font-size: 1.1rem;
  max-width: 46ch;
  margin-bottom: 30px;
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

@media (max-width: 900px) {
  .hero .container { grid-template-columns: 1fr; }
  .hero-diagram { order: -1; }
}

/* Before/after diagram */
.hero-diagram { display: flex; flex-direction: column; gap: 10px; align-items: stretch; }
.site-card {
  border: 1.5px solid var(--ink);
  background: #fff;
}
.site-card .bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-bottom: 1.5px solid var(--ink);
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.72rem;
  color: var(--graphite);
}
.site-card .bar .dot { width: 7px; height: 7px; border-radius: 50%; border: 1px solid var(--graphite); }
.site-card.old .body { padding: 18px 16px; display: flex; flex-direction: column; gap: 9px; }
.site-card.old .row { height: 9px; background: #d8d4c6; }
.site-card.old .row.w60 { width: 60%; }
.site-card.old .row.w80 { width: 80%; }
.site-card.old .row.w40 { width: 40%; }
.site-card.old .body { background: repeating-linear-gradient(135deg, #ece8db, #ece8db 6px, #e4dfce 6px, #e4dfce 12px); }

.site-card.new .body {
  padding: 20px 16px;
  background: var(--blueprint);
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.site-card.new .row { height: 9px; background: var(--line-soft); }
.site-card.new .row.accent { background: var(--flag); width: 32%; }
.site-card.new .row.w70 { width: 70%; }
.site-card.new .row.w50 { width: 50%; }
.site-card.new .row.w90 { width: 90%; }

.diagram-arrow {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-left: 4px;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.78rem;
  color: var(--flag-dark);
}
.diagram-arrow svg { flex-shrink: 0; }

/* ===== Sections ===== */
section { padding: 76px 0; }
.band-dark { background: var(--blueprint); color: var(--paper); background-image: linear-gradient(var(--line-soft) 1px, transparent 1px), linear-gradient(90deg, var(--line-soft) 1px, transparent 1px); background-size: 44px 44px; }
.band-dark .section-header p, .band-dark p { color: #bcd2e3; }
.band-dark h2 { color: #fff; }

.section-header { max-width: 640px; margin: 0 0 46px; }
.section-header .kicker {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.82rem;
  color: var(--flag-dark);
  display: block;
  margin-bottom: 10px;
}
.band-dark .section-header .kicker { color: #9fc4dd; }
.section-header h2 { font-size: 2.1rem; margin-bottom: 12px; }
.section-header p { color: var(--graphite); font-size: 1.05rem; }

/* Spec-sheet grid (services) */
.spec-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
}
.spec-grid.two-col { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 640px) { .spec-grid.two-col { grid-template-columns: 1fr; } }
.band-dark .spec-grid { background: var(--line-soft); border-color: var(--line-soft); }

.spec-card {
  background: var(--paper);
  padding: 32px 28px;
  position: relative;
}
.band-dark .spec-card { background: var(--blueprint); }
/* Old -> new comparison */
.compare {
  display: flex;
  align-items: stretch;
  gap: 10px;
  margin-bottom: 18px;
}
.compare-panel {
  flex: 1;
  border: 1.5px solid var(--border);
  background: #fff;
  padding: 12px;
  min-height: 96px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.compare-panel.is-new { border-color: var(--ink); }
.compare-label {
  align-self: flex-start;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.64rem;
  color: var(--graphite);
}
.compare-panel.is-new .compare-label { color: var(--flag-dark); }
.compare-arrow { flex-shrink: 0; color: var(--flag); align-self: center; }
@media (max-width: 460px) {
  .compare { flex-direction: column; align-items: stretch; }
  .compare-arrow { transform: rotate(90deg); align-self: center; }
}

/* Mock components used inside compare panels */
.mock-stack { width: 100%; display: flex; flex-direction: column; gap: 5px; }
.mock-bar { height: 12px; background: #ece8db; border: 1px solid var(--border); }

.mock-layout { width: 100%; border: 1.5px solid var(--ink); font-family: "IBM Plex Mono", monospace; font-size: 0.58rem; }
.mock-layout-header { background: var(--flag); color: #fff; padding: 4px 6px; }
.mock-layout-body { display: flex; }
.mock-layout-nav { flex: 0 0 32%; border-right: 1px solid var(--border); padding: 8px 6px; color: var(--graphite); }
.mock-layout-main { flex: 1; padding: 8px 6px; color: var(--graphite); }

.mock-overflow { width: 100%; height: 52px; border: 1.5px solid var(--border); overflow: hidden; position: relative; }
.mock-overflow-inner { position: absolute; inset: 0; width: 160%; background: repeating-linear-gradient(90deg, #e4e0d2, #e4e0d2 8px, #ece8db 8px, #ece8db 16px); }
.mock-overflow::after { content: ""; position: absolute; top: 0; right: 0; width: 22px; height: 100%; background: linear-gradient(90deg, transparent, #fff); }

.mock-devices { display: flex; align-items: flex-end; gap: 7px; }
.mock-device { border: 1.5px solid var(--ink); background: #fff; position: relative; }
.mock-device.phone { width: 18px; height: 34px; }
.mock-device.tablet { width: 30px; height: 44px; }
.mock-device.desktop { width: 52px; height: 52px; border-color: var(--flag); }
.mock-check { position: absolute; bottom: 3px; right: 3px; color: var(--flag); font-weight: 700; font-size: 0.6rem; line-height: 1; }

.mock-ring { position: relative; width: 64px; height: 64px; border-radius: 50%; background: conic-gradient(var(--ring-c, var(--graphite)) calc(var(--pct, 50) * 3.6deg), var(--border) 0); }
.mock-ring::after { content: ""; position: absolute; inset: 7px; background: #fff; border-radius: 50%; }
.mock-ring span { position: relative; z-index: 1; display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; font-family: "IBM Plex Mono", monospace; font-weight: 600; font-size: 0.85rem; color: var(--ink); }
.mock-ring-caption { font-family: "IBM Plex Mono", monospace; font-size: 0.62rem; color: var(--graphite); }
.compare-panel.is-new .mock-ring-caption { color: var(--flag-dark); }

.mock-serp { width: 100%; text-align: left; }
.mock-serp-url { font-family: "IBM Plex Mono", monospace; font-size: 0.6rem; color: var(--flag-dark); margin-bottom: 2px; }
.mock-serp-title { font-weight: 600; font-size: 0.78rem; color: var(--ink); margin-bottom: 5px; }
.mock-serp-line { height: 5px; background: var(--border); margin-bottom: 4px; }
.mock-serp-line.short { width: 60%; }
.mock-serp.is-muted .mock-serp-title { color: var(--graphite); font-weight: 400; }
.mock-serp.is-muted .mock-serp-url { color: var(--graphite); }

.mock-browsers { display: flex; gap: 5px; }
.mock-browser-win { width: 30px; height: 24px; border: 1.5px solid var(--border); position: relative; padding: 3px 3px 0; }
.mock-browser-win.is-ok { border-color: var(--ink); }
.mock-browser-win.is-broken { border-style: dashed; }
.mock-dot { width: 3px; height: 3px; border-radius: 50%; background: var(--graphite); display: inline-block; margin-right: 2px; }
.mock-mark { position: absolute; bottom: 1px; right: 3px; font-size: 0.6rem; font-weight: 700; line-height: 1; }
.mock-mark.is-fail { color: var(--flag-dark); }
.mock-mark.is-pass { color: var(--flag); }

.mock-cta-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; width: 100%; }
.mock-cta-grid div { height: 13px; background: var(--border); }
.mock-cta-focus { width: 100%; display: flex; flex-direction: column; align-items: center; gap: 7px; }
.mock-cta-focus .dim-row { width: 70%; height: 6px; background: var(--border); }
.mock-btn-mini { background: var(--flag); color: #fff; font-family: "IBM Plex Mono", monospace; font-size: 0.62rem; padding: 6px 14px; }

.mock-contrast { width: 60px; height: 34px; display: flex; align-items: center; justify-content: center; font-size: 0.68rem; }
.mock-contrast.is-fail { background: #e8e4d6; color: #c9c4b2; }
.mock-contrast.is-pass { background: var(--ink); color: #fff; }
.mock-focus-btn { border: 1.5px solid var(--ink); padding: 5px 12px; font-family: "IBM Plex Mono", monospace; font-size: 0.62rem; outline: 2px dashed var(--flag); outline-offset: 2px; background: #fff; color: var(--ink); }

.mock-chat { display: flex; flex-direction: column; gap: 10px; width: 100%; }
.mock-bubble { position: relative; background: #fff; border: 1.5px solid var(--border); padding: 5px 9px; font-family: "IBM Plex Mono", monospace; font-size: 0.6rem; color: var(--graphite); align-self: flex-start; }
.mock-bubble.is-us { border-color: var(--flag); color: var(--flag-dark); align-self: flex-end; }

.spec-card .num {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.78rem;
  color: var(--flag-dark);
  display: block;
  margin-bottom: 14px;
}
.band-dark .spec-card .num { color: #9fc4dd; }
.spec-card h3 { font-size: 1.2rem; margin-bottom: 10px; }
.spec-card p { color: var(--graphite); font-size: 0.96rem; }
.band-dark .spec-card p { color: #bcd2e3; }

/* Process (legitimate sequence — kept numbered) */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0;
  border-top: 1.5px solid var(--line-soft);
  border-bottom: 1.5px solid var(--line-soft);
}
.step {
  padding: 28px 24px;
  border-right: 1.5px solid var(--line-soft);
}
.step:last-child { border-right: none; }
.step .num { font-family: "IBM Plex Mono", monospace; font-size: 1.4rem; color: var(--flag); display: block; margin-bottom: 10px; }
.step h3 { font-size: 1.05rem; margin-bottom: 6px; color: #fff; }
.step p { color: #bcd2e3; font-size: 0.92rem; }

/* About */
.about-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 56px;
  align-items: start;
}
@media (max-width: 820px) { .about-grid { grid-template-columns: 1fr; } }
.about-grid p { color: var(--graphite); max-width: 62ch; }
.about-grid p + p { margin-top: 14px; }

.stat-row { display: flex; gap: 36px; margin-top: 28px; flex-wrap: wrap; }
.stat { border-left: 2px solid var(--flag); padding-left: 14px; }
.stat h3 { font-family: "IBM Plex Mono", monospace; font-size: 1.5rem; color: var(--ink); }
.stat p { color: var(--graphite); font-size: 0.85rem; margin-top: 2px; }

.about-card-stack { display: flex; flex-direction: column; gap: 1px; background: var(--border); border: 1px solid var(--border); }
.about-card-stack .spec-card { padding: 26px; }

/* ===== Portfolio spec-sheets ===== */
.portfolio-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; }

.portfolio-card {
  border: 1.5px solid var(--ink);
  background: #fff;
  position: relative;
}
.portfolio-card::before {
  content: "";
  position: absolute;
  top: -1.5px; left: -1.5px;
  width: 14px; height: 14px;
  border-top: 1.5px solid var(--flag);
  border-left: 1.5px solid var(--flag);
}
.browser-chrome {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 10px 14px;
  border-bottom: 1.5px solid var(--ink);
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.76rem;
  color: var(--graphite);
}
.browser-chrome .dot { width: 6px; height: 6px; border-radius: 50%; border: 1px solid var(--graphite); }
.browser-chrome .url { margin-left: 4px; }

.portfolio-preview {
  height: 168px;
  position: relative;
  display: flex;
  align-items: flex-end;
  padding: 16px;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.74rem;
  color: rgba(255,255,255,.85);
  background: var(--blueprint);
  background-image: linear-gradient(var(--line-soft) 1px, transparent 1px), linear-gradient(90deg, var(--line-soft) 1px, transparent 1px);
  background-size: 28px 28px;
}

.portfolio-body { padding: 24px; }
.portfolio-body h3 { font-size: 1.15rem; margin-bottom: 8px; }
.portfolio-body p { color: var(--graphite); font-size: 0.92rem; margin-bottom: 16px; }
.tag-row { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 18px; }
.tag {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.72rem;
  padding: 4px 9px;
  border: 1px solid var(--border);
  color: var(--graphite);
}
.portfolio-body .btn { padding: 10px 18px; font-size: 0.88rem; }

.trust-strip {
  border-top: 1.5px solid var(--border);
  border-bottom: 1.5px solid var(--border);
  padding: 22px 0;
}
.trust-strip .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}
.trust-strip p { color: var(--graphite); font-size: 0.92rem; }
.trust-strip a { color: var(--ink); font-weight: 600; border-bottom: 1.5px solid var(--flag); }

/* ===== Contact / work order ===== */
.work-order {
  border: 1.5px solid var(--ink);
  padding: 40px;
  position: relative;
  background: #fff;
}
.work-order::before {
  content: "";
  position: absolute;
  top: -1.5px; left: -1.5px;
  width: 16px; height: 16px;
  border-top: 1.5px solid var(--flag);
  border-left: 1.5px solid var(--flag);
}
.work-order .doc-id {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.78rem;
  color: var(--graphite);
  margin-bottom: 26px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--border);
}

.contact-wrap { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 48px; }
@media (max-width: 860px) { .contact-wrap { grid-template-columns: 1fr; } }

.form-group { margin-bottom: 20px; }
label {
  display: block;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.78rem;
  color: var(--graphite);
  margin-bottom: 7px;
}
input, textarea, select {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid var(--border);
  background: var(--paper);
  font-size: 1rem;
  font-family: "IBM Plex Sans", sans-serif;
  color: var(--ink);
}
input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: var(--ink);
}
textarea { resize: vertical; min-height: 120px; }

.form-status {
  margin-top: 16px;
  padding: 12px 14px;
  border: 1.5px solid;
  font-size: 0.9rem;
  display: none;
}
.form-status.show { display: block; }
.form-status.success { background: #eef7f1; color: var(--success); border-color: var(--success); }
.form-status.error { background: #fbeee7; color: var(--error); border-color: var(--error); }

.contact-info-card {
  border: 1.5px solid var(--ink);
  padding: 30px;
}
.contact-info-card .item { display: flex; gap: 16px; margin-bottom: 22px; padding-bottom: 22px; border-bottom: 1px solid var(--border); }
.contact-info-card .item:last-of-type { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }
.contact-info-card .item .label { font-family: "IBM Plex Mono", monospace; font-size: 0.76rem; color: var(--flag-dark); display: block; margin-bottom: 4px; }
.contact-info-card .item a, .contact-info-card .item p { color: var(--graphite); font-size: 0.95rem; }
.contact-info-card .item a:hover { color: var(--ink); }

.map-frame { width: 100%; height: 200px; border: 1.5px solid var(--ink); margin-top: 18px; filter: grayscale(0.3); }

/* ===== Footer ===== */
footer {
  background: var(--ink);
  color: #a8b0ba;
  padding: 56px 0 26px;
}
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 36px; margin-bottom: 40px; }
@media (max-width: 768px) { .footer-grid { grid-template-columns: 1fr; } }
footer .logo { color: #fff; }
footer .logo .mark { border-color: #fff; }
footer p { color: #8891a0; font-size: 0.92rem; }
footer h2 { color: #fff; font-family: "IBM Plex Mono", monospace; font-size: 0.82rem; font-weight: 500; margin-bottom: 16px; }
footer ul li { margin-bottom: 10px; }
footer ul li a { color: #8891a0; font-size: 0.92rem; }
footer ul li a:hover { color: #fff; }
.footer-bottom {
  border-top: 1px solid #262e38;
  padding-top: 22px;
  font-size: 0.85rem;
  color: #8891a0;
}

/* ===== CTA band ===== */
.cta-band {
  background: var(--flag-dark);
  color: #fff;
  padding: 60px 0;
}
.cta-band .container { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.cta-band h2 { font-size: 1.7rem; color: #fff; margin-bottom: 6px; }
.cta-band p { color: rgba(255,255,255,.92); }
.cta-band .btn-outline-light { border-color: #fff; color: #fff; }
.cta-band .btn-outline-light:hover { background: #fff; color: var(--flag-dark); }

/* ===== Mobile nav ===== */
@media (max-width: 900px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: var(--paper);
    flex-direction: column;
    align-items: flex-start;
    padding: 22px 28px;
    border-bottom: 1.5px solid var(--ink);
    display: none;
    gap: 18px;
  }
  .nav-links.open { display: flex; }
}

@media (max-width: 768px) {
  .hero-copy h1 { font-size: 2.1rem; }
  .cta-band .container { flex-direction: column; align-items: flex-start; }
}

/* ===== Buttons: press feedback ===== */
.btn:active { transform: translateY(1px); }

/* ===== Loader (form submit) ===== */
.spinner {
  display: inline-block;
  width: 14px;
  height: 14px;
  margin-right: 8px;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-top-color: #fff;
  border-radius: 50%;
  vertical-align: -2px;
  animation: spin 0.7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ===== Background pattern (site-wide, on every hero) ===== */
.hero { position: relative; overflow: hidden; }
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(var(--border) 1px, transparent 1px);
  background-size: 26px 26px;
  opacity: 0.5;
  pointer-events: none;
}
.hero .container { position: relative; z-index: 1; }

/* ===== Tooltip ===== */
.tip {
  position: relative;
  cursor: help;
  border-bottom: 1px dashed var(--border);
}
.tip::after {
  content: attr(data-tip);
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  background: var(--ink);
  color: #fff;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.68rem;
  padding: 6px 10px;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.15s;
  z-index: 20;
}
.tip:hover::after, .tip:focus-visible::after { opacity: 1; visibility: visible; }

/* ===== Featured ribbon (cards) ===== */
.ribbon {
  position: absolute;
  top: 0;
  right: 0;
  background: var(--flag);
  color: #fff;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.62rem;
  letter-spacing: 0.02em;
  padding: 4px 10px;
  z-index: 2;
}

/* ===== Input focus corner-tick reveal ===== */
.input-wrap { position: relative; }
.input-wrap::before, .input-wrap::after {
  content: "";
  position: absolute;
  width: 9px;
  height: 9px;
  border: 1.5px solid var(--flag);
  opacity: 0;
  transition: opacity 0.15s;
  pointer-events: none;
}
.input-wrap::before { top: -1.5px; left: -1.5px; border-right: none; border-bottom: none; }
.input-wrap::after { bottom: -1.5px; right: -1.5px; border-left: none; border-top: none; }
.input-wrap:focus-within::before, .input-wrap:focus-within::after { opacity: 1; }
.field-check {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--flag);
  font-weight: 700;
  font-size: 0.9rem;
  opacity: 0;
  transition: opacity 0.15s;
  pointer-events: none;
}
.field-check.show { opacity: 1; }

/* ===== Radio chips ===== */
.radio-group { display: flex; gap: 8px; flex-wrap: wrap; }
.radio-chip {
  margin: 0;
  border: 1.5px solid var(--border);
  padding: 8px 14px;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.76rem;
  color: var(--graphite);
  cursor: pointer;
  user-select: none;
}
.radio-chip input { position: absolute; opacity: 0; width: 0; height: 0; }
.radio-chip:has(input:checked) { border-color: var(--flag); color: var(--flag-dark); background: #fef3ee; }

/* ===== Checkbox ===== */
.checkbox-row {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.88rem;
  color: var(--graphite);
  cursor: pointer;
  user-select: none;
}
.checkbox-box {
  width: 18px;
  height: 18px;
  border: 1.5px solid var(--ink);
  flex-shrink: 0;
  position: relative;
}
.checkbox-row input { position: absolute; opacity: 0; width: 0; height: 0; }
.checkbox-row:has(input:checked) .checkbox-box { background: var(--flag); border-color: var(--flag); }
.checkbox-row:has(input:checked) .checkbox-box::after {
  content: "";
  position: absolute;
  left: 5px;
  top: 1px;
  width: 5px;
  height: 9px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

/* ===== Location pills (service area) ===== */
.location-pills { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.location-pill {
  border: 1.5px solid var(--border);
  padding: 6px 12px;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.76rem;
  color: var(--graphite);
  transition: border-color 0.15s, color 0.15s;
}
.location-pill:hover, .location-pill:focus-visible { border-color: var(--flag); color: var(--flag-dark); }

/* ===== Cookie notice ===== */
.cookie-notice {
  position: fixed;
  left: 16px; right: 16px; bottom: 16px;
  max-width: 480px;
  margin: 0 auto;
  background: var(--ink);
  color: #e5e7eb;
  border: 1.5px solid var(--flag);
  padding: 18px 20px;
  font-size: 0.9rem;
  z-index: 200;
  display: none;
}
.cookie-notice.show { display: block; }
.cookie-notice p { margin-bottom: 12px; line-height: 1.5; }
.cookie-notice .actions { display: flex; gap: 10px; }
.cookie-notice .btn { padding: 8px 16px; font-size: 0.85rem; }

/* ===== Mini process list (contact page sidebar) ===== */
.mini-steps { border: 1.5px solid var(--border); padding: 24px; margin-bottom: 24px; }
.mini-steps h3 { font-size: 1rem; margin-bottom: 16px; }
.mini-steps ol { counter-reset: mini-step; }
.mini-steps li {
  counter-increment: mini-step;
  display: flex;
  gap: 12px;
  padding: 10px 0;
  border-top: 1px solid var(--border);
  font-size: 0.92rem;
  color: var(--graphite);
}
.mini-steps li:first-child { border-top: none; padding-top: 0; }
.mini-steps li::before {
  content: counter(mini-step, decimal-leading-zero);
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.8rem;
  color: var(--flag-dark);
  flex-shrink: 0;
}

/* ===== FAQ ===== */
.faq-list { border-top: 1.5px solid var(--border); max-width: 760px; }
.faq-item { border-bottom: 1.5px solid var(--border); }
.faq-item summary {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px 4px;
  cursor: pointer;
  list-style: none;
  font-family: "Space Grotesk", sans-serif;
  font-weight: 600;
  font-size: 1.02rem;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary .faq-num { font-family: "IBM Plex Mono", monospace; font-weight: 400; font-size: 0.85rem; color: var(--flag-dark); flex-shrink: 0; }
.faq-item summary .faq-icon {
  margin-left: auto;
  flex-shrink: 0;
  width: 18px; height: 18px;
  position: relative;
}
.faq-item summary .faq-icon::before, .faq-item summary .faq-icon::after {
  content: "";
  position: absolute;
  background: var(--ink);
  transition: transform 0.15s;
}
.faq-item summary .faq-icon::before { top: 8px; left: 2px; width: 14px; height: 1.6px; }
.faq-item summary .faq-icon::after { top: 2px; left: 8px; width: 1.6px; height: 14px; }
.faq-item[open] summary .faq-icon::after { transform: rotate(90deg); opacity: 0; }
.faq-item p { padding: 0 4px 22px 40px; color: var(--graphite); max-width: 62ch; }
