/* ============================================================
   ZZPass Emergency guide page — extends landing.css
   Load order: landing.css → emergency-guide.css → theme.css
   ============================================================ */

.eg-hand { font-family: 'Caveat', cursive; }
.eg-white { background: #fff; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }

/* ---------- Hero + situation picker ---------- */
.eg-top { padding: 72px 0 36px; }
.eg-top h1 {
  margin: 14px 0 0; max-width: 820px; font-family: 'Instrument Sans', sans-serif; font-weight: 600;
  font-size: clamp(40px, 5vw, 68px); line-height: 1.04; letter-spacing: -0.04em; color: var(--ink);
}
.eg-top h1 em { color: var(--accent); }
.eg-underline { position: relative; display: inline-block; }
.eg-underline svg { position: absolute; left: 0; bottom: -10px; width: 100%; height: 16px; }
.eg-lede { margin: 26px 0 0; max-width: 640px; font-size: 20px; line-height: 1.55; color: var(--ink-2); }
.eg-pick { margin-top: 40px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.eg-pick[hidden] { display: none; }
.eg-pick-label { font-size: 28px; color: var(--ink-2); }
.eg-chips { display: flex; flex-wrap: wrap; gap: 10px; }
.eg-chip {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; border-radius: 999px; cursor: pointer;
  border: 1px solid var(--rule-2); background: #fff; color: var(--ink); font: inherit; font-size: 15px; font-weight: 500;
  transition: background .15s ease, color .15s ease, border-color .15s ease;
}
.eg-chip:hover { border-color: var(--ink-mute); }
.eg-chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.eg-chip:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

/* ---------- Situation cards ---------- */
.eg-situations { padding: 8px 0 96px; }
.eg-situations .wrap { display: flex; flex-direction: column; gap: 24px; }
/* Without JavaScript every card shows, one after another; with it, only the chosen one. */
.js-picker .eg-card { display: none; }
.js-picker .eg-card.is-on { display: flex; animation: eg-in .35s ease both; }
.eg-card {
  display: flex; flex-wrap: wrap; align-items: center; gap: 48px; padding: 40px; border-radius: 24px;
  background: #fff; border: 1px solid var(--rule); box-shadow: 0 18px 40px rgba(0,0,0,0.05);
}
.eg-card-copy { flex: 999 1 440px; min-width: 0; }
.eg-kicker { font-family: 'JetBrains Mono', monospace; font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-mute); }
.eg-card h2 { margin: 10px 0 0; font-size: clamp(28px, 3vw, 40px); line-height: 1.1; letter-spacing: -0.03em; }
.eg-steps { margin: 26px 0 0; padding: 0; list-style: none; counter-reset: eg-step; display: flex; flex-direction: column; gap: 16px; }
.eg-steps li { counter-increment: eg-step; position: relative; padding-left: 46px; font-size: 17px; line-height: 1.5; color: var(--ink-2); }
.eg-steps li::before {
  content: counter(eg-step); position: absolute; left: 0; top: -2px; width: 30px; height: 30px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; background: var(--accent-soft); color: var(--accent);
  font-weight: 600; font-size: 14px;
}
.eg-steps b { color: var(--ink); font-weight: 600; }
.eg-needs { margin-top: 26px; display: flex; flex-wrap: wrap; gap: 8px; }
.eg-needs span {
  padding: 6px 10px; border-radius: 6px; background: #F4F4F6; color: #3F3F46;
  font-family: 'JetBrains Mono', monospace; font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase;
}
.eg-note { margin: 20px 0 0; max-width: 560px; font-size: 15px; color: var(--ink-mute); }
.eg-note a, .eg-check a { color: var(--accent); font-weight: 500; text-decoration: none; }
.eg-note a:hover, .eg-check a:hover { color: var(--accent-deep); text-decoration: underline; }
.eg-shot { flex: 1 1 240px; margin: 0; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.eg-shot > picture img { display: block; width: 250px; max-width: 100%; height: auto; filter: drop-shadow(0 24px 40px rgba(20,21,24,0.16)); }

/* ---------- Animated phone ---------- */
/* A static frame (bezel and status bar) with screen layers clipped to the display
   below it, so a transition moves only the app, the way iOS does. */
.eg-device { position: relative; width: 250px; max-width: 100%; aspect-ratio: 632 / 1317; container-type: inline-size; overflow: hidden; border-radius: 15%; filter: drop-shadow(0 24px 40px rgba(20,21,24,0.16)); }
.eg-device img { display: block; width: 100%; height: auto; }
.eg-frame { position: absolute; inset: 0; }
.eg-scr {
  position: absolute; left: 3.006%; width: 93.99%; top: 6.864%; height: 92.12%; overflow: hidden;
  border-radius: 0 0 11.9% 11.9% / 0 0 5.8% 5.8%; visibility: hidden; opacity: 0;
  transition: opacity .35s ease, visibility 0s linear .45s;
}
.eg-device.is-tabbed .eg-scr { height: 82.992%; border-radius: 0; }
.eg-scr.is-on { z-index: 1; visibility: visible; opacity: 1; transition: opacity .35s ease, visibility 0s; }
.eg-scr > picture { display: block; transition: transform .45s cubic-bezier(.3,.7,.2,1), filter .45s ease; }
.eg-scr.from-right > picture { transform: translateX(100%); }
.eg-scr.from-below > picture { transform: translateY(100%); }
.eg-scr.to-left > picture { transform: translateX(-30%); filter: brightness(.9); }
.eg-scr.to-left, .eg-scr.to-back { visibility: visible; opacity: 1; }
.eg-scr.to-back > picture { filter: brightness(.85); }
.eg-scr.no-anim, .eg-scr.no-anim > picture { transition: none; }
.eg-tap {
  position: absolute; z-index: 4; width: 13.6%; aspect-ratio: 1; border-radius: 50%; pointer-events: none;
  background: rgba(27,77,209,0.28); box-shadow: 0 0 0 2px rgba(27,77,209,0.55); opacity: 0;
}
.eg-tap.is-on { animation: eg-tap .6s ease-out both; }
@keyframes eg-tap { 0% { transform: translate(-50%, -50%) scale(.4); opacity: 0; } 30% { opacity: 1; } 100% { transform: translate(-50%, -50%) scale(1.6); opacity: 0; } }
/* Values the app would show once scanned or typed, laid over its real empty fields. */
/* Each sits on its field's text line, on white, hiding the placeholder as the app does. */
.eg-type {
  position: absolute; z-index: 2; left: 7%; width: 72%; transform: translateY(-50%); padding: 0 1%;
  background: #fff; font-size: 3.6cqw; line-height: 1.5; color: var(--ink); white-space: nowrap; overflow: hidden;
  opacity: 0; transition: opacity .3s ease;
}
.eg-type.is-on { opacity: 1; }
.eg-type-pw1 { left: 5.5%; top: 27%; letter-spacing: .1em; }
.eg-type-pw2 { left: 5.5%; top: 42%; letter-spacing: .1em; }
.eg-type-email { top: 12.2%; }
.eg-type-key { top: 17.8%; font-family: 'JetBrains Mono', monospace; font-size: 3.1cqw; }
.eg-type-pass { top: 24.8%; width: 60%; letter-spacing: .1em; }
.eg-faceid {
  position: absolute; z-index: 3; left: 50%; top: 40%; width: 34%; aspect-ratio: 1; transform: translate(-50%, -50%) scale(.8);
  border-radius: 22%; background: rgba(30,30,32,0.82); color: #fff; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 4%; opacity: 0; transition: opacity .25s ease, transform .25s ease;
}
.eg-faceid svg { width: 52%; }
.eg-faceid span { font-size: 4.2cqw; font-weight: 500; }
.eg-faceid.is-on { opacity: 1; transform: translate(-50%, -50%) scale(1); }
.eg-faceid.is-ok svg { color: #34C759; }
.eg-cam {
  position: absolute; z-index: 3; left: 3.006%; width: 93.99%; top: 6.864%; height: 92.12%; overflow: hidden;
  border-radius: 0 0 11.9% 11.9% / 0 0 5.8% 5.8%; background: #0E0E10; color: #fff;
  transform: translateY(110%); transition: transform .45s cubic-bezier(.3,.7,.2,1);
}
.eg-cam.is-on { transform: none; }
.eg-cam-title { text-align: center; padding-top: 4%; font-size: 4.4cqw; font-weight: 600; }
.eg-cam-view { position: absolute; left: 50%; top: 46%; width: 66%; aspect-ratio: 1; transform: translate(-50%, -50%); }
.eg-cam-view > i { position: absolute; width: 18%; aspect-ratio: 1; border: 0 solid #FFD60A; }
.eg-cam-view > i:nth-of-type(1) { left: 0; top: 0; border-width: 3px 0 0 3px; border-radius: 10px 0 0 0; }
.eg-cam-view > i:nth-of-type(2) { right: 0; top: 0; border-width: 3px 3px 0 0; border-radius: 0 10px 0 0; }
.eg-cam-view > i:nth-of-type(3) { left: 0; bottom: 0; border-width: 0 0 3px 3px; border-radius: 0 0 0 10px; }
.eg-cam-view > i:nth-of-type(4) { right: 0; bottom: 0; border-width: 0 3px 3px 0; border-radius: 0 0 10px 0; }
.eg-cam-paper {
  position: absolute; inset: 12%; background: #fff; border-radius: 4px; padding: 6%; box-shadow: 0 10px 30px rgba(0,0,0,0.5);
  transform: translate(40%, 60%) rotate(-14deg) scale(.8); opacity: 0; transition: transform .9s cubic-bezier(.2,.8,.2,1), opacity .4s ease;
}
.eg-cam.is-on .eg-cam-paper { transform: rotate(-3deg); opacity: 1; }
.eg-cam-paper img { width: 100%; height: auto; }
.eg-cam-line { position: absolute; left: 8%; right: 8%; top: 10%; height: 2px; background: #FFD60A; box-shadow: 0 0 10px #FFD60A; opacity: 0; }
.eg-cam.is-scanning .eg-cam-line { opacity: 1; animation: eg-scan 1s ease-in-out infinite alternate; }
@keyframes eg-scan { 0% { top: 12%; } 100% { top: 88%; } }
.eg-later {
  position: absolute; z-index: 3; left: 50%; top: 55%; transform: translate(-50%, -50%) rotate(-3deg) scale(.9);
  padding: 2% 6%; border-radius: 999px; background: rgba(23,23,23,0.86); color: #fff; font-size: 7cqw; white-space: nowrap;
  opacity: 0; transition: opacity .3s ease, transform .3s ease;
}
.eg-later.is-on { opacity: 1; transform: translate(-50%, -50%) rotate(-3deg) scale(1); }
.eg-replay {
  font: inherit; font-size: 14px; font-weight: 500; color: var(--accent); background: none; border: 0; cursor: pointer;
  padding: 6px 10px; border-radius: 8px; visibility: hidden;
}
.eg-replay.is-on { visibility: visible; }
.eg-replay:hover { background: var(--accent-soft); }

/* ---------- The kit, explained ---------- */
.eg-kit { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 48px; }
.eg-paper {
  flex: 1.2 1 460px; min-width: 0; position: relative; background: #fff; border: 1px solid var(--rule);
  border-radius: 6px; padding: 0 0 22px; box-shadow: 0 24px 50px rgba(0,0,0,0.08); transform: rotate(-1deg);
}
.eg-paper-h { background: #2563EB; color: #fff; padding: 14px 20px; border-radius: 6px 6px 0 0; text-align: center; }
.eg-paper-h b { display: block; font-size: 18px; font-weight: 700; }
.eg-paper-h span { font-size: 12px; opacity: .9; }
.eg-paper-body { display: flex; gap: 16px; padding: 18px 20px 0; flex-wrap: wrap; }
.eg-paper-fields { flex: 1 1 240px; min-width: 0; display: flex; flex-direction: column; gap: 12px; }
.eg-pf { border-radius: 6px; padding: 8px 10px; transition: background .2s ease, box-shadow .2s ease; }
.eg-pf > span { display: block; font-size: 10px; font-weight: 700; letter-spacing: .08em; color: #1E3A8A; }
.eg-pf > b { display: block; margin-top: 4px; padding: 6px 8px; border-radius: 4px; background: #F1F5F9; font-family: 'JetBrains Mono', monospace; font-size: 12.5px; font-weight: 500; color: var(--ink); overflow-wrap: anywhere; }
.eg-pf-qr { flex: 0 0 132px; text-align: center; }
.eg-pf-qr img { width: 112px; height: auto; margin: 0 auto; display: block; }
.eg-pf-qr > span { margin-top: 6px; font-size: 9.5px; font-weight: 400; letter-spacing: 0; color: var(--ink-2); line-height: 1.35; }
.eg-pf-more { margin: 14px 20px 0; }
.eg-pf-more > i:not(.eg-pin) { display: block; height: 8px; margin-top: 7px; border-radius: 4px; background: #F1F5F9; }
.eg-pf-more > i:nth-of-type(3) { width: 82%; }
.eg-pf-more > i:nth-of-type(4) { width: 64%; }
.eg-pf.is-lit { background: var(--accent-soft); box-shadow: 0 0 0 2px var(--accent); }
.eg-pf { position: relative; }
.eg-pin {
  position: absolute; left: -32px; top: 8px; width: 24px; height: 24px; border-radius: 50%; background: var(--accent); color: #fff;
  display: flex; align-items: center; justify-content: center; font-style: normal; font-size: 12px; font-weight: 600;
  box-shadow: 0 4px 10px rgba(27,77,209,0.35);
}
.eg-pf-qr .eg-pin { left: auto; right: -12px; top: -12px; }
.eg-parts { flex: 1 1 360px; min-width: 0; margin: 0; padding: 0; list-style: none; counter-reset: eg-part; display: flex; flex-direction: column; gap: 8px; }
.eg-parts li { counter-increment: eg-part; }
.eg-parts button {
  width: 100%; text-align: left; font: inherit; cursor: pointer; display: block; position: relative;
  padding: 14px 16px 14px 52px; border-radius: 14px; border: 1px solid transparent; background: none; color: var(--ink-2);
  transition: background .2s ease, border-color .2s ease;
}
.eg-parts button::before {
  content: counter(eg-part); position: absolute; left: 16px; top: 14px; width: 24px; height: 24px; border-radius: 50%;
  background: var(--accent-soft); color: var(--accent); display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 600;
}
.eg-parts button:hover { background: var(--bg); }
.eg-parts button[aria-pressed="true"] { background: var(--accent-soft); border-color: #C9D6F8; }
.eg-parts button[aria-pressed="true"]::before { background: var(--accent); color: #fff; }
.eg-parts button:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.eg-parts b { display: block; font-size: 17px; font-weight: 600; color: var(--ink); }
.eg-parts b em { font-style: normal; font-weight: 400; font-family: 'JetBrains Mono', monospace; font-size: 10px; letter-spacing: .1em; color: var(--ink-mute); margin-left: 6px; }
.eg-parts span { display: block; margin-top: 2px; font-size: 15px; line-height: 1.5; }
.eg-kit-note { margin: 14px 0 0; font-size: 22px; color: var(--ink-mute); }
.eg-shot figcaption { font-size: 24px; color: var(--ink-2); transform: rotate(-2deg); }
@keyframes eg-in { 0% { opacity: 0; transform: translateY(8px); } 100% { opacity: 1; transform: none; } }

/* ---------- Readiness checklist ---------- */
.eg-ready { display: flex; flex-wrap: wrap; align-items: center; gap: 64px; }
.eg-ready-copy { flex: 999 1 520px; min-width: 0; }
.eg-ready-copy h2 { margin: 12px 0 0; }
.eg-ready-lede { margin: 14px 0 0; max-width: 560px; font-size: 18px; color: var(--ink-2); }
.eg-checks { margin-top: 32px; display: flex; flex-direction: column; gap: 12px; }
.eg-check {
  display: flex; gap: 16px; align-items: flex-start; padding: 18px 20px; border-radius: 16px; cursor: pointer;
  border: 1px solid var(--rule); background: var(--bg); transition: background .2s ease, border-color .2s ease;
}
.eg-check:has(input:checked) { background: var(--accent-soft); border-color: #C9D6F8; }
.eg-check input { margin: 4px 0 0; width: 20px; height: 20px; flex-shrink: 0; accent-color: var(--accent); }
.eg-check b { display: block; font-size: 17px; font-weight: 600; color: var(--ink); }
.eg-check b em { font-style: normal; font-weight: 400; font-family: 'JetBrains Mono', monospace; font-size: 10px; letter-spacing: 0.1em; color: var(--ink-mute); margin-left: 6px; }
.eg-check > span > span { display: block; margin-top: 4px; font-size: 15px; color: var(--ink-2); }
.eg-ring-wrap { flex: 1 1 260px; position: relative; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.eg-ring { width: 220px; height: 220px; }
.eg-ring-bg { fill: none; stroke: var(--accent-soft); stroke-width: 18; }
.eg-ring-fg { fill: none; stroke: var(--accent); stroke-width: 18; stroke-linecap: round; stroke-dasharray: 0 578; transition: stroke-dasharray .5s ease; }
.eg-ring-text { position: absolute; top: 0; left: 0; right: 0; height: 220px; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.eg-ring-text b { font-size: 52px; font-weight: 600; line-height: 1; letter-spacing: -0.02em; color: var(--ink); }
.eg-ring-text span { margin-top: 8px; font-family: 'JetBrains Mono', monospace; font-size: 12px; letter-spacing: 0.16em; color: var(--ink-mute); }
.eg-ring-note { margin: 0; font-size: 28px; color: var(--accent); text-align: center; }

/* ---------- How you are protected ---------- */

/* ---------- Honest limits (dark) ---------- */
.eg-dark { background: var(--night); color: #fff; }
.eg-dark-grid { padding: 96px 32px; display: flex; flex-wrap: wrap; gap: 56px; }
.eg-dark-copy { flex: 1 1 360px; min-width: 0; }
.eg-dark .eyebrow { color: var(--ink-mute-dark); }
.eg-dark h2 { color: #fff; font-size: clamp(34px, 4vw, 56px); line-height: 1.04; letter-spacing: -0.035em; margin: 12px 0 0; }
.eg-dark-copy p { margin: 18px 0 0; max-width: 440px; font-size: 18px; line-height: 1.6; color: var(--ink-mute-dark); }
.eg-dark-link { color: #fff; font-weight: 600; text-decoration: none; }
.eg-dark-link:hover { text-decoration: underline; }
.eg-limits { flex: 1.4 1 480px; margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 18px; }
.eg-limits li { font-size: 16px; line-height: 1.6; color: var(--ink-mute-dark); }
.eg-limits b { color: #fff; font-weight: 600; }

/* ---------- Free vs Premium ---------- */
.eg-tiers { max-width: 960px; margin: 0 auto; display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; }
.eg-tier { background: #fff; border: 1px solid var(--rule); border-radius: 20px; padding: 30px; }
.eg-tier.is-premium { border: 1.5px solid var(--accent); }
.eg-tier-h { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.eg-tier-h h3 { margin: 0; font-size: 22px; font-weight: 600; }
.eg-tier-h span { font-family: 'JetBrains Mono', monospace; font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-mute); }
.eg-tier.is-premium .eg-tier-h span { color: var(--accent); }
.eg-tier ul { margin: 18px 0 0; padding-left: 18px; display: flex; flex-direction: column; gap: 8px; font-size: 15px; color: var(--ink-2); }

@media (max-width: 700px) {
  .eg-top { padding: 48px 0 28px; }
  .eg-card { padding: 24px; gap: 28px; }
  .eg-dark-grid { padding: 72px 22px; }
}
@media (prefers-reduced-motion: reduce) {
  .js-picker .eg-card.is-on { animation: none; }
  .eg-scr, .eg-scr > picture, .eg-type, .eg-faceid, .eg-cam, .eg-cam-paper, .eg-pf, .eg-later { transition: none; }
  .eg-tap.is-on, .eg-cam.is-scanning .eg-cam-line { animation: none; }
  .eg-ring-fg, .eg-check, .eg-chip { transition: none; }
}
