/* 9 Tides Web Design — site styles
   Brand: deep-tide navy, teal for actions, seafoam surfaces, sand only for the recommended plan. */

/* ---------- Fonts (self-hosted, SIL Open Font License) ---------- */
@font-face {
  font-family: "Fraunces";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/fraunces-latin-opsz-normal.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;
}
@font-face {
  font-family: "Fraunces";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/fraunces-vietnamese-opsz-normal.woff2") format("woff2");
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/inter-latin-wght-normal.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;
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/inter-vietnamese-wght-normal.woff2") format("woff2");
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}

/* ---------- Tokens ---------- */
:root {
  --navy: #0E2A3B;
  --navy-deep: #081C28;
  --teal: #1B7F8C;
  --teal-dark: #156A75;
  --teal-ink: #16707B;      /* teal for text on seafoam/sand (AA) */
  --seafoam: #E7F3F2;
  --sand: #F6ECD6;          /* recommended plan only */
  --ink: #1E2A32;
  --muted: #5E6B73;
  --line: #CFE0DE;
  --field: #7A8C94;
  --paper: #FFFFFF;
  --on-navy: #FFFFFF;
  --on-navy-soft: #C3D6DB;
  --aqua: #8ADBE0;          /* accents and focus on navy */

  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --wrap: 1160px;
  --gutter: clamp(16px, 4vw, 40px);
  --section-y: clamp(72px, 10vw, 128px);
  --radius: 14px;
  --shadow: 0 18px 40px -18px rgba(14, 42, 59, 0.35);
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: 84px;
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

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

h1, h2, h3, h4 {
  margin: 0;
  font-family: var(--font-display);
  font-optical-sizing: auto;
  font-weight: 600;
  line-height: 1.12;
  color: var(--navy);
  text-wrap: balance;
}
h2 { font-size: clamp(2.125rem, 1.5rem + 2.6vw, 3.375rem); letter-spacing: -0.02em; line-height: 1.05; }
h3 { font-size: clamp(1.3125rem, 1.2rem + 0.4vw, 1.5rem); letter-spacing: -0.005em; }
h4 { font-size: 1.375rem; }

p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
ul, ol { margin: 0; padding: 0; }

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

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

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

.nowrap { white-space: nowrap; }

.sr-only {
  position: absolute !important;
  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: 16px; top: -100px;
  z-index: 100;
  padding: 12px 18px;
  background: var(--paper);
  color: var(--navy);
  font-weight: 600;
  border-radius: 8px;
}
.skip-link:focus { top: 12px; }

.wrap {
  width: 100%;
  max-width: calc(var(--wrap) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* ---------- Buttons & links ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0.8em 1.5em;
  border: 0;
  border-radius: 999px;
  font: 600 1.0625rem/1.2 var(--font-body);
  text-decoration: none;
  text-align: center;
  cursor: pointer;
}
.btn-primary { background: var(--teal); color: #fff; }
.btn-primary:hover { background: var(--teal-dark); }
.btn-small { min-height: 42px; padding: 0.55em 1.1em; font-size: 0.9375rem; }
.btn-block { width: 100%; }

.text-link { font-weight: 600; }
.text-link-light { color: var(--on-navy); }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--navy);
  color: var(--on-navy);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 68px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--on-navy);
  text-decoration: none;
  margin-right: auto;
}
.brand-logo { display: block; width: auto; height: 58px; }
.site-header :focus-visible,
.hero :focus-visible,
.about :focus-visible,
.site-footer :focus-visible { outline-color: var(--aqua); }

