/* ============================================================
   Icare Manual — style.css
   SITE D: sleek premium DARK "support command center".
   Deep indigo surfaces, warm amber→coral accent, periwinkle links,
   Bricolage Grotesque display + Inter body. Depth from borders +
   soft glow on the hero accent only, never heavy drop shadows.
   ============================================================ */

:root {
  --bg:      #0f1420;
  --panel:   #161c2b;
  --card:    #1b2234;
  --card-2:  #202842;
  --line:    #2a3346;
  --line-2:  #38435c;
  --text:    #e7ecf5;
  --muted:   #9aa6bd;
  --faint:   #6b7691;

  --amber:   #ffb27a;
  --coral:   #ff7a59;
  --peri:    #8da2ff;
  --grad:    linear-gradient(135deg, #ffb27a 0%, #ff7a59 100%);

  --ok:      #5ad1a8;
  --warn:    #ffb27a;
  --bad:     #ff6b6b;

  --r:    16px;
  --r-sm: 12px;
  --r-xs: 10px;

  --container: 1160px;
  --fs-display: 'Bricolage Grotesque', 'Inter', system-ui, sans-serif;
  --fs-body: 'Inter', system-ui, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;

  --shadow-glow: 0 0 0 1px rgba(255,122,89,.0), 0 24px 60px -28px rgba(255,122,89,.45);
}

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

body {
  margin: 0;
  font-family: var(--fs-body);
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
  font-size: 16.5px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* Ambient background wash */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(900px 500px at 88% -5%, rgba(255,122,89,.10), transparent 60%),
    radial-gradient(700px 500px at 8% 0%, rgba(141,162,255,.08), transparent 55%);
  pointer-events: none;
}

h1, h2, h3, h4 { font-family: var(--fs-display); font-weight: 800; line-height: 1.12; color: var(--text); margin: 0 0 .5em; letter-spacing: -.012em; }
h1 { font-size: clamp(2.1rem, 5vw, 3.3rem); }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.25rem); font-weight: 700; }
h3 { font-size: 1.15rem; font-weight: 700; }
p { margin: 0 0 1rem; color: var(--muted); }
a { color: var(--peri); text-decoration: none; transition: color .18s ease; }
a:hover { color: #aab8ff; }
img, svg { max-width: 100%; }
strong { color: var(--text); font-weight: 650; }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: 22px; }

