/* Shared styles for every ISP landing page. */
  @font-face { font-family: "Archivo"; font-weight: 400; font-display: swap; src: url("../fonts/archivo-latin-400-normal.woff2") format("woff2"); }
  @font-face { font-family: "Archivo"; font-weight: 700; font-display: swap; src: url("../fonts/archivo-latin-700-normal.woff2") format("woff2"); }
  @font-face { font-family: "Nunito"; font-weight: 400; font-display: swap; src: url("../fonts/nunito-latin-400-normal.woff2") format("woff2"); }
  @font-face { font-family: "Nunito"; font-weight: 700; font-display: swap; src: url("../fonts/nunito-latin-700-normal.woff2") format("woff2"); }

  :root {
    /* ISP brand tokens */
    --navy: #002442;      /* headings, button text */
    --slate: #1D2933;     /* body text */
    --ink: #000000;       /* video letterbox */
    --blue: #3A96E0;      /* buttons, frames, accents (never small text) */
    --blue-hover: #5AAAE8;
    --white: #FFFFFF;     /* page background */
    --tint: #F3F6F9;      /* cards and alternate surfaces */
    --muted: #4A5968;     /* secondary text, 7:1 on white */
    --line: #DCE3EA;

    --display: "Archivo", "Helvetica Neue", Arial, sans-serif;
    --body: "Nunito", "Helvetica Neue", Arial, sans-serif;

    --wrap: 1080px;
    --narrow: 720px;
    --gutter: 20px;
    --radius: 6px;
  }

  *, *::before, *::after { box-sizing: border-box; }
  [hidden] { display: none !important; }
  html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
  body {
    margin: 0;
    background: var(--white);
    color: var(--slate);
    font-family: var(--body);
    font-size: 1.0625rem;
    line-height: 1.6;
  }
  img, video, iframe { display: block; max-width: 100%; }
  a { color: inherit; }
  :focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 2px; }

  .skip { position: absolute; left: -999px; top: 8px; background: var(--navy); color: var(--white); padding: 10px 16px; z-index: 100; }
  .skip:focus { left: 8px; }

  .wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
  .narrow { max-width: var(--narrow); }
  section { padding: 88px 0; }

  h1, h2, h3 { color: var(--navy); font-family: var(--display); font-weight: 700; line-height: 1.08; margin: 0; text-wrap: balance; }
  h2 { font-size: clamp(2rem, 4.6vw, 3.1rem); letter-spacing: -0.01em; }
  h3 { font-size: 1.3rem; line-height: 1.25; }
  p { margin: 0; }
  .lede { color: var(--muted); font-size: 1.15rem; margin-top: 18px; max-width: 60ch; }
  .center { text-align: center; }
  .center .lede { margin-left: auto; margin-right: auto; }

  /* ---------- Buttons ---------- */
  .btn {
    display: inline-flex; flex-direction: column; align-items: center; justify-content: center;
    min-height: 64px; padding: 18px 40px;
    background: var(--blue); color: var(--navy);
    font-family: var(--display); font-weight: 700; font-size: 1.35rem; line-height: 1.15;
    text-decoration: none; border-radius: var(--radius);
    box-shadow: 0 0 0 0 rgba(58, 150, 224, 0);
    transition: background-color .18s ease, box-shadow .18s ease, transform .12s ease;
    touch-action: manipulation; cursor: pointer;
  }
  .btn:hover { background: var(--blue-hover); box-shadow: 0 0 0 6px rgba(58, 150, 224, 0.22); }
  .btn:active { transform: scale(0.98); }
  .btn small { font-family: var(--body); font-weight: 400; font-size: 0.9rem; margin-top: 4px; }
  .btn-xl { width: 100%; max-width: 560px; font-size: clamp(1.4rem, 3.4vw, 1.75rem); min-height: 84px; }

  /* ---------- Header ---------- */
  .top { padding: 22px 0; background: var(--navy); }
  .top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
  .brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
  .brand-mark {
    width: 44px; height: 44px; flex: none; background: var(--white);
    -webkit-mask: url("../img/logo-white.png") center / contain no-repeat;
            mask: url("../img/logo-white.png") center / contain no-repeat;
  }
  .brand-name { color: var(--white); font-family: var(--display); font-weight: 700; font-size: 1rem; line-height: 1.15; }
  .top-link { color: var(--white); font-weight: 700; text-decoration: none; padding: 10px 4px; border-bottom: 2px solid var(--blue); }

  /* ---------- Hero ---------- */
  section.hero { padding: 0; text-align: center; }

  /* Navy band behind the title that stops ~90% of the way down the video.
     --film-w is the rendered video width; 0.50625 = 90% of a 16:9 height. */
  .hero { --film-w: min(960px, 100vw - 2 * var(--gutter)); --band-overlap: calc(var(--film-w) * 0.50625); }
  .band {
    position: relative; overflow: hidden;
    background: var(--navy);
    padding: 40px 0 calc(48px + var(--band-overlap));
  }
  .band > .wrap { position: relative; }
  .hero h1 { color: var(--white); }
  .hero h1 {
    /* sized so the headline never runs past two lines */
    font-size: var(--h1-size, clamp(1rem, 5.45vw - 3px, 3.7rem));  /* pages can override --h1-size to fit their headline on two lines */
    line-height: 1.08; letter-spacing: 0.03em; word-spacing: 0.12em;
    text-transform: uppercase;
    margin: 0 auto;
  }
  .hero h1 .nowrap { white-space: nowrap; }
  .hero h1 .accent { color: var(--blue); }
  .hero .sub { color: rgba(255, 255, 255, 0.85); font-size: clamp(1.1rem, 2.2vw, 1.35rem); max-width: 44ch; margin: 24px auto 0; }

  .film { position: relative; margin: calc(-1 * var(--band-overlap)) auto 0; max-width: 960px; }
  .film-frame { border: 3px solid var(--blue); background: var(--ink); aspect-ratio: 16 / 9; }
  .film-frame video { width: 100%; height: 100%; object-fit: cover; }
  .film-frame iframe { display: block; width: 100%; height: 100%; border: 0; }
  .vsl-play { position: relative; display: block; width: 100%; height: 100%; padding: 0; border: 0; background: var(--ink); cursor: pointer; }
  .vsl-play img { width: 100%; height: 100%; object-fit: cover; }
  .vsl-icon {
    /* bottom-left, clear of the thumbnail's title text */
    position: absolute; left: 4.5%; bottom: 7%; width: 88px; height: 88px;
    border-radius: 50%; background: var(--blue); box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
    transition: transform .15s ease, background-color .15s ease;
  }
  .vsl-icon::after {
    content: ""; position: absolute; left: 54%; top: 50%; transform: translate(-50%, -50%);
    border-style: solid; border-width: 16px 0 16px 26px; border-color: transparent transparent transparent var(--navy);
  }
  .vsl-play:hover .vsl-icon { transform: scale(1.06); background: var(--blue-hover); }
  @media (max-width: 480px) { .vsl-icon { width: 48px; height: 48px; } .vsl-icon::after { border-width: 9px 0 9px 14px; } }
  .film figcaption { color: var(--muted); font-size: 0.95rem; margin-top: 12px; }

  .hero-cta { padding-top: 40px; padding-bottom: 88px; }
  /* Hero "Book now": words fill the button */
  .hero-cta .btn-xl { max-width: 620px; min-height: 104px; padding: 14px 24px; font-size: clamp(1.6rem, 6.4vw, 2.5rem); line-height: 1.05; }
  .hero-cta .btn-xl small { font-size: clamp(1.05rem, 3.2vw, 1.3rem); font-weight: 700; margin-top: 6px; }
  .hero-cta p { color: var(--muted); margin-top: 14px; font-size: 0.98rem; }

  /* ---------- How the free audit works ---------- */
  .how { border-top: 1px solid var(--line); }
  .how-steps { list-style: none; counter-reset: step; margin: 40px auto 0; padding: 0; max-width: 1000px;
    display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
  .how-steps li { counter-increment: step; border-top: 3px solid var(--blue); padding-top: 18px; }
  .how-steps li::before { content: counter(step); display: block; color: var(--navy); font-family: var(--display); font-weight: 700; font-size: 2rem; line-height: 1; margin-bottom: 10px; }
  .how-steps h3 { font-size: 1.2rem; }
  .how-steps p { color: var(--muted); margin-top: 8px; }
  .how-cta { margin-top: 40px; }

  /* ---------- The gap ---------- */
  .gap { background: var(--tint); }
  .gap h2 { font-size: clamp(1.9rem, 4.2vw, 2.8rem); }
  .gap-body { margin-top: 28px; display: grid; gap: 18px; font-size: 1.15rem; color: var(--muted); max-width: 60ch; }
  .gap-close { color: var(--navy); font-weight: 700; }

  /* ---------- Photos ---------- */
  .photos { background: var(--white); padding: 0; }
  .strip { display: grid; grid-template-columns: 1.4fr 1fr 1fr; grid-template-rows: 240px 240px; gap: 4px; }
  .strip img { width: 100%; height: 100%; object-fit: cover; }
  .strip img:first-child { grid-row: span 2; }

  /* ---------- Reviews ---------- */
  .results .head { max-width: 640px; }
  .cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; margin-top: 48px; }
  .card { background: var(--tint); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; }
  .card img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; }
  .card.featured { margin-top: 48px; display: grid; grid-template-columns: 1.1fr 1fr; }
  .card.featured img { height: 100%; aspect-ratio: auto; min-height: 320px; }
  .card.featured .card-body { padding: 36px; }
  .card.featured h3 { font-size: 1.6rem; }
  .also { margin-top: 24px; color: var(--muted); max-width: 70ch; }
  .card-body { padding: 24px 24px 28px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
  .client { color: var(--muted); font-weight: 700; font-size: 0.95rem; }
  .card p { color: var(--muted); }
  .quote {
    margin: 8px 0 0; padding: 14px 16px; border-left: 3px solid var(--blue);
    font-style: italic; color: var(--navy);
  }
  .quote.todo { border: 1px dashed #B8C4CF; border-left: 3px solid #B8C4CF; color: var(--muted); font-style: normal; font-size: 0.92rem; }

  /* ---------- Scarcity ---------- */
  .spots { background: var(--white); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
  .spots .spots-count { color: var(--navy); }
  .spots-inner { display: grid; grid-template-columns: 1.1fr 1fr; gap: 56px; align-items: center; }
  .meter { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(10, 1fr); gap: 8px; }
  .meter li { aspect-ratio: 1; border-radius: 3px; border: 2px solid var(--blue); }
  .meter li.taken { background: var(--line); border-color: transparent; }
  .meter-key { display: flex; gap: 20px; flex-wrap: wrap; margin-top: 16px; color: var(--muted); font-size: 0.95rem; }
  .meter-key span::before { content: ""; display: inline-block; width: 12px; height: 12px; border-radius: 2px; margin-right: 8px; vertical-align: -1px; }
  .key-open::before { border: 2px solid var(--blue); }
  .key-taken::before { background: var(--line); }
  .spots-count { font-family: var(--display); font-weight: 700; font-size: 1.35rem; margin-bottom: 18px; }
  .spots .btn { margin-top: 32px; }

  /* ---------- Free audit form ---------- */
  .audit {
    max-width: 760px; margin: 40px auto 0; padding: 36px;
    background: var(--white); border: 1px solid var(--line); border-radius: 10px;
    box-shadow: 0 12px 32px rgba(0, 36, 66, 0.07);
  }
  .progress-label { color: var(--muted); font-weight: 700; font-size: 0.95rem; }
  .progress-track { height: 6px; margin-top: 8px; background: var(--line); border-radius: 3px; overflow: hidden; }
  .progress-track span { display: block; height: 100%; background: var(--blue); transform-origin: left; transition: transform .3s ease; }
  .step h3 { font-size: 1.55rem; margin-top: 28px; }
  .step h3:focus { outline: none; }
  .step-intro { color: var(--muted); margin-top: 8px; }
  .field { margin-top: 28px; border: 0; padding: 0; min-width: 0; }
  .q { display: block; padding: 0; color: var(--navy); font-family: var(--display); font-weight: 700; font-size: 1.1rem; line-height: 1.3; }
  .q .opt { color: var(--muted); font-family: var(--body); font-weight: 400; font-size: 0.95rem; }
  .help { color: var(--muted); font-size: 0.95rem; margin-top: 4px; }
  .input {
    display: block; width: 100%; min-height: 52px; margin-top: 10px; padding: 12px 14px;
    font: inherit; font-size: 1rem; color: var(--slate); background: var(--white);
    border: 1.5px solid #B8C4CF; border-radius: var(--radius);
  }
  .input:focus { border-color: var(--blue); }
  select.input { appearance: none; -webkit-appearance: none; padding-right: 40px; cursor: pointer;
    background: var(--white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9'%3E%3Cpath d='M1 1l6 6 6-6' fill='none' stroke='%23002442' stroke-width='2'/%3E%3C/svg%3E") no-repeat right 16px center; }
  .row-2 { display: grid; grid-template-columns: 2fr 1fr; gap: 12px; }
  .options { display: grid; gap: 10px; margin-top: 12px; }
  .options.cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .option {
    display: flex; align-items: flex-start; gap: 12px; min-height: 52px; padding: 14px 16px;
    border: 1.5px solid var(--line); border-radius: var(--radius); cursor: pointer;
    color: var(--slate); line-height: 1.4; transition: border-color .15s ease, background-color .15s ease;
  }
  .option:hover { border-color: #B8C4CF; }
  .option input { flex: none; width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--blue); cursor: pointer; }
  .option:has(input:checked) { border-color: var(--blue); background: #EAF4FC; color: var(--navy); }
  .option:has(input:focus-visible) { outline: 3px solid var(--blue); outline-offset: 2px; }
  .other-text { margin-top: 10px; }
  .err { color: #B42318; font-weight: 700; font-size: 0.95rem; margin-top: 8px; }
  .input[aria-invalid="true"], fieldset[aria-invalid="true"] .option { border-color: #B42318; }
  .form-error { margin-top: 24px; padding: 12px 16px; border-left: 3px solid #B42318; background: #FEF3F2; color: #B42318; font-weight: 700; }
  .form-nav { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 36px; }
  .form-nav .btn { margin-left: auto; border: 0; min-height: 56px; font-size: 1.15rem; padding: 14px 32px; }
  .form-nav .btn[disabled] { opacity: .6; cursor: progress; }
  .btn-ghost {
    display: inline-flex; align-items: center; justify-content: center; min-height: 56px; padding: 12px 24px;
    background: var(--white); color: var(--navy); border: 1.5px solid #B8C4CF; border-radius: var(--radius);
    font-family: var(--display); font-weight: 700; font-size: 1rem; text-decoration: none; cursor: pointer;
  }
  .btn-ghost:hover { border-color: var(--navy); }
  .privacy { margin-top: 18px; text-align: center; color: var(--muted); font-size: 0.9rem; }
  .audit-result:focus { outline: none; }
  .audit-result h3 { font-size: 1.6rem; }
  .audit-result p { color: var(--muted); margin-top: 14px; max-width: 60ch; }
  .social-links { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
  .scheduler { margin-top: 28px; min-height: 360px; background: var(--tint); border-radius: var(--radius); overflow: hidden; }
  .booking-alt { margin-top: 12px; font-size: 0.95rem; color: var(--muted); }
  .booking-alt a { color: var(--navy); font-weight: 700; }
  .scheduler iframe { display: block; width: 100%; height: 920px; border: 0; }
  .placeholder {
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
    min-height: 200px; margin-top: 24px; padding: 32px 24px; text-align: center; color: var(--muted);
    border: 2px dashed #B8C4CF; border-radius: var(--radius);
  }
  .scheduler .placeholder { min-height: 360px; margin-top: 0; }
  .placeholder strong { color: var(--navy); font-family: var(--display); font-size: 1.2rem; }

  /* ---------- FAQ ---------- */
  .faq { background: var(--tint); }
  .faq-list, details { border-color: var(--line) !important; }
  .faq-list { margin-top: 40px; border-top: 1px solid var(--line); }
  details { border-bottom: 1px solid var(--line); }
  summary {
    list-style: none; cursor: pointer;
    display: flex; justify-content: space-between; align-items: center; gap: 20px;
    padding: 22px 0; min-height: 44px;
    color: var(--navy); font-family: var(--display); font-weight: 700; font-size: 1.15rem;
  }
  summary::-webkit-details-marker { display: none; }
  summary::after {
    content: ""; flex: none; width: 14px; height: 14px;
    border-right: 2.5px solid var(--blue); border-bottom: 2.5px solid var(--blue);
    transform: rotate(45deg) translateY(-4px); transition: transform .2s ease;
  }
  details[open] summary::after { transform: rotate(-135deg) translateY(-2px); }
  details p { color: var(--muted); padding: 0 40px 24px 0; max-width: 64ch; }

  /* ---------- Closing + footer ---------- */
  .closing { padding: 96px 0; }
  footer { border-top: 1px solid var(--line); padding: 32px 0 48px; color: var(--muted); font-size: 0.92rem; }
  footer .wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }

  /* ---------- One orchestrated moment: headline arrives ---------- */
  @media (prefers-reduced-motion: no-preference) {
    .hero h1, .hero .sub, .film { animation: rise .8s cubic-bezier(.2, .7, .2, 1) both; }
    .hero .sub { animation-delay: .12s; }
    .film { animation-delay: .24s; }
    @keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
  }
  @media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { transition: none !important; }
  }

  /* ---------- Responsive ---------- */
  @media (max-width: 860px) {
    section { padding: 64px 0; }
    .card.featured { grid-template-columns: 1fr; }
    .card.featured img { aspect-ratio: 16 / 9; min-height: 0; }
    .card.featured .card-body { padding: 24px; }
    .how-steps { grid-template-columns: 1fr; gap: 24px; }
    .cards { grid-template-columns: 1fr; }
    .spots-inner { grid-template-columns: 1fr; gap: 36px; }
    .strip { grid-template-columns: 1fr 1fr; grid-template-rows: 220px 150px 150px; }
    .strip img:first-child { grid-column: span 2; grid-row: auto; }
    .hero-cta { padding-bottom: 64px; }
  }
  @media (max-width: 600px) {
    /* tighter hero rhythm on phones, where the headline is small */
    .band { padding-top: 28px; padding-bottom: calc(24px + var(--band-overlap)); }
    .hero .sub { margin-top: 12px; font-size: 1rem; line-height: 1.5; text-wrap: balance; }
    .audit { padding: 24px 18px; margin-left: -4px; margin-right: -4px; }
    .options.cols { grid-template-columns: 1fr; }
    .row-2 { grid-template-columns: 1fr; }
    .form-nav .btn { padding: 14px 22px; }
  }
  @media (max-width: 480px) {
    .brand-name { display: none; }
    .film-frame { border-width: 2px; }
    .btn { padding: 16px 20px; }
    .strip { grid-template-rows: 200px 130px 130px; }
    details p { padding-right: 0; }
  }
