/* ============================================================
   Rooby — SaaS Landing Page
   ============================================================ */

:root {
  --primary:      #152844;
  --primary-light:#1E3556;
  --text:         #1A1714;
  --text-light:   #6B6760;
  --heading:      #152844;
  --accent:       #152844;
  --accent-dark:  #1E3556;
  --accent-light: #EFEAE2;
  --red:          #ca1b3e;
  --red-dark:     #a81633;
  --bg:           #FAF8F4;
  --bg-soft:      #FAF8F4;
  --bg-alt:       #EFEAE2;
  --bg-cream:     #FAF8F4;
  --bg-cream-warm:#F3EBE0;
  --bg-navy-soft: #EAEEF4;
  --bg-red-soft:  #FBEEF0;
  --bg-navy-dark: #152844;
  --border:       #D9D4CB;
  --white:        #ffffff;
  --radius:       12px;
  --radius-lg:    20px;
  --shadow-sm:    0 1px 3px rgba(21,40,68,.04), 0 1px 2px rgba(21,40,68,.03);
  --shadow:       0 1px 3px rgba(21,40,68,.04), 0 4px 16px rgba(21,40,68,.05);
  --shadow-lg:    0 4px 12px rgba(21,40,68,.06), 0 12px 40px rgba(21,40,68,.07);
  --font:         'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-display: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --max-width:    1140px;
  --nav-height:   72px;
  /* Status colours */
  --overdue-bg:   #F4E5DF;
  --overdue-text: #9C3A26;
  --amber-bg:     #F5EAD2;
  --amber-text:   #A06A1F;
  --paid-bg:      #E2EBE3;
  --paid-text:    #3F6F4E;
  --upcoming-bg:  #EFEAE2;
  --upcoming-text:#5C5650;
}

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: var(--nav-height); }
body {
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { border: none; background: none; cursor: pointer; font: inherit; }

/* ---- Accessible focus ---- */
:focus { outline: none; }
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}
.btn:focus-visible,
a.btn:focus-visible,
button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  box-shadow: 0 0 0 4px rgba(21, 40, 68, 0.15);
}
/* Dark sections — invert focus ring for contrast */
[data-theme="dark"] :focus-visible,
.feature-tabs-section--dark :focus-visible,
.footer :focus-visible {
  outline-color: #ffffff;
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.2);
}

/* ---- Container ---- */
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 1.5rem; }
.container--narrow { max-width: 740px; }

/* ---- Typography ---- */
.section-eyebrow {
  font-size: .8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--accent);
  margin-bottom: .75rem;
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 800;
  line-height: 1.2;
  color: var(--heading);
  margin-bottom: 1rem;
}
.section-body {
  font-size: 1.05rem;
  color: var(--text-light);
  line-height: 1.7;
  margin-bottom: 1.25rem;
}
.center { text-align: center; }

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  font-weight: 600;
  font-size: .925rem;
  border-radius: 8px;
  padding: .65rem 1.5rem;
  transition: all .2s ease;
  white-space: nowrap;
}
.btn--primary {
  background: var(--red);
  color: var(--white);
}
.btn--primary:hover {
  background: var(--red-dark);
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(202,27,62,.3);
}
.btn--primary:active { transform: scale(.98); }
.btn--pill { border-radius: 999px; padding-left: 1.75rem; padding-right: 1.75rem; }
.btn--pill svg, .btn--pill .btn__arrow {
  transition: transform .2s ease;
}
.btn--pill:hover svg, .btn--pill:hover .btn__arrow {
  transform: translateX(3px);
}
.btn--outline {
  border: 2px solid var(--accent);
  color: var(--text);
  background: transparent;
}
.btn--outline:hover {
  border-color: var(--accent-dark);
  color: var(--accent);
}
.btn--ghost {
  color: var(--text);
  background: transparent;
  border: 2px solid var(--accent);
}
.btn--ghost:hover { color: var(--accent); }
.btn--white {
  background: var(--white);
  color: var(--primary);
  border: none;
}
.btn--white:hover {
  background: #f0fdf4;
  transform: translateY(-1px);
}
.btn--lg { padding: .85rem 2rem; font-size: 1rem; }
.btn--block { width: 100%; }


/* ============================================================
   NAV
   ============================================================ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-height);
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  z-index: 1000;
  transition: box-shadow .3s;
}
.nav--scrolled { box-shadow: var(--shadow-sm); }
.nav__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}
.nav__logo {
  display: flex;
  align-items: center;
  gap: .6rem;
  text-decoration: none;
}
.nav__logo-icon { color: var(--primary); }
.nav__logo-img { height: 36px; width: auto; display: block; }
.nav__logo-img--footer { height: 26px; }
.nav__logo-text {
  font-weight: 800;
  font-size: 1.2rem;
  color: var(--heading);
  letter-spacing: -.02em;
}
.nav__links {
  display: flex;
  gap: 2rem;
  margin: 0 auto;
}
.nav__links a {
  font-size: .9rem;
  font-weight: 500;
  color: var(--text-light);
  transition: color .2s;
}
.nav__links a:hover { color: var(--accent); }
.nav__actions { display: flex; align-items: center; gap: .75rem; }
.nav__burger { display: none; flex-direction: column; gap: 5px; }
.nav__burger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--heading);
  border-radius: 2px;
  transition: all .3s;
}


/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  padding: calc(var(--nav-height) + 4rem) 0 5rem;
  background:
    radial-gradient(ellipse 80% 70% at 90% 100%, var(--bg-cream-warm) 0%, transparent 60%),
    radial-gradient(ellipse 60% 50% at 10% 10%, var(--bg-navy-soft) 0%, transparent 55%),
    var(--bg-cream);
  overflow: hidden;
}
.hero__scatter {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}
.hero__scatter-icon {
  position: absolute;
  width: var(--size, 80px);
  height: auto;
  opacity: var(--opacity, 0.06);
  transform: rotate(var(--rotate, 0deg));
  filter: saturate(0.9);
}
.hero__inner { position: relative; z-index: 1; }
.hero__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}
.hero__eyebrow {
  font-size: .8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--accent);
  margin-bottom: 1rem;
}
.hero__title {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  font-weight: 800;
  line-height: 1.1;
  color: var(--heading);
  margin-bottom: 1.25rem;
}
.hero__title--accent { color: var(--accent); }
.hero__subtitle {
  font-size: 1.1rem;
  color: var(--text-light);
  line-height: 1.7;
  margin-bottom: 2rem;
  max-width: 480px;
}
.hero__ctas { display: flex; gap: 1rem; flex-wrap: wrap; margin-bottom: .75rem; }
.hero__note {
  font-size: .8rem;
  color: var(--text-light);
}

/* Dashboard illustration */
.hero__visual { position: relative; }
.hero__dashboard {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  border: 1px solid var(--border);
}
.hero__dashboard-header {
  display: flex;
  align-items: center;
  gap: .4rem;
  padding: .75rem 1rem;
  background: var(--bg-alt);
  border-bottom: 1px solid var(--border);
}
.hero__dashboard-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  display: block;
}
.hero__dashboard-title {
  margin-left: .75rem;
  font-size: .75rem;
  font-weight: 600;
  color: var(--text-light);
}
.hero__dashboard-body {
  padding: 1.25rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.hero__stat-card {
  background: var(--bg-soft);
  border-radius: var(--radius);
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: .25rem;
}
.hero__stat-card--wide { grid-column: 1 / -1; }
.hero__stat-label {
  font-size: .7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--text-light);
}
.hero__stat-value {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--heading);
  letter-spacing: -.02em;
}
.hero__stat-badge {
  font-size: .7rem;
  font-weight: 600;
  padding: .15rem .5rem;
  border-radius: 4px;
  width: fit-content;
}
.hero__stat-badge--up { background: #fef2f2; color: #dc2626; }
.hero__stat-badge--down { background: #f0fdf4; color: #16a34a; }
.hero__stat-badge--neutral { background: #eff6ff; color: #2563eb; }
.hero__health-bar {
  width: 100%;
  height: 8px;
  background: var(--border);
  border-radius: 4px;
  overflow: hidden;
}
.hero__health-fill {
  height: 100%;
  background: var(--accent);
  border-radius: 4px;
  transition: width 1.5s ease;
}
.hero__chart-placeholder {
  grid-column: 1 / -1;
  padding: .5rem 0;
}
.hero__chart-svg { width: 100%; height: auto; }
.hero__chart-label {
  display: block;
  font-size: .65rem;
  color: var(--text-light);
  margin-top: .25rem;
}

/* Trust bar */
.hero__trust {
  max-width: var(--max-width);
  margin: 3rem auto 0;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  gap: 1.5rem;
}
.hero__trust-label {
  font-size: .75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--text-light);
  white-space: nowrap;
}
.hero__trust-logos { display: flex; align-items: center; gap: 2rem; }


/* ============================================================
   SOCIAL PROOF STATS
   ============================================================ */
.stats {
  padding: 3rem 0;
  background: var(--bg);
}
.stats__grid {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3rem;
}
.stats__item {
  text-align: center;
}
.stats__number,
.stats__prefix,
.stats__suffix {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--heading);
  letter-spacing: -.03em;
  line-height: 1;
}
.stats__prefix,
.stats__suffix {
  font-size: 1.6rem;
}
.stats__label {
  display: block;
  font-size: .8rem;
  font-weight: 500;
  color: var(--text-light);
  margin-top: .35rem;
  text-transform: uppercase;
  letter-spacing: .06em;
}
.stats__divider {
  width: 1px;
  height: 48px;
  background: var(--border);
}


/* ============================================================
   PROBLEM
   ============================================================ */
.problem {
  padding: 6rem 0;
  background: var(--bg);
  position: relative;
}
.problem__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}
.problem__visual {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}
.problem__card {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  padding: 1.5rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--white);
}
.problem__card--bad { border-left: 4px solid var(--overdue-text); }
.problem__card--good { border-left: 4px solid var(--accent); }
.problem__card-icon { flex-shrink: 0; }
.problem__card-title {
  font-weight: 700;
  font-size: .95rem;
  color: var(--heading);
  margin-bottom: .25rem;
}
.problem__card-text {
  font-size: .9rem;
  color: var(--text-light);
  line-height: 1.6;
}