/* ---------- Accessibility ---------- */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link {
  position: absolute; left: 12px; top: -48px; z-index: 1000;
  background: var(--coral); color: #1a0f0a; font-weight: 700;
  padding: .6rem 1rem; border-radius: 10px; transition: top .2s ease;
}
.skip-link:focus { top: 12px; color: #1a0f0a; }
:focus-visible { outline: 3px solid var(--peri); outline-offset: 2px; border-radius: 6px; }

/* ---------- Icons ---------- */
.ic, .ic-sm { width: 22px; height: 22px; flex: none; }
.ic-sm { width: 17px; height: 17px; }

/* ---------- Top bar ---------- */
.top-bar {
  background: #0b0f18;
  border-bottom: 1px solid var(--line);
  font-size: .82rem;
}
.top-bar p { margin: 0; padding: .5rem 0; color: var(--muted); text-align: center; }
.tb-dot { color: var(--coral); margin: 0 .35rem; }

/* ---------- Header / nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(15,20,32,.78);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s ease, background .25s ease;
}
.site-header.is-scrolled { border-bottom-color: var(--line); background: rgba(13,17,27,.92); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 70px; }

.brand { display: inline-flex; align-items: center; gap: .65rem; color: var(--text); }
.brand:hover { color: var(--text); }
.brand-mark {
  display: grid; place-items: center; width: 42px; height: 42px;
  border-radius: 13px; background: var(--panel); border: 1px solid var(--line);
  color: var(--coral);
}
.brand-mark .brand-ic { width: 23px; height: 23px; }
.brand-name { font-family: var(--fs-display); font-weight: 800; font-size: 1.22rem; letter-spacing: -.02em; display: block; line-height: 1.05; }
.brand-sub { font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; color: var(--faint); }

.primary-nav { display: flex; align-items: center; gap: 1.6rem; }
.primary-nav ul { list-style: none; display: flex; gap: .3rem; margin: 0; padding: 0; }
.primary-nav a {
  display: inline-block; padding: .5rem .8rem; border-radius: 10px;
  color: var(--muted); font-weight: 550; font-size: .95rem;
}
.primary-nav a:hover { color: var(--text); background: rgba(255,255,255,.04); }
.primary-nav a.is-active { color: var(--text); background: rgba(255,122,89,.1); }
.nav-cta {
  display: inline-flex; align-items: center; gap: .4rem;
  padding: .55rem 1rem; border-radius: 999px; font-weight: 650; font-size: .9rem;
  color: #1a0f0a; background: var(--grad);
}
.nav-cta:hover { color: #1a0f0a; filter: brightness(1.05); }

.nav-toggle { display: none; background: var(--panel); border: 1px solid var(--line); border-radius: 10px; width: 44px; height: 44px; cursor: pointer; padding: 0; }
.nav-toggle-bar { display: block; width: 20px; height: 2px; background: var(--text); margin: 4px auto; border-radius: 2px; transition: .2s; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  font-family: var(--fs-body); font-weight: 650; font-size: .98rem;
  padding: .8rem 1.4rem; border-radius: 999px; border: 1px solid transparent;
  cursor: pointer; transition: transform .15s ease, filter .18s ease, background .18s, border-color .18s, color .18s;
  text-align: center; line-height: 1.1;
}
.btn:active { transform: translateY(1px); }
.btn-sm { padding: .5rem 1rem; font-size: .88rem; }
.btn-primary { background: var(--grad); color: #1a0f0a; box-shadow: 0 10px 30px -12px rgba(255,122,89,.6); }
.btn-primary:hover { color: #1a0f0a; filter: brightness(1.06); }
.btn-ghost { background: transparent; border-color: var(--line-2); color: var(--text); }
.btn-ghost:hover { color: var(--text); border-color: var(--coral); background: rgba(255,122,89,.07); }
.btn-light { background: rgba(255,255,255,.06); color: var(--text); border-color: var(--line); }
.btn-light:hover { color: var(--text); background: rgba(255,255,255,.1); }

/* ---------- Eyebrow / accents ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: .5rem;
  font-size: .78rem; font-weight: 600; letter-spacing: .02em;
  color: var(--coral); margin-bottom: .7rem;
}
.eyebrow::before { content: ""; width: 22px; height: 2px; border-radius: 2px; background: var(--grad); }
.accent { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { font-size: 1.1rem; color: var(--muted); }
.text-center { text-align: center; }

/* ---------- Sections ---------- */
.section { padding: 4.2rem 0; }
.section--tint { background: var(--panel); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { max-width: 640px; margin-bottom: 2rem; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head p { margin-bottom: 0; }
.section-flex { display: flex; align-items: flex-end; justify-content: space-between; gap: 1.5rem; margin-bottom: 2rem; flex-wrap: wrap; }
.section-flex .section-head { margin-bottom: 0; }
.link-more { display: inline-flex; align-items: center; gap: .4rem; font-weight: 600; color: var(--peri); white-space: nowrap; }
.link-more:hover { gap: .6rem; }

/* ---------- Grids ---------- */
.grid { display: grid; gap: 1.2rem; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

/* ============================================================
   HERO
   ============================================================ */
.hero { position: relative; padding: 4.5rem 0 3rem; overflow: hidden; }
.hero-bg {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background: radial-gradient(620px 420px at 82% 28%, rgba(255,122,89,.16), transparent 62%);
}
.hero .container { position: relative; z-index: 1; }
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 2.5rem; align-items: center; }
.hero-copy h1 { margin: .3rem 0 .9rem; }
.hero-sub { font-size: 1.15rem; max-width: 46ch; color: var(--muted); }
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin: 1.6rem 0 2rem; }
.hero-stats { display: flex; gap: 2.4rem; border-top: 1px solid var(--line); padding-top: 1.4rem; }
.hero-stat .n { font-family: var(--fs-display); font-weight: 800; font-size: 1.7rem; color: var(--text); }
.hero-stat .l { font-size: .82rem; color: var(--faint); }

/* Glowing status visual */
.hero-visual { position: relative; display: grid; place-items: center; min-height: 340px; }
.glow-ring { position: absolute; border-radius: 50%; border: 1px solid rgba(255,122,89,.25); }
.glow-ring.r1 { width: 180px; height: 180px; box-shadow: 0 0 60px rgba(255,122,89,.28) inset, 0 0 40px rgba(255,122,89,.18); }
.glow-ring.r2 { width: 260px; height: 260px; border-color: rgba(255,178,122,.16); }
.glow-ring.r3 { width: 340px; height: 340px; border-color: rgba(141,162,255,.12); }
@media (prefers-reduced-motion: no-preference) {
  .glow-ring { animation: pulseRing 5.5s ease-in-out infinite; }
  .glow-ring.r2 { animation-delay: .6s; }
  .glow-ring.r3 { animation-delay: 1.2s; }
}
@keyframes pulseRing {
  0%, 100% { transform: scale(1); opacity: .9; }
  50% { transform: scale(1.05); opacity: 1; }
}
.status-phone {
  position: relative; z-index: 2;
  width: 150px; height: 300px; border-radius: 30px;
  background: linear-gradient(180deg, #1c2338, #12172580);
  border: 1px solid var(--line-2);
  box-shadow: 0 30px 80px -30px rgba(255,122,89,.5), 0 0 0 6px rgba(255,255,255,.02);
  display: grid; place-items: center; padding: 14px;
}
.status-notch { position: absolute; top: 12px; left: 50%; transform: translateX(-50%); width: 46px; height: 5px; border-radius: 3px; background: #2c3650; }
.status-screen { text-align: center; }
.status-mark { display: grid; place-items: center; width: 56px; height: 56px; margin: 0 auto .9rem; border-radius: 16px; background: var(--grad); color: #1a0f0a; }
.status-mark svg { width: 30px; height: 30px; }
.status-label { font-size: .8rem; font-weight: 600; color: var(--text); margin-bottom: 1rem; }
.status-bars { display: flex; gap: 5px; justify-content: center; align-items: flex-end; height: 34px; }
.status-bars span { width: 8px; border-radius: 3px; background: linear-gradient(180deg, var(--amber), var(--coral)); opacity: .85; }
.status-bars span:nth-child(1){ height: 40%; } .status-bars span:nth-child(2){ height: 70%; }
.status-bars span:nth-child(3){ height: 100%; } .status-bars span:nth-child(4){ height: 55%; }
.status-bars span:nth-child(5){ height: 80%; }
@media (prefers-reduced-motion: no-preference) {
  .status-bars span { animation: barPulse 2.4s ease-in-out infinite; }
  .status-bars span:nth-child(2){ animation-delay:.2s } .status-bars span:nth-child(3){ animation-delay:.4s }
  .status-bars span:nth-child(4){ animation-delay:.6s } .status-bars span:nth-child(5){ animation-delay:.8s }
}
@keyframes barPulse { 0%,100%{ transform: scaleY(.8); } 50%{ transform: scaleY(1); } }

/* ---------- Pillars (home + shared) ---------- */
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; margin-top: 3rem; }
.pillar {
  display: block; padding: 1.7rem; border-radius: var(--r);
  background: var(--card); border: 1px solid var(--line); color: var(--text);
  position: relative; transition: transform .2s ease, border-color .2s ease, box-shadow .25s ease;
  overflow: hidden;
}
.pillar::after {
  content: ""; position: absolute; inset: 0; opacity: 0; transition: opacity .3s ease; pointer-events: none;
  background: radial-gradient(400px 160px at 80% -10%, rgba(255,122,89,.18), transparent 70%);
}
.pillar:hover { transform: translateY(-4px); border-color: var(--line-2); box-shadow: var(--shadow-glow); color: var(--text); }
.pillar:hover::after { opacity: 1; }
.pillar-icon {
  display: grid; place-items: center; width: 52px; height: 52px; border-radius: 14px;
  background: rgba(255,122,89,.1); color: var(--coral); border: 1px solid rgba(255,122,89,.22); margin-bottom: 1rem;
}
.pillar-icon svg { width: 26px; height: 26px; }
.pillar h2 { font-size: 1.4rem; margin-bottom: .4rem; }
.pillar p { font-size: .95rem; margin-bottom: 1.1rem; }
.pillar-foot { display: inline-flex; align-items: center; gap: .45rem; font-weight: 650; color: var(--amber); font-size: .92rem; }
.pillar:hover .pillar-foot { gap: .65rem; }

/* ============================================================
   CARDS
   ============================================================ */
/* Problem cards */
.p-card {
  display: flex; flex-direction: column; gap: .7rem;
  padding: 1.25rem; border-radius: var(--r-sm);
  background: var(--card); border: 1px solid var(--line); color: var(--text);
  border-top: 2px solid var(--line-2);
  transition: transform .18s ease, border-color .18s ease, background .18s ease;
}
.p-card:hover { transform: translateY(-3px); color: var(--text); border-color: var(--line-2); background: var(--card-2); }
.p-card.sev-critical { border-top-color: var(--bad); }
.p-card.sev-high { border-top-color: var(--coral); }
.p-card.sev-medium { border-top-color: var(--peri); }
.p-card.sev-low { border-top-color: var(--ok); }
.p-top { display: flex; align-items: center; justify-content: space-between; }
.p-icon { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 11px; background: rgba(141,162,255,.1); color: var(--peri); }
.p-icon svg { width: 22px; height: 22px; }
.p-arrow { color: var(--faint); transition: transform .18s ease, color .18s; }
.p-card:hover .p-arrow { color: var(--coral); transform: translateX(3px); }
.p-card h3 { font-size: 1.02rem; margin: 0; font-family: var(--fs-body); font-weight: 650; }
.p-tag { display: flex; align-items: center; gap: .5rem; margin-top: auto; }
.p-cat { font-size: .78rem; color: var(--faint); font-weight: 550; }
.status-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--faint); flex: none; }
.sev-critical .status-dot, .dot-critical { background: var(--bad); box-shadow: 0 0 8px rgba(255,107,107,.6); }
.sev-high .status-dot, .dot-high { background: var(--coral); }
.sev-medium .status-dot, .dot-medium { background: var(--peri); }
.sev-low .status-dot, .dot-low { background: var(--ok); }

/* Category cards */
.c-card {
  display: block; padding: 1.4rem; border-radius: var(--r-sm);
  background: var(--card); border: 1px solid var(--line); color: var(--text);
  transition: transform .18s ease, border-color .18s ease, background .18s;
}
.c-card:hover { transform: translateY(-3px); border-color: var(--line-2); background: var(--card-2); color: var(--text); }
.c-icon { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 12px; background: rgba(255,122,89,.1); color: var(--coral); margin-bottom: .9rem; }
.c-icon svg { width: 24px; height: 24px; }
.c-pillar { display: inline-block; font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; color: var(--faint); margin-bottom: .3rem; }
.c-card h3 { font-size: 1.05rem; margin-bottom: .35rem; }
.c-card p { font-size: .9rem; margin: 0; }
.c-foot { display: inline-flex; align-items: center; gap: .4rem; font-weight: 600; color: var(--amber); margin-top: .9rem; font-size: .9rem; }

/* Feature cards */
.f-card { display: flex; flex-direction: column; border-radius: var(--r); overflow: hidden; background: var(--card); border: 1px solid var(--line); transition: transform .2s ease, border-color .2s; }
.f-card:hover { transform: translateY(-4px); border-color: var(--line-2); }
.f-thumb { display: grid; place-items: center; height: 150px; background: linear-gradient(135deg, #1d2740, #141a29); color: var(--coral); border-bottom: 1px solid var(--line); }
.f-thumb svg { width: 46px; height: 46px; filter: drop-shadow(0 6px 16px rgba(255,122,89,.35)); }
.f-body { padding: 1.3rem; }
.f-meta { display: flex; align-items: center; justify-content: space-between; margin-bottom: .6rem; }
.badge { font-size: .72rem; font-weight: 600; padding: .25rem .6rem; border-radius: 999px; background: rgba(141,162,255,.12); color: var(--peri); }
.f-date { font-size: .8rem; color: var(--faint); }
.f-card h3 { font-size: 1.1rem; margin-bottom: .5rem; }
.f-card h3 a { color: var(--text); }
.f-card h3 a:hover { color: var(--amber); }
.f-read { display: inline-flex; align-items: center; gap: .4rem; font-weight: 600; color: var(--amber); font-size: .92rem; }
.f-read:hover { gap: .6rem; color: var(--amber); }

/* Feature row (support quick fixes) */
.feature-row { display: flex; gap: 1rem; background: var(--card); border: 1px solid var(--line); border-radius: var(--r-sm); padding: 1.3rem; }
.feature-row h3 { margin-bottom: .3rem; font-size: 1.02rem; }
.feature-row p { margin: 0; font-size: .92rem; }
.feature-row .p-icon { flex: none; }

/* ============================================================
   SUPPORT page pillar panels
   ============================================================ */
.pillar-stack { display: grid; gap: 1.4rem; }
.pillar-panel {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--r);
  padding: 1.8rem; position: relative; overflow: hidden;
}
.pillar-panel::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--grad); opacity: .85; }
.pillar-panel-head { display: flex; align-items: center; gap: 1rem; margin-bottom: .8rem; }
.pillar-panel-head h2 { margin: 0; font-size: 1.5rem; }
.pillar-tagline { margin: 0; color: var(--amber); font-weight: 550; font-size: .95rem; }
.pillar-desc { max-width: 70ch; }
.pillar-links { list-style: none; margin: 1.1rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: .6rem; }
.pillar-links a {
  display: flex; align-items: center; justify-content: space-between; gap: .6rem;
  padding: .75rem 1rem; border-radius: var(--r-xs);
  background: var(--card); border: 1px solid var(--line); color: var(--text); font-weight: 550; font-size: .95rem;
  transition: border-color .18s, background .18s, transform .15s;
}
.pillar-links a:hover { border-color: var(--line-2); background: var(--card-2); color: var(--text); transform: translateX(2px); }
.pillar-links a svg { color: var(--coral); flex: none; }

/* ============================================================
   FAQ
   ============================================================ */
.faq { max-width: 760px; margin: 0 auto; display: grid; gap: .7rem; }
.faq-item { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-sm); overflow: hidden; }
.faq-item summary {
  list-style: none; cursor: pointer; padding: 1.05rem 1.3rem; font-weight: 600; color: var(--text);
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-plus { position: relative; width: 16px; height: 16px; flex: none; }
.faq-plus::before, .faq-plus::after { content: ""; position: absolute; background: var(--coral); border-radius: 2px; transition: transform .2s ease; }
.faq-plus::before { left: 7px; top: 0; width: 2px; height: 16px; }
.faq-plus::after { top: 7px; left: 0; height: 2px; width: 16px; }
.faq-item[open] .faq-plus::before { transform: scaleY(0); }
.faq-answer { padding: 0 1.3rem 1.2rem; }
.faq-answer p { margin: 0; }

/* ============================================================
   CTA band
   ============================================================ */
.cta-band {
  position: relative; overflow: hidden; text-align: center;
  background: linear-gradient(135deg, #1b2234, #151b2b);
  border: 1px solid var(--line); border-radius: var(--r);
  padding: 3rem 2rem;
}
.cta-band::before { content: ""; position: absolute; inset: 0; background: radial-gradient(500px 220px at 50% -20%, rgba(255,122,89,.18), transparent 70%); pointer-events: none; }
.cta-band > * { position: relative; }
.cta-band h2 { margin-bottom: .5rem; }
.cta-band p { max-width: 54ch; margin-inline: auto; }
.cta-actions { display: flex; gap: .8rem; justify-content: center; flex-wrap: wrap; margin-top: 1.4rem; }
.pill-note { display: inline-flex; align-items: center; gap: .5rem; padding: .4rem .9rem; border-radius: 999px; background: rgba(255,122,89,.1); border: 1px solid rgba(255,122,89,.22); color: var(--amber); font-size: .85rem; font-weight: 600; }

/* ============================================================
   PAGE HERO (interior pages)
   ============================================================ */
.page-hero { position: relative; padding: 3.2rem 0 2.4rem; border-bottom: 1px solid var(--line); overflow: hidden; }
.page-hero::before { content: ""; position: absolute; inset: 0; background: radial-gradient(640px 320px at 88% -30%, rgba(255,122,89,.12), transparent 65%); pointer-events: none; }
.page-hero .container { position: relative; }
.page-hero h1 { margin: .3rem 0 .6rem; }
.page-hero p { max-width: 62ch; font-size: 1.08rem; }

/* ---------- Breadcrumbs ---------- */
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: .5rem; margin: 0 0 .4rem; padding: 0; font-size: .85rem; }
.crumbs li { color: var(--faint); }
.crumbs li + li::before { content: "/"; margin-right: .5rem; color: var(--line-2); }
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--amber); }
.crumbs [aria-current="page"] { color: var(--text); }

