/* ==========================================================================
   Future Business Solutions - styles.css
   Outsourced bookkeeping for Australian SMEs & startups
   ========================================================================== */

/* --- Design tokens --- */
:root {
  --navy-900: #0B2447;
  --navy-700: #133B73;
  --blue-600: #1D5FD1;
  --blue-500: #2D6FE3;
  --sky-100: #EAF1FB;
  --white: #FFFFFF;
  --text: #21304A;
  --muted: #5A6B85;
  --border: #DCE5F2;

  --container: 1140px;
  --radius-card: 14px;
  --radius-btn: 10px;
  --shadow-sm: 0 1px 2px rgba(11, 36, 71, 0.06);
  --shadow-card: 0 10px 30px rgba(11, 36, 71, 0.08);
  --shadow-card-hover: 0 16px 44px rgba(11, 36, 71, 0.14);
  --shadow-header: 0 2px 16px rgba(11, 36, 71, 0.08);

  --space-section: clamp(3.5rem, 7vw, 6rem);

  --font-head: 'Plus Jakarta Sans', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
}

/* --- Reset / base --- */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 88px; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg { display: block; max-width: 100%; }

h1, h2, h3, h4 {
  font-family: var(--font-head);
  color: var(--navy-700);
  line-height: 1.18;
  margin: 0 0 0.6em;
  letter-spacing: -0.01em;
}

h1 { font-weight: 800; font-size: clamp(2.1rem, 5vw, 3.25rem); }
h2 { font-weight: 700; font-size: clamp(1.7rem, 3.6vw, 2.4rem); }
h3 { font-weight: 700; font-size: 1.2rem; }
h4 { font-weight: 600; font-size: 1.02rem; }

p { margin: 0 0 1rem; }

a { color: var(--blue-600); text-decoration: none; }
a:hover { color: var(--blue-500); }

ul { margin: 0; padding: 0; }

/* --- Accessibility helpers --- */
.skip-link {
  position: absolute;
  left: 1rem;
  top: -3rem;
  z-index: 1000;
  background: var(--blue-600);
  color: var(--white);
  padding: 0.65rem 1.1rem;
  border-radius: var(--radius-btn);
  font-weight: 600;
  transition: top 0.18s ease;
}
.skip-link:focus { top: 1rem; color: var(--white); }

:focus-visible {
  outline: 3px solid var(--blue-500);
  outline-offset: 2px;
  border-radius: 4px;
}

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0; border: 0;
  clip: rect(0 0 0 0); clip-path: inset(50%);
  overflow: hidden; white-space: nowrap;
}

/* --- Layout --- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: clamp(1.1rem, 4vw, 2rem);
}

.section { padding-block: var(--space-section); }
.section--tint { background: var(--sky-100); }

.section-head {
  max-width: 680px;
  margin: 0 auto clamp(2rem, 4vw, 3rem);
  text-align: center;
}
.section-head p { color: var(--muted); margin-bottom: 0; font-size: 1.06rem; }

.eyebrow {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--blue-600);
  display: block;
  margin-bottom: 0.6rem;
}

/* --- Badges / pills --- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--white);
  border: 1px solid var(--border);
  color: var(--navy-700);
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.82rem;
  letter-spacing: 0.01em;
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  box-shadow: var(--shadow-sm);
}
.badge .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--blue-600);
  flex: none;
}
.badge--on-dark {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.22);
  color: var(--white);
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.98rem;
  line-height: 1;
  padding: 0.85rem 1.5rem;
  border-radius: var(--radius-btn);
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, color 0.15s ease;
  text-align: center;
}
.btn svg { width: 18px; height: 18px; }

.btn--primary {
  background: var(--blue-600);
  color: var(--white);
  box-shadow: 0 6px 18px rgba(29, 95, 209, 0.32);
}
.btn--primary:hover {
  background: var(--blue-500);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(29, 95, 209, 0.4);
}
.btn--ghost {
  background: transparent;
  color: var(--blue-600);
  border-color: var(--border);
}
.btn--ghost:hover {
  border-color: var(--blue-500);
  color: var(--blue-500);
  background: var(--white);
}
.btn--on-dark {
  background: var(--white);
  color: var(--navy-900);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.18);
}
.btn--on-dark:hover {
  background: var(--sky-100);
  color: var(--navy-900);
  transform: translateY(-2px);
}
.btn--block { width: 100%; }
@media (prefers-reduced-motion: reduce) {
  .btn:hover { transform: none; }
}

/* ==========================================================================
   Header
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  transition: box-shadow 0.2s ease;
}
.site-header.is-scrolled { box-shadow: var(--shadow-header); border-bottom-color: transparent; }

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 72px;
}

/* Logo wordmark - single .logo link, easy to swap for an image later */
.logo {
  display: inline-flex;
  align-items: center;
  line-height: 0;
}
.logo-img {
  display: block;
  height: 34px;
  width: auto;
}
.logo:focus-visible {
  outline: 2px solid var(--blue-600);
  outline-offset: 4px;
  border-radius: 4px;
}
@media (max-width: 480px) { .logo-img { height: 30px; } }

