/* ============================================
   GUIDE.CSS — print-ready downloadable guides
   Screen: branded reading view. Print: clean PDF.
   ============================================ */

:root {
  --navy: #0a1f3d;
  --navy-soft: #142a4a;
  --accent: #1ba0d6;
  --accent-deep: #0e7aa8;
  --cream: #faf8f5;
  --cream-warm: #f0ebe3;
  --ink: #1a1a1a;
  --ink-soft: #4a4a4a;
  --line: rgba(10, 31, 61, 0.12);
  --line-soft: rgba(10, 31, 61, 0.07);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: 'Inter', sans-serif;
  background: var(--cream-warm);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
  padding: 40px 20px 80px;
}

.serif { font-family: 'Playfair Display', serif; }
.script { font-family: 'Caveat', cursive; }
.mono { font-family: 'JetBrains Mono', monospace; }

/* ── Page sheet ──────────────────────────────────────────── */
.sheet {
  max-width: 820px;
  margin: 0 auto;
  background: #fff;
  box-shadow: 0 40px 90px -40px rgba(10,31,61,0.3);
  border-radius: 4px;
  overflow: hidden;
}

/* ── Cover header ────────────────────────────────────────── */
.guide-cover {
  background: var(--navy);
  color: var(--cream);
  padding: 64px 64px 56px;
  position: relative;
  overflow: hidden;
}
.guide-cover::after {
  content: '';
  position: absolute;
  bottom: -60px; right: -40px;
  width: 280px; height: 280px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(27,160,214,0.25), transparent 70%);
  pointer-events: none;
}
.guide-brand {
  display: flex; align-items: center; gap: 12px;
  margin-bottom: 48px;
}
.guide-brand-mark {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-size: 20px;
}
.guide-brand-name {
  font-family: 'Playfair Display', serif;
  font-size: 18px;
  letter-spacing: 0.01em;
}
.guide-brand-name span { color: var(--accent); font-style: italic; }
.guide-kicker {
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 18px;
}
.guide-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(34px, 5vw, 52px);
  line-height: 1.28;
  letter-spacing: -0.02em;
  margin-bottom: 46px;
  max-width: 16ch;
  padding-bottom: 6px;
}
.guide-title .script {
  color: var(--accent);
  font-size: 1.05em;
  line-height: 1.18;
}
.guide-sub {
  font-size: 16px;
  line-height: 1.6;
  color: rgba(250,248,245,0.78);
  max-width: 56ch;
}

/* ── Body ────────────────────────────────────────────────── */
.guide-body {
  padding: 56px 64px 48px;
}
.guide-intro {
  font-size: 18px;
  line-height: 1.7;
  color: var(--ink-soft);
  padding-bottom: 36px;
  margin-bottom: 40px;
  border-bottom: 1px solid var(--line);
}
.guide-intro strong { color: var(--navy); font-weight: 600; }

.guide-section { margin-bottom: 44px; }
.guide-section:last-child { margin-bottom: 0; }

.guide-section-label {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 20px;
}
.guide-section-num {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-size: 15px;
  color: #fff;
  background: var(--accent);
  width: 34px; height: 34px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.guide-section-title {
  font-family: 'Playfair Display', serif;
  font-size: 26px;
  color: var(--navy);
  letter-spacing: -0.01em;
  line-height: 1.15;
}
.guide-section > p {
  font-size: 15.5px;
  line-height: 1.7;
  color: var(--ink);
  margin-bottom: 16px;
}
.guide-section > p:last-child { margin-bottom: 0; }

/* Checklist items */
.guide-check {
  display: flex;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line-soft);
  align-items: flex-start;
}
.guide-check:last-child { border-bottom: none; }
.guide-check-box {
  width: 22px; height: 22px;
  border: 1.5px solid var(--accent);
  border-radius: 6px;
  flex-shrink: 0;
  margin-top: 2px;
}
.guide-check-body { flex: 1; }
.guide-check-title {
  font-weight: 600;
  font-size: 15.5px;
  color: var(--navy);
  margin-bottom: 3px;
}
.guide-check-desc {
  font-size: 14px;
  color: var(--ink-soft);
  line-height: 1.55;
}

/* Numbered ordered steps */
.guide-steps { counter-reset: step; }
.guide-step {
  display: flex;
  gap: 18px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line-soft);
}
.guide-step:last-child { border-bottom: none; }
.guide-step::before {
  counter-increment: step;
  content: counter(step);
  font-family: 'Playfair Display', serif;
  font-size: 20px;
  color: var(--accent);
  flex-shrink: 0;
  width: 28px;
  line-height: 1.3;
}
.guide-step-title {
  font-weight: 600;
  font-size: 15.5px;
  color: var(--navy);
  margin-bottom: 4px;
}
.guide-step-desc {
  font-size: 14.5px;
  color: var(--ink-soft);
  line-height: 1.6;
}

