/* Design polish over the published bundle. Same palette, type and copy.
   Keeps the header clear of the announcement bar, stops sideways scroll on
   phones, replaces the bouncy hover easing, keeps hover off touch screens
   and themes browser surfaces. */
:root {
  --mtg-ease: cubic-bezier(.16, 1, .3, 1);
  /* For things that travel across the screen (the intro's flights). */
  --mtg-ease-in-out: cubic-bezier(.77, 0, .175, 1);
  /* The announcement bar script keeps this at the bar's height. */
  --mtg-bar-h: 0px;
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}
html { scrollbar-color: #c9a962 #faf8f5; }
body { overflow-x: clip; }
::selection { background: rgba(201, 169, 98, .35); }
:is(input, textarea, select) { accent-color: #c9a962; caret-color: #c9a962; }
#root a, #mtg-scorp-bar a { text-underline-offset: .22em; }
#root :is(h1, h2, h3) { text-wrap: balance; }
#root :is(p, li) { text-wrap: pretty; }

/* Header sits below the bar and condenses as the page scrolls. */
#root header.fixed {
  top: var(--mtg-bar-h);
  transition: top .35s var(--mtg-ease), background-color .45s var(--mtg-ease), box-shadow .45s var(--mtg-ease), border-color .45s var(--mtg-ease), padding .45s var(--mtg-ease);
}
/* Once the page scrolls, the announcement bar slides away and the header becomes
   a slim glass bar the page shows through, so a light section no longer sits
   under a heavy black stack. Both return at the top of the page. */
/* The bar script sets its position inline, so this needs !important to win. */
body:has(#root header.fixed.py-3) #mtg-scorp-bar { transform: translateY(-100%) !important; }
#root header.fixed.py-3 {
  top: 0;
  padding-block: 10px;
  background-color: rgba(28, 28, 30, .82);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  backdrop-filter: blur(18px) saturate(140%);
  border-bottom: 1px solid rgba(201, 169, 98, .14);
  box-shadow: 0 12px 32px -24px rgba(0, 0, 0, .55);
}
/* The logo is the brand kit's horizontal file, cropped to the mark so the whole
   box is logo, with the soft gold glow Jordan wants behind it. The aspect ratio
   reserves the width before the file loads. */
#root header.fixed a.group > img,
#root footer .mb-4 > img {
  aspect-ratio: 800 / 246;
  /* A tight lift plus a wide, faint halo reads as ambient light rather than a blur. */
  filter: drop-shadow(0 0 5px rgba(201, 169, 98, .32)) drop-shadow(0 0 22px rgba(201, 169, 98, .26));
}
#root header.fixed a.group > img {
  height: 50px;
  transition: height .45s var(--mtg-ease), filter .3s ease;
}
#root header.fixed.py-3 a.group > img { height: 44px; }
@media (hover: hover) and (pointer: fine) {
  #root header.fixed a.group:hover > img { filter: drop-shadow(0 0 6px rgba(201, 169, 98, .45)) drop-shadow(0 0 26px rgba(201, 169, 98, .4)); }
}
/* Tablets sit between the phone and desktop sizes. */
@media (min-width: 640px) and (max-width: 1023px) {
  #root header.fixed a.group > img { height: 42px; }
  #root header.fixed.py-3 a.group > img { height: 36px; }
}
@media (max-width: 639px) {
  #root header.fixed a.group > img { height: 36px; }
  #root header.fixed.py-3 a.group > img { height: 32px; }
  /* A little more air at the edges so the logo and menu button are not flush with the screen. */
  #root header.fixed > .container { padding-inline: 20px; }
}
@media (max-width: 1023px) {
  #root header.fixed:not(.py-3) { padding-block: 14px; }
  /* The menu button meets the 44px touch target and sits flush with the edge, with finer lines. */
  #root header.fixed button[aria-label="Toggle menu"] {
    min-width: 44px;
    min-height: 44px;
    align-items: center;
    justify-content: center;
    margin-right: -10px;
    border-radius: 8px;
  }
  #root header.fixed button[aria-label="Toggle menu"] > span { height: 1.5px; }
  /* An open menu gets a solid surface so the links never float over the hero. */
  #root header.fixed:has(button[aria-label="Toggle menu"] > .rotate-45) {
    background-color: #1c1c1e;
    background-image: none;
    box-shadow: 0 24px 48px -24px rgba(0, 0, 0, .8);
    max-height: calc(100dvh - var(--mtg-bar-h));
    overflow-y: auto;
  }
  #root header.fixed nav.flex-col { gap: 0; padding-block: 8px 24px; }
  #root header.fixed nav.flex-col > a {
    padding: 14px 0;
    border-bottom: 1px solid rgba(201, 169, 98, .14);
  }
  #root header.fixed nav.flex-col > a.btn-premium { border-bottom: 0; margin-top: 24px; }
}
#root footer .mb-4 > img { height: 40px; }

