/* =========================================================================
   Countertop RO landing page
   Palette: deep navy -> blue -> teal (clean-water associations)
   No frameworks, no build step, no webfonts (system stack keeps LCP fast).
   ========================================================================= */

:root {
  --ink:        #0a2a3b;
  --ink-2:      #2f5468;
  --muted:      #5c7f91;
  --brand:      #0d7ea6;
  --brand-dark: #085b7a;
  --deep:       #072d40;
  --deep-2:     #0b3d54;
  --accent:     #14b8bd;
  --accent-soft:#dcf2f5;
  --bg:         #ffffff;
  --bg-soft:    #f1f8fb;
  --line:       #dbe9ef;
  --line-soft:  #eaf3f7;
  --ph-bg:      #fff3cf;
  --ph-ink:     #7a5a05;
  --radius:     14px;
  --radius-lg:  22px;
  --shadow:     0 1px 2px rgba(7, 45, 64, .05), 0 8px 24px rgba(7, 45, 64, .06);
  --shadow-lg:  0 2px 4px rgba(7, 45, 64, .06), 0 18px 48px rgba(7, 45, 64, .12);
  --maxw:       1140px;
  --maxw-narrow: 760px;
}

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

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

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink-2);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

@media (min-width: 768px) { body { font-size: 1.125rem; } }

h1, h2, h3 { color: var(--ink); line-height: 1.18; margin: 0 0 .5em; letter-spacing: -.02em; font-weight: 700; }
h1 { font-size: clamp(2rem, 5.2vw, 3.4rem); letter-spacing: -.03em; }
h2 { font-size: clamp(1.6rem, 3.6vw, 2.4rem); }
h3 { font-size: clamp(1.1rem, 2vw, 1.28rem); }
p  { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }

a { color: var(--brand-dark); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--brand); }

img, svg { max-width: 100%; }

::selection { background: var(--accent-soft); color: var(--ink); }

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
  border-radius: 4px;
}

.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: 20px; }
.container-narrow { max-width: var(--maxw-narrow); }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--deep); color: #fff; padding: 12px 18px; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; color: #fff; }

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

/* --- placeholder markers ------------------------------------------------ */
mark.ph, .ph-inline {
  background: var(--ph-bg);
  color: var(--ph-ink);
  padding: .05em .35em;
  border-radius: 4px;
  font-size: .92em;
  font-weight: 600;
  white-space: normal;
}
.placeholder-banner {
  background: var(--ph-bg);
  color: var(--ph-ink);
  border: 1px dashed #d9b447;
  border-radius: var(--radius);
  padding: 14px 18px;
  font-weight: 600;
  font-size: .95rem;
  margin: 0 0 40px;
}