/* ============================================================
   FEATURES
   ============================================================ */
.features {
  padding: 6rem 0;
  background: var(--bg-cream);
  position: relative;
}
.features__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.feature-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem 1.5rem;
  transition: transform .2s, box-shadow .2s;
}
.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}
.feature-card__icon { margin-bottom: 1rem; }
.feature-card__title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--heading);
  margin-bottom: .5rem;
}
.feature-card__text {
  font-size: .9rem;
  color: var(--text-light);
  line-height: 1.65;
}

/* Feature showcase */
.features__showcase {
  margin-top: 3rem;
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 3rem;
  align-items: center;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 3rem;
}
.features__showcase-title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--heading);
  margin-bottom: .75rem;
}
.features__showcase-text {
  font-size: .95rem;
  color: var(--text-light);
  line-height: 1.7;
  margin-bottom: 1.25rem;
}
.features__showcase-list {
  display: flex;
  flex-direction: column;
  gap: .5rem;
}
.features__showcase-list li {
  font-size: .9rem;
  color: var(--text);
  padding-left: 1.5rem;
  position: relative;
}
.features__showcase-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 6px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--accent-light);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none'%3E%3Cpath d='M4.5 8l2.5 2.5 4.5-4.5' stroke='%2310b981' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-size: 16px;
}
.features__showcase-screen {
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.features__showcase-table {
  padding: .75rem;
}
.features__showcase-row {
  display: grid;
  grid-template-columns: 2fr 1fr .6fr 1fr;
  gap: .5rem;
  padding: .6rem .75rem;
  font-size: .78rem;
  color: var(--text);
  border-bottom: 1px solid var(--border);
  align-items: center;
}
.features__showcase-row:last-child { border-bottom: none; }
.features__showcase-row--header {
  font-weight: 700;
  font-size: .7rem;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--text-light);
  border-bottom: 2px solid var(--border);
}
.features__showcase-health {
  font-weight: 700;
  font-size: .75rem;
  color: var(--accent);
}
.features__showcase-status {
  font-size: .7rem;
  font-weight: 600;
  padding: .2rem .5rem;
  border-radius: 4px;
  text-align: center;
}
.features__showcase-status--ok { background: #f0fdf4; color: #16a34a; }
.features__showcase-status--warn { background: #fffbeb; color: #d97706; }
.features__showcase-status--alert { background: #fef2f2; color: #dc2626; }


/* ============================================================
   HOW IT WORKS
   ============================================================ */
.how {
  padding: 6rem 0;
  background: var(--bg);
}
.how__steps {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 1rem;
  margin-top: 3rem;
}
.how__step {
  flex: 1;
  max-width: 280px;
  text-align: center;
  position: relative;
}
.how__step-number {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--white);
  font-weight: 800;
  font-size: .95rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.25rem;
}
.how__step-visual {
  margin-bottom: 1.25rem;
  display: flex;
  justify-content: center;
}
.how__step-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--heading);
  margin-bottom: .5rem;
}
.how__step-text {
  font-size: .9rem;
  color: var(--text-light);
  line-height: 1.65;
}
.how__step-connector {
  display: flex;
  align-items: center;
  padding-top: 5.5rem;
}


/* ============================================================
   BUILT FOR ACCOUNTANTS
   ============================================================ */
.built-for {
  padding: 6rem 0;
  background: var(--bg-navy-soft);
  position: relative;
}
.built-for__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}
.built-for__list {
  margin-top: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: .85rem;
}
.built-for__list li {
  display: flex;
  align-items: flex-start;
  gap: .75rem;
  font-size: .95rem;
  color: var(--text);
  line-height: 1.5;
}
.built-for__list li svg { flex-shrink: 0; margin-top: 2px; }
.built-for__quote-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: var(--shadow);
}
.built-for__quote-text {
  font-family: var(--font-display);
  font-size: 1.2rem;
  line-height: 1.6;
  color: var(--heading);
  margin-bottom: 1.25rem;
}
.built-for__quote-attr {
  font-size: .85rem;
  color: var(--text-light);
  font-style: italic;
}
.built-for__proof {
  margin-top: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: .6rem;
}
.built-for__proof-item {
  display: flex;
  align-items: center;
  gap: .6rem;
  font-size: .85rem;
  color: var(--text);
  font-weight: 500;
}
.built-for__proof-item svg { flex-shrink: 0; }


/* ============================================================
   PRICING
   ============================================================ */
.pricing {
  padding: 6rem 0;
  background: var(--bg);
}
.pricing__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-bottom: 2rem;
}
.pricing__grid--single {
  grid-template-columns: 1fr;
  max-width: 420px;
  margin-left: auto;
  margin-right: auto;
}
.pricing__grid--two {
  grid-template-columns: repeat(2, 1fr);
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
}
.pricing__card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2.5rem 2rem;
  text-align: center;
  position: relative;
  transition: transform .2s, box-shadow .2s;
}
.pricing__card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}
.pricing__card--featured {
  border: 2px solid var(--accent);
  box-shadow: var(--shadow);
  transform: scale(1.04);
}
.pricing__card--featured:hover {
  transform: scale(1.04) translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.pricing__card-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: var(--white);
  font-size: .7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  padding: .3rem 1rem;
  border-radius: 20px;
}
.pricing__card-label {
  font-size: .85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--text-light);
  margin-bottom: .25rem;
}
.pricing__card-range {
  font-size: .85rem;
  color: var(--text-light);
  margin-bottom: 1.25rem;
}
.pricing__card-price {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: .15rem;
  margin-bottom: .25rem;
}
.pricing__card-currency {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--heading);
}
.pricing__card-amount {
  font-size: 3.2rem;
  font-weight: 800;
  color: var(--heading);
  letter-spacing: -.04em;
  line-height: 1;
}
.pricing__card-period {
  font-size: .8rem;
  color: var(--text-light);
  font-weight: 500;
}
.pricing__card-min {
  font-size: .8rem;
  color: var(--text-light);
  margin-bottom: 1.5rem;
}
.pricing__card-features {
  text-align: left;
  margin-bottom: 2rem;
  display: flex;
  flex-direction: column;
  gap: .6rem;
}
.pricing__card-features li {
  font-size: .9rem;
  color: var(--text);
  padding-left: 1.5rem;
  position: relative;
}
.pricing__card-features li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 6px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--accent-light);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none'%3E%3Cpath d='M4.5 8l2.5 2.5 4.5-4.5' stroke='%2310b981' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-size: 16px;
}
.pricing__enterprise {
  text-align: center;
  font-size: .95rem;
  color: var(--text);
}
.pricing__enterprise a {
  color: var(--accent);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.pricing__note {
  text-align: center;
  font-size: .8rem;
  color: var(--text-light);
  margin-top: .5rem;
}


/* ============================================================
   FAQ
   ============================================================ */
.faq {
  padding: 6rem 0;
  background: var(--bg-soft);
}
.faq__list {
  margin-top: 2rem;
  display: flex;
  flex-direction: column;
  gap: .75rem;
}
.faq__item {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: box-shadow .2s;
}
.faq__item[open] { box-shadow: var(--shadow-sm); }
.faq__question {
  padding: 1.25rem 1.5rem;
  font-weight: 600;
  font-size: .95rem;
  color: var(--heading);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  list-style: none;
}
.faq__question::-webkit-details-marker { display: none; }
.faq__question::after {
  content: '+';
  font-size: 1.3rem;
  font-weight: 400;
  color: var(--text-light);
  transition: transform .2s;
  flex-shrink: 0;
  margin-left: 1rem;
}
.faq__item[open] .faq__question::after {
  content: '\2212';
}
.faq__answer {
  padding: 0 1.5rem 1.25rem;
  font-size: .9rem;
  color: var(--text-light);
  line-height: 1.7;
}

/* Dark background FAQ variant */
.faq__list--dark .faq__item {
  background: rgba(255,255,255,.05);
  border-color: rgba(255,255,255,.1);
}
.faq__list--dark .faq__item[open] {
  background: rgba(255,255,255,.08);
  box-shadow: none;
}
.faq__list--dark .faq__question { color: rgba(255,255,255,.88); }
.faq__list--dark .faq__question::after { color: rgba(255,255,255,.4); }
.faq__list--dark .faq__answer { color: rgba(255,255,255,.58); }


/* ============================================================
   CTA SECTION
   ============================================================ */
.cta-section {
  padding: 5rem 0;
  background: var(--primary);
}
.cta-section__inner {
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
}
.cta-section__title {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  font-weight: 800;
  color: var(--white);
  margin-bottom: 1rem;
}
.cta-section__text {
  font-size: 1.05rem;
  color: rgba(255,255,255,.7);
  margin-bottom: 2rem;
  line-height: 1.7;
}
.cta-section__note {
  margin-top: .75rem;
  font-size: .8rem;
  color: rgba(255,255,255,.5);
}


/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  padding: 4rem 0 2rem;
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
}
.footer__inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}
.footer__tagline {
  font-size: .9rem;
  color: var(--text-light);
  margin-top: .75rem;
}
.footer__credit {
  font-size: .8rem;
  color: var(--text-light);
  margin-top: .25rem;
}
.footer__col h4 {
  font-size: .8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--heading);
  margin-bottom: 1rem;
}
.footer__col a {
  font-size: .9rem;
  color: var(--text-light);
  transition: color .2s;
  display: block;
  padding: .2rem 0;
}
.footer__col a:hover { color: var(--accent); }
.footer__demo-link {
  display: inline-flex !important;
  align-items: center;
  gap: .4rem;
  color: var(--red) !important;
  font-weight: 600;
  margin-top: .25rem;
}
.footer__newsletter {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding: 2rem 0;
  border-top: 1px solid var(--border);
  margin-bottom: 1.5rem;
}
.footer__newsletter h4 {
  font-size: .95rem;
  font-weight: 700;
  color: var(--heading);
  margin-bottom: .25rem;
}
.footer__newsletter p {
  font-size: .85rem;
  color: var(--text-light);
}
.footer__newsletter-form {
  display: flex;
  gap: .5rem;
  flex-shrink: 0;
}
.footer__newsletter-input {
  font-family: var(--font);
  font-size: .9rem;
  padding: .6rem 1rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--white);
  color: var(--text);
  width: 260px;
  outline: none;
  transition: border-color .2s;
}
.footer__newsletter-input:focus {
  border-color: var(--accent);
}
.footer__bottom {
  border-top: 1px solid var(--border);
  padding-top: 1.5rem;
}
.footer__bottom p {
  font-size: .8rem;
  color: var(--text-light);
  text-align: center;
}


