/* ==========================================================================
   GOTHAM ACCESS CONTROL NY — COMPONENTS
   ========================================================================== */

/* ==========================================================================
   BUTTONS
   Minimum target 44×44px per WCAG 2.2 SC 2.5.8 (Target Size, Minimum).
   ========================================================================== */
.btn {
  --btn-bg: transparent;
  --btn-fg: var(--text-strong);
  --btn-bd: var(--line-strong);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  min-height: 48px;
  padding: 0 var(--sp-6);
  font-family: var(--font-body);
  font-size: var(--fs-sm);
  font-weight: var(--fw-semibold);
  letter-spacing: var(--ls-wide);
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
  border: 1px solid var(--btn-bd);
  border-radius: var(--r-sm);
  background: var(--btn-bg);
  color: var(--btn-fg);
  cursor: pointer;
  position: relative;
  isolation: isolate;
  transition: background-color var(--dur-base) var(--ease-out),
              border-color var(--dur-base) var(--ease-out),
              color var(--dur-base) var(--ease-out),
              box-shadow var(--dur-base) var(--ease-out),
              transform var(--dur-fast) var(--ease-out);
}
.btn:hover  { transform: translateY(-1px); text-decoration: none; }
.btn:active { transform: translateY(0); }
.btn:disabled, .btn[aria-disabled='true'] {
  opacity: .5; cursor: not-allowed; transform: none;
}

/* Primary — gold fill. The single strongest action on any page. */
.btn--primary {
  --btn-bg: var(--gold);
  --btn-fg: var(--text-on-gold);
  --btn-bd: var(--gold);
  box-shadow: var(--rim-gold), 0 4px 16px -6px rgba(217,174,73,.5);
}
.btn--primary:hover {
  --btn-bg: var(--gold-bright);
  --btn-bd: var(--gold-bright);
  box-shadow: var(--rim-gold), 0 8px 26px -8px rgba(217,174,73,.62);
}

/* Secondary — outlined gold. */
.btn--secondary {
  --btn-fg: var(--gold);
  --btn-bd: var(--line-gold);
  background: var(--gold-wash);
}
.btn--secondary:hover {
  --btn-fg: var(--gold-bright);
  --btn-bd: var(--gold);
  background: var(--gold-wash-2);
}

/* Tertiary — quiet outline for secondary paths. */
.btn--ghost {
  --btn-fg: var(--text-strong);
  --btn-bd: var(--line-strong);
}
.btn--ghost:hover {
  background: var(--bg-raised);
  --btn-bd: var(--text-faint);
}

/* Blue — technical/utility actions. */
.btn--blue {
  --btn-fg: var(--blue-bright);
  --btn-bd: var(--line-blue);
  background: var(--blue-wash);
}
.btn--blue:hover { background: var(--blue-wash-2); --btn-bd: var(--blue); }

/* Link-style button */
.btn--link {
  --btn-bd: transparent;
  --btn-fg: var(--gold);
  padding-inline: 0;
  min-height: 44px;
  text-transform: none;
  letter-spacing: var(--ls-normal);
  font-size: var(--fs-base);
}
.btn--link:hover { --btn-fg: var(--gold-bright); transform: none; }
.btn--link .btn__arrow { transition: transform var(--dur-base) var(--ease-out); }
.btn--link:hover .btn__arrow { transform: translateX(4px); }

.btn--sm  { min-height: 40px; padding-inline: var(--sp-4); font-size: var(--fs-xs); }
.btn--lg  { min-height: 56px; padding-inline: var(--sp-8); font-size: var(--fs-base); }
.btn--block { width: 100%; }

.btn__icon { width: 18px; height: 18px; flex: none; }

/* ==========================================================================
   EYEBROW / SECTION HEADING
   ========================================================================== */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  font-family: var(--font-body);
  font-size: var(--fs-xs);
  font-weight: var(--fw-semibold);
  letter-spacing: var(--ls-widest);
  text-transform: uppercase;
  color: var(--gold);
}
.eyebrow::before {
  content: '';
  width: 22px; height: 1px;
  background: var(--gold);
  flex: none;
}
.eyebrow--center::after {
  content: '';
  width: 22px; height: 1px;
  background: var(--gold);
  flex: none;
}

.section-head { display: grid; gap: var(--sp-4); max-width: var(--measure-wide); }
.section-head--center { margin-inline: auto; text-align: center; justify-items: center; }
.section-head h2 { margin: 0; }

/* ==========================================================================
   BADGES & PILLS
   ========================================================================== */