/* Primary nav */
.nav {
  display: flex;
  align-items: center;
  gap: 2rem;
}
.nav-list {
  display: flex;
  align-items: center;
  gap: 1.7rem;
  list-style: none;
}
.nav-list a {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.96rem;
  color: var(--navy-700);
  padding: 0.4rem 0;
  position: relative;
}
.nav-list a:hover { color: var(--blue-600); }
.nav-list a[aria-current="page"] { color: var(--blue-600); }
.nav-list a[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 2px;
  background: var(--blue-600);
  border-radius: 2px;
}

/* Hamburger */
.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  border: 1px solid var(--border);
  border-radius: var(--radius-btn);
  background: var(--white);
  cursor: pointer;
  padding: 0;
  align-items: center;
  justify-content: center;
}
.nav-toggle svg { width: 24px; height: 24px; color: var(--navy-700); }
.nav-toggle .icon-close { display: none; }
.nav-toggle[aria-expanded="true"] .icon-open { display: none; }
.nav-toggle[aria-expanded="true"] .icon-close { display: block; }

@media (max-width: 900px) {
  .nav-toggle { display: inline-flex; }
  .nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--white);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-header);
    padding: 0.75rem clamp(1.1rem, 4vw, 2rem) 1.4rem;
    transform: translateY(-8px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s;
  }
  .nav.is-open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }
  .nav-list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }
  .nav-list li { border-bottom: 1px solid var(--border); }
  .nav-list a {
    display: block;
    padding: 0.9rem 0.25rem;
    font-size: 1.05rem;
  }
  .nav-list a[aria-current="page"]::after { display: none; }
  .nav .btn { margin-top: 1rem; }
}

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, var(--navy-900) 0%, var(--navy-700) 48%, var(--blue-600) 100%);
  color: var(--white);
  isolation: isolate;
}
.hero-geometry {
  position: absolute;
  inset: 0;
  z-index: -1;
  width: 100%;
  height: 100%;
  opacity: 0.85;
  pointer-events: none;
}
.hero .container { position: relative; z-index: 1; }

.hero--home { padding-block: clamp(4rem, 9vw, 7rem); }
.hero--strip { padding-block: clamp(3rem, 6vw, 4.5rem); }

.hero h1 { color: var(--white); max-width: 16ch; }
.hero--strip h1 { max-width: 22ch; }
.hero-lead {
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  color: rgba(255, 255, 255, 0.86);
  max-width: 56ch;
  margin-bottom: 2rem;
}
.hero--strip .hero-lead { margin-bottom: 0; }
.hero .badge { margin-bottom: 1.4rem; }

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
}
.hero-actions .btn--ghost {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.4);
}
.hero-actions .btn--ghost:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--white);
  border-color: var(--white);
}

.hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.5rem;
  margin-top: 2.2rem;
  padding-top: 1.6rem;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  list-style: none;
}
.hero-trust li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.92rem;
  color: rgba(255, 255, 255, 0.88);
  font-family: var(--font-head);
  font-weight: 600;
}
.hero-trust svg { width: 18px; height: 18px; color: #8FC0FF; flex: none; }

/* ==========================================================================
   Hero v2 (home) - centred, white, tabbed showcase
   ========================================================================== */
.hero2 {
  background: var(--white);
  padding-block: clamp(3.5rem, 7vw, 6rem) clamp(5rem, 10vw, 8rem);
}
.hero2-inner { text-align: center; }

.hero2-badge {
  display: inline-flex; align-items: center; gap: 0.55rem;
  font-family: var(--font-body); font-weight: 500;
  font-size: 0.875rem; color: var(--text);
  margin-bottom: 1.6rem;
}
.hero2-badge-mark {
  flex: none; width: 24px; height: 24px;
  border: 1px solid var(--border); border-radius: 6px;
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--blue-600);
}
.hero2-badge-mark svg { width: 13px; height: 13px; }

.hero2-title {
  font-family: var(--font-head); font-weight: 700;
  font-size: clamp(2.6rem, 6.5vw, 5rem);
  line-height: 1.08; letter-spacing: -0.025em;
  margin: 0 auto 1.4rem; max-width: 16ch;
}
.hero2-title-line { display: block; color: var(--navy-900); }
.hero2-title-grad {
  display: block;
  color: var(--blue-600); /* fallback before clip support */
}
@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  .hero2-title-grad {
    background: linear-gradient(90deg, var(--navy-900), var(--blue-600), var(--blue-500));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
  }
}

.hero2-sub {
  font-size: clamp(1.075rem, 1.6vw, 1.2rem);
  line-height: 1.6; color: var(--muted);
  max-width: 42rem; margin: 0 auto 2rem;
}

