/* Liquid glass over a fixed photo of Lake Coeur d'Alene.
   One deliberate dark look: every panel is translucent glass and the lake
   behind it sharpens or frosts depending on the section in view. */
:root {
  --text: #ffffff;
  --text-2: rgba(255, 255, 255, 0.84);
  --text-3: rgba(255, 255, 255, 0.74);
  --ink: #1d1d1f;
  --ink-2: #6e6e73;
  --accent: #f1ebdf;
  --accent-ink: #2e7a53;
  --error: #ff8a80;
  --glass-tint: rgba(14, 22, 30, 0.5);
  --glass-fill: rgba(255, 255, 255, 0.06);
  --glass-fill-strong: rgba(255, 255, 255, 0.15);
  --glass-rim: rgba(255, 255, 255, 0.55);
  --glass-blur: 26px;
  --radius: 30px;
  --max: 1080px;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", Inter, "Helvetica Neue", "Segoe UI", Roboto, Arial, sans-serif;
  --ease: cubic-bezier(0.25, 0.1, 0.25, 1);
  --spring: cubic-bezier(0.32, 0.72, 0, 1);
  color-scheme: dark;
}

/* Inter, self-hosted (SIL Open Font License). Apple devices use the system San Francisco font first. */
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("fonts/inter-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;
}

*, *::before, *::after { box-sizing: border-box; }
picture { display: contents; }
[hidden] { display: none !important; }

html { scroll-behavior: smooth; scroll-padding-top: 88px; background: #1d2a33; }

body {
  margin: 0;
  background: #1d2a33;
  color: var(--text);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.47;
  letter-spacing: -0.022em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3 { margin: 0; line-height: 1.08; letter-spacing: -0.03em; font-weight: 700; text-wrap: balance; }
p { margin: 0; }
a { color: var(--text); text-decoration: none; }
a:hover { text-decoration: underline; }
img { display: block; max-width: 100%; height: auto; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 10px; }

.container {
  max-width: calc(var(--max) + 44px);
  margin: 0 auto;
  padding-left: max(22px, env(safe-area-inset-left, 0px));
  padding-right: max(22px, env(safe-area-inset-right, 0px));
}

/* Fixed lake backdrop. Two layers (sharp and pre-blurred) crossfade, and a
   shade darkens it, driven by --soft and --shade set from the section in view. */
.backdrop { position: fixed; inset: 0; z-index: 0; overflow: hidden; background: #1d2a33; }
main, .footer { position: relative; z-index: 1; }
.backdrop img {
  position: absolute;
  inset: -4%;
  width: 108%;
  height: 108%;
  max-width: none;
  object-fit: cover;
  object-position: 50% 45%;
  transform: translate3d(0, calc(var(--drift, 0) * -3%), 0) scale(calc(1 + var(--drift, 0) * 0.04));
  will-change: transform;
}
.backdrop-soft { opacity: var(--soft, 0); transition: opacity 0.9s var(--ease); }
.backdrop-shade {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(120% 90% at 15% 85%, rgba(6, 12, 18, 0.78), transparent 64%),
    linear-gradient(180deg, rgba(6, 12, 18, 0.7) 0%, rgba(6, 12, 18, 0.48) 34%, rgba(6, 12, 18, 0.3) 52%, rgba(6, 12, 18, 0.66) 100%);
  opacity: var(--shade, 0.6);
  transition: opacity 0.9s var(--ease);
}

/* Liquid glass: blurred, brightened view of what's behind, a bright rim that
   catches light on the top-left and bottom-right, and a soft highlight that
   follows the pointer. */
.glass {
  position: relative;
  isolation: isolate;
  background: linear-gradient(160deg, var(--glass-fill-strong), var(--glass-fill) 45%, rgba(255, 255, 255, 0.03)), var(--glass-tint);
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(180%) brightness(1.04);
  backdrop-filter: blur(var(--glass-blur)) saturate(180%) brightness(1.04);
  border-radius: var(--radius);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.35),
    inset 0 -1px 0 rgba(255, 255, 255, 0.06),
    0 1px 2px rgba(0, 0, 0, 0.08),
    0 22px 60px rgba(0, 0, 0, 0.22);
}
.glass::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(140deg, var(--glass-rim), rgba(255, 255, 255, 0.1) 30%, rgba(255, 255, 255, 0.04) 60%, rgba(255, 255, 255, 0.32));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  pointer-events: none;
}
.glass::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  background: radial-gradient(420px circle at var(--mx, 30%) var(--my, -10%), rgba(255, 255, 255, 0.14), transparent 60%);
  pointer-events: none;
  transition: background 0.2s linear;
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .glass { background: rgba(28, 38, 46, 0.86); }
}

