/* ============================================================
   WhistleIQ — Design Tokens & Shared Styles
   Reference: Section 4 of Developer Brief
   ============================================================ */

/* Brand display font — used in the WhistleIQ wordmark only. */
@font-face {
  font-family: 'Designer';
  src: url('../fonts/Designer.woff2') format('woff2'),
       url('../fonts/Designer.otf')   format('opentype');
  font-display: swap;
  font-weight: 400 900;
  font-style: normal;
}

/* Self-hosted Inter + Manrope (Google Fonts woff2 latin subset) */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/inter-400.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../fonts/inter-500.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../fonts/inter-600.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/inter-700.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url('../fonts/inter-800.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/manrope-400.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../fonts/manrope-600.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/manrope-700.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url('../fonts/manrope-800.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  /* Brand palette */
  --color-primary: #AC94E2;        /* Primary purple */
  --color-primary-600: #8E73D1;
  --color-primary-700: #6F58B5;
  --color-ink: #372B54;            /* Deep purple / ink */
  --color-ink-2: #2A2142;
  --color-brand-purple: #74449A;   /* Matches the brand-mark background */
  --color-brand-purple-dk: #5B3479;
  --color-white: #FFFFFF;
  --color-lilac: #F5F1FF;          /* Soft lilac background */
  --color-lilac-2: #ECE4FB;
  --color-charcoal: #111827;       /* Body text */
  --color-grey: #6B7280;           /* Muted grey */
  --color-grey-light: #E5E7EB;
  --color-grey-bg: #F9FAFB;
  --color-success: #16A34A;
  --color-warning: #F59E0B;
  --color-error: #DC2626;

  /* Typography */
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, system-ui, sans-serif;
  --font-display: 'Manrope', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  /* Designer is reserved exclusively for the WhistleIQ wordmark in the logo. Do not apply to body or headings. */
  --font-wordmark: 'Designer', 'Manrope', 'Inter', system-ui, sans-serif;

  /* Spacing & layout */
  --container: 1200px;
  --radius-sm: 8px;
  --radius: 12px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --shadow-sm: 0 1px 2px rgba(55, 43, 84, 0.05);
  --shadow: 0 4px 16px rgba(55, 43, 84, 0.08);
  --shadow-lg: 0 12px 40px rgba(55, 43, 84, 0.12);
}

/* ===========================================================
   Dark theme — overrides the design tokens above.
   Triggered by [data-theme="dark"] on <html>, which is set by
   the inline script in the <head> of each page (avoids FOUC).
   =========================================================== */
[data-theme="dark"] {
  /* Surface tokens: "white" becomes a dark surface */
  --color-white: #181522;          /* primary page background */
  --color-grey-bg: #221C30;        /* slightly raised surface */
  --color-lilac: #221C30;          /* tinted section background */
  --color-lilac-2: #2C2440;
  --color-grey-light: #3A2F50;     /* borders */

  /* Text tokens: charcoal/ink become light */
  --color-charcoal: #E6E1F1;       /* body text */
  --color-ink: #F4F1FB;            /* headings */
  --color-ink-2: #FFFFFF;          /* hover/pressed dark surfaces */
  --color-grey: #A099B5;           /* secondary text */

  /* Brand accents stay close to brand purple, but slightly brighter for contrast on dark */
  --color-primary-700: #B59BE6;
  --color-primary-600: #C5B0EE;

  /* Shadows almost invisible on dark, but keep a subtle depth cue */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.35);
  --shadow: 0 4px 16px rgba(0, 0, 0, 0.45);
  --shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.55);
}

