/* =====================================================================
   Hyperion Claims Group — Design System
   Theme: Dark "Guiding Light" (erdtree before the moon)
   Tokens: midnight navy base + luminous gold + moonlight silver-blue
   ===================================================================== */

:root {
  /* --- Surfaces / background --- */
  --bg:            #0A0713;   /* deep mystic midnight */
  --bg-2:          #120C22;   /* slightly raised */
  --surface:       rgba(255, 255, 255, 0.04);
  --surface-2:     rgba(255, 255, 255, 0.065);
  --surface-solid: #160F28;
  --border:        rgba(196, 173, 230, 0.13);
  --border-strong: rgba(196, 173, 230, 0.24);

  /* --- Text --- */
  --text:        #EFEAF8;
  --text-soft:   #CFC6E0;
  --text-muted:  #998EB4;

  /* --- Brand: mystic purple (the "guiding light") --- */
  --gold:        #9D7BF7;   /* primary mystic violet */
  --gold-bright: #BBA4F8;   /* light violet — emphasis text */
  --gold-deep:   #6D28D9;
  --gold-glow:   rgba(139, 92, 246, 0.32);

  /* --- Moonlight (lavender / periwinkle secondary) --- */
  --moon:        #DCC9FB;
  --moon-blue:   #A98EE8;
  --moon-glow:   rgba(169, 142, 232, 0.24);

  /* --- Semantic / status --- */
  --ok:        #34D399;
  --extreme:   #F0384B;
  --severe:    #FB7A3C;
  --moderate:  #EAB308;
  --minor:     #4FB6F0;
  --unknown:   #94A3B8;
  --danger:    #F0384B;

  /* --- Type --- */
  --font-display: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  /* --- Spacing scale (4 / 8) --- */
  --sp-1: 0.25rem; --sp-2: 0.5rem; --sp-3: 0.75rem; --sp-4: 1rem;
  --sp-5: 1.5rem;  --sp-6: 2rem;   --sp-8: 3rem;     --sp-10: 4rem;
  --sp-12: 6rem;   --sp-16: 8rem;

  /* --- Radii --- */
  --r-sm: 8px; --r-md: 14px; --r-lg: 22px; --r-pill: 999px;

  /* --- Elevation --- */
  --shadow-1: 0 1px 2px rgba(0,0,0,0.4);
  --shadow-2: 0 8px 24px rgba(0,0,0,0.35);
  --shadow-3: 0 24px 60px rgba(0,0,0,0.45);
  --shadow-gold: 0 10px 40px -10px var(--gold-glow);

  /* --- Layout --- */
  --container: 1180px;
  --nav-h: 72px;

  /* --- Motion --- */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --t-fast: 160ms;
  --t-mid: 280ms;
  --t-slow: 420ms;

  --z-nav: 100;
  --z-overlay: 200;
}

/* ===================== Reset / base ===================== */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  font-size: 16px;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  min-height: 100dvh;
  overflow-x: hidden;
}

/* Ambient backdrop: faint moon-glow + grain-free gradient */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(1100px 760px at 80% -10%, rgba(169,142,232,0.16), transparent 60%),
    radial-gradient(900px 600px at 10% 6%, rgba(139,92,246,0.10), transparent 55%),
    linear-gradient(180deg, #0A0713 0%, #0A0613 55%, #070510 100%);
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; background: none; border: none; }
ul { list-style: none; padding: 0; }

:focus-visible {
  outline: 2px solid var(--gold-bright);
  outline-offset: 3px;
  border-radius: 4px;
}

::selection { background: var(--gold); color: #1a1205; }

/* Skip link */
.skip-link {
  position: absolute;
  left: -999px; top: 0;
  background: var(--gold);
  color: #15100a;
  padding: 12px 18px;
  z-index: var(--z-overlay);
  border-radius: 0 0 var(--r-sm) 0;
  font-weight: 600;
}
.skip-link:focus { left: 0; }

/* ===================== Typography ===================== */
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 600; line-height: 1.12; letter-spacing: 0.2px; }
.eyebrow {
  font-family: var(--font-body);
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 0.74rem;
  font-weight: 600;
  color: var(--gold);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before {
  content: "";
  width: 26px; height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold));
}
.display { font-size: clamp(2.6rem, 6vw, 4.6rem); }
.h2 { font-size: clamp(1.9rem, 3.6vw, 2.9rem); }
.h3 { font-size: clamp(1.25rem, 2vw, 1.6rem); }
.lead { font-size: clamp(1.05rem, 1.4vw, 1.22rem); color: var(--text-soft); line-height: 1.7; max-width: 60ch; }
.muted { color: var(--text-muted); }
.gold-text { color: var(--gold-bright); }
strong { color: var(--text); font-weight: 600; }

