/* ═══════════════════════════════════════════════════════════════════════
   Product Consulting Labs — shared design system
   Source of truth for the site's look. Editorial-modernist: Archivo,
   warm off-white ground, near-black ink, one confident red-orange accent,
   square corners, 2px rules. Retune tokens here; pages inherit.
   ═══════════════════════════════════════════════════════════════════════ */

:root {
  --color-bg: #f3f2f2;
  --color-surface: #eae9e9;
  --color-text: #201e1d;
  --color-accent: #ec3013;
  --color-accent-600: #dd2b0f;
  --color-accent-700: #ae1800;
  --color-divider: color-mix(in srgb, #201e1d 40%, transparent);
  --color-muted: color-mix(in srgb, #201e1d 70%, transparent);
  --color-faint: color-mix(in srgb, #201e1d 55%, transparent);

  --font-heading: "Archivo", system-ui, sans-serif;
  --font-body: "Archivo", system-ui, sans-serif;
  --weight-heading: 800;

  --space-1: 4px;  --space-2: 8px;  --space-3: 12px; --space-4: 16px;
  --space-6: 24px; --space-8: 32px; --space-12: 48px; --space-16: 64px;
  --space-24: 96px;

  --radius: 0px;

  --container: 1200px;
  /* Never below 20px; respects iPhone notch/home-indicator safe areas. */
  --gutter: max(clamp(20px, 5vw, 72px), env(safe-area-inset-left), env(safe-area-inset-right));
}

/* — base — */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--color-bg); color: var(--color-text);
  font-family: var(--font-body); font-size: 15px; line-height: 1.55;
  text-wrap: pretty; -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading); font-weight: var(--weight-heading);
  line-height: 1.12; letter-spacing: -0.015em; margin: 0 0 var(--space-2);
}
p { margin: 0 0 var(--space-3); }
a { color: var(--color-text); text-underline-offset: 3px; }
a:hover { color: var(--color-accent); }
img { display: block; max-width: 100%; }
:focus { outline: none; }
:focus-visible { outline: 2px solid var(--color-accent); outline-offset: 2px; }
::selection { background: color-mix(in srgb, var(--color-accent) 30%, transparent); }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--color-text); color: var(--color-bg);
  padding: var(--space-2) var(--space-4); font-size: 14px;
}
.skip-link:focus { left: 0; color: var(--color-bg); }

/* — layout — */
.container { max-width: var(--container); margin: 0 auto; padding-inline: var(--gutter); }
/* padding-block only — the shorthand `padding: 70px 0` was silently zeroing
   .container's horizontal gutter on elements carrying both classes
   (e.g. <section class="section container">), leaving content flush against
   the screen edge on mobile. */
.section { padding-block: 70px; }
.section-first { padding-block: 96px 70px; }
.rule { height: 2px; border: 0; margin: 0; background: var(--color-divider); }

/* — type components — */
.kicker {
  display: block; font-size: 13px; line-height: 14px; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--color-accent-700); margin-bottom: 14px;
  font-weight: 600;
}
.display {
  font-size: clamp(38px, 5vw, 68px); line-height: 1.06; letter-spacing: -0.02em;
  margin: 0 0 0 -0.058em; max-width: 17ch;
}
.headline {
  font-size: clamp(30px, 3.4vw, 44px); line-height: 1.1; letter-spacing: -0.015em;
  margin: 0 0 0 -0.058em;
}
.lede { font-size: 17px; line-height: 28px; margin: 0; max-width: 56ch; }
.lede + .lede { margin-top: 28px; }
.body-copy {
  font-size: 15.5px; line-height: 28px; margin: 14px 0 0; max-width: 60ch;
  color: color-mix(in srgb, var(--color-text) 90%, transparent);
}
.pullquote {
  border-left: 2px solid var(--color-accent); padding-left: 24px; align-self: start;
}
.pullquote p {
  font-family: var(--font-heading); font-weight: var(--weight-heading);
  font-size: 21px; line-height: 30px; letter-spacing: -0.01em; margin: 0; max-width: 30ch;
}
.text-muted { color: var(--color-faint); }

/* — grids — */
.grid2 { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: 42px clamp(24px, 5vw, 96px); }
.grid2-even { display: grid; grid-template-columns: 1fr 1fr; gap: 42px clamp(24px, 5vw, 96px); }