.badge {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  padding: var(--sp-1) var(--sp-3);
  border-radius: var(--r-pill);
  border: 1px solid var(--line);
  background: var(--bg-elevated);
  font-size: var(--fs-xs);
  font-weight: var(--fw-medium);
  color: var(--text-muted);
  line-height: 1.5;
}
.badge--gold { border-color: var(--line-gold); background: var(--gold-wash); color: var(--gold); }
.badge--blue { border-color: var(--line-blue); background: var(--blue-wash); color: var(--blue-bright); }
.badge--ok   { border-color: rgba(74,222,128,.32); background: var(--ok-wash); color: var(--ok); }
.badge__dot  { width: 6px; height: 6px; border-radius: 50%; background: currentColor; flex: none; }

/* ==========================================================================
   CARDS
   ========================================================================== */
.card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
  padding: var(--sp-7);
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--rim), var(--sh-2);
  transition: border-color var(--dur-base) var(--ease-out),
              background-color var(--dur-base) var(--ease-out),
              box-shadow var(--dur-base) var(--ease-out),
              transform var(--dur-base) var(--ease-out);
}
.card--link:hover,
.card--link:focus-within {
  background: var(--bg-raised);
  border-color: var(--line-gold);
  box-shadow: var(--rim-gold), var(--sh-4);
  transform: translateY(-3px);
}

/* Whole-card click target driven by one real link (keyboard-safe). */
.card__link::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
}
.card__link { text-decoration: none; color: inherit; }
.card__link:hover { color: inherit; }

.card__icon {
  width: 52px; height: 52px;
  display: grid;
  place-items: center;
  border-radius: var(--r-md);
  background: var(--gold-wash);
  border: 1px solid var(--line-gold);
  color: var(--gold);
  flex: none;
}
.card__icon svg { width: 26px; height: 26px; }
.card__icon--blue { background: var(--blue-wash); border-color: var(--line-blue); color: var(--blue-bright); }

.card__title { font-size: var(--fs-xl); margin: 0; }
.card__body  { color: var(--text-body); font-size: var(--fs-base); margin: 0; max-width: none; }
.card__foot  { margin-top: auto; padding-top: var(--sp-2); }

.card__media {
  margin: calc(var(--sp-7) * -1) calc(var(--sp-7) * -1) 0;
  border-radius: var(--r-lg) var(--r-lg) 0 0;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background: var(--bg-sunken);
}
.card__media img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform var(--dur-slow) var(--ease-out);
}
.card--link:hover .card__media img { transform: scale(1.04); }

.card--flush { padding: 0; }
.card--flush .card__inner { padding: var(--sp-6) var(--sp-7) var(--sp-7); display: grid; gap: var(--sp-3); }
.card--flush .card__media { margin: 0; }

.card--feature {
  border-color: var(--line-gold);
  background: linear-gradient(180deg, var(--gold-wash) 0%, transparent 46%), var(--bg-elevated);
}

/* Numbered process step */
.step { position: relative; padding-left: var(--sp-16); }
.step__num {
  position: absolute;
  left: 0; top: 0;
  width: 48px; height: 48px;
  display: grid; place-items: center;
  font-family: var(--font-display);
  font-size: var(--fs-lg);
  font-weight: var(--fw-bold);
  color: var(--gold);
  border: 1px solid var(--line-gold);
  background: var(--gold-wash);
  border-radius: var(--r-md);
}
.step h3 { font-size: var(--fs-lg); margin-bottom: var(--sp-2); }

/* ==========================================================================
   SITE HEADER
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: var(--z-header);
  background: var(--bg-scrim);
  border-bottom: 1px solid var(--line-subtle);
  transition: background-color var(--dur-base) var(--ease-out),
              border-color var(--dur-base) var(--ease-out),
              box-shadow var(--dur-base) var(--ease-out);
}
@supports (backdrop-filter: blur(1px)) {
  .site-header { background: var(--bg-scrim-soft); backdrop-filter: blur(16px) saturate(150%); }
}
.site-header.is-stuck {
  background: var(--bg-scrim);
  border-bottom-color: var(--line);
  box-shadow: var(--sh-3);
}

.header-bar {
  height: var(--header-h);
  display: flex;
  align-items: center;
  gap: var(--sp-5);
}
@media (max-width: 47.99rem) { .header-bar { height: var(--header-h-sm); } }

.brand {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-3);
  text-decoration: none;
  color: var(--text-strong);
  /* Must be allowed to shrink: with flex:none the wordmark pushes the header
     actions past the viewport edge in the 480–540px band. */
  flex: 0 1 auto;
  min-width: 0;
  margin-right: auto;
}
.brand:hover { color: var(--text-strong); }
.brand__mark { width: 40px; height: 40px; flex: none; }
.brand__text { display: grid; line-height: 1.05; min-width: 0; }
.brand__name {
  font-family: var(--font-display);
  font-size: 1.0625rem;
  font-weight: var(--fw-bold);
  letter-spacing: var(--ls-tight);
  color: var(--text-strong);
  white-space: nowrap;
}
.brand__sub {
  font-size: 0.6rem;
  letter-spacing: var(--ls-widest);
  text-transform: uppercase;
  color: var(--gold);
  font-weight: var(--fw-semibold);
  white-space: nowrap;
}
/* The "NYC · Long Island · Westchester" line is ~240px of letter-spaced text —
   wider than the company name itself. It is the first thing to go when the
   header gets tight, and the footer carries the same information anyway. */
