/* landing.fyi EFIS how-to guides. SHARED SCAFFOLD styling.
   Light theme, accent #2c6fb3 — harmonized with marketing.css + app.css tokens
   (--accent/--ink/--muted/--line/--panel/--panel-tint/--accent-dark/--r-*).
   Do NOT redefine :root here — app.css is the single token source, loaded first.
   Mobile-first; reads clean down to ~360px (see the @media block at the foot). */

/* app.css paints a body top-right brand glow; the guide hero carries its own,
   so drop the body one (matches marketing.css). */
body { background-image: none; }

/* ---- page scaffold ---- */
.guide {
  color: var(--ink);
  line-height: 1.6;
}
.guide .wrap {
  max-width: 820px;
  margin: 0 auto;
  padding: 0 22px;
}
.guide .wrap-wide {
  max-width: 1080px;
}

/* ---- hero ---- */
.guide-hero {
  background: radial-gradient(760px 460px at 80% -60px, #e6eff9 0%, rgba(230, 239, 249, 0) 70%);
  margin-top: -24px;   /* cancel <main>'s 24px top padding → glow reaches the header */
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  padding: 56px calc(50vw - 50%) 40px;
}
.guide-hero .wrap {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 32px;
  align-items: center;
}
.guide-hero .hero-copy { min-width: 0; }
.guide-hero .kicker {
  color: var(--accent);
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  font-size: 13px;
  margin: 0 0 14px;
}
.guide-hero h1 {
  font-size: clamp(1.9rem, 4.6vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.06;
  margin: 0 0 16px;
}
.guide-hero .lead {
  font-size: clamp(1.02rem, 2.2vw, 1.22rem);
  color: var(--muted);
  max-width: 48ch;
  margin: 0 0 14px;
}
.guide-hero .hero-art {
  flex: 0 0 auto;
}
.guide-hero .hero-art img {
  display: block;
  width: 240px;
  max-width: 38vw;
  height: auto;
  border-radius: var(--r-lg);
  border: 1px solid var(--line);
  box-shadow: 0 18px 48px -22px rgba(31, 82, 136, 0.45);
  background: var(--panel);
}
.guide-badge {
  display: inline-block;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 0.74rem;
  color: #fff;
  background: var(--good);
  padding: 4px 11px;
  border-radius: var(--r-pill);
  vertical-align: middle;
  margin-left: 6px;
}
.guide-badge.beta { background: #d98328; }
.guide-covers {
  color: var(--muted);
  font-size: 0.92rem;
  margin: 0;
}
.guide-covers b { color: var(--ink); font-weight: 700; }

/* ---- breadcrumbs ---- */
.guide-crumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 8px;
  font-size: 0.9rem;
  font-weight: 600;
  margin: 0 0 14px;
  color: var(--muted);
}
.guide-crumbs a { color: var(--muted); text-decoration: none; }
.guide-crumbs a:hover { color: var(--accent); text-decoration: underline; }
.guide-crumbs .sep { color: var(--line); font-weight: 400; }
.guide-crumbs .cur { color: var(--ink); }

/* ---- body sections ---- */
.guide-body {
  padding: 12px 0 8px;
}
.guide-section {
  padding: 30px 0;
  border-top: 1px solid var(--line);
}
.guide-section:first-child { border-top: none; }
.guide-section > h2 {
  font-size: clamp(1.35rem, 3.2vw, 1.8rem);
  font-weight: 800;
  letter-spacing: -0.01em;
  margin: 0 0 6px;
  scroll-margin-top: 80px;
}
.guide-section .step-num {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 4px;
}
.guide-section p { color: var(--muted); margin: 0 0 14px; }
.guide-section p b, .guide-section li b { color: var(--ink); }
.guide-section ul, .guide-section ol { color: var(--muted); margin: 0 0 16px; padding-left: 22px; }
.guide-section li { margin-bottom: 8px; }
.guide-section a { color: var(--accent); font-weight: 600; }

/* ---- ordered "do this" step cards ---- */
.step-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 18px 18px 16px;
  margin: 0 0 14px;
  box-shadow: 0 1px 2px rgba(20, 30, 50, 0.04);
}
.step-card h3 {
  font-size: 1.04rem;
  font-weight: 700;
  margin: 0 0 6px;
  color: var(--ink);
}
.step-card p:last-child { margin-bottom: 0; }
.step-list { counter-reset: gstep; list-style: none; padding: 0; margin: 0 0 16px; }
.step-list > li {
  counter-increment: gstep;
  position: relative;
  padding-left: 42px;
  margin-bottom: 16px;
  color: var(--muted);
}
.step-list > li::before {
  content: counter(gstep);
  position: absolute;
  left: 0; top: -2px;
  width: 28px; height: 28px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--panel-tint);
  color: var(--accent);
  font-weight: 800;
  font-size: 0.9rem;
  border: 1px solid var(--line);
}
.step-list > li b { color: var(--ink); }

