/* Site layout and brand primitives. Colours, radii and shadows come from
   brand.css tokens only; see docs/BRAND.md before adding anything here. */

/* ---- Base ---------------------------------------------------------------- */

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 88px; }

body {
  margin: 0;
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 { color: var(--lz-heading); margin: 0; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
img { max-width: 100%; display: block; }

/* Small blue text on the page background uses blue-strong (7.1:1); Lazulix
   Blue is kept for white surfaces, where it passes AA. */
a { color: var(--lz-blue-strong); text-underline-offset: 3px; }
.card a, .form-card a { color: var(--lz-blue); }

:focus-visible { outline: 2px solid var(--lz-blue); outline-offset: 2px; }

.skip-link {
  position: absolute; left: 16px; top: -48px; z-index: 100;
  background: var(--lz-surface); color: var(--lz-ink); padding: 8px 16px;
  border-radius: var(--lz-radius-md); border: 1px solid var(--lz-border);
}
.skip-link:focus { top: 16px; }

.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 640px) { .container { padding: 0 32px; } }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

.icon { width: 18px; height: 18px; flex: none; }

/* ---- Wordmark (BRAND.md section 4) ---------------------------------------- */

.lz-wordmark {
  position: relative;
  display: inline-block;
  font-family: var(--lz-font);
  font-weight: 300;
  color: var(--lz-ink-2);
  line-height: 1;
  letter-spacing: 0.005em;
  padding-bottom: 0.17em;
  text-decoration: none;
}
.lz-wordmark-z {
  font-weight: 800;
  font-size: 1.1em;
  line-height: 0;
  background: var(--lz-gradient-z);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.lz-wordmark::after {
  content: "";
  position: absolute;
  left: -0.66em;
  right: -0.04em;
  bottom: 0;
  height: 0.12em;
  background: var(--lz-gradient);
}
/* Left-aligned wordmarks leave room for the underline's overhang. */
.lz-wordmark--header { font-size: 28px; margin-left: 0.75em; }
.lz-wordmark--footer { font-size: 24px; margin-left: 0.75em; }

/* ---- Typography ------------------------------------------------------------ */

.display {
  font-size: clamp(2.25rem, 5.2vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.1;
}
.section-title {
  font-size: clamp(1.75rem, 3.6vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.1;
  max-width: 22ch;
}
.hl { color: var(--lz-blue); }
h3, .h3 { font-size: 20px; font-weight: 700; line-height: 1.3; }

.lede { font-size: 20px; line-height: 1.5; max-width: 40em; }
.prose { max-width: 44em; }
.prose p + p { margin-top: 16px; }
.small { font-size: 14px; }
.muted { color: var(--lz-text-muted); }
strong, .em { color: var(--lz-ink); font-weight: 600; }

/* Eyebrow + hairline (SectionLabel). */
.section-label {
  display: flex; align-items: center; gap: 16px;
  font-size: 14px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--lz-blue-strong);
  margin-bottom: 20px;
}
.section-label::after { content: ""; flex: 1; height: 1px; background: var(--lz-border); }
.section-label--pink { color: var(--lz-pink); font-weight: 700; }
.section-label--slate { color: var(--lz-slate); }
.card .section-label { color: var(--lz-blue); }

/* AccentBar: two solid halves, blue then pink. */
.accent-bar {
  display: block; width: 160px; height: 6px; border-radius: 999px; margin-top: 20px;
  background: linear-gradient(90deg, var(--lz-blue) 0 50%, var(--lz-pink) 50% 100%);
}
.accent-bar--sm { width: 96px; height: 4px; margin-top: 16px; }

/* Pull quote: one contrast line per section. */
.pull {
  margin-top: 40px; padding-left: 24px; border-left: 4px solid var(--lz-blue);
  font-size: clamp(1.25rem, 2.4vw, 1.5rem); font-weight: 700; line-height: 1.35;
  color: var(--lz-ink); max-width: 36em;
}
.pull--pink { border-left-color: var(--lz-pink); }

/* ---- Buttons --------------------------------------------------------------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 12px 24px; border-radius: var(--lz-radius-md);
  font: 600 16px/1.2 var(--lz-font); text-decoration: none; cursor: pointer;
  border: 1px solid transparent; transition: filter .15s ease, background-color .15s ease;
}
.btn--primary { background: var(--lz-primary); color: var(--lz-surface); }
.btn--primary:hover { filter: brightness(0.92); }
.btn--secondary { background: var(--lz-surface); color: var(--lz-ink); border-color: var(--lz-border); }
.btn--secondary:hover { filter: brightness(0.96); }
.btn--sm { min-height: 40px; padding: 8px 16px; font-size: 15px; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }

/* ---- Header ---------------------------------------------------------------- */

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--lz-page); border-bottom: 1px solid var(--lz-border);
}
.site-header .container { display: flex; align-items: center; gap: 24px; min-height: 72px; }
.site-nav { display: none; margin-left: auto; gap: 28px; }
.site-nav a { color: var(--lz-ink-2); text-decoration: none; font-weight: 500; font-size: 15px; }
.site-nav a:hover { color: var(--lz-ink); text-decoration: underline; }
.site-header .btn { margin-left: auto; }
@media (min-width: 900px) {
  .site-nav { display: flex; }
  .site-header .btn { margin-left: 8px; }
}

/* ---- Sections -------------------------------------------------------------- */

.section { padding: 64px 0; }
@media (min-width: 900px) { .section { padding: 96px 0; } }
.section + .section, .hero + .section { padding-top: 0; }
.section-head { margin-bottom: 40px; }
.section-head .prose { margin-top: 20px; }

.grid { display: grid; gap: 32px; }
@media (min-width: 760px) {
  .grid--2 { grid-template-columns: repeat(2, 1fr); }
  .grid--3 { grid-template-columns: repeat(3, 1fr); }
}

/* ---- Card ------------------------------------------------------------------ */

.card {
  background: var(--lz-surface); border: 1px solid var(--lz-border);
  border-radius: var(--lz-radius-card); box-shadow: var(--lz-shadow-card);
  padding: 24px;
}
@media (min-width: 640px) { .card { padding: 32px; } }
@media (min-width: 900px) { .card { padding: 40px; } }
.card h3 { margin: 20px 0 8px; }
.card p + p { margin-top: 12px; }

/* ---- IconBadge ------------------------------------------------------------- */

.badge {
  display: inline-flex; align-items: center; justify-content: center; flex: none;
  width: 36px; height: 36px; border-radius: 50%; color: var(--lz-surface);
  background: var(--lz-blue);
}
.badge--pink { background: var(--lz-pink); }
.badge--soft {
  width: 40px; height: 40px; border-radius: var(--lz-radius-sm);
  background: color-mix(in srgb, var(--lz-blue) 10%, transparent); color: var(--lz-blue);
}
.badge--soft.badge--pink { background: color-mix(in srgb, var(--lz-pink) 10%, transparent); color: var(--lz-pink); }

/* ---- Pill ------------------------------------------------------------------ */

.pills { display: flex; flex-wrap: wrap; gap: 12px; }
.pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 20px; border-radius: 999px; background: var(--lz-gradient-pill);
  color: var(--lz-ink); font-weight: 500; font-size: 15px;
}
.pill .icon { color: var(--lz-blue); width: 16px; height: 16px; }
.tag {
  display: inline-block; padding: 2px 10px; border-radius: 999px; vertical-align: middle;
  background: var(--lz-blue-tint); color: var(--lz-ink); font-size: 13px; font-weight: 600;
  margin-left: 8px;
}

