/* =====================================================================
   Survival Master Guide — site styles
   Identity: calm civil-defence field manual, light. Institutional paper,
   navy ink, a single amber signal colour, concentric blast-ring hero.
   No external libraries; system font stacks only.
   ===================================================================== */

:root {
  --paper:    #eef1f4;   /* institutional light background */
  --paper-2:  #e6eaef;   /* deeper panel / footer */
  --card:     #ffffff;
  --ink:      #14202e;   /* deep navy ink */
  --ink-2:    #36444f;
  --ink-3:    #66727e;
  --line:     #d8dee6;
  --line-2:   #c6ced8;

  --amber:    #e08a00;   /* the signal colour */
  --amber-d:  #b06d00;
  --amber-soft:#fff4e0;
  --alert:    #c62f24;
  --safe:     #1f8a4c;

  --sans: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", "Cascadia Code", "JetBrains Mono", "Roboto Mono", Menlo, Consolas, monospace;

  --wrap: 1140px;
  --r:    14px;          /* card radius */
  --shadow-1: 0 1px 2px rgba(20,32,46,.06), 0 8px 24px rgba(20,32,46,.06);
  --shadow-2: 0 2px 6px rgba(20,32,46,.08), 0 22px 48px rgba(20,32,46,.12);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 84px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: inherit; }
img { max-width: 100%; display: block; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }

/* ---- shared bits --------------------------------------------------- */
.eyebrow {
  font-family: var(--mono);
  font-size: .74rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--amber-d);
  display: inline-flex;
  align-items: center;
  gap: .6em;
  margin: 0 0 14px;
}
.eyebrow::before {
  content: "";
  width: 22px; height: 2px;
  background: var(--amber);
  display: inline-block;
}

.brand-mark { width: 26px; height: 26px; color: var(--ink); flex: none; }