/* ============================================================
   PAGE HERO (subpages)
   ============================================================ */
.page-hero {
  position: relative;
  padding: calc(var(--nav-height) + 4rem) 0 4rem;
  background:
    radial-gradient(ellipse 70% 50% at 88% 35%, var(--bg-cream-warm) 0%, transparent 65%),
    radial-gradient(ellipse 55% 50% at 15% 5%, var(--bg-navy-soft) 0%, transparent 55%),
    var(--bg-cream);
  text-align: center;
  overflow: hidden;
}
.page-hero .hero__scatter { position: absolute; inset: 0; pointer-events: none; z-index: 0; overflow: hidden; }
.page-hero .container { position: relative; z-index: 1; }
.page-hero__title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 800;
  line-height: 1.15;
  color: var(--heading);
  margin-bottom: 1rem;
}
.page-hero__subtitle {
  font-size: 1.1rem;
  color: var(--text-light);
  line-height: 1.7;
  max-width: 560px;
  margin: 0 auto;
}

/* Section helper */
.section-white {
  padding: 4rem 0;
  background: var(--bg);
}

/* ============================================================
   FEATURE DETAILS (features page)
   ============================================================ */
.feature-details {
  padding: 4rem 0;
  background: var(--bg);
}
.feature-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  padding: 3rem 0;
  border-bottom: 1px solid var(--border);
}
.feature-detail:last-child { border-bottom: none; }
.feature-detail--reverse { direction: rtl; }
.feature-detail--reverse > * { direction: ltr; }
.feature-detail__title {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--heading);
  margin-bottom: .75rem;
}
.feature-detail__text {
  font-size: .95rem;
  color: var(--text-light);
  line-height: 1.7;
  margin-bottom: 1.25rem;
}
.feature-detail__list {
  display: flex;
  flex-direction: column;
  gap: .4rem;
}
.feature-detail__list li {
  font-size: .9rem;
  color: var(--text);
  padding-left: 1.5rem;
  position: relative;
}
.feature-detail__list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 6px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--accent-light);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none'%3E%3Cpath d='M4.5 8l2.5 2.5 4.5-4.5' stroke='%2310b981' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-size: 16px;
}
.feature-detail__card {
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
}
.feature-detail__card-label {
  font-size: .7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--text-light);
  margin-bottom: .25rem;
}
.feature-detail__card-value {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--heading);
  display: block;
  margin-bottom: 1rem;
}
.feature-detail__card-row {
  display: flex;
  justify-content: space-between;
  font-size: .85rem;
  color: var(--text-light);
  padding: .4rem 0;
  border-bottom: 1px solid var(--border);
}
.feature-detail__card-row:last-child { border-bottom: none; }
.feature-detail__card-row--total {
  font-weight: 700;
  color: var(--heading);
  border-top: 2px solid var(--border);
  border-bottom: none;
  margin-top: .25rem;
  padding-top: .6rem;
}
.feature-detail__score-ring {
  display: flex;
  justify-content: center;
  margin: 1rem 0;
}

/* Active nav link */
.nav__link--active {
  color: var(--red) !important;
  font-weight: 600;
}


/* ============================================================
   HOW DETAILS (how-it-works page)
   ============================================================ */
.how-details {
  padding: 2rem 0 4rem;
  background: var(--bg-soft);
}
.how-detail {
  display: flex;
  gap: 2rem;
  align-items: flex-start;
  padding: 2rem 0;
  border-bottom: 1px solid var(--border);
}
.how-detail:last-child { border-bottom: none; }
.how-detail__number {
  font-size: 2rem;
  font-weight: 800;
  color: var(--accent);
  opacity: .3;
  flex-shrink: 0;
  line-height: 1;
  min-width: 3rem;
}
.how-detail__content h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--heading);
  margin-bottom: .5rem;
}
.how-detail__content p {
  font-size: .95rem;
  color: var(--text-light);
  line-height: 1.7;
}

/* Security section */
.security {
  padding: 4rem 0;
  background: var(--bg);
}
.security__inner {
  max-width: 640px;
}


/* ============================================================
   COMPARISON TABLE (pricing page)
   ============================================================ */
.comparison {
  padding: 4rem 0;
  background: var(--bg-soft);
}
.comparison__table-wrap {
  margin-top: 2rem;
  overflow-x: auto;
}
.comparison__table {
  width: 100%;
  border-collapse: collapse;
  font-size: .88rem;
}
.comparison__table th,
.comparison__table td {
  padding: .75rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
}
.comparison__table thead th {
  font-size: .75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--text-light);
  background: var(--bg-alt);
}
.comparison__table thead th:first-child { border-radius: 8px 0 0 0; }
.comparison__table thead th:last-child { border-radius: 0 8px 0 0; }
.comparison__table tbody td:first-child {
  font-weight: 500;
  color: var(--heading);
}
.comparison__check {
  color: var(--accent);
  font-weight: 700;
  text-align: center !important;
}
.comparison__dash {
  color: var(--border);
  text-align: center !important;
}


/* ============================================================
   FAQ CATEGORIES (faq page)
   ============================================================ */
.faq__category-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--heading);
  margin-top: 2.5rem;
  margin-bottom: .75rem;
  padding-bottom: .5rem;
  border-bottom: 2px solid var(--accent-light);
}
.faq__category-title:first-child { margin-top: 0; }

/* FAQ contact card */
.faq-contact {
  padding: 3rem 0;
  background: var(--bg);
}
.faq-contact__card {
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  text-align: center;
}
.faq-contact__card h3 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--heading);
  margin-bottom: .5rem;
}
.faq-contact__card p {
  font-size: .95rem;
  color: var(--text-light);
  margin-bottom: 1.5rem;
}
.faq-contact__actions {
  display: flex;
  gap: .75rem;
  justify-content: center;
}


/* ============================================================
   RESPONSIVE
   ============================================================ */

