:root {
  color-scheme: light;
  --night: #07191f;
  --deep: #0c252d;
  --ink: #101f24;
  --paper: #f6f5ef;
  --line: #d4dcd8;
  --muted: #495d61;
  --mist: #bcd0cf;
  --mint: #a9f1df;
  --white: #f9fcfa;
  --wrap: 1180px;
  font-family: 'Segoe UI', system-ui, sans-serif;
  font-synthesis: none;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-padding-top: 92px; }
body { margin: 0; background: var(--night); color: var(--white); }
h1, h2, h3, p { margin: 0; }
a { color: inherit; }
img, video { max-width: 100%; display: block; }
button, a { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid #159f93; outline-offset: 5px; }
[hidden] { display: none !important; }
.wrap { width: min(var(--wrap), calc(100% - 80px)); margin-inline: auto; }
.skip { position: fixed; z-index: 10; top: 10px; left: 10px; padding: 12px 18px; background: var(--mint); color: var(--night); transform: translateY(-150%); }
.skip:focus { transform: translateY(0); }

.site-header { position: sticky; z-index: 5; top: 0; background: #07191ffa; border-bottom: 1px solid #b8d9d323; }
.header-inner { min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.brand { display: inline-flex; flex: none; align-items: center; gap: 10px; text-decoration: none; font-size: 1.5rem; font-weight: 650; letter-spacing: -.04em; }
.brand img { object-fit: contain; }
.header-inner nav, .footer-inner nav { display: flex; align-items: center; gap: 32px; }
.header-inner nav a:not(.button), .footer-inner nav a { text-decoration: none; color: var(--mist); font-size: .94rem; }
.header-inner nav a:hover, .footer-inner nav a:hover, .header-inner nav a[aria-current] { color: var(--white); }
.menu-toggle { display: none; }

.button { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 12px 20px; border: 1px solid transparent; border-radius: 7px; text-decoration: none; text-align: center; font-weight: 650; font-size: .94rem; line-height: 1.25; transition: background .16s ease, color .16s ease, border-color .16s ease; }
.header-inner .button { min-height: 42px; padding: 9px 16px; }
.button-primary { background: var(--mint); color: var(--night); }
.button-primary:hover { background: #d1fff1; }
.button { gap: 12px; }
.button span[aria-hidden] { font-size: 1.25em; line-height: 1; }
.button-outline { border-color: #bad3d57a; background: #07191f52; color: var(--white); }
.button-outline:hover { border-color: var(--mint); color: var(--mint); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.text-link { display: inline-block; color: #126b65; text-underline-offset: 4px; font-weight: 650; }
.text-link:hover { color: var(--ink); }

.eyebrow { display: flex; align-items: center; gap: 11px; color: var(--mint); font-size: .875rem; line-height: 1.35; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.eyebrow > span { flex: 0 0 21px; height: 1px; background: currentColor; }
h1, h2 { font-weight: 615; letter-spacing: -.055em; line-height: 1.06; text-wrap: balance; }
h1 { font-size: clamp(3.2rem, 6.3vw, 6.1rem); }
h2 { font-size: clamp(2.2rem, 4.2vw, 4rem); }
h3 { font-size: 1.35rem; line-height: 1.2; letter-spacing: -.024em; }

.hero { position: relative; isolation: isolate; display: grid; align-items: center; min-height: min(695px, max(590px, calc(100svh - 76px))); background: var(--night); }
.hero-media, .hero-media::after { position: absolute; z-index: -1; inset: 0; }
.hero-media { background: #0a252d url('/assets/pool-hero.jpg') center 53% / cover no-repeat; }
.hero-media::after { content: ''; background: linear-gradient(94deg, #051419fa 0%, #06171edd 31%, #0a252d60 59%, transparent 88%); }
.hero-content { padding-block: 78px 94px; }
.hero h1 { max-width: 900px; margin-block: 23px; }
.hero h1 em { color: #b3efdf; font-style: normal; }
.hero-content > p:not(.eyebrow), .sub-hero p:not(.eyebrow) { max-width: 515px; font-size: clamp(1.07rem, 2vw, 1.24rem); line-height: 1.6; color: #d5e6e4; }
.hero .actions { margin-top: 30px; }

.section { padding-block: clamp(64px, 8vw, 112px); }
.section-light { color: var(--ink); background: var(--paper); }
.section-light .eyebrow { color: #226a63; }
.section .eyebrow { margin-bottom: 15px; }
.section-heading { margin-bottom: 38px; }
.split-heading { display: grid; grid-template-columns: 1.15fr .85fr; align-items: end; gap: 48px; }
.split-heading > p { max-width: 460px; font-size: 1.12rem; line-height: 1.65; color: var(--muted); }
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.feature { min-width: 0; padding: 28px clamp(15px, 2.5vw, 36px) 29px; }
.feature + .feature { border-left: 1px solid var(--line); }
.feature:first-child { padding-left: 0; }
.feature h3 { margin: 16px 0 8px; }
.feature p, .walk-copy p, .access-steps p { color: var(--muted); line-height: 1.62; }
.feature-icon { position: relative; display: block; width: 37px; height: 32px; border: 2px solid #397d73; border-radius: 4px; }
.feature-icon::before, .feature-icon::after { position: absolute; content: ''; }
.plan-icon::before { inset: 6px 7px; border: 1px solid #397d73; border-radius: 2px; }
.plan-icon::after { width: 5px; height: 11px; top: 9px; left: 10px; border-right: 1px solid #397d73; }
.measure-icon { height: 22px; margin-bottom: 10px; }
.measure-icon::before { inset: 0 3px; background: repeating-linear-gradient(90deg, #397d73 0 1px, transparent 1px 5px) 0 0 / 100% 8px no-repeat; }
.bid-icon::before { inset: 5px 6px; background: repeating-linear-gradient(0deg, transparent 0 5px, #397d73 5px 6px); }

.example-section { background: linear-gradient(120deg, #0d2930, #081b22 78%); }
.example-layout, .learning-layout { display: grid; grid-template-columns: .82fr 1.18fr; align-items: center; gap: clamp(36px, 7vw, 100px); }
.example-copy > p:not(.eyebrow), .learning-layout p:not(.eyebrow) { color: var(--mist); font-size: 1.08rem; line-height: 1.65; margin-block: 20px 25px; }
.plan-panel { min-width: 0; color: #d6e7e6; overflow: hidden; background: #0c262e; border: 1px solid #497578; border-radius: 10px; }
.plan-top, .plan-bottom, .worksheet-heading { display: flex; justify-content: space-between; gap: 14px; padding: 13px 18px; align-items: center; font-size: .875rem; }
.plan-top { border-bottom: 1px solid #496d72; }
.plan-top span:first-child { color: #eefaf6; font-weight: 650; }
.plan-bottom { border-top: 1px solid #496d72; flex-wrap: wrap; }
.plan-bottom strong { margin-right: 2px; color: var(--mint); }
.plan-grid { display: grid; place-items: center; min-height: 280px; padding: 42px 42px 32px 54px; background: #0a2029; background-image: linear-gradient(#4f899532 1px, transparent 1px), linear-gradient(90deg, #4f899532 1px, transparent 1px); background-size: 20px 20px; }
.drawing { position: relative; width: min(100%, 360px); aspect-ratio: 2 / 1; }
.drawing-board { position: relative; width: min(100%, 400px); aspect-ratio: 2 / 1; }
.drawing-board .drawing { position: absolute; inset: 0; margin: auto; width: 80%; height: 80%; aspect-ratio: auto; }
.pool-shape { position: absolute; inset: 0; display: grid; place-items: center; border: 2px solid #95efe2; background: #2b918d52; box-shadow: 0 0 0 5px #69bdc82b, inset 0 0 30px #69bdc836; color: #c8f7ee; text-transform: uppercase; font-size: .79rem; letter-spacing: .08em; text-align: center; }
.pool-steps { position: absolute; inset: 12% auto 12% 0; width: 17%; background: repeating-linear-gradient(90deg, #b3eeeb29 0 calc(33.3% - 1px), #8cded4 calc(33.3% - 1px) 33.3%); border-block: 1px solid #8cded4; }
.dimension { position: absolute; text-align: center; font: .875rem/1 'Consolas', monospace; color: #b8e3e0; white-space: nowrap; }
.dimension-x { inset: auto 0 calc(100% + 9px); border-bottom: 1px solid #86bdbd; padding-bottom: 4px; }
.dimension-y { inset: 0 calc(100% + 9px) 0 auto; border-right: 1px solid #86bdbd; display: grid; place-items: center; writing-mode: vertical-rl; transform: rotate(180deg); border-right: 0; border-left: 1px solid #86bdbd; padding-left: 4px; }

.faq-layout { display: grid; grid-template-columns: .75fr 1.25fr; gap: clamp(30px, 7vw, 96px); }
.faq-list details { border-block-start: 1px solid var(--line); }
.faq-list details:last-child { border-block-end: 1px solid var(--line); }
.faq-list summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 18px; min-height: 62px; cursor: pointer; list-style: none; font-weight: 650; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: '+'; font-size: 1.3rem; color: #226a63; }
.faq-list details[open] summary::after { content: '−'; }
.faq-list details p { color: var(--muted); line-height: 1.6; padding-bottom: 18px; max-width: 570px; }
.faq-list p a { color: #126b65; text-underline-offset: 3px; }
.cta-strip { background: #133b40; }
.cta-inner { min-height: 172px; display: flex; align-items: center; justify-content: space-between; padding-block: 28px; gap: 22px; }
.cta-inner h2 { font-size: clamp(1.9rem, 3.8vw, 3rem); }
.cta-inner p { color: var(--mist); margin-top: 9px; }
.site-footer { border-top: 1px solid #99c1c132; }
.footer-inner { min-height: 102px; display: flex; align-items: center; justify-content: space-between; gap: 22px; }
.footer-inner .brand { font-size: 1.3rem; }
.footer-inner p { color: var(--mist); font-size: .91rem; }
.footer-inner nav { gap: 25px; flex-wrap: wrap; }

.sub-hero { padding-block: clamp(66px, 9vw, 115px); background: radial-gradient(ellipse at 85% 16%, #1b5054, transparent 58%), linear-gradient(120deg, #0a1b24, #0b292d); }
.sub-hero h1 { margin-block: 19px; font-size: clamp(2.9rem, 5.9vw, 5.2rem); }
.sub-hero .button { margin-top: 24px; }
.walk-section { padding-block: clamp(40px, 5vw, 68px); }
.walk-section h1 { font-size: clamp(2.2rem, 4.45vw, 4.25rem); }
.walk-section .section-heading { margin-bottom: 26px; }
.walkthrough { overflow: hidden; border: 1px solid #c5d4d1; border-radius: 10px; background: #fbfbf8; }
.walk-tabs { display: flex; align-items: stretch; gap: 4px; padding-inline: clamp(10px, 3vw, 27px); background: #e9efeb; border-bottom: 1px solid var(--line); }
.walk-tabs a { display: flex; align-items: center; justify-content: center; min-height: 55px; padding: 11px 15px; text-decoration: none; color: var(--muted); font-weight: 650; border-bottom: 3px solid transparent; }
.walk-tabs a:hover, .walk-tabs a[aria-selected='true'] { color: #0e5d56; border-bottom-color: #2a8f81; }
.walk-tabs a:focus-visible, .walk-panel:focus-visible { outline-offset: -4px; }
.walk-panel { display: grid; min-height: 416px; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); grid-template-areas: "copy result" "action result"; align-items: center; gap: 19px clamp(22px, 5vw, 64px); padding: clamp(16px, 3vw, 32px); scroll-margin-top: 60px; font-variant-numeric: tabular-nums; }
.walk-panel + .walk-panel { border-top: 1px solid var(--line); }
.walk-copy { grid-area: copy; align-self: end; }
.walk-copy h2 { font-size: 1.6rem; letter-spacing: -.03em; margin-bottom: 10px; }
.walk-panel .plan-panel, .walk-panel .worksheet { grid-area: result; }
.walk-copy p + p { margin-top: 11px; }
.sample-step { grid-area: action; align-self: start; justify-self: start; background: #14564f; color: var(--white); }
.sample-step:hover { background: #0e3937; }
.sample-controls { display: none; }
.js .sample-controls { display: grid; gap: 6px; margin-top: 16px; }
.sample-field { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 2px 10px; }
.sample-field b { color: #126b65; }
.sample-field input { grid-column: 1 / -1; width: 100%; min-height: 30px; margin: 0; accent-color: #14756a; cursor: pointer; }
.walk-panel .plan-grid { min-height: 236px; }
.worksheet { overflow: auto; border: 1px solid #c6d7d3; border-radius: 8px; background: #fff; }
.worksheet-heading { color: #ecf7f2; background: #173b40; }
.worksheet-heading span:first-child { font-weight: 650; }
.worksheet table { width: 100%; border-collapse: collapse; font-size: .9rem; line-height: 1.35; }
.worksheet th, .worksheet td { text-align: left; padding: 12px; border-top: 1px solid #dfe8e4; }
.worksheet thead { background: #edf4ef; }
.worksheet tbody th { font-weight: 600; }
.worksheet tfoot { background: #dcf4eb; color: #0e4f48; font-weight: 700; }
.worksheet tr > :last-child { text-align: right; }
.worksheet p { color: var(--muted); border-top: 1px solid #dfe8e4; font-size: .9rem; line-height: 1.5; padding: 14px 12px; }
.learning-section { background: #0d2a31; }
.learning-layout { grid-template-columns: 1.12fr .88fr; }
.learning-layout figure { margin: 0; min-width: 0; }
.learning-layout figcaption { font-size: .875rem; color: var(--mist); margin-top: 10px; }
.learning-layout video { width: 100%; height: auto; aspect-ratio: 16 / 9; background: #07191f; border: 1px solid #4c7276; border-radius: 10px; }
.access-steps article { padding: 20px 0; border-top: 1px solid var(--line); }
.access-steps article:last-child { border-bottom: 1px solid var(--line); }
.access-steps h3 { margin-bottom: 8px; }
.access-steps .text-link { margin-top: 8px; }
.access-steps code { background: #e5ece6; border-radius: 3px; padding: 1px 5px; }

@media (max-width: 850px) {
  .wrap { width: calc(100% - 48px); }
  .header-inner nav { gap: 16px; }
  .hero-media { background-position: 57% 50%; }
  .split-heading { gap: 24px; }
  .example-layout, .learning-layout { gap: 28px; }
  .walk-panel { min-height: 0; grid-template-columns: minmax(0, 1fr); grid-template-areas: "copy" "result" "action"; }
  .js .sample-controls { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 22px; }
  .sample-field { grid-template-columns: 1fr; align-items: end; }
}

@media (max-width: 720px) {
  html:not(.js) .site-header { position: relative; }
  .wrap { width: calc(100% - 36px); }
  .header-inner { min-height: 65px; flex-wrap: wrap; gap: 0; }
  .header-inner nav { width: 100%; padding-block: 6px 14px; flex-wrap: wrap; gap: 14px; }
  .js .menu-toggle { display: inline-flex; align-items: center; gap: 8px; border: 1px solid #719195; border-radius: 5px; background: transparent; padding: 9px 12px; color: var(--white); font: inherit; font-size: .9rem; cursor: pointer; }
  .menu-toggle span { width: 12px; height: 8px; border-block: 1px solid currentColor; }
  .js .header-inner nav { display: none; }
  .js .header-inner nav[data-open] { display: flex; }
  .hero { min-height: 0; }
  .hero-media { top: auto; height: clamp(244px, 68vw, 360px); background-position: 77% center; }
  .hero-media::after { background: linear-gradient(180deg, var(--night), #07191f55 44%, transparent 72%); }
  .hero-content { padding-block: 44px clamp(190px, 48vw, 269px); }
  .hero h1 { font-size: clamp(2.4rem, 12vw, 4.4rem); }
  .hero .actions { margin-top: 20px; }
  .hero .button { padding-inline: 14px; }
  .split-heading, .example-layout, .learning-layout, .faq-layout, .feature-grid { grid-template-columns: 1fr; }
  .feature { padding-inline: 0; }
  .feature + .feature { border-left: 0; border-top: 1px solid var(--line); }
  .plan-grid { min-height: 212px; padding: 36px 22px 28px 39px; }
  .walk-panel .plan-grid { min-height: 184px; }
  .plan-bottom { justify-content: flex-start; }
  .plan-top, .plan-bottom, .worksheet-heading { padding-inline: 12px; }
  .walk-tabs a { padding-inline: 11px; font-size: .9rem; }
  .worksheet th, .worksheet td { padding: 9px 7px; }
  .cta-inner, .footer-inner { align-items: flex-start; flex-direction: column; justify-content: center; padding-block: 24px; gap: 14px; }
  .footer-inner nav { gap: 17px; }
  .learning-layout figure { order: 2; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; }
}
