/* Fiberglass Pool Marketing, one page site.
   Plain CSS, no build step. Section order here matches section order in index.html.
   No inline styles anywhere: the CSP in _headers has no 'unsafe-inline' for styles. */

@font-face {
  font-family: "Outfit";
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url("/assets/fonts/outfit-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --ink: #060C19;          /* brand ink, from the logo */
  --ink-2: #0A1426;
  --ink-3: #0F1C31;
  --teal: #58C9D1;         /* brand teal, from the logo */
  --teal-hover: #74D4DA;
  --teal-ink: #127C86;     /* teal dark enough for text on white, 4.9 to 1 */
  --teal-soft: rgba(88, 201, 209, 0.13);
  --seam: rgba(88, 201, 209, 0.16);
  --paper: #F4F7F9;
  --white: #FFFFFF;
  --text: #0B1426;
  --muted: #4A5872;
  --rule: #E1E7EE;
  --field: #C9D3DF;
  --on-dark: #EAF0F6;
  --on-dark-muted: #A9B6C8;
  --danger: #B42318;
  --radius: 18px;
  --head: "Outfit", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --header-h: 64px;
}

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

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

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  margin: 0;
  background: var(--white);
  color: var(--text);
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

h1, h2, h3 {
  margin: 0;
  font-family: var(--head);
  line-height: 1.12;
  letter-spacing: 0;
}

p { margin: 0 0 1em; }

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

:focus-visible {
  outline: 3px solid var(--teal);
  outline-offset: 3px;
  border-radius: 6px;
}

[hidden] { display: none !important; }

.fpm-skip {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: 10px;
  background: var(--teal);
  color: var(--ink);
  font-weight: 600;
  text-decoration: none;
}
.fpm-skip:focus { top: 12px; }

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

.fpm-ico {
  width: 22px;
  height: 22px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ---------- Buttons ---------- */

.fpm-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.fpm-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 54px;
  padding: 0 24px;
  border: 1.5px solid transparent;
  border-radius: 12px;
  font-family: var(--head);
  font-size: 1.0625rem;
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}

.fpm-btn--teal { background: var(--teal); color: var(--ink); }
.fpm-btn--teal:hover { background: var(--teal-hover); }
.fpm-btn--teal[disabled] { opacity: .65; cursor: progress; }

.fpm-btn--ghost { border-color: rgba(234, 240, 246, 0.42); color: var(--white); }
.fpm-btn--ghost:hover { border-color: var(--teal); color: var(--teal); }

.fpm-btn--sm {
  min-height: 42px;
  padding: 0 16px;
  border-radius: 10px;
  font-size: 0.9375rem;
  white-space: nowrap;
}

.fpm-btn--block { width: 100%; }

/* ---------- Shared heads ---------- */

.fpm-eyebrow {
  margin: 0 0 16px;
  font-family: var(--head);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--teal);
}

.fpm-head { max-width: 720px; margin-bottom: 48px; }
.fpm-head--center { margin-left: auto; margin-right: auto; text-align: center; }

.fpm-head h2 {
  font-size: clamp(2rem, 5vw, 2.75rem);
  font-weight: 700;
}

.fpm-head__lead {
  margin: 14px 0 0;
  font-size: 1.1875rem;
  color: var(--muted);
}

.fpm-section { padding: 72px 0; }
.fpm-section--paper { background: var(--paper); }

/* ---------- Header ---------- */

.fpm-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--ink);
  border-bottom: 1px solid var(--seam);
}

.fpm-header__in {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: var(--header-h);
}

.fpm-header__logo { display: block; flex: none; }
.fpm-header__logo img { width: 124px; height: auto; }

/* ---------- 1. Top of page ---------- */

.fpm-hero {
  position: relative;
  overflow: hidden;
  padding: 52px 0 64px;
  background:
    radial-gradient(60% 55% at 88% 15%, rgba(88, 201, 209, 0.17), transparent 70%),
    radial-gradient(55% 60% at 0% 100%, rgba(46, 108, 168, 0.20), transparent 70%),
    var(--ink);
  color: var(--on-dark);
}