@media (max-width: 60rem) { .brand__sub { display: none; } }
@media (max-width: 22rem) { .brand__text { display: none; } }
/* Grid items default to min-width:auto, so the container shrinking is not
   enough — without min-width:0 here the wordmark overflows its own box and
   slides under the nav. */
.brand__name, .brand__sub { min-width: 0; overflow: hidden; text-overflow: ellipsis; }

/* --- Desktop navigation --- */
.nav { display: none; }
@media (min-width: 68rem) { .nav { display: block; } }

.nav__list { display: flex; align-items: center; gap: 0; list-style: none; margin: 0; padding: 0; }

.nav__link {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-1);
  min-height: 44px;
  padding: 0 var(--sp-2);
  border-radius: var(--r-sm);
  font-size: var(--fs-sm);
  font-weight: var(--fw-medium);
  color: var(--text-body);
  text-decoration: none;
  white-space: nowrap;
  transition: color var(--dur-fast) var(--ease-out), background-color var(--dur-fast) var(--ease-out);
}
.nav__link:hover { color: var(--text-strong); background: var(--bg-raised); }
.nav__link[aria-current='page'] { color: var(--gold); }
.nav__link[aria-expanded='true'] { color: var(--text-strong); background: var(--bg-raised); }
.nav__chev { width: 14px; height: 14px; transition: transform var(--dur-base) var(--ease-out); opacity: .7; }
.nav__link[aria-expanded='true'] .nav__chev { transform: rotate(180deg); }

/* Mega menu */
.nav__item { position: relative; }
.megamenu {
  position: absolute;
  top: calc(100% + 10px);
  left: 50%;
  translate: -50% 0;
  width: max-content;
  max-width: min(92vw, 860px);
  padding: var(--sp-6);
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--rim), var(--sh-5);
  display: none;
}
.megamenu[data-open='true'] { display: block; animation: menu-in var(--dur-base) var(--ease-out); }
@keyframes menu-in { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }

.megamenu--wide { max-width: min(94vw, 1000px); }

.megamenu__cols { display: grid; grid-template-columns: repeat(4, minmax(180px, 1fr)); gap: var(--sp-6); }

.megamenu__head {
  display: flex; align-items: center; gap: var(--sp-2);
  padding-bottom: var(--sp-3);
  margin-bottom: var(--sp-3);
  border-bottom: 1px solid var(--line-subtle);
  color: var(--gold);
  font-family: var(--font-body);
  font-size: var(--fs-xs);
  font-weight: var(--fw-semibold);
  letter-spacing: var(--ls-wide);
  text-transform: uppercase;
  text-decoration: none;
}
.megamenu__head:hover { color: var(--gold-bright); }
.megamenu__head svg { flex: none; }

.megamenu__col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.megamenu__col a:not(.megamenu__head) {
  display: block;
  min-height: 38px;
  padding: var(--sp-2) var(--sp-2);
  margin-inline: calc(var(--sp-2) * -1);
  border-radius: var(--r-sm);
  font-size: var(--fs-sm);
  line-height: 1.35;
  color: var(--text-body);
  text-decoration: none;
  transition: background-color var(--dur-fast) var(--ease-out), color var(--dur-fast) var(--ease-out);
}
.megamenu__col a:not(.megamenu__head):hover { background: var(--bg-raised); color: var(--text-strong); }

.megamenu__foot {
  margin-top: var(--sp-5);
  padding-top: var(--sp-4);
  border-top: 1px solid var(--line-subtle);
  display: flex; justify-content: space-between; align-items: center; gap: var(--sp-4);
  font-size: var(--fs-sm);
}

/* Header actions */
.header-actions { display: flex; align-items: center; gap: var(--sp-3); flex: none; }

.header-phone {
  display: none;
  align-items: center;
  gap: var(--sp-2);
  text-decoration: none;
  color: var(--text-strong);
  font-family: var(--font-display);
  font-weight: var(--fw-semibold);
  font-size: var(--fs-base);
  letter-spacing: var(--ls-tight);
  min-height: 44px;
  padding-inline: var(--sp-2);
}
.header-phone:hover { color: var(--gold); }
.header-phone svg { width: 17px; height: 17px; color: var(--gold); }
@media (min-width: 85rem) { .header-phone { display: inline-flex; } }
@media (max-width: 30rem)  { .header-actions .btn--primary { display: none; } }

