/* ============================================================
   Fates Financial — shared chrome
   Nav, buttons, pills, reveals, CTA band, footer, disclosures.
   Loaded on every page after tokens.css.
   ============================================================ */

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--font-sans);
  font-weight: 600;
  letter-spacing: -0.01em;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.3s var(--ease-back), background 0.25s ease,
              border-color 0.25s ease, color 0.25s ease, box-shadow 0.3s ease;
}
.btn--sm { padding: 9px 20px; font-size: 0.9rem; }
.btn--lg { padding: 15px 30px; font-size: 1.02rem; }
.btn:not(.btn--sm):not(.btn--lg) { padding: 12px 26px; font-size: 0.96rem; }

.btn--primary {
  background: var(--marigold);
  color: var(--on-accent);
  box-shadow: 0 12px 34px -14px rgba(233, 161, 59, 0.85);
}
.btn--primary:hover {
  background: var(--marigold-soft);
  transform: translateY(-2px);
  box-shadow: 0 18px 44px -14px rgba(233, 161, 59, 0.95);
}

.btn--mint {
  background: var(--mint);
  color: var(--on-accent);
  box-shadow: 0 12px 34px -14px rgba(95, 227, 179, 0.8);
}
.btn--mint:hover { background: #7EEDC4; transform: translateY(-2px); }

.btn--ghost {
  border-color: var(--line-mid);
  color: var(--text);
  background: var(--surface-soft);
}
.btn--ghost:hover {
  border-color: var(--line-strong);
  background: var(--surface-mid);
  transform: translateY(-2px);
}

.btn__arrow { transition: transform 0.3s var(--ease-out); }
.btn:hover .btn__arrow { transform: translateX(4px); }

/* ---------- Status pills ---------- */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 999px;
  border: 1px solid var(--line-mid);
  color: var(--text-mid);
  white-space: nowrap;
}
.pill--live { color: var(--mint-ink); border-color: rgba(95, 227, 179, 0.35); background: var(--mint-dim); }
.pill--soon { color: var(--gold-ink); border-color: rgba(233, 161, 59, 0.35); background: var(--marigold-dim); }
.pill--next { color: var(--text-dim); }

.dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: currentColor;
  flex-shrink: 0;
}
.dot--pulse { animation: dotPulse 2.4s infinite; }
@keyframes dotPulse {
  0%, 100% { box-shadow: 0 0 0 0 currentColor; opacity: 1; }
  50%      { box-shadow: 0 0 0 6px transparent; opacity: 0.65; }
}

