/* subpage.css — shared stylesheet for content subpages (/services/, /company/).
   Phase 4 of the redesign.

   Relationship to site.css: the palette/typography tokens and the header/footer
   bones below are transcribed from site.css so subpages read as the same site.
   It deliberately does NOT @import site.css — that file carries the one-pager's
   machinery (fixed .frame, scroll-snap container, .panel opacity states, dot
   rail, :target overlay) which subpages must not have. Keep the tokens in sync
   by hand if site.css's palette ever changes.

   Subpages are: normal document scroll, no snap, no line animation, no JS.
   Mono runs must never contain "→" (U+2192 is outside the shipped Plex subset —
   see assets/css/fonts.css). "↓" is fine.
*/

:root {
  --bg: #04060C;
  --ink: #ffffff;
  --text: #e8ecf5;
  --muted: #8b95ab;
  --dim: #6b768f;
  --line: #232c42;
  --rule: #101725;
  --blue: #3A66FF;
  --green: #22DD84;
  --font-sans: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --font-mono: 'IBM Plex Mono', ui-monospace, SFMono-Regular, Menlo, monospace;

  /* per-block accent, overridden on .offer--* / .product */
  --accent: var(--blue);
}

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

html {
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

body {
  margin: 0;
  min-height: 100vh; /* fallback: browsers without dvh must not collapse the page */
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  font-family: var(--font-sans);
  color: var(--text);
}

a { color: inherit; text-decoration: none; }
a:hover { color: #ffffff; }
::selection { background: var(--green); color: var(--bg); }
:focus-visible { outline: 2px solid var(--green); outline-offset: 3px; }

h1, h2, h3, p, ul { margin: 0; }
ul { padding: 0; list-style: none; }

/* ---------- backdrop ---------- */

/* Static echo of the one-pager's halo — no line, no animation. */
.halo {
  position: absolute;
  top: -34vh;
  left: 50%;
  transform: translateX(-50%);
  width: min(1150px, 100%); /* never wider than the page — no h-scroll */
  height: 70vh;
  background: radial-gradient(50% 50% at 50% 50%, rgba(58,102,255,.22) 0%, rgba(58,102,255,0) 70%);
  pointer-events: none;
  z-index: 0;
}

/* ---------- header (static; mirrors site.css's .site-header) ---------- */

.site-header {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap; /* at narrow widths the nav drops to its own row — no JS menu */
  align-items: center;
  justify-content: space-between;
  gap: 14px 28px;
  padding: clamp(20px, 3.4vw, 34px) clamp(22px, 5vw, 72px);
}

.wordmark {
  font-size: clamp(21px, 2.2vw, 26px);
  font-weight: 700;
  letter-spacing: -.045em;
  color: var(--ink);
}
.wordmark span { color: var(--blue); }

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  font-size: 14px;
  color: var(--muted);
  letter-spacing: -.01em;
}
.nav a { transition: color .15s; }
.nav a:hover { color: #fff; }
.nav a[aria-current="page"] { color: var(--text); }

/* ---------- long-form column ---------- */

.doc {
  position: relative;
  z-index: 1;
  flex: 1;
  width: 100%;
  max-width: 852px; /* 788px of column inside the 32px gutters at 1440px */
  margin: 0 auto;
  padding: clamp(30px, 6vh, 64px) clamp(22px, 5vw, 32px) clamp(60px, 10vh, 100px);
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--dim);
}

h1 {
  margin-top: 18px;
  font-size: clamp(32px, 5.6vw, 56px);
  line-height: 1.03;
  font-weight: 700;
  letter-spacing: -.042em;
  color: var(--ink);
  text-wrap: balance;
}

.lead {
  margin-top: clamp(18px, 2.4vw, 26px);
  font-size: clamp(16px, 1.5vw, 19px);
  line-height: 1.6;
  color: var(--text);
  letter-spacing: -.012em;
  max-width: 62ch;
  text-wrap: pretty;
}

.body {
  margin-top: 20px;
  font-size: clamp(15px, 1.3vw, 17px);
  line-height: 1.65;
  color: var(--muted);
  letter-spacing: -.01em;
  max-width: 66ch;
  text-wrap: pretty;
}

/* ---------- offer / section blocks ---------- */

.block {
  margin-top: clamp(44px, 7vh, 72px);
  padding-top: clamp(26px, 3.4vw, 34px);
  border-top: 1px solid var(--rule);
}

.block-index {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--accent);
}

