/* Black Shore Insurance Group — site styles
   Design system: Website\DESIGN.md (Panxo adaptation, logo-derived palette) */

:root {
  /* Logo-derived inks (sampled from assets/logo.png) */
  --ink: #0e171e;
  --navy: #232a2f;
  --slate-deep: #394045;
  --steel: #515b61;
  --slate-text: #5f6b72;
  --slate: #5f6b72; /* alias — referenced by inline styles in page markup */
  --mist-steel: #8d9aa0;

  /* Single accent — muted brass */
  --brass: #a3873e;
  --brass-deep: #8c7333;

  /* Warm neutral surfaces (Panxo) */
  --page: #fafafa;
  --parchment: #f7f3eb;
  --card: #ffffff;
  --ash: #f1f1f1;
  --fossil: #bab9b8;

  --shadow-ring: rgba(95, 99, 106, 0.08) 0px 0px 0px 1px, rgba(43, 43, 48, 0.1) 0px 1px 4px 0px;
  --dark-radial: radial-gradient(81% 66% at 1.8% 1.1%, #394045 0%, #0e171e 100%);

  --font-display: 'InterDisplay', 'Inter', ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-body: 'Inter', ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --radius-card: 10px;
  --radius-panel: 16px;
  --radius-pill-fill: 48px;
  --radius-pill-ghost: 999px;
  --max: 1200px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-feature-settings: "cv03", "cv04", "cv09", "cv11";
  color: var(--ink);
  background: var(--page);
  line-height: 1.6;
  font-size: 15px;
}

h1, h2, h3 { font-family: var(--font-display); color: var(--ink); }

h1 {
  font-size: 80px;
  font-weight: 700;
  line-height: 0.95;
  letter-spacing: -0.045em;
  margin: 0 0 20px;
}

h2 {
  font-size: 40px;
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.03em;
  margin: 0 0 14px;
}

h3 {
  font-size: 17px;
  font-family: var(--font-body);
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.3;
  margin: 0 0 8px;
}

p { margin: 0 0 16px; color: var(--slate-text); }

a { color: var(--ink); text-decoration-color: var(--fossil); }
a:hover { color: var(--brass-deep); }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }

.eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 12px;
  font-weight: 600;
  color: var(--brass);
  margin-bottom: 12px;
}

/* ---------- header ---------- */