/* ---------- Nav ---------- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 200;
  transition: background 0.35s ease, box-shadow 0.35s ease, backdrop-filter 0.35s ease;
}
.nav.is-scrolled {
  background: var(--nav-bg);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  box-shadow: 0 1px 0 var(--line);
}
.nav__inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 16px clamp(20px, 4vw, 44px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-size: 1.16rem;
  font-weight: 700;
  letter-spacing: -0.035em;
  color: var(--text);
}
.logo em {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  color: var(--gold-ink);
  margin-left: 3px;
  letter-spacing: -0.01em;
}
.logo__arch { width: 24px; height: 24px; color: var(--mint-ink); flex-shrink: 0; }

.nav__links { display: flex; gap: clamp(20px, 3vw, 38px); }
.nav__links a {
  position: relative;
  font-size: 0.94rem;
  font-weight: 500;
  color: var(--text-mid);
  padding: 4px 0;
  transition: color 0.2s ease;
}
.nav__links a::after {
  content: "";
  position: absolute;
  left: 0; bottom: -2px;
  width: 100%; height: 1px;
  background: var(--marigold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease-out);
}
.nav__links a:hover { color: var(--text); }
.nav__links a:hover::after { transform: scaleX(1); }
.nav__links a[aria-current="page"] { color: var(--text); }
.nav__links a[aria-current="page"]::after { transform: scaleX(1); background: var(--mint); }

.nav__actions { display: flex; align-items: center; gap: 20px; }
.nav__login { font-size: 0.94rem; font-weight: 600; color: var(--text-mid); transition: color 0.2s ease; }
.nav__login:hover { color: var(--text); }

.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 8px;
}
.nav__toggle span {
  width: 24px; height: 1.5px;
  background: var(--text);
  transition: transform 0.3s var(--ease-out), opacity 0.3s ease;
}
.nav__mobile { display: none; }

/* ---------- Hero scaffold (home + product pages) ---------- */
.hero {
  position: relative;
  padding: clamp(126px, 15vh, 180px) 0 0;
  overflow: hidden;
}
.hero__inner {
  display: grid;
  grid-template-columns: 1.12fr 0.88fr;
  gap: clamp(32px, 5vw, 76px);
  align-items: center;
}
.hero__title {
  /* Deliberately smaller than the h1 default — hero copy shares the row with
     the visual, so the display size has to leave the column readable. */
  font-size: clamp(2.2rem, 4.4vw, 3.8rem);
  margin: 6px 0 26px;
}
.hero__line { display: block; animation: rise 0.9s var(--ease-out) both; }
.hero__line:nth-child(1) { animation-delay: 0.10s; }
.hero__line:nth-child(2) { animation-delay: 0.20s; }
.hero__line:nth-child(3) { animation-delay: 0.30s; }
.hero__sub {
  font-size: 1.12rem;
  color: var(--text-mid);
  max-width: 530px;
  margin-bottom: 34px;
  animation: rise 0.9s 0.42s var(--ease-out) both;
}
.hero__actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  animation: rise 0.9s 0.52s var(--ease-out) both;
}
.hero__ticks {
  margin-top: 34px;
  padding-top: 26px;
  border-top: 1px solid var(--line);
  animation: rise 0.9s 0.62s var(--ease-out) both;
}
@keyframes rise {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: none; }
}

/* ---------- Ticker strip ---------- */
.ticker {
  margin-top: clamp(56px, 8vw, 100px);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--void-deep);
  overflow: hidden;
  padding: 13px 0;
}
.ticker__track {
  display: flex;
  align-items: center;
  gap: 26px;
  width: max-content;
  animation: ticker 38s linear infinite;
}
.ticker__track span {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-dim);
  white-space: nowrap;
}
.ticker__track i { color: var(--gold-ink); font-style: normal; font-size: 0.6rem; }
@keyframes ticker {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ---------- Scroll reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.85s var(--ease-out), transform 0.85s var(--ease-out);
  transition-delay: var(--d, 0s);
}
.reveal.is-visible { opacity: 1; transform: none; }

/* ---------- Generic panel ---------- */
.panel {
  background: linear-gradient(160deg, var(--panel-2), var(--panel));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: border-color 0.35s ease, transform 0.35s var(--ease-out), box-shadow 0.35s ease;
}
.panel:hover { border-color: var(--line-mid); }

/* ---------- FAQ (shared by product pages) ---------- */
.faq {
  background: var(--void-deep);
  border-top: 1px solid var(--line);
}
.faq__inner {
  display: grid;
  grid-template-columns: 0.72fr 1.28fr;
  gap: clamp(36px, 5vw, 76px);
  align-items: start;
}
.faq__inner .section__head { margin-bottom: 0; }
.faq__list { display: grid; gap: 10px; }
.faq__item {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--panel);
  overflow: hidden;
  transition: border-color 0.25s ease, background 0.25s ease;
}
.faq__item[open] { border-color: rgba(233, 161, 59, 0.4); background: var(--panel-2); }
.faq__item summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 19px 22px;
  font-size: 1.02rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  transition: color 0.2s ease;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary:hover { color: var(--gold-ink); }
