/* ============================================================
   SCL Gateway — palette D (Bright). Tokens first; change here only.
   ============================================================ */
:root {
  /* azure */
  --azure-900: #08355A;
  --azure-800: #0E4F82;
  --azure-600: #1668A8;
  --azure-500: #2E90E5;
  --azure-100: #E7F1FB;

  /* orange — accent. Never white text on it. */
  --orange-500: #F5A623;
  --orange-600: #DB9012;
  --orange-700: #9A6207;   /* orange as TEXT on white (5.1:1) */
  --orange-100: #FDF1DC;

  /* neutrals */
  --ink:      #14202B;
  --muted:    #4E6076;
  --line:     #D6DEE7;
  --subtle:   #F1F4F8;
  --white:    #FFFFFF;
  --on-dark:  #C3D0DC;     /* muted text on azure-800 (5.4:1) */

  /* status */
  --st-transit: #1668A8;
  --st-action:  #F5A623;
  --st-cleared: #1F7A4D;
  --st-held:    #B3261E;
  --st-cold:    #0E7C8A;
  --st-done:    #4E6076;

  --display: 'Archivo', system-ui, sans-serif;
  --body:    'IBM Plex Sans', system-ui, sans-serif;
  --mono:    'IBM Plex Mono', ui-monospace, monospace;

  --wrap: 1200px;
  --gutter: 20px;
  --radius: 5px;
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--white);
  overflow-x: hidden;           /* belt and braces against a stray wide child */
}

img, svg { max-width: 100%; }
hr { border: 0; border-top: 1px solid var(--line); margin: 0; }

h1, h2, h3 { font-family: var(--display); letter-spacing: -0.022em; margin: 0; }
h1 { font-size: clamp(2.5rem, 7vw, 4.125rem); font-weight: 700; line-height: 1.02; letter-spacing: -0.032em; }
h2 { font-size: clamp(1.65rem, 3.6vw, 2.5rem); font-weight: 700; line-height: 1.12; letter-spacing: -0.026em; }
h3 { font-size: 1.1875rem; font-weight: 600; line-height: 1.35; letter-spacing: -0.012em; }
p  { margin: 0; }

a { color: var(--azure-600); }
a:hover { color: var(--azure-800); }

:focus-visible {
  outline: 3px solid var(--orange-500);
  outline-offset: 2px;
  border-radius: 2px;
}

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

.skip {
  position: absolute; left: -9999px;
  background: var(--ink); color: var(--white);
  padding: 12px 18px; z-index: 100; border-radius: 0 0 var(--radius) 0;
}
.skip:focus { left: 0; top: 0; color: var(--white); }

/* ── the mark ───────────────────────────────────────────── */
.mark { width: 62px; height: 27px; flex: none; fill: none; stroke-width: 7; stroke-linejoin: round; }
.mark .mk-mid { stroke: var(--orange-500); }
.mark--rev .mk-out { stroke: var(--white); }
.mark--pri .mk-out { stroke: var(--azure-800); }

.lockup, .foot-brand { display: flex; align-items: center; gap: 11px; text-decoration: none; }
.lockup { min-height: 44px; }   /* touch target */
.wordmark { font-family: var(--display); font-size: 1.4375rem; font-weight: 700; letter-spacing: -0.03em; white-space: nowrap; }
.wm-a { color: var(--white); }
.wm-b { color: var(--orange-500); }

/* ── buttons ────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  min-height: 52px; padding: 0 26px;
  border: 1px solid transparent; border-radius: var(--radius);
  font: 600 0.9375rem/1 var(--body); text-decoration: none; cursor: pointer;
  transition: background-color .15s ease, border-color .15s ease;
}
.btn--accent { background: var(--orange-500); color: var(--ink); }   /* ink on orange = 8.1:1 */
.btn--accent:hover { background: var(--orange-600); color: var(--ink); }
.btn--ghost { border-color: rgba(255,255,255,.42); color: var(--white); background: transparent; }
.btn--ghost:hover { border-color: var(--white); color: var(--white); background: rgba(255,255,255,.08); }
.btn--sm { min-height: 44px; padding: 0 18px; font-size: 0.875rem; }
.btn--full { width: 100%; }
.btn[disabled] { opacity: .6; cursor: not-allowed; }

.ico { width: 20px; height: 20px; flex: none; fill: currentColor; }
.ico--lg { width: 30px; height: 30px; }