/* — numbered editorial rows (principles, pain points, pillar teasers) — */
.row-list { margin-top: 42px; }
.row {
  display: grid; grid-template-columns: minmax(64px, 160px) minmax(0, 1fr);
  gap: 12px clamp(24px, 4vw, 72px); align-items: baseline;
  padding: 32px 0; border-top: 2px solid var(--color-divider);
}
.row-num {
  font-family: var(--font-heading); font-weight: var(--weight-heading);
  font-size: 15px; line-height: 28px; margin: 0; font-feature-settings: 'tnum' 1;
}
.row-title {
  font-size: 24px; line-height: 28px; letter-spacing: -0.01em; margin: 0;
}
.row-link { text-decoration: none; }
.row-link:hover .row-title { color: var(--color-accent); }

/* — buttons — */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  cursor: pointer; text-decoration: none;
  font-family: var(--font-heading); font-weight: var(--weight-heading);
  font-size: 14px; line-height: 1.2; color: var(--color-text);
  background: transparent; border: 1px solid transparent;
  padding: 10px 16px; border-radius: var(--radius);
  transition: background-color 0.18s ease, color 0.18s ease, transform 0.1s ease;
  min-height: 44px;
}
.btn:active { transform: scale(0.98); }
.btn:disabled { opacity: 0.45; cursor: not-allowed; }
.btn-primary { background: var(--color-accent); color: var(--color-bg); }
.btn-primary:hover { background: var(--color-accent-600); color: var(--color-bg); }
.btn-primary:active { background: var(--color-accent-700); }
.btn-secondary { border-color: var(--color-divider); }
.btn-secondary:hover { background: color-mix(in srgb, var(--color-text) 7%, transparent); color: var(--color-text); }
.btn-outline-light { border-color: var(--color-bg); color: var(--color-bg); }
.btn-outline-light:hover { background: var(--color-bg); color: var(--color-accent); }
/* Dominant CTA on the accent band: solid off-white, accent text. */
.btn-solid-light { background: var(--color-bg); color: var(--color-accent); }
.btn-solid-light:hover { background: #ffffff; color: var(--color-accent-700); }
.btn-lg { font-size: 15px; padding: 13px 22px; }

/* — nav — */
.site-header { border-bottom: 2px solid var(--color-divider); position: relative; }
.nav {
  display: flex; align-items: center; gap: var(--space-4);
  max-width: var(--container); margin: 0 auto;
  padding: var(--space-3) var(--gutter);
}
.nav-brand {
  font-family: var(--font-heading); font-weight: var(--weight-heading);
  font-size: 18px; margin-right: auto; text-decoration: none;
}
.nav-links { display: flex; gap: var(--space-6); align-items: center; }
.nav-links a { text-decoration: none; font-size: 15px; padding: 8px 0; }
.nav-links a[aria-current='page'] { color: var(--color-accent); }

/* hamburger — hidden on desktop */
.nav-toggle {
  display: none; align-items: center; justify-content: center;
  width: 44px; height: 44px; padding: 0; margin-left: auto;
  background: transparent; border: 1px solid var(--color-divider);
  color: var(--color-text); cursor: pointer; border-radius: var(--radius);
}
.nav-toggle svg { display: block; }
/* CTA shown only inside the mobile dropdown menu */
.nav-menu-cta { display: none; }
@media (max-width: 880px) { .nav-links .nav-menu-cta { display: inline-flex; } }

/* — CTA band — */
.cta-band { background: var(--color-accent); color: var(--color-bg); }
.cta-band .container { padding-top: 84px; padding-bottom: 84px; }
.cta-band h2 {
  font-size: clamp(34px, 4.2vw, 56px); line-height: 1.06; letter-spacing: -0.015em;
  margin: 0 0 0 -0.058em; max-width: 20ch;
}
.cta-band p { font-size: 16px; line-height: 26px; max-width: 52ch; margin: 20px 0 0; opacity: 0.92; }
.cta-band .cta-actions { display: flex; gap: var(--space-3); flex-wrap: wrap; margin-top: 42px; }

/* — surface panels (fintech callout, credibility, placeholders) — */
.panel { background: var(--color-surface); padding: clamp(28px, 4vw, 48px); }
.placeholder-block {
  border: 2px dashed var(--color-divider); padding: clamp(24px, 4vw, 40px);
  color: var(--color-faint); font-size: 14px; line-height: 24px;
}
.logo-strip { display: flex; flex-wrap: wrap; gap: 16px 40px; align-items: center; margin-top: 28px; }
.logo-slot {
  font-family: var(--font-heading); font-weight: 600; font-size: 13px;
  letter-spacing: 0.06em; text-transform: uppercase; color: var(--color-faint);
  border: 2px dashed var(--color-divider); padding: 14px 22px;
}

/* — forms — */
.field { margin-bottom: var(--space-6); }
.field > label {
  display: block; font-size: 13px; font-weight: 600; margin-bottom: 6px;
  letter-spacing: 0.02em;
}
.field .hint { font-size: 12px; color: var(--color-faint); margin: 6px 0 0; }
.input {
  width: 100%; min-height: 48px; padding: 10px 14px; font: inherit;
  font-size: 15px; color: var(--color-text); caret-color: var(--color-accent);
  background: var(--color-bg);
  border: 1px solid var(--color-divider); border-radius: var(--radius);
  transition: border-color 0.15s ease;
}
.input:hover { border-color: color-mix(in srgb, var(--color-text) 45%, transparent); }
.input:focus-visible { border-color: var(--color-accent); outline-offset: 0; }
textarea.input { min-height: 120px; resize: vertical; }
select.input { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--color-text) 50%), linear-gradient(135deg, var(--color-text) 50%, transparent 50%); background-position: calc(100% - 20px) 55%, calc(100% - 14px) 55%; background-size: 6px 6px; background-repeat: no-repeat; padding-right: 40px; }
.field.invalid .input { border-color: var(--color-accent-700); }
.error-msg { display: none; font-size: 13px; color: var(--color-accent-700); margin-top: 6px; }
.field.invalid .error-msg { display: block; }
.form-success, .form-error {
  display: none; border-left: 2px solid var(--color-accent); padding: 20px 24px;
  background: var(--color-surface); font-size: 15px; line-height: 26px;
}
.form-error { border-left-color: var(--color-accent-700); }
.form-success.show, .form-error.show { display: block; }
/* honeypot — hidden from humans, present for bots */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* — footer — */
.site-footer { border-top: 2px solid var(--color-divider); }
.site-footer .container {
  padding-top: 42px; padding-bottom: 42px;
  display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap;
  font-size: 13px; line-height: 22px; color: var(--color-muted);
}
.site-footer nav { display: flex; gap: var(--space-6); }

