/* ============================================================
   GAPC — Global Animal Protection Consulting LLC
   Shared design system. Loaded by every page.
   Brand: Ocean Blue / Sky Cyan / Whisper White, Manrope.
   ============================================================ */

/* ── Self-hosted Manrope variable font ─────────────────── */
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url('fonts/manrope-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url('fonts/manrope-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --ocean-blue: #144e82;
  --sky-cyan: #6cabba;
  --accent-text: #3f7f92; /* darker Sky Cyan for small text (WCAG AA on light bg) */
  --whisper-white: #f4f7f9;
  --graphite: #6e7180;
  --steel: #7d8896;
  --smoke: #d3d6e0;
  --card-bg: #ffffff;
  --card-tint: #eef2f6;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { color-scheme: light; scroll-behavior: smooth; }
html[data-theme="dark"] { color-scheme: dark; }
/* Off-canvas mobile drawer sits beyond the right edge when closed; clip it so it never creates horizontal scroll */
html, body { overflow-x: hidden; }

:focus-visible { outline: 2px solid var(--sky-cyan); outline-offset: 2px; }

.skip-link {
  position: absolute; left: -9999px; top: 0.75rem; z-index: 3000;
  background: var(--ocean-blue); color: var(--whisper-white);
  font-weight: 600; font-size: 0.85rem; padding: 0.6rem 1.2rem;
  border-radius: 999px; text-decoration: none;
}
.skip-link:focus { left: 0.75rem; }

body {
  font-family: 'Manrope', sans-serif;
  background: var(--whisper-white);
  color: var(--ocean-blue);
  display: flex; flex-direction: column; min-height: 100vh;
}

::selection { background: var(--sky-cyan); color: var(--whisper-white); }

.frame {
  width: 100%; max-width: 1080px; margin: 0 auto;
  padding: 0 clamp(1.5rem, 5vw, 3.5rem);
}
.frame--wide { max-width: 1200px; }

a { color: var(--ocean-blue); }

/* ── Header + navigation ───────────────────────────────── */
/* z-index lifts the header's stacking context (and the mobile drawer + scrim
   it contains) above the main content; the entrance animation's transform
   would otherwise trap them beneath later-in-DOM content. */
header.site-header { padding-top: clamp(1.5rem, 4vh, 2.5rem); position: relative; z-index: 100; }

.site-header .frame {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}

.logo { width: clamp(140px, 20vw, 188px); height: auto; display: block; }
.logo-link { display: inline-flex; line-height: 0; }

.head-right { display: flex; align-items: center; gap: 0.6rem; }

/* Primary nav */
.main-nav { display: flex; align-items: center; gap: 0.35rem; }
.main-nav a {
  font-size: 0.9rem; font-weight: 600; letter-spacing: 0.01em;
  color: var(--ocean-blue); text-decoration: none;
  padding: 0.5rem 0.8rem; border-radius: 8px;
  transition: background 0.15s ease, color 0.15s ease;
  white-space: nowrap;
}
.main-nav a:hover { background: var(--card-tint); color: var(--accent-text); }
.main-nav a[aria-current="page"] { color: var(--accent-text); }
/* The drawer CTA is an <a>, so the .main-nav a colour rules would recolour it;
   keep it a solid button with white text. */
.main-nav a.nav-cta { color: var(--whisper-white); }
.main-nav a.nav-cta:hover { color: var(--whisper-white); background: #316d95; }
.main-nav a.nav-external svg { width: 12px; height: 12px; margin-left: 0.25rem; vertical-align: -1px; }

/* Buttons */
.contact-btn {
  font-family: 'Manrope', sans-serif; font-size: 0.85rem; font-weight: 600;
  letter-spacing: 0.04em; color: var(--whisper-white); background: var(--ocean-blue);
  border: none; border-radius: 999px; padding: 0.6rem 1.4rem;
  cursor: pointer; transition: background 0.15s ease; text-decoration: none;
  display: inline-flex; align-items: center; justify-content: center;
}
.contact-btn:hover { background: #316d95; }
.contact-btn:active { background: #4f8ca7; }

.ghost-btn {
  display: inline-flex; align-items: center; gap: 0.45rem;
  font-family: 'Manrope', sans-serif; font-size: 0.85rem; font-weight: 600;
  letter-spacing: 0.04em; color: var(--ocean-blue); background: transparent;
  border: 1px solid var(--smoke); border-radius: 999px; padding: 0.55rem 1.2rem;
  cursor: pointer; transition: border-color 0.15s ease, color 0.15s ease; text-decoration: none;
}
.ghost-btn:hover { border-color: var(--sky-cyan); color: var(--sky-cyan); }
.ghost-btn svg { width: 15px; height: 15px; flex-shrink: 0; }

.theme-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--smoke);
  background: transparent; color: var(--ocean-blue); cursor: pointer;
  transition: border-color 0.15s ease, color 0.15s ease;
}
.theme-btn:hover { border-color: var(--sky-cyan); color: var(--sky-cyan); }
.theme-btn svg { width: 17px; height: 17px; }
.theme-btn .icon-sun { display: none; }
html[data-theme="dark"] .theme-btn .icon-sun { display: block; }
html[data-theme="dark"] .theme-btn .icon-moon { display: none; }

/* Hamburger (mobile) */
.nav-toggle {
  display: none; align-items: center; justify-content: center;
  width: 38px; height: 38px; border-radius: 8px; border: 1px solid var(--smoke);
  background: transparent; color: var(--ocean-blue); cursor: pointer;
}
.nav-toggle svg { width: 20px; height: 20px; }

@media (max-width: 860px) {
  .nav-toggle { display: inline-flex; }
  .main-nav {
    position: fixed; inset: 0 0 0 auto; width: min(320px, 82vw);
    flex-direction: column; align-items: stretch; gap: 0.15rem;
    background: var(--whisper-white); border-left: 1px solid var(--smoke);
    padding: 5rem 1.25rem 2rem; z-index: 2500;
    transform: translateX(100%); transition: transform 0.25s ease;
    box-shadow: -20px 0 60px rgba(20,78,130,0.12);
  }
  .main-nav.open { transform: translateX(0); }
  .main-nav a { padding: 0.85rem 0.9rem; font-size: 1rem; border-radius: 10px; }
  .main-nav .nav-cta { margin-top: 0.75rem; }
  .nav-scrim { display: none; position: fixed; inset: 0; z-index: 2400; background: rgba(20,78,130,0.35); backdrop-filter: blur(2px); }
  .nav-scrim.show { display: block; }
}
@media (min-width: 861px) {
  .main-nav .nav-cta { display: none; } /* CTA only inside mobile drawer */
}

/* ── Page hero ─────────────────────────────────────────── */
.page-hero { padding: clamp(2.5rem, 7vh, 4.5rem) 0 clamp(1.5rem, 4vh, 2.5rem); position: relative; overflow: hidden; }
.kicker {
  display: inline-flex; align-items: center; gap: 0.75rem;
  font-size: 0.72rem; font-weight: 600; letter-spacing: 0.28em;
  text-transform: uppercase; color: var(--accent-text); margin-bottom: 1.25rem;
}
.kicker::before { content: ""; width: 36px; height: 2px; background: var(--sky-cyan); }

.page-title {
  font-size: clamp(2rem, 5vw, 3.1rem); font-weight: 600; line-height: 1.1;
  letter-spacing: -0.02em; color: var(--ocean-blue); max-width: 16em; text-wrap: balance;
}
.page-title em { font-style: normal; color: var(--sky-cyan); }
.page-lead {
  font-size: clamp(1.05rem, 2vw, 1.25rem); font-weight: 400; line-height: 1.7;
  color: var(--graphite); max-width: 40em; margin-top: 1.25rem;
}
.page-lead strong { color: var(--ocean-blue); font-weight: 600; }

/* ── Generic section scaffolding ───────────────────────── */
main { flex: 1; }
.section { padding: clamp(2.5rem, 6vh, 4rem) 0; }
.section--tint { background: var(--card-tint); border-top: 1px solid var(--smoke); border-bottom: 1px solid var(--smoke); }
.section-head { max-width: 46em; margin-bottom: clamp(1.75rem, 4vh, 2.75rem); }
.section-eyebrow {
  font-size: 0.66rem; font-weight: 700; letter-spacing: 0.28em;
  text-transform: uppercase; color: var(--accent-text); margin-bottom: 0.7rem;
}
.section-title {
  font-size: clamp(1.5rem, 3.2vw, 2.1rem); font-weight: 600; line-height: 1.2;
  letter-spacing: -0.01em; color: var(--ocean-blue); text-wrap: balance;
}
.section-intro {
  font-size: clamp(1rem, 1.7vw, 1.12rem); line-height: 1.75; color: var(--graphite);
  margin-top: 1rem; max-width: 42em;
}
.prose { max-width: 42em; }
.prose p { font-size: 1.02rem; line-height: 1.8; color: var(--graphite); margin-bottom: 1.1rem; }
.prose p strong { color: var(--ocean-blue); font-weight: 600; }
.prose h3 { font-size: 1.2rem; font-weight: 600; color: var(--ocean-blue); margin: 1.75rem 0 0.6rem; }
.prose ul { margin: 0 0 1.2rem 1.1rem; }
.prose li { font-size: 1.02rem; line-height: 1.8; color: var(--graphite); margin-bottom: 0.35rem; }

/* ── Cards ─────────────────────────────────────────────── */
.card-grid { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }

.service-card, .insight-card, .value-card {
  background: var(--card-bg); border: 1px solid var(--smoke); border-radius: 14px;
  padding: clamp(1.4rem, 3vw, 1.9rem); display: flex; flex-direction: column;
  transition: border-color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}
a.service-card, a.insight-card { text-decoration: none; }
.service-card:hover, .insight-card:hover {
  border-color: var(--sky-cyan); transform: translateY(-3px);
  box-shadow: 0 18px 40px rgba(20,78,130,0.10);
}

.card-icon {
  width: 44px; height: 44px; border-radius: 11px; display: inline-flex;
  align-items: center; justify-content: center; margin-bottom: 1.1rem;
  background: rgba(108,171,186,0.14); color: var(--accent-text);
}
.card-icon svg { width: 22px; height: 22px; }

.service-card h3, .value-card h3 {
  font-size: 1.2rem; font-weight: 600; color: var(--ocean-blue);
  letter-spacing: -0.01em; margin-bottom: 0.55rem;
}
.service-card p, .value-card p { font-size: 0.98rem; line-height: 1.7; color: var(--graphite); }
.card-list { list-style: none; margin-top: 1rem; display: flex; flex-direction: column; gap: 0.5rem; }
.card-list li { position: relative; padding-left: 1.5rem; font-size: 0.93rem; line-height: 1.55; color: var(--graphite); }
.card-list li::before {
  content: ""; position: absolute; left: 0; top: 0.5em; width: 8px; height: 8px;
  border-radius: 50%; background: var(--sky-cyan);
}
.card-cta {
  margin-top: auto; padding-top: 1.1rem; font-size: 0.85rem; font-weight: 600;
  letter-spacing: 0.02em; color: var(--accent-text); display: inline-flex; align-items: center; gap: 0.4rem;
}
.card-cta svg { width: 14px; height: 14px; transition: transform 0.15s ease; }
.service-card:hover .card-cta svg, .insight-card:hover .card-cta svg { transform: translateX(3px); }

/* Insight card meta */
.insight-card .insight-tag {
  align-self: flex-start; font-size: 0.66rem; font-weight: 700; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--accent-text); background: rgba(108,171,186,0.14);
  padding: 0.3rem 0.6rem; border-radius: 999px; margin-bottom: 0.9rem;
}
.insight-card h3 { font-size: 1.12rem; font-weight: 600; color: var(--ocean-blue); line-height: 1.35; margin-bottom: 0.5rem; }
.insight-card .insight-date { font-size: 0.8rem; color: var(--steel); margin-top: 0.9rem; }

/* Numbered service anchor rows (services page detail) */
.svc-detail { display: grid; grid-template-columns: minmax(0,1fr); gap: 1rem; scroll-margin-top: 2rem; }
.svc-detail + .svc-detail { margin-top: clamp(2rem, 5vh, 3.25rem); padding-top: clamp(2rem, 5vh, 3.25rem); border-top: 1px solid var(--smoke); }
.svc-num {
  font-size: 0.8rem; font-weight: 700; letter-spacing: 0.2em; color: var(--sky-cyan);
}
@media (min-width: 760px) {
  .svc-detail { grid-template-columns: 200px 1fr; gap: 2.5rem; }
}

/* ── Empty / placeholder note (marks TODO content) ─────── */
.editor-note {
  border: 1px dashed var(--sky-cyan); border-radius: 12px; background: rgba(108,171,186,0.07);
  padding: 1rem 1.2rem; font-size: 0.88rem; line-height: 1.6; color: var(--accent-text); margin-top: 1.25rem;
}
.editor-note strong { color: var(--ocean-blue); }

/* ── Contact page layout ───────────────────────────────── */
.contact-grid { display: grid; gap: clamp(1.75rem, 4vw, 3rem); grid-template-columns: 1fr; align-items: start; }
@media (min-width: 820px) { .contact-grid { grid-template-columns: 1.1fr 0.9fr; } }
.contact-panel {
  background: var(--card-bg); border: 1px solid var(--smoke); border-radius: 16px;
  padding: clamp(1.5rem, 4vw, 2.25rem);
}
.contact-detail { display: flex; flex-direction: column; gap: 1.5rem; }
.contact-item { display: flex; gap: 0.9rem; align-items: flex-start; }
.contact-item .card-icon { margin-bottom: 0; flex-shrink: 0; }
.contact-item h3 { font-size: 0.7rem; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase; color: var(--steel); margin-bottom: 0.3rem; }
.contact-item p, .contact-item a { font-size: 1rem; line-height: 1.5; color: var(--graphite); text-decoration: none; }
.contact-item a:hover { color: var(--sky-cyan); }

/* CTA band */
.cta-band { text-align: center; }
.cta-band .section-title { margin: 0 auto; }
.cta-band .btn-row { margin-top: 1.75rem; display: flex; gap: 0.75rem; justify-content: center; flex-wrap: wrap; }

/* ── Fields (shared with modals) ───────────────────────── */
.field { display: flex; flex-direction: column; gap: 0.35rem; margin-bottom: 0.9rem; }
.field label { font-size: 0.66rem; font-weight: 700; letter-spacing: 0.22em; text-transform: uppercase; color: var(--graphite); }
.field label .opt { font-weight: 500; color: var(--steel); letter-spacing: 0.12em; }
.field input, .field textarea, .field select {
  font-family: 'Manrope', sans-serif; font-size: 0.95rem; font-weight: 500; color: var(--ocean-blue);
  background: #fff; border: 1px solid var(--smoke); border-radius: 8px; padding: 0.6rem 0.8rem;
  outline: none; transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.field input:focus, .field textarea:focus, .field select:focus {
  border-color: var(--sky-cyan); box-shadow: 0 0 0 3px rgba(108,171,186,0.25);
}
.field textarea { resize: vertical; min-height: 120px; }
.form-error { display: none; font-size: 0.85rem; font-weight: 500; color: #b04a4a; margin-top: 0.75rem; }
.form-error.show { display: block; }
.form-success { display: none; text-align: left; padding: 1rem 0; }
.form-success.show { display: block; }
.form-success h3 { font-size: 1.2rem; font-weight: 600; margin-bottom: 0.5rem; }
.form-success p { font-size: 0.95rem; color: var(--graphite); line-height: 1.6; }

/* ── Footer ────────────────────────────────────────────── */
footer.site-footer { border-top: 1px solid var(--smoke); padding: clamp(2rem, 5vh, 3rem) 0 clamp(1.75rem, 4vh, 2.5rem); margin-top: clamp(2rem, 6vh, 4rem); }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2rem; }
@media (max-width: 720px) { .foot-grid { grid-template-columns: 1fr 1fr; gap: 1.75rem 1.25rem; } }
@media (max-width: 460px) { .foot-grid { grid-template-columns: 1fr; } }
.foot-brand .logo { width: 150px; margin-bottom: 0.9rem; }
.foot-tagline { font-size: 0.9rem; line-height: 1.6; color: var(--graphite); max-width: 24em; }
.foot-col h4 { font-size: 0.66rem; font-weight: 700; letter-spacing: 0.24em; text-transform: uppercase; color: var(--steel); margin-bottom: 0.9rem; }
.foot-col ul { list-style: none; display: flex; flex-direction: column; gap: 0.55rem; }
.foot-col a { font-size: 0.92rem; color: var(--graphite); text-decoration: none; }
.foot-col a:hover { color: var(--sky-cyan); }
.foot-label { display: inline-flex; align-items: center; gap: 0.4rem; font-size: 0.66rem; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase; color: var(--steel); }
.foot-value { font-size: 0.88rem; font-weight: 500; line-height: 1.5; color: var(--graphite); font-style: normal; }

.foot-bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.5rem 2rem;
  margin-top: 2rem; padding-top: 1.25rem; border-top: 1px solid var(--smoke);
  font-size: 0.75rem; color: var(--steel);
}
.foot-bottom a { color: var(--steel); text-decoration: none; border-bottom: 1px solid var(--smoke); }
.foot-bottom a:hover { color: var(--sky-cyan); border-bottom-color: var(--sky-cyan); }
.foot-social { display: inline-flex; gap: 0.6rem; align-items: center; }
.social-link { display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; border-radius: 6px; color: var(--steel); border: 1px solid var(--smoke); }
.social-link svg { width: 15px; height: 15px; }
.social-link:hover { color: var(--sky-cyan); border-color: var(--sky-cyan); }
.usa-badge { display: inline-flex; align-items: center; gap: 0.5rem; font-size: 0.72rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--graphite); white-space: nowrap; }
.usa-badge svg { width: 22px; height: auto; border-radius: 2px; box-shadow: 0 0 0 1px var(--smoke); }