.site-header {
  background: var(--card);
  border-bottom: 1px solid var(--ash);
  position: sticky;
  top: 0;
  z-index: 50;
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 60px;
  padding-top: 8px;
  padding-bottom: 8px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand img { height: 38px; width: 38px; border-radius: 8px; }

.brand-name {
  color: var(--ink);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: -0.01em;
  line-height: 1.2;
}

.brand-name span {
  display: block;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 9px;
  color: var(--brass);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.nav { display: flex; gap: 4px; align-items: center; flex-wrap: wrap; }

.nav a {
  color: var(--steel);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  padding: 7px 12px;
  border-radius: var(--radius-pill-ghost);
}

.nav a:hover { color: var(--ink); background: var(--page); }

.nav a.active {
  color: var(--ink);
  box-shadow: inset 0 -2px 0 var(--brass);
  border-radius: 0;
}

/* Filled nav pill — the primary nav CTA */
.nav a.nav-pill {
  background: var(--ink);
  color: #ffffff;
  border-radius: var(--radius-pill-fill);
  padding: 7px 16px;
  box-shadow: none;
}

.nav a.nav-pill:hover { background: var(--navy); color: #ffffff; }

/* ---------- hero ---------- */

.hero {
  background: var(--parchment);
  padding: 112px 0 100px;
}

.hero h1 { max-width: 860px; }

.hero p.lede {
  font-size: 17px;
  line-height: 1.6;
  max-width: 600px;
  color: var(--slate-text);
}

.hero .actions { margin-top: 32px; display: flex; gap: 12px; flex-wrap: wrap; }

.hero-inner { display: flex; align-items: center; gap: 64px; }
.hero-inner > div { flex: 1 1 auto; }
.hero-logo { flex: 0 0 220px; }

.hero-logo img {
  width: 220px;
  border-radius: 8px;
  box-shadow: var(--shadow-ring);
}

.page-hero {
  background: var(--parchment);
  padding: 92px 0 76px;
}

.page-hero h1 { font-size: 64px; letter-spacing: -0.04em; line-height: 0.98; }

.page-hero p {
  max-width: 640px;
  color: var(--slate-text);
  font-size: 16px;
  margin-bottom: 0;
}

/* ---------- buttons ---------- */

.btn {
  display: inline-block;
  font-family: var(--font-body);
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  padding: 11px 22px;
  border: 1px solid transparent;
}

/* Filled primary pill — ink, 48px radius */
.btn-gold,
.btn-navy {
  background: var(--ink);
  color: #ffffff;
  border-radius: var(--radius-pill-fill);
}

.btn-gold:hover,
.btn-navy:hover { background: var(--navy); color: #ffffff; }

/* Ghost pill — 999px radius, recessive */
.btn-ghost {
  background: transparent;
  color: rgba(14, 23, 30, 0.72);
  border-color: rgba(0, 0, 0, 0.12);
  border-radius: var(--radius-pill-ghost);
}

.btn-ghost:hover { color: var(--ink); border-color: var(--fossil); }

/* Buttons on dark panels invert */
.cta-band .btn-gold {
  background: #ffffff;
  color: var(--ink);
}

.cta-band .btn-gold:hover { background: var(--parchment); color: var(--ink); }

/* ---------- sections ---------- */

.section { padding: 88px 0; }
.section.alt { background: var(--parchment); }
.section-head { max-width: 680px; margin-bottom: 40px; }
.section-head p { font-size: 15px; }

.grid { display: grid; gap: 16px; }
.grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.grid.cols-2 { grid-template-columns: repeat(2, 1fr); }

.card {
  background: var(--card);
  border: none;
  border-radius: var(--radius-card);
  padding: 24px;
  box-shadow: var(--shadow-ring);
}

.card p { font-size: 14px; line-height: 1.6; }
.card p:last-child { margin-bottom: 0; }

.card.dark {
  background: var(--dark-radial);
  color: rgba(255, 255, 255, 0.7);
  box-shadow: none;
}

.card.dark h3 { color: #ffffff; }

/* ---------- stats band ---------- */

.stats-grid {
  display: grid;
  grid-template-columns: 1.25fr 1fr 1fr 1fr;
  gap: 16px;
}

.stat-card {
  border-radius: var(--radius-card);
  padding: 24px;
}

.stat-card.dark {
  background: var(--dark-radial);
  color: rgba(255, 255, 255, 0.7);
}

.stat-card.dark h3 {
  color: #ffffff;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 22px;
  letter-spacing: -0.01em;
  line-height: 1.2;
}

.stat-card.dark p { color: rgba(255, 255, 255, 0.7); font-size: 14px; margin-bottom: 0; }

.stat-cell {
  background: var(--card);
  border-radius: var(--radius-card);
  padding: 24px;
  box-shadow: var(--shadow-ring);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 24px;
}

.stat-label { font-size: 14px; color: var(--slate-text); }

.stat-num {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 38px;
  letter-spacing: -0.03em;
  line-height: 1;
  color: var(--ink);
}

/* ---------- steps (For Agents) ---------- */

.steps { display: grid; gap: 12px; }

.step {
  display: flex;
  gap: 20px;
  background: var(--card);
  border: none;
  border-radius: var(--radius-card);
  padding: 24px;
  box-shadow: var(--shadow-ring);
}

.step-num {
  flex: 0 0 40px;
  height: 40px;
  border-radius: 999px;
  background: var(--ink);
  color: #ffffff;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.step h3 { margin-bottom: 6px; }
.step p { font-size: 14px; }
.step p:last-child { margin-bottom: 0; }

/* ---------- coverage lines ---------- */

.line-group { margin-bottom: 64px; }
.line-group:last-child { margin-bottom: 0; }

.line-group h2 {
  font-size: 28px;
  letter-spacing: -0.01em;
  border-bottom: 1px solid var(--ash);
  padding-bottom: 12px;
  margin-bottom: 20px;
}

.line-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }

.line-item {
  background: var(--card);
  border: none;
  border-radius: var(--radius-card);
  padding: 20px 24px;
  box-shadow: var(--shadow-ring);
}

.line-item h3 { font-size: 15px; }

.line-item h3::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--brass);
  margin-right: 8px;
  vertical-align: 2px;
}

.line-item p { margin-bottom: 0; font-size: 13px; line-height: 1.55; color: var(--slate-text); }

/* ---------- lists / checks ---------- */

ul.checks { list-style: none; padding: 0; margin: 0 0 16px; }
ul.checks li { padding-left: 26px; position: relative; margin-bottom: 8px; color: var(--slate-text); font-size: 14px; }
ul.checks li strong { color: var(--ink); }
ul.checks li::before {
  content: "\2713";
  position: absolute;
  left: 0;
  color: var(--brass);
  font-weight: 700;
}

ul.crosses { list-style: none; padding: 0; margin: 0 0 16px; }
ul.crosses li { padding-left: 26px; position: relative; margin-bottom: 8px; color: var(--slate-text); font-size: 14px; }
ul.crosses li::before {
  content: "\2715";
  position: absolute;
  left: 0;
  color: var(--mist-steel);
  font-weight: 700;
}

/* ---------- callout / CTA band ---------- */

.cta-band { padding: 0 0 96px; background: var(--page); }

.cta-band .wrap {
  max-width: var(--max);
  background: var(--dark-radial);
  border-radius: var(--radius-panel);
  padding: 64px 48px;
  text-align: center;
}

.cta-band h2 { color: #ffffff; }
.cta-band p { max-width: 520px; margin: 0 auto 28px; color: rgba(255, 255, 255, 0.7); font-size: 15px; }

.note {
  background: var(--parchment);
  border: none;
  border-radius: var(--radius-card);
  padding: 20px 24px;
  font-size: 14px;
  color: var(--slate-text);
}

.note strong { color: var(--ink); }
.note a { color: var(--brass-deep); }

.section.alt .note { background: var(--card); box-shadow: var(--shadow-ring); }

/* ---------- contact ---------- */

.contact-block { font-size: 15px; }
.contact-block strong { color: var(--ink); }
.contact-block a { color: var(--ink); font-weight: 600; }
.contact-block a:hover { color: var(--brass-deep); }

/* ---------- footer ---------- */

.site-footer {
  background: var(--ink);
  color: var(--mist-steel);
  padding: 56px 0 40px;
  font-size: 13px;
}

.site-footer .cols {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 32px;
  flex-wrap: wrap;
  margin-bottom: 32px;
}

.foot-brand { display: flex; gap: 14px; align-items: flex-start; }
.foot-brand img { height: 44px; width: 44px; border-radius: 8px; }

.site-footer a { color: #c7d0d6; text-decoration: none; }
.site-footer a:hover { color: var(--brass); }

.site-footer .foot-nav { display: flex; gap: 20px; flex-wrap: wrap; font-weight: 500; font-size: 14px; }

.disclosure {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 24px;
  font-size: 12px;
  line-height: 1.65;
  color: #76838b;
}

/* ---------- responsive ---------- */

@media (max-width: 960px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 860px) {
  .grid.cols-3, .grid.cols-2, .line-grid { grid-template-columns: 1fr; }
  .hero { padding: 64px 0 56px; }
  .hero-inner { flex-direction: column-reverse; gap: 32px; }
  .hero-logo img { width: 140px; }
  h1 { font-size: 38px; letter-spacing: -0.03em; }
  .page-hero h1 { font-size: 34px; }
  .section { padding: 56px 0; }
  .cta-band .wrap { padding: 48px 24px; }
}

@media (max-width: 600px) {
  .stats-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   PASS 3 — motion, ambient elements, forms, mobile nav
   All animation is gated behind prefers-reduced-motion.
   ============================================================ */

/* ---------- mobile nav toggle ---------- */

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  padding: 10px;
  cursor: pointer;
  flex-direction: column;
  gap: 4px;
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.nav-toggle.open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ---------- nav scroll shadow ---------- */

.site-header { transition: box-shadow 0.25s ease; }
.site-header.scrolled { box-shadow: rgba(95, 99, 106, 0.1) 0px 1px 0px, rgba(43, 43, 48, 0.06) 0px 4px 14px; }

/* ---------- scroll reveals (active only with .js-motion) ---------- */

.js-motion .reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.js-motion .reveal.in-view { opacity: 1; transform: none; }

/* ---------- card hover lift ---------- */

@media (prefers-reduced-motion: no-preference) {
  .card, .line-item, .stat-cell, .step {
    transition-property: transform, box-shadow, opacity;
    transition-duration: 0.25s, 0.25s, 0.6s;
    transition-timing-function: ease;
  }
  .card:hover, .line-item:hover, .stat-cell:hover {
    transform: translateY(-3px);
    box-shadow: rgba(95, 99, 106, 0.16) 0px 0px 0px 1px, rgba(43, 43, 48, 0.08) 0px 6px 16px 0px;
  }
  .js-motion .reveal { transition: opacity 0.6s ease, transform 0.6s ease; }
  .js-motion .reveal:hover { transition: opacity 0.6s ease, transform 0.25s ease, box-shadow 0.25s ease; }
}

/* ---------- hero entrance ---------- */

@media (prefers-reduced-motion: no-preference) {
  @keyframes heroRise {
    from { opacity: 0; transform: translateY(18px); }
    to { opacity: 1; transform: none; }
  }
  .hero .eyebrow, .page-hero .eyebrow { animation: heroRise 0.6s ease both; }
  .hero h1, .page-hero h1 { animation: heroRise 0.7s ease 0.1s both; }
  .hero .lede, .page-hero p { animation: heroRise 0.7s ease 0.22s both; }
  .hero .actions { animation: heroRise 0.7s ease 0.34s both; }
  .hero-logo { animation: heroRise 0.8s ease 0.2s both; }
}

/* ---------- lighthouse beam sweep (dark surfaces only) ---------- */

.stat-card.dark, .cta-band .wrap { position: relative; overflow: hidden; }

@media (prefers-reduced-motion: no-preference) {
  .stat-card.dark::after, .cta-band .wrap::after {
    content: "";
    position: absolute;
    top: -60%;
    bottom: -60%;
    left: 0;
    width: 38%;
    background: linear-gradient(100deg,
      transparent 0%,
      rgba(241, 245, 241, 0.04) 38%,
      rgba(241, 245, 241, 0.09) 50%,
      rgba(241, 245, 241, 0.04) 62%,
      transparent 100%);
    transform: translateX(-160%) skewX(-14deg);
    animation: beamSweep 13s ease-in-out infinite;
    pointer-events: none;
  }
  .cta-band .wrap::after { animation-delay: 5s; }
  @keyframes beamSweep {
    0%, 52% { transform: translateX(-160%) skewX(-14deg); }
    78%, 100% { transform: translateX(420%) skewX(-14deg); }
  }
}

/* ---------- hero waves (Home) ---------- */

.hero { position: relative; overflow: hidden; }
.hero .wrap { position: relative; z-index: 1; }

.hero-waves { position: absolute; inset: 0; pointer-events: none; z-index: 0; }

.hero-waves .wave {
  position: absolute;
  left: 0;
  right: 0;
  height: 160px;
  background-repeat: repeat-x;
  background-size: 600px 160px;
}

.hero-waves .wave-1 {
  bottom: 88px;
  opacity: 0.45;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 600 160'%3E%3Cpath d='M0 80 Q75 48 150 80 T300 80 T450 80 T600 80' fill='none' stroke='%23515b61' stroke-opacity='0.30' stroke-width='1.5'/%3E%3C/svg%3E");
}

.hero-waves .wave-2 {
  bottom: 40px;
  opacity: 0.5;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 600 160'%3E%3Cpath d='M0 80 Q75 52 150 80 T300 80 T450 80 T600 80' fill='none' stroke='%238d9aa0' stroke-opacity='0.38' stroke-width='1.5'/%3E%3C/svg%3E");
}

.hero-waves .wave-3 {
  bottom: -4px;
  opacity: 0.4;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 600 160'%3E%3Cpath d='M0 80 Q75 56 150 80 T300 80 T450 80 T600 80' fill='none' stroke='%23515b61' stroke-opacity='0.22' stroke-width='1.5'/%3E%3C/svg%3E");
}

@media (prefers-reduced-motion: no-preference) {
  @keyframes waveDriftFwd { to { background-position-x: 600px; } }
  @keyframes waveDriftBack { to { background-position-x: -600px; } }
  .hero-waves .wave-1 { animation: waveDriftFwd 90s linear infinite; }
  .hero-waves .wave-2 { animation: waveDriftBack 65s linear infinite; }
  .hero-waves .wave-3 { animation: waveDriftFwd 120s linear infinite; }
}

/* ---------- rotating headline word ---------- */

.rotator {
  display: inline-block;
  min-width: 7.6em;
  color: var(--ink);
  border-bottom: 3px solid var(--brass);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.rotator.swap { opacity: 0; transform: translateY(8px); }

@media (prefers-reduced-motion: reduce) {
  .rotator { transition: none; }
}

/* ---------- coverage ticker ---------- */

.ticker {
  background: var(--page);
  border-top: 1px solid var(--ash);
  border-bottom: 1px solid var(--ash);
  overflow: hidden;
  padding: 14px 0;
}

.ticker-track { display: flex; width: max-content; }

.ticker-set {
  display: flex;
  align-items: center;
  gap: 28px;
  padding-right: 28px;
  white-space: nowrap;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--steel);
}

.ticker-set i {
  width: 4px;
  height: 4px;
  border-radius: 999px;
  background: var(--brass);
  flex: 0 0 auto;
}

@media (prefers-reduced-motion: no-preference) {
  @keyframes tickerSlide { to { transform: translateX(-50%); } }
  .ticker-track { animation: tickerSlide 80s linear infinite; }
  .ticker:hover .ticker-track { animation-play-state: paused; }
}

/* ---------- scroll-drawn process rail (For Agents) ---------- */

.steps.has-rail { position: relative; padding-left: 64px; }

.steps.has-rail .step { position: relative; }

.steps.has-rail .step-num {
  position: absolute;
  left: -64px;
  top: 22px;
  z-index: 1;
  transition: background-color 0.4s ease;
}

.steps.has-rail .step.reached .step-num { background: var(--brass); color: #ffffff; }

.process-rail {
  position: absolute;
  left: 19px;
  top: 30px;
  bottom: 40px;
  width: 2px;
  background: var(--ash);
  border-radius: 2px;
}

.process-rail-fill {
  width: 100%;
  height: 0;
  max-height: 100%;
  background: var(--brass);
  border-radius: 2px;
}

/* ---------- forms ---------- */

.form-card { text-align: left; }

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

.field-full { grid-column: 1 / -1; }

.field label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 6px;
}

.field label .opt { font-weight: 400; color: var(--mist-steel); }

.field input,
.field select,
.field textarea {
  width: 100%;
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--ink);
  background: var(--page);
  border: 1px solid var(--ash);
  border-radius: 12px;
  padding: 11px 14px;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.field textarea { resize: vertical; min-height: 96px; }

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--fossil);
  box-shadow: rgba(95, 99, 106, 0.12) 0px 0px 0px 3px;
}

.field input.invalid,
.field select.invalid,
.field textarea.invalid { border-color: #8f3f33; }

.form-actions { margin-top: 20px; display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }

.form-actions button {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 14px;
  color: #ffffff;
  background: var(--ink);
  border: 0;
  border-radius: var(--radius-pill-fill);
  padding: 12px 26px;
  cursor: pointer;
}

.form-actions button:hover { background: var(--navy); }
.form-actions button:disabled { background: var(--steel); cursor: default; }

.form-status { font-size: 13px; color: var(--slate-text); }
.form-status.error { color: #8f3f33; font-weight: 500; }

.form-success {
  padding: 24px 0 8px;
}

.form-success h3 { color: var(--ink); }
.form-success h3::before {
  content: "\2713";
  color: var(--brass);
  font-weight: 700;
  margin-right: 10px;
}
.form-success p { font-size: 14px; margin-bottom: 0; }

.hp-field { display: none !important; }

/* ---------- living logo (Home hero) ---------- */

.logo-live {
  position: relative;
  width: 220px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow-ring);
  transition: transform 0.25s ease;
  will-change: transform;
}

.logo-live img { display: block; width: 100%; height: auto; }

.logo-live span { position: absolute; pointer-events: none; mix-blend-mode: screen; }

/* ambient glow breathing behind the lantern — toned down so the beacon leads */
.ll-glow {
  inset: 0;
  background: radial-gradient(38% 30% at 50% 30%, rgba(241, 245, 241, 0.12), transparent 70%);
  opacity: 0.45;
}

/* rotating beacon — soft-edged light cone anchored at the lantern (50%, 30%).
   The layer is a 300% square centered on that point; the conic wedge rotates
   about it while a synced opacity cycle makes the lamp brighten as the cone
   sweeps toward the viewer and dim as it turns away. */
.ll-beacon {
  left: -100%;
  top: -120%;
  width: 300%;
  height: 300%;
  background: conic-gradient(from 0deg at 50% 50%,
    transparent 0deg,
    rgba(241, 245, 241, 0.05) 7deg,
    rgba(241, 245, 241, 0.13) 13deg,
    rgba(241, 245, 241, 0.05) 19deg,
    transparent 26deg,
    transparent 360deg);
  opacity: 0;
  transform: rotate(0deg);
}

/* slow shimmer across the wave area */
.ll-shimmer {
  left: 0;
  right: 0;
  top: 52%;
  bottom: 8%;
  background: linear-gradient(90deg, transparent 0%, rgba(141, 154, 160, 0.10) 50%, transparent 100%);
  background-size: 60% 100%;
  background-repeat: no-repeat;
  background-position: -60% 0;
}

@media (prefers-reduced-motion: no-preference) {
  @keyframes llGlow { from { opacity: 0.3; } to { opacity: 0.6; } }
  @keyframes llBeaconSpin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
  }
  /* cone center sits ~13deg past north; it crosses "toward the viewer"
     (pointing down/outward) just before mid-cycle — peak there, faint on the
     far side of the turn */
  @keyframes llBeaconPhase {
    0% { opacity: 0.06; }
    22% { opacity: 0.3; }
    46% { opacity: 0.85; }
    58% { opacity: 0.35; }
    78%, 100% { opacity: 0.06; }
  }
  @keyframes llShimmer {
    0%, 30% { background-position: -60% 0; }
    80%, 100% { background-position: 160% 0; }
  }
  .ll-glow { animation: llGlow 10s ease-in-out infinite alternate; }
  .ll-beacon { animation: llBeaconSpin 10s linear infinite, llBeaconPhase 10s ease-in-out infinite; }
  .ll-shimmer { animation: llShimmer 14s linear infinite; }
}

/* ---------- FAQ (For Agents) ---------- */

.faq { display: grid; gap: 10px; max-width: 780px; }

.faq-item {
  background: var(--card);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-ring);
}

.faq-item summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 17px 24px;
  font-weight: 600;
  font-size: 15px;
  color: var(--ink);
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary::after {
  content: "+";
  color: var(--brass);
  font-weight: 700;
  font-size: 19px;
  line-height: 1;
  transition: transform 0.25s ease;
  flex: 0 0 auto;
}

.faq-item[open] summary::after { transform: rotate(45deg); }

.faq-item p { padding: 0 24px 20px; margin: 0; font-size: 14px; }

/* ---------- "what happens next" (Get Appointed) ---------- */

.next-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }

.next-step {
  background: var(--card);
  border-radius: var(--radius-card);
  padding: 24px;
  box-shadow: var(--shadow-ring);
}

.next-step .step-num { margin-bottom: 14px; }

/* ---------- 404 ---------- */

.error-hero { text-align: center; padding: 120px 0 100px; }

.error-hero .code {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 96px;
  letter-spacing: -0.04em;
  line-height: 1;
  color: var(--ink);
  display: block;
  margin-bottom: 16px;
}

/* ---------- pass-3 responsive ---------- */

@media (max-width: 860px) {
  .nav-toggle { display: flex; }
  .site-header .wrap { position: relative; }
  .nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--card);
    border-bottom: 1px solid var(--ash);
    flex-direction: column;
    align-items: stretch;
    padding: 8px 24px 20px;
    gap: 4px;
    box-shadow: rgba(43, 43, 48, 0.08) 0px 10px 20px;
  }
  .nav.open { display: flex; }
  .nav a { padding: 11px 12px; font-size: 15px; border-radius: 8px; }
  .nav a.active { box-shadow: none; color: var(--brass-deep); }
  .nav a.nav-pill { text-align: center; margin-top: 8px; }

  /* waves: static + simplified on mobile */
  .hero-waves .wave { animation: none !important; }
  .hero-waves .wave-3 { display: none; }

  .logo-live { width: 140px; }

  .rotator { min-width: 0; }

  .steps.has-rail { padding-left: 48px; }
  .steps.has-rail .step-num { left: -48px; width: 32px; height: 32px; flex-basis: 32px; font-size: 13px; top: 24px; }
  .process-rail { left: 15px; }

  .form-grid { grid-template-columns: 1fr; }
  .next-steps { grid-template-columns: 1fr; }
  .error-hero .code { font-size: 64px; }
}