/* ── header ─────────────────────────────────────────────── */
.site-head { background: var(--azure-800); }
.head-inner {
  display: flex; align-items: center; gap: 16px 32px;
  flex-wrap: wrap; padding-block: 16px;
}
.head-nav { display: flex; flex-wrap: wrap; gap: 10px 28px; margin-right: auto; }
.head-nav a {
  color: var(--on-dark); text-decoration: none;
  font-size: 0.875rem; font-weight: 500;
  min-height: 44px; display: inline-flex; align-items: center;
}
.head-nav a:hover { color: var(--white); }
@media (max-width: 720px) {
  .head-inner { justify-content: space-between; }
  .head-nav { order: 3; width: 100%; margin-right: 0; gap: 4px 20px; }
  /* The hero's WhatsApp CTA sits just below, on the same first screen. Two identical
     buttons stacked is noise, not redundancy — and it costs a whole header row. */
  .head-cta { display: none; }
}

/* ── hero ───────────────────────────────────────────────── */
.hero { background: var(--azure-800); color: var(--white); padding-block: clamp(48px, 8vw, 76px); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.85fr); gap: clamp(32px, 5vw, 64px); align-items: start; }
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; } }

.hero-copy h1 { color: var(--white); margin-top: 22px; }
.lede { color: var(--on-dark); font-size: clamp(1rem, 1.6vw, 1.125rem); line-height: 1.6; margin-top: 22px; max-width: 34em; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  min-height: 30px; padding: 0 13px;
  border: 1px solid rgba(255,255,255,.3); border-radius: 999px;
  font: 500 0.6875rem/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--white);
}
.dot { width: 7px; height: 7px; border-radius: 999px; background: var(--orange-500); }

.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }

/* ── the example record card ────────────────────────────── */
.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); }
.record { color: var(--ink); border-color: transparent; }
.record-head {
  display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  padding: 16px 20px; border-bottom: 1px solid var(--line);
}
.record-body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 14px; }

.micro { font: 500 0.6875rem/1.4 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.data  { font-family: var(--mono); font-size: 0.8125rem; color: var(--ink); }
.label { font-size: 0.75rem; font-weight: 500; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); margin-bottom: 9px; }
.note  { font-size: 0.8125rem; line-height: 1.5; color: var(--muted); }

.chips { display: flex; flex-wrap: wrap; gap: 7px; }
.chip {
  display: inline-flex; align-items: center; min-height: 32px; padding: 0 13px;
  border-radius: 3px; font-size: 0.8125rem; font-weight: 600;
}
.chip--action  { background: var(--st-action);  color: var(--ink); }
.chip--cold    { background: var(--st-cold);    color: var(--white); }

.rows { margin: 0; display: flex; flex-direction: column; gap: 10px; }
.rows > div { display: flex; justify-content: space-between; align-items: baseline; gap: 14px; font-size: 0.875rem; }
.rows dt { color: var(--muted); }
.rows dd { margin: 0; text-align: right; }

/* ── generic section furniture ──────────────────────────── */
.section { padding-block: clamp(56px, 8vw, 88px); }
.section--tint { background: var(--subtle); }

.kicker { font: 500 0.6875rem/1.4 var(--mono); letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin-bottom: 12px; }
.kicker--on-dark { color: var(--on-dark); }
.section-lede { margin-top: 18px; max-width: 62ch; color: var(--muted); font-size: 1.0625rem; }

.fineprint { margin-top: 20px; font-size: 0.8125rem; line-height: 1.55; color: var(--muted); }

/* ── the chain ──────────────────────────────────────────── */
.chain {
  list-style: none; margin: 40px 0 0; padding: 0;
  /* 240px min lands on 4 columns at full width, so 7 steps read 4 + 3 rather than 5 + 2. */
  display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 28px 26px;
}
.chain li { border-top: 3px solid var(--line); padding-top: 15px; }
.chain li:first-child { border-top-color: var(--orange-500); }
.step { display: block; font: 500 0.6875rem/1 var(--mono); letter-spacing: .14em; color: var(--orange-700); margin-bottom: 9px; }
.chain h3 { margin-bottom: 7px; }
.chain p { font-size: 0.875rem; line-height: 1.58; color: var(--muted); }

/* ── release band ───────────────────────────────────────── */
.band { background: var(--azure-900); color: var(--white); padding-block: clamp(40px, 6vw, 60px); }
.band-inner { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: clamp(28px, 4vw, 52px); align-items: center; }
@media (max-width: 860px) { .band-inner { grid-template-columns: 1fr; } }

.band-statement {
  font-family: var(--display); font-weight: 500;
  font-size: clamp(1.125rem, 2.1vw, 1.4375rem); line-height: 1.42; letter-spacing: -0.012em;
  max-width: 36em;
}
.band-chain { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; }
.bc {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 76px; min-height: 36px; padding: 0 11px; border-radius: 3px;
  font-size: 0.6875rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase;
}
.bc--transit { background: var(--st-transit); color: var(--white); }
.bc--action  { background: var(--st-action);  color: var(--ink); }
.bc--neutral { background: var(--subtle);     color: var(--muted); }
.bc--cleared { background: var(--st-cleared); color: var(--white); }
.bc--done    { background: var(--st-done);    color: var(--white); }