.fpm-hero__grid {
  display: grid;
  gap: 44px;
  align-items: center;
}

.fpm-hero h1 {
  font-size: clamp(2.35rem, 8vw, 3.9rem);
  font-weight: 700;
  line-height: 1.05;
  color: var(--white);
}

.fpm-hero h1 span { color: var(--teal); white-space: nowrap; }

.fpm-hero__lead {
  margin: 22px 0 0;
  max-width: 34em;
  font-size: 1.1875rem;
  color: var(--on-dark);
}

.fpm-hero__also {
  margin: 16px 0 0;
  max-width: 36em;
  padding-left: 14px;
  border-left: 2px solid var(--teal);
  color: var(--on-dark-muted);
}

.fpm-hero .fpm-btns { margin-top: 30px; }

/* Browser frame around the client showcase. Decorative. */
.fpm-browser {
  overflow: hidden;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.10);
  background: var(--ink-3);
  box-shadow:
    0 30px 70px -30px rgba(0, 0, 0, 0.75),
    0 0 90px -20px rgba(88, 201, 209, 0.25);
}

.fpm-browser__bar {
  display: flex;
  align-items: center;
  gap: 6px;
  height: 34px;
  padding: 0 12px;
  background: #121E33;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.fpm-browser__dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #34445E;
}

.fpm-browser__url {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-left: 10px;
  padding: 3px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--on-dark-muted);
  font-size: 0.75rem;
  line-height: 1.4;
}
.fpm-browser__url .fpm-ico { width: 12px; height: 12px; }

/* The web address is hidden on purpose: a soft bar where the text would be. */
.fpm-browser__hidden {
  display: inline-block;
  width: 92px;
  height: 7px;
  border-radius: 999px;
  background: rgba(234, 240, 246, 0.38);
  filter: blur(2px);
}

/* Showcase: the active client site scrolls down one screen, then site.js shows the next one.
   Arrows, dots and a swipe pick a site by hand, which stops the automatic switching.
   Without the script, the first site still shows and scrolls once. */
.fpm-show { margin: 0; }

.fpm-show__view {
  position: relative;
  overflow: hidden;
  aspect-ratio: 1440 / 900;
  background: var(--ink-3);
  touch-action: pan-y;
}

.fpm-show__slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity .6s ease, visibility 0s linear .6s;
}

.fpm-show__slide.is-active,
.fpm-show__slide.is-leaving {
  visibility: visible;
  transition: opacity .6s ease;
}
.fpm-show__slide.is-active { opacity: 1; z-index: 1; }

/* Each image is two screens tall, so -50% scrolls exactly one screen. A leaving slide keeps its
   animation but frozen, so it fades out where it was instead of jumping back to the top. */
.fpm-show__slide img { width: 100%; height: auto; }
.fpm-show__slide.is-active img,
.fpm-show__slide.is-leaving img { animation: fpm-show-scroll 6s ease-in-out both; }
.fpm-show__slide.is-leaving img,
.fpm-show.is-paused:not(.is-manual) .fpm-show__slide.is-active img { animation-play-state: paused; }

@keyframes fpm-show-scroll {
  0%, 18% { transform: translateY(0); }
  88%, 100% { transform: translateY(-50%); }
}

.fpm-show__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 16px;
  margin-top: 14px;
}

/* Controls only appear once the script is running, so they never sit there doing nothing. */
.fpm-show__ctrl { display: none; align-items: center; gap: 4px; }
.fpm-show.is-ready .fpm-show__ctrl { display: inline-flex; }

.fpm-show__arrow {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1.5px solid rgba(234, 240, 246, 0.25);
  border-radius: 50%;
  background: transparent;
  color: var(--on-dark);
  cursor: pointer;
  transition: border-color .15s ease, color .15s ease;
}
.fpm-show__arrow:hover { border-color: var(--teal); color: var(--teal); }
.fpm-show__arrow .fpm-ico { width: 18px; height: 18px; stroke-width: 2.2; }

