/* =========================================================
   Crux Education — shared stylesheet (v3)
   - Plain backgrounds (BDA style-guide friendly), Crux palette
   - Light + dark themes: follows the device setting, or the
     visitor's choice from the toggle (saved by /theme.js)
   - body.advisory switches to the Not-Broken Advisory look
   Fonts load via <link> tags in each page's <head>.
   ========================================================= */

/* ---------- Crux Education: light ---------- */
:root {
  /* Brand palette */
  --plum: #6C464F;
  --mauve: #9E768F;
  --lavender: #9FA4C4;
  --blue-grey: #B3CDD1;
  --mint: #C7F0BD;

  --bg: #fbf7f2;
  --surface: #fffdfa;
  --surface-2: #f7f1ef;
  --surface-3: #efe5e8;
  --text: #2b1f24;
  --text-muted: #5e4c54;
  --ink: var(--plum);            /* borders, links, accents */
  --line: #e4d8dc;               /* soft dividers */
  --shadow-color: var(--plum);

  /* Highlighter tints for headings */
  --hl-mint: #d4f5cc;
  --hl-blue: #cfe1e4;
  --hl-lavender: #dcdeee;
  --hl-mauve: #ecdde6;

  --btn-primary-bg: var(--mint);
  --btn-primary-text: #2b1f24;
  --btn-secondary-bg: #dcdeee;
  --btn-secondary-text: #2b1f24;

  --card-shadow: 5px 5px 0 var(--shadow-color);
  --card-shadow-sm: 3px 3px 0 var(--shadow-color);
  --radius: 12px;
  --logo-tile: transparent;
  --gold: var(--mauve);        /* step-number border on Crux pages */
  --gold-text: var(--plum);

  color-scheme: light;
}

/* ---------- Crux Education: dark ---------- */
:root[data-theme="dark"] {
  --bg: #1b1417;
  --surface: #251c20;
  --surface-2: #2d2328;
  --surface-3: #372b31;
  --text: #f4ece9;
  --text-muted: #cdbcc4;
  --ink: #d4b3c7;
  --line: #45363d;
  --shadow-color: #0b0809;

  --hl-mint: #34503a;
  --hl-blue: #2c474c;
  --hl-lavender: #393c58;
  --hl-mauve: #4b3244;

  --btn-primary-bg: var(--mint);
  --btn-primary-text: #1b1417;
  --btn-secondary-bg: #393c58;
  --btn-secondary-text: #f4ece9;

  --logo-tile: #fbf7f2;
  --gold-text: #d4b3c7;
  color-scheme: dark;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #1b1417;
    --surface: #251c20;
    --surface-2: #2d2328;
    --surface-3: #372b31;
    --text: #f4ece9;
    --text-muted: #cdbcc4;
    --ink: #d4b3c7;
    --line: #45363d;
    --shadow-color: #0b0809;

    --hl-mint: #34503a;
    --hl-blue: #2c474c;
    --hl-lavender: #393c58;
    --hl-mauve: #4b3244;

    --btn-primary-bg: var(--mint);
    --btn-primary-text: #1b1417;
    --btn-secondary-bg: #393c58;
    --btn-secondary-text: #f4ece9;

    --logo-tile: #fbf7f2;
    --gold-text: #d4b3c7;
    color-scheme: dark;
  }
}

/* ---------- Not-Broken Advisory: light ---------- */
body.advisory {
  --navy: #111e38;
  --gold: #D4AF37;
  --gold-text: #86680f;

  --bg: #f5f7fa;
  --surface: #ffffff;
  --surface-2: #f8fafc;
  --surface-3: #eef2f7;
  --text: #111e38;
  --text-muted: #475569;
  --ink: #111e38;
  --line: #dfe5ee;
  --shadow-color: rgba(17, 30, 56, 0.08);

  --btn-primary-bg: #111e38;
  --btn-primary-text: #ffffff;
  --btn-secondary-bg: transparent;
  --btn-secondary-text: #111e38;

  --card-shadow: 0 1px 2px rgba(17, 30, 56, 0.06), 0 8px 24px rgba(17, 30, 56, 0.06);
  --card-shadow-sm: var(--card-shadow);
  --radius: 10px;
  --logo-mark: #111e38;
}