.hero2-actions {
  display: flex; flex-wrap: wrap;
  align-items: center; justify-content: center;
  gap: 1rem 1.4rem; margin-bottom: 2.6rem;
}
.hero2-cta { border-radius: 999px; border: 2px solid transparent; padding: 0.9rem 2rem; }
.hero2-cta:hover { background: var(--navy-700); }
.hero2-link {
  font-family: var(--font-head); font-weight: 600;
  font-size: 0.98rem; color: var(--navy-700);
}
.hero2-link:hover { color: var(--blue-600); }

/* Tab bar */
.hero2-tabs { display: flex; justify-content: center; margin-bottom: 2rem; }
.hero2-tablist {
  display: inline-flex; align-items: center;
  background: var(--sky-100);
  padding: 4px; border-radius: 12px; gap: 2px;
}
.hero2-tab {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  border: 0; background: transparent; cursor: pointer;
  font-family: var(--font-head); font-weight: 600;
  font-size: 0.92rem; color: var(--muted);
  padding: 0.6rem 1.05rem; border-radius: 9px;
  transition: background 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
  white-space: nowrap;
}
.hero2-tab svg { width: 18px; height: 18px; flex: none; }
.hero2-tab:hover { color: var(--navy-700); }
.hero2-tab.is-active { background: var(--white); color: var(--navy-900); box-shadow: var(--shadow-sm); }
.hero2-tabdiv { width: 1px; height: 20px; background: var(--border); flex: none; }
@media (max-width: 768px) {
  .hero2-tablist {
    display: grid;
    grid-template-columns: 1fr 1fr;
    width: 100%;
    max-width: 360px;
  }
  .hero2-tabdiv { display: none; }
  .hero2-tab { padding: 0.65rem 0.5rem; }
}

/* Showcase panel */
.hero2-showcase {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  height: 420px;
  background: linear-gradient(135deg, var(--navy-900) 0%, var(--navy-700) 48%, var(--blue-600) 100%);
  isolation: isolate;
}
@media (min-width: 768px) {
  .hero2-showcase { height: 520px; }
}
.hero2-geometry {
  position: absolute; inset: 0; z-index: 0;
  width: 100%; height: 100%;
  opacity: 0.85; pointer-events: none;
}
.hero2-preview-tag {
  position: absolute; top: 14px; right: 14px; z-index: 2;
  font-family: var(--font-head); font-weight: 600;
  font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7);
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px; padding: 0.3rem 0.7rem;
}

/* Panels & dialog card */
.hero2-panel {
  position: absolute; inset: 0; z-index: 1;
  display: flex; align-items: center; justify-content: center;
  padding: 1.5rem;
  animation: fadeInOverlay 0.4s ease-out both;
}
.hero2-panel[hidden] { display: none; }
.hero2-dialog {
  width: 100%; max-width: 400px;
  background: var(--white);
  border-radius: 16px;
  box-shadow: 0 24px 60px rgba(11, 36, 71, 0.3);
  padding: 1.5rem; text-align: left;
  animation: slideUpDialog 0.5s ease-out both;
}
.hero2-dialog-title { font-size: 1.08rem; color: var(--navy-900); margin: 0 0 1rem; }
.hero2-dialog-head {
  display: flex; align-items: center; justify-content: space-between;
  gap: 0.8rem; margin-bottom: 1rem;
}
.hero2-dialog-head .hero2-dialog-title { margin: 0; }

.hero2-items { list-style: none; display: grid; gap: 0.7rem; margin: 0 0 1.1rem; }
.hero2-items li {
  display: flex; align-items: flex-start; gap: 0.6rem;
  font-size: 0.95rem; color: var(--text);
}
.hero2-itick {
  flex: none; width: 20px; height: 20px;
  border-radius: 50%;
  background: var(--sky-100); color: var(--blue-600);
  display: inline-flex; align-items: center; justify-content: center;
  margin-top: 1px;
}
.hero2-itick svg { width: 12px; height: 12px; }