/* ---------- Search console ---------- */
.search-console {
  display: flex; align-items: center; gap: .5rem; position: relative;
  background: var(--card); border: 1px solid var(--line-2); border-radius: 999px; padding: .4rem .4rem .4rem 1rem;
}
.search-console:focus-within { border-color: var(--coral); box-shadow: 0 0 0 3px rgba(255,122,89,.15); }
.sc-icon { color: var(--faint); display: grid; place-items: center; }
.sc-icon svg { width: 20px; height: 20px; }
.search-console input {
  flex: 1; border: 0; background: transparent; color: var(--text); font-size: 1rem; outline: none; padding: .55rem .2rem; min-width: 0;
}
.search-console input::placeholder { color: var(--faint); }

/* ============================================================
   GUIDE / ARTICLE layout
   ============================================================ */
.layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 2rem; align-items: start; }
.layout--narrow { max-width: 820px; margin-inline: auto; }
.article-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 2rem; }
.guide-meta { display: flex; flex-wrap: wrap; gap: 1.1rem; padding-bottom: 1.2rem; margin-bottom: 1.4rem; border-bottom: 1px solid var(--line); }
.gm { display: inline-flex; align-items: center; gap: .4rem; font-size: .85rem; color: var(--muted); }
.gm svg { color: var(--faint); }