/* Calm, decelerating hover in place of the overshoot curve. */
#root :is(.btn-premium, .btn-premium-secondary) {
  transition: transform .35s var(--mtg-ease), box-shadow .35s var(--mtg-ease), background-color .25s ease, color .25s ease, border-color .25s ease;
}
/* A thin light edge along the top of the gold buttons gives them a glossy, finished look. */
#root .btn-premium { box-shadow: inset 0 1px 0 rgba(255, 255, 255, .38), 0 4px 20px -4px #c9a96266; }
#root .btn-premium-secondary { -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
/* The hero's pill badge gets the same soft gold halo as the logo. */
#root section.min-h-screen .inline-flex.rounded-full.border {
  box-shadow: 0 0 28px -6px rgba(201, 169, 98, .4);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}
/* Taps flash gold instead of the browser's grey. */
:is(a, button, [role="button"], summary) { -webkit-tap-highlight-color: rgba(201, 169, 98, .18); }
#root .btn-premium::before { transition: left .8s var(--mtg-ease); }
#root .card-premium {
  /* The blur sat behind a near opaque fill and only cost paint time. */
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  /* Hairline edge and a soft, low drop in place of the heavier shadow. */
  border-color: rgba(201, 169, 98, .2);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .7), 0 1px 2px #1c1c1e0a, 0 14px 36px -18px #1c1c1e2e;
  transition: transform .45s var(--mtg-ease), box-shadow .45s var(--mtg-ease), border-color .3s ease;
}
@media (hover: hover) and (pointer: fine) {
  #root :is(.btn-premium, .btn-premium-secondary):hover { transform: translateY(-2px); }
  #root .card-premium:hover { transform: translateY(-4px); }
  /* The light that follows the mouse across a card (position set by design-polish.js). */
  #root .card-premium:hover::after { opacity: 1; }
  #root :is(#testimonials .grid > div, section.bg-\[\#1C1C1E\] .grid > .rounded-2xl):hover { transform: translateY(-4px); border-color: rgba(201, 169, 98, .34); }
  #mtg-credentials .mc-advisor:hover .mc-go { transform: translateX(4px); }
  #mtg-credentials .mc-advisor:hover .mc-text > span { color: #c9a962; }
  #mtg-credentials .mc-advisor:hover img { box-shadow: 0 0 0 2px #1c1c1e, 0 0 0 3.5px #c9a962, 0 0 24px rgba(201, 169, 98, .35); }
}
/* A phone fakes hover on tap and leaves it stuck. The bundle's hover rules
   aren't gated, so touch screens get the resting look back. */
