/* ==========================================================================
   EQUITABLE INSURANCE SERVICES
   Brand palette locked from the logo silhouette. Graphite is primary.

   CONTRAST NOTES (WCAG 2.2 AA, measured not assumed):
     terracotta #C7663E on bone  = 3.39:1  -> large display / rules ONLY
     deep       #A14A26 on bone  = 5.12:1  -> body links, accent buttons
     bone       on graphite      = 14.0:1  -> primary buttons
     light      #E08A5F on graphite = 6.09:1 -> dark-mode accent text
   Terracotta is never used for small text or as a button fill behind white.
   ========================================================================== */

/* ------------------------------------------------------------ 1. FONTS */
@font-face {
  font-family: 'Fraunces';
  src: url('../fonts/fraunces-latin-var.woff2') format('woff2-variations');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6,
                 U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191,
                 U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'InterVar';
  src: url('../fonts/inter-latin-var.woff2') format('woff2-variations');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6,
                 U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191,
                 U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ----------------------------------------------------------- 2. TOKENS */
:root {
  --c-graphite:    #1C1F23;
  --c-ink:         #0E1013;
  --c-bone:        #F4EFE6;
  --c-accent:      #C7663E;
  --c-accent-deep: #A14A26;
  --c-accent-lite: #E08A5F;

  --c-bg:          var(--c-bone);
  --c-bg-raised:   #FFFFFF;
  --c-bg-sunk:     #EBE4D8;
  --c-text:        var(--c-ink);
  --c-text-soft:   #4A4F57;
  --c-text-faint:  #5A5F67;   /* 5.59:1 on bone — was #6B7079 at 4.35:1 */
  --c-line:        #DCD3C4;
  --c-line-strong: #C3B8A5;

  --c-on-dark:     var(--c-bone);
  --c-link:        var(--c-accent-deep);

  --c-ok:          #2F6B4F;
  --c-ok-bg:       #E4EFE8;
  --c-warn:        #8A6212;
  --c-warn-bg:     #F6EEDA;
  --c-err:         #96281B;
  --c-err-bg:      #F7E6E3;

  --font-display: 'Fraunces', Georgia, 'Times New Roman', serif;
  --font-body: 'InterVar', -apple-system, BlinkMacSystemFont, 'Segoe UI',
               Roboto, Helvetica, Arial, sans-serif;

  --step--1: clamp(.82rem, .79rem + .14vw, .9rem);
  --step-0:  clamp(1rem, .96rem + .2vw, 1.09rem);
  --step-1:  clamp(1.2rem, 1.12rem + .38vw, 1.42rem);
  --step-2:  clamp(1.45rem, 1.3rem + .72vw, 1.9rem);
  --step-3:  clamp(1.75rem, 1.48rem + 1.3vw, 2.6rem);
  --step-4:  clamp(2.1rem, 1.62rem + 2.3vw, 3.6rem);
  --step-5:  clamp(2.5rem, 1.7rem + 3.8vw, 4.8rem);

  --sp-1: .25rem;  --sp-2: .5rem;   --sp-3: .75rem;  --sp-4: 1rem;
  --sp-5: 1.5rem;  --sp-6: 2rem;    --sp-7: 3rem;    --sp-8: 4rem;
  --sp-9: 6rem;

  --w-page: 1240px;
  --w-text: 68ch;

  --r-sm: 6px;  --r-md: 12px;  --r-lg: 20px;  --r-pill: 999px;
  /* Signature motif: the arch. Echoes the window in the brand illustrations. */
  --r-arch: 46% 46% var(--r-md) var(--r-md) / 16% 16% var(--r-md) var(--r-md);

  --shadow-1: 0 1px 2px rgba(14,16,19,.05), 0 2px 8px rgba(14,16,19,.05);
  --shadow-2: 0 2px 6px rgba(14,16,19,.07), 0 12px 32px rgba(14,16,19,.09);

  --ease: cubic-bezier(.22,.61,.36,1);
  --dur: .28s;
}

[data-theme="dark"] {
  --c-bg:          #15181B;
  --c-bg-raised:   #1C1F23;
  --c-bg-sunk:     #101316;
  --c-text:        #ECE5D9;
  --c-text-soft:   #B3ADA3;
  --c-text-faint:  #8C877F;
  --c-line:        #2E333A;
  --c-line-strong: #434A53;
  --c-link:        var(--c-accent-lite);
  --c-ok:          #7FC2A0;  --c-ok-bg:   #1B2A22;
  --c-warn:        #D9B45F;  --c-warn-bg: #2A2416;
  --c-err:         #E79386;  --c-err-bg:  #2C1A18;
  --shadow-1: 0 1px 2px rgba(0,0,0,.4), 0 2px 8px rgba(0,0,0,.3);
  --shadow-2: 0 2px 6px rgba(0,0,0,.45), 0 12px 32px rgba(0,0,0,.4);
}

/* ------------------------------------------------------------ 3. RESET */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--c-bg);
  color: var(--c-text);
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.65;
  font-synthesis-weight: none;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, picture, svg, video { max-width: 100%; display: block; }