.prose { color: var(--muted); }
.prose h2 { margin: 2rem 0 .8rem; font-size: 1.45rem; }
.prose h3 { margin: 1.2rem 0 .5rem; color: var(--text); }
.prose p { color: var(--muted); }
.prose a { color: var(--peri); text-decoration: underline; text-underline-offset: 2px; }

.toc { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-sm); padding: 1.1rem 1.3rem; margin-bottom: 1.4rem; }
.toc h2 { font-size: .8rem; text-transform: uppercase; letter-spacing: .1em; color: var(--faint); margin: 0 0 .6rem; font-family: var(--fs-body); }
.toc ol { margin: 0; padding-left: 1.1rem; columns: 2; gap: 1rem; }
.toc li { margin-bottom: .3rem; }
.toc a { color: var(--muted); text-decoration: none; }
.toc a:hover { color: var(--amber); }

.info-box { border-radius: var(--r-sm); padding: 1.2rem 1.3rem; margin: 1.4rem 0; border: 1px solid var(--line); }
.info-box h3 { display: flex; align-items: center; gap: .5rem; font-size: 1rem; margin: 0 0 .7rem; }
.info-box ul { margin: 0; padding-left: 1.2rem; }
.info-box li { margin-bottom: .4rem; color: var(--muted); }
.box-symptom { background: rgba(141,162,255,.07); border-color: rgba(141,162,255,.22); }
.box-symptom h3 { color: var(--peri); }
.box-cause { background: rgba(255,122,89,.06); border-color: rgba(255,122,89,.2); }
.box-cause h3 { color: var(--amber); }

