/* Dovetail — late 2026 marketing site.
   Palette: brand navy + brand gold on drafting vellum. One type family
   (Bricolage Grotesque) worked across its width and optical-size axes. */

/* Self-hosted from Google Fonts (OFL, licences beside them), latin and latin-ext only: a browser
   fetches a file only when the page uses a character in its range. The version is in the file
   name, so render.yaml caches them for a year; a new version is a new name. */
@font-face {
  font-family: 'Big Shoulders Display';
  font-style: normal;
  font-weight: 600 900;
  font-display: swap;
  src: url('/assets/fonts/big-shoulders-display-v24-latin-ext.woff2') format('woff2');
  unicode-range:
    U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329,
    U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F,
    U+A720-A7FF;
}
@font-face {
  font-family: 'Big Shoulders Display';
  font-style: normal;
  font-weight: 600 900;
  font-display: swap;
  src: url('/assets/fonts/big-shoulders-display-v24-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;
}
@font-face {
  font-family: 'Bricolage Grotesque';
  font-style: normal;
  font-weight: 300 800;
  font-stretch: 75% 100%;
  font-display: swap;
  src: url('/assets/fonts/bricolage-grotesque-v9-latin-ext.woff2') format('woff2');
  unicode-range:
    U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329,
    U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F,
    U+A720-A7FF;
}
@font-face {
  font-family: 'Bricolage Grotesque';
  font-style: normal;
  font-weight: 300 800;
  font-stretch: 75% 100%;
  font-display: swap;
  src: url('/assets/fonts/bricolage-grotesque-v9-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;
}
/* Until the web fonts arrive, Arial (or a metric twin) stands in, scaled to each face's width and
   line metrics, so the swap doesn't reflow the page (PageSpeed counted it as layout shift: the
   wider system-ui fallback wrapped differently). Measured from the woff2 files with fontTools:
   size-adjust = average glyph width / Arial's, at the weight the text uses (headings: 800 against
   Arial Bold, hence the bold faces); the overrides = the face's ascent and descent over that.
   Re-measure if a font changes. */
@font-face {
  font-family: 'Bricolage Fallback';
  font-weight: 300 550;
  src:
    local('Arial'), local('ArialMT'), local('Liberation Sans'), local('Arimo'), local('Helvetica');
  size-adjust: 100%;
  ascent-override: 93%;
  descent-override: 27%;
  line-gap-override: 0%;
}
@font-face {
  font-family: 'Bricolage Fallback';
  font-weight: 551 800;
  src:
    local('Arial Bold'), local('Arial-BoldMT'), local('Liberation Sans Bold'),
    local('LiberationSans-Bold'), local('Arimo Bold'), local('Arimo-Bold'), local('Helvetica Bold'),
    local('Helvetica-Bold');
  size-adjust: 100%;
  ascent-override: 93%;
  descent-override: 27%;
  line-gap-override: 0%;
}
@font-face {
  font-family: 'Big Shoulders Fallback';
  font-weight: 600 900;
  src:
    local('Arial Bold'), local('Arial-BoldMT'), local('Liberation Sans Bold'),
    local('LiberationSans-Bold'), local('Arimo Bold'), local('Arimo-Bold'), local('Helvetica Bold'),
    local('Helvetica-Bold');
  size-adjust: 78%;
  ascent-override: 126%;
  descent-override: 27%;
  line-gap-override: 0%;
}

:root {
  --navy: #12355b;
  --navy-deep: #0a2340;
  --gold: #d9a242;
  --gold-ink: #8f6415; /* gold dark enough to read as text on light */
  --vellum: #eef2f5;
  --paper: #ffffff;
  --rule: #cfd9e3;
  --ink: #13263b;
  --muted: #53677d;
  --good: #2f7d57;
  --warn: #a4431f;

  --wrap: 1240px;
  --gutter: clamp(16px, 4vw, 48px);
  --nav-h: 68px;
  --ease: cubic-bezier(0.2, 0.7, 0.1, 1);

  --f: 'Bricolage Grotesque', 'Bricolage Fallback', ui-sans-serif, system-ui, sans-serif;
  --f-display: 'Big Shoulders Display', 'Big Shoulders Fallback', sans-serif;
  --ds: 1.12; /* display size multiplier per face */
  --dtrack: -0.01em;
  --dwt: 800;
  --dvar: normal;
  --hvar: normal;
  --t-body: 1.0625rem;
  --t-small: 0.9375rem;
  --t-h3: 1.25rem;
  --t-display: clamp(2.5rem, 5.6vw, 5rem);
  --t-hero: clamp(3.4rem, 7.4vw, 6.8rem);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
}
html.lenis,
html.lenis body {
  height: auto;
}
.lenis.lenis-smooth {
  scroll-behavior: auto !important;
}
body {
  margin: 0;
  background: var(--vellum);
  color: var(--ink);
  font-family: var(--f);
  font-size: var(--t-body);
  line-height: 1.55;
  font-variation-settings: 'opsz' 16;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img {
  display: block;
  max-width: 100%;
  height: auto;
}
[hidden] {
  display: none !important;
}
h1,
h2,
h3,
p {
  margin: 0;
}
a {
  color: inherit;
}
button {
  font: inherit;
  color: inherit;
}
:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
  border-radius: 4px;
}

.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
.skip {
  position: fixed;
  left: 12px;
  top: -60px;
  z-index: 100;
  background: var(--navy);
  color: #fff;
  padding: 10px 16px;
  border-radius: 8px;
}
.skip:focus {
  top: 12px;
}

.display {
  font-family: var(--f-display);
  font-size: calc(var(--t-display) * var(--ds));
  line-height: 0.98;
  font-weight: var(--dwt);
  letter-spacing: var(--dtrack);
  font-variation-settings: var(--dvar);
  text-wrap: balance;
}

/* ---------- Buttons ---------- */
.btn {
  --bg: var(--navy);
  --fg: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  min-height: 52px;
  padding: 0 26px;
  border: 0;
  border-radius: 999px;
  background: var(--bg);
  color: var(--fg);
  font-weight: 650;
  font-size: 1rem;
  text-decoration: none;
  cursor: pointer;
  transition:
    background-color 0.25s var(--ease),
    box-shadow 0.25s var(--ease);
  will-change: transform;
}
.btn--gold {
  --bg: var(--gold);
  --fg: var(--navy-deep);
}
.btn--gold:hover {
  --bg: #e5b35a;
  box-shadow: 0 10px 30px -10px rgba(217, 162, 66, 0.8);
}
.btn--ghost {
  --bg: transparent;
  --fg: var(--navy);
  box-shadow: inset 0 0 0 1.5px currentColor;
}
.btn--ghost:hover {
  --bg: rgba(18, 53, 91, 0.06);
}
.btn--sm {
  min-height: 40px;
  padding: 0 18px;
  font-size: 0.9375rem;
}
.btn--block {
  width: 100%;
}
/* "Continue with Google", in Google's own button colors (their branding guidelines). */
.btn--google {
  --bg: #fff;
  --fg: #3c4043;
  gap: 12px;
  box-shadow: inset 0 0 0 1px #dadce0;
}
.btn--google:hover {
  --bg: #f8f9fa;
}
.btn--google:disabled {
  cursor: progress;
  opacity: 0.7;
}
.btn--google svg {
  flex: none;
  width: 18px;
  height: 18px;
}

/* ---------- Nav ---------- */
.nav {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--gutter);
  transition:
    background-color 0.35s var(--ease),
    box-shadow 0.35s var(--ease);
}
.nav.is-solid {
  background: rgba(238, 242, 245, 0.86);
  backdrop-filter: blur(14px) saturate(1.4);
  -webkit-backdrop-filter: blur(14px) saturate(1.4);
  box-shadow: 0 1px 0 var(--rule);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 750;
  font-size: 1.25rem;
  letter-spacing: -0.01em;
  color: var(--navy);
}
.brand--light {
  color: #fff;
}
.mark {
  width: 26px;
  height: 26px;
  overflow: visible;
}
.mark__navy {
  fill: var(--navy);
}
.brand--light .mark__navy {
  fill: #fff;
}
.mark__gold {
  fill: var(--gold);
}
.nav__links {
  display: flex;
  align-items: center;
  gap: clamp(14px, 2.4vw, 30px);
  font-weight: 550;
  font-size: 0.9375rem;
}
.nav__links > a:not(.btn) {
  text-decoration: none;
  color: var(--navy);
  position: relative;
}
.nav__links > a:not(.btn)::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -4px;
  height: 2px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.35s var(--ease);
}
.nav__links > a:not(.btn):hover::after {
  transform: scaleX(1);
  transform-origin: left;
}
.pill {
  display: inline-block;
  margin-left: 4px;
  padding: 1px 8px;
  border-radius: 999px;
  background: var(--navy);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 650;
  vertical-align: 1px;
}
@media (max-width: 820px) {
  .nav__links > a:not(.btn) {
    display: none;
  }
}

