/* Wardwise Security site styles
   Brand: navy #1E3A5F, teal #0F766E, amber #E0A030, cream #FBF8F2, ink #14233B */

:root {
  --navy: #1E3A5F;
  --navy-deep: #152B47;
  --teal: #0F766E;
  --teal-dark: #0B5D57;
  --amber: #E0A030;
  --amber-soft: #F6E7C6;
  --cream: #FBF8F2;
  --paper: #FFFFFF;
  --ink: #14233B;
  --muted: #46536A;
  --line: #D8D0C0;
  --radius-sm: 6px;
  --radius: 14px;
  --radius-lg: 28px;
  --max: 1160px;
  --font-display: "Lexend", system-ui, sans-serif;
  --font-body: "Atkinson Hyperlegible", system-ui, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.1875rem; /* 19px */
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }

a { color: var(--teal); text-underline-offset: 3px; }
a:hover { color: var(--teal-dark); }

:focus-visible {
  outline: 3px solid var(--amber);
  outline-offset: 3px;
  border-radius: 4px;
}

h1, h2, h3 {
  font-family: var(--font-display);
  color: var(--navy);
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin: 0 0 0.5em;
}
h1 { font-size: clamp(2.4rem, 5vw, 3.75rem); font-weight: 600; }
h2 { font-size: clamp(1.85rem, 3.4vw, 2.5rem); font-weight: 600; }
h3 { font-size: 1.4rem; font-weight: 600; }
p { margin: 0 0 1em; }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--navy);
  color: #fff;
  padding: 12px 18px;
  z-index: 100;
}
.skip-link:focus { left: 12px; top: 12px; }

.wrap { width: min(100% - 48px, var(--max)); margin-inline: auto; }
.narrow { width: min(100% - 48px, 760px); margin-inline: auto; }

/* Header */
.site-header {
  background: var(--cream);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 50;
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 80px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--navy);
}
.brand img { width: 40px; height: 44px; }
.brand-name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.3rem;
  letter-spacing: -0.01em;
}
.brand-name { white-space: nowrap; }
.brand-name span { color: var(--teal); }
@media (max-width: 420px) { .brand-name { font-size: 1.1rem; } .brand img { width: 34px; height: 37px; } }