/* Buttons */
.btn {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  border-radius: 980px;
  font: inherit;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.01em;
  padding: 13px 26px;
  min-height: 48px;
  cursor: pointer;
  text-decoration: none !important;
  transition: transform 0.35s var(--spring), background 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.btn:active { transform: scale(0.96); }
.btn-light { background: #fff; color: var(--ink); box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18); }
.btn-light:hover { background: #f2f2f4; }
.btn-glass { color: var(--text); }
.btn-glass:not(.glass) { background: rgba(255, 255, 255, 0.12); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.25); }
.btn-glass.glass { border-radius: 980px; --glass-blur: 18px; }
.btn-glass:hover { background-color: rgba(255, 255, 255, 0.2); }
.btn-small { font-size: 14px; padding: 7px 16px; min-height: 36px; }
.link { color: var(--accent); font-weight: 500; display: inline-flex; align-items: center; min-height: 44px; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-top: 34px; }

/* Floating glass nav */
.nav-wrap {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 30;
  padding: calc(14px + env(safe-area-inset-top, 0px)) max(14px, env(safe-area-inset-right, 0px)) 0 max(14px, env(safe-area-inset-left, 0px));
  pointer-events: none;
}
.nav {
  pointer-events: auto;
  max-width: var(--max);
  margin: 0 auto;
  height: 58px;
  padding: 0 10px 0 14px;
  display: flex;
  align-items: center;
  gap: 24px;
  border-radius: 980px;
  --glass-blur: 22px;
  --radius: 980px;
  font-size: 14px;
  transition: background 0.4s var(--ease);
}
.nav { --glass-tint: rgba(14, 22, 30, 0.68); }
.nav-links a, .brand-sub { color: rgba(255, 255, 255, 0.94) !important; }
.nav-wrap.is-scrolled .nav { --glass-tint: rgba(14, 22, 30, 0.8); }
.brand { position: relative; z-index: 2; display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none !important; }
.brand img { filter: drop-shadow(0 1px 4px rgba(0, 0, 0, 0.25)); }
.brand-name { display: flex; flex-direction: column; font-size: 16px; font-weight: 700; line-height: 1.05; letter-spacing: -0.02em; }
.brand-sub { font-size: 12px; font-weight: 500; letter-spacing: 0.02em; color: var(--text-2); }
.nav-links { position: relative; z-index: 2; display: flex; gap: 26px; margin-left: auto; }
.nav-links a { color: var(--text-2); }
.nav-links a:hover { color: var(--text); text-decoration: none; }
.nav-call { position: relative; z-index: 2; display: inline-flex; align-items: center; gap: 6px; min-height: 44px; color: var(--text); font-weight: 500; }
.nav-call:hover { text-decoration: none; opacity: 0.85; }
.nav .btn { position: relative; z-index: 2; }

/* Hero */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  padding: 140px 0 120px;
}
.hero-eyebrow { font-size: 17px; font-weight: 600; color: #fff; margin-bottom: 18px; letter-spacing: -0.01em; }
.hero h1 {
  font-size: clamp(48px, 8vw, 96px);
  letter-spacing: -0.045em;
  line-height: 1;
  max-width: 12ch;
  text-shadow: 0 2px 40px rgba(0, 0, 0, 0.25);
}
.hero-sub { font-size: clamp(19px, 2.2vw, 24px); color: rgba(255, 255, 255, 0.92); margin-top: 22px; max-width: 32ch; line-height: 1.35; text-shadow: 0 1px 18px rgba(0, 0, 0, 0.45); }
.hero-eyebrow { text-shadow: 0 1px 14px rgba(0, 0, 0, 0.4); }
.hero > .container, .local > .container { width: 100%; }
.scroll-cue {
  position: absolute;
  left: 50%;
  bottom: 28px;
  translate: -50% 0;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  color: rgba(255, 255, 255, 0.85);
  animation: bob 2.4s var(--ease) infinite;
}
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(6px); } }

