/* ===========================================================
   FindMyNotary — stylesheet
   Palette: deep navy ink + notary-seal gold on cream surfaces
   =========================================================== */

/* ---------- tokens ---------- */
:root {
  --text-xs: clamp(0.75rem, 0.72rem + 0.15vw, 0.8125rem);
  --text-sm: clamp(0.875rem, 0.85rem + 0.15vw, 0.9375rem);
  --text-base: clamp(1rem, 0.97rem + 0.15vw, 1.0625rem);
  --text-lg: clamp(1.125rem, 1.05rem + 0.4vw, 1.375rem);
  --text-xl: clamp(1.375rem, 1.15rem + 1vw, 2rem);
  --text-2xl: clamp(2rem, 1.35rem + 2.4vw, 3.25rem);

  --space-1: 0.25rem; --space-2: 0.5rem;  --space-3: 0.75rem; --space-4: 1rem;
  --space-5: 1.25rem; --space-6: 1.5rem;  --space-8: 2rem;    --space-10: 2.5rem;
  --space-12: 3rem;   --space-16: 4rem;   --space-20: 5rem;   --space-24: 6rem;

  --radius: 14px;
  --radius-sm: 9px;
  --radius-pill: 999px;
  --maxw: 1180px;

  --font-display: 'Zodiak', 'Iowan Old Style', Georgia, serif;
  --font-body: 'Satoshi', 'Inter', system-ui, -apple-system, sans-serif;

  --shadow-sm: 0 1px 2px rgba(11, 31, 58, .06), 0 2px 8px rgba(11, 31, 58, .05);
  --shadow-md: 0 4px 12px rgba(11, 31, 58, .08), 0 12px 32px rgba(11, 31, 58, .07);
}

:root, [data-theme='light'] {
  --bg: #FBF8F3;
  --surface: #FFFFFF;
  --surface-2: #F4EFE6;
  --ink: #0B1F3A;
  --ink-soft: #16325A;
  --text: #17253B;
  --text-muted: #5A6779;
  --text-faint: #8792A3;
  --border: #E2DACC;
  --border-strong: #CFC3AE;
  --gold: #9A6D10;
  --gold-bright: #C9962C;
  --gold-soft: #F6EBD2;
  --success: #1F6B4A;
  --on-ink: #F7F2E8;
}

[data-theme='dark'] {
  --bg: #0A1728;
  --surface: #0F2138;
  --surface-2: #142B47;
  --ink: #06101D;
  --ink-soft: #0B1F3A;
  --text: #E8EDF5;
  --text-muted: #A7B4C6;
  --text-faint: #7C8DA3;
  --border: #22405F;
  --border-strong: #2E5679;
  --gold: #E8B551;
  --gold-bright: #F0C468;
  --gold-soft: #1D3352;
  --success: #63C79B;
  --on-ink: #F7F2E8;
  --shadow-sm: 0 1px 2px rgba(0,0,0,.3);
  --shadow-md: 0 8px 28px rgba(0,0,0,.38);
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-wrap: break-word;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { margin: 0 0 var(--space-4); line-height: 1.15; letter-spacing: -0.01em; color: var(--ink); }
[data-theme='dark'] h1, [data-theme='dark'] h2, [data-theme='dark'] h3, [data-theme='dark'] h4 { color: var(--text); }
h1 { font-family: var(--font-display); font-size: var(--text-2xl); font-weight: 700; }
h2 { font-family: var(--font-display); font-size: var(--text-xl); font-weight: 700; }
h3 { font-size: var(--text-lg); font-weight: 700; }
h4 { font-size: var(--text-base); font-weight: 700; }
p { margin: 0 0 var(--space-4); }
ul { margin: 0 0 var(--space-4); padding-left: 1.15rem; }
li { margin-bottom: var(--space-2); }
:focus-visible { outline: 3px solid var(--gold-bright); outline-offset: 2px; border-radius: 4px; }

.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--space-5); }
.section { padding-block: clamp(var(--space-12), 7vw, var(--space-24)); }
.section--tight { padding-block: clamp(var(--space-10), 5vw, var(--space-16)); }
.section--alt { background: var(--surface-2); }
.eyebrow {
  font-size: var(--text-xs); font-weight: 700; letter-spacing: .14em;
  text-transform: uppercase; color: var(--gold); margin-bottom: var(--space-3);
}
.lede { font-size: var(--text-lg); color: var(--text-muted); max-width: 62ch; line-height: 1.5; }
.muted { color: var(--text-muted); }
.small { font-size: var(--text-sm); }
.tiny { font-size: var(--text-xs); }
.center { text-align: center; }
.center .lede { margin-inline: auto; }
.stack > * + * { margin-top: var(--space-4); }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: var(--space-4); top: -60px; z-index: 200;
  background: var(--ink); color: var(--on-ink); padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-sm); transition: top .2s;
}
.skip-link:focus { top: var(--space-3); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2);
  font-family: var(--font-body); font-size: var(--text-sm); font-weight: 700;
  padding: 0.8rem 1.25rem; min-height: 48px;
  border-radius: var(--radius-pill); border: 1.5px solid transparent;
  text-decoration: none; cursor: pointer; text-align: center;
  transition: transform .15s ease, background .2s ease, border-color .2s ease, color .2s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn--primary { background: var(--ink); color: var(--on-ink); }