/* Hamburger */
.nav-toggle {
  display: inline-grid;
  place-items: center;
  width: 46px; height: 46px;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-sm);
  color: var(--text-strong);
  background: transparent;
  transition: background-color var(--dur-fast) var(--ease-out), border-color var(--dur-fast) var(--ease-out);
}
.nav-toggle:hover { background: var(--bg-raised); border-color: var(--gold); }
@media (min-width: 68rem) { .nav-toggle { display: none; } }
.nav-toggle__bars { width: 20px; height: 14px; position: relative; }
.nav-toggle__bars span {
  position: absolute; left: 0; width: 100%; height: 2px;
  background: currentColor; border-radius: 2px;
  transition: transform var(--dur-base) var(--ease-out), opacity var(--dur-fast) var(--ease-out);
}
.nav-toggle__bars span:nth-child(1) { top: 0; }
.nav-toggle__bars span:nth-child(2) { top: 6px; }
.nav-toggle__bars span:nth-child(3) { top: 12px; }
.nav-toggle[aria-expanded='true'] .nav-toggle__bars span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded='true'] .nav-toggle__bars span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded='true'] .nav-toggle__bars span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ==========================================================================
   MOBILE DRAWER
   ========================================================================== */
.drawer {
  position: fixed;
  inset: 0;
  z-index: var(--z-drawer);
  visibility: hidden;
  /* The closed panel sits at translateX(100%), i.e. one panel-width past the
     right edge. A fixed element is not clipped by an ancestor's overflow, so
     without this it adds ~420px of horizontal document scroll on every page. */
  overflow: hidden;
}
.drawer[data-open='true'] { visibility: visible; }

.drawer__scrim {
  position: absolute; inset: 0;
  background: rgba(4,6,12,.7);
  opacity: 0;
  transition: opacity var(--dur-base) var(--ease-out);
}
.drawer[data-open='true'] .drawer__scrim { opacity: 1; }

.drawer__panel {
  position: absolute;
  inset: 0 0 0 auto;
  width: min(420px, 92vw);
  background: var(--bg-surface);
  border-left: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform var(--dur-slow) var(--ease-deco);
  overflow-y: auto;
  overscroll-behavior: contain;
}
.drawer[data-open='true'] .drawer__panel { transform: none; }

.drawer__head {
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--sp-4);
  padding: var(--sp-4) var(--sp-5);
  border-bottom: 1px solid var(--line-subtle);
  position: sticky; top: 0;
  background: var(--bg-surface);
  z-index: 1;
}
.drawer__close {
  width: 46px; height: 46px;
  display: grid; place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-sm);
  color: var(--text-strong);
}
.drawer__close:hover { background: var(--bg-raised); border-color: var(--gold); }
.drawer__close svg { width: 20px; height: 20px; }

.drawer__body { padding: var(--sp-5); display: grid; gap: var(--sp-2); }
.drawer__foot {
  margin-top: auto;
  padding: var(--sp-5);
  border-top: 1px solid var(--line-subtle);
  display: grid; gap: var(--sp-3);
}

.drawer__link {
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--sp-3);
  min-height: 52px;
  padding: var(--sp-2) var(--sp-3);
  border-radius: var(--r-md);
  color: var(--text-strong);
  font-family: var(--font-display);
  font-size: var(--fs-lg);
  font-weight: var(--fw-semibold);
  text-decoration: none;
}
.drawer__link:hover { background: var(--bg-raised); color: var(--text-strong); }
.drawer__link[aria-current='page'] { color: var(--gold); }

.drawer__sub { display: grid; gap: 2px; padding: var(--sp-1) 0 var(--sp-3) var(--sp-3); }
.drawer__sub a {
  min-height: 44px; display: flex; align-items: center;
  padding-inline: var(--sp-3);
  border-radius: var(--r-sm);
  color: var(--text-muted); font-size: var(--fs-sm);
  font-family: var(--font-body); font-weight: var(--fw-regular);
  text-decoration: none;
}
.drawer__sub a:hover { color: var(--text-strong); background: var(--bg-raised); }

.drawer__acc { border-bottom: 1px solid var(--line-subtle); padding-bottom: var(--sp-2); }
.drawer__acc summary { list-style: none; cursor: pointer; }
.drawer__acc summary::-webkit-details-marker { display: none; }
.drawer__acc summary .drawer__link { width: 100%; }
.drawer__acc summary svg { width: 18px; height: 18px; color: var(--gold); transition: transform var(--dur-base) var(--ease-out); }
.drawer__acc[open] summary svg { transform: rotate(180deg); }