.steps { list-style: none; counter-reset: step; margin: 1.2rem 0; padding: 0; }
.steps > li { position: relative; padding: 0 0 1.3rem 3.2rem; margin-bottom: 1.3rem; border-bottom: 1px solid var(--line); counter-increment: step; }
.steps > li:last-child { border-bottom: 0; margin-bottom: 0; }
.steps > li::before {
  content: counter(step); position: absolute; left: 0; top: 0;
  width: 2.1rem; height: 2.1rem; display: grid; place-items: center; border-radius: 10px;
  background: var(--grad); color: #1a0f0a; font-family: var(--fs-display); font-weight: 800; font-size: 1rem;
}
.steps h3 { margin: .1rem 0 .3rem; font-size: 1.08rem; }
.steps p { margin: 0; }

.callout { display: flex; gap: .9rem; align-items: flex-start; background: rgba(141,162,255,.08); border: 1px solid rgba(141,162,255,.25); border-radius: var(--r-sm); padding: 1.2rem 1.3rem; margin: 1.6rem 0; }
.callout svg { color: var(--peri); flex: none; width: 26px; height: 26px; }
.callout p { margin: 0; color: var(--muted); font-size: .95rem; }

.check-list { list-style: none; margin: 1rem 0; padding: 0; display: grid; gap: .6rem; }
.check-list li { display: flex; gap: .6rem; align-items: flex-start; color: var(--muted); }
.check-list li svg { color: var(--ok); flex: none; margin-top: 3px; }