/* ---------- Not-Broken Advisory: dark ---------- */
:root[data-theme="dark"] body.advisory {
  --gold-text: #e3c55e;
  --bg: #0b1322;
  --surface: #121c30;
  --surface-2: #17233a;
  --surface-3: #1d2b45;
  --text: #e9eef6;
  --text-muted: #a9b5c8;
  --ink: #cdd6e4;
  --line: #26344f;
  --btn-primary-bg: #D4AF37;
  --btn-primary-text: #0b1322;
  --btn-secondary-text: #e9eef6;
  --card-shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 8px 24px rgba(0, 0, 0, 0.25);
  --logo-mark: #e9eef6;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) body.advisory {
    --gold-text: #e3c55e;
    --bg: #0b1322;
    --surface: #121c30;
    --surface-2: #17233a;
    --surface-3: #1d2b45;
    --text: #e9eef6;
    --text-muted: #a9b5c8;
    --ink: #cdd6e4;
    --line: #26344f;
    --btn-primary-bg: #D4AF37;
    --btn-primary-text: #0b1322;
    --btn-secondary-text: #e9eef6;
    --card-shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 8px 24px rgba(0, 0, 0, 0.25);
    --logo-mark: #e9eef6;
  }
}

/* =========================================================
   Base
   ========================================================= */
* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body, button, input, textarea, select {
  font-family: 'Open Sans', Arial, sans-serif;
}

body {
  background: var(--bg);
  color: var(--text);
  font-size: 1.125rem;
  line-height: 1.7;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; }

a { color: var(--ink); text-underline-offset: 0.18em; }
a:hover { text-decoration-thickness: 2px; }

strong { font-weight: 700; }

/* No italics anywhere for body copy — harder for dyslexic readers */
em { font-style: normal; font-weight: 600; }

/* ---------- Accessibility helpers ---------- */
.skip-link {
  position: absolute;
  left: 1rem;
  top: -100px;
  z-index: 100;
  background: var(--btn-primary-bg);
  color: var(--btn-primary-text);
  border: 2px solid var(--ink);
  border-radius: 6px;
  padding: 0.4rem 1rem;
  font-weight: 700;
  text-decoration: none;
}
.skip-link:focus { top: 1rem; }

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

a:focus-visible,
button:focus-visible,
iframe:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 3px;
}

/* =========================================================
   Layout
   ========================================================= */
.container {
  max-width: 980px;
  margin: 0 auto;
  padding: 2.25rem 1.5rem 2.5rem;
}

header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.25rem 1.5rem;
  margin-bottom: 2.5rem;
  padding-bottom: 1.25rem;
  border-bottom: 2px solid var(--line);
}

.brand-container {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  text-decoration: none;
  color: var(--text);
}

.brand-logo {
  height: 56px;
  width: auto;
  display: block;
  object-fit: contain;
  background: var(--logo-tile);
  border-radius: 10px;
  padding: 2px;
}

.brand-title {
  font-weight: 700;
  font-size: 2.1rem;
  line-height: 1.1;
  color: var(--text);
  letter-spacing: -0.5px;
}

.header-tools {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

nav {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
}

nav a {
  font-weight: 700;
  font-size: 1rem;
  line-height: 1.5;
  color: var(--text);
  text-decoration: none;
  padding: 0.3rem 0.9rem;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: var(--surface);
  transition: background-color 0.15s ease, transform 0.15s ease;
}

nav a:hover,
nav a:focus-visible {
  background: var(--hl-mint);
  transform: translateY(-1px);
}

nav a[aria-current="page"] {
  background: var(--hl-mint);
  box-shadow: 2px 2px 0 var(--shadow-color);
}

/* Theme toggle */
.theme-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.4;
  color: var(--text);
  background: var(--surface-2);
  border: 2px solid var(--line);
  border-radius: 999px;
  padding: 0.3rem 0.8rem;
  cursor: pointer;
}
.theme-toggle:hover { border-color: var(--ink); }
.theme-toggle svg { width: 1.1em; height: 1.1em; }
.theme-toggle .icon-sun { display: none; }
.theme-toggle[aria-pressed="true"] .icon-sun { display: inline; }
.theme-toggle[aria-pressed="true"] .icon-moon { display: none; }

.page-flow {
  display: flex;
  flex-direction: column;
  gap: 2.25rem;
}

section[id], article[id] { scroll-margin-top: 1.5rem; }

/* =========================================================
   Section cards
   ========================================================= */
.hero-banner, .philosophy-banner, .pricing-section, .contact-section, .about-card {
  background: var(--surface);
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  padding: 2.2rem;
  box-shadow: var(--card-shadow);
}

.hero-banner {
  border-top-width: 8px;
}

.hero-heading, .about-card h1 {
  font-size: 2.3rem;
  font-weight: 700;
  line-height: 1.25;
  margin-bottom: 1.1rem;
  color: var(--text);
}

.about-card h1 {
  background: var(--hl-mint);
  display: inline-block;
  padding: 0 0.6rem;
  border-radius: 6px;
  margin-bottom: 1.5rem;
}