.hero2-bar {
  height: 8px; border-radius: 999px;
  background: var(--sky-100); overflow: hidden;
  margin-bottom: 0.6rem;
}
.hero2-bar span {
  display: block; height: 100%;
  border-radius: 999px; background: var(--blue-600);
}
.hero2-bar span.hero2-bar--green { background: #1E9E6A; }
.hero2-caption { font-size: 0.85rem; color: var(--muted); margin: 0; }

.hero2-stat-row { display: flex; align-items: center; gap: 0.7rem; margin-bottom: 0.2rem; }
.hero2-stat-tick {
  flex: none; width: 30px; height: 30px;
  border-radius: 50%;
  background: var(--sky-100); color: var(--blue-600);
  display: inline-flex; align-items: center; justify-content: center;
}
.hero2-stat-tick--green { background: #DCF2E8; color: #1E9E6A; }
.hero2-stat-tick svg { width: 17px; height: 17px; }
.hero2-stat-num {
  font-family: var(--font-head); font-weight: 800;
  font-size: 1.9rem; color: var(--navy-900); line-height: 1;
}
.hero2-stat-cap { font-size: 0.92rem; color: var(--muted); margin: 0 0 1rem; }

.hero2-pill {
  font-family: var(--font-head); font-weight: 700;
  font-size: 0.72rem; letter-spacing: 0.04em; text-transform: uppercase;
  color: #1E9E6A; background: #DCF2E8;
  border-radius: 999px; padding: 0.25rem 0.65rem; flex: none;
}

.hero2-chart { display: flex; align-items: flex-end; gap: 0.55rem; height: 120px; margin-bottom: 1rem; }
.hero2-chart span {
  flex: 1; min-height: 12px;
  border-radius: 6px 6px 2px 2px;
  background: linear-gradient(180deg, var(--blue-500), var(--blue-600));
}
.hero2-chart span:nth-child(2n) { background: linear-gradient(180deg, var(--blue-600), var(--navy-700)); }

/* Software strip */
.hero2-software { margin-top: clamp(3rem, 6vw, 6rem); }
.hero2-software-label {
  font-family: var(--font-head); font-weight: 600;
  font-size: 0.78rem; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--muted); margin: 0 0 1.2rem;
}
.hero2-wordmarks {
  display: flex; flex-wrap: wrap;
  align-items: center; justify-content: center;
  gap: 1rem 2.4rem; list-style: none;
}
.hero2-wm { font-family: var(--font-head); font-size: 1.25rem; color: var(--muted); }
.hero2-wm--xero { text-transform: lowercase; font-weight: 800; }
.hero2-wm--myob { text-transform: uppercase; font-weight: 800; letter-spacing: 0.02em; }
.hero2-wm--qb { font-weight: 600; }

/* ==========================================================================
   Cards & grids
   ========================================================================== */
.grid { display: grid; gap: 1.5rem; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 860px) {
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .grid--3, .grid--2 { grid-template-columns: 1fr; }
}

.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 1.7rem;
  box-shadow: var(--shadow-card);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
  height: 100%;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card-hover);
  border-color: #C5D6F0;
}
@media (prefers-reduced-motion: reduce) {
  .card:hover { transform: none; }
}
.card h3 { margin-bottom: 0.5rem; }
.card p { color: var(--muted); margin-bottom: 0; }

/* Icon badge inside cards */
.icon-badge {
  width: 52px; height: 52px;
  border-radius: 13px;
  background: var(--sky-100);
  color: var(--blue-600);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.1rem;
}
.icon-badge svg { width: 26px; height: 26px; }

/* Service preview cards (compact, linkable) */
.service-card {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}
.service-card .icon-badge {
  width: 46px; height: 46px;
  margin-bottom: 0;
  flex: none;
}
.service-card .icon-badge svg { width: 23px; height: 23px; }
.service-card h3 { font-size: 1.08rem; margin-bottom: 0.3rem; }
.service-card a { color: var(--navy-700); }
.service-card a:hover { color: var(--blue-600); }
.service-card p { font-size: 0.95rem; }

/* ==========================================================================
   How it works - numbered steps
   ========================================================================== */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  counter-reset: step;
}
@media (max-width: 760px) { .steps { grid-template-columns: 1fr; } }

.step {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 1.8rem 1.6rem;
  box-shadow: var(--shadow-card);
  position: relative;
}
.step .step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px; height: 42px;
  border-radius: 50%;
  background: var(--blue-600);
  color: var(--white);
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.1rem;
  margin-bottom: 1rem;
}
.step h3 { font-size: 1.12rem; margin-bottom: 0.4rem; }
.step p { color: var(--muted); margin-bottom: 0; }

/* ==========================================================================
   Why FBS / split feature section
   ========================================================================== */
.split {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }

.feature-list { list-style: none; display: grid; gap: 1.2rem; }
.feature-list li {
  display: flex;
  gap: 0.9rem;
  align-items: flex-start;
}
.feature-list .tick {
  flex: none;
  width: 30px; height: 30px;
  border-radius: 50%;
  background: var(--sky-100);
  color: var(--blue-600);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 2px;
}
.feature-list .tick svg { width: 17px; height: 17px; }
.feature-list h4 { margin-bottom: 0.2rem; }
.feature-list p { color: var(--muted); margin-bottom: 0; font-size: 0.96rem; }