/* Sections */
.why, .builder { padding: 120px 0; }
.headline { font-size: clamp(38px, 6vw, 68px); text-align: center; letter-spacing: -0.04em; max-width: 16ch; margin: 0 auto; }

/* Bento of glass tiles */
.bento { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin-top: 64px; }
.tile {
  padding: 36px 32px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-height: 420px;
}
.tile > * { position: relative; z-index: 2; }
.tile h3 { font-size: clamp(26px, 2.8vw, 34px); }
.tile p { color: var(--text-2); }
.tile-eyebrow { color: var(--accent) !important; font-weight: 600; font-size: 14px; letter-spacing: 0; }
.tile { --glass-tint: rgba(14, 22, 30, 0.58); }
.tile-wide { grid-column: span 2; flex-direction: row; align-items: center; gap: 32px; }
.tile-copy { display: flex; flex-direction: column; gap: 14px; flex: 1; min-width: 0; }

/* Phone mockup */
.phone {
  flex: 0 0 auto;
  width: 240px;
  aspect-ratio: 9 / 18.5;
  border-radius: 44px;
  background: #0d0d0f;
  padding: 9px;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.35), inset 0 0 0 2px #3a3a3c;
  margin-bottom: -130px;
  align-self: flex-end;
}
.phone-screen { height: 100%; border-radius: 35px; background: #fff; color: var(--ink); padding: 18px 12px; display: flex; flex-direction: column; gap: 8px; font-size: 13px; letter-spacing: -0.01em; }
.phone-head { display: flex; flex-direction: column; align-items: center; gap: 4px; font-size: 11px; color: var(--ink-2); margin-bottom: 8px; }
.phone-head img { border-radius: 50%; }
.bubble { max-width: 80%; padding: 8px 12px; border-radius: 18px; line-height: 1.3; }
.bubble.out { align-self: flex-end; background: #1f7a36; color: #fff; border-bottom-right-radius: 6px; }
.bubble.in { align-self: flex-start; background: #e9e9eb; color: var(--ink); border-bottom-left-radius: 6px; }
.photo-bubble { padding: 3px; }
.photo-bubble img { border-radius: 15px; aspect-ratio: 4 / 3; object-fit: cover; }
.typing { align-self: flex-start; background: #e9e9eb; border-radius: 18px; padding: 10px 12px; display: flex; gap: 4px; }
.typing span { width: 7px; height: 7px; border-radius: 50%; background: #8e8e93; animation: blink 1.4s infinite; }
.typing span:nth-child(2) { animation-delay: 0.2s; }
.typing span:nth-child(3) { animation-delay: 0.4s; }
@keyframes blink { 0%, 80%, 100% { opacity: 0.3; } 40% { opacity: 1; } }

/* Utility locate graphic */
.locate { width: 100%; height: auto; margin: auto 0 4px; overflow: visible; }
.js .locate-flag { opacity: 0; transform: translateY(-6px); transition: opacity 0.5s var(--ease), transform 0.6s var(--spring); }
.js .tile.in .locate-flag { opacity: 1; transform: none; }
.js .tile.in .locate-flag:nth-of-type(2) { transition-delay: 0.5s; }
.js .tile.in .locate-flag:nth-of-type(3) { transition-delay: 0.8s; }

/* Grade diagram */
.grade { width: 100%; height: auto; border-radius: 16px; margin: auto 0 4px; }
.js .grade-stump { transition: opacity 1s var(--ease) 0.6s, transform 1s var(--ease) 0.6s; }
.js .tile.in .grade-stump { opacity: 0.25; transform: translateY(26px); }

/* Photo tile */
.tile-photo { padding: 0; justify-content: flex-end; }
.tile-photo .photo { position: absolute; inset: 0; z-index: 0; border-radius: inherit; }
.tile-photo .photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0, 0, 0, 0) 25%, rgba(0, 0, 0, 0.55) 55%, rgba(0, 0, 0, 0.85) 100%); }
.tile-overlay { padding: 32px; }
.tile-overlay p { color: rgba(255, 255, 255, 0.85); margin-top: 8px; }

/* Status list: one grid so icons and labels line up */
.checks { list-style: none; margin: auto 0 0; padding: 0; display: grid; gap: 8px; }
.check {
  display: grid;
  grid-template-columns: 22px 1fr;
  align-items: center;
  column-gap: 12px;
  height: 48px;
  padding: 0 16px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.1);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12);
  font-size: 15px;
  font-weight: 500;
  line-height: 1;
}
.check-icon {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 2px solid var(--accent);
  background: var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.5l2.5 2.5L12 5.5' fill='none' stroke='%23111111' stroke-width='2.2'/%3E%3C/svg%3E") center / 14px no-repeat;
}
.js .check-icon { border-color: rgba(255, 255, 255, 0.35); background-color: transparent; background-size: 0; transition: all 0.3s var(--ease); }
.js .tile.in .check-icon { border-color: var(--accent); background-color: var(--accent); background-size: 14px; }
.js .tile.in .check:nth-child(1) .check-icon { transition-delay: 0.4s; }
.js .tile.in .check:nth-child(2) .check-icon { transition-delay: 0.8s; }
.js .tile.in .check:nth-child(3) .check-icon { transition-delay: 1.2s; }

