/* aimscharter-marketing.css
   Shared marketing design system extracted from /aimscharter/index.html.
   Applies to pre-checkout + transitional signup surfaces so they feel like
   natural extensions of the landing page, not a separate wizard.
   Rob 2026-08-28.

   Adopters: core-configure.html, signup.html, tier-comparison.html,
   policy-pack.html, policy-pack-success.html, max-quote.html,
   finish-account-setup.html, signup-success.html, verify.html.

   Not for: setup-preview-*.html (has its own stepper aesthetic that IS
   the app-side wizard identity), dashboard-*.html (internal app surface). */

:root {
  --ground: #ffffff;
  --band: #faf7f2;
  --band-2: #f5f1e8;
  --ink: #111827;
  --ink-2: #334155;
  --ink-3: #6b7280;
  --ink-4: #9ca3af;
  --line: #e5e0d3;
  --line-2: #efe9dc;
  --accent: #EEAF11;
  --accent-hover: #F5C13A;
  --accent-deep: #7a5a00;
  --accent-quiet: #fbf3e5;
  --navy: #111827;
  --navy-2: #1F2937;
  --shadow-card: 0 1px 2px rgba(17,24,39,0.04), 0 8px 24px rgba(17,24,39,0.05);
  --shadow-card-hover: 0 1px 2px rgba(17,24,39,0.06), 0 14px 34px rgba(17,24,39,0.08);
  --radius: 16px;
  --radius-sm: 12px;
  --nav-h: 52px;
  --font-sans: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Helvetica Neue", Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  scroll-padding-top: calc(var(--nav-h) + 16px);
}

body.mkt {
  font-family: var(--font-sans);
  color: var(--ink);
  background: var(--ground);
  font-size: 17px;
  line-height: 1.5;
  letter-spacing: -0.008em;
  margin: 0;
}

/* Anchor default: no underline. Color is NOT set globally — button-styled
   anchors (.mkt-btn, .summary-cta, .tier-cta, .hero-price, .mq-submit,
   etc.) need to keep their own explicit color. Prose links pick up the
   amber accent via the prose-scoped selectors below. Rob 2026-08-28 fix:
   global `.mkt a { color: var(--accent-deep, #7a5a00) }` was overriding button text
   colors and rendering CTAs invisible (amber-on-amber). */
.mkt a { text-decoration: none; }
.mkt-hero-lede a,
.mkt-hero-define a,
.mkt-panel a,
.mkt-help a,
.mkt-footer-disclaimer a,
.mkt-learn-more-content a,
.mkt p a {
  color: var(--accent-deep, #7a5a00);
}
.mkt-hero-lede a:hover,
.mkt-hero-define a:hover,
.mkt-panel a:hover,
.mkt-help a:hover,
.mkt-footer-disclaimer a:hover,
.mkt-learn-more-content a:hover,
.mkt p a:hover { text-decoration: underline; }

/* ==================== NAV ==================== */
.mkt-nav {
  position: sticky; top: 0; z-index: 100; height: var(--nav-h);
  background: rgba(255,255,255,0.85);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--line-2);
}
.mkt-nav-inner {
  max-width: 1120px; margin: 0 auto; padding: 0 24px; height: 100%;
  display: flex; align-items: center; justify-content: space-between;
  font-size: 14px;
}
.mkt-nav-brand {
  display: inline-flex; align-items: center; gap: 10px;
  color: var(--ink); font-weight: 600; letter-spacing: -0.015em;
}
.mkt-nav-brand:hover { text-decoration: none; }
.mkt-nav-brand img { width: 26px; height: 26px; }
.mkt-nav-links { display: flex; gap: 26px; align-items: center; }
.mkt-nav-links a { color: var(--ink); opacity: 0.82; }
.mkt-nav-links a:hover { opacity: 1; text-decoration: none; }

