/* Zelkam landing-page styles. Source of truth for every value: brand/DESIGN.md.
   Shared by every playbook edition. Change a brand value here once, not per page. */

@font-face {
  font-family: "Actor";
  src: url("fonts/actor-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --primary: #014859;          /* Zelkam Teal */
  --on-primary: #FFFFFF;
  --secondary: #1C709C;        /* Deep Sky Blue */
  --tertiary: #EA7704;         /* Action Orange */
  --on-tertiary: #1B1B1B;      /* Charcoal */
  --neutral: #ECF0F1;          /* Mist */
  --surface: #FFFFFF;
  --surface-alt: #F8F9FB;
  --surface-tint: #EBF1F2;
  --on-surface: #475058;       /* Slate */
  --on-surface-muted: #5E6A74; /* Muted Slate */
  --link-on-dark: #F8E71C;     /* Signal Yellow */
  --outline: #CCCCCC;
  --outline-subtle: #EAECF0;
  --error: #E90000;
  --error-on-dark: #FFB4AB;
  --on-primary-soft: #CFE0E4;  /* captions on teal (9.6:1) */
  --display: "Actor", Arial, sans-serif;
  --hero: Tahoma, Arial, sans-serif;
  --body: Arial, Helvetica, sans-serif;
  --shadow-card: 0 2px 10px rgba(0,0,0,0.1);
  --wrap: 1120px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--surface);
  color: var(--on-surface);
  font-family: var(--body);
  font-size: 18px;
  line-height: 1.8;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--secondary); }
a:hover { color: var(--primary); }
:focus-visible { outline: 3px solid var(--secondary); outline-offset: 2px; }
.on-dark :focus-visible { outline-color: var(--link-on-dark); }

h1, h2, h3 { font-family: var(--display); font-weight: 400; color: var(--primary); margin: 0; }
h2 { font-size: 32px; line-height: 1.25; }
h3 { font-size: 24px; line-height: 1.3; }
p { margin: 0; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 10px; top: 10px; z-index: 10; background: var(--surface); padding: 8px 12px; }