@media (hover: none), (pointer: coarse) {
  /* A mouse shaped scroll cue means nothing on a touch screen. */
  #root section.min-h-screen > .absolute.bottom-8 { display: none; }
  #root .btn-premium:hover { transform: none; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .38), 0 4px 20px -4px #c9a96266; }
  #root .btn-premium:hover::before { left: -100%; }
  #root .btn-premium-secondary:hover { transform: none; box-shadow: none; background-color: transparent; color: var(--gold); }
  #root.mtg-conversion-ready .mtg-hero .btn-premium-secondary:hover { color: var(--mtg-light-muted); }
  #root .card-premium:hover { transform: none; border-color: rgba(201, 169, 98, .2); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .7), 0 1px 2px #1c1c1e0a, 0 14px 36px -18px #1c1c1e2e; }
  #mello-signup-btn { background: #c9a962 !important; transform: none !important; }
  #root .card-premium::after { display: none; }
}
/* Press feedback works with any input, so it sits after the touch reset. */
#root :is(.btn-premium, .btn-premium-secondary):active { transform: translateY(0) scale(.98); transition-duration: .1s; }
:is(a, button, [role="button"], summary, label) { touch-action: manipulation; }
:is(button, .btn-premium, .btn-premium-secondary) { -webkit-user-select: none; user-select: none; }
#root section.min-h-screen { min-height: 100svh; }
/* The badge on Jordan's photo carries the name, credential and title, so it tightens on narrow phones. */
@media (max-width: 420px) {
  #root #about .absolute.-bottom-4.-right-4 { font-size: 14px; padding: 10px 16px; }
}
/* On phones the badge stays inside the photo's frame instead of running to the screen edge. */
@media (max-width: 639px) {
  #root #about .absolute.-bottom-4.-right-4 { right: 12px; }
}
/* The hero's closing line breaks into two even lines on narrow phones instead of leaving one word behind. */
@media (max-width: 639px) {
  #root section.min-h-screen .tracking-wider.uppercase > span { text-wrap: balance; }
}

/* Stats hold their width while they count up. */
#root .card-premium.p-10.text-center > :nth-child(2) { font-variant-numeric: lining-nums tabular-nums; }
@media (max-width: 767px) {
  #root .grid:has(> .card-premium.p-10.text-center) { gap: 12px; }
  #root .card-premium.p-10.text-center {
    display: grid;
    grid-template-columns: 56px 1fr;
    column-gap: 20px;
    align-items: center;
    padding: 20px 24px;
    text-align: left;
  }
  #root .card-premium.p-10.text-center > :first-child { grid-row: span 2; width: 56px; height: 56px; margin: 0; }
  #root .card-premium.p-10.text-center > :first-child svg { width: 28px; height: 28px; }
  #root .card-premium.p-10.text-center > :nth-child(2) { font-size: 40px; line-height: 1; margin: 0; }
  #root .card-premium.p-10.text-center > :nth-child(3) { margin-top: 6px; font-size: 12px; }
}

/* The one authored moment: the promise comes into focus. */
@media (prefers-reduced-motion: no-preference) {
  /* Keyed to the h1 itself: .mtg-hero arrives later and would restart it. */
  #root h1 > span:last-child { animation: mtg-into-focus .9s var(--mtg-ease) .3s both; }
}
@keyframes mtg-into-focus {
  from { opacity: 0; filter: blur(12px); }
  to { opacity: 1; filter: blur(0); }
}

@media (prefers-reduced-motion: reduce) {
  #root .animate-pulse { animation: none; }
  #root :is(.btn-premium, .btn-premium-secondary, .card-premium):hover { transform: none; }
  #root .btn-premium::before { display: none; }
}

/* ───────────────────────── Premium pass ─────────────────────────
   Same palette and type. Adds the logo intro, a credentials band under the
   hero, a phone action bar, a scroll progress line and calmer, richer motion.
   The pieces that need markup come from intro.js and design-polish.js. */

/* The page is charcoal until the app paints, so the hero never flashes ivory. */
body:has(#root:empty) { background: #1c1c1e; }

/* ── Logo intro (assets/intro.js) ── */
html.mtg-intro::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 2147483000;
  background: radial-gradient(60rem 36rem at 50% 44%, rgba(201, 169, 98, .13), transparent 62%), #1c1c1e;
}
/* The curtain holds for the first part of the exit so the logo and tagline do most
   of their travel over charcoal, then lifts as they land. */