/* ---------- The build (pinned 3D) ---------- */
.build {
  position: relative;
}
.build__stage {
  position: relative;
  height: 100vh;
  height: 100svh;
  overflow: hidden;
  background-color: var(--vellum);
  background-image:
    linear-gradient(rgba(18, 53, 91, var(--grid, 0.07)) 1px, transparent 1px),
    linear-gradient(90deg, rgba(18, 53, 91, var(--grid, 0.07)) 1px, transparent 1px);
  background-size: 32px 32px;
  background-position: center;
}
.build__canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}
.build__fallback {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
/* Still photo in place of the 3D kitchen: fade it under the hero copy so the headline stays readable. */
.build__stage.is-fallback::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(
    90deg,
    rgba(238, 242, 245, 0.96) 0%,
    rgba(238, 242, 245, 0.88) 38%,
    rgba(238, 242, 245, 0) 62%
  );
}
@media (max-width: 820px) {
  .build__stage.is-fallback::after {
    background: linear-gradient(
      0deg,
      rgba(238, 242, 245, 0.97) 0%,
      rgba(238, 242, 245, 0.9) 50%,
      rgba(238, 242, 245, 0) 75%
    );
  }
}

.hero {
  position: absolute;
  z-index: 2;
  left: var(--gutter);
  top: 50%;
  translate: 0 -46%;
  width: min(640px, 52vw);
}
.hero__title {
  font-family: var(--f-display);
  font-size: calc(var(--t-hero) * var(--ds));
  line-height: 0.9;
  font-weight: var(--dwt);
  letter-spacing: calc(var(--dtrack) - 0.01em);
  color: var(--navy);
  font-variation-settings: var(--hvar);
  margin-bottom: 28px;
}
.hero__title .line {
  display: block;
  overflow: hidden;
  padding-bottom: 0.06em;
  margin-bottom: -0.06em;
}
.hero__title .char {
  display: inline-block;
  will-change: transform;
}
.hero__title .w {
  display: inline-block;
  white-space: nowrap;
}
.hero__lede {
  max-width: 30em;
  font-size: 1.1875rem;
  color: var(--muted);
  margin-bottom: 32px;
}
.hero__actions {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}
.hero__hint {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: var(--t-small);
  color: var(--muted);
}
.hero__wheel {
  width: 20px;
  height: 30px;
  border: 1.5px solid currentColor;
  border-radius: 10px;
  position: relative;
}
.hero__wheel::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 6px;
  width: 2px;
  height: 6px;
  margin-left: -1px;
  border-radius: 2px;
  background: var(--gold-ink);
  animation: wheel 1.8s var(--ease) infinite;
}
@keyframes wheel {
  0% {
    opacity: 0;
    transform: translateY(-3px);
  }
  30% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: translateY(9px);
  }
}

