/* =========================================================
   SUPALEDGERS — SHARED STYLES
   Vibrant editorial aesthetic — paper + ink + bold accents
   ========================================================= */

:root {
  /* Paper & ink */
  --paper:        #F3EFE6;
  --paper-deep:   #EAE4D6;
  --paper-line:   #D7CEB9;
  --ink:          #141311;
  --ink-soft:     #2A2824;
  --ink-mute:     #6B6558;
  --ink-faint:    #9E988A;

  /* Bold accents — the "new color" */
  --green:        #1F4A33;
  --green-bright: #2BC37A;       /* electric ledger green */
  --green-glow:   #64F2B0;
  --signal:       #FF4D1C;       /* hot signal orange */
  --signal-soft:  #FFB39A;
  --plum:         #5B2A86;       /* deep plum for highlights */
  --plum-bright:  #B975FF;
  --cobalt:       #1F3FFF;       /* electric blue */
  --butter:       #F5C54A;       /* warm yellow */
  --rose:         #FF7A9C;
  --credit:       var(--green);
  --debit:        #A33A1F;

  /* Dark */
  --night:        #0E0D0B;
  --night-soft:   #1A1815;
  --night-line:   #2E2B25;
  --night-text:   #ECE6D6;
  --night-mute:   #8A8474;

  /* Type */
  --serif: 'Instrument Serif', 'Times New Roman', serif;
  --sans:  'Inter', system-ui, sans-serif;
  --mono:  'JetBrains Mono', ui-monospace, monospace;

  --r-xs: 2px; --r-sm: 4px; --r-md: 8px; --r-lg: 14px; --r-pill: 999px;
  --edge: clamp(16px, 4vw, 56px);
  --maxw: 1320px;

  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
}

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

html { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  font-size: 16px;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.5;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; background: none; border: none; }
img, svg { display: block; max-width: 100%; }
.serif { font-family: var(--serif); font-weight: 400; letter-spacing: -0.01em; }
.mono  { font-family: var(--mono); }
::selection { background: var(--signal); color: var(--paper); }

.wrap { max-width: var(--maxw); margin: 0 auto; padding-inline: var(--edge); }
.rule { height: 1px; background: var(--ink); opacity: 0.18; }

.eyebrow {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--ink-mute);
  display: inline-flex; align-items: center; gap: 8px;
}
.eyebrow::before { content: ''; width: 18px; height: 1px; background: var(--ink-mute); }
.eyebrow--light { color: var(--night-mute); }
.eyebrow--light::before { background: var(--night-mute); }
.eyebrow--accent { color: var(--signal); }
.eyebrow--accent::before { background: var(--signal); }

/* ---------- Ticker ---------- */
.ticker {
  background: var(--ink);
  color: var(--paper);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  overflow: hidden;
  border-bottom: 1px solid var(--night-line);
}
.ticker__track {
  display: flex; gap: 48px; padding: 10px 0;
  width: max-content;
  animation: ticker 52s linear infinite;
}
.ticker__item { display: inline-flex; align-items: center; gap: 12px; white-space: nowrap; }
.ticker__dot { width: 6px; height: 6px; border-radius: 50%; background: var(--signal); box-shadow: 0 0 10px var(--signal); }
.ticker__item strong { color: var(--green-glow); font-weight: 500; }
.ticker__item em { color: var(--butter); font-style: normal; }
@keyframes ticker { to { transform: translateX(-50%); } }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in oklab, var(--paper) 92%, transparent);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid var(--paper-line);
}
.nav__inner { display: flex; align-items: center; justify-content: space-between; padding-block: 14px; }
.nav__brand { display: flex; align-items: center; gap: 10px; }
.nav__logo { width: 32px; height: 32px; display: block; flex-shrink: 0; transition: transform 400ms var(--ease); }
.nav__brand:hover .nav__logo { transform: rotate(-8deg) scale(1.08); }
.nav__mark {
  width: 30px; height: 30px;
  border: 1.5px solid var(--ink);
  display: grid; place-items: center;
  font-family: var(--serif);
  font-size: 20px; line-height: 1;
  background: var(--green-bright);
  color: var(--ink);
  transform: rotate(-4deg);
  transition: transform 300ms var(--ease), background 300ms var(--ease);
}
.nav__brand:hover .nav__mark { transform: rotate(4deg); background: var(--signal); color: var(--paper); }
.nav__wordmark { font-family: var(--serif); font-size: 24px; letter-spacing: -0.01em; }
.nav__wordmark em { font-style: italic; color: var(--green); }
.nav__links { display: flex; gap: 28px; font-size: 14px; color: var(--ink-soft); }
.nav__links a { position: relative; padding-block: 4px; font-weight: 500; }
.nav__links a:hover { color: var(--ink); }
.nav__links a.is-active { color: var(--ink); }
.nav__links a.is-active::after { right: 0 !important; background: var(--signal) !important; }
.nav__links a::after {
  content: ''; position: absolute; left: 0; right: 100%; bottom: -2px;
  height: 2px; background: var(--ink); transition: right 240ms var(--ease);
}
.nav__links a:hover::after { right: 0; }
.nav__cta-wrap { display: flex; gap: 8px; align-items: center; }
.nav__login { font-size: 14px; color: var(--ink-soft); padding: 8px 12px; }
.nav__login:hover { color: var(--ink); }