/* Tablet */
@media (max-width: 900px) {
  .hero__inner {
    grid-template-columns: 1fr;
    gap: 2.5rem;
    text-align: center;
  }
  .hero__subtitle { margin: 0 auto 2rem; }
  .hero__ctas { justify-content: center; }
  .hero__trust { justify-content: center; }

  .problem__inner {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .features__grid { grid-template-columns: repeat(2, 1fr); }

  .how__steps { flex-direction: column; align-items: center; }
  .how__step-connector {
    padding-top: 0;
    transform: rotate(90deg);
    margin: .5rem 0;
  }

  .built-for__inner {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .pricing__grid { grid-template-columns: 1fr; max-width: 400px; margin: 0 auto 2rem; }
  .pricing__card--featured { transform: none; }
  .pricing__card--featured:hover { transform: translateY(-4px); }

  .features__showcase {
    grid-template-columns: 1fr;
    padding: 2rem;
  }
  .feature-detail {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .feature-detail--reverse { direction: ltr; }

  .footer__inner {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }
  .footer__newsletter {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* Mobile */
@media (max-width: 600px) {
  :root { --nav-height: 64px; }

  .nav__links,
  .nav__actions { display: none; }
  .nav__burger { display: flex; }

  /* Mobile menu — single slide-down panel */
  .nav--open .nav__inner {
    flex-wrap: wrap;
  }
  .nav--open .nav__links,
  .nav--open .nav__actions {
    display: flex;
  }
  .nav--open .nav__links {
    position: fixed;
    top: var(--nav-height);
    left: 0; right: 0;
    flex-direction: column;
    background: var(--white);
    padding: 1rem 1.5rem 0;
    gap: 0;
    z-index: 999;
    border-bottom: none;
  }
  .nav--open .nav__links a {
    display: block;
    padding: .85rem 0;
    font-size: 1rem;
    border-bottom: 1px solid var(--border);
  }
  .nav--open .nav__actions {
    position: fixed;
    top: auto;
    left: 0; right: 0;
    flex-direction: column;
    background: var(--white);
    padding: 1rem 1.5rem 1.5rem;
    gap: .5rem;
    z-index: 999;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow);
  }
  /* Stack links + actions in one continuous panel */
  .nav--open .nav__links {
    border-bottom: none;
    box-shadow: none;
    padding-bottom: 0;
  }
  .nav--open .nav__actions {
    position: fixed;
    /* Positioned right below the links */
    top: calc(var(--nav-height) + 4 * 3rem);
  }

  /* Overlay behind menu */
  .nav--open::after {
    content: '';
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,.3);
    z-index: 998;
  }

  .hero { padding-top: calc(var(--nav-height) + 2.5rem); }
  .hero__title { font-size: clamp(1.8rem, 7vw, 2.6rem); }

  .stats__grid {
    flex-wrap: wrap;
    gap: 1.5rem;
  }
  .stats__divider { display: none; }
  .stats__item { flex: 1 1 40%; min-width: 120px; }

  .features__grid { grid-template-columns: 1fr; }
  .features__showcase {
    grid-template-columns: 1fr;
    padding: 1.5rem;
  }

  .footer__inner { grid-template-columns: 1fr; gap: 2rem; }
  .footer__newsletter {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
  }
  .footer__newsletter-form {
    flex-direction: column;
  }
  .footer__newsletter-input { width: 100%; }

  .hero__dashboard-body { grid-template-columns: 1fr; }
  .hero__stat-card--wide { grid-column: auto; }
}

/* Burger animation */
.nav--open .nav__burger span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav--open .nav__burger span:nth-child(2) { opacity: 0; }
.nav--open .nav__burger span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ============================================================
   TESTIMONIALS
   ============================================================ */
.testimonials {
  padding: 6rem 0;
  background: var(--bg);
  position: relative;
}
.testimonials__card--tint-warm { background: var(--bg-cream-warm); }
.testimonials__card--tint-navy { background: var(--bg-navy-soft); }
.testimonials__card--tint-red  { background: var(--bg-red-soft); }
.testimonials__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 2.5rem;
}
.testimonials__card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  transition: transform .2s, box-shadow .2s;
}
.testimonials__card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}
.testimonials__stars { line-height: 0; }
.testimonials__placeholder {
  display: flex;
  justify-content: center;
  margin-top: 2rem;
}
.testimonials__placeholder-inner {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 3rem 2.5rem;
  text-align: center;
  max-width: 480px;
}
.testimonials__placeholder-text {
  color: var(--text-light);
  font-size: 1rem;
  line-height: 1.65;
  margin: 0;
}
.testimonials__text {
  font-size: .92rem;
  color: var(--text);
  line-height: 1.7;
  flex: 1;
}
.testimonials__author {
  display: flex;
  align-items: center;
  gap: .75rem;
  padding-top: .75rem;
  border-top: 1px solid var(--border);
}
.testimonials__avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--accent-light);
  color: var(--accent-dark);
  font-weight: 700;
  font-size: .75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.testimonials__name {
  display: block;
  font-weight: 600;
  font-size: .85rem;
  color: var(--heading);
}
.testimonials__role {
  display: block;
  font-size: .75rem;
  color: var(--text-light);
}

/* Trust bar separator */
.hero__trust-sep {
  width: 1px;
  height: 20px;
  background: var(--border);
  flex-shrink: 0;
}

/* Pricing toggle */
.pricing__toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .75rem;
  margin-bottom: 2.5rem;
}
.pricing__toggle-label {
  font-size: .9rem;
  font-weight: 500;
  color: var(--text-light);
  transition: color .2s;
  cursor: pointer;
}
.pricing__toggle-label--active {
  color: var(--heading);
  font-weight: 600;
}
.pricing__toggle-save {
  display: inline-block;
  font-size: .65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
  padding: .15rem .5rem;
  border-radius: 4px;
  background: var(--accent-light);
  color: var(--accent-dark);
  vertical-align: middle;
  margin-left: .25rem;
}
.pricing__toggle-switch {
  display: block;
  width: 48px;
  min-width: 48px;
  height: 26px;
  border-radius: 13px;
  background: var(--border) !important;
  position: relative;
  cursor: pointer;
  transition: background .2s;
  border: none !important;
  padding: 0;
  flex-shrink: 0;
  -webkit-appearance: none;
  appearance: none;
  outline: none;
}
.pricing__toggle-switch--on {
  background: var(--accent) !important;
}
.pricing__toggle-knob {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--white);
  box-shadow: 0 1px 3px rgba(0,0,0,.15);
  transition: transform .2s;
}
.pricing__toggle-switch--on .pricing__toggle-knob {
  transform: translateX(22px);
}

@media (max-width: 900px) {
  .testimonials__grid { grid-template-columns: 1fr; max-width: 480px; margin: 2.5rem auto 0; }
}


/* ============================================================
   DEEP FEATURE SECTIONS (features page)
   ============================================================ */
.deep-feature {
  padding: 5rem 0;
  background: var(--bg);
}
.deep-feature--alt {
  background: var(--bg-soft);
}
.deep-feature__inner {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 4rem;
  align-items: center;
}
.deep-feature__inner--reverse {
  grid-template-columns: 1fr 1.1fr;
  direction: rtl;
}
.deep-feature__inner--reverse > * {
  direction: ltr;
}
.deep-feature__badge {
  display: inline-block;
  font-size: .7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  padding: .25rem .75rem;
  border-radius: 20px;
  background: var(--accent-light);
  color: var(--accent-dark);
  margin-bottom: 1rem;
}
.deep-feature__badge--blue {
  background: #dbeafe;
  color: #2563eb;
}
.deep-feature__title {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 800;
  color: var(--heading);
  margin-bottom: .75rem;
  line-height: 1.2;
}
.deep-feature__lead {
  font-size: 1.05rem;
  color: var(--text-light);
  line-height: 1.7;
  margin-bottom: 1.5rem;
}
.deep-feature__details h4 {
  font-size: .95rem;
  font-weight: 700;
  color: var(--heading);
  margin: 1.5rem 0 .5rem;
}
.deep-feature__details h4:first-child {
  margin-top: 0;
}
.deep-feature__details ul {
  display: flex;
  flex-direction: column;
  gap: .5rem;
}
.deep-feature__details ul li {
  font-size: .9rem;
  color: var(--text);
  line-height: 1.6;
  padding-left: 1.25rem;
  position: relative;
}
.deep-feature__details ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}
.deep-feature__details p {
  font-size: .9rem;
  color: var(--text-light);
  line-height: 1.7;
}
.deep-feature__visual {
  display: flex;
  justify-content: center;
}

/* Health score component grid */
.deep-feature__component-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .4rem;
  margin: .75rem 0;
}
.deep-feature__component {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-size: .8rem;
  color: var(--text);
  padding: .4rem .5rem;
  background: var(--bg-soft);
  border-radius: 6px;
}
.deep-feature__component-score {
  font-weight: 800;
  font-size: .75rem;
  min-width: 2.5rem;
  flex-shrink: 0;
}

/* Extraction scenario table */
.deep-feature__scenario-table {
  margin-top: 1rem;
}
.deep-feature__scenario-header,
.deep-feature__scenario-row {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr 1fr;
  gap: .5rem;
  padding: .5rem .25rem;
  font-size: .78rem;
  color: var(--text);
  border-bottom: 1px solid var(--border);
}
.deep-feature__scenario-header {
  font-weight: 700;
  font-size: .7rem;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--text-light);
  border-bottom: 2px solid var(--border);
}
.deep-feature__scenario-row:last-child {
  border-bottom: none;
}
.deep-feature__scenario-row--highlight {
  font-weight: 700;
  color: var(--heading);
  background: var(--accent-light);
  border-radius: 4px;
  border-bottom-color: transparent;
}