img { height: auto; }
h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.12;
  letter-spacing: -.018em;
  margin: 0 0 var(--sp-4);
  text-wrap: balance;
  font-variation-settings: 'SOFT' 0, 'WONK' 0, 'opsz' 40;
}
h1 { font-size: var(--step-4); }
h2 { font-size: var(--step-3); }
h3 { font-size: var(--step-2); }
h4 { font-size: var(--step-1); }
p  { margin: 0 0 var(--sp-4); text-wrap: pretty; }
a  { color: var(--c-link); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
ul, ol { margin: 0 0 var(--sp-4); padding-left: 1.25em; }
li { margin-bottom: var(--sp-2); }
hr { border: 0; border-top: 1px solid var(--c-line); margin: var(--sp-7) 0; }
strong, b { font-weight: 650; }
small { font-size: var(--step--1); }
figure { margin: 0; }
table { border-collapse: collapse; width: 100%; }

:where(a, button, input, select, textarea, summary, [tabindex]):focus-visible {
  outline: 3px solid var(--c-accent-deep);
  outline-offset: 2px;
  border-radius: var(--r-sm);
}
[data-theme="dark"] :where(a,button,input,select,textarea,summary,[tabindex]):focus-visible {
  outline-color: var(--c-accent-lite);
}
.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 999;
  background: var(--c-graphite); color: var(--c-bone);
  padding: var(--sp-3) var(--sp-5); border-radius: 0 0 var(--r-md) 0;
}
.skip-link:focus { left: 0; }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}

/* ----------------------------------------------------------- 4. LAYOUT */
.wrap { width: min(100% - 2.5rem, var(--w-page)); margin-inline: auto; }
.wrap--narrow { width: min(100% - 2.5rem, 880px); margin-inline: auto; }
.prose { max-width: var(--w-text); }
.section { padding-block: var(--sp-8); }
.section--tight { padding-block: var(--sp-7); }
.section--loose { padding-block: var(--sp-9); }
.section--sunk { background: var(--c-bg-sunk); }
.section--dark { background: var(--c-graphite); color: var(--c-on-dark); }
.section--dark h1, .section--dark h2, .section--dark h3 { color: var(--c-on-dark); }
.section--dark a { color: var(--c-accent-lite); }
.section__head { max-width: 62ch; margin-bottom: var(--sp-6); }
.eyebrow {
  font-family: var(--font-body);
  font-size: var(--step--1); font-weight: 600;
  letter-spacing: .13em; text-transform: uppercase;
  color: var(--c-accent-deep); margin: 0 0 var(--sp-3);
}
.section--dark .eyebrow { color: var(--c-accent-lite); }
.lede { font-size: var(--step-1); color: var(--c-text-soft); line-height: 1.5; }

.grid { display: grid; gap: var(--sp-5); }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(265px, 1fr)); }
.grid--4 { grid-template-columns: repeat(auto-fit, minmax(215px, 1fr)); }
.split { display: grid; gap: var(--sp-7); align-items: center; }
@media (min-width: 860px) { .split { grid-template-columns: 1fr 1fr; } 
  .split--wide-left { grid-template-columns: 1.25fr 1fr; } }

/* --------------------------------------------------------- 5. BUTTONS */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: var(--sp-2);
  font-family: var(--font-body); font-size: var(--step-0); font-weight: 600;
  line-height: 1; text-decoration: none; cursor: pointer;
  padding: .92em 1.6em; border-radius: var(--r-pill);
  border: 2px solid transparent; white-space: nowrap;
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease),
              border-color var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.btn:hover { transform: translateY(-1px); text-decoration: none; }