/* ==========================================================================
   HERO
   ========================================================================== */
.hero {
  position: relative;
  overflow: hidden;
  background: var(--bg-base);
  isolation: isolate;
}
.hero__bg {
  position: absolute; inset: 0;
  z-index: -2;
}
.hero__bg img { width: 100%; height: 100%; object-fit: cover; }
/* Two crossed gradients: a vertical one to seat the header and footer edges,
   and a horizontal one that darkens only far enough behind the copy to hold
   4.5:1 on the lede. Any heavier and the architecture stops reading. */
.hero__bg::after {
  content: '';
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(7,11,20,.72) 0%, rgba(7,11,20,.38) 40%, rgba(7,11,20,.88) 100%),
    linear-gradient(90deg, rgba(7,11,20,.92) 0%, rgba(7,11,20,.80) 34%, rgba(7,11,20,.30) 66%, rgba(7,11,20,.14) 100%);
}
/* Vignette keeps the eye in the frame without crushing the midtones. */
.hero__bg::before {
  content: '';
  position: absolute; inset: 0;
  z-index: 1;
  background: radial-gradient(120% 100% at 65% 45%, transparent 34%, rgba(4,6,12,.55) 100%);
}
.hero__inner {
  position: relative;
  padding-block: clamp(3.5rem, 2rem + 7vw, 8rem);
  display: grid;
  gap: var(--sp-8);
}
.hero__content { display: grid; gap: var(--sp-5); max-width: 44rem; }
.hero h1 { margin: 0; }
.hero__lede { font-size: var(--fs-lg); line-height: var(--lh-relaxed); color: var(--text-body); max-width: 40rem; }
.hero__actions { display: flex; flex-wrap: wrap; gap: var(--sp-3); margin-top: var(--sp-2); }

.hero__trust {
  display: flex; flex-wrap: wrap;
  gap: var(--sp-3) var(--sp-6);
  margin-top: var(--sp-4);
  padding-top: var(--sp-6);
  border-top: 1px solid var(--line-subtle);
  list-style: none; padding-left: 0;
}
.hero__trust li {
  display: flex; align-items: center; gap: var(--sp-2);
  font-size: var(--fs-sm); color: var(--text-muted);
}
.hero__trust svg { width: 17px; height: 17px; color: var(--gold); flex: none; }

/* Compact hero for interior pages */
.page-hero {
  position: relative;
  overflow: hidden;
  padding-block: clamp(2.5rem, 1.6rem + 4vw, 5rem);
  background: linear-gradient(180deg, var(--bg-surface), var(--bg-base));
  border-bottom: 1px solid var(--line-subtle);
}
.page-hero .crumbs { position: relative; margin-bottom: var(--sp-6); }
.page-hero__inner { position: relative; display: grid; gap: var(--sp-4); max-width: 52rem; }
.page-hero h1 { font-size: var(--fs-4xl); margin: 0; }

/* ==========================================================================
   STAT STRIP
   ========================================================================== */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr)); gap: 1px; background: var(--line-subtle); border: 1px solid var(--line-subtle); border-radius: var(--r-lg); overflow: hidden; }
.stat { background: var(--bg-elevated); padding: var(--sp-6); display: grid; gap: var(--sp-1); }
.stat__num { font-family: var(--font-display); font-size: var(--fs-3xl); font-weight: var(--fw-bold); color: var(--gold); line-height: 1; letter-spacing: var(--ls-tighter); }
.stat__label { font-size: var(--fs-sm); color: var(--text-muted); }

/* ==========================================================================
   FORMS
   ========================================================================== */
.form { display: grid; gap: var(--sp-5); }
.form__row { display: grid; gap: var(--sp-5); }
@media (min-width: 40rem) { .form__row--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.field { display: grid; gap: var(--sp-2); }
.field__label {
  font-size: var(--fs-sm);
  font-weight: var(--fw-medium);
  color: var(--text-strong);
  display: flex; align-items: center; gap: var(--sp-2);
}
.field__req { color: var(--gold); }
.field__hint { font-size: var(--fs-xs); color: var(--text-faint); }
.field__error { font-size: var(--fs-xs); color: var(--danger); display: none; align-items: center; gap: var(--sp-1); }
.field[data-invalid='true'] .field__error { display: flex; }
.field[data-invalid='true'] .input,
.field[data-invalid='true'] .select,
.field[data-invalid='true'] .textarea { border-color: var(--danger); }

.input, .select, .textarea {
  width: 100%;
  min-height: 50px;
  padding: var(--sp-3) var(--sp-4);
  background: var(--bg-raised);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-sm);
  color: var(--text-strong);
  font-size: var(--fs-base);
  transition: border-color var(--dur-fast) var(--ease-out), background-color var(--dur-fast) var(--ease-out);
}
.input:hover, .select:hover, .textarea:hover { border-color: var(--text-faint); }
.input:focus, .select:focus, .textarea:focus { border-color: var(--gold); background: var(--bg-elevated); }
.textarea { min-height: 130px; resize: vertical; line-height: var(--lh-normal); padding-top: var(--sp-3); }