/* — motion — */
.reveal { opacity: 0; transform: translateY(12px); transition: opacity 0.5s ease, transform 0.5s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { transition: none; opacity: 1; transform: none; }
  .btn { transition: none; }
}

/* — responsive — */
/* Guard against any accidental horizontal scroll on small screens. */
html, body { overflow-x: clip; }

@media (max-width: 880px) {
  .grid2, .grid2-even { grid-template-columns: 1fr; }

  /* Nav collapses to hamburger at 880px — the desktop links + long CTA
     button overflow anywhere below that. */
  .nav-toggle { display: inline-flex; }
  .nav-cta { display: none; }            /* reachable via the menu instead */
  .nav-links {
    display: none; position: absolute; top: 100%; left: 0; right: 0; z-index: 60;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--color-bg);
    border-bottom: 2px solid var(--color-divider);
    padding: var(--space-2) var(--gutter) var(--space-4);
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 14px 0; border-top: 1px solid var(--color-divider); font-size: 16px; }
  .nav-links a:first-child { border-top: 0; }
  .nav-links .nav-menu-cta { margin-top: var(--space-3); border-top: 0; }
}

@media (max-width: 720px) {
  .section { padding-block: 56px; }
  .section-first { padding-block: 64px 56px; }
  .row { grid-template-columns: 1fr; gap: 8px; padding: 24px 0; }
  .cta-band .container { padding-top: 56px; padding-bottom: 56px; }
  .cta-band .cta-actions { margin-top: 32px; }

  /* 16px minimum stops iOS Safari from auto-zooming on focus. */
  .input { font-size: 16px; }

  .site-footer .container { flex-direction: column; }
}

@media (max-width: 600px) {
  /* Hero headlines force line breaks via inline display:block spans — on
     narrow screens let the text wrap naturally instead of doubling up. */
  .display > span { display: inline !important; }
  /* Drop the optical negative margin on phones so the first glyph can
     never clip against the screen edge. */
  .display { font-size: clamp(31px, 9vw, 38px); margin-left: 0; }
  .headline { margin-left: 0; }
  .headline { font-size: clamp(26px, 7.5vw, 30px); }
  .cta-band h2 { font-size: clamp(28px, 8vw, 34px); }
  .row-title { font-size: 21px; line-height: 26px; }
  .pullquote { padding-left: 18px; }
  .pullquote p { font-size: 19px; line-height: 27px; }

  /* Full-width CTAs are easier targets and look intentional on phones. */
  .btn-lg { width: 100%; }
  .cta-band .cta-actions { flex-direction: column; }

  .panel { padding: 24px 20px; }
  .logo-strip { gap: 12px 16px; }
}
