/* PanicDoc. Deep Sea Glass palette. Light-only by brand rule (no dark palette designed yet). */
:root {
  color-scheme: light;

  /* Core palette */
  --deep-sea: #1F4F55;
  --deep-sea-900: #12343A;
  --deep-sea-700: #1F4F55;
  --deep-sea-500: #3E7A80;
  --deep-sea-200: #A9CFCB;
  --ember: #F07B3F;
  --persimmon: #C24A20;
  --sea-glass: #CFE9E4;
  --ink: #173A3F;
  --mist: #F2F8F7;
  --paper: #FFFFFF;
  --slate: #53686B;
  --divider: #DDE7E5;

  /* Status */
  --success-text: #2C6E4F; --success-bg: #E6F2EC;
  --warning-text: #8A5300; --warning-bg: #FFF3DC;
  --error-text: #A3231B;   --error-bg: #FDECEA;
  --info-text: #1F4F55;    --info-bg: #E3F1EF;
  --focus-ring: #3E7A80;

  /* Radii */
  --r-button: 14px; --r-field: 12px; --r-card: 20px; --r-alert: 16px;

  /* Spacing (8pt grid) */
  --s-xs: 4px; --s-s: 8px; --s-m: 16px; --s-l: 24px; --s-xl: 32px; --s-xxl: 48px;

  --maxw: 1120px;
  --font: "Atkinson Hyperlegible", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --shadow-s: 0 1px 2px rgba(18, 52, 58, .06), 0 2px 8px rgba(18, 52, 58, .06);
  --shadow-m: 0 10px 30px rgba(18, 52, 58, .10);
  --shadow-l: 0 24px 60px rgba(18, 52, 58, .16);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.53;
  color: var(--ink);
  background: var(--mist);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3 { line-height: 1.12; margin: 0 0 var(--s-m); letter-spacing: -0.01em; font-weight: 700; }
h1 { font-size: clamp(2.2rem, 5.2vw, 3.5rem); }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.35rem); }
h3 { font-size: 1.3rem; }
p { margin: 0 0 var(--s-m); }
a { color: var(--deep-sea-500); text-decoration: none; }
a:hover { text-decoration: underline; }
img, svg { max-width: 100%; display: block; }
ul { margin: 0; padding: 0; list-style: none; }

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

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--s-l); }
.section { padding: clamp(56px, 9vw, 110px) 0; }
.eyebrow { text-transform: uppercase; letter-spacing: .12em; font-size: .8rem; font-weight: 700; color: var(--deep-sea-500); margin: 0 0 var(--s-s); }
.lede { font-size: clamp(1.05rem, 2vw, 1.25rem); line-height: 1.6; color: var(--slate); max-width: 62ch; }
.center { text-align: center; }
.center .lede { margin-inline: auto; }