.related-guides { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: .8rem; margin: 1rem 0; }
.rel-card { display: flex; align-items: center; gap: .7rem; padding: 1rem; border-radius: var(--r-sm); background: var(--panel); border: 1px solid var(--line); color: var(--text); font-weight: 550; font-size: .95rem; }
.rel-card:hover { border-color: var(--line-2); color: var(--text); background: var(--card-2); }
.rel-card .p-icon { width: 38px; height: 38px; }
.rel-card .p-icon svg { width: 20px; height: 20px; }

.divider { border: 0; border-top: 1px solid var(--line); margin: 1.6rem 0; }
.form-note { font-size: .85rem; color: var(--faint); }
.pill-note { display: inline-flex; }

/* ============================================================
   SIDEBAR
   ============================================================ */
.side { display: grid; gap: 1.2rem; position: sticky; top: 90px; }
.side-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-sm); padding: 1.3rem; }
.side-title { display: flex; align-items: center; gap: .5rem; font-size: .95rem; margin: 0 0 .9rem; color: var(--text); }
.side-title svg { color: var(--coral); }
.side-form { display: flex; gap: .4rem; }
.side-form input { flex: 1; min-width: 0; background: var(--panel); border: 1px solid var(--line-2); border-radius: 10px; color: var(--text); padding: .6rem .8rem; outline: none; }
.side-form input:focus { border-color: var(--coral); }
.side-form button { display: grid; place-items: center; width: 42px; border: 0; border-radius: 10px; background: var(--grad); color: #1a0f0a; cursor: pointer; }
.side-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .25rem; }
.side-list a { display: flex; align-items: center; gap: .6rem; padding: .55rem .6rem; border-radius: 10px; color: var(--muted); font-size: .92rem; }
.side-list a:hover { background: rgba(255,255,255,.04); color: var(--text); }
.side-ic { display: grid; place-items: center; color: var(--peri); }
.side-tip { background: linear-gradient(135deg, #1d2740, #151b2b); border-color: var(--line-2); }
.side-tip p { color: var(--muted); font-size: .92rem; }
.side-steps { background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: .8rem; font-size: .88rem; color: var(--text); }

/* ============================================================
   FORMS (contact)
   ============================================================ */
.form-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 1.8rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.field { margin-bottom: 1.1rem; display: flex; flex-direction: column; }
.field label { font-weight: 600; font-size: .9rem; margin-bottom: .4rem; color: var(--text); }
.req { color: var(--coral); }
.field input, .field select, .field textarea {
  background: var(--panel); border: 1px solid var(--line-2); border-radius: 10px;
  color: var(--text); padding: .7rem .85rem; font-family: inherit; font-size: .98rem; outline: none; width: 100%;
  transition: border-color .18s, box-shadow .18s;
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--coral); box-shadow: 0 0 0 3px rgba(255,122,89,.14); }
.field textarea { min-height: 150px; resize: vertical; }
.hint { font-size: .82rem; color: var(--faint); margin: .4rem 0 0; }
.alert { display: flex; gap: .7rem; align-items: flex-start; padding: 1rem 1.1rem; border-radius: var(--r-sm); margin-bottom: 1.3rem; }
.alert svg { flex: none; margin-top: 2px; }
.alert-success { background: rgba(90,209,168,.1); border: 1px solid rgba(90,209,168,.3); color: #bdf0dc; }
.alert-success svg { color: var(--ok); }
.alert-error { background: rgba(255,107,107,.1); border: 1px solid rgba(255,107,107,.3); color: #ffc9c9; }
.alert-error svg { color: var(--bad); }
.contact-info { display: grid; gap: .3rem; }
.ci-tile { display: flex; gap: .8rem; align-items: center; }
.ci-tile h3 { margin: 0; font-size: .9rem; }
.ci-tile p { margin: 0; font-size: .9rem; }

/* ============================================================
   FAQ page groups / sitemap / stats
   ============================================================ */
.cat-group { display: flex; align-items: center; gap: 1rem; }
.cat-group h3 { margin: 0; font-size: 1.1rem; color: var(--amber); white-space: nowrap; }
.cat-group .line { flex: 1; height: 1px; background: var(--line); }

.sitemap-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 1.6rem; }
.sitemap-col { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-sm); padding: 1.3rem 1.4rem; }
.sitemap-col h3 { font-size: 1rem; margin-bottom: .8rem; color: var(--text); }
.sitemap-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .4rem; }
.sitemap-col a { color: var(--muted); font-size: .92rem; }
.sitemap-col a:hover { color: var(--amber); }

