/* ==========================================================================
   Landing page specific styles
   ========================================================================== */

/* ---------------------------------- Navbar ---------------------------------- */
.navbar-sg {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1040;
  padding: var(--space-4) 0;
  /* not `all`: animating `top` made the header slide whenever the ribbon height was set */
  transition: padding var(--dur-base) var(--ease-out), box-shadow var(--dur-base) var(--ease-out), background-color var(--dur-base) var(--ease-out);
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border-subtle);
}
.navbar-sg.scrolled {
  padding: var(--space-3) 0;
  box-shadow: var(--shadow-sm);
}
.navbar-sg .nav-inner { display: flex; align-items: center; justify-content: space-between; gap: var(--space-6); }
.brand-mark { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: var(--fs-lg); letter-spacing: -0.02em; }
.brand-mark .brand-badge {
  width: 38px; height: 38px; border-radius: 11px; background: var(--gradient-brand);
  display: flex; align-items: center; justify-content: center; color: #fff; font-size: 1.15rem;
  box-shadow: var(--shadow-brand);
}
.nav-links-sg { display: flex; align-items: center; gap: var(--space-2); list-style: none; margin: 0; padding: 0; }
/* Main-nav items are position:static so their full-width menus anchor to the fixed
   header itself; utility items stay relative for their small right-aligned panels. */
.nav-links-sg > li { position: static; }
.nav-utility > li { position: relative; }
.nav-links-sg a { font-size: var(--fs-sm); font-weight: 600; color: var(--text-secondary); transition: color var(--dur-fast); position: relative; }
.nav-links-sg a:hover { color: var(--text-primary); }
.nav-links-sg .nav-plain-link { display: inline-flex; padding: var(--space-3) var(--space-3); }

/* QuickBooks-style brand lockup: round badge + stacked two-line wordmark */
.brand-mark .brand-badge-round { border-radius: 50%; }
.brand-mark .brand-words { display: flex; flex-direction: column; line-height: 1.05; }
.brand-mark .brand-top { font-size: 9.5px; font-weight: 800; letter-spacing: 0.2em; text-transform: uppercase; color: var(--text-primary); }
.brand-mark .brand-bottom { font-size: 1.08rem; font-weight: 800; letter-spacing: -0.02em; color: var(--text-primary); }

.nav-actions-sg { display: flex; align-items: center; gap: var(--space-3); }

/* Right-side utility group: Customize (theme toggle) + Sales + Sign in, as text items */
.nav-utility { gap: 0; }
.nav-utility .nav-link-trigger { color: var(--text-primary); padding: var(--space-3) var(--space-2); white-space: nowrap; }
.nav-customize {
  display: inline-flex; align-items: center; gap: 8px;
  background: none; border: none; font: inherit; font-size: var(--fs-sm); font-weight: 600;
  color: var(--text-primary); padding: var(--space-2) var(--space-2); border-radius: var(--radius-sm);
  cursor: pointer; transition: background var(--dur-fast); white-space: nowrap;
}
.nav-customize:hover { background: var(--bg-surface-2); }
/* Signed-in avatar badge shown inline in the "Sign in" nav trigger once nav-auth.js
   detects a live session (replaces the button label with the user's name). */
.nav-account-avatar {
  display: inline-flex; align-items: center; justify-content: center;
  width: 22px; height: 22px; border-radius: 50%; background: var(--gradient-brand);
  color: #fff; font-size: 0.65rem; font-weight: 800; flex-shrink: 0; vertical-align: -5px;
}

.nav-customize .customize-icon {
  width: 26px; height: 26px; border-radius: 50%; background: var(--brand-500); color: #fff;
  display: inline-flex; align-items: center; justify-content: center; font-size: 0.75rem; flex-shrink: 0;
}

/* Sales dropdown: hours + support links, QuickBooks-style */
.sales-menu { min-width: 270px; }
.sales-hours { font-size: var(--fs-sm); color: var(--text-primary); margin: 0; padding: 2px var(--space-2) var(--space-2); }
.mm-divider { border: 0; border-top: 1px solid var(--border-subtle); margin: var(--space-2) 0; }
.mm-text-link { display: block; padding: var(--space-2); font-size: var(--fs-sm); font-weight: 600; color: var(--brand-600); border-radius: var(--radius-sm); transition: background var(--dur-fast); }
.mm-text-link:hover { color: var(--brand-700); text-decoration: none; }
[data-theme="dark"] .mm-text-link { color: var(--brand-400); }
.theme-toggle-btn {
  width: 40px; height: 40px; border-radius: var(--radius-md); border: 1px solid var(--border-default);
  background: var(--bg-surface); display: flex; align-items: center; justify-content: center; cursor: pointer;
  color: var(--text-secondary); transition: all var(--dur-fast);
}
.theme-toggle-btn:hover { border-color: var(--brand-400); color: var(--brand-600); transform: rotate(15deg); }

.nav-toggle-btn { display: none; width: 40px; height: 40px; margin-right: -8px; border-radius: var(--radius-md); border: 0; background: transparent; align-items: center; justify-content: center; cursor: pointer; color: var(--text-primary); }
.nav-toggle-btn:hover { background: var(--bg-surface-2); }
.nav-toggle-btn:focus { outline: none; }
.nav-toggle-btn:focus-visible { outline: 2px solid var(--brand-500); outline-offset: 2px; }

/* ---------------------------------- Desktop mega menu ---------------------------------- */
.nav-link-trigger {
  display: inline-flex; align-items: center; gap: 6px;
  background: none; border: none; font: inherit; font-size: var(--fs-sm); font-weight: 600;
  color: var(--text-secondary); cursor: pointer; padding: var(--space-3) var(--space-3);
  transition: color var(--dur-fast);
}
.nav-link-trigger:hover { color: var(--text-primary); }
/* Labels never wrap; on mid-size screens the links sit tighter so the header fits on one
   line (the page margin itself narrows there too — see .container-xl in base.css). */
.nav-link-trigger, .nav-links-sg a { white-space: nowrap; }
@media (min-width: 992px) and (max-width: 1399px) {
  .navbar-sg .nav-inner { gap: var(--space-4); }
  .nav-links-sg .nav-link-trigger, .nav-links-sg .nav-plain-link { padding-inline: var(--space-2); }
}
.nav-link-trigger .chevron { font-size: 0.62rem; transition: transform var(--dur-fast) var(--ease-out); color: var(--text-tertiary); }
.has-dropdown:hover .nav-link-trigger .chevron,
.has-dropdown.open .nav-link-trigger .chevron { transform: rotate(180deg); color: var(--brand-500); }
.has-dropdown.open > .nav-link-trigger,
.has-dropdown:hover > .nav-link-trigger { color: var(--text-primary); }

.megamenu {
  position: absolute; top: 100%; left: 50%; transform: translateX(-50%);
  padding-top: var(--space-4);
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity var(--dur-fast) var(--ease-out), visibility 0s linear var(--dur-fast);
  z-index: 1045;
}
.megamenu.align-right { left: auto; right: 0; transform: none; }
/* Open state is driven by the .open class, which components.js sets from hover
   (with a grace timer that survives the gap between trigger and sheet) and click. */
.has-dropdown.open .megamenu {
  opacity: 1; visibility: visible; pointer-events: auto;
  transition-delay: 0s, 0s;
}
.megamenu-inner {
  background: var(--bg-elevated); border: 1px solid var(--border-subtle); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl); padding: var(--space-5); display: flex; gap: var(--space-6);
}
.megamenu.single .megamenu-inner { flex-direction: column; gap: 2px; min-width: 240px; padding: var(--space-3); }

.mm-col { min-width: 220px; display: flex; flex-direction: column; gap: 2px; }
.mm-col-title { font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-tertiary); font-weight: 700; padding: var(--space-2) var(--space-2) var(--space-1); }
.mm-link { display: flex; gap: var(--space-3); align-items: flex-start; padding: var(--space-2); border-radius: var(--radius-md); transition: background var(--dur-fast); }
.mm-link:hover { background: var(--bg-surface-2); }
.mm-link .mm-icon {
  width: 36px; height: 36px; border-radius: 10px; flex-shrink: 0; font-size: 0.95rem;
  background: var(--brand-50); color: var(--brand-600); display: flex; align-items: center; justify-content: center;
}
[data-theme="dark"] .mm-link .mm-icon { background: rgba(29, 81, 163, 0.14); color: var(--brand-400); }
.mm-link-title { font-weight: 700; font-size: var(--fs-sm); color: var(--text-primary); }
.mm-link-desc { font-size: var(--fs-xs); color: var(--text-tertiary); margin-top: 2px; }
.megamenu.single .mm-link-title { font-size: var(--fs-sm); }

/* ---- Full-width megamenu sheet (QuickBooks-style) ---- */
.megamenu-full { left: 0; right: 0; transform: none; padding-top: 0; }
.megamenu-sheet {
  background: var(--bg-surface-2);
  border-top: 1px solid var(--border-subtle);
  box-shadow: 0 32px 48px -24px rgba(11, 11, 12, 0.25);
}
.mmf-flex { display: flex; gap: var(--space-16); flex-wrap: wrap; padding-top: var(--space-10); padding-bottom: var(--space-12); } /* block only: keep .container-xl side gutters so columns line up with the logo */

/* Quick-links bar along the bottom of each sheet (white band, pipe-separated bold links) */
.mmf-footer { background: var(--bg-surface); border-top: 1px solid var(--border-subtle); padding: var(--space-4) 0; }
.mmf-footer-inner { display: flex; align-items: center; gap: var(--space-5); flex-wrap: wrap; }
.mmf-foot-link { display: inline-flex; align-items: center; gap: 6px; font-size: var(--fs-sm); font-weight: 700; color: var(--text-primary); transition: color var(--dur-fast); }
.mmf-foot-link:hover { color: var(--brand-600); text-decoration: none; }
[data-theme="dark"] .mmf-foot-link:hover { color: var(--brand-400); }
.mmf-foot-link i { font-size: 0.72rem; color: var(--text-tertiary); }
.mmf-sep { width: 1px; height: 16px; background: var(--border-default); flex-shrink: 0; }
.mmf-group { min-width: 180px; }
.mmf-wide { min-width: 380px; }
.mmf-title {
  font-size: var(--fs-base); font-weight: 700; color: var(--brand-600);
  padding-bottom: var(--space-3); border-bottom: 1px solid var(--border-default);
  margin-bottom: var(--space-4);
}
[data-theme="dark"] .mmf-title { color: var(--brand-400); }
.mmf-cols { display: flex; gap: var(--space-12); }
.mmf-link { display: block; padding: 8px 0; font-size: var(--fs-sm); font-weight: 500; color: var(--text-primary); transition: color var(--dur-fast); }
.mmf-link:hover { color: var(--brand-600); text-decoration: none; }
[data-theme="dark"] .mmf-link:hover { color: var(--brand-400); }
.mmf-sub-divider { border: 0; border-top: 1px solid var(--border-default); width: 44px; margin: var(--space-4) 0; }