/* ---- Hero ------------------------------------------------------------------ */

.hero { padding: 56px 0 64px; }
@media (min-width: 900px) { .hero { padding: 96px 0 64px; } }
.hero-grid { display: grid; gap: 48px; align-items: center; }
@media (min-width: 1000px) { .hero-grid { grid-template-columns: 1.15fr 0.85fr; gap: 64px; } }
.hero .lede { margin-top: 28px; }
.hero-note { margin-top: 24px; font-size: 14px; color: var(--lz-text-muted); }

/* The hero card: sources → Context Owner → golden context → deliverables. */
.flow { display: grid; gap: 0; }
.flow-step { display: flex; gap: 16px; align-items: flex-start; }
.flow-step > div > strong { display: block; color: var(--lz-ink); font-weight: 700; }
.flow-step > div > span { display: block; font-size: 14px; color: var(--lz-text-muted); }
.flow-step--key {
  background: var(--lz-blue-tint); border-radius: var(--lz-radius-lg);
  padding: 16px; margin: 0 -16px;
}
.flow-arrow { color: var(--lz-pink); padding: 6px 0 6px 9px; }
.flow-arrow .icon { transform: rotate(90deg); }

/* ---- Stats ----------------------------------------------------------------- */

.stat-value { font-size: 40px; font-weight: 800; letter-spacing: -0.02em; line-height: 1.1; color: var(--lz-ink); }
.stat-value .hl { color: var(--lz-blue); }
.stat-label { margin-top: 8px; }

/* ---- Golden data vs golden context ------------------------------------------ */

