/* Public site: landing + help centre.
   Deliberately NOT the app's stylesheet. The hub is a dark instrument you work
   inside; this is the daylight face of the studio that operates it.

   Type rule that drives the whole page: MONO IS THE MACHINE'S VOICE — every
   number the system owns (response targets, prices, cadence, refs, status) is
   set in mono. The sans is the studio's voice — everything a person wrote.
   External fonts are blocked by the CSP (font-src 'self'), so personality comes
   from weight, tracking, and that split, not from a downloaded typeface. */

:root {
  /* Warm bone and ink, with one live signal. Every neutral here is warm on
     purpose — no grey. Change these eight values and the landing page, the
     help centre, and the article pages all follow. */
  --paper:  #F7F2E9;  /* warm bone page */
  --panel:  #FFFDF8;  /* warm white — cards lift off the paper */
  --ink:    #191510;  /* warm near-black: text, dark bars, buttons */
  --slate:  #6A5F51;  /* warm taupe secondary text */
  --line:   #E4DAC7;  /* warm borders and rules */
  --signal: #00785A;  /* the "up" light — jade, not acid */
  --caution:#A8480B;  /* used once, on the urgent target */
  --action: #4F46E5;  /* ties to the hub's indigo */

  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "Cascadia Mono", "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;

  --gut: clamp(20px, 5vw, 64px);
  --maxw: 1180px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gut); min-width: 0; }

/* Micro-labels: the machine annotating the page. */
.tag {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--slate);
}

/* ---------- nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 20;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav-in { display: flex; align-items: center; gap: 22px; height: 62px; }

/* Lockup: the mark, then the name in the studio's voice and the descriptor in
   the machine's — the same sans/mono split the rest of the page runs on. */
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; margin-right: auto; }
.brand .mark { width: 30px; height: 30px; flex: none; color: var(--ink); }
.brand .wm { display: flex; flex-direction: column; line-height: 1; }
.brand .wm b { font-weight: 800; letter-spacing: -0.025em; font-size: 16.5px; }
.brand .wm i {
  font-family: var(--mono); font-style: normal; font-size: 9.5px;
  letter-spacing: 0.17em; text-transform: uppercase; color: var(--slate); margin-top: 3px;
}
/* Under ~380px the descriptor is the first thing to go — the mark and the name
   carry the brand on their own. */
@media (max-width: 380px) { .brand .wm i { display: none; } }
.nav a.link {
  font-family: var(--mono); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase;
  text-decoration: none; color: var(--slate); padding: 6px 0; border-bottom: 1px solid transparent;
}
.nav a.link:hover { color: var(--ink); border-bottom-color: var(--ink); }
@media (max-width: 640px) { .nav a.link.hide-sm { display: none; } }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--mono); font-size: 12.5px; letter-spacing: 0.06em; text-transform: uppercase;
  padding: 12px 20px; border-radius: 8px; text-decoration: none;
  border: 1px solid var(--ink); background: transparent; color: var(--ink);
  cursor: pointer; transition: transform .12s ease, background .12s ease, color .12s ease;
}
.btn:hover { transform: translateY(-1px); background: var(--ink); color: #fff; }
.btn.solid { background: var(--ink); color: #fff; }
.btn.solid:hover { background: var(--action); border-color: var(--action); }
.btn.ghost { border-color: var(--line); color: var(--slate); }
.btn.ghost:hover { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn.sm { padding: 8px 14px; font-size: 11.5px; }

:focus-visible { outline: 2px solid var(--action); outline-offset: 3px; border-radius: 4px; }

/* ---------- hero ---------- */
/* Two columns on desktop: the claim on the left, the instrument that backs it
   on the right. The readout is the page's thesis, so it sits beside the
   headline rather than below it — and it fills what was dead space. */
.hero { padding: clamp(44px, 7vw, 88px) 0 clamp(20px, 3vw, 40px); }
.hero-in {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: clamp(30px, 5vw, 68px);
  align-items: center;
}
/* A grid track's default min-width is auto, so it refuses to shrink below its
   content and pushes the whole page wider than the screen. min-width:0 lets
   these columns actually be fluid. */
.hero-in > * { min-width: 0; }
@media (max-width: 980px) { .hero-in { grid-template-columns: 1fr; } }

.pulse-row { display: flex; align-items: center; gap: 10px; margin-bottom: 26px; }
.dot {
  width: 8px; height: 8px; border-radius: 50%; background: var(--signal);
  box-shadow: 0 0 0 0 color-mix(in srgb, var(--signal) 70%, transparent);
  animation: pulse 2.4s ease-out infinite;
}
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 color-mix(in srgb, var(--signal) 60%, transparent); }
  70%  { box-shadow: 0 0 0 9px color-mix(in srgb, var(--signal) 0%, transparent); }
  100% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--signal) 0%, transparent); }
}