.fpm-show__dots { display: flex; align-items: center; }

.fpm-show__dot {
  display: grid;
  place-items: center;
  width: 30px;
  height: 40px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.fpm-show__dot::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: rgba(234, 240, 246, 0.3);
  transition: width .3s ease, background-color .3s ease;
}
.fpm-show__dot:hover::before { background: rgba(234, 240, 246, 0.6); }
.fpm-show__dot.is-active::before { width: 22px; background: var(--teal); }

.fpm-show__caps { display: grid; }

.fpm-show__cap {
  grid-area: 1 / 1;
  opacity: 0;
  visibility: hidden;
  font-family: var(--head);
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--on-dark-muted);
  transition: opacity .4s ease, visibility 0s linear .4s;
}
.fpm-show__cap.is-active { opacity: 1; visibility: visible; transition: opacity .4s ease; }

@media (prefers-reduced-motion: reduce) {
  .fpm-show__slide, .fpm-show__cap { transition: none; }
  .fpm-show__slide.is-active img, .fpm-show__slide.is-leaving img { animation: none; }
}

/* ---------- 2. How it works ---------- */

.fpm-step {
  display: grid;
  gap: 36px;
  align-items: center;
}

.fpm-step + .fpm-step {
  margin-top: 64px;
  padding-top: 64px;
  border-top: 1px solid var(--rule);
}

.fpm-step__label {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 14px;
  font-family: var(--head);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--teal-ink);
}

.fpm-step__num {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--teal);
  font-size: 1rem;
  letter-spacing: 0;
}

.fpm-step h3 {
  margin-bottom: 16px;
  font-size: clamp(1.6rem, 4.2vw, 2.15rem);
  font-weight: 700;
}

.fpm-step__copy > p { color: var(--muted); }

.fpm-benefits {
  margin: 6px 0 0;
  padding: 0;
  list-style: none;
}

.fpm-benefits li {
  display: flex;
  gap: 12px;
  padding: 9px 0;
}

.fpm-benefits .fpm-ico {
  width: 22px;
  height: 22px;
  margin-top: 2px;
  padding: 3px;
  border-radius: 50%;
  background: var(--teal-soft);
  color: var(--teal-ink);
  stroke-width: 2.6;
}

.fpm-benefits b { font-weight: 600; color: var(--text); }
.fpm-benefits span { color: var(--muted); }

.fpm-example {
  margin: 22px 0 0;
  padding: 16px 18px;
  border-radius: 12px;
  border: 1px solid var(--rule);
  border-left: 4px solid var(--teal);
  background: var(--white);
  color: var(--text);
}

.fpm-example__label {
  display: block;
  margin-bottom: 4px;
  font-family: var(--head);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--teal-ink);
}

.fpm-example a { font-weight: 600; }

.fpm-step__media { display: flex; justify-content: center; }

/* Phone frame around a real screenshot */
.fpm-screen {
  width: min(290px, 78vw);
  overflow: hidden;
  aspect-ratio: 390 / 760;
  border-radius: 34px;
  border: 8px solid #141F33;
  background: var(--ink-3);
  box-shadow: 0 0 0 1px rgba(6, 12, 25, 0.08), 0 30px 60px -28px rgba(6, 12, 25, 0.55);
}

.fpm-screen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
}

/* Phone showing the sample lead alert */
.fpm-phone {
  width: min(290px, 78vw);
  margin: 0;
}