.nav-list {
  display: flex;
  align-items: center;
  gap: 6px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-list a {
  display: block;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  color: var(--ink);
  text-decoration: none;
  font-weight: 700;
  font-size: 1.05rem;
}
.nav-list a:hover { background: var(--amber-soft); color: var(--navy); }
.nav-list a[aria-current="page"] { color: var(--teal); box-shadow: inset 0 -3px 0 var(--amber); border-radius: 0; }
.nav-list a.nav-cta { background: var(--amber); color: var(--ink); margin-left: 6px; }
.nav-list a.nav-cta:hover { background: #F0B547; }
.nav-list a.nav-cta[aria-current="page"] { box-shadow: none; border-radius: var(--radius-sm); }

.menu { display: none; }

@media (max-width: 1180px) {
  .nav-desktop { display: none; }
  .menu { display: block; position: relative; }
  .menu summary {
    list-style: none;
    cursor: pointer;
    font-weight: 700;
    padding: 10px 18px;
    border: 2px solid var(--navy);
    border-radius: var(--radius-sm);
    color: var(--navy);
  }
  .menu summary::-webkit-details-marker { display: none; }
  .menu[open] summary { background: var(--navy); color: #fff; }
  .menu .nav-list {
    position: absolute;
    right: 0;
    top: calc(100% + 10px);
    flex-direction: column;
    align-items: stretch;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 10px;
    min-width: 240px;
    box-shadow: 0 12px 30px rgba(20, 35, 59, 0.15);
  }
  .menu .nav-list a { padding: 14px 16px; font-size: 1.15rem; }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 56px;
  padding: 14px 26px;
  border-radius: var(--radius-sm);
  border: 2px solid transparent;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1.1rem;
  text-decoration: none;
  line-height: 1.2;
  text-align: center;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.btn-primary { background: var(--teal); color: #fff; }
.btn-primary:hover { background: var(--teal-dark); color: #fff; }
.btn-secondary { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn-secondary:hover { background: var(--navy); color: #fff; }
.btn-light { background: var(--amber); color: var(--ink); }
.btn-light:hover { background: #F0B547; color: var(--ink); }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }

/* Hero */
.hero { padding: 88px 0 96px; }
.hero .wrap {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 56px;
  align-items: center;
}
.eyebrow {
  display: inline-block;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 18px;
}
.lede { font-size: 1.35rem; color: var(--muted); max-width: 40ch; margin-bottom: 32px; }
.hero-mark {
  justify-self: center;
  width: min(100%, 340px);
  padding: 44px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: 0 24px 60px rgba(30, 58, 95, 0.12);
  height: auto;
}
@media (max-width: 860px) {
  .hero { padding: 56px 0 64px; }
  .hero .wrap { grid-template-columns: 1fr; gap: 40px; }
  .hero-mark { order: -1; width: 160px; padding: 22px; }
  .hero .btn-row .btn { width: 100%; }
}

/* Sections */
.section { padding: 88px 0; }
.section-alt { background: var(--paper); border-block: 1px solid var(--line); }
.section-head { max-width: 720px; margin-bottom: 48px; }
.section-head p { font-size: 1.25rem; color: var(--muted); }

/* Path cards */
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
@media (max-width: 960px) { .cards { grid-template-columns: 1fr; } }
.card {
  display: flex;
  flex-direction: column;
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 34px 30px 30px;
  border-top: 6px solid var(--navy);
}
.card.teal { border-top-color: var(--teal); }
.card.amber { border-top-color: var(--amber); }
.card .icon {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: var(--navy);
  margin-bottom: 22px;
}
.card.teal .icon { background: var(--teal); }
.card.amber .icon { background: var(--amber); }
.card .icon svg { width: 30px; height: 30px; }
.card-for { font-weight: 700; color: var(--muted); margin-bottom: 10px; }
.card .desc { flex: 1; }
.card .card-for { min-height: 2lh; }
@media (max-width: 960px) { .card .card-for { min-height: 0; } }
.card .price { font-family: var(--font-display); font-weight: 600; font-size: 1.5rem; color: var(--navy); margin-bottom: 18px; }
.badge {
  display: inline-block;
  background: var(--amber-soft);
  color: var(--ink);
  font-weight: 700;
  font-size: 0.9rem;
  padding: 4px 12px;
  border-radius: 999px;
  margin-bottom: 18px;
}

/* Why list */
.why {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px 48px;
  list-style: none;
  padding: 0;
  margin: 0;
}
@media (max-width: 760px) { .why { grid-template-columns: 1fr; } }
.why li {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 16px;
  align-items: start;
}
.why .check {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--teal);
  display: grid;
  place-items: center;
}
.why .check svg { width: 22px; height: 22px; }
.why strong { display: block; font-family: var(--font-display); font-weight: 600; color: var(--navy); font-size: 1.2rem; margin-bottom: 4px; }
.why p { color: var(--muted); margin: 0; }

/* CTA band */
.cta-band { background: var(--navy); color: #EAF0F7; padding: 84px 0; }
.cta-band h2 { color: #fff; max-width: 22ch; }
.cta-band p { font-size: 1.25rem; max-width: 52ch; margin-bottom: 30px; }
.cta-band .wrap { position: relative; }
.cta-band .rule { width: 72px; height: 5px; background: var(--amber); border-radius: 3px; margin-bottom: 26px; }

.source-note { font-size: 0.95rem; color: var(--muted); margin-top: 28px; }

/* Page header for inner pages */
.page-head { padding: 72px 0 56px; border-bottom: 1px solid var(--line); }
.page-head .lede { margin-bottom: 28px; }
.page-head .price-line { font-family: var(--font-display); font-weight: 600; font-size: 1.6rem; color: var(--navy); margin-bottom: 24px; }

/* Prose content */
.prose h2 { margin-top: 1.6em; font-size: 2rem; }
.prose h2:first-child { margin-top: 0; }
.prose ul, .prose ol { padding-left: 1.3em; margin: 0 0 1.2em; }
.prose li { margin-bottom: 0.6em; }
.prose li::marker { color: var(--teal); }
.prose strong { color: var(--navy); }

.feature-list { list-style: none; padding: 0 !important; display: grid; gap: 16px; }
.feature-list li {
  background: var(--paper);
  border: 1px solid var(--line);
  border-left: 5px solid var(--amber);
  border-radius: var(--radius-sm);
  padding: 18px 22px;
  margin: 0;
}

.steps { counter-reset: step; list-style: none; padding: 0 !important; display: grid; gap: 14px; }
.steps li {
  counter-increment: step;
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 16px;
  align-items: center;
  margin: 0;
}
.steps li::before {
  content: counter(step);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--navy);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 600;
  display: grid;
  place-items: center;
  font-size: 1.2rem;
}

.faq { display: grid; gap: 14px; margin-bottom: 1.5em; }
.faq details {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 0 22px;
}
.faq summary {
  cursor: pointer;
  font-weight: 700;
  color: var(--navy);
  padding: 18px 0;
  list-style-position: outside;
}
.faq details[open] summary { border-bottom: 1px solid var(--line); margin-bottom: 14px; }

.callout {
  background: var(--amber-soft);
  border-radius: var(--radius);
  padding: 26px 28px;
  margin: 2em 0;
}
.callout h3 { margin-bottom: 0.3em; }
.callout p:last-child { margin-bottom: 0; }

.contact-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 34px;
  margin-bottom: 28px;
}
.contact-card .email {
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 3vw, 1.8rem);
  font-weight: 600;
  word-break: break-word;
}

/* Footer */
.site-footer { background: var(--ink); color: #C9D3E0; padding: 64px 0 40px; font-size: 1.05rem; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; color: #fff; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 44px;
}
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.footer-brand img { width: 36px; height: 40px; }
.footer-brand span { font-family: var(--font-display); font-weight: 600; font-size: 1.2rem; color: #fff; }
.site-footer h2 { color: #fff; font-size: 1.05rem; letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: 14px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.footer-bottom { border-top: 1px solid #2C3D57; padding-top: 24px; font-size: 0.95rem; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; }

/* Price line detail */
.price-line span { font-family: var(--font-body); font-weight: 400; font-size: 1.1rem; color: var(--muted); }
.small-note { font-size: 1rem; color: var(--muted); margin-top: 14px; }

/* Split page head (text + visual) */
.head-split { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 56px; align-items: center; }
@media (max-width: 900px) { .head-split { grid-template-columns: 1fr; gap: 40px; } }

/* Kit mockup */
.kit { position: relative; height: 420px; max-width: 440px; width: 100%; justify-self: center; }
.kit-doc { position: absolute; border-radius: 10px; box-shadow: 0 18px 40px rgba(20, 35, 59, 0.18); display: flex; flex-direction: column; }
.kit-book { left: 0; top: 0; width: 56%; height: 88%; background: var(--navy); padding: 28px 24px; color: #fff; gap: 14px; z-index: 3; border-left: 10px solid var(--navy-deep); }
.kit-book img { width: 40px; height: 44px; }
.kit-kicker { font-weight: 700; font-size: 0.85rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--amber); }
.kit-title { font-family: var(--font-display); font-weight: 600; font-size: 1.45rem; line-height: 1.2; }
.kit-check { right: 0; top: 30px; width: 52%; height: 70%; background: var(--paper); border: 1px solid var(--line); padding: 22px 20px 22px 44px; gap: 16px; z-index: 2; transform: rotate(4deg); }
.kit-card { right: 6%; bottom: 0; width: 56%; height: 34%; background: var(--amber-soft); border: 1px solid #E8D3A4; padding: 16px 18px; gap: 12px; z-index: 4; transform: rotate(-3deg); }
.kit-title-sm { font-family: var(--font-display); font-weight: 600; color: var(--navy); font-size: 1rem; line-height: 1.25; }
.kit-lines, .kit-rows { display: grid; gap: 12px; }
.kit-lines i { display: block; height: 10px; border-radius: 4px; background: #E7E1D4; position: relative; margin-left: 24px; }
.kit-lines i::before { content: ""; position: absolute; left: -24px; top: -3px; width: 14px; height: 14px; border: 2px solid var(--teal); border-radius: 3px; }
.kit-rows i { display: block; height: 9px; border-radius: 4px; background: rgba(30, 58, 95, 0.18); }
@media (max-width: 900px) { .kit { height: 340px; max-width: 360px; } .kit-title { font-size: 1.2rem; } }

/* Scenarios */
.scenarios { list-style: none; padding: 0; margin: 0 0 28px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
@media (max-width: 900px) { .scenarios { grid-template-columns: 1fr; } }
.scenarios li { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; color: var(--muted); }
.scenarios strong { display: block; font-family: var(--font-display); font-weight: 600; color: var(--navy); font-size: 1.25rem; line-height: 1.3; margin-bottom: 10px; }
.scenario-close { font-size: 1.25rem; font-weight: 700; color: var(--teal); max-width: 60ch; }

.callout-family { background: var(--paper); border: 2px solid var(--teal); }
.callout .btn-row { margin-top: 18px; }

/* Free guide band and cover */
.free-band { background: var(--amber-soft); padding: 72px 0; }
.free-band-grid { display: grid; grid-template-columns: 260px 1fr; gap: 56px; align-items: center; }
.free-band p { font-size: 1.2rem; max-width: 60ch; margin-bottom: 26px; }
@media (max-width: 760px) { .free-band-grid { grid-template-columns: 1fr; gap: 32px; } .free-band .free-cover { width: 200px; } }
.free-cover { width: 100%; aspect-ratio: 8.5 / 11; background: var(--navy); border-radius: 10px; padding: 26px 22px; display: flex; flex-direction: column; gap: 14px; box-shadow: 0 18px 40px rgba(20, 35, 59, 0.22); transform: rotate(-3deg); justify-self: center; }
.free-cover-lg { max-width: 300px; }
.fc-top { color: var(--amber); font-weight: 700; font-size: 0.8rem; letter-spacing: 0.1em; text-transform: uppercase; }
.fc-title { color: #fff; font-family: var(--font-display); font-weight: 600; font-size: 1.5rem; line-height: 1.15; }
.fc-list { display: grid; gap: 10px; margin-top: 8px; }
.fc-list i { display: block; height: 22px; border-radius: 5px; background: rgba(255, 255, 255, 0.14); border-left: 5px solid var(--amber); }

/* Sources strip */
.sources-strip { border-top: 1px solid var(--line); padding: 36px 0; background: var(--cream); }
.sources-label { font-weight: 700; font-size: 0.9rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin-bottom: 14px; }
.sources-strip ul { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 12px; }
.sources-strip li { border: 1px solid var(--line); background: var(--paper); border-radius: 999px; padding: 8px 18px; font-weight: 700; color: var(--navy); font-size: 1rem; }

/* Signup form */
.signup { width: 100%; max-width: 560px; }
.signup label { display: block; font-weight: 700; margin-bottom: 8px; }
.signup-row { display: flex; flex-wrap: wrap; gap: 10px; }
.signup input[type="email"] { flex: 1 1 240px; min-height: 56px; padding: 12px 16px; font: inherit; border: 2px solid var(--navy); border-radius: var(--radius-sm); background: #fff; color: var(--ink); }
.signup-note { font-size: 0.95rem; color: var(--muted); margin: 8px 0 0; }

/* Resources */
.article-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 22px; }
.article-list a { display: block; text-decoration: none; color: var(--ink); background: var(--paper); border: 1px solid var(--line); border-left: 6px solid var(--teal); border-radius: var(--radius); padding: 28px 30px; }
.article-list a:hover { border-color: var(--teal); }
.article-list h2 { font-size: 1.6rem; margin-bottom: 8px; }
.article-list p { color: var(--muted); }
.read-more { font-weight: 700; color: var(--teal); text-decoration: underline; text-underline-offset: 3px; }
.crumbs { font-size: 1rem; color: var(--muted); margin-bottom: 14px; }
.prose h3 { margin-top: 1.2em; }
.prose .steps li { align-items: start; }

/* 404 */
.not-found { padding: 120px 0; text-align: center; }
.not-found .btn-row { justify-content: center; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