.hero-subtext {
  font-size: 1.2rem;
  line-height: 1.75;
  margin-bottom: 1.6rem;
}

.philosophy-banner h2, .pricing-section h2, .contact-section h2, .about-card h2 {
  font-size: 1.85rem;
  font-weight: 700;
  line-height: 1.35;
  margin-bottom: 1rem;
  background: var(--hl-blue);
  display: inline-block;
  padding: 0.05rem 0.6rem;
  border-radius: 6px;
  color: var(--text);
}

.about-card h2 {
  font-size: 1.6rem;
  margin-top: 1.8rem;
  margin-bottom: 0.8rem;
}
.about-card > h2:first-child { margin-top: 0; }

.pricing-section h2 { background: var(--hl-mint); }
.contact-section h2 { background: var(--hl-mauve); }

.hl-yellow, .hl-green { background: var(--hl-mint) !important; }
.hl-blue   { background: var(--hl-blue) !important; }
.hl-pink   { background: var(--hl-mauve) !important; }

p {
  font-size: 1.125rem;
  line-height: 1.75;
  margin-bottom: 1.1rem;
  color: var(--text);
}
p:last-child { margin-bottom: 0; }

.highlight-text {
  background: var(--hl-mint);
  padding: 0.05rem 0.4rem;
  border-radius: 4px;
  font-weight: 600;
}

/* Credentials strip */
.credentials-card {
  background: var(--surface-2);
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  padding: 1.4rem 1.6rem;
  box-shadow: var(--card-shadow-sm);
}

.credentials-card h2 {
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: 0.3rem;
}

.credentials-card p { font-size: 1rem; line-height: 1.65; }
.credentials-card a { font-weight: 700; }

/* =========================================================
   Buttons
   ========================================================= */
.cta-button-group { display: flex; gap: 1rem; flex-wrap: wrap; }
.section-cta { margin-top: 1.5rem; }

.btn-primary, .btn-secondary {
  font-weight: 700;
  font-size: 1.1rem;
  line-height: 1.5;
  text-decoration: none;
  padding: 0.7rem 1.6rem;
  border: 2px solid var(--ink);
  border-radius: 10px;
  box-shadow: 3px 3px 0 var(--shadow-color);
  display: inline-block;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  cursor: pointer;
}

.btn-small { font-size: 1rem; padding: 0.55rem 1.3rem; }

.btn-primary { background: var(--btn-primary-bg); color: var(--btn-primary-text); }
.btn-secondary { background: var(--btn-secondary-bg); color: var(--btn-secondary-text); }

.btn-primary:hover, .btn-primary:focus-visible,
.btn-secondary:hover, .btn-secondary:focus-visible {
  transform: translate(-2px, -2px);
  box-shadow: 5px 5px 0 var(--shadow-color);
}

/* =========================================================
   Services grid
   ========================================================= */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
}

.card {
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  padding: 1.5rem;
  background: var(--surface);
  box-shadow: var(--card-shadow-sm);
}

.card h3 {
  font-size: 1.4rem;
  font-weight: 700;
  line-height: 1.4;
  background: var(--hl-lavender);
  display: inline;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
  padding: 0.05rem 0.5rem;
  border-radius: 6px;
}
.services-grid .card:nth-child(2) h3 { background: var(--hl-blue); }
.services-grid .card:nth-child(3) h3 { background: var(--hl-mauve); }

.card h3 + * { margin-top: 0.9rem; }
.card p { font-size: 1.05rem; line-height: 1.7; }

/* =========================================================
   Pricing
   ========================================================= */
.pricing-intro { margin-top: 0.25rem; font-size: 1.05rem; line-height: 1.65; }

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
  margin-top: 1.5rem;
}

.pricing-box {
  border: 2px solid var(--ink);
  border-radius: 10px;
  padding: 1.25rem;
  background: var(--surface-2);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.pricing-box h3 { font-size: 1.25rem; font-weight: 700; line-height: 1.4; margin-bottom: 0.2rem; }

.price-tag {
  font-size: 1.55rem;
  font-weight: 700;
  color: var(--text);
  margin: 0.3rem 0 0.4rem;
  line-height: 1.4;
}

.price-unit { font-size: 1rem; font-weight: 400; color: var(--text-muted); }

.price-subtext { font-size: 0.98rem; line-height: 1.6; color: var(--text-muted); }

.time-breakdown {
  margin-top: 0.85rem;
  padding: 0.7rem 0.85rem;
  font-size: 0.95rem;
  line-height: 1.55;
  background: var(--surface-3);
  border-radius: 8px;
}
.time-breakdown ul { margin: 0.25rem 0 0 1.1rem; }

/* Important small print: plain text, boxed, not italic */
.footnote {
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text);
  margin-top: 1.4rem;
  padding: 0.9rem 1.1rem;
  background: var(--surface-2);
  border-left: 5px solid var(--mauve);
  border-radius: 0 8px 8px 0;
}