.mm-promo {
  width: 240px; flex-shrink: 0; background: var(--gradient-brand-soft); border: 1px solid var(--brand-100);
  border-radius: var(--radius-lg); padding: var(--space-5); display: flex; flex-direction: column; gap: var(--space-3);
}
[data-theme="dark"] .mm-promo { border-color: rgba(29, 81, 163, 0.25); }
.mm-promo .mm-promo-icon {
  width: 44px; height: 44px; border-radius: 12px; background: var(--gradient-brand); color: #fff;
  display: flex; align-items: center; justify-content: center; box-shadow: var(--shadow-brand); font-size: 1.1rem;
}
.mm-promo h6 { font-size: var(--fs-sm); font-weight: 800; margin-top: var(--space-1); }
.mm-promo p { font-size: var(--fs-xs); }

/* ---------------------------------- Mobile nav ---------------------------------- */
/* Fixed + hidden at all breakpoints so the panel never disrupts desktop layout/flow;
   only the toggle button that reveals it is breakpoint-gated below. */
.nav-menu-mobile {
  position: fixed; inset: 0; top: 0; background: var(--bg-canvas); z-index: 1050;
  transform: translateY(-100%); opacity: 0; visibility: hidden;
  transition: all var(--dur-base) var(--ease-out); padding: var(--space-6);
  display: flex; flex-direction: column; overflow-y: auto;
}
.nav-menu-mobile.open { transform: translateY(0); opacity: 1; visibility: visible; }

@media (max-width: 991px) {
  .nav-links-sg { display: none; }
  .nav-toggle-btn { display: flex; }

  .mobile-nav-group { margin: var(--space-8) 0 var(--space-4); display: flex; flex-direction: column; }
  .mobile-nav-accordion .acc-item { border: none; border-bottom: 1px solid var(--border-subtle); border-radius: 0; margin-bottom: 0; background: transparent; }
  .mobile-nav-accordion .acc-header { padding: var(--space-4) var(--space-2); font-size: var(--fs-xl); font-weight: 700; }
  .mobile-nav-accordion .acc-body { padding: 0 var(--space-2); }
  .mobile-nav-accordion .acc-item.open .acc-body { padding-bottom: var(--space-3); }
  .mobile-sub-link { display: flex; align-items: center; gap: var(--space-3); padding: var(--space-3) var(--space-2); font-size: var(--fs-base); font-weight: 600; color: var(--text-secondary); }
  .mobile-sub-link i { color: var(--brand-500); font-size: 1.05rem; width: 22px; text-align: center; }
  .mobile-nav-plain { display: flex; align-items: center; padding: var(--space-4) var(--space-2); font-size: var(--fs-xl); font-weight: 700; border-bottom: 1px solid var(--border-subtle); color: var(--text-primary); }
  .mobile-nav-actions { display: flex; flex-direction: column; gap: var(--space-3); margin-top: auto; padding-top: var(--space-6); }
}

/* ---------------------------------- Hero ---------------------------------- */
.hero-sg {
  position: relative;
  padding-top: calc(var(--space-24) + 3rem);
  padding-bottom: var(--space-24);
  background: var(--gradient-hero);
  overflow: hidden;
}
/* Abstract line artwork behind every page header (assets/images/abstract/, generated SVGs —
   crisp at any size, ~40-50 KB). Home gets the sweeping "flow" lines; inner pages get the
   topographic "contour" rings. Replaces the old blurred .bg-blob colour spots. */
.hero-sg::before {
  content: ''; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background: url(../images/abstract/contour.svg) center / cover no-repeat;
}
.hero-sg.hero-home::before { background-image: url(../images/abstract/flow.svg); }
[data-theme="dark"] .hero-sg::before { opacity: .75; }
.hero-sg .bg-blob { display: none; }
@media (max-width: 767.98px) { .hero-sg::before { opacity: .55; } }
/* Inner website pages: the section right after the page header used .pt-0 and sat flush
   against it — give it breathing room. (The home page hero is followed by other strips.) */
.hero-sg + .section.pt-0 { padding-top: var(--space-12) !important; }
@media (max-width: 768px) { .hero-sg + .section.pt-0 { padding-top: var(--space-10) !important; } }
.hero-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: var(--space-12); align-items: center; }
@media (max-width: 991px) { .hero-grid { grid-template-columns: 1fr; text-align: center; } }

.hero-sg h1 { font-size: clamp(2.4rem, 5vw, var(--fs-6xl)); }
.hero-sub { font-size: var(--fs-lg); max-width: 560px; margin-top: var(--space-5); }
@media (max-width: 991px) { .hero-sub { margin-inline: auto; } }

/* ---- Light hero copy block (eyebrow + rotating headline + rating), left-aligned
   inside .hero-grid's first column — spacious white-canvas treatment, brand red used
   only as a sparing accent (badge, one CTA, small icon touches). ---- */
.hero-eyebrow-light {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 18px; border-radius: var(--radius-full);
  background: var(--brand-50); border: 1px solid var(--brand-100);
  color: var(--brand-700); font-size: var(--fs-sm); font-weight: 700;
}
.hero-eyebrow-light i { color: var(--brand-500); }
[data-theme="dark"] .hero-eyebrow-light { background: rgba(29, 81, 163, 0.12); border-color: rgba(29, 81, 163, 0.25); color: var(--brand-300); }

/* Two stacked lines: a single rotating marketing word on top (brand red, the "pop"
   line) and one constant line underneath that never changes. */
.hero-headline-light {
  margin-top: var(--space-6);
  font-weight: 800; line-height: 1.1; letter-spacing: -0.01em;
}
.hero-headline-light .hero-headline-rotator {
  color: var(--brand-500);
  font-size: clamp(2.6rem, 4.6vw, var(--fs-6xl));
}
[data-theme="dark"] .hero-headline-light .hero-headline-rotator { color: var(--brand-400); }
.hero-headline-light .hero-headline-constant {
  display: block; color: var(--text-primary);
  font-size: clamp(1.8rem, 3vw, var(--fs-4xl));
  margin-top: 2px;
}

.hero-rating-light { display: flex; align-items: center; gap: 10px; margin-top: var(--space-6); font-size: var(--fs-sm); font-weight: 600; color: var(--text-tertiary); }
.hero-rating-light .stars { display: inline-flex; gap: 2px; color: var(--warning-500); font-size: 13px; }
@media (max-width: 991px) { .hero-rating-light, .hero-eyebrow-light { justify-content: center; } .hero-rating-light { display: inline-flex; } }

/* ---------------------------------- Hero headline/eyebrow rotator mechanics ----------------------------------
   Shared by every hero skin (currently just the light hero) — a badge + headline that
   cycles through several phrases, sized to the widest/tallest variant so nothing jumps. */

/* Eyebrow badge rotates in sync with the headline; same grid-stack trick so the
   row sizes to the widest badge and never shifts while cycling. */
.hero-eyebrow-rotator { display: grid; justify-items: start; }
@media (max-width: 991px) { .hero-eyebrow-rotator { justify-items: center; justify-content: center; } }
.hero-eyebrow-rotator .he-item {
  grid-area: 1 / 1; opacity: 0; transform: translateY(10px);
  transition: opacity var(--dur-slow) var(--ease-out), transform var(--dur-slow) var(--ease-out);
  pointer-events: none;
}
.hero-eyebrow-rotator .he-item.is-active { opacity: 1; transform: translateY(0); pointer-events: auto; }

/* Badge icons animate only while their badge is the visible one */
.he-item i { display: inline-block; animation-play-state: paused; }
.he-item.is-active i { animation-play-state: running; }
.anim-rotate { animation: heRotate 2.4s linear infinite; }
@keyframes heRotate { to { transform: rotate(360deg); } }

/* Rotating headline: phrases stack in the same grid cell so the h1 sizes to the
   tallest phrase once and never jumps height while cycling. */
.hero-headline-rotator { display: grid; justify-items: start; }
@media (max-width: 991px) { .hero-headline-rotator { justify-items: center; } }
.hero-headline-rotator .hh-phrase {
  grid-area: 1 / 1; opacity: 0; transform: translateY(18px);
  transition: opacity var(--dur-slow) var(--ease-out), transform var(--dur-slow) var(--ease-out);
  pointer-events: none;
}
.hero-headline-rotator .hh-phrase.is-active { opacity: 1; transform: translateY(0); pointer-events: auto; }

/* Home hero word fills with brand red from left to right while its slide plays (QuickBooks
   style) — the fill doubles as the slideshow timer. Duration matches the 5.5s rotation in
   index.html; .is-paused freezes it with the pause button. Padding keeps descenders inside
   the clipped background. */
.hero-home .hero-headline-rotator .hh-phrase {
  color: transparent; -webkit-background-clip: text; background-clip: text;
  background-image: linear-gradient(90deg, var(--brand-500) 0 45.5%, var(--text-primary) 47.5% 100%);
  background-size: 230% 100%; background-position: 100% 0; background-repeat: no-repeat;
  padding-bottom: .12em; margin-bottom: -.12em;
}
[data-theme="dark"] .hero-home .hero-headline-rotator .hh-phrase {
  background-image: linear-gradient(90deg, var(--brand-400) 0 45.5%, var(--text-primary) 47.5% 100%);
}
.hero-home .hero-headline-rotator .hh-phrase.is-active { animation: hhFill 5.5s cubic-bezier(.45, 0, .55, 1) forwards; }
.hero-home .hero-headline-rotator.is-paused .hh-phrase.is-active { animation-play-state: paused; }
@keyframes hhFill { from { background-position: 100% 0; } to { background-position: 0 0; } }
@media (prefers-reduced-motion: reduce) {
  .hero-home .hero-headline-rotator .hh-phrase.is-active { animation: none; background-position: 0 0; }
}

/* ---- Small icon animations, reused wherever a bare bootstrap-icon needs a bit of
   life (e.g. the eyebrow rotator badges) — paused unless inside an active phrase. */
.anim-pulse { animation: hdlPulse 1.8s ease-in-out infinite; }
.anim-bob   { animation: hdlBob 2s ease-in-out infinite; }
.anim-grow  { animation: hdlGrow 2.2s ease-in-out infinite; transform-origin: 50% 100%; }

@keyframes hdlPulse {
  0%, 100% { transform: scale(1); }
  50%      { transform: scale(1.15); filter: drop-shadow(0 0 5px rgba(29, 81, 163, 0.35)); }
}
@keyframes hdlBob {
  0%, 100% { transform: translateY(0); opacity: 1; }
  40%      { transform: translateY(-3px); opacity: 0.75; }
  60%      { transform: translateY(-3px); opacity: 1; }
}
@keyframes hdlGrow {
  0%, 100% { transform: scaleY(1); }
  50%      { transform: scaleY(1.14); }
}