.lanes { display: grid; gap: 24px; }
.lane-head { display: none; }
.lane {
  display: grid; gap: 12px; align-items: stretch;
  border-radius: var(--lz-radius-lg); padding: 12px;
}
@media (min-width: 960px) { .lane { padding: 16px; } }
.lane--context { background: var(--lz-blue-tint); }
.lane-step {
  background: var(--lz-surface); border: 1px solid var(--lz-line); border-radius: var(--lz-radius-md);
  padding: 14px 16px; font-size: 15px; color: var(--lz-ink-2);
  display: flex; flex-direction: column; justify-content: center; min-height: 64px;
}
.lane--context .lane-step { color: var(--lz-ink); font-weight: 700; border-color: transparent; }
.lane-step small { display: block; font-size: 13px; font-weight: 400; color: var(--lz-text-muted); margin-bottom: 2px; }
.lane-step--empty {
  background: transparent; border: 2px dashed var(--lz-line); color: var(--lz-text-muted);
  font-style: italic;
}
.lane-step--owner { border: 2px solid var(--lz-pink); }
.lane-step--owner .icon { color: var(--lz-pink); }
.lane-step--result { background: var(--lz-ink); color: var(--lz-surface); border-color: var(--lz-ink); }
.lane-step--result small { color: var(--lz-on-dark-muted); }
.lane--context .lane-step--result { background: var(--lz-blue); border-color: var(--lz-blue); color: var(--lz-surface); }
.lane--context .lane-step--result small { color: var(--lz-surface); opacity: .85; }
.lane-arrow { display: flex; align-items: center; justify-content: center; color: var(--lz-pink); }
.lane-arrow .icon { transform: rotate(90deg); }

/* ColumnHeader: solid fill, centred white text. */
.col-header {
  border-radius: var(--lz-radius-md); padding: 14px 16px; text-align: center;
  color: var(--lz-surface); background: var(--lz-slate);
  display: flex; flex-direction: column; justify-content: center;
}
.col-header strong { color: var(--lz-surface); font-weight: 700; display: block; }
.col-header span { opacity: .85; font-size: 14px; }
.col-header--blue { background: var(--lz-blue); }

@media (min-width: 960px) {
  .lane-head, .lane {
    grid-template-columns: 170px 1fr 20px 1fr 20px 1fr 20px 1fr;
    column-gap: 10px;
  }
  .lane-head { display: grid; padding: 0 16px; }
  .lane-head span {
    font-size: 13px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase;
    color: var(--lz-slate);
  }
  .lane-head span:first-child { grid-column: 2; }
  .lane-head span:nth-child(2) { grid-column: 4; }
  .lane-head span:nth-child(3) { grid-column: 6; }
  .lane-head span:nth-child(4) { grid-column: 8; }
  .lane-arrow .icon { transform: none; }
  .lane-step small { display: none; }
}
.lanes-caption { margin-top: 24px; max-width: 46em; }
.shared { margin-top: 32px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; }
.shared-label { font-size: 14px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--lz-slate); }

/* ---- Numbered offer cards and steps ------------------------------------------ */

.num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--lz-blue); color: var(--lz-surface); font-weight: 700;
}
.steps { display: grid; gap: 16px; margin-top: 32px; counter-reset: step; }
@media (min-width: 760px) { .steps { grid-template-columns: repeat(4, 1fr); } }
.split .steps { grid-template-columns: 1fr; max-width: 28em; }
.step {
  border-top: 2px solid var(--lz-blue); padding-top: 16px;
}
.step--optional { border-top-style: dashed; }
.step-title { color: var(--lz-ink); font-weight: 700; display: block; margin-bottom: 4px; }
.keep {
  margin-top: 32px; padding: 24px 28px; border-radius: var(--lz-radius-lg);
  background: var(--lz-blue-tint); color: var(--lz-ink);
  display: flex; gap: 16px; align-items: flex-start;
}
.keep p { font-size: 18px; }

/* ---- Feature rows / comparison table ---------------------------------------- */

.rows { border-top: 1px solid var(--lz-line); }
.row {
  display: grid; gap: 4px 24px; padding: 16px 0; border-bottom: 1px solid var(--lz-line);
}
@media (min-width: 640px) { .row { grid-template-columns: 220px 1fr; min-height: 56px; align-items: center; } }
.row-label { color: var(--lz-ink); font-weight: 700; }
@media (min-width: 640px) { .rows--stacked .row { grid-template-columns: 1fr; } }

.split { display: grid; gap: 40px; }
@media (min-width: 960px) { .split { grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; } }
.split .section-title + .prose { margin-top: 20px; }
.prose + .pills { margin-top: 28px; }

