/* ============================================================
   iCare Support — style.css
   Design system: "Calm Diagnostic Clinic"
   Palette : midnight navy + electric mint signal + warm amber
   Type    : Sora (display) / Inter (body) / Space Mono (labels)
   ============================================================ */

/* ---------- Design tokens ---------- */
:root {
  /* Core palette */
  --ink:        #0B1B2E;   /* deep midnight navy */
  --ink-2:      #10263D;   /* raised navy panel */
  --ink-3:      #17324f;   /* navy hover */
  --porcelain:  #F5F8FB;   /* app background */
  --card:       #FFFFFF;
  --slate:      #55697E;   /* secondary text */
  --slate-2:    #7C8D9E;   /* muted text */
  --line:       #E4EBF2;   /* hairlines */
  --line-2:     #D3DEE9;

  /* Signal accent (mint-teal) */
  --signal:     #12D6A3;
  --signal-600: #0FB98D;
  --signal-700: #0C9C77;
  --signal-tint:#E4FBF4;

  /* Support accents */
  --amber:      #FFB020;
  --amber-tint: #FFF3DC;
  --coral:      #FF6B5E;   /* critical */
  --sky:        #4C8DFF;

  /* Severity dots */
  --sev-critical: #FF6B5E;
  --sev-high:     #FFB020;
  --sev-medium:   #4C8DFF;
  --sev-low:      #12D6A3;

  /* Typography */
  --font-display: 'Sora', system-ui, sans-serif;
  --font-body:    'Inter', system-ui, sans-serif;
  --font-mono:    'Space Mono', ui-monospace, monospace;

  /* Radius + shadow + spacing */
  --r-sm: 10px;
  --r:    16px;
  --r-lg: 22px;
  --r-xl: 30px;
  --shadow-sm: 0 2px 8px rgba(11,27,46,.05);
  --shadow:    0 14px 40px -18px rgba(11,27,46,.22);
  --shadow-lg: 0 30px 70px -28px rgba(11,27,46,.35);
  --ring: 0 0 0 3px rgba(18,214,163,.35);

  --wrap: 1180px;
  --gap: clamp(1rem, 3vw, 2rem);
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--porcelain);
  line-height: 1.65;
  font-size: 1.02rem;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--signal-700); text-decoration: none; transition: color .18s ease; }
a:hover { color: var(--signal-600); }

h1, h2, h3, h4 { font-family: var(--font-display); color: var(--ink); line-height: 1.15; letter-spacing: -0.02em; margin: 0 0 .5em; }
h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.4rem); font-weight: 700; }
h3 { font-size: 1.25rem; font-weight: 600; }
p  { margin: 0 0 1rem; }

.container { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: clamp(1rem, 4vw, 2rem); }