/* ---------- Buttons ---------- */
.btn-primary {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--ink); color: var(--paper);
  padding: 12px 20px; font-size: 14px; font-weight: 600;
  border: 1px solid var(--ink); border-radius: var(--r-sm);
  position: relative; overflow: hidden;
  transition: transform 200ms var(--ease);
}
.btn-primary::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(90deg, var(--signal) 0%, var(--plum-bright) 100%);
  transform: translateX(-101%); transition: transform 320ms var(--ease);
  z-index: 0;
}
.btn-primary:hover::before { transform: translateX(0); }
.btn-primary > * { position: relative; z-index: 1; }
.btn-primary:hover { transform: translate(-1px, -1px); box-shadow: 4px 4px 0 var(--ink); }
.btn-primary .arrow { width: 14px; height: 10px; }

.btn-ghost {
  display: inline-flex; align-items: center; gap: 10px;
  background: transparent; color: var(--ink);
  padding: 12px 20px; font-size: 14px; font-weight: 600;
  border: 1px solid var(--ink); border-radius: var(--r-sm);
  transition: transform 200ms var(--ease), box-shadow 200ms var(--ease), background 200ms var(--ease), color 200ms var(--ease);
}
.btn-ghost:hover { background: var(--butter); transform: translate(-1px,-1px); box-shadow: 4px 4px 0 var(--ink); }
.btn-lg { padding: 15px 24px; font-size: 15px; }

@media (max-width: 860px) {
  .nav__links { display: none; }
}

/* ---------- Footer ---------- */
.foot {
  background: var(--ink);
  color: var(--night-mute);
  padding-block: 64px 32px;
  font-size: 13px;
  position: relative;
  overflow: hidden;
}
.foot::before {
  content: ''; position: absolute;
  width: 700px; height: 700px; border-radius: 50%;
  background: radial-gradient(circle, color-mix(in oklab, var(--green-bright) 30%, transparent), transparent 60%);
  top: -300px; right: -300px;
  pointer-events: none;
}
.foot::after {
  content: ''; position: absolute;
  width: 500px; height: 500px; border-radius: 50%;
  background: radial-gradient(circle, color-mix(in oklab, var(--signal) 25%, transparent), transparent 60%);
  bottom: -250px; left: -200px;
  pointer-events: none;
}
.foot__grid {
  position: relative;
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr 1fr; gap: 40px;
  padding-bottom: 40px; border-bottom: 1px solid var(--night-line);
}
@media (max-width: 820px) {
  .foot__grid { grid-template-columns: 1fr 1fr; gap: 28px; }
  .foot__brand { grid-column: 1 / -1; }
}
.foot__brand h4 {
  font-family: var(--serif); font-size: 40px; letter-spacing: -0.01em;
  color: var(--paper); font-weight: 400; margin-bottom: 10px;
}
.foot__brand h4 em { font-style: italic; color: var(--green-glow); }
.foot__brand p { color: var(--night-mute); max-width: 36ch; line-height: 1.55; font-size: 13px; }
.foot__col h5 {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--paper); margin-bottom: 14px; font-weight: 500;
}
.foot__col ul { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.foot__col a { color: var(--night-mute); transition: color 160ms ease; }
.foot__col a:hover { color: var(--green-glow); }

.foot__bottom {
  position: relative;
  padding-top: 28px;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 16px;
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.1em;
  text-transform: uppercase;
}
.foot__bottom a { color: var(--signal); }
.foot__bottom a:hover { color: var(--butter); }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 800ms var(--ease), transform 800ms var(--ease); }
.reveal.in { opacity: 1; transform: translateY(0); }
.reveal-left { opacity: 0; transform: translateX(-24px); transition: opacity 800ms var(--ease), transform 800ms var(--ease); }
.reveal-left.in { opacity: 1; transform: translateX(0); }
.reveal-scale { opacity: 0; transform: scale(0.96); transition: opacity 800ms var(--ease), transform 800ms var(--ease); }
.reveal-scale.in { opacity: 1; transform: scale(1); }
.reveal-delay-1 { transition-delay: 80ms; }
.reveal-delay-2 { transition-delay: 160ms; }
.reveal-delay-3 { transition-delay: 240ms; }
.reveal-delay-4 { transition-delay: 320ms; }

/* ---------- Floating blobs for background pop ---------- */
.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.45;
  pointer-events: none;
  z-index: 0;
  animation: drift 18s ease-in-out infinite;
}
.blob--green { background: var(--green-bright); }
.blob--signal { background: var(--signal); }
.blob--plum { background: var(--plum-bright); }
.blob--butter { background: var(--butter); }
.blob--cobalt { background: var(--cobalt); }
@keyframes drift {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33%      { transform: translate(40px, -30px) scale(1.08); }
  66%      { transform: translate(-30px, 40px) scale(0.94); }
}