.btn--primary:hover { background: var(--ink-soft); }
.btn--gold { background: var(--gold-bright); color: #2A1C02; }
.btn--gold:hover { background: #DCA83C; }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--border-strong); }
[data-theme='dark'] .btn--ghost { color: var(--text); }
.btn--ghost:hover { border-color: var(--ink); background: var(--surface); }
.btn--onink { background: rgba(255,255,255,.1); color: var(--on-ink); border-color: rgba(247,242,232,.45); }
.btn--onink:hover { background: rgba(255,255,255,.18); }
.btn--sm { min-height: 40px; padding: 0.5rem 0.9rem; font-size: var(--text-xs); }
.btn--block { width: 100%; }
.btn--lg { font-size: var(--text-base); padding: 1rem 1.6rem; min-height: 54px; }

/* ---------- badges ---------- */
.badge {
  display: inline-flex; align-items: center; gap: 5px; white-space: nowrap;
  font-size: var(--text-xs); font-weight: 700; letter-spacing: .02em;
  padding: 4px 10px; border-radius: var(--radius-pill); border: 1px solid var(--border);
  background: var(--surface-2); color: var(--text-muted);
}
.badge--verified { background: var(--gold-soft); border-color: var(--gold-bright); color: var(--gold); }
.badge--featured { background: var(--ink); border-color: var(--ink); color: var(--on-ink); }
.badge--sample { background: transparent; border-style: dashed; color: var(--text-faint); }
.badge--check { color: var(--success); border-color: color-mix(in oklab, var(--success) 40%, transparent); background: color-mix(in oklab, var(--success) 10%, transparent); }
.badge svg { width: 12px; height: 12px; flex: none; }

/* ---------- header ---------- */
.header {
  position: sticky; top: 0; z-index: 60;
  background: color-mix(in oklab, var(--bg) 92%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.header__inner { display: flex; align-items: center; gap: var(--space-4); min-height: 70px; }
.logo { display: inline-flex; align-items: center; gap: var(--space-3); text-decoration: none; color: var(--ink); flex: none; }
[data-theme='dark'] .logo { color: var(--text); }
.logo svg { width: 34px; height: 34px; flex: none; color: var(--gold-bright); }
.logo__word { font-family: var(--font-display); font-weight: 700; font-size: 1.2rem; letter-spacing: -0.015em; white-space: nowrap; }
.logo__word em { font-style: normal; color: var(--gold); }
.nav { display: flex; align-items: center; gap: var(--space-5); margin-left: auto; }
.nav a { font-size: var(--text-sm); font-weight: 500; text-decoration: none; color: var(--text-muted); white-space: nowrap; }
.nav a:hover, .nav a[aria-current='page'] { color: var(--ink); }
[data-theme='dark'] .nav a:hover, [data-theme='dark'] .nav a[aria-current='page'] { color: var(--gold-bright); }
.header__actions { display: flex; align-items: center; gap: var(--space-2); margin-left: var(--space-2); }
.icon-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: var(--radius-pill);
  border: 1.5px solid var(--border); background: transparent; color: var(--text-muted); cursor: pointer;
}
.icon-btn:hover { color: var(--ink); border-color: var(--border-strong); }
.icon-btn svg { width: 19px; height: 19px; }
.nav-toggle { display: none; }
@media (max-width: 900px) {
  .nav {
    position: fixed; inset: 70px 0 auto; flex-direction: column; align-items: stretch;
    gap: 0; background: var(--surface); border-bottom: 1px solid var(--border);
    padding: var(--space-2) var(--space-5) var(--space-6); box-shadow: var(--shadow-md);
    display: none;
  }
  .nav[data-open='true'] { display: flex; }
  .nav a { padding: var(--space-4) 0; font-size: var(--text-base); border-bottom: 1px solid var(--border); }
  .nav .btn { margin-top: var(--space-4); }
  .nav-toggle { display: inline-flex; }
  .header__actions { margin-left: auto; }
  .header__actions .btn--nav { display: none; }
}
@media (min-width: 901px) { .nav .btn--nav-mobile { display: none; } }

/* ---------- hero ---------- */
.hero { position: relative; background: var(--ink); color: var(--on-ink); overflow: hidden; }
.hero__media { position: absolute; inset: 0; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; object-position: 62% 40%; opacity: .5; }
.hero__media::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(6,16,29,.94) 0%, rgba(6,16,29,.86) 42%, rgba(6,16,29,.5) 100%);
}
.hero__inner { position: relative; padding-block: clamp(var(--space-12), 8vw, var(--space-24)); max-width: 720px; }
.hero h1 { color: var(--on-ink); font-size: var(--text-2xl); margin-bottom: var(--space-5); }
.hero h1 em { font-style: normal; color: var(--gold-bright); }
.hero__sub { font-size: var(--text-lg); color: rgba(247,242,232,.82); max-width: 46ch; margin-bottom: var(--space-8); }
.hero .eyebrow { color: var(--gold-bright); }

/* search */
.searchbar { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.searchbar__field { position: relative; flex: 1 1 260px; min-width: 0; }
.searchbar__field svg { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; color: var(--text-faint); }
.searchbar input {
  width: 100%; min-height: 56px; padding: 0 var(--space-4) 0 44px;
  font: inherit; font-size: var(--text-base); color: var(--text);
  background: var(--surface); border: 1.5px solid var(--border);
  border-radius: var(--radius-pill);
}
.searchbar input::placeholder { color: var(--text-faint); }
.searchbar .btn { min-height: 56px; flex: 0 0 auto; }
.searchbar__geo { background: rgba(255,255,255,.08); color: var(--on-ink); border: 1.5px solid rgba(247,242,232,.4); }
.hero__quick { margin-top: var(--space-6); display: flex; flex-wrap: wrap; gap: var(--space-2); align-items: center; }
.hero__quick span { font-size: var(--text-xs); text-transform: uppercase; letter-spacing: .12em; color: rgba(247,242,232,.6); margin-right: var(--space-1); }
.chip {
  display: inline-block; font-size: var(--text-sm); text-decoration: none;
  padding: 7px 14px; border-radius: var(--radius-pill);
  border: 1px solid rgba(247,242,232,.28); color: rgba(247,242,232,.9);
}
.chip:hover { background: rgba(247,242,232,.14); border-color: var(--gold-bright); }
.geo-status { margin-top: var(--space-3); font-size: var(--text-sm); color: var(--gold-bright); min-height: 1.4em; }

/* trust bar */
.trustbar { background: var(--surface-2); border-bottom: 1px solid var(--border); }
.trustbar ul {
  list-style: none; padding: var(--space-4) 0; margin: 0;
  display: flex; flex-wrap: wrap; gap: var(--space-3) var(--space-8); justify-content: center;
}
.trustbar li { display: flex; align-items: center; gap: var(--space-2); margin: 0; font-size: var(--text-sm); font-weight: 600; color: var(--text); }
.trustbar svg { width: 17px; height: 17px; flex: none; color: var(--gold); }

/* ---------- page header (interior pages) ---------- */
.pagehead { background: var(--ink); color: var(--on-ink); padding-block: clamp(var(--space-10), 5vw, var(--space-16)); }
.pagehead h1 { color: var(--on-ink); }
.pagehead p { color: rgba(247,242,232,.8); max-width: 60ch; margin-bottom: 0; }
.pagehead .eyebrow { color: var(--gold-bright); }
.crumbs { font-size: var(--text-xs); color: rgba(247,242,232,.6); margin-bottom: var(--space-4); }
.crumbs a { color: rgba(247,242,232,.85); text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }

/* ---------- grids ---------- */
.grid { display: grid; gap: var(--space-6); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.split { display: grid; gap: clamp(var(--space-8), 5vw, var(--space-16)); align-items: center; grid-template-columns: 1fr; }
@media (min-width: 860px) { .split { grid-template-columns: 1.05fr 1fr; } .split--reverse > *:first-child { order: 2; } }
.figure { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-md); background: var(--surface-2); }
.figure img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- step cards ---------- */
.step { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: var(--space-6); box-shadow: var(--shadow-sm); }
.step__num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; border-radius: var(--radius-pill);
  background: var(--gold-soft); color: var(--gold); border: 1px solid var(--gold-bright);
  font-family: var(--font-display); font-weight: 700; margin-bottom: var(--space-4);
}
.step p:last-child { margin-bottom: 0; }

/* ---------- notary cards ---------- */
.cards { display: grid; gap: var(--space-5); grid-template-columns: 1fr; }
@media (min-width: 720px) { .cards--2 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .cards--3 { grid-template-columns: repeat(3, 1fr); } }
.cards--auto { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }

.card {
  position: relative; display: flex; flex-direction: column;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: var(--space-5); box-shadow: var(--shadow-sm);
  transition: box-shadow .2s ease, border-color .2s ease;
}
.card:hover { box-shadow: var(--shadow-md); border-color: var(--border-strong); }
.card--featured { border-color: var(--gold-bright); background: linear-gradient(180deg, var(--gold-soft) 0%, var(--surface) 34%); }
.card__top { display: flex; gap: var(--space-4); align-items: flex-start; }
.card__photo {
  width: 78px; height: 78px; flex: none; border-radius: var(--radius-pill);
  object-fit: cover; border: 2px solid var(--surface); box-shadow: 0 0 0 1.5px var(--border-strong);
}
.card__id { min-width: 0; flex: 1; }
.card__name { font-family: var(--font-display); font-size: var(--text-lg); font-weight: 700; margin: 0 0 2px; }
.card__name a { text-decoration: none; }
.card__name a:hover { text-decoration: underline; text-decoration-color: var(--gold-bright); text-underline-offset: 3px; }
.card__biz { font-size: var(--text-xs); color: var(--text-muted); margin: 0 0 var(--space-2); }
.badges { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: var(--space-3); }
.rating { display: flex; align-items: center; gap: var(--space-2); font-size: var(--text-sm); font-weight: 600; }
.stars { color: var(--gold-bright); letter-spacing: 1px; font-size: var(--text-sm); }
.rating span.muted { font-weight: 400; }
.card__tagline { font-size: var(--text-sm); color: var(--text); margin: var(--space-3) 0; }
.meta { list-style: none; padding: 0; margin: 0 0 var(--space-4); display: grid; gap: 7px; }
.meta li { display: flex; gap: var(--space-2); margin: 0; font-size: var(--text-xs); color: var(--text-muted); }
.meta svg { width: 14px; height: 14px; flex: none; margin-top: 3px; color: var(--gold); }
.meta strong { color: var(--text); font-weight: 600; }
.card__actions { margin-top: auto; display: flex; flex-wrap: wrap; gap: var(--space-2); }
.card__actions .btn { flex: 1 1 130px; }
.basic-note { font-size: var(--text-xs); color: var(--text-faint); margin: var(--space-2) 0 0; width: 100%; }

/* contact request form */
.leadform { width: 100%; margin-top: var(--space-4); padding: var(--space-4); border: 1px dashed var(--border-strong); border-radius: var(--radius-sm); background: var(--surface-2); }
.leadform[hidden] { display: none; }
.field { display: block; margin-bottom: var(--space-3); }
.field span { display: block; font-size: var(--text-xs); font-weight: 700; margin-bottom: 5px; color: var(--text); }
.field input, .field textarea, .field select {
  width: 100%; font: inherit; font-size: var(--text-sm); color: var(--text);
  background: var(--surface); border: 1.5px solid var(--border); border-radius: var(--radius-sm);
  padding: 0.7rem var(--space-3); min-height: 46px;
}
.field textarea { min-height: 90px; resize: vertical; }
.form-success {
  border: 1px solid var(--success); background: color-mix(in oklab, var(--success) 12%, transparent);
  border-radius: var(--radius-sm); padding: var(--space-4); font-size: var(--text-sm); color: var(--text);
}

/* ---------- browse layout ---------- */
.browse { display: grid; gap: var(--space-8); grid-template-columns: 1fr; align-items: start; }
@media (min-width: 940px) { .browse { grid-template-columns: 272px 1fr; } }
.filters { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: var(--space-5); }
@media (min-width: 940px) { .filters { position: sticky; top: 90px; } }
.filters h2 { font-size: var(--text-base); font-family: var(--font-body); margin-bottom: var(--space-4); }
.filters fieldset { border: 0; padding: 0; margin: 0 0 var(--space-5); }
.filters legend { font-size: var(--text-xs); font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--text-muted); margin-bottom: var(--space-3); padding: 0; }
.check { display: flex; align-items: center; gap: var(--space-3); font-size: var(--text-sm); padding: 7px 0; cursor: pointer; }
.check input { width: 20px; height: 20px; accent-color: var(--ink); flex: none; }
.results-head { display: flex; flex-wrap: wrap; gap: var(--space-3); align-items: baseline; justify-content: space-between; margin-bottom: var(--space-5); }
.results-count { font-size: var(--text-sm); font-weight: 600; }
.sortwrap { display: flex; align-items: center; gap: var(--space-2); font-size: var(--text-sm); }
.sortwrap select { min-height: 44px; width: auto; }
.mobile-searchbar { display: none; }
@media (max-width: 939px) {
  .mobile-searchbar {
    display: block; position: sticky; top: 70px; z-index: 40;
    background: color-mix(in oklab, var(--bg) 94%, transparent); backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--border); padding: var(--space-3) 0;
  }
  .mobile-searchbar .searchbar input { min-height: 50px; }
  #filters-body[data-collapsed='true'] { display: none; }
  #filters-toggle.filters-toggle { display: flex; }
}
.filters-toggle { display: none; width: 100%; justify-content: space-between; }
.featured-strip { margin-bottom: var(--space-8); }
/* badges on dark page headers */
.pagehead .badge { background: rgba(255,255,255,.09); border-color: rgba(247,242,232,.32); color: rgba(247,242,232,.88); }
.pagehead .badge--featured { background: var(--gold-bright); border-color: var(--gold-bright); color: #2A1C02; }
.pagehead .badge--verified { background: var(--gold-soft); border-color: var(--gold-bright); color: #6B4A05; }
.pagehead .badge--check { color: #9BE3BE; border-color: rgba(155,227,190,.5); background: rgba(155,227,190,.12); }
.pagehead .badge--sample { background: transparent; border-style: dashed; color: rgba(247,242,232,.65); }
.tier li.is-no { color: var(--text-muted); }
.tier li.is-no svg { color: var(--text-faint); }
.scroll-hint { font-size: var(--text-xs); color: var(--text-faint); margin: var(--space-2) 0 0; }
@media (min-width: 720px) { .scroll-hint { display: none; } }
.featured-strip__label { display: flex; align-items: center; gap: var(--space-3); margin-bottom: var(--space-4); }
.featured-strip__label h2 { font-size: var(--text-lg); margin: 0; font-family: var(--font-body); }
.empty {
  border: 1px dashed var(--border-strong); border-radius: var(--radius);
  padding: var(--space-8); background: var(--surface); text-align: left;
}

/* ---------- profile page ---------- */
.profile { display: grid; gap: var(--space-8); grid-template-columns: 1fr; align-items: start; }
@media (min-width: 940px) { .profile { grid-template-columns: 1fr 340px; } }
.profile__hero { display: flex; flex-wrap: wrap; gap: var(--space-5); align-items: center; }
.profile__photo {
  width: 116px; height: 116px; border-radius: var(--radius-pill); object-fit: cover;
  border: 3px solid rgba(247,242,232,.9);
}
.contact-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: var(--space-6); box-shadow: var(--shadow-md); }
@media (min-width: 940px) { .contact-card { position: sticky; top: 90px; } }
.contact-card .btn { width: 100%; margin-bottom: var(--space-3); }
.panel { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: var(--space-6); }
.panel + .panel { margin-top: var(--space-6); }
.deflist { display: grid; gap: var(--space-4); grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); margin: 0; }
.deflist dt { font-size: var(--text-xs); text-transform: uppercase; letter-spacing: .09em; color: var(--text-muted); font-weight: 700; margin-bottom: 4px; }
.deflist dd { margin: 0; font-size: var(--text-sm); }
.pills { display: flex; flex-wrap: wrap; gap: 7px; padding: 0; margin: 0; list-style: none; }
.pills li { margin: 0; font-size: var(--text-xs); padding: 5px 11px; border-radius: var(--radius-pill); background: var(--surface-2); border: 1px solid var(--border); }
.review { border-left: 3px solid var(--gold-bright); padding-left: var(--space-4); margin-bottom: var(--space-5); }
.review:last-child { margin-bottom: 0; }
.review p { font-size: var(--text-sm); margin-bottom: var(--space-2); }
.review footer { font-size: var(--text-xs); color: var(--text-muted); }

/* ---------- pricing ---------- */
.tiers { display: grid; gap: var(--space-6); grid-template-columns: 1fr; align-items: start; }
@media (min-width: 900px) { .tiers { grid-template-columns: repeat(3, 1fr); } }
.tier { position: relative; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: var(--space-6); display: flex; flex-direction: column; }
.tier--pop { border-color: var(--gold-bright); border-width: 2px; box-shadow: var(--shadow-md); }
.tier__flag {
  position: absolute; top: -13px; left: var(--space-6);
  background: var(--gold-bright); color: #2A1C02; font-size: var(--text-xs); font-weight: 700;
  padding: 4px 12px; border-radius: var(--radius-pill);
}
.tier__price { font-family: var(--font-display); font-size: var(--text-xl); font-weight: 700; color: var(--ink); }
[data-theme='dark'] .tier__price { color: var(--gold-bright); }
.tier__price small { font-family: var(--font-body); font-size: var(--text-sm); font-weight: 500; color: var(--text-muted); }
.tier ul { list-style: none; padding: 0; margin: var(--space-5) 0; display: grid; gap: var(--space-3); }
.tier li { display: flex; gap: var(--space-3); font-size: var(--text-sm); margin: 0; }
.tier li svg { width: 16px; height: 16px; flex: none; margin-top: 4px; color: var(--gold); }
.tier .btn { margin-top: auto; }
.offer-banner {
  display: flex; flex-wrap: wrap; gap: var(--space-3); align-items: center; justify-content: center;
  background: var(--gold-soft); border: 1px solid var(--gold-bright); color: var(--gold);
  border-radius: var(--radius); padding: var(--space-4) var(--space-5);
  font-weight: 700; font-size: var(--text-sm); text-align: center;
}
[data-theme='dark'] .offer-banner { color: var(--gold-bright); }

/* ---------- tables ---------- */
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }
table { width: 100%; border-collapse: collapse; min-width: 560px; }
th, td { text-align: left; padding: var(--space-4); font-size: var(--text-sm); border-bottom: 1px solid var(--border); vertical-align: top; }
th { font-size: var(--text-xs); text-transform: uppercase; letter-spacing: .08em; color: var(--text-muted); background: var(--surface-2); }
tbody tr:last-child td { border-bottom: 0; }
td strong { color: var(--ink); }
[data-theme='dark'] td strong { color: var(--gold-bright); }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: var(--space-3); max-width: 780px; }
.faq details { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); }
.faq summary {
  cursor: pointer; padding: var(--space-4) var(--space-5); font-weight: 700; font-size: var(--text-base);
  list-style: none; display: flex; justify-content: space-between; gap: var(--space-4); align-items: center;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; font-family: var(--font-display); font-size: 1.4rem; color: var(--gold); line-height: 1; flex: none; }