/* =========================================================
   Contact form embed
   ========================================================= */
.form-embed { margin-top: 1.75rem; }

.form-embed iframe {
  display: block;
  width: 100%;
  height: 760px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
}

.form-fallback { font-size: 0.95rem; line-height: 1.6; color: var(--text-muted); margin-top: 0.75rem; }

/* =========================================================
   About page
   ========================================================= */
.section-divider { border: 0; border-top: 2px solid var(--line); margin: 2.75rem 0; }

.about-card h2.person-name { font-size: 2rem; margin-top: 0; margin-bottom: 0.5rem; }

.post-nominals { font-weight: 700; color: var(--text-muted); font-size: 1.1rem; line-height: 1.6; }

.quals-line { font-weight: 700; color: var(--text); font-size: 1.12rem; line-height: 1.6; margin-bottom: 2rem; }

.float-right-img {
  float: right;
  margin: 0.4rem 0 1.5rem 2.5rem;
  width: 220px;
  max-width: 100%;
  height: auto;
  border: 2px solid var(--ink);
  border-radius: 12px;
  box-shadow: var(--card-shadow-sm);
}

.logo-right {
  float: right;
  margin: 0.2rem 0 1.5rem 2.5rem;
  width: 180px;
  max-width: 100%;
  height: auto;
  background: var(--logo-tile);
  border-radius: 14px;
  padding: 6px;
}

.clearfix::after { content: ""; clear: both; display: table; }

.about-subheading {
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1.45;
  margin-top: 1.8rem;
  margin-bottom: 0.6rem;
  padding-bottom: 0.3rem;
  border-bottom: 2px solid var(--line);
}
.about-subheading:first-of-type { margin-top: 0; }

.qualifications-list { list-style: none; margin-top: 1rem; }

.qualifications-list li {
  margin-bottom: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1.5px solid var(--line);
  font-size: 1.05rem;
  line-height: 1.55;
}
.qualifications-list li:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }

.qual-title { font-weight: 700; display: block; }
.qual-institution { font-size: 0.97rem; color: var(--text-muted); }

/* =========================================================
   Footer
   ========================================================= */
footer {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 2px solid var(--line);
  text-align: center;
}
footer p { font-weight: 700; font-size: 1rem; line-height: 1.6; }
footer p.footer-contact { font-weight: 400; font-size: 0.95rem; margin-top: 0.25rem; color: var(--text-muted); }

/* =========================================================
   Not-Broken Advisory components
   ========================================================= */
.advisory-mark {
  width: 64px;
  height: 56px;
  display: block;
  color: var(--logo-mark);
  flex: 0 0 auto;
}

.advisory .brand-title { display: flex; flex-direction: column; line-height: 1; }

.sub-brand-name {
  font-weight: 800;
  font-size: 1.9rem;
  letter-spacing: 0.5px;
  color: var(--text);
}

.parent-brand {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--gold-text);
  text-transform: uppercase;
  letter-spacing: 2.5px;
  margin-top: 0.45rem;
  padding-top: 0.35rem;
  border-top: 2px solid var(--gold);
}

.advisory header { border-bottom: 1px solid var(--line); }

.advisory nav a {
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface);
  font-weight: 600;
}
.advisory nav a:hover,
.advisory nav a:focus-visible { background: var(--surface-3); transform: none; }
.advisory nav a[aria-current="page"] {
  background: var(--surface);
  border-color: var(--ink);
  box-shadow: inset 0 -3px 0 var(--gold);
}

.advisory .about-card,
.advisory .contact-section,
.advisory .card {
  border: 1px solid var(--line);
  box-shadow: var(--card-shadow);
}

.advisory .about-card h2,
.advisory .contact-section h2 {
  background: none !important;
  padding: 0 0 0.35rem;
  border-radius: 0;
  border-bottom: 3px solid var(--gold);
  font-size: 1.6rem;
}

.advisory .card { border-top: 4px solid var(--gold); }
.advisory .card h3 { background: none !important; padding: 0; display: block; }

.advisory .btn-primary,
.advisory .btn-secondary {
  border-radius: 6px;
  box-shadow: none;
  border: 2px solid var(--btn-primary-bg);
}
.advisory .btn-secondary { border-color: var(--ink); }
.advisory .btn-primary:hover, .advisory .btn-primary:focus-visible,
.advisory .btn-secondary:hover, .advisory .btn-secondary:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(17, 30, 56, 0.15);
}