/* ============================================================
   IMPACT PASS — scale, grain, dividers, dark-band drama, depth
   ============================================================ */

/* ---------- paper grain (light surfaces only) ---------- */

:root {
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3CfeComponentTransfer%3E%3CfeFuncA type='linear' slope='0.035'/%3E%3C/feComponentTransfer%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)'/%3E%3C/svg%3E");
  --wave-divider: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 600 24'%3E%3Cpath d='M0 12 Q75 4 150 12 T300 12 T450 12 T600 12' fill='none' stroke='%23515b61' stroke-opacity='0.13' stroke-width='1.25'/%3E%3C/svg%3E");
}

body { background-image: var(--grain); }
.hero, .page-hero, .section.alt, .ticker { background-image: var(--grain); }

/* ---------- wave dividers between light bands ---------- */

.section.alt { position: relative; }

.section.alt::before {
  content: "";
  position: absolute;
  top: -12px;
  left: 0;
  right: 0;
  height: 24px;
  background-image: var(--wave-divider);
  background-size: 600px 24px;
  background-repeat: repeat-x;
  pointer-events: none;
}

.page-hero { position: relative; }

.page-hero::after {
  content: "";
  position: absolute;
  bottom: -12px;
  left: 0;
  right: 0;
  height: 24px;
  background-image: var(--wave-divider);
  background-size: 600px 24px;
  background-repeat: repeat-x;
  pointer-events: none;
  z-index: 1;
}