/* Component-specific dark-mode tweaks where variables alone don't cut it */
[data-theme="dark"] .site-header {
  background: rgba(24, 21, 34, 0.92);
  border-bottom-color: #2C2440;
}
[data-theme="dark"] .hero {
  background:
    radial-gradient(80% 60% at 80% 0%, rgba(116, 68, 154, 0.32), transparent 60%),
    radial-gradient(60% 50% at 0% 100%, rgba(44, 36, 64, 0.6), transparent 60%),
    var(--color-white);
}
[data-theme="dark"] .trust-strip { background: #221C30; color: #E6E1F1; }
[data-theme="dark"] .card { background: #221C30; border-color: #3A2F50; }
[data-theme="dark"] .card-icon { background: #2C2440; color: var(--color-primary-700); }
[data-theme="dark"] .price-card { background: #221C30; border-color: #3A2F50; }
[data-theme="dark"] .audience-card { background: #221C30; border-color: #3A2F50; }
[data-theme="dark"] .btn-secondary { background: #221C30; color: #F4F1FB; border-color: #3A2F50; }
[data-theme="dark"] .btn-secondary:hover { border-color: #B59BE6; color: #F4F1FB; }
[data-theme="dark"] .btn-on-dark { background: var(--color-white); color: var(--color-ink); }
[data-theme="dark"] .nav-links a:hover,
[data-theme="dark"] .nav-links button:hover,
[data-theme="dark"] .nav-dropdown { background: #2C2440; }
[data-theme="dark"] .nav-dropdown { border-color: #3A2F50; }
[data-theme="dark"] .form input,
[data-theme="dark"] .form select,
[data-theme="dark"] .form textarea {
  background: #181522; color: #E6E1F1; border-color: #3A2F50;
}
[data-theme="dark"] .mockup {
  background: linear-gradient(135deg, #2C2440, #221C30);
}
[data-theme="dark"] .mockup-window { background: #181522; border-color: #3A2F50; }
[data-theme="dark"] .mockup-bar { background: #221C30; border-bottom-color: #3A2F50; }
[data-theme="dark"] .mockup-row { background: #221C30; border-color: #3A2F50; }
[data-theme="dark"] .mockup-body div[style*="color:var(--color-ink)"],
[data-theme="dark"] .mockup-body strong[style*="color:var(--color-ink)"] { color: #F4F1FB !important; }
[data-theme="dark"] .pill { background: #2C2440; color: #C5B0EE; }
[data-theme="dark"] .pill-ok { background: #14361E; color: #6EE7A0; }
[data-theme="dark"] .pill-warn { background: #3D2A0A; color: #FBBF24; }
[data-theme="dark"] .t-table th { background: #2C2440; color: #F4F1FB; }
[data-theme="dark"] .t-table td { border-bottom-color: #3A2F50; }

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--color-charcoal);
  background: var(--color-white);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden; /* safety net against any element overshooting viewport */
}

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

a { color: var(--color-primary-700); text-decoration: none; }
a:hover { color: var(--color-ink); }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  color: var(--color-ink);
  margin: 0 0 .5em;
  line-height: 1.15;
  letter-spacing: 0;
}
/* Manrope on h1/h2 for display character; Inter on h3/h4 for in-body legibility. */
h1 { font-size: clamp(2rem, 4vw + 1rem, 3.5rem); font-weight: 700; letter-spacing: -0.02em; }
h2 { font-size: clamp(1.6rem, 2vw + 1rem, 2.4rem); font-weight: 700; letter-spacing: -0.015em; }
h3 { font-family: var(--font-sans); font-size: 1.25rem; font-weight: 700; line-height: 1.3; letter-spacing: -0.005em; }
h4 { font-family: var(--font-sans); font-size: 1.05rem; font-weight: 700; line-height: 1.35; }

p { margin: 0 0 1em; }
.lead { font-size: 1.15rem; color: var(--color-grey); }
.eyebrow {
  font-size: .8rem; font-weight: 600; letter-spacing: .12em;
  text-transform: uppercase; color: var(--color-primary-700);
}

/* ----- Layout ----- */
.container {
  width: 100%; max-width: var(--container);
  margin: 0 auto; padding: 0 1.25rem;
}
section { padding: 4.5rem 0; }
@media (max-width: 720px) { section { padding: 3rem 0; } }

.bg-lilac { background: var(--color-lilac); }
.bg-ink { background: var(--color-ink); color: var(--color-white); }
.bg-ink h1, .bg-ink h2, .bg-ink h3, .bg-ink h4 { color: var(--color-white); }
.bg-grey { background: var(--color-grey-bg); }

.grid { display: grid; gap: 1.5rem; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 960px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

/* ----- Buttons ----- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: .5rem;
  padding: .85rem 1.5rem;
  font-weight: 600; font-size: .95rem;
  border-radius: var(--radius);
  border: 1.5px solid transparent;
  cursor: pointer; transition: all .15s ease;
  white-space: nowrap;
}
.btn-primary {
  background: var(--color-brand-purple);
  color: var(--color-white);
}
.btn-primary:hover { background: var(--color-brand-purple-dk); color: var(--color-white); transform: translateY(-1px); box-shadow: var(--shadow); }
.btn-secondary {
  background: var(--color-white);
  color: var(--color-ink);
  border-color: var(--color-grey-light);
}
.btn-secondary:hover { border-color: var(--color-ink); color: var(--color-ink); }
.btn-ghost {
  background: transparent; color: var(--color-ink);
}
.btn-ghost:hover { background: var(--color-lilac); }
.btn-on-dark {
  background: var(--color-white); color: var(--color-ink);
}
.btn-on-dark:hover { background: var(--color-lilac); transform: translateY(-1px); }

/* ----- Header / Nav ----- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.92);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--color-grey-light);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  padding: .9rem 0;
}
.nav-logo {
  display: inline-flex; align-items: center;
  color: var(--color-ink);
}
.nav-logo:hover { color: var(--color-ink); }
.nav-logo img { height: 36px; width: auto; display: block; }
.nav-logo .logo-horizontal { height: 36px; }
.nav-logo .logo-icon { height: 32px; }
.nav-links {
  display: flex; align-items: center; gap: .25rem;
  list-style: none; margin: 0; padding: 0;
}
.nav-links > li { position: relative; }
.nav-links a, .nav-links button {
  display: inline-flex; align-items: center; gap: .25rem;
  padding: .55rem .85rem;
  font-size: .92rem; font-weight: 500;
  color: var(--color-charcoal); background: transparent; border: 0; cursor: pointer;
  border-radius: var(--radius-sm);
}
.nav-links a:hover, .nav-links button:hover { color: var(--color-ink); background: var(--color-lilac); }
.nav-links a.is-active { color: var(--color-ink); font-weight: 600; }
.nav-cta { display: flex; align-items: center; gap: .5rem; }

/* Theme toggle button — sun/moon icon */
.theme-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px;
  padding: 0; margin-right: .25rem;
  background: transparent; border: 1px solid var(--color-grey-light);
  border-radius: 999px; cursor: pointer;
  color: var(--color-ink);
  transition: background .15s ease, border-color .15s ease;
}
.theme-toggle:hover { background: var(--color-lilac); border-color: var(--color-ink); }
.theme-toggle svg { width: 18px; height: 18px; display: block; }
/* Show the right icon for the active theme */
.theme-toggle .icon-moon { display: none; }
.theme-toggle .icon-sun { display: block; }
[data-theme="dark"] .theme-toggle .icon-sun { display: none; }
[data-theme="dark"] .theme-toggle .icon-moon { display: block; }
.nav-mobile-toggle {
  display: none; background: transparent; border: 0; padding: .5rem; cursor: pointer; color: var(--color-ink);
}
.nav-dropdown {
  position: absolute; top: calc(100% + 4px); left: 0;
  background: var(--color-white);
  border: 1px solid var(--color-grey-light);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  min-width: 240px; padding: .5rem;
  display: none;
}
.nav-links > li:hover .nav-dropdown,
.nav-links > li:focus-within .nav-dropdown { display: block; }
.nav-dropdown a {
  display: block; padding: .65rem .85rem;
  border-radius: var(--radius-sm); font-weight: 500;
}

@media (max-width: 980px) {
  .nav-links {
    display: none;
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch;
    background: var(--color-white);
    border-bottom: 1px solid var(--color-grey-light);
    padding: .5rem 1.25rem 1.25rem;
    gap: 0;
    max-height: calc(100vh - 60px);
    overflow-y: auto;
  }
  .nav-links.is-open { display: flex; }
  .nav-links a, .nav-links button { padding: .8rem .25rem; }
  .nav-dropdown { position: static; box-shadow: none; border: 0; padding: 0 0 .5rem 1rem; display: block; }
  .nav-mobile-toggle { display: inline-flex; }
  .nav-cta .btn-secondary { display: none; }

  /* Mobile-only CTAs that live inside the slide-down menu */
  .nav-mobile-cta {
    display: flex; flex-direction: column; gap: .5rem;
    margin-top: .75rem; padding-top: .75rem;
    border-top: 1px solid var(--color-grey-light);
  }
  .nav-mobile-cta .btn { width: 100%; padding: .85rem 1rem; }
}
@media (min-width: 981px) {
  .nav-mobile-cta { display: none !important; }
}

/* On phones, also drop the header CTA bar entirely so the bar can't overflow.
   The CTAs are still reachable from the burger menu. */
@media (max-width: 720px) {
  .nav-cta { display: none; }
}

/* ----- Hero ----- */
.hero {
  position: relative;
  background:
    radial-gradient(80% 60% at 80% 0%, rgba(172, 148, 226, 0.35), transparent 60%),
    radial-gradient(60% 50% at 0% 100%, rgba(245, 241, 255, 0.9), transparent 60%),
    var(--color-white);
  padding: 5.5rem 0 4rem;
  overflow: hidden;
}
.hero h1 { max-width: 18ch; }
.hero .lead { max-width: 56ch; font-size: 1.2rem; color: var(--color-charcoal); }
.hero-cta { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.5rem; }
.hero-badges { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.5rem; align-items: center; }
.app-badge { height: 44px; }

.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 3rem; align-items: center; }
@media (max-width: 980px) { .hero-grid { grid-template-columns: 1fr; gap: 2rem; } }

/* Right-side stack on the home hero: logo on top, mockup below */
.hero-right {
  display: flex; flex-direction: column; align-items: center;
  gap: 1.75rem;
}
.hero-right-logo {
  width: 220px; height: auto;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}
@media (max-width: 980px) {
  .hero-right { align-items: stretch; }
  .hero-right-logo { align-self: center; width: 180px; }
}

/* ----- Cards ----- */
.card {
  background: var(--color-white);
  border: 1px solid var(--color-grey-light);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  box-shadow: var(--shadow-sm);
  transition: transform .15s ease, box-shadow .15s ease;
}
.card:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.card-icon {
  width: 44px; height: 44px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--color-lilac); color: var(--color-primary-700);
  border-radius: 12px;
  margin-bottom: 1rem;
}
.card h3 { font-size: 1.15rem; margin-bottom: .35rem; }
.card p { color: var(--color-grey); margin: 0; font-size: .95rem; }

/* ----- Trust strip ----- */
.trust-strip {
  background: var(--color-lilac);
  padding: 1.25rem 0;
  text-align: center;
  font-weight: 500; color: var(--color-ink);
}

/* ----- Pricing ----- */
.price-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; align-items: stretch; }
@media (max-width: 1100px) { .price-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .price-grid { grid-template-columns: 1fr; } }
.price-card {
  background: var(--color-white);
  border: 1px solid var(--color-grey-light);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  display: flex; flex-direction: column;
}
.price-card.is-featured {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 4px rgba(172, 148, 226, 0.15);
  position: relative;
}
.price-card .tier { font-size: .85rem; color: var(--color-primary-700); font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.price-card .amount { font-size: 2rem; font-weight: 700; color: var(--color-ink); margin: .25rem 0 .25rem; }
.price-card .audience { color: var(--color-grey); font-size: .92rem; margin-bottom: 1rem; }
.price-card ul { list-style: none; padding: 0; margin: 0 0 1.5rem; }
.price-card li {
  position: relative; padding-left: 1.5rem; margin-bottom: .5rem; font-size: .92rem;
}
.price-card li::before {
  content: ""; position: absolute; left: 0; top: .55em;
  width: 14px; height: 8px;
  border-left: 2px solid var(--color-success);
  border-bottom: 2px solid var(--color-success);
  transform: rotate(-45deg);
}
.price-card .note { font-size: .82rem; color: var(--color-grey); margin-top: auto; padding-top: .75rem; border-top: 1px dashed var(--color-grey-light); }
.price-card .btn { margin-top: 1rem; width: 100%; }

/* ----- Mockup placeholder ----- */
.mockup {
  position: relative;
  background: linear-gradient(135deg, var(--color-lilac), var(--color-lilac-2));
  border-radius: var(--radius-xl);
  padding: 1.25rem;
  box-shadow: var(--shadow-lg);
}
.mockup-window {
  background: var(--color-white);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--color-grey-light);
}
.mockup-bar {
  display: flex; gap: .35rem; padding: .65rem .85rem;
  background: var(--color-grey-bg); border-bottom: 1px solid var(--color-grey-light);
}
.mockup-bar span {
  width: 10px; height: 10px; border-radius: 50%; background: var(--color-grey-light);
}
.mockup-body { padding: 1.25rem; }
.mockup-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: .75rem .9rem;
  border: 1px solid var(--color-grey-light);
  border-radius: 10px;
  margin-bottom: .65rem;
  font-size: .9rem;
}
.mockup-row .pill {
  font-size: .72rem; font-weight: 600; padding: .15rem .55rem;
  border-radius: 999px; background: var(--color-lilac); color: var(--color-primary-700);
}
.mockup-row .pill-ok { background: #DCFCE7; color: #166534; }   /* darker green: 4.6:1 on #DCFCE7 */
.mockup-row .pill-warn { background: #FEF3C7; color: #78350F; } /* darker amber: 7.5:1 on #FEF3C7 */

/* ----- Audience tabs / segments ----- */
.audience-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
@media (max-width: 900px) { .audience-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .audience-grid { grid-template-columns: 1fr; } }
.audience-card {
  background: var(--color-white);
  border: 1px solid var(--color-grey-light);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
}
.audience-card .role {
  font-size: .8rem; font-weight: 700; letter-spacing: .1em;
  text-transform: uppercase; color: var(--color-primary-700); margin-bottom: .5rem;
}

/* ----- Form ----- */
.form { display: grid; gap: 1rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 640px) { .form-row { grid-template-columns: 1fr; } }
.form label { font-size: .9rem; font-weight: 600; color: var(--color-ink); display: block; margin-bottom: .35rem; }
.form input, .form select, .form textarea {
  width: 100%;
  padding: .75rem .9rem;
  border: 1px solid var(--color-grey-light);
  border-radius: var(--radius-sm);
  font: inherit; color: inherit; background: var(--color-white);
}
.form input:focus, .form select:focus, .form textarea:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(172, 148, 226, 0.25);
}
.form textarea { min-height: 130px; resize: vertical; }
.form .consent { font-size: .85rem; color: var(--color-grey); }
.form .consent input { width: auto; margin-right: .5rem; }

/* ----- Footer ----- */
.site-footer {
  background: var(--color-brand-purple);
  color: rgba(255,255,255,.78);
  padding: 3.5rem 0 1.5rem;
}
.site-footer h4 { color: var(--color-white); font-size: .95rem; letter-spacing: .04em; margin-bottom: .85rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 2rem; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 540px) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin: .35rem 0; }
.site-footer a { color: rgba(255,255,255,.75); font-size: .92rem; }
.site-footer a:hover { color: var(--color-white); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.12);
  margin-top: 2.5rem; padding-top: 1.5rem;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem;
  font-size: .85rem;
}

/* Full stacked logo in the footer brand column */
.footer-logo {
  margin-bottom: 1.25rem;
}
.footer-logo img {
  width: 160px; height: auto;
  border-radius: var(--radius);
}

/* ----- Utility ----- */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; } .mt-1 { margin-top: .5rem; } .mt-2 { margin-top: 1rem; } .mt-3 { margin-top: 1.5rem; } .mt-4 { margin-top: 2.5rem; }
.mb-0 { margin-bottom: 0; } .mb-1 { margin-bottom: .5rem; } .mb-2 { margin-bottom: 1rem; } .mb-3 { margin-bottom: 1.5rem; } .mb-4 { margin-bottom: 2.5rem; }
.max-w-prose { max-width: 65ch; }
.divider { height: 1px; background: var(--color-grey-light); border: 0; margin: 2.5rem 0; }

/* Tables (governance / pricing notes) */
.t-table { width: 100%; border-collapse: collapse; }
.t-table th, .t-table td {
  text-align: left; padding: .85rem 1rem;
  border-bottom: 1px solid var(--color-grey-light);
  vertical-align: top; font-size: .92rem;
}
.t-table th { background: var(--color-lilac); color: var(--color-ink); font-weight: 600; }

/* Final CTA section */
.final-cta {
  background: linear-gradient(135deg, var(--color-brand-purple), var(--color-brand-purple-dk));
  color: var(--color-white);
  border-radius: var(--radius-xl);
  padding: 3rem;
  text-align: center;
}
.final-cta h2 { color: var(--color-white); }
.final-cta p { color: rgba(255,255,255,.85); }

/* Hero badges (Built in Australia, etc) */
.chip {
  display: inline-flex; align-items: center; gap: .4rem;
  padding: .35rem .7rem;
  background: var(--color-white);
  border: 1px solid var(--color-grey-light);
  border-radius: 999px;
  font-size: .82rem; color: var(--color-ink);
}

/* Section heading helper */
.section-head { max-width: 720px; margin: 0 auto 2.5rem; text-align: center; }

/* Print */
@media print {
  .site-header, .site-footer, .nav { display: none; }
}