.panel {
  background: var(--navy-900);
  background-image: linear-gradient(150deg, var(--navy-900), var(--navy-700));
  color: var(--white);
  border-radius: var(--radius-card);
  padding: clamp(1.8rem, 4vw, 2.6rem);
  position: relative;
  overflow: hidden;
}
.panel h3 { color: var(--white); }
.panel p { color: rgba(255, 255, 255, 0.85); }
.panel .panel-mark {
  position: absolute;
  right: -30px; bottom: -30px;
  width: 180px; height: 180px;
  color: rgba(255, 255, 255, 0.07);
  pointer-events: none;
}
.panel .feature-list .tick { background: rgba(255, 255, 255, 0.12); color: #8FC0FF; }
.panel .feature-list p { color: rgba(255, 255, 255, 0.82); }
.panel .feature-list h4 { color: var(--white); }

/* ==========================================================================
   Detailed service blocks (services.html)
   ========================================================================== */
.service-block {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.5rem;
  padding: clamp(1.6rem, 3vw, 2.2rem);
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  scroll-margin-top: 96px;
}
@media (max-width: 600px) { .service-block { grid-template-columns: 1fr; } }
.service-block .icon-badge {
  width: 60px; height: 60px;
  margin-bottom: 0;
}
.service-block .icon-badge svg { width: 30px; height: 30px; }
.service-block h2 { font-size: 1.4rem; margin-bottom: 0.5rem; }
.service-block > div > p { color: var(--muted); }
.service-bullets {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.55rem 1.3rem;
  margin-top: 0.9rem;
}
@media (max-width: 520px) { .service-bullets { grid-template-columns: 1fr; } }
.service-bullets li {
  display: flex;
  gap: 0.55rem;
  align-items: flex-start;
  font-size: 0.95rem;
  color: var(--text);
}
.service-bullets svg {
  flex: none; width: 18px; height: 18px;
  color: var(--blue-600); margin-top: 3px;
}

.compliance-note {
  margin-top: 1rem;
  padding: 0.9rem 1.1rem;
  background: var(--sky-100);
  border-left: 3px solid var(--blue-600);
  border-radius: 8px;
  font-size: 0.92rem;
  color: var(--navy-700);
}
.compliance-note strong { color: var(--navy-900); }

/* Software strip */
.software-strip {
  text-align: center;
}
.software-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  justify-content: center;
  margin-top: 1.4rem;
  list-style: none;
}
.software-badges li {
  font-family: var(--font-head);
  font-weight: 700;
  color: var(--navy-700);
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.6rem 1.4rem;
  box-shadow: var(--shadow-sm);
}

/* "More services" teaser */
.teaser {
  border: 1px dashed #B9CBEB;
  background: var(--sky-100);
  border-radius: var(--radius-card);
  padding: clamp(1.6rem, 3vw, 2.2rem);
  text-align: center;
}
.teaser h3 { margin-bottom: 0.4rem; }
.teaser p { color: var(--muted); margin-bottom: 0; max-width: 60ch; margin-inline: auto; }

/* ==========================================================================
   FAQ (native details/summary)
   ========================================================================== */
.faq {
  max-width: 800px;
  margin-inline: auto;
  display: grid;
  gap: 0.9rem;
}
.faq details {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.faq details[open] { box-shadow: var(--shadow-card); border-color: #C5D6F0; }
.faq summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.15rem 1.4rem;
  font-family: var(--font-head);
  font-weight: 700;
  color: var(--navy-700);
  font-size: 1.04rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary .chev {
  flex: none;
  width: 22px; height: 22px;
  color: var(--blue-600);
  transition: transform 0.2s ease;
}
.faq details[open] summary .chev { transform: rotate(180deg); }
.faq .faq-body {
  padding: 0 1.4rem 1.25rem;
  color: var(--muted);
}
.faq .faq-body p { margin-bottom: 0; }
@media (prefers-reduced-motion: reduce) {
  .faq summary .chev { transition: none; }
}

/* ==========================================================================
   CTA banner
   ========================================================================== */
.cta-banner {
  background: linear-gradient(135deg, var(--navy-900), var(--navy-700) 55%, var(--blue-600));
  color: var(--white);
  border-radius: var(--radius-card);
  padding: clamp(2.2rem, 5vw, 3.4rem);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-banner h2 { color: var(--white); max-width: 22ch; margin-inline: auto; }
.cta-banner p { color: rgba(255, 255, 255, 0.86); max-width: 52ch; margin: 0 auto 1.7rem; }
.cta-banner .btn { position: relative; z-index: 1; }
.cta-banner .cta-mark {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  opacity: 0.5;
  pointer-events: none;
}

/* ==========================================================================
   Contact page
   ========================================================================== */
.contact-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 1.8rem;
  align-items: start;
}
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }

.booking-card {
  background: var(--navy-900);
  background-image: linear-gradient(155deg, var(--navy-900), var(--navy-700));
  color: var(--white);
  border-radius: var(--radius-card);
  padding: clamp(1.7rem, 3.5vw, 2.3rem);
  box-shadow: var(--shadow-card);
  position: relative;
  overflow: hidden;
}
.booking-card h2 { color: var(--white); font-size: 1.5rem; }
.booking-card p { color: rgba(255, 255, 255, 0.86); }
.booking-card .booking-points {
  list-style: none;
  display: grid;
  gap: 0.7rem;
  margin: 1.3rem 0 1.7rem;
}
.booking-card .booking-points li {
  display: flex; gap: 0.6rem; align-items: flex-start;
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.95rem;
}
.booking-card .booking-points svg {
  flex: none; width: 19px; height: 19px; color: #8FC0FF; margin-top: 2px;
}

/* Form */
.form-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: clamp(1.7rem, 3.5vw, 2.3rem);
  box-shadow: var(--shadow-card);
}
.form-card h2 { font-size: 1.5rem; }
.form-card > p { color: var(--muted); }