/* ---- buttons ------------------------------------------------------- */
.btn {
  --bg: var(--ink); --fg: #fff; --bd: var(--ink);
  appearance: none; border: 1.5px solid var(--bd); background: var(--bg); color: var(--fg);
  font-family: var(--sans); font-weight: 650; font-size: .98rem;
  padding: 13px 22px; border-radius: 999px; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  text-decoration: none; line-height: 1; white-space: nowrap;
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease, color .2s ease, border-color .2s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn:focus-visible { outline: none; box-shadow: 0 0 0 3px rgba(224,138,0,.4); }

.btn-primary { --bg: var(--amber); --fg: #2a1c00; --bd: var(--amber); box-shadow: 0 6px 18px rgba(224,138,0,.30); }
.btn-primary:hover { --bg: #f0950a; box-shadow: 0 10px 26px rgba(224,138,0,.38); }

.btn-ghost { --bg: transparent; --fg: var(--ink); --bd: var(--line-2); }
.btn-ghost:hover { --bd: var(--ink); background: rgba(20,32,46,.04); }

.btn-sm { padding: 9px 15px; font-size: .86rem; }
.btn-lg { padding: 16px 28px; font-size: 1.05rem; }

/* form-wrapped buttons shouldn't add layout */
form.inline-buy { margin: 0; display: inline; }

/* =====================================================================
   NAV
   ===================================================================== */
.nav {
  position: sticky; top: 0; z-index: 60;
  background: rgba(238,241,244,.82);
  backdrop-filter: saturate(140%) blur(12px);
  -webkit-backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav-inner { display: flex; align-items: center; gap: 18px; height: 66px; }
.brand { display: inline-flex; align-items: center; gap: 11px; text-decoration: none; color: var(--ink); }
.brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand-name { font-weight: 800; letter-spacing: -.01em; font-size: 1.02rem; }
.brand-sub { font-family: var(--mono); font-size: .6rem; letter-spacing: .26em; text-transform: uppercase; color: var(--ink-3); }
.nav-spacer { flex: 1; }
.nav-links { display: flex; gap: 26px; }
.nav-link {
  text-decoration: none; color: var(--ink-2); font-weight: 550; font-size: .94rem;
  padding: 6px 0; position: relative;
}
.nav-link:hover { color: var(--ink); }
.nav-link::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: 0; height: 2px;
  background: var(--amber); transition: right .22s ease;
}
.nav-link:hover::after { right: 0; }

@media (max-width: 760px) { .nav-links { display: none; } }

/* =====================================================================
   HERO  — concentric blast rings + radar pings + 3D book
   ===================================================================== */
.hero { position: relative; overflow: hidden; isolation: isolate; }
.hero-rings {
  position: absolute; inset: 0; z-index: -2; pointer-events: none;
  --cx: 74%; --cy: 46%;
  background:
    repeating-radial-gradient(circle at var(--cx) var(--cy),
      transparent 0 67px, rgba(20,32,46,.045) 67px 68px),
    radial-gradient(1100px 700px at var(--cx) var(--cy),
      rgba(255,255,255,.9) 0%, rgba(238,241,244,.2) 55%, transparent 75%);
}
.hero-rings::after { /* gentle base wash */
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(255,255,255,.55), transparent 30%, transparent 80%, rgba(214,222,230,.5));
}
.hero-ping {
  position: absolute; left: var(--cx, 74%); top: var(--cy, 46%); z-index: -1;
  width: 140px; height: 140px; margin: -70px 0 0 -70px;
  border: 1.5px solid rgba(224,138,0,.55); border-radius: 50%;
  transform: scale(.35); opacity: 0; pointer-events: none;
  animation: ping 6s ease-out infinite;
}
.hero-ping.p2 { animation-delay: 2s; }
.hero-ping.p3 { animation-delay: 4s; border-color: rgba(20,32,46,.28); }
@keyframes ping {
  0%   { transform: scale(.35); opacity: .0; }
  12%  { opacity: .7; }
  100% { transform: scale(4.6); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-ping { animation: none; opacity: .35; transform: scale(2.2); }
  .hero-ping.p3 { display: none; }
}

.hero-inner {
  display: grid; grid-template-columns: 1.05fr .95fr; gap: 40px; align-items: center;
  padding: 92px 24px 96px;
}
.hero-copy { max-width: 560px; }
.hero-title {
  font-size: clamp(2.5rem, 5.4vw, 4rem); line-height: 1.02; letter-spacing: -.025em;
  font-weight: 850; margin: 0 0 18px; color: var(--ink);
}
.hero-title .accent { color: var(--amber-d); }
.hero-sub { font-size: 1.16rem; color: var(--ink-2); margin: 0 0 30px; max-width: 30em; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 26px; }
.price-note { font-weight: 600; opacity: .85; }

.hero-trust { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.hero-trust .t-label { font-family: var(--mono); font-size: .66rem; letter-spacing: .2em; text-transform: uppercase; color: var(--ink-3); }
.hero-trust .t-sources { font-size: .82rem; color: var(--ink-2); font-weight: 550; }

/* book */
.hero-art { display: flex; justify-content: center; align-items: center; perspective: 1600px; }
.book {
  position: relative;
  transform: rotateY(-26deg) rotateX(6deg);
  transform-style: preserve-3d;
  animation: bookfloat 7s ease-in-out infinite;
  filter: drop-shadow(0 36px 40px rgba(20,32,46,.30));
}
@keyframes bookfloat {
  0%,100% { transform: rotateY(-26deg) rotateX(6deg) translateY(0); }
  50%     { transform: rotateY(-22deg) rotateX(5deg) translateY(-12px); }
}
@media (prefers-reduced-motion: reduce) { .book { animation: none; } }
.book-cover {
  width: clamp(230px, 30vw, 320px); aspect-ratio: 680 / 876;
  border-radius: 4px 8px 8px 4px; overflow: hidden; position: relative;
  background: #0b1622; transform: translateZ(22px);
  box-shadow: inset -2px 0 6px rgba(255,255,255,.18), inset 1px 0 0 rgba(0,0,0,.3);
}
.book-cover img { width: 100%; height: 100%; object-fit: cover; }
.book::before { /* page block thickness on the right */
  content: ""; position: absolute; top: 2.4%; right: -2px; height: 95.2%; width: 44px;
  transform: rotateY(90deg) translateZ(calc(clamp(230px,30vw,320px) - 22px)) translateX(-22px);
  transform-origin: right center;
  background: repeating-linear-gradient(90deg, #f5f3ec 0 2px, #ddd9cd 2px 3px);
  border-radius: 2px;
}
.book::after { /* spine */
  content: ""; position: absolute; top: 0; left: 0; height: 100%; width: 44px;
  transform: rotateY(-90deg) translateZ(22px); transform-origin: left center;
  background: linear-gradient(90deg, #0a131d, #16273a);
  border-radius: 4px 0 0 4px;
}
.book-badge {
  position: absolute; z-index: 3; left: 50%; bottom: -16px; transform: translateX(-50%) translateZ(40px);
  font-family: var(--mono); font-size: .68rem; letter-spacing: .12em; text-transform: uppercase;
  background: var(--amber); color: #2a1c00; padding: 7px 13px; border-radius: 999px; font-weight: 700;
  box-shadow: var(--shadow-1); white-space: nowrap;
}

@media (max-width: 880px) {
  .hero-inner { grid-template-columns: 1fr; gap: 8px; padding: 70px 24px 78px; text-align: left; }
  .hero-rings { --cx: 80%; --cy: 22%; }
  .hero-art { order: -1; margin-bottom: 26px; }
  .book-cover { width: clamp(190px, 52vw, 250px); }
}

/* =====================================================================
   SECTIONS (shared)
   ===================================================================== */
.section { padding: 92px 0; }
.section + .section { padding-top: 0; }
.section-head { max-width: 680px; margin: 0 auto 52px; text-align: center; }
.section-head.left { margin-left: 0; text-align: left; }
.section-title { font-size: clamp(1.8rem, 3.4vw, 2.5rem); line-height: 1.1; letter-spacing: -.02em; font-weight: 800; margin: 0 0 14px; }
.section-lead { font-size: 1.08rem; color: var(--ink-2); margin: 0; }

/* reveal-on-scroll */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

/* ---- features ------------------------------------------------------ */
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.feature {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r);
  padding: 26px 24px; box-shadow: var(--shadow-1);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.feature:hover { transform: translateY(-3px); box-shadow: var(--shadow-2); border-color: var(--line-2); }
.feature-ic {
  width: 46px; height: 46px; border-radius: 11px; display: grid; place-items: center;
  background: var(--amber-soft); color: var(--amber-d); margin-bottom: 16px;
}
.feature-ic svg { width: 25px; height: 25px; }
.feature h3 { margin: 0 0 7px; font-size: 1.08rem; letter-spacing: -.01em; }
.feature p { margin: 0; color: var(--ink-2); font-size: .95rem; }
.feature .fkpi { font-family: var(--mono); color: var(--ink); font-weight: 700; }

@media (max-width: 880px) { .feature-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .feature-grid { grid-template-columns: 1fr; } }

/* ---- compare (free vs paid) --------------------------------------- */
.compare-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; align-items: stretch; max-width: 920px; margin: 0 auto; }
.plan {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r);
  padding: 30px 28px; display: flex; flex-direction: column; box-shadow: var(--shadow-1);
}
.plan.featured { border: 1.5px solid var(--amber); box-shadow: 0 4px 14px rgba(224,138,0,.14), var(--shadow-2); position: relative; }
.plan-flag {
  position: absolute; top: -12px; right: 22px; font-family: var(--mono); font-size: .64rem; letter-spacing: .16em;
  text-transform: uppercase; background: var(--amber); color: #2a1c00; padding: 5px 11px; border-radius: 999px; font-weight: 700;
}
.plan-eyebrow { font-family: var(--mono); font-size: .72rem; letter-spacing: .18em; text-transform: uppercase; color: var(--ink-3); margin: 0 0 8px; }
.plan-name { font-size: 1.35rem; font-weight: 800; margin: 0 0 4px; letter-spacing: -.01em; }
.plan-price { font-size: 2.4rem; font-weight: 850; letter-spacing: -.02em; margin: 6px 0 2px; }
.plan-price small { font-size: .9rem; font-weight: 600; color: var(--ink-3); letter-spacing: 0; }
.plan-sub { color: var(--ink-2); margin: 0 0 18px; font-size: .96rem; }
.plan-list { list-style: none; margin: 0 0 24px; padding: 0; display: grid; gap: 11px; flex: 1; }
.plan-list li { display: flex; gap: 11px; align-items: flex-start; font-size: .96rem; color: var(--ink-2); }
.plan-list svg { width: 19px; height: 19px; flex: none; margin-top: 2px; }
.plan-list .yes { color: var(--safe); }
.plan-list .no  { color: var(--ink-3); opacity: .7; }
.plan-list .li-off { color: var(--ink-3); }
.plan .btn { width: 100%; }

@media (max-width: 720px) { .compare-grid { grid-template-columns: 1fr; } }

/* ---- spotlight (featured guide detail) ---------------------------- */
.spotlight-card {
  background: var(--card); border: 1px solid var(--line); border-radius: 20px; overflow: hidden;
  display: grid; grid-template-columns: 300px 1fr; box-shadow: var(--shadow-2);
}
.spotlight-cover { position: relative; background: linear-gradient(160deg, #16273a, #0b1622); display: grid; place-items: center; padding: 36px; }
.spotlight-cover img { width: 200px; border-radius: 4px 7px 7px 4px; box-shadow: 0 20px 40px rgba(0,0,0,.4); }
.spotlight-body { padding: 40px 42px; }
.spotlight-body h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); margin: 0 0 12px; letter-spacing: -.02em; line-height: 1.12; }
.spotlight-body p { color: var(--ink-2); margin: 0 0 20px; }
.learn-list { list-style: none; margin: 0 0 26px; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px 22px; }
.learn-list li { display: flex; gap: 10px; align-items: flex-start; font-size: .94rem; color: var(--ink-2); }
.learn-list svg { width: 17px; height: 17px; color: var(--amber-d); flex: none; margin-top: 3px; }
.spotlight-cta { display: flex; gap: 12px; flex-wrap: wrap; }

@media (max-width: 760px) { .spotlight-card { grid-template-columns: 1fr; } .spotlight-cover { padding: 30px; } .spotlight-body { padding: 30px 26px; } .learn-list { grid-template-columns: 1fr; } }

/* ---- more guides --------------------------------------------------- */
.more-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.more-card {
  border: 1px dashed var(--line-2); border-radius: var(--r); padding: 26px 24px; background: rgba(255,255,255,.5);
  display: flex; flex-direction: column; gap: 8px; min-height: 150px;
}
.more-card .mc-tag { font-family: var(--mono); font-size: .66rem; letter-spacing: .18em; text-transform: uppercase; color: var(--amber-d); }
.more-card h3 { margin: 0; font-size: 1.1rem; }
.more-card p { margin: 0; color: var(--ink-3); font-size: .92rem; }
.more-card.live { border-style: solid; background: var(--card); box-shadow: var(--shadow-1); }
@media (max-width: 880px) { .more-grid { grid-template-columns: 1fr; } }

/* ---- faq ----------------------------------------------------------- */
.faq-list { max-width: 760px; margin: 0 auto; display: grid; gap: 12px; }
.faq-item { background: var(--card); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.faq-item summary {
  list-style: none; cursor: pointer; padding: 18px 22px; font-weight: 650; font-size: 1.02rem;
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary .chev { width: 18px; height: 18px; flex: none; transition: transform .25s ease; color: var(--amber-d); }
.faq-item[open] summary .chev { transform: rotate(45deg); }
.faq-item .faq-a { padding: 0 22px 20px; color: var(--ink-2); }
.faq-item .faq-a p { margin: 0; }

/* =====================================================================
   FOOTER
   ===================================================================== */
.foot { background: var(--paper-2); border-top: 1px solid var(--line); padding: 56px 0 40px; }
.foot-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 30px; }
.foot-brand .brand { margin-bottom: 12px; }
.foot-brand p { margin: 0; color: var(--ink-3); font-size: .92rem; max-width: 32ch; }
.foot-col h4 { font-family: var(--mono); font-size: .68rem; letter-spacing: .18em; text-transform: uppercase; color: var(--ink-3); margin: 4px 0 14px; }
.foot-col a { display: block; text-decoration: none; color: var(--ink-2); font-size: .94rem; padding: 5px 0; }
.foot-col a:hover { color: var(--ink); }
.foot-rule { height: 1px; background: var(--line); margin: 34px 0 20px; }
.foot-legal { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; color: var(--ink-3); font-size: .82rem; }
.foot-legal .disclaimer { max-width: 60ch; }
@media (max-width: 760px) { .foot-top { grid-template-columns: 1fr 1fr; } .foot-brand { grid-column: 1 / -1; } }

/* =====================================================================
   UTILITY PAGES (success / cancel)
   ===================================================================== */
body.util { display: grid; place-items: center; min-height: 100vh; padding: 30px; }
.util-wrap { width: 100%; max-width: 520px; text-align: center; }
.util-brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-weight: 800; margin-bottom: 22px; }
.util-card { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 44px 38px; box-shadow: var(--shadow-2); }
.util-icon { width: 64px; height: 64px; margin: 0 auto 18px; }
.util-icon svg { width: 100%; height: 100%; }
.util-icon.ok { color: var(--safe); }
.util-icon.warn { color: var(--amber-d); }
.util-icon.neutral { color: var(--ink-3); }
.util-card h1 { font-size: 1.6rem; margin: 0 0 12px; letter-spacing: -.01em; }
.util-lead { color: var(--ink-2); margin: 0 0 22px; }
.util-cta { margin: 4px 0 18px; }
.util-note { font-size: .88rem; color: var(--ink-3); margin: 0 0 18px; }
.util-back { font-size: .92rem; margin: 0; }
.util-back a { color: var(--amber-d); text-decoration: none; font-weight: 600; }
.util-back a:hover { text-decoration: underline; }