html.mtg-intro-out::before { opacity: 0; transition: opacity calc(var(--mi-out, 700ms) * .62) ease calc(var(--mi-out, 700ms) * .38); }
/* The real logo and headline stay hidden until the intro's copies land on them. */
html.mtg-intro-active #root header.fixed a.group > img,
html.mtg-intro-active #root h1 { visibility: hidden; }
#mtg-intro {
  position: fixed;
  inset: 0;
  z-index: 2147483001;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-bottom: 6vh;
  -webkit-user-select: none;
  user-select: none;
}
#mtg-intro .mi-lock { display: flex; flex-direction: column; align-items: center; }
#mtg-intro .mi-logo {
  position: relative;
  width: clamp(240px, 26vw, 340px);
  max-width: 66vw;
  aspect-ratio: 800 / 246;
  /* The same glow the header logo wears, so nothing changes when it lands. */
  filter: drop-shadow(0 0 5px rgba(201, 169, 98, .32)) drop-shadow(0 0 22px rgba(201, 169, 98, .26));
  will-change: transform;
}
/* On phones the intro logo is 200px, a little over half the screen. The header
   logo it lands on keeps its own size. */
@media (max-width: 639px) {
  #mtg-intro .mi-logo { width: 200px; }
}
#mtg-intro .mi-logo img { position: absolute; inset: 0; width: 100%; height: 100%; display: block; opacity: 0; }
/* One logo file shown as two layers: the mark (left) and the wordmark (right). */
#mtg-intro .mi-mark { clip-path: inset(0 68% 0 0); transform-origin: 14.5% 50%; }
#mtg-intro .mi-word { clip-path: inset(0 0 0 32%); }
/* The line everything collapses into. It opens wide to catch the clutter, then
   tightens into the short rule under the logo. */
#mtg-intro .mi-line { position: relative; width: 100%; height: 1px; margin-top: 26px; }
#mtg-intro .mi-rule {
  position: absolute;
  top: 0;
  left: 50%;
  width: min(74vw, 500px);
  height: 1px;
  margin-left: calc(min(74vw, 500px) / -2);
  background: linear-gradient(90deg, rgba(201, 169, 98, 0), #c9a962 22%, #c9a962 78%, rgba(201, 169, 98, 0));
  transform: scaleX(0);
}
/* The clutter of form names. Each one sits --x and --y steps out from the middle
   of the line; a step is 7px, or 1% of the screen width on a phone. */
#mtg-intro .mi-clutter { position: absolute; left: 50%; top: 0; width: 0; height: 0; --u: min(1vw, 7px); --k: 1px; }
@media (min-width: 1024px) {
  #mtg-intro .mi-clutter { --u: 9px; --k: 1.3px; }
}
#mtg-intro .mi-clutter span {
  position: absolute;
  left: 0;
  top: 0;
  margin: -.6em 0 0 -3em;
  width: 6em;
  text-align: center;
  font-family: Inter, sans-serif;
  font-size: calc(var(--s) * var(--k));
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: .04em;
  white-space: nowrap;
  color: #fff;
  opacity: 0;
  filter: blur(var(--b));
  --px: calc(var(--x) * var(--u));
  --py: calc(var(--y) * var(--u));
}
#mtg-intro .mi-tag {
  margin: 20px 0 0;
  font: 700 clamp(26px, 2.9vw, 38px) / 1.2 "Playfair Display", Georgia, serif;
  color: #fff;
  white-space: nowrap;
}
#mtg-intro .mi-w { display: inline-block; opacity: 0; }
#mtg-intro .mi-w1 { letter-spacing: -.02em; }
#mtg-intro .mi-w2 { color: #c9a962; letter-spacing: .05em; }
#mtg-intro .mi-fly { position: fixed; left: 0; top: 0; margin: 0; white-space: nowrap; transform-origin: 0 0; will-change: transform; }
#mtg-intro.mi-go .mi-clutter span { animation: mi-clutter 1.1s linear var(--d) both; }
/* "Taxes." rises centered, then slides left as "Simplified." arrives. The second
   animation has no backwards fill, so it leaves the first alone until it starts. */