/* ---------- type rebalance ---------- */

.section { padding: 96px 0; }
.section-head { margin-bottom: 48px; }
.hero p.lede { font-size: 18px; }

/* ---------- hero depth: vignette + extra wave layers ---------- */

/* soft light pool guiding the eye toward the logo panel */
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(46% 72% at 79% 46%, rgba(255, 255, 255, 0.5), transparent 72%);
  pointer-events: none;
  z-index: 0;
}

.hero-waves .wave-4 {
  bottom: 132px;
  opacity: 0.3;
  background-size: 820px 160px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 600 160'%3E%3Cpath d='M0 80 Q75 58 150 80 T300 80 T450 80 T600 80' fill='none' stroke='%238d9aa0' stroke-opacity='0.26' stroke-width='1.25'/%3E%3C/svg%3E");
}

.hero-waves .wave-5 {
  bottom: 18px;
  opacity: 0.35;
  background-size: 480px 160px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 600 160'%3E%3Cpath d='M0 80 Q75 60 150 80 T300 80 T450 80 T600 80' fill='none' stroke='%23515b61' stroke-opacity='0.16' stroke-width='1.25'/%3E%3C/svg%3E");
}

@media (prefers-reduced-motion: no-preference) {
  .hero-waves .wave-4 { animation: waveDriftBack 140s linear infinite; }
  .hero-waves .wave-5 { animation: waveDriftFwd 75s linear infinite; }
}