.corporate-hero {
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 8px solid var(--gold);
  border-radius: var(--radius);
  padding: 3rem;
  box-shadow: var(--card-shadow);
}

.corporate-hero h1 { font-size: 2.6rem; font-weight: 800; margin-bottom: 1.2rem; line-height: 1.15; }
.corporate-hero p { font-size: 1.15rem; line-height: 1.75; color: var(--text-muted); margin-bottom: 2rem; max-width: 760px; }

.card-kicker {
  font-weight: 700;
  color: var(--gold-text) !important;
  font-size: 0.85rem !important;
  text-transform: uppercase;
  letter-spacing: 1.5px;
}

.advisory .about-card p,
.advisory .contact-section p,
.advisory .card p { color: var(--text-muted); }
.advisory .card-kicker { color: var(--gold-text) !important; }

.process-intro { margin-bottom: 2.25rem !important; }
.process-list { list-style: none; }

.process-step {
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--line);
}
.process-step:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }
.process-step h3 { font-size: 1.2rem; font-weight: 700; line-height: 1.5; margin-bottom: 0.2rem; }

.step-number {
  flex: 0 0 46px;
  height: 46px;
  background: var(--surface-2);
  border: 2px solid var(--gold);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--text);
}

/* FAQ */
.faq { margin-top: 0.5rem; }
.faq details {
  border-bottom: 1.5px solid var(--line);
  padding: 0.25rem 0;
}
.faq details:last-child { border-bottom: none; }
.faq summary {
  cursor: pointer;
  font-weight: 700;
  font-size: 1.1rem;
  line-height: 1.5;
  padding: 0.7rem 2rem 0.7rem 0;
  list-style: none;
  position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: '+';
  position: absolute;
  right: 0.25rem;
  top: 0.55rem;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--ink);
}
.faq details[open] summary::after { content: '\2212'; }
.faq summary:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; border-radius: 4px; }
.faq details p { padding: 0 0 0.9rem; }

.hero-subtext + .hero-subtext { margin-top: -0.6rem; }

/* 404 */
.not-found .cta-button-group { margin-top: 1.5rem; }

/* =========================================================
   Featured service: Learning Profile Assessment
   ========================================================= */
.feature-banner {
  background: var(--surface);
  border: 2px solid var(--ink);
  border-left: 10px solid var(--mint-edge, #7fbf6f);
  border-radius: var(--radius);
  padding: 2.2rem;
  box-shadow: var(--card-shadow);
}

.feature-kicker {
  display: inline-block;
  font-size: 0.85rem !important;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--gold-text) !important;
  margin-bottom: 0.4rem !important;
}

.feature-banner h2 {
  font-size: 2rem;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 1rem;
}

.feature-lead { font-size: 1.2rem !important; }

.feature-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  margin: 1.6rem 0;
}

.feature-col {
  background: var(--surface-2);
  border-radius: 10px;
  padding: 1.2rem 1.3rem;
}

.feature-col h3 {
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: 0.6rem;
}

.tick-list { list-style: none; }
.tick-list li {
  position: relative;
  padding-left: 1.8rem;
  margin-bottom: 0.6rem;
  font-size: 1.02rem;
  line-height: 1.6;
}
.tick-list li:last-child { margin-bottom: 0; }
.tick-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.3rem;
  width: 1.1rem;
  height: 1.1rem;
  border-radius: 50%;
  background: var(--mint) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.5l2.5 2.5L12 5.5' fill='none' stroke='%232b1f24' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 80% no-repeat;
}

.feature-note {
  font-size: 1rem !important;
  line-height: 1.65 !important;
  color: var(--text-muted) !important;
  border-top: 2px solid var(--line);
  padding-top: 1rem;
}

.feature-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1.4rem;
  padding: 1rem 1.2rem;
  background: var(--hl-mint);
  border-radius: 10px;
}
.feature-footer .price-tag { margin: 0; font-size: 1.8rem; }

/* Pricing: featured box spans the full width, other three sit in a row */
.pricing-grid { grid-template-columns: repeat(3, 1fr); }
.pricing-featured {
  grid-column: 1 / -1;
  border-width: 3px;
  background: var(--surface);
  box-shadow: var(--card-shadow-sm);
}
.pricing-featured h3 { font-size: 1.45rem; }
.pricing-featured .price-subtext { font-size: 1.05rem; color: var(--text); }
.pricing-featured .time-breakdown a { display: inline-block; margin-top: 0.3rem; font-weight: 700; }

.barrier-note {
  margin-top: 1.5rem;
  padding: 1.2rem 1.4rem;
  background: var(--hl-lavender);
  border: 2px solid var(--ink);
  border-radius: 10px;
}
.barrier-note h3 { font-size: 1.25rem; font-weight: 700; line-height: 1.4; margin-bottom: 0.35rem; }
.barrier-note p { font-size: 1.05rem; }