/* Audit trail */
.deep-feature__audit-trail {
  margin-top: 1rem;
  display: flex;
  flex-direction: column;
  gap: .75rem;
}
.deep-feature__audit-item {
  display: flex;
  gap: .75rem;
  align-items: flex-start;
  font-size: .8rem;
  color: var(--text);
  line-height: 1.5;
}
.deep-feature__audit-item strong {
  display: block;
  font-weight: 600;
  color: var(--heading);
  margin-bottom: .1rem;
}
.deep-feature__audit-item span {
  font-size: .75rem;
  color: var(--text-light);
}
.deep-feature__audit-icon {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 4px;
  position: relative;
}
.deep-feature__audit-icon::after {
  content: '';
  position: absolute;
  top: 12px;
  left: 4px;
  width: 2px;
  height: calc(100% + 10px);
  background: var(--border);
}
.deep-feature__audit-item:last-child .deep-feature__audit-icon::after {
  display: none;
}
.deep-feature__audit-icon--input { background: var(--primary-light); }
.deep-feature__audit-icon--adjust { background: var(--amber-text); }
.deep-feature__audit-icon--rate { background: var(--upcoming-text); }
.deep-feature__audit-icon--result { background: var(--accent); }

/* Sync status list */
.deep-feature__sync-list {
  margin-top: 1rem;
  display: flex;
  flex-direction: column;
  gap: .5rem;
}
.deep-feature__sync-item {
  display: flex;
  align-items: center;
  gap: .6rem;
  font-size: .85rem;
  color: var(--text);
  padding: .5rem .5rem;
  border-bottom: 1px solid var(--border);
}
.deep-feature__sync-item:last-child {
  border-bottom: none;
}
.deep-feature__sync-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}
.deep-feature__sync-dot--ok { background: var(--accent); }
.deep-feature__sync-dot--pending {
  background: var(--amber-text);
  animation: pulse-dot 1.5s ease-in-out infinite;
}
@keyframes pulse-dot {
  0%, 100% { opacity: 1; }
  50% { opacity: .4; }
}
.deep-feature__sync-time {
  margin-left: auto;
  font-size: .75rem;
  color: var(--text-light);
  font-weight: 500;
}


/* ============================================================
   ROADMAP (features page)
   ============================================================ */
.roadmap {
  padding: 5rem 0;
  background: var(--bg-soft);
}
.roadmap__list {
  margin-top: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.roadmap__item {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
}
.roadmap__item h4 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--heading);
  margin: .5rem 0 .35rem;
}
.roadmap__item p {
  font-size: .9rem;
  color: var(--text-light);
  line-height: 1.65;
}
.roadmap__status {
  display: inline-block;
  font-size: .65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  padding: .2rem .6rem;
  border-radius: 4px;
}
.roadmap__status--building {
  background: var(--accent-light);
  color: var(--accent-dark);
}
.roadmap__status--planned {
  background: #dbeafe;
  color: #2563eb;
}
.roadmap__status--future {
  background: var(--bg-alt);
  color: var(--text-light);
}


/* ============================================================
   JOURNEY STEPS (how-it-works page)
   ============================================================ */
.journey-step {
  padding: 5rem 0;
  background: var(--bg);
}
.journey-step--alt {
  background: var(--bg-soft);
}
.journey-step__inner {
  max-width: 900px;
  margin: 0 auto;
}
.journey-step__header {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  margin-bottom: 2rem;
}
.journey-step__number {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--white);
  font-weight: 800;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.journey-step__title {
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 3vw, 1.8rem);
  font-weight: 800;
  color: var(--heading);
  line-height: 1.2;
}
.journey-step__time {
  font-size: .85rem;
  color: var(--text-light);
  margin-top: .15rem;
}
.journey-step__body {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 3rem;
  align-items: start;
}
.journey-step__text {
  font-size: .95rem;
  color: var(--text);
  line-height: 1.7;
}
.journey-step__text p {
  margin-bottom: 1rem;
}
.journey-step__text h4 {
  font-size: .95rem;
  font-weight: 700;
  color: var(--heading);
  margin: 1.5rem 0 .5rem;
}
.journey-step__text h4:first-child {
  margin-top: 0;
}
.journey-step__text ul {
  display: flex;
  flex-direction: column;
  gap: .4rem;
  margin-bottom: 1rem;
}
.journey-step__text ul li {
  font-size: .9rem;
  padding-left: 1.25rem;
  position: relative;
  line-height: 1.6;
}
.journey-step__text ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}
.journey-step__visual {
  display: flex;
  justify-content: center;
}
.journey-step__mockup {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  width: 100%;
}

/* Pipeline ordered list */
.journey-step__pipeline {
  list-style: none;
  counter-reset: pipeline;
  display: flex;
  flex-direction: column;
  gap: .5rem;
  margin: .75rem 0 1rem;
}
.journey-step__pipeline li {
  counter-increment: pipeline;
  display: flex;
  flex-direction: column;
  padding: .75rem 1rem .75rem 3rem;
  background: var(--bg-soft);
  border-radius: 8px;
  border-left: 3px solid var(--accent);
  position: relative;
}
.journey-step__pipeline li::before {
  content: counter(pipeline);
  position: absolute;
  left: .75rem;
  top: .75rem;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--white);
  font-size: .65rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}
.journey-step__pipeline li strong {
  font-size: .85rem;
  color: var(--heading);
}
.journey-step__pipeline li span {
  font-size: .8rem;
  color: var(--text-light);
  line-height: 1.5;
}


/* ============================================================
   SECURITY DETAIL (how-it-works page)
   ============================================================ */
.security-detail {
  padding: 5rem 0;
  background: var(--bg-soft);
}
.security-detail__inner {
  max-width: 900px;
  margin: 0 auto;
}
.security-detail__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin-top: 2.5rem;
}
.security-detail__card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
}
.security-detail__card h4 {
  font-size: .95rem;
  font-weight: 700;
  color: var(--heading);
  margin-bottom: .5rem;
}
.security-detail__card p {
  font-size: .85rem;
  color: var(--text-light);
  line-height: 1.65;
}


/* ============================================================
   PRICING EXTRAS (pricing page)
   ============================================================ */
.pricing-philosophy {
  padding: 4rem 0;
  background: var(--bg);
}
.pricing-philosophy__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-top: 2rem;
}
.pricing-philosophy__point {
  padding: 1.5rem;
  background: var(--bg-soft);
  border-radius: var(--radius);
  border: 1px solid var(--border);
}
.pricing-philosophy__point h4 {
  font-size: .95rem;
  font-weight: 700;
  color: var(--heading);
  margin-bottom: .35rem;
}
.pricing-philosophy__point p {
  font-size: .88rem;
  color: var(--text-light);
  line-height: 1.65;
}

/* Example cost cards */
.pricing-examples {
  padding: 5rem 0;
  background: var(--bg-soft);
}
.pricing-examples__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.pricing-examples__card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.pricing-examples__card--featured {
  border: 2px solid var(--accent);
  box-shadow: var(--shadow);
}
.pricing-examples__card-header {
  padding: 1.5rem 1.5rem .75rem;
}
.pricing-examples__card-header h4 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--heading);
  margin-bottom: .15rem;
}
.pricing-examples__card-header span {
  font-size: .8rem;
  color: var(--text-light);
}
.pricing-examples__card-body {
  padding: 0 1.5rem;
}
.pricing-examples__row {
  display: flex;
  justify-content: space-between;
  font-size: .85rem;
  color: var(--text);
  padding: .5rem 0;
  border-bottom: 1px solid var(--border);
}
.pricing-examples__row:last-child {
  border-bottom: none;
}
.pricing-examples__row--note {
  color: var(--text-light);
  font-size: .8rem;
}
.pricing-examples__row--total {
  font-weight: 700;
  color: var(--heading);
  border-top: 2px solid var(--border);
  border-bottom: none;
  margin-top: .25rem;
  padding-top: .65rem;
}
.pricing-examples__row--per {
  font-size: .8rem;
  color: var(--accent-dark);
  font-weight: 600;
  border-bottom: none;
}
.pricing-examples__card-context {
  padding: 1rem 1.5rem 1.5rem;
  font-size: .82rem;
  color: var(--text-light);
  line-height: 1.6;
  border-top: 1px solid var(--border);
  margin-top: .5rem;
}

/* ROI section */
.pricing-roi {
  padding: 5rem 0;
  background: var(--bg);
}
.pricing-roi__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin-top: 2rem;
}
.pricing-roi__item {
  text-align: center;
  padding: 2rem 1.5rem;
  background: var(--bg-soft);
  border-radius: var(--radius);
  border: 1px solid var(--border);
}
.pricing-roi__number {
  display: block;
  font-size: 2rem;
  font-weight: 800;
  color: var(--accent);
  letter-spacing: -.02em;
  margin-bottom: .5rem;
}
.pricing-roi__label {
  font-size: .85rem;
  color: var(--text-light);
  line-height: 1.6;
}


/* ============================================================
   RESPONSIVE — Deep feature & journey sections
   ============================================================ */