.faq__mark {
  position: relative;
  width: 24px; height: 24px;
  border-radius: 50%;
  border: 1px solid var(--line-mid);
  flex-shrink: 0;
  transition: background 0.25s ease, transform 0.3s var(--ease-out), border-color 0.25s ease;
}
.faq__mark::before, .faq__mark::after {
  content: "";
  position: absolute;
  top: 50%; left: 50%;
  width: 9px; height: 1.5px;
  background: var(--text);
  transform: translate(-50%, -50%);
  transition: transform 0.3s var(--ease-out), background 0.25s ease;
}
.faq__mark::after { transform: translate(-50%, -50%) rotate(90deg); }
.faq__item[open] .faq__mark { background: var(--marigold); border-color: var(--gold-ink); transform: rotate(180deg); }
.faq__item[open] .faq__mark::before,
.faq__item[open] .faq__mark::after { background: var(--void-deep); }
.faq__item[open] .faq__mark::after { transform: translate(-50%, -50%) rotate(0deg); }
.faq__item p {
  padding: 0 22px 20px;
  color: var(--text-mid);
  font-size: 0.95rem;
  max-width: 660px;
}

/* ---------- Closing CTA band ---------- */
.cta {
  position: relative;
  overflow: hidden;
  padding: clamp(88px, 12vw, 150px) 0;
  border-top: 1px solid var(--line);
  background:
    radial-gradient(760px 380px at 50% 0%, var(--wash-gold), transparent 68%),
    radial-gradient(600px 380px at 12% 100%, var(--wash-mint), transparent 66%),
    var(--void-deep);
  text-align: center;
}
.cta__arch {
  position: absolute;
  top: -2px; left: 50%;
  transform: translateX(-50%);
  width: min(86vw, 780px);
  height: clamp(140px, 20vw, 260px);
  border: 1px solid var(--line-mid);
  border-bottom: 0;
  border-radius: 999px 999px 0 0;
  pointer-events: none;
  mask-image: linear-gradient(#000, transparent 82%);
  -webkit-mask-image: linear-gradient(#000, transparent 82%);
}
.cta h2 { font-size: clamp(2.2rem, 5.4vw, 4rem); margin-bottom: 22px; }
.cta p { color: var(--text-mid); max-width: 560px; margin: 0 auto 36px; font-size: 1.08rem; }
.cta__actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.cta__ticks {
  display: flex;
  justify-content: center;
  gap: 26px;
  flex-wrap: wrap;
  margin-top: 36px;
}
.cta__ticks li,
.tick-list li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  letter-spacing: 0.04em;
  color: var(--text-dim);
}
.cta__ticks li::before,
.tick-list li::before {
  content: "✓";
  color: var(--mint-ink);
  font-family: var(--font-sans);
  font-weight: 700;
}
.tick-list { display: flex; gap: 22px; flex-wrap: wrap; }

/* ---------- Footer ---------- */
.footer {
  background: var(--void-deep);
  color: var(--text-dim);
  padding: clamp(60px, 8vw, 92px) 0 40px;
  border-top: 1px solid var(--line);
}
.footer__top {
  display: grid;
  grid-template-columns: 1.15fr 1.85fr;
  gap: clamp(36px, 6vw, 80px);
  padding-bottom: 46px;
  border-bottom: 1px solid var(--line);
}
.footer .logo { margin-bottom: 18px; }
.footer__brand p { font-size: 0.94rem; max-width: 350px; margin-bottom: 18px; color: var(--text-mid); }
.footer__mail {
  font-family: var(--font-mono);
  font-size: 0.86rem;
  color: var(--gold-ink);
  border-bottom: 1px solid rgba(233, 161, 59, 0.3);
  padding-bottom: 2px;
}
.footer__mail:hover { color: var(--marigold-soft); border-color: var(--marigold-soft); }

.footer__nav { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.footer__nav h4 {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-mid);
  margin-bottom: 18px;
}
.footer__nav a {
  display: block;
  font-size: 0.92rem;
  padding: 6px 0;
  color: var(--text-dim);
  transition: color 0.2s ease;
}
.footer__nav a:hover { color: var(--text); }
.footer__nav span.is-soon {
  display: block;
  font-size: 0.92rem;
  padding: 6px 0;
  color: var(--text-faint);
}

.footer__disclosures { padding: 40px 0; border-bottom: 1px solid var(--line); }
.footer__disclosures h4 {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-mid);
  margin-bottom: 16px;
}
.footer__disclosures p {
  font-size: 0.76rem;
  line-height: 1.7;
  margin-bottom: 12px;
  color: var(--text-quiet);
  max-width: 1000px;
}
.footer__fdic { font-family: var(--font-mono); font-size: 0.72rem !important; letter-spacing: 0.02em; }

.footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  padding-top: 30px;
  font-size: 0.8rem;
}
.footer__bottom a { margin-left: 20px; transition: color 0.2s ease; }
.footer__bottom a:hover { color: var(--text); }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero__inner { grid-template-columns: 1fr; }

  .faq__inner { grid-template-columns: 1fr; }
  .footer__top { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .footer__nav { grid-template-columns: repeat(2, 1fr); }
  .cta__actions .btn,
  .hero__actions .btn { width: 100%; }
}

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

/* ── Team page ─────────────────────────────────────────────
   Added with /team/. Reuses .product cards so the exec
   grid inherits the hover, hairline and reveal behaviour rather
   than introducing a parallel card system. */
.hero--short {
  /* The base .hero pads for a full-viewport hero that shares its row with the
     gate graphic. This variant has copy only, so the bottom of the section was
     reserving ~270px of dead space above the first section. Pad it for text. */
  padding: clamp(96px, 12vh, 150px) 0 clamp(8px, 2vh, 24px);
}
.hero--short .hero__inner { grid-template-columns: 1fr; }
.hero--short .hero__copy { max-width: 760px; }  /* keep the measure short WITHOUT centering the column */
.hero--short .hero__sub { margin-bottom: 0; }
.team__role {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--gold-ink);
  margin-bottom: 10px;
}

/* ---------- Numbered "how it works" steps ----------
   Shared by /solo-401k/ and /small-business-401k/. Lived in solo401k.css
   until a second page needed it; it was never solo-specific. */
.steps__list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.steps__item {
  position: relative;
  padding-top: 30px;
  border-top: 1px solid var(--line-mid);
}
.steps__item::before {
  content: "";
  position: absolute;
  top: -4px; left: 0;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--mint);
  box-shadow: 0 0 12px var(--mint);
}
.steps__num {
  display: block;
  font-size: 0.74rem;
  letter-spacing: 0.16em;
  color: var(--text-dim);
  margin-bottom: 16px;
}
.steps__item h3 { font-size: 1.2rem; margin-bottom: 10px; }
.steps__item p { font-size: 0.94rem; color: var(--text-mid); }

@media (max-width: 900px) {
  .steps__list { grid-template-columns: 1fr; }
}

/* ---------- Nav collapse ----------
   The bar carries five items plus the logo and actions, and measures ~925px
   with nothing wrapping. Collapsing at 900px like the rest of the layout left
   a band where it rendered but broke every multi-word label onto two lines,
   so the nav gets its own breakpoint above that measured minimum. */
.nav__links a, .nav__login, .nav .logo span, .nav__actions .btn { white-space: nowrap; }

@media (max-width: 1000px) {
  .nav__links, .nav__actions { display: none; }
  .nav__toggle { display: flex; }
  .nav {
    background: var(--nav-bg-solid);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
  }
  .nav__mobile {
    display: none;
    flex-direction: column;
    gap: 2px;
    padding: 8px clamp(20px, 4vw, 44px) 26px;
    border-bottom: 1px solid var(--line);
    background: var(--menu-bg);
  }
  .nav__mobile.is-open { display: flex; }
  .nav__mobile a { padding: 13px 0; font-weight: 600; font-size: 1.04rem; color: var(--text-mid); }
  .nav__mobile a[aria-current="page"] { color: var(--gold-ink); }
  .nav__mobile .btn { margin-top: 14px; }
  .nav.is-open .nav__toggle span:nth-child(1) { transform: translateY(3.75px) rotate(45deg); }
  .nav.is-open .nav__toggle span:nth-child(2) { transform: translateY(-3.75px) rotate(-45deg); }
}