.select {
  appearance: none;
  padding-right: var(--sp-10);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2393A3BC' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right var(--sp-4) center;
  background-size: 18px;
}
.select option { background: var(--bg-elevated); color: var(--text-strong); }

/* Choice chips — radio/checkbox groups that stay keyboard and SR friendly */
.choices { display: flex; flex-wrap: wrap; gap: var(--sp-2); }
.choice { position: relative; }
.choice input { position: absolute; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.choice span {
  display: inline-flex; align-items: center; gap: var(--sp-2);
  min-height: 44px; padding: var(--sp-2) var(--sp-4);
  border: 1px solid var(--line-strong); border-radius: var(--r-pill);
  font-size: var(--fs-sm); color: var(--text-body);
  transition: all var(--dur-fast) var(--ease-out);
}
.choice input:hover + span { border-color: var(--text-faint); background: var(--bg-raised); }
.choice input:checked + span { border-color: var(--gold); background: var(--gold-wash); color: var(--gold); font-weight: var(--fw-medium); }
.choice input:focus-visible + span { outline: 2px solid var(--gold); outline-offset: 3px; }

.check { display: grid; grid-template-columns: auto 1fr; gap: var(--sp-3); align-items: start; cursor: pointer; }
.check input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--gold); flex: none; }
.check span { font-size: var(--fs-sm); color: var(--text-muted); }

.form__note { font-size: var(--fs-xs); color: var(--text-faint); }
.form__status { display: none; padding: var(--sp-4) var(--sp-5); border-radius: var(--r-md); font-size: var(--fs-sm); }
.form__status[data-state='ok']    { display: block; background: var(--ok-wash); border: 1px solid rgba(74,222,128,.3); color: var(--ok); }
.form__status[data-state='error'] { display: block; background: var(--danger-wash); border: 1px solid rgba(251,113,133,.3); color: var(--danger); }

/* Honeypot */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ==========================================================================
   ACCORDION / FAQ
   ========================================================================== */
.accordion { display: grid; gap: var(--sp-3); }
.acc {
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--bg-elevated);
  overflow: hidden;
  transition: border-color var(--dur-base) var(--ease-out);
}
.acc[open] { border-color: var(--line-gold); }
.acc summary {
  list-style: none;
  cursor: pointer;
  display: flex; align-items: center; justify-content: space-between; gap: var(--sp-4);
  padding: var(--sp-5) var(--sp-6);
  min-height: 56px;
  font-family: var(--font-display);
  font-size: var(--fs-base);
  font-weight: var(--fw-semibold);
  color: var(--text-strong);
  transition: background-color var(--dur-fast) var(--ease-out);
}
.acc summary::-webkit-details-marker { display: none; }
.acc summary:hover { background: var(--bg-raised); }
.acc summary:focus-visible { outline: 2px solid var(--gold); outline-offset: -2px; }
.acc__icon { width: 20px; height: 20px; flex: none; color: var(--gold); transition: transform var(--dur-base) var(--ease-out); }
.acc[open] .acc__icon { transform: rotate(45deg); }
.acc__body { padding: 0 var(--sp-6) var(--sp-6); color: var(--text-body); }
.acc__body > * + * { margin-top: var(--sp-4); }
.acc__body p { max-width: none; }

/* ==========================================================================
   SPEC / COMPARISON TABLE
   ========================================================================== */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--bg-elevated); }
.table { min-width: 560px; font-size: var(--fs-sm); }
.table th, .table td { padding: var(--sp-4) var(--sp-5); text-align: left; border-bottom: 1px solid var(--line-subtle); vertical-align: top; }
.table thead th {
  background: var(--bg-raised);
  color: var(--gold);
  font-family: var(--font-body);
  font-size: var(--fs-xs);
  font-weight: var(--fw-semibold);
  letter-spacing: var(--ls-wide);
  text-transform: uppercase;
  white-space: nowrap;
}
.table tbody tr:last-child td { border-bottom: 0; }
.table tbody tr:hover { background: var(--bg-raised); }
.table td:first-child { color: var(--text-strong); font-weight: var(--fw-medium); }

/* ==========================================================================
   FEATURE LIST
   ========================================================================== */