/* Top bar and header */
.topbar { background: var(--primary); height: 10px; }
.site-header { background: var(--neutral); padding: 14px 0; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 16px; text-decoration: none; }
.brand img { height: 54px; width: auto; }
.tagline { font-size: 15px; line-height: 1.4; color: var(--on-surface-muted); }
.header-note { font-size: 14px; color: var(--on-surface-muted); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 10px 35px; border: 0; border-radius: 5px;
  font-family: var(--body); font-size: 16px; font-weight: 700; line-height: 1.2;
  text-decoration: none; cursor: pointer;
}
.btn-primary { background: var(--tertiary); color: var(--on-tertiary); }
.btn-primary:hover { background: #D96E03; color: var(--on-tertiary); }
.btn-secondary { background: var(--secondary); color: var(--on-secondary, #FFFFFF); }
.btn-secondary:hover { background: #175F85; color: #FFFFFF; }
.btn-on-dark { background: var(--surface); color: var(--primary); }
.btn-on-dark:hover { background: var(--neutral); color: var(--primary); }
.btn-sm { padding: 10px 20px; font-size: 14px; }
.btn svg { flex: 0 0 auto; }

/* Sections */
.section { padding: 64px 0; }
.section-tint { background: var(--surface-tint); }
.section-mist { background: var(--neutral); }
.section-teal { background: var(--primary); color: var(--on-primary); }
.section-teal h1, .section-teal h2, .section-teal h3 { color: var(--on-primary); }
.section-teal a:not(.btn) { color: var(--link-on-dark); }
.eyebrow { font-size: 16px; font-weight: 700; line-height: 1.4; color: var(--link-on-dark); }
.lede { font-family: var(--display); font-size: 24px; line-height: 1.45; }
.stack { display: flex; flex-direction: column; gap: 20px; }

/* Hero */
.hero { padding: 56px 0 64px; }
.hero h1 { font-family: var(--hero); font-weight: 700; font-size: 52px; line-height: 1.1; color: var(--on-primary); text-shadow: 2px 2px 1px #000; }
.cover-img { border-radius: 3px; box-shadow: 0 8px 24px rgba(0,0,0,.4); }

/* Gated page */
.gate-grid { display: flex; flex-wrap: wrap; gap: 48px; align-items: flex-start; }
.gate-main { flex: 999 1 520px; min-width: 0; }
.gate-offer { display: flex; flex-wrap: wrap; gap: 28px; align-items: flex-start; margin-top: 8px; }
.gate-offer .cover-img { width: 190px; flex: 0 0 auto; }
.checks { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; flex: 1 1 260px; min-width: 0; }
.checks li { display: flex; gap: 12px; align-items: flex-start; line-height: 1.5; }
.checks svg { flex: 0 0 auto; margin-top: 4px; }

.form-card {
  flex: 1 1 340px; min-width: 0; max-width: 420px; background: var(--surface); color: var(--on-surface);
  border-radius: 5px; box-shadow: var(--shadow-card); padding: 32px; display: flex; flex-direction: column; gap: 16px;
}
.form-card h2 { font-size: 28px; color: var(--primary); }
.form-card p { font-size: 16px; line-height: 1.6; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 14px; line-height: 1.4; }
.req { color: var(--error); }
.field input, .field select {
  height: 44px; border: 1px solid var(--outline); border-radius: 3px; padding: 0 12px;
  font-family: var(--body); font-size: 16px; color: var(--on-surface); background: var(--surface);
}
.fine { font-size: 12px; line-height: 1.5; color: var(--on-surface-muted); }

.chapter-list { list-style: none; margin: 32px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 0 48px; }
.chapter-list li { display: flex; gap: 18px; padding: 20px 0; border-top: 1px solid var(--outline-subtle); }
.chapter-list .num { font-family: var(--display); font-size: 28px; line-height: 1.2; color: var(--secondary); width: 32px; flex: 0 0 auto; }
.chapter-list strong { display: block; color: var(--primary); font-size: 18px; line-height: 1.4; }
.chapter-list span { font-size: 16px; line-height: 1.6; }

.cards { display: flex; flex-wrap: wrap; gap: 20px; margin-top: 28px; }
.card { flex: 1 1 280px; background: var(--surface); border-radius: 5px; padding: 24px; }
.card strong { display: block; color: var(--primary); font-size: 18px; line-height: 1.4; margin-bottom: 6px; }
.card span { font-size: 16px; line-height: 1.6; }

.author { display: flex; flex-wrap: wrap; gap: 40px; align-items: center; }
.author img.headshot { width: 160px; height: 160px; border-radius: 50%; object-fit: cover; flex: 0 0 auto; }
.author-text { flex: 999 1 420px; min-width: 0; display: flex; flex-direction: column; gap: 12px; }
.center { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 20px; }

/* Open (read) page */
.read-hero { display: flex; flex-wrap: wrap; gap: 40px; align-items: center; }
.read-hero-text { flex: 999 1 480px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.read-hero .cover-img { width: 220px; flex: 0 0 auto; }
.read-hero-actions { display: flex; flex-wrap: wrap; gap: 16px 24px; align-items: center; font-size: 16px; }

.byline { display: flex; gap: 16px; align-items: center; padding: 20px 0; border-bottom: 1px solid var(--outline-subtle); margin-bottom: 8px; }
.byline img { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; flex: 0 0 auto; }
.byline-text { font-size: 16px; line-height: 1.5; }
.byline-text strong { color: var(--primary); }

.read-layout { display: flex; flex-wrap: wrap; gap: 56px; align-items: flex-start; }
.toc { flex: 1 1 240px; max-width: 280px; border-top: 3px solid var(--primary); padding-top: 16px; }
@media (min-width: 900px) { .toc { position: sticky; top: 20px; } }
@media (max-width: 899px) { .toc { max-width: none; } }
.toc p { font-size: 14px; font-weight: 700; color: var(--primary); margin-bottom: 8px; }
.toc ol { list-style: none; margin: 0; padding: 0; }
.toc a { display: block; font-size: 15px; line-height: 1.45; padding: 8px 0; border-bottom: 1px solid var(--outline-subtle); text-decoration: none; }
.toc li:last-child a { border-bottom: 0; }

.article { flex: 999 1 560px; min-width: 0; max-width: 740px; }
.article > section { padding-top: 40px; display: flex; flex-direction: column; gap: 18px; scroll-margin-top: 20px; }
.article > section:first-of-type { padding-top: 8px; }
.article h2 { font-size: 32px; }
.article h3 { font-size: 22px; margin-top: 12px; }
.article .sub { font-size: 19px; color: var(--on-surface-muted); line-height: 1.6; }
.article ol, .article ul { margin: 0; padding-left: 24px; }
.article li + li { margin-top: 6px; }
.article sup { line-height: 0; font-size: 12px; }
.article sup a { text-decoration: none; font-weight: 700; }
.small { font-size: 15px; line-height: 1.6; }
.muted { color: var(--on-surface-muted); }

.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 14px; }
.stat { background: var(--surface-tint); border-radius: 5px; padding: 18px; }
.stat .big { display: block; font-family: var(--display); font-size: 32px; line-height: 1.2; color: var(--primary); }
.stat span { display: block; font-size: 14px; line-height: 1.5; margin-top: 6px; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { font-size: 14px; line-height: 1.4; padding: 4px 10px; border: 1px solid var(--outline-subtle); border-radius: 3px; background: var(--surface-alt); }
.chip b { color: var(--primary); }

.box { border-left: 4px solid var(--primary); background: var(--surface-tint); padding: 20px 24px; display: flex; flex-direction: column; gap: 10px; }
.box h3 { margin: 0; font-size: 20px; }
.box-warm { border-left-color: var(--tertiary); background: var(--surface-alt); }

.table-scroll { overflow-x: auto; border: 1px solid var(--outline-subtle); border-radius: 3px; }
table { width: 100%; border-collapse: collapse; font-size: 15px; line-height: 1.45; }
th { background: var(--primary); color: var(--on-primary); text-align: left; font-weight: 700; padding: 10px 12px; vertical-align: bottom; }
td { padding: 10px 12px; border-top: 1px solid var(--outline-subtle); vertical-align: top; }
tbody tr:nth-child(even) td { background: var(--surface-alt); }
td.num, th.num { text-align: right; white-space: nowrap; }
.matrix { min-width: 720px; }
.matrix tr.highlight td { background: var(--surface-tint); font-weight: 700; }
.rating { display: inline-block; min-width: 92px; text-align: center; font-size: 13px; font-weight: 700; padding: 3px 8px; border-radius: 3px; }
.rating-strong { background: var(--primary); color: var(--on-primary); }
.rating-moderate { background: var(--surface-tint); color: var(--primary); border: 1px solid var(--primary); }
.rating-low { background: var(--surface); color: var(--on-surface-muted); border: 1px solid var(--outline); font-weight: 400; }
.caption { font-size: 14px; line-height: 1.6; color: var(--on-surface-muted); }

.fits { font-size: 16px; line-height: 1.6; }
.option { border-top: 1px solid var(--outline-subtle); padding-top: 20px; display: flex; flex-direction: column; gap: 12px; }

.two-col { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 28px; }
.two-col > div { display: flex; flex-direction: column; gap: 10px; }

.checklist { list-style: none; padding: 0 !important; margin: 0; }
.checklist li { display: flex; gap: 12px; align-items: flex-start; }
.checklist li::before { content: ""; flex: 0 0 18px; height: 18px; border: 2px solid var(--primary); border-radius: 3px; margin-top: 6px; }

.calc { background: var(--surface-tint); border-left: 4px solid var(--primary); padding: 20px 24px; display: flex; flex-direction: column; gap: 14px; }
.calc-row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px 16px; padding: 8px 0; border-top: 1px solid var(--outline-subtle); }
.calc-row:first-of-type { border-top: 0; }
.calc-row label, .calc-row .lbl { font-size: 16px; line-height: 1.5; flex: 1 1 260px; }
.calc-row input { width: 160px; height: 44px; border: 1px solid var(--outline); border-radius: 3px; padding: 0 10px; font-size: 16px; font-family: var(--body); text-align: right; }
.calc-row output { width: 160px; text-align: right; font-weight: 700; color: var(--primary); font-size: 18px; }
.calc-result .lbl { font-weight: 700; color: var(--primary); }

.sources { font-size: 14px; line-height: 1.6; padding-left: 28px !important; }
.sources li { scroll-margin-top: 20px; overflow-wrap: anywhere; }
.sources li:target { background: var(--surface-tint); }

.download { display: flex; flex-wrap: wrap; gap: 40px; align-items: center; }
.download .cover-img { width: 170px; flex: 0 0 auto; }
.download-text { flex: 999 1 380px; min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.actions { display: flex; flex-wrap: wrap; gap: 14px; }

/* Footer */
.site-footer { background: var(--primary); color: var(--on-primary); padding: 36px 0; font-size: 14px; line-height: 1.6; }
.site-footer .row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; }
.site-footer a { color: var(--link-on-dark); }
.site-footer .disclosure { margin-top: 12px; font-size: 12px; color: var(--on-primary-soft); }

@media (max-width: 640px) {
  body { font-size: 17px; }
  .section { padding: 48px 0; }
  .hero h1 { font-size: 38px; }
  h2, .article h2 { font-size: 27px; }
  .lede { font-size: 21px; }
  .form-card { padding: 24px; max-width: none; }
  .gate-offer .cover-img { width: 140px; }
  .read-hero .cover-img { width: 160px; }
  .author img.headshot { width: 120px; height: 120px; }
  .btn { padding: 10px 24px; }
}

/* The playbook cover is Zelkam Teal, so give it an edge where it sits on a teal section. */
.section-teal .cover-img { border: 2px solid rgba(255,255,255,.35); }
.section-teal .form-card a:not(.btn) { color: var(--secondary); }

/* Call-to-action band inside the guide text (matches the teal boxes in the PDF). */
.cta-band { background: var(--primary); color: var(--on-primary); border-radius: 5px; padding: 20px 24px; display: flex; flex-wrap: wrap; gap: 16px 24px; align-items: center; justify-content: space-between; }
.cta-band > div { flex: 1 1 280px; display: flex; flex-direction: column; gap: 6px; }
.cta-band h3 { color: var(--on-primary); margin: 0; font-size: 22px; }
.cta-band p { font-size: 16px; line-height: 1.5; }