/* ===================== Layout helpers ===================== */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: clamp(1.1rem, 4vw, 2.5rem); }
.section { padding-block: clamp(3.5rem, 8vw, var(--sp-12)); }
.section-head { max-width: 64ch; margin-bottom: var(--sp-8); }
.section-head .h2 { margin-top: var(--sp-3); }
.section-head p { margin-top: var(--sp-4); }
.center { text-align: center; margin-inline: auto; }
.center .eyebrow { justify-content: center; }
.center .eyebrow::after { content:""; width:26px; height:1px; background:linear-gradient(90deg,var(--gold),transparent); }

.grid { display: grid; gap: var(--sp-5); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 940px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

/* ===================== Buttons ===================== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.55rem;
  padding: 0.85rem 1.5rem;
  border-radius: var(--r-pill);
  font-weight: 600; font-size: 0.96rem;
  min-height: 48px;
  transition: transform var(--t-fast) var(--ease), box-shadow var(--t-mid) var(--ease), background var(--t-fast), border-color var(--t-fast);
  white-space: nowrap;
  border: 1px solid transparent;
}
.btn svg { width: 18px; height: 18px; }
.btn-primary {
  background: linear-gradient(180deg, #9D7BF7, #6D28D9);
  color: #fff;
  box-shadow: var(--shadow-gold);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 46px -12px var(--gold-glow); }
.btn-primary:active { transform: translateY(0); }
.btn-ghost {
  background: var(--surface);
  border-color: var(--border-strong);
  color: var(--text);
}
.btn-ghost:hover { background: var(--surface-2); border-color: var(--gold); color: var(--gold-bright); transform: translateY(-2px); }
.btn-lg { padding: 1rem 1.9rem; font-size: 1rem; min-height: 54px; }
.btn-block { width: 100%; }

/* ===================== Cards / surfaces ===================== */
.card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: clamp(1.4rem, 2.5vw, 2rem);
  transition: transform var(--t-mid) var(--ease), border-color var(--t-mid), background var(--t-mid), box-shadow var(--t-mid);
  overflow: hidden;
}
.card-hover:hover {
  transform: translateY(-4px);
  border-color: var(--border-strong);
  background: var(--surface-2);
  box-shadow: var(--shadow-2);
}
.card-glow::after {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(380px 180px at 50% -20%, var(--gold-glow), transparent 70%);
  opacity: 0; transition: opacity var(--t-mid);
  pointer-events: none;
}
.card-glow:hover::after { opacity: 0.6; }

.icon-badge {
  width: 50px; height: 50px;
  display: grid; place-items: center;
  border-radius: 14px;
  background: linear-gradient(160deg, rgba(139,92,246,0.18), rgba(139,92,246,0.04));
  border: 1px solid rgba(139,92,246,0.28);
  color: var(--gold-bright);
  margin-bottom: var(--sp-4);
}
.icon-badge svg { width: 24px; height: 24px; }
.icon-badge.moon {
  background: linear-gradient(160deg, rgba(169,142,232,0.16), rgba(169,142,232,0.03));
  border-color: rgba(169,142,232,0.28);
  color: var(--moon-blue);
}

/* Pills / chips */
.chip {
  display: inline-flex; align-items: center; gap: 0.4rem;
  padding: 0.4rem 0.8rem;
  border-radius: var(--r-pill);
  background: var(--surface);
  border: 1px solid var(--border);
  font-size: 0.82rem; font-weight: 500;
  color: var(--text-soft);
}
.chip .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--moon-blue); }
.chip.both { border-color: rgba(139,92,246,0.35); }
.chip.both .dot { background: var(--gold); }

/* ===================== Top navigation ===================== */
.nav {
  position: fixed; top: 0; left: 0; right: 0;
  height: var(--nav-h);
  z-index: var(--z-nav);
  display: flex; align-items: center;
  transition: background var(--t-mid), border-color var(--t-mid), backdrop-filter var(--t-mid);
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(7, 11, 22, 0.78);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom-color: var(--border);
}
.nav .container { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-4); }

.brand { display: inline-flex; align-items: center; gap: 0.7rem; }
.brand .mark { width: 38px; height: 38px; flex: none; }
.brand .name {
  font-family: var(--font-display);
  font-size: 1.28rem; font-weight: 600; letter-spacing: 0.3px;
  line-height: 1;
}
.brand .name b { color: var(--gold-bright); font-weight: 600; }
.brand .tag { display:block; font-family: var(--font-body); font-size:0.6rem; letter-spacing:0.28em; text-transform:uppercase; color: var(--text-muted); margin-top:3px; }