/* ==================== HERO ==================== */
.mkt-hero {
  padding: 88px 24px 40px;
  text-align: center;
}
.mkt-hero-inner {
  max-width: 960px; margin: 0 auto;
}
.mkt-eyebrow {
  display: inline-block;
  font-size: 12px; font-weight: 600;
  color: var(--accent-deep);
  letter-spacing: 0.06em; text-transform: uppercase;
  padding: 6px 14px; background: var(--accent-quiet);
  border-radius: 980px; margin-bottom: 22px;
}
.mkt-hero h1 {
  font-size: clamp(36px, 5.4vw, 58px);
  line-height: 1.06; letter-spacing: -0.03em;
  font-weight: 600; color: var(--ink);
  text-wrap: balance;
  max-width: 800px; margin: 0 auto;
}
.mkt-hero h1 .accent { color: var(--accent-deep, #7a5a00); }
.mkt-hero-lede {
  margin-top: 22px; font-size: 20px; line-height: 1.5;
  color: var(--ink-2); font-weight: 400;
  max-width: 640px; margin-left: auto; margin-right: auto;
}
.mkt-hero-define {
  margin-top: 20px; font-size: 14px; color: var(--ink-3);
  max-width: 560px; margin-left: auto; margin-right: auto;
}
.mkt-hero-define strong { color: var(--ink-2); font-weight: 600; }

@media (max-width: 640px) {
  .mkt-hero { padding: 64px 20px 32px; }
  .mkt-hero-lede { font-size: 17px; }
}

/* ==================== SECTION HEADERS ==================== */
.mkt-section-eyebrow {
  display: inline-block;
  font-size: 11px; font-weight: 700;
  color: var(--accent-deep);
  letter-spacing: 0.1em; text-transform: uppercase;
  padding: 4px 12px; background: var(--accent-quiet);
  border-radius: 980px; margin-bottom: 12px;
}
.mkt-section-title {
  font-size: clamp(24px, 3.2vw, 32px); font-weight: 600;
  letter-spacing: -0.02em; line-height: 1.2;
  color: var(--ink); text-wrap: balance; margin: 0 0 8px;
}
.mkt-section-sub {
  font-size: 15px; line-height: 1.5; color: var(--ink-3);
  max-width: 640px; margin: 0;
}

/* ==================== PANELS / CARDS ==================== */
.mkt-panels {
  padding: 24px 24px 56px;
}
.mkt-panels-inner {
  max-width: 1000px; margin: 0 auto;
  display: flex; flex-direction: column; gap: 24px;
}
.mkt-panel {
  background: var(--band);
  border-radius: var(--radius);
  padding: 40px 44px;
  box-shadow: var(--shadow-card);
  transition: transform 200ms ease, box-shadow 200ms ease;
  color: var(--ink-2);
  font-size: 15.5px; line-height: 1.55;
}
.mkt-panel-white {
  background: var(--ground);
  border: 1px solid var(--line);
}
.mkt-panel-dark {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-2) 100%);
  color: rgba(245,245,247,0.85);
}
.mkt-panel-dark h2, .mkt-panel-dark h3 { color: #fff; }
.mkt-panel-hover:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-card-hover);
}
.mkt-panel-head {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 20px; margin-bottom: 22px; flex-wrap: wrap;
}
.mkt-panel-title {
  font-size: 22px; font-weight: 600;
  letter-spacing: -0.015em; color: var(--ink);
  margin: 0;
}
.mkt-panel-meta {
  font-size: 13px; color: var(--ink-3);
}

@media (max-width: 860px) {
  .mkt-panel { padding: 28px 24px; }
  .mkt-panel-head { gap: 12px; }
}

