/* FirstCall STL — agency site skeleton
   Design system: docs/brand.md (locked 2026-07-26)
   Style: Flat Design — no shadows, no gradients, flat colour blocks, typography-driven.
   Mobile-first from 390px. */

/* ---------- tokens ---------- */
:root {
  --signal:   #F5333F;  /* display only — 3.87:1, never body copy */
  --deep:     #C81D2B;  /* text-safe red — 5.73:1 */
  --ink:      #16181D;  /* body text — 16.3:1 on bone */
  --bone:     #F7F5F2;
  --slate:    #5B6270;
  --yellow:   #FFC400;  /* capped at ~5% of surface */
  --line:     #E7E3DE;
  --white:    #FFFFFF;

  /* dark-surface scale */
  --ink-2:       #1E2128;  /* raised surface on dark */
  --ink-line:    #2C3038;
  --ink-line-2:  #4A505C;
  --on-dark:     #C9CDD4;  /* body text on ink — 11.1:1 */
  --on-dark-dim: #A9AEB8;  /* footer text on ink — 8.0:1 */

  --wrap: 1120px;
  --pad: 20px;

  /* Three display sizes, not four. The old scale resolved to 51.5 / 42.1 / 33.4px at
     390px — a 1.22 step between h1 and h2, so the hero barely outranked section
     headings on the primary viewport. Now: 60 / 38 / 22px on mobile = 1.57 and 1.73. */
  --step-0: 1rem;      /* body, buttons, list items */
  --step-sm: 0.875rem; /* labels, units, footer headings, legal */
  --step-xs: 0.75rem;  /* uppercase micro-labels only */
  --step-1: clamp(1.125rem, 1.02rem + 0.45vw, 1.375rem);
  --h3:        1.5rem;   /* stays clear of the lede's 22px ceiling at desktop */
  --display-m: clamp(2.25rem, 1.7rem + 2.8vw, 3.75rem);   /* every section h2, and price numbers */
  --display-l: clamp(3.5rem, 2.4rem + 5.5vw, 6rem);       /* h1 only — nothing else may use it */

  --z-header: 30;
  --z-bar: 50;
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bone);
  color: var(--ink);
  font-family: 'Public Sans', system-ui, -apple-system, sans-serif;
  font-size: var(--step-0);      /* 16px minimum on mobile */
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, .display {
  font-family: 'Big Shoulders Display', 'Arial Narrow', sans-serif;
  font-weight: 900;
  line-height: 0.92;
  letter-spacing: -0.005em;
  text-transform: uppercase;
  margin: 0;
}

p { margin: 0 0 1rem; max-width: 68ch; }   /* 65–75 char line length */

a { color: var(--deep); }
a:hover { color: var(--ink); }

img, svg { max-width: 100%; height: auto; display: block; }

:focus-visible {
  outline: 3px solid var(--deep);
  outline-offset: 3px;
  border-radius: 2px;
}

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--pad); }

section { padding-block: 64px; }
@media (min-width: 768px) { section { padding-block: 96px; } }

/* One rule owns section heading size, so it can't drift per-section via inline styles */
section h2 { font-size: var(--display-m); margin-bottom: 22px; }
h2 + .grid, h2 + .faq, .lede + .grid { margin-top: 34px; }

.eyebrow {
  font-family: 'Public Sans', sans-serif;
  font-size: var(--step-xs);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--slate);
  margin: 0 0 14px;
}

.lede { font-size: var(--step-1); color: var(--slate); max-width: 60ch; }

/* skewed yellow highlight — echoes the logo's lean, and is most of the 5% yellow budget */
.mark {
  position: relative;
  isolation: isolate;      /* own stacking context, so the z-index:-1 bar can't fall behind a section background */
  display: inline-block;
  color: var(--ink);
}
.mark::before {
  content: '';
  position: absolute;
  inset: 12% -6px 8%;
  background: var(--yellow);
  transform: skewX(-8deg);
  z-index: -1;
}

/* ---------- buttons — 44px min touch target ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 14px 26px;
  border: 2px solid transparent;
  border-radius: 10px;
  font-family: 'Public Sans', sans-serif;
  font-size: var(--step-0);
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 180ms ease, color 180ms ease, border-color 180ms ease;
}
/* Filled CTAs use Deep Red, not Signal Red. White on #F5333F is 3.87:1, which only
   clears AA at large-text sizes — and button labels are 17px. Deep Red is 5.73:1 and
   passes at any size. Signal Red stays for display type, icons and rules. */
.btn--primary { background: var(--deep); color: var(--white); }
.btn--primary:hover { background: var(--ink); color: var(--white); }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: var(--bone); }
.btn--onDark { background: var(--white); color: var(--ink); }
.btn--onDark:hover { background: var(--yellow); color: var(--ink); }

/* ---------- header ---------- */
.header {
  position: sticky; top: 0; z-index: var(--z-header);
  background: var(--bone);
  border-bottom: 1px solid var(--line);
}
.header__in { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 68px; }
.header__logo { display: block; }
.header__logo img { height: 34px; width: auto; }
.header__nav { display: none; gap: 26px; align-items: center; }
.header__nav a {
  color: var(--ink); text-decoration: none; font-weight: 600; font-size: var(--step-0);
  transition: color 180ms ease;
}
.header__nav a:hover { color: var(--deep); }
@media (min-width: 900px) { .header__nav { display: flex; } }
.header .btn { min-height: 44px; padding: 10px 18px; font-size: var(--step-0); }

