/* Muni Broking: design tokens + resets (light theme, Apple-inspired neutrals + single orange accent) */
:root {
  color-scheme: light;
  /* palette: orange accent + near-black ink + neutral grays. Purple kept only in brand assets (logo, hero render). */
  --o: #f18717;
  --plum: #48484a;               /* neutral dark gray: secondary text, dark surfaces */
  --ink: #1d1d1f;                /* Apple-style near-black */
  /* navy purple: matches the WealthTick mobile app theme. Used for dark card
     surfaces (WealthTick CTA, robot card, promo ribbon) in place of near-black. */
  --purple: #37305c;              /* MUNI Purple: primary brand identity */
  --purple-deep: #37305c;         /* Navy Purple (R55 G48 B92) everywhere: no darker variant */
  --navy-900: #37305c;
  --navy-800: #37305c;
  --navy-700: #453c73;
  --bg: #fff;
  --mute: #6e6e73;               /* Apple-style secondary gray for body copy */
  --line: rgba(0, 0, 0, 0.09);
  --surface: rgba(0, 0, 0, 0.04);
  --o-soft: rgba(241, 135, 23, 0.12);
  --violet: #48484a;
  --glow-o: rgba(241, 135, 23, 0.45);
  --glow-v: rgba(0, 0, 0, 0.22);
  --shadow-sm: 0 6px 18px -8px rgba(0, 0, 0, 0.14);
  --shadow-lg: 0 34px 70px -28px rgba(0, 0, 0, 0.24);
  --ease: cubic-bezier(0.32, 0.72, 0, 1);
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", "Plus Jakarta Sans", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --display: var(--font);        /* Apple uses one system face at different optical sizes, not a separate display font */
  --wrap: 1320px;
  --gutter: clamp(16px, 3vw, 32px);
}