.fpm-phone__body {
  position: relative;
  aspect-ratio: 390 / 760;
  padding: 50px 14px 20px;
  border-radius: 34px;
  border: 8px solid #141F33;
  background:
    radial-gradient(90% 55% at 50% 0%, rgba(88, 201, 209, 0.30), transparent 70%),
    linear-gradient(170deg, #12324A 0%, #0B1A2E 52%, #070F1F 100%);
  box-shadow: 0 0 0 1px rgba(6, 12, 25, 0.08), 0 30px 60px -28px rgba(6, 12, 25, 0.55);
}

.fpm-phone__notch {
  position: absolute;
  top: 10px;
  left: 50%;
  width: 84px;
  height: 22px;
  margin-left: -42px;
  border-radius: 999px;
  background: #050A14;
}

.fpm-phone__time {
  margin: 0 0 20px;
  font-family: var(--head);
  font-size: 3.4rem;
  font-weight: 300;
  line-height: 1;
  text-align: center;
  color: rgba(255, 255, 255, 0.94);
}

.fpm-note {
  margin: 0 0 10px;
  padding: 11px 13px 12px;
  border-radius: 18px;
  background: rgba(234, 240, 246, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.10);
  color: var(--white);
  font-size: 0.8125rem;
  line-height: 1.4;
}

.fpm-note__top {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
  color: var(--on-dark-muted);
  font-size: 0.6875rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.fpm-note__app {
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border-radius: 6px;
  background: var(--teal);
  color: var(--ink);
}
.fpm-note__app .fpm-ico { width: 13px; height: 13px; stroke-width: 2.2; }

.fpm-note__when { margin-left: auto; letter-spacing: 0; text-transform: none; }

.fpm-note__title { display: block; font-weight: 600; }

.fpm-note__lines { margin: 2px 0 0; color: rgba(255, 255, 255, 0.86); }

.fpm-phone__cap {
  margin: 12px 0 0;
  text-align: center;
  font-size: 0.8125rem;
  color: var(--muted);
}

/* ---------- 3. Free design form ---------- */

.fpm-offer {
  padding: 72px 0 80px;
  background:
    radial-gradient(60% 70% at 15% 0%, rgba(88, 201, 209, 0.16), transparent 70%),
    var(--ink);
  border-top: 1px solid var(--seam);
  color: var(--on-dark);
}

.fpm-offer__grid {
  display: grid;
  gap: 32px;
  align-items: center;
}

.fpm-offer h2 {
  font-size: clamp(2rem, 5.4vw, 2.9rem);
  font-weight: 700;
  color: var(--white);
}

.fpm-offer__lead {
  margin: 18px 0 0;
  max-width: 30em;
  font-size: 1.1875rem;
  color: var(--on-dark);
}

.fpm-offer__name {
  margin: 22px 0 0;
  padding-top: 18px;
  border-top: 1px solid var(--seam);
  font-family: var(--head);
  font-weight: 500;
  color: var(--on-dark-muted);
}

.fpm-formcard {
  padding: 26px 22px;
  border-radius: var(--radius);
  background: var(--white);
  color: var(--text);
  box-shadow: 0 30px 70px -30px rgba(0, 0, 0, 0.8);
}

/* Lands below the sticky header, with room to breathe */
.fpm-form { scroll-margin-top: calc(var(--header-h) + 28px); }

.fpm-form__grid {
  display: grid;
  gap: 16px;
}

.fpm-field label {
  display: block;
  margin-bottom: 6px;
  font-weight: 600;
  font-size: 0.9375rem;
}

.fpm-field__opt { font-weight: 400; color: var(--muted); }

.fpm-field input {
  display: block;
  width: 100%;
  height: 52px;
  padding: 0 14px;
  border: 1.5px solid var(--field);
  border-radius: 10px;
  background: var(--white);
  color: var(--text);
  font: inherit;
  font-size: 1.0625rem;   /* 17px, so iPhones do not zoom in on focus */
}

.fpm-field input:focus {
  outline: none;
  border-color: var(--teal-ink);
  box-shadow: 0 0 0 3px rgba(88, 201, 209, 0.35);
}

.fpm-field input[aria-invalid="true"] { border-color: var(--danger); }

/* Honeypot. Off screen for people, still in the form for bots. */
.fpm-hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.fpm-form .fpm-btn--block { margin-top: 22px; min-height: 58px; font-size: 1.125rem; }

.fpm-form__note {
  margin: 12px 0 0;
  text-align: center;
  font-size: 0.875rem;
  color: var(--muted);
}

.fpm-form__status {
  margin: 10px 0 0;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--danger);
}
.fpm-form__status:empty { display: none; }

.fpm-thanks {
  padding: 22px 6px;
  text-align: center;
  font-size: 1.1875rem;
  font-weight: 500;
}
.fpm-thanks:focus { outline: none; }

.fpm-thanks__icon {
  display: inline-grid;
  place-items: center;
  width: 56px;
  height: 56px;
  margin-bottom: 14px;
  border-radius: 50%;
  background: var(--teal-soft);
  color: var(--teal-ink);
}
.fpm-thanks__icon .fpm-ico { width: 28px; height: 28px; stroke-width: 2.4; }
.fpm-thanks p { margin: 0; }

/* ---------- Footer ---------- */

.fpm-footer {
  padding: 36px 0 40px;
  background: var(--ink);
  border-top: 1px solid var(--seam);
  color: var(--on-dark-muted);
  font-size: 0.9375rem;
}

.fpm-footer__in {
  display: grid;
  gap: 18px;
}

.fpm-footer__logo img { width: 140px; height: auto; }

.fpm-footer__line {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
  margin: 0;
}

.fpm-footer a { color: var(--on-dark); }

/* ---------- Simple pages: privacy, thank you, 404 ---------- */

.fpm-page {
  padding: 56px 0 72px;
  background: var(--white);
}

.fpm-page__in { max-width: 720px; }

.fpm-page h1 {
  margin-bottom: 10px;
  font-size: clamp(2rem, 6vw, 2.75rem);
  font-weight: 700;
}

.fpm-page h2 {
  margin: 32px 0 8px;
  font-size: 1.35rem;
  font-weight: 600;
}

.fpm-page__date { color: var(--muted); }

.fpm-404 {
  min-height: calc(100vh - var(--header-h) - 1px);
  min-height: calc(100svh - var(--header-h) - 1px);
  display: grid;
  place-items: center;
  padding: 80px 0;
  background: var(--ink);
  color: var(--on-dark);
  text-align: center;
}

.fpm-404 h1 { font-size: clamp(2rem, 6vw, 3rem); color: var(--white); }
.fpm-404 p { margin: 16px auto 28px; max-width: 30em; color: var(--on-dark-muted); }
.fpm-404 .fpm-btns { justify-content: center; }

/* ---------- Wider screens ---------- */

@media (min-width: 640px) {
  .fpm-form__grid { grid-template-columns: 1fr 1fr; }
  .fpm-field--wide { grid-column: 1 / -1; }
  .fpm-formcard { padding: 34px 32px; }
}

@media (min-width: 720px) {
  .fpm-wrap { padding: 0 32px; }
  .fpm-header__logo img { width: 150px; }
}

@media (min-width: 960px) {
  :root { --header-h: 74px; }
  .fpm-header__logo img { width: 166px; }
  .fpm-section { padding: 104px 0; }
  .fpm-hero { padding: 88px 0 100px; }
  .fpm-hero__grid { grid-template-columns: 1fr 1.05fr; gap: 56px; }
  .fpm-step { grid-template-columns: 1.15fr 0.85fr; gap: 64px; }
  .fpm-step--flip .fpm-step__media { order: -1; }
  .fpm-step + .fpm-step { margin-top: 88px; padding-top: 88px; }
  .fpm-offer { padding: 104px 0; }
  .fpm-offer__grid { grid-template-columns: 0.9fr 1.1fr; gap: 64px; }
  .fpm-footer__in { grid-template-columns: auto 1fr; align-items: center; gap: 40px; }
  .fpm-footer__line { justify-content: flex-end; }
}
