/* ============================================
   KareShift — Redesign layer (October 2026)
   Loaded after every other stylesheet, so it wins on equal specificity.
   Dark aurora hero, glass navigation, bento-style cards, framed product
   screenshots, tabbed screenshot gallery and feature explorer.
   ============================================ */

:root {
  /* #4f46e5 reads 6.3:1 on white, so it is safe for text, outlines and white-on-fill buttons.
     The brighter #6366f1 stays in the logo and decorative glows only. */
  --primary:       #4f46e5;
  --primary-dark:  #4338ca;
  --primary-light: #eef0ff;
  --violet:        #8b5cf6;
  --teal:          #14b8a6;
  --ink:           #0b1020;
  --ink-2:         #121a33;
  --dark:          #0b1020;
  --bg-alt:        #f6f7fb;
  --border:        #e4e7f0;
  --grad:          linear-gradient(135deg, #4f46e5 0%, #6d28d9 100%);
  --text-muted:    #586579;
  --text-light:    #5f6e84;
  --focus:         #4f46e5;
  --grad-soft:     linear-gradient(135deg, rgba(99,102,241,.10), rgba(139,92,246,.08));
  --shadow-md:     0 6px 16px -4px rgba(15,23,42,.08), 0 2px 6px -2px rgba(15,23,42,.05);
  --shadow-lg:     0 24px 48px -16px rgba(30,27,75,.18), 0 8px 16px -8px rgba(30,27,75,.08);
  --r:             16px;
  --r-lg:          22px;
}

body { background: #fff; letter-spacing: -0.003em; }

h1, h2, h3, .section-title { letter-spacing: -0.025em; }

/* ── Sections: rhythm instead of a wall of identical blocks ── */
section { padding: 88px 0; }

.section-title {
  font-size: clamp(1.75rem, 3.2vw, 2.5rem);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 14px;
}

.section-sub {
  font-size: 1.125rem;
  line-height: 1.6;
  max-width: 680px;
  margin-bottom: 52px;
}

.why, .pain-points, .how-it-works, .personas, .screenshot-showcase, .compare {
  background:
    radial-gradient(700px 320px at 100% 0%, rgba(99,102,241,.07), transparent 70%),
    var(--bg-alt);
}

/* ── Buttons ── */
.btn { border-radius: 12px; font-weight: 650; letter-spacing: -0.01em; }

.btn-primary {
  background: var(--grad);
  box-shadow: 0 8px 20px -6px rgba(99,102,241,.55), inset 0 1px 0 rgba(255,255,255,.22);
}

.btn-secondary { background: #fff; border-color: var(--border); color: var(--dark); }

@media (hover: hover) {
  .btn-primary:hover {
    background: var(--grad);
    filter: brightness(.92);
    box-shadow: 0 14px 28px -8px rgba(99,102,241,.6), inset 0 1px 0 rgba(255,255,255,.28);
  }
}

/* ── Navigation: glass bar; transparent over the dark hero on desktop ── */
.navbar {
  background: rgba(255,255,255,.78);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid rgba(228,231,240,.7);
}

.navbar.scrolled { background: rgba(255,255,255,.9); }

.nav-links a { font-weight: 550; position: relative; }
.nav-links a.active { color: var(--primary); }

.nav-cta.btn-outline { border-color: var(--border); color: var(--dark); }

@media (min-width: 1025px) {
  body:has(main > .hero) .navbar:not(.scrolled),
  body:has(main > section.hero) .navbar:not(.scrolled) {
    background: transparent;
    border-bottom-color: transparent;
    box-shadow: none;
  }
  body:has(main > .hero) .navbar:not(.scrolled) .logo-text,
  body:has(main > section.hero) .navbar:not(.scrolled) .logo-text { color: #fff; }
  body:has(main > .hero) .navbar:not(.scrolled) .nav-links a,
  body:has(main > section.hero) .navbar:not(.scrolled) .nav-links a { color: rgba(226,232,255,.82); }
  body:has(main > .hero) .navbar:not(.scrolled) .nav-links a.active,
  body:has(main > section.hero) .navbar:not(.scrolled) .nav-links a.active { color: #fff; }
  body:has(main > .hero) .navbar:not(.scrolled) .nav-cta.btn-outline,
  body:has(main > section.hero) .navbar:not(.scrolled) .nav-cta.btn-outline {
    color: #fff;
    border-color: rgba(255,255,255,.3);
    background: rgba(255,255,255,.06);
  }
}

/* ── Hero: dark aurora ── */
.hero {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  padding: 150px 0 110px;
  color: #c7d0e6;
  background:
    radial-gradient(900px 520px at 12% -8%, rgba(99,102,241,.60), transparent 62%),
    radial-gradient(760px 520px at 92% 8%,  rgba(168,85,247,.42), transparent 62%),
    radial-gradient(640px 420px at 55% 112%, rgba(20,184,166,.30), transparent 62%),
    var(--ink);
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 30%, #000 30%, transparent 100%);
  mask-image: radial-gradient(ellipse 80% 70% at 50% 30%, #000 30%, transparent 100%);
}

.hero h1 {
  color: #fff;
  font-size: clamp(2.1rem, 3.8vw, 3.2rem);
  font-weight: 800;
  line-height: 1.07;
  letter-spacing: -0.035em;
}

.hero-content { max-width: 600px; }

.hero-sub { color: #b6c1da; font-size: 1.15rem; }

.hero-note { color: #8c99b8; }

.hero-badge {
  background: rgba(255,255,255,.08);
  color: #dfe4ff;
  border: 1px solid rgba(255,255,255,.16);
  backdrop-filter: blur(6px);
}

.hero .btn-secondary,
.hero .btn-outline {
  background: rgba(255,255,255,.07);
  color: #fff;
  border: 1.5px solid rgba(255,255,255,.26);
}

@media (hover: hover) {
  .hero .btn-secondary:hover,
  .hero .btn-outline:hover { background: rgba(255,255,255,.14); border-color: rgba(255,255,255,.5); color: #fff; }
}

.hero .badge {
  background: rgba(255,255,255,.07);
  border-color: rgba(255,255,255,.14);
  color: #d5dcf3;
  backdrop-filter: blur(6px);
}

.hero .badge svg { color: #a5b4fc; }

.hero-visual { position: relative; }

.hero-visual::before {
  content: '';
  position: absolute;
  inset: 8% 6% -6%;
  z-index: -1;
  background: var(--grad);
  filter: blur(70px);
  opacity: .45;
  border-radius: 50%;
}

.hero-screenshot,
.hero-mockup {
  max-width: 760px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.16);
  box-shadow: 0 50px 90px -24px rgba(0,0,0,.65), 0 0 0 1px rgba(255,255,255,.04);
}

@media (min-width: 1025px) {
  .hero-screenshot { transform: perspective(1800px) rotateY(-7deg) rotateX(2deg); transform-origin: left center; }
}

/* ── Cards: bento feel ── */
.card, .feature-card, .persona-card, .sector-card, .pain-card, .testimonial-card, .roadmap-item {
  border-radius: var(--r);
  border-color: var(--border);
  box-shadow: 0 1px 2px rgba(15,23,42,.04);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}

@media (hover: hover) {
  .card:hover, .feature-card:hover, .persona-card:hover, .sector-card:hover, .pain-card:hover {
    transform: translateY(-3px);
    border-color: rgba(99,102,241,.35);
    box-shadow: var(--shadow-lg);
  }
}

.card-icon {
  background: var(--grad-soft);
  border: 1px solid rgba(99,102,241,.16);
  border-radius: 14px;
}

.pain-card { border-left-width: 1px; border-top: 3px solid #f59e0b; }

/* ── Feature blocks: roomier text, framed screenshot ── */
.feature-block, .feature-card {
  padding-top: 44px;
  padding-bottom: 44px;
  gap: 56px;
}

.feature-tag {
  background: var(--grad-soft);
  border: 1px solid rgba(99,102,241,.2);
  color: var(--primary-dark);
  letter-spacing: .04em;
  text-transform: uppercase;
  font-size: .72rem;
  font-weight: 700;
}

.feature-block h3 { font-size: 1.65rem; letter-spacing: -0.025em; color: var(--dark); }

.feature-list li::marker { color: var(--primary); }

/* Browser-window frame around product screenshots */
.feature-block-visual, .feature-visual { position: relative; }

.feature-block-visual::before,
.feature-visual::before {
  content: '';
  position: absolute;
  inset: 6% -4% -4% 6%;
  z-index: 0;
  background: var(--grad);
  opacity: .12;
  filter: blur(36px);
  border-radius: 28px;
}

.feature-screenshot {
  position: relative;
  z-index: 1;
  max-width: 100%;
  border-radius: 14px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
}

/* ── Pricing ── */
.pricing-card {
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-md);
}

.pricing-card.featured,
.pricing-card.popular,
.pricing-card.recommended {
  border: 1.5px solid transparent;
  background:
    linear-gradient(#fff, #fff) padding-box,
    var(--grad) border-box;
  box-shadow: 0 24px 48px -18px rgba(99,102,241,.4);
}

/* ── FAQ ── */
.faq-item { border-radius: 14px; }

/* ── CTA band ── */
.cta-section {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background:
    radial-gradient(700px 360px at 20% 0%, rgba(99,102,241,.55), transparent 65%),
    radial-gradient(600px 360px at 90% 100%, rgba(20,184,166,.35), transparent 65%),
    var(--ink);
  color: #c7d0e6;
}

.cta-section h2 { color: #fff; font-size: clamp(1.75rem, 3.4vw, 2.6rem); letter-spacing: -0.03em; }
.cta-section p { color: #b6c1da; }
.cta-section .btn-secondary,
.cta-section .btn-outline { background: rgba(255,255,255,.08); color: #fff; border: 1.5px solid rgba(255,255,255,.28); }

/* ── Footer ── */
.footer { background: var(--ink); }

/* ── Tour / blog heroes: soft aurora to match ── */
.tour-hero, .blog-hero {
  background: radial-gradient(640px 220px at 50% 0%, rgba(99,102,241,.14), transparent 70%);
}

.tour-hero h1, .blog-hero h1 {
  letter-spacing: -0.035em;
  background: linear-gradient(135deg, #0b1020 0%, #4338ca 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ============================================
   Tabbed screenshot gallery (built by js/main.js
   from .screenshot-gallery; without JS the plain
   grid below still works)
   ============================================ */
.shot-tabs { display: none; }

.js .screenshot-gallery.is-tabbed { display: none; }

.js .shot-tabs {
  display: grid;
  grid-template-columns: minmax(220px, 300px) 1fr;
  gap: 32px;
  align-items: start;
  margin-top: 40px;
}

.shot-tablist {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 560px;
  overflow-y: auto;
  padding-right: 6px;
  scrollbar-width: thin;
}

.shot-tab {
  text-align: left;
  font: inherit;
  cursor: pointer;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: #fff;
  color: var(--text);
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.shot-tab strong { display: block; font-size: .95rem; color: var(--dark); letter-spacing: -0.01em; }
.shot-tab span { display: block; margin-top: 2px; font-size: .8rem; color: var(--text-muted); line-height: 1.45;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

.shot-tab[aria-selected="true"] {
  border-color: transparent;
  background: linear-gradient(#fff, #fff) padding-box, var(--grad) border-box;
  border: 1.5px solid transparent;
  box-shadow: 0 14px 28px -14px rgba(99,102,241,.5);
}

@media (hover: hover) {
  .shot-tab:hover { border-color: rgba(99,102,241,.4); }
}

.shot-stage {
  position: relative;
  border-radius: var(--r-lg);
  background: var(--ink);
  padding: 0;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.shot-stage-bar {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 12px 16px;
  background: #1a2240;
}

.shot-stage-bar i { width: 11px; height: 11px; border-radius: 50%; background: #3b4670; display: block; }
.shot-stage-bar i:nth-child(1) { background: #ff5f57; }
.shot-stage-bar i:nth-child(2) { background: #febc2e; }
.shot-stage-bar i:nth-child(3) { background: #28c840; }

.shot-stage img { width: 100%; height: auto; display: block; background: #fff; }

.shot-stage-caption { padding: 16px 20px 20px; color: #c7d0e6; font-size: .95rem; line-height: 1.55; }
.shot-stage-caption strong { display: block; color: #fff; font-size: 1.05rem; margin-bottom: 4px; letter-spacing: -0.015em; }

@media (max-width: 900px) {
  .js .shot-tabs { grid-template-columns: 1fr; gap: 16px; }
  .shot-tablist { flex-direction: row; max-height: none; overflow-x: auto; overflow-y: hidden; padding: 0 0 8px; scroll-snap-type: x proximity; }
  .shot-tab { flex: 0 0 auto; width: 210px; scroll-snap-align: start; }
}

/* ── Mobile ── */
@media (max-width: 768px) {
  section { padding: 64px 0; }
  .hero { padding: 112px 0 72px; }
  .feature-block, .feature-card { gap: 28px; padding-top: 32px; padding-bottom: 32px; }
  .section-sub { margin-bottom: 36px; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-screenshot { transform: none; }
}

/* ── Feature explorer (tabbed feature blocks) ── */
.feature-explorer .shot-tablist { max-height: none; }

.feature-panels {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg);
  padding: 32px;
  min-width: 0;
}

.feature-panels .feature-block {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  padding: 0;
  border: 0;
}

.feature-panels .feature-block[hidden] { display: none; }

.feature-panels .feature-block-reverse .feature-block-content,
.feature-panels .feature-block-reverse .feature-block-visual { order: 0; }

.feature-panels .feature-list { columns: 2; column-gap: 32px; }
.feature-panels .feature-list li { break-inside: avoid; }

.feature-panels .feature-block-visual::before { display: none; }
.feature-panels .feature-screenshot { max-width: 100%; box-shadow: var(--shadow-md); }

@media (max-width: 900px) {
  .feature-panels { padding: 20px; }
  .feature-panels .feature-list { columns: 1; }
  .feature-explorer .shot-tab { width: 180px; }
}

.trust-badges { gap: 10px; }
.hero .badge { font-size: .78rem; padding: 6px 12px; }

/* ── Feature cards (Support at Home, etc.): alternating text / screenshot rows ──
   These classes were used in the markup but had no rule at all, so the cards rendered as
   unstyled stacked blocks. */
.feature-grid { display: grid; gap: 24px; margin-top: 32px; }

.feature-card {
  display: grid;
  grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
  gap: 40px;
  align-items: center;
  padding: 32px;
  background: #fff;
  border: 1px solid var(--border);
}

.feature-card.reverse .feature-content { order: 2; }
.feature-card.reverse .feature-screenshot { order: 1; }

.feature-card .feature-content h3 { font-size: 1.35rem; color: var(--dark); margin-bottom: 10px; }
.feature-card .feature-content p { color: var(--text-muted); line-height: 1.65; }
.feature-card .feature-screenshot { box-shadow: var(--shadow-md); }

@media (max-width: 768px) {
  .feature-card { grid-template-columns: 1fr; gap: 20px; padding: 20px; }
  .feature-card.reverse .feature-content,
  .feature-card.reverse .feature-screenshot { order: 0; }
}

/* ── Classes the markup used with no rule anywhere ── */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.blog-card-tag--product { background: #f5f3ff; color: #7c3aed; }

.article-source { font-size: .85rem; color: var(--text-muted); border-left: 3px solid var(--border); padding-left: 12px; margin: 20px 0; }

.compare-kareshift-note { margin-top: 10px; padding: 10px 14px; background: var(--primary-light); border-radius: 10px; font-size: .9rem; color: var(--text); }

.tour-subtitle { font-size: 1.125rem; color: var(--text-muted); max-width: 640px; margin: 0 auto; text-align: center; }

.screenshot-category .category-desc { color: var(--text-muted); margin: 4px 0 20px; max-width: 720px; }

.tour-hero { padding-top: 5rem; }
.blog-hero { padding-top: 120px; }
@media (max-width: 768px) { .tour-hero { padding-top: 4rem; } .blog-hero { padding-top: 96px; } }

/* Pricing comparison cards (CA/UK/NZ home): the table made the card wider than a 390px phone */
.pricing-compare-card { min-width: 0; overflow-x: auto; }
@media (max-width: 480px) {
  .pricing-compare-table th, .pricing-compare-table td { padding: 8px 6px; font-size: .78rem; }
}

/* ── Product tour: collapsed grids (js/tour.js) ── */
.screenshot-grid[data-collapsed] .is-extra { display: none; }
.tour-searching .screenshot-grid[data-collapsed] .is-extra { display: block; }
.tour-searching .tour-more { display: none; }

.tour-more {
  display: block;
  margin: 24px auto 8px;
  padding: 12px 28px;
  font: inherit;
  font-weight: 650;
  color: var(--primary-dark);
  background: #fff;
  border: 1.5px solid rgba(99,102,241,.35);
  border-radius: 12px;
  cursor: pointer;
  transition: background .2s ease, box-shadow .2s ease;
}

@media (hover: hover) {
  .tour-more:hover { background: var(--primary-light); box-shadow: var(--shadow-md); }
}

.screenshot-card {
  border-radius: var(--r);
  overflow: hidden;
  transition: transform .25s ease, box-shadow .25s ease;
}

@media (hover: hover) {
  .screenshot-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
}

/* ── Two framed screenshots side by side (switch page import) ── */
.import-showcase { background: var(--bg-alt); }

.shot-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; }

.shot-pair figure {
  margin: 0;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.shot-pair img { width: 100%; height: auto; border-bottom: 1px solid var(--border); }
.shot-pair figcaption { padding: 16px 20px 20px; font-size: .92rem; color: var(--text-muted); line-height: 1.55; }
.shot-pair figcaption strong { display: block; color: var(--dark); font-size: 1rem; margin-bottom: 2px; }

@media (max-width: 768px) { .shot-pair { grid-template-columns: 1fr; } }

/* ── Footer: dark, so every text colour is set for dark (the base rules assumed a light footer) ── */
.footer { border-top: 0; color: #9aa6c4; }
.footer .logo-text { color: #fff; }
.footer-tagline, .footer-disclaimer, .footer-bottom p { color: #9aa6c4; }
.footer-col h4 { color: #e6eaff; }
.footer-col a, .footer-company-link { color: #9aa6c4; }
.footer-bottom { border-top-color: rgba(255,255,255,.12); }

@media (hover: hover) {
  .footer-col a:hover, .footer-company-link:hover { color: #fff; }
}

/* ============================================
   Accessibility pass (WCAG 2.2 AA)
   ============================================ */

/* Skip link: the first tab stop on every page */
.skip-link {
  position: absolute;
  top: -100px;
  left: 12px;
  z-index: 2000;
  padding: 12px 18px;
  background: #fff;
  color: var(--primary-dark);
  font-weight: 700;
  border-radius: 10px;
  box-shadow: var(--shadow-lg);
}
.skip-link:focus { top: 12px; }
main:focus { outline: none; }

/* A visible focus ring everywhere (white on the dark hero, CTA band and footer) */
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 4px; }
.hero :focus-visible, .cta-section :focus-visible, .footer :focus-visible, .shot-stage :focus-visible { outline-color: #fff; }

/* Footer column titles are <p> now (they were <h4> after an <h2>) */
.footer-col-title {
  font-size: .75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #e6eaff;
  margin-bottom: 4px;
}

/* Gallery item titles are <h3> under the section's <h2> */
.screenshot-item h3 { font-size: 1rem; font-weight: 600; color: var(--dark); margin: 16px 20px 8px; }

/* Form fields and toggles: boundaries of at least 3:1 */
.search-input, .filter-group select, .savings-input { border-color: #8b95a7; }
.search-input:focus, .filter-group select:focus, .savings-input:focus { border-color: var(--focus); box-shadow: 0 0 0 3px rgba(79,70,229,.25); }
.toggle-switch { background: #8b95a7; }

/* Text on tinted backgrounds that was below 4.5:1 */
.roadmap-done .roadmap-status { color: #047857; }
.roadmap-progress .roadmap-status { color: #b45309; }
.roadmap-planned .roadmap-status { color: #586579; }
.blog-card-tag--aged-care { color: #047857; }
.compare-sector-badge--ndis { color: #047857; }
.compare-sector-badge--aged-care { color: #4338ca; }
.compare-sector-badge--uk { color: #1d4ed8; }
.mockup-title { color: #586579; }
.cta-box p, .cta-feedback { opacity: 1; }
th.compare-highlight { color: #4338ca; }

/* The mobile menu starts at 1024px: between 769 and ~870px the CTAs were clipped off-screen */
@media (max-width: 1024px) {
  .nav-links, .nav-cta { display: none; }
  .mobile-toggle { display: flex; padding: 10px; margin: -10px; }
  .nav-inner { position: relative; }
  .navbar:not(.scrolled) { background: #fff; }
  .nav-links.active {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    padding: 24px;
    gap: 16px;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-md);
    max-height: calc(100dvh - 72px);
    overflow-y: auto;
  }
  .nav-links.active a { min-height: 44px; display: flex; align-items: center; color: var(--text); }
  .nav-links.active ~ .nav-cta { display: none; }
  .nav-cta-mobile { display: list-item !important; padding-top: 8px; }
  .nav-cta-mobile:first-of-type { margin-top: 8px; padding-top: 16px; border-top: 1px solid var(--border); }
  .nav-cta-mobile .btn { width: 100%; justify-content: center; padding: 14px 24px; font-size: .938rem; }
  .nav-cta-mobile .btn-primary { background: var(--primary) !important; color: #fff !important; border: none; }
  .nav-cta-mobile .btn-outline { background: transparent !important; color: var(--primary) !important; border: 1.5px solid var(--primary) !important; }
}

/* FAQ: closed answers are removed from the accessibility tree, and long answers are never clipped */
.faq-answer {
  display: grid;
  grid-template-rows: 0fr;
  max-height: none;
  visibility: hidden;
  transition: grid-template-rows .3s ease, padding-bottom .3s ease, visibility 0s linear .3s;
}
.faq-item.active .faq-answer {
  grid-template-rows: 1fr;
  max-height: none;
  visibility: visible;
  transition: grid-template-rows .3s ease, padding-bottom .3s ease, visibility 0s;
}
.faq-answer > * { min-height: 0; overflow: hidden; }
.faq-answer p { padding: 0 24px; }
.faq-item.active .faq-answer { padding-bottom: 20px; }

/* Content only starts hidden when the script that reveals it is running */
.reveal { opacity: 1; transform: none; }
.js .reveal { opacity: 0; transform: translateY(20px); }
.js .reveal.visible { opacity: 1; transform: none; }

/* Tour: a sticky filter bar and a fixed banner must not swallow a small or zoomed viewport */
@media (max-width: 768px), (max-height: 500px) {
  .tour-filters { position: static; }
  .cookie-banner { max-height: 40vh; overflow-y: auto; }
}

/* Honour reduced-motion for scrolling and hover lifts */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto !important; }
  .card:hover, .feature-card:hover, .persona-card:hover, .sector-card:hover, .pain-card:hover,
  .screenshot-card:hover, .btn-primary:hover { transform: none; }
}

/* Windows high-contrast: gradient-clipped headings would vanish */
@media (forced-colors: active) {
  .tour-hero h1, .blog-hero h1 { background: none; color: CanvasText; -webkit-text-fill-color: CanvasText; }
}

/* ── Breadcrumbs (blog posts) ── */
.breadcrumb ol { display: flex; flex-wrap: wrap; gap: 4px 8px; list-style: none; margin: 0 0 20px; padding: 0; font-size: .85rem; color: var(--text-muted); }
.breadcrumb li + li::before { content: '/'; margin-right: 8px; color: var(--text-light); }
.breadcrumb a { color: var(--text-muted); text-decoration: underline; text-underline-offset: 3px; }
.breadcrumb [aria-current] { color: var(--dark); }
@media (hover: hover) { .breadcrumb a:hover { color: var(--primary); } }

/* ── Spacing and alignment helpers (were an inline <style> on about.html) ── */
.mt-48 { margin-top: 48px; }
.mt-32 { margin-top: 32px; }
.pt-0 { padding-top: 0; }
.text-center { text-align: center; }
.mb-4 { margin-bottom: 4px; }

/* Sector badges inside the dark hero need light text (the darker tones above are for light cards) */
.hero .compare-sector-badge { background-color: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.18); }
.hero .compare-sector-badge--ndis { color: #6ee7b7; }
.hero .compare-sector-badge--aged-care { color: #c7d2fe; }
.hero .compare-sector-badge--disability { color: #ddd6fe; }
.hero .compare-sector-badge--uk { color: #bfdbfe; }