@media (max-width: 900px) {
  .deep-feature__inner,
  .deep-feature__inner--reverse {
    grid-template-columns: 1fr;
    direction: ltr;
    gap: 2rem;
  }
  .journey-step__body {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .security-detail__grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .pricing-examples__grid {
    grid-template-columns: 1fr;
    max-width: 420px;
    margin: 0 auto;
  }
  .pricing-philosophy__grid {
    grid-template-columns: 1fr;
  }
  .pricing-roi__grid {
    grid-template-columns: 1fr;
    max-width: 400px;
    margin: 2rem auto 0;
  }
  .deep-feature__component-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .security-detail__grid {
    grid-template-columns: 1fr;
  }
  .journey-step__header {
    gap: .75rem;
  }
  .journey-step__number {
    width: 40px;
    height: 40px;
    font-size: 1rem;
  }
}


/* ============================================================
   LEGAL PAGES (terms, privacy)
   ============================================================ */
.legal {
  padding: calc(var(--nav-height) + 3rem) 0 4rem;
  background: var(--bg-soft);
}
.legal__card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 3rem 3.5rem;
  box-shadow: var(--shadow);
}
.legal__title {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--heading);
  margin-bottom: .25rem;
}
.legal__meta {
  font-size: .8rem;
  color: var(--text-light);
  margin-bottom: 2.5rem;
}
.legal__card h2 {
  font-size: .8rem;
  font-weight: 700;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: .08em;
  margin: 2rem 0 .6rem;
}
.legal__card p {
  font-size: .9rem;
  color: var(--text);
  line-height: 1.7;
  margin-bottom: .75rem;
}
.legal__card ul {
  margin: 0 0 .75rem 1.25rem;
  list-style: disc;
}
.legal__card li {
  font-size: .9rem;
  color: var(--text);
  line-height: 1.7;
  margin-bottom: .25rem;
}
.legal__card a {
  color: var(--accent);
  text-decoration: none;
}
.legal__card a:hover {
  text-decoration: underline;
}
.legal__footer {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  font-size: .8rem;
  color: var(--text-light);
}
.legal__footer a {
  color: var(--text-light);
}
.legal__footer a:hover {
  color: var(--accent);
}
.legal__table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  font-size: .9rem;
}
.legal__table th {
  text-align: left;
  padding: .6rem .75rem;
  background: var(--bg);
  border: 1px solid var(--border);
  font-weight: 600;
  color: var(--heading);
}
.legal__table td {
  padding: .6rem .75rem;
  border: 1px solid var(--border);
  vertical-align: top;
  color: var(--text);
}
.legal__card h3 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--heading);
  margin: 1.5rem 0 .5rem;
}

@media (max-width: 600px) {
  .legal__card { padding: 2rem 1.5rem; }
}


/* ============================================================
   ABOUT PAGE
   ============================================================ */
.about-story,
.about-who,
.about-why {
  padding: 4rem 0;
}
.about-story { background: var(--bg); }
.about-who { background: var(--bg-soft); }
.about-why { background: var(--bg); }

.about-story__inner,
.about-who__inner,
.about-why__inner,
.about-timeline__inner {
  max-width: 680px;
  margin: 0 auto;
}

.about-values {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  margin-top: 2rem;
}
.about-values__item {
  padding: 1.5rem;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.about-values__item h4 {
  font-size: .95rem;
  font-weight: 700;
  color: var(--heading);
  margin-bottom: .35rem;
}
.about-values__item p {
  font-size: .88rem;
  color: var(--text-light);
  line-height: 1.65;
}

.about-timeline {
  padding: 5rem 0;
  background: var(--bg-soft);
}
.about-timeline__list {
  margin-top: 2rem;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.about-timeline__item {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--border);
}
.about-timeline__item:last-child { border-bottom: none; }
.about-timeline__date {
  font-size: .75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--accent);
  min-width: 5.5rem;
  flex-shrink: 0;
  padding-top: .15rem;
}
.about-timeline__item h4 {
  font-size: .95rem;
  font-weight: 700;
  color: var(--heading);
  margin-bottom: .25rem;
}
.about-timeline__item p {
  font-size: .88rem;
  color: var(--text-light);
  line-height: 1.65;
}

@media (max-width: 600px) {
  .about-values { grid-template-columns: 1fr; }
  .about-timeline__item { flex-direction: column; gap: .25rem; }
  .about-timeline__date { min-width: auto; }
}


/* ============================================================
   DEMO / BOOK A DEMO PAGE
   ============================================================ */
.demo-section {
  padding: 4rem 0;
  background: var(--bg);
}
.demo-section__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}

/* Form */
.demo-form {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: var(--shadow);
}
.demo-form__title {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--heading);
  margin-bottom: .25rem;
}
.demo-form__subtitle {
  font-size: .9rem;
  color: var(--text-light);
  margin-bottom: 1.75rem;
}
.demo-form__field {
  margin-bottom: 1.25rem;
}
.demo-form__field label {
  display: block;
  font-size: .85rem;
  font-weight: 600;
  color: var(--heading);
  margin-bottom: .35rem;
}
.demo-form__field input,
.demo-form__field select,
.demo-form__field textarea {
  width: 100%;
  font-family: var(--font);
  font-size: .9rem;
  padding: .65rem 1rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--bg-soft);
  color: var(--text);
  outline: none;
  transition: border-color .2s;
}
.demo-form__field input:focus,
.demo-form__field select:focus,
.demo-form__field textarea:focus {
  border-color: var(--accent);
}
.demo-form__field textarea {
  resize: vertical;
  min-height: 80px;
}
.demo-form__note {
  font-size: .78rem;
  color: var(--text-light);
  text-align: center;
  margin-top: .75rem;
}

/* Expect side */
.demo-expect__title {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--heading);
  margin-bottom: 1.25rem;
}
.demo-expect__list {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}
.demo-expect__item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}
.demo-expect__number {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--accent-light);
  color: var(--accent-dark);
  font-weight: 800;
  font-size: .85rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.demo-expect__item h4 {
  font-size: .95rem;
  font-weight: 700;
  color: var(--heading);
  margin-bottom: .15rem;
}
.demo-expect__item p {
  font-size: .88rem;
  color: var(--text-light);
  line-height: 1.6;
}

.demo-expect__promises ul {
  display: flex;
  flex-direction: column;
  gap: .6rem;
  margin-top: .5rem;
}
.demo-expect__promises li {
  display: flex;
  align-items: center;
  gap: .6rem;
  font-size: .9rem;
  color: var(--text);
}
.demo-expect__promises li svg { flex-shrink: 0; }

/* Alternative card */
.demo-alternative {
  padding: 3rem 0 4rem;
  background: var(--bg);
}
.demo-alternative__card {
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  text-align: center;
}
.demo-alternative__card h3 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--heading);
  margin-bottom: .5rem;
}
.demo-alternative__card p {
  font-size: .95rem;
  color: var(--text-light);
  margin-bottom: 1.5rem;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

@media (max-width: 900px) {
  .demo-section__inner {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
}

@media (max-width: 600px) {
  .demo-form { padding: 1.5rem; }
}


/* ============================================================
   SECURITY PAGE
   ============================================================ */
.security-principles {
  padding: 5rem 0;
  background: var(--bg);
}
.security-principles__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}
.security-principles__card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
}
.security-principles__icon {
  margin-bottom: 1rem;
}
.security-principles__card h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--heading);
  margin-bottom: .5rem;
}
.security-principles__card > p {
  font-size: .9rem;
  color: var(--text-light);
  line-height: 1.65;
  margin-bottom: 1rem;
}
.security-principles__detail {
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}
.security-principles__detail h4 {
  font-size: .8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--text-light);
  margin-bottom: .5rem;
}
.security-principles__detail ul {
  list-style: disc;
  margin: 0 0 .5rem 1.25rem;
}
.security-principles__detail li {
  font-size: .85rem;
  color: var(--text);
  line-height: 1.6;
  margin-bottom: .25rem;
}
.security-principles__detail p {
  font-size: .85rem;
  color: var(--text-light);
  line-height: 1.6;
}

/* Data flow diagram */
.security-flow {
  display: flex;
  align-items: center;
  gap: .75rem;
  margin: .75rem 0;
}
.security-flow__step {
  flex: 1;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: .75rem;
  text-align: center;
}
.security-flow__label {
  display: block;
  font-size: .78rem;
  font-weight: 700;
  color: var(--heading);
  margin-bottom: .15rem;
}
.security-flow__desc {
  display: block;
  font-size: .7rem;
  color: var(--text-light);
}
.security-flow__arrow {
  font-size: 1.2rem;
  color: var(--accent);
  font-weight: 700;
  flex-shrink: 0;
}

/* Xero permissions table */
.security-xero {
  padding: 5rem 0;
  background: var(--bg-soft);
}
.security-xero__table {
  margin-top: 2rem;
}
.security-xero__row {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 1rem;
  padding: .75rem 1rem;
  font-size: .85rem;
  color: var(--text);
  border-bottom: 1px solid var(--border);
  align-items: center;
}
.security-xero__row:last-child { border-bottom: none; }
.security-xero__row--header {
  font-weight: 700;
  font-size: .75rem;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--text-light);
  border-bottom: 2px solid var(--border);
  background: var(--bg-alt);
  border-radius: 8px 8px 0 0;
}


/* ============================================================
   CHANGELOG PAGE
   ============================================================ */