.chapters {
  list-style: none;
  margin: 0;
  padding: 0;
  position: absolute;
  z-index: 2;
  left: var(--gutter);
  top: 50%;
  translate: 0 -50%;
  width: min(420px, 38vw);
  display: grid;
}
.chapter {
  grid-area: 1 / 1;
  align-self: center;
  padding: 28px 28px 30px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.9) inset,
    0 24px 60px -30px rgba(10, 35, 64, 0.35);
  visibility: hidden;
  opacity: 0;
}
.chapter__step {
  font-size: var(--t-small);
  font-weight: 600;
  color: var(--gold-ink);
  margin-bottom: 10px;
}
.chapter h2 {
  font-family: var(--f-display);
  font-size: calc(clamp(1.75rem, 2.6vw, 2.4rem) * var(--ds));
  line-height: 1.04;
  font-weight: var(--dwt);
  letter-spacing: var(--dtrack);
  color: var(--navy);
  margin-bottom: 12px;
  font-variation-settings: var(--dvar);
}
.chapter p {
  color: var(--muted);
}

.swatches {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}
.swatch {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 0 14px 0 10px;
  border: 1.5px solid var(--rule);
  border-radius: 999px;
  background: #fff;
  cursor: pointer;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--navy);
  transition:
    border-color 0.2s,
    transform 0.2s var(--ease);
}
.swatch img {
  width: 16px;
  height: 30px;
  object-fit: cover;
  border-radius: 2px;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.12);
  transition: transform 0.35s var(--ease);
}
.swatch:hover img {
  transform: scale(1.15) rotate(-6deg);
}
.swatch.is-on {
  border-color: var(--navy);
}

.estimate {
  position: absolute;
  z-index: 2;
  right: var(--gutter);
  top: calc(var(--nav-h) + 16px);
  display: grid;
  gap: 2px;
  min-width: 190px;
  padding: 14px 18px 16px;
  border-radius: 16px;
  background: var(--navy);
  color: #fff;
  box-shadow: 0 20px 50px -24px rgba(10, 35, 64, 0.7);
  opacity: 0;
  transform: translateY(-10px);
}
.estimate__label {
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.66);
  font-weight: 550;
}
.estimate__total {
  font-family: var(--f-display);
  font-size: 2.25rem;
  line-height: 1.05;
  font-weight: 800;
  color: var(--gold);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0;
}
.estimate__total.is-bump {
  animation: bump 0.45s var(--ease);
}
@keyframes bump {
  40% {
    transform: scale(1.06);
  }
}
.estimate__total {
  transform-origin: left center;
}
.estimate__lines {
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.66);
  font-variant-numeric: tabular-nums;
}

.progress {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  background: rgba(18, 53, 91, 0.08);
  z-index: 2;
}
.progress span {
  display: block;
  height: 100%;
  background: var(--gold);
  transform-origin: left;
  transform: scaleX(0);
}

@media (max-width: 820px) {
  .hero {
    top: auto;
    bottom: 36px;
    translate: none;
    width: auto;
    right: var(--gutter);
  }
  .hero__lede {
    font-size: 1.0625rem;
  }
  .chapters {
    top: auto;
    bottom: 20px;
    translate: none;
    right: var(--gutter);
    width: auto;
  }
  .chapter {
    padding: 20px 20px 22px;
  }
  .chapter h2 {
    font-size: 1.6rem;
  }
  .estimate {
    min-width: 0;
    padding: 10px 14px 12px;
  }
  .estimate__total {
    font-size: 1.5rem;
  }
}