.faq details[open] summary::after { content: '\2013'; }
.faq details > div { padding: 0 var(--space-5) var(--space-5); }
.faq details > div p:last-child { margin-bottom: 0; }
.faq details > div { font-size: var(--text-sm); color: var(--text-muted); }

/* ---------- CTA band ---------- */
.band { background: var(--ink); color: var(--on-ink); border-radius: var(--radius); padding: clamp(var(--space-8), 5vw, var(--space-16)); }
.band h2 { color: var(--on-ink); }
.band p { color: rgba(247,242,232,.82); max-width: 54ch; }
.band__actions { display: flex; flex-wrap: wrap; gap: var(--space-3); margin-top: var(--space-6); }

/* ---------- footer ---------- */
.footer { background: var(--surface-2); border-top: 1px solid var(--border); padding-block: var(--space-12) var(--space-8); margin-top: var(--space-16); }
.footer__grid { display: grid; gap: var(--space-8); grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }
.footer h3 { font-size: var(--text-xs); text-transform: uppercase; letter-spacing: .1em; color: var(--text-muted); font-family: var(--font-body); }
.footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--space-2); }
.footer a { font-size: var(--text-sm); color: var(--text-muted); text-decoration: none; }
.footer a:hover { color: var(--ink); text-decoration: underline; }
[data-theme='dark'] .footer a:hover { color: var(--gold-bright); }
.footer__bottom {
  margin-top: var(--space-10); padding-top: var(--space-5); border-top: 1px solid var(--border);
  display: flex; flex-wrap: wrap; gap: var(--space-3) var(--space-6); justify-content: space-between;
  font-size: var(--text-xs); color: var(--text-faint);
}
.footer__note { max-width: 60ch; }

/* ---------- dark-mode contrast fixes ---------- */
[data-theme='dark'] .btn--primary { background: #22456C; color: #F7F2E8; border-color: #2E5679; }
[data-theme='dark'] .btn--primary:hover { background: #2C5580; }
[data-theme='dark'] .badge--featured { background: var(--gold-bright); border-color: var(--gold-bright); color: #2A1C02; }
[data-theme='dark'] .badge--verified { background: rgba(240,196,104,.14); border-color: var(--gold-bright); color: var(--gold-bright); }
[data-theme='dark'] .card--featured { background: linear-gradient(180deg, #1A3555 0%, var(--surface) 40%); }
[data-theme='dark'] .band { background: #071322; border: 1px solid var(--border); }
[data-theme='dark'] .offer-banner { background: rgba(240,196,104,.1); }
[data-theme='dark'] .btn--gold { color: #201502; }
[data-theme='dark'] .icon-btn { color: var(--gold-bright); border-color: var(--border-strong); }

/* mobile: put the contact card directly under the profile header */
@media (max-width: 939px) {
  .profile { display: flex; flex-direction: column; }
  .profile aside { order: -1; }
}