#mtg-intro.mi-go .mi-w1 { animation: mi-rise-centered .5s var(--mtg-ease) .12s both, mi-aside .5s var(--mtg-ease-in-out) 1.2s forwards; }
#mtg-intro.mi-go .mi-rule { animation: mi-rule 1.15s var(--mtg-ease) .66s both; }
#mtg-intro.mi-go .mi-mark { animation: mi-focus .7s var(--mtg-ease) .92s both; }
#mtg-intro.mi-go .mi-word { animation: mi-wipe .72s var(--mtg-ease-in-out) 1.14s both; }
#mtg-intro.mi-go .mi-w2 { animation: mi-rise .5s var(--mtg-ease) 1.52s both; }
#mtg-intro.mi-exit .mi-rule { opacity: 0; transition: opacity .18s ease; }
/* Scattered and drifting, then flattened onto the line. */
@keyframes mi-clutter {
  0% { opacity: 0; transform: translate(calc(var(--px) * 1.14), calc(var(--py) * 1.14)) rotate(var(--r)) scale(1.06); animation-timing-function: cubic-bezier(.16, 1, .3, 1); }
  28% { opacity: var(--o); transform: translate(var(--px), var(--py)) rotate(var(--r)); animation-timing-function: linear; }
  56% { opacity: var(--o); transform: translate(calc(var(--px) * .96), calc(var(--py) * .96)) rotate(var(--r)); animation-timing-function: cubic-bezier(.77, 0, .175, 1); }
  92% { opacity: var(--o); }
  100% { opacity: 0; transform: translate(calc(var(--px) * .34), 0) rotate(0deg) scale(.86, .03); }
}
@keyframes mi-focus {
  from { opacity: 0; transform: scale(.94); filter: blur(10px); }
  to { opacity: 1; transform: none; filter: blur(0); }
}
@keyframes mi-wipe {
  from { opacity: 0; clip-path: inset(0 68% 0 32%); }
  15% { opacity: 1; }
  to { opacity: 1; clip-path: inset(0 0 0 32%); }
}
@keyframes mi-rule {
  0% { transform: scaleX(0); animation-timing-function: cubic-bezier(.16, 1, .3, 1); }
  38% { transform: scaleX(1); animation-timing-function: cubic-bezier(.77, 0, .175, 1); }
  100% { transform: scaleX(.25); }
}
@keyframes mi-rise {
  from { opacity: 0; transform: translateY(12px); filter: blur(4px); }
  to { opacity: 1; transform: none; filter: blur(0); }
}
@keyframes mi-rise-centered {
  from { opacity: 0; transform: translate(var(--shift, 0px), 12px); filter: blur(4px); }
  to { opacity: 1; transform: translate(var(--shift, 0px), 0); filter: blur(0); }
}
@keyframes mi-aside { from { transform: translate(var(--shift, 0px), 0); } to { transform: none; } }
@keyframes mi-fade { from { opacity: 0; } to { opacity: 1; } }

/* ── Hero ── */
/* The photo settles very slowly, once, so the first screen is never frozen. */
@media (prefers-reduced-motion: no-preference) {
  #root section.min-h-screen > .absolute.z-0 > .bg-cover { animation: mtg-settle 18s var(--mtg-ease) both; }
  /* One pass of light across the main button once the page has arrived. */
  /* Moved with transform, since the bundle already transitions this layer's left on hover. */
  html:not(.mtg-intro) #root .mtg-primary-discovery::before { animation: mtg-sheen 1.1s var(--mtg-ease) .9s 1 backwards; }
}
@keyframes mtg-settle { from { transform: scale(1.09); } to { transform: scale(1); } }
@keyframes mtg-sheen { from { transform: translateX(0); } to { transform: translateX(200%); } }
/* On wide screens the hero gives up the band's height so both share the first screen. */
@media (min-width: 1024px) {
  #root.mtg-premium-ready section.min-h-screen { min-height: calc(100svh - 98px - var(--mtg-bar-h)); }
  #root.mtg-premium-ready.mtg-conversion-ready .mtg-hero > .container { padding-top: 148px; padding-bottom: 52px; }
  /* The band now marks that the page continues, so the mouse shaped cue retires. */
  #root.mtg-premium-ready section.min-h-screen > .absolute.bottom-8 { display: none; }
}
@media (min-width: 640px) and (max-width: 1023px) {
  #root.mtg-premium-ready section.min-h-screen { min-height: calc(100svh - 174px - var(--mtg-bar-h)); }
  #root.mtg-premium-ready section.min-h-screen > .absolute.bottom-8 { display: none; }
}