/* Reduced motion: no pin — the finished kitchen, with the six steps listed below it. */
.is-reduced .build__stage {
  height: auto;
  min-height: 0;
  overflow: visible;
  padding: calc(var(--nav-h) + 24px) 0 64px;
}
.is-reduced .build__canvas {
  position: relative;
  height: 62vh;
}
.is-reduced .hero {
  position: relative;
  left: auto;
  top: auto;
  bottom: auto;
  translate: none;
  width: auto;
  padding: 0 var(--gutter);
  margin-bottom: 32px;
}
.is-reduced .chapters {
  position: relative;
  left: auto;
  top: auto;
  bottom: auto;
  translate: none;
  width: auto;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
  padding: 32px var(--gutter) 0;
  max-width: var(--wrap);
  margin: 0 auto;
}
.is-reduced .chapter {
  grid-area: auto;
  visibility: visible;
  opacity: 1;
}
.is-reduced .estimate {
  opacity: 1;
  transform: none;
}
.is-reduced .progress,
.is-reduced .hero__hint {
  display: none;
}

/* ---------- Sections ---------- */
.sec-head {
  display: grid;
  gap: 20px;
  max-width: 760px;
  margin-bottom: clamp(48px, 7vw, 96px);
}
.sec-head__lede {
  font-size: 1.1875rem;
  color: var(--muted);
  max-width: 34em;
}
.display .word {
  display: inline-block;
}

/* Fill the room */
.fillroom {
  padding: clamp(96px, 14vw, 180px) 0;
  background-color: var(--vellum);
  background-image:
    linear-gradient(rgba(18, 53, 91, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(18, 53, 91, 0.06) 1px, transparent 1px);
  background-size: 32px 32px;
}
.fillroom__grid {
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  gap: clamp(40px, 6vw, 96px);
  align-items: center;
}
.fillroom__copy {
  display: grid;
  gap: 24px;
}
.fillroom__copy .display {
  color: var(--navy);
}
.fillroom__lede {
  font-size: 1.125rem;
  color: var(--muted);
  max-width: 32em;
}

.fr-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}
.fr-steps li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 600;
  color: var(--muted);
  transition: color 0.35s var(--ease);
}
.fr-steps span {
  display: inline-grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 1.5px solid var(--rule);
  font-size: 0.875rem;
  font-weight: 750;
  background: #fff;
  transition:
    background-color 0.35s var(--ease),
    border-color 0.35s,
    color 0.35s;
}
.fr-steps li.is-active {
  color: var(--navy);
}
.fr-steps li.is-active span {
  border-color: var(--navy);
  color: var(--navy);
}
.fr-steps li.is-done {
  color: var(--navy);
}
.fr-steps li.is-done span {
  background: var(--navy);
  border-color: var(--navy);
  color: #fff;
}

.fr-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  margin-top: 4px;
}
.fr-tabs {
  display: inline-flex;
  padding: 4px;
  border-radius: 999px;
  background: #fff;
  box-shadow: inset 0 0 0 1px var(--rule);
}
.fr-tab {
  border: 0;
  background: none;
  min-height: 40px;
  padding: 0 16px;
  border-radius: 999px;
  font-weight: 650;
  font-size: 0.9375rem;
  color: var(--navy);
  cursor: pointer;
  transition:
    background-color 0.3s var(--ease),
    color 0.3s;
}
.fr-tab.is-on {
  background: var(--navy);
  color: #fff;
}
.fr-fill {
  position: relative;
}
.fr-fill:disabled {
  cursor: default;
  opacity: 0.55;
}
.fr-fill.is-ready {
  opacity: 1;
  animation: fr-pulse 1.6s var(--ease) infinite;
}
.fr-fill.is-done {
  --bg: var(--navy);
  --fg: #fff;
  opacity: 1;
}
@keyframes fr-pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(217, 162, 66, 0.6);
  }
  70% {
    box-shadow: 0 0 0 16px rgba(217, 162, 66, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(217, 162, 66, 0);
  }
}

.fr-plan {
  margin: 0;
  display: grid;
  gap: 16px;
}
.fr-plan__sheet {
  background: #fff;
  border-radius: 24px;
  padding: clamp(12px, 2.5vw, 28px);
  box-shadow:
    0 1px 0 var(--rule),
    0 40px 90px -50px rgba(10, 35, 64, 0.45);
}
.fr-svg {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1.2;
  overflow: visible;
  font-family: var(--f);
}
.fr-wall {
  fill: none;
  stroke: var(--navy);
  stroke-width: 5;
  stroke-linecap: square;
}
.fr-dim line {
  stroke: var(--gold-ink);
  stroke-width: 0.8;
}
.fr-dim text {
  fill: var(--gold-ink);
  font-size: 6.5px;
  font-weight: 700;
  text-anchor: middle;
}
.fr-cab {
  fill: #e7d4bb;
  stroke: var(--navy);
  stroke-width: 0.9;
}
.fr-cab--corner {
  fill: #dfc8aa;
}
.fr-cab--appliance {
  fill: #d3d8dd;
}
.fr-cab--filler {
  fill: var(--gold);
}
.fr-cab--wall,
.fr-cab--wallcorner {
  fill: rgba(18, 53, 91, 0.07);
  stroke-dasharray: 2.2 1.6;
}
.fr-label--wall {
  font-size: 4.2px;
  font-weight: 600;
  fill: var(--muted);
}
.fr-anchor {
  fill: var(--navy);
}
.fr-anchor-mark {
  fill: none;
  stroke: #fff;
  stroke-width: 0.9;
}
.fr-label {
  font-size: 4.2px;
  font-weight: 650;
  fill: var(--navy);
  text-anchor: middle;
  dominant-baseline: central;
  pointer-events: none;
}
.fr-label--anchor {
  fill: #fff;
  font-size: 4.8px;
}