.site-nav { display: flex; align-items: center; }
.menu { list-style: none; display: flex; gap: 4px; }
.menu a {
  display: block;
  padding: 10px 12px;
  color: #DCEAED;
  font-size: 0.9375rem;
  font-weight: 500;
  text-decoration: none;
  border-radius: 8px;
}
.menu a:hover { color: #fff; text-decoration: underline; text-underline-offset: 0.3em; }
.menu-toggle {
  display: none;
  min-height: 42px;
  padding: 0 14px;
  background: transparent;
  color: var(--on-navy);
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 999px;
  font: 500 0.9375rem/1 var(--font-body);
  cursor: pointer;
}

@media (max-width: 899px) {
  .js .menu-toggle { display: inline-flex; align-items: center; }
  .js .menu {
    display: none;
    position: absolute;
    left: 0; right: 0; top: 100%;
    flex-direction: column;
    gap: 0;
    padding: 8px var(--gutter) 20px;
    background: var(--navy);
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 16px 30px -10px rgba(0, 0, 0, 0.4);
  }
  .js .menu.is-open { display: flex; }
  .js .menu a { padding: 14px 4px; font-size: 1.0625rem; border-bottom: 1px solid rgba(255, 255, 255, 0.08); border-radius: 0; }
  .site-nav { order: 3; }
  .header-cta { order: 2; }
  .header-inner { position: relative; }
}
@media (max-width: 899px) {
  html:not(.js) .header-inner { flex-wrap: wrap; padding-block: 8px; }
  html:not(.js) .menu { flex-wrap: wrap; }
}
.header-cta { white-space: nowrap; }
/* Phones: no "Free check" button in the header (the hero and contact section have it). */
@media (max-width: 767px) {
  .header-cta { display: none; }
}
@media (max-width: 480px) {
  .site-header .brand-logo { height: 48px; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background:
    radial-gradient(1200px 520px at 85% 20%, rgba(27, 127, 140, 0.28), transparent 60%),
    var(--navy);
  color: var(--on-navy);
  padding-top: clamp(40px, 7vw, 88px);
  padding-bottom: clamp(88px, 10vw, 136px);
  overflow: hidden;
}
.hero-grid {
  display: grid;
  gap: 48px;
  align-items: center;
}
@media (min-width: 960px) {
  .hero-grid { grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr); gap: 32px; }
}
.hero h1 {
  color: var(--on-navy);
  font-size: clamp(3rem, 1.6rem + 6vw, 6rem);
  font-weight: 600;
  line-height: 0.98;
  letter-spacing: -0.02em;
  max-width: 9ch;
}
.hero-lead {
  margin-top: 28px;
  max-width: 34em;
  font-size: clamp(1.125rem, 1.05rem + 0.3vw, 1.25rem);
  line-height: 1.6;
  color: #DCE8EB;
}
.hero-fast {
  margin-top: 14px;
  font-size: clamp(1.125rem, 1.05rem + 0.3vw, 1.25rem);
  font-weight: 600;
  color: var(--on-navy);
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 28px;
  margin-top: 32px;
}
.hero-note {
  margin-top: 18px;
  max-width: 30em;
  font-size: 0.9375rem;
  color: var(--on-navy-soft);
}

.hero-wave {
  position: absolute;
  left: 0; right: 0; bottom: -1px;
  width: 100%;
  height: clamp(36px, 5vw, 72px);
  display: block;
}

/* Search-results phone */
.search-demo {
  position: relative;
  margin: 0;
  display: grid;
  justify-items: center;
}
.phone {
  width: min(310px, 84vw);
  padding: 10px;
  background: var(--navy-deep);
  border-radius: 46px;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.12),
    0 40px 80px -30px rgba(0, 0, 0, 0.6);
}
.screen {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 600px;
  padding-bottom: 22px;
  background: #fff;
  border-radius: 36px;
  color: #22313A;
  font-family: var(--font-body);
  font-size: 12.5px;
  line-height: 1.4;
}
.screen p { margin: 0; }
.status {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 24px 6px;
  font-weight: 600;
  font-size: 12px;
}
.status-icons { display: inline-flex; gap: 4px; align-items: flex-end; }
.status-icons i { display: block; width: 4px; background: #22313A; border-radius: 1px; }
.status-icons i:nth-child(1) { height: 5px; }
.status-icons i:nth-child(2) { height: 8px; }
.status-icons i:nth-child(3) { height: 11px; }

.search-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 6px 14px 12px;
  padding: 0 14px;
  height: 40px;
  border-radius: 999px;
  background: #F1F5F6;
  box-shadow: inset 0 0 0 1px #E1E8EA;
  color: #5E6B73;
  font-size: 13.5px;
}
.search-bar svg { flex: none; }
.query { color: #1E2A32; white-space: nowrap; }
.caret {
  display: none;
  width: 1.5px;
  height: 16px;
  margin-left: -6px;
  background: var(--teal);
}

.results {
  flex: 1;
  min-height: 0;
  padding: 0 12px;
  overflow-x: visible;
  overflow-y: clip;
}
.screen::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 70px;
  border-radius: 0 0 36px 36px;
  background: linear-gradient(rgba(255, 255, 255, 0), #fff 70%);
  pointer-events: none;
}
.map {
  display: block;
  width: 100%;
  height: 92px;
  border-radius: 14px;
  margin-bottom: 10px;
}
.listing {
  padding: 10px 10px;
  border-radius: 14px;
}
.listing + .listing { margin-top: 4px; }
.listing-bare {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 10px;
  align-items: center;
  opacity: 0.62;
  filter: saturate(0.2);
}
.thumb-empty {
  width: 44px; height: 44px;
  border-radius: 10px;
  background:
    linear-gradient(135deg, transparent 46%, #D5DCDF 46%, #D5DCDF 54%, transparent 54%),
    #EEF2F3;
}
.l-name { font-weight: 650; font-size: 14px; color: #1E2A32; }
.l-meta { color: #5E6B73; display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.l-meta b { color: #1E2A32; font-weight: 600; }
.l-faint { color: #8A969C; }
.l-open { color: #1C7A4A; font-weight: 600; }
.stars { display: inline-flex; }
.stars svg { width: 60px; height: 12px; }

.listing-star {
  position: relative;
  z-index: 1;
  background: #fff;
  margin-inline: -4px;
  padding: 12px 14px 14px;
  box-shadow:
    0 0 0 2px var(--teal),
    0 22px 40px -14px rgba(0, 0, 0, 0.45);
  transform: scale(1.1);
}
.listing-star .l-name { font-size: 15.5px; }
.l-extra { display: grid; grid-template-rows: 1fr; }
.l-extra-inner { overflow: hidden; min-height: 0; }
.l-photos {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  margin-top: 10px;
}
.tile {
  display: grid;
  place-items: center;
  height: 60px;
  border-radius: 10px;
}
.tile svg { width: 26px; height: 26px; fill: none; stroke: #fff; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.tile-a { background: linear-gradient(150deg, #F1D2BD, #C98E6B); }
.tile-b { background: linear-gradient(150deg, #BFE1DD, #3F8F94); }
.tile-c { background: linear-gradient(150deg, #D9D1EC, #8C7DB8); }
.l-actions {
  display: flex;
  gap: 6px;
  margin-top: 10px;
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 6px 9px;
  border-radius: 999px;
  box-shadow: inset 0 0 0 1px #C9D6D9;
  color: var(--teal-ink);
  font-weight: 600;
  font-size: 11.5px;
  white-space: nowrap;
}
.chip svg { width: 13px; height: 13px; fill: currentColor; }
.chip svg.stroke { fill: none; stroke: currentColor; stroke-width: 2; }
.chip-solid { background: var(--teal); color: #fff; box-shadow: none; }

.demo-note {
  margin-top: 22px;
  max-width: 300px;
  font-family: var(--font-display);
  font-size: 1.1875rem;
  line-height: 1.35;
  color: var(--on-navy);
  text-align: center;
}
.demo-arrow { display: none; }
@media (min-width: 1100px) {
  .search-demo {
    grid-template-columns: minmax(0, 1fr) auto;
    justify-items: end;
    column-gap: 36px;
  }
  .phone { grid-column: 2; grid-row: 1; }
  .demo-note {
    grid-column: 1;
    grid-row: 1;
    position: relative;
    align-self: start;
    width: 100%;
    max-width: 180px;
    margin: 318px 0 0;
    text-align: right;
  }
  .demo-arrow {
    display: block;
    position: absolute;
    right: -38px;
    top: -44px;
    width: 92px;
    height: 46px;
    color: var(--aqua);
  }
}

/* Hero sequence: type the search, show results, then light up "Your Salon".
   The final state is the default, so no-JS and reduced-motion users see it straight away. */
.hero-anim .results,
.hero-anim .listing-bare,
.hero-anim .listing-star,
.hero-anim .l-extra,
.hero-anim .l-extra-inner,
.hero-anim .demo-note {
  transition:
    opacity 0.6s ease,
    transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1),
    box-shadow 0.6s ease,
    filter 0.6s ease,
    grid-template-rows 0.7s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.hero-anim .search-demo:not([data-stage]) .query { visibility: hidden; }
.hero-anim .search-demo:not([data-stage]) .results,
.hero-anim .search-demo[data-stage="0"] .results { opacity: 0; transform: translateY(12px); }
.hero-anim .search-demo[data-stage="0"] .caret { display: block; animation: caret 1s steps(1) infinite; }
.hero-anim .search-demo:not([data-stage="2"]) .listing-bare { opacity: 1; filter: none; }
.hero-anim .search-demo:not([data-stage="2"]) .listing-star { transform: none; box-shadow: 0 0 0 1px #E1E8EA; }
.hero-anim .search-demo:not([data-stage="2"]) .l-extra { grid-template-rows: 0fr; }
.hero-anim .search-demo:not([data-stage="2"]) .l-extra-inner { opacity: 0; }
.hero-anim .search-demo:not([data-stage="2"]) .demo-note { opacity: 0; transform: translateY(8px); }
@keyframes caret { 50% { opacity: 0; } }

/* ---------- Sections ---------- */
.section { padding-block: var(--section-y); }
.section-head { max-width: 40rem; margin-bottom: clamp(36px, 5vw, 56px); }
.section-head p { margin-top: 14px; font-size: 1.1875rem; color: var(--muted); }

/* ---------- Work ---------- */
.work { padding-top: clamp(48px, 7vw, 96px); }

.case-feature {
  display: grid;
  gap: 32px 48px;
  margin-bottom: clamp(64px, 9vw, 112px);
}
@media (min-width: 1000px) {
  .case-feature { grid-template-columns: minmax(0, 2.15fr) minmax(0, 1fr); align-items: start; }
}

.compare {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--seafoam);
  box-shadow: 0 0 0 1px var(--line), var(--shadow);
  user-select: none;
  -webkit-user-select: none;
}
.compare img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top left;
}
.compare-before {
  position: absolute;
  inset: 0;
  clip-path: inset(0 calc(100% - var(--pos)) 0 0);
}
.compare-label {
  position: absolute;
  bottom: 12px;
  padding: 4px 11px;
  border-radius: 999px;
  background: rgba(14, 42, 59, 0.88);
  color: #fff;
  font-size: 0.8125rem;
  font-weight: 600;
  pointer-events: none;
}
.compare-label-before { left: 12px; }
.compare-label-after { right: 12px; }
@media (max-width: 560px) {
  .compare-label { bottom: 8px; padding: 2px 9px; font-size: 0.75rem; }
  .compare-label-before { left: 8px; }
  .compare-label-after { right: 8px; }
  .compare-handle::after { width: 40px; height: 40px; }
}
.compare-range {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: ew-resize;
  touch-action: pan-y;
}
.compare-handle {
  position: absolute;
  top: 0; bottom: 0;
  left: var(--pos);
  width: 3px;
  margin-left: -1.5px;
  background: #fff;
  box-shadow: 0 0 0 1px rgba(14, 42, 59, 0.25);
  pointer-events: none;
}
.compare-handle::after {
  content: "";
  position: absolute;
  top: 50%; left: 50%;
  width: 46px; height: 46px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230E2A3B' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 6l-5 6 5 6M15 6l5 6-5 6'/%3E%3C/svg%3E") center / 24px no-repeat,
    #fff;
  box-shadow: 0 4px 14px rgba(14, 42, 59, 0.35);
}
.compare-range:focus-visible ~ .compare-handle::after {
  outline: 3px solid var(--teal);
  outline-offset: 3px;
}

.case-kind {
  margin: 6px 0 14px;
  color: var(--teal-ink);
  font-weight: 600;
  font-size: 0.9375rem;
}
.case-body > p:not(.case-kind) { max-width: 34em; }
.case-fine { margin-top: 14px; font-size: 0.875rem; color: var(--muted); }

.phone-frame {
  aspect-ratio: 9 / 17.5;
  overflow: hidden;
  border: 7px solid var(--navy);
  border-radius: 28px;
  background: var(--navy);
  box-shadow: var(--shadow);
}
.phone-frame img { width: 100%; height: 100%; object-fit: cover; object-position: top; }

.case-feature .case-phone { width: 180px; margin-top: 28px; }
@media (max-width: 999px) {
  .case-feature .case-body { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-rows: auto auto 1fr; column-gap: 28px; }
  .case-feature .case-body > * { grid-column: 1; }
  .case-feature .case-phone { grid-column: 2; grid-row: 1 / span 3; width: 150px; margin-top: 0; }
}
@media (max-width: 560px) {
  .case-feature .case-body { display: block; }
  .case-feature .case-phone { width: 150px; margin-top: 24px; }
}

.case-pair {
  display: grid;
  gap: 72px 48px;
}
@media (min-width: 900px) {
  .case-pair { grid-template-columns: 1fr 1fr; }
}
.case-shots {
  position: relative;
  padding-right: 22%;
  padding-bottom: 12%;
  margin-bottom: 28px;
}
/* Salon and laundromat: text first, pictures below, lined up across both cards */
.case-pair .case { display: flex; flex-direction: column; }
.case-pair .case-shots { margin: auto 0 0; padding-top: 34px; }
.shot-desktop {
  width: 100%;
  aspect-ratio: 1280 / 760;
  object-fit: cover;
  object-position: top;
  border-radius: 10px;
  box-shadow: 0 0 0 1px var(--line), var(--shadow);
}
.case-shots .case-phone {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 30%;
  min-width: 108px;
}
.case-shots .phone-frame { border-width: 6px; border-radius: 22px; }
.lang-tag {
  position: absolute;
  top: -14px;
  left: 50%;
  z-index: 1;
  transform: translateX(-50%);
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--teal);
  color: #fff;
  font-size: 0.8125rem;
  font-weight: 600;
  white-space: nowrap;
}
.case-pair .case > p:not(.case-kind) { max-width: 32em; margin-bottom: 0; }

/* ---------- Pricing ---------- */
.pricing { background: var(--seafoam); }
.pricing a { color: var(--teal-ink); }

.price-block + .price-block { margin-top: clamp(64px, 8vw, 96px); }
.price-block-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px 32px;
  padding-bottom: 18px;
  margin-bottom: 8px;
  border-bottom: 2px solid var(--navy);
}
.price-block-head h3 { font-size: clamp(1.625rem, 1.35rem + 1vw, 2.125rem); }
.price-block-head p { color: var(--muted); max-width: 32em; }

.builds {
  display: grid;
  grid-template-columns: 1fr;
}
@media (min-width: 820px) {
  .builds { grid-template-columns: repeat(3, 1fr); }
  .builds-2 { grid-template-columns: repeat(2, 1fr); }
  .build + .build { border-left: 1px solid var(--line); }
  .build { padding: 28px 28px 8px; }
  .build:first-child { padding-left: 0; }
  .build:last-child { padding-right: 0; }
}
@media (max-width: 819px) {
  .build { padding: 28px 0; }
  .build + .build { border-top: 1px solid var(--line); }
}
.build h4 { font-size: 1.375rem; }
.build-price {
  margin: 8px 0 10px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2.5rem, 2rem + 1.6vw, 3.25rem);
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--navy);
}
.build-price .from {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0;
  color: var(--muted);
  vertical-align: 0.9em;
}
.build-for { color: var(--muted); margin-bottom: 18px; max-width: 24em; }

.checks { list-style: none; }
.checks li {
  position: relative;
  padding: 7px 0 7px 28px;
  border-top: 1px solid rgba(14, 42, 59, 0.08);
}
.checks li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 0.95em;
  width: 13px;
  height: 7px;
  border-left: 2px solid var(--teal-ink);
  border-bottom: 2px solid var(--teal-ink);
  transform: rotate(-45deg);
}

.price-note {
  margin-top: 22px;
  color: var(--ink);
  max-width: 48em;
}
.price-note strong, .rate-note strong { font-weight: 600; }

/* Care table */
.table-wrap {
  margin-top: 24px;
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: 0 0 0 1px var(--line);
  overflow: hidden;
  overflow: clip;
}
.care {
  width: 100%;
  border-collapse: collapse;
  font-size: 1rem;
}
.care col.col-feature { width: 40%; }
.care th, .care td {
  padding: 14px 16px;
  text-align: center;
  vertical-align: middle;
  border-top: 1px solid #E3EDEC;
}
.care thead th, .care thead td { border-top: 0; }
.care tbody th {
  text-align: left;
  font-weight: 500;
  color: var(--ink);
}
.care thead th {
  padding-top: 22px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.375rem;
  color: var(--navy);
  vertical-align: bottom;
}
.care .is-rec { background: var(--sand); }
.rec-tag {
  display: block;
  width: max-content;
  margin: 0 auto 8px;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--navy);
  color: #fff;
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.01em;
}
.row-price .amt {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.75rem;
  letter-spacing: -0.02em;
  color: var(--navy);
}
.row-price .per { color: var(--muted); font-size: 0.9375rem; }
.yes, .no {
  display: inline-block;
  width: 20px; height: 20px;
  vertical-align: middle;
}
.yes {
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Ccircle cx='10' cy='10' r='10' fill='%2316707B'/%3E%3Cpath d='M5.5 10.3l3 3 6-6.3' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
}
.no {
  background: linear-gradient(#8A969C, #8A969C) center / 12px 2px no-repeat;
}

/* Phones: each feature becomes a label line with its three values underneath.
   Roles on the table elements keep it a table for screen readers. */
@media (max-width: 640px) {
  .care,
  .care thead,
  .care tbody { display: block; }
  .care {
    font-size: 0.9375rem;
    background: linear-gradient(90deg, transparent 33.333%, var(--sand) 33.333% 66.667%, transparent 66.667%);
  }
  .care colgroup { display: none; }
  .care tr {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    border-top: 1px solid #E3EDEC;
  }
  .care thead {
    position: sticky;
    top: 69px;
    z-index: 2;
    background:
      linear-gradient(90deg, #fff 33.333%, var(--sand) 33.333% 66.667%, #fff 66.667%);
    box-shadow: 0 1px 0 #E3EDEC;
  }
  .care thead tr { border-top: 0; }
  .care th, .care td { display: block; border-top: 0; padding: 4px 6px 14px; }
  .care .is-rec { background: transparent; }
  .care .col-feature-h {
    position: absolute;
    width: 1px; height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    padding: 0;
  }
  .care thead th { padding: 14px 4px 12px; font-size: 1.125rem; }
  .care tbody th {
    grid-column: 1 / -1;
    padding: 12px 14px 4px;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--muted);
  }
  .rec-tag { font-size: 0.6875rem; padding: 2px 8px; margin-bottom: 6px; }
  .row-price .amt { font-size: 1.5rem; }
  .row-price .per { display: block; font-size: 0.8125rem; }
}

/* No-upfront-cost option */
.monthly-option {
  display: grid;
  gap: 24px 48px;
  margin-top: clamp(64px, 8vw, 96px);
  padding: clamp(28px, 4vw, 48px);
  border-radius: var(--radius);
  background: var(--navy);
  color: var(--on-navy-soft);
}
@media (min-width: 860px) {
  .monthly-option { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); align-items: center; }
}
.monthly-option h3 { color: var(--on-navy); font-size: clamp(1.75rem, 1.4rem + 1.2vw, 2.375rem); margin-bottom: 14px; }
.monthly-option p { max-width: 34em; }
.monthly-price { margin: 0; display: grid; gap: 4px; }
@media (min-width: 860px) { .monthly-price { justify-items: end; text-align: right; } }
.mp-setup, .mp-term { font-size: 1.0625rem; }
.mp-amt { font-family: var(--font-display); font-weight: 600; font-size: clamp(3.25rem, 2.4rem + 3vw, 4.75rem); line-height: 1; letter-spacing: -0.035em; color: var(--on-navy); }
.mp-per { font-family: var(--font-body); font-size: 1.125rem; font-weight: 500; letter-spacing: 0; color: var(--on-navy-soft); margin-left: 4px; }
.monthly-option :focus-visible { outline-color: var(--aqua); }

.rate-note {
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

/* ---------- How it works ---------- */
.steps {
  list-style: none;
  display: grid;
  gap: 36px;
  counter-reset: none;
}
.step { position: relative; }
.step-num {
  display: grid;
  place-items: center;
  width: 48px; height: 48px;
  margin-bottom: 20px;
  border-radius: 50%;
  background: var(--paper);
  box-shadow: inset 0 0 0 2px var(--teal);
  color: var(--navy);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.375rem;
  position: relative;
  z-index: 1;
}
.step h3 { margin-bottom: 10px; }
.step p { color: var(--muted); max-width: 26em; }

@media (min-width: 900px) {
  .steps { grid-template-columns: repeat(4, 1fr); gap: 0 32px; }
  @supports (grid-template-rows: subgrid) {
    .steps { grid-template-rows: auto auto auto; }
    .step { display: grid; grid-row: span 3; grid-template-rows: subgrid; }
  }
  .step:not(:last-child)::before {
    content: "";
    position: absolute;
    top: 24px;
    left: 56px;
    right: -24px;
    height: 2px;
    background: repeating-linear-gradient(90deg, var(--line) 0 8px, transparent 8px 14px);
  }
}
@media (max-width: 899px) {
  .step { padding-left: 72px; }
  .step-num { position: absolute; left: 0; top: -4px; margin: 0; }
  .step:not(:last-child)::before {
    content: "";
    position: absolute;
    left: 23px;
    top: 52px;
    bottom: -32px;
    width: 2px;
    background: repeating-linear-gradient(180deg, var(--line) 0 8px, transparent 8px 14px);
  }
}

/* ---------- About ---------- */
.about {
  background: var(--navy);
  color: var(--on-navy-soft);
}
.about h2 { color: var(--on-navy); }
.about-grid {
  display: grid;
  gap: 48px 72px;
}
@media (min-width: 960px) {
  .about-grid {
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
    grid-template-areas: "portrait intro" "portrait promises";
    grid-template-rows: auto 1fr;
  }
  .about-portrait { grid-area: portrait; }
  .about-intro { grid-area: intro; }
  .promises { grid-area: promises; }
}
/* Full photo in a rounded frame, not cropped to a circle */
.about-portrait {
  margin: 0;
  max-width: 26rem;
  align-self: start;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--navy-deep);
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.6);
}
.about-portrait img { display: block; width: 100%; height: auto; }
@media (min-width: 960px) {
  .about-portrait { max-width: none; }
}
.about-intro h2 { font-size: clamp(2.5rem, 1.6rem + 3.6vw, 4.25rem); letter-spacing: -0.03em; margin-bottom: 24px; }
.about-intro p { font-size: 1.125rem; max-width: 30em; }
.promises {
  list-style: none;
  display: grid;
  gap: 0 40px;
}
@media (min-width: 620px) {
  .promises { grid-template-columns: 1fr 1fr; }
}
.promises li {
  padding: 22px 0 26px;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
}
.promises h3 {
  color: var(--on-navy);
  font-size: 1.3125rem;
  margin-bottom: 8px;
}
.promises h3::before {
  content: "";
  display: block;
  width: 28px;
  height: 10px;
  margin-bottom: 14px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 28 10'%3E%3Cpath d='M1 6c3-3 6-3 9 0s6 3 9 0 5-2.4 8-2' fill='none' stroke='%238ADBE0' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E") left center / contain no-repeat;
}

/* ---------- FAQ ---------- */
.faq-grid {
  display: grid;
  gap: 8px 72px;
}
@media (min-width: 960px) {
  .faq-grid { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.5fr); align-items: start; }
  .faq-head { position: sticky; top: 108px; }
}
.faq-list { border-top: 1px solid var(--line); }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 0;
  cursor: pointer;
  list-style: none;
  border-radius: 6px;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary h3 {
  font-size: clamp(1.1875rem, 1.1rem + 0.35vw, 1.375rem);
  font-weight: 550;
  line-height: 1.3;
}
.faq-list summary::after {
  content: "";
  flex: none;
  width: 32px; height: 32px;
  border-radius: 50%;
  box-shadow: inset 0 0 0 1.5px var(--teal);
  background:
    linear-gradient(var(--teal), var(--teal)) center / 12px 2px no-repeat,
    linear-gradient(var(--teal), var(--teal)) center / 2px 12px no-repeat;
}
.faq-list details[open] summary::after {
  background: linear-gradient(var(--teal), var(--teal)) center / 12px 2px no-repeat;
}
.faq-list summary:hover h3 { color: var(--teal-ink); }
.faq-a { padding: 0 48px 26px 0; }
.faq-a p { max-width: 38em; }

/* ---------- Contact ---------- */
.contact { background: var(--seafoam); }
.contact-grid {
  display: grid;
  gap: 40px 72px;
}
@media (min-width: 960px) {
  .contact-grid { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); align-items: start; }
}
.contact-intro h2 { margin-bottom: 20px; }
.contact-intro p { font-size: 1.125rem; max-width: 28em; }
.contact-direct {
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 1rem !important;
}
.contact-direct a {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--navy);
  word-break: break-word;
}

.contact-form {
  padding: clamp(24px, 4vw, 40px);
  background: var(--paper);
  border-radius: var(--radius);
  box-shadow: 0 0 0 1px var(--line), var(--shadow);
}
.field { margin-bottom: 20px; }
.field-row { display: grid; gap: 0 16px; }
@media (min-width: 560px) {
  .field-row { grid-template-columns: 1fr 1fr; }
}
.field label {
  display: block;
  margin-bottom: 6px;
  font-weight: 600;
  font-size: 0.9375rem;
  color: var(--ink);
}
.opt { font-weight: 400; color: var(--muted); }
.field input,
.field textarea {
  width: 100%;
  min-height: 50px;
  padding: 12px 14px;
  border: 1.5px solid var(--field);
  border-radius: 10px;
  background: #fff;
  color: var(--ink);
  font: 400 1rem/1.4 var(--font-body);
}
.field textarea { resize: vertical; min-height: 110px; }
.field input::placeholder { color: #75858C; }
.field input:focus-visible,
.field textarea:focus-visible {
  outline: 3px solid var(--teal);
  outline-offset: 1px;
  border-color: var(--teal);
}
.form-note { margin-top: 14px; font-size: 0.875rem; color: var(--muted); text-align: center; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy);
  color: var(--on-navy-soft);
  padding-block: 64px 36px;
  font-size: 0.9375rem;
}
.site-footer a { color: var(--on-navy); }
.footer-grid {
  display: grid;
  gap: 36px 48px;
}
@media (min-width: 720px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 1040px) {
  .footer-grid { grid-template-columns: 1.3fr 1fr 1fr 1.2fr; }
}
.footer-brand .brand { margin-bottom: 14px; }
.footer-brand .brand-logo { height: 72px; }
.footer-brand p { max-width: 22em; }
.footer-title {
  margin-bottom: 10px;
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--on-navy);
  letter-spacing: 0;
}
.copyright {
  grid-column: 1 / -1;
  margin-top: 12px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.875rem;
}

/* ---------- Thanks page ---------- */
.thanks {
  min-height: calc(100vh - 69px);
  min-height: calc(100dvh - 69px);
  padding-block: 64px;
  display: grid;
  align-items: center;
  background: var(--seafoam);
}
.thanks h1 { font-size: clamp(2.5rem, 1.8rem + 3vw, 4rem); letter-spacing: -0.03em; margin-bottom: 18px; }
.thanks p { font-size: 1.125rem; max-width: 32em; }
.thanks .btn { margin-top: 12px; }