/* ---------- Shared section heads ---------- */
.sec-title {
  font-family: var(--serif); font-size: clamp(40px, 5.5vw, 80px);
  line-height: 0.98; letter-spacing: -0.02em;
}
.sec-title em { font-style: italic; color: var(--green); }
.sec-title .hi { color: var(--signal); font-style: normal; }
.sec-sub { font-size: 16px; line-height: 1.55; color: var(--ink-soft); max-width: 48ch; }

/* ---------- Page hero (generic) ---------- */
.phero { position: relative; padding-block: clamp(60px, 8vw, 120px) clamp(40px, 6vw, 80px); overflow: hidden; }
.phero__meta {
  display: inline-flex; gap: 16px; padding-block: 10px 0; margin-bottom: 24px;
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--ink-mute);
}
.phero__meta strong { color: var(--signal); font-weight: 500; }
.phero__title {
  font-family: var(--serif); font-size: clamp(56px, 10vw, 160px);
  line-height: 0.92; letter-spacing: -0.03em; color: var(--ink);
}
.phero__title em { font-style: italic; color: var(--green); }
.phero__title .hi { color: var(--signal); font-style: normal; }
.phero__title .plum { color: var(--plum-bright); font-style: italic; }
.phero__lede {
  font-size: 19px; line-height: 1.5; color: var(--ink-soft);
  max-width: 60ch; margin-top: 24px;
}
.phero__lede strong { color: var(--ink); font-weight: 600; background: linear-gradient(180deg, transparent 60%, var(--butter) 60%); padding: 0 2px; }

@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal-left, .reveal-scale { opacity: 1; transform: none; transition: none; }
  .ticker__track, .blob { animation: none; }
}

/* ---------- Mobile nav sheet ---------- */
.mnav {
  display: none; position: fixed; inset: 0; z-index: 100;
  background: var(--paper);
  padding: 24px var(--edge);
  flex-direction: column;
  animation: mnavIn 300ms var(--ease) both;
}
.mnav.open { display: flex; }
@keyframes mnavIn { from { opacity: 0; transform: translateY(-8px); } }
.mnav__top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 40px; }
.mnav__close { font-size: 28px; padding: 8px; }
.mnav__links { display: flex; flex-direction: column; gap: 18px; list-style: none; }
.mnav__links a { font-family: var(--serif); font-size: 40px; color: var(--ink); }
.mnav__links a em { font-style: italic; color: var(--green); }
.hamburger { display: none; padding: 8px; }
@media (max-width: 860px) {
  .hamburger { display: inline-flex; }
  .nav__cta-wrap .nav__login { display: none; }
}
.hamburger span { display: block; width: 22px; height: 2px; background: var(--ink); margin: 5px 0; transition: transform 200ms ease; }

/* =========================================================
   FAQ — shared accordion pattern
   Used by /pricing, /for-accountants, and any future page.
   ========================================================= */
.faq { padding-block: clamp(80px, 10vw, 140px); position: relative; }
.faq .blob { opacity: 0.22; top: 20%; right: -100px; width: 350px; height: 350px; }
.faq__head { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: end; margin-bottom: 40px; }
@media (max-width: 820px) { .faq__head { grid-template-columns: 1fr; gap: 16px; } }
.faq__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; background: var(--ink); border: 1.5px solid var(--ink); position: relative; }
@media (max-width: 820px) { .faq__grid { grid-template-columns: 1fr; } }
.faq__item { background: var(--paper); padding: 0; transition: background 300ms ease; }
.faq__item:hover { background: var(--paper-deep); }
/* Odd-count escape hatch: last item spans full width to avoid the 2-col black-bar gap. */
.faq__item--full { grid-column: 1 / -1; }
.faq__q { width: 100%; text-align: left; padding: 24px 28px; display: flex; justify-content: space-between; align-items: center; gap: 20px; font-family: var(--serif); font-size: 24px; letter-spacing: -0.01em; line-height: 1.2; color: var(--ink); background: transparent; border: 0; cursor: pointer; }
.faq__q em { font-style: italic; color: var(--green); }
.faq__q .plus { font-family: var(--mono); font-weight: 400; color: var(--signal); font-size: 28px; transition: transform 300ms var(--ease); flex-shrink: 0; }
.faq__item.open .faq__q .plus { transform: rotate(45deg); }
.faq__a { max-height: 0; overflow: hidden; transition: max-height 400ms var(--ease); }
.faq__a-inner { padding: 0 28px 24px; font-size: 15px; line-height: 1.6; color: var(--ink-soft); }
.faq__a-inner strong { color: var(--ink); }
.faq__item.open .faq__a { max-height: 480px; }
.faq__a-inner a { color: var(--signal); text-decoration: underline; text-underline-offset: 3px; }