.fr-legend {
  display: flex;
  gap: 18px;
  margin-top: 10px;
  padding-left: 4px;
  font-size: 0.8125rem;
  color: var(--muted);
}
.fr-legend span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.fr-legend i {
  width: 18px;
  height: 12px;
  border-radius: 2px;
  border: 1.5px solid var(--navy);
  background: #e7d4bb;
}
.fr-legend i.is-wall {
  background: rgba(18, 53, 91, 0.07);
  border-style: dashed;
}
.fr-legend i.is-filler {
  background: var(--gold);
}
.fr-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.fr-stats div {
  display: grid;
  gap: 2px;
  padding: 14px 16px;
  border-radius: 16px;
  background: #fff;
  box-shadow: inset 0 0 0 1px var(--rule);
}
.fr-stats strong {
  font-family: var(--f-display);
  font-weight: 800;
  font-size: 2rem;
  line-height: 1;
  color: var(--navy);
  font-variant-numeric: tabular-nums;
}
.fr-stats span {
  font-size: 0.875rem;
  color: var(--muted);
}
@media (max-width: 900px) {
  .fillroom__grid {
    grid-template-columns: 1fr;
  }
  .fr-stats strong {
    font-size: 1.6rem;
  }
}

/* Workarounds */
.workarounds {
  padding: clamp(96px, 14vw, 180px) 0;
  background: var(--paper);
  overflow-x: clip;
}
.workarounds .display {
  color: var(--navy);
}
.hacks {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--rule);
}
.hack {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(20px, 5vw, 80px);
  padding: clamp(28px, 4vw, 44px) 0;
  border-bottom: 1px solid var(--rule);
}
.hack__old {
  font-size: clamp(1.25rem, 2vw, 1.625rem);
  line-height: 1.3;
  color: var(--muted);
  font-weight: 450;
}
.hack__text {
  --p: 0%;
  background-image: linear-gradient(var(--gold), var(--gold));
  background-repeat: no-repeat;
  background-size: var(--p) 3px;
  background-position: 0 58%;
  -webkit-box-decoration-break: slice;
  box-decoration-break: slice;
}
.hack__new {
  font-size: var(--t-body);
  color: var(--ink);
  align-self: center;
}
.hack__new strong {
  display: block;
  font-size: 1.25rem;
  color: var(--navy);
  font-weight: 700;
  margin-bottom: 4px;
}
.is-reduced .hack__text {
  --p: 100%;
}
@media (max-width: 720px) {
  .hack {
    grid-template-columns: 1fr;
  }
}

/* One app — horizontal */
.flow {
  background: var(--navy-deep);
  color: #fff;
}
.flow__pin {
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: clamp(28px, 4vw, 48px);
  padding: calc(var(--nav-h) + 24px) 0 48px;
  overflow: hidden;
}
.flow__head {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 32px;
  align-items: end;
  width: 100%;
}
.flow__head p {
  color: rgba(255, 255, 255, 0.72);
  max-width: 30em;
}
.flow__track {
  display: flex;
  gap: clamp(16px, 2.4vw, 32px);
  padding: 0 var(--gutter);
  padding-left: max(var(--gutter), calc((100vw - var(--wrap)) / 2 + var(--gutter)));
  width: max-content;
  will-change: transform;
}
.panel {
  margin: 0;
  width: min(66vw, 760px);
  flex: none;
}
.panel__shot {
  aspect-ratio: 16 / 10;
  border-radius: 16px;
  overflow: hidden;
  background: #0f2c4c;
  box-shadow: 0 30px 80px -40px rgba(0, 0, 0, 0.8);
}
.panel__shot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top left;
  transform: scale(1.08);
  will-change: transform;
}
.panel__shot--photo img {
  object-position: center 60%;
}
/* A composed layout with labels near its edges: show it whole, no zoom or drift. */
.panel__shot--flat img {
  transform: none;
}
.panel figcaption {
  margin-top: 18px;
  color: rgba(255, 255, 255, 0.72);
  max-width: 34em;
}
.panel figcaption strong {
  color: #fff;
}
.panel__n {
  display: inline-grid;
  place-items: center;
  width: 26px;
  height: 26px;
  margin-right: 10px;
  border-radius: 50%;
  background: var(--gold);
  color: var(--navy-deep);
  font-weight: 750;
  font-size: 0.8125rem;
  vertical-align: 1px;
}
.tape {
  width: 100%;
}
.tape__blade {
  height: 22px;
  border-radius: 3px;
  transform-origin: left;
  transform: scaleX(0.02);
  background-color: var(--gold);
  background-image:
    repeating-linear-gradient(90deg, rgba(10, 35, 64, 0.8) 0 1.5px, transparent 1.5px 64px),
    repeating-linear-gradient(90deg, rgba(10, 35, 64, 0.55) 0 1px, transparent 1px 16px),
    repeating-linear-gradient(90deg, rgba(10, 35, 64, 0.35) 0 1px, transparent 1px 8px);
  background-size:
    100% 100%,
    100% 55%,
    100% 32%;
  background-repeat: no-repeat;
}
@media (max-width: 820px) {
  .flow__head {
    grid-template-columns: 1fr;
  }
  .panel {
    width: 82vw;
  }
}
.is-reduced .flow__track {
  width: auto;
  flex-wrap: wrap;
}
.is-reduced .panel {
  width: min(100%, 560px);
}
.is-reduced .tape {
  display: none;
}