/* On a phone the hero is taller than the screen. The bundle fades the hero's text
   out as the page scrolls, which suits a one screen hero but left the phone hero's
   lower half (the contact row and the 50 states line) dimmed to nothing by the time
   it scrolled into view, so it read as a block of empty dark space. On phones the
   text stays solid, the hero is only as tall as its content and the spacing
   tightens so the credentials band follows directly. */
@media (max-width: 639px), (max-height: 500px) {
  #root section.min-h-screen > .container { opacity: 1 !important; }
}
@media (max-width: 639px) {
  #root.mtg-premium-ready section.min-h-screen { min-height: 0; }
  #root.mtg-premium-ready.mtg-conversion-ready .mtg-hero > .container { padding-top: 104px; padding-bottom: 40px; }
  #root.mtg-premium-ready .mtg-hero .inline-flex.rounded-full.border { margin-bottom: 24px; }
  #root.mtg-premium-ready .mtg-hero h1 { margin-bottom: 20px; }
  #root.mtg-premium-ready .mtg-hero h1 + p { margin-bottom: 28px; }
  #root.mtg-premium-ready #mtg-discovery-intro { margin-top: 20px; }
  #root.mtg-premium-ready #mtg-contact-rail { margin-top: 20px; }
  #root.mtg-premium-ready .mtg-hero .tracking-wider.uppercase { margin-top: 24px; }
  /* The mouse shaped scroll cue landed on top of the 50 states line once the hero
     tightened, so it retires at phone widths too (with or without a touch screen). */
  #root.mtg-premium-ready section.min-h-screen > .absolute.bottom-8 { display: none; }
  /* The globe sits beside the two line text instead of out at the screen edge. */
  #root.mtg-premium-ready .mtg-hero .tracking-wider.uppercase > span { max-width: 17em; }
}

/* ── Credentials band (design-polish.js) ── */
#mtg-credentials {
  position: relative;
  z-index: 2;
  background: linear-gradient(180deg, #1c1c1e, #202022);
  border-top: 1px solid rgba(201, 169, 98, .24);
  border-bottom: 1px solid rgba(201, 169, 98, .12);
  color: #fff;
  font-family: Inter, sans-serif;
}
#mtg-credentials .mc-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 3fr);
  align-items: center;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 32px;
}
#mtg-credentials .mc-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 0; padding: 0; list-style: none; }
#mtg-credentials .mc-item { display: flex; align-items: center; gap: 14px; min-height: 96px; padding: 18px 24px; }
#mtg-credentials .mc-list .mc-item { border-left: 1px solid rgba(255, 255, 255, .08); }
#mtg-credentials .mc-advisor { padding-left: 0; color: inherit; text-decoration: none; }
#mtg-credentials .mc-advisor img {
  flex: none;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 0 0 2px #1c1c1e, 0 0 0 3.5px rgba(201, 169, 98, .7);
  transition: box-shadow .3s ease;
}
#mtg-credentials .mc-text { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
#mtg-credentials .mc-text > strong { font-size: 14.5px; font-weight: 600; line-height: 1.3; letter-spacing: .005em; color: #fff; }
#mtg-credentials .mc-text > span { font-size: 13px; line-height: 1.4; color: rgba(255, 255, 255, .64); text-wrap: balance; transition: color .25s ease; }
#mtg-credentials .mc-icon {
  flex: none;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  color: #c9a962;
  background: rgba(201, 169, 98, .1);
  box-shadow: inset 0 0 0 1px rgba(201, 169, 98, .26);
}
#mtg-credentials .mc-icon svg { width: 19px; height: 19px; }
#mtg-credentials .mc-go { flex: none; margin-left: auto; padding-right: 20px; color: #c9a962; transition: transform .3s var(--mtg-ease); }
#mtg-credentials .mc-go svg { display: block; width: 16px; height: 16px; }
#mtg-credentials .mc-advisor:focus-visible { outline: 2px solid #c9a962; outline-offset: -4px; border-radius: 8px; }
@media (max-width: 1023px) {
  #mtg-credentials .mc-inner { grid-template-columns: 1fr; padding: 0 20px; }
  #mtg-credentials .mc-item { min-height: 0; padding: 16px 0; }
  #mtg-credentials .mc-go { padding-right: 4px; }
  #mtg-credentials .mc-list { border-top: 1px solid rgba(255, 255, 255, .08); }
  #mtg-credentials .mc-list .mc-item { border-left: 0; padding-inline: 12px; }
}
/* On phones the band is one quiet line between the hero and the stats: the two
   credentials side by side, a gold hairline between them. The photo row and the
   Sacramento row are desktop and tablet only (on a phone the stack read like a
   contact card, and the 50 states line already sits right above). The sub lines
   drop too so the strip stays on one line down to 320px. */