.stat-tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.stat-tile { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-sm); padding: 1.3rem; text-align: center; }
.stat-tile .n { font-family: var(--fs-display); font-weight: 800; font-size: 1.8rem; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat-tile .l { font-size: .82rem; color: var(--faint); }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer { background: #0b0f18; border-top: 1px solid var(--line); margin-top: 4rem; padding: 3.2rem 0 2rem; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 2rem; }
.footer-brand .brand--footer { margin-bottom: 1rem; }
.footer-blurb { font-size: .92rem; color: var(--muted); max-width: 34ch; }
.footer-head { font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; color: var(--faint); margin-bottom: 1rem; }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .55rem; }
.footer-col a { color: var(--muted); font-size: .92rem; }
.footer-col a:hover { color: var(--amber); }
.footer-independent { border-top: 1px solid var(--line); margin-top: 2.2rem; padding-top: 1.6rem; }
.footer-independent h3 { font-size: 1rem; color: var(--text); margin-bottom: .4rem; }
.footer-independent p { font-size: .88rem; color: var(--muted); max-width: 90ch; margin: 0; }
.footer-disclaimer { display: flex; gap: .7rem; align-items: flex-start; margin-top: 1.4rem; padding: 1rem 1.1rem; background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-sm); }
.footer-disclaimer svg { color: var(--faint); flex: none; margin-top: 2px; }
.footer-disclaimer p { margin: 0; font-size: .82rem; color: var(--faint); }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; border-top: 1px solid var(--line); margin-top: 1.6rem; padding-top: 1.4rem; }
.footer-bottom p { margin: 0; font-size: .84rem; color: var(--faint); }
.footer-bottom-links a { color: var(--muted); }
.footer-bottom-links a:hover { color: var(--amber); }