.ticks { display: grid; gap: var(--sp-3); list-style: none; padding: 0; margin: 0; }
.ticks li { display: grid; grid-template-columns: 22px 1fr; gap: var(--sp-3); align-items: start; }
.ticks svg { width: 20px; height: 20px; color: var(--gold); margin-top: 2px; }
.ticks--2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); }

/* ==========================================================================
   TESTIMONIAL
   ========================================================================== */
.quote {
  position: relative;
  padding: var(--sp-8);
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  display: grid; gap: var(--sp-5);
}
.quote__text { font-size: var(--fs-lg); line-height: var(--lh-relaxed); color: var(--text-strong); max-width: none; }
.quote__foot { display: flex; align-items: center; gap: var(--sp-3); }
.quote__avatar { width: 44px; height: 44px; border-radius: 50%; background: var(--bg-raised); border: 1px solid var(--line); display: grid; place-items: center; font-family: var(--font-display); font-weight: var(--fw-bold); color: var(--gold); flex: none; }
.quote__who b { display: block; color: var(--text-strong); font-size: var(--fs-sm); }
.quote__who span { display: block; color: var(--text-muted); font-size: var(--fs-xs); }
.stars { display: flex; gap: 2px; color: var(--gold); }
.stars svg { width: 16px; height: 16px; }

/* ==========================================================================
   BREADCRUMBS
   ========================================================================== */
.crumbs { font-size: var(--fs-xs); color: var(--text-faint); }
.crumbs ol { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-2); list-style: none; margin: 0; padding: 0; }
.crumbs li { display: flex; align-items: center; gap: var(--sp-2); }
.crumbs li + li::before { content: '/'; color: var(--line-strong); }
.crumbs a { color: var(--text-muted); text-decoration: none; }
.crumbs a:hover { color: var(--gold); text-decoration: underline; }
.crumbs [aria-current='page'] { color: var(--text-body); }

/* ==========================================================================
   CTA BAND
   ========================================================================== */
.cta-band {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, var(--blue-ink) 0%, var(--bg-base) 55%, #14100420 100%), var(--bg-surface);
  border-top: 1px solid var(--line-gold);
  border-bottom: 1px solid var(--line-subtle);
}
.cta-band__inner {
  position: relative;
  padding-block: var(--section-y);
  display: grid; gap: var(--sp-6);
  justify-items: center; text-align: center;
}
.cta-band h2 { max-width: 22ch; margin: 0; }
.cta-band p { max-width: 56ch; }

/* ==========================================================================
   LOCATION / LINK LISTS
   ========================================================================== */
.linklist { columns: 2; column-gap: var(--sp-8); list-style: none; margin: 0; padding: 0; }
@media (min-width: 40rem) { .linklist { columns: 3; } }
@media (min-width: 64rem) { .linklist--4 { columns: 4; } }
.linklist li { break-inside: avoid; margin-bottom: var(--sp-1); }
.linklist a {
  display: block;
  min-height: 36px;
  padding: var(--sp-1) 0;
  font-size: var(--fs-sm);
  color: var(--text-muted);
  text-decoration: none;
  line-height: 1.5;
}
.linklist a:hover { color: var(--gold); text-decoration: underline; }

.area-group { display: grid; gap: var(--sp-4); }
.area-group__head {
  display: flex; align-items: baseline; justify-content: space-between; gap: var(--sp-4);
  padding-bottom: var(--sp-3); border-bottom: 1px solid var(--line-subtle);
}
.area-group__head h3 { font-size: var(--fs-lg); margin: 0; }
.area-group__head span { font-size: var(--fs-xs); color: var(--text-faint); white-space: nowrap; }

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer {
  background: var(--bg-sunken);
  border-top: 1px solid var(--line-subtle);
  padding-block: var(--section-y) var(--sp-8);
  font-size: var(--fs-sm);
}
.footer-grid {
  display: grid;
  gap: var(--sp-10);
  grid-template-columns: 1fr;
}
@media (min-width: 48rem)  { .footer-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 68rem)  { .footer-grid { grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: var(--sp-12); } }

.footer-col h3 {
  font-size: var(--fs-xs);
  font-family: var(--font-body);
  font-weight: var(--fw-semibold);
  letter-spacing: var(--ls-wider);
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: var(--sp-4);
}
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--sp-1); }
.footer-col a {
  display: inline-block;
  min-height: 32px;
  padding-block: var(--sp-1);
  color: var(--text-muted);
  text-decoration: none;
  line-height: 1.5;
}
.footer-col a:hover { color: var(--gold); text-decoration: underline; }