/* ---------- dark band drama ---------- */

.cta-band .wrap { padding: 104px 64px; }

.cta-band h2 {
  font-size: 54px;
  letter-spacing: -0.035em;
  line-height: 1.0;
  margin-bottom: 18px;
}

.cta-band p { font-size: 16px; margin-bottom: 32px; }

.cta-band .hl { color: var(--brass); font-style: normal; }

/* beacon-style rotating light inside the dark panel (replaces the beam sweep) */
.cta-band .wrap::after {
  top: 50%;
  bottom: auto;
  left: 50%;
  width: 170%;
  aspect-ratio: 1 / 1;
  background: conic-gradient(from 0deg at 50% 50%,
    transparent 0deg,
    rgba(241, 245, 241, 0.025) 14deg,
    rgba(241, 245, 241, 0.06) 24deg,
    rgba(241, 245, 241, 0.025) 34deg,
    transparent 48deg,
    transparent 360deg);
  transform: translate(-50%, -50%) rotate(0deg);
  animation: none;
}

@media (prefers-reduced-motion: no-preference) {
  @keyframes ctaBeacon {
    from { transform: translate(-50%, -50%) rotate(0deg); }
    to { transform: translate(-50%, -50%) rotate(360deg); }
  }
  .cta-band .wrap::after { animation: ctaBeacon 24s linear infinite; }
}