/* ---------------------------------- Offer strip ---------------------------------- */
.offer-strip { background: var(--brand-50); border-block: 1px solid var(--brand-100); }
[data-theme="dark"] .offer-strip { background: rgba(29, 81, 163, 0.10); border-color: rgba(29, 81, 163, 0.22); }
.offer-strip-inner { display: flex; align-items: center; justify-content: center; gap: var(--space-4); flex-wrap: wrap; padding: var(--space-4) 0; text-align: center; }
.offer-badge {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--brand-500); color: #fff;
  font-size: var(--fs-xs); font-weight: 800; letter-spacing: 0.04em; text-transform: uppercase;
  padding: 5px 12px; border-radius: var(--radius-full);
}
.offer-text { font-size: var(--fs-sm); font-weight: 600; color: var(--text-primary); }
.offer-link { display: inline-flex; align-items: center; gap: 6px; font-size: var(--fs-sm); font-weight: 800; color: var(--brand-600); text-decoration: none; }
.offer-link:hover { color: var(--brand-700); text-decoration: underline; }
[data-theme="dark"] .offer-link { color: var(--brand-400); }

/* ---------------------------------- Feature-card learn-more links ---------------------------------- */
.learn-link { display: inline-flex; align-items: center; gap: 6px; margin-top: var(--space-4); font-size: var(--fs-sm); font-weight: 700; color: var(--brand-600); text-decoration: none; transition: gap var(--dur-fast) var(--ease-out), color var(--dur-fast); }
.learn-link:hover { color: var(--brand-700); gap: 9px; }
[data-theme="dark"] .learn-link { color: var(--brand-400); }

