/* ===========================================================
   Direct Inner Balance Health - Whole-Person Care Services
   Shared stylesheet (pure CSS, no frameworks)
   =========================================================== */

:root {
  --ink: #0d1330;
  --ink-soft: #1b2350;
  --muted: #5b6380;
  --paper: #f4f5fb;
  --paper-2: #eef0fa;
  --surface: #ffffff;
  --line: rgba(13, 19, 48, 0.12);
  --line-strong: rgba(13, 19, 48, 0.22);
  --brand: #2a4bd8;
  --brand-dark: #1b31a6;
  --brand-soft: #e8ecff;
  --accent: #ff3d81;
  --accent-soft: #ffe7ef;
  --violet: #7b5cff;
  --violet-soft: #ece7ff;
  --gold: #ffb43a;
  --ok: #0f9d6d;
  --shadow-sm: 0 8px 24px rgba(13, 19, 48, 0.08);
  --shadow: 0 24px 60px rgba(13, 19, 48, 0.14);
  --radius: 20px;
  --radius-lg: 28px;
  --radius-sm: 12px;
  --max: 1200px;
  --header-h: 74px;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  background-color: var(--paper);
  background-image:
    radial-gradient(58rem 38rem at 88% -12%, rgba(123, 92, 255, 0.14), transparent 62%),
    radial-gradient(48rem 34rem at -8% 8%, rgba(42, 75, 216, 0.12), transparent 60%);
  background-repeat: no-repeat;
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }

h1, h2, h3, h4 { margin: 0; line-height: 1.06; letter-spacing: -0.035em; font-weight: 800; }
p { margin: 0; }

.container { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: 20px; }
@media (min-width: 900px) { .container { padding-inline: 32px; } }

.skip-link {
  position: absolute; left: 16px; top: -80px; z-index: 200;
  background: var(--ink); color: #fff; padding: 12px 18px;
  border-radius: var(--radius-sm); font-weight: 700; transition: top .2s ease;
}
.skip-link:focus { top: 14px; }

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