/* --- buttons ------------------------------------------------------------ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  background: var(--brand);
  color: #fff;
  font: inherit; font-weight: 700;
  text-decoration: none;
  border: 0; border-radius: 10px;
  padding: 14px 26px;
  min-height: 48px;
  cursor: pointer;
  transition: background-color .15s ease, transform .1s ease;
}
.btn:hover { background: var(--brand-dark); color: #fff; }
.btn:active { transform: translateY(1px); }
.btn-lg { padding: 18px 36px; min-height: 60px; font-size: 1.08rem; border-radius: 12px; }
.btn-sm { padding: 10px 18px; min-height: 42px; font-size: .95rem; }
.btn-block { width: 100%; }

.btn-link {
  display: inline-flex; align-items: center;
  font-weight: 600; color: var(--brand-dark); text-decoration: none;
  min-height: 48px;
}
.btn-link:hover { text-decoration: underline; }

/* --- header ------------------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--line-soft);
}
.header-inner {
  display: flex; align-items: center; gap: 16px;
  min-height: 68px;
}
.brand {
  display: inline-flex; align-items: center; gap: 9px;
  color: var(--ink); font-weight: 800; letter-spacing: -.02em;
  text-decoration: none; font-size: 1.05rem;
  margin-right: auto;
}
.brand-mark { width: 26px; height: 26px; flex: none; fill: none; stroke: var(--brand); stroke-width: 1.7; }
.site-nav { display: none; gap: 26px; }
.site-nav a { color: var(--ink-2); text-decoration: none; font-weight: 600; font-size: .98rem; }
.site-nav a:hover { color: var(--brand); }
@media (min-width: 900px) {
  .site-nav { display: flex; margin-right: 8px; }
}

/* --- hero --------------------------------------------------------------- */
.hero {
  background:
    radial-gradient(900px 420px at 12% -10%, #e4f4f8 0%, rgba(228, 244, 248, 0) 65%),
    linear-gradient(180deg, var(--bg-soft) 0%, #ffffff 100%);
  padding: clamp(44px, 7vw, 88px) 0 clamp(40px, 6vw, 72px);
}
.hero-grid { display: grid; gap: clamp(32px, 5vw, 56px); align-items: center; }
@media (min-width: 900px) {
  .hero-grid { grid-template-columns: 1.05fr .95fr; }
}

.eyebrow {
  text-transform: uppercase; letter-spacing: .1em; font-size: .78rem; font-weight: 700;
  color: var(--brand); margin: 0 0 14px;
}
.hero h1 { margin-bottom: .45em; }
.lede { font-size: clamp(1.06rem, 1.9vw, 1.25rem); color: var(--ink-2); max-width: 34em; }

.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 26px; margin: 30px 0 26px; }

.hero-points { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.hero-points li {
  position: relative; padding-left: 30px; color: var(--ink-2); font-size: 1rem;
}
.hero-points li::before {
  content: ""; position: absolute; left: 0; top: .42em;
  width: 18px; height: 18px; border-radius: 50%;
  background: var(--accent-soft);
  box-shadow: inset 0 0 0 1.5px var(--accent);
}
.hero-points li::after {
  content: ""; position: absolute; left: 5px; top: .75em;
  width: 8px; height: 4px;
  border-left: 2px solid var(--brand-dark); border-bottom: 2px solid var(--brand-dark);
  transform: rotate(-45deg);
}

/* product image placeholder (swap for a real <img>) */
.img-placeholder {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 8px; text-align: center; padding: 24px;
  background: repeating-linear-gradient(45deg, #f6fbfd, #f6fbfd 12px, #eef7fa 12px, #eef7fa 24px);
  border: 2px dashed #b9d8e3;
  border-radius: var(--radius-lg);
  color: var(--muted);
}
.ratio-1x1 { aspect-ratio: 1 / 1; }
.ph-tag { font-weight: 700; color: var(--ink-2); font-size: 1.05rem; }
.ph-note { font-size: .9rem; }
.hero-media img { border-radius: var(--radius-lg); display: block; }

/* --- trust strip -------------------------------------------------------- */
.trust-strip { background: var(--deep); color: #cfe6ee; padding: 22px 0; }
.trust-row { display: grid; gap: 18px; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 860px) { .trust-row { grid-template-columns: repeat(4, 1fr); } }
.trust-item { display: flex; flex-direction: column; line-height: 1.35; }
.trust-item strong { color: #fff; font-size: 1rem; }
.trust-item span { font-size: .88rem; color: #9dc4d3; }

/* --- sections ----------------------------------------------------------- */
.section { padding: clamp(56px, 8vw, 104px) 0; }
.section-alt { background: var(--bg-soft); }
.section-head { max-width: 46em; margin: 0 0 clamp(32px, 4vw, 52px); }
.section-sub { font-size: clamp(1rem, 1.6vw, 1.15rem); color: var(--ink-2); margin: 0; }
.section-note {
  margin: clamp(28px, 4vw, 44px) auto 0;
  max-width: 52em;
  font-size: .97rem;
  color: var(--muted);
}
.callout-note {
  background: #fff;
  border: 1px solid var(--line);
  border-left: 4px solid var(--accent);
  border-radius: var(--radius);
  padding: 18px 22px;
  color: var(--ink-2);
}

/* --- cards -------------------------------------------------------------- */
.cards { display: grid; gap: 20px; }
@media (min-width: 640px) { .cards-3, .cards-4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) {
  .cards-3 { grid-template-columns: repeat(3, 1fr); }
  .cards-4 { grid-template-columns: repeat(4, 1fr); }
}
.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 26px 24px;
  box-shadow: var(--shadow);
}
.card h3 { margin-bottom: .4em; }
.card p { font-size: .99rem; margin: 0; }
.card-icon {
  width: 44px; height: 44px; border-radius: 12px;
  background: var(--accent-soft);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px;
}
.card-icon svg {
  width: 24px; height: 24px;
  fill: none; stroke: var(--brand-dark); stroke-width: 1.8;
  stroke-linecap: round; stroke-linejoin: round;
}
.benefits { margin-top: clamp(36px, 5vw, 56px); }

/* --- steps -------------------------------------------------------------- */
.steps {
  list-style: none; margin: 0 0 8px; padding: 0;
  display: grid; gap: 22px; counter-reset: step;
}
@media (min-width: 900px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.step {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 26px 24px;
  box-shadow: var(--shadow);
}
.step-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; border-radius: 50%;
  background: var(--deep-2); color: #fff; font-weight: 700;
  margin-bottom: 16px;
}
.step h3 { margin-bottom: .4em; }
.step p { font-size: .99rem; margin: 0; }

/* --- comparison table --------------------------------------------------- */
.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: #fff;
  box-shadow: var(--shadow);
  -webkit-overflow-scrolling: touch;
}
.compare { width: 100%; min-width: 720px; border-collapse: collapse; font-size: .97rem; }
.compare th, .compare td {
  text-align: left; vertical-align: top;
  padding: 16px 18px;
  border-bottom: 1px solid var(--line-soft);
}
.compare thead th, .compare thead .corner {
  background: #fff;
  color: var(--ink); font-size: 1rem; font-weight: 700;
  border-bottom: 2px solid var(--line);
  padding-top: 22px; padding-bottom: 18px;
}
/* row labels stay visible while the table scrolls sideways on small screens */
.compare tbody th[scope="row"], .compare thead .corner {
  position: sticky; left: 0; z-index: 1;
  color: var(--ink); font-weight: 700; width: 22%;
  background: #fbfdfe;
  box-shadow: 1px 0 0 var(--line-soft);
}
.compare thead .corner { background: #fff; }
.compare tbody tr:last-child th, .compare tbody tr:last-child td { border-bottom: 0; }
.col-highlight { background: #f0fafb; }
.compare thead .col-highlight { background: #e8f7f8; border-bottom-color: var(--accent); }
.col-badge {
  display: block; text-transform: uppercase; letter-spacing: .08em;
  font-size: .68rem; color: var(--brand-dark); margin-bottom: 4px;
}
.scroll-hint {
  display: block; margin: 0 0 10px;
  font-size: .86rem; color: var(--muted);
}
@media (min-width: 800px) { .scroll-hint { display: none; } }
.table-note { margin: 18px 0 0; font-size: .93rem; color: var(--muted); max-width: 58em; }

/* --- reviews ------------------------------------------------------------ */
.rating { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 14px; }
.stars { display: inline-flex; gap: 2px; }
.stars svg { width: 22px; height: 22px; fill: #f5b625; }
.rating-text { color: var(--ink-2); font-weight: 600; font-size: .97rem; }
.review-text { font-size: 1rem; color: var(--ink-2); }
.review-meta { display: flex; flex-direction: column; margin-top: 16px; font-size: .9rem; color: var(--muted); }
.review-meta strong { color: var(--ink); font-size: .97rem; }
.review.is-placeholder { border-style: dashed; border-color: #c9dde6; background: #fcfeff; }

/* --- FAQ ---------------------------------------------------------------- */
.faq { display: grid; gap: 12px; }
.faq-item {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.faq-item summary {
  list-style: none;
  cursor: pointer;
  display: flex; align-items: flex-start; gap: 14px;
  padding: 20px 22px;
  font-weight: 700; color: var(--ink);
  font-size: 1.03rem; line-height: 1.4;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: ""; flex: none; margin-left: auto; margin-top: .35em;
  width: 11px; height: 11px;
  border-right: 2.5px solid var(--brand);
  border-bottom: 2.5px solid var(--brand);
  transform: rotate(45deg);
  transition: transform .18s ease;
}
.faq-item[open] summary::after { transform: rotate(-135deg); }
.faq-item[open] summary { border-bottom: 1px solid var(--line-soft); }
.faq-item summary:hover { background: #f8fcfd; }
.faq-body { padding: 18px 22px 24px; font-size: 1rem; }
.faq-body p { margin-bottom: .9em; }
.faq-body p:last-child { margin-bottom: 0; }

/* --- final CTA ---------------------------------------------------------- */
.cta-section {
  background:
    radial-gradient(700px 400px at 80% 0%, #0f4e69 0%, rgba(15, 78, 105, 0) 70%),
    linear-gradient(180deg, var(--deep-2) 0%, var(--deep) 100%);
}
.order-card {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: clamp(28px, 5vw, 52px);
  box-shadow: var(--shadow-lg);
  text-align: center;
}
.order-card .eyebrow { margin-bottom: 10px; }
.order-sub { color: var(--ink-2); max-width: 34em; margin-inline: auto; }

.price-row {
  display: flex; flex-wrap: wrap; align-items: baseline; justify-content: center;
  gap: 6px 14px;
  margin: 28px 0 24px;
}
.price { font-size: clamp(2rem, 5vw, 2.7rem); font-weight: 800; color: var(--ink); letter-spacing: -.03em; }
.price-was { color: var(--muted); text-decoration: line-through; font-size: 1.05rem; }
.price-note { width: 100%; color: var(--muted); font-size: .92rem; }

.paypal-box { max-width: 420px; margin: 0 auto; min-height: 60px; }
.paylater-note { margin: 16px auto 0; font-size: .95rem; color: var(--ink-2); max-width: 34em; }

.badges {
  list-style: none; margin: 30px 0 0; padding: 26px 0 0;
  border-top: 1px solid var(--line-soft);
  display: grid; gap: 14px; justify-content: center;
}
@media (min-width: 720px) { .badges { grid-auto-flow: column; gap: 28px; } }
.badges li {
  display: flex; align-items: center; gap: 9px;
  font-size: .92rem; font-weight: 600; color: var(--ink-2);
}
.badges svg {
  width: 22px; height: 22px; flex: none;
  fill: none; stroke: var(--brand); stroke-width: 1.7;
  stroke-linecap: round; stroke-linejoin: round;
}
.order-fineprint { margin-top: 24px; font-size: .92rem; color: var(--muted); }

/* --- footer ------------------------------------------------------------- */
.site-footer { background: #061f2d; color: #9dbecd; padding: clamp(44px, 6vw, 68px) 0 28px; font-size: .95rem; }
.site-footer a { color: #cfe6ee; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-grid { display: grid; gap: 34px; }
@media (min-width: 780px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1.2fr; } }
.site-footer .brand { color: #fff; margin-right: 0; }
.site-footer .brand-mark { stroke: var(--accent); }
.footer-note { margin: 12px 0 0; max-width: 26em; color: #7ea6b8; }
.footer-h { font-size: .82rem; text-transform: uppercase; letter-spacing: .1em; color: #fff; margin: 0 0 14px; }
.footer-links ul, .footer-contact ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer-bottom {
  margin-top: 40px; padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, .1);
  display: grid; gap: 12px;
  font-size: .86rem; color: #7ea6b8;
}
.footer-bottom p { margin: 0; }
.disclaimer { max-width: 70em; }

/* --- print -------------------------------------------------------------- */
@media print {
  .site-header, .cta-section, .site-footer { display: none; }
  .section { padding: 20px 0; }
}

/* --- PayPal states (rendered by script.js) ------------------------------ */
.paypal-done {
  background: var(--accent-soft);
  border: 1px solid #a9dfe3;
  border-radius: var(--radius);
  padding: 18px 20px;
  color: var(--ink);
  margin: 0;
}
.paypal-error {
  margin: 12px 0 0;
  font-size: .92rem;
  color: #9a3412;
  background: #fff4ed;
  border: 1px solid #f6d3bd;
  border-radius: 10px;
  padding: 12px 14px;
}

/* --- 4-step layout ------------------------------------------------------ */
@media (min-width: 640px) and (max-width: 1099px) {
  .steps-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1100px) {
  .steps-4 { grid-template-columns: repeat(4, 1fr); }
}

/* --- spec list ---------------------------------------------------------- */
.specs-title {
  margin: clamp(40px, 5vw, 60px) 0 18px;
  font-size: clamp(1.15rem, 2vw, 1.35rem);
}
.specs {
  margin: 0;
  display: grid;
  gap: 0;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
}
@media (min-width: 820px) { .specs { grid-template-columns: 1fr 1fr; } }
.specs > div {
  display: grid;
  grid-template-columns: minmax(9rem, 34%) 1fr;
  gap: 14px;
  padding: 14px 20px;
  border-bottom: 1px solid var(--line-soft);
  font-size: .97rem;
}
@media (min-width: 820px) {
  .specs > div:nth-child(odd) { border-right: 1px solid var(--line-soft); }
}
.specs > div:last-child { border-bottom: 0; }
.specs dt { color: var(--ink); font-weight: 700; }
.specs dd { margin: 0; }

/* --- hero illustration (stand-in for product photography) --------------- */
.hero-figure { margin: 0; }
.unit-illo {
  display: block; width: 100%; height: auto;
  background: linear-gradient(160deg, #f3fafc 0%, #e6f4f8 100%);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 12px;
}
.illo-caption {
  margin-top: 10px; text-align: center;
  font-size: .82rem; color: var(--muted);
}
