/* =========================================================================
   Best Class Helper: site stylesheet
   Cascade order is fixed by layers; later layers win without !important.
   `tool` holds each free tool's own interface CSS, below the shared components.
   ========================================================================= */
@layer vendor, base, layout, tool, components, utilities;

@import url("../vendor/bootstrap/css/bootstrap.min.css") layer(vendor);
@import url("../vendor/swiper/swiper-bundle.min.css") layer(vendor);

/* ---------------------------------------------------------------- tokens */
:root {
  /* brand */
  --brand-50: #f6f3ff;
  --brand-100: #ece6ff;
  --brand-200: #d9cdfd;
  --brand-500: #7a55e0;
  --brand-600: #6740cb;
  --brand-700: #5532b3;
  --brand-800: #40248f;
  --brand-900: #241457;
  --gold: #f5b400;
  --gold-soft: #fff6db;
  --success: #0f9f6e;

  /* neutrals (indigo-tinted) */
  --ink-900: #16132b;
  --ink-700: #3a3654;
  --ink-500: #636080;
  --ink-400: #8a87a3;
  --line: #e6e3f0;
  --line-strong: #d3cfe3;
  --surface: #ffffff;
  --surface-2: #faf9fd;
  --surface-3: #f3f1fa;

  /* legacy variable names still read by page scripts / remaining inline rules */
  --accent-color: var(--brand-600);
  --heading-color: var(--ink-900);
  --default-color: var(--ink-700);
  --background-color: var(--surface);
  --contrast-color: #fff;

  /* type */
  --font-sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --fs-xs: 0.8125rem;
  --fs-sm: 0.9375rem;
  --fs-md: 1.0625rem;
  --fs-lg: 1.25rem;
  --fs-xl: clamp(1.375rem, 1.1rem + 0.9vw, 1.75rem);
  --fs-2xl: clamp(1.75rem, 1.3rem + 1.6vw, 2.5rem);
  --fs-3xl: clamp(2.1rem, 1.4rem + 2.6vw, 3.25rem);
  --lh-tight: 1.2;
  --lh-body: 1.7;

  /* space */
  --sp-1: 0.25rem;
  --sp-2: 0.5rem;
  --sp-3: 0.75rem;
  --sp-4: 1rem;
  --sp-5: 1.5rem;
  --sp-6: 2rem;
  --sp-7: 3rem;
  --sp-8: 4.5rem;
  --section-y: clamp(3.5rem, 2.5rem + 4vw, 6rem);

  /* shape */
  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 20px;
  --radius-pill: 999px;
  --shadow-sm: 0 1px 2px rgb(22 19 43 / 0.06);
  --shadow: 0 4px 18px rgb(36 20 87 / 0.07);
  --shadow-lg: 0 18px 40px rgb(36 20 87 / 0.12);
  --ring: 0 0 0 3px rgb(103 64 203 / 0.25);

  /* surfaces */
  --hero-bg: radial-gradient(1200px 600px at 85% -10%, rgb(122 85 224 / 0.55), transparent 60%),
    linear-gradient(160deg, var(--brand-900) 0%, var(--brand-800) 55%, var(--brand-700) 100%);
  --header-h: 112px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

/* ------------------------------------------------------------------ base */
@layer base {
  *, *::before, *::after { box-sizing: border-box; }
  html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); -webkit-text-size-adjust: 100%; }
  body {
    margin: 0;
    font-family: var(--font-sans);
    font-size: var(--fs-md);
    line-height: var(--lh-body);
    color: var(--ink-700);
    background: var(--surface);
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
  }
  h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-sans);
    color: var(--ink-900);
    line-height: var(--lh-tight);
    font-weight: 700;
    letter-spacing: -0.015em;
    margin: 0 0 var(--sp-3);
  }
  h1 { font-size: var(--fs-3xl); font-weight: 800; letter-spacing: -0.025em; }
  h2 { font-size: var(--fs-2xl); }
  h3 { font-size: var(--fs-xl); }
  h4 { font-size: var(--fs-lg); }
  h5, h6 { font-size: var(--fs-md); }
  p { margin: 0 0 var(--sp-4); }
  p, li, td { overflow-wrap: break-word; }
  a[href^="mailto:"], strong:has(> a[href^="mailto:"]) { overflow-wrap: anywhere; }
  strong, b { font-weight: 600; color: var(--ink-900); }
  a { color: var(--brand-600); text-decoration: none; transition: color 0.15s var(--ease); }
  a:hover { color: var(--brand-800); }
  a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
    outline: none;
    box-shadow: var(--ring);
    border-radius: var(--radius-sm);
  }
  img, svg, video { max-width: 100%; height: auto; }
  ul, ol { padding-left: 1.25rem; }
  li { margin-bottom: var(--sp-2); }
  ::selection { background: var(--brand-200); color: var(--ink-900); }
  table { border-collapse: collapse; }
}

/* ---------------------------------------------------------------- layout */
@layer layout {
  .main { display: block; }
  .section { padding-block: var(--section-y); position: relative; scroll-margin-top: var(--header-h); overflow-x: clip; }
  .section:nth-of-type(even):not(.accent-background):not(.stats) { background: var(--surface-2); }
  .light-background { background: var(--surface-2); }
  .container { max-width: 1200px; }

  .section-title { text-align: center; max-width: 780px; margin: 0 auto var(--sp-7); }
  .section-title h2 { margin-bottom: var(--sp-3); }
  .section-title h2::after {
    content: ""; display: block; width: 48px; height: 4px; border-radius: 4px;
    background: var(--brand-600); margin: var(--sp-4) auto 0;
  }
  .section-title p { color: var(--ink-500); font-size: var(--fs-md); margin: 0; }

  .auto-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr)); gap: var(--sp-4); margin-bottom: var(--sp-5); }
  .stack { display: flex; flex-direction: column; gap: var(--sp-3); }
  .chip-row { display: flex; flex-wrap: wrap; gap: var(--sp-2); justify-content: center; }
  .section-intro { text-align: center; max-width: 720px; margin: 0 auto var(--sp-6); }
}