/* ---------- logo beacon: visible rotation, still soft ---------- */

.ll-beacon {
  background: conic-gradient(from 0deg at 50% 50%,
    transparent 0deg,
    rgba(241, 245, 241, 0.10) 9deg,
    rgba(241, 245, 241, 0.24) 17deg,
    rgba(241, 245, 241, 0.10) 25deg,
    transparent 34deg,
    transparent 360deg);
}

@media (prefers-reduced-motion: no-preference) {
  /* cone faintly visible through the whole turn, flaring as it faces front */
  @keyframes llBeaconPhase {
    0% { opacity: 0.2; }
    22% { opacity: 0.42; }
    46% { opacity: 1; }
    60% { opacity: 0.45; }
    80%, 100% { opacity: 0.2; }
  }
}

/* ---------- hover depth ---------- */

@media (prefers-reduced-motion: no-preference) {
  .card:hover, .line-item:hover, .stat-cell:hover {
    transform: translateY(-3px);
    box-shadow:
      rgba(95, 99, 106, 0.16) 0px 0px 0px 1px,
      rgba(43, 43, 48, 0.08) 0px 6px 16px 0px,
      inset 0 2px 0 rgba(163, 135, 62, 0.4),
      0 -10px 22px -14px rgba(163, 135, 62, 0.5);
  }
  .btn:active, .form-actions button:active { transform: translateY(1px); }
  .btn, .form-actions button { transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.12s ease; }
}

/* ---------- impact responsive ---------- */

@media (max-width: 860px) {
  h1 { font-size: 44px; letter-spacing: -0.035em; line-height: 0.98; }
  .page-hero h1 { font-size: 40px; }
  h2 { font-size: 30px; }
  .cta-band h2 { font-size: 34px; letter-spacing: -0.025em; }
  .cta-band .wrap { padding: 64px 24px; }
  .section { padding: 60px 0; }
  .section-head { margin-bottom: 32px; }
  .hero { padding: 72px 0 64px; }
  .hero-waves .wave-4, .hero-waves .wave-5 { display: none; }
  .hero::after { display: none; }
}

