:root {
  --deep: #0c2d57;
  --chlorine: #1ba3dd;
  --shallow: #bfeaf5;
  --concrete: #e4e6e1;
  --grout: #c3c7c0;
  --tile: #f8f9f6;
  --flamingo: #f2547d;
  --ink: #0b1a2c;
  --muted: #475a6b;
  --display: "Unbounded", system-ui, sans-serif;
  --body: "Instrument Sans", system-ui, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font: 400 1.0625rem/1.6 var(--body); color: var(--ink); background: #fff; }
h1, h2, h3 { font-family: var(--display); margin: 0 0 .6em; letter-spacing: -.02em; }
h2 { font-size: clamp(1.5rem, 3.4vw, 2.25rem); font-weight: 700; line-height: 1.15; }
h3 { font-size: 1.05rem; font-weight: 700; line-height: 1.3; }
p { margin: 0 0 1em; }
a { color: var(--deep); }
:focus-visible { outline: 3px solid var(--flamingo); outline-offset: 3px; }
.wrap { width: min(1120px, 100% - 32px); margin-inline: auto; }
.narrow { width: min(720px, 100% - 32px); }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 16px; background: #fff; padding: 8px 12px; z-index: 10; }

/* buttons: pool-float pills */
.btn { display: inline-block; font: 600 1rem var(--body); background: var(--flamingo); color: var(--ink); border: 2px solid var(--flamingo); border-radius: 999px; padding: .75em 1.45em; text-decoration: none; cursor: pointer; }
.btn:hover { background: #e03d68; border-color: #e03d68; }
.btn-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.7); }
.btn-ghost:hover { background: rgba(255,255,255,.14); border-color: #fff; }
.btn-line { background: transparent; color: var(--deep); border-color: var(--deep); }
.btn-line:hover { background: var(--deep); border-color: var(--deep); color: #fff; }
.btn-sm { padding: .45em 1.1em; font-size: .95rem; }

/* depth-marker tile: the one signature */
.tile { display: inline-grid; place-items: center; font: 800 1.05rem/1 var(--display); letter-spacing: .02em; text-transform: uppercase; color: var(--deep); background: var(--tile); border: 3px solid var(--grout); border-radius: 4px; padding: .8em .7em; box-shadow: inset 0 -2px 0 rgba(0,0,0,.05); }

/* deck (header) */
.deck { background: var(--concrete); border-bottom: 6px solid #d5d8d2; }
.deck-in { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 72px; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--deep); text-decoration: none; font: 700 1.05rem var(--display); letter-spacing: -.01em; }
.brand-mark { width: 38px; height: 38px; flex: none; }
.nav { display: flex; align-items: center; gap: 24px; }
.nav a:not(.btn) { color: var(--deep); text-decoration: none; font-weight: 500; }
.nav a:not(.btn):hover { text-decoration: underline; text-underline-offset: 4px; }

/* water (hero) */
.water { position: relative; overflow: hidden; color: #fff; background: linear-gradient(180deg, #1591c9 0%, #127fb6 55%, #0f6aa0 100%); }
.caustics { position: absolute; inset: 0; width: 100%; height: 100%; opacity: .5; }
.water-in { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) 220px; gap: 48px; align-items: center; padding: clamp(56px, 8vw, 104px) 0 clamp(48px, 6vw, 80px); }
.water h1 { font-size: clamp(2.1rem, 5.6vw, 4.3rem); font-weight: 800; line-height: 1.02; letter-spacing: -.035em; max-width: 12ch; margin-bottom: .4em; text-wrap: balance; }
.lede { font-size: 1.2rem; line-height: 1.55; max-width: 34em; color: #eef9fd; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

.thermo { margin: 0; text-align: center; }
.thermo svg { width: 100%; max-width: 200px; height: auto; transform: rotate(6deg); filter: drop-shadow(0 18px 18px rgba(8,40,80,.28)); }
.thermo-col { transform-box: fill-box; transform-origin: 50% 100%; transform: scaleY(1); transition: transform 2.6s cubic-bezier(.25,.7,.2,1); }
.thermo.cold .thermo-col { transform: scaleY(.47); transition: none; }
.thermo figcaption { margin-top: 10px; font-weight: 600; color: #eef9fd; font-variant-numeric: tabular-nums; }

/* coping with depth markers */
.coping { background:
    radial-gradient(circle at 20% 30%, rgba(0,0,0,.04) 1px, transparent 1.5px) 0 0/9px 11px,
    radial-gradient(circle at 70% 60%, rgba(255,255,255,.5) 1px, transparent 1.5px) 0 0/13px 7px,
    var(--concrete);
  border-top: 10px solid #f1f2ee; box-shadow: inset 0 10px 10px -8px rgba(0,0,0,.18); padding: 22px 0; }
.coping-in { display: flex; justify-content: space-between; }

/* how it works: steps along a lane line */
.how { padding: 88px 0 96px; background:
    linear-gradient(90deg, rgba(12,45,87,.06) 1px, transparent 1px) 0 0/28px 28px,
    linear-gradient(0deg, rgba(12,45,87,.06) 1px, transparent 1px) 0 0/28px 28px,
    #eaf7fb; }
.lane-steps { list-style: none; padding: 0; margin: 44px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 36px; position: relative; counter-reset: step; }
.lane-steps::before { content: ""; position: absolute; left: 0; right: 10%; top: 22px; height: 12px; background: var(--deep); border-radius: 2px; }
.lane-steps::after { content: ""; position: absolute; right: 10%; top: 4px; width: 12px; height: 48px; background: var(--deep); border-radius: 2px; }
.lane-steps li { position: relative; padding-top: 76px; counter-increment: step; }
.lane-steps li::before { content: counter(step); position: absolute; top: 6px; left: 0; width: 44px; height: 44px; display: grid; place-items: center; background: var(--flamingo); color: var(--ink); font: 800 1.05rem var(--display); border-radius: 50%; border: 4px solid #eaf7fb; }
.lane-steps p { color: var(--muted); max-width: 30ch; }

/* lineup: lanes split by rope floats */
.lineup { padding: 96px 0; }
.sub { color: var(--muted); max-width: 44em; }
.lanes { margin-top: 36px; }
.lane { display: grid; grid-template-columns: 200px minmax(0, 1fr) auto; gap: 32px; align-items: center; padding: 34px 0; }
.lane + .lane { position: relative; }
.lane + .lane::before { content: ""; position: absolute; left: 0; right: 0; top: -7px; height: 14px; background:
    radial-gradient(circle at 7px 7px, var(--flamingo) 6px, transparent 6.5px) 0 0/28px 14px,
    radial-gradient(circle at 7px 7px, var(--chlorine) 6px, transparent 6.5px) 14px 0/28px 14px,
    linear-gradient(transparent 6px, #9aa7b0 6px 8px, transparent 8px); }
.lane h3 { font-size: 1.6rem; font-weight: 800; color: var(--deep); margin: 0; }
.lane-for { margin: 0 0 .4em; font-weight: 500; }
.lane ul { margin: 0; padding: 0; list-style: none; color: var(--muted); display: flex; flex-wrap: wrap; gap: 4px 22px; }
.lane li::before { content: "~ "; color: var(--chlorine); font-weight: 700; }

/* sizing */
.sizing { padding: 96px 0; background:
    radial-gradient(circle at 20% 30%, rgba(0,0,0,.04) 1px, transparent 1.5px) 0 0/9px 11px,
    var(--concrete); }
.sizing-in { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
.sizing-copy p { color: var(--muted); max-width: 36em; }
.calc, .qform { background: #fff; border-radius: 10px; padding: 28px; display: grid; gap: 18px; }
.calc { box-shadow: 0 1px 0 var(--grout); }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
label { display: grid; gap: 6px; font-weight: 600; font-size: .95rem; }
label i { font-weight: 400; color: var(--muted); font-style: normal; }
input, select, textarea { font: inherit; font-weight: 400; padding: .65em .8em; border: 1.5px solid #cdd3d6; border-radius: 6px; background: #fff; color: var(--ink); width: 100%; }
input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid var(--chlorine); outline-offset: 0; border-color: var(--chlorine); }
.range { display: flex; align-items: center; gap: 14px; }
input[type=range] { padding: 0; border: 0; accent-color: var(--flamingo); flex: 1; }
output { font-weight: 600; color: var(--deep); min-width: 3.5ch; font-variant-numeric: tabular-nums; }
.result { border-top: 2px dashed #d5d8d2; padding-top: 18px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; }
.result p { margin: 0; color: var(--muted); }
.tile-lg { font-size: 1.35rem; padding: .7em .9em; margin: 0 !important; color: var(--deep) !important; }

/* faq */
.faq { padding: 96px 0; }
details { border-bottom: 1.5px solid #dfe5e8; padding: 20px 0; }
summary { font: 700 1.05rem/1.35 var(--display); color: var(--deep); cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; color: var(--flamingo); font-size: 1.4rem; line-height: 1; }
details[open] summary::after { content: "–"; }
details p { margin: 12px 0 0; color: var(--muted); max-width: 62ch; }

/* quote: the deep end */
.quote { padding: 96px 0; background: var(--deep); color: #fff; }
.quote-in { display: grid; grid-template-columns: 1fr 1.3fr; gap: 56px; align-items: start; }
.quote-copy p { color: #cfe3f2; font-size: 1.1rem; max-width: 26em; }
.qform { color: var(--ink); }
.hp { position: absolute; left: -9999px; }
.form-msg { margin: 0; font-weight: 600; min-height: 1.5em; }
.form-msg.ok { color: #137a4b; }
.form-msg.err { color: #c02650; }

.foot { background: var(--concrete); color: var(--muted); padding: 28px 0; font-size: .92rem; border-top: 6px solid #d5d8d2; }
.foot-in { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.foot p { margin: 0; }
.foot p:first-child { font: 700 .95rem var(--display); color: var(--deep); }

.notfound { min-height: 70vh; display: grid; place-content: center; text-align: center; padding: 60px 16px; }
.notfound h1 { font-size: clamp(1.6rem, 4vw, 2.4rem); color: var(--deep); }

@media (max-width: 900px) {
  .water-in { grid-template-columns: minmax(0, 1fr) 130px; gap: 24px; }
  .sizing-in, .quote-in { grid-template-columns: 1fr; gap: 32px; }
  .lane { grid-template-columns: 1fr; gap: 12px; }
  .lane .btn { justify-self: start; }
  .lane-steps { grid-template-columns: 1fr; gap: 28px; }
  .lane-steps::before { left: 16px; right: auto; top: 0; bottom: 0; width: 12px; height: auto; }
  .lane-steps::after { display: none; }
  .lane-steps li { padding: 4px 0 0 76px; }
  .lane-steps li::before { top: 0; left: 0; }
  .coping-in .tile:nth-child(n+3) { display: none; }
}
@media (max-width: 600px) {
  .nav a:not(.btn) { display: none; }
  .brand span { font-size: .9rem; }
  .water-in { grid-template-columns: 1fr; }
  .thermo { display: none; }
  .row { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .thermo-col { transition: none; }
}