/* ==================== BUTTONS ==================== */
.mkt-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  font-family: var(--font-sans);
  font-size: 15px; font-weight: 600; letter-spacing: -0.005em;
  padding: 13px 26px; border-radius: 980px;
  transition: all 160ms ease;
  cursor: pointer; border: none;
  text-decoration: none;
}
.mkt-btn:hover { text-decoration: none; }
.mkt-btn-primary {
  background: var(--accent); color: #ffffff;
}
.mkt-btn-primary:hover:not(:disabled) {
  background: var(--accent-hover);
  color: #ffffff;
}
.mkt-btn-primary:disabled {
  opacity: 0.5; cursor: not-allowed;
}
.mkt-btn-outline {
  background: transparent; color: var(--ink);
  border: 1.5px solid var(--ink);
}
.mkt-btn-outline:hover { background: var(--ink); color: #fff; }
.mkt-btn-ghost {
  background: transparent; color: var(--ink-2);
  border: 1px solid var(--line);
}
.mkt-btn-ghost:hover { background: var(--band); color: var(--ink); }
.mkt-btn-inverse {
  background: #ffffff; color: var(--navy);
}
.mkt-btn-inverse:hover { background: var(--band); }
.mkt-btn .arrow { transition: transform 160ms ease; }
.mkt-btn:hover .arrow { transform: translateX(3px); }
.mkt-btn-lg { padding: 15px 30px; font-size: 16px; }
.mkt-btn-sm { padding: 9px 18px; font-size: 13.5px; }

/* ==================== FORM ELEMENTS ==================== */
.mkt-field { display: flex; flex-direction: column; gap: 6px; }
.mkt-label {
  font-size: 12px; font-weight: 700;
  letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--ink-3);
}
.mkt-label .req { color: #DC2626; margin-left: 3px; }
.mkt-input, .mkt-select, .mkt-textarea {
  width: 100%; box-sizing: border-box;
  padding: 12px 14px;
  background: var(--ground);
  border: 1px solid var(--line);
  border-radius: 10px;
  font-family: var(--font-sans); font-size: 15px;
  color: var(--ink);
  transition: border-color 120ms ease, box-shadow 120ms ease;
}
.mkt-input:focus, .mkt-select:focus, .mkt-textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(238, 175, 17, 0.15);
}
.mkt-input::placeholder, .mkt-textarea::placeholder { color: var(--ink-4); }
.mkt-help {
  font-size: 12.5px; color: var(--ink-3); line-height: 1.5; margin-top: 2px;
}

/* ==================== FOOTER ==================== */
.mkt-footer {
  padding: 44px 24px 56px;
  border-top: 1px solid var(--line-2);
  background: #fff;
  margin-top: 48px;
}
.mkt-footer-inner {
  max-width: 1120px; margin: 0 auto;
  display: flex; flex-direction: column; gap: 20px;
}
.mkt-footer-brand {
  display: flex; align-items: center; gap: 10px;
  padding-bottom: 16px; border-bottom: 1px solid var(--line-2);
  font-size: 14px; color: var(--ink-3);
  letter-spacing: -0.005em;
}
.mkt-footer-brand img { width: 24px; height: 24px; flex-shrink: 0; }
.mkt-footer-brand strong { color: var(--ink); font-weight: 600; }
.mkt-footer-align { display: flex; gap: 12px; flex-wrap: wrap; }
.mkt-align-badge {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12px; font-weight: 500; color: var(--ink-3);
  padding: 6px 12px; border: 1px solid var(--line); border-radius: 980px;
}
.mkt-align-badge .dot {
  width: 6px; height: 6px; border-radius: 50%; background: var(--accent);
}
.mkt-footer-disclaimer {
  font-size: 12px; line-height: 1.6; color: var(--ink-3); max-width: 820px; text-align: center; align-self: center;
}
.mkt-footer-meta {
  display: flex; justify-content: space-between; gap: 20px;
  padding-top: 20px; border-top: 1px solid var(--line-2);
  font-size: 12px; color: var(--ink-4); flex-wrap: wrap;
}
.mkt-footer-meta a { color: var(--ink-3); }
.mkt-footer-meta-links { display: flex; gap: 20px; flex-wrap: wrap; }