.btn:active { transform: translateY(0); }
.btn--primary { background: var(--c-graphite); color: var(--c-bone); }
.btn--primary:hover { background: #2C3137; }
[data-theme="dark"] .btn--primary { background: var(--c-bone); color: var(--c-graphite); }
.btn--accent { background: var(--c-accent-deep); color: #FFF; }
.btn--accent:hover { background: #8C3F20; }
.btn--ghost { border-color: currentColor; color: var(--c-text); background: transparent; }
.btn--ghost:hover { background: var(--c-text); color: var(--c-bg); }
.section--dark .btn--ghost { color: var(--c-on-dark); }
.section--dark .btn--ghost:hover { background: var(--c-on-dark); color: var(--c-graphite); }
.btn--sm { padding: .7em 1.15em; font-size: var(--step--1); }
.btn--block { width: 100%; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .5; pointer-events: none; }
.btn-row { display: flex; flex-wrap: wrap; gap: var(--sp-3); }

.textlink {
  display: inline-flex; align-items: center; gap: .4em;
  font-weight: 600; text-decoration: none;
  border-bottom: 2px solid currentColor; padding-bottom: 2px;
}
.textlink:hover { gap: .65em; }
.textlink::after { content: '\2192'; transition: transform var(--dur) var(--ease); }

/* ----------------------------------------------------------- 6. HEADER */
.site-header {
  position: sticky; top: 0; z-index: 60;
  background: color-mix(in srgb, var(--c-bg) 92%, transparent);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--c-line);
}
.site-header__bar {
  display: flex; align-items: center; gap: var(--sp-5);
  min-height: 74px;
}
.brand { display: flex; align-items: center; gap: var(--sp-3); text-decoration: none; color: inherit; flex-shrink: 0; }
.brand__mark { width: 40px; height: 40px; flex-shrink: 0; }
.brand__text { display: flex; flex-direction: column; line-height: 1.05; }
.brand__name {
  font-family: var(--font-display); font-weight: 600;
  font-size: 1.12rem; letter-spacing: -.01em;
}
.brand__motto { font-size: .68rem; color: var(--c-text-faint); letter-spacing: .04em; }

.nav { margin-left: auto; display: none; }
@media (min-width: 1040px) { .nav { display: block; } }
.nav__list { display: flex; align-items: center; gap: var(--sp-1); list-style: none; margin: 0; padding: 0; }
.nav__list > li { margin: 0; }
.nav__link {
  display: block; padding: .6rem .78rem; border-radius: var(--r-sm);
  font-size: .94rem; font-weight: 550; color: var(--c-text); text-decoration: none;
  background: none; border: 0; cursor: pointer; font-family: inherit;
  white-space: nowrap;
}
.nav__link:hover { background: var(--c-bg-sunk); }
.nav__link[aria-current="page"], .nav__link.is-active { color: var(--c-accent-deep); }
[data-theme="dark"] .nav__link.is-active { color: var(--c-accent-lite); }
[data-theme="dark"] .eyebrow { color: var(--c-accent-lite); }
.nav__link--toggle::after {
  content: ''; display: inline-block; width: .42em; height: .42em; margin-left: .45em;
  border-right: 2px solid currentColor; border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translateY(-2px); transition: transform var(--dur) var(--ease);
}
.nav__link--toggle[aria-expanded="true"]::after { transform: rotate(-135deg) translateY(-2px); }

.mega {
  position: absolute; left: 0; right: 0; top: 100%;
  background: var(--c-bg-raised); border-bottom: 1px solid var(--c-line);
  box-shadow: var(--shadow-2); padding-block: var(--sp-6);
}
.mega[hidden] { display: none; }
.mega__grid { display: grid; gap: var(--sp-5) var(--sp-6); grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.mega__col h3 { font-size: .96rem; font-family: var(--font-body); font-weight: 700;
  letter-spacing: .06em; text-transform: uppercase; color: var(--c-text-faint); margin-bottom: var(--sp-3); }
.mega__list { list-style: none; margin: 0; padding: 0; }
.mega__list li { margin-bottom: 1px; }
.mega__list a {
  display: block; padding: .4rem .5rem; margin-left: -.5rem;
  border-radius: var(--r-sm); text-decoration: none;
  color: var(--c-text); font-size: .93rem;
}
.mega__list a:hover { background: var(--c-bg-sunk); color: var(--c-accent-deep); }
[data-theme="dark"] .mega__list a:hover { color: var(--c-accent-lite); }

.header__actions { display: flex; align-items: center; gap: var(--sp-2); margin-left: auto; }
@media (min-width: 1040px) { .header__actions { margin-left: 0; } }
.icon-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 42px; height: 42px; border-radius: var(--r-pill);
  border: 1px solid var(--c-line); background: transparent;
  color: var(--c-text); cursor: pointer;
}
.icon-btn:hover { background: var(--c-bg-sunk); }
.nav-toggle { display: inline-flex; }
@media (min-width: 1040px) { .nav-toggle { display: none; } }

/* On a phone the two header CTAs overflow the bar. They are both in the
   drawer, so hide them there and keep the theme toggle and the menu button. */
@media (max-width: 620px) {
  .header__actions .btn { display: none; }
  .site-header__bar { gap: var(--sp-3); min-height: 64px; }
  .brand__motto { display: none; }
}
@media (max-width: 400px) {
  .brand__name { font-size: 1rem; }
  .brand__mark { width: 34px; height: 34px; }
}

.drawer {
  position: fixed; inset: 74px 0 0; z-index: 55;
  background: var(--c-bg); overflow-y: auto; padding: var(--sp-5) 0 var(--sp-8);
  border-top: 1px solid var(--c-line);
}
.drawer[hidden] { display: none; }
.drawer details { border-bottom: 1px solid var(--c-line); }
.drawer summary {
  padding: var(--sp-4) 0; font-weight: 600; cursor: pointer;
  list-style: none; display: flex; justify-content: space-between; align-items: center;
}
.drawer summary::-webkit-details-marker { display: none; }
.drawer summary::after {
  content: '+'; font-size: 1.35rem; font-weight: 400; line-height: 1;
  color: var(--c-text-faint);
}
.drawer details[open] summary::after { content: '\2212'; }
.drawer .mega__list { padding-bottom: var(--sp-4); }

/* ------------------------------------------------------------- 7. HERO */
.hero { position: relative; overflow: hidden; background: var(--c-bg-sunk); }
.hero__inner {
  display: grid; gap: var(--sp-6); align-items: center;
  padding-block: var(--sp-8);
}
@media (min-width: 900px) {
  .hero__inner { grid-template-columns: 1.04fr .96fr; gap: var(--sp-7); padding-block: var(--sp-9); }
}
.hero__title { font-size: var(--step-5); margin-bottom: var(--sp-4); }
.hero__title em {
  font-style: normal; color: var(--c-accent-deep);
  font-variation-settings: 'SOFT' 40, 'WONK' 1, 'opsz' 100;
}
[data-theme="dark"] .hero__title em { color: var(--c-accent-lite); }
.hero__lede { font-size: var(--step-1); color: var(--c-text-soft); max-width: 46ch; margin-bottom: var(--sp-6); }
.hero__media { position: relative; }
.hero__media picture, .hero__media img {
  border-radius: var(--r-arch);
  width: 100%; aspect-ratio: 4 / 3; object-fit: cover;
}
.hero--compact .hero__inner { padding-block: var(--sp-7); }
.hero--compact .hero__title { font-size: var(--step-4); }

/* ------------------------------------------- 8. COVERAGE STATUS BANNER */
/* Sits ABOVE the bento grid on the homepage. The "green light" qualifier. */
.coverage-banner {
  display: grid; gap: var(--sp-5); align-items: center;
  background: var(--c-bg-raised); border: 1px solid var(--c-line);
  border-left: 5px solid var(--c-ok);
  border-radius: var(--r-md); padding: var(--sp-5) var(--sp-6);
  box-shadow: var(--shadow-1);
}
@media (min-width: 820px) { .coverage-banner { grid-template-columns: auto 1fr auto; } }
.coverage-banner__badge {
  display: inline-flex; align-items: center; gap: var(--sp-2);
  background: var(--c-ok-bg); color: var(--c-ok);
  font-size: var(--step--1); font-weight: 700;
  letter-spacing: .09em; text-transform: uppercase;
  padding: .5em 1em; border-radius: var(--r-pill); white-space: nowrap;
}
.coverage-banner__badge::before {
  content: ''; width: .62em; height: .62em; border-radius: 50%;
  background: currentColor; flex-shrink: 0;
}
.coverage-banner__body p { margin: 0; }
.coverage-banner__title { font-family: var(--font-display); font-size: var(--step-1); font-weight: 600; }
.coverage-banner__meta { font-size: var(--step--1); color: var(--c-text-faint); }
.coverage-banner--pending { border-left-color: var(--c-warn); }
.coverage-banner--pending .coverage-banner__badge { background: var(--c-warn-bg); color: var(--c-warn); }
.coverage-banner--none { border-left-color: var(--c-line-strong); }
.coverage-banner--none .coverage-banner__badge { background: var(--c-bg-sunk); color: var(--c-text-faint); }

/* ------------------------------------------------------------ 9. BENTO */
.bento { display: grid; gap: var(--sp-4); grid-template-columns: repeat(2, 1fr); }
@media (min-width: 760px)  { .bento { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 1080px) { .bento { grid-template-columns: repeat(6, 1fr); } }
.bento__cell { grid-column: span 2; }
@media (min-width: 1080px) {
  .bento__cell--lg { grid-column: span 3; }
  .bento__cell--md { grid-column: span 3; }
  .bento__cell--sm { grid-column: span 2; }
}

/* ------------------------------------------------------------ 10. CARD */
.card {
  display: flex; flex-direction: column; height: 100%;
  background: var(--c-bg-raised); border: 1px solid var(--c-line);
  border-radius: var(--r-md); overflow: hidden;
  box-shadow: var(--shadow-1);
  transition: box-shadow var(--dur) var(--ease), transform var(--dur) var(--ease),
              border-color var(--dur) var(--ease);
}
.card:hover { box-shadow: var(--shadow-2); transform: translateY(-3px); border-color: var(--c-line-strong); }
.card__media { position: relative; overflow: hidden; background: var(--c-bg-sunk); }
.card__media picture, .card__media img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.card__media--tall picture, .card__media--tall img { aspect-ratio: 4 / 5; }
.card__body { padding: var(--sp-5); display: flex; flex-direction: column; flex: 1; gap: var(--sp-2); }
.card__title { font-size: var(--step-1); margin: 0; }
.card__title a { color: inherit; text-decoration: none; }
.card__title a::after { content: ''; position: absolute; inset: 0; }
.card { position: relative; }
.card__text { color: var(--c-text-soft); font-size: .96rem; margin: 0; flex: 1; }
.card__foot { margin-top: var(--sp-3); font-weight: 600; font-size: .92rem; color: var(--c-link); }
.card--flat { box-shadow: none; }
.card--flat:hover { transform: none; box-shadow: var(--shadow-1); }

.tile {
  display: flex; flex-direction: column; gap: var(--sp-2);
  padding: var(--sp-5); border-radius: var(--r-md);
  background: var(--c-bg-raised); border: 1px solid var(--c-line);
  height: 100%;
}
.tile__num {
  font-family: var(--font-display); font-size: var(--step-3);
  font-weight: 600; color: var(--c-accent-deep); line-height: 1;
}
[data-theme="dark"] .tile__num { color: var(--c-accent-lite); }
.tile__label { font-size: .94rem; color: var(--c-text-soft); }

/* ------------------------------------------------------- 11. STEP FLOW */
.steps { counter-reset: step; list-style: none; padding: 0; margin: 0; display: grid; gap: var(--sp-5); }
@media (min-width: 900px) { .steps { grid-template-columns: repeat(5, 1fr); } }
.steps__item { counter-increment: step; margin: 0; }
.steps__item picture, .steps__item img {
  border-radius: var(--r-md); margin-bottom: var(--sp-4);
  aspect-ratio: 4 / 3; object-fit: cover; width: 100%;
}
.steps__item h3 { font-size: var(--step-1); margin-bottom: var(--sp-2); }
.steps__item h3::before {
  content: counter(step, decimal-leading-zero);
  display: block; font-family: var(--font-body); font-size: .78rem;
  font-weight: 700; letter-spacing: .14em; color: var(--c-accent-deep);
  margin-bottom: var(--sp-2);
}
[data-theme="dark"] .steps__item h3::before { color: var(--c-accent-lite); }
.steps__item p { font-size: .94rem; color: var(--c-text-soft); margin: 0; }

/* -------------------------------------------------------- 12. ACCORDION */
.accordion { border-top: 1px solid var(--c-line); }
.accordion details { border-bottom: 1px solid var(--c-line); }
.accordion summary {
  display: flex; justify-content: space-between; align-items: flex-start; gap: var(--sp-4);
  padding: var(--sp-5) 0; cursor: pointer; list-style: none;
  font-family: var(--font-display); font-size: var(--step-1); font-weight: 550;
}
.accordion summary::-webkit-details-marker { display: none; }
.accordion summary::after {
  content: '+'; flex-shrink: 0; font-family: var(--font-body);
  font-size: 1.5rem; line-height: 1; color: var(--c-accent-deep); font-weight: 400;
}
.accordion details[open] summary::after { content: '\2212'; }
.accordion__body { padding-bottom: var(--sp-5); max-width: var(--w-text); color: var(--c-text-soft); }
.accordion__body > :last-child { margin-bottom: 0; }

/* ------------------------------------------------------------ 13. FORMS */
.form { display: grid; gap: var(--sp-5); }
.field { display: grid; gap: var(--sp-2); }
.field > label, .fieldset__legend {
  font-weight: 600; font-size: .95rem; color: var(--c-text);
}
.field__hint { font-size: var(--step--1); color: var(--c-text-faint); }
.field__error { font-size: var(--step--1); color: var(--c-err); font-weight: 600; }
.req { color: var(--c-err); }
input[type="text"], input[type="email"], input[type="tel"], input[type="number"],
input[type="date"], input[type="password"], input[type="search"], input[type="url"],
select, textarea {
  width: 100%; font-family: inherit; font-size: var(--step-0);
  color: var(--c-text); background: var(--c-bg-raised);
  border: 1px solid var(--c-line-strong); border-radius: var(--r-sm);
  padding: .72em .85em; line-height: 1.4;
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
textarea { min-height: 8.5em; resize: vertical; }
select { appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, currentColor 50%),
                    linear-gradient(135deg, currentColor 50%, transparent 50%);
  background-position: calc(100% - 20px) 1.15em, calc(100% - 14px) 1.15em;
  background-size: 6px 6px, 6px 6px; background-repeat: no-repeat;
  padding-right: 2.6em;
}
input:focus, select:focus, textarea:focus {
  border-color: var(--c-accent-deep);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--c-accent-deep) 22%, transparent);
}
input[aria-invalid="true"], select[aria-invalid="true"], textarea[aria-invalid="true"] {
  border-color: var(--c-err);
}
.fieldset { border: 1px solid var(--c-line); border-radius: var(--r-md); padding: var(--sp-5); margin: 0; }
.fieldset__legend { padding-inline: var(--sp-2); }
.field-row { display: grid; gap: var(--sp-4); }
@media (min-width: 660px) {
  .field-row--2 { grid-template-columns: 1fr 1fr; }
  .field-row--3 { grid-template-columns: repeat(3, 1fr); }
}
.check { display: flex; gap: var(--sp-3); align-items: flex-start; }
.check input { margin-top: .3em; width: 1.05em; height: 1.05em; flex-shrink: 0; accent-color: var(--c-accent-deep); }
.check label { font-weight: 400; font-size: .95rem; }

.alert {
  padding: var(--sp-4) var(--sp-5); border-radius: var(--r-md);
  border-left: 4px solid; margin-bottom: var(--sp-5); font-size: .96rem;
}
.alert > :last-child { margin-bottom: 0; }
.alert--ok   { background: var(--c-ok-bg);   border-color: var(--c-ok);   color: var(--c-ok); }
.alert--warn { background: var(--c-warn-bg); border-color: var(--c-warn); color: var(--c-warn); }
.alert--err  { background: var(--c-err-bg);  border-color: var(--c-err);  color: var(--c-err); }

/* ------------------------------------------------------------ 14. TABLE */
.table-wrap { overflow-x: auto; border: 1px solid var(--c-line); border-radius: var(--r-md); }
.table { font-size: .94rem; }
.table th, .table td { padding: var(--sp-3) var(--sp-4); text-align: left; border-bottom: 1px solid var(--c-line); }
.table thead th {
  background: var(--c-bg-sunk); font-size: .8rem; font-weight: 700;
  letter-spacing: .07em; text-transform: uppercase; color: var(--c-text-faint);
  white-space: nowrap;
}
.table tbody tr:last-child td { border-bottom: 0; }
.table tbody tr:hover { background: var(--c-bg-sunk); }
.pill {
  display: inline-block; padding: .28em .75em; border-radius: var(--r-pill);
  font-size: .76rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase;
}
.pill--ok   { background: var(--c-ok-bg);   color: var(--c-ok); }
.pill--warn { background: var(--c-warn-bg); color: var(--c-warn); }
.pill--err  { background: var(--c-err-bg);  color: var(--c-err); }
.pill--mute { background: var(--c-bg-sunk); color: var(--c-text-faint); }

/* ------------------------------------------------------- 15. BREADCRUMB */
.crumbs { font-size: var(--step--1); color: var(--c-text-faint); padding-block: var(--sp-4); }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: .45em; margin: 0; padding: 0; }
.crumbs li { margin: 0; display: flex; gap: .45em; align-items: center; }
.crumbs li + li::before { content: '\203A'; color: var(--c-line-strong); }
.crumbs a { color: inherit; text-decoration: none; }
.crumbs a:hover { color: var(--c-link); text-decoration: underline; }