.skip-link { position: absolute; left: -999px; top: 0; background: var(--deep-sea); color: #fff; padding: 12px 18px; border-radius: 0 0 var(--r-button) 0; z-index: 200; }
.skip-link:focus { left: 0; }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: 8px; min-height: 52px; padding: 0 26px; border-radius: var(--r-button); font-weight: 700; font-size: 1.02rem; cursor: pointer; border: 2px solid transparent; transition: transform .12s ease, box-shadow .12s ease, background .12s ease; text-decoration: none; }
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-primary { background: var(--persimmon); color: #fff; box-shadow: var(--shadow-s); }
.btn-primary:hover { background: #a93f19; color: #fff; }
.btn-secondary { background: transparent; color: var(--deep-sea); border-color: var(--deep-sea-200); }
.btn-secondary:hover { background: var(--paper); }
.btn-ghost { background: transparent; color: var(--deep-sea); min-height: auto; padding: 0; }
.btn-lg { min-height: 56px; font-size: 1.08rem; }

/* Chips / pills / badges */
.chips { display: flex; flex-wrap: wrap; gap: var(--s-s); }
.chip { display: inline-flex; align-items: center; gap: 7px; background: var(--paper); border: 1px solid var(--divider); color: var(--ink); padding: 8px 14px; border-radius: 999px; font-size: .9rem; font-weight: 700; box-shadow: var(--shadow-s); }
.chip svg { width: 16px; height: 16px; color: var(--deep-sea-500); }
.pill { display: inline-flex; align-items: center; gap: 7px; background: var(--info-bg); color: var(--info-text); padding: 7px 14px; border-radius: 999px; font-weight: 700; font-size: .9rem; }

/* Header / nav */
.site-header { position: sticky; top: 0; z-index: 100; background: color-mix(in srgb, var(--mist) 88%, transparent); backdrop-filter: saturate(140%) blur(10px); border-bottom: 1px solid transparent; transition: border-color .2s, background .2s; }
.site-header.scrolled { border-bottom-color: var(--divider); background: color-mix(in srgb, var(--mist) 96%, transparent); }
.nav { display: flex; align-items: center; justify-content: space-between; gap: var(--s-m); height: 72px; }
.site-header .container { max-width: 1280px; }
.nav-links a, .nav-cta .btn { white-space: nowrap; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 1.15rem; color: var(--ink); }
.brand:hover { text-decoration: none; }
.brand img { width: 34px; height: 34px; }
.brand .doc { color: var(--persimmon); }
.nav-links { display: flex; align-items: center; gap: 20px; }
.nav-links a { color: var(--ink); font-weight: 700; font-size: .96rem; }
.nav-links a:hover { color: var(--deep-sea-500); text-decoration: none; }
.nav-cta { display: flex; align-items: center; gap: var(--s-m); }
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; color: var(--ink); }

/* Hero */
.hero { padding-top: clamp(32px, 6vw, 72px); padding-bottom: clamp(48px, 7vw, 96px); overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero h1 .accent { color: var(--persimmon); }
/* Rotating hero phrase: three lines crossfade, one at a time, ~2s each. */
.rotator { display: inline-grid; vertical-align: top; font-size: clamp(1.55rem, 4.8vw, 3.45rem); line-height: 1.15; }
.rot-item { grid-area: 1 / 1; white-space: nowrap; color: var(--persimmon); opacity: 0; animation: rot-phrase 6s infinite; }
.rot-item:nth-child(2) { animation-delay: 2s; }
.rot-item:nth-child(3) { animation-delay: 4s; }
@keyframes rot-phrase {
  0%   { opacity: 0; transform: translateY(.22em); }
  4%   { opacity: 1; transform: translateY(0); }
  30%  { opacity: 1; transform: translateY(0); }
  34%  { opacity: 0; transform: translateY(-.22em); }
  100% { opacity: 0; transform: translateY(-.22em); }
}
/* Global reduced-motion kills the animation; stack all three, always visible. */
@media (prefers-reduced-motion: reduce) {
  .rot-item { grid-area: auto; opacity: 1; transform: none; }
}
.hero .lede { margin-top: var(--s-m); }
.hero-ctas { display: flex; flex-wrap: wrap; gap: var(--s-m); margin: var(--s-l) 0 var(--s-m); }
.hero-micro { font-size: .9rem; color: var(--slate); display: flex; flex-wrap: wrap; gap: 6px 14px; }
.hero-micro span { display: inline-flex; align-items: center; gap: 6px; }

/* Phone mockup */
.phone { width: 300px; max-width: 86vw; margin: 0 auto; background: #0d2a2e; border-radius: 42px; padding: 12px; box-shadow: var(--shadow-l); position: relative; z-index: 1; }
.phone::before { content: ""; position: absolute; top: 20px; left: 50%; transform: translateX(-50%); width: 110px; height: 26px; background: #0d2a2e; border-radius: 0 0 16px 16px; z-index: 3; }
.phone-screen { border-radius: 32px; overflow: hidden; background: var(--mist); aspect-ratio: 300 / 620; }
.hero-phone { position: relative; }
.hero-phone .float-badge { position: absolute; z-index: 2; background: var(--paper); border: 1px solid var(--divider); border-radius: var(--r-field); padding: 10px 14px; box-shadow: var(--shadow-m); font-size: .82rem; font-weight: 700; display: flex; align-items: center; gap: 8px; }
.hero-phone .float-badge svg { width: 18px; height: 18px; }
.float-badge.b1 { top: 8%; left: -6%; color: var(--success-text); }
.float-badge.b2 { bottom: 12%; right: -8%; color: var(--deep-sea); }
@media (max-width: 1040px) { .float-badge { display: none !important; } }

/* Emergency reader screen (inside phone) */
.er { background: var(--deep-sea); color: #fff; height: 100%; padding: 42px 16px 18px; overflow: hidden; font-size: 14px; }
.er .er-eyebrow { color: var(--sea-glass); text-transform: uppercase; letter-spacing: .12em; font-size: .62rem; font-weight: 700; }
.er .er-name { font-size: 1.55rem; font-weight: 700; margin: 2px 0 2px; }
.er .er-sub { color: var(--sea-glass); font-size: .82rem; margin-bottom: 12px; }
.er-card { border-radius: 14px; padding: 11px 13px; margin-bottom: 9px; }
.er-card .er-title { text-transform: uppercase; letter-spacing: .1em; font-size: .6rem; font-weight: 700; margin-bottom: 6px; display: flex; align-items: center; gap: 6px; }
.er-alert { background: var(--error-bg); color: var(--error-text); }
.er-alert .er-title { color: var(--error-text); }
.er-white { background: #fff; color: var(--ink); }
.er-white .er-title { color: var(--slate); }
.er-row { font-size: .9rem; }
.er-row strong { font-weight: 700; }
.er-row .er-dim { color: var(--slate); font-size: .78rem; }
.er-banner { background: var(--error-bg); color: var(--error-text); border-radius: 12px; padding: 9px 12px; font-weight: 700; margin-bottom: 9px; display: flex; align-items: center; gap: 8px; font-size: .95rem; }
.er-call { display: flex; align-items: center; justify-content: space-between; }
.er-call .er-phone { color: var(--deep-sea); }

/* generic app screen (mist) */
.app { background: var(--mist); height: 100%; padding: 40px 14px 16px; font-size: 13px; color: var(--ink); overflow: hidden; }
.app-titlebar { font-weight: 700; font-size: 1.05rem; text-align: center; margin-bottom: 12px; }
.app-card { background: #fff; border: 1px solid var(--divider); border-radius: 14px; padding: 12px; margin-bottom: 10px; box-shadow: var(--shadow-s); }
.app-row { display: flex; align-items: center; gap: 10px; padding: 7px 0; border-bottom: 1px solid var(--divider); }
.app-row:last-child { border-bottom: 0; }
.app-row .ico { width: 22px; height: 22px; color: var(--deep-sea-500); flex: none; }
.app-row .grow { flex: 1; }
.app-row .muted { color: var(--slate); font-size: .78rem; }
.app-check { color: var(--deep-sea); }
.app-todo { color: var(--slate); }
.progress { height: 10px; background: var(--sea-glass); border-radius: 999px; overflow: hidden; margin: 8px 0 4px; }
.progress > i { display: block; height: 100%; background: var(--deep-sea); border-radius: 999px; }

/* Section helpers */
.proof { background: var(--deep-sea); color: #fff; }
.proof .chips { justify-content: center; }
.proof .chip { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.18); color: #fff; box-shadow: none; }
.proof .chip svg { color: var(--sea-glass); }

.band-ink { background: var(--deep-sea); color: #fff; }
.band-ink h2, .band-ink .eyebrow { color: #fff; }
.band-ink .eyebrow { color: var(--sea-glass); }
.band-ink .lede { color: var(--sea-glass); }

/* Feature grid */
.grid { display: grid; gap: var(--s-l); }
.features { grid-template-columns: repeat(3, 1fr); }
.card { background: var(--paper); border: 1px solid var(--divider); border-radius: var(--r-card); padding: var(--s-l); box-shadow: var(--shadow-s); height: 100%; }
.card .icon { width: 44px; height: 44px; border-radius: 12px; background: var(--info-bg); color: var(--deep-sea); display: grid; place-items: center; margin-bottom: var(--s-m); }
.card .icon svg { width: 24px; height: 24px; }
.card h3 { font-size: 1.15rem; margin-bottom: 6px; }
.card p { color: var(--slate); margin: 0; font-size: .98rem; }
.card .mech { margin-top: 10px; font-size: .82rem; color: var(--deep-sea-500); font-weight: 700; }

/* Steps */
.steps { grid-template-columns: repeat(3, 1fr); counter-reset: step; }
.step { background: var(--paper); border: 1px solid var(--divider); border-radius: var(--r-card); padding: var(--s-l); box-shadow: var(--shadow-s); }
.step .num { font-size: 2.4rem; font-weight: 700; color: var(--deep-sea-200); line-height: 1; margin-bottom: var(--s-s); }

/* Split (how it works / scenario) */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: center; }

/* Security diagram */
.diagram { background: var(--paper); border: 1px solid var(--divider); border-radius: var(--r-card); padding: var(--s-l); box-shadow: var(--shadow-s); }
.sec-list { display: grid; gap: 12px; margin-top: var(--s-l); }
.sec-list li { display: flex; gap: 12px; align-items: flex-start; }
.sec-list .tick { width: 24px; height: 24px; flex: none; color: var(--sea-glass); }
.code { background: var(--deep-sea-900); color: var(--sea-glass); border-radius: var(--r-field); padding: 16px 18px; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .86rem; line-height: 1.7; overflow-x: auto; }
.code .k { color: #fff; } .code .v { color: var(--ember); }

/* Comparison table */
.table-wrap { overflow-x: auto; border: 1px solid var(--divider); border-radius: var(--r-card); background: var(--paper); box-shadow: var(--shadow-s); }
table.compare { border-collapse: collapse; width: 100%; min-width: 720px; }
table.compare th, table.compare td { padding: 14px 16px; text-align: center; border-bottom: 1px solid var(--divider); }
table.compare thead th { font-size: .92rem; color: var(--slate); font-weight: 700; vertical-align: bottom; }
table.compare tbody th { text-align: left; font-weight: 700; color: var(--ink); font-size: .95rem; }
table.compare .us { background: var(--info-bg); }
table.compare thead .us { border-top-left-radius: 14px; border-top-right-radius: 14px; color: var(--deep-sea); font-size: 1.05rem; }
table.compare tr:last-child td, table.compare tr:last-child th { border-bottom: 0; }
.yes { color: var(--success-text); font-weight: 700; }
.no { color: var(--slate); }
.cell-ico { width: 22px; height: 22px; display: inline-block; vertical-align: middle; }

/* Pricing */
.price-grid { grid-template-columns: repeat(2, 1fr); align-items: stretch; max-width: 760px; margin-inline: auto; }
.price-card { background: var(--paper); border: 1px solid var(--divider); border-radius: var(--r-card); padding: var(--s-xl) var(--s-l); box-shadow: var(--shadow-s); display: flex; flex-direction: column; }
.price-card.featured { border-color: var(--deep-sea); border-width: 2px; box-shadow: var(--shadow-m); position: relative; }
.price-card .tag { position: absolute; top: -13px; left: 50%; transform: translateX(-50%); background: var(--deep-sea); color: #fff; padding: 5px 14px; border-radius: 999px; font-size: .78rem; font-weight: 700; }
.price-card h3 { margin-bottom: 4px; }
.price-amt { font-size: 2.4rem; font-weight: 700; color: var(--ink); line-height: 1; margin: 8px 0 2px; }
.price-amt .per { font-size: .95rem; color: var(--slate); font-weight: 400; }
.price-card ul { margin: var(--s-m) 0 var(--s-l); display: grid; gap: 10px; }
.price-card li { display: flex; gap: 10px; align-items: flex-start; color: var(--slate); font-size: .96rem; }
.price-card li svg { width: 20px; height: 20px; color: var(--success-text); flex: none; margin-top: 1px; }
.price-card .btn { margin-top: auto; justify-content: center; }
.price-note { margin-top: var(--s-l); }

/* Chart */
.chart-fig { background: var(--paper); border: 1px solid var(--divider); border-radius: var(--r-card); padding: var(--s-l) var(--s-xl); box-shadow: var(--shadow-s); }
.chart-fig figcaption { color: var(--slate); font-size: .9rem; margin-top: var(--s-s); }
.bar-row { display: grid; grid-template-columns: 170px 1fr; align-items: center; gap: var(--s-m); margin: 14px 0; }
.bar-row .bar-label { font-weight: 700; font-size: .95rem; }
.bar-row .bar-label small { display: block; font-weight: 400; color: var(--slate); font-size: .78rem; }
.bar-track { background: var(--mist); border-radius: 8px; height: 40px; position: relative; overflow: hidden; }
.bar-fill { height: 100%; border-radius: 0 8px 8px 0; display: flex; align-items: center; justify-content: flex-end; padding-right: 12px; color: #fff; font-weight: 700; font-size: .95rem; min-width: 60px; }
.bar-fill.them { background: var(--slate); }
.bar-fill.us { background: var(--persimmon); }

/* FAQ */
.faq { max-width: 780px; margin: 0 auto; }
.faq details { background: var(--paper); border: 1px solid var(--divider); border-radius: var(--r-field); margin-bottom: 12px; overflow: hidden; }
.faq summary { cursor: pointer; padding: 18px 20px; font-weight: 700; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 12px; font-size: 1.05rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .plus { color: var(--deep-sea-500); font-size: 1.4rem; line-height: 1; transition: transform .2s; }
.faq details[open] summary .plus { transform: rotate(45deg); }
.faq details > div { padding: 0 20px 20px; color: var(--slate); }
.faq details > div p { margin: 0; }

/* Final CTA */
/* Emotional photography */
.photo { margin: 0; border-radius: var(--r-card); overflow: hidden; box-shadow: var(--shadow-m); background: var(--mist); }
.photo img { width: 100%; height: auto; display: block; }
.how-photo { max-width: 760px; margin: 0 auto clamp(40px, 6vw, 64px); }
.how-photo img { width: 100%; height: auto; display: block; border-radius: var(--r-card); box-shadow: var(--shadow-m); }
.photo-cap { text-align: center; color: var(--slate); font-size: .95rem; margin-top: var(--s-m); }

.cta-band { background: linear-gradient(140deg, var(--deep-sea) 0%, var(--deep-sea-900) 100%); color: #fff; border-radius: var(--r-card); padding: clamp(40px, 6vw, 72px); text-align: center; }
.cta-band-split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 4vw, 56px); align-items: center; text-align: left; }
.cta-band-split .lede { margin-inline: 0; }
.cta-photo { margin: 0; border-radius: var(--r-card); overflow: hidden; box-shadow: var(--shadow-l); }
.cta-photo img { width: 100%; height: auto; display: block; }
.cta-actions { justify-content: flex-start; }
@media (max-width: 960px) {
  .cta-band-split { grid-template-columns: 1fr; text-align: center; }
  .cta-band-split .lede { margin-inline: auto; }
  .cta-actions { justify-content: center; }
  .cta-photo { order: -1; }
}
.cta-band h2 { color: #fff; }
.cta-band .lede { color: var(--sea-glass); margin-inline: auto; }
.cta-band .btn-secondary { color: #fff; border-color: rgba(255,255,255,.4); }
.cta-band .btn-secondary:hover { background: rgba(255,255,255,.1); }

/* Footer */
.site-footer { background: var(--deep-sea-900); color: var(--sea-glass); padding: var(--s-xxl) 0 var(--s-l); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: var(--s-xl); }
.site-footer h4 { color: #fff; font-size: .95rem; margin: 0 0 var(--s-m); }
.site-footer a { color: var(--sea-glass); display: block; padding: 5px 0; font-size: .95rem; }
.site-footer a:hover { color: #fff; }
.footer-brand { display: inline-flex; align-items: center; gap: 10px; color: #fff; font-weight: 700; font-size: 1.1rem; margin-bottom: var(--s-s); }
.footer-brand img { width: 32px; height: 32px; }
.footer-brand .doc { color: var(--ember); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); margin-top: var(--s-xl); padding-top: var(--s-l); display: flex; justify-content: space-between; flex-wrap: wrap; gap: var(--s-s); font-size: .85rem; color: var(--deep-sea-200); }

/* Scroll reveal */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }

/* Responsive */
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; text-align: center; }
  .hero .lede { margin-inline: auto; }
  .hero-ctas, .hero-micro { justify-content: center; }
  .hero-phone { order: -1; }
  .features { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: 1fr; }
  .split { grid-template-columns: 1fr; }
  .price-grid { grid-template-columns: 1fr; max-width: 440px; margin-inline: auto; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: var(--s-l); }
}
@media (max-width: 1240px) {
  .nav-cta .btn-secondary { display: none; }
  .nav-links { gap: 16px; }
}
@media (max-width: 960px) {
  .nav-links { display: none; }
  .nav-toggle { display: inline-flex; }
  .site-header.menu-open .nav-links { display: flex; position: absolute; top: 72px; left: 0; right: 0; flex-direction: column; background: var(--paper); border-bottom: 1px solid var(--divider); padding: var(--s-m) var(--s-l); gap: var(--s-m); box-shadow: var(--shadow-m); }
}
@media (max-width: 720px) {
  .features { grid-template-columns: 1fr; }
  .bar-row { grid-template-columns: 1fr; gap: 6px; }
  .footer-grid { grid-template-columns: 1fr; }
}

/* Setup guide (/setup-guide/) */
.guide-hero { padding-top: clamp(32px, 6vw, 64px); padding-bottom: clamp(24px, 4vw, 40px); }
.guide-hero h1 .accent { color: var(--persimmon); }
.guide-hero .chips { margin-top: var(--s-l); }
.guide-layout { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: clamp(32px, 5vw, 64px); align-items: start; }
.guide-toc { position: sticky; top: 88px; background: var(--paper); border: 1px solid var(--divider); border-radius: var(--r-card); padding: var(--s-m) var(--s-m) var(--s-s); box-shadow: var(--shadow-s); }
.guide-toc h2 { font-size: .8rem; text-transform: uppercase; letter-spacing: .12em; color: var(--deep-sea-500); margin: 0 0 var(--s-s); padding: 0 6px; }
.guide-toc ol { margin: 0; padding: 0; list-style: none; counter-reset: toc; }
.guide-toc li { counter-increment: toc; }
.guide-toc a { display: flex; gap: 10px; align-items: baseline; color: var(--ink); font-size: .92rem; font-weight: 700; padding: 7px 6px; border-radius: 8px; }
.guide-toc a::before { content: counter(toc); color: var(--deep-sea-200); font-size: .8rem; min-width: 1.4em; }
.guide-toc a:hover, .guide-toc a.current { background: var(--info-bg); color: var(--deep-sea); text-decoration: none; }
.guide-toc a.current::before { color: var(--deep-sea-500); }
.guide-section { padding: clamp(32px, 5vw, 56px) 0; border-top: 1px solid var(--divider); scroll-margin-top: 88px; }
.guide-section:first-of-type { border-top: 0; padding-top: 0; }
.guide-section .eyebrow { margin-bottom: 4px; }
.guide-section > .lede { font-size: 1.08rem; margin-bottom: var(--s-l); max-width: 66ch; }
.g-steps { display: grid; gap: var(--s-l); counter-reset: gstep; }
.g-step { counter-increment: gstep; display: grid; grid-template-columns: minmax(0, 1fr) 250px; gap: var(--s-l); align-items: center; background: var(--paper); border: 1px solid var(--divider); border-radius: var(--r-card); padding: var(--s-l); box-shadow: var(--shadow-s); }
.g-step.wide { grid-template-columns: 1fr; }
.g-text { display: flex; gap: var(--s-m); }
.g-text::before { content: counter(gstep); flex: none; width: 40px; height: 40px; border-radius: 12px; background: var(--deep-sea); color: #fff; font-weight: 700; font-size: 1.05rem; display: grid; place-items: center; }
.g-text h3 { font-size: 1.15rem; margin: 6px 0 6px; }
.g-text p { color: var(--slate); margin: 0 0 10px; font-size: .98rem; }
.g-text p:last-child { margin-bottom: 0; }
.g-text ul { display: grid; gap: 6px; margin: 4px 0 10px; }
.g-text li { position: relative; padding-left: 18px; color: var(--slate); font-size: .96rem; }
.g-text li::before { content: ""; position: absolute; left: 0; top: .62em; width: 8px; height: 8px; border-radius: 50%; background: var(--deep-sea-200); }
.g-text kbd, .ui { display: inline-block; font-family: inherit; font-weight: 700; color: var(--deep-sea); background: var(--info-bg); border-radius: 6px; padding: 0 6px; font-size: .94em; white-space: nowrap; }
.g-shots { display: flex; flex-wrap: wrap; gap: var(--s-m); justify-content: center; }
.g-shot { margin: 0; width: 250px; flex: none; }
.g-shot img { width: 100%; height: auto; border-radius: 26px; border: 6px solid #0d2a2e; background: #0d2a2e; box-shadow: var(--shadow-m); }
.g-shot figcaption { text-align: center; color: var(--slate); font-size: .84rem; margin-top: 8px; }
.g-step.wide .g-shots { margin-top: var(--s-m); }
.g-note { display: flex; gap: 12px; align-items: flex-start; background: var(--info-bg); color: var(--info-text); border-radius: var(--r-alert); padding: 14px 16px; margin: var(--s-m) 0 0; font-size: .95rem; }
.g-note svg { width: 22px; height: 22px; flex: none; margin-top: 1px; }
.g-note.warn { background: var(--warning-bg); color: var(--warning-text); }
.g-note p { margin: 0; }
.g-gather { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-m); margin-top: var(--s-m); }
.g-gather li { background: var(--paper); border: 1px solid var(--divider); border-radius: var(--r-field); padding: 14px 16px; display: flex; gap: 10px; align-items: flex-start; font-size: .95rem; box-shadow: var(--shadow-s); }
.g-gather li::before { display: none; }
.g-gather li svg { width: 22px; height: 22px; color: var(--deep-sea-500); flex: none; }
.guide-cta { margin-top: clamp(32px, 5vw, 56px); }
@media (max-width: 960px) {
  .guide-layout { grid-template-columns: 1fr; }
  .guide-toc { position: static; }
  .guide-toc ol { display: grid; grid-template-columns: 1fr 1fr; }
  .g-gather { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .g-step { grid-template-columns: 1fr; padding: var(--s-m); }
  .g-shot { width: 220px; }
  .guide-toc ol { grid-template-columns: 1fr; }
  .g-text::before { width: 34px; height: 34px; font-size: .95rem; }
}