.footer-brand { display: grid; gap: var(--sp-4); max-width: 34ch; }
.footer-contact { display: grid; gap: var(--sp-3); margin-top: var(--sp-2); }
.footer-contact a, .footer-contact div {
  display: flex; align-items: flex-start; gap: var(--sp-3);
  color: var(--text-body); text-decoration: none; min-height: 32px;
}
.footer-contact a:hover { color: var(--gold); }
.footer-contact svg { width: 17px; height: 17px; color: var(--gold); flex: none; margin-top: 3px; }

.footer-bottom {
  margin-top: var(--section-y-sm);
  padding-top: var(--sp-6);
  border-top: 1px solid var(--line-subtle);
  display: flex; flex-wrap: wrap; gap: var(--sp-4) var(--sp-6);
  align-items: center; justify-content: space-between;
  font-size: var(--fs-xs); color: var(--text-faint);
}
.footer-bottom nav { display: flex; flex-wrap: wrap; gap: var(--sp-4); }
.footer-bottom a { color: var(--text-faint); text-decoration: none; }
.footer-bottom a:hover { color: var(--gold); text-decoration: underline; }

/* ==========================================================================
   MOBILE STICKY CALL BAR
   ========================================================================== */
.callbar {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: var(--z-sticky);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--line);
  border-top: 1px solid var(--line-gold);
  padding-bottom: env(safe-area-inset-bottom);
  transform: translateY(110%);
  transition: transform var(--dur-slow) var(--ease-deco);
}
.callbar.is-visible { transform: none; }
@media (min-width: 48rem) { .callbar { display: none; } }
.callbar a {
  display: flex; align-items: center; justify-content: center; gap: var(--sp-2);
  min-height: 56px;
  background: var(--bg-elevated);
  color: var(--text-strong);
  font-size: var(--fs-sm);
  font-weight: var(--fw-semibold);
  letter-spacing: var(--ls-wide);
  text-transform: uppercase;
  text-decoration: none;
}
.callbar a:first-child { background: var(--gold); color: var(--text-on-gold); }
.callbar svg { width: 18px; height: 18px; }
/* Keep the footer clear of the fixed bar on mobile */
@media (max-width: 47.99rem) { body.has-callbar .site-footer { padding-bottom: calc(var(--sp-8) + 56px); } }

/* ==========================================================================
   BACK TO TOP
   ========================================================================== */
.back-to-top {
  position: fixed;
  right: var(--sp-5);
  bottom: calc(var(--sp-5) + 56px);
  z-index: var(--z-sticky);
  width: 46px; height: 46px;
  display: grid; place-items: center;
  background: var(--bg-elevated);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-sm);
  color: var(--text-strong);
  box-shadow: var(--sh-3);
  opacity: 0; visibility: hidden;
  transition: opacity var(--dur-base) var(--ease-out), visibility var(--dur-base), background-color var(--dur-fast);
}
@media (min-width: 48rem) { .back-to-top { bottom: var(--sp-6); } }
.back-to-top.is-visible { opacity: 1; visibility: visible; }
.back-to-top:hover { background: var(--bg-raised); border-color: var(--gold); color: var(--gold); }
.back-to-top svg { width: 20px; height: 20px; }

/* ==========================================================================
   NOTICE / DISCLOSURE
   ========================================================================== */
.notice {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: var(--sp-3);
  padding: var(--sp-5);
  border-radius: var(--r-md);
  border: 1px solid var(--line-blue);
  background: var(--blue-wash);
  font-size: var(--fs-sm);
  color: var(--text-body);
}
.notice svg { width: 20px; height: 20px; color: var(--blue-bright); margin-top: 2px; }
.notice--gold { border-color: var(--line-gold); background: var(--gold-wash); }
.notice--gold svg { color: var(--gold); }
.notice p { max-width: none; }
.notice p + p { margin-top: var(--sp-2); }

/* ==========================================================================
   IMAGE FALLBACK
   Shown when a manifest image has not been generated yet. Visible on purpose:
   a silent empty box in a two-column split reads as a layout bug.
   ========================================================================== */
.img-fallback {
  width: 100%;
  border-radius: var(--r-lg);
  border: 1px dashed var(--line-strong);
  background:
    linear-gradient(135deg, var(--gold-wash), transparent 55%),
    repeating-linear-gradient(45deg, transparent 0 12px, rgba(122,145,186,.05) 12px 24px),
    var(--bg-elevated);
}

/* Images inside content flow get the same treatment as cards. */
.prose picture img, .split picture img { border-radius: var(--r-lg); width: 100%; }

/* Corner cell of a comparison table: labels nothing, so it is a td, not a th. */
.table__corner { background: var(--bg-raised); }
/* A horizontally scrollable table is a focusable region so keyboard users can
   reach the scroll (WCAG 2.2 SC 2.1.1). Give it a visible focus ring. */
.table-wrap:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.table tbody th[scope='row'] { font-weight: var(--fw-medium); color: var(--text-strong); }