/* Get paid */
.paid {
  padding: clamp(96px, 14vw, 180px) 0;
  background: var(--vellum);
  overflow: hidden;
}
.paid__grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: clamp(40px, 7vw, 120px);
  align-items: center;
}
.paid__copy {
  display: grid;
  gap: 20px;
}
.paid__copy .display {
  color: var(--navy);
  margin-bottom: 8px;
}
.paid__copy p {
  color: var(--muted);
  max-width: 32em;
  font-size: 1.125rem;
}
.phone {
  position: relative;
  justify-self: center;
  width: min(360px, 100%);
  padding: 12px;
  border-radius: 44px;
  background: var(--navy-deep);
  box-shadow: 0 50px 100px -40px rgba(10, 35, 64, 0.55);
}
.phone__screen {
  border-radius: 34px;
  background: #fff;
  padding: 26px 22px 22px;
  min-height: 540px;
  display: flex;
  flex-direction: column;
}
.phone__bar {
  display: flex;
  justify-content: space-between;
  font-size: 0.8125rem;
  color: var(--muted);
  padding-bottom: 16px;
  border-bottom: 1px solid var(--rule);
  margin-bottom: 8px;
}
.phone__bar span:first-child {
  font-weight: 700;
  color: var(--navy);
}
.phone__lines {
  list-style: none;
  margin: 0;
  padding: 0;
}
.phone__lines li,
.phone__total,
.phone__due {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-variant-numeric: tabular-nums;
}
.phone__lines li {
  padding: 11px 0;
  border-bottom: 1px dashed var(--rule);
  font-size: 0.9375rem;
}
.phone__lines li span:last-child {
  font-weight: 600;
}
.phone__total {
  padding: 16px 0 4px;
  font-weight: 750;
  font-size: 1.375rem;
  color: var(--navy);
}
.phone__due {
  font-size: 0.9375rem;
  color: var(--muted);
  margin-bottom: 20px;
}
.phone__pay {
  margin-top: auto;
  position: relative;
  height: 56px;
  border: 0;
  border-radius: 16px;
  overflow: hidden;
  background: var(--navy);
  color: #fff;
  font-weight: 700;
  cursor: default;
  transition: background-color 0.4s var(--ease);
}
.phone__pay > span {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition:
    transform 0.5s var(--ease),
    opacity 0.3s;
}
.phone__pay-done {
  transform: translateY(100%);
  opacity: 0;
}
.phone__pay-done svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 24;
  stroke-dashoffset: 24;
  transition: stroke-dashoffset 0.5s 0.25s var(--ease);
}
.phone__pay.is-paid {
  background: var(--good);
}
.phone__pay.is-paid .phone__pay-idle {
  transform: translateY(-100%);
  opacity: 0;
}
.phone__pay.is-paid .phone__pay-done {
  transform: none;
  opacity: 1;
}
.phone__pay.is-paid svg {
  stroke-dashoffset: 0;
}
.phone__pay.is-press {
  transform: scale(0.96);
}
.toast {
  position: absolute;
  right: -56px;
  top: -28px;
  display: grid;
  gap: 2px;
  padding: 14px 18px;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 24px 60px -24px rgba(10, 35, 64, 0.45);
  font-size: 0.875rem;
  color: var(--muted);
  border-left: 4px solid var(--good);
  opacity: 0;
  transform: translate(20px, -10px) scale(0.96);
}
.toast strong {
  color: var(--ink);
  font-size: 0.9375rem;
}
.is-reduced .toast {
  opacity: 1;
  transform: none;
}
@media (max-width: 860px) {
  .paid__grid {
    grid-template-columns: 1fr;
  }
  .toast {
    right: -4px;
    top: -32px;
  }
}