.block h2 {
  margin-top: 14px;
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.1;
  font-weight: 700;
  letter-spacing: -.035em;
  color: var(--ink);
  text-wrap: pretty;
}

.offer--build { --accent: var(--blue); }
.offer--outreach { --accent: #FF8A3D; }
.offer--automation { --accent: var(--green); }

/* ---------- detail cards ---------- */

.cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin-top: clamp(22px, 3vw, 30px);
}

.card {
  padding: 18px 20px;
  border: 1px solid var(--rule);
  border-radius: 12px;
  background: rgba(255,255,255,.018);
  transition: border-color .15s, background .15s;
}
.card:hover {
  border-color: var(--line);
  background: rgba(255,255,255,.03);
}

.card h3 {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -.015em;
  color: var(--text);
}
.card p {
  margin-top: 7px;
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--muted);
  letter-spacing: -.005em;
  text-wrap: pretty;
}

/* ---------- aside note (capacity / pricing) ---------- */

.note {
  margin-top: clamp(26px, 3.4vw, 34px);
  padding-left: 18px;
  border-left: 2px solid var(--line);
  max-width: 62ch;
}
.note-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--dim);
}
.note p {
  margin-top: 9px;
  font-size: 15px;
  line-height: 1.62;
  color: var(--muted);
  letter-spacing: -.01em;
  text-wrap: pretty;
}

/* ---------- product rows (/company/) ---------- */

.products {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  margin-top: clamp(24px, 3vw, 32px);
}

.product {
  padding: 22px;
  border: 1px solid var(--rule);
  border-radius: 14px;
  background: rgba(255,255,255,.018);
  transition: border-color .15s, background .15s;
}
.product:hover {
  border-color: var(--line);
  background: rgba(255,255,255,.03);
}