@media (max-width: 860px) {
  .pricing-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .feature-banner { padding: 1.4rem 1.15rem; border-left-width: 6px; }
  .feature-banner h2 { font-size: 1.5rem; }
  .feature-columns { grid-template-columns: 1fr; }
  .feature-lead { font-size: 1.08rem !important; }
  .pricing-grid { grid-template-columns: 1fr; }
  .feature-footer { flex-direction: column; align-items: flex-start; }
}

/* =========================================================
   Hero kicker + "why online" strip
   ========================================================= */
.hero-kicker {
  font-size: 0.9rem !important;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--gold-text) !important;
  margin-bottom: 0.5rem !important;
}

.online-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.online-item {
  background: var(--hl-mint);
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  padding: 1.1rem 1.2rem;
}

.online-item svg {
  width: 30px;
  height: 30px;
  color: var(--text);
  display: block;
  margin-bottom: 0.4rem;
}

.online-item h2 {
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.35;
  margin-bottom: 0.25rem;
}

.online-item p { font-size: 0.98rem; line-height: 1.55; }

.online-item:nth-child(2) { background: var(--hl-blue); }
.online-item:nth-child(3) { background: var(--hl-lavender); }

@media (max-width: 760px) {
  .online-strip { grid-template-columns: 1fr; gap: 0.75rem; }
  .online-item { display: grid; grid-template-columns: 34px 1fr; column-gap: 0.75rem; align-items: start; }
  .online-item svg { grid-row: span 2; margin: 0.15rem 0 0; }
}

/* =========================================================
   Contact form
   ========================================================= */
.contact-form {
  margin-top: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
  max-width: 760px;
}

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.15rem; }

.field { display: flex; flex-direction: column; gap: 0.35rem; border: 0; min-width: 0; }

.field label, .field legend {
  font-weight: 700;
  font-size: 1rem;
  line-height: 1.4;
  color: var(--text);
  padding: 0;
}
.field legend { margin-bottom: 0.45rem; }

.field-hint { font-size: 0.92rem !important; line-height: 1.5 !important; color: var(--text-muted) !important; margin: -0.1rem 0 0.1rem !important; }

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form select,
.contact-form textarea {
  font: inherit;
  font-size: 1rem;
  line-height: 1.5;
  color: var(--text);
  background: var(--surface);
  border: 2px solid var(--line);
  border-radius: 8px;
  padding: 0.6rem 0.75rem;
  width: 100%;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.contact-form textarea { resize: vertical; min-height: 8rem; }
.contact-form select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 6l4 4 4-4' fill='none' stroke='%239E768F' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.7rem center;
  background-size: 1rem;
  padding-right: 2.4rem;
}

.contact-form input:hover, .contact-form select:hover, .contact-form textarea:hover { border-color: var(--mauve); }

.contact-form input:focus-visible,
.contact-form select:focus-visible,
.contact-form textarea:focus-visible {
  outline: none;
  border-color: var(--ink);
  box-shadow: 0 0 0 3px var(--hl-mauve);
}