/* ------------------------------------------------------------ components */
@layer components {

  /* ---------- buttons */
  .btn-get-started, .buy-btn, .readmore, .btn-primary, .btn-secondary, .write-review-btn, .submit-btn, .cancel-btn,
  .php-email-form button[type="submit"], .contact-form button[type="submit"] {
    display: inline-flex; align-items: center; justify-content: center; gap: var(--sp-2);
    min-height: 48px; padding: 0.75rem 1.5rem;
    font: 600 var(--fs-sm)/1.2 var(--font-sans);
    border-radius: var(--radius-pill); border: 1.5px solid transparent;
    cursor: pointer; text-align: center;
    transition: transform 0.18s var(--ease), box-shadow 0.18s var(--ease), background-color 0.18s var(--ease);
  }
  .btn-get-started, .buy-btn, .readmore, .btn-primary, .write-review-btn, .submit-btn,
  .php-email-form button[type="submit"], .contact-form button[type="submit"] {
    background: var(--brand-600); color: #fff; box-shadow: 0 6px 16px rgb(103 64 203 / 0.28);
  }
  .btn-get-started:hover, .buy-btn:hover, .readmore:hover, .btn-primary:hover, .write-review-btn:hover, .submit-btn:hover,
  .php-email-form button[type="submit"]:hover, .contact-form button[type="submit"]:hover {
    background: var(--brand-700); color: #fff; transform: translateY(-1px); box-shadow: 0 10px 22px rgb(103 64 203 / 0.32);
  }
  .btn-secondary, .cancel-btn { background: var(--surface); color: var(--brand-700); border-color: var(--line-strong); }
  .btn-secondary:hover, .cancel-btn:hover { border-color: var(--brand-600); color: var(--brand-800); transform: translateY(-1px); }
  .btn-block { width: 100%; }

  /* ---------- pills / eyebrows */
  .eyebrow, .pill {
    display: inline-flex; align-items: center; gap: var(--sp-2);
    padding: 0.35rem 0.85rem; border-radius: var(--radius-pill);
    font-size: var(--fs-xs); font-weight: 600; letter-spacing: 0.02em;
    background: var(--brand-50); color: var(--brand-700); border: 1px solid var(--brand-100);
    margin-bottom: var(--sp-4); width: fit-content;
  }
  .pill { margin-bottom: var(--sp-3); }
  .pill--solid { background: var(--brand-600); color: #fff; border-color: transparent; }
  .accent-background .eyebrow, .hero .eyebrow { background: rgb(255 255 255 / 0.12); border-color: rgb(255 255 255 / 0.24); color: #ffe08a; }

  /* ---------- panels & cards */
  .panel, .callout, .mini-card, .check-row, .terms-section, .privacy-section,
  .service-card, .feature-card, .fact-card, .info-card-mini, .icon-box, .glass-stat, .pricing-item, .service-item,
  .faq-item, .review, .stat, .modal-content {
    background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  }
  .panel { padding: clamp(1.25rem, 1rem + 1.2vw, 2rem); box-shadow: var(--shadow); margin-bottom: var(--sp-6); }
  .panel--accent-left { border-left: 4px solid var(--brand-600); }
  .panel--accent-top { border-top: 4px solid var(--brand-600); height: 100%; }
  .panel--soft { background: var(--surface-2); box-shadow: none; }
  .panel--compact { padding: var(--sp-4) var(--sp-5); margin-bottom: 0; height: 100%; }
  .panel h3, .panel h4 { font-size: var(--fs-lg); }
  .panel p, .panel li { font-size: var(--fs-sm); }

  .callout { background: var(--brand-50); border-color: var(--brand-100); border-left: 4px solid var(--brand-600); padding: var(--sp-4) var(--sp-5); }
  .callout p:last-child { margin: 0; }
  .mini-card { padding: var(--sp-4) var(--sp-5); box-shadow: var(--shadow-sm); }
  .mini-card h4, .mini-card h5 { font-size: var(--fs-md); margin-bottom: var(--sp-2); }
  .mini-card p { font-size: var(--fs-sm); color: var(--ink-500); margin: 0; }
  .check-row { display: flex; align-items: center; gap: var(--sp-3); padding: 0.7rem 1rem; background: var(--surface-2); }
  .check-row i { color: var(--brand-600); font-size: 1.05rem; flex-shrink: 0; }
  .check-row span { font-size: var(--fs-sm); color: var(--ink-900); font-weight: 500; }
  .icon-circle {
    display: inline-grid; place-items: center; width: 56px; height: 56px; border-radius: 50%;
    background: var(--brand-50); color: var(--brand-600); font-size: 1.5rem; margin-bottom: var(--sp-4);
  }
  .big-icon { font-size: 2.25rem; color: var(--brand-600); margin-bottom: var(--sp-3); line-height: 1; }

  /* interactive card lift (transform only, no layout shift) */
  .service-card, .fact-card, .icon-box, .resource-card, .step-card, .pricing-item, .review, .stat, .mini-card {
    transition: transform 0.22s var(--ease), box-shadow 0.22s var(--ease), border-color 0.22s var(--ease);
  }
  .service-card:hover, .fact-card:hover, .icon-box:hover, .resource-card:hover, .step-card:hover, .pricing-item:hover, .review:hover {
    transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: var(--brand-200);
  }

  /* ---------- header */
  .header { z-index: 1030; color: #fff; transition: box-shadow 0.25s var(--ease); }
  .header .topbar { background: var(--brand-900); height: 40px; font-size: var(--fs-xs); }
  .header .topbar .contact-info i { font-style: normal; color: rgb(255 255 255 / 0.9); gap: 6px; }
  .header .topbar .contact-info i::before { color: var(--gold); }
  .header .topbar a, .header .topbar span { color: rgb(255 255 255 / 0.9); font-family: var(--font-sans); font-weight: 500; }
  .header .topbar a:hover { color: #fff; }
  .header .topbar .social-links a { color: rgb(255 255 255 / 0.7); margin-left: var(--sp-4); font-size: 0.9rem; }
  .header .topbar .social-links a:hover { color: #fff; }
  .header .branding {
    min-height: 72px; background: var(--brand-900);
    border-bottom: 1px solid rgb(255 255 255 / 0.08);
  }
  .scrolled .header { box-shadow: 0 8px 24px rgb(22 19 43 / 0.25); }
  .header .logo img { height: 46px; width: auto; max-height: 46px; }

  /* nav: desktop */
  .navmenu ul { list-style: none; margin: 0; padding: 0; }
  .navmenu li { margin: 0; }
  .navmenu a { display: flex; align-items: center; gap: 4px; font-size: var(--fs-sm); font-weight: 500; white-space: nowrap; }
  .navmenu a br { display: none; }
  .mobile-nav-toggle, .mobile-nav-close {
    background: none; border: 0; color: #fff; font-size: 1.75rem; line-height: 1; cursor: pointer; padding: 6px;
  }
  @media (min-width: 1200px) {
    .navmenu > ul { display: flex; align-items: center; gap: var(--sp-1); }
    .navmenu > ul > li { position: relative; }
    .navmenu > ul > li > a { color: rgb(255 255 255 / 0.86); padding: 0.55rem 0.9rem; border-radius: var(--radius-pill); }
    .navmenu > ul > li > a:hover, .navmenu > ul > li:hover > a { color: #fff; background: rgb(255 255 255 / 0.08); }
    .navmenu .toggle-dropdown { font-size: 0.7rem; transition: transform 0.2s var(--ease); }
    .navmenu .dropdown:hover > a .toggle-dropdown { transform: rotate(180deg); }
    .navmenu .dropdown > ul {
      position: absolute; top: calc(100% + 8px); left: 0; min-width: 260px; max-height: 70vh; overflow-y: auto;
      background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-lg);
      padding: var(--sp-2); opacity: 0; visibility: hidden; transform: translateY(6px);
      transition: opacity 0.18s var(--ease), transform 0.18s var(--ease), visibility 0.18s;
    }
    .navmenu .dropdown:hover > ul, .navmenu .dropdown:focus-within > ul { opacity: 1; visibility: visible; transform: translateY(0); }
    .navmenu .support-dropdown > ul { left: auto; right: 0; }
    .navmenu .dropdown ul a { color: var(--ink-700); padding: 0.5rem 0.75rem; border-radius: var(--radius-sm); }
    .navmenu .dropdown ul a:hover { background: var(--brand-50); color: var(--brand-700); }
    .mobile-nav-close { display: none; }
  }
  /* nav: mobile */
  @media (max-width: 1199.98px) {
    .navmenu > ul {
      position: fixed; inset: 0 0 0 auto; width: min(88vw, 360px); overflow-y: auto;
      background: var(--surface); padding: 72px var(--sp-4) var(--sp-6);
      box-shadow: var(--shadow-lg); transform: translateX(100%); transition: transform 0.28s var(--ease);
      z-index: 1040;
    }
    .mobile-nav-active .navmenu > ul { transform: translateX(0); }
    .mobile-nav-active { overflow: hidden; }
    .mobile-nav-active .navmenu::before {
      content: ""; position: fixed; inset: 0; background: rgb(22 19 43 / 0.5); z-index: 1035;
    }
    .navmenu a { color: var(--ink-900); padding: 0.75rem 0.5rem; justify-content: space-between; border-radius: var(--radius-sm); }
    .navmenu a:hover { background: var(--brand-50); color: var(--brand-700); }
    .navmenu .toggle-dropdown { padding: 6px; border-radius: 6px; background: var(--surface-3); font-size: 0.8rem; }
    .navmenu .dropdown > ul { display: none; padding-left: var(--sp-3); border-left: 2px solid var(--brand-100); margin: 0 0 var(--sp-2) var(--sp-2); }
    .navmenu .dropdown > ul.dropdown-active { display: block; }
    .navmenu .dropdown ul a { font-size: var(--fs-sm); font-weight: 400; color: var(--ink-700); }
    .mobile-nav-close { position: fixed; top: 16px; right: 16px; z-index: 1045; color: var(--ink-900); display: none; }
    .mobile-nav-active .mobile-nav-close { display: block; }
  }

  /* ---------- hero (home + utility pages) */
  .hero.section {
    background: var(--hero-bg); color: rgb(255 255 255 / 0.9);
    padding-top: calc(var(--header-h) + clamp(2.5rem, 2rem + 3vw, 5rem));
    padding-bottom: clamp(3rem, 2rem + 4vw, 6rem);
  }
  .hero.section::after {
    content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0.35;
    background-image: radial-gradient(rgb(255 255 255 / 0.12) 1px, transparent 1px); background-size: 22px 22px;
    mask-image: linear-gradient(to bottom, #000 0%, transparent 85%);
  }
  .hero.section > .container { position: relative; z-index: 1; }
  .hero h1 { color: #fff; margin-bottom: var(--sp-4); }
  .hero h1 .accent { color: #c9b6ff; }
  .hero p { color: rgb(255 255 255 / 0.86); font-size: var(--fs-md); max-width: 760px; }
  .hero .col-lg-8.text-center p { margin-inline: auto; }
  .hero p span, .hero p em { color: #fff; }
  .hero ul { list-style: none; padding: 0; margin: var(--sp-5) 0; }
  .hero ul li { display: flex; align-items: center; gap: var(--sp-3); margin-bottom: var(--sp-3); color: #fff; font-weight: 500; }
  .hero ul .icon {
    flex-shrink: 0; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px;
    background: rgb(255 255 255 / 0.12); color: #ffe08a;
  }
  .trust-bar {
    display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-3);
    padding: 0.6rem 1rem; border-radius: var(--radius); width: fit-content;
    background: rgb(255 255 255 / 0.08); border: 1px solid rgb(255 255 255 / 0.14);
  }
  .trust-bar img { width: 100px; height: auto; }
  .trust-bar a { color: #fff; font-weight: 700; }
  .trust-bar span { color: rgb(255 255 255 / 0.72); font-size: var(--fs-xs); }
  .promo-note {
    display: inline-flex; flex-wrap: wrap; gap: 6px; margin-top: var(--sp-3); width: fit-content;
    padding: 0.5rem 0.85rem; border-radius: var(--radius-sm); font-size: var(--fs-xs); color: rgb(255 255 255 / 0.92);
    background: rgb(245 180 0 / 0.14); border: 1px solid rgb(245 180 0 / 0.38);
  }
  .promo-note span { color: var(--gold); font-weight: 700; }
  .hero-pill {
    display: inline-flex; align-items: center; gap: var(--sp-2); padding: 0.6rem 1.1rem;
    border-radius: var(--radius-pill); background: rgb(255 255 255 / 0.12); color: #fff; font-weight: 600;
  }
  .hero-pill span { color: var(--gold); }
  .hero .contact-form, .hero form {
    background: var(--surface); color: var(--ink-700); border-radius: var(--radius-lg);
    padding: clamp(1.25rem, 1rem + 1vw, 2rem); box-shadow: var(--shadow-lg); max-width: 440px; margin-inline: auto;
  }
  .hero .contact-form h2, .hero .contact-form h3, .hero form h2, .hero form h3 { color: var(--ink-900); font-size: var(--fs-lg); }
  .hero .contact-form p { color: var(--ink-500); }

  /* ---------- forms */
  .form-control, .form-select, .form-group input, .form-group select, .form-group textarea {
    width: 100%; min-height: 48px; padding: 0.7rem 0.95rem;
    font: 400 var(--fs-sm)/1.4 var(--font-sans); color: var(--ink-900);
    background: var(--surface); border: 1.5px solid var(--line-strong); border-radius: var(--radius-sm);
    transition: border-color 0.15s var(--ease), box-shadow 0.15s var(--ease);
  }
  .form-select { padding-right: 2.25rem; text-overflow: ellipsis; }
  textarea.form-control, .form-group textarea { min-height: 120px; resize: vertical; }
  .form-control:focus, .form-select:focus, .form-group input:focus, .form-group select:focus, .form-group textarea:focus {
    border-color: var(--brand-600); box-shadow: var(--ring); outline: none;
  }
  .form-control::placeholder { color: var(--ink-400); }
  label, .form-group label { display: block; font-size: var(--fs-xs); font-weight: 600; color: var(--ink-900); margin-bottom: 6px; }
  .php-email-form .loading, .php-email-form .error-message, .php-email-form .sent-message { display: none; font-size: var(--fs-sm); padding: 0.75rem 1rem; border-radius: var(--radius-sm); margin-bottom: var(--sp-3); }
  .php-email-form .error-message { background: #fdecec; color: #b42318; }
  .php-email-form .sent-message { background: #e8f8f1; color: #08744f; }
  .php-email-form .loading { background: var(--surface-3); text-align: center; }
  .alert-info { background: var(--brand-50); border: 1px solid var(--brand-100); color: var(--ink-700); border-radius: var(--radius-sm); }

  /* ---------- clients (logo strip) */
  .clients .swiper-slide img { filter: grayscale(1); opacity: 0.6; transition: opacity 0.2s, filter 0.2s; }
  .clients .swiper-slide img:hover { filter: none; opacity: 1; }
  .clients .swiper-wrapper { align-items: center; }

  /* ---------- stats band */
  .stats.section { background: var(--hero-bg); color: #fff; }
  .stats .section-title h2, .stats h2, .stats strong { color: #fff; }
  .stats .section-title h2::after { background: var(--gold); }
  .stats p, .stats .section-title p { color: rgb(255 255 255 / 0.82); }
  .glass-stat {
    background: rgb(255 255 255 / 0.08); border-color: rgb(255 255 255 / 0.16);
    padding: var(--sp-5); text-align: center; height: 100%;
  }
  .glass-stat-number { font-size: clamp(2rem, 1.6rem + 1.5vw, 2.75rem); font-weight: 800; color: #fff; line-height: 1.1; margin-bottom: var(--sp-2); font-variant-numeric: tabular-nums; }
  .glass-stat p { margin: 0; font-size: var(--fs-sm); }

  /* ---------- service / feature / fact cards */
  .service-card, .fact-card { padding: var(--sp-5); height: 100%; display: flex; flex-direction: column; box-shadow: var(--shadow-sm); }
  .icon-gradient-box, .fact-card > div:first-child {
    display: grid; place-items: center; width: 52px; height: 52px; border-radius: 14px;
    background: var(--brand-50); color: var(--brand-600); font-size: 1.4rem; margin-bottom: var(--sp-4);
  }
  .fact-card.accent-violet > div:first-child { background: #f1ecff; color: var(--brand-500); }
  .card-title-sm { font-size: var(--fs-lg); margin-bottom: var(--sp-2); }
  .service-card-desc, .fact-card p, .feature-card-desc, .info-card-mini-desc { color: var(--ink-500); font-size: var(--fs-sm); margin-bottom: var(--sp-4); }
  .card-link-arrow { margin-top: auto; font-weight: 600; font-size: var(--fs-sm); display: inline-flex; align-items: center; gap: 6px; }
  .card-link-arrow i { transition: transform 0.18s var(--ease); }
  .card-link-arrow:hover i { transform: translateX(3px); }
  .feature-card { display: flex; gap: var(--sp-4); padding: var(--sp-4) var(--sp-5); height: 100%; }
  .feature-card-icon { font-size: 1.35rem; color: var(--brand-600); flex-shrink: 0; margin-top: 2px; }
  .feature-card-desc { margin: var(--sp-1) 0 0; }
  .info-card-mini { padding: var(--sp-4) var(--sp-5); height: 100%; border-left: 3px solid var(--brand-600); }
  .info-card-mini-title { font-size: var(--fs-md); margin-bottom: var(--sp-2); }
  .info-card-mini-title i { color: var(--brand-600); }
  .info-card-mini-desc { margin: 0; }
  .icon-box { position: relative; padding: var(--sp-5); height: 100%; text-align: center; }
  .icon-box .icon { display: inline-grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: var(--brand-50); color: var(--brand-600); font-size: 1.4rem; margin-bottom: var(--sp-3); }
  .icon-box .title { font-size: var(--fs-md); margin: 0; }
  .icon-box .title a { color: var(--ink-900); }
  .icon-boxes { margin-top: var(--sp-6); }

  /* service-item (generic legacy card) */
  .service-item { padding: clamp(1.25rem, 1rem + 1vw, 2rem); height: 100%; box-shadow: var(--shadow-sm); }
  .service-item .icon { color: var(--brand-600); font-size: 2.25rem; line-height: 1; }
  .step-card { text-align: center; }
  .step-card .icon {
    display: inline-grid; place-items: center; width: 64px; height: 64px; border-radius: 18px;
    background: var(--brand-50); font-size: 1.75rem;
  }
  .step-card h4 { font-size: var(--fs-md); }
  .step-card p { font-size: var(--fs-sm); color: var(--ink-500); margin: 0; }
  .why-choose-us-img .service-item i.bi-check-circle-fill { color: var(--brand-600); font-size: 1.25rem; margin-right: var(--sp-3); flex-shrink: 0; }
  .why-choose-us-img .service-item p { font-size: var(--fs-sm); }
  .why-choose-us .content p, .why-choose-us .content li { line-height: 1.8; }

  /* ---------- pricing */
  .pricing-item { padding: var(--sp-6) var(--sp-5); height: 100%; text-align: center; box-shadow: var(--shadow-sm); position: relative; }
  .pricing-item h3 { font-size: var(--fs-lg); }
  .pricing-item .icon { display: inline-grid; place-items: center; width: 60px; height: 60px; border-radius: 50%; background: var(--brand-50); color: var(--brand-600); font-size: 1.5rem; margin: var(--sp-2) 0 var(--sp-4); }
  .pricing-item h4 { font-size: 2.75rem; font-weight: 800; color: var(--ink-900); margin-bottom: var(--sp-5); font-variant-numeric: tabular-nums; }
  .pricing-item h4 sup { font-size: 1.25rem; top: -1.1em; }
  .pricing-item h4 span { font-size: var(--fs-sm); font-weight: 500; color: var(--ink-500); }
  .pricing-item ul { list-style: none; padding: 0; margin: 0 0 var(--sp-5); text-align: left; }
  .pricing-item li { display: flex; align-items: center; gap: var(--sp-2); padding: 0.4rem 0; font-size: var(--fs-sm); margin: 0; }
  .pricing-item li i { color: var(--success); font-size: 1.15rem; }
  .pricing-item li.na { color: var(--ink-400); }
  .pricing-item li.na i { color: var(--ink-400); }
  .pricing-item.featured { border: 2px solid var(--brand-600); box-shadow: var(--shadow-lg); }

  /* cost estimator (#class-cost-calculator; IDs used by script) */
  #class-cost-calculator {
    margin: var(--sp-6) auto 0; max-width: 980px; padding: clamp(1.25rem, 1rem + 1.2vw, 2rem);
    background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg);
  }
  #class-cost-calculator > .d-flex:first-child { border-bottom: 1px solid var(--line); padding-bottom: var(--sp-4); }
  #class-cost-calculator h3 { font-size: var(--fs-xl); margin: var(--sp-2) 0 var(--sp-1); }
  #class-cost-calculator p { color: var(--ink-500); font-size: var(--fs-sm); margin: 0; }
  #class-cost-calculator label span { color: var(--brand-600); }
  #class-cost-calculator .form-select { font-size: var(--fs-xs); font-weight: 500; padding-left: 0.75rem; background-color: var(--surface-2); }
  #class-cost-calculator label { min-height: 2.6em; }
  .calc-result {
    background: linear-gradient(135deg, var(--brand-50), #f1ebff); border: 1px solid var(--brand-100);
    border-radius: var(--radius); padding: var(--sp-4) var(--sp-5); margin: var(--sp-4) 0 0;
  }
  .calc-result .calc-label { font-size: var(--fs-xs); font-weight: 600; color: var(--ink-500); text-transform: uppercase; letter-spacing: 0.04em; }
  #calc-weekly-out { font-size: clamp(1.6rem, 1.3rem + 1vw, 2rem); font-weight: 800; color: var(--brand-600); line-height: 1.15; font-variant-numeric: tabular-nums; min-height: 1.15em; }
  #calc-total-out { font-size: 1.5rem; font-weight: 800; color: var(--ink-900); line-height: 1.2; font-variant-numeric: tabular-nums; min-height: 1.2em; }
  #calc-weekly-out span, #calc-total-out span { font-size: var(--fs-sm); font-weight: 500; color: var(--ink-500); }
  #calc-deliverables-out { font-size: var(--fs-xs); color: var(--ink-500); margin-top: 2px; min-height: 1.4em; }
  .calc-saving { font-size: var(--fs-xs); color: var(--success); font-weight: 700; margin-top: 2px; }

  /* tables */
  .table-responsive { border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface); box-shadow: var(--shadow-sm); }
  .table { margin: 0; font-size: var(--fs-sm); --bs-table-bg: transparent; --bs-table-hover-bg: var(--surface-2); }
  .table > :not(caption) > * > * { padding: 0.8rem 1rem; border-color: var(--line); color: var(--ink-700); }
  .table thead th { background: var(--surface-3); color: var(--ink-900); font-weight: 700; font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: 0.04em; border-bottom: 2px solid var(--brand-600); }
  .table tbody td:first-child { font-weight: 600; color: var(--ink-900); }
  .table td span { font-size: var(--fs-xs); color: var(--ink-500); }
  .table .is-us { background: var(--brand-50); color: var(--ink-900); font-weight: 600; }
  .table thead .is-us { background: var(--brand-600); color: #fff; }
  .table i.bi-check-circle-fill { color: var(--success); }
  .table i.bi-x-circle { color: var(--ink-400); }

  /* ---------- locations / coverage */
  .coverage-chip, .tool-chip {
    display: inline-flex; align-items: center; gap: 6px; white-space: nowrap;
    padding: 0.45rem 0.9rem; border-radius: var(--radius-pill); font-size: var(--fs-xs); font-weight: 500;
    background: var(--brand-50); color: var(--brand-800); border: 1px solid var(--brand-100);
  }
  .icon-list { list-style: none; padding: 0; margin: 0; font-size: var(--fs-sm); }
  .icon-list li { position: relative; padding-left: 1.75rem; margin-bottom: var(--sp-3); }
  .icon-list li > i:first-child { position: absolute; left: 0; top: 0.2em; color: var(--brand-600); }
  .us-locations i.bi, .why-choose-us h3 > i.bi, .why-choose-us h4 > i.bi, .info-card-mini i.bi { color: var(--brand-600); }

  /* ---------- resources */
  .resource-card .icon { margin-bottom: var(--sp-3); }
  .resource-card h3 { font-size: var(--fs-lg); margin-bottom: var(--sp-4); }
  .resource-list { list-style: none; padding: 0; margin: 0 0 var(--sp-4); }
  .resource-list li { display: flex; gap: var(--sp-2); align-items: flex-start; margin-bottom: var(--sp-3); font-size: var(--fs-sm); }
  .resource-link-icon { color: var(--brand-500); margin-top: 3px; }
  .resource-list a { color: var(--ink-700); }
  .resource-list a:hover { color: var(--brand-700); }

  /* ---------- illustrations */
  .section-illustration { max-width: 100%; height: auto; aspect-ratio: auto; }
  @media (prefers-reduced-motion: no-preference) {
    .section-illustration-float { animation: float 6s ease-in-out infinite; }
  }
  @keyframes float { 50% { transform: translateY(-8px); } }

  /* ---------- FAQ (faq-active toggled by main.js / faq-fix.js) */
  .faq-container { display: flex; flex-direction: column; gap: var(--sp-3); }
  .faq-item { position: relative; padding: var(--sp-4) 3.25rem var(--sp-4) var(--sp-5); transition: border-color 0.2s, box-shadow 0.2s; }
  .faq-item h3 { font-size: var(--fs-md); margin: 0; cursor: pointer; display: flex; gap: var(--sp-2); line-height: 1.45; }
  .faq-item h3 .num { color: var(--brand-600); font-weight: 700; }
  .faq-item h3:hover { color: var(--brand-700); }
  .faq-content { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 0.28s var(--ease); }
  .faq-content > * { overflow: hidden; min-height: 0; margin: 0; }
  .faq-content p { font-size: var(--fs-sm); color: var(--ink-500); }
  .faq-toggle { position: absolute; top: 1.1rem; right: 1.1rem; font-size: 1rem; color: var(--ink-400); cursor: pointer; transition: transform 0.25s var(--ease), color 0.2s; }
  .faq-active { border-color: var(--brand-200); box-shadow: var(--shadow); }
  .faq-active h3 { color: var(--brand-700); }
  .faq-active .faq-content { grid-template-rows: 1fr; }
  .faq-active .faq-content > * { padding-top: var(--sp-3); }
  .faq-active .faq-toggle { transform: rotate(90deg); color: var(--brand-600); }
  .faq .content h2 { font-size: var(--fs-2xl); }

  /* ---------- contact */
  .contact .info-container {
    background: var(--hero-bg); color: #fff; border-radius: var(--radius-lg); padding: var(--sp-6); height: 100%;
  }
  .info-item { gap: var(--sp-4); margin-bottom: var(--sp-5); width: 100%; }
  .info-item > div { min-width: 0; }
  .info-item p { overflow-wrap: anywhere; }
  .info-item i { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: rgb(255 255 255 / 0.12); color: #fff; font-size: 1.15rem; }
  .info-item h3 { font-size: var(--fs-md); color: #fff; margin-bottom: 2px; }
  .info-item p, .info-item a { color: rgb(255 255 255 / 0.85); font-size: var(--fs-sm); margin: 0; }
  .info-item a:hover { color: #fff; }
  .contact .php-email-form, .contact .contact-form {
    background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: var(--sp-6); box-shadow: var(--shadow); height: 100%;
  }

  /* ---------- utility pages (about / contact / policies) */
  .terms-section, .privacy-section {
    padding: clamp(1.25rem, 1rem + 1.2vw, 2rem); margin-bottom: var(--sp-5); box-shadow: var(--shadow-sm);
    border-top: 4px solid var(--brand-600);
  }
  .terms-section h2, .privacy-section h2 { font-size: var(--fs-xl); color: var(--ink-900); display: flex; align-items: center; gap: var(--sp-2); }
  .terms-section h2 i, .privacy-section h2 i { color: var(--brand-600); }
  .terms-section h4, .privacy-section h4 { font-size: var(--fs-md); color: var(--brand-700); margin: var(--sp-4) 0 var(--sp-3); }
  .terms-section p, .privacy-section p, .terms-section li, .privacy-section li { font-size: var(--fs-sm); color: var(--ink-700); }
  .terms-section ul, .privacy-section ul { padding-left: 1.2rem; }
  .terms-section li::marker, .privacy-section li::marker { color: var(--brand-500); }
  .section-alt { background: var(--surface-2); }

  /* ---------- reviews page */
  .page { padding-top: var(--header-h); }
  .page > .hero {
    background: var(--hero-bg); color: #fff; text-align: center;
    padding: clamp(3rem, 2rem + 4vw, 5rem) var(--sp-4); border-radius: 0 0 var(--radius-lg) var(--radius-lg);
  }
  .page > .hero h1 { color: #fff; }
  .page > .hero p { color: rgb(255 255 255 / 0.86); max-width: 680px; margin: 0 auto var(--sp-5); }
  .rating-pill { display: inline-flex; align-items: center; gap: var(--sp-2); padding: 0.4rem 1rem; border-radius: var(--radius-pill); background: rgb(255 255 255 / 0.12); margin-bottom: var(--sp-4); font-size: var(--fs-sm); font-weight: 600; }
  .rating-pill .stars, .review .stars { color: var(--gold); letter-spacing: 2px; }
  .page > .hero .stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: var(--sp-3); max-width: 760px; margin: 0 auto; }
  .page > .hero .stat { background: rgb(255 255 255 / 0.08); border-color: rgb(255 255 255 / 0.16); padding: var(--sp-4); color: rgb(255 255 255 / 0.85); font-size: var(--fs-sm); }
  .page > .hero .stat strong { display: block; font-size: 1.75rem; color: #fff; }
  .review-cta { text-align: center; margin: var(--sp-7) 0 var(--sp-6); }
  .verified-rating-summary { max-width: 820px; margin: 0 auto var(--sp-6); padding-inline: var(--sp-4); text-align: center; }
  .reviews-grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(min(320px, 100%), 1fr)); gap: var(--sp-5);
    max-width: 1200px; margin: 0 auto; padding: 0 var(--sp-4); min-height: 600px;
  }
  .review { padding: var(--sp-5); display: flex; flex-direction: column; gap: var(--sp-3); box-shadow: var(--shadow-sm); }
  .review-top { display: flex; align-items: center; gap: var(--sp-3); }
  .avatar { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--brand-600); color: #fff; font-weight: 700; flex-shrink: 0; }
  .reviewer h3 { font-size: var(--fs-md); margin: 0; }
  .reviewer span { font-size: var(--fs-xs); color: var(--ink-500); }
  .review-body { font-size: var(--fs-sm); color: var(--ink-700); flex: 1; }
  .review-meta { display: flex; justify-content: space-between; align-items: center; font-size: var(--fs-xs); color: var(--ink-400); border-top: 1px solid var(--line); padding-top: var(--sp-3); }
  .review-meta .badge { background: #e8f8f1; color: #08744f; font-weight: 600; padding: 3px 10px; border-radius: var(--radius-pill); font-size: var(--fs-xs); }
  .pagination { display: flex; justify-content: center; align-items: center; gap: var(--sp-2); flex-wrap: wrap; margin: var(--sp-6) 0 var(--sp-8); }
  .pagination-numbers { display: flex; gap: var(--sp-2); }
  .pagination button {
    min-width: 42px; height: 42px; padding: 0 var(--sp-3); border-radius: var(--radius-sm);
    border: 1px solid var(--line-strong); background: var(--surface); color: var(--ink-700); font-weight: 600; cursor: pointer;
    transition: background-color 0.15s, color 0.15s, border-color 0.15s;
  }
  .pagination button:hover:not(.active):not(:disabled) { border-color: var(--brand-600); color: var(--brand-700); }
  .pagination button.active { background: var(--brand-600); border-color: var(--brand-600); color: #fff; }
  .pagination button:disabled { opacity: 0.4; cursor: not-allowed; }

  /* review modal (.show toggled by script) */
  .modal { position: fixed; inset: 0; z-index: 1060; display: none; place-items: center; padding: var(--sp-4); background: rgb(22 19 43 / 0.6); }
  .modal.show { display: grid; animation: fade 0.2s var(--ease); }
  .modal-content { width: min(560px, 100%); max-height: 90vh; overflow-y: auto; padding: var(--sp-6); box-shadow: var(--shadow-lg); }
  .modal-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: var(--sp-5); }
  .modal-header h2 { font-size: var(--fs-xl); margin: 0; }
  .close-btn { background: none; border: 0; font-size: 1.75rem; line-height: 1; color: var(--ink-400); cursor: pointer; }
  .close-btn:hover { color: var(--ink-900); }
  .form-group { margin-bottom: var(--sp-4); }
  .star-rating { display: flex; gap: 4px; font-size: 1.75rem; cursor: pointer; }
  .star-rating .star { color: #d9d6e5; transition: transform 0.12s; }
  .star-rating .star:hover { transform: scale(1.12); }
  .star-rating .star.active { color: var(--gold); }
  .modal-buttons { display: flex; gap: var(--sp-3); }
  .modal-buttons button { flex: 1; }
  @keyframes fade { from { opacity: 0; } }

  /* ---------- footer */
  .footer { background: var(--brand-900); color: rgb(255 255 255 / 0.72); font-size: var(--fs-sm); }
  .footer-tools { padding-block: var(--sp-6) var(--sp-5); border-bottom: 1px solid rgb(255 255 255 / 0.1); }
  .footer-tools h4, .footer h4 { color: #fff; font-size: var(--fs-md); font-weight: 600; margin-bottom: var(--sp-4); }
  .tools-scroller { display: flex; gap: var(--sp-2); overflow-x: auto; padding-bottom: var(--sp-3); scrollbar-width: thin; scrollbar-color: rgb(255 255 255 / 0.25) transparent; }
  .footer .tool-chip { background: rgb(255 255 255 / 0.06); border-color: rgb(255 255 255 / 0.14); color: rgb(255 255 255 / 0.88); }
  .footer .tool-chip:hover { background: rgb(255 255 255 / 0.14); color: #fff; }
  .footer-top { padding-top: var(--sp-7); }
  .footer .logo img { height: 46px; width: auto; }
  .footer-about p { margin-top: var(--sp-4); line-height: 1.65; }
  .footer strong { color: #fff; }
  .footer-links ul { list-style: none; padding: 0; margin: 0; }
  .footer-links li { margin-bottom: var(--sp-2); display: flex; align-items: center; gap: 6px; }
  .footer-links a { color: rgb(255 255 255 / 0.72); }
  .footer-links a:hover { color: #fff; }
  .footer-links i { color: var(--brand-200); font-size: 0.75rem; }
  .footer .social-links a {
    display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; margin-right: var(--sp-2);
    border: 1px solid rgb(255 255 255 / 0.18); color: rgb(255 255 255 / 0.8); transition: background-color 0.15s, color 0.15s;
  }
  .footer .social-links a:hover { background: var(--brand-600); border-color: var(--brand-600); color: #fff; }
  .footer .copyright { border-top: 1px solid rgb(255 255 255 / 0.1); padding-block: var(--sp-5); font-size: var(--fs-xs); }
  .footer .copyright p { margin: 0 0 var(--sp-1); }
  .footer .credits a { color: rgb(255 255 255 / 0.85); }

  /* ---------- scroll-top (.active toggled by main.js) */
  .scroll-top {
    position: fixed; right: 18px; bottom: 18px; z-index: 1020; width: 44px; height: 44px; border-radius: 50%;
    background: var(--brand-600); color: #fff; font-size: 1.5rem; box-shadow: var(--shadow-lg);
    opacity: 0; visibility: hidden; transform: translateY(10px);
    transition: opacity 0.2s var(--ease), transform 0.2s var(--ease), visibility 0.2s;
  }
  .scroll-top.active { opacity: 1; visibility: visible; transform: none; }
  .scroll-top:hover { background: var(--brand-700); color: #fff; }

  /* ---------- error pages */
  .error-page { min-height: 100vh; display: grid; place-items: center; padding: var(--sp-4); background: var(--hero-bg); margin: 0; }
  .error-page .card {
    width: min(560px, 100%); text-align: center; padding: clamp(2rem, 1.5rem + 2vw, 3rem);
    background: var(--surface); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); border: 0;
  }
  .error-page .code { font-size: clamp(4rem, 3rem + 4vw, 6rem); font-weight: 800; line-height: 1; color: var(--brand-600); margin-bottom: var(--sp-3); letter-spacing: -0.04em; }
  .error-page h1 { font-size: var(--fs-2xl); }
  .error-page p { color: var(--ink-500); }
  .error-page .links { display: flex; flex-wrap: wrap; gap: var(--sp-2); justify-content: center; margin-top: var(--sp-5); }
}

/* ------------------------------------------------------------- utilities */
@layer utilities {
  .text-brand { color: var(--brand-600); }
  .text-muted-ink { color: var(--ink-500); }
  .visually-hidden-focusable:not(:focus) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .hp-field { position: absolute; left: -9999px; top: -9999px; }

  @media (max-width: 991.98px) {
    :root { --header-h: 104px; }
    .contact .info-container { margin-bottom: var(--sp-5); }
  }
  @media (max-width: 575.98px) {
    :root { --header-h: 96px; }
    .header .topbar { height: 36px; }
    .header .branding { min-height: 60px; }
    .header .logo img { height: 38px; }
    .panel, .terms-section, .privacy-section, #class-cost-calculator { border-radius: var(--radius); }
  }
  @media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
  }
}

/* ===================================================== service pages */
@layer components {
  .section-title--left { text-align: left; margin-inline: 0; margin-bottom: var(--sp-4); padding-inline: 0; }
  .section-title--left h2::after { margin-left: 0; }
  .measure { max-width: 800px; margin-inline: auto; }
  .accent-bar { width: 48px; height: 4px; border-radius: 4px; background: var(--brand-600); margin: var(--sp-4) auto 0; }
  .icon-tile {
    flex-shrink: 0; display: grid; place-items: center; width: 50px; height: 50px; border-radius: 12px;
    background: var(--brand-50); color: var(--brand-600); font-size: 1.35rem;
  }
  .panel--dark, .service-item.is-dark { background: var(--hero-bg); border-color: transparent; color: rgb(255 255 255 / 0.88); }
  .panel--dark { text-align: center; }
  .panel--dark p { max-width: 760px; margin-inline: auto; }
  .panel--dark h2, .panel--dark h3, .panel--dark h4, .panel--dark strong,
  .is-dark h3, .is-dark .icon, .is-dark .readmore { color: #fff; }
  .panel--dark p, .is-dark p { color: rgb(255 255 255 / 0.86); }
  .panel--dark .icon-tile { background: rgb(255 255 255 / 0.14); color: #fff; }
  .panel--dark .btn, .panel--dark .btn-light { background: #fff; color: var(--brand-700); border: 0; border-radius: var(--radius-pill); font-weight: 600; padding: 0.75rem 2rem; }

  /* service cards inside service pages: text link, not a button */
  .service-item .readmore {
    background: none; box-shadow: none; padding: 0; min-height: 0; border-radius: 0;
    color: var(--brand-600); font-weight: 600; margin-top: var(--sp-2);
  }
  .service-item .readmore:hover { background: none; color: var(--brand-800); transform: none; box-shadow: none; }
  .service-item h3 { font-size: var(--fs-lg); margin-top: var(--sp-3); }
  .service-item p { font-size: var(--fs-sm); color: var(--ink-500); }
  .service-item.text-center h3 { font-size: var(--fs-md); margin-bottom: 0; }
  .service-item.text-center .icon { font-size: 1.75rem; }

  /* hero list icons + trustpilot row on service pages */
  .hero .d-flex.align-items-center > a { color: #fff; font-weight: 700; }
  .hero .alert-info { margin-bottom: var(--sp-4); }

  /* stats (service pages: .stats-item with purecounter) */
  .stats-item {
    gap: var(--sp-4); align-items: flex-start; height: 100%; padding: var(--sp-5);
    background: rgb(255 255 255 / 0.08); border: 1px solid rgb(255 255 255 / 0.16); border-radius: var(--radius);
  }
  .stats-item i { font-size: 1.75rem; color: var(--gold); line-height: 1; }
  .stats-item .purecounter { display: block; font-size: 2rem; font-weight: 800; color: #fff; line-height: 1.1; min-height: 1.1em; font-variant-numeric: tabular-nums; }
  .stats-item p { margin: var(--sp-1) 0 0; font-size: var(--fs-sm); color: rgb(255 255 255 / 0.82); }

  /* feature list (numbered process / support blocks) */
  .features-list { margin-top: var(--sp-5); }
  .feature-item {
    gap: var(--sp-4); padding: var(--sp-4) var(--sp-5); background: var(--surface);
    border: 1px solid var(--line); border-radius: var(--radius); align-items: flex-start;
  }
  .feature-item > i { font-size: 1.6rem; color: var(--brand-600); line-height: 1; margin-top: 2px; }
  .feature-item h5 { font-size: var(--fs-md); margin-bottom: var(--sp-1); }
  .feature-item p { font-size: var(--fs-sm); color: var(--ink-500); margin: 0; }
  .why-choose-us .content > h3 { font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: 0.08em; color: var(--brand-600); margin-bottom: var(--sp-2); }
  .why-choose-us-img img { border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); }

  /* pricing variants on some pages */
  .price { font-size: 2.25rem; font-weight: 800; color: var(--ink-900); margin: var(--sp-3) 0; font-variant-numeric: tabular-nums; }
  .price-unit { font-size: var(--fs-sm); font-weight: 500; color: var(--ink-500); }
  .pricing-item h3 { color: var(--brand-700); }
  .pricing-item .list-unstyled li { justify-content: flex-start; }

  /* insight cards */
  .insight-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--sp-4); margin-top: var(--sp-2); text-align: left; }
  .insight-grid-span-last .insight-card:last-child { grid-column: 1 / -1; }
  .insight-card { background: var(--surface); border: 1px solid var(--line); border-left: 3px solid var(--brand-600); border-radius: var(--radius); padding: var(--sp-4) var(--sp-5); }
  .insight-label { display: flex; align-items: center; gap: var(--sp-2); font-size: var(--fs-xs); font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; color: var(--brand-600); margin-bottom: var(--sp-2); }
  .insight-card p { font-size: var(--fs-sm); margin: 0; }
  @media (max-width: 991.98px) { .insight-grid { grid-template-columns: 1fr; } }

  /* testimonials */
  .testimonial-card {
    height: 100%; display: flex; flex-direction: column; gap: var(--sp-3); padding: var(--sp-5);
    background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm);
  }
  .testimonial-card .stars { color: var(--gold); display: flex; gap: 2px; }
  .testimonial-text { font-size: var(--fs-sm); color: var(--ink-700); flex: 1; margin: 0; }
  .testimonial-author { border-top: 1px solid var(--line); padding-top: var(--sp-3); }
  .author-info h5 { font-size: var(--fs-sm); margin: 0; }
  .author-info p { font-size: var(--fs-xs); color: var(--ink-500); margin: 0; }

  /* related services */
  .related-service-card {
    display: flex; align-items: center; justify-content: space-between; gap: var(--sp-3); height: 100%;
    padding: var(--sp-4) var(--sp-5); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
    transition: transform 0.2s var(--ease), border-color 0.2s, box-shadow 0.2s;
  }
  .related-service-card::after { content: ""; flex-shrink: 0; width: 8px; height: 8px; border: solid var(--brand-600); border-width: 2px 2px 0 0; transform: rotate(45deg); }
  .related-service-card h3 { font-size: var(--fs-sm); font-weight: 600; margin: 0; color: var(--ink-900); }
  .related-service-card:hover { transform: translateY(-2px); border-color: var(--brand-200); box-shadow: var(--shadow); }

  /* contact section form variant (bootstrap .btn) */
  .contact .form-label { margin-bottom: 4px; }
  .contact .btn-primary { --bs-btn-bg: var(--brand-600); }

  /* ---------- services hub (/services/) */
  .services-hero, .tools-hero {
    background: var(--hero-bg); color: #fff; text-align: center;
    padding: calc(var(--header-h) + clamp(2.5rem, 2rem + 3vw, 4.5rem)) 0 clamp(2.5rem, 2rem + 3vw, 4rem);
  }
  .services-hero h1, .tools-hero h1 { color: #fff; }
  .services-hero p, .tools-hero p { color: rgb(255 255 255 / 0.86); max-width: 720px; margin: 0 auto var(--sp-5); }
  .stat-box { min-width: 128px; padding: var(--sp-3) var(--sp-4); border-radius: var(--radius); background: rgb(255 255 255 / 0.08); border: 1px solid rgb(255 255 255 / 0.16); }
  .stat-number { font-size: 1.5rem; font-weight: 800; line-height: 1.1; }
  .stat-label { font-size: var(--fs-xs); color: rgb(255 255 255 / 0.78); }
  .category-pills { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--sp-2); }
  .category-pills .badge {
    cursor: pointer; padding: 0.45rem 0.95rem; font-size: var(--fs-xs); font-weight: 500;
    background: rgb(255 255 255 / 0.08); color: rgb(255 255 255 / 0.9); border: 1px solid rgb(255 255 255 / 0.2);
    transition: background-color 0.15s, color 0.15s;
  }
  .category-pills .badge:hover { background: rgb(255 255 255 / 0.16); }
  .category-pills .badge.active { background: #fff; color: var(--brand-800); border-color: #fff; }
  .services-container, .tools-container { padding-block: var(--section-y); background: var(--surface-2); }
  .search-box { display: flex; max-width: 620px; margin: 0 auto var(--sp-6); background: var(--surface); border: 1.5px solid var(--line-strong); border-radius: var(--radius-pill); padding: 4px; box-shadow: var(--shadow-sm); }
  .search-box:focus-within { border-color: var(--brand-600); box-shadow: var(--ring); }
  .search-box input { flex: 1; min-width: 0; border: 0; background: none; padding: 0.6rem 1.1rem; font: inherit; font-size: var(--fs-sm); color: var(--ink-900); outline: none; }
  .search-box button { border: 0; width: 44px; height: 44px; border-radius: 50%; background: var(--brand-600); color: #fff; cursor: pointer; }
  .service-feature-card, .tool-feature-card {
    height: 100%; display: flex; flex-direction: column; overflow: hidden;
    background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm);
    transition: transform 0.22s var(--ease), box-shadow 0.22s var(--ease), border-color 0.22s;
  }
  .service-feature-card:hover, .tool-feature-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: var(--brand-200); }
  .service-card-header, .tool-card-header { display: flex; align-items: center; padding: var(--sp-5) var(--sp-5) 0; }
  .service-card-header i, .tool-card-header i { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 14px; background: var(--brand-50); color: var(--brand-600); font-size: 1.4rem; }
  .service-card-body, .tool-card-body { display: flex; flex-direction: column; flex: 1; padding: var(--sp-4) var(--sp-5) var(--sp-5); }
  .service-category, .tool-category { font-size: var(--fs-xs); font-weight: 600; color: var(--brand-600); text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: var(--sp-2); }
  .service-card-body h2, .tool-card-body h2 { font-size: var(--fs-lg); margin-bottom: var(--sp-2); }
  .service-card-body h2 a, .tool-card-body h2 a { color: var(--ink-900); }
  .service-card-body h2 a:hover, .tool-card-body h2 a:hover { color: var(--brand-700); }
  .service-excerpt, .tool-excerpt { font-size: var(--fs-sm); color: var(--ink-500); flex: 1; }
  .service-card-footer, .tool-card-footer { display: flex; justify-content: space-between; align-items: center; gap: var(--sp-2); border-top: 1px solid var(--line); padding-top: var(--sp-3); }
  .grade-badge, .free-badge { font-size: var(--fs-xs); font-weight: 600; color: var(--success); }
  .read-more { font-size: var(--fs-sm); font-weight: 600; display: inline-flex; gap: 4px; align-items: center; }
}

/* ============================== landing layout (Math / Political Science) */
@layer components {
  .service-page main > section { position: relative; padding-block: var(--section-y); overflow-x: clip; }
  .service-page main > section:nth-of-type(even) { background: var(--surface-2); }
  .section-scenery, .ambient-orb, .top-gradient, .bottom-gradient { display: none; }
  .badge-placeholder { height: 30px; }

  .section-header { max-width: 780px; margin: 0 auto var(--sp-6); }
  .section-header.center, .center { text-align: center; }
  .section-header .badge, .hero-badge, .pricing-tier .badge {
    display: inline-flex; align-items: center; gap: 6px; padding: 0.35rem 0.9rem; border-radius: var(--radius-pill);
    font-size: var(--fs-xs); font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase;
    background: var(--brand-50); color: var(--brand-700); border: 1px solid var(--brand-100); margin-bottom: var(--sp-3);
  }
  .section-header p { color: var(--ink-500); }

  /* hero */
  .service-page .hero {
    background: var(--hero-bg); color: rgb(255 255 255 / 0.88);
    padding-top: calc(var(--header-h) + clamp(2rem, 1.5rem + 3vw, 4.5rem));
  }
  .hero-container { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: clamp(2rem, 1rem + 4vw, 4rem); align-items: center; }
  .hero-badge { background: rgb(255 255 255 / 0.12); border-color: rgb(255 255 255 / 0.22); color: #ffe08a; text-transform: none; letter-spacing: 0; }
  .hero-badge svg { width: 16px; height: 16px; }
  .hero-h1 { color: #fff; }
  .hero-subheading { color: rgb(255 255 255 / 0.86); font-size: var(--fs-md); }
  .hero .hero-bullets { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: var(--sp-3) var(--sp-5); margin: var(--sp-5) 0; }
  .hero .hero-bullets li { margin: 0; }
  .hero-icon { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 8px; background: rgb(255 255 255 / 0.12); }
  .hero-icon svg { width: 16px; height: 16px; }
  .hero-trust-badges { display: flex; flex-wrap: wrap; gap: var(--sp-3); }
  .trust-badge-item { display: block; padding: var(--sp-3) var(--sp-4); border-radius: var(--radius); background: #fff; box-shadow: var(--shadow); }
  .trust-badge-logo { height: 22px; width: auto; display: block; margin-bottom: 4px; }
  .trust-badge-rating-row { display: flex; align-items: center; gap: var(--sp-2); }
  .trust-badge-stars { display: flex; gap: 1px; color: var(--gold); }
  .trust-badge-stars svg { width: 14px; height: 14px; }
  .trust-badge-rating { font-weight: 700; color: var(--ink-900); font-size: var(--fs-sm); }
  .hero-form-card {
    background: var(--surface); color: var(--ink-700); border-radius: var(--radius-lg);
    padding: clamp(1.25rem, 1rem + 1vw, 2rem); box-shadow: var(--shadow-lg);
  }
  .hero-form-card .form-title { color: var(--ink-900); font-size: var(--fs-xl); }
  .hero-form-card .form-description { color: var(--ink-500); font-size: var(--fs-sm); }
  .service-page .hero form { background: none; box-shadow: none; padding: 0; max-width: none; border-radius: 0; }
  .service-page .hero label { color: var(--ink-900); }
  .form-message { font-size: var(--fs-sm); margin-top: var(--sp-3); }
  .btn-full { width: 100%; }

  /* landing buttons (.btn .btn-primary / .btn-secondary / .btn-expert) */
  .service-page .btn { border-radius: var(--radius-pill); min-height: 48px; font-weight: 600; padding: 0.75rem 1.5rem; }
  .service-page .btn-primary, .btn-expert { background: var(--brand-600); border-color: var(--brand-600); color: #fff; }
  .service-page .btn-primary:hover, .btn-expert:hover { background: var(--brand-700); border-color: var(--brand-700); color: #fff; }

  /* stats bar */
  .service-page main > section.stats-bar { background: var(--hero-bg); color: #fff; padding-block: var(--sp-7); }
  .stats-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--sp-4); }
  .stat-card { text-align: center; padding: var(--sp-5); border-radius: var(--radius); background: rgb(255 255 255 / 0.08); border: 1px solid rgb(255 255 255 / 0.16); }
  .stat-icon { color: var(--gold); margin-bottom: var(--sp-2); }
  .stat-icon svg { width: 28px; height: 28px; }
  .stat-value { font-size: clamp(1.75rem, 1.4rem + 1.2vw, 2.5rem); font-weight: 800; line-height: 1.1; font-variant-numeric: tabular-nums; min-height: 1.1em; }

  /* team marquee */
  .team-carousel-container { position: relative; }
  .team-carousel { display: flex; overflow-x: auto; scrollbar-width: none; mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
  .team-carousel::-webkit-scrollbar { display: none; }
  .team-track { display: flex; gap: var(--sp-4); width: max-content; padding-block: var(--sp-2); animation: marquee 55s linear infinite; }
  .team-track:hover, .team-track.paused { animation-play-state: paused; }
  .team-card { position: relative; width: 240px; aspect-ratio: 4 / 5; border-radius: var(--radius); overflow: hidden; flex-shrink: 0; box-shadow: var(--shadow); }
  .team-img { width: 100%; height: 100%; object-fit: cover; }
  .team-overlay { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: space-between; padding: var(--sp-3); color: #fff; background: linear-gradient(180deg, rgb(22 19 43 / 0.55), transparent 35%, transparent 55%, rgb(22 19 43 / 0.85)); }
  .team-info-top { display: flex; justify-content: space-between; align-items: center; font-weight: 600; font-size: var(--fs-sm); }
  .team-rating { display: inline-flex; align-items: center; gap: 4px; font-size: var(--fs-xs); }
  .team-rating svg { width: 14px; height: 14px; color: var(--gold); }
  .status-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #22c55e; margin-left: 4px; }
  .team-degree { font-size: var(--fs-xs); font-weight: 600; }
  .team-orders { font-size: var(--fs-xs); opacity: 0.8; }
  .carousel-nav-btn {
    position: absolute; top: 50%; z-index: 3; transform: translateY(-50%); width: 44px; height: 44px; border-radius: 50%;
    display: grid; place-items: center; background: var(--surface); color: var(--ink-900); border: 1px solid var(--line); box-shadow: var(--shadow); cursor: pointer;
  }
  .carousel-nav-btn svg { width: 18px; height: 18px; }
  .carousel-nav-btn:hover { color: var(--brand-700); border-color: var(--brand-200); }
  .team-prev, .carousel-prev { left: 4px; }
  .team-next, .carousel-next { right: 4px; }

  /* review 3D carousel (.active/.prev/.next/.hidden set by Carousel.js) */
  .review-carousel-container { position: relative; height: 500px; perspective: 1200px; }
  .carousel-track .testimonial-card p, .carousel-track .testimonial-card div:not([class]) { font-size: var(--fs-sm); }
  .carousel-track { position: relative; height: 100%; display: flex; align-items: center; justify-content: center; transform-style: preserve-3d; }
  .carousel-track .testimonial-card {
    position: absolute; width: min(400px, 82vw); height: auto; opacity: 0; pointer-events: none; cursor: pointer;
    transition: transform 0.6s var(--ease), opacity 0.6s var(--ease);
  }
  .carousel-track .testimonial-card.active { opacity: 1; pointer-events: auto; transform: translate3d(0, 0, 0); z-index: 3; box-shadow: var(--shadow-lg); }
  .carousel-track .testimonial-card.prev { opacity: 0.5; pointer-events: auto; transform: translate3d(-90%, 0, -220px) scale(0.88); z-index: 2; }
  .carousel-track .testimonial-card.next { opacity: 0.5; pointer-events: auto; transform: translate3d(90%, 0, -220px) scale(0.88); z-index: 2; }
  .carousel-track .testimonial-card.hidden { opacity: 0; transform: translate3d(0, 0, -300px) scale(0.6); z-index: 0; }
  .testimonial-quote-icon { color: var(--brand-200); }
  .testimonial-quote-icon svg { width: 28px; height: 28px; }
  .testimonial-header { display: flex; justify-content: space-between; align-items: flex-start; gap: var(--sp-3); }
  .testimonial-author-avatar { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--brand-600); color: #fff; font-weight: 700; margin-bottom: var(--sp-2); }
  .testimonial-author-name { font-weight: 700; color: var(--ink-900); font-size: var(--fs-sm); }
  .testimonial-details { font-size: var(--fs-xs); color: var(--ink-500); }
  .testimonial-rating { display: flex; gap: 1px; color: var(--gold); flex-shrink: 0; }
  .testimonial-rating svg { width: 14px; height: 14px; }
  .testimonial-card .testimonial-header .testimonial-author { border: 0; padding: 0; }
  .reviews-cta-wrapper { text-align: center; margin-top: var(--sp-5); }

  /* process steps */
  .guide-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr)); gap: var(--sp-5); }
  .process-step, .benefit-card, .coverage-card, .pitfall-card, .pricing-tier {
    position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
    padding: var(--sp-5); box-shadow: var(--shadow-sm); transition: transform 0.22s var(--ease), box-shadow 0.22s var(--ease), border-color 0.22s;
  }
  .process-step:hover, .benefit-card:hover, .coverage-card:hover, .pitfall-card:hover, .pricing-tier:hover,
  .process-step.mobile-focus, .coverage-card.mobile-focus { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: var(--brand-200); }
  .step-number { position: absolute; top: var(--sp-4); right: var(--sp-5); font-size: 2.5rem; font-weight: 800; color: var(--brand-100); line-height: 1; }
  .step-icon, .benefit-icon-container, .coverage-icon-wrapper, .pitfall-icon {
    display: grid; place-items: center; width: 52px; height: 52px; border-radius: 14px;
    background: var(--brand-50); color: var(--brand-600); margin-bottom: var(--sp-4); flex-shrink: 0;
  }
  .step-icon svg, .benefit-icon-container svg, .coverage-icon-wrapper svg, .pitfall-icon svg { width: 24px; height: 24px; }
  .step-title, .benefit-title { font-size: var(--fs-lg); }
  .step-description, .benefit-description { font-size: var(--fs-sm); color: var(--ink-500); margin: 0; }

  /* benefits / coverage / pitfalls grids */
  .benefits-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr)); gap: var(--sp-5); }
  .coverage-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); gap: var(--sp-4); }
  .coverage-card h4 { font-size: var(--fs-md); }
  .coverage-card p { font-size: var(--fs-sm); color: var(--ink-500); margin: 0; }
  .pitfalls-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr)); gap: var(--sp-4); }
  .pitfalls-grid > svg { position: absolute; width: 0; height: 0; }
  .pitfall-card { display: flex; gap: var(--sp-4); align-items: flex-start; }
  .pitfall-icon { background: #fff1ef; color: #c2410c; }
  .pitfall-content h4 { font-size: var(--fs-md); }
  .pitfall-content p { font-size: var(--fs-sm); margin-bottom: var(--sp-2); }

  /* logo marquees */
  .marquee-container { overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); padding-block: var(--sp-3); }
  .marquee-track { display: flex; gap: var(--sp-5); width: max-content; animation: marquee 30s linear infinite; }
  .marquee-track:hover { animation-play-state: paused; }
  .lms-badge { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: var(--sp-2); width: 150px; padding: var(--sp-4); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
  .lms-image { height: 44px; width: auto; max-width: 110px; object-fit: contain; }
  .lms-name { font-size: var(--fs-xs); font-weight: 600; color: var(--ink-700); }
  .lms-mastery-text { text-align: center; max-width: 760px; margin: var(--sp-5) auto 0; color: var(--ink-500); font-size: var(--fs-sm); }
  @keyframes marquee { to { transform: translateX(-50%); } }

  /* expandable long-form blocks (.is-expanded toggled by main.js) */
  .expandable-wrapper { max-width: 860px; margin: 0 auto; text-align: center; }
  .expandable-content { position: relative; max-height: 300px; overflow: hidden; text-align: left; transition: max-height 0.5s var(--ease); }
  .expandable-content p { font-size: var(--fs-sm); }
  .expandable-wrapper:not(.is-expanded) .expandable-content::after {
    content: ""; position: absolute; inset: auto 0 0; height: 120px; pointer-events: none;
    background: linear-gradient(transparent, var(--surface) 90%);
  }
  .service-page main > section:nth-of-type(even) .expandable-wrapper:not(.is-expanded) .expandable-content::after { background: linear-gradient(transparent, var(--surface-2) 90%); }
  .expandable-wrapper.is-expanded .expandable-content { max-height: none; }
  .btn-read-more {
    display: inline-flex; align-items: center; gap: var(--sp-2); margin-top: var(--sp-4); min-height: 44px; padding: 0.6rem 1.4rem;
    background: var(--surface); color: var(--brand-700); border: 1.5px solid var(--line-strong); border-radius: var(--radius-pill);
    font: 600 var(--fs-sm)/1 var(--font-sans); cursor: pointer;
  }
  .btn-read-more::after { content: ""; width: 7px; height: 7px; border: solid currentColor; border-width: 0 2px 2px 0; transform: rotate(45deg) translateY(-2px); transition: transform 0.2s; }
  .is-expanded .btn-read-more::after { transform: rotate(-135deg); }
  .btn-read-more:hover { border-color: var(--brand-600); }
  .conclusion-content h2 { margin-bottom: var(--sp-4); }

  /* pricing tiers */
  .pricing-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); gap: var(--sp-5); max-width: 860px; margin: 0 auto; align-items: stretch; }
  .pricing-tier { display: flex; flex-direction: column; text-align: center; padding: var(--sp-6) var(--sp-5); }
  .pricing-tier.featured { border: 2px solid var(--brand-600); box-shadow: var(--shadow-lg); }
  .pricing-tier .badge { align-self: center; background: var(--brand-600); color: #fff; border-color: transparent; }
  .tier-name { font-size: var(--fs-xs); font-weight: 700; letter-spacing: 0.08em; color: var(--brand-700); margin-bottom: var(--sp-2); }
  .tier-price { display: flex; justify-content: center; align-items: flex-start; font-size: 3rem; font-weight: 800; color: var(--ink-900); line-height: 1; margin-bottom: var(--sp-5); font-variant-numeric: tabular-nums; }
  .tier-price::before { content: "$"; font-size: 1.4rem; margin-top: 0.35rem; margin-right: 2px; color: var(--brand-600); }
  .tier-features { text-align: left; flex: 1; }
  .tier-features p { font-size: var(--fs-sm); padding: var(--sp-2) 0; margin: 0; border-bottom: 1px solid var(--line); }
  .tier-cta { margin-top: var(--sp-5); }
  .tier-cta .btn { width: 100%; }

  /* FAQ animated list (.selected / .expanded / .in-view set by AnimatedList.js) */
  .faq-layout-wrapper { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.6fr); gap: var(--sp-6); align-items: start; }
  .scroll-list-container { position: relative; }
  .scroll-list { display: flex; flex-direction: column; gap: var(--sp-3); max-height: 560px; overflow-y: auto; padding: 2px; }
  .no-scrollbar { scrollbar-width: none; }
  .no-scrollbar::-webkit-scrollbar { display: none; }
  .animated-item { opacity: 0.4; transition: opacity 0.25s var(--ease); }
  .animated-item.in-view { opacity: 1; }
  .animated-item .item { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: var(--sp-4) var(--sp-5); cursor: pointer; transition: border-color 0.2s, box-shadow 0.2s; }
  .animated-item .item:hover, .animated-item .item.selected { border-color: var(--brand-200); box-shadow: var(--shadow); }
  .item-header { display: flex; justify-content: space-between; align-items: center; gap: var(--sp-3); }
  .item-text { margin: 0; font-weight: 600; color: var(--ink-900); font-size: var(--fs-md); }
  .item.selected .item-text { color: var(--brand-700); }
  .item-icon { flex-shrink: 0; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--brand-50); color: var(--brand-600); font-weight: 700; transition: transform 0.25s var(--ease); }
  .item.expanded .item-icon { transform: rotate(45deg); }
  .item-answer { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 0.3s var(--ease); }
  .answer-content { overflow: hidden; min-height: 0; font-size: var(--fs-sm); color: var(--ink-500); }
  .item.expanded .item-answer { grid-template-rows: 1fr; }
  .item.expanded .answer-content { padding-top: var(--sp-3); }

  /* contact */
  .contact-form-wrapper { max-width: 760px; margin: 0 auto; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(1.25rem, 1rem + 1.2vw, 2rem); box-shadow: var(--shadow); }
  .form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 var(--sp-4); }
  .form-grid .form-group:last-child { grid-column: 1 / -1; }

  /* endorsement */
  .service-page main > section.third-party-endorsement { padding-block: var(--sp-6); }
  .endorsement-horizontal-card { display: flex; align-items: center; gap: var(--sp-5); flex-wrap: wrap; padding: var(--sp-5); background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--brand-600); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
  .medium-badge { display: inline-block; padding: 0.35rem 0.85rem; border-radius: var(--radius-pill); background: var(--ink-900); color: #fff; font-size: var(--fs-xs); font-weight: 600; white-space: nowrap; }
  .endorsement-content { flex: 1; min-width: 240px; }
  .endorsement-content p { margin: 0; font-size: var(--fs-sm); }
  .third-party-label { font-weight: 700; color: var(--ink-900); }
  .btn-endorsement { font-weight: 600; white-space: nowrap; }

  /* entrance animations (opacity/transform only) */
  @media (prefers-reduced-motion: no-preference) {
    .animate-fade-in { animation: rise 0.7s var(--ease) both; }
    .delay-1 { animation-delay: 0.1s; }
    .delay-2 { animation-delay: 0.2s; }
    .delay-3 { animation-delay: 0.3s; }
    .animate-float { animation: float 6s ease-in-out infinite; }
  }
  @keyframes rise { from { opacity: 0; transform: translateY(12px); } }

  .review-carousel-container { overflow-x: clip; }
  .u-hidden-svg { position: absolute; width: 0; height: 0; overflow: hidden; pointer-events: none; }
  .badge-icon { color: var(--gold); }

  /* stars (svg fills referenced by class) */
  .trust-badge-stars svg { fill: var(--gold); }
  .trust-badge-stars svg.star-filled { fill: #f59e0b; }
  .trust-badge-stars svg.star-gradient-50 { fill: url(#star-gradient-50); }
  .trust-badge-stars svg.star-gradient-70 { fill: url(#star-gradient-70); }

  /* testimonial internals (landing) */
  .testimonial-subject { font-size: var(--fs-xs); font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--brand-600); }
  .testimonial-quote { font-size: var(--fs-sm); color: var(--ink-700); font-style: italic; }
  .testimonial-grade { display: inline-block; align-self: flex-start; padding: 0.3rem 0.85rem; border-radius: var(--radius-pill); background: var(--brand-50); font-size: var(--fs-xs); font-weight: 600; color: var(--ink-700); }
  .testimonial-grade span { color: var(--brand-700); font-weight: 800; }
  .rating-badge { display: inline-flex; align-items: center; gap: 0.35rem; padding: 0.45rem 1rem; border-radius: var(--radius-pill); background: var(--surface); border: 1px solid var(--line); font-size: var(--fs-sm); margin-right: var(--sp-3); }
  .reviews-cta-wrapper { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: var(--sp-3); }

  /* team CTA (sits inside the horizontal scroller) */
  .team-carousel { flex-wrap: wrap; }
  .team-cta-container { position: sticky; left: 0; flex: 0 0 100%; max-width: 100%; display: flex; flex-direction: column; align-items: center; gap: var(--sp-2); margin-top: var(--sp-5); }
  .team-carousel-container .team-carousel { mask-image: none; }
  .team-track { mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent); }
  .btn-expert { display: inline-flex; align-items: center; min-height: 48px; padding: 0.75rem 1.75rem; border-radius: var(--radius-pill); font-weight: 600; box-shadow: 0 6px 16px rgb(103 64 203 / 0.28); }
  .trust-text { display: flex; align-items: center; gap: var(--sp-2); font-size: var(--fs-sm); color: var(--ink-500); }
  .trust-icon { width: 18px; height: 18px; }
  .trust-icon path { fill: var(--ink-500); }
  .form-guarantee { text-align: center; font-size: var(--fs-sm); color: var(--success); font-weight: 600; margin: var(--sp-3) 0 0; }

  /* lead popup (.show toggled by inline script / onclick) */
  .lead-popup-overlay {
    position: fixed; inset: 0; z-index: 1070; display: grid; place-items: center; padding: var(--sp-4); overflow-y: auto;
    background: rgb(22 19 43 / 0.7); opacity: 0; visibility: hidden; transition: opacity 0.25s var(--ease), visibility 0.25s;
  }
  .lead-popup-overlay.show { opacity: 1; visibility: visible; }
  .lead-popup-container {
    position: relative; width: min(460px, 100%); background: var(--surface); border-radius: var(--radius-lg);
    padding: clamp(1.5rem, 1rem + 2vw, 2.5rem); box-shadow: var(--shadow-lg); transform: translateY(12px) scale(0.98); transition: transform 0.25s var(--ease);
  }
  .lead-popup-overlay.show .lead-popup-container { transform: none; }
  .lead-popup-close { position: absolute; top: 10px; right: 14px; background: none; border: 0; font-size: 1.75rem; line-height: 1; color: var(--ink-400); cursor: pointer; }
  .lead-popup-close:hover { color: var(--ink-900); }
  .lead-popup-title { font-size: var(--fs-2xl); text-align: center; }
  .lead-popup-subtitle { text-align: center; color: var(--ink-500); font-size: var(--fs-sm); }
  .lead-popup-form { display: flex; flex-direction: column; gap: var(--sp-3); }
  .lead-popup-input { width: 100%; min-height: 48px; padding: 0.7rem 0.95rem; font: 400 var(--fs-sm)/1.4 var(--font-sans); border: 1.5px solid var(--line-strong); border-radius: var(--radius-sm); }
  .lead-popup-input:focus { border-color: var(--brand-600); box-shadow: var(--ring); outline: none; }
  .lead-popup-button { min-height: 50px; border: 0; border-radius: var(--radius-pill); background: var(--brand-600); color: #fff; font: 700 var(--fs-sm)/1 var(--font-sans); cursor: pointer; }
  .lead-popup-button:hover { background: var(--brand-700); }
  .lead-popup-guarantee { text-align: center; font-size: var(--fs-xs); color: var(--ink-500); margin: var(--sp-4) 0 0; }

  @media (max-width: 991.98px) {
    .hero-container, .faq-layout-wrapper { grid-template-columns: 1fr; }
    .stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  }
  @media (max-width: 575.98px) {
    .form-grid { grid-template-columns: 1fr; }
    .review-carousel-container { height: 480px; }
    .carousel-track .testimonial-card.prev, .carousel-track .testimonial-card.next { opacity: 0; pointer-events: none; }
  }
}

/* ===================================================== global overrides */
@layer utilities {
  /* top bar removed sitewide */
  .header .topbar { display: none; height: 0; min-height: 0; padding: 0; border: 0; overflow: hidden; visibility: hidden; }
  :root { --header-h: 72px; }
  @media (max-width: 991.98px) { :root { --header-h: 72px; } }
  @media (max-width: 575.98px) { :root { --header-h: 60px; } }

  /* phone numbers hidden (markup and schema untouched) */
  a[href^="sms:"],
  .info-item:has(.bi-telephone), .info-item:has(.bi-phone),
  li:has(> a[href^="tel:"]),
  .auto-grid > div:has(a[href^="tel:"]), .auto-grid > div:has(a[href^="https://wa.me"]),
  .trust-badge-item:has(a[href^="tel:"]) {
    /* collapse too: bootstrap .d-flex keeps display with !important */
    display: none; height: 0; min-height: 0; margin: 0; padding: 0; border: 0; overflow: hidden; visibility: hidden;
  }
}

/* ===================================================== footer */
@layer components {
  .tools-scroller, .footer-links ul { scrollbar-width: none; -ms-overflow-style: none; }
  .tools-scroller::-webkit-scrollbar, .footer-links ul::-webkit-scrollbar { display: none; }
  .tools-scroller { mask-image: linear-gradient(90deg, #000 92%, transparent); padding-bottom: 0; }

  /* each footer column shows 4 links; the rest scroll inside the column */
  .footer-links ul {
    --row: calc(1.4em + 0.7rem);
    max-height: calc(var(--row) * 4); overflow-y: auto; overscroll-behavior: contain;
    scroll-snap-type: y mandatory; padding-right: 4px;
    mask-image: linear-gradient(#000 calc(100% - 1.4rem), transparent);
  }
  .footer-links ul:hover { mask-image: none; }
  .footer-links li {
    height: var(--row); margin: 0; padding: 0.35rem 0; line-height: 1.4; scroll-snap-align: start;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block;
  }
  .footer-links li a { display: inline; }
  .footer-links li i { margin-right: 6px; }
  .footer-links h4 { margin-bottom: var(--sp-3); }
  @media (min-width: 992px) {
    .footer-top > .row { display: grid; grid-template-columns: minmax(0, 1.3fr) repeat(4, minmax(0, 1fr)); gap: var(--sp-6); margin: 0; }
    .footer-top > .row > * { width: auto; max-width: none; padding: 0; }
  }
}

/* ===================================================== landing pages aligned with the rest */
@layer components {
  .section-header h2::after {
    content: ""; display: block; width: 48px; height: 4px; border-radius: 4px; background: var(--brand-600); margin: var(--sp-4) 0 0;
  }
  .section-header.center h2::after { margin-inline: auto; }
  .service-page main > section.hero { background: var(--hero-bg); }
  .hero-form-card .form-group input { background: var(--surface); }
  .hero-form-card .btn-primary, .contact-form-wrapper .btn-primary { width: 100%; }
}

/* ===================================================== blog */
@layer components {
  /* post hero */
  .blog-post-hero, .blog-hero {
    position: relative; background: var(--hero-bg); color: #fff; text-align: center;
    padding: calc(var(--header-h) + clamp(2.5rem, 2rem + 3vw, 4.5rem)) 0 clamp(2.5rem, 2rem + 3vw, 4rem);
  }
  .blog-post-hero h1, .blog-hero h1 { color: #fff; max-width: 900px; margin-inline: auto; }
  .blog-hero p { color: rgb(255 255 255 / 0.86); max-width: 720px; margin: 0 auto var(--sp-5); }
  .blog-post-meta { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--sp-2) var(--sp-5); font-size: var(--fs-sm); color: rgb(255 255 255 / 0.82); margin-top: var(--sp-4); }
  .blog-post-meta i { color: var(--gold); margin-right: 4px; }
  .blog-categories { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--sp-2); }
  .blog-categories .badge { background: rgb(255 255 255 / 0.1); color: #fff; border: 1px solid rgb(255 255 255 / 0.2); font-weight: 500; padding: 0.45rem 0.9rem; border-radius: var(--radius-pill); font-size: var(--fs-xs); }

  /* article */
  .blog-post-content { padding-block: var(--section-y); background: var(--surface-2); }
  .blog-post-article { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(1.25rem, 0.75rem + 2.5vw, 3rem); box-shadow: var(--shadow-sm); }
  .blog-post-image { width: 100%; height: auto; border-radius: var(--radius); margin-bottom: var(--sp-5); }
  .blog-post-body { font-size: var(--fs-md); color: var(--ink-700); }
  .blog-post-body .lead { font-size: 1.15rem; color: var(--ink-900); line-height: 1.7; }
  .blog-post-body h2 { font-size: var(--fs-xl); margin: var(--sp-6) 0 var(--sp-3); scroll-margin-top: calc(var(--header-h) + 16px); }
  .blog-post-body h3 { font-size: var(--fs-lg); margin: var(--sp-5) 0 var(--sp-2); }
  .blog-post-body h4 { font-size: var(--fs-md); }
  .blog-post-body ul, .blog-post-body ol { padding-left: 1.3rem; margin-bottom: var(--sp-4); }
  .blog-post-body li::marker { color: var(--brand-600); }
  .blog-post-body a { color: var(--brand-600); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--brand-200); }
  .blog-post-body a:hover { text-decoration-color: currentColor; }
  .blog-post-body img { border-radius: var(--radius); height: auto; }
  .blog-post-body blockquote { margin: var(--sp-5) 0; padding: var(--sp-4) var(--sp-5); border-left: 4px solid var(--brand-600); background: var(--brand-50); border-radius: 0 var(--radius) var(--radius) 0; font-style: italic; }
  .blog-post-body table { display: block; width: 100%; max-width: 100%; overflow-x: auto; margin: var(--sp-4) 0; font-size: var(--fs-sm); border: 1px solid var(--line); border-radius: var(--radius-sm); }
  .blog-post-body th, .blog-post-body td { min-width: 120px; }
  .blog-post-body th, .blog-post-body td { padding: 0.7rem 0.9rem; border: 1px solid var(--line); text-align: left; vertical-align: top; }
  .blog-post-body th { background: var(--surface-3); color: var(--ink-900); }
  .content-section { margin-bottom: var(--sp-5); }
  .content-section:first-child h2 { margin-top: 0; }

  /* callout boxes inside posts */
  .strategy-box, .pro-tip, .time-tip, .math-tip, .common-pitfall, .closing-note, .anxiety-stat {
    margin: var(--sp-5) 0; padding: var(--sp-4) var(--sp-5); border-radius: var(--radius);
    background: var(--brand-50); border: 1px solid var(--brand-100); border-left: 4px solid var(--brand-600);
  }
  .strategy-box h4, .pro-tip h4, .time-tip h4, .math-tip h4 { color: var(--brand-800); margin-top: 0; }
  .strategy-box > :last-child, .pro-tip > :last-child, .time-tip > :last-child, .math-tip > :last-child,
  .common-pitfall > :last-child, .closing-note > :last-child, .anxiety-stat > :last-child { margin-bottom: 0; }
  .common-pitfall { background: #fff6f3; border-color: #fbd9cd; border-left-color: #c2410c; }
  .closing-note { background: var(--surface-2); border-color: var(--line); border-left-color: var(--ink-900); }
  .anxiety-stat { background: var(--gold-soft); border-color: #f6e2a6; border-left-color: var(--gold); font-weight: 500; }

  /* tags, share, prev/next */
  .blog-tags { display: flex; flex-wrap: wrap; gap: var(--sp-2); margin-top: var(--sp-6); padding-top: var(--sp-5); border-top: 1px solid var(--line); }
  .blog-tag { padding: 0.35rem 0.85rem; border-radius: var(--radius-pill); background: var(--brand-50); color: var(--brand-700); font-size: var(--fs-xs); font-weight: 500; text-decoration: none; }
  .share-buttons { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-2); margin-top: var(--sp-5); }
  .share-btn { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--surface-3); color: var(--ink-700); text-decoration: none; transition: background-color 0.15s, color 0.15s; }
  .share-btn:hover { background: var(--brand-600); color: #fff; }
  .blog-navigation { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); gap: var(--sp-3); margin-top: var(--sp-6); }
  .blog-nav-link { display: block; padding: var(--sp-4) var(--sp-5); border: 1px solid var(--line); border-radius: var(--radius); color: var(--ink-900); font-weight: 600; text-decoration: none; transition: border-color 0.2s, transform 0.2s; }
  .blog-nav-link:hover { border-color: var(--brand-200); transform: translateY(-2px); color: var(--brand-700); }

  /* related posts */
  .related-posts { padding-block: var(--section-y); overflow-x: clip; }
  .related-posts .swiper, .related-articles-swiper { overflow: hidden; }
  .related-articles-swiper { padding-bottom: var(--sp-7); }
  .related-post-card { height: 100%; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); transition: transform 0.2s var(--ease), box-shadow 0.2s; }
  .related-post-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
  .related-post-image { width: 100%; aspect-ratio: 4 / 3; height: auto; object-fit: cover; display: block; }
  .related-post-content { padding: var(--sp-4) var(--sp-5); }
  .related-post-content h4 { font-size: var(--fs-md); margin-bottom: var(--sp-2); }
  .related-post-content h4 a { color: var(--ink-900); }
  .related-post-content h4 a:hover { color: var(--brand-700); }
  .related-post-excerpt { font-size: var(--fs-sm); color: var(--ink-500); margin: 0; }
  .swiper-pagination-bullet-active { background: var(--brand-600); }
  .swiper-button-next, .swiper-button-prev { color: var(--brand-600); }
  .related-articles-inline { margin: var(--sp-6) 0; padding: var(--sp-5); background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--radius); }
  .related-articles-inline-list { margin: 0; padding-left: 1.2rem; }
  .faq-container-wrap { padding: 0; background: none; }

  /* blog index */
  .blog-container { padding-block: var(--section-y); background: var(--surface-2); }
  .blog-card { height: 100%; display: flex; flex-direction: column; margin-bottom: var(--sp-5); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); transition: transform 0.22s var(--ease), box-shadow 0.22s; }
  .blog-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
  .blog-card-image { aspect-ratio: 16 / 9; background-size: cover; background-position: center; background-color: var(--surface-3); }
  .blog-card.featured-post .blog-card-image { aspect-ratio: 21 / 9; }
  .blog-card-content { display: flex; flex-direction: column; flex: 1; padding: var(--sp-5); }
  .blog-category { font-size: var(--fs-xs); font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; color: var(--brand-600); margin-bottom: var(--sp-2); }
  .blog-card h2 { font-size: var(--fs-lg); }
  .blog-card h2 a { color: var(--ink-900); }
  .blog-card h2 a:hover { color: var(--brand-700); }
  .blog-excerpt { font-size: var(--fs-sm); color: var(--ink-500); flex: 1; }
  .blog-meta { display: flex; justify-content: space-between; align-items: center; gap: var(--sp-2); font-size: var(--fs-xs); color: var(--ink-500); border-top: 1px solid var(--line); padding-top: var(--sp-3); }
  .blog-meta a { font-weight: 600; font-size: var(--fs-sm); }
  .blog-loading { opacity: 0.5; transition: opacity 0.2s; }
  .blog-sidebar { margin-bottom: var(--sp-5); }
  .sidebar-widget { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: var(--sp-5); }
  .sidebar-widget h2 { font-size: var(--fs-md); margin-bottom: var(--sp-4); }
  .sidebar-widget .search-box { margin: 0; }
  .recent-posts-list, .categories-list, .all-articles-list { list-style: none; padding: 0; margin: 0; }
  .recent-posts-list li, .categories-list li { padding: var(--sp-2) 0; border-bottom: 1px solid var(--line); margin: 0; font-size: var(--fs-sm); }
  .recent-posts-list li:last-child, .categories-list li:last-child { border-bottom: 0; }
  .recent-posts-list a, .categories-list a, .all-articles-list a { color: var(--ink-700); }
  .recent-posts-list a:hover, .categories-list a:hover, .all-articles-list a:hover { color: var(--brand-700); }
  .post-date { font-size: var(--fs-xs); color: var(--ink-400); }
  .all-articles-index { padding-block: var(--section-y); }
  .all-articles-list li { font-size: var(--fs-sm); margin-bottom: var(--sp-2); }
  .page-link { color: var(--brand-700); border-color: var(--line); }
  .page-item.active .page-link { background: var(--brand-600); border-color: var(--brand-600); color: #fff; }
  .page-link:focus { box-shadow: var(--ring); }
}

/* ===================================================== page title (thank-you) */
@layer components {
  .page-title { background: var(--hero-bg); color: #fff; }
  .page-title .heading { padding: calc(var(--header-h) + clamp(2.5rem, 2rem + 3vw, 4.5rem)) 0 var(--sp-6); }
  .page-title h1 { color: #fff; }
  .page-title p { color: rgb(255 255 255 / 0.86); font-size: var(--fs-md); }
  .breadcrumbs { background: rgb(0 0 0 / 0.15); padding: var(--sp-3) 0; font-size: var(--fs-sm); }
  .breadcrumbs ol { display: flex; flex-wrap: wrap; gap: var(--sp-2); list-style: none; margin: 0; padding: 0; }
  .breadcrumbs li { margin: 0; color: rgb(255 255 255 / 0.75); }
  .breadcrumbs li + li::before { content: "/"; margin-right: var(--sp-2); color: rgb(255 255 255 / 0.45); }
  .breadcrumbs a { color: #fff; }
}

/* ===================================================== Header E: transparent over hero, white once scrolled */
@layer components {
  .header .branding { background: transparent; border-bottom: 1px solid transparent; transition: background-color 0.25s var(--ease), border-color 0.25s var(--ease); }
  .scrolled .header .branding { background: var(--surface); border-bottom-color: var(--line); }
  .scrolled .header { box-shadow: 0 10px 30px rgb(22 19 43 / 0.08); }
  /* colour logo sits behind the white one and shows when the header turns white */
  .header .logo { background: url("/assets/img/pay-someone-high-resolution-logo-transparent.webp") left center / contain no-repeat; }
  .header .logo img { transition: opacity 0.2s var(--ease); }
  .scrolled .header .logo img { opacity: 0; }
  .scrolled .header .mobile-nav-toggle { color: var(--ink-900); }

  @media (min-width: 1200px) {
    .scrolled .header .navmenu > ul > li > a { color: var(--ink-700); }
    .scrolled .header .navmenu > ul > li > a:hover, .scrolled .header .navmenu > ul > li:hover > a { color: var(--brand-700); background: var(--brand-50); }
    .scrolled .header .navmenu > ul > li > a.active:first-child { color: var(--brand-700); }

  }

  /* pages whose first block isn't a full hero */
  .page { padding-top: 0; }
  .page > .hero { padding-top: calc(var(--header-h) + clamp(2.5rem, 2rem + 3vw, 4.5rem)); border-radius: 0; }
}

/* ===================================================== Hero 2: centered headline, inline quote bar */
@layer components {
  .hero.section:has(form) > .container > .row { flex-direction: column; align-items: center; text-align: center; }
  .hero.section:has(form) > .container > .row > [class*="col-"] { width: 100%; max-width: 880px; }
  .hero.section:has(form) h1 { margin-inline: auto; }
  .hero.section:has(form) p { margin-inline: auto; }
  .hero.section:has(form) ul { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--sp-2); }
  .hero.section:has(form) ul li {
    margin: 0; padding: 0.45rem 0.9rem 0.45rem 0.5rem; border-radius: var(--radius-pill); font-size: var(--fs-sm);
    background: rgb(255 255 255 / 0.08); border: 1px solid rgb(255 255 255 / 0.16); gap: var(--sp-2);
  }
  .hero.section:has(form) ul .icon { width: 26px; height: 26px; border-radius: 50%; font-size: 0.85rem; margin: 0; }
  .hero.section:has(form) .trust-bar, .hero.section:has(form) .promo-note,
  .hero.section:has(form) .d-flex.align-items-center:not(.row) { margin-inline: auto; justify-content: center; gap: var(--sp-3); }
  .hero.section:has(form) .eyebrow { margin-inline: auto; }

  /* the quote form becomes a single white bar */
  .hero.section form, .hero.section .contact-form { max-width: 780px; margin: var(--sp-2) auto 0; padding: 0; background: none; box-shadow: none; border-radius: 0; }
  .hero.section form .alert { background: none; border: 0; padding: 0; margin: 0 0 var(--sp-3); color: #fff; font-size: var(--fs-sm); }
  .hero.section form .alert strong { color: #ffe08a; }
  .hero.section form > .row {
    --bs-gutter-x: 0; --bs-gutter-y: 0; flex-direction: row; flex-wrap: nowrap; align-items: flex-start; gap: 6px;
    /* fixed height: bootstrap's .mb-3 on the field columns can't be overridden, so let it overflow invisibly */
    height: 60px; margin: 0; padding: 6px; background: var(--surface); border-radius: var(--radius-pill); box-shadow: var(--shadow-lg);
  }
  .hero.section form > .row > [class*="col-"] { flex: 1 1 0; width: auto; min-width: 0; padding: 0; }
  .hero.section form > .row > [class*="col-"]:last-child { flex: 0 0 auto; }
  .hero.section form .form-control { border: 0; background: transparent; border-radius: var(--radius-pill); padding-inline: 1.1rem; }
  .hero.section form .form-control:focus { box-shadow: inset 0 0 0 2px var(--brand-200); }
  .hero.section form button { white-space: nowrap; padding-inline: 1.6rem; }

  @media (max-width: 991.98px) {
    .hero.section:has(form) > .container > .row { flex-direction: column-reverse; }
  }
  @media (max-width: 767.98px) {
    .hero.section form > .row { flex-direction: column; align-items: stretch; height: auto; border-radius: var(--radius-lg); padding: 8px 8px 0; margin: 0; }
    .hero.section form > .row > [class*="col-"]:last-child { margin-bottom: 8px; }
    .hero.section form > .row > [class*="col-"] { flex: 0 0 auto; width: 100%; }
    .hero.section form .form-control { background: var(--surface-2); border-radius: var(--radius-sm); }
  }

  /* landing pages (Math / Political Science) in the same centered style */
  .hero-container { grid-template-columns: 1fr; justify-items: center; text-align: center; gap: var(--sp-6); }
  .hero-left { max-width: 880px; }
  .hero-left .hero-subheading { margin-inline: auto; }
  .hero-left .hero-h1 { justify-content: center; }
  .hero .hero-bullets, .hero-trust-badges { justify-content: center; }
  .hero-right { width: 100%; max-width: 820px; }
  .hero-form-card { animation: none; text-align: left; }
  .hero-form-card .form-title, .hero-form-card .form-description { text-align: center; }
  .hero-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 var(--sp-4); }
  .hero-form > :not(.form-group) { grid-column: 1 / -1; }
  @media (max-width: 575.98px) { .hero-form { grid-template-columns: 1fr; } }
}

/* links inside dark hero copy */
@layer components {
  .hero p a, .blog-post-hero a, .services-hero p a, .tools-hero p a, .page-title p a { color: var(--brand-300); text-decoration: underline; text-underline-offset: 3px; }
  .hero p a:hover { color: #fff; }
}
@layer components {
  .hero strong, .hero b, .services-hero strong, .tools-hero strong, .blog-hero strong, .blog-post-hero strong,
  .page-title strong, .stats-bar strong, .contact .info-container strong, .panel--dark strong { color: #fff; }
}

/* ===================================================== Hero 2 refinement: form first, clean proof row (no cards) */
@layer components {
  /* flatten the two columns so the form can sit right after the intro */
  .hero.section:has(form) > .container > .row,
  .hero.section:has(form) > .container > .row { flex-direction: column; align-items: center; }
  .hero.section:has(form) > .container > .row > [class*="col-"] { display: contents; }
  .hero-copy > .eyebrow { order: 1; }
  .hero-copy > h1 { order: 2; }
  .hero-copy > p { order: 3; max-width: 760px; }
  .hero.section:has(form) > .container > .row form { order: 4; width: 100%; }
  .hero-copy > ul { order: 5; }
  .hero-copy > .trust-bar, .hero-copy > .d-flex { order: 6; }
  .hero-copy > .promo-note { order: 7; }

  /* proof row: one clean line of check marks, no boxes */
  .hero-copy > ul {
    width: min(880px, 100%); margin: var(--sp-6) 0 0; padding: var(--sp-5) 0 0;
    border-top: 1px solid rgb(255 255 255 / 0.12); gap: var(--sp-3) var(--sp-6);
  }
  .hero.section:has(form) .hero-copy > ul li {
    background: none; border: 0; padding: 0; border-radius: 0; gap: var(--sp-2);
    font-size: var(--fs-sm); font-weight: 500; color: rgb(255 255 255 / 0.92);
  }
  .hero.section:has(form) .hero-copy > ul .icon { width: auto; height: auto; background: none; color: var(--gold); font-size: 1rem; }

  /* rating + discount as plain text lines */
  .hero-copy > .trust-bar, .hero-copy > .d-flex {
    background: none; border: 0; padding: 0; margin-top: var(--sp-4); gap: var(--sp-3);
  }
  .hero-copy > .trust-bar img { width: 88px; }
  .hero-copy > .trust-bar a { font-size: var(--fs-sm); }
  .hero-copy > .promo-note { background: none; border: 0; padding: 0; margin-top: var(--sp-2); font-size: var(--fs-xs); color: rgb(255 255 255 / 0.75); }

  @media (max-width: 991.98px) {
    .hero.section:has(form) > .container > .row { flex-direction: column; }
  }
  @media (max-width: 767.98px) {
    .hero-copy > ul { flex-direction: column; align-items: center; gap: var(--sp-2); }
  }

  /* feature strip under the hero: no cards, dividers instead */
  .hero .icon-boxes { margin-top: var(--sp-7); padding-top: var(--sp-5); border-top: 1px solid rgb(255 255 255 / 0.12); }
  .hero .icon-boxes .row { --bs-gutter-y: 0; margin-top: 0; }
  .hero .icon-box {
    display: flex; align-items: center; gap: var(--sp-3); height: 100%; padding: var(--sp-3) var(--sp-4);
    background: none; border: 0; border-radius: 0; box-shadow: none; text-align: left;
  }
  .hero .icon-box:hover { transform: none; box-shadow: none; }
  .hero .icon-box .icon { flex-shrink: 0; width: 44px; height: 44px; margin: 0; background: rgb(255 255 255 / 0.1); color: var(--gold); font-size: 1.2rem; }
  .hero .icon-box .title { font-size: var(--fs-sm); font-weight: 600; }
  .hero .icon-box .title a { color: #fff; }
  .hero .icon-box .title a:hover { color: var(--brand-300); }
  @media (min-width: 1200px) {
    .hero .icon-boxes .row > div + div .icon-box { border-left: 1px solid rgb(255 255 255 / 0.12); }
  }
}
@layer components {
  .hero.section form > .row > [class*="col-"]:has(select) { flex: 1.25 1 0; }
  .hero.section form select.form-control {
    appearance: none; padding-right: 2.2rem; text-overflow: ellipsis; cursor: pointer;
    background: transparent url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='none' stroke='%236740cb' stroke-width='2' d='M2 5l6 6 6-6'/%3E%3C/svg%3E") no-repeat right 0.9rem center / 12px;
  }
  @media (max-width: 767.98px) {
    .hero.section form select.form-control { background-color: var(--surface-2); }
    .hero.section:has(form) .hero-copy > ul li { display: block; text-align: center; }
    .hero.section:has(form) .hero-copy > ul .icon { display: inline-block; vertical-align: -2px; margin-right: 6px; }
  }
}

/* ===================================================== Homepage: open layouts instead of cards */
@layer components {
  /* hero: trust line sits right under the quote bar */
  .index-page .hero-copy > .trust-bar { margin-top: var(--sp-5); }
  .index-page .hero.section { padding-bottom: clamp(3.5rem, 2.5rem + 4vw, 6rem); }

  /* generic flattening: no boxes, no shadows */
  .index-page :is(.fact-card, .service-card, .feature-card, .info-card-mini, .service-item, .panel, .mini-card, .check-row, .glass-stat) {
    background: none; border: 0; border-radius: 0; box-shadow: none;
  }
  .index-page :is(.fact-card, .service-card, .service-item, .glass-stat):hover { transform: none; box-shadow: none; }

  /* executive summary + services: icon grid with hairline dividers */
  .index-page #executive-summary .row, .index-page #services .row.gy-4 { --bs-gutter-x: 0; --bs-gutter-y: 0; }
  .index-page .fact-card, .index-page .service-card { padding: var(--sp-5) var(--sp-5) var(--sp-5) 0; height: 100%; }
  .index-page #services .row.gy-4 > [class*="col-"] { border-top: 1px solid var(--line); }
  @media (min-width: 768px) {
    .index-page #executive-summary .row > [class*="col-"] + [class*="col-"] .fact-card { padding-left: var(--sp-5); border-left: 1px solid var(--line); }
    .index-page #services .row.gy-4 > [class*="col-"]:not(:nth-child(3n+1)) .service-card { padding-left: var(--sp-5); border-left: 1px solid var(--line); }
  }
  .index-page .icon-gradient-box, .index-page .fact-card > div:first-child {
    width: 48px; height: 48px; border-radius: 14px;
    background: linear-gradient(135deg, var(--brand-600), var(--brand-500)); color: #fff;
    box-shadow: 0 8px 18px rgb(103 64 203 / 0.25);
    transition: transform 0.3s var(--ease);
  }
  .index-page .service-card:hover .icon-gradient-box, .index-page .fact-card:hover > div:first-child { transform: translateY(-3px) rotate(-4deg); }
  .index-page .card-link-arrow { position: relative; width: fit-content; }
  .index-page .card-link-arrow::after {
    content: ""; position: absolute; left: 0; right: 1.2em; bottom: -2px; height: 2px; background: currentColor;
    transform: scaleX(0); transform-origin: left; transition: transform 0.25s var(--ease);
  }
  .index-page .card-link-arrow:hover::after { transform: scaleX(1); }

  /* stats band: big numbers, dividers */
  .index-page .glass-stat { padding: var(--sp-4) var(--sp-3); }
  @media (min-width: 992px) {
    .index-page #stats .row > [class*="col-"] + [class*="col-"] .glass-stat { border-left: 1px solid rgb(255 255 255 / 0.16); }
  }
  .index-page .glass-stat-number {
    font-size: clamp(2.25rem, 1.8rem + 2vw, 3.25rem);
    background: linear-gradient(180deg, #fff, var(--brand-200)); -webkit-background-clip: text; background-clip: text; color: transparent;
  }

  /* pricing tiers: open columns, featured one tinted */
  .index-page .pricing-item { background: none; border: 0; border-radius: var(--radius-lg); box-shadow: none; }
  .index-page .pricing-item:hover { transform: none; box-shadow: none; }
  .index-page .pricing-item.featured { background: var(--surface); box-shadow: var(--shadow-lg); outline: 2px solid var(--brand-600); outline-offset: -2px; }
  @media (min-width: 992px) {
    .index-page #pricing .row > [class*="col-"] + [class*="col-"] .pricing-item:not(.featured) { border-left: 1px solid var(--line); border-radius: 0; }
  }
  .index-page #class-cost-calculator { background: var(--brand-50); border: 0; box-shadow: none; }
  .index-page #pricing .panel { padding-inline: 0; margin-bottom: var(--sp-7); }

  /* why-choose-us / locations: content blocks separated by rules, not boxes */
  .index-page .panel { padding: var(--sp-6) 0 0; margin-bottom: var(--sp-6); border-top: 1px solid var(--line); }
  .index-page .panel--accent-left, .index-page .panel--accent-top { border-left: 0; border-top: 1px solid var(--line); }
  .index-page .panel--compact { padding: var(--sp-3) 0 var(--sp-3) var(--sp-4); border-top: 0; border-left: 2px solid var(--brand-200); margin-bottom: 0; }
  .index-page .feature-card { padding: var(--sp-3) 0; }
  .index-page .feature-card-icon { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--brand-50); }
  .index-page .info-card-mini { padding: var(--sp-3) 0 var(--sp-3) var(--sp-4); border-left: 2px solid var(--brand-200); }
  .index-page .check-row { padding: var(--sp-2) 0; }
  .index-page .why-choose-us-img .service-item { padding: 0; }
  .index-page .step-card { padding: var(--sp-4) var(--sp-3); }
  .index-page .step-card .icon { background: linear-gradient(135deg, var(--brand-600), var(--brand-500)); color: #fff; box-shadow: 0 8px 18px rgb(103 64 203 / 0.25); }
  .index-page .resource-card { padding: 0; }
  .index-page .coverage-chip { background: var(--surface); }

  /* FAQ: rows with dividers instead of boxed items */
  .index-page .faq-container { gap: 0; border-top: 1px solid var(--line); }
  .index-page .faq-item { background: none; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; box-shadow: none; padding-left: 0; }
  .index-page .faq-active { box-shadow: none; }
  .index-page .faq .content .panel { border-top: 0; padding: var(--sp-4) 0 0 var(--sp-4); border-left: 2px solid var(--brand-600); }
}

/* ===================================================== Motion: scroll reveal (works with existing data-aos hooks) */
@layer utilities {
  @media (prefers-reduced-motion: no-preference) {
    /* only hide once aos.js has initialised the element, so content shows without JS */
    [data-aos].aos-init:not(.aos-animate) { opacity: 0; transform: translate3d(0, 24px, 0); }
    [data-aos="fade"].aos-init:not(.aos-animate) { transform: none; }
    [data-aos="zoom-in"].aos-init:not(.aos-animate) { transform: scale(0.96); }
    [data-aos].aos-init { transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
    [data-aos-delay="100"].aos-init { transition-delay: 0.08s; }
    [data-aos-delay="200"].aos-init { transition-delay: 0.16s; }
    [data-aos-delay="300"].aos-init { transition-delay: 0.24s; }
    [data-aos-delay="400"].aos-init { transition-delay: 0.32s; }
    [data-aos-delay="500"].aos-init, [data-aos-delay="550"].aos-init, [data-aos-delay="600"].aos-init { transition-delay: 0.4s; }
    /* never delay the first screen */
    .hero [data-aos].aos-init, .hero [data-aos].aos-init:not(.aos-animate),
    .services-hero [data-aos].aos-init:not(.aos-animate), .blog-hero [data-aos].aos-init:not(.aos-animate),
    .blog-post-hero [data-aos].aos-init:not(.aos-animate), .tools-hero [data-aos].aos-init:not(.aos-animate) { opacity: 1; transform: none; transition: none; }

    /* section title underline draws in */
    .section-title h2::after { transform-origin: center; animation: grow-x 0.9s var(--ease) both; animation-timeline: view(); animation-range: entry 10% cover 30%; }

    /* hero: slow drifting glow */
    .hero.section::before, .services-hero::before, .blog-hero::before, .blog-post-hero::before, .tools-hero::before {
      content: ""; position: absolute; width: 60vmax; height: 60vmax; top: -30vmax; right: -20vmax; border-radius: 50%;
      background: radial-gradient(circle, rgb(167 139 250 / 0.35), transparent 60%); pointer-events: none;
      animation: drift 18s ease-in-out infinite alternate;
    }
    .services-hero, .blog-hero, .blog-post-hero, .tools-hero { position: relative; overflow: hidden; }
    .services-hero > .container, .blog-hero > .container, .blog-post-hero > .container, .tools-hero > .container { position: relative; z-index: 1; }

    /* primary buttons: soft sheen on hover */
    .btn-get-started, .btn-primary, .buy-btn { position: relative; overflow: hidden; }
    .btn-get-started::after, .btn-primary::after, .buy-btn::after {
      content: ""; position: absolute; inset: 0; transform: translateX(-120%);
      background: linear-gradient(110deg, transparent 30%, rgb(255 255 255 / 0.35) 50%, transparent 70%);
      transition: transform 0.7s var(--ease); pointer-events: none;
    }
    .btn-get-started:hover::after, .btn-primary:hover::after, .buy-btn:hover::after { transform: translateX(120%); }
  }
  @keyframes drift { to { transform: translate3d(-12vmax, 10vmax, 0) scale(1.15); } }
  @keyframes grow-x { from { transform: scaleX(0); } }

  /* header gets slimmer once scrolled */
  .header .branding { transition: background-color 0.25s var(--ease), border-color 0.25s var(--ease), min-height 0.25s var(--ease); }
  @media (min-width: 992px) { .scrolled .header .branding { min-height: 64px; } }
}
@layer components {
  .index-page .faq .content h2 { font-size: var(--fs-xl); line-height: 1.25; }
  @media (min-width: 992px) { .index-page .faq .content { position: sticky; top: calc(var(--header-h) + 24px); } }
}
@layer components {
  @media (max-width: 767.98px) {
    .index-page #stats .row > [class*="col-"] { width: 50%; }
    .index-page .glass-stat-number { font-size: 1.9rem; }
    .index-page .glass-stat p { font-size: var(--fs-xs); }
  }
}

/* ===================================================== Header: frosted glass once scrolled */
@layer components {
  .header .branding { position: relative; isolation: isolate; }
  /* blur lives on a pseudo-element so the fixed mobile menu isn't trapped inside the header */
  .header .branding::before {
    content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0; pointer-events: none;
    background: rgb(255 255 255 / 0.68);
    -webkit-backdrop-filter: saturate(170%) blur(16px); backdrop-filter: saturate(170%) blur(16px);
    transition: opacity 0.3s var(--ease);
  }
  .scrolled .header .branding { background: transparent; border-bottom-color: rgb(103 64 203 / 0.12); }
  .scrolled .header .branding::before { opacity: 1; }
  @supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
    .header .branding::before { background: rgb(255 255 255 / 0.96); }
  }
}

/* ===================================================== Dropdowns: 4 items visible, rest scroll (hidden scrollbar) */
@layer components {
  .navmenu .dropdown > ul {
    --row: 42px;
    max-height: calc(var(--row) * 4 + 16px); overflow-y: auto; overscroll-behavior: contain;
    scrollbar-width: none; -ms-overflow-style: none; scroll-snap-type: y proximity;
  }
  .navmenu .dropdown > ul::-webkit-scrollbar { display: none; }
  /* soft fade at the bottom hints there is more to scroll; panel itself stays solid */
  .navmenu .dropdown > ul::after {
    content: ""; display: block; position: sticky; bottom: -8px; height: 30px; margin-top: -30px; pointer-events: none;
    background: linear-gradient(rgb(255 255 255 / 0), var(--surface) 85%);
  }
  .navmenu .dropdown > ul li { scroll-snap-align: start; }
  .navmenu .dropdown ul a {
    height: var(--row); padding-block: 0; display: flex; align-items: center; gap: var(--sp-2);
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis; position: relative;
  }
  .navmenu .dropdown ul a::before {
    content: ""; flex-shrink: 0; width: 6px; height: 6px; border-radius: 50%; background: var(--brand-200);
    transition: background-color 0.2s, transform 0.2s var(--ease);
  }
  .navmenu .dropdown ul a:hover::before { background: var(--brand-600); transform: scale(1.4); }
  @media (min-width: 1200px) {
    .navmenu .dropdown > ul { min-width: 280px; padding: 8px; border-radius: 16px; }
    .navmenu .dropdown ul a { padding-inline: 12px; border-radius: 10px; transition: background-color 0.15s, color 0.15s, padding 0.2s var(--ease); }
    .navmenu .dropdown ul a:hover { padding-left: 16px; }
  }
  @media (max-width: 1199.98px) {
    .navmenu .dropdown > ul { --row: 40px; }
    .navmenu .dropdown ul a { justify-content: flex-start; }
  }
}

/* ===================================================== More motion */
@layer utilities {
  @media (prefers-reduced-motion: no-preference) {
    /* hero copy settles in on load (transform only, so the headline still paints immediately) */
    .hero h1, .services-hero h1, .blog-hero h1, .blog-post-hero h1, .tools-hero h1, .page > .hero h1 { animation: settle 0.9s var(--ease) both; }
    .hero-copy > p, .hero.section form, .hero-copy > .trust-bar, .hero-copy > .d-flex { animation: settle 0.9s var(--ease) both; animation-delay: 0.12s; }

    /* desktop nav: underline slides in */
    @media (min-width: 1200px) {
      .navmenu > ul > li > a { position: relative; }
      .navmenu > ul > li > a::after {
        content: ""; position: absolute; left: 0.9rem; right: 0.9rem; bottom: 0.3rem; height: 2px; border-radius: 2px;
        background: var(--gold); transform: scaleX(0); transition: transform 0.25s var(--ease);
      }
      .navmenu > ul > li > a:hover::after, .navmenu > ul > li:hover > a::after { transform: scaleX(1); }
    }

    /* footer links nudge on hover */
    .footer-links a { display: inline-block; transition: transform 0.2s var(--ease), color 0.2s; }
    .footer-links a:hover { transform: translateX(4px); }

    /* illustrations scale in gently */
    .section-illustration { transition: transform 0.4s var(--ease); }
    .section-illustration:hover { transform: scale(1.03); }

    /* scroll-driven reveal for content without data-aos (supported browsers only; others just show it) */
    @supports (animation-timeline: view()) {
      /* cards only (never long article text); fully visible after ~160px of scrolling, whatever their height */
      main :is(.service-item, .feature-item, .testimonial-card, .related-service-card, .pricing-item, .blog-card,
        .related-post-card, .process-step, .benefit-card, .coverage-card, .pitfall-card, .insight-card,
        .tool-feature-card, .service-feature-card, .review, .stat-card, .stats-item, .sidebar-widget, .pricing-tier, .lms-badge):not([data-aos]):not([data-aos] *) {
        animation: reveal linear both; animation-timeline: view(); animation-range: cover 0px cover 160px;
      }
      main .section-illustration { animation: reveal-img linear both; animation-timeline: view(); animation-range: cover 0px cover 200px; }
    }
  }
  @keyframes settle { from { transform: translate3d(0, 14px, 0); } }
  @keyframes reveal { from { opacity: 0; transform: translate3d(0, 28px, 0) scale(0.98); } }
  @keyframes reveal-img { from { opacity: 0; transform: scale(0.92) rotate(-2deg); } }
}

/* ===================================================== Same hero colours on tool pages */
@layer components {
  section.hero:not(.section), .calc-hero-section, .landing-hero {
    position: relative; overflow: hidden; background: var(--hero-bg); color: rgb(255 255 255 / 0.88);
  }
  section.hero:not(.section) h1, .calc-hero-section h1, .landing-hero h1 { color: #fff; }
  section.hero:not(.section) > *, .calc-hero-section > *, .landing-hero > * { position: relative; z-index: 1; }
  .calc-hero-section .hero-badge-tag { background: rgb(255 255 255 / 0.12); border: 1px solid rgb(255 255 255 / 0.24); color: #ffe08a; }
}
@layer utilities {
  @media (prefers-reduced-motion: no-preference) {
    section.hero:not(.section)::before, .calc-hero-section::before, .landing-hero::before {
      content: ""; position: absolute; width: 60vmax; height: 60vmax; top: -30vmax; right: -20vmax; border-radius: 50%; z-index: 0;
      background: radial-gradient(circle, rgb(167 139 250 / 0.35), transparent 60%); pointer-events: none;
      animation: drift 18s ease-in-out infinite alternate;
    }
  }
}
@layer components {
  .clients .swiper-slide img { filter: none; opacity: 1; transition: transform 0.25s var(--ease); }
  .clients .swiper-slide img:hover { filter: none; transform: translateY(-3px) scale(1.04); }
}
@layer components {
  .landing-hero { margin: 0; max-width: none; border-radius: 0; padding-top: calc(var(--header-h) + clamp(2.5rem, 2rem + 3vw, 4.5rem)); padding-bottom: clamp(2.5rem, 2rem + 3vw, 4rem); }
  .landing-hero p, .landing-hero .landing-trust-badge span { color: rgb(255 255 255 / 0.85); }
  .landing-hero .landing-trust-badge svg { color: var(--gold); }
}
@layer components {
  .step-card { position: relative; }
}

/* ===================================================== Header quote button (blog + tool pages) */
@layer components {
  .header-cta { min-height: 40px; padding: 0.5rem 1.15rem; font-size: var(--fs-xs); margin-left: var(--sp-4); white-space: nowrap; flex-shrink: 0; }
  @media (max-width: 1199.98px) {
    .header .branding .container > .header-cta { order: 2; margin-left: auto; margin-right: var(--sp-3); }
    .header .branding .container > .navmenu { order: 3; }
  }
  @media (max-width: 375px) { .header-cta { padding-inline: 0.8rem; } }
}

/* ===================================================== Pricing table (homepage) */
@layer components {
  .price-panel { max-width: 1100px; margin: 0 auto; }
  .price-panel > h3 { text-align: center; font-size: var(--fs-xl); margin-bottom: var(--sp-2); }
  .price-panel > h3 i { color: var(--brand-600); margin-right: var(--sp-2); }
  .price-panel > p { text-align: center; max-width: 760px; margin: 0 auto var(--sp-6); color: var(--ink-500); font-size: var(--fs-sm); }
  .price-panel .table-responsive { border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); overflow: hidden; background: var(--surface); }
  .price-table { margin: 0; border-collapse: separate; border-spacing: 0; font-size: var(--fs-sm); --bs-table-bg: transparent; }
  .price-table > :not(caption) > * > * { border: 0; padding: 1.15rem 1.25rem; vertical-align: middle; }
  .price-table thead th {
    background: var(--brand-900); color: rgb(255 255 255 / 0.9); font-size: var(--fs-xs); font-weight: 600;
    text-transform: uppercase; letter-spacing: 0.06em; border-bottom: 0; white-space: nowrap;
  }
  .price-table thead th:nth-child(4) { background: var(--brand-700); color: #fff; }
  .price-table tbody tr { transition: background-color 0.2s; }
  .price-table tbody tr + tr > td { border-top: 1px solid var(--line); }
  .price-table tbody tr:hover > td { background: var(--brand-50); }
  .price-table tbody td:first-child { min-width: 240px; }
  .price-table tbody td:first-child strong { display: block; font-size: var(--fs-md); color: var(--ink-900); margin-bottom: 4px; }
  .price-table tbody td:first-child .small { font-size: var(--fs-xs); line-height: 1.6; }
  .price-table tbody td:first-child .small a { color: var(--brand-600); }
  .price-table tbody td:nth-child(2), .price-table tbody td:nth-child(3), .price-table tbody td:nth-child(4) {
    font-weight: 700; color: var(--ink-900); white-space: nowrap; font-variant-numeric: tabular-nums;
  }
  .price-table tbody td:nth-child(2) { color: var(--brand-700); }
  .price-table tbody td:nth-child(4) { background: rgb(103 64 203 / 0.05); }
  .price-table tbody td:last-child { color: var(--ink-500); font-size: var(--fs-xs); line-height: 1.6; min-width: 220px; }

  @media (max-width: 991.98px) {
    .price-panel .table-responsive { border: 0; box-shadow: none; background: none; overflow: visible; }
    .price-table, .price-table tbody, .price-table tr, .price-table td { display: block; width: 100%; }
    .price-table thead { display: none; }
    .price-table tbody tr {
      margin-bottom: var(--sp-4); background: var(--surface); border: 1px solid var(--line);
      border-radius: var(--radius); box-shadow: var(--shadow-sm); overflow: hidden;
    }
    .price-table tbody tr + tr > td { border-top: 0; }
    .price-table > :not(caption) > * > * { padding: 0.65rem 1.1rem; }
    .price-table tbody td:first-child { background: var(--brand-900); padding: 1rem 1.1rem; min-width: 0; }
    .price-table tbody td:first-child strong { color: #fff; }
    .price-table tbody td:first-child .small, .price-table tbody td:first-child .small a { color: rgb(255 255 255 / 0.78); }
    .price-table tbody td:not(:first-child) { display: flex; justify-content: space-between; align-items: baseline; gap: var(--sp-4); white-space: normal; text-align: right; }
    .price-table tbody td:not(:first-child)::before {
      content: attr(data-label); flex-shrink: 0; max-width: 45%; text-align: left;
      font-size: var(--fs-xs); font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em; color: var(--ink-400);
    }
    .price-table tbody td:last-child { display: block; text-align: left; border-top: 1px solid var(--line); }
    .price-table tbody td:last-child::before { display: block; max-width: none; margin-bottom: 4px; }
    .price-table tbody td:nth-child(4) { background: var(--brand-50); }
  }
}

/* ===================================================== Blog index cards (static, paginated) */
@layer components {
  #blog-posts-container .blog-card-col[hidden] { display: none; }
  #blog-posts-container .blog-card { margin-bottom: 0; }
  .blog-card-media { display: block; aspect-ratio: 1200 / 630; overflow: hidden; background: var(--surface-3); }
  .blog-card-media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.5s var(--ease); }
  .blog-card:hover .blog-card-media img { transform: scale(1.05); }
  .blog-card .blog-date { display: inline-flex; align-items: center; gap: 6px; }
  .blog-card .read-more { white-space: nowrap; }
  .blog-categories .badge { cursor: pointer; }
  .blog-categories .badge.active { background: #fff; color: var(--brand-800); border-color: #fff; }
  .pagination-container { margin-top: var(--sp-6); }
  .pagination-container .pagination { gap: 6px; margin-bottom: 0; }
  .pagination-container .page-link { min-width: 42px; height: 42px; display: grid; place-items: center; border-radius: var(--radius-sm); font-weight: 600; }
  .pagination-container .page-item.disabled .page-link { opacity: 0.45; }
}
@layer components { .blog-card .blog-meta { flex-wrap: wrap; row-gap: var(--sp-2); } }

/* ===================================================== Homepage "Can I pay someone…" section: full-width bands */
@layer components {
  .index-page .wcu .wcu-block { margin-bottom: clamp(3rem, 2rem + 4vw, 5.5rem); }
  .index-page .wcu .wcu-block:last-child { margin-bottom: 0; }
  .index-page .wcu h3 { font-size: var(--fs-xl); }

  /* intro + advantage card */
  .index-page .wcu-lead p { font-size: var(--fs-md); line-height: 1.85; color: var(--ink-700); margin-bottom: var(--sp-4); }
  .index-page .wcu-intro .why-choose-us-img .service-item {
    position: relative; overflow: hidden; padding: clamp(1.5rem, 1rem + 2vw, 2.5rem);
    background: var(--hero-bg); color: rgb(255 255 255 / 0.9); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg);
  }
  .index-page .wcu-intro .why-choose-us-img .service-item::before {
    content: ""; position: absolute; width: 280px; height: 280px; right: -90px; top: -110px; border-radius: 50%;
    background: radial-gradient(circle, rgb(245 180 0 / 0.28), transparent 65%); pointer-events: none;
  }
  .index-page .wcu-intro .why-choose-us-img h3 { color: #fff; font-size: var(--fs-xl); }
  .index-page .wcu-intro .why-choose-us-img .d-flex { margin-bottom: var(--sp-3); }
  .index-page .wcu-intro .why-choose-us-img p { color: rgb(255 255 255 / 0.88); font-size: var(--fs-sm); }
  .index-page .wcu-intro .why-choose-us-img i.bi-check-circle-fill { color: var(--gold); font-size: 1.15rem; }
  .index-page .wcu-intro .why-choose-us-img .readmore { background: #fff; color: var(--brand-800); padding: 0.75rem 1.6rem; min-height: 46px; border-radius: var(--radius-pill); margin-top: var(--sp-3); }
  .index-page .wcu-intro .why-choose-us-img .readmore:hover { color: var(--brand-900); }

  /* what's included: 2x2 tiles */
  .index-page .wcu-included ul { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--sp-4); }
  .index-page .wcu-included li {
    position: relative; margin: 0; padding: var(--sp-5) var(--sp-5) var(--sp-5) calc(var(--sp-5) + 30px);
    background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); font-size: var(--fs-sm); line-height: 1.65;
    box-shadow: var(--shadow-sm); transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), border-color 0.25s;
  }
  .index-page .wcu-included li::before {
    content: ""; position: absolute; left: var(--sp-4); top: calc(var(--sp-5) + 2px); width: 22px; height: 22px; border-radius: 50%;
    background: var(--brand-600) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='none' stroke='%23fff' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round' d='M4 8.5l2.5 2.5L12 5.5'/%3E%3C/svg%3E") center / 14px no-repeat;
  }
  .index-page .wcu-included li strong { display: block; color: var(--ink-900); margin-bottom: 4px; }
  .index-page .wcu-included li:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--brand-200); }
  .index-page .wcu-included h3 { margin-bottom: var(--sp-5); }

  /* vetting: horizontal step timeline */
  .index-page .wcu-vetting .panel { padding: clamp(1.5rem, 1rem + 2vw, 2.75rem); background: var(--brand-50); border: 0; border-radius: var(--radius-lg); text-align: center; margin: 0; }
  .index-page .wcu-vetting .panel > p { max-width: 720px; margin: 0 auto var(--sp-6); color: var(--ink-500); }
  .index-page .wcu-vetting ol { list-style: none; counter-reset: step; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--sp-5); position: relative; text-align: left; }
  .index-page .wcu-vetting ol::before { content: ""; position: absolute; top: 22px; left: 12%; right: 12%; height: 2px; background: linear-gradient(90deg, var(--brand-200), var(--brand-600), var(--brand-200)); }
  .index-page .wcu-vetting li { counter-increment: step; position: relative; margin: 0; padding-top: 64px; font-size: var(--fs-sm); color: var(--ink-700); }
  .index-page .wcu-vetting li::before {
    content: counter(step); position: absolute; top: 0; left: 50%; transform: translateX(-50%);
    display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%;
    background: var(--brand-600); color: #fff; font-weight: 800; box-shadow: 0 0 0 6px var(--brand-50), 0 8px 18px rgb(103 64 203 / 0.3);
    transition: transform 0.3s var(--ease);
  }
  .index-page .wcu-vetting li:hover::before { transform: translateX(-50%) scale(1.1); }
  .index-page .wcu-vetting li strong { display: block; text-align: center; color: var(--ink-900); margin-bottom: 6px; }

  /* specialists: profile cards */
  .index-page .wcu-specialists > .panel { border: 0; padding: 0; margin: 0; }
  .index-page .wcu-specialists > .panel > .d-flex { justify-content: center; flex-direction: column; text-align: center; gap: var(--sp-2); margin-bottom: var(--sp-6); }
  .index-page .wcu-specialists .panel--compact {
    height: 100%; padding: var(--sp-5); background: var(--surface); border: 1px solid var(--line); border-top: 4px solid var(--brand-600);
    border-left: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm);
    display: flex; flex-direction: column; gap: var(--sp-2); transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
  }
  .index-page .wcu-specialists .panel--compact:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
  .index-page .wcu-specialists .panel--compact > .fw-bold:first-child { font-size: var(--fs-lg); color: var(--ink-900); }
  .index-page .wcu-specialists .panel--compact > :last-child { margin-top: auto; padding-top: var(--sp-3); border-top: 1px solid var(--line); }

  /* what to look for: 4 centered cards */
  .index-page .wcu-lookfor .feature-card {
    flex-direction: column; align-items: center; text-align: center; height: 100%; padding: var(--sp-6) var(--sp-5);
    background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm);
    transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
  }
  .index-page .wcu-lookfor .feature-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
  .index-page .wcu-lookfor .feature-card-icon { width: 56px; height: 56px; border-radius: 16px; font-size: 1.5rem; background: linear-gradient(135deg, var(--brand-600), var(--brand-500)); color: #fff; box-shadow: 0 8px 18px rgb(103 64 203 / 0.28); }
  .index-page .wcu-lookfor .feature-card strong { font-size: var(--fs-md); }

  /* subjects: tidy grid + illustration */
  .index-page .wcu-subjects .info-card-mini { background: var(--surface); border: 1px solid var(--line); border-left: 3px solid var(--brand-600); border-radius: var(--radius-sm); padding: var(--sp-4) var(--sp-5); transition: transform 0.25s var(--ease), box-shadow 0.25s; }
  .index-page .wcu-subjects .info-card-mini:hover { transform: translateX(4px); box-shadow: var(--shadow); }
  .index-page .wcu-subjects > p { text-align: center; max-width: 820px; margin: var(--sp-6) auto 0; color: var(--ink-500); }

  /* results */
  .index-page .wcu-results .panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(1.5rem, 1rem + 2vw, 2.5rem); box-shadow: var(--shadow); margin: 0; }
  .index-page .wcu-results ul { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--sp-3); }
  .index-page .wcu-results li { padding: var(--sp-3) var(--sp-4); background: var(--surface-2); border-radius: var(--radius-sm); margin: 0; }

  /* illustrations inside bands */
  .index-page .wcu .section-illustration { width: 100%; max-width: 440px; height: auto; margin-inline: auto; display: block; }

  @media (max-width: 991.98px) {
    .index-page .wcu-vetting ol { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: var(--sp-6); }
    .index-page .wcu-vetting ol::before { display: none; }
  }
  @media (max-width: 767.98px) {
    .index-page .wcu-included ul { grid-template-columns: 1fr; }
    .index-page .wcu-vetting ol { grid-template-columns: 1fr; }
  }
}
@layer components { @media (max-width: 767.98px) { .index-page .wcu-vetting li { text-align: center; } } }

/* ===================================================== Pricing table: fit all 5 columns on desktop */
@layer components {
  @media (min-width: 992px) {
    .price-panel { max-width: 1200px; }
    .price-panel .table-responsive { overflow: visible; }
    .price-table { width: 100%; table-layout: fixed; }
    .price-table thead th:nth-child(1) { width: 27%; }
    .price-table thead th:nth-child(2) { width: 13%; }
    .price-table thead th:nth-child(3) { width: 15%; }
    .price-table thead th:nth-child(4) { width: 16%; }
    .price-table thead th:nth-child(5) { width: 29%; }
    .price-table thead th { white-space: normal; line-height: 1.35; padding: 1rem 1.1rem; }
    .price-table thead th:first-child { border-top-left-radius: var(--radius-lg); }
    .price-table thead th:last-child { border-top-right-radius: var(--radius-lg); }
    .price-table > :not(caption) > * > * { padding: 1.25rem 1.1rem; }
    .price-table tbody td:first-child, .price-table tbody td:last-child { min-width: 0; }
    .price-table tbody td:nth-child(2), .price-table tbody td:nth-child(3), .price-table tbody td:nth-child(4) { white-space: normal; font-size: var(--fs-md); line-height: 1.35; }
    .price-table tbody td:last-child { font-size: var(--fs-sm); color: var(--ink-700); }
    .price-table tbody tr:last-child > td:first-child { border-bottom-left-radius: var(--radius-lg); }
    .price-table tbody tr:last-child > td:last-child { border-bottom-right-radius: var(--radius-lg); }
  }
  /* section intro sizing */
  .price-panel > h3 { font-size: clamp(1.35rem, 1.1rem + 1vw, 1.85rem); }
}