/* Local: a clear window onto the lake */
.local { min-height: 88vh; display: flex; align-items: flex-end; padding: 0 0 96px; }
.local h2 { font-size: clamp(44px, 7vw, 84px); letter-spacing: -0.045em; text-shadow: 0 2px 30px rgba(0, 0, 0, 0.3); }
.local p { margin-top: 16px; font-size: 21px; max-width: 30ch; color: #fff; text-shadow: 0 1px 16px rgba(0, 0, 0, 0.35); }

/* About */
.about { padding: 40px 0 120px; }
.about-panel { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 56px; align-items: center; padding: 24px 56px 24px 24px; }
.about-panel > * { position: relative; z-index: 2; }
.about-photo { aspect-ratio: 4 / 5; border-radius: 22px; }
.about-copy h2 { font-size: clamp(42px, 5.5vw, 60px); margin: 8px 0 22px; letter-spacing: -0.04em; }
.about-lede { font-size: 23px; font-weight: 600; letter-spacing: -0.02em; line-height: 1.3; margin-bottom: 16px; }
.about-copy p:not(.about-lede):not(.tile-eyebrow) { color: var(--text-2); font-size: 18px; }
.signature { margin-top: 26px; color: var(--text) !important; font-weight: 600; font-size: 17px !important; display: flex; flex-direction: column; }
.signature span { color: var(--text-3); font-weight: 400; font-size: 15px; }

/* Photos: show a labeled slot until the real image is added */
.photo { position: relative; margin: 0; overflow: hidden; background: rgba(255, 255, 255, 0.08); }
.photo img { width: 100%; height: 100%; object-fit: cover; }
.photo-missing { display: none; }
.photo.is-missing img { display: none; }
.photo.is-missing .photo-missing {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  position: absolute;
  inset: 0;
  color: var(--text-2);
  font-size: 15px;
  text-align: center;
  border: 1px dashed rgba(255, 255, 255, 0.3);
  border-radius: inherit;
}
.photo-missing code { font-size: 12px; color: var(--text-3); }

/* Quote builder */
.builder-sub { text-align: center; color: var(--text-2); font-size: 21px; margin-top: 16px; }
.builder-card { max-width: 680px; margin: 52px auto 0; padding: 40px; }
.builder-card > * { position: relative; z-index: 2; }
.builder-row { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 18px; flex-wrap: wrap; }
.builder-label { font-size: 21px; font-weight: 600; }
.builder-foot { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-top: 28px; padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, 0.16); }
.builder-total { color: var(--text-2); font-size: 15px; }
.builder-total span { color: var(--text); font-weight: 700; font-size: 20px; font-variant-numeric: tabular-nums; }
.contact-row { list-style: none; padding: 0; margin: 36px 0 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 32px; }
.contact-row a { color: var(--text-2); }
.contact-row a:hover { color: var(--text); }