/* ---- callouts ---- */
.guide-note {
  background: var(--panel-tint);
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  border-radius: var(--r-sm);
  padding: 14px 16px;
  color: var(--ink);
  margin: 0 0 16px;
}
.guide-note.tip { border-left-color: var(--good); }
.guide-note.warn { border-left-color: #d98328; }
.guide-note .note-label {
  display: block;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 4px;
}
.guide-note p { color: var(--ink); margin: 0; }
.guide-note p + p { margin-top: 8px; }

/* ---- OS toggle (Windows / macOS pills + panels) — format-sd-card page ---- */
.os-toggle {
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  margin: 4px 0 18px;
  background: var(--panel-tint);
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
}
.os-pill {
  appearance: none;
  border: 1px solid transparent;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 8px 22px;
  border-radius: var(--r-pill);
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}
.os-pill:hover { color: var(--ink); }
.os-pill[aria-selected="true"] {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 6px 14px -8px rgba(31, 82, 136, 0.6);
}
.os-pill:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.os-panel { margin: 0; }
.os-panel[hidden] { display: none; }
.os-panel > h3 {
  font-size: 1.16rem;
  font-weight: 800;
  margin: 4px 0 12px;
  color: var(--ink);
}
.os-verify { font-size: 0.94rem; }
.os-panel kbd {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.82em;
  background: var(--panel);
  border: 1px solid var(--line);
  border-bottom-width: 2px;
  border-radius: 4px;
  padding: 1px 6px;
  color: var(--ink);
}

/* ---- step figures (real webp screenshot OR the content child's inline SVG) ---- */
.guide-figure {
  margin: 4px 0 18px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--panel-tint);
  overflow: hidden;
}
.guide-figure img,
.guide-figure svg {
  display: block;
  width: 100%;
  height: auto;
}
.guide-figure figcaption {
  padding: 9px 14px;
  font-size: 0.82rem;
  color: var(--muted);
  border-top: 1px solid var(--line);
  background: var(--panel);
}

/* ---- buttons (mirror marketing.css's .btn) ---- */
.guide .btn {
  display: inline-block;
  font-weight: 700;
  text-decoration: none;
  padding: 12px 24px;
  border-radius: var(--r-sm);
  border: 1px solid transparent;
  transition: background 0.15s, transform 0.05s;
}
.guide .btn:active { transform: translateY(1px); }
.guide .btn-primary { background: var(--accent); color: #fff; }
.guide .btn-primary:hover { background: var(--accent-dark); }
.guide .btn-ghost { background: transparent; color: var(--accent); border-color: var(--line); }
.guide .btn-ghost:hover { background: var(--panel-tint); }

/* ---- sign-up / upload CTA (copied verbatim from share.html's .cta) ---- */
.cta {
  margin: 8px 0 0;
  border-radius: var(--r-lg);
  padding: 26px 20px 28px;
  text-align: center;
  color: #fff;
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
}
.cta h3 { margin: 0 0 6px; font-size: 19px; font-weight: 800; letter-spacing: -0.2px; }
.cta p { margin: 0 0 15px; font-size: 14px; opacity: 0.92; max-width: 24em; margin-left: auto; margin-right: auto; }
/* logged-in CTA: no description line, so add breathing room above the button and
   drop the tagline well below it (the .cta p bottom-margin would otherwise pin it
   tight under the button — the "padding all off" look). */
.cta h3 + a.go { margin-top: 16px; }
.cta .cta-tagline { margin: 18px auto 0; }
.cta a.go {
  display: inline-block;
  background: #fff;
  color: var(--accent-dark);
  font-weight: 800;
  font-size: 15px;
  text-decoration: none;
  padding: 12px 24px;
  border-radius: var(--r-pill);
  box-shadow: 0 8px 18px -8px rgba(0, 0, 0, 0.5);
  transition: transform 0.05s;
}
.cta a.go:active { transform: translateY(1px); }
.cta .sub { margin: 12px auto 0; font-size: 12px; opacity: 0.8; }
.cta .sub a { color: #fff; font-weight: 700; }

/* ---- sibling cross-links ---- */
.guide-siblings {
  margin-top: 26px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}
.guide-siblings h2 {
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 14px;
}
.guide-siblings ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}
.guide-siblings a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  background: var(--panel);
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.92rem;
}
.guide-siblings a:hover { background: var(--panel-tint); border-color: var(--accent); }
.guide-siblings a img { width: 40px; height: 28px; object-fit: contain; flex: none; }

/* ---- guide hub (/guides) ---- */
.guide-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 8px;
}
.guide-card {
  display: flex;
  flex-direction: column;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  overflow: hidden;
  text-decoration: none;
  color: var(--ink);
  transition: border-color 0.15s, box-shadow 0.15s, transform 0.05s;
}
.guide-card:hover {
  border-color: var(--accent);
  box-shadow: 0 14px 36px -24px rgba(31, 82, 136, 0.5);
}
.guide-card:active { transform: translateY(1px); }
.guide-card .card-art {
  background: var(--panel-tint);
  border-bottom: 1px solid var(--line);
  padding: 18px;
  display: grid;
  place-items: center;
}
.guide-card .card-art img { width: 100%; max-width: 200px; height: auto; display: block; }
.guide-card .card-body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.guide-card .card-label { font-weight: 700; font-size: 1.02rem; line-height: 1.25; }
.guide-card .card-go { margin-top: auto; color: var(--accent); font-weight: 700; font-size: 0.9rem; }

/* ---- affiliate disclosure ---- */
.guide-affiliate {
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.5;
  margin: 22px 0 0;
}

/* The page footer is the shared _footer.html (class .site-footer); the old
   per-page .guide-footer was removed. The Amazon Associates disclosure that
   used to live inside it now renders as a plain .guide-affiliate line in the
   guide content, above the shared footer. */

/* ---- responsive ---- */
@media (max-width: 820px) {
  .guide-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 720px) {
  .guide-hero { margin-top: -18px; padding-top: 40px; }
  .guide-hero .wrap { grid-template-columns: 1fr; gap: 22px; }
  .guide-hero .hero-art { order: -1; }
  .guide-hero .hero-art img { width: 180px; max-width: 60vw; }
  .guide-siblings ul { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .guide-grid { grid-template-columns: 1fr; }
}