.contact-form [aria-invalid="true"] { border-color: #b3261e !important; }

.field-error {
  font-size: 0.92rem !important;
  line-height: 1.4 !important;
  font-weight: 600;
  color: #b3261e !important;
  margin: 0 !important;
}

/* Who-for choice chips */
.chips { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.chip { position: relative; cursor: pointer; }
.chip input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.chip span {
  display: inline-block;
  font-size: 0.98rem;
  font-weight: 600;
  line-height: 1.4;
  padding: 0.45rem 1rem;
  border: 2px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text);
  transition: background-color 0.15s ease, border-color 0.15s ease;
}
.chip:hover span { border-color: var(--mauve); }
.chip input:checked + span { background: var(--hl-mint); border-color: var(--ink); }
.chip input:focus-visible + span { outline: 3px solid var(--ink); outline-offset: 2px; }
.chip input[aria-invalid="true"] + span { border-color: #b3261e; }

/* Tick boxes */
.checks { display: flex; flex-direction: column; gap: 0.7rem; }
.check {
  display: grid;
  grid-template-columns: 1.4rem 1fr;
  gap: 0.65rem;
  align-items: start;
  font-size: 0.98rem;
  line-height: 1.55;
  cursor: pointer;
}
.check input { width: 1.25rem; height: 1.25rem; margin-top: 0.15rem; accent-color: var(--plum); cursor: pointer; }
.check-fees {
  background: var(--hl-lavender);
  border-radius: 8px;
  padding: 0.7rem 0.85rem;
}

/* Spam trap: hidden from people, visible to bots */
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.form-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 0.75rem 1.25rem; }
.form-actions button { font-family: inherit; }
.form-actions button:disabled { opacity: 0.7; cursor: progress; transform: none; }
.form-alt { font-size: 0.95rem !important; color: var(--text-muted) !important; margin: 0 !important; }

.form-status {
  font-weight: 600;
  font-size: 1rem;
  line-height: 1.5;
  padding: 0.75rem 1rem;
  border-radius: 8px;
  border-left: 5px solid;
}
.form-status.is-error { background: #fbe9e7; color: #7a1d16; border-color: #b3261e; }

.form-success {
  margin-top: 1.5rem;
  background: var(--hl-mint);
  border: 2px solid var(--ink);
  border-radius: 10px;
  padding: 1.4rem 1.5rem;
  max-width: 760px;
}
.form-success h3 { font-size: 1.35rem; font-weight: 700; margin-bottom: 0.3rem; }
.form-success:focus { outline: 3px solid var(--ink); outline-offset: 3px; }

.form-error-list { margin: 0 0 1.25rem 1.2rem; }

/* Advisory variant */
.advisory .chip input:checked + span { background: var(--surface-3); border-color: var(--gold); }
.advisory .check-fees { background: var(--surface-3); }
.advisory .contact-form input:focus-visible,
.advisory .contact-form select:focus-visible,
.advisory .contact-form textarea:focus-visible { box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.35); }

/* Dark theme error colours */
:root[data-theme="dark"] .field-error { color: #ffb4ab !important; }
:root[data-theme="dark"] .form-status.is-error { background: #3b1512; color: #ffdad6; border-color: #ffb4ab; }
:root[data-theme="dark"] .contact-form [aria-invalid="true"] { border-color: #ffb4ab !important; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .field-error { color: #ffb4ab !important; }
  :root:not([data-theme="light"]) .form-status.is-error { background: #3b1512; color: #ffdad6; border-color: #ffb4ab; }
  :root:not([data-theme="light"]) .contact-form [aria-invalid="true"] { border-color: #ffb4ab !important; }
}

@media (max-width: 600px) {
  .form-row { grid-template-columns: 1fr; }
  .form-actions button { width: 100%; }
}

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 768px) {
  .float-right-img, .logo-right { float: none; display: block; margin: 1.5rem auto; }
}

@media (max-width: 600px) {
  body { font-size: 1rem; }
  .container { padding: 1.25rem 16px 2rem; }

  .brand-title { font-size: 1.7rem; }
  .sub-brand-name { font-size: 1.45rem; }
  .brand-logo { height: 46px; }
  .advisory-mark { width: 52px; height: 46px; }
  header { gap: 0.9rem; margin-bottom: 1.75rem; }
  nav { gap: 0.45rem; }
  nav a { font-size: 0.92rem; padding: 0.2rem 0.75rem; }

  .page-flow { gap: 1.6rem; }

  .hero-banner, .philosophy-banner, .pricing-section, .contact-section, .about-card {
    padding: 1.4rem 1.15rem;
  }
  .corporate-hero { padding: 1.6rem 1.15rem; border-left-width: 6px; }

  .hero-heading, .about-card h1, .corporate-hero h1 { font-size: 1.8rem; line-height: 1.25; }
  .philosophy-banner h2, .pricing-section h2, .contact-section h2, .about-card h2 { font-size: 1.45rem; }
  .about-card h2.person-name { font-size: 1.6rem; }

  p, .hero-subtext { font-size: 1.05rem; line-height: 1.7; }

  .btn-primary, .btn-secondary { padding: 0.6rem 1.15rem; font-size: 1rem; }

  .pricing-grid, .services-grid { grid-template-columns: 1fr; }
  .services-grid { gap: 1.25rem; }

  .process-step { gap: 1rem; }
  .step-number { flex-basis: 38px; height: 38px; font-size: 1rem; }

  .form-embed iframe { height: 820px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

@media print {
  :root, body.advisory { --bg: #fff; --surface: #fff; --text: #000; }
  nav, .skip-link, .form-embed, .theme-toggle { display: none; }
  .hero-banner, .philosophy-banner, .pricing-section, .contact-section,
  .about-card, .card, .credentials-card, .corporate-hero { box-shadow: none; }
  .container { padding: 0; max-width: none; }
}

.plain-list { margin: 0 0 1.1rem 1.2rem; }
.plain-list li { margin-bottom: 0.4rem; line-height: 1.7; }
.privacy h2 { font-size: 1.3rem !important; margin-top: 1.6rem !important; }

.service-subtitle {
  font-size: 0.95rem !important;
  line-height: 1.5 !important;
  font-weight: 600;
  color: var(--gold-text) !important;
  margin: 0.1rem 0 0.3rem !important;
}

/* =========================================================
   404 page + 1-minute dyslexia check
   ========================================================= */
.big-404 {
  font-size: clamp(5rem, 18vw, 9rem) !important;
  font-weight: 800;
  line-height: 1 !important;
  letter-spacing: -4px;
  color: var(--plum) !important;
  margin: 0 0 0.75rem !important;
}
.big-404 span {
  display: inline-block;
  color: var(--text);
  background: var(--hl-mint);
  border-radius: 50%;
  width: 0.92em;
  height: 0.92em;
  line-height: 0.92em;
  text-align: center;
  transform: rotate(-12deg);
  margin: 0 0.04em;
}
:root[data-theme="dark"] .big-404 { color: var(--ink) !important; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .big-404 { color: var(--ink) !important; } }

.quiz form { margin-top: 1.25rem; }
.quiz-who { border: 0; margin-bottom: 1.25rem; }
.quiz-who legend { font-weight: 700; margin-bottom: 0.5rem; }

.quiz-items { display: flex; flex-direction: column; gap: 0.75rem; }

.quiz-item {
  border: 2px solid var(--line);
  border-radius: 10px;
  padding: 0.85rem 1rem;
  background: var(--surface-2);
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.6rem 1rem;
  align-items: center;
}
.quiz-item legend {
  float: left;            /* lets the legend sit inside the grid */
  width: 100%;
  font-size: 1.02rem;
  line-height: 1.5;
  padding: 0;
}
.quiz-item.is-missing { border-color: #b3261e; }
.quiz-num {
  display: inline-grid;
  place-items: center;
  width: 1.6rem;
  height: 1.6rem;
  border-radius: 50%;
  background: var(--hl-lavender);
  font-size: 0.85rem;
  font-weight: 700;
  margin-right: 0.35rem;
}

.quiz-scale { display: flex; gap: 0.35rem; }
.quiz-scale label { position: relative; cursor: pointer; }
.quiz-scale input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.quiz-scale span {
  display: inline-block;
  min-width: 6.2rem;
  text-align: center;
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.4;
  padding: 0.45rem 0.6rem;
  border: 2px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--text);
}
.quiz-scale label:hover span { border-color: var(--mauve); }
.quiz-scale input:checked + span { background: var(--hl-mint); border-color: var(--ink); }
.quiz-scale input:focus-visible + span { outline: 3px solid var(--ink); outline-offset: 2px; }

.quiz-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 0.75rem 1.25rem; margin-top: 1.25rem; }
.quiz-actions button { font-family: inherit; }
.quiz-progress { font-size: 0.95rem !important; color: var(--text-muted) !important; margin: 0 !important; }

.quiz-result {
  margin-top: 1rem;
  border: 2px solid var(--ink);
  border-radius: 12px;
  padding: 1.4rem 1.5rem;
  background: var(--surface-2);
}
.quiz-result:focus { outline: 3px solid var(--ink); outline-offset: 3px; }
.quiz-result h3 { font-size: 1.5rem; font-weight: 700; line-height: 1.3; margin-bottom: 0.75rem; }
.quiz-result h4 { font-size: 1.08rem; font-weight: 700; margin: 1.1rem 0 0.4rem; }
.quiz-meter {
  height: 12px;
  border-radius: 999px;
  background: var(--surface-3);
  overflow: hidden;
  margin-bottom: 1rem;
}
.quiz-meter span {
  display: block;
  height: 100%;
  width: 0;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--mint), var(--blue-grey), var(--mauve));
  transition: width 0.6s ease;
}
.quiz-areas { margin: 0 0 1rem 1.2rem; }
.quiz-areas li { margin-bottom: 0.45rem; line-height: 1.6; }
.quiz-strengths {
  font-weight: 600;
  background: var(--hl-mint);
  border-radius: 8px;
  padding: 0.75rem 1rem;
  margin: 1rem 0 1.25rem !important;
}
.quiz-again { margin-top: 1rem !important; }
.link-button {
  font: inherit;
  font-weight: 600;
  color: var(--ink);
  background: none;
  border: 0;
  padding: 0;
  text-decoration: underline;
  text-underline-offset: 0.18em;
  cursor: pointer;
}
.quiz-note { font-size: 0.92rem !important; line-height: 1.55 !important; color: var(--text-muted) !important; margin-top: 1.25rem !important; }

@media (max-width: 680px) {
  .quiz-item { grid-template-columns: 1fr; }
  .quiz-scale { width: 100%; }
  .quiz-scale label { flex: 1; }
  .quiz-scale span { min-width: 0; width: 100%; }
}