/* Shared form controls */
.hint { color: var(--text-2); font-size: 14px; margin: -6px 0 18px; }
.stepper { display: inline-flex; align-items: center; border-radius: 980px; background: rgba(255, 255, 255, 0.12); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18); }
.stepper button { border: 0; background: transparent; width: 44px; height: 44px; font-size: 22px; color: var(--text); cursor: pointer; border-radius: 50%; transition: background 0.2s var(--ease); }
.stepper button:hover:not(:disabled) { background: rgba(255, 255, 255, 0.12); }
.stepper button:disabled { color: rgba(255, 255, 255, 0.3); cursor: default; }
.stepper output { min-width: 36px; text-align: center; font-weight: 600; font-size: 19px; font-variant-numeric: tabular-nums; }

.stump-list { display: grid; gap: 22px; }
.stump-row { padding: 2px 0; }
.stump-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 8px; }
.stump-head .label { font-size: 15px; color: var(--text-2); font-weight: 400; margin: 0; }
.stump-value { font-size: 30px; font-weight: 700; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.slider { --fill: 25%; -webkit-appearance: none; appearance: none; width: 100%; height: 34px; margin: 0; background: transparent; cursor: pointer; touch-action: pan-y; }
.slider::-webkit-slider-runnable-track { height: 6px; border-radius: 6px; background: linear-gradient(to right, #fff var(--fill), rgba(255, 255, 255, 0.2) var(--fill)); }
.slider::-moz-range-track { height: 6px; border-radius: 6px; background: rgba(255, 255, 255, 0.2); }
.slider::-moz-range-progress { height: 6px; border-radius: 6px; background: #fff; }
.slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 30px;
  height: 30px;
  margin-top: -12px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.18), 0 6px 14px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s var(--spring);
}
.slider::-moz-range-thumb { width: 30px; height: 30px; border: 0; border-radius: 50%; background: #fff; box-shadow: 0 1px 4px rgba(0, 0, 0, 0.18), 0 6px 14px rgba(0, 0, 0, 0.2); }
.slider:active::-webkit-slider-thumb { transform: scale(1.15); }
.slider:focus-visible { outline: none; }
.slider:focus-visible::-webkit-slider-thumb { box-shadow: 0 0 0 4px rgba(241, 235, 223, 0.6), 0 6px 14px rgba(0, 0, 0, 0.2); }
.slider:focus-visible::-moz-range-thumb { box-shadow: 0 0 0 4px rgba(241, 235, 223, 0.6); }
/* Tick labels sit under the thumb's center at each value (the thumb is 30px wide) */
.slider-scale { position: relative; height: 16px; margin-top: 2px; font-size: 12px; color: var(--text-3); font-variant-numeric: tabular-nums; }
.slider-scale span { position: absolute; left: calc(15px + (100% - 30px) * var(--at)); transform: translateX(-50%); white-space: nowrap; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips label { position: relative; }
.chips input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.chips span {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 8px 18px;
  border-radius: 980px;
  font-size: 15px;
  background: rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.2);
  transition: background 0.2s var(--ease), color 0.2s var(--ease);
}
.chips label:hover span { background: rgba(255, 255, 255, 0.16); }
.chips input:checked + span { background: #fff; color: var(--ink); font-weight: 600; box-shadow: none; }
.chips input:focus-visible + span { outline: 3px solid var(--accent); outline-offset: 2px; }

/* Footer */
.footer { padding: 0 0 max(28px, env(safe-area-inset-bottom, 0px)); }
.footer-panel { padding: 28px 32px; font-size: 13px; color: var(--text-2); --radius: 26px; }
.footer-panel > * { position: relative; z-index: 2; }
.footer-panel a { color: var(--text-2); }
.footer-top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px; padding-bottom: 18px; border-bottom: 1px solid rgba(255, 255, 255, 0.14); }
.verse { font-style: italic; }
.footer-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; padding: 16px 0; border-bottom: 1px solid rgba(255, 255, 255, 0.14); }
.credits { margin-top: 14px; font-size: 12px; color: var(--text-3); }
.credits a { text-decoration: underline; color: var(--text-3); }

/* Quote sheet */
.sheet {
  width: min(560px, calc(100% - 32px));
  max-height: calc(100dvh - 32px);
  padding: 0;
  border: 0;
  border-radius: 34px;
  color: var(--text);
  background: rgba(36, 44, 52, 0.55);
  -webkit-backdrop-filter: blur(40px) saturate(180%);
  backdrop-filter: blur(40px) saturate(180%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.3), inset 0 0 0 1px rgba(255, 255, 255, 0.14), 0 30px 90px rgba(0, 0, 0, 0.45);
}
.sheet::backdrop { background: rgba(5, 10, 15, 0.35); }
.sheet[open] { animation: rise 0.5s var(--spring); }
@keyframes rise { from { opacity: 0; transform: translateY(40px) scale(0.97); } to { opacity: 1; transform: none; } }
.sheet-body { padding: 28px 32px 32px; }
.sheet-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.progress { color: var(--text-2); font-size: 13px; }
.close { border: 0; background: rgba(255, 255, 255, 0.14); width: 32px; height: 32px; border-radius: 50%; font-size: 20px; line-height: 1; color: var(--text); cursor: pointer; }
.step { border: 0; margin: 0; padding: 0; min-width: 0; }
.step legend { padding: 0; margin-bottom: 24px; }
.step h2 { font-size: 32px; letter-spacing: -0.03em; }
.done { text-align: center; padding: 16px 0 8px; }
.done h2 { margin-bottom: 12px; }
.done p { color: var(--text-2); }
.done a { color: var(--accent); }
.done-check svg { width: 72px; height: 72px; margin: 0 auto 20px; fill: none; stroke: var(--accent); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.done-check circle { stroke-dasharray: 151; stroke-dashoffset: 151; animation: draw 0.6s var(--ease) forwards; }
.done-check path { stroke-dasharray: 36; stroke-dashoffset: 36; animation: draw 0.4s var(--ease) 0.5s forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.field { display: block; margin-bottom: 20px; }
.label { display: block; font-weight: 500; font-size: 15px; margin-bottom: 8px; }
.optional { color: var(--text-3); font-weight: 400; }
.field input {
  width: 100%;
  font: inherit;
  padding: 12px 16px;
  min-height: 50px;
  border: 0;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.1);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.2);
  color: var(--text);
}
.field input::placeholder { color: var(--text-3); }
.field input:focus { outline: none; background: rgba(255, 255, 255, 0.16); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.5), 0 0 0 4px rgba(241, 235, 223, 0.3); }
.field input[aria-invalid="true"] { box-shadow: inset 0 0 0 1.5px var(--error); }
.form-error { color: var(--error); font-size: 14px; }
.sheet-foot { display: flex; justify-content: flex-end; gap: 10px; margin-top: 8px; }
.sheet-foot .btn[data-next] { min-width: 140px; }

/* Scroll reveal (only when JS runs, so content never stays hidden) */
.js .reveal { opacity: 0; transform: translateY(36px) scale(0.985); transition: opacity 0.9s var(--ease), transform 1s var(--spring); }
.js .reveal.in { opacity: 1; transform: none; }
.js .bento .reveal:nth-child(2) { transition-delay: 0.08s; }
.js .bento .reveal:nth-child(3) { transition-delay: 0.04s; }
.js .bento .reveal:nth-child(4) { transition-delay: 0.12s; }
.js .bento .reveal:nth-child(5) { transition-delay: 0.2s; }

/* Responsive */
@media (max-width: 960px) {
  .nav-links { display: none; }
  .nav-call { margin-left: auto; }
  .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tile-wide { grid-column: 1 / -1; }
}

@media (max-width: 734px) {
  body { font-size: 16px; }
  .nav { height: 54px; gap: 12px; }
  .nav-call span { display: none; }
  .nav-call { width: 36px; height: 36px; justify-content: center; border-radius: 50%; background: rgba(255, 255, 255, 0.12); }
  .hero { padding: 120px 0 96px; }
  .why, .builder { padding: 80px 0; }
  .bento { grid-template-columns: minmax(0, 1fr); margin-top: 44px; gap: 14px; }
  .tile { min-height: 0; padding: 30px 24px; }
  .tile-wide { flex-direction: column; align-items: stretch; }
  .phone { align-self: center; width: 220px; margin-bottom: -96px; }
  .tile-photo { min-height: 360px; }
  .locate { margin-top: 12px; }
  .grade { margin-top: 8px; }
  .checks { margin-top: 10px; }
  .local { min-height: 70vh; padding-bottom: 64px; }
  .about { padding: 24px 0 80px; }
  .about-panel { grid-template-columns: minmax(0, 1fr); gap: 28px; padding: 14px 14px 32px; }
  .about-copy { padding: 0 12px; }
  .builder-card { padding: 28px 20px; margin-top: 36px; }
  .builder-foot { flex-direction: column; align-items: stretch; text-align: center; }
  .footer-panel { padding: 24px 20px; }
  .sheet { width: 100%; max-width: 100%; margin: auto 0 0; border-radius: 30px 30px 0 0; max-height: 92dvh; }
  .sheet-body { padding: 22px 20px calc(28px + env(safe-area-inset-bottom, 0px)); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
  .js .locate-flag { opacity: 1; transform: none; }
  .backdrop img { transform: none; }
}

/* FAQ page */
.nav-links a[aria-current="page"] { color: var(--text); font-weight: 600; }
.faq-hero { padding: 168px 0 56px; }
.faq-hero h1 { font-size: clamp(48px, 8vw, 88px); letter-spacing: -0.045em; line-height: 1; text-shadow: 0 2px 40px rgba(0, 0, 0, 0.25); }
.faq-hero .hero-sub { max-width: 36ch; }
.faq-hero .container, .faq-groups { max-width: calc(760px + 44px); }

.faq-body { padding: 8px 0 120px; }
.faq-groups { display: grid; gap: 22px; }
.faq-list { padding: 8px 36px; }
.faq-list > * { position: relative; z-index: 2; }
.qa + .qa { border-top: 1px solid rgba(255, 255, 255, 0.12); }
.qa summary {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 0;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.3;
  color: rgba(255, 255, 255, 0.92);
  cursor: pointer;
  transition: color 0.2s var(--ease);
}
.qa summary::-webkit-details-marker { display: none; }
.qa summary:hover, .qa[open] summary { color: #fff; }
.qa-chevron { flex: none; color: var(--text-3); transition: transform 0.45s var(--spring), color 0.2s var(--ease); }
.qa summary:hover .qa-chevron { color: var(--text); }
.qa[open] .qa-chevron { transform: rotate(180deg); color: var(--text); }
.qa-body { padding: 0 38px 22px 0; }
.qa-body p { color: var(--text-2); font-size: 16px; line-height: 1.55; max-width: 60ch; }

/* Smooth open and close where the browser can animate to auto height */
@supports (interpolate-size: allow-keywords) {
  .qa { interpolate-size: allow-keywords; }
  .qa::details-content { height: 0; overflow: clip; opacity: 0; transition: height 0.45s var(--spring), opacity 0.35s var(--ease), content-visibility 0.45s allow-discrete; }
  .qa[open]::details-content { height: auto; opacity: 1; }
}

.faq-cta { padding: 40px 36px; text-align: center; }
.faq-cta > * { position: relative; z-index: 2; }
.faq-cta h2 { font-size: clamp(26px, 3.4vw, 34px); letter-spacing: -0.03em; }
.faq-cta p { color: var(--text-2); margin-top: 10px; }
.faq-cta p a { color: var(--text); font-weight: 600; }
.faq-cta .actions { justify-content: center; margin-top: 24px; }

@media (max-width: 734px) {
  .faq-hero { padding: 132px 0 40px; }
  .faq-body { padding: 0 0 80px; }
  .faq-list { padding: 4px 22px; }
  .qa summary { font-size: 17px; padding: 18px 0; }
  .qa-body { padding-right: 0; }
  .faq-cta { padding: 32px 22px; }
}

/* Privacy and terms pages */
.legal-hero h1 { font-size: clamp(44px, 7vw, 76px); }
.legal { padding: 44px 48px 48px; }
.legal > * { position: relative; z-index: 2; }
.legal-date { color: var(--text-3); font-size: 14px; margin-bottom: 18px; }
.legal p, .legal li { color: var(--text-2); font-size: 16px; line-height: 1.6; max-width: 66ch; }
.legal p + p { margin-top: 12px; }
.legal h2 { font-size: 22px; letter-spacing: -0.02em; margin: 36px 0 10px; color: var(--text); }
.legal ul { margin: 0; padding-left: 20px; display: grid; gap: 8px; }
.legal strong { color: var(--text); font-weight: 600; }
.legal a { color: var(--text); text-decoration: underline; text-underline-offset: 2px; }
.consent { color: var(--text-3); font-size: 12px; line-height: 1.5; margin-top: 4px; }
.consent a { color: var(--text-2); text-decoration: underline; }
@media (max-width: 734px) {
  .legal { padding: 30px 22px 34px; }
}

/* Spam trap: hidden from people, often filled in by bots. */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* 404 page */
.notfound { min-height: 100svh; display: flex; align-items: center; padding: 120px 0 80px; }
.notfound .container { width: 100%; max-width: calc(640px + 44px); }
.notfound-card { padding: 48px 44px 40px; text-align: center; }
.notfound-card > * { position: relative; z-index: 2; }
.notfound-code { font-size: 15px; font-weight: 600; letter-spacing: 0.12em; color: #fff; }
.notfound-card h1 { font-size: clamp(34px, 6vw, 52px); letter-spacing: -0.04em; margin-top: 10px; }
.notfound-sub { color: var(--text-2); font-size: 18px; margin-top: 14px; }
.notfound-card .actions { justify-content: center; margin-top: 30px; }
.notfound-links { margin-top: 26px; font-size: 15px; color: var(--text-3); }
.notfound-links a { color: var(--text-2); }
@media (max-width: 734px) {
  .notfound-card { padding: 36px 22px 30px; }
}
