/* Roads & Reach — shared styles */
:root {
  --navy-900: #071a28;
  --navy-800: #0b2436;
  --navy-700: #12354d;
  --navy-500: #2a5878;
  --sand-300: #f0d3a1;
  --sand-400: #e6b96c;
  --sand-500: #d9a24c;
  --cream: #f6f2ea;
  --paper: #fffdf9;
  --ink: #142230;
  --ink-soft: #4a5866;
  --line: #e3dccf;
  --radius: 14px;
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.1; margin: 0; letter-spacing: -0.01em; }
p { margin: 0; }

.wrap { width: min(1120px, 100% - 40px); margin-inline: auto; }

/* Wordmark */
.wordmark {
  font-family: var(--sans);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  text-decoration: none;
}
.wordmark span { color: var(--sand-500); }

/* Header */
.site-header { padding: 22px 0; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.site-header nav { display: flex; gap: 22px; font-size: 15px; }
.site-header nav a { text-decoration: none; opacity: .85; }
.site-header nav a:hover { opacity: 1; text-decoration: underline; text-underline-offset: 4px; }
.site-header.on-dark { position: absolute; inset: 0 0 auto 0; z-index: 3; color: #fff; text-shadow: 0 1px 8px rgba(7,26,40,.6); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 15px 26px;
  border-radius: 999px;
  border: 1.5px solid transparent;
  font: 600 16px/1 var(--sans);
  text-decoration: none;
  cursor: pointer;
  transition: transform .15s ease, background-color .15s ease, box-shadow .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn:focus-visible { outline: 3px solid var(--sand-300); outline-offset: 3px; }
.btn-gold { background: var(--sand-400); color: var(--navy-900); box-shadow: 0 6px 18px rgba(217, 162, 76, .35); }
.btn-gold:hover { background: var(--sand-300); }
.btn-ghost { border-color: rgba(255,255,255,.55); color: #fff; }
.btn-ghost:hover { background: rgba(255,255,255,.1); }
.btn-navy { background: var(--navy-800); color: #fff; }
.btn-navy:hover { background: var(--navy-700); }

.eyebrow {
  display: inline-block;
  font-size: 13px; font-weight: 600;
  letter-spacing: .16em; text-transform: uppercase;
  color: var(--sand-500);
}

/* ---------- Home hero ---------- */
.hero {
  position: relative;
  min-height: min(92vh, 820px);
  display: flex; align-items: center;
  color: #fff;
  background: var(--navy-900);
  overflow: hidden;
}
.hero picture, .hero picture img {
  position: absolute; inset: 0; width: 100%; height: 100%;
}
.hero picture img { object-fit: cover; object-position: 78% 30%; }
.hero::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(7,26,40,.92) 0%, rgba(7,26,40,.75) 38%, rgba(7,26,40,0) 68%);
}
.hero .wrap { position: relative; z-index: 2; padding: 120px 0 80px; }
.hero-copy { max-width: 560px; }
.hero h1 { font-size: clamp(42px, 6vw, 72px); margin: 14px 0 20px; }
.hero h1 em { font-style: italic; color: var(--sand-300); font-weight: 500; }
.hero p.lead { font-size: 19px; color: rgba(255,255,255,.86); max-width: 500px; }
.hero .actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }

/* ---------- Sections ---------- */
.section { padding: 96px 0; }
.section-head { max-width: 640px; margin-bottom: 44px; }
.section-head h2 { font-size: clamp(32px, 4vw, 44px); margin-top: 10px; }
.section-head p { color: var(--ink-soft); margin-top: 14px; font-size: 18px; }

.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 28px;
}
.card .num { font-family: var(--serif); font-size: 15px; color: var(--sand-500); font-weight: 600; }
.card h3 { font-size: 24px; margin: 10px 0 10px; }
.card p { color: var(--ink-soft); font-size: 16px; }

/* Freebie band */
.band {
  background: var(--navy-800);
  color: #fff;
  border-radius: 22px;
  padding: 56px;
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 40px;
  align-items: center;
}
.band h2 { font-size: clamp(30px, 3.6vw, 42px); margin: 10px 0 14px; }
.band h2 em { color: var(--sand-300); font-weight: 500; }
.band p { color: rgba(255,255,255,.82); }
.band .btn { margin-top: 26px; }

/* PDF cover mock (pure CSS) */
.cover {
  justify-self: center;
  width: min(300px, 100%);
  aspect-ratio: 3 / 4;
  border-radius: 10px;
  background: linear-gradient(160deg, var(--navy-700), var(--navy-900));
  border: 1px solid rgba(255,255,255,.14);
  box-shadow: 0 30px 60px rgba(0,0,0,.35), 0 0 0 8px rgba(255,255,255,.04);
  padding: 28px 26px;
  display: flex; flex-direction: column;
  color: #fff;
  transform: rotate(-2.5deg);
}
.cover .tag { font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--sand-300); font-weight: 600; }
.cover .title { font-family: var(--serif); font-size: 30px; line-height: 1.05; margin-top: 16px; }
.cover .title em { color: var(--sand-300); font-weight: 500; }
.cover ul { list-style: none; padding: 0; margin: auto 0 0; font-size: 13px; color: rgba(255,255,255,.78); }
.cover li { padding: 7px 0; border-top: 1px solid rgba(255,255,255,.12); }
.cover .brand { margin-top: 14px; font-size: 10px; letter-spacing: .22em; text-transform: uppercase; opacity: .7; }
.cover.on-light { transform: rotate(2deg); }