.nav-links { display: flex; align-items: center; gap: 0.2rem; }
.nav-links a {
  position: relative;
  padding: 0.55rem 0.9rem;
  font-size: 0.92rem; font-weight: 500;
  color: var(--text-soft);
  border-radius: var(--r-sm);
  transition: color var(--t-fast);
}
.nav-links a::after {
  content: ""; position: absolute; left: 0.9rem; right: 0.9rem; bottom: 0.32rem;
  height: 2px; border-radius: 2px;
  background: var(--gold);
  transform: scaleX(0); transform-origin: center;
  transition: transform var(--t-mid) var(--ease);
}
.nav-links a:hover { color: var(--text); }
.nav-links a[aria-current="page"] { color: var(--gold-bright); }
.nav-links a[aria-current="page"]::after { transform: scaleX(1); }
.nav-cta { margin-left: 0.4rem; }

.nav-toggle { display: none; width: 46px; height: 46px; border-radius: var(--r-sm); border: 1px solid var(--border); align-items:center; justify-content:center; }
.nav-toggle svg { width: 24px; height: 24px; color: var(--text); }

@media (max-width: 920px) {
  .nav-links, .nav-cta { display: none; }
  .nav-toggle { display: inline-flex; }
}

/* Mobile drawer */
.drawer {
  position: fixed; inset: 0; z-index: var(--z-overlay);
  background: rgba(7,5,16,0.6);
  backdrop-filter: blur(6px);
  opacity: 0; visibility: hidden;
  transition: opacity var(--t-mid), visibility var(--t-mid);
}
.drawer.open { opacity: 1; visibility: visible; }
.drawer-panel {
  position: absolute; top: 0; right: 0; height: 100%;
  width: min(86vw, 360px);
  background: var(--surface-solid);
  border-left: 1px solid var(--border);
  padding: calc(var(--nav-h) + 1rem) 1.6rem 2rem;
  display: flex; flex-direction: column; gap: 0.4rem;
  transform: translateX(100%);
  transition: transform var(--t-slow) var(--ease);
  box-shadow: var(--shadow-3);
}
.drawer.open .drawer-panel { transform: translateX(0); }
.drawer-panel a {
  padding: 0.95rem 0.6rem;
  font-size: 1.05rem; font-weight: 500;
  color: var(--text-soft);
  border-bottom: 1px solid var(--border);
  display:flex; align-items:center; justify-content:space-between;
}
.drawer-panel a[aria-current="page"] { color: var(--gold-bright); }
.drawer-panel .btn { margin-top: 1.2rem; }
.drawer-close { position: absolute; top: 1rem; right: 1.2rem; width: 44px; height: 44px; border-radius: var(--r-sm); border:1px solid var(--border); display:grid; place-items:center; }
.drawer-close svg { width: 22px; height: 22px; }

/* ===================== Views / routing ===================== */
main { padding-top: var(--nav-h); }
.view { display: none; }
.view.active { display: block; animation: viewIn var(--t-slow) var(--ease) both; }
@keyframes viewIn {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}
@media (prefers-reduced-motion: reduce) {
  .view.active { animation: none; }
}