/* ==================== TERM / JARGON TOOLTIPS ==================== */
.mkt-term {
  border-bottom: 1px dotted var(--accent);
  cursor: help; position: relative; color: inherit;
}
.mkt-term:hover::after {
  content: attr(data-def);
  position: absolute;
  bottom: calc(100% + 10px); left: 0; z-index: 100;
  background: var(--ground);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px 16px;
  color: var(--ink);
  font-size: 12px; line-height: 1.55;
  width: 320px;
  box-shadow: 0 10px 30px rgba(17,24,39,0.12);
  white-space: normal; font-weight: 400;
  letter-spacing: -0.005em;
}

/* ==================== LEARN MORE PANEL ==================== */
.mkt-learn-more { margin-top: 12px; }
.mkt-learn-more summary {
  cursor: pointer; color: var(--accent-deep);
  font-size: 12.5px; font-weight: 700;
  padding: 7px 12px;
  display: inline-flex; align-items: center; gap: 6px;
  border-radius: 8px; user-select: none;
  background: var(--accent-quiet);
  border: 1px solid #f0e3c9;
  list-style: none;
  transition: all 0.15s ease;
}
.mkt-learn-more summary::-webkit-details-marker { display: none; }
.mkt-learn-more summary::before {
  content: '?';
  display: inline-flex; align-items: center; justify-content: center;
  width: 14px; height: 14px; border-radius: 999px;
  background: var(--accent); color: #ffffff;
  font-size: 10px; font-weight: 800;
}
.mkt-learn-more summary:hover { background: #f4e3bf; }
.mkt-learn-more[open] summary { background: #f4e3bf; border-color: var(--accent); }
.mkt-learn-more-content {
  margin-top: 10px; padding: 14px 18px;
  background: var(--band);
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  border-radius: 10px;
  color: var(--ink-2);
  font-size: 14px; line-height: 1.65;
}
.mkt-learn-more-content p { margin: 0 0 10px; }
.mkt-learn-more-content p:last-child { margin: 0; }
.mkt-learn-more-content strong { color: var(--ink); font-weight: 600; }

/* ==================== UTILITIES ==================== */
.mkt-container { max-width: 1000px; margin: 0 auto; padding: 0 24px; }
.mkt-container-narrow { max-width: 640px; margin: 0 auto; padding: 0 24px; }
.mkt-container-wide { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.mkt-stack { display: flex; flex-direction: column; gap: 20px; }
.mkt-row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.mkt-muted { color: var(--ink-3); }
.mkt-strong { color: var(--ink); font-weight: 600; }

/* ==================== SAFETY OVERRIDES ==================== */
/* Belt-and-suspenders (Rob 2026-08-28 screenshot fix). When these page-
   specific classes live on a `.mkt` page, ensure text stays readable on
   the marketing light shell even if the setup-preview `--text-*` token
   overrides don't cascade cleanly. Explicit hex, no variable dependency. */
.mkt .addon-name,
.mkt .base-name,
.mkt .tier-name,
.mkt .seat-count,
.mkt .summary-total-label,
.mkt .summary-total-num,
.mkt .summary-line.base .summary-name,
.mkt .summary-line .summary-val,
.mkt .base-price,
.mkt .tipping-title { color: #111827 !important; }

.mkt .addon-sub,
.mkt .base-desc,
.mkt .addon-body,
.mkt .addon-price .plus,
.mkt .addon-price .per,
.mkt .base-price .per,
.mkt .summary-line .summary-name,
.mkt .summary-line .summary-name-sub,
.mkt .summary-note,
.mkt .seat-picker-label,
.mkt .seat-help,
.mkt .tipping-body { color: #6b7280 !important; }

.mkt .addon-body strong,
.mkt .tipping-body strong { color: #334155 !important; font-weight: 600 !important; }

.mkt .addon-price { color: #334155 !important; }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