h1 {
  font-size: clamp(40px, 5.6vw, 68px);
  line-height: 0.99;
  letter-spacing: -0.042em;
  font-weight: 800;
  margin: 0 0 22px;
  max-width: 13ch;
}
h1 em { font-style: normal; color: var(--slate); }

.lede { font-size: clamp(16px, 1.5vw, 18.5px); color: var(--slate); max-width: 46ch; margin: 0 0 30px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- signature: the response-target readout ---------- */
/* The studio's actual SLA promise, rendered as the instrument it really is.
   Values come from the server's live config, so they cannot drift from what
   the hub actually enforces. */
.readout {
  border: 1px solid var(--ink);
  border-radius: 14px;
  background: var(--panel);
  overflow: hidden;
  box-shadow: 0 18px 40px -28px rgba(25, 21, 16, .45);
}
.readout-head {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  padding: 13px 18px;
  background: var(--ink); color: #fff;
}
.readout-head .tag { color: #B3A794; }

/* Stacked rows: one target per line, read like a rack unit. */
.targets { display: block; }
.target {
  display: flex; align-items: baseline; gap: 16px;
  padding: 18px 20px; border-top: 1px solid var(--line);
}
.target:first-child { border-top: 0; }
.target .lvl {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--slate); width: 68px; flex: none;
}
.target .val {
  font-family: var(--mono); font-weight: 700; letter-spacing: -0.03em;
  font-size: 30px; line-height: 1; flex: none; min-width: 116px;
}
.target.urgent .val { color: var(--caution); }
.target .sub { font-size: 13px; color: var(--slate); margin-left: auto; text-align: right; min-width: 0; }

/* Below ~560px the fixed label/value widths above are what force the overflow —
   drop them and let the row wrap instead. */
@media (max-width: 560px) {
  .target { flex-wrap: wrap; gap: 4px 12px; padding: 16px 16px; }
  .target .lvl { width: auto; }
  .target .val { min-width: 0; font-size: 26px; }
  .target .sub { margin-left: 0; width: 100%; text-align: left; }
  .readout-head { padding: 12px 16px; }
}

/* ---------- sections ---------- */
.sec { padding: clamp(56px, 9vw, 108px) 0; }
.sec-head { margin-bottom: 36px; }
.sec-head h2 {
  font-size: clamp(26px, 3.6vw, 40px); letter-spacing: -0.035em; font-weight: 760;
  /* Display type sets its own leading — body's 1.55 leaves a two-line heading
     looking like two unrelated sentences. */
  line-height: 1.06;
  margin: 10px 0 0; max-width: 20ch;
}
.sec-head p { color: var(--slate); max-width: 56ch; margin: 12px 0 0; }

.rule { height: 1px; background: var(--line); }

/* ---------- doors: three ways in ---------- */
/* Not numbered: these are a choice between destinations, not a sequence. */
.doors { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media (max-width: 900px) { .doors { grid-template-columns: 1fr; } }
.door {
  display: flex; flex-direction: column; gap: 10px;
  padding: 26px; border: 1px solid var(--line); border-radius: 14px;
  background: var(--panel); text-decoration: none;
  transition: border-color .14s ease, transform .14s ease;
}
.door:hover { border-color: var(--ink); transform: translateY(-2px); }
.door h3 { margin: 6px 0 0; font-size: 21px; letter-spacing: -0.02em; }
.door p { margin: 0; color: var(--slate); font-size: 15px; flex: 1; }
.door .go { font-family: var(--mono); font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; margin-top: 6px; }
.door .go::after { content: " →"; }

/* ---------- offer ---------- */
.offer { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
/* The paid build tiers. Flow rather than a fixed count: the catalogue grows
   (a free tier, then a mobile app), and every hard-coded column count has
   eventually stranded a card alone on its own row. */
.offer.flow { grid-template-columns: repeat(auto-fit, minmax(215px, 1fr)); }
@media (max-width: 900px) { .offer { grid-template-columns: 1fr; } }
@media (max-width: 620px) { .offer.flow { grid-template-columns: 1fr; } }
.card {
  padding: 26px; border: 1px solid var(--line); border-radius: 14px; background: var(--panel);
  display: flex; flex-direction: column;
}
.card h3 { margin: 8px 0 8px; font-size: 20px; letter-spacing: -0.02em; }
.card p { margin: 0 0 16px; color: var(--slate); font-size: 15px; }
.card .price { font-family: var(--mono); font-weight: 700; font-size: 27px; letter-spacing: -0.03em; }
.card .price small { font-weight: 400; font-size: 12px; color: var(--slate); letter-spacing: 0.04em; }
.list { list-style: none; padding: 0; margin: 0 0 20px; flex: 1; }
.list li { font-size: 14.5px; color: var(--slate); padding: 7px 0 7px 20px; position: relative; border-top: 1px solid var(--line); }
.list li:first-child { border-top: 0; }
.list li::before {
  content: ""; position: absolute; left: 2px; top: 15px;
  width: 6px; height: 6px; border-radius: 50%; background: var(--signal);
}

/* ---------- help strip ---------- */
.help-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.help-item {
  display: block; padding: 20px; border: 1px solid var(--line); border-radius: 12px;
  background: var(--panel); text-decoration: none; transition: border-color .14s ease;
}
.help-item:hover { border-color: var(--ink); }
.help-item h4 { margin: 8px 0 6px; font-size: 16.5px; letter-spacing: -0.01em; }
.help-item p { margin: 0; font-size: 14px; color: var(--slate); }

/* ---------- footer ---------- */
.foot { border-top: 1px solid var(--line); padding: 40px 0 56px; }
.foot-in { display: flex; flex-wrap: wrap; gap: 18px; align-items: center; justify-content: space-between; }
.foot a { font-family: var(--mono); font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; text-decoration: none; color: var(--slate); }
.foot a:hover { color: var(--ink); }

/* ---------- help centre page ---------- */
.doc { max-width: 760px; }
.doc h1 { font-size: clamp(30px, 4.6vw, 46px); max-width: none; margin-bottom: 14px; }
.doc-body { font-size: 17px; }
.doc-body h2 { font-size: 24px; letter-spacing: -0.02em; margin: 34px 0 10px; }
.doc-body h3 { font-size: 19px; margin: 26px 0 8px; }
.doc-body p { margin: 0 0 14px; }
.doc-body ul, .doc-body ol { padding-left: 22px; margin: 0 0 14px; }
.doc-body li { margin: 5px 0; }
.doc-body code {
  font-family: var(--mono); font-size: 0.88em; background: #EDE3D1;
  padding: 2px 6px; border-radius: 5px;
}
.doc-body pre {
  background: var(--ink); color: #F3EDE1; padding: 16px; border-radius: 10px;
  overflow-x: auto; font-family: var(--mono); font-size: 13.5px; line-height: 1.5;
}
.doc-body pre code { background: none; padding: 0; color: inherit; }
.doc-body a { color: var(--action); }

.search {
  width: 100%; max-width: 460px; padding: 12px 14px; font-size: 15px; font-family: var(--sans);
  border: 1px solid var(--line); border-radius: 9px; background: var(--panel); color: var(--ink);
}
.search:focus { outline: 2px solid var(--action); outline-offset: 1px; border-color: transparent; }

.empty { padding: 40px; text-align: center; color: var(--slate); border: 1px dashed var(--line); border-radius: 12px; }
.hidden { display: none !important; }

/* No scroll-reveal here on purpose. Content that starts at opacity:0 and waits
   for JS to un-hide it means a broken script leaves a public page blank — and
   the CSP (script-src 'self') rules out an inline pre-paint class to guard it.
   The page reads fine without the motion, so the motion goes. The one animation
   left is the monitor pulse: pure CSS, and it IS the subject. */

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}

/* ================================================================
   Shared primitives — /request and /quote
   ================================================================
   Those two pages were built on the hub's dark stylesheet, which made a
   prospect cross a visual border in the middle of the funnel: click
   "Request a quote" on the warm landing page, land somewhere that looks
   like a different company. They now run on this sheet instead.

   Their markup was written against the hub's vocabulary, so these are
   aliases onto the warm palette rather than a second set of names.
   `.wrap` is deliberately NOT a page container here — it means flex-wrap,
   the way the hub's markup means it. The page container is `.container`. */
:root {
  --border:  var(--line);
  --primary: var(--action);
  --green:   var(--signal);
  --red:     #A3231B;   /* warm red — errors, decline */
  --amber:   #A8730B;   /* warm amber — expiry warnings */
}

.muted { color: var(--slate); }

/* layout helpers */
.row { display: flex; align-items: center; gap: 10px; }
.row.between { justify-content: space-between; }
.row.wrap { flex-wrap: wrap; }
.spread { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.spread > div { min-width: 0; }
@media (max-width: 560px) { .spread { grid-template-columns: 1fr; } }
.grid { display: grid; gap: 16px; }
.grid.cards { grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }

/* badges — the machine's labels, so mono like every other system value */
.badge {
  display: inline-flex; align-items: center; gap: 5px;
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.06em;
  padding: 3px 8px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--panel); color: var(--slate);
}
.badge { white-space: nowrap; }
.badge.code { font-weight: 700; color: var(--ink); }

/* stat numerals */
.num { font-family: var(--mono); font-weight: 700; letter-spacing: -0.03em; }
.lbl { font-size: 12px; color: var(--slate); }

.loading { padding: 26px; text-align: center; color: var(--slate); }

/* button aliases: the hub calls the filled one `primary`, this sheet `solid` */
.btn.primary { background: var(--ink); color: #fff; }
.btn.primary:hover { background: var(--action); border-color: var(--action); }
.btn.danger { border-color: var(--red); color: var(--red); }
.btn.danger:hover { background: var(--red); border-color: var(--red); color: #fff; }
.btn:disabled { opacity: .5; cursor: not-allowed; transform: none; }

/* form controls */
label {
  display: block; margin: 12px 0 5px;
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--slate);
}
label.row { display: flex; text-transform: none; letter-spacing: 0; font-family: var(--sans); font-size: 15px; color: var(--ink); }
input, textarea, select {
  width: 100%; padding: 11px 13px; font-size: 15px; font-family: var(--sans);
  color: var(--ink); background: var(--panel);
  border: 1px solid var(--line); border-radius: 9px;
}
textarea { resize: vertical; }
input:focus, textarea:focus, select:focus {
  outline: 2px solid var(--action); outline-offset: 1px; border-color: transparent;
}
input[type="checkbox"] { width: auto; accent-color: var(--action); }
input::placeholder, textarea::placeholder { color: color-mix(in srgb, var(--slate) 62%, transparent); }

/* selectable cards (the request form's project types) */
.card.click { cursor: pointer; transition: border-color .14s ease, transform .14s ease; }
.card.click:hover { border-color: var(--ink); transform: translateY(-1px); }
.card.click.active { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.btn.design-btn.primary { background: var(--ink); color: #fff; }

details summary { cursor: pointer; }

/* The free tier — the one card that should stop a reader. Signal green rather
   than the ink border every other card uses. */
.card.is-free { border-color: var(--signal); box-shadow: 0 0 0 1px var(--signal) inset; }
.card.is-free .price { color: var(--signal); }
.badge.free-badge { border-color: var(--signal); color: var(--signal); font-weight: 700; }

/* The free tier's band — sits above the paid grid, reads as an offer. */
.free-band {
  flex-direction: row; align-items: center; justify-content: space-between;
  gap: 24px; flex-wrap: wrap; margin-bottom: 16px;
}
.free-band-cta { display: flex; align-items: center; gap: 18px; flex: none; }
.free-band .price { font-size: 32px; }
@media (max-width: 700px) {
  .free-band { flex-direction: column; align-items: flex-start; }
  .free-band-cta { width: 100%; justify-content: space-between; }
}