@media (max-width: 639px) {
  #mtg-credentials .mc-advisor,
  #mtg-credentials .mc-list .mc-item:nth-child(3),
  #mtg-credentials .mc-text > span { display: none; }
  #mtg-credentials .mc-inner { display: block; padding: 0 16px; }
  #mtg-credentials .mc-list { display: flex; align-items: center; justify-content: center; height: 52px; border-top: 0; }
  #mtg-credentials .mc-list .mc-item { gap: 7px; min-width: 0; padding: 0; }
  #mtg-credentials .mc-list .mc-item + .mc-item { margin-left: 14px; padding-left: 14px; border-left: 1px solid rgba(201, 169, 98, .34); }
  #mtg-credentials .mc-icon { width: auto; height: auto; background: none; box-shadow: none; border-radius: 0; }
  #mtg-credentials .mc-icon svg { width: 15px; height: 15px; }
  #mtg-credentials .mc-text > strong { font-size: 13px; line-height: 1; letter-spacing: .02em; white-space: nowrap; color: rgba(255, 255, 255, .9); }
}
/* The band arrives after the hero (and after the intro, when it plays). */
@media (prefers-reduced-motion: no-preference) {
  #mtg-credentials .mc-item { opacity: 0; }
  html:not(.mtg-intro) #mtg-credentials .mc-item { animation: mtg-rise .7s var(--mtg-ease) .25s both; }
  html:not(.mtg-intro) #mtg-credentials .mc-list .mc-item:nth-child(1) { animation-delay: .33s; }
  html:not(.mtg-intro) #mtg-credentials .mc-list .mc-item:nth-child(2) { animation-delay: .41s; }
  html:not(.mtg-intro) #mtg-credentials .mc-list .mc-item:nth-child(3) { animation-delay: .49s; }
}
@keyframes mtg-rise {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: none; }
}

/* ── Scroll progress: a gold hairline across the top, where the browser supports it ── */
#mtg-progress { display: none; }
@supports (animation-timeline: scroll()) {
  #mtg-progress {
    display: block;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 60;
    height: 2px;
    background: linear-gradient(90deg, #c9a962, #d4b978);
    transform: scaleX(0);
    transform-origin: 0 50%;
    pointer-events: none;
    animation: mtg-progress linear both;
    animation-timeline: scroll(root);
  }
}
@keyframes mtg-progress { to { transform: scaleX(1); } }

/* ── Menu: the section on screen stays gold with its underline drawn ── */
#root header.fixed nav a[data-mtg-current] { color: #c9a962; }
#root header.fixed nav a[data-mtg-current] > span.absolute { width: 100%; }

/* ── Section rules draw in from the center the first time they are seen ── */
@media (prefers-reduced-motion: no-preference) {
  #root.mtg-premium-ready .premium-divider { transform: scaleX(0); transition: transform 1s var(--mtg-ease) .2s; }
  #root.mtg-premium-ready .premium-divider[data-mtg-in] { transform: scaleX(1); }
  #root.mtg-premium-ready .premium-divider.\!mx-0 { transform-origin: 0 50%; }
}