.product-head {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

/* Boostie's mark is a full-bleed tile of its own; Parcely's is a bare glyph with
   ~14.4%/side built-in padding, so it needs a ground and up-sizing inside it
   (design/README.md). Same treatment as the one-pager, at a smaller size. */
.tile {
  display: block;
  flex: none;
  width: 38px;
  height: 38px;
  border-radius: 11px;
}
.tile--parcely {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #091828;
  border-radius: 30%;
}
.tile--parcely img { width: 78%; height: 78%; }

.product-name {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -.035em;
  color: var(--ink);
}

.pill {
  font-family: var(--font-mono);
  font-size: 11px;
  padding: 3px 8px;
  border-radius: 100px;
  white-space: nowrap;
}
.pill--boostie { color: #FF7A55; border: 1px solid rgba(255,122,85,.3); }
.pill--parcely { color: #3DE89B; border: 1px solid rgba(61,232,155,.3); }

.product p {
  margin-top: 14px;
  font-size: 15.5px;
  line-height: 1.6;
  color: var(--muted);
  letter-spacing: -.01em;
  max-width: 46ch;
  text-wrap: pretty;
}

.visit {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 16px;
  font-size: 15px;
  color: var(--text);
  letter-spacing: -.01em;
  transition: opacity .2s;
}
.visit:hover { opacity: .7; color: var(--text); }
.visit-arrow { color: var(--accent); }
.product--boostie { --accent: #FF8A3D; }
.product--parcely { --accent: var(--green); }

/* ---------- CTA (mirrors the one-pager's "Work with us" screen) ---------- */

.cta h2 {
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.05;
  letter-spacing: -.042em;
  max-width: 20ch;
}

.mail-row {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 12px;
  margin-top: 28px;
}
.mail-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 17px 32px;
  border-radius: 100px;
  background: #fff;
  color: var(--bg);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -.01em;
  min-height: 54px;
  overflow-wrap: anywhere; /* last resort below ~300px — never spill the pill */
  transition: opacity .2s;
}
.mail-btn:hover { opacity: .85; color: var(--bg); }

/* The address is a fixed ~245px of ink at 15px; under ~344px of viewport it no
   longer clears the 32px side padding. Shrink both so it stays on one line
   instead of wrapping mid-address. Same fix in site.css for the one-pager. */
@media (max-width: 359px) {
  .mail-btn { padding: 17px 16px; font-size: 13.5px; }
}
.mail-note {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--dim);
}

/* Secondary text link out of a block (e.g. "See what we build ↓") */
.inline-link {
  display: inline-block;
  margin-top: 18px;
  font-size: 15px;
  color: var(--text);
  letter-spacing: -.01em;
  border-bottom: 1px solid var(--line);
  padding-bottom: 2px;
  transition: border-color .15s;
}
.inline-link:hover { border-color: #35415f; }

/* ---------- footer (mirrors site.css's .site-footer) ---------- */

.site-footer {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin: 0 clamp(22px, 5vw, 72px);
  padding: 18px 0 max(20px, env(safe-area-inset-bottom));
  border-top: 1px solid var(--rule);
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--dim);
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 28px;
}

/* ---------- desktop (site.css's 860px breakpoint) ---------- */

@media (min-width: 860px) {
  .nav { gap: 40px; font-size: 15px; }

  .cards { grid-template-columns: 1fr 1fr; gap: 14px; }
  .products { grid-template-columns: 1fr 1fr; }

  .mail-row {
    flex-direction: row;
    align-items: center;
    gap: 20px;
    margin-top: 36px;
  }
  .mail-btn { font-size: 16px; }

  .site-footer {
    flex-direction: row;
    align-items: center;
    gap: 0;
    padding: 20px 0;
    font-size: 12px;
  }
}

/* ---------- long-form legal documents (/legal/*.html) ---------- */

/* privacy.html and terms.html share this block; it rides on .doc's column and
   only adds hierarchy and running-text treatment. Same dark palette as every
   other page — legibility comes from measure, size and spacing, not a light
   theme.

   CRITICAL: the reset near the top of this file sets `ul { list-style: none;
   padding: 0 }` for the nav/footer/card lists. Legal prose is the one place on
   the site that needs real bullets, so .legal ul MUST put them back — without
   the override every list in both documents silently flattens into unmarked,
   unindented lines and the clauses stop reading as enumerations. */

.legal .effective {
  margin-top: 14px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .01em;
  color: var(--dim);
}

.legal h2 {
  margin-top: clamp(30px, 4.6vh, 44px);
  font-size: 20px;
  line-height: 1.25;
  font-weight: 700;
  letter-spacing: -.025em;
  color: var(--ink);
}

.legal p,
.legal li {
  font-size: clamp(15px, 1.3vw, 17px);
  line-height: 1.65;
  color: var(--muted);
  letter-spacing: -.008em;
  max-width: 70ch;
  text-wrap: pretty;
}

.legal .effective + p { margin-top: clamp(22px, 3vh, 30px); }
.legal h2 + p { margin-top: 12px; }
.legal p + p { margin-top: 14px; }

.legal ul {
  margin-top: 12px;
  padding-left: 22px;
  list-style: disc;
}
.legal li { margin-top: 8px; }
.legal li::marker { color: var(--dim); }
.legal ul + p { margin-top: 14px; }

.legal strong { color: var(--text); font-weight: 700; }

/* Long-form prose needs a visible link affordance — colour alone is too quiet
   at --muted body weight. */
.legal a {
  color: var(--text);
  text-decoration: underline;
  text-decoration-color: var(--line);
  text-underline-offset: 3px;
}
.legal a:hover { color: #fff; text-decoration-color: #35415f; }

/* ---------- reduced motion (PLAN.md A8) ---------- */

@media (prefers-reduced-motion: reduce) {
  .card, .product, .nav a, .visit, .mail-btn, .inline-link { transition: none; }
}