/* ---------- Opt-in page ---------- */
.optin-main { padding: 40px 0 90px; }
.optin {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 64px;
  align-items: center;
}
.optin h1 { font-size: clamp(40px, 5.4vw, 64px); margin: 14px 0 20px; }
.optin h1 em { font-style: italic; font-weight: 500; color: var(--navy-500); }
.optin .intro { font-size: 18px; color: var(--ink-soft); max-width: 560px; }
.inside { list-style: none; padding: 0; margin: 24px 0 30px; display: grid; gap: 10px; }
.inside li { display: flex; gap: 12px; align-items: flex-start; font-size: 16px; }
.inside li::before {
  content: ""; flex: 0 0 20px; height: 20px; margin-top: 3px; border-radius: 50%;
  background: var(--sand-400) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5.5 10.5l3 3 6-7' fill='none' stroke='%23071a28' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/14px no-repeat;
}

/* Form */
.signup {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
  max-width: 520px;
  box-shadow: 0 12px 30px rgba(20, 34, 48, .06);
}
.signup .row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 13px; font-weight: 600; color: var(--ink-soft); }
.field input {
  font: 16px var(--sans);
  padding: 14px 14px;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  background: #fff;
  color: var(--ink);
  width: 100%;
}
.field input:focus { outline: none; border-color: var(--navy-500); box-shadow: 0 0 0 4px rgba(42, 88, 120, .14); }
.signup .btn { width: 100%; margin-top: 16px; padding: 17px 24px; font-size: 17px; }
.signup .btn[disabled] { opacity: .7; cursor: progress; transform: none; }
.fineprint { font-size: 12.5px; line-height: 1.5; color: var(--ink-soft); margin-top: 14px; }
.fineprint a { color: var(--ink); }
.form-msg { margin-top: 14px; font-size: 15px; font-weight: 500; }
.form-msg.error { color: #a3361f; }
.signup-done { text-align: center; padding: 18px 6px; }
.signup-done .check {
  width: 56px; height: 56px; border-radius: 50%; margin: 0 auto 14px;
  background: var(--sand-400) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5.5 10.5l3 3 6-7' fill='none' stroke='%23071a28' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/30px no-repeat;
}
.signup-done h2 { font-size: 28px; margin-bottom: 8px; }
.signup-done p { color: var(--ink-soft); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Prose (privacy) ---------- */
.prose { max-width: 720px; padding: 40px 0 90px; }
.prose h1 { font-size: clamp(36px, 5vw, 52px); margin-bottom: 10px; }
.prose h2 { font-size: 24px; margin: 36px 0 10px; }
.prose p, .prose li { color: var(--ink-soft); }
.prose p + p { margin-top: 12px; }
.prose ul { padding-left: 20px; }
.prose .updated { font-size: 14px; color: var(--ink-soft); margin-bottom: 28px; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 34px 0 44px; font-size: 14px; color: var(--ink-soft); }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; align-items: center; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 20px; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .cards { grid-template-columns: 1fr; }
  .band { grid-template-columns: 1fr; padding: 40px 28px; }
  .band .cover { display: none; }
  .optin { grid-template-columns: 1fr; gap: 36px; }
  .optin .cover { order: -1; width: 210px; justify-self: start; transform: rotate(-2deg); }
  .optin .cover .title { font-size: 22px; }
  .optin .cover ul { font-size: 11.5px; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .section { padding: 68px 0; }
  .site-header nav { display: none; }
  .hero { min-height: 0; align-items: flex-end; }
  .hero picture { position: relative; height: 62vh; min-height: 380px; }
  .hero picture img { object-position: 80% 20%; }
  .hero::after { display: none; }
  .hero picture img { -webkit-mask-image: linear-gradient(180deg, #000 60%, transparent 100%); mask-image: linear-gradient(180deg, #000 60%, transparent 100%); }
  .hero { flex-direction: column; align-items: stretch; }
  .hero .wrap { padding: 0 0 56px; margin-top: -48px; }
  .hero .eyebrow { font-size: 11.5px; letter-spacing: .12em; }
  .hero h1 { margin-top: 10px; }
  .hero p.lead { font-size: 17px; }
  .hero .actions .btn { flex: 1 1 100%; }
  .signup { padding: 20px; }
  .signup .row { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) { .btn { transition: none; } .btn:hover { transform: none; } }