/* Callout box */
.guide-callout {
  background: var(--cream);
  border-left: 3px solid var(--accent);
  border-radius: 0 12px 12px 0;
  padding: 22px 26px;
  margin: 28px 0;
}
.guide-callout-label {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent-deep);
  font-weight: 700;
  margin-bottom: 8px;
}
.guide-callout p {
  font-size: 14.5px;
  line-height: 1.65;
  color: var(--ink);
}

/* Data table */
.guide-table {
  width: 100%;
  border-collapse: collapse;
  margin: 8px 0 4px;
  font-size: 14px;
}
.guide-table th {
  text-align: left;
  padding: 12px 14px;
  background: var(--navy);
  color: var(--cream);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 600;
}
.guide-table th:last-child, .guide-table td:last-child { text-align: right; }
.guide-table td {
  padding: 11px 14px;
  border-bottom: 1px solid var(--line-soft);
  color: var(--ink);
}
.guide-table tr:nth-child(even) td { background: var(--cream); }
.guide-table td strong { color: var(--navy); }

/* Two-column key/value list */
.guide-kv {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 28px;
  margin: 8px 0;
}
.guide-kv-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line-soft);
  font-size: 14px;
}
.guide-kv-row span:first-child { color: var(--ink-soft); }
.guide-kv-row span:last-child { color: var(--navy); font-weight: 600; text-align: right; }

/* ── Footer ──────────────────────────────────────────────── */
.guide-footer {
  background: var(--cream);
  border-top: 1px solid var(--line);
  padding: 40px 64px 48px;
}
.guide-footer-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.guide-footer-text {
  font-family: 'Playfair Display', serif;
  font-size: 22px;
  color: var(--navy);
  letter-spacing: -0.01em;
  max-width: 28ch;
  line-height: 1.25;
}
.guide-footer-contact {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 14px;
}
.guide-footer-contact a { color: var(--accent-deep); text-decoration: none; font-weight: 600; }
.guide-footer-name {
  font-family: 'Playfair Display', serif;
  font-size: 17px;
  color: var(--navy);
  margin-bottom: 6px;
}
.guide-legal {
  margin-top: 32px;
  padding-top: 20px;
  border-top: 1px solid var(--line-soft);
  font-size: 11px;
  line-height: 1.6;
  color: var(--ink-soft);
}
.guide-legal strong { color: var(--ink); }

/* ── Floating controls (screen only) ─────────────────────── */
.guide-controls {
  position: fixed;
  bottom: 24px; right: 24px;
  display: flex;
  gap: 10px;
  z-index: 50;
}
.guide-btn {
  background: var(--navy);
  color: var(--cream);
  border: none;
  padding: 14px 22px;
  border-radius: 999px;
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow: 0 16px 36px -12px rgba(10,31,61,0.5);
  display: flex; align-items: center; gap: 8px;
  transition: background 0.2s, transform 0.2s;
  text-decoration: none;
}
.guide-btn:hover { background: var(--accent); transform: translateY(-2px); }
.guide-btn.secondary {
  background: #fff;
  color: var(--navy);
  border: 1px solid var(--line);
}
.guide-btn.secondary:hover { background: var(--cream-warm); color: var(--navy); }

.guide-lang {
  position: fixed;
  top: 24px; right: 24px;
  z-index: 50;
  display: flex;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px;
  box-shadow: 0 8px 24px -8px rgba(10,31,61,0.2);
}
.guide-lang button {
  border: none;
  background: none;
  padding: 6px 14px;
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--ink-soft);
  border-radius: 999px;
  cursor: pointer;
}
.guide-lang button.active { background: var(--navy); color: var(--cream); }

/* ── Print ───────────────────────────────────────────────── */
@page {
  size: letter;
  margin: 0.6in;
}
@media print {
  body { background: #fff; padding: 0; }
  .sheet { box-shadow: none; max-width: none; border-radius: 0; }
  .guide-controls, .guide-lang { display: none !important; }
  .guide-cover { padding: 0 0 32px; background: #fff; color: var(--navy); }
  .guide-cover::after { display: none; }
  .guide-brand { margin-bottom: 28px; }
  .guide-brand-name { color: var(--navy); }
  .guide-kicker { color: var(--accent-deep); }
  .guide-title { color: var(--navy); }
  .guide-title .script { color: var(--accent-deep); }
  .guide-sub { color: var(--ink-soft); }
  .guide-body { padding: 0 0 24px; }
  .guide-footer { padding: 24px 0 0; background: #fff; }
  .guide-section { break-inside: avoid; }
  .guide-check, .guide-step, .guide-callout, .guide-table tr { break-inside: avoid; }
  .guide-cover { break-after: avoid; }
  a { color: var(--accent-deep) !important; }
}

@media (max-width: 700px) {
  body { padding: 16px 0 90px; }
  .guide-cover, .guide-body, .guide-footer { padding-left: 28px; padding-right: 28px; }
  .guide-cover { padding-top: 44px; }
  .guide-kv { grid-template-columns: 1fr; }
  .guide-footer-cta { flex-direction: column; align-items: flex-start; }
  .guide-lang { top: 16px; right: 16px; }
  .guide-controls { bottom: 16px; right: 16px; left: 16px; }
  .guide-btn { flex: 1; justify-content: center; }
}