/* ── facility ───────────────────────────────────────────── */
.zones {
  list-style: none; margin: 40px 0 0; padding: 0;
  /* 9 zones on a 3-wide grid = 3 full rows. A 4-wide grid would leave 3 empty cells
     showing as bare grey blocks, because the 1px gaps ARE the borders here. */
  display: grid; grid-template-columns: repeat(auto-fit, minmax(330px, 1fr)); gap: 1px;
  background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
}
.zones li { background: var(--white); padding: 20px 22px; }
.zones h3 { font-size: 1rem; margin-bottom: 6px; }
.zones p { font-size: 0.8125rem; line-height: 1.55; color: var(--muted); }

.pillars { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 28px; margin-top: 36px; }
.pillars > div { border-top: 3px solid var(--azure-800); padding-top: 15px; }
.pillars h3 { margin-bottom: 8px; }
.pillars p { font-size: 0.875rem; line-height: 1.58; color: var(--muted); }

/* ── services ───────────────────────────────────────────── */
.services { display: grid; grid-template-columns: repeat(auto-fit, minmax(330px, 1fr)); gap: 26px 30px; margin-top: 40px; }
.svc { border-top: 3px solid var(--line); padding-top: 15px; }
.svc h3 { margin-bottom: 7px; }
.svc p { font-size: 0.875rem; line-height: 1.58; color: var(--muted); }

.notice {
  margin-top: 40px; padding: 22px 26px;
  background: var(--orange-100); border: 1px solid var(--orange-500); border-left-width: 4px;
  border-radius: var(--radius);
}
.notice-kicker { color: var(--orange-700); margin-bottom: 10px; }
.notice p:last-child { font-size: 0.9375rem; line-height: 1.6; }

/* ── contact ────────────────────────────────────────────── */
.contact-grid { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(28px, 4vw, 48px); margin-top: 40px; align-items: start; }
@media (max-width: 880px) { .contact-grid { grid-template-columns: 1fr; } }

.wa-card {
  display: flex; align-items: center; gap: 16px;
  padding: 20px 22px; min-height: 44px;
  background: var(--azure-800); color: var(--white); text-decoration: none;
  border-radius: var(--radius);
  transition: background-color .15s ease;
}
.wa-card:hover { background: var(--azure-900); color: var(--white); }
.wa-card strong { display: block; font-size: 1rem; }
.wa-sub { display: block; font-size: 0.8125rem; color: var(--on-dark); margin-top: 3px; }

.details { margin: 26px 0 0; display: flex; flex-direction: column; gap: 16px; }
.details > div { display: grid; grid-template-columns: 116px minmax(0, 1fr); gap: 12px; }
.details dt { font-size: 0.75rem; font-weight: 500; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); padding-top: 2px; }
.details dd { margin: 0; font-size: 0.9375rem; }
.details dd a { display: inline-flex; align-items: center; min-height: 44px; }   /* touch target */

/* ── form ───────────────────────────────────────────────── */
.form { padding: 26px; display: flex; flex-direction: column; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 7px; }
.field-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 16px; }

.form label { font-size: 0.8125rem; font-weight: 600; color: var(--ink); }
.req { color: var(--orange-700); }

.form input, .form select, .form textarea {
  font-family: var(--body);
  font-size: 16px;                       /* 16px or iOS zooms the page on focus */
  color: var(--ink); background: var(--white);
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 12px 14px; min-height: 48px;
  width: 100%;
}
.form textarea { min-height: 112px; resize: vertical; line-height: 1.55; }
.form input:hover, .form select:hover, .form textarea:hover { border-color: var(--muted); }
.form input:focus, .form select:focus, .form textarea:focus { border-color: var(--azure-600); }
.form ::placeholder { color: var(--muted); opacity: .75; }

.form-status { font-size: 0.875rem; line-height: 1.5; min-height: 1.5em; }
.is-pending { color: var(--muted); }
.is-ok  { color: var(--st-cleared); font-weight: 600; }
.is-err { color: var(--st-held);    font-weight: 600; }

/* ── footer ─────────────────────────────────────────────── */
.site-foot { background: var(--azure-900); color: var(--on-dark); padding-block: 40px; }
.foot-inner { display: flex; flex-direction: column; gap: 20px; }
.foot-legal { font: 400 0.75rem/1.7 var(--mono); letter-spacing: .02em; }
.foot-legal a { color: inherit; }
.foot-copy  { font-size: 0.8125rem; color: var(--on-dark); }