/* ============================================================
   Cookie bar + to-top
   ============================================================ */
.cookie-bar {
  position: fixed; left: 50%; bottom: 18px; transform: translateX(-50%); z-index: 200;
  width: min(760px, calc(100% - 28px));
  display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
  background: var(--card); border: 1px solid var(--line-2); border-radius: var(--r-sm);
  padding: 1rem 1.2rem; box-shadow: 0 24px 60px -24px rgba(0,0,0,.7);
}
.cookie-bar p { margin: 0; font-size: .88rem; color: var(--muted); }
.cookie-actions { display: flex; gap: .5rem; }
.to-top {
  position: fixed; right: 18px; bottom: 18px; z-index: 150;
  width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--line-2);
  background: var(--card); color: var(--coral); cursor: pointer;
  display: grid; place-items: center; opacity: 0; pointer-events: none; transform: translateY(10px) rotate(-90deg);
  transition: opacity .25s, transform .25s;
}
.to-top.show { opacity: 1; pointer-events: auto; transform: translateY(0) rotate(-90deg); }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .5s ease, transform .5s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .glow-ring, .status-bars span { animation: none !important; }
  .btn, .p-card, .c-card, .f-card, .pillar { transition: none; }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1000px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { min-height: 300px; order: -1; }
  .layout { grid-template-columns: 1fr; }
  .side { position: static; }
  .grid-4 { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .primary-nav {
    position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: .4rem;
    background: var(--panel); border-bottom: 1px solid var(--line);
    padding: 1rem 22px 1.3rem; max-height: 0; overflow: hidden; visibility: hidden;
    transition: max-height .28s ease, visibility .28s;
  }
  .primary-nav.open { max-height: 540px; visibility: visible; }
  .primary-nav ul { flex-direction: column; gap: .2rem; }
  .primary-nav a { padding: .7rem .8rem; }
  .nav-cta { justify-content: center; margin-top: .4rem; }
  .pillars, .pillar-links { grid-template-columns: 1fr; }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .stat-tiles { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .section { padding: 3rem 0; }
  .form-row { grid-template-columns: 1fr; }
  .hero-stats { gap: 1.4rem; }
  .grid-2 { grid-template-columns: 1fr; }
  .toc ol { columns: 1; }
  .article-card { padding: 1.3rem; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 380px) {
  .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .brand-sub { display: none; }
  .container { padding-inline: 16px; }
}