/* ---------------------------------- Tabbed platform explorer ---------------------------------- */
.explore-tabs { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; margin-bottom: var(--space-12); }
.explore-tab {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 20px; border-radius: var(--radius-full);
  border: 1px solid var(--border-default); background: transparent;
  font-family: inherit; font-weight: 700; font-size: var(--fs-sm); color: var(--text-secondary);
  cursor: pointer; transition: color var(--dur-fast), border-color var(--dur-fast), background var(--dur-fast);
}
.explore-tab i { color: var(--brand-500); }
.explore-tab:hover { border-color: var(--brand-500); color: var(--text-primary); }
.explore-tab.active { background: var(--ink-900); border-color: var(--ink-900); color: #fff; }
.explore-tab.active i { color: var(--brand-400); }
[data-theme="dark"] .explore-tab.active { background: #fff; border-color: #fff; color: var(--ink-950); }
[data-theme="dark"] .explore-tab.active i { color: var(--brand-500); }
/* .row sets display:flex, which beats the hidden attribute's default — force it */
.explore-panel[hidden] { display: none !important; }

.hero-cta-row { display: flex; gap: var(--space-3); margin-top: var(--space-8); flex-wrap: wrap; }
@media (max-width: 991px) { .hero-cta-row { justify-content: center; } }
.hero-trust-row { display: flex; align-items: center; gap: var(--space-4); margin-top: var(--space-10); }
@media (max-width: 991px) { .hero-trust-row { justify-content: center; } }

.hero-visual { position: relative; height: 400px; }
@media (max-width: 991px) { .hero-visual { height: 340px; margin-top: var(--space-10); } }
@media (max-width: 576px) { .hero-visual { height: 300px; } }

.floating-card {
  position: absolute;
  background: var(--bg-glass);
  backdrop-filter: blur(16px) saturate(160%);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: var(--space-4);
}
.floating-card.fc-1 { top: 0; left: 8%; width: 250px; }
.floating-card.fc-2 { top: 46%; right: 0; width: 230px; }
.floating-card.fc-3 { bottom: 0; left: 14%; width: 260px; }
@media (max-width: 576px) { .floating-card { width: 190px !important; padding: var(--space-3); } }

.fc-header { display: flex; align-items: center; gap: var(--space-2); margin-bottom: var(--space-3); }
.fc-dot { width: 8px; height: 8px; border-radius: 50%; }
.fc-mini-bar { height: 6px; border-radius: var(--radius-full); background: var(--bg-surface-2); overflow: hidden; margin-top: 6px; }
.fc-mini-bar span { display: block; height: 100%; background: var(--gradient-brand); border-radius: var(--radius-full); }

.hero-mockup-main {
  position: absolute; left: 50%; top: 50%; z-index: 1; width: 340px;
  transform: translate(-50%, -50%) rotate(-3deg);
}
/* Four scenes stacked in the same box, cross-fading — only the active one is
   interactive/hit-testable so the invisible ones never block clicks. */
.hero-scene { position: absolute; inset: 0; opacity: 0; transition: opacity var(--dur-slow) var(--ease-out); pointer-events: none; }
.hero-scene.is-active { opacity: 1; pointer-events: auto; }
.hero-mockup-main .stat-card { padding: var(--space-2); }
.floating-card { z-index: 2; }
@media (max-width: 991px) { .hero-mockup-main { width: 280px; } }
@media (max-width: 576px) { .hero-mockup-main { width: 230px; } }

/* ---------------------------------- Decorative background blobs ----------------------------------
   Soft blurred color fields used behind page-header sections for extra depth beyond the flat
   gradient-hero background — purely decorative, aria-hidden, never affects layout (absolute +
   pointer-events:none). */
.bg-blob { position: absolute; border-radius: 50%; filter: blur(70px); pointer-events: none; z-index: 0; opacity: 0.55; }
[data-theme="dark"] .bg-blob { opacity: 0.35; }
.bg-blob-brand { background: radial-gradient(circle, var(--brand-400), transparent 70%); }
.bg-blob-ink { background: radial-gradient(circle, var(--ink-400), transparent 70%); }

/* ---------------------------------- Platform tiles (quick-scan icon row) ---------------------------------- */
.platform-tile {
  display: flex; flex-direction: column; align-items: center; text-align: center; gap: var(--space-3);
  padding: var(--space-5) var(--space-3); border-radius: var(--radius-lg); border: 1px solid transparent;
  transition: all var(--dur-fast);
}
.platform-tile:hover { border-color: var(--border-default); background: var(--bg-surface); box-shadow: var(--shadow-sm); transform: translateY(-3px); }
.platform-tile .pt-icon {
  width: 56px; height: 56px; border-radius: var(--radius-lg); display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem; background: var(--gradient-brand-soft); color: var(--brand-600); border: 1px solid var(--brand-100);
}
[data-theme="dark"] .platform-tile .pt-icon { color: var(--brand-400); border-color: rgba(29, 81, 163, 0.25); }
.platform-tile .pt-label { font-size: var(--fs-sm); font-weight: 700; color: var(--text-primary); }

/* ---------------------------------- Feature spotlight rows (alternating image/text) ---------------------------------- */
.spotlight-row:not(:last-child) { margin-bottom: var(--space-20); }
.spotlight-check-list { display: flex; flex-direction: column; gap: var(--space-3); margin-top: var(--space-5); }
.spotlight-check-list .scl-item { display: flex; gap: var(--space-3); align-items: flex-start; }
.spotlight-check-list .scl-item i { color: var(--brand-500); font-size: 1.1rem; margin-top: 2px; }
[data-theme="dark"] .spotlight-check-list .scl-item i { color: var(--brand-400); }

/* Mini bar-chart graphic used inside a mockup card */
.mini-chart { display: flex; align-items: flex-end; gap: 10px; height: 140px; padding: var(--space-2) var(--space-2) 0; }
.mini-chart span { flex: 1; background: var(--gradient-brand); border-radius: 6px 6px 0 0; opacity: 0.9; }
.mini-chart span:last-child { background: var(--ink-950); opacity: 1; }
[data-theme="dark"] .mini-chart span:last-child { background: var(--ink-25); }

/* Mini safety-alert list graphic used inside a mockup card */
.mini-alert-list { display: flex; flex-direction: column; gap: var(--space-3); }
.mini-alert-row { display: flex; align-items: center; gap: var(--space-3); padding: var(--space-3); border-radius: var(--radius-md); background: var(--bg-surface-2); }
.mini-alert-row .mar-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.mini-alert-row .mar-text { flex: 1; height: 8px; border-radius: var(--radius-full); background: var(--border-default); }
.mini-alert-row .mar-text.short { max-width: 60%; }

/* ---------------------------------- Stats strip ---------------------------------- */
.stats-strip { border-top: 1px solid var(--border-subtle); border-bottom: 1px solid var(--border-subtle); background: var(--bg-surface); }
.stat-block { text-align: center; padding: var(--space-10) var(--space-4); }
.stat-block .num { font-size: var(--fs-4xl); font-weight: 800; letter-spacing: -0.02em; }
.stat-block .lbl { font-size: var(--fs-sm); color: var(--text-secondary); font-weight: 600; margin-top: 4px; }

/* ---------------------------------- Trusted-by ---------------------------------- */
.trusted-strip { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: var(--space-10); opacity: 0.75; }
.trusted-strip .logo-chip { display: flex; align-items: center; gap: 8px; font-weight: 800; font-size: var(--fs-lg); color: var(--text-tertiary); filter: grayscale(1); transition: all var(--dur-fast); }
.trusted-strip .logo-chip:hover { filter: none; opacity: 1; color: var(--text-primary); }

/* ---------------------------------- Features grid ---------------------------------- */
.feature-card { padding: var(--space-6); height: 100%; }
.feature-card .f-icon {
  width: 52px; height: 52px; border-radius: var(--radius-md); display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem; background: var(--gradient-brand-soft); color: var(--brand-600); margin-bottom: var(--space-5);
  border: 1px solid var(--brand-100);
}
[data-theme="dark"] .feature-card .f-icon { color: var(--brand-400); border-color: rgba(29, 81, 163,0.25); }

/* ---------------------------------- How it works ---------------------------------- */
.how-step { display: flex; gap: var(--space-5); position: relative; padding-bottom: var(--space-10); }
.how-step:last-child { padding-bottom: 0; }
.how-step::before {
  content: ''; position: absolute; left: 23px; top: 52px; bottom: 0; width: 2px;
  background: linear-gradient(var(--border-default), transparent);
}
.how-step:last-child::before { display: none; }
.how-num {
  width: 48px; height: 48px; border-radius: 50%; background: var(--gradient-brand); color: #fff; font-weight: 800;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0; box-shadow: var(--shadow-brand);
}

/* ---------------------------------- Platform mockup ---------------------------------- */
.platform-mockup { border-radius: var(--radius-xl); border: 1px solid var(--border-subtle); box-shadow: var(--shadow-xl); overflow: hidden; background: var(--bg-surface); }
.mockup-topbar { display: flex; align-items: center; gap: 6px; padding: var(--space-3) var(--space-4); border-bottom: 1px solid var(--border-subtle); background: var(--bg-surface-2); }
.mockup-dot { width: 10px; height: 10px; border-radius: 50%; }

/* ---------------------------------- Security section ---------------------------------- */
.security-panel { background: var(--gradient-brand); border-radius: var(--radius-2xl); padding: var(--space-16); color: #fff; position: relative; overflow: hidden; }
.security-panel::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: url(../images/abstract/mesh.svg) center / cover no-repeat;
}
.security-item { display: flex; gap: var(--space-4); align-items: flex-start; position: relative; z-index: 1; }
.security-item .sec-icon { width: 44px; height: 44px; border-radius: var(--radius-md); background: rgba(255,255,255,0.15); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }

/* ---------------------------------- Testimonials ---------------------------------- */
.testimonial-card { padding: var(--space-8); height: 100%; display: flex; flex-direction: column; gap: var(--space-5); }
.testimonial-stars { color: var(--warning-500); letter-spacing: 2px; }
.testimonial-person { display: flex; align-items: center; gap: var(--space-3); margin-top: auto; }

/* ---------------------------------- Pricing ---------------------------------- */
.pricing-toggle-wrap { display: inline-flex; align-items: center; gap: var(--space-3); background: var(--bg-surface-2); padding: 6px; border-radius: var(--radius-full); border: 1px solid var(--border-subtle); }
.pricing-toggle-btn { padding: 8px 20px; border-radius: var(--radius-full); font-size: var(--fs-sm); font-weight: 700; cursor: pointer; color: var(--text-secondary); transition: all var(--dur-fast); }
.pricing-toggle-btn.active { background: var(--bg-surface); color: var(--brand-600); box-shadow: var(--shadow-sm); }
.price-amount { font-size: var(--fs-5xl); font-weight: 800; letter-spacing: -0.03em; }
.price-list { list-style: none; padding: 0; margin: var(--space-6) 0; display: flex; flex-direction: column; gap: var(--space-3); }
.price-list li { display: flex; align-items: flex-start; gap: 10px; font-size: var(--fs-sm); color: var(--text-secondary); }
.price-list li i { color: var(--success-500); margin-top: 3px; }

/* ---------------------------------- Pricing v2 (step indicator, switch-style toggle, richer cards) ---------------------------------- */
.pricing-steps { display: flex; align-items: center; justify-content: center; gap: var(--space-3); margin-top: var(--space-6); }
.pricing-step { display: flex; align-items: center; gap: var(--space-2); }
.pricing-step .step-circle {
  width: 26px; height: 26px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-size: var(--fs-xs); font-weight: 800; border: 1.5px solid var(--border-strong); color: var(--text-tertiary); flex-shrink: 0;
}
.pricing-step.active .step-circle { background: var(--ink-950); border-color: var(--ink-950); color: #fff; }
[data-theme="dark"] .pricing-step.active .step-circle { background: #fff; border-color: #fff; color: var(--ink-950); }
.pricing-step .step-label { font-size: var(--fs-sm); font-weight: 700; color: var(--text-tertiary); }
.pricing-step.active .step-label { color: var(--text-primary); }
.pricing-step-connector { width: 56px; height: 1px; background: var(--border-default); }

.pricing-switch-row { display: flex; align-items: center; justify-content: center; gap: var(--space-3); margin-top: var(--space-8); flex-wrap: wrap; }
.pricing-switch-row .psw-label { font-size: var(--fs-sm); font-weight: 700; color: var(--text-tertiary); transition: color var(--dur-fast); }
.pricing-switch-row .psw-label.active { color: var(--text-primary); }
.pricing-currency-note { display: flex; align-items: center; justify-content: center; gap: 6px; margin-top: var(--space-3); font-size: var(--fs-xs); color: var(--text-tertiary); }

.pricing-card-v2 { position: relative; overflow: visible; }
.pricing-card-v2.pc-featured { border-color: var(--brand-500); box-shadow: var(--shadow-lg); }
/* .pc-featured and .card-lift:hover have equal specificity and both set `transform`, and this
   file loads after components.css, so without an explicit :hover variant here the static lift
   below would silently win over (not add to) the shared hover-lift effect on this card. */
@media (min-width: 992px) {
  .pricing-card-v2.pc-featured { transform: translateY(-16px); }
  .pricing-card-v2.pc-featured:hover { transform: translateY(-22px); box-shadow: var(--shadow-xl); }
}
.pc-badge-best {
  position: absolute; top: 0; left: 50%; transform: translateX(-50%); background: var(--ink-950); color: #fff;
  font-size: 10px; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; padding: 6px 18px; border-radius: 0 0 var(--radius-md) var(--radius-md);
}
[data-theme="dark"] .pc-badge-best { background: #fff; color: var(--ink-950); }
.pc-desc { min-height: 40px; }
.pc-price-strike { font-size: var(--fs-sm); color: var(--text-tertiary); text-decoration: line-through; }
.pc-price-amount { font-size: var(--fs-3xl); font-weight: 800; letter-spacing: -0.02em; }
.pc-save-note { font-size: var(--fs-xs); color: var(--success-500); font-weight: 700; margin-top: 4px; }
.pc-seats { font-size: var(--fs-xs); color: var(--text-tertiary); margin-top: var(--space-3); padding-top: var(--space-3); border-top: 1px solid var(--border-subtle); }
.pc-includes-label { font-size: var(--fs-xs); font-weight: 800; text-transform: uppercase; letter-spacing: 0.04em; color: var(--text-tertiary); margin-top: var(--space-5); margin-bottom: var(--space-3); }
.pc-feature-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.pc-feature-list li { display: flex; align-items: flex-start; gap: 8px; font-size: var(--fs-sm); color: var(--text-secondary); }
.pc-feature-list li i { color: var(--brand-500); margin-top: 3px; flex-shrink: 0; }
[data-theme="dark"] .pc-feature-list li i { color: var(--brand-400); }
.pc-beta-tag { font-size: 9px; font-weight: 800; background: var(--brand-50); color: var(--brand-600); padding: 1px 6px; border-radius: var(--radius-full); margin-left: 4px; vertical-align: middle; }
[data-theme="dark"] .pc-beta-tag { background: rgba(29, 81, 163, 0.15); color: var(--brand-400); }
.pc-divider { border: none; border-top: 1px solid var(--border-subtle); margin: var(--space-4) 0; }

/* ---------------------------------- Partners ---------------------------------- */
.partner-tile { border: 1px solid var(--border-subtle); border-radius: var(--radius-lg); padding: var(--space-6); display: flex; align-items: center; justify-content: center; height: 100px; font-weight: 800; color: var(--text-tertiary); background: var(--bg-surface); transition: all var(--dur-fast); }
.partner-tile:hover { border-color: var(--brand-300); color: var(--brand-600); transform: translateY(-3px); }

/* ---------------------------------- Newsletter / CTA ---------------------------------- */
.cta-panel { background: var(--ink-950); border-radius: var(--radius-2xl); padding: var(--space-16); text-align: center; color: #fff; position: relative; overflow: hidden; }
.cta-panel::before { content: ''; position: absolute; inset: 0; pointer-events: none; background: url(../images/abstract/orbit.svg) center / cover no-repeat, radial-gradient(circle at 50% 0%, rgba(29, 81, 163,0.35), transparent 60%); }
[data-theme="dark"] .cta-panel { background: #050506; border: 1px solid var(--border-subtle); }

/* ---------------------------------- Footer ----------------------------------
   Intentionally always-dark regardless of the site theme toggle (same treatment
   as .cta-panel / .security-panel) — a fixed dark footer is the deliberate look
   here, not a themed surface. */
.footer-sg { background: var(--ink-950); color: rgba(255, 255, 255, 0.68); }
[data-theme="dark"] .footer-sg { background: #050506; border-top: 1px solid var(--border-subtle); }

.footer-top { padding-block: var(--space-16); }

.footer-col-accent a { color: var(--brand-400); font-weight: 600; }
.footer-col-accent a:hover { color: var(--brand-300); text-decoration: underline; }

.footer-col h6 { font-size: var(--fs-sm); font-weight: 800; color: #fff; margin-bottom: var(--space-4); }
.footer-col a { display: block; font-size: var(--fs-sm); color: rgba(255, 255, 255, 0.6); padding: 6px 0; transition: color var(--dur-fast); }
.footer-col a:hover { color: #fff; }

.footer-bottom-wrap { padding-block: var(--space-10); }
.footer-bottom-top { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: var(--space-4); padding-bottom: var(--space-8); }
.footer-sitemap { font-size: var(--fs-sm); font-weight: 600; color: rgba(255, 255, 255, 0.7); }
.footer-sitemap:hover { color: #fff; }

.social-chip { width: 38px; height: 38px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, 0.2); display: flex; align-items: center; justify-content: center; color: rgba(255, 255, 255, 0.8); transition: all var(--dur-fast); }
.social-chip:hover { background: var(--brand-500); color: #fff; border-color: transparent; transform: translateY(-3px); }

.footer-brand-row { padding-block: var(--space-6); border-top: 1px solid rgba(255, 255, 255, 0.1); display: flex; align-items: center; gap: var(--space-4); flex-wrap: wrap; }
.footer-brand-row .brand-mark { font-size: var(--fs-xl); font-weight: 800; color: #fff; }
.footer-brand-row .footer-tagline { font-size: var(--fs-xs); color: rgba(255, 255, 255, 0.5); border-left: 1px solid rgba(255, 255, 255, 0.2); padding-left: var(--space-4); }

.footer-legal-row { display: flex; justify-content: space-between; gap: var(--space-8); flex-wrap: wrap; padding-top: var(--space-6); border-top: 1px solid rgba(255, 255, 255, 0.1); }
.footer-legal-text { max-width: 640px; }
.footer-legal-text p { font-size: var(--fs-xs); color: rgba(255, 255, 255, 0.45); margin-bottom: var(--space-2); line-height: 1.6; }
.footer-legal-text a { color: rgba(255, 255, 255, 0.75); }
.footer-legal-text a:hover { color: #fff; }

.footer-legal-links { display: flex; flex-direction: column; align-items: flex-end; gap: var(--space-3); flex-shrink: 0; }
.footer-legal-links .legal-links-row { font-size: var(--fs-xs); color: rgba(255, 255, 255, 0.4); display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.footer-legal-links .legal-links-row a { color: rgba(255, 255, 255, 0.7); }
.footer-legal-links .legal-links-row a:hover { color: #fff; }

/* PDPO registration logo — white chip so the gray/green logo reads on the dark footer,
   with the compliance caption beside it (same text style as the old trust badge) */
.pdpo-badge { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
a.pdpo-badge .pdpo-chip { transition: transform var(--dur-fast) var(--ease-out), box-shadow var(--dur-fast); }
a.pdpo-badge:hover .pdpo-chip { transform: translateY(-2px); box-shadow: 0 6px 18px rgba(163, 198, 38, 0.35); }
a.pdpo-badge:hover .tb-text strong { text-decoration: underline; }
.pdpo-badge .pdpo-chip { display: inline-flex; align-items: center; gap: 9px; background: #fff; border-radius: var(--radius-sm); padding: 6px 10px; }
.pdpo-badge .pdpo-mark { display: block; height: 40px; width: auto; }
.pdpo-words {
  display: flex; flex-direction: column; line-height: 1.12;
  font-size: 10.5px; letter-spacing: 0.2px;
  padding-left: 9px; border-left: 1.5px solid #c9cacc;
}
.pdpo-words .w-gray { color: #58595b; font-weight: 700; }
.pdpo-words .w-green { color: #a3c626; font-weight: 800; }
.pdpo-badge .tb-text { line-height: 1.25; }
.pdpo-badge .tb-text strong { display: block; font-size: var(--fs-xs); color: #fff; }
.pdpo-badge .tb-text span { display: block; font-size: 10px; color: rgba(255, 255, 255, 0.5); }

.trust-badge { display: flex; align-items: center; gap: 8px; border: 1px solid rgba(255, 255, 255, 0.2); border-radius: var(--radius-md); padding: 8px 12px; }
.trust-badge i { color: var(--success-500); font-size: 1.1rem; }
.trust-badge .tb-text { line-height: 1.25; }
.trust-badge .tb-text strong { display: block; font-size: var(--fs-xs); color: #fff; }
.trust-badge .tb-text span { display: block; font-size: 10px; color: rgba(255, 255, 255, 0.5); }

@media (max-width: 767px) {
  .footer-legal-row { flex-direction: column; }
  .footer-legal-links { align-items: flex-start; }
  .footer-legal-links .legal-links-row { justify-content: flex-start; }
}

/* ---------------------------------- Footer mobile accordion ----------------------------------
   Below md (768px) each column collapses into a tap-to-expand row (chevron flips 180°, like a
   typical mobile site footer). At md+ the exact same markup renders as the normal grid columns —
   chevron hidden, body forced open — so there's one source of content for both layouts. */
/* Bootstrap's g-5 row gutter (3rem) is meant for side-by-side columns — once these stack to
   col-12 on mobile it becomes a huge vertical gap between rows that are otherwise just a thin
   divider apart, so it's zeroed here and each row's own divider/padding does the spacing. */
.footer-accordion { --bs-gutter-y: 0; }
.footer-accordion .acc-item { border: none; border-radius: 0; margin-bottom: 0; background: transparent; border-bottom: 1px solid rgba(255, 255, 255, 0.12); }
.footer-accordion .acc-item:last-child { border-bottom: none; }
.footer-accordion .acc-header { padding: var(--space-4) 0; }
.footer-accordion .acc-header h6 { margin: 0; }
.footer-accordion .acc-header .acc-icon { color: rgba(255, 255, 255, 0.5); font-size: 0.8rem; transform: rotate(0deg); }
.footer-accordion .acc-item.open .acc-icon { transform: rotate(180deg); }
.footer-accordion .acc-body { padding: 0; }
.footer-accordion .acc-item.open .acc-body { padding-bottom: var(--space-3); }
.footer-accordion .acc-body a { padding: 8px 0; }

@media (min-width: 768px) {
  .footer-accordion .acc-item { border-bottom: none; }
  .footer-accordion .acc-header { cursor: default; padding: 0; }
  .footer-accordion .acc-header .acc-icon { display: none; }
  /* Overrides the inline max-height the accordion JS sets on click — deliberate, since an
     inline style always wins over an external stylesheet rule short of !important. */
  .footer-accordion .acc-body { max-height: none !important; padding: 0 !important; overflow: visible; }
  .footer-accordion .acc-item.open .acc-body { padding-bottom: 0 !important; }
}

/* ---------------------------------- Story photography ----------------------------------
   Real classroom photos (assets/images/photos/, from Wikimedia Commons). CC BY / BY-SA
   photos must keep a visible credit — .photo-credit sits on the image's bottom edge. */
.photo-frame { position: relative; margin: 0; border-radius: var(--radius-2xl); overflow: hidden; box-shadow: var(--shadow-lg); background: var(--bg-surface-2); }
.photo-frame img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease-out); }
.photo-frame:hover img { transform: scale(1.03); }
.photo-credit {
  position: absolute; right: 0; bottom: 0; left: 0; z-index: 2;
  padding: 18px 10px 6px; text-align: right; font-size: 10px; line-height: 1.3; color: rgba(255,255,255,.82);
  background: linear-gradient(transparent, rgba(0,0,0,.55));
}
.photo-credit a { color: inherit; text-decoration: underline; text-decoration-color: rgba(255,255,255,.4); }
.photo-caption { position: absolute; left: 16px; bottom: 26px; z-index: 2; color: #fff; font-weight: 700; font-size: var(--fs-sm); text-shadow: 0 1px 8px rgba(0,0,0,.5); max-width: 80%; }

/* Home — "a day at school" collage + timeline */
.story-collage { display: grid; grid-template-columns: 1.35fr 1fr; grid-template-rows: 1fr 1fr; gap: var(--space-4); height: 520px; position: relative; }
.story-collage .photo-frame:first-child { grid-row: span 2; }
.story-float {
  position: absolute; left: -18px; bottom: 34px; z-index: 3;
  display: flex; align-items: center; gap: var(--space-3); padding: var(--space-3) var(--space-4);
  background: var(--bg-surface); border: 1px solid var(--border-subtle); border-radius: var(--radius-lg); box-shadow: var(--shadow-xl);
  font-size: var(--fs-sm); font-weight: 700;
}
.story-float .sf-icon { width: 38px; height: 38px; border-radius: 10px; display: flex; align-items: center; justify-content: center; background: var(--gradient-brand); color: #fff; }
.story-float small { display: block; font-weight: 500; color: var(--text-tertiary); font-size: var(--fs-xs); }
.story-beats { list-style: none; padding: 0; margin: var(--space-6) 0 0; position: relative; }
.story-beats::before { content: ''; position: absolute; left: 21px; top: 8px; bottom: 8px; width: 2px; background: linear-gradient(var(--brand-500), var(--border-subtle)); }
.story-beats li { position: relative; display: flex; gap: var(--space-4); padding-bottom: var(--space-5); }
.story-beats li:last-child { padding-bottom: 0; }
.story-beats .sb-dot { flex-shrink: 0; width: 44px; height: 44px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: var(--bg-surface); border: 2px solid var(--brand-500); color: var(--brand-600); font-size: 1.1rem; position: relative; z-index: 1; }
.story-beats .sb-time { font-size: var(--fs-xs); font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--brand-500); }
.story-beats h4 { font-size: var(--fs-base); margin: 2px 0 4px; }
.story-beats p { margin: 0; font-size: var(--fs-sm); color: var(--text-secondary); }

/* About — people we build for */
.photo-mosaic { display: grid; grid-template-columns: 1.4fr .8fr 1.2fr; gap: var(--space-4); height: 440px; }
.photo-mosaic .photo-frame:nth-child(2) { margin-top: var(--space-10); }

/* Features / Solutions — full-bleed photo banner with a quote */
.photo-banner { position: relative; border-radius: var(--radius-2xl); overflow: hidden; min-height: 420px; display: flex; align-items: flex-end; box-shadow: var(--shadow-lg); }
.photo-banner > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.photo-banner::after { content: ''; position: absolute; inset: 0; background: linear-gradient(100deg, rgba(10,10,12,.82) 0%, rgba(10,10,12,.45) 50%, rgba(10,10,12,.05) 100%); }
.photo-banner .pb-body { position: relative; z-index: 1; padding: var(--space-12); max-width: 620px; color: #fff; }
.photo-banner .pb-body h2 { color: #fff; }
.photo-banner .pb-body p { color: rgba(255,255,255,.8); }

@media (max-width: 991.98px) {
  .story-collage { height: 420px; }
  .story-float { left: 12px; }
  .photo-mosaic { height: 360px; grid-template-columns: 1.2fr 1fr; }
  .photo-mosaic .photo-frame:nth-child(3) { display: none; }
  .photo-mosaic .photo-frame:nth-child(2) { margin-top: 0; }
}
@media (max-width: 575.98px) {
  .story-collage { height: 340px; grid-template-columns: 1fr 1fr; margin-top: var(--space-6); }
  .story-float { left: 50%; top: -22px; bottom: auto; transform: translateX(-50%); white-space: nowrap; padding: var(--space-2) var(--space-3); }
  .photo-credit { font-size: 9px; padding-top: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .photo-mosaic { height: 280px; }
  .photo-banner { min-height: 360px; }
  .photo-banner .pb-body { padding: var(--space-6); }
  .photo-banner::after { background: linear-gradient(0deg, rgba(10,10,12,.85) 10%, rgba(10,10,12,.3) 100%); }
}

/* Photo cards — a feature-card with a photo on top; its icon becomes a badge overlapping the
   photo's bottom edge. Cards without .has-photo keep the plain icon layout. */
.feature-card.has-photo { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.feature-card.has-photo .card-photo { position: relative; margin: 0; aspect-ratio: 16 / 10; overflow: hidden; background: var(--bg-surface-2); flex-shrink: 0; }
.feature-card.has-photo .card-photo img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .6s var(--ease-out); }
.feature-card.has-photo:hover .card-photo img { transform: scale(1.06); }
.feature-card.has-photo .card-photo .photo-credit { top: 0; bottom: auto; padding: 6px 10px 18px; background: linear-gradient(rgba(0,0,0,.5), transparent); }
.feature-card.has-photo .card-content { position: relative; padding: 0 var(--space-6) var(--space-6); display: flex; flex-direction: column; flex: 1; }
.feature-card.has-photo .f-icon {
  position: relative; z-index: 3; margin: -26px 0 var(--space-4);
  background: var(--bg-surface); box-shadow: var(--shadow-md);
}
.feature-card.has-photo .learn-link { margin-top: auto; padding-top: var(--space-3); }

/* ---------------------------------- Home hero image stack ----------------------------------
   Modelled on QuickBooks' hero: a front photo with the next photos peeking out behind it
   on the right. Each card's slot (data-slot, set by the script in index.html) decides its
   box; top/left/width/height/radius glide between slots, so every tick the whole deck steps
   forward. Slot 3 is the hidden back of the deck. UI cards float over the left edge. */
.hero-deck { height: 540px; }
.hero-deck-stack { position: absolute; inset: 0; }
.hero-deck-card {
  position: absolute; margin: 0; overflow: hidden; background: var(--bg-surface-2);
  box-shadow: 0 24px 50px -20px rgba(31,35,40,.45);
  transition: top 1.4s var(--ease-out), left 1.4s var(--ease-out), width 1.4s var(--ease-out), height 1.4s var(--ease-out),
              border-radius 1.4s var(--ease-out), opacity .7s var(--ease-out);
}
.hero-deck-card img { width: 100%; height: 100%; object-fit: cover; }
.hero-deck-card .photo-credit { opacity: 0; transition: opacity .4s; }
.hero-deck-card[data-slot="0"] { top: 0; left: 6%; width: 82%; height: 92%; border-radius: 32px; z-index: 4; }
.hero-deck-card[data-slot="0"] .photo-credit { opacity: 1; transition-delay: 1s; }
.hero-deck-card[data-slot="1"] { top: 13%; left: 60%; width: 34%; height: 66%; border-radius: 26px; z-index: 3; }
.hero-deck-card[data-slot="2"] { top: 22%; left: 74%; width: 25%; height: 48%; border-radius: 20px; z-index: 2; }
.hero-deck-card[data-slot="3"] { top: 30%; left: 86%; width: 14%; height: 32%; border-radius: 16px; z-index: 1; opacity: 0; }
.hero-deck-card.is-leaving { opacity: 0; z-index: 5; }
.hero-deck-card.no-anim { transition: none; }

.hero-deck-ui { position: absolute; inset: 0; z-index: 6; pointer-events: none; }
.hero-deck-ui .hero-scene { pointer-events: none; }
.hero-ui-card {
  position: absolute; left: 0; padding: var(--space-4) var(--space-5); border-radius: 18px;
  /* gradient border, like QuickBooks' outlined cards — the logo's blue into its red */
  border: 2px solid transparent;
  background: linear-gradient(var(--bg-surface), var(--bg-surface)) padding-box,
              linear-gradient(135deg, var(--brand-500), var(--brand-400) 45%, var(--accent-500)) border-box;
  box-shadow: var(--shadow-xl);
  opacity: 0; transform: translateX(-14px); transition: opacity .6s var(--ease-out), transform .6s var(--ease-out);
}
.hero-scene.is-active .hero-ui-card { opacity: 1; transform: none; }
.hero-scene.is-active .hero-ui-main { transition-delay: .5s; }
.hero-scene.is-active .hero-ui-sub { transition-delay: .8s; }
.hero-ui-main { top: 16%; width: 46%; }
.hero-ui-main .hui-title { display: flex; align-items: center; gap: 8px; font-weight: 800; font-size: var(--fs-base); }
.hero-ui-main .hui-title i { color: var(--brand-500); font-size: 1.2rem; }
.hero-ui-main p { margin: 6px 0 0; font-size: var(--fs-xs); line-height: 1.5; color: var(--text-secondary); }
.hero-ui-sub { top: 56%; width: 40%; padding: var(--space-3) var(--space-4); }
.hero-ui-sub .hui-title-sm { font-weight: 700; font-size: var(--fs-sm); }
.hero-ui-sub small { display: flex; align-items: center; gap: 6px; margin-top: 4px; font-size: var(--fs-xs); color: var(--text-tertiary); }
.hero-deck-pause {
  position: absolute; right: 0; bottom: 2%; z-index: 7; width: 36px; height: 36px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; font-size: 1.1rem;
  background: var(--bg-surface); color: var(--text-primary); border: 1.5px solid var(--border-default); box-shadow: var(--shadow-md);
}
.hero-deck-pause:hover { border-color: var(--brand-500); color: var(--brand-600); }
@media (max-width: 991px) {
  .hero-deck { height: 480px; width: 100%; max-width: 620px; margin-inline: auto; text-align: left; }
}
@media (max-width: 576px) {
  .hero-deck { height: 400px; }
  .hero-deck-card[data-slot="0"] { left: 8%; width: 80%; height: 86%; border-radius: 24px; }
  .hero-deck-card[data-slot="1"] { left: 64%; width: 32%; }
  .hero-ui-main { width: 62%; top: 8%; padding: var(--space-3) var(--space-4); }
  .hero-ui-main p { display: none; }
  .hero-ui-sub { top: auto; bottom: 18%; width: 58%; }
}

/* ---------------------------------- Home hero: QuickBooks-style presentation ----------------------------------
   Plain canvas (no artwork or tint), an oversized two-line headline, squared-off buttons
   and a two-part trust row split by a hairline. Scoped to .hero-home so inner pages keep
   their contour artwork. */
.hero-sg.hero-home { background: var(--bg-surface); padding-bottom: var(--space-20); }
.hero-sg.hero-home::before { display: none; }
.hero-home .hero-headline-light { margin-top: 0; font-weight: 600; letter-spacing: -0.03em; line-height: 1.02; }
.hero-home .hero-headline-light .hero-headline-rotator { font-size: clamp(3rem, 6.2vw, 5.75rem); }
.hero-home .hero-headline-light .hero-headline-constant {
  font-size: clamp(3rem, 6.2vw, 5.75rem); font-weight: 400; letter-spacing: -0.03em; line-height: 1.02; margin-top: 0; /* same size as the rotating word above */
}
.hero-home .hero-sub { font-size: 1.15rem; line-height: 1.55; color: var(--text-primary); max-width: 540px; margin-top: var(--space-6); }
.hero-home .hero-cta-row { margin-top: var(--space-8); gap: var(--space-4); }
.hero-home .hero-cta-row .btn {
  border-radius: 4px; padding: 14px 28px; font-size: 1rem; font-weight: 600; box-shadow: none; min-width: 150px; justify-content: center;
}
.hero-home .hero-cta-row .btn-primary { background: var(--brand-500); border: 2px solid var(--brand-500); }
.hero-home .hero-cta-row .btn-primary:hover { background: var(--brand-600); border-color: var(--brand-600); }
.hero-home .hero-cta-row .btn-outline { background: transparent; border: 2px solid var(--text-primary); color: var(--text-primary); }
.hero-home .hero-cta-row .btn-outline:hover { background: var(--text-primary); color: var(--bg-surface); }
.hero-trust { display: flex; align-items: center; gap: var(--space-6); margin-top: var(--space-10); font-size: var(--fs-sm); line-height: 1.7; color: var(--text-secondary); }
.hero-trust .ht-line { display: block; }
.hero-trust .ht-divider { align-self: stretch; width: 1px; background: var(--border-default); }
.hero-trust .ht-score { color: var(--text-primary); font-weight: 600; }
.hero-trust .stars { display: inline-flex; gap: 2px; margin-left: 4px; color: var(--warning-500); font-size: 15px; vertical-align: -1px; }
@media (max-width: 991px) {
  .hero-home .hero-sub { margin-inline: auto; }
  .hero-trust { justify-content: flex-start; text-align: left; }
}
@media (max-width: 576px) {
  .hero-home .hero-cta-row .btn { flex: 1 1 100%; }
  .hero-trust { gap: var(--space-4); font-size: var(--fs-xs); }
}

/* ---------------------------------- Recommended for schools like yours (bento) ----------------------------------
   Modelled on QuickBooks' "Recommended for businesses like yours": softly tinted cards in a
   2x2 grid of mixed widths — a bold stat card, then cards pairing copy with a photo that
   carries a small floating product snippet. */
.rec-heading { font-size: clamp(1.9rem, 3.4vw, 2.75rem); font-weight: 400; letter-spacing: -0.02em; margin-bottom: var(--space-10); }
.rec-grid {
  display: grid; gap: var(--space-6);
  grid-template-columns: 0.95fr 1.05fr 0.95fr; grid-template-areas: "stat wideA wideA" "wideB wideB narrow";
}
.rec-grid > :nth-child(1) { grid-area: stat; }
.rec-grid > :nth-child(2) { grid-area: wideA; }
.rec-grid > :nth-child(3) { grid-area: wideB; }
.rec-grid > :nth-child(4) { grid-area: narrow; }
.rec-card {
  position: relative; display: flex; gap: var(--space-5); padding: var(--space-6); border-radius: 26px; overflow: hidden;
  min-height: 300px; transition: transform var(--dur-base) var(--ease-out), box-shadow var(--dur-base) var(--ease-out);
}
.rec-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.rec-tint-blue { background: #eaf3f7; }
.rec-tint-sand { background: #f4ede4; }
.rec-tint-rose { background: #f8e9ea; }
.rec-stat { background: #fde4e6; flex-direction: column; justify-content: space-between; }
[data-theme="dark"] .rec-tint-blue { background: #16232a; }
[data-theme="dark"] .rec-tint-sand { background: #26211b; }
[data-theme="dark"] .rec-tint-rose, [data-theme="dark"] .rec-stat { background: #2a1a1c; }
.rec-body { flex: 1 1 52%; display: flex; flex-direction: column; min-width: 0; }
.rec-top { display: flex; align-items: flex-start; justify-content: space-between; gap: var(--space-3); }
.rec-eyebrow { display: flex; align-items: center; gap: 8px; font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--text-secondary); }
.rec-eyebrow i { font-size: 14px; color: var(--text-primary); }
.rec-badge { flex-shrink: 0; padding: 3px 10px; border-radius: 999px; background: var(--ink-950); color: #fff; font-size: 10px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; white-space: nowrap; }
.rec-card h3 { font-size: 1.45rem; font-weight: 500; letter-spacing: -0.01em; margin: var(--space-4) 0 var(--space-3); }
.rec-card p { font-size: var(--fs-sm); color: var(--text-secondary); margin: 0; }
.rec-checks { list-style: none; padding: 0; margin: var(--space-4) 0 0; display: flex; flex-direction: column; gap: 6px; font-size: var(--fs-xs); font-weight: 600; }
.rec-checks i { color: var(--brand-500); margin-right: 4px; }
.rec-stat-text { font-size: 1.6rem !important; line-height: 1.3; color: var(--text-primary) !important; font-weight: 400; margin-top: var(--space-4) !important; }
.rec-stat-text strong { font-weight: 700; color: var(--brand-600); }
.rec-link { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; font-size: var(--fs-sm); color: var(--text-primary); }
.rec-link:hover { color: var(--brand-600); }
.rec-photo { position: relative; flex: 1 1 48%; margin: calc(var(--space-6) * -1) calc(var(--space-6) * -1) calc(var(--space-6) * -1) 0; overflow: hidden; border-radius: 0 26px 26px 0; min-height: 300px; }
.rec-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease-out); }
.rec-card:hover .rec-photo img { transform: scale(1.04); }
.rec-photo .photo-credit { top: 0; bottom: auto; padding: 6px 10px 16px; background: linear-gradient(rgba(0,0,0,.45), transparent); }
.rec-snippet {
  position: absolute; left: 14px; bottom: 16px; z-index: 2; width: min(210px, 80%);
  padding: 10px 12px; border-radius: 12px; background: rgba(255,255,255,.96); color: #1f2328; box-shadow: 0 12px 30px -10px rgba(0,0,0,.4);
  font-size: 11px; display: flex; flex-direction: column; gap: 5px;
}
.rec-snippet .rs-title { font-weight: 800; font-size: 12px; }
.rec-snippet .rs-field { padding: 4px 8px; border: 1px solid #d9dce1; border-radius: 6px; color: #4b5563; }
.rec-snippet .rs-row { display: flex; align-items: center; gap: 6px; color: #4b5563; }
.rec-snippet .rs-ok { color: #067647; font-weight: 700; }
/* The narrow card stacks: copy on top, photo filling the bottom (like QuickBooks' "Automate repetitive tasks"). */
.rec-narrow { flex-direction: column; }
.rec-narrow .rec-body { flex: 0 0 auto; }
.rec-narrow .rec-photo { flex: 1 1 auto; margin: 0 calc(var(--space-6) * -1) calc(var(--space-6) * -1); border-radius: 0 0 26px 26px; min-height: 220px; }
@media (max-width: 991px) {
  .rec-grid { grid-template-columns: 1fr 1fr; grid-template-areas: "stat narrow" "wideA wideA" "wideB wideB"; }
}
@media (max-width: 640px) {
  .rec-grid { grid-template-columns: 1fr; grid-template-areas: "stat" "wideA" "wideB" "narrow"; }
  .rec-wide { flex-direction: column; }
  .rec-wide .rec-photo { margin: 0 calc(var(--space-6) * -1) calc(var(--space-6) * -1); border-radius: 0 0 26px 26px; min-height: 240px; }
  .rec-card { min-height: 0; }
  .rec-top { flex-direction: column; }
}

/* ==========================================================================================
   Home page, QuickBooks-style (body.page-home). White canvas, very large light headings,
   squared buttons, a centred "See plans & pricing" after each block. Footer untouched.
   ========================================================================================== */
.page-home main { background: var(--bg-surface); }
.qb-section { padding-block: clamp(4rem, 8vw, 7rem); }
.qb-h2 { font-size: clamp(2rem, 3.6vw, 3.1rem); font-weight: 400; letter-spacing: -0.02em; line-height: 1.15; margin: 0 0 var(--space-10); }
.qb-h2-xl { font-size: clamp(2.2rem, 4.4vw, 3.9rem); font-weight: 400; letter-spacing: -0.025em; line-height: 1.12; max-width: 980px; margin: 0 auto; }
.qb-lead { font-size: 1.1rem; color: var(--text-secondary); max-width: 620px; margin: calc(var(--space-6) * -1) auto var(--space-6); }
.qb-kicker { font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--text-secondary); margin-bottom: var(--space-3); }
.qb-note { font-size: var(--fs-xs); color: var(--text-tertiary); margin-top: var(--space-3); }
.qb-cta-row { display: flex; justify-content: center; gap: var(--space-4); flex-wrap: wrap; margin-top: var(--space-12); }
.qb-btn { border-radius: 4px !important; padding: 13px 26px; font-size: 1rem; font-weight: 600; box-shadow: none !important; }
.btn-primary.qb-btn { background: var(--brand-500); border: 2px solid var(--brand-500); }
.btn-primary.qb-btn:hover { background: var(--brand-600); border-color: var(--brand-600); }
.qb-btn-outline { background: transparent !important; border: 2px solid var(--text-primary) !important; color: var(--text-primary) !important; }
.qb-btn-outline:hover { background: var(--text-primary) !important; color: var(--bg-surface) !important; }
.qb-btn-sm { padding: 8px 18px; font-size: var(--fs-sm); }
.qb-text-link { color: var(--brand-600); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.qb-text-link:hover { color: var(--brand-700); }
.page-home .rec-section { padding-top: clamp(4rem, 7vw, 6rem); }

/* Offer bar */
.qb-offer { background: var(--ink-950); color: #fff; }
.qb-offer-inner { display: flex; align-items: center; justify-content: center; gap: var(--space-5); padding-block: 14px; flex-wrap: wrap; text-align: center; font-size: 1.05rem; }
.qb-offer strong { color: #ff8a96; }

/* Statement */
.qb-statement-text { font-size: clamp(1.7rem, 3.6vw, 3.2rem); font-weight: 400; letter-spacing: -0.02em; line-height: 1.32; max-width: 1180px; margin: 0; }

/* Day tabs */
.qb-ttabs { display: flex; justify-content: center; gap: clamp(1rem, 4vw, 3.5rem); margin-bottom: var(--space-8); flex-wrap: wrap; }
.qb-ttab { background: none; border: 0; padding: 8px 2px; font-size: 1.05rem; color: var(--text-secondary); border-bottom: 2px solid transparent; }
.qb-ttab.active { color: var(--text-primary); font-weight: 700; border-bottom-color: var(--text-primary); }
.qb-day-panel { display: grid; grid-template-columns: 2.1fr 1fr; gap: var(--space-4); }
.qb-day-panel[hidden] { display: none; }
.qb-day-photo { position: relative; margin: 0; border-radius: 28px; overflow: hidden; min-height: 500px; }
.qb-day-photo > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; animation: qbZoom 9s ease-out both; }
@keyframes qbZoom { from { transform: scale(1.08); } to { transform: scale(1); } }
.qb-day-photo .photo-credit { left: auto; width: 60%; }
.qb-glass {
  position: absolute; left: 12px; top: 12px; bottom: 12px; width: min(400px, 46%); padding: var(--space-8);
  border-radius: 22px; background: rgba(255, 255, 255, .62); backdrop-filter: blur(18px) saturate(1.3); -webkit-backdrop-filter: blur(18px) saturate(1.3);
  display: flex; flex-direction: column; justify-content: center; color: #1f2328;
}
.qb-glass h3 { font-size: 1.75rem; font-weight: 400; letter-spacing: -0.01em; margin: 0; color: #1f2328; }
.qb-progress { height: 4px; border-radius: 4px; background: rgba(31, 35, 40, .12); margin: var(--space-4) 0 var(--space-5); overflow: hidden; }
.qb-progress span { display: block; height: 100%; width: 0; border-radius: 4px; background: linear-gradient(90deg, var(--brand-500), #f59e0b); }
.qb-glass p { font-size: 1.05rem; line-height: 1.6; color: #2b2f36; margin: 0 0 var(--space-5); }
.qb-glass .qb-text-link { color: var(--brand-700); }
.qb-day-side { border-radius: 28px; background: linear-gradient(160deg, #fdf2f3, #f3f6fb); display: flex; align-items: center; justify-content: center; padding: var(--space-6); }
[data-theme="dark"] .qb-day-side { background: linear-gradient(160deg, #24181a, #161b24); }
.qb-side-card { width: 100%; max-width: 320px; background: var(--bg-surface); border-radius: 16px; padding: var(--space-5); box-shadow: var(--shadow-lg); }
.qb-side-title { font-size: 1.15rem; font-weight: 600; margin-bottom: var(--space-4); }
.qb-side-row { display: flex; gap: var(--space-3); align-items: flex-start; padding: var(--space-3); border: 1px solid var(--border-subtle); border-radius: 10px; margin-top: var(--space-2); font-size: var(--fs-sm); }
.qb-side-row:first-of-type { border: 2px solid transparent; background: linear-gradient(var(--bg-surface), var(--bg-surface)) padding-box, linear-gradient(135deg, var(--brand-500), #f59e0b) border-box; }
.qb-side-row i { color: var(--brand-500); font-size: 1.1rem; }
.qb-side-row strong { display: block; font-weight: 600; }
.qb-side-row small { color: var(--text-tertiary); font-size: var(--fs-xs); }

/* Platform: vertical tabs */
.qb-plat { display: grid; grid-template-columns: 240px 1fr; gap: clamp(2rem, 4vw, 3.5rem); }
.qb-vtabs { display: flex; flex-direction: column; }
.qb-vtab { text-align: left; background: none; border: 0; border-bottom: 1px solid var(--border-subtle); border-left: 3px solid transparent; padding: 16px 18px; font-size: 1rem; color: var(--text-secondary); }
.qb-vtab:hover { color: var(--text-primary); }
.qb-vtab.active { border-left-color: var(--brand-500); color: var(--text-primary); font-weight: 700; }
.qb-plat-panel[hidden] { display: none; }
.qb-plat-head { display: grid; grid-template-columns: 1.1fr 1fr; gap: var(--space-8); align-items: start; margin-bottom: var(--space-8); }
.qb-plat-head h3 { font-size: 1.75rem; font-weight: 400; letter-spacing: -0.01em; margin: 0 0 var(--space-4); }
.qb-checks { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: var(--space-3); font-size: 1rem; }
.qb-checks i { color: var(--brand-500); margin-right: 10px; }
.qb-plat-media { display: grid; grid-template-columns: 1.25fr 1fr; gap: var(--space-5); }
.qb-plat-photo { position: relative; margin: 0; border-radius: 24px; overflow: hidden; aspect-ratio: 5 / 4; }
.qb-plat-photo img { width: 100%; height: 100%; object-fit: cover; }
.qb-plat-dark { border-radius: 24px; background: var(--ink-950); color: #fff; display: flex; align-items: flex-end; padding: var(--space-8); background-image: radial-gradient(circle at 80% 10%, rgba(29, 81, 163, .45), transparent 55%); }
.qb-plat-dark p { font-size: clamp(1.3rem, 2vw, 1.75rem); line-height: 1.3; letter-spacing: -0.01em; margin: 0; }

/* Stories */
.qb-stories { display: grid; grid-template-columns: 2.5fr 1fr; gap: var(--space-5); }
.qb-quotes { position: relative; min-height: 460px; border-radius: 28px; overflow: hidden; background: var(--ink-950); }
.qb-quote-slide { position: absolute; inset: 0; margin: 0; opacity: 0; transition: opacity .9s var(--ease-out); }
.qb-quote-slide.is-active { opacity: 1; }
.qb-quote-slide > img { width: 100%; height: 100%; object-fit: cover; }
.qb-quote-slide::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(10, 10, 12, .82), rgba(10, 10, 12, .35) 70%, rgba(10, 10, 12, .1)); }
.qb-quote-slide .photo-credit { z-index: 3; }
.qb-quote-slide blockquote { position: absolute; left: clamp(1.5rem, 4vw, 3rem); bottom: clamp(1.5rem, 4vw, 3rem); right: 30%; z-index: 2; margin: 0; color: #fff; }
.qb-quote-slide blockquote p { font-size: clamp(1.4rem, 2.6vw, 2.3rem); line-height: 1.25; letter-spacing: -0.01em; margin: 0 0 var(--space-5); }
.qb-quote-slide blockquote footer { font-size: var(--fs-sm); color: rgba(255, 255, 255, .85); }
.qb-quote-slide blockquote footer span { display: block; color: rgba(255, 255, 255, .65); }
.qb-stat-tiles { display: grid; grid-template-rows: 1fr 1fr; gap: var(--space-5); }
.qb-stat-tile { border-radius: 24px; background: var(--bg-surface-2); padding: var(--space-8); display: flex; flex-direction: column; justify-content: center; }
.qb-stat-dark { background: #3b0a11; color: #fff; }
.qb-stat-num { font-size: clamp(2.4rem, 3.6vw, 3.2rem); font-weight: 400; letter-spacing: -0.02em; color: var(--text-primary); }
.qb-stat-dark .qb-stat-num { color: #ffd1d6; }
.qb-stat-tile p { margin: var(--space-3) 0 0; font-size: var(--fs-sm); line-height: 1.55; }
.qb-stat-dark p { color: rgba(255, 255, 255, .85); }
.qb-dots { display: flex; justify-content: center; gap: 10px; margin-top: var(--space-6); }
.qb-dot { width: 14px; height: 14px; border-radius: 999px; border: 0; background: var(--border-default); transition: width .3s, background .3s; padding: 0; }
.qb-dot.active { width: 48px; background: var(--text-secondary); }

/* FAQs */
.qb-faq { display: grid; grid-template-columns: 1fr 2fr; gap: var(--space-10); }
.qb-faq-title { font-size: clamp(2.4rem, 4vw, 3.4rem); font-weight: 400; letter-spacing: -0.02em; margin: 0; }
.qb-faq-list .acc-item { border: 0; border-bottom: 1px solid var(--border-default); border-radius: 0; background: transparent; margin: 0; }
.qb-faq-list .acc-item:first-child { border-top: 1px solid var(--border-default); }
.qb-faq-list .acc-header { padding: 22px 0; font-size: 1.02rem; font-weight: 500; }
.qb-faq-list .acc-body { padding: 0; }
.qb-faq-list .acc-item.open .acc-body { padding-bottom: var(--space-5); }
.qb-faq-list .acc-icon { transition: transform .25s; }
.qb-faq-list .acc-item.open .acc-icon { transform: rotate(180deg); }

/* Closing */
.qb-closing { padding-bottom: clamp(5rem, 9vw, 8rem); }

@media (max-width: 991px) {
  .qb-day-panel { grid-template-columns: 1fr; }
  .qb-day-side { display: none; }
  .qb-plat { grid-template-columns: 1fr; }
  .qb-vtabs { flex-direction: row; overflow-x: auto; gap: 0; border-bottom: 1px solid var(--border-subtle); scrollbar-width: none; }
  .qb-vtab { flex-shrink: 0; border: 0; border-bottom: 3px solid transparent; padding: 12px 16px; }
  .qb-vtab.active { border-bottom-color: var(--brand-500); }
  .qb-plat-head { grid-template-columns: 1fr; gap: var(--space-4); }
  .qb-stories { grid-template-columns: 1fr; }
  .qb-stat-tiles { grid-template-columns: 1fr 1fr; grid-template-rows: none; }
  .qb-faq { grid-template-columns: 1fr; gap: var(--space-6); }
}
@media (max-width: 640px) {
  .qb-day-photo { min-height: 0; display: flex; flex-direction: column; }
  .qb-day-photo > img { position: relative; height: 260px; }
  .qb-glass { position: relative; inset: auto; width: auto; margin: -40px 12px 12px; padding: var(--space-6); background: rgba(255, 255, 255, .92); }
  .qb-plat-media { grid-template-columns: 1fr; }
  .qb-plat-dark { min-height: 160px; }
  .qb-quotes { min-height: 420px; }
  .qb-quote-slide blockquote { right: 1.5rem; }
  .qb-stat-tiles { grid-template-columns: 1fr; }
}
/* Paragraph colour overrides — base.css greys every <p>, which these big-type blocks must not inherit. */
.qb-statement-text { color: var(--text-primary); }
.qb-plat-dark p, .qb-quote-slide blockquote p { color: #fff; }
.qb-glass p { color: #2b2f36; }
@media (max-width: 640px) {
  .qb-day-photo .photo-credit { top: 0; bottom: auto; width: 100%; padding: 6px 10px 16px; background: linear-gradient(rgba(0,0,0,.45), transparent); }
}
/* Tighter vertical rhythm between home sections. */
.qb-section { padding-block: clamp(1.75rem, 3vw, 2.5rem); }
.page-home .rec-section { padding-block: clamp(2rem, 3.5vw, 3rem) clamp(1.75rem, 3vw, 2.5rem); }
.qb-h2 { margin-bottom: var(--space-8); }
.qb-cta-row { margin-top: var(--space-8); }
.qb-closing { padding-bottom: clamp(3rem, 5vw, 4.5rem); }
.page-home .rec-heading { margin-bottom: var(--space-8); }
.hero-sg.hero-home { padding-bottom: var(--space-12); }

/* Features: AI Triage example conversation */
.ai-triage-demo { max-width: 460px; margin-inline: auto; padding: var(--space-5); border: 1px solid var(--border-subtle); border-radius: 22px; background: var(--bg-surface); box-shadow: var(--shadow-lg); display: flex; flex-direction: column; gap: 10px; }
.atd-head { display: flex; align-items: center; gap: 10px; padding-bottom: 12px; border-bottom: 1px solid var(--border-subtle); margin-bottom: 4px; }
.atd-head strong { display: block; font-size: var(--fs-sm); }
.atd-head small { color: var(--text-tertiary); font-size: var(--fs-xs); }
.atd-avatar { width: 36px; height: 36px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: var(--gradient-brand); color: #fff; }
.atd-msg { max-width: 85%; padding: 10px 14px; border-radius: 16px; font-size: var(--fs-sm); line-height: 1.45; }
.atd-user { align-self: flex-end; background: var(--brand-500); color: #fff; border-bottom-right-radius: 4px; }
.atd-bot { align-self: flex-start; background: var(--bg-surface-2); color: var(--text-primary); border-bottom-left-radius: 4px; }
.atd-ticket { display: flex; gap: 10px; align-items: center; padding: 12px 14px; border-radius: 14px; border: 1.5px dashed var(--brand-300); background: var(--brand-50); font-size: var(--fs-sm); }
.atd-ticket i { color: var(--brand-600); font-size: 1.2rem; }
.atd-ticket strong { display: block; }
.atd-ticket small { color: var(--text-secondary); font-size: var(--fs-xs); }
[data-theme="dark"] .atd-ticket { background: rgba(29, 81, 163, .1); }
.footer-follow { font-size: var(--fs-sm); font-weight: 600; color: rgba(255, 255, 255, 0.7); }


/* Uploaded platform logo (Console → Branding; assets/js/brand.js) */
.brand-badge.has-logo { background: transparent !important; box-shadow: none !important; padding: 0; overflow: hidden; }
.brand-badge .brand-logo-img { width: 100%; height: 100%; object-fit: contain; display: block; }
.has-wide-logo > :not(.brand-logo-wide) { display: none !important; }
.brand-logo-wide { display: block; height: 36px; width: auto; max-width: 200px; object-fit: contain; }
.footer-brand-row .brand-logo-wide { height: 40px; }
html.sidebar-collapsed .sidebar-brand .has-wide-logo > .brand-badge { display: flex !important; }
html.sidebar-collapsed .sidebar-brand .has-wide-logo > .brand-logo-wide { display: none; }

/* ---------------------------------- Flat website: no shadows ----------------------------------
   The public website and sign-in pages use no shadows at all — not at rest, not on hover.
   Dashboards and the console (body.app-body) keep theirs; so does the website chat's glow. */
body:not(.app-body) :not(.lc-root, .lc-root *),
body:not(.app-body) :not(.lc-root, .lc-root *)::before,
body:not(.app-body) :not(.lc-root, .lc-root *)::after { box-shadow: none !important; }

/* Header layout (QuickBooks-style): the main menu starts a little after the logo instead of
   floating in the middle; the utility links (Talk to Sales, Sign in) stay on the far right. */
@media (min-width: 992px) {
  .navbar-sg .nav-inner { justify-content: flex-start; }
  .navbar-sg .nav-inner > nav { margin-left: clamp(8px, 2.2vw, 40px); margin-right: auto; }
}

/* ---------------------------------- Promo ribbon (above the header) ----------------------------------
   QuickBooks-style offer strip: deep navy, white text, the highlighted part in bold green, a solid
   blue button. Fixed at the very top; the fixed header and the page shift down by its height
   (--ribbon-h, set by assets/js/ribbon.js — 0 when there's no ribbon). */
/* colours come from Console → Packages & Pricing (ribbon.js sets the --rb-* variables) */
.site-ribbon { position: fixed; top: 0; left: 0; right: 0; z-index: 1041; background: var(--rb-bg, #0b1a36); color: var(--rb-text, #fff); }
.site-ribbon[hidden] { display: none; }
.site-ribbon-inner { display: flex; align-items: center; justify-content: center; gap: 40px; padding-block: 16px; flex-wrap: wrap; text-align: center; font-size: 1.07rem; font-weight: 500; letter-spacing: .005em; }
.site-ribbon-text strong { color: var(--rb-highlight, #2fd06e); font-weight: 800; }
.site-ribbon .site-ribbon-btn,
.site-ribbon .site-ribbon-btn.btn-primary { flex-shrink: 0; min-height: 48px; padding: 0 26px; border-radius: 4px; border: 0; background: var(--rb-btn, #ec1c24); color: var(--rb-btn-text, #fff); font-size: .98rem; font-weight: 700; box-shadow: none; transform: none; }
.site-ribbon .site-ribbon-btn:hover { background: var(--rb-btn, #ec1c24); color: var(--rb-btn-text, #fff); filter: brightness(.88); transform: none; }
.site-ribbon-close { display: none; }
.navbar-sg { top: var(--ribbon-h, 0px); }
body { padding-top: var(--ribbon-h, 0px); }
/* Phones: text on the left (wrapping to two lines), button on the right — one row. */
@media (max-width: 767px) {
  .site-ribbon-inner { flex-wrap: nowrap; justify-content: space-between; gap: 16px; padding-block: 14px; text-align: left; font-size: 14px; line-height: 1.4; }
  .site-ribbon .site-ribbon-btn { min-height: 48px; padding: 0 20px; font-size: 1rem; }
  /* "Get 50% OFF" / "SchoolGuardian for 3 months*": a new line after the highlighted part */
  .site-ribbon-rest { display: block; }
}