/* ----------------------------------------------------------- 16. FOOTER */
.site-footer { background: var(--c-graphite); color: var(--c-bone); padding-block: var(--sp-8) var(--sp-6); margin-top: var(--sp-9); }
.site-footer a { color: var(--c-bone); text-decoration: none; opacity: .82; }
.site-footer a:hover { opacity: 1; text-decoration: underline; }
.footer__grid { display: grid; gap: var(--sp-6); grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); }
.footer__brand { grid-column: 1 / -1; }
@media (min-width: 980px) { .footer__brand { grid-column: span 2; } }
.footer__col h3 {
  font-family: var(--font-body); font-size: .78rem; font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase; color: #9A9389; margin-bottom: var(--sp-3);
}
.footer__col ul { list-style: none; margin: 0; padding: 0; }
.footer__col li { margin-bottom: var(--sp-2); font-size: .91rem; }
.footer__legal {
  margin-top: var(--sp-7); padding-top: var(--sp-5);
  border-top: 1px solid rgba(244,239,230,.16);
  font-size: var(--step--1); color: #A69F94; display: grid; gap: var(--sp-4);
}
.footer__legal p { margin: 0; max-width: 100ch; }
.footer__disclosure { background: rgba(244,239,230,.05); padding: var(--sp-4) var(--sp-5); border-radius: var(--r-md); }