/* animatable custom properties for the glow-button gradient (see .btn--pri, .wt__help) */
@property --pos-x { syntax: '<percentage>'; inherits: false; initial-value: 20%; }
@property --pos-y { syntax: '<percentage>'; inherits: false; initial-value: 120%; }
@property --spread-x { syntax: '<percentage>'; inherits: false; initial-value: 140%; }
@property --spread-y { syntax: '<percentage>'; inherits: false; initial-value: 150%; }
@property --glow-1 { syntax: '<color>'; inherits: false; initial-value: #ffd08a; }
@property --glow-2 { syntax: '<color>'; inherits: false; initial-value: #f18717; }
@property --glow-3 { syntax: '<color>'; inherits: false; initial-value: #e0790f; }
@property --glow-4 { syntax: '<color>'; inherits: false; initial-value: #c9660d; }
@property --glow-5 { syntax: '<color>'; inherits: false; initial-value: #f18717; }
@property --glow-stop-1 { syntax: '<percentage>'; inherits: false; initial-value: 0%; }
@property --glow-stop-2 { syntax: '<percentage>'; inherits: false; initial-value: 35%; }
@property --glow-stop-3 { syntax: '<percentage>'; inherits: false; initial-value: 60%; }
@property --glow-stop-4 { syntax: '<percentage>'; inherits: false; initial-value: 85%; }
@property --glow-stop-5 { syntax: '<percentage>'; inherits: false; initial-value: 100%; }
@property --border-angle { syntax: '<angle>'; inherits: true; initial-value: 20deg; }
@property --border-1 { syntax: '<color>'; inherits: true; initial-value: hsla(32, 90%, 70%, 0.25); }
@property --border-2 { syntax: '<color>'; inherits: true; initial-value: hsla(32, 90%, 45%, 0.7); }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.55;
  font-weight: 500;
  letter-spacing: -0.005em;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body.no-scroll { overflow: hidden; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
ul { list-style: none; margin: 0; padding: 0; }
/* Focus indicator (WCAG 2.4.7 / 1.4.11): white inner ring + dark outer ring, so it is at least 3:1 on both light and dark sections */
:focus-visible { outline: 2px solid #fff !important; outline-offset: 0 !important; box-shadow: 0 0 0 5px #1d1d1f !important; border-radius: 6px; }
input:focus-visible, select:focus-visible, textarea:focus-visible { outline-offset: 0 !important; }
main:focus, main:focus-visible { outline: 0 !important; box-shadow: none !important; }
/* focused items must clear the sticky header and the floating accessibility / chat buttons (WCAG 2.4.11) */
html { scroll-padding-top: 120px; scroll-padding-bottom: 110px; }
.sr-only { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0; }
.skip-link {
  position: fixed; left: 12px; top: -80px; z-index: 2147483647; padding: 12px 20px; border-radius: 10px;
  background: #37305c; color: #fff; font: 700 15px/1.2 var(--font); text-decoration: underline; 
}
.skip-link:focus, .skip-link:focus-visible { top: 12px; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }

.btn {
  position: relative; overflow: hidden; isolation: isolate;
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 700; font-size: 15px; line-height: 1;
  padding: 13px 22px; border-radius: 999px;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.btn i { transition: transform 0.35s var(--ease); }
.btn:hover i { transform: translate(2px, -2px); }
.btn--pri {
  color: #000; font-weight: 700; border: 1.5px solid transparent;
  background:
    radial-gradient(
      var(--spread-x) var(--spread-y) at var(--pos-x) var(--pos-y),
      var(--glow-1) var(--glow-stop-1), var(--glow-2) var(--glow-stop-2),
      var(--glow-3) var(--glow-stop-3), var(--glow-4) var(--glow-stop-4), var(--glow-5) var(--glow-stop-5)
    ) padding-box,
    linear-gradient(var(--border-angle), var(--border-1), var(--border-2)) border-box;
  box-shadow: 0 8px 20px -8px var(--glow-o);
  transition:
    transform 0.35s var(--ease), box-shadow 0.35s var(--ease),
    --pos-x 0.5s, --pos-y 0.5s, --spread-x 0.5s, --spread-y 0.5s,
    --glow-1 0.5s, --glow-2 0.5s, --glow-3 0.5s, --glow-4 0.5s, --glow-5 0.5s,
    --glow-stop-1 0.5s, --glow-stop-2 0.5s, --glow-stop-3 0.5s, --glow-stop-4 0.5s, --glow-stop-5 0.5s,
    --border-angle 0.5s, --border-1 0.5s, --border-2 0.5s;
}
.btn--pri:hover {
  transform: translateY(-1px); box-shadow: 0 14px 34px -10px var(--glow-o), 0 0 0 4px rgba(241, 135, 23, 0.16);
  --pos-x: 80%; --pos-y: -10%; --spread-x: 160%; --spread-y: 160%;
  --glow-1: #ffe9c2; --glow-2: #ffb25c; --glow-3: #f18717; --glow-4: #d9700f; --glow-5: #b85c0a;
  --glow-stop-1: 0%; --glow-stop-2: 22%; --glow-stop-3: 50%; --glow-stop-4: 78%; --glow-stop-5: 100%;
  --border-angle: 200deg; --border-1: hsla(32, 95%, 80%, 0.55); --border-2: hsla(32, 95%, 55%, 0.95);
}
.btn--pri:active { transform: translateY(0) scale(0.97); }

.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* scroll reveal: add data-reveal (optionally style="--d:2" to stagger).
   Materializes with a touch of 3D (perspective + rotateX + scale) rather than
   a flat slide — reads as an object settling into place, not just fading in. */
[data-reveal] {
  opacity: 0;
  transform: perspective(900px) translateY(54px) scale(0.88) rotateX(14deg);
  transition: opacity 0.9s var(--ease), transform 1.05s var(--ease);
  transition-delay: calc(var(--d, 0) * 90ms);
}
[data-reveal].in { opacity: 1; transform: perspective(900px) translateY(0) scale(1) rotateX(0deg); }

/* reusable decorative background orb — position + color set per section, parallaxed by js/gsap-fx.js */
.bg-orb { position: absolute; z-index: -1; pointer-events: none; border-radius: 50%; filter: blur(50px); opacity: 0.55; }

/* cursor-reactive helpers (see js/interactions.js) */
[data-spot] { position: relative; }
[data-spot]::before { /* soft light that follows the cursor */
  content: ""; position: absolute; inset: 0; z-index: 0; border-radius: inherit; pointer-events: none; opacity: 0;
  background: radial-gradient(240px circle at var(--mx, 50%) var(--my, 50%), rgba(241, 135, 23, 0.10), transparent 70%);
  transition: opacity 0.4s;
}
[data-spot]:hover::before { opacity: 1; }
[data-spot] > * { position: relative; z-index: 1; }
[data-magnetic] { transition: transform 0.5s var(--ease); will-change: transform; }

/* pointer-tracked glossy sheen for 3D tilt surfaces — pairs with [data-tilt] (see js/interactions.js) */
[data-tilt-sheen] { position: relative; }
[data-tilt-sheen]::after {
  content: ""; position: absolute; inset: 0; z-index: 3; border-radius: inherit; pointer-events: none;
  opacity: 0; transition: opacity 0.35s var(--ease);
  background: radial-gradient(240px circle at var(--px, 50%) var(--py, 50%), rgba(255, 255, 255, 0.65), transparent 68%);
  mix-blend-mode: overlay;
}
[data-tilt-sheen]:hover::after { opacity: 1; }

/* display type: Apple-style — large, confident, tight tracking, sentence case */
.intro h1, .mf__title, .wt__cta h3 {
  font-family: var(--display); font-weight: 700;
  letter-spacing: -0.03em; line-height: 1.04;
}

/* ---- buttons: soft 3D press + glossy sheen (Apple-style primary action) ---- */
.btn--pri {
  position: relative;
}
.btn--pri::before {
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.35), rgba(255, 255, 255, 0) 55%);
  pointer-events: none;
}
.btn--pri::after {
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; pointer-events: none;
  background: linear-gradient(115deg, transparent 30%, rgba(255, 255, 255, 0.55) 48%, transparent 66%);
  transform: translateX(-120%); transition: transform 0.7s var(--ease);
}
.btn--pri:hover::after { transform: translateX(120%); }

/* ---- shared section title (no eyebrow labels) ---- */
.sec-title { margin: 0; font-family: var(--display); font-weight: 700; letter-spacing: -0.03em; line-height: 1.06; font-size: clamp(26px, 3.2vw, 42px); color: var(--purple); text-wrap: balance; }
.sec-title--light { color: #fff; }

/* ---- responsive table: real table on desktop, labelled stacked cards on mobile ---- */
.rtable { width: 100%; border-collapse: separate; border-spacing: 0; background: #fff; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; font-size: 14.5px; }
.rtable th, .rtable td { padding: 16px 20px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.rtable thead th { background: var(--purple); color: #fff; font-size: 12.5px; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; border-bottom: 0; }
.rtable tbody th { font-weight: 700; color: var(--ink); }
.rtable tbody tr:last-child > * { border-bottom: 0; }
.rtable tbody tr:nth-child(even) > * { background: #faf9fc; }
.rtable .is-placeholder { color: var(--mute); font-weight: 500; font-style: italic; }
@media (max-width: 720px) {
  .rtable, .rtable tbody, .rtable tr, .rtable th, .rtable td { display: block; width: 100%; }
  .rtable thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .rtable { border: 0; background: none; }
  .rtable tbody tr { margin-bottom: 12px; background: #fff; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
  .rtable th, .rtable td { display: flex; gap: 12px; justify-content: space-between; padding: 12px 16px; border-bottom: 1px solid var(--line); background: none !important; }
  .rtable td::before, .rtable tbody th::before { content: attr(data-label); flex: 0 0 38%; font-size: 11.5px; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; color: var(--mute); }
  .rtable tbody tr > :last-child { border-bottom: 0; }
}
.rtable-wrap { margin-top: clamp(22px, 3vw, 34px); }

/* ---- always-on glow for primary account-opening CTAs (stronger on hover / focus) ---- */
.btn--pri { box-shadow: 0 0 0 1px rgba(241, 135, 23, 0.28), 0 0 18px 1px rgba(241, 135, 23, 0.42), 0 10px 26px -8px var(--glow-o); }
.btn--pri:hover, .btn--pri:focus-visible { box-shadow: 0 0 0 4px rgba(241, 135, 23, 0.2), 0 0 28px 4px rgba(241, 135, 23, 0.6), 0 14px 34px -10px var(--glow-o); }
.btn--pri:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }

/* every primary CTA (.btn--pri): always-on breathing glow + a slow light sweep, no hover needed */
.btn--pri { animation: btn-glow 2.6s ease-in-out infinite; }
.btn--pri::after { animation: btn-sheen 4.2s ease-in-out infinite; }
.btn--pri:hover, .btn--pri:focus-visible { animation: none; }
@keyframes btn-glow {
  0%, 100% { box-shadow: 0 0 0 1px rgba(241, 135, 23, 0.4), 0 0 14px 2px rgba(241, 135, 23, 0.5), 0 8px 22px -8px rgba(241, 135, 23, 0.6); }
  50% { box-shadow: 0 0 0 1px rgba(255, 178, 92, 0.6), 0 0 32px 8px rgba(241, 135, 23, 0.75), 0 10px 30px -8px rgba(241, 135, 23, 0.8); }
}
@keyframes btn-sheen { 0%, 55% { transform: translateX(-120%); } 85%, 100% { transform: translateX(120%); } }

/* phone numbers stay on one line inside table cells */
.rtable a[href^="tel:"] { white-space: nowrap; }

/* all "Open account" / primary buttons: no glow, shadow or pulsing behind the button */
.btn--pri, .btn--pri:hover, .btn--pri:focus-visible, .btn--pri:active { box-shadow: none; animation: none; }
/* crystal look stays: gradient fill, gloss highlight and a slow sweeping shine */
.btn--pri::after { animation: btn-sheen 4.2s ease-in-out infinite; }

/* ---- "Open account" / primary buttons: plain button (bright logo-orange fill), no glow, shadow, shine or motion ---- */
.btn.btn--pri, .btn.btn--pri:hover, .btn.btn--pri:focus-visible, .btn.btn--pri:active {
  animation: none; box-shadow: none; transform: none; isolation: isolate; color: #2a1205; font-weight: 700;
  border: 1px solid rgba(255, 216, 150, 0.7);
}
.btn.btn--pri { background: linear-gradient(180deg, #ffbf4d 0%, #ff9428 42%, #f9600f 100%); transition: background 0.2s; }
.btn.btn--pri:hover, .btn.btn--pri:focus-visible { background: linear-gradient(180deg, #ffcb62 0%, #ffa236 42%, #fb6a16 100%); }
.btn.btn--pri::before, .btn.btn--pri::after { display: none; }
.btn.btn--pri i { -webkit-text-stroke: 0.7px currentColor; color: #2a1205; transition: none; }
.btn.btn--pri:hover i { transform: none; }

/* ---- primary "Open account" buttons: one flat brand orange; a soft golden light drifts in from the top-left corner and fades out at the bottom-right ---- */
.btn.btn--pri, .btn.btn--pri.nav__cta, .btn.btn--pri.wt__cta-btn {
  position: relative; overflow: hidden; isolation: isolate;
  background: #f18717 !important; background-image: none !important; border-color: #f18717; color: #2a1205;
  animation: none !important; box-shadow: none !important;
}
.btn.btn--pri:hover, .btn.btn--pri:focus-visible { background: #ff9524 !important; background-image: none !important; animation: none !important; box-shadow: none !important; }
.btn.btn--pri::after {
  content: "" !important; display: block !important; position: absolute; z-index: -1; pointer-events: none;
  left: -20%; top: -120%; width: 10%; height: 340%; opacity: 0; transform: rotate(45deg); transform-origin: 50% 50%; filter: blur(2px);
  background: linear-gradient(90deg, rgba(255, 232, 160, 0) 0%, rgba(255, 232, 160, 0.14) 22%, rgba(255, 240, 190, 0.42) 42%, rgba(255, 246, 208, 0.55) 50%, rgba(255, 240, 190, 0.42) 58%, rgba(255, 232, 160, 0.14) 78%, rgba(255, 232, 160, 0) 100%);
  animation: btn-gold-drift 6.5s ease-in-out infinite !important;
}
.btn.btn--pri { z-index: 0; }
.btn.btn--pri > i { position: relative; z-index: 1; }
@keyframes btn-gold-drift {
  0%   { left: -20%; opacity: 0; }
  5%   { opacity: 1; }
  38%  { left: 112%; opacity: 1; }
  43%  { left: 118%; opacity: 0; }
  100% { left: 118%; opacity: 0; }
}

/* the drifting golden glow belongs to the header "Open account" button only; every other primary button stays flat */
.btn.btn--pri:not(.nav__cta)::after { display: none !important; animation: none !important; }