/* ── Modals (contact + mailing list) ───────────────────── */
dialog {
  position: fixed; top: 50%; left: 50%; transform: translate(-50%, -50%); z-index: 2000;
  border: none; border-radius: 12px; padding: 0; margin: 0;
  background: var(--whisper-white); color: var(--ocean-blue);
  width: min(440px, calc(100vw - 2.5rem)); max-height: calc(100vh - 2.5rem);
  overflow-y: auto; box-shadow: 0 24px 64px rgba(20,78,130,0.25);
}
.modal-backdrop { display: none; position: fixed; inset: 0; z-index: 1990; background: rgba(20,78,130,0.35); backdrop-filter: blur(3px); }
.modal-backdrop.show { display: block; }
.modal-inner { padding: clamp(1.5rem, 4vw, 2.25rem); }
.modal-close { position: absolute; top: 0.9rem; right: 0.9rem; width: 32px; height: 32px; border: none; border-radius: 50%; background: transparent; color: var(--graphite); font-size: 1.3rem; line-height: 1; cursor: pointer; }
.modal-close:hover { background: var(--smoke); color: var(--ocean-blue); }
.modal-kicker { display: inline-flex; align-items: center; gap: 0.6rem; font-size: 0.66rem; font-weight: 600; letter-spacing: 0.28em; text-transform: uppercase; color: var(--accent-text); margin-bottom: 0.6rem; }
.modal-kicker::before { content: ""; width: 24px; height: 2px; background: var(--sky-cyan); }
.modal-inner h2 { font-size: 1.35rem; font-weight: 600; letter-spacing: -0.01em; margin-bottom: 1.25rem; }
.modal-copy { font-size: 0.95rem; font-weight: 400; line-height: 1.7; color: var(--graphite); margin: -0.75rem 0 1.25rem; }
.h-captcha { margin-bottom: 0.9rem; }
.modal-submit { width: 100%; margin-top: 0.25rem; }
.ml-status { display: none; width: 100%; align-items: center; gap: 0.6rem; margin-top: 0.9rem; padding: 0.7rem 1rem; border-radius: 10px; font-size: 0.88rem; font-weight: 500; line-height: 1.5; color: var(--accent-text); background: rgba(108,171,186,0.12); border: 1px solid rgba(108,171,186,0.45); }
.ml-status.show { display: flex; }
.ml-status svg { width: 16px; height: 16px; flex-shrink: 0; }
.ml-status.error { color: #a03c3c; background: rgba(176,74,74,0.09); border-color: rgba(176,74,74,0.4); }
.ml-privacy { font-size: 0.78rem; font-weight: 500; color: var(--steel); line-height: 1.5; text-align: center; margin-top: 0.7rem; }

/* ── Entrance animation ────────────────────────────────── */
.reveal { opacity: 0; transform: translateY(10px); animation: enter 0.8s cubic-bezier(0.22,1,0.36,1) forwards; }
.reveal.d1 { animation-delay: 0.1s; } .reveal.d2 { animation-delay: 0.22s; }
.reveal.d3 { animation-delay: 0.34s; } .reveal.d4 { animation-delay: 0.46s; }
@keyframes enter { to { opacity: 1; transform: translateY(0); } }
/* The header must never keep a transform: a transformed ancestor makes the
   fixed mobile drawer + scrim anchor to the header box instead of the viewport,
   which breaks the slide-in menu. Animate the header's entrance with opacity only. */
.site-header.reveal { transform: none; animation-name: enter-fade; }
@keyframes enter-fade { to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
  .reveal { animation: none; opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}

/* ── Pattern arc accent ────────────────────────────────── */
.pattern-arc { position: absolute; right: max(-12vw, -160px); bottom: max(-14vh, -160px); width: clamp(280px, 38vw, 520px); height: auto; z-index: 0; pointer-events: none; }
.page-hero .frame { position: relative; z-index: 1; }

/* ── Dark theme ────────────────────────────────────────── */
html[data-theme="dark"] {
  --ocean-blue: #dce7f2; --whisper-white: #0b1c2e; --graphite: #9aa7b5;
  --steel: #8598ad; --smoke: #22384e; --accent-text: #6cabba;
  --card-bg: #0f2740; --card-tint: #0e2236;
}
html[data-theme="dark"] .contact-btn { background: #144e82; color: #f4f7f9; }
html[data-theme="dark"] .contact-btn:hover { background: #1c5e97; }
html[data-theme="dark"] .contact-btn:active { background: #2a6ea6; }
html[data-theme="dark"] .pattern-arc path { fill: #102539; }
html[data-theme="dark"] dialog { background: #0d2032; }
html[data-theme="dark"] .modal-backdrop { background: rgba(3,10,18,0.6); }
html[data-theme="dark"] .modal-close:hover { background: #22384e; color: #dce7f2; }
html[data-theme="dark"] .field input, html[data-theme="dark"] .field textarea, html[data-theme="dark"] .field select { background: #0f2438; color: #dce7f2; }
html[data-theme="dark"] .form-error { color: #e08a8a; }
html[data-theme="dark"] .ml-status.error { color: #e08a8a; background: rgba(224,138,138,0.1); border-color: rgba(224,138,138,0.35); }

/* ── Academy: membership benefits + pricing ────────────── */
.benefit-list { list-style: none; display: grid; gap: 0.85rem; margin-top: 0.5rem; }
.benefit-list li { position: relative; padding-left: 2.1rem; font-size: 1rem; line-height: 1.6; color: var(--graphite); }
.benefit-list li strong { color: var(--ocean-blue); font-weight: 600; }
.benefit-list li::before {
  content: ""; position: absolute; left: 0; top: 0; width: 1.4rem; height: 1.4rem;
  border-radius: 50%; background: rgba(108,171,186,0.16);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%233f7f92' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: center; background-size: 0.85rem;
}

.price-grid { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); max-width: 720px; }
.price-card {
  position: relative; background: var(--card-bg); border: 1px solid var(--smoke);
  border-radius: 16px; padding: clamp(1.6rem, 3.5vw, 2.1rem); display: flex; flex-direction: column;
}
.price-card.featured { border-color: var(--sky-cyan); box-shadow: 0 18px 44px rgba(20,78,130,0.12); }
.price-badge {
  position: absolute; top: -0.8rem; right: 1.4rem; font-size: 0.62rem; font-weight: 700;
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--whisper-white);
  background: var(--sky-cyan); padding: 0.35rem 0.7rem; border-radius: 999px;
}
.price-plan { font-size: 0.7rem; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase; color: var(--accent-text); margin-bottom: 0.9rem; }
.price-amount { font-size: clamp(2.2rem, 5vw, 2.7rem); font-weight: 700; letter-spacing: -0.02em; color: var(--ocean-blue); line-height: 1; }
.price-period { font-size: 0.95rem; font-weight: 500; color: var(--steel); }
.price-sub { font-size: 0.9rem; color: var(--graphite); margin-top: 0.5rem; min-height: 1.3em; }
.price-card .contact-btn { margin-top: 1.4rem; width: 100%; }
.price-note { font-size: 0.92rem; line-height: 1.6; color: var(--graphite); margin-top: 1.5rem; }
.price-note strong { color: var(--ocean-blue); font-weight: 600; }
.free-flag { display: inline-flex; align-items: center; gap: 0.5rem; font-size: 0.8rem; font-weight: 600; letter-spacing: 0.04em; color: var(--accent-text); background: rgba(108,171,186,0.14); padding: 0.4rem 0.9rem; border-radius: 999px; }

/* ── Mobile header: prevent control overflow (fix) ─────── */
@media (max-width: 860px) {
  .site-header .frame { justify-content: flex-start; gap: 0.5rem; }
  .head-right { order: 3; margin-left: auto; gap: 0.5rem; }
  .nav-toggle { order: 4; }
  /* Contact is reachable via the drawer's "Contact us" CTA */
  .head-right .contact-btn { display: none; }
  /* Subscribe collapses to an icon-only circle */
  .head-right .ghost-btn span { display: none; }
  .head-right .ghost-btn {
    width: 38px; height: 38px; padding: 0;
    justify-content: center; border-radius: 50%;
  }
}