.changelog {
  padding: 4rem 0;
  background: var(--bg);
}
.changelog__release {
  display: flex;
  gap: 2.5rem;
  padding: 2.5rem 0;
  border-bottom: 1px solid var(--border);
}
.changelog__release:first-child { padding-top: 0; }
.changelog__release:last-child { border-bottom: none; }
.changelog__date {
  flex-shrink: 0;
  min-width: 7rem;
  display: flex;
  flex-direction: column;
  gap: .25rem;
}
.changelog__month {
  font-size: .85rem;
  font-weight: 700;
  color: var(--heading);
}
.changelog__version {
  font-size: .75rem;
  font-weight: 600;
  color: var(--text-light);
}
.changelog__title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--heading);
  margin-bottom: .5rem;
  line-height: 1.3;
}
.changelog__tags {
  display: flex;
  gap: .4rem;
  margin-bottom: .75rem;
}
.changelog__tag {
  display: inline-block;
  font-size: .6rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  padding: .2rem .5rem;
  border-radius: 4px;
}
.changelog__tag--new { background: var(--accent-light); color: var(--accent-dark); }
.changelog__tag--improved { background: #dbeafe; color: #2563eb; }
.changelog__tag--fixed { background: #fef3c7; color: #b45309; }
.changelog__list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: .4rem;
}
.changelog__list li {
  font-size: .88rem;
  color: var(--text);
  line-height: 1.6;
  padding-left: 0;
}
.changelog__tag--inline {
  display: inline-block;
  font-size: .55rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
  padding: .15rem .4rem;
  border-radius: 3px;
  vertical-align: middle;
  margin-right: .35rem;
}

/* Coming next */
.changelog-next {
  padding: 5rem 0;
  background: var(--bg-soft);
}
.changelog-next__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
  margin-top: 2rem;
}
.changelog-next__item {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
}
.changelog-next__item h4 {
  font-size: .95rem;
  font-weight: 700;
  color: var(--heading);
  margin: .5rem 0 .25rem;
}
.changelog-next__item p {
  font-size: .85rem;
  color: var(--text-light);
  line-height: 1.6;
}


/* ============================================================
   CASE STUDIES PAGE
   ============================================================ */
.case-study {
  padding: 4rem 0;
  background: var(--bg);
}
.case-study--alt {
  background: var(--bg-soft);
}
.case-study__card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: var(--shadow);
}
.case-study__type {
  display: inline-block;
  font-size: .7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  padding: .25rem .75rem;
  border-radius: 20px;
  background: var(--accent-light);
  color: var(--accent-dark);
  margin-bottom: .75rem;
}
.case-study__title {
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 3vw, 1.6rem);
  font-weight: 800;
  color: var(--heading);
  line-height: 1.3;
}
.case-study__stats {
  display: flex;
  gap: 2rem;
  margin: 2rem 0;
  padding: 1.5rem 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.case-study__stat {
  text-align: center;
  flex: 1;
}
.case-study__stat-number {
  display: block;
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--accent);
  letter-spacing: -.02em;
  line-height: 1;
  margin-bottom: .35rem;
}
.case-study__stat-label {
  font-size: .78rem;
  color: var(--text-light);
  line-height: 1.4;
}
.case-study__body h4 {
  font-size: .9rem;
  font-weight: 700;
  color: var(--heading);
  margin: 1.5rem 0 .4rem;
}
.case-study__body h4:first-child { margin-top: 0; }
.case-study__body p {
  font-size: .9rem;
  color: var(--text-light);
  line-height: 1.7;
  margin-bottom: .5rem;
}
.case-study__quote {
  margin: 1.25rem 0 0;
  padding: 1.25rem 1.5rem;
  background: var(--bg-soft);
  border-left: 4px solid var(--accent);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  color: var(--heading);
  line-height: 1.6;
  font-style: normal;
}

/* Summary stats */
.case-study-summary {
  padding: 5rem 0;
  background: var(--bg-soft);
}
.case-study-summary__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin-top: 2rem;
}
.case-study-summary__stat {
  text-align: center;
  padding: 2rem 1rem;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.case-study-summary__number {
  display: block;
  font-size: 2rem;
  font-weight: 800;
  color: var(--accent);
  letter-spacing: -.02em;
  margin-bottom: .5rem;
}
.case-study-summary__label {
  font-size: .82rem;
  color: var(--text-light);
  line-height: 1.5;
}

/* Case study responsive */
@media (max-width: 900px) {
  .security-principles__grid { grid-template-columns: 1fr; }
  .security-xero__row { grid-template-columns: 1fr; gap: .25rem; padding: .75rem; }
  .security-xero__row--header { display: none; }
  .changelog__release { flex-direction: column; gap: .5rem; }
  .changelog__date { flex-direction: row; gap: 1rem; align-items: baseline; }
  .changelog-next__grid { grid-template-columns: 1fr; }
  .case-study__stats { flex-direction: column; gap: 1rem; }
  .case-study-summary__grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
  .case-study__card { padding: 1.5rem; }
  .case-study-summary__grid { grid-template-columns: 1fr; }
  .security-flow { flex-direction: column; }
  .security-flow__arrow { transform: rotate(90deg); }
}


/* ---- Scroll animations ---- */
.fade-up {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .6s ease, transform .6s ease;
}
.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}


/* ============================================================
   REFRESH ADDITIONS — backgrounds, dividers, offset blocks
   ============================================================ */

/* SVG wave divider between sections. Set --wave-fill to the next section's bg.
   Use as: <div class="wave-divider" style="--wave-fill: var(--bg-cream)"></div> */
.wave-divider {
  display: block;
  width: 100%;
  height: 44px;
  margin: 0;
  background: transparent;
  position: relative;
  overflow: hidden;
  line-height: 0;
}
.wave-divider svg {
  display: block;
  width: 100%;
  height: 100%;
}
.wave-divider svg path { fill: var(--wave-fill, var(--bg-cream)); }

/* Offset coloured block behind a card. Wrap target in .offset-wrap.
   Variants: .offset-wrap--red, .offset-wrap--navy */
.offset-wrap {
  position: relative;
  display: inline-block;
  width: 100%;
}
.offset-wrap::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: var(--radius-lg);
  z-index: 0;
  transform: translate(14px, 14px);
  transition: transform .25s ease;
}
.offset-wrap--red::before  { background: var(--red); }
.offset-wrap--navy::before { background: var(--primary); }
.offset-wrap > * {
  position: relative;
  z-index: 1;
}
.offset-wrap:hover::before { transform: translate(8px, 8px); }

/* ============================================================
   AUDIENCE TOGGLE PILL
   ============================================================ */
.audience-toggle {
  display: inline-flex;
  align-items: center;
  gap: .25rem;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: .35rem;
  margin-bottom: 1.75rem;
  box-shadow: var(--shadow-sm);
  position: relative;
  z-index: 2;
}
.audience-toggle__btn {
  border-radius: 999px;
  padding: .55rem 1.2rem;
  font-size: .85rem;
  font-weight: 600;
  color: var(--text-light);
  transition: all .25s ease;
  background: transparent;
}
.audience-toggle__btn:hover { color: var(--heading); }
.audience-toggle__btn.is-active {
  background: var(--primary);
  color: var(--white);
}

/* ============================================================
   AUDIENCE-AWARE CONTENT SWAP
   Elements tagged data-audience="accountant" or "business"
   show only when the body matches.
   ============================================================ */
[data-audience-only] { display: none; }
body[data-audience="accountant"] [data-audience-only="accountant"] { display: revert; }
body[data-audience="business"]   [data-audience-only="business"]   { display: revert; }

/* ============================================================
   INTERACTIVE WALKTHROUGH (browser-framed demo)
   ============================================================ */