/* ---------- typography helpers ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.7rem; font-weight: 700; letter-spacing: 0.24em; text-transform: uppercase;
  color: var(--brand);
}
.eyebrow::before {
  content: ""; width: 22px; height: 8px; border-radius: 2px;
  background: linear-gradient(90deg, var(--brand), var(--violet));
}
.eyebrow.on-dark { color: #b9c6ff; }
.eyebrow.on-dark::before { background: linear-gradient(90deg, #8ea2ff, var(--accent)); }

.h-display { font-size: clamp(2.6rem, 7.4vw, 5.6rem); line-height: 0.94; letter-spacing: -0.055em; }
.h-page { font-size: clamp(2.1rem, 5vw, 3.6rem); line-height: 1.02; letter-spacing: -0.045em; }
.h-section { font-size: clamp(1.9rem, 4.2vw, 3.1rem); line-height: 1.05; letter-spacing: -0.04em; }
.h-card { font-size: 1.22rem; letter-spacing: -0.02em; }

.lead { font-size: 1.12rem; line-height: 1.78; color: var(--muted); }
.lead-lg { font-size: clamp(1.08rem, 1.6vw, 1.3rem); line-height: 1.8; color: var(--muted); }
.body-copy { font-size: 1.05rem; line-height: 1.85; color: var(--muted); }
.muted { color: var(--muted); }
.tiny { font-size: 0.86rem; }

.gradient-text {
  background: linear-gradient(96deg, var(--brand), var(--violet) 52%, var(--accent));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

.num {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.78rem; font-weight: 700; letter-spacing: 0.18em; color: var(--brand);
}

/* ---------- icon helper ---------- */
.icon { display: inline-flex; width: 1.15em; height: 1.15em; flex: none; }
.icon svg { width: 100%; height: 100%; }
.icon-lg { width: 1.9rem; height: 1.9rem; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 15px 26px; border-radius: var(--radius-sm);
  border: 1px solid transparent; font-weight: 800; font-size: 0.97rem;
  cursor: pointer; transition: transform .18s ease, background .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn .icon { width: 1.05rem; height: 1.05rem; }
.btn-primary { background: var(--brand); color: #fff; box-shadow: 0 14px 30px rgba(42, 75, 216, 0.28); }
.btn-primary:hover { background: var(--brand-dark); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: var(--ink-soft); }
.btn-ghost { background: rgba(255, 255, 255, 0.85); border-color: var(--line-strong); color: var(--ink); }
.btn-ghost:hover { border-color: var(--brand); color: var(--brand); }
.btn-light { background: #fff; color: var(--ink); }
.btn-light:hover { background: var(--brand-soft); }
.btn-outline-light { border-color: rgba(255, 255, 255, 0.36); color: #fff; background: rgba(255, 255, 255, 0.06); }
.btn-outline-light:hover { background: rgba(255, 255, 255, 0.16); border-color: rgba(255, 255, 255, 0.7); }
.btn-block { width: 100%; }
.btn-sm { padding: 11px 18px; font-size: 0.88rem; }

.link-arrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 800; color: var(--brand); border-bottom: 2px solid transparent;
  transition: gap .18s ease, border-color .18s ease;
}
.link-arrow:hover { gap: 14px; border-color: var(--brand); }
.link-arrow .icon { width: 1rem; height: 1rem; }

/* ===========================================================
   Header (identical on every page - injected by site.js)
   =========================================================== */
.site-header {
  position: sticky; top: 0; z-index: 90;
  background: rgba(255, 255, 255, 0.93);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.site-header__bar {
  display: flex; align-items: center; justify-content: space-between; gap: 18px;
  min-height: var(--header-h);
}
.brand { display: inline-flex; align-items: center; gap: 12px; }
.brand__mark {
  display: grid; place-items: center; width: 40px; height: 40px;
  border-radius: 13px; background: linear-gradient(140deg, var(--brand), var(--violet));
  color: #fff; box-shadow: 0 10px 24px rgba(42, 75, 216, 0.32);
}
.brand__mark .icon { width: 21px; height: 21px; }
.brand__name {
  font-size: 0.93rem; font-weight: 800; letter-spacing: 0.2em; text-transform: uppercase;
}
.brand__name span { display: block; font-size: 0.62rem; letter-spacing: 0.24em; color: var(--muted); font-weight: 700; }

.site-nav { display: none; align-items: center; gap: 4px; }
.site-nav a {
  position: relative; padding: 10px 14px; border-radius: 10px;
  font-size: 0.94rem; font-weight: 700; color: var(--ink-soft);
  transition: color .18s ease, background .18s ease;
}
.site-nav a:hover { color: var(--brand); background: var(--brand-soft); }
.site-nav a.is-active { color: var(--brand); }
.site-nav a.is-active::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: 2px; height: 2px;
  border-radius: 2px; background: var(--brand);
}
.site-header__actions { display: flex; align-items: center; gap: 10px; }
.header-cta { display: none; }
@media (min-width: 640px) { .header-cta { display: inline-flex; } }
@media (min-width: 940px) { .site-nav { display: flex; } }

.nav-toggle {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 15px; border-radius: 10px; background: var(--ink); color: #fff;
  border: 0; font-weight: 800; font-size: 0.9rem; cursor: pointer;
}
.nav-toggle .icon { width: 1.1rem; height: 1.1rem; }
@media (min-width: 940px) { .nav-toggle { display: none; } }

.mobile-nav {
  display: none; border-top: 1px solid var(--line);
  background: var(--surface); padding: 12px 20px 22px;
}
.mobile-nav.is-open { display: block; }
.mobile-nav a {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 4px; border-bottom: 1px solid var(--line); font-weight: 700;
}
.mobile-nav a:last-of-type { border-bottom: 0; }
.mobile-nav a.is-active { color: var(--brand); }
.mobile-nav .icon { width: 1rem; height: 1rem; color: var(--muted); }
.mobile-nav .mobile-cta { margin-top: 16px; }

/* ===========================================================
   Hero
   =========================================================== */
.hero {
  position: relative; overflow: hidden;
  padding: clamp(48px, 7vw, 88px) 0 clamp(56px, 8vw, 104px);
}
.hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(13, 19, 48, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(13, 19, 48, 0.045) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(60% 60% at 70% 20%, #000 20%, transparent 78%);
  -webkit-mask-image: radial-gradient(60% 60% at 70% 20%, #000 20%, transparent 78%);
}
.hero__grid {
  position: relative; z-index: 1;
  display: grid; gap: 48px; align-items: center;
}
@media (min-width: 980px) { .hero__grid { grid-template-columns: 1.06fr 0.94fr; gap: 64px; } }

.hero__pill {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 9px 16px; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--line);
  font-size: 0.74rem; font-weight: 800; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--brand-dark); box-shadow: var(--shadow-sm);
}
.hero__pill .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }

.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }

.hero__meta {
  display: flex; flex-wrap: wrap; gap: 10px 26px; margin-top: 34px;
  padding-top: 26px; border-top: 1px solid var(--line);
}
.hero__meta div { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 0.94rem; }
.hero__meta .icon { width: 1.1rem; height: 1.1rem; color: var(--brand); }

/* hero care tiles */
.tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.tile {
  position: relative; padding: 22px; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-sm);
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}
.tile:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-color: rgba(42, 75, 216, 0.35); }
.tile strong { display: block; margin-top: 14px; font-size: 1.02rem; letter-spacing: -0.02em; }
.tile span { display: block; margin-top: 4px; font-size: 0.85rem; color: var(--muted); }
.tile--feature {
  grid-column: span 2; display: flex; align-items: center; gap: 18px;
  padding: 24px; border-radius: var(--radius-lg);
  background: linear-gradient(135deg, var(--ink), var(--ink-soft) 55%, #2b3576);
  border-color: transparent; color: #fff;
}
.tile--feature strong { margin-top: 0; font-size: 1.24rem; color: #fff; }
.tile--feature span { color: rgba(255, 255, 255, 0.7); }
.tile--feature .tile__badge {
  display: grid; place-items: center; width: 54px; height: 54px; flex: none;
  border-radius: 18px; background: rgba(255, 255, 255, 0.12); border: 1px solid rgba(255, 255, 255, 0.2);
}

.badge-icon {
  display: grid; place-items: center; width: 52px; height: 52px; flex: none;
  border-radius: 16px; background: var(--brand-soft); color: var(--brand);
  border: 1px solid rgba(42, 75, 216, 0.16);
}
.badge-icon .icon { width: 1.5rem; height: 1.5rem; }
.badge-icon--violet { background: var(--violet-soft); color: var(--violet); border-color: rgba(123, 92, 255, 0.2); }
.badge-icon--accent { background: var(--accent-soft); color: var(--accent); border-color: rgba(255, 61, 129, 0.2); }
.badge-icon--dark { background: var(--ink); color: #fff; border-color: transparent; }
.badge-icon--gold { background: #fff4e0; color: #c07c07; border-color: rgba(255, 180, 58, 0.35); }

/* ---------- inner page banner ---------- */
.page-banner {
  position: relative; overflow: hidden;
  padding: clamp(44px, 6vw, 76px) 0;
  background: linear-gradient(140deg, var(--ink) 0%, var(--ink-soft) 52%, #2c3678 100%);
  color: #fff;
}
.page-banner::after {
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: linear-gradient(180deg, #000, transparent 85%);
  -webkit-mask-image: linear-gradient(180deg, #000, transparent 85%);
}
.page-banner .container { position: relative; z-index: 1; }
.page-banner .lead { color: rgba(255, 255, 255, 0.74); }
.crumbs {
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase; color: rgba(255, 255, 255, 0.6);
}
.crumbs a:hover { color: #fff; }
.crumbs .sep { opacity: 0.5; }

/* ===========================================================
   Sections
   =========================================================== */
.section { padding: clamp(56px, 7vw, 96px) 0; }
.section--tight { padding: clamp(44px, 5vw, 68px) 0; }
.section--alt { background: var(--surface); border-block: 1px solid var(--line); }
.section--dark {
  background: linear-gradient(140deg, var(--ink), var(--ink-soft) 60%, #2b3576);
  color: #fff;
}
.section--dark .lead, .section--dark .body-copy, .section--dark .muted { color: rgba(255, 255, 255, 0.74); }
.section__head { display: grid; gap: 22px; max-width: 900px; }
.section__head--split { max-width: none; }
@media (min-width: 900px) {
  .section__head--split { grid-template-columns: 0.9fr 1.1fr; align-items: end; gap: 40px; }
}
.section__head--center { margin-inline: auto; text-align: center; justify-items: center; }

/* ---------- cards & grids ---------- */
.grid { display: grid; gap: 20px; }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.grid--4 { grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }

.card {
  padding: 28px; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-color: rgba(42, 75, 216, 0.3); }
.card h3, .card h4 { margin-top: 18px; }
.card p { margin-top: 10px; color: var(--muted); line-height: 1.75; }
.card--flat { box-shadow: none; background: rgba(255, 255, 255, 0.72); }
.card--flat:hover { background: #fff; }
.card--accent { border-left: 4px solid var(--brand); }
.card--on-dark { background: rgba(255, 255, 255, 0.06); border-color: rgba(255, 255, 255, 0.14); box-shadow: none; }
.card--on-dark:hover { background: rgba(255, 255, 255, 0.1); border-color: rgba(255, 255, 255, 0.3); }
.card--on-dark p, .card--on-dark .muted { color: rgba(255, 255, 255, 0.72); }
.card__num {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 2.1rem; font-weight: 800; letter-spacing: -0.04em;
  background: linear-gradient(96deg, var(--brand), var(--violet) 60%, var(--accent));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* service preview cards (homepage) */
.svc-card { display: flex; flex-direction: column; gap: 0; height: 100%; }
.svc-card p { flex: 1; }
.svc-card__top { display: flex; align-items: center; gap: 16px; }
.svc-card__top strong { font-size: 1.1rem; letter-spacing: -0.02em; }
.svc-card .link-arrow { margin-top: 18px; font-size: 0.9rem; }

/* ---------- accordion ---------- */
.accordion { border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); overflow: hidden; box-shadow: var(--shadow-sm); }
.acc-item { border-top: 1px solid var(--line); }
.acc-item:first-child { border-top: 0; }
.acc-item summary {
  display: flex; align-items: center; gap: 18px; width: 100%;
  padding: 24px 26px; cursor: pointer; list-style: none;
  transition: background .2s ease;
}
.acc-item summary::-webkit-details-marker { display: none; }
.acc-item summary:hover { background: var(--paper); }
.acc-item__title { flex: 1; font-size: clamp(1.05rem, 2vw, 1.3rem); font-weight: 800; letter-spacing: -0.025em; }
.acc-item__index {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.76rem; font-weight: 700; letter-spacing: 0.14em; color: var(--muted);
}
.acc-item__sign {
  display: grid; place-items: center; width: 34px; height: 34px; flex: none;
  border-radius: 11px; background: var(--brand-soft); color: var(--brand);
  transition: transform .25s ease, background .25s ease, color .25s ease;
}
.acc-item__sign .icon { width: 1.1rem; height: 1.1rem; }
.acc-item[open] .acc-item__sign { transform: rotate(180deg); background: var(--brand); color: #fff; }
.acc-item__body { padding: 0 26px 30px; }
.acc-item__body p { max-width: 92ch; font-size: 1.05rem; line-height: 1.85; color: var(--muted); }
@media (max-width: 600px) {
  .acc-item summary { gap: 12px; padding: 20px 18px; }
  .acc-item__body { padding: 0 18px 24px; }
  .acc-item__index { display: none; }
}

/* ---------- ticker ---------- */
.ticker { overflow: hidden; padding-block: 6px; }
.ticker__track { display: flex; width: max-content; animation: ticker 26s linear infinite; }
.ticker__track span {
  padding-right: 30px; white-space: nowrap;
  font-size: clamp(2rem, 5.6vw, 4rem); font-weight: 800; letter-spacing: -0.05em;
  color: rgba(13, 19, 48, 0.12);
}
.section--dark .ticker__track span { color: rgba(255, 255, 255, 0.14); }
@keyframes ticker { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---------- testimonials ---------- */
.quote-card {
  padding: clamp(26px, 4vw, 46px); border-radius: var(--radius-lg);
  background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow);
}
.quote-card__mark { color: var(--brand); opacity: 0.25; }
.quote-card__mark .icon { width: 3rem; height: 3rem; }
.quote-card blockquote { margin: 18px 0 0; font-size: clamp(1.2rem, 2.6vw, 1.75rem); font-weight: 700; line-height: 1.5; letter-spacing: -0.02em; }
.quote-card .who { margin-top: 22px; font-weight: 800; color: var(--brand-dark); }
.quote-card .role {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.72rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted);
}
.rating { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; color: #c07c07; }
.rating .stars { display: inline-flex; gap: 3px; color: var(--gold); }
.rating .icon { width: 1.05rem; height: 1.05rem; }
.quote-nav { display: flex; gap: 12px; margin-top: 28px; }
.quote-nav button {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 20px; border-radius: var(--radius-sm); cursor: pointer;
  background: var(--paper); border: 1px solid var(--line-strong); font-weight: 800;
  transition: transform .18s ease, border-color .18s ease, color .18s ease;
}
.quote-nav button:hover { transform: translateY(-2px); border-color: var(--brand); color: var(--brand); }
.quote-nav .icon { width: 1rem; height: 1rem; }

/* ---------- contact details ---------- */
.detail-row { display: flex; align-items: flex-start; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.detail-row:last-child { border-bottom: 0; }
.detail-row strong { display: block; }
.detail-row .label {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.68rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted);
}
.detail-row a:hover { color: var(--brand); }

/* ---------- forms ---------- */
.form-card {
  padding: clamp(24px, 4vw, 40px); border-radius: var(--radius-lg);
  background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow);
}
.form-card--on-dark { background: #fff; }
.field-grid { display: grid; gap: 18px; }
@media (min-width: 640px) { .field-grid--2 { grid-template-columns: 1fr 1fr; } }
.field { display: grid; gap: 8px; }
.field > span { font-weight: 800; font-size: 0.92rem; }
.field .req { color: var(--accent); }
.field input, .field textarea, .field select {
  width: 100%; padding: 14px 16px; border-radius: var(--radius-sm);
  background: var(--paper); border: 1px solid var(--line-strong);
  transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}
.field textarea { resize: vertical; min-height: 132px; }
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none; background: #fff; border-color: var(--brand);
  box-shadow: 0 0 0 4px rgba(42, 75, 216, 0.14);
}
.field input::placeholder, .field textarea::placeholder { color: rgba(91, 99, 128, 0.7); }
.field.has-error input, .field.has-error textarea { border-color: var(--accent); background: var(--accent-soft); }
.field__error { display: none; font-size: 0.82rem; font-weight: 700; color: #c4235f; }
.field.has-error .field__error { display: block; }

.check {
  display: flex; gap: 14px; align-items: flex-start;
  padding: 16px; border-radius: var(--radius-sm);
  background: var(--paper); border: 1px solid var(--line);
  font-size: 0.9rem; line-height: 1.65; color: var(--muted);
}
.check input { width: 20px; height: 20px; margin-top: 2px; flex: none; accent-color: var(--brand); }
.check.has-error, .field.has-error .check { border-color: var(--accent); background: var(--accent-soft); }

/* two-column split used by the newsletter + contact layouts */
.split-2 { display: grid; grid-template-columns: 1fr; }
@media (min-width: 980px) { .split-2 { grid-template-columns: 1.05fr 0.95fr; align-items: start; } }

/* anchor targets clear the sticky header */
section[id], details[id] { scroll-margin-top: calc(var(--header-h) + 22px); }

.form-note { display: flex; gap: 12px; align-items: flex-start; font-size: 0.86rem; color: var(--muted); line-height: 1.6; }
.form-note .icon { width: 1.1rem; height: 1.1rem; color: var(--brand); flex: none; margin-top: 2px; }

/* ---------- legal pages ---------- */
.legal-grid { display: grid; gap: 32px; }
@media (min-width: 980px) { .legal-grid { grid-template-columns: 260px 1fr; gap: 56px; align-items: start; } }
.legal-index {
  position: sticky; top: calc(var(--header-h) + 24px);
  padding: 22px; border-radius: var(--radius); background: var(--surface);
  border: 1px solid var(--line); box-shadow: var(--shadow-sm);
  max-height: calc(100vh - var(--header-h) - 48px); overflow: auto;
}
.legal-index h2 { font-size: 0.78rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); }
.legal-index ol { margin: 14px 0 0; padding: 0; list-style: none; display: grid; gap: 2px; }
.legal-index a { display: block; padding: 7px 10px; border-radius: 8px; font-size: 0.88rem; font-weight: 600; color: var(--muted); }
.legal-index a:hover { background: var(--brand-soft); color: var(--brand); }
@media (max-width: 979px) { .legal-index { position: static; max-height: none; } }

.legal-doc { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); padding: clamp(24px, 4vw, 48px); }
.legal-doc h1 { margin-top: 8px; }
.legal-doc .updated {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 16px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted);
}
.legal-doc .intro { margin-top: 26px; font-size: 1.05rem; line-height: 1.85; color: var(--muted); }
.clause { margin-top: 30px; padding-top: 26px; border-top: 1px solid var(--line); scroll-margin-top: calc(var(--header-h) + 24px); }
.clause:first-of-type { border-top: 0; padding-top: 0; margin-top: 34px; }
.clause h2 { font-size: 1.22rem; letter-spacing: -0.02em; }
.clause p { margin-top: 12px; font-size: 1.02rem; line-height: 1.85; color: var(--muted); }
.legal-doc ul { margin: 14px 0 0; padding-left: 20px; color: var(--muted); line-height: 1.8; }
.legal-doc li { margin-top: 8px; }

/* ---------- CTA band ---------- */
.cta-band {
  position: relative; overflow: hidden;
  padding: clamp(38px, 5vw, 64px); border-radius: var(--radius-lg);
  background: linear-gradient(135deg, var(--brand), var(--violet) 62%, var(--accent));
  color: #fff; box-shadow: var(--shadow);
}
.cta-band::after {
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.08) 1px, transparent 1px);
  background-size: 54px 54px;
  mask-image: radial-gradient(70% 80% at 20% 20%, #000, transparent 75%);
  -webkit-mask-image: radial-gradient(70% 80% at 20% 20%, #000, transparent 75%);
}
.cta-band .container, .cta-band > * { position: relative; z-index: 1; }
.cta-band__grid { display: grid; gap: 28px; align-items: center; }
@media (min-width: 860px) { .cta-band__grid { grid-template-columns: 1.15fr 0.85fr; } }
.cta-band h2 { font-size: clamp(1.7rem, 3.6vw, 2.7rem); letter-spacing: -0.04em; }
.cta-band p { margin-top: 14px; color: rgba(255, 255, 255, 0.85); font-size: 1.05rem; line-height: 1.75; }
.cta-band__actions { display: flex; flex-wrap: wrap; gap: 14px; }
@media (min-width: 860px) { .cta-band__actions { justify-content: flex-end; } }

/* ===========================================================
   Footer (identical on every page - injected by site.js)
   =========================================================== */
.site-footer { margin-top: 20px; background: var(--ink); color: rgba(255, 255, 255, 0.72); }
.site-footer__top { border-top: 3px solid transparent; background-image: linear-gradient(var(--ink), var(--ink)), linear-gradient(90deg, var(--brand), var(--violet), var(--accent)); background-origin: border-box; background-clip: padding-box, border-box; }
.site-footer__grid {
  display: grid; gap: 40px; padding: clamp(44px, 6vw, 68px) 0 36px;
  grid-template-columns: repeat(auto-fit, minmax(215px, 1fr));
}
.site-footer .brand__name { color: #fff; }
.site-footer .brand__name span { color: rgba(255, 255, 255, 0.55); }
.site-footer h3 {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.72rem; letter-spacing: 0.2em; text-transform: uppercase; color: #fff;
}
.site-footer ul { margin: 18px 0 0; padding: 0; list-style: none; display: grid; gap: 12px; }
.site-footer a, .site-footer button.link {
  display: inline-flex; align-items: center; gap: 8px;
  background: none; border: 0; padding: 0; cursor: pointer; text-align: left;
  font-size: 0.95rem; color: rgba(255, 255, 255, 0.72); transition: color .18s ease, transform .18s ease;
}
.site-footer a:hover, .site-footer button.link:hover { color: #fff; transform: translateX(3px); }
.site-footer .icon { width: 1rem; height: 1rem; opacity: 0.8; }
.site-footer__about { max-width: 34ch; margin-top: 18px; font-size: 0.95rem; line-height: 1.75; }
.site-footer__bottom {
  display: flex; flex-wrap: wrap; gap: 12px 26px; align-items: center; justify-content: space-between;
  padding: 22px 0 30px; border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.86rem;
}
.site-footer__bottom nav { display: flex; flex-wrap: wrap; gap: 18px; }

/* ===========================================================
   Toasts
   =========================================================== */
.toast-stack {
  position: fixed; z-index: 300; right: 18px; bottom: 18px;
  display: grid; gap: 12px; width: min(380px, calc(100vw - 36px));
  pointer-events: none;
}
@media (max-width: 600px) { .toast-stack { right: 12px; left: 12px; bottom: 12px; width: auto; } }
.toast {
  pointer-events: auto; display: flex; gap: 14px; align-items: flex-start;
  padding: 16px 18px; border-radius: 16px;
  background: var(--ink); color: #fff; box-shadow: 0 22px 50px rgba(13, 19, 48, 0.34);
  border-left: 4px solid var(--brand);
  animation: toast-in .32s cubic-bezier(0.2, 0.9, 0.3, 1.2);
}
.toast.is-leaving { animation: toast-out .26s ease forwards; }
.toast--success { border-left-color: var(--ok); }
.toast--error { border-left-color: var(--accent); }
.toast--info { border-left-color: var(--violet); }
.toast__icon {
  display: grid; place-items: center; width: 32px; height: 32px; flex: none;
  border-radius: 10px; background: rgba(255, 255, 255, 0.1); color: #fff;
}
.toast--success .toast__icon { background: rgba(15, 157, 109, 0.24); color: #7bf0c4; }
.toast--error .toast__icon { background: rgba(255, 61, 129, 0.22); color: #ff9dbe; }
.toast--info .toast__icon { background: rgba(123, 92, 255, 0.26); color: #cbc0ff; }
.toast__icon .icon { width: 1.15rem; height: 1.15rem; }
.toast__title { font-weight: 800; font-size: 0.95rem; }
.toast__msg { margin-top: 4px; font-size: 0.88rem; line-height: 1.6; color: rgba(255, 255, 255, 0.78); }
.toast__close {
  margin-left: auto; flex: none; background: none; border: 0; cursor: pointer;
  color: rgba(255, 255, 255, 0.6); padding: 4px; border-radius: 8px;
}
.toast__close:hover { color: #fff; background: rgba(255, 255, 255, 0.1); }
.toast__close .icon { width: 1rem; height: 1rem; }
@keyframes toast-in { from { opacity: 0; transform: translateY(18px) scale(0.97); } to { opacity: 1; transform: none; } }
@keyframes toast-out { to { opacity: 0; transform: translateY(10px) scale(0.97); } }

/* confetti */
.confetti {
  position: fixed; top: -14px; z-index: 290; width: 9px; height: 14px;
  border-radius: 2px; pointer-events: none; animation: confetti 2s ease-in forwards;
}
@keyframes confetti { to { transform: translateY(108vh) rotate(720deg); opacity: 0; } }

/* ---------- reveal on scroll ----------
   Content is only hidden when JavaScript has confirmed it can reveal it again
   (html.js-anim). If the script never runs, every .reveal block is visible. */
.reveal { transition: opacity .7s ease, transform .7s ease; }
html.js-anim .reveal { opacity: 0; transform: translateY(26px); }
html.js-anim .reveal.is-visible { opacity: 1; transform: none; }

/* ---------- misc ---------- */
.list-checks { margin: 22px 0 0; padding: 0; list-style: none; display: grid; gap: 14px; }
.list-checks li { display: flex; gap: 12px; align-items: flex-start; color: var(--muted); line-height: 1.7; }
.list-checks .icon { width: 1.15rem; height: 1.15rem; color: var(--ok); flex: none; margin-top: 4px; }
.list-checks strong { color: var(--ink); }

.pill-list { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 15px; border-radius: 999px; background: var(--surface);
  border: 1px solid var(--line); font-size: 0.86rem; font-weight: 700; color: var(--ink-soft);
}
.pill .icon { width: 0.95rem; height: 0.95rem; color: var(--brand); }

.steps { counter-reset: step; display: grid; gap: 18px; }
.step { display: grid; gap: 12px; grid-template-columns: 46px 1fr; padding: 22px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.step__num {
  display: grid; place-items: center; width: 46px; height: 46px; border-radius: 14px;
  background: var(--brand-soft); color: var(--brand); font-weight: 800;
}
.step h3 { font-size: 1.08rem; }
.step p { margin-top: 6px; color: var(--muted); line-height: 1.75; }

.notice {
  display: flex; gap: 14px; padding: 18px 20px; border-radius: var(--radius);
  background: var(--brand-soft); border: 1px solid rgba(42, 75, 216, 0.2);
  color: var(--ink-soft); font-size: 0.94rem; line-height: 1.7;
}
.notice .icon { width: 1.25rem; height: 1.25rem; color: var(--brand); flex: none; margin-top: 2px; }
.notice--warn { background: #fff6e6; border-color: rgba(255, 180, 58, 0.4); }
.notice--warn .icon { color: #c07c07; }

.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;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important; animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important; scroll-behavior: auto !important;
  }
  .reveal, html.js-anim .reveal { opacity: 1 !important; transform: none !important; }
}