/* ── Cards ── */
#root .card-premium { position: relative; }
#root .card-premium::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(260px circle at var(--mx, 50%) var(--my, 0%), rgba(201, 169, 98, .1), transparent 70%);
  opacity: 0;
  transition: opacity .35s ease;
  pointer-events: none;
}
/* Dark glass cards (testimonials, nationwide) get a gold hairline, depth and a calm lift. */
#root :is(#testimonials .grid > div, section.bg-\[\#1C1C1E\] .grid > .rounded-2xl) {
  border-color: rgba(201, 169, 98, .18);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .07), 0 28px 48px -32px rgba(0, 0, 0, .7);
  transition: transform .45s var(--mtg-ease), border-color .3s ease;
}
/* A quiet opening quote mark behind each testimonial. */
#root #testimonials .grid > div { position: relative; overflow: hidden; }
#root #testimonials .grid > div::before {
  content: "\201C";
  position: absolute;
  top: -18px;
  left: 14px;
  font: 700 120px / 1 "Playfair Display", Georgia, serif;
  color: rgba(201, 169, 98, .13);
  pointer-events: none;
}

/* ── Phone action bar (design-polish.js) ── */
#mtg-actionbar { display: none; }
@media (max-width: 767px) {
  #mtg-actionbar {
    display: flex;
    gap: 10px;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 55;
    padding: 10px 16px calc(10px + env(safe-area-inset-bottom, 0px));
    background: rgba(28, 28, 30, .86);
    -webkit-backdrop-filter: blur(18px) saturate(140%);
    backdrop-filter: blur(18px) saturate(140%);
    border-top: 1px solid rgba(201, 169, 98, .2);
    box-shadow: 0 -16px 32px -24px rgba(0, 0, 0, .6);
    font-family: Inter, sans-serif;
    transform: translateY(110%);
    visibility: hidden;
    transition: transform .28s var(--mtg-ease), visibility 0s linear .28s;
  }
  #mtg-actionbar.is-on { transform: none; visibility: visible; transition: transform .28s var(--mtg-ease), visibility 0s; }
  /* Out of the way while the menu is open or someone is typing. */
  body:has(#root header.fixed button[aria-label="Toggle menu"] > .rotate-45) #mtg-actionbar,
  body:has(:is(input, textarea):focus) #mtg-actionbar { transform: translateY(110%); }
  #mtg-actionbar a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 48px;
    border-radius: .375rem;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: .01em;
    text-decoration: none;
    -webkit-user-select: none;
    user-select: none;
    transition: transform .16s var(--mtg-ease);
  }
  #mtg-actionbar a:active { transform: scale(.97); }
  #mtg-actionbar svg { width: 17px; height: 17px; }
  #mtg-actionbar .ma-call { flex: none; padding: 0 20px; color: #c9a962; border: 1px solid rgba(201, 169, 98, .5); }
  #mtg-actionbar .ma-book {
    flex: 1;
    color: #1c1c1e;
    background: linear-gradient(135deg, #c9a962, #d4b978);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .38), 0 4px 20px -4px #c9a96266;
  }
  /* No back to top button on phones: it floated over card text right above the bar,
     and the bar and the menu already cover getting around. */
  #root a[aria-label="Back to top"] { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  /* The intro becomes a short fade with nothing moving. */
  #mtg-intro.mi-go :is(.mi-mark, .mi-word, .mi-w) { animation: mi-fade .4s ease both; }
  #mtg-intro.mi-go .mi-rule { animation: none; transform: scaleX(.25); }
  #mtg-intro .mi-clutter { display: none; }
  #mtg-actionbar, #mtg-actionbar.is-on { transition: visibility 0s; }
  #root :is(#testimonials .grid > div, section.bg-\[\#1C1C1E\] .grid > .rounded-2xl):hover { transform: none; }
}