.form-grid { display: grid; gap: 1.1rem; }
.field { display: grid; gap: 0.4rem; }
.field label {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--navy-700);
}
.field .optional { color: var(--muted); font-weight: 500; }
.field input,
.field textarea {
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--text);
  padding: 0.75rem 0.9rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-btn);
  background: var(--white);
  width: 100%;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.field textarea { resize: vertical; min-height: 130px; }
.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--blue-500);
  box-shadow: 0 0 0 3px rgba(45, 111, 227, 0.18);
}
.field input:user-invalid,
.field textarea:user-invalid { border-color: #C0392B; }

.form-note { font-size: 0.85rem; color: var(--muted); margin: 0; }
.form-status {
  margin: 0;
  padding: 0.8rem 1rem;
  border-radius: var(--radius-btn);
  font-size: 0.95rem;
  display: none;
}
.form-status.is-error {
  display: block;
  background: #FDECEA;
  color: #9B2C20;
  border: 1px solid #F5C6C0;
}
.form-status.is-success {
  display: block;
  background: #E8F6EC;
  color: #1E6B36;
  border: 1px solid #BFE6C9;
}

/* Email / direct contact card */
.contact-extra {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin-top: 1.8rem;
}
@media (max-width: 700px) { .contact-extra { grid-template-columns: 1fr; } }
.contact-extra .card h3 { display: flex; align-items: center; gap: 0.6rem; }
.contact-extra .card .icon-badge { width: 44px; height: 44px; }
.contact-extra .card .icon-badge svg { width: 22px; height: 22px; }
.contact-extra a { font-weight: 600; word-break: break-word; }
.contact-extra .soon {
  display: inline-block;
  margin-top: 0.4rem;
  font-size: 0.82rem;
  font-family: var(--font-head);
  font-weight: 600;
  color: var(--muted);
  background: var(--sky-100);
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  background: var(--navy-900);
  color: rgba(255, 255, 255, 0.78);
  padding-block: clamp(3rem, 6vw, 4.5rem) 0;
  font-size: 0.95rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.2fr;
  gap: 2rem;
}
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }

.footer-brand .logo { margin-bottom: 0.9rem; }
.footer-brand .logo-img { height: 40px; }
.footer-brand p { max-width: 36ch; color: rgba(255, 255, 255, 0.7); }

.footer-col h4 {
  color: var(--white);
  font-size: 0.92rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}
.footer-col ul { list-style: none; display: grid; gap: 0.6rem; }
.footer-col a { color: rgba(255, 255, 255, 0.78); }
.footer-col a:hover { color: var(--white); }

.footer-contact a { color: rgba(255, 255, 255, 0.85); word-break: break-word; }
.footer-contact .soon-line {
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.6);
  margin-top: 0.6rem;
}

.social {
  display: flex;
  gap: 0.6rem;
  margin-top: 1.1rem;
  list-style: none;
}
.social a {
  width: 40px; height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--white);
  transition: background 0.15s ease;
}
.social a:hover { background: var(--blue-600); }
.social svg { width: 19px; height: 19px; }

.footer-bottom {
  margin-top: clamp(2.5rem, 5vw, 3.5rem);
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-block: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.5rem;
  justify-content: space-between;
  align-items: center;
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.6);
}
.footer-bottom p { margin: 0; }
.footer-bottom .legal-links { display: flex; gap: 1.2rem; }
.footer-bottom a { color: rgba(255, 255, 255, 0.7); }
.footer-bottom a:hover { color: var(--white); }