/* ------------------------------------------------------------ 17. MISC */
.chip-row { display: flex; flex-wrap: wrap; gap: var(--sp-2); list-style: none; padding: 0; margin: 0; }
.chip {
  display: inline-block; padding: .42em 1em; border-radius: var(--r-pill);
  border: 1px solid var(--c-line-strong); font-size: .88rem;
  text-decoration: none; color: var(--c-text); background: var(--c-bg-raised);
}
.chip:hover { border-color: var(--c-accent-deep); color: var(--c-accent-deep); }
.chip[aria-current="true"] { background: var(--c-graphite); color: var(--c-bone); border-color: var(--c-graphite); }

.checklist { list-style: none; padding: 0; margin: 0 0 var(--sp-4); }
.checklist li { position: relative; padding-left: 1.85em; margin-bottom: var(--sp-3); }
.checklist li::before {
  content: ''; position: absolute; left: 0; top: .42em;
  width: .72em; height: .38em;
  border-left: 2.5px solid var(--c-accent-deep); border-bottom: 2.5px solid var(--c-accent-deep);
  transform: rotate(-45deg);
}
[data-theme="dark"] .checklist li::before { border-color: var(--c-accent-lite); }

.cta-band {
  background: var(--c-graphite); color: var(--c-on-dark);
  border-radius: var(--r-lg); padding: var(--sp-7) var(--sp-6);
  display: grid; gap: var(--sp-5); align-items: center; text-align: center;
}
@media (min-width: 860px) { .cta-band { grid-template-columns: 1fr auto; text-align: left; } }
.cta-band h2 { margin-bottom: var(--sp-2); color: var(--c-on-dark); }
.cta-band p { margin: 0; color: #C8C1B6; }
/* The band is always graphite, so a ghost button inside it must take the
   dark-background treatment whichever theme the page is in. */
.cta-band .btn--ghost { color: var(--c-on-dark); border-color: currentColor; }
.cta-band .btn--ghost:hover { background: var(--c-on-dark); color: var(--c-graphite); }
.cta-band .btn--primary { background: var(--c-bone); color: var(--c-graphite); }
.cta-band .btn--primary:hover { background: #FFFFFF; }

.quote-strip {
  background: var(--c-bg-raised); border: 1px solid var(--c-line);
  border-radius: var(--r-lg); padding: var(--sp-5); box-shadow: var(--shadow-2);
}
.quote-strip__grid { display: grid; gap: var(--sp-4); align-items: end; }
@media (min-width: 760px) { .quote-strip__grid { grid-template-columns: 1.3fr 1fr auto; } }

.contact-card { display: grid; gap: var(--sp-2); padding: var(--sp-5);
  border: 1px solid var(--c-line); border-radius: var(--r-md); background: var(--c-bg-raised); }
.contact-card__label { font-size: .78rem; font-weight: 700; letter-spacing: .1em;
  text-transform: uppercase; color: var(--c-text-faint); }
.contact-card__value { font-family: var(--font-display); font-size: var(--step-1); }
.contact-card__value a { text-decoration: none; color: inherit; }
.contact-card__value a:hover { color: var(--c-link); }

/* ------------------------------------------------------ 18. MOTION/PRINT */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important; animation-iteration-count: 1 !important;
    transition-duration: .001ms !important; scroll-behavior: auto !important;
  }
  .card:hover, .btn:hover { transform: none; }
}
@media print {
  .site-header, .site-footer, .nav, .drawer, .btn, .chat-slot { display: none !important; }
  body { background: #fff; color: #000; font-size: 11pt; }
  a[href^="http"]::after { content: ' (' attr(href) ')'; font-size: 9pt; }
}

/* ==========================================================================
   19. PORTAL + ADMIN SHELL
   ========================================================================== */
.app { display: grid; gap: var(--sp-6); padding-block: var(--sp-6) var(--sp-8); }
@media (min-width: 940px) { .app { grid-template-columns: 236px 1fr; gap: var(--sp-7); align-items: start; } }

.app__side { position: sticky; top: 94px; }
@media (max-width: 939px) { .app__side { position: static; } }
.app__nav { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.app__nav a {
  display: flex; align-items: center; gap: var(--sp-3);
  padding: .65rem .85rem; border-radius: var(--r-sm);
  text-decoration: none; color: var(--c-text); font-size: .94rem; font-weight: 500;
}
.app__nav a:hover { background: var(--c-bg-sunk); }
.app__nav a[aria-current="page"] {
  background: var(--c-graphite); color: var(--c-bone); font-weight: 600;
}
[data-theme="dark"] .app__nav a[aria-current="page"] { background: var(--c-bone); color: var(--c-graphite); }
.app__nav .badge {
  margin-left: auto; background: var(--c-accent-deep); color: #fff;
  font-size: .7rem; font-weight: 700; padding: .12em .5em; border-radius: var(--r-pill);
}
.app__navhead {
  font-size: .72rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--c-text-faint); padding: var(--sp-4) .85rem var(--sp-2);
}
.app__main { min-width: 0; }
.app__head {
  display: flex; flex-wrap: wrap; gap: var(--sp-4); align-items: flex-start;
  justify-content: space-between; margin-bottom: var(--sp-6);
}
.app__head h1 { margin: 0; font-size: var(--step-3); }
.app__head p { margin: var(--sp-2) 0 0; color: var(--c-text-soft); font-size: .96rem; }

.panel {
  background: var(--c-bg-raised); border: 1px solid var(--c-line);
  border-radius: var(--r-md); padding: var(--sp-5); margin-bottom: var(--sp-5);
}
.panel__head {
  display: flex; flex-wrap: wrap; gap: var(--sp-3); align-items: center;
  justify-content: space-between; margin-bottom: var(--sp-4);
}
.panel__head h2 { margin: 0; font-size: var(--step-1); }
.panel--flush { padding: 0; overflow: hidden; }
.panel--flush .panel__head { padding: var(--sp-5) var(--sp-5) 0; }

.stat-row { display: grid; gap: var(--sp-4); grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.stat {
  background: var(--c-bg-raised); border: 1px solid var(--c-line);
  border-radius: var(--r-md); padding: var(--sp-4) var(--sp-5);
}
.stat__num { display: block; font-family: var(--font-display); font-size: var(--step-3);
  font-weight: 600; line-height: 1.1; }
.stat__label { display: block; margin-top: 2px; font-size: .78rem; color: var(--c-text-faint);
  letter-spacing: .05em; text-transform: uppercase; line-height: 1.3; }

.empty { text-align: center; padding: var(--sp-7) var(--sp-5); color: var(--c-text-faint); }
.empty h3 { font-size: var(--step-1); color: var(--c-text); margin-bottom: var(--sp-2); }

.auth-card {
  max-width: 460px; margin: var(--sp-8) auto;
  background: var(--c-bg-raised); border: 1px solid var(--c-line);
  border-radius: var(--r-lg); padding: var(--sp-6); box-shadow: var(--shadow-2);
}
.auth-card h1 { font-size: var(--step-2); margin-bottom: var(--sp-2); }
.auth-card__sub { color: var(--c-text-soft); font-size: .95rem; margin-bottom: var(--sp-5); }
.auth-card__foot {
  margin-top: var(--sp-5); padding-top: var(--sp-4);
  border-top: 1px solid var(--c-line); font-size: .92rem; color: var(--c-text-soft);
}
.code-input {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 1.5rem; letter-spacing: .4em; text-align: center;
}
.qr-box {
  background: #fff; padding: var(--sp-4); border-radius: var(--r-md);
  border: 1px solid var(--c-line); display: inline-block;
}
.secret-chip {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  background: var(--c-bg-sunk); padding: .5em .8em; border-radius: var(--r-sm);
  font-size: .95rem; word-break: break-all; display: inline-block;
}

/* reCAPTCHA disclosure line (family: keep the badge AND the line) */
.rc-note{font-size:.78rem;line-height:1.45;color:var(--c-text-faint);margin:.25rem 0 .75rem}
.rc-note a{color:inherit;text-decoration:underline}