.compare { display: grid; gap: 0; }
.compare-row { display: grid; grid-template-columns: 1fr; border-bottom: 1px solid var(--lz-line); }
.compare-cell { padding: 14px 16px; }
.compare-cell--label { font-weight: 700; color: var(--lz-ink); padding-bottom: 0; }
.compare-cell--new { color: var(--lz-ink); font-weight: 700; }
.compare-cell .who { display: block; font-size: 13px; font-weight: 400; color: var(--lz-text-muted); }
.compare-headers { display: none; }
@media (min-width: 760px) {
  .compare { position: relative; }
  .compare-headers, .compare-row { grid-template-columns: 200px 1fr 1fr; column-gap: 16px; }
  .compare-headers { display: grid; margin-bottom: 8px; }
  .compare-headers .col-header:first-child { grid-column: 2; }
  .compare-row { min-height: 56px; align-items: center; }
  .compare-cell--label { padding-bottom: 14px; }
  .compare-cell .who { display: none; }
  .compare-cell--new { background: var(--lz-blue-tint); align-self: stretch; display: flex; align-items: center; }
  .compare-headers + .compare-row .compare-cell--new { border-radius: var(--lz-radius-lg) var(--lz-radius-lg) 0 0; }
  .compare-row:last-child .compare-cell--new { border-radius: 0 0 var(--lz-radius-lg) var(--lz-radius-lg); }
}

/* ---- Proof list ------------------------------------------------------------- */

.checks { display: grid; gap: 14px; margin-top: 24px; }
.checks li { display: flex; gap: 12px; align-items: flex-start; }
.checks .icon { color: var(--lz-blue); margin-top: 3px; }

/* ---- TakeawayBanner ---------------------------------------------------------- */

.takeaway {
  background: var(--lz-ink); border-radius: var(--lz-radius-xl); padding: 24px 32px;
  display: flex; flex-wrap: wrap; gap: 24px; align-items: center; justify-content: space-between;
}
@media (min-width: 900px) { .takeaway { padding: 40px 48px; } }
.takeaway-statement { color: var(--lz-surface); font-weight: 700; font-size: clamp(1.375rem, 2.6vw, 1.5rem); line-height: 1.3; }
.takeaway-support { color: var(--lz-on-dark-muted); margin-top: 6px; }

/* ---- Footer ----------------------------------------------------------------- */

.site-footer { border-top: 1px solid var(--lz-border); padding: 48px 0 40px; }
.footer-grid { display: grid; gap: 32px; }
@media (min-width: 760px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; } }
.footer-tagline { margin-top: 20px; color: var(--lz-ink); font-weight: 600; }
.footer-title { font-size: 14px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--lz-slate); margin-bottom: 12px; }
.footer-links { display: grid; gap: 8px; }
.footer-links a { color: var(--lz-ink-2); text-decoration: none; }
.footer-links a:hover { color: var(--lz-ink); text-decoration: underline; }
.copyright { margin-top: 40px; font-size: 14px; color: var(--lz-text-muted); }

/* ---- Pilot form --------------------------------------------------------------- */

.form-card {
  background: var(--lz-surface); border: 1px solid var(--lz-border);
  border-radius: var(--lz-radius-card); box-shadow: var(--lz-shadow-card); padding: 24px;
}
@media (min-width: 640px) { .form-card { padding: 40px; } }
.field + .field { margin-top: 20px; }
.field label { display: block; font-weight: 600; color: var(--lz-ink); margin-bottom: 6px; }
.field input, .field textarea {
  width: 100%; font: 400 16px/1.5 var(--lz-font); color: var(--lz-ink);
  background: var(--lz-surface); border-radius: var(--lz-radius-sm); padding: 10px 14px;
  /* Input edges need 3:1 against white; the --lz-border hairline is too faint. */
  border: 1px solid color-mix(in srgb, var(--lz-slate) 70%, var(--lz-surface));
}
.field textarea { resize: vertical; min-height: 144px; }
.field input:focus-visible, .field textarea:focus-visible { border-color: var(--lz-blue); }
.field-help { font-size: 14px; color: var(--lz-text-muted); margin-top: 6px; }
/* No status colours are defined yet (BRAND.md section 1): errors use ink text
   with a pink rule until the brand sets one. */
.field-error, .form-error {
  margin-top: 8px; padding-left: 12px; border-left: 3px solid var(--lz-pink);
  color: var(--lz-ink); font-weight: 600; font-size: 15px;
}
.form-error { margin: 0 0 24px; }
.field--invalid input, .field--invalid textarea { border-color: var(--lz-pink); }
.form-actions { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 16px; align-items: center; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* ---- Privacy page ------------------------------------------------------------- */

.legal h2 { font-size: 22px; font-weight: 700; margin: 40px 0 12px; }
.legal h3 { font-size: 18px; margin: 24px 0 8px; }
.legal p + p { margin-top: 12px; }
.legal ul { list-style: disc; padding-left: 24px; margin: 12px 0; }
.legal li + li { margin-top: 6px; }