/* ==========================================================================
   Scroll-reveal (disabled under prefers-reduced-motion via JS + CSS guard)
   ========================================================================== */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s cubic-bezier(0.22, 0.61, 0.36, 1),
              transform 0.7s cubic-bezier(0.22, 0.61, 0.36, 1);
  will-change: opacity, transform;
}
.reveal.is-visible {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ==========================================================================
   Hero v2 entrance animations (pure CSS, run without JS)
   ========================================================================== */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeInOverlay {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes slideUpDialog {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}
.animate-fade-in-up {
  opacity: 0;
  animation: fadeInUp 0.6s ease-out forwards;
}
@media (prefers-reduced-motion: reduce) {
  .animate-fade-in-up {
    opacity: 1;
    animation: none;
  }
  .hero2-panel { animation: none; }
  .hero2-dialog { animation: none; }
}


/* ==========================================================================
   Rotating word in hero headline (index.html, JS-driven)
   ========================================================================== */
.word-rotate {
  display: inline-flex;
  vertical-align: bottom;
}
.word-rotate__stage {
  display: inline-block;
  position: relative;
  overflow: hidden;
  line-height: 1.08;
  vertical-align: bottom;
  transition: width 0.35s ease;
  white-space: nowrap;
}
.word-rotate__char {
  display: inline-block;
  color: var(--blue-600); /* fallback before clip support */
  will-change: transform, opacity;
  transition: transform 0.4s cubic-bezier(.2, .8, .2, 1), opacity 0.4s cubic-bezier(.2, .8, .2, 1);
}
/* Each char is its own inline-block, so the parent's background-clip:text
   gradient does not propagate through - apply the gradient per character. */
@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  .word-rotate__char {
    background: linear-gradient(90deg, var(--navy-900), var(--blue-600), var(--blue-500));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
  }
}
@media (prefers-reduced-motion: reduce) {
  .word-rotate__stage { transition: none; }
  .word-rotate__char { transition: none; }
}

/* Utility */
.text-center { text-align: center; }
.mt-2 { margin-top: 2rem; }
.lead { font-size: 1.12rem; color: var(--muted); }


/* ==========================================================================
   Services bento grid (services.html) - on-brand, signature per-tile motion
   ========================================================================== */
.bento {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: minmax(190px, auto);
  gap: 1.25rem;
  align-items: stretch;
}
.bento-tile {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  padding: 1.5rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  background: var(--white);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  outline: none;
  transition: transform 0.28s cubic-bezier(.2,.8,.2,1), box-shadow 0.28s ease, border-color 0.28s ease;
}
.bento-tile:hover,
.bento-tile:focus-visible {
  transform: translateY(-5px);
  box-shadow: var(--shadow-card-hover);
  border-color: transparent;
}
.bento-tile:focus-visible { outline: 2px solid var(--blue-600); outline-offset: 3px; }
.bento-tile--hero { grid-column: span 2; grid-row: span 2; background: linear-gradient(150deg, var(--navy-900), var(--navy-700)); border-color: transparent; color: #fff; }
.bento-tile--wide { grid-column: span 2; }
.bento-tile--full { grid-column: span 4; }
.bento-tile--tint { background: var(--sky-100); border-color: transparent; }

.bento-ic {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: 12px; flex: 0 0 auto;
  background: var(--sky-100); color: var(--blue-600);
}
.bento-ic svg { width: 22px; height: 22px; }
.bento-tile--hero .bento-ic { background: rgba(255,255,255,0.14); color: #fff; }

.bento-title { font-family: var(--font-head); font-weight: 700; font-size: 1.16rem; line-height: 1.22; margin: 0; color: var(--navy-900); }
.bento-tile--hero .bento-title { font-size: 1.5rem; color: #fff; }
.bento-desc { font-size: 0.95rem; line-height: 1.55; color: var(--muted); margin: 0; }
.bento-tile--hero .bento-desc { color: rgba(255,255,255,0.82); max-width: 46ch; }

/* Hero bullets on dark */
.bento-tile--hero .service-bullets { margin-top: auto; }
.bento-tile--hero .service-bullets li { color: rgba(255,255,255,0.92); }
.bento-tile--hero .service-bullets svg { color: #7FB0FF; }

/* 1) Featured: cycling category chips */
.cat-demo { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.cat-chip {
  font-size: 0.78rem; font-weight: 600; padding: 0.28rem 0.62rem; border-radius: 999px;
  background: rgba(255,255,255,0.1); color: rgba(255,255,255,0.7);
  transition: background 0.3s ease, color 0.3s ease, transform 0.3s ease;
}
.cat-chip.is-on { background: #fff; color: var(--navy-900); transform: translateY(-1px); }

/* 2) Reconciliation: match rows + drawn tick */
.recon-demo { margin-top: auto; display: flex; flex-direction: column; gap: 0.4rem; max-width: 300px; }
.recon-row { display: flex; justify-content: space-between; gap: 1rem; font-size: 0.85rem; padding: 0.45rem 0.7rem; border-radius: 8px; background: var(--sky-100); color: var(--text); }
.recon-row b { font-variant-numeric: tabular-nums; }
.recon-tick { display: inline-flex; align-items: center; gap: 0.4rem; font-size: 0.82rem; font-weight: 600; color: var(--blue-600); }
.recon-tick svg { width: 18px; height: 18px; }
.tick-path { fill: none; stroke: var(--blue-600); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 30; stroke-dashoffset: 30; }
.in-view .tick-path { transition: stroke-dashoffset 0.6s ease 0.25s; stroke-dashoffset: 0; }

/* 3) AP/AR: count-up cards */
.apar-demo { margin-top: auto; display: flex; gap: 0.75rem; }
.apar-card { flex: 1; padding: 0.7rem 0.85rem; border-radius: 10px; background: #fff; border: 1px solid var(--border); }
.apar-label { display: block; font-size: 0.74rem; color: var(--muted); margin-bottom: 0.2rem; }
.apar-num { font-family: var(--font-head); font-weight: 800; font-size: 1.4rem; line-height: 1; font-variant-numeric: tabular-nums; }
.apar-card--in .apar-num { color: var(--blue-600); }
.apar-card--out .apar-num { color: var(--navy-700); }

/* 4) Payroll: reveal list on hover / focus / tap */
.bento-tile--reveal { cursor: pointer; }
.bento-reveal-list { max-height: 0; opacity: 0; overflow: hidden; margin: 0; transition: max-height 0.4s ease, opacity 0.3s ease, margin 0.3s ease; }
.bento-tile--reveal:hover .bento-reveal-list,
.bento-tile--reveal:focus-within .bento-reveal-list,
.bento-tile--reveal.is-open .bento-reveal-list { max-height: 260px; opacity: 1; margin-top: 0.2rem; }
.bento-hint { margin-top: auto; font-size: 0.78rem; font-weight: 500; color: var(--blue-600); transition: opacity 0.25s ease; }
.bento-tile--reveal:hover .bento-hint,
.bento-tile--reveal:focus-within .bento-hint,
.bento-tile--reveal.is-open .bento-hint { opacity: 0; }

/* 5) GST/BAS: expandable compliance note */
.bas-details { margin-top: auto; border-top: 1px solid var(--border); padding-top: 0.6rem; }
.bas-details summary { display: flex; align-items: center; justify-content: space-between; gap: 0.5rem; cursor: pointer; font-weight: 600; font-size: 0.86rem; color: var(--blue-600); list-style: none; }
.bas-details summary::-webkit-details-marker { display: none; }
.bas-details .chev { width: 16px; height: 16px; flex: 0 0 auto; transition: transform 0.25s ease; }
.bas-details[open] .chev { transform: rotate(180deg); }
.bas-details .compliance-note { margin: 0.55rem 0 0; padding: 0.7rem 0.85rem; font-size: 0.8rem; line-height: 1.5; }

/* 6) Management reports: animated bar chart */
.bento-rep-head { display: flex; align-items: flex-start; gap: 0.9rem; }
.rep-chart { margin-top: 1rem; display: flex; align-items: flex-end; gap: 0.6rem; height: 96px; }
.rep-bar { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; }
.rep-fill { width: 100%; max-width: 40px; height: 0; border-radius: 6px 6px 0 0; background: linear-gradient(180deg, var(--blue-500), var(--blue-600)); transition: height 0.7s cubic-bezier(.2,.8,.2,1); transition-delay: var(--d, 0s); }
.in-view .rep-fill { height: var(--h, 40px); }
.rep-bar i { margin-top: 0.4rem; font-size: 0.68rem; font-style: normal; color: var(--muted); }
.rep-bar:hover .rep-fill { filter: brightness(1.08); }

/* Responsive */
@media (max-width: 900px) {
  .bento { grid-template-columns: repeat(2, 1fr); grid-auto-rows: minmax(180px, auto); }
  .bento-tile--hero { grid-column: span 2; grid-row: auto; }
  .bento-tile--wide { grid-column: span 1; }
  .bento-tile--full { grid-column: span 2; }
}
/* Mobile: a real 2-column bento (not a single stacked column) */
@media (max-width: 560px) {
  .bento { grid-template-columns: repeat(2, 1fr); gap: 0.8rem; grid-auto-rows: minmax(140px, auto); }
  .bento-tile { padding: 1.15rem; gap: 0.55rem; }
  .bento-tile--hero { grid-column: span 2; grid-row: auto; }
  .bento-tile--wide { grid-column: span 2; }
  .bento-tile--full { grid-column: span 2; }
  #payroll, #gst-bas { grid-column: span 1; }      /* compact 2-up row for rhythm */
  .bento-tile--hero .bento-title { font-size: 1.3rem; }
  .bento-title { font-size: 1.05rem; }
  .apar-demo { gap: 0.5rem; }
  .apar-num { font-size: 1.18rem; }
  #payroll .bento-hint { font-size: 0.72rem; }
}
/* Touch feedback (no hover on phones) */
.bento-tile:active { transform: scale(0.985); }
@media (hover: none) {
  .bento-tile--reveal:active { box-shadow: var(--shadow-card-hover); }
}

/* Reduced motion: keep everything visible, drop the animation */
@media (prefers-reduced-motion: reduce) {
  .bento-tile, .cat-chip, .rep-fill, .bento-reveal-list, .bas-details .chev { transition: none !important; }
  .in-view .tick-path { transition: none; stroke-dashoffset: 0; }
}


/* ==========================================================================
   Software badges, brand colours (works-with strips, home + services)
   ========================================================================== */
.hero2-wm { display: inline-flex; align-items: center; gap: 0.45rem; }
.hero2-wm::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: currentColor; flex: 0 0 auto; }
.hero2-wm--xero { color: #13B5EA; }
.hero2-wm--myob { color: #6100A5; }
.hero2-wm--qb   { color: #2CA01C; }

.software-badges .sb { display: inline-flex; align-items: center; gap: 0.55rem; transition: transform 0.18s ease, box-shadow 0.18s ease; }
.software-badges .sb::before { content: ""; width: 11px; height: 11px; border-radius: 50%; background: currentColor; flex: 0 0 auto; }
.software-badges .sb:hover { transform: translateY(-2px); box-shadow: var(--shadow-card); }
.software-badges .sb--xero { color: #13B5EA; }
.software-badges .sb--myob { color: #6100A5; }
.software-badges .sb--qb   { color: #2CA01C; }