/* ---------- hero ---------- */
.hero { padding-top: 48px; padding-bottom: 56px; }
@media (min-width: 768px) { .hero { padding-top: 88px; padding-bottom: 96px; } }

.hero h1 { font-size: var(--display-l); margin-bottom: 22px; }
.hero .lede { margin-bottom: 30px; }
.hero__cta { display: flex; flex-direction: column; gap: 12px; }
@media (min-width: 560px) { .hero__cta { flex-direction: row; align-items: center; } }

.hero__note { margin-top: 20px; font-size: var(--step-0); color: var(--slate); }

/* ---------- blocks ---------- */
.band { background: var(--ink); color: var(--bone); }
.band h2, .band h3 { color: var(--white); }
.band .lede, .band p { color: var(--on-dark); }
.band .eyebrow { color: var(--yellow); }
/* Slate is 2.6:1 on charcoal — unreadable. Anything muted flips to the on-dark scale. */
.band .price__unit { color: var(--on-dark); }
.band .todo { color: var(--on-dark); border-color: var(--ink-line-2); }

.grid { display: grid; gap: 20px; }
@media (min-width: 720px) { .grid--3 { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 720px) { .grid--2 { grid-template-columns: repeat(2, 1fr); } }

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 26px 24px;
}
.band .card { background: var(--ink-2); border-color: var(--ink-line); }

.card h3 { font-size: var(--h3); margin-bottom: 10px; }
.card p:last-child { margin-bottom: 0; }

.icon { width: 28px; height: 28px; stroke: var(--signal); fill: none; stroke-width: 2; margin-bottom: 14px; }
.band .icon { stroke: var(--yellow); }

/* ---------- pricing ---------- */
.price { display: flex; align-items: baseline; gap: 6px; margin: 14px 0 18px; }
.price__num { font-family: 'Big Shoulders Display', sans-serif; font-weight: 900; font-size: var(--display-m); line-height: 1; }
.price__unit { color: var(--slate); font-size: var(--step-sm); }

.tier--feature { border-color: var(--signal); border-width: 2px; }
/* 11px label — far too small for Signal Red's 3.87:1, so it sits on charcoal (16.3:1) */
.tier__flag {
  display: inline-block; background: var(--ink); color: var(--white);
  font-size: var(--step-xs); font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase;
  padding: 5px 10px; border-radius: 6px; margin-bottom: 14px;
}

.ticks { list-style: none; padding: 0; margin: 0 0 22px; }
.ticks li { position: relative; padding-left: 28px; margin-bottom: 9px; font-size: var(--step-0); }
.ticks li::before {
  content: ''; position: absolute; left: 0; top: 7px; width: 15px; height: 9px;
  border-left: 2.5px solid var(--signal); border-bottom: 2.5px solid var(--signal);
  transform: rotate(-45deg);
}
.band .ticks li::before { border-color: var(--yellow); }

/* ---------- FAQ ---------- */
.faq { border-top: 1px solid var(--line); }
.faq summary {
  cursor: pointer; padding: 22px 0; font-weight: 600; font-size: var(--step-0);
  display: flex; justify-content: space-between; gap: 16px; align-items: center;
  min-height: 44px; list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
/* 1.6rem here is an icon glyph, not a type-scale step — it sizes the +/- indicator, not text */
.faq summary::after { content: '+'; font-size: 1.6rem; color: var(--signal); line-height: 1; }
.faq[open] summary::after { content: '\2013'; }
.faq p { padding-bottom: 20px; color: var(--slate); }

/* ---------- placeholders (skeleton only — remove before launch) ---------- */
.todo {
  border: 2px dashed var(--slate);
  border-radius: 14px;
  padding: 34px 24px;
  text-align: center;
  color: var(--slate);
  background: transparent;
}
.todo strong { color: var(--ink); display: block; margin-bottom: 6px; font-size: var(--step-0); }
.band .todo strong { color: var(--white); }

/* ---------- footer ---------- */
.footer { background: var(--ink); color: var(--on-dark-dim); padding-block: 48px; font-size: var(--step-0); }
.footer a { color: var(--bone); }
.footer__grid { display: grid; gap: 28px; }
@media (min-width: 720px) { .footer__grid { grid-template-columns: 2fr 1fr 1fr; } }
.footer img { height: 30px; width: auto; margin-bottom: 14px; }
.footer h3 { font-size: var(--step-sm); letter-spacing: .1em; color: var(--white); margin-bottom: 12px; }
.footer ul { list-style: none; padding: 0; margin: 0; }
.footer li { margin-bottom: 8px; }

/* ---------- sticky mobile CTA bar ---------- */
.bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: var(--z-bar);
  background: var(--ink);
  padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
  border-top: 2px solid var(--signal);
}
.bar .btn { width: 100%; }
@media (min-width: 900px) { .bar { display: none; } }
@media (max-width: 899px) { body { padding-bottom: 84px; } }

/* ---------- motion ---------- */
/* Reduced motion kills movement, not feedback. Colour and opacity transitions are not
   vestibular triggers, so hover/focus states keep working — only animation and
   transform/scroll movement stop. */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-property: color, background-color, border-color, outline-color, opacity !important;
    transition-duration: 150ms !important;
  }
}