/* Cost */
.cost {
  padding: clamp(96px, 14vw, 180px) 0;
  background: var(--navy);
  color: #fff;
}
.cost__head {
  max-width: 14ch;
  margin-bottom: clamp(48px, 7vw, 88px);
}
.cost__cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(24px, 4vw, 56px);
}
.cost__cols > div {
  padding-top: 22px;
  border-top: 2px solid var(--gold);
}
.cost__cols h3 {
  font-size: var(--t-h3);
  font-weight: 700;
  margin-bottom: 10px;
}
.cost__cols p {
  color: rgba(255, 255, 255, 0.76);
}
@media (max-width: 820px) {
  .cost__cols {
    grid-template-columns: 1fr;
  }
}

/* Sign-up */
.signup {
  padding: clamp(96px, 14vw, 180px) 0;
  background: var(--vellum);
}
.signup__grid {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: clamp(40px, 6vw, 96px);
  align-items: start;
}
.signup__intro {
  display: grid;
  gap: 22px;
  position: sticky;
  top: calc(var(--nav-h) + 40px);
}
.signup__intro .display {
  color: var(--navy);
}
.signup__intro > p {
  font-size: 1.1875rem;
  color: var(--muted);
  max-width: 28em;
}
.signup__notes {
  margin: 8px 0 0;
  display: grid;
  gap: 18px;
}
.signup__notes div {
  padding-left: 18px;
  border-left: 3px solid var(--gold);
}
.signup__notes dt {
  font-weight: 700;
  color: var(--navy);
}
.signup__notes dd {
  margin: 2px 0 0;
  color: var(--muted);
}
@media (max-width: 900px) {
  .signup__grid {
    grid-template-columns: 1fr;
  }
  .signup__intro {
    position: static;
  }
}

.card {
  background: var(--paper);
  border-radius: 28px;
  padding: clamp(20px, 3.4vw, 40px);
  box-shadow:
    0 1px 0 var(--rule),
    0 40px 90px -50px rgba(10, 35, 64, 0.45);
}

.toggle {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  margin: 0 0 28px;
  padding: 5px;
  border: 0;
  border-radius: 18px;
  background: var(--vellum);
}
.toggle__thumb {
  position: absolute;
  top: 5px;
  bottom: 5px;
  left: 5px;
  width: calc(50% - 5px);
  border-radius: 14px;
  background: var(--navy);
  box-shadow: 0 10px 24px -12px rgba(10, 35, 64, 0.8);
  transition:
    transform 0.5s var(--ease),
    background-color 0.4s;
}
.toggle[data-mode='prospect'] .toggle__thumb {
  transform: translateX(100%);
  background: var(--gold);
}
.toggle__opt {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 2px;
  text-align: left;
  padding: 14px 16px;
  border: 0;
  background: none;
  cursor: pointer;
  border-radius: 14px;
  color: var(--navy);
  transition: color 0.35s var(--ease);
}
.toggle__opt strong {
  font-size: 1rem;
  font-weight: 700;
}
.toggle__opt span {
  font-size: 0.8125rem;
  opacity: 0.75;
}
.toggle__opt.is-on {
  color: #fff;
}
.toggle[data-mode='prospect'] .toggle__opt.is-on {
  color: var(--navy-deep);
}

.fields {
  display: grid;
  gap: 18px;
  margin-bottom: 26px;
}
.branch {
  display: grid;
  gap: 18px;
}
.branch[hidden] {
  display: none;
}
.google {
  display: grid;
  gap: 12px;
}
.google[hidden] {
  display: none;
}
.google__or {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0;
  color: var(--muted);
  font-size: 0.875rem;
}
.google__or::before,
.google__or::after {
  content: '';
  flex: 1;
  height: 1px;
  background: currentColor;
  opacity: 0.3;
}
.field {
  display: grid;
  gap: 6px;
}
.field__label {
  font-size: 0.9375rem;
  font-weight: 650;
  color: var(--navy);
}
.field__label em {
  font-style: normal;
  font-weight: 500;
  color: var(--muted);
  margin-left: 6px;
}
.field input {
  width: 100%;
  min-height: 52px;
  padding: 0 16px;
  font: inherit;
  font-size: 1.0625rem;
  color: var(--ink);
  background: var(--vellum);
  border: 1.5px solid transparent;
  border-radius: 12px;
  transition:
    border-color 0.2s,
    background-color 0.2s,
    box-shadow 0.2s;
}
.field input::placeholder {
  color: #8b9aab;
}
.field input:hover {
  border-color: var(--rule);
}
.field input:focus {
  outline: none;
  background: #fff;
  border-color: var(--navy);
  box-shadow: 0 0 0 4px rgba(217, 162, 66, 0.35);
}
.field.is-invalid input {
  border-color: var(--warn);
  background: #fff;
  animation: nudge 0.35s var(--ease);
}
.field.is-valid input {
  border-color: rgba(47, 125, 87, 0.5);
}
@keyframes nudge {
  25% {
    transform: translateX(-4px);
  }
  75% {
    transform: translateX(4px);
  }
}
.field__hint {
  font-size: 0.875rem;
  color: var(--muted);
}
.field__err {
  font-size: 0.875rem;
  color: var(--warn);
  font-weight: 600;
  min-height: 0;
}
.field__err:empty {
  display: none;
}
.field-row {
  display: grid;
  grid-template-columns: 1fr 96px;
  gap: 14px;
}
.field--state input {
  text-transform: uppercase;
}