/* ===================== Hero ===================== */
.hero { position: relative; min-height: calc(100dvh - var(--nav-h)); display: flex; align-items: center; overflow: hidden; padding-block: var(--sp-10); }
.hero-stage {
  position: absolute; inset: 0; z-index: 0;
  pointer-events: none;
  display: grid; place-items: start end;
}
.hero-scene { position: relative; width: min(82vw, 660px); aspect-ratio: 1 / 1; transform: translate(16%, 4%); will-change: transform; }
.moon-disc {
  position: absolute; top: 4%; left: 50%; transform: translateX(-50%);
  width: 54%; aspect-ratio: 1; border-radius: 50%;
  background:
    radial-gradient(circle at 56% 40%, #EBDAFB 0%, #CFA9F4 28%, #B484EE 52%, #9560E4 76%, #6E3CC9 100%);
  box-shadow: 0 0 190px 60px rgba(149,96,228,0.50), 0 0 110px 20px rgba(180,132,238,0.50), inset -12px -16px 64px rgba(55,26,105,0.45);
  opacity: 1;
}
.moon-disc::after {
  content:""; position:absolute; inset:0; border-radius:50%;
  background: radial-gradient(circle at 64% 70%, rgba(70,48,10,0.35), transparent 45%),
              radial-gradient(circle at 30% 60%, rgba(90,64,16,0.25), transparent 40%);
  mix-blend-mode: multiply;
}
.tree-svg { position: absolute; bottom: 0%; left: 50%; transform: translateX(-50%); width: 80%; height: auto; opacity: 1; filter: drop-shadow(0 0 9px rgba(214,188,250,0.6)) drop-shadow(0 0 30px rgba(139,92,246,0.5)); }
.hero-vignette { position:absolute; inset:0; z-index:1; pointer-events:none;
  background:
    linear-gradient(95deg, var(--bg) 0%, rgba(10,7,19,0.94) 20%, rgba(10,7,19,0.5) 40%, rgba(10,7,19,0.12) 54%, transparent 64%),
    linear-gradient(0deg, var(--bg) 0%, rgba(10,7,19,0.25) 18%, transparent 40%); }
.hero .container { position: relative; z-index: 2; }
.hero-inner { max-width: 600px; }
@media (max-width: 700px) {
  .hero-scene { transform: translate(14%, -4%); width: min(110vw, 520px); opacity: 0.85; }
  .hero-vignette { background:
    linear-gradient(180deg, rgba(10,7,19,0.5) 0%, rgba(10,7,19,0.82) 38%, var(--bg) 72%),
    radial-gradient(120% 70% at 70% 20%, transparent 40%, rgba(7,5,16,0.55) 90%); }
}
.hero-inner .display { margin-top: var(--sp-4); }
.hero-inner .display .gold-text { display: inline; }
.hero-inner .lead { margin-top: var(--sp-5); }
.hero-cta { display: flex; flex-wrap: wrap; gap: var(--sp-3); margin-top: var(--sp-6); }
.hero-trust { display: flex; flex-wrap: wrap; gap: var(--sp-5); margin-top: var(--sp-8); padding-top: var(--sp-5); border-top: 1px solid var(--border); }
.hero-trust .ht { }
.hero-trust .ht b { font-family: var(--font-display); font-size: 1.9rem; color: var(--gold-bright); display:block; line-height:1; }
.hero-trust .ht span { font-size: 0.8rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.12em; }

/* drifting light motes */
.motes { position: absolute; inset: 0; z-index: 1; overflow: hidden; pointer-events: none; }
.mote { position: absolute; bottom: -10px; width: 4px; height: 4px; border-radius: 50%; background: var(--gold-bright); opacity: 0; box-shadow: 0 0 8px 2px var(--gold-glow); animation: rise linear infinite; }
@keyframes rise {
  0% { transform: translateY(0) translateX(0) scale(0.6); opacity: 0; }
  12% { opacity: 0.9; }
  85% { opacity: 0.7; }
  100% { transform: translateY(-90vh) translateX(var(--drift, 20px)) scale(1.1); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .motes { display: none; }
  .moon-disc { box-shadow: 0 0 60px 10px var(--gold-glow); }
}

/* ===================== Reveal on scroll ===================== */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity var(--t-slow) var(--ease-out), transform var(--t-slow) var(--ease-out); }
.reveal.in { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: 70ms; }
.reveal[data-delay="2"] { transition-delay: 140ms; }
.reveal[data-delay="3"] { transition-delay: 210ms; }
.reveal[data-delay="4"] { transition-delay: 280ms; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ===================== Value pillars ===================== */
.pillar h3 { margin-bottom: var(--sp-2); font-family: var(--font-body); font-size: 1.12rem; font-weight: 600; }
.pillar .step-no { font-family: var(--font-display); font-size: 0.95rem; color: var(--gold); opacity: 0.8; }
.pillar p { color: var(--text-muted); font-size: 0.95rem; }

/* Service split cards */
.svc-card { display: flex; flex-direction: column; min-height: 100%; }
.svc-card .h3 { margin: var(--sp-2) 0 var(--sp-3); font-family: var(--font-display); }
.svc-card p { color: var(--text-soft); flex: 1; }
.svc-card .svc-link { margin-top: var(--sp-5); display:inline-flex; align-items:center; gap:0.5rem; color: var(--gold-bright); font-weight:600; font-size:0.95rem; }
.svc-card .svc-link svg { width:18px;height:18px; transition: transform var(--t-fast); }
.svc-card:hover .svc-link svg { transform: translateX(4px); }

/* Process timeline */
.timeline { position: relative; display: grid; gap: var(--sp-5); }
.timeline-row { display: grid; grid-template-columns: 56px 1fr; gap: var(--sp-4); align-items: start; }
.timeline-no { width: 56px; height: 56px; border-radius: 50%; display:grid; place-items:center; font-family: var(--font-display); font-size: 1.4rem; color: var(--gold-bright); border: 1px solid rgba(139,92,246,0.3); background: rgba(139,92,246,0.05); }
.timeline-row h3 { font-family: var(--font-body); font-size: 1.08rem; font-weight: 600; margin-bottom: 4px; }
.timeline-row p { color: var(--text-muted); font-size: 0.95rem; }

/* ===================== Coverage ===================== */
.coverage-legend { display:flex; gap: var(--sp-4); flex-wrap: wrap; margin-bottom: var(--sp-5); }
.legend-item { display:inline-flex; align-items:center; gap:0.5rem; font-size:0.86rem; color: var(--text-soft); }
.legend-swatch { width:12px;height:12px;border-radius:50%; }
.legend-swatch.gold { background: var(--gold); }
.legend-swatch.moon { background: var(--moon-blue); }
.state-grid { display:flex; flex-wrap: wrap; gap: 0.6rem; }
.state-pill {
  display:inline-flex; align-items:center; gap:0.5rem;
  padding: 0.55rem 0.95rem; border-radius: var(--r-sm);
  background: var(--surface); border: 1px solid var(--border);
  font-weight: 600; font-size: 0.92rem; letter-spacing: 0.04em;
  transition: transform var(--t-fast), border-color var(--t-fast), background var(--t-fast);
}
.state-pill:hover { transform: translateY(-2px); }
.state-pill .dot { width:8px;height:8px;border-radius:50%; }
.state-pill.both { border-color: rgba(139,92,246,0.35); background: rgba(139,92,246,0.06); }
.state-pill.both .dot { background: var(--gold); }
.state-pill.appraisal .dot { background: var(--moon-blue); }
.state-pill .full { color: var(--text-muted); font-weight: 400; font-size: 0.8rem; }

/* ===================== CTA band ===================== */
.cta-band { position: relative; border-radius: var(--r-lg); overflow: hidden; padding: clamp(2.4rem, 5vw, var(--sp-10)); text-align:center; border: 1px solid var(--border-strong); background: linear-gradient(160deg, rgba(139,92,246,0.10), rgba(169,142,232,0.05)); }
.cta-band::before { content:""; position:absolute; inset:0; background: radial-gradient(600px 240px at 50% -30%, var(--gold-glow), transparent 70%); pointer-events:none; }
.cta-band > * { position: relative; }
.cta-band .h2 { margin-bottom: var(--sp-4); }
.cta-band .lead { margin: 0 auto var(--sp-6); }
.cta-band .hero-cta { justify-content: center; }

/* ===================== Article / info pages ===================== */
.page-hero { padding-block: clamp(3rem, 7vw, var(--sp-10)) var(--sp-6); position: relative; }
.page-hero .display { font-size: clamp(2.2rem, 5vw, 3.6rem); margin-top: var(--sp-3); }
.page-hero .lead { margin-top: var(--sp-4); }

.prose p { color: var(--text-soft); margin-bottom: var(--sp-4); max-width: 68ch; }
.prose h3 { margin: var(--sp-6) 0 var(--sp-3); font-family: var(--font-display); font-size: 1.5rem; }
.feature-list { display: grid; gap: var(--sp-3); margin-top: var(--sp-4); }
.feature-list li { display: grid; grid-template-columns: 26px 1fr; gap: 0.7rem; align-items: start; color: var(--text-soft); }
.feature-list svg { width: 22px; height: 22px; color: var(--gold); margin-top: 2px; flex:none; }

/* Sticky aside */
.split { display: grid; grid-template-columns: 1.6fr 1fr; gap: var(--sp-8); align-items: start; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } }
.aside-card { position: sticky; top: calc(var(--nav-h) + 1.5rem); }
.aside-card h3 { font-family: var(--font-body); font-size: 1.05rem; margin-bottom: var(--sp-3); }
.aside-stat { display:flex; align-items:baseline; gap:0.6rem; padding: 0.7rem 0; border-bottom: 1px solid var(--border); }
.aside-stat:last-child { border-bottom: none; }
.aside-stat b { font-family: var(--font-display); font-size: 1.5rem; color: var(--gold-bright); }
.aside-stat span { color: var(--text-muted); font-size: 0.9rem; }

/* FAQ */
.faq details {
  border: 1px solid var(--border); border-radius: var(--r-md);
  padding: 0; margin-bottom: var(--sp-3); background: var(--surface);
  overflow: hidden; transition: border-color var(--t-fast);
}
.faq details[open] { border-color: var(--border-strong); }
.faq summary {
  list-style: none; cursor: pointer;
  padding: 1.1rem 1.3rem; font-weight: 600; color: var(--text);
  display:flex; align-items:center; justify-content:space-between; gap:1rem;
  min-height: 48px;
}
.faq summary::-webkit-details-marker { display:none; }
.faq summary .ico { width:22px; height:22px; flex:none; color: var(--gold); transition: transform var(--t-mid) var(--ease); }
.faq details[open] summary .ico { transform: rotate(45deg); }
.faq .faq-body { padding: 0 1.3rem 1.2rem; color: var(--text-muted); }

/* ===================== Storm tab ===================== */
.storm-toolbar { display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap: var(--sp-4); margin-bottom: var(--sp-5); }
.filter-chips { display:flex; flex-wrap:wrap; gap: 0.5rem; }
.filter-chip {
  padding: 0.5rem 1rem; border-radius: var(--r-pill);
  border: 1px solid var(--border); background: var(--surface);
  color: var(--text-soft); font-weight: 600; font-size: 0.86rem;
  min-height: 40px;
  transition: all var(--t-fast);
}
.filter-chip[aria-pressed="true"] { background: var(--gold); border-color: var(--gold); color: #160F03; }
.filter-chip:hover:not([aria-pressed="true"]) { border-color: var(--gold); color: var(--gold-bright); }
.filter-chip .n { opacity: 0.7; font-weight: 500; margin-left: 4px; }

.storm-meta { display:flex; align-items:center; gap: var(--sp-4); flex-wrap: wrap; }
.refresh-btn { display:inline-flex; align-items:center; gap:0.5rem; padding:0.55rem 1rem; border-radius:var(--r-pill); border:1px solid var(--border); background:var(--surface); font-size:0.86rem; font-weight:600; min-height:40px; }
.refresh-btn:hover { border-color: var(--gold); color: var(--gold-bright); }
.refresh-btn svg { width:16px; height:16px; transition: transform var(--t-mid); }
.refresh-btn.loading svg { animation: spin 0.9s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.updated-at { font-size: 0.82rem; color: var(--text-muted); }
.updated-at .live { display:inline-flex; align-items:center; gap:6px; color: var(--ok); font-weight:600; }
.updated-at .live::before { content:""; width:8px;height:8px;border-radius:50%; background: var(--ok); box-shadow:0 0 0 0 rgba(52,211,153,0.6); animation: pulse 2s infinite; }
@keyframes pulse { 0%{box-shadow:0 0 0 0 rgba(52,211,153,0.5);} 70%{box-shadow:0 0 0 8px rgba(52,211,153,0);} 100%{box-shadow:0 0 0 0 rgba(52,211,153,0);} }
@media (prefers-reduced-motion: reduce){ .updated-at .live::before{ animation:none; } .refresh-btn.loading svg{ animation:none; } }

.alert-grid { display: grid; gap: var(--sp-4); grid-template-columns: repeat(2, 1fr); }
@media (max-width: 820px){ .alert-grid { grid-template-columns: 1fr; } }

.alert-card { border-left: 4px solid var(--unknown); }
.alert-card[data-sev="Extreme"] { border-left-color: var(--extreme); }
.alert-card[data-sev="Severe"]  { border-left-color: var(--severe); }
.alert-card[data-sev="Moderate"]{ border-left-color: var(--moderate); }
.alert-card[data-sev="Minor"]   { border-left-color: var(--minor); }
.alert-head { display:flex; align-items:flex-start; justify-content:space-between; gap: var(--sp-3); margin-bottom: var(--sp-2); }
.alert-event { font-family: var(--font-body); font-weight: 700; font-size: 1.08rem; line-height: 1.3; }
.sev-badge { flex:none; font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; padding: 0.3rem 0.6rem; border-radius: var(--r-pill); }
.sev-badge[data-sev="Extreme"] { background: rgba(240,56,75,0.16); color: #FF9aa6; border:1px solid rgba(240,56,75,0.4); }
.sev-badge[data-sev="Severe"]  { background: rgba(251,122,60,0.16); color: #FFC09A; border:1px solid rgba(251,122,60,0.4); }
.sev-badge[data-sev="Moderate"]{ background: rgba(234,179,8,0.16); color: #F4D77a; border:1px solid rgba(234,179,8,0.4); }
.sev-badge[data-sev="Minor"]   { background: rgba(79,182,240,0.16); color: #AEE0FF; border:1px solid rgba(79,182,240,0.4); }
.sev-badge[data-sev="Unknown"] { background: rgba(148,163,184,0.16); color: #C7D2DE; border:1px solid rgba(148,163,184,0.35); }
.alert-states { display:flex; gap:0.35rem; flex-wrap:wrap; margin: var(--sp-2) 0; }
.alert-states .st { font-size:0.7rem; font-weight:700; letter-spacing:0.06em; padding:0.18rem 0.45rem; border-radius:5px; background: var(--surface-2); border:1px solid var(--border); color: var(--moon); }
.alert-area { font-size: 0.9rem; color: var(--text-soft); margin-bottom: var(--sp-2); }
.alert-time { font-size: 0.82rem; color: var(--text-muted); display:flex; gap:1rem; flex-wrap:wrap; margin-top: var(--sp-2); padding-top: var(--sp-2); border-top: 1px solid var(--border); }
.alert-time b { color: var(--text-soft); font-weight: 600; }
.alert-card details summary { cursor:pointer; color: var(--gold-bright); font-size: 0.85rem; font-weight:600; margin-top: var(--sp-2); list-style:none; }
.alert-card details summary::-webkit-details-marker { display:none; }
.alert-card details p { font-size: 0.86rem; color: var(--text-muted); margin-top: var(--sp-2); white-space: pre-line; max-height: 240px; overflow:auto; }

/* storm state messages */
.storm-state { text-align:center; padding: var(--sp-10) var(--sp-4); border:1px dashed var(--border); border-radius: var(--r-lg); }
.storm-state .ico { width:64px; height:64px; margin:0 auto var(--sp-4); display:grid; place-items:center; border-radius:50%; background: var(--surface); border:1px solid var(--border); }
.storm-state .ico svg { width:30px; height:30px; }
.storm-state.ok .ico { color: var(--ok); border-color: rgba(52,211,153,0.4); }
.storm-state.error .ico { color: var(--severe); border-color: rgba(251,122,60,0.4); }
.storm-state h3 { font-family: var(--font-body); font-size: 1.2rem; margin-bottom: var(--sp-2); }
.storm-state p { color: var(--text-muted); max-width: 46ch; margin: 0 auto var(--sp-4); }

/* skeleton */
.skeleton-card { height: 200px; border-radius: var(--r-lg); border:1px solid var(--border);
  background: linear-gradient(100deg, var(--surface) 30%, var(--surface-2) 50%, var(--surface) 70%);
  background-size: 200% 100%; animation: shimmer 1.4s infinite; }
@keyframes shimmer { to { background-position: -200% 0; } }
@media (prefers-reduced-motion: reduce){ .skeleton-card{ animation:none; } }

/* ===================== Schedule / Calendly ===================== */
.calendly-inline-widget { min-width: 320px; height: 720px; border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--border); background: var(--surface); }
.calendly-fallback { padding: var(--sp-8); text-align:center; border:1px dashed var(--border-strong); border-radius: var(--r-lg); background: var(--surface); }
.calendly-fallback code { background: var(--bg-2); padding: 3px 8px; border-radius: 6px; color: var(--gold-bright); font-size:0.85rem; }
.contact-list { display:grid; gap: var(--sp-3); }
.contact-list a, .contact-list div.ci { display:flex; align-items:center; gap:0.8rem; padding:0.9rem 1.1rem; border:1px solid var(--border); border-radius:var(--r-md); background:var(--surface); transition: border-color var(--t-fast), transform var(--t-fast); }
.contact-list a:hover { border-color: var(--gold); transform: translateY(-2px); }
.contact-list .ci-ico { width:40px;height:40px;border-radius:10px; display:grid; place-items:center; background: rgba(139,92,246,0.1); border:1px solid rgba(139,92,246,0.25); color: var(--gold-bright); flex:none; }
.contact-list .ci-ico svg { width:20px;height:20px; }
.contact-list .ci-label { font-size:0.78rem; color: var(--text-muted); text-transform:uppercase; letter-spacing:0.1em; }
.contact-list .ci-val { font-weight:600; color: var(--text); }

/* ===================== Footer ===================== */
.footer { border-top: 1px solid var(--border); margin-top: var(--sp-12); padding-block: var(--sp-10) var(--sp-6); background: rgba(7,5,16,0.5); }
.footer-grid { display:grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: var(--sp-6); }
@media (max-width: 880px){ .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px){ .footer-grid { grid-template-columns: 1fr; } }
.footer h4 { font-family: var(--font-body); font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.14em; color: var(--text-muted); margin-bottom: var(--sp-4); }
.footer-links li { margin-bottom: 0.6rem; }
.footer-links a { color: var(--text-soft); font-size: 0.92rem; transition: color var(--t-fast); }
.footer-links a:hover { color: var(--gold-bright); }
.footer-brand p { color: var(--text-muted); font-size: 0.9rem; max-width: 38ch; margin-top: var(--sp-3); }
.footer-bottom { margin-top: var(--sp-8); padding-top: var(--sp-5); border-top: 1px solid var(--border); display:flex; flex-wrap:wrap; justify-content:space-between; gap: var(--sp-3); align-items:center; }
.footer-bottom p { color: var(--text-muted); font-size: 0.82rem; }
.footer-disclaimer { font-size: 0.78rem; color: var(--text-muted); line-height: 1.6; margin-top: var(--sp-4); max-width: 70ch; opacity: 0.8; }
.placeholder { color: var(--gold-bright); border-bottom: 1px dotted var(--gold-deep); }

/* ===================== Centered hero with real logo ===================== */
.hero-centered { text-align: center; }
.hero-logo {
  width: clamp(132px, 20vw, 192px);
  height: auto;
  margin: 0 auto var(--sp-5);
  filter: drop-shadow(0 16px 44px rgba(139, 92, 246, 0.45));
  animation: logoFloat 7s ease-in-out infinite;
}
@keyframes logoFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }
.hero-inner.center { max-width: 800px; margin-inline: auto; }
.hero-inner.center .lead { margin-inline: auto; }
.hero-inner.center .hero-cta { justify-content: center; }
.hero-inner.center .hero-trust { justify-content: center; }
@media (prefers-reduced-motion: reduce) { .hero-logo { animation: none; } }

/* Nav logo — icon cropped from the full logo (hides the wordmark) */
.nav-logo { width: 44px; height: 44px; flex: none; overflow: hidden; display: block; }
.nav-logo img { width: 44px; height: auto; display: block; transform: scale(1.6) translateY(-7%); transform-origin: top center; }

/* ===================== Hero values caption ===================== */
.hero-values {
  margin-top: var(--sp-4);
  font-size: 0.74rem; font-weight: 600;
  letter-spacing: 0.26em; text-transform: uppercase;
  color: var(--moon);
}
.hero-values span { color: var(--gold); margin: 0 0.3em; }

/* ===================== Featured logo (real artwork, when provided) ===================== */
.featured-logo { display: none; height: auto; }
.featured-logo.loaded { display: block; }
.about .featured-logo, #view-about .featured-logo {
  max-width: 200px; margin: 0 0 var(--sp-5);
}
.footer-logo.loaded { max-width: 180px; margin-bottom: var(--sp-4); }

/* ===================== Intake form ===================== */
.intake-form { padding: clamp(1.5rem, 3vw, 2.4rem); }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.field-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--sp-4); }
@media (max-width: 640px) { .field-grid { grid-template-columns: 1fr; } }
.field { display: flex; flex-direction: column; gap: 0.45rem; margin-top: var(--sp-4); }
.field-grid .field { margin-top: 0; }
.field label { font-size: 0.86rem; font-weight: 600; color: var(--text-soft); }
.field .req { color: var(--gold-bright); }
.field .muted { font-weight: 400; }
.intake-form input[type="text"],
.intake-form input[type="email"],
.intake-form input[type="tel"],
.intake-form select,
.intake-form textarea {
  width: 100%;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  color: var(--text);
  font: inherit;
  font-size: 0.96rem;
  padding: 0.8rem 0.95rem;
  min-height: 48px;
  transition: border-color var(--t-fast), box-shadow var(--t-fast), background var(--t-fast);
}
.intake-form textarea { min-height: 120px; resize: vertical; line-height: 1.6; }
.intake-form select { appearance: none; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23998EB4' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 0.9rem center; padding-right: 2.4rem;
}
.intake-form input::placeholder, .intake-form textarea::placeholder { color: var(--text-muted); }
.intake-form input:focus, .intake-form select:focus, .intake-form textarea:focus {
  outline: none; border-color: var(--gold);
  box-shadow: 0 0 0 3px var(--gold-glow);
  background: var(--surface-solid);
}
.intake-form input[type="file"] {
  width: 100%; font: inherit; font-size: 0.9rem; color: var(--text-soft);
  background: var(--bg-2); border: 1px dashed var(--border-strong);
  border-radius: var(--r-md); padding: 0.9rem; cursor: pointer;
}
.intake-form input[type="file"]::file-selector-button {
  font: inherit; font-weight: 600; font-size: 0.86rem;
  margin-right: 0.9rem; padding: 0.55rem 1rem;
  border: 1px solid var(--border-strong); border-radius: var(--r-pill);
  background: var(--surface-2); color: var(--gold-bright); cursor: pointer;
  transition: border-color var(--t-fast), color var(--t-fast);
}
.intake-form input[type="file"]:hover::file-selector-button { border-color: var(--gold); }
.intake-form .hint { font-size: 0.82rem; color: var(--text-muted); margin-top: 0.2rem; }
.intake-form button[type="submit"] { margin-top: var(--sp-5); }
.form-status { margin-top: var(--sp-3); font-size: 0.92rem; font-weight: 600; min-height: 1.2em; }
.form-status.ok { color: var(--ok); }
.form-status.err { color: var(--severe); }
.intake-form [data-netlify-recaptcha] { margin-top: var(--sp-5); }

/* utility */
.mt-6 { margin-top: var(--sp-6); }
.mt-8 { margin-top: var(--sp-8); }
.hidden { display: none !important; }