.walkthrough {
  padding: 5rem 0;
  background: var(--bg-cream);
  position: relative;
}
.walkthrough__inner {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 1.5rem;
  text-align: center;
}
.walkthrough__header { margin-bottom: 2.5rem; }
.walkthrough__frame {
  position: relative;
  background: var(--white);
  border-radius: 16px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  text-align: left;
}
.walkthrough__chrome {
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: .75rem 1rem;
  background: var(--bg-alt);
  border-bottom: 1px solid var(--border);
}
.walkthrough__dots { display: flex; gap: .35rem; }
.walkthrough__dot {
  width: 12px; height: 12px; border-radius: 50%;
  background: #d9d4cb;
}
.walkthrough__dot:nth-child(1) { background: #ff6b6b; }
.walkthrough__dot:nth-child(2) { background: #ffd93d; }
.walkthrough__dot:nth-child(3) { background: #6bcb77; }
.walkthrough__url {
  flex: 1;
  font-size: .8rem;
  color: var(--text-light);
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: .25rem .75rem;
  text-align: center;
}
.walkthrough__stage {
  position: relative;
  aspect-ratio: 2 / 1;
  background: var(--bg-cream-warm);
  overflow: hidden;
}
.walkthrough__step {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: translateX(20px);
  transition: opacity .35s ease, transform .35s ease;
  pointer-events: none;
}
.walkthrough__step.is-active {
  opacity: 1;
  transform: translateX(0);
  pointer-events: auto;
}
.walkthrough__placeholder {
  width: 100%; height: 100%;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: .5rem;
  background: repeating-linear-gradient(
    45deg,
    var(--bg-cream-warm),
    var(--bg-cream-warm) 12px,
    #ECE2D2 12px,
    #ECE2D2 24px
  );
  color: var(--text-light);
  text-align: center;
  padding: 2rem;
}
.walkthrough__img { width: 100%; height: 100%; object-fit: contain; display: block; }
.walkthrough__placeholder-label {
  font-size: .75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--text-light);
}
.walkthrough__placeholder-title {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--heading);
  max-width: 30ch;
  line-height: 1.3;
}
.walkthrough__placeholder-meta {
  font-size: .85rem;
  color: var(--text-light);
  max-width: 50ch;
}
.walkthrough__screenshot {
  width: 100%; height: 100%; object-fit: cover; object-position: top center;
}
.walkthrough__tooltip {
  position: absolute;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 10px;
  box-shadow: var(--shadow-lg);
  padding: .85rem 1rem;
  max-width: 260px;
  font-size: .85rem;
  line-height: 1.45;
}
.walkthrough__tooltip-title {
  font-weight: 700;
  color: var(--heading);
  margin-bottom: .2rem;
  font-size: .85rem;
}
.walkthrough__tooltip-body {
  color: var(--text-light);
  font-size: .8rem;
}
.walkthrough__tooltip::before {
  content: "";
  position: absolute;
  width: 12px; height: 12px;
  background: var(--white);
  border: 1px solid var(--border);
  border-right: none;
  border-bottom: none;
  transform: rotate(-45deg);
  top: -7px;
  left: 24px;
}
.walkthrough__controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.25rem;
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
}
.walkthrough__nav {
  display: flex;
  align-items: center;
  gap: .5rem;
}
.walkthrough__nav-btn {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--white);
  border: 1px solid var(--border);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text);
  transition: all .2s ease;
}
.walkthrough__nav-btn:hover {
  background: var(--primary);
  color: var(--white);
  border-color: var(--primary);
}
.walkthrough__nav-btn:disabled {
  opacity: .35;
  cursor: not-allowed;
}
.walkthrough__dots-row {
  display: flex;
  gap: .35rem;
}
.walkthrough__dot-btn {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--border);
  transition: all .2s ease;
}
.walkthrough__dot-btn.is-active {
  background: var(--primary);
  width: 24px;
  border-radius: 4px;
}
.walkthrough__progress {
  height: 3px;
  background: var(--border);
  position: relative;
  overflow: hidden;
}
.walkthrough__progress-fill {
  position: absolute;
  inset: 0 auto 0 0;
  width: 0%;
  background: var(--red);
  transition: width .35s linear;
}
.walkthrough__step-label {
  font-size: .8rem;
  color: var(--text-light);
  font-weight: 600;
}

/* Mobile walkthrough: tooltips stack below frame */
@media (max-width: 720px) {
  .walkthrough__tooltip {
    position: static;
    max-width: none;
    margin-top: .5rem;
  }
  .walkthrough__tooltip::before { display: none; }
  .walkthrough__step.is-active {
    position: relative;
  }
}

/* ============================================================
   TABBED FEATURE SECTION (Dext-style "every step of the way")
   ============================================================ */
.feature-tabs { padding: 5rem 0; background: var(--bg); }
.feature-tabs__header { text-align: center; margin-bottom: 2.5rem; }
.feature-tabs__nav {
  display: flex;
  justify-content: center;
  gap: .5rem;
  flex-wrap: wrap;
  margin-bottom: 3rem;
}
.feature-tabs__btn {
  padding: .55rem 1.25rem;
  border-radius: 999px;
  font-size: .85rem;
  font-weight: 600;
  color: var(--text-light);
  border: 1.5px solid var(--border);
  background: var(--white);
  transition: all .2s ease;
}
.feature-tabs__btn:hover { color: var(--heading); border-color: var(--primary); }
.feature-tabs__btn.is-active {
  background: var(--primary);
  color: var(--white);
  border-color: var(--primary);
}
.feature-tabs__panel { display: none; }
.feature-tabs__panel.is-active { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }
.feature-tabs__panel-text h3 { font-family: var(--font-display); font-size: 1.8rem; font-weight: 700; color: var(--heading); margin-bottom: 1rem; line-height: 1.2; }
.feature-tabs__panel-text p { color: var(--text-light); line-height: 1.7; margin-bottom: 1rem; }
.feature-tabs__panel-text ul { display: flex; flex-direction: column; gap: .6rem; margin-top: .5rem; }
.feature-tabs__panel-text ul li { display: flex; align-items: flex-start; gap: .6rem; font-size: .95rem; color: var(--text); }
.feature-tabs__panel-text ul li::before { content: ""; display: block; width: 18px; height: 18px; min-width: 18px; background: url("data:image/svg+xml,%3Csvg viewBox='0 0 20 20' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='10' cy='10' r='10' fill='rgba(202,27,62,.1)'/%3E%3Cpath d='M6 10l3 3 5-5' stroke='%23ca1b3e' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/contain no-repeat; margin-top: 2px; }
.feature-tabs__panel-visual { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); }
.feature-tabs__panel-placeholder { aspect-ratio: 4/3; background: repeating-linear-gradient(45deg, var(--bg-alt), var(--bg-alt) 10px, var(--border) 10px, var(--border) 20px); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .5rem; text-align: center; padding: 2rem; }
.feature-tabs__panel-img { width: 100%; height: auto; display: block; }
@media (max-width: 768px) {
  .feature-tabs__panel.is-active { grid-template-columns: 1fr; }
}

/* Dark variant — used on homepage features section */
.feature-tabs-section--dark {
  background: #152844;
  position: relative;
  overflow: hidden;
}
.feature-tabs-section--dark::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 55% 60% at 85% 55%, rgba(202,27,62,.14) 0%, transparent 65%);
  pointer-events: none;
}
/* Force all children transparent so the section bg shows */
.feature-tabs-section--dark .feature-tabs,
.feature-tabs-section--dark .feature-tabs__panel { background: transparent !important; }

/* Section headings */
.feature-tabs-section--dark .section-eyebrow { color: rgba(255,255,255,.5); }
.feature-tabs-section--dark .section-title   { color: var(--white); }

/* Tab nav buttons */
.feature-tabs-section--dark .feature-tabs__nav {
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 999px;
  padding: .3rem;
  display: inline-flex;
  justify-content: center;
  width: auto;
  margin: 0 auto 3rem;
}
.feature-tabs-section--dark .feature-tabs__btn {
  background: transparent;
  border: none;
  color: rgba(255,255,255,.55);
  padding: .5rem 1.25rem;
}
.feature-tabs-section--dark .feature-tabs__btn:hover {
  background: rgba(255,255,255,.08);
  color: var(--white);
}
.feature-tabs-section--dark .feature-tabs__btn.is-active {
  background: var(--red);
  border: none;
  color: var(--white);
}

/* Panel layout — glass card */
.feature-tabs-section--dark .feature-tabs__panel.is-active {
  background: rgba(255,255,255,.04) !important;
  border: 1px solid rgba(255,255,255,.09);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  gap: 3rem;
}

/* Panel text */
.feature-tabs-section--dark .feature-tabs__panel-text h3 {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 1rem;
  line-height: 1.2;
}
.feature-tabs-section--dark .feature-tabs__panel-text p  { color: rgba(255,255,255,.62); }
.feature-tabs-section--dark .feature-tabs__panel-text ul li { color: rgba(255,255,255,.8); }
.feature-tabs-section--dark .feature-tabs__panel-text ul li::before {
  background: url("data:image/svg+xml,%3Csvg viewBox='0 0 20 20' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='10' cy='10' r='10' fill='rgba(202,27,62,.35)'/%3E%3Cpath d='M6 10l3 3 5-5' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/contain no-repeat;
}

/* Panel visual / placeholder */
.feature-tabs-section--dark .feature-tabs__panel-visual {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 8px 40px rgba(0,0,0,.4);
}
.feature-tabs-section--dark .feature-tabs__panel-placeholder {
  background: rgba(255,255,255,.05) !important;
  background-image: none !important;
  border: 1px dashed rgba(255,255,255,.15) !important;
}
.feature-tabs-section--dark .walkthrough__placeholder-label { color: rgba(255,255,255,.3); }
.feature-tabs-section--dark .walkthrough__placeholder-title { color: rgba(255,255,255,.65); }

/* Footer button */
.feature-tabs-section--dark .btn--outline {
  border-color: rgba(255,255,255,.22);
  color: rgba(255,255,255,.75);
}
.feature-tabs-section--dark .btn--outline:hover {
  border-color: rgba(255,255,255,.45);
  color: var(--white);
  background: rgba(255,255,255,.06);
}

/* ============================================================
   PLACEHOLDER UTILITY (for any unspecified asset)
   ============================================================ */
.placeholder-asset {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: .35rem;
  text-align: center;
  background: repeating-linear-gradient(
    45deg,
    #efeae2,
    #efeae2 10px,
    #e3dccc 10px,
    #e3dccc 20px
  );
  border: 1px dashed var(--border);
  color: var(--text-light);
  padding: 1.5rem;
  border-radius: var(--radius);
  font-size: .8rem;
}
.placeholder-asset__label {
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  font-size: .7rem;
  color: var(--primary);
}