.submit {
  position: relative;
  min-height: 58px;
  font-size: 1.0625rem;
  overflow: hidden;
}
.submit__spin {
  position: absolute;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 2.5px solid rgba(10, 35, 64, 0.25);
  border-top-color: var(--navy-deep);
  opacity: 0;
  animation: spin 0.8s linear infinite;
}
.submit.is-busy .submit__label {
  opacity: 0;
}
.submit.is-busy .submit__spin {
  opacity: 1;
}
.submit:disabled {
  cursor: default;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.result:empty {
  display: none;
}
.result {
  margin-top: 20px;
}
.result__panel {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 20px;
  border-radius: 16px;
}
.result__panel--ok {
  background: rgba(47, 125, 87, 0.08);
  box-shadow: inset 0 0 0 1.5px rgba(47, 125, 87, 0.3);
}
.result__panel--warn {
  display: block;
  background: rgba(164, 67, 31, 0.06);
  box-shadow: inset 0 0 0 1.5px rgba(164, 67, 31, 0.28);
}
.result__title {
  font-weight: 750;
  font-size: 1.125rem;
  color: var(--navy);
  margin-bottom: 4px;
}
.result__split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 10px;
}
.result__split p {
  display: grid;
  gap: 10px;
  align-content: start;
  color: var(--muted);
  font-size: 0.9375rem;
}
.result__split .btn {
  justify-self: start;
}
@media (max-width: 560px) {
  .result__split {
    grid-template-columns: 1fr;
  }
}
.result__mark {
  width: 40px;
  height: 40px;
  flex: none;
  overflow: visible;
}
.result__mark .mark__navy {
  transform: translateX(-40%);
  opacity: 0;
  animation: mate-l 0.7s 0.1s var(--ease) forwards;
}
.result__mark .mark__gold {
  transform: translateX(40%);
  opacity: 0;
  animation: mate-r 0.7s 0.1s var(--ease) forwards;
}
@keyframes mate-l {
  to {
    transform: none;
    opacity: 1;
  }
}
@keyframes mate-r {
  to {
    transform: none;
    opacity: 1;
  }
}

/* Privacy policy sheet */
.legal {
  padding: calc(var(--nav-h) + clamp(48px, 8vw, 96px)) 0 clamp(80px, 10vw, 140px);
}
.legal .nav,
.legal-page .nav {
  background: rgba(238, 242, 245, 0.86);
}
.legal__sheet {
  max-width: 760px;
  margin: 0 auto;
  padding: clamp(28px, 5vw, 64px);
  background: var(--paper);
  border-radius: 28px;
  box-shadow:
    0 1px 0 var(--rule),
    0 40px 90px -50px rgba(10, 35, 64, 0.35);
}
.legal__head {
  display: grid;
  gap: 10px;
  padding-bottom: 28px;
  margin-bottom: 32px;
  border-bottom: 2px solid var(--gold);
}
.legal__title {
  color: var(--navy);
}
.legal__updated {
  color: var(--muted);
  font-size: var(--t-small);
}
.legal__body {
  font-size: 1.0625rem;
  line-height: 1.7;
}
.legal__body > * + * {
  margin-top: 1em;
}
.legal__body h2,
.legal__body h3 {
  font-family: var(--f-display);
  font-weight: 800;
  color: var(--navy);
  line-height: 1.1;
  margin-top: 1.8em;
}
.legal__body h2 {
  font-size: 2rem;
}
.legal__body h3 {
  font-size: 1.5rem;
}
.legal__body a {
  color: var(--navy);
  text-decoration-color: var(--gold);
  text-underline-offset: 3px;
}
.legal__body ul,
.legal__body ol {
  padding-left: 1.3em;
}

/* Footer */
.foot {
  background: var(--navy-deep);
  color: rgba(255, 255, 255, 0.72);
  padding: 64px 0 48px;
}
.foot__inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 20px 40px;
  align-items: center;
}
.foot__tag {
  color: #fff;
  font-weight: 600;
}
.foot__links {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}
.foot__links a {
  text-decoration: none;
}
.foot__links a:hover {
  color: #fff;
}
.foot__small {
  grid-column: 1 / -1;
  font-size: 0.875rem;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}
@media (max-width: 820px) {
  .foot__inner {
    grid-template-columns: 1fr;
  }
}

/* Motion start states — only when JS will run them (html.is-motion). */
.is-motion [data-rise] {
  opacity: 0;
  transform: translateY(28px);
}
.is-motion .hero__lede,
.is-motion .hero__actions {
  opacity: 0;
}
/* Held until intro.js has split it into chars and parked them below the line. The nav waits for
   its own entrance with it (autoAlpha ends at visibility: inherit). */
.is-motion .nav,
.is-motion .hero__title {
  visibility: hidden;
}
.is-motion .estimate {
  opacity: 0;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
