/* =====================================================================
   The Pool Science Guy - shared design system
   Extracted verbatim from hero.html so every page matches exactly.
   New multi-page component styles are appended at the bottom.
   ===================================================================== */
@font-face {
      font-family: Poppins;
      font-style: normal;
      font-weight: 400;
      font-display: swap;
      src: url("https://www.swimuniversity.com/wp-content/cache/fonts/1/google-fonts/fonts/s/poppins/v24/pxiEyp8kv8JHgFVrJJfecg.woff2") format("woff2");
    }

    @font-face {
      font-family: Poppins;
      font-style: normal;
      font-weight: 700;
      font-display: swap;
      src: url("https://www.swimuniversity.com/wp-content/cache/fonts/1/google-fonts/fonts/s/poppins/v24/pxiByp8kv8JHgFVrLCz7Z1xlFQ.woff2") format("woff2");
    }

    :root {
      /* ---- hero.html brand tokens (kept) ---- */
      --poppins: Poppins, Arial Black, Arial Bold, Arial, sans-serif;
      --helvetica: Helvetica, Arial, sans-serif;
      --site-ink: #17395a;
      --site-muted: #5c6e7b;
      --site-blue-dark: #0a3b66;
      --site-teal: #2db8e8;
      --site-orange: #ffc857;
      --site-orange-dark: #df7b01;

      /* ---- section tokens (version2 names mapped to hero palette) ---- */
      --pool: #2db8e8;
      --pool-deep: #0e87a8;
      --navy: #0a3b66;
      --navy-2: #17395a;
      --sun: #ffc857;
      --sun-deep: #df7b01;
      --ink: #17395a;
      --muted: #5c6e7b;
      --line: #e6edf3;
      --sky: #f3f8fc;
      --sky-2: #e6f2f9;
      --white: #fff;
      --shadow-sm: 0 2px 10px rgba(10, 41, 66, .06);
      --shadow-md: 0 14px 36px rgba(10, 41, 66, .12);
      --shadow-lg: 0 34px 80px rgba(10, 41, 66, .22);
      --r-sm: 10px;
      --r-md: 16px;
      --r-lg: 24px;
      --r-pill: 999px;
      --ease: cubic-bezier(.2, .7, .2, 1);
      --ov: linear-gradient(165deg, rgba(8, 32, 54, .74) 0%, rgba(8, 32, 54, .44) 55%, rgba(14, 123, 168, .42) 100%);
    }

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

    html {
      scroll-behavior: smooth;
    }

    html,
    body {
      width: 100%;
      min-height: 100%;
      margin: 0;
      overflow-x: hidden;
      background: #f7f7f7;
      font-family: var(--helvetica);
      color: var(--site-ink);
      line-height: 1.6;
      -webkit-font-smoothing: antialiased;
      text-rendering: optimizeLegibility;
    }

    button,
    input {
      font: inherit;
    }

    button {
      border: 0;
      cursor: pointer;
    }

    a {
      text-decoration: none;
      color: inherit;
    }

    h1,
    h2,
    h3,
    h4,
    .display {
      font-family: var(--poppins);
      line-height: 1.12;
      letter-spacing: -.01em;
      color: var(--navy);
      font-weight: 700;
    }

    .wrap {
      width: 100%;
      max-width: 1496px;
      margin: 0 auto;
      padding: 0;
    }

    .eyebrow {
      font-weight: 700;
      letter-spacing: .16em;
      text-transform: uppercase;
      font-size: .85rem;
      color: var(--pool-deep);
      font-family: var(--poppins);
    }

    .photo {
      background-size: cover;
      background-position: center;
      background-repeat: no-repeat;
      background-color: var(--navy-2);
    }

    /* ---------- Generic buttons (re-skinned to hero branding) ---------- */
    .btn {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: .5em;
      font-family: var(--poppins);
      font-weight: 700;
      font-size: 1rem;
      border: none;
      cursor: pointer;
      border-radius: var(--r-pill);
      padding: 14px 28px;
      transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s;
      white-space: nowrap;
    }

    .btn-sun {
      background: linear-gradient(180deg, #ffd46f, #ffc147);
      color: #17181a;
      box-shadow: 0 5px 0 var(--site-orange-dark), 0 18px 34px rgba(223, 123, 1, .2);
    }

    .btn-sun:hover {
      transform: translateY(-2px);
      box-shadow: 0 7px 0 var(--site-orange-dark), 0 22px 40px rgba(223, 123, 1, .26);
    }

    .btn-white {
      background: #fff;
      color: var(--pool-deep);
      box-shadow: var(--shadow-sm);
    }

    .btn-white:hover {
      transform: translateY(-2px);
      box-shadow: var(--shadow-md);
    }

    .btn-ghost {
      background: rgba(255, 255, 255, .12);
      color: #fff;
      border: 1.5px solid rgba(255, 255, 255, .5);
      backdrop-filter: blur(6px);
    }

    .btn-ghost:hover {
      background: rgba(255, 255, 255, .22);
    }

    .btn-pool {
      background: var(--pool);
      color: #fff;
      box-shadow: 0 10px 26px rgba(14, 123, 168, .36);
    }

    .btn-pool:hover {
      transform: translateY(-2px);
      box-shadow: 0 16px 32px rgba(14, 123, 168, .48);
    }

    .btn-lg {
      padding: 17px 36px;
      font-size: 1.06rem;
    }

    /* ---------- Header / Nav ---------- */
    header {
      position: sticky;
      top: 0;
      z-index: 60;
      background: rgba(255, 255, 255, .85);
      backdrop-filter: saturate(160%) blur(16px);
      border-bottom: 1px solid var(--line);
      transition: box-shadow .3s;
    }

    /* Mirror the hero content wrapper so the nav lines up with the hero below */
    .nav-content {
      width: 100%;
      padding: 0 clamp(72px, 7.4vw, 150px);
    }

    .nav {
      display: flex;
      align-items: center;
      justify-content: space-between;
      height: 76px;
      width: 100%;
      max-width: 1496px;
      margin: 0 auto;
    }

    .brand {
      display: flex;
      align-items: center;
      gap: 11px;
    }

    .nav-logo,
    .brand-logo {
      display: block;
      height: 100px;
      width: auto;
    }

    .foot-brand .brand-logo {
      margin-top: -42px;
      height: 150px;
    }

    .brand-badge {
      width: 42px;
      height: 42px;
      border-radius: 12px;
      background: linear-gradient(150deg, var(--pool), var(--pool-deep));
      display: flex;
      align-items: center;
      justify-content: center;
      flex: 0 0 auto;
      box-shadow: 0 6px 16px rgba(14, 123, 168, .34);
    }

    .wordmark {
      font-family: var(--poppins);
      font-weight: 700;
      font-size: 1.12rem;
      line-height: .98;
      letter-spacing: -.01em;
    }

    .wordmark .l1 {
      color: var(--navy);
    }

    .wordmark .l2 {
      color: var(--pool-deep);
      font-size: .66rem;
      letter-spacing: .18em;
      display: block;
      margin-top: 3px;
      font-weight: 700;
    }

    nav ul {
      display: flex;
      align-items: center;
      gap: 30px;
      list-style: none;
    }

    nav ul a {
      font-weight: 600;
      font-size: .95rem;
      color: var(--navy-2);
      transition: color .2s;
    }

    nav ul a:hover {
      color: var(--pool-deep);
    }

    .nav-cta {
      display: flex;
      align-items: center;
      gap: 14px;
    }

    .nav-cta .signin {
      font-family: var(--poppins);
      font-weight: 700;
      color: var(--navy-2);
      font-size: .95rem;
    }

    .burger {
      display: none;
      background: none;
      border: none;
      cursor: pointer;
      flex-direction: column;
      gap: 5px;
      padding: 8px;
    }

    .burger span {
      width: 24px;
      height: 2.6px;
      background: var(--navy);
      border-radius: 3px;
    }

    .mobile-menu {
      display: none;
    }

    /* Keep the nav aligned with the hero block across its breakpoints */
    @media (min-width: 1600px) {
      .nav-content {
        padding-left: clamp(100px, 7.2vw, 150px);
        padding-right: clamp(78px, 5.5vw, 118px);
      }

      .nav {
        max-width: 1592px;
      }
    }

    @media (max-width: 575.98px) {
      .nav-content {
        padding-left: 16px;
        padding-right: 16px;
      }
    }

    /* ====================================================================
       HERO - kept exactly as the client likes it (hero.html)
       ==================================================================== */
    .hero-video {
      position: relative;
      isolation: isolate;
      overflow: hidden;
      min-height: 680px;
      display: flex;
      align-items: flex-start;
      padding: clamp(48px, 3.15vw, 60px) 0 clamp(108px, 6vw, 132px);
      background: var(--site-blue-dark);
    }

    .hero-video__media {
      position: absolute;
      inset: 0;
      z-index: -2;
      width: 100%;
      height: 100%;
      object-fit: cover;
      object-position: center;
    }

    .hero-video__overlay {
      position: absolute;
      inset: 0;
      z-index: -1;
      background: linear-gradient(90deg, rgba(10, 59, 102, .9) 0%, rgba(10, 59, 102, .62) 48%, rgba(10, 59, 102, .36) 100%);
    }

    .hero-video__content {
      position: relative;
      z-index: 1;
      width: 100%;
      max-width: none;
      padding: 0 clamp(72px, 7.4vw, 150px);
    }

    .hero-video__row {
      display: grid;
      grid-template-columns: minmax(620px, 800px) minmax(580px, 640px);
      align-items: center;
      justify-content: center;
      gap: clamp(38px, 3.2vw, 56px);
      width: 100%;
      margin: 0;
    }

    .hero-video__copy,
    .hero-video__art {
      min-width: 0;
    }

    .hero-video__copy {
      max-width: 800px;
    }

    .hero-video__art {
      display: flex;
      align-items: center;
      justify-content: flex-start;
      padding: 40px 0;
    }

    .hero-eyebrow {
      display: inline-block;
      margin-bottom: 24px;
      padding: 8px 18px;
      border-radius: 20px;
      background: rgba(45, 184, 232, .15);
      color: var(--site-teal);
      font-family: var(--poppins);
      font-size: 14px;
      line-height: 1;
      font-weight: 700;
      text-transform: uppercase;
      letter-spacing: .5px;
    }

    .hero-video h1 {
      margin: 0 0 26px;
      color: #fff;
      font-family: var(--poppins);
      font-size: clamp(66px, 4.2vw, 80px);
      line-height: 1.04;
      font-weight: 700;
      letter-spacing: 0;
      text-shadow: 0 4px 18px rgba(0, 0, 0, .42);
    }

    .hero-video h1 .blue {
      color: var(--site-teal);
    }

    .hero-video h1 .orange {
      color: var(--site-orange);
    }

    .hero-video p {
      max-width: 650px;
      margin: 0 0 28px;
      color: #fff;
      font-size: clamp(21px, 1.22vw, 24px);
      line-height: 1.5;
      text-shadow: 0 2px 12px rgba(0, 0, 0, .5);
    }

    .hero-actions {
      display: flex;
      flex-wrap: wrap;
      gap: 16px;
      margin-bottom: 28px;
    }

    .hero-button {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      min-height: 56px;
      padding: 16px 40px;
      border-radius: 100px;
      font-family: var(--poppins);
      font-size: 18px;
      line-height: 1.15;
      font-weight: 700;
      text-decoration: none;
      transition: transform .2s ease, box-shadow .2s ease;
    }

    .hero-button:hover {
      transform: translateY(-2px);
    }

    .hero-button--primary {
      background: linear-gradient(180deg, #ffd46f, #ffc147);
      color: #17181a;
      box-shadow: 0 5px 0 var(--site-orange-dark), 0 18px 34px rgba(223, 123, 1, .2);
    }

    .hero-button--secondary {
      border: 2px solid rgba(255, 255, 255, .4);
      background: transparent;
      color: #fff;
    }

    .hero-pills {
      display: flex;
      flex-wrap: wrap;
      gap: 12px;
    }

    .hero-pill {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      padding: 10px 16px;
      border-radius: 20px;
      background: rgba(255, 255, 255, .15);
      color: #fff;
      font-size: 15px;
      line-height: 1.2;
    }

    .hero-pill svg {
      width: 18px;
      height: 18px;
      flex-shrink: 0;
      fill: currentColor;
    }

    .hero-lead-form {
      width: min(100%, 620px);
      padding: 30px;
      border: 1px solid rgba(255, 255, 255, .28);
      border-radius: 8px;
      background: linear-gradient(180deg, rgba(255, 255, 255, .96), rgba(246, 251, 253, .92));
      box-shadow: 0 30px 64px rgba(0, 0, 0, .26);
      color: var(--site-ink);
      backdrop-filter: blur(10px);
    }

    .hero-lead-form__top {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 16px;
      margin-bottom: 15px;
    }

    .hero-lead-form__eyebrow {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      color: #0088a6;
      font-family: var(--poppins);
      font-size: 13px;
      line-height: 1;
      font-weight: 700;
      text-transform: uppercase;
      letter-spacing: .5px;
    }

    .hero-lead-form__eyebrow svg {
      width: 18px;
      height: 18px;
      fill: #0088a6;
    }

    .hero-lead-form h2 {
      margin: 8px 0 0;
      color: var(--site-ink);
      font-family: var(--poppins);
      font-size: 34px;
      line-height: 1.08;
      font-weight: 700;
      letter-spacing: 0;
    }

    .hero-lead-form__note {
      margin: 6px 0 0;
      color: var(--site-muted);
      font-size: 15px;
      line-height: 22px;
      text-shadow: none;
    }

    .hero-lead-form .hero-lead-form__note {
      color: var(--site-muted);
      text-shadow: none;
    }

    .hero-lead-form__grid {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 12px 16px;
      margin-top: 16px;
    }

    .hero-field {
      display: flex;
      flex-direction: column;
      gap: 6px;
    }

    .hero-field--full {
      grid-column: 1 / -1;
    }

    .hero-field label {
      color: #31536f;
      font-family: var(--poppins);
      font-size: 13px;
      line-height: 1.2;
      font-weight: 700;
    }

    .hero-field input {
      width: 100%;
      height: 50px;
      padding: 12px 16px;
      border: 1px solid rgba(39, 90, 134, .18);
      border-radius: 8px;
      outline: none;
      background: #fff;
      color: var(--site-ink);
      font: 600 16px/1.2 var(--helvetica);
      box-shadow: inset 0 1px 0 rgba(255, 255, 255, .72);
      transition: border-color .2s ease, box-shadow .2s ease;
    }

    .hero-field input::placeholder {
      color: #95a6b4;
      font-weight: 400;
    }

    .hero-field input:focus {
      border-color: var(--site-teal);
      box-shadow: 0 0 0 4px rgba(45, 184, 232, .2);
    }

    .hero-lead-form__submit {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 10px;
      width: 100%;
      min-height: 58px;
      margin-top: 18px;
      border-radius: 100px;
      background: linear-gradient(180deg, #ffd46f, #ffc147);
      color: #17181a;
      font-family: var(--poppins);
      font-size: 19px;
      line-height: 1.1;
      font-weight: 700;
      box-shadow: 0 5px 0 var(--site-orange-dark), 0 18px 34px rgba(223, 123, 1, .2);
    }

    .hero-lead-form__submit svg {
      width: 19px;
      height: 19px;
      fill: currentColor;
    }

    .hero-lead-form__privacy {
      display: block;
      margin-top: 10px;
      color: #6d7f8c;
      font-size: 12px;
      line-height: 18px;
      text-align: center;
    }

    .hero-wave {
      position: absolute;
      right: 0;
      bottom: 0;
      left: 0;
      width: 100%;
      height: 120px;
      fill: #f7f7f7;
      pointer-events: none;
    }

    @media (min-width: 1600px) {
      .hero-video__content {
        padding-left: clamp(100px, 7.2vw, 150px);
        padding-right: clamp(78px, 5.5vw, 118px);
      }

      .hero-video__row {
        grid-template-columns: minmax(780px, 880px) minmax(620px, 660px);
        gap: clamp(42px, 2.7vw, 52px);
      }

      .hero-video__copy {
        max-width: 880px;
      }

      .hero-video h1 {
        font-size: clamp(76px, 4.25vw, 84px);
      }

      .hero-lead-form {
        width: min(100%, 650px);
      }

      .hero-lead-form h2 {
        font-size: 36px;
      }
    }

    @media (max-width: 1199.98px) {
      .hero-video__row {
        grid-template-columns: minmax(360px, .95fr) minmax(420px, 1.05fr);
        gap: 36px;
      }

      .hero-video h1 {
        font-size: clamp(46px, 5vw, 60px);
        line-height: 1.08;
      }
    }

    @media (max-width: 991.98px) {
      .hero-video__row {
        grid-template-columns: 1fr;
      }

      .hero-video__copy {
        max-width: 720px;
        margin: 0 auto;
        text-align: center;
      }

      .hero-actions,
      .hero-pills {
        justify-content: center;
      }

      .hero-video__art {
        justify-content: center;
        padding-top: 8px;
      }

      .hero-lead-form {
        margin-top: 8px;
      }

      .hero-lead-form__top {
        justify-content: center;
        text-align: left;
      }
    }

    @media (max-width: 575.98px) {
      .hero-video {
        min-height: 560px;
        padding-top: 72px;
        padding-bottom: 104px;
      }

      .hero-video__overlay {
        background: linear-gradient(180deg, rgba(10, 59, 102, .9) 0%, rgba(10, 59, 102, .7) 55%, rgba(10, 59, 102, .46) 100%);
      }

      .hero-video__content {
        padding-right: 16px;
        padding-left: 16px;
      }

      .hero-video h1 {
        font-size: 34px;
        line-height: 1.14;
      }

      .hero-video p {
        max-width: 320px;
        margin-right: auto;
        margin-left: auto;
        font-size: 18px;
        line-height: 28px;
      }

      .hero-actions,
      .hero-pills {
        flex-direction: column;
        align-items: center;
      }

      .hero-button {
        width: min(100%, 280px);
      }

      .hero-lead-form {
        width: 100%;
        padding: 22px 18px;
      }

      .hero-lead-form__top {
        display: block;
        text-align: center;
      }

      .hero-lead-form__eyebrow {
        justify-content: center;
      }

      .hero-lead-form h2 {
        font-size: 25px;
      }

      .hero-lead-form__note {
        text-align: center;
      }

      .hero-lead-form__grid {
        grid-template-columns: 1fr;
        gap: 12px;
      }

      .hero-field--full {
        grid-column: auto;
      }

      .hero-field input {
        height: 46px;
      }

      .hero-lead-form__submit {
        font-size: 16px;
      }
    }

    /* ====================================================================
       ADDED SECTIONS - content from version2, re-skinned to hero branding
       ==================================================================== */

    /* ---------- Trust strip ---------- */
    .trust {
      position: relative;
      z-index: 3;
      padding-top: 0;
      padding-bottom: 60px;
      /* margin-bottom: -70px; */
      padding-left: clamp(72px, 7.4vw, 150px);
      padding-right: clamp(72px, 7.4vw, 150px);
    }

    .trust-card {
      background: #fff;
      border: 1px solid var(--line);
      border-radius: var(--r-lg);
      box-shadow: var(--shadow-md);
      display: grid;
      grid-template-columns: repeat(4, 1fr);
      overflow: hidden;
    }

    .trust-card .stat {
      padding: 38px 26px;
      text-align: center;
      border-right: 1px solid var(--line);
    }

    .trust-card .stat:last-child {
      border-right: none;
    }

    .trust-card .stat .n {
      font-family: var(--poppins);
      font-weight: 700;
      font-size: 1.7rem;
      color: var(--pool-deep);
      line-height: 1;
    }

    .trust-card .stat .l {
      font-size: .98rem;
      color: var(--muted);
      font-weight: 500;
      margin-top: 8px;
    }

    /* ---------- Section shells ---------- */
    section.block {
      padding: 90px clamp(72px, 7.4vw, 150px);
    }

    .sec-head {
      max-width: none;
      margin: 0 auto 60px;
      text-align: center;
    }

    .sec-head h2 {
      font-size: clamp(2.3rem, 3.4vw, 3.4rem);
      margin: 16px 0;
      text-wrap: balance;
    }

    .sec-head p {
      max-width: 820px;
      margin: 0 auto;
      color: var(--muted);
      font-size: 1.22rem;
      line-height: 1.6;
      text-wrap: balance;
    }

    /* ---------- Services (Expert Pool Care) ---------- */
    .services {
      background: #fff;
    }

    .services-grid {
      display: grid;
      grid-template-columns: 1fr 1.05fr 1fr;
      gap: 28px;
      align-items: stretch;
    }

    .svc-col {
      display: flex;
      flex-direction: column;
      gap: 24px;
    }

    .svc-card {
      flex: 1;
      display: flex;
      flex-direction: column;
      justify-content: center;
      background: #fff;
      border: 1.5px solid rgba(45, 184, 232, .4);
      border-radius: var(--r-lg);
      padding: 38px;
      box-shadow: var(--shadow-sm);
      transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s;
    }

    .svc-card:hover {
      transform: translateY(-4px);
      box-shadow: var(--shadow-md);
      border-color: var(--pool);
    }

    .svc-ic {
      width: 54px;
      height: 54px;
      color: var(--pool);
      margin-bottom: 20px;
    }

    .svc-ic svg {
      width: 100%;
      height: 100%;
      display: block;
    }

    .svc-card h3 {
      font-size: 1.45rem;
      margin-bottom: 12px;
      color: var(--navy);
    }

    .svc-card p {
      color: var(--muted);
      font-size: 1.05rem;
      line-height: 1.6;
    }

    .svc-media {
      display: flex;
      align-items: center;
      justify-content: center;
      border-radius: var(--r-lg);
      overflow: hidden;
      padding: 28px;
      min-height: 320px;
      background: linear-gradient(165deg, #f1f9fd, #e3f1f9);
      border: 1px solid var(--line);
      box-shadow: var(--shadow-sm);
    }

    .svc-media img {
      width: min(100%, 320px);
      height: auto;
      max-height: 360px;
      object-fit: contain;
      display: block;
    }

    @media (max-width: 980px) {
      .services-grid {
        grid-template-columns: 1fr 1fr;
      }

      .svc-media {
        order: -1;
        grid-column: 1 / -1;
        min-height: 0;
        padding: 28px;
      }

      .svc-media img {
        width: min(100%, 280px);
        max-height: 320px;
      }
    }

    @media (max-width: 680px) {
      .services-grid {
        grid-template-columns: 1fr;
        gap: 18px;
      }

      .svc-col {
        gap: 18px;
      }

      .svc-media img {
        width: min(100%, 240px);
        max-height: 280px;
      }
    }

    /* ---------- Categories ---------- */
    .cats {
      position: relative;
      background: #d2e7f5;
    }

    .cat-grid {
      display: grid;
      grid-template-columns: repeat(4, 1fr);
      gap: 22px;
    }

    .cat {
      position: relative;
      display: flex;
      flex-direction: column;
      align-items: flex-start;
      min-height: 248px;
      padding: 34px 30px;
      border-radius: 18px;
      background: #fff;
      border: 1px solid var(--line);
      box-shadow: 0 6px 20px rgba(10, 41, 66, .05);
      color: var(--ink);
      overflow: hidden;
      transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s var(--ease);
    }

    .cat::after {
      content: "";
      position: absolute;
      right: -36px;
      top: -36px;
      width: 120px;
      height: 120px;
      border-radius: 50%;
      background: radial-gradient(circle, rgba(45, 184, 232, .14), transparent 70%);
      opacity: 0;
      transition: opacity .4s var(--ease), transform .4s var(--ease);
    }

    .cat:hover {
      transform: translateY(-6px);
      box-shadow: 0 22px 46px rgba(10, 41, 66, .14);
      border-color: rgba(45, 184, 232, .55);
    }

    .cat:hover::after {
      opacity: 1;
      transform: scale(1.35);
    }

    .cat .ci {
      position: relative;
      z-index: 1;
      width: 64px;
      height: 64px;
      border-radius: 18px;
      background: linear-gradient(150deg, var(--pool), var(--pool-deep));
      border: none;
      display: flex;
      align-items: center;
      justify-content: center;
      margin-bottom: 20px;
      box-shadow: 0 10px 22px rgba(14, 123, 168, .3);
      transition: transform .35s var(--ease);
    }

    .cat .ci svg {
      width: 33px;
      height: 33px;
    }

    .cat:hover .ci {
      transform: translateY(-3px) scale(1.05) rotate(-3deg);
    }

    /* alternating brand accent so the grid has rhythm */
    .cat-2 .ci,
    .cat-4 .ci,
    .cat-6 .ci,
    .cat-8 .ci {
      background: linear-gradient(150deg, #3a8fd0, #0a3b66);
      box-shadow: 0 10px 22px rgba(10, 59, 102, .3);
    }

    .cat h3 {
      position: relative;
      z-index: 1;
      color: var(--navy);
      font-size: 1.3rem;
      margin: 0;
    }

    .cat p {
      position: relative;
      z-index: 1;
      color: var(--muted);
      font-size: 1rem;
      margin-top: 8px;
      line-height: 1.55;
    }

    .cat .go {
      position: relative;
      z-index: 1;
      margin-top: auto;
      padding-top: 18px;
      font-family: var(--poppins);
      font-weight: 700;
      font-size: .84rem;
      color: var(--pool-deep);
      display: inline-flex;
      align-items: center;
      gap: 6px;
      transition: gap .25s var(--ease), color .25s var(--ease);
    }

    .cat:hover .go {
      gap: 10px;
      color: var(--pool);
    }

    /* ---------- Video library ---------- */
    .vids {
      position: relative;
      background: #fff;
    }

    .vid-grid {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 28px;
    }

    .vid {
      background: #fff;
      border-radius: var(--r-md);
      overflow: hidden;
      border: 1px solid var(--line);
      box-shadow: var(--shadow-sm);
      transition: transform .3s var(--ease), box-shadow .3s var(--ease);
      cursor: pointer;
    }

    .vid:hover {
      transform: translateY(-6px);
      box-shadow: var(--shadow-md);
    }

    .thumb {
      position: relative;
      aspect-ratio: 16/9;
    }

    .thumb-player {
      position: absolute;
      inset: 0;
      width: 100%;
      height: 100%;
      border: 0;
      z-index: 2;
    }

    .thumb.has-player .play {
      display: none;
    }

    .thumb::after {
      content: "";
      position: absolute;
      inset: 0;
      background: linear-gradient(to top, rgba(8, 32, 54, .5), rgba(8, 32, 54, .05));
      z-index: 1;
    }

    .thumb .play {
      position: absolute;
      left: 50%;
      top: 50%;
      transform: translate(-50%, -50%);
      width: 62px;
      height: 62px;
      border-radius: 50%;
      background: rgba(255, 255, 255, .92);
      display: flex;
      align-items: center;
      justify-content: center;
      box-shadow: var(--shadow-md);
      transition: transform .25s;
      z-index: 3;
    }

    .vid:hover .play {
      transform: translate(-50%, -50%) scale(1.12);
    }

    .thumb .dur {
      position: absolute;
      right: 10px;
      bottom: 10px;
      background: rgba(8, 32, 54, .86);
      color: #fff;
      font-weight: 600;
      font-size: .76rem;
      padding: 3px 9px;
      border-radius: 7px;
      z-index: 3;
    }

    .thumb .tag {
      position: absolute;
      left: 10px;
      top: 10px;
      background: rgba(255, 255, 255, .94);
      color: var(--pool-deep);
      font-family: var(--poppins);
      font-weight: 700;
      font-size: .7rem;
      padding: 4px 11px;
      border-radius: var(--r-pill);
      z-index: 3;
    }

    .vid-body {
      padding: 22px 24px 24px;
    }

    .vid-body h3 {
      font-size: 1.18rem;
      font-weight: 700;
    }

    .vid-foot {
      display: flex;
      align-items: center;
      justify-content: space-between;
      margin-top: 14px;
      padding-top: 14px;
      border-top: 1px solid var(--line);
    }

    .helpful {
      display: flex;
      gap: 8px;
    }

    .helpful button {
      display: flex;
      align-items: center;
      gap: 6px;
      font-family: var(--helvetica);
      font-weight: 600;
      font-size: .8rem;
      color: var(--muted);
      background: var(--sky);
      border: none;
      border-radius: var(--r-pill);
      padding: 7px 12px;
      cursor: pointer;
      transition: .2s;
    }

    .helpful button:hover {
      background: var(--sky-2);
      color: var(--pool-deep);
    }

    .need-help {
      font-family: var(--poppins);
      font-weight: 700;
      font-size: .8rem;
      color: var(--sun-deep);
      background: #fff5e2;
      border: 1px solid rgba(223, 123, 1, .32);
      border-radius: var(--r-pill);
      padding: 7px 14px;
      cursor: pointer;
      transition: background .2s, color .2s, transform .2s;
    }

    .need-help:hover {
      background: var(--sun);
      color: var(--navy);
      transform: translateY(-1px);
    }

    .vthumb-1 { background-image: url('https://i.ytimg.com/vi/TNDsUOsp_sw/maxresdefault.jpg'), url('https://i.ytimg.com/vi/TNDsUOsp_sw/hqdefault.jpg'); background-color: #0a3b66; }
    .vthumb-2 { background-image: url('https://i.ytimg.com/vi/wvNVw2agg3Y/maxresdefault.jpg'), url('https://i.ytimg.com/vi/wvNVw2agg3Y/hqdefault.jpg'); background-color: #0a3b66; }
    .vthumb-3 { background-image: url('https://i.ytimg.com/vi/-ZMm_Tw14JY/maxresdefault.jpg'), url('https://i.ytimg.com/vi/-ZMm_Tw14JY/hqdefault.jpg'); background-color: #0a3b66; }

    /* ---------- How it works ---------- */
    .how {
      background: #d2e7f5;
    }

    .how.block {
      position: relative;
      overflow: hidden;
      padding-top: 140px;
      padding-bottom: 100px;
    }

    .how .wrap {
      position: relative;
      z-index: 2;
    }

    /* Wavy section dividers - same style as the hero wave */
    .section-wave {
      position: absolute;
      left: 0;
      width: 100%;
      height: 110px;
      display: block;
      fill: #fff;
      pointer-events: none;
      z-index: 1;
    }

    .section-wave--top {
      top: -1px;
    }

    .section-wave--bottom {
      bottom: -1px;
    }

    /* wave colour = the colour of the section ABOVE it, so it flows in seamlessly */
    .section-wave--white {
      fill: #fff;
    }

    .section-wave--band {
      fill: #d2e7f5;
    }

    .section-wave--teal {
      fill: #1796c8;
    }

    .section-wave--navy {
      fill: #0a3b66;
    }

    /* sections that carry a top wave need room + a positioning context */
    .cats.block,
    .vids.block,
    .signup-sec.block,
    .askbot.block {
      padding-top: 140px;
    }

    .steps {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 28px;
    }

    .step {
      background: #fff;
      border-radius: var(--r-md);
      padding: 40px 34px;
      box-shadow: var(--shadow-sm);
      border: 1px solid var(--line);
      position: relative;
    }

    .step .num {
      width: 40px;
      height: 40px;
      border-radius: 11px;
      background: var(--navy);
      color: #fff;
      font-family: var(--poppins);
      font-weight: 700;
      display: flex;
      align-items: center;
      justify-content: center;
      margin-bottom: 18px;
    }

    .step h3 {
      font-size: 1.4rem;
      margin-bottom: 10px;
    }

    .step p {
      color: var(--muted);
      font-size: 1.05rem;
    }

    .step .si {
      position: absolute;
      top: 30px;
      right: 28px;
      color: #0a3b66;
    }

    /* ---------- Signup ---------- */
    .signup-sec {
      position: relative;
      background: #fff;
    }

    .signup {
      position: relative;
      border-radius: var(--r-lg);
      overflow: hidden;
      display: grid;
      grid-template-columns: 1.05fr .95fr;
      gap: 0;
      box-shadow: var(--shadow-lg);
      min-height: 520px;
    }

    .signup-photo {
      position: relative;
      color: #fff;
      padding: 54px;
      display: flex;
      flex-direction: column;
      justify-content: center;
      /* background-image: var(--ov), url('https://loremflickr.com/900/900/swimming,pool,blue?lock=20'), linear-gradient(150deg, #17395a, #0e87a8); */
      background-size: cover;
      background-position: center;
      background-color: var(--navy-2);
    }

    .signup-photo .eyebrow {
      color: var(--sun);
    }

    .signup-photo h2 {
      color: #fff;
      font-size: clamp(2.1rem, 3.2vw, 3rem);
      margin: 14px 0 18px;
    }

    .signup-photo p {
      color: rgba(255, 255, 255, .9);
      font-size: 1.14rem;
      margin-bottom: 26px;
    }

    .perks {
      list-style: none;
      display: flex;
      flex-direction: column;
      gap: 13px;
    }

    .perks li {
      display: flex;
      align-items: center;
      gap: 12px;
      font-weight: 500;
    }

    .perks .ck {
      width: 26px;
      height: 26px;
      border-radius: 8px;
      background: var(--sun);
      color: var(--navy);
      display: flex;
      align-items: center;
      justify-content: center;
      flex: 0 0 auto;
    }

    .form-card {
      background: #fff;
      padding: 46px;
    }

    .form-card h3 {
      font-size: 1.6rem;
      margin-bottom: 4px;
    }

    .form-card .lede {
      color: var(--muted);
      font-size: 1rem;
      margin-bottom: 24px;
    }

    .field {
      margin-bottom: 14px;
    }

    .field.row {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 12px;
    }

    .field label {
      display: block;
      font-weight: 600;
      font-size: .8rem;
      color: var(--navy-2);
      margin-bottom: 6px;
      font-family: var(--poppins);
    }

    .field input {
      width: 100%;
      padding: 13px 15px;
      border: 1.6px solid var(--line);
      border-radius: 11px;
      font-family: var(--helvetica);
      font-size: .96rem;
      color: var(--ink);
      background: #fbfdff;
      transition: .2s;
    }

    .field input:focus {
      outline: none;
      border-color: var(--pool);
      box-shadow: 0 0 0 4px rgba(45, 184, 232, .16);
      background: #fff;
    }

    .form-card .fineprint {
      font-size: .76rem;
      color: var(--muted);
      text-align: center;
      margin-top: 13px;
    }

    /* ---------- Ask the Guy ---------- */
    .askbot {
      background-color: var(--navy);
      background-image: linear-gradient(90deg, rgba(10, 59, 102, .95) 0%, rgba(10, 59, 102, .85) 45%, rgba(10, 59, 102, .62) 100%), url("../images/pool-safety-carousel.gif");
      background-size: cover;
      background-position: center;
      color: #fff;
      position: relative;
      overflow: hidden;
    }

    .askbot::before {
      content: "";
      position: absolute;
      right: -160px;
      top: -160px;
      width: 480px;
      height: 480px;
      border-radius: 50%;
      background: radial-gradient(circle, rgba(45, 184, 232, .4), transparent 70%);
    }

    .askbot-grid {
      position: relative;
      z-index: 2;
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 48px;
      align-items: center;
    }

    .askbot h2 {
      color: #fff;
      font-size: clamp(2.1rem, 3.2vw, 3rem);
    }

    .askbot .eyebrow {
      color: var(--sun);
    }

    .askbot p {
      color: rgba(255, 255, 255, .82);
      margin: 16px 0 26px;
      font-size: 1.16rem;
    }

    .chat-demo {
      background: #fff;
      border-radius: var(--r-md);
      padding: 18px;
      box-shadow: var(--shadow-lg);
      max-width: 400px;
      margin-left: auto;
    }

    .chat-head {
      display: flex;
      align-items: center;
      gap: 11px;
      padding-bottom: 14px;
      border-bottom: 1px solid var(--line);
      margin-bottom: 14px;
    }

    .chat-head .ava {
      width: 42px;
      height: 42px;
      border-radius: 11px;
      background: linear-gradient(150deg, var(--pool), var(--pool-deep));
      display: flex;
      align-items: center;
      justify-content: center;
      flex: 0 0 auto;
    }

    .chat-head .nm {
      font-family: var(--poppins);
      font-weight: 700;
      color: var(--navy);
      line-height: 1.1;
    }

    .chat-head .st {
      font-size: .74rem;
      color: #19b36b;
      font-weight: 600;
      display: flex;
      align-items: center;
      gap: 5px;
    }

    .chat-head .st::before {
      content: "";
      width: 7px;
      height: 7px;
      border-radius: 50%;
      background: #19b36b;
    }

    .bubble {
      padding: 11px 15px;
      border-radius: 14px;
      font-size: .9rem;
      margin-bottom: 10px;
      max-width: 86%;
      color: var(--ink);
    }

    .bubble.user {
      background: var(--pool);
      color: #fff;
      margin-left: auto;
      border-bottom-right-radius: 5px;
    }

    .bubble.bot {
      background: var(--sky);
      border-bottom-left-radius: 5px;
    }

    .bubble.bot b {
      color: var(--pool-deep);
    }

    /* ---------- Footer ---------- */
    footer {
      position: relative;
      overflow: hidden;
      background: #0a3b66;
      color: rgba(255, 255, 255, .72);
      padding: 130px clamp(72px, 7.4vw, 150px) 26px;
    }

    .foot-grid {
      display: grid;
      grid-template-columns: 1.6fr 1fr 1fr 1fr;
      gap: 36px;
      padding-bottom: 38px;
      border-bottom: 1px solid rgba(255, 255, 255, .1);
    }

    .foot-grid h4 {
      font-family: var(--poppins);
      color: #fff;
      font-size: .96rem;
      margin-bottom: 16px;
    }

    .foot-grid ul {
      list-style: none;
      display: flex;
      flex-direction: column;
      gap: 10px;
    }

    .foot-grid ul a {
      font-size: .92rem;
      transition: color .2s;
    }

    .foot-grid ul a:hover {
      color: var(--sun);
    }

    .foot-brand p {
      font-size: .93rem;
      margin: 14px 0 18px;
      max-width: 30em;
    }

    .foot-brand .wordmark .l1 {
      color: #fff;
    }

    .socials {
      display: flex;
      gap: 10px;
    }

    .socials a {
      width: 38px;
      height: 38px;
      border-radius: 10px;
      background: rgba(255, 255, 255, .1);
      display: flex;
      align-items: center;
      justify-content: center;
      transition: .2s;
    }

    .socials a:hover {
      background: var(--pool);
      transform: translateY(-3px);
    }

    .foot-bot {
      display: flex;
      align-items: center;
      justify-content: space-between;
      padding-top: 22px;
      font-size: .84rem;
      flex-wrap: wrap;
      gap: 10px;
    }

    /* ---------- Floating chat ---------- */
    .fab {
      position: fixed;
      right: 24px;
      bottom: 24px;
      z-index: 80;
      display: flex;
      align-items: center;
      gap: 12px;
      background: #fff;
      border: 1px solid var(--line);
      border-radius: var(--r-pill);
      padding: 9px 20px 9px 9px;
      box-shadow: var(--shadow-lg);
      cursor: pointer;
      transition: transform .25s var(--ease);
    }

    .fab:hover {
      transform: translateY(-4px);
    }

    .fab .fab-ava {
      width: 46px;
      height: 46px;
      border-radius: 50%;
      background: #fff4cf;
      display: flex;
      align-items: center;
      justify-content: center;
      flex: 0 0 auto;
      overflow: hidden;
    }

    .fab .fab-ava img {
      width: 38px;
      height: 38px;
      object-fit: contain;
      display: block;
    }

    .fab .fab-tx b {
      font-family: var(--poppins);
      font-weight: 700;
      color: var(--navy);
      font-size: .9rem;
      display: block;
    }

    .fab .fab-tx small {
      color: var(--muted);
      font-size: .74rem;
    }

    .fab .pulse {
      position: absolute;
      left: 9px;
      top: 9px;
      width: 46px;
      height: 46px;
      border-radius: 50%;
      background: var(--pool);
      opacity: .4;
      animation: pulse 2.4s ease-out infinite;
      z-index: -1;
    }

    @keyframes pulse {
      0% { transform: scale(1); opacity: .45; }
      100% { transform: scale(1.9); opacity: 0; }
    }

    /* ---------- Video lightbox ---------- */
    .lightbox {
      position: fixed;
      inset: 0;
      z-index: 120;
      background: rgba(7, 20, 33, .86);
      backdrop-filter: blur(6px);
      display: none;
      align-items: center;
      justify-content: center;
      padding: 24px;
    }

    .lightbox.open {
      display: flex;
    }

    .lb-inner {
      width: 100%;
      max-width: 900px;
    }

    .lb-frame {
      position: relative;
      width: 100%;
      aspect-ratio: 16/9;
      background: #000;
      border-radius: var(--r-md);
      overflow: hidden;
      box-shadow: var(--shadow-lg);
    }

    .lb-frame iframe {
      width: 100%;
      height: 100%;
      border: 0;
    }

    .lb-bar {
      display: flex;
      align-items: center;
      justify-content: space-between;
      margin-top: 14px;
      color: #fff;
    }

    .lb-bar .note {
      font-size: .84rem;
      color: rgba(255, 255, 255, .7);
    }

    .lb-close {
      background: #fff;
      color: var(--navy);
      border: none;
      border-radius: var(--r-pill);
      padding: 9px 18px;
      font-family: var(--poppins);
      font-weight: 700;
      cursor: pointer;
    }

    /* ---------- Still Need Help form modal ---------- */
    .help-card {
      width: 100%;
      max-width: 680px;
      height: min(90vh, 900px);
      display: flex;
      flex-direction: column;
      background: #fff;
      border-radius: var(--r-lg, 18px);
      overflow: hidden;
      box-shadow: var(--shadow-lg);
    }

    .help-head {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 14px;
      padding: 16px 20px;
      background: var(--navy);
      color: #fff;
    }

    .help-head-tx {
      display: flex;
      flex-direction: column;
      gap: 2px;
    }

    .help-head-tx b {
      font-family: var(--poppins);
      font-size: 1.05rem;
    }

    .help-head-tx small {
      font-size: .8rem;
      color: rgba(255, 255, 255, .75);
    }

    .help-close {
      flex: 0 0 auto;
      width: 36px;
      height: 36px;
      display: flex;
      align-items: center;
      justify-content: center;
      background: rgba(255, 255, 255, .14);
      color: #fff;
      border: none;
      border-radius: 50%;
      font-size: 1rem;
      cursor: pointer;
      transition: background .2s;
    }

    .help-close:hover {
      background: rgba(255, 255, 255, .28);
    }

    .help-frame {
      flex: 1;
      min-height: 0;
      background: #fff;
    }

    .help-frame iframe {
      width: 100%;
      height: 100%;
      border: 0;
      display: block;
    }

    @media (max-width: 640px) {
      .help-card {
        height: 94vh;
      }
    }

    /* ---------- Signup gate modal (shown when a signed-out visitor clicks a video) ---------- */
    .gate {
      position: fixed;
      inset: 0;
      z-index: 130;
      background: rgba(7, 20, 33, .86);
      backdrop-filter: blur(6px);
      display: none;
      align-items: center;
      justify-content: center;
      padding: 24px;
    }

    .gate.open {
      display: flex;
    }

    .gate-card {
      width: 100%;
      max-width: 440px;
      background: #fff;
      border-radius: var(--r-lg);
      padding: 40px 34px;
      text-align: center;
      box-shadow: var(--shadow-lg);
      animation: gate-pop .25s var(--ease);
    }

    @keyframes gate-pop {
      from { transform: translateY(14px) scale(.96); opacity: 0; }
      to { transform: none; opacity: 1; }
    }

    .gate-ic {
      width: 64px;
      height: 64px;
      margin: 0 auto 20px;
      border-radius: 18px;
      background: linear-gradient(150deg, var(--pool), var(--pool-deep));
      display: flex;
      align-items: center;
      justify-content: center;
      box-shadow: 0 10px 22px rgba(14, 123, 168, .3);
    }

    .gate-card h3 {
      font-size: 1.5rem;
      margin-bottom: 10px;
    }

    .gate-card p {
      color: var(--muted);
      font-size: 1.02rem;
      margin-bottom: 24px;
    }

    .gate-actions {
      display: flex;
      flex-direction: column;
      gap: 10px;
    }

    .gate-actions .btn {
      width: 100%;
    }

    .gate-dismiss {
      background: none;
      border: none;
      color: var(--muted);
      font-family: var(--poppins);
      font-weight: 700;
      font-size: .9rem;
      cursor: pointer;
      padding: 6px;
    }

    .gate-dismiss:hover {
      color: var(--navy);
    }

    /* ---------- Responsive (added sections) ---------- */
    @media (max-width: 980px) {
      .trust-card {
        grid-template-columns: 1fr 1fr;
      }

      .trust-card .stat:nth-child(2) {
        border-right: none;
      }

      .trust-card .stat:nth-child(1),
      .trust-card .stat:nth-child(2) {
        border-bottom: 1px solid var(--line);
      }

      .cat-grid {
        grid-template-columns: repeat(2, 1fr);
      }

      .vid-grid {
        grid-template-columns: repeat(2, 1fr);
      }

      .signup {
        grid-template-columns: 1fr;
      }

      .askbot-grid {
        grid-template-columns: 1fr;
        gap: 32px;
      }

      .foot-grid {
        grid-template-columns: 1fr 1fr;
      }
    }

    @media (max-width: 680px) {
      nav ul,
      .nav-cta .signin {
        display: none;
      }

      .burger {
        display: flex;
      }

      .mobile-menu {
        display: none;
        position: absolute;
        top: 76px;
        left: 0;
        right: 0;
        background: #fff;
        border-bottom: 1px solid var(--line);
        box-shadow: var(--shadow-md);
        padding: 14px 24px;
      }

      .mobile-menu.open {
        display: block;
      }

      .mobile-menu a {
        display: block;
        padding: 12px 0;
        font-family: var(--poppins);
        font-weight: 700;
        color: var(--navy);
        border-bottom: 1px solid var(--line);
      }

      .mobile-menu a:last-child {
        border: none;
      }

      section.block {
        padding: 60px 20px;
      }

      .vid-grid {
        grid-template-columns: 1fr;
      }

      .steps {
        grid-template-columns: 1fr;
      }

      .cat-grid {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
      }

      .signup-photo,
      .form-card {
        padding: 32px 24px;
      }

      .field.row {
        grid-template-columns: 1fr;
      }

      .foot-grid {
        grid-template-columns: 1fr 1fr;
      }

      .fab .fab-tx {
        display: none;
      }

      .fab {
        padding: 9px;
      }
    }

    /* Match section width + side gutters to the hero/nav across breakpoints */
    @media (min-width: 1600px) {
      .wrap {
        max-width: 1592px;
      }

      section.block,
      .trust,
      footer {
        padding-left: clamp(100px, 7.2vw, 150px);
        padding-right: clamp(78px, 5.5vw, 118px);
      }
    }

    /* Larger screens - scale type up so it fills the wide layout */
    @media (min-width: 1600px) {
      .eyebrow {
        font-size: .95rem;
      }

      .sec-head h2 {
        font-size: clamp(3.4rem, 3.6vw, 4.4rem);
      }

      .sec-head p {
        font-size: 1.4rem;
      }

      nav ul a,
      .nav-cta .signin {
        font-size: 1.05rem;
      }

      .trust-card .stat .n {
        font-size: 3.3rem;
      }

      .trust-card .stat .l {
        font-size: 1.1rem;
      }

      .cat h3 {
        font-size: 1.5rem;
      }

      .cat p {
        font-size: 1.12rem;
      }

      .svc-card h3 {
        font-size: 1.65rem;
      }

      .svc-card p {
        font-size: 1.18rem;
      }

      .step h3 {
        font-size: 1.6rem;
      }

      .step p {
        font-size: 1.18rem;
      }

      .vid-body h3 {
        font-size: 1.34rem;
      }

      .signup-photo h2 {
        font-size: clamp(3rem, 3.1vw, 3.8rem);
      }

      .signup-photo p {
        font-size: 1.28rem;
      }

      .form-card h3 {
        font-size: 1.85rem;
      }

      .field input {
        font-size: 1.05rem;
      }

      .askbot h2 {
        font-size: clamp(3rem, 3.1vw, 3.8rem);
      }

      .askbot p {
        font-size: 1.3rem;
      }

      .foot-grid h4 {
        font-size: 1.05rem;
      }

      .foot-grid ul a {
        font-size: 1rem;
      }

      .btn-lg {
        font-size: 1.2rem;
      }
    }

    @media (max-width: 575.98px) {
      section.block,
      .trust,
      footer {
        padding-left: 16px;
        padding-right: 16px;
      }
    }

/* =====================================================================
   NEW MULTI-PAGE COMPONENTS (video-library / video-category / single-video)
   Same tokens, colors, radii, shadows and waves as the homepage above.
   ===================================================================== */

/* ---- Active nav item ---- */
nav ul a.is-active { color: var(--pool-deep); }
nav ul a.is-active::after {
  content: ""; display: block; height: 3px; border-radius: 3px;
  background: var(--pool); margin-top: 5px;
}

/* ---- Page hero (navy gradient — lighter sibling of the homepage video hero) ---- */
.page-hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(120deg, #0a3b66 0%, #0e5c86 58%, #0e87a8 100%);
  color: #fff;
  padding: clamp(54px, 5.5vw, 88px) clamp(72px, 7.4vw, 150px) clamp(104px, 8vw, 150px);
}
.page-hero::before {
  content: ""; position: absolute; right: -160px; top: -180px;
  width: 480px; height: 480px; border-radius: 50%;
  background: radial-gradient(circle, rgba(45,184,232,.42), transparent 70%);
  pointer-events: none;
}
.page-hero .wrap { position: relative; z-index: 2; }
.page-hero .eyebrow { color: var(--sun); }
.page-hero h1 {
  color: #fff; margin: 14px 0 16px;
  font-size: clamp(2.6rem, 4.4vw, 4rem);
  text-shadow: 0 4px 18px rgba(0,0,0,.28);
  text-wrap: balance;
}
.page-hero p {
  color: rgba(255,255,255,.9);
  font-size: clamp(1.08rem, 1.4vw, 1.28rem);
  line-height: 1.6; max-width: 760px; text-wrap: balance;
}
.page-hero--center { text-align: center; }
.page-hero--center p { margin-left: auto; margin-right: auto; }

/* ---- Search bar ---- */
.searchbar {
  display: flex; align-items: center; gap: 10px;
  width: min(100%, 640px);
  margin-top: 28px;
  background: #fff;
  border-radius: var(--r-pill);
  padding: 8px 8px 8px 20px;
  box-shadow: var(--shadow-md);
}
.page-hero--center .searchbar { margin-left: auto; margin-right: auto; }
.searchbar svg { width: 22px; height: 22px; fill: var(--pool-deep); flex: 0 0 auto; }
.searchbar input {
  flex: 1; border: none; outline: none; background: transparent;
  font: 500 1.02rem/1.2 var(--helvetica); color: var(--ink); min-width: 0;
}
.searchbar input::placeholder { color: #95a6b4; }
.searchbar .btn { flex: 0 0 auto; padding: 12px 24px; }
@media (max-width: 575.98px) {
  .searchbar { flex-wrap: wrap; padding: 14px; border-radius: var(--r-md); }
  .searchbar .btn { width: 100%; }
}

/* ---- Breadcrumbs ---- */
.crumbs {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px;
  font-family: var(--poppins); font-weight: 600; font-size: .9rem;
  color: var(--muted); margin-bottom: 22px;
}
.crumbs a { color: var(--pool-deep); }
.crumbs a:hover { color: var(--pool); }
.crumbs .sep { color: #b9c6d1; }
.crumbs .here { color: var(--navy); }

/* ---- Filter pills (subcategory filters) ---- */
.pill-row { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 40px; }
.pill {
  font-family: var(--poppins); font-weight: 700; font-size: .92rem;
  color: var(--navy-2);
  background: #fff;
  border: 1.5px solid var(--line);
  border-radius: var(--r-pill);
  padding: 10px 20px; cursor: pointer;
  transition: transform .2s var(--ease), border-color .2s, background .2s, color .2s, box-shadow .2s;
}
.pill:hover { border-color: var(--pool); transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.pill.active { background: var(--pool); border-color: var(--pool); color: #fff; box-shadow: 0 10px 22px rgba(14,123,168,.3); }

/* ---- Video card extras (extends homepage .vid / .thumb) ---- */
.vid-body p.vid-desc { color: var(--muted); font-size: .96rem; margin-top: 8px; line-height: 1.5; }
.thumb .lock {
  position: absolute; left: 10px; top: 10px; z-index: 3;
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(8,32,54,.82); color: #fff;
  font-family: var(--poppins); font-weight: 700; font-size: .7rem;
  padding: 5px 10px; border-radius: var(--r-pill);
}
.thumb .lock svg { width: 12px; height: 12px; fill: #fff; }
/* when a lock badge sits top-left, drop the category tag to bottom-left */
.thumb .tag.tag--bl { top: auto; bottom: 10px; }

/* ---- Inline account prompt (signed-out visitors) ---- */
.account-note {
  display: flex; align-items: center; gap: 18px;
  background: linear-gradient(120deg, #eaf6fc, #f3f8fc);
  border: 1.5px solid rgba(45,184,232,.4);
  border-radius: var(--r-lg);
  padding: 22px 26px; margin-bottom: 36px;
  box-shadow: var(--shadow-sm);
}
.account-note .an-ic {
  width: 52px; height: 52px; flex: 0 0 auto; border-radius: 14px;
  background: linear-gradient(150deg, var(--pool), var(--pool-deep));
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 10px 22px rgba(14,123,168,.3);
}
.account-note .an-ic svg { width: 26px; height: 26px; fill: #fff; }
.account-note .an-tx { flex: 1; min-width: 0; }
.account-note .an-tx b { font-family: var(--poppins); color: var(--navy); font-size: 1.08rem; display: block; }
.account-note .an-tx span { color: var(--muted); font-size: .96rem; }
.account-note .btn { flex: 0 0 auto; }
@media (max-width: 640px) {
  .account-note { flex-direction: column; align-items: flex-start; text-align: left; }
  .account-note .btn { width: 100%; }
}

/* ---- CTA band (free account) ---- */
.cta {
  position: relative; overflow: hidden;
  background-color: var(--navy);
  background-image: linear-gradient(120deg, rgba(10,59,102,.96), rgba(14,123,168,.9));
  color: #fff; text-align: center;
}
.cta.block {
  padding-top: 54px;
  padding-bottom: 46px;
}
.cta::before {
  content: ""; position: absolute; left: -140px; bottom: -180px;
  width: 460px; height: 460px; border-radius: 50%;
  background: radial-gradient(circle, rgba(45,184,232,.4), transparent 70%);
}
.cta .wrap { position: relative; z-index: 2; }
.cta .eyebrow { color: var(--sun); }
.cta h2 { color: #fff; font-size: clamp(2.1rem, 3.2vw, 3rem); margin: 14px 0; text-wrap: balance; }
.cta p { color: rgba(255,255,255,.9); font-size: 1.16rem; max-width: 640px; margin: 0 auto 28px; text-wrap: balance; }

@media (max-width: 680px) {
  .cta.block {
    padding-top: 44px;
    padding-bottom: 42px;
  }
}

/* ---- Section intro left-aligned variant ---- */
.sec-head--left { text-align: left; margin-left: 0; margin-right: 0; }
.sec-head--left p { margin-left: 0; }

/* ---- Single-video layout ---- */
.video-layout { display: grid; grid-template-columns: 1.7fr 1fr; gap: 36px; align-items: start; }
.video-stage {
  position: relative; aspect-ratio: 16/9; border-radius: var(--r-md);
  overflow: hidden; box-shadow: var(--shadow-lg); background: var(--navy-2); cursor: pointer;
}
.video-stage .poster { position: absolute; inset: 0; background-size: cover; background-position: center; }
.video-stage::after {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(to top, rgba(8,32,54,.55), rgba(8,32,54,.06));
}
.video-stage .play {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%,-50%);
  width: 84px; height: 84px; border-radius: 50%; background: rgba(255,255,255,.94);
  display: flex; align-items: center; justify-content: center; z-index: 3;
  box-shadow: var(--shadow-md); transition: transform .25s;
}
.video-stage:hover .play { transform: translate(-50%,-50%) scale(1.08); }
.video-stage iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; z-index: 4; }
.video-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 22px 0 12px; }
.video-meta .tagx {
  background: var(--sky-2); color: var(--pool-deep);
  font-family: var(--poppins); font-weight: 700; font-size: .78rem;
  padding: 5px 12px; border-radius: var(--r-pill);
}
.video-meta .metax { color: var(--muted); font-size: .9rem; font-weight: 600; }
.video-title { font-size: clamp(1.8rem, 2.4vw, 2.4rem); margin: 0 0 14px; }
.video-lead { color: var(--muted); font-size: 1.1rem; line-height: 1.6; margin-bottom: 22px; }
.video-actions {
  display: flex; flex-wrap: wrap; align-items: center; gap: 12px;
  padding: 20px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.video-actions .helpful { gap: 10px; }
.video-actions .helpful button { font-size: .9rem; padding: 9px 16px; }
.still-cta { display: inline-flex; align-items: center; gap: 8px; margin-left: auto; }
@media (max-width: 575.98px) { .still-cta { margin-left: 0; width: 100%; justify-content: center; } }

/* ---- "What you'll learn" ---- */
.learn { margin-top: 34px; }
.learn h3 { font-size: 1.4rem; margin-bottom: 16px; }
.learn-list { list-style: none; display: grid; gap: 12px; }
.learn-list li { display: flex; align-items: flex-start; gap: 12px; color: var(--ink); font-size: 1.03rem; line-height: 1.5; }
.learn-list .lk {
  width: 26px; height: 26px; flex: 0 0 auto; border-radius: 8px; margin-top: 1px;
  background: var(--sun); color: var(--navy);
  display: flex; align-items: center; justify-content: center;
}
.learn-list .lk svg { width: 14px; height: 14px; }

/* ---- Sidebar cards (single video) ---- */
.side { display: flex; flex-direction: column; gap: 20px; position: sticky; top: 96px; }
.side-card { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 26px; box-shadow: var(--shadow-sm); }
.side-card.navy { background-color: var(--navy); background-image: linear-gradient(150deg, #0a3b66, #0e87a8); color: #fff; border: none; }
.side-card h4 { font-family: var(--poppins); font-size: 1.2rem; margin-bottom: 8px; }
.side-card.navy h4 { color: #fff; }
.side-card p { color: var(--muted); font-size: .96rem; margin-bottom: 16px; }
.side-card.navy p { color: rgba(255,255,255,.85); }
.side-card .btn { width: 100%; }
@media (max-width: 980px) { .video-layout { grid-template-columns: 1fr; } .side { position: static; } }

/* ---- Video library page spacing ---- */
.video-library-cats.block,
.video-library-vids.block,
.video-library-cta.block {
  padding-top: 78px;
  padding-bottom: 78px;
}

.video-library-cta.block {
  padding-top: 118px;
}

@media (max-width: 980px) {
  .video-library-cats.block,
  .video-library-vids.block,
  .video-library-cta.block {
    padding-top: 64px;
    padding-bottom: 64px;
  }

  .video-library-cta.block {
    padding-top: 98px;
  }
}

@media (max-width: 680px) {
  .video-library-cats.block,
  .video-library-vids.block,
  .video-library-cta.block {
    padding-top: 52px;
    padding-bottom: 52px;
  }

  .video-library-cta.block {
    padding-top: 82px;
  }
}

/* Custom logo (Customizer) — keep it in scale with the nav/footer brand */
/* ---- Inner page section rhythm (homepage keeps its custom spacing) ---- */
body:not(.home) section.block {
  padding-top: 82px !important;
  padding-bottom: 82px !important;
}

body:not(.home) section.block:has(.section-wave--top) {
  padding-top: 122px !important;
}

@media (max-width: 980px) {
  body:not(.home) section.block {
    padding-top: 66px !important;
    padding-bottom: 66px !important;
  }

  body:not(.home) section.block:has(.section-wave--top) {
    padding-top: 102px !important;
  }
}

@media (max-width: 680px) {
  body:not(.home) section.block {
    padding-top: 54px !important;
    padding-bottom: 54px !important;
  }

  body:not(.home) section.block:has(.section-wave--top) {
    padding-top: 150px !important;
  }
}

/* ---- Inner page responsive fixes (do not affect homepage) ---- */
@media (max-width: 980px) {
  body:not(.home) .page-hero {
    padding-top: 64px;
    padding-bottom: 112px;
  }

  body:not(.home) .page-hero h1,
  body:not(.home) .cta h2 {
    font-size: clamp(2.35rem, 7vw, 3.4rem);
  }

  body:not(.home) .sec-head {
    margin-bottom: 42px;
  }
}

@media (max-width: 680px) {
  footer {
    padding-top: 64px;
    padding-bottom: 24px;
  }

  .foot-grid {
    gap: 24px;
    padding-bottom: 28px;
  }

  .foot-brand .brand-logo,
  .foot-brand .custom-logo {
    height: 92px;
    margin-top: 0;
  }

  body:not(.home) .nav {
    height: 72px;
    gap: 12px;
  }

  body:not(.home) .nav-logo,
  body:not(.home) .custom-logo {
    height: 58px;
  }

  body:not(.home) .nav-cta {
    gap: 8px;
  }

  body:not(.home) .nav-cta .btn {
    padding: 12px 18px;
    font-size: .92rem;
  }

  body:not(.home) .page-hero {
    padding: 54px 20px 150px;
  }

  body:not(.home) .page-hero h1 {
    font-size: clamp(2.15rem, 10vw, 2.85rem);
    line-height: 1.08;
  }

  body:not(.home) .page-hero p,
  body:not(.home) .sec-head p,
  body:not(.home) .cta p {
    font-size: 1rem;
    line-height: 1.55;
  }

  body:not(.home) .sec-head {
    margin-bottom: 34px;
  }

  body:not(.home) .sec-head h2,
  body:not(.home) .cta h2 {
    font-size: clamp(2rem, 9vw, 2.55rem);
    line-height: 1.12;
  }

  body:not(.home) .cat-grid,
  body:not(.home) .vid-grid,
  body:not(.home) .foot-grid {
    grid-template-columns: 1fr;
  }

  body:not(.home) .cat {
    min-height: 0;
  }

  body:not(.home) .vid-foot {
    align-items: flex-start;
    gap: 12px;
    flex-direction: column;
  }

  body:not(.home) .need-help,
  body:not(.home) .helpful {
    width: 100%;
  }

  body:not(.home) .helpful button,
  body:not(.home) .need-help {
    justify-content: center;
  }
}

@media (max-width: 430px) {
  body:not(.home) .nav-content {
    padding-left: 14px;
    padding-right: 14px;
  }

  body:not(.home) .nav-logo,
  body:not(.home) .custom-logo {
    height: 52px;
  }

  body:not(.home) .nav-cta .btn {
    padding: 11px 14px;
    font-size: .86rem;
  }

  body:not(.home) .burger {
    padding: 6px;
  }

  body:not(.home) .page-hero {
    padding-left: 16px;
    padding-right: 16px;
  }

  body:not(.home) .searchbar {
    padding: 12px;
  }
}

.custom-logo { height: 56px; width: auto; display: block; }
.foot-brand .custom-logo { height: 62px; }

/* =====================================================================
   PRIMARY NAV DROPDOWN (Video Library > categories submenu)
   Additive only — matches the existing brand tokens, no redesign.
   ===================================================================== */
nav > ul > li { position: relative; }
nav .menu-item-has-children > a::after {
  content: "";
  display: inline-block;
  width: 7px; height: 7px;
  margin-left: 7px;
  border-right: 2px solid var(--muted);
  border-bottom: 2px solid var(--muted);
  transform: translateY(-2px) rotate(45deg);
  transition: transform .2s var(--ease), border-color .2s;
}
nav .menu-item-has-children:hover > a::after { border-color: var(--pool-deep); transform: translateY(0) rotate(45deg); }

/* the submenu itself (nested ul) */
nav ul ul {
  display: block;
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  min-width: 240px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-md);
  padding: 8px;
  gap: 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity .2s var(--ease), transform .2s var(--ease), visibility .2s;
  z-index: 70;
}
/* small hover bridge so the menu doesn't close in the gap */
nav ul ul::before { content: ""; position: absolute; top: -12px; left: 0; right: 0; height: 12px; }
nav li:hover > ul { opacity: 1; visibility: visible; transform: none; }
nav ul ul li { width: 100%; }
nav ul ul a {
  display: block;
  padding: 10px 14px;
  border-radius: 8px;
  font-family: var(--poppins);
  font-weight: 600;
  font-size: .95rem;
  color: var(--navy-2);
  white-space: nowrap;
}
nav ul ul a:hover { background: var(--sky); color: var(--pool-deep); }

/* mobile menu sub-links (categories under Video Library) */
.mobile-menu .mm-sub { padding-left: 20px; font-size: .92rem; color: var(--pool-deep); }

/* =====================================================================
   SIGN IN MODAL form (reuses the .gate modal shell)
   ===================================================================== */
.gate-form { display: flex; flex-direction: column; gap: 10px; margin-top: 4px; text-align: left; }
.gate-form input {
  width: 100%;
  height: 50px;
  padding: 12px 16px;
  border: 1px solid rgba(39, 90, 134, .18);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  font: 600 16px/1.2 var(--helvetica);
  outline: none;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.gate-form input::placeholder { color: #95a6b4; font-weight: 400; }
.gate-form input:focus { border-color: var(--pool); box-shadow: 0 0 0 4px rgba(45, 184, 232, .2); }
.gate-form .btn { width: 100%; }
.gate-alt { margin-top: 14px; color: var(--muted); font-size: .92rem; }
.gate-alt a { color: var(--pool-deep); font-weight: 700; }

/* =====================================================================
   TESTING TEMPLATE
   ===================================================================== */
.testing-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}
.testing-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 26px;
  box-shadow: var(--shadow-sm);
}
.testing-card h3 { font-size: 1.35rem; margin-bottom: 10px; }
.testing-card p { color: var(--muted); margin-bottom: 18px; }
.testing-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
@media (max-width: 760px) {
  .testing-grid { grid-template-columns: 1fr; }
  .testing-actions .btn { width: 100%; }
}

/* ---- Mobile side-gutter fixes (page hero keeps its top/bottom padding) ---- */
@media (max-width: 680px) {
  .page-hero {
    padding-left: 20px;
    padding-right: 20px;
  }
}

@media (max-width: 575.98px) {
  .page-hero {
    padding-left: 16px;
    padding-right: 16px;
  }
}