.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: 1rem; top: -60px; z-index: 200;
  background: var(--ink); color: #fff; padding: .7rem 1.1rem; border-radius: 0 0 var(--r-sm) var(--r-sm);
  transition: top .2s ease;
}
.skip-link:focus { top: 0; color: #fff; }

/* Universal focus visibility (a11y floor) */
a:focus-visible, button:focus-visible, input:focus-visible,
textarea:focus-visible, select:focus-visible, summary:focus-visible {
  outline: none; box-shadow: var(--ring); border-radius: var(--r-sm);
}

/* ---------- Monospace "diagnostic" label ---------- */
.mono-code, .eyebrow {
  font-family: var(--font-mono);
  font-size: .74rem;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.eyebrow {
  color: var(--signal-700);
  display: inline-flex; align-items: center; gap: .5rem;
  margin-bottom: .9rem;
}
.eyebrow::before {
  content: ""; width: 26px; height: 2px; background: var(--signal); border-radius: 2px;
}

/* ---------- Buttons ---------- */
.btn {
  --btn-bg: var(--ink);
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  font-family: var(--font-display); font-weight: 600; font-size: .98rem;
  padding: .85rem 1.5rem; border-radius: 999px; border: 1px solid transparent;
  cursor: pointer; transition: transform .16s ease, box-shadow .2s ease, background .2s ease;
  white-space: nowrap; line-height: 1;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn-primary { background: var(--signal); color: var(--ink); box-shadow: 0 12px 26px -12px rgba(18,214,163,.7); }
.btn-primary:hover { background: var(--signal-600); color: var(--ink); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: var(--ink-3); color: #fff; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line-2); }
.btn-ghost:hover { border-color: var(--ink); color: var(--ink); }
.btn-light { background: rgba(255,255,255,.12); color: #fff; border-color: rgba(255,255,255,.22); }
.btn-light:hover { background: rgba(255,255,255,.2); color: #fff; }
.btn-sm { padding: .55rem 1.05rem; font-size: .85rem; }
.ic, .ic-sm { width: 22px; height: 22px; flex: none; }
.ic-sm { width: 17px; height: 17px; }

/* ============================================================
   HEADER / NAV
   ============================================================ */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(245,248,251,.82);
  backdrop-filter: saturate(150%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s ease, box-shadow .25s ease, background .25s ease;
}
.site-header.is-scrolled { border-color: var(--line); box-shadow: var(--shadow-sm); background: rgba(245,248,251,.92); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 74px; gap: 1rem; }

.brand { display: inline-flex; align-items: center; gap: .7rem; color: var(--ink); }
.brand:hover { color: var(--ink); }
.brand-mark {
  width: 42px; height: 42px; display: grid; place-items: center;
  background: var(--ink); border-radius: 12px; color: var(--signal);
  box-shadow: 0 10px 22px -12px rgba(11,27,46,.6);
}
.brand-ic { width: 24px; height: 24px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand-name { font-family: var(--font-display); font-weight: 800; font-size: 1.16rem; letter-spacing: -.02em; }
.brand-sub { font-family: var(--font-mono); font-size: .62rem; letter-spacing: .16em; text-transform: uppercase; color: var(--slate-2); }

.primary-nav { display: flex; align-items: center; gap: 1.4rem; }
.primary-nav > ul { display: flex; align-items: center; gap: .3rem; list-style: none; margin: 0; padding: 0; }
.primary-nav a {
  color: var(--slate); font-weight: 500; font-size: 12px;
  padding: .5rem .75rem; border-radius: 8px; position: relative;
}
.primary-nav a:hover { color: var(--ink); background: rgba(11,27,46,.04); }
.primary-nav a.is-active { color: var(--ink); }
.primary-nav a.is-active::after {
  content: ""; position: absolute; left: .75rem; right: .75rem; bottom: .18rem; height: 2px;
  background: var(--signal); border-radius: 2px;
}
.nav-cta {
  display: inline-flex; align-items: center; gap: .45rem;
  background: var(--ink); color: #fff !important; padding: .55rem 1rem; border-radius: 999px;
  font-family: var(--font-display); font-weight: 600; font-size: .9rem;
}
.nav-cta:hover { background: var(--ink-3); transform: translateY(-1px); }

.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 10px; }
.nav-toggle-bar { width: 24px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .25s ease, opacity .2s ease; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 960px) {
  .nav-toggle { display: flex; }
  .primary-nav {
    position: fixed; inset: 74px 0 auto 0; flex-direction: column; align-items: stretch;
    gap: .3rem; background: var(--porcelain); border-bottom: 1px solid var(--line);
    padding: 1rem clamp(1rem,4vw,2rem) 1.4rem; box-shadow: var(--shadow);
    transform: translateY(-140%); transition: transform .32s cubic-bezier(.4,0,.2,1);
    max-height: calc(100vh - 74px); overflow-y: auto;
  }
  .primary-nav.open { transform: translateY(0); }
  .primary-nav > ul { flex-direction: column; align-items: stretch; gap: .1rem; }
  .primary-nav a { padding: .8rem .6rem; font-size: 1.02rem; }
  .primary-nav a.is-active::after { display: none; }
  .primary-nav a.is-active { background: var(--signal-tint); }
  .nav-cta { justify-content: center; margin-top: .6rem; }
}

/* ============================================================
   HERO — dark diagnostic console
   ============================================================ */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(1100px 500px at 85% -10%, rgba(18,214,163,.18), transparent 60%),
    radial-gradient(800px 500px at 10% 110%, rgba(76,141,255,.14), transparent 55%),
    linear-gradient(180deg, var(--ink) 0%, #0a1626 100%);
  color: #fff;
  padding: clamp(3.5rem, 8vw, 6.5rem) 0 clamp(4rem, 9vw, 7rem);
}
.hero::before { /* faint grid — "instrument panel" */
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: 46px 46px; mask-image: radial-gradient(circle at 50% 30%, #000 30%, transparent 78%);
  pointer-events: none;
}
.hero .container { position: relative; z-index: 2; }
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.hero h1 { color: #fff; }
.hero h1 .accent { color: var(--signal); }
.hero-sub { color: #B9C6D6; font-size: 1.12rem; max-width: 34ch; margin-bottom: 1.8rem; }
.hero .eyebrow { color: var(--signal); }
.hero .eyebrow::before { background: var(--signal); }

/* Search console */
.search-console {
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.14);
  border-radius: var(--r-lg); padding: .5rem; margin-bottom: 1.3rem;
  display: flex; align-items: center; gap: .4rem;
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(8px);
}
.search-console .sc-icon { color: var(--signal); padding-left: .8rem; display: grid; place-items: center; }
.search-console input {
  flex: 1; background: transparent; border: 0; color: #fff; font-family: var(--font-body);
  font-size: 1.05rem; padding: .85rem .4rem; min-width: 0;
}
.search-console input::placeholder { color: #8598ac; }
.search-console input:focus { outline: none; box-shadow: none; }
.search-console button { flex: none; }

.pop-searches { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; }
.pop-searches .pl { font-family: var(--font-mono); font-size: .68rem; letter-spacing: .1em; text-transform: uppercase; color: #7f93a8; margin-right: .2rem; }
.chip {
  display: inline-flex; align-items: center; gap: .4rem;
  background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.14);
  color: #dbe5ef; padding: .4rem .85rem; border-radius: 999px; font-size: .84rem;
  transition: background .18s ease, border-color .18s ease, transform .18s ease;
}
.chip:hover { background: rgba(18,214,163,.16); border-color: rgba(18,214,163,.5); color: #fff; transform: translateY(-1px); }

.hero-cta { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.8rem; }

/* Hero device / pulse illustration */
.hero-visual { position: relative; display: grid; place-items: center; min-height: 340px; }
.device {
  position: relative; width: 208px; height: 420px; border-radius: 42px;
  background: linear-gradient(160deg, #16304c, #0c1d30);
  border: 1px solid rgba(255,255,255,.14);
  box-shadow: var(--shadow-lg), inset 0 0 0 8px rgba(255,255,255,.03);
  padding: 14px; z-index: 2;
}
.device-screen {
  width: 100%; height: 100%; border-radius: 30px;
  background: radial-gradient(120px 120px at 50% 40%, rgba(18,214,163,.28), rgba(10,22,38,.9));
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1rem;
  overflow: hidden;
}
.device-notch { position: absolute; top: 22px; left: 50%; transform: translateX(-50%); width: 74px; height: 22px; background: #0a1626; border-radius: 0 0 14px 14px; z-index: 3; }
.device-pulse-ic { width: 56px; height: 56px; color: var(--signal); }
.device-status { font-family: var(--font-mono); font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; color: var(--signal); }
.device-bars { display: flex; gap: 6px; align-items: flex-end; height: 40px; }
.device-bars span { width: 8px; background: rgba(18,214,163,.55); border-radius: 3px; animation: eq 1.4s ease-in-out infinite; }
.device-bars span:nth-child(1){height:40%;animation-delay:0s}
.device-bars span:nth-child(2){height:75%;animation-delay:.2s}
.device-bars span:nth-child(3){height:55%;animation-delay:.4s}
.device-bars span:nth-child(4){height:90%;animation-delay:.15s}
.device-bars span:nth-child(5){height:60%;animation-delay:.3s}
@keyframes eq { 0%,100%{ transform: scaleY(.6);} 50%{ transform: scaleY(1);} }

.pulse-ring {
  position: absolute; top: 50%; left: 50%; width: 220px; height: 220px;
  border: 1.5px solid rgba(18,214,163,.4); border-radius: 50%;
  transform: translate(-50%,-50%); animation: pulse 3.2s ease-out infinite; z-index: 1;
}
.pulse-ring:nth-child(2){ animation-delay: 1.05s; }
.pulse-ring:nth-child(3){ animation-delay: 2.1s; }
@keyframes pulse {
  0% { width: 200px; height: 200px; opacity: .8; }
  100% { width: 460px; height: 460px; opacity: 0; }
}

/* Hero trust stats strip */
.hero-stats { display: flex; flex-wrap: wrap; gap: 2.2rem; margin-top: 2.6rem; padding-top: 1.8rem; border-top: 1px solid rgba(255,255,255,.1); }
.hero-stat .n { font-family: var(--font-display); font-weight: 800; font-size: 1.7rem; color: #fff; }
.hero-stat .l { font-family: var(--font-mono); font-size: .68rem; letter-spacing: .1em; text-transform: uppercase; color: #8598ac; }

@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { order: -1; min-height: 300px; }
  .device { width: 168px; height: 340px; }
  .hero-sub { max-width: none; }
}

/* ============================================================
   SECTIONS
   ============================================================ */
.section { padding: clamp(3.2rem, 7vw, 5.5rem) 0; }
.section--tint { background:
  linear-gradient(180deg, #fff, var(--porcelain)); }
.section-head { max-width: 640px; margin-bottom: 2.4rem; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head p { color: var(--slate); font-size: 1.08rem; margin: 0; }
.section-head.center .eyebrow { justify-content: center; }
.section-flex { display: flex; align-items: flex-end; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap; margin-bottom: 2.2rem; }
.section-flex .section-head { margin-bottom: 0; }
.link-more { display: inline-flex; align-items: center; gap: .4rem; font-family: var(--font-display); font-weight: 600; }
.link-more:hover { gap: .65rem; }

/* ---------- Card grids ---------- */
.grid { display: grid; gap: 1.1rem; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-auto { grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); }
@media (max-width: 900px){ .grid-4{grid-template-columns:repeat(2,1fr)} .grid-3{grid-template-columns:repeat(2,1fr)} }
@media (max-width: 620px){ .grid-4,.grid-3,.grid-2{grid-template-columns:1fr} }

/* ---------- Problem card ---------- */
.p-card {
  position: relative; background: var(--card); border: 1px solid var(--line);
  border-radius: var(--r); padding: 1.25rem; display: flex; flex-direction: column; gap: .8rem;
  transition: transform .2s ease, box-shadow .25s ease, border-color .2s ease;
  overflow: hidden;
}
.p-card::after { /* accent wash on hover */
  content: ""; position: absolute; inset: 0; background: radial-gradient(240px 120px at 100% 0, rgba(18,214,163,.1), transparent 70%);
  opacity: 0; transition: opacity .25s ease;
}
.p-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: transparent; color: var(--ink); }
.p-card:hover::after { opacity: 1; }
.p-card .p-top { display: flex; align-items: center; justify-content: space-between; }
.p-icon {
  width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center;
  background: var(--signal-tint); color: var(--signal-700); flex: none;
}
.p-icon .ic { width: 24px; height: 24px; }
.p-card h3 { font-size: 1.06rem; margin: 0; position: relative; z-index: 1; }
.p-tag { display: flex; align-items: center; gap: .55rem; position: relative; z-index: 1; }
.p-tag .mono-code { color: var(--slate-2); }
.status-dot { width: 9px; height: 9px; border-radius: 50%; flex: none; box-shadow: 0 0 0 4px rgba(0,0,0,.04); }
.sev-critical .status-dot, .dot-critical { background: var(--sev-critical); }
.sev-high .status-dot, .dot-high { background: var(--sev-high); }
.sev-medium .status-dot, .dot-medium { background: var(--sev-medium); }
.sev-low .status-dot, .dot-low { background: var(--sev-low); }
.p-arrow { color: var(--slate-2); transition: transform .2s ease, color .2s ease; position: relative; z-index: 1; }
.p-card:hover .p-arrow { color: var(--signal-700); transform: translateX(4px); }

/* ---------- Category card ---------- */
.c-card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r);
  padding: 1.3rem; display: flex; flex-direction: column; gap: .6rem;
  transition: transform .2s ease, box-shadow .25s ease, border-color .2s ease;
}
.c-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: transparent; }
.c-icon { width: 48px; height: 48px; border-radius: 13px; display: grid; place-items: center; background: var(--ink); color: var(--signal); margin-bottom: .3rem; }
.c-icon .ic { width: 25px; height: 25px; }
.c-card h3 { font-size: 1.08rem; margin: 0; color: var(--ink); }
.c-card p { color: var(--slate); font-size: .92rem; margin: 0; }
.c-card .c-foot { margin-top: auto; padding-top: .6rem; display: flex; align-items: center; gap: .5rem; color: var(--signal-700); font-family: var(--font-display); font-weight: 600; font-size: .88rem; }
.c-card:hover .c-foot { gap: .75rem; }

/* Category group label */
.cat-group { grid-column: 1 / -1; display: flex; align-items: center; gap: .8rem; margin-top: .8rem; }
.cat-group:first-child { margin-top: 0; }
.cat-group h3 { font-family: var(--font-mono); font-size: .74rem; letter-spacing: .12em; text-transform: uppercase; color: var(--slate-2); margin: 0; }
.cat-group .line { flex: 1; height: 1px; background: var(--line); }

/* ---------- Featured / article card ---------- */
.f-card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg);
  overflow: hidden; display: flex; flex-direction: column;
  transition: transform .22s ease, box-shadow .25s ease;
}
.f-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.f-thumb { position: relative; aspect-ratio: 16/9; display: grid; place-items: center; color: #fff; overflow: hidden; }
.f-thumb .ic { width: 46px; height: 46px; opacity: .95; position: relative; z-index: 2; }
.f-thumb::after { content:""; position:absolute; inset:0; background-image:
  linear-gradient(rgba(255,255,255,.06) 1px, transparent 1px),
  linear-gradient(90deg, rgba(255,255,255,.06) 1px, transparent 1px);
  background-size: 26px 26px; }
.thumb-1 { background: linear-gradient(140deg,#0B1B2E,#14406b); }
.thumb-2 { background: linear-gradient(140deg,#0C9C77,#12D6A3); }
.thumb-3 { background: linear-gradient(140deg,#1a2a52,#4C8DFF); }
.thumb-4 { background: linear-gradient(140deg,#7a4b00,#FFB020); }
.thumb-5 { background: linear-gradient(140deg,#4a1410,#FF6B5E); }
.thumb-6 { background: linear-gradient(140deg,#0B1B2E,#0C9C77); }
.f-body { padding: 1.2rem 1.3rem 1.4rem; display: flex; flex-direction: column; gap: .55rem; flex: 1; }
.f-meta { display: flex; align-items: center; gap: .7rem; }
.badge {
  font-family: var(--font-mono); font-size: .66rem; letter-spacing: .08em; text-transform: uppercase;
  background: var(--signal-tint); color: var(--signal-700); padding: .28rem .6rem; border-radius: 999px;
}
.f-date { font-family: var(--font-mono); font-size: .72rem; color: var(--slate-2); }
.f-card h3 { font-size: 1.12rem; margin: 0; }
.f-card h3 a { color: var(--ink); }
.f-card h3 a:hover { color: var(--signal-700); }
.f-card p { color: var(--slate); font-size: .93rem; margin: 0; }
.f-read { margin-top: auto; padding-top: .4rem; font-family: var(--font-display); font-weight: 600; font-size: .88rem; display: inline-flex; align-items: center; gap: .4rem; }

/* ============================================================
   FAQ accordion
   ============================================================ */
.faq { max-width: 820px; margin-inline: auto; display: flex; flex-direction: column; gap: .8rem; }
.faq-item { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; transition: border-color .2s ease, box-shadow .2s ease; }
.faq-item[open] { border-color: var(--signal); box-shadow: var(--shadow-sm); }
.faq-item summary {
  list-style: none; cursor: pointer; padding: 1.15rem 1.3rem; display: flex; align-items: center;
  justify-content: space-between; gap: 1rem; font-family: var(--font-display); font-weight: 600; font-size: 1.04rem; color: var(--ink);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-plus { width: 26px; height: 26px; flex: none; position: relative; border-radius: 50%; background: var(--signal-tint); transition: background .2s ease; }
.faq-plus::before, .faq-plus::after { content:""; position:absolute; top:50%; left:50%; width:11px; height:2px; background: var(--signal-700); transform: translate(-50%,-50%); border-radius: 2px; transition: transform .25s ease; }
.faq-plus::after { transform: translate(-50%,-50%) rotate(90deg); }
.faq-item[open] .faq-plus::after { transform: translate(-50%,-50%) rotate(0); }
.faq-item[open] .faq-plus { background: var(--signal); }
.faq-answer { padding: 0 1.3rem 1.2rem; color: var(--slate); }
.faq-answer p { margin: 0; }

/* ============================================================
   CTA band
   ============================================================ */
.cta-band { position: relative; overflow: hidden; border-radius: var(--r-xl); background:
  radial-gradient(600px 300px at 90% -20%, rgba(18,214,163,.25), transparent 60%),
  linear-gradient(140deg, var(--ink), #0a1626);
  color: #fff; padding: clamp(2.4rem, 6vw, 4rem); text-align: center; }
.cta-band h2 { color: #fff; }
.cta-band p { color: #B9C6D6; max-width: 52ch; margin: 0 auto 1.8rem; font-size: 1.08rem; }
.cta-actions { display: flex; gap: .9rem; justify-content: center; flex-wrap: wrap; }

/* ============================================================
   BREADCRUMBS + page header
   ============================================================ */
.page-hero { background: linear-gradient(180deg, var(--ink), #0c1d30); color: #fff; padding: clamp(2.4rem,5vw,3.6rem) 0 clamp(2.6rem,5vw,3.4rem); position: relative; overflow: hidden; }
.page-hero::before { content:""; position:absolute; inset:0; background-image:
  linear-gradient(rgba(255,255,255,.03) 1px, transparent 1px),
  linear-gradient(90deg, rgba(255,255,255,.03) 1px, transparent 1px);
  background-size: 44px 44px; mask-image: radial-gradient(circle at 30% 0, #000, transparent 75%); }
.page-hero .container { position: relative; z-index: 2; }
.page-hero h1 { color: #fff; margin-bottom: .5rem; }
.page-hero p { color: #B9C6D6; max-width: 60ch; margin: 0; font-size: 1.08rem; }

.crumbs { margin-bottom: 1rem; display: none; }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: .5rem; padding: 0; margin: 0; font-family: var(--font-mono); font-size: .76rem; }
.crumbs li { display: flex; align-items: center; gap: .5rem; color: #8598ac; }
.crumbs li:not(:last-child)::after { content: "/"; color: #55697E; }
.crumbs a { color: #B9C6D6; }
.crumbs a:hover { color: var(--signal); }
.crumbs li[aria-current] { color: var(--signal); }
/* Breadcrumbs on light pages */
.crumbs--light li { color: var(--slate-2); }
.crumbs--light a { color: var(--slate); }
.crumbs--light a:hover { color: var(--signal-700); }
.crumbs--light li[aria-current] { color: var(--ink); }
.crumbs--light li:not(:last-child)::after { color: var(--line-2); }

/* ============================================================
   CONTENT LAYOUT (guides / legal / static)
   ============================================================ */
.layout { display: grid; grid-template-columns: minmax(0,1fr) 320px; gap: clamp(1.6rem, 4vw, 3rem); align-items: start; }
.layout--narrow { max-width: 820px; margin-inline: auto; }
@media (max-width: 940px){ .layout { grid-template-columns: 1fr; } }

.prose { color: #26384a; font-size: 1.06rem; }
.prose h2 { margin-top: 2.4rem; font-size: 1.7rem; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin-top: 1.8rem; font-size: 1.2rem; }
.prose p { margin: 0 0 1.1rem; }
.prose ul, .prose ol { margin: 0 0 1.3rem; padding-left: 1.3rem; }
.prose li { margin-bottom: .55rem; }
.prose a { font-weight: 500; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--line-2); }
.prose a:hover { text-decoration-color: var(--signal); }
.prose strong { color: var(--ink); }

/* Guide article card wrapper */
.article-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); padding: clamp(1.4rem, 4vw, 2.6rem); box-shadow: var(--shadow-sm); }

/* Guide meta bar */
.guide-meta { display: flex; flex-wrap: wrap; gap: 1.2rem; align-items: center; padding: 1rem 0 1.4rem; margin-bottom: 1.4rem; border-bottom: 1px solid var(--line); }
.guide-meta .gm { display: inline-flex; align-items: center; gap: .5rem; font-family: var(--font-mono); font-size: .78rem; color: var(--slate); }
.guide-meta .ic-sm { color: var(--signal-700); }

/* Symptom / cause list boxes */
.info-box { border: 1px solid var(--line); border-radius: var(--r); padding: 1.3rem 1.4rem; margin: 1.6rem 0; }
.info-box h3 { display: flex; align-items: center; gap: .6rem; margin-top: 0; font-size: 1.08rem; }
.info-box ul { margin: 0; padding-left: 1.2rem; }
.info-box li { margin-bottom: .5rem; }
.box-symptom { background: #fff7f0; border-color: #ffe1c9; }
.box-symptom h3 { color: #b4530b; }
.box-cause { background: #f2f7ff; border-color: #d8e6ff; }
.box-cause h3 { color: #2b5fb8; }

/* Step list — numbered "procedure" */
.steps { list-style: none; counter-reset: step; padding: 0; margin: 1.6rem 0; display: flex; flex-direction: column; gap: 1rem; }
.steps > li {
  position: relative; counter-increment: step; background: var(--card);
  border: 1px solid var(--line); border-radius: var(--r); padding: 1.25rem 1.3rem 1.25rem 4.2rem;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.steps > li:hover { border-color: var(--signal); box-shadow: var(--shadow-sm); }
.steps > li::before {
  content: counter(step, decimal-leading-zero); position: absolute; left: 1.1rem; top: 1.1rem;
  width: 2.1rem; height: 2.1rem; display: grid; place-items: center;
  background: var(--ink); color: var(--signal); border-radius: 10px;
  font-family: var(--font-mono); font-weight: 700; font-size: .8rem;
}
.steps h3 { margin: 0 0 .3rem; font-size: 1.08rem; }
.steps p { margin: 0; color: var(--slate); font-size: .98rem; }

/* Prevention / tips list with checks */
.check-list { list-style: none; padding: 0; margin: 1.4rem 0; display: grid; gap: .7rem; }
.check-list li { display: flex; gap: .7rem; align-items: flex-start; }
.check-list .ic-sm { color: var(--signal-700); background: var(--signal-tint); border-radius: 6px; padding: 3px; width: 24px; height: 24px; flex: none; margin-top: 1px; }

/* Callout */
.callout { display: flex; gap: .9rem; background: var(--amber-tint); border: 1px solid #ffe1ad; border-radius: var(--r); padding: 1.1rem 1.2rem; margin: 1.6rem 0; }
.callout .ic { color: #b4770b; flex: none; }
.callout p { margin: 0; color: #6b4a08; font-size: .96rem; }
.callout strong { color: #5a3d05; }

/* Related guides */
.related-guides { display: grid; gap: .8rem; grid-template-columns: repeat(3,1fr); margin-top: 1rem; }
@media (max-width: 700px){ .related-guides { grid-template-columns: 1fr; } }
.rel-card { border: 1px solid var(--line); border-radius: var(--r); padding: 1rem 1.1rem; background: var(--card); display: flex; align-items: center; gap: .8rem; transition: border-color .2s ease, transform .2s ease; }
.rel-card:hover { border-color: var(--signal); transform: translateY(-2px); }
.rel-card .p-icon { width: 40px; height: 40px; }
.rel-card span { font-family: var(--font-display); font-weight: 600; font-size: .95rem; color: var(--ink); }

/* ============================================================
   SIDEBAR
   ============================================================ */
.side { position: sticky; top: 94px; display: flex; flex-direction: column; gap: 1.1rem; }
@media (max-width: 940px){ .side { position: static; } }
.side-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 1.2rem; }
.side-title { display: flex; align-items: center; gap: .5rem; font-size: .95rem; margin: 0 0 .9rem; }
.side-title .ic-sm { color: var(--signal-700); }
.side-form { display: flex; gap: .4rem; }
.side-form input { flex: 1; border: 1px solid var(--line-2); border-radius: 10px; padding: .6rem .8rem; font: inherit; min-width: 0; }
.side-form button { background: var(--ink); color: #fff; border: 0; border-radius: 10px; width: 42px; display: grid; place-items: center; cursor: pointer; }
.side-form button:hover { background: var(--ink-3); }
.side-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; }
.side-list li { border-top: 1px solid var(--line); }
.side-list li:first-child { border-top: 0; }
.side-list a { display: flex; align-items: center; gap: .6rem; padding: .65rem 0; color: var(--slate); font-size: .94rem; }
.side-list a:hover { color: var(--ink); }
.side-list .mono-code { color: var(--signal-700); }
.side-tip { background: var(--ink); color: #cfe7df; border-color: transparent; }
.side-tip .side-title { color: #fff; }
.side-tip .side-title .ic-sm { color: var(--signal); }
.side-tip strong { color: #fff; }
.side-steps { color: var(--signal); font-size: .78rem; line-height: 1.9; margin: 0; }

/* ============================================================
   FORMS (contact)
   ============================================================ */
.form-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); padding: clamp(1.4rem, 4vw, 2.4rem); box-shadow: var(--shadow-sm); }
.field { margin-bottom: 1.1rem; }
.field label { display: block; font-family: var(--font-display); font-weight: 600; font-size: .9rem; margin-bottom: .4rem; }
.field .req { color: var(--coral); }
.field input, .field select, .field textarea {
  width: 100%; border: 1px solid var(--line-2); border-radius: 12px; padding: .8rem 1rem;
  font: inherit; color: var(--ink); background: #fff; transition: border-color .18s ease, box-shadow .18s ease;
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--signal); box-shadow: var(--ring); outline: none; }
.field textarea { min-height: 150px; resize: vertical; }
.field .hint { font-size: .82rem; color: var(--slate-2); margin: .35rem 0 0; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
@media (max-width: 560px){ .form-row { grid-template-columns: 1fr; } }
.form-note { font-size: .84rem; color: var(--slate-2); }

.alert { border-radius: var(--r); padding: 1rem 1.2rem; margin-bottom: 1.4rem; display: flex; gap: .7rem; align-items: flex-start; font-size: .96rem; }
.alert .ic-sm { flex: none; margin-top: 2px; }
.alert-success { background: var(--signal-tint); border: 1px solid #b6f0e0; color: #0a6f56; }
.alert-error { background: #fff0ee; border: 1px solid #ffd4cf; color: #b23b30; }

/* Contact info tiles */
.contact-info { display: grid; gap: 1rem; }
.ci-tile { display: flex; gap: .9rem; align-items: flex-start; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 1.1rem 1.2rem; }
.ci-tile .p-icon { width: 44px; height: 44px; }
.ci-tile h3 { font-size: 1rem; margin: 0 0 .2rem; }
.ci-tile p { margin: 0; color: var(--slate); font-size: .94rem; }
.ci-tile a { color: var(--signal-700); }

/* ============================================================
   VALUE / feature rows (about, support)
   ============================================================ */
.feature-row { display: flex; gap: 1rem; align-items: flex-start; }
.feature-row .p-icon { width: 50px; height: 50px; }
.feature-row h3 { font-size: 1.12rem; margin: .2rem 0 .4rem; }
.feature-row p { color: var(--slate); margin: 0; }

/* Stat tiles */
.stat-tiles { display: grid; grid-template-columns: repeat(4,1fr); gap: 1rem; }
@media (max-width:820px){ .stat-tiles{ grid-template-columns: repeat(2,1fr);} }
.stat-tile { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 1.4rem; text-align: center; }
.stat-tile .n { font-family: var(--font-display); font-weight: 800; font-size: 2rem; color: var(--ink); }
.stat-tile .l { color: var(--slate); font-size: .9rem; }

/* Table of contents (guides) */
.toc { background: var(--porcelain); border: 1px solid var(--line); border-radius: var(--r); padding: 1.1rem 1.3rem; margin-bottom: 1.8rem; }
.toc h2 { font-size: .95rem !important; margin: 0 0 .6rem !important; font-family: var(--font-mono); text-transform: uppercase; letter-spacing: .1em; color: var(--slate-2); }
.toc ol { margin: 0; padding-left: 1.2rem; columns: 2; column-gap: 2rem; }
.toc li { margin-bottom: .3rem; }
@media (max-width:560px){ .toc ol { columns: 1; } }

/* Sitemap page */
.sitemap-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 1.6rem; }
@media (max-width:820px){ .sitemap-grid{grid-template-columns:repeat(2,1fr)} }
@media (max-width:560px){ .sitemap-grid{grid-template-columns:1fr} }
.sitemap-col h3 { font-size: 1rem; padding-bottom: .5rem; border-bottom: 2px solid var(--signal); display: inline-block; }
.sitemap-col ul { list-style: none; padding: 0; margin: .8rem 0 0; }
.sitemap-col li { padding: .3rem 0; }
.sitemap-col a { color: var(--slate); }
.sitemap-col a:hover { color: var(--signal-700); }

/* ============================================================
   Cookie bar + back-to-top
   ============================================================ */
.cookie-bar {
  position: fixed; left: 1rem; right: 1rem; bottom: 1rem; z-index: 150; max-width: 760px; margin-inline: auto;
  background: var(--ink); color: #cdd9e6; border-radius: var(--r); padding: 1rem 1.2rem;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
  box-shadow: var(--shadow-lg); border: 1px solid rgba(255,255,255,.1);
}
.cookie-bar p { margin: 0; font-size: .9rem; }
.cookie-bar a { color: var(--signal); }
.cookie-actions { display: flex; gap: .6rem; }
.cookie-bar .btn-ghost { color: #cdd9e6; border-color: rgba(255,255,255,.25); }
.cookie-bar .btn-ghost:hover { color: #fff; border-color: #fff; }

.to-top {
  position: fixed; right: 1.2rem; bottom: 1.2rem; z-index: 90; width: 48px; height: 48px; border-radius: 50%;
  background: var(--ink); color: var(--signal); border: 0; display: grid; place-items: center; cursor: pointer;
  box-shadow: var(--shadow); opacity: 0; visibility: hidden; transform: translateY(12px) rotate(-90deg);
  transition: opacity .25s ease, transform .25s ease, visibility .25s;
}
.to-top.show { opacity: 1; visibility: visible; transform: translateY(0) rotate(-90deg); }
.to-top:hover { background: var(--ink-3); }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer { background: var(--ink); color: #9fb1c4; padding: clamp(3rem,6vw,4.5rem) 0 2rem; margin-top: 2rem; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 2rem; padding-bottom: 2.4rem; border-bottom: 1px solid rgba(255,255,255,.1); }
@media (max-width: 860px){ .footer-grid{ grid-template-columns: 1fr 1fr; gap:1.6rem;} .footer-brand{ grid-column: 1 / -1; } }
@media (max-width: 520px){ .footer-grid{ grid-template-columns: 1fr; } }
.footer-brand .brand--footer { color: #fff; margin-bottom: 1rem; }
.footer-brand .brand-name { color: #fff; }
.footer-blurb { font-size: .92rem; max-width: 40ch; margin-bottom: 1.2rem; }
.footer-social { display: flex; gap: .6rem; }
.footer-social a { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; background: rgba(255,255,255,.07); color: #cdd9e6; transition: background .2s ease, color .2s ease, transform .2s ease; }
.footer-social a svg { width: 18px; height: 18px; }
.footer-social a:hover { background: var(--signal); color: var(--ink); transform: translateY(-2px); }
.footer-head { color: #fff; font-size: .82rem; font-family: var(--font-mono); text-transform: uppercase; letter-spacing: .12em; margin-bottom: 1rem; }
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { margin-bottom: .6rem; }
.footer-col a { color: #9fb1c4; font-size: .93rem; }
.footer-col a:hover { color: var(--signal); }
.footer-disclaimer { display: flex; gap: .8rem; align-items: flex-start; padding: 1.6rem 0; border-bottom: 1px solid rgba(255,255,255,.1); }
.footer-disclaimer .ic-sm { color: var(--signal); flex: none; margin-top: 2px; }
.footer-disclaimer p { margin: 0; font-size: .84rem; color: #7f93a8; max-width: 90ch; }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; padding-top: 1.6rem; font-size: .86rem; }
.footer-bottom p { margin: 0; }
.footer-bottom-links a { color: #9fb1c4; }
.footer-bottom-links a:hover { color: var(--signal); }

/* ============================================================
   Utilities
   ============================================================ */
.text-center { text-align: center; }
.mt-0{margin-top:0}.mb-0{margin-bottom:0}
.stack-lg { display: flex; flex-direction: column; gap: 2.6rem; }
.divider { height: 1px; background: var(--line); border: 0; margin: 2rem 0; }
.lead { font-size: 1.16rem; color: var(--slate); }
.pill-note { display:inline-flex; align-items:center; gap:.5rem; background: var(--signal-tint); color: var(--signal-700); font-family: var(--font-mono); font-size:.72rem; letter-spacing:.06em; text-transform:uppercase; padding:.4rem .8rem; border-radius:999px; }

/* Reveal-on-scroll (progressive; visible by default if JS/motion off) */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
  .pulse-ring { display: none; }
}
