/* Ready by Three, waitlist page.
   Static HTML + CSS, no framework, no script.
   Type: Geist (SIL OFL 1.1, see fonts/OFL.txt), self-hosted variable font.
   Accent: Sett system navy (#1C3A77, from cleaning-app-admin/src/ds/tokens.css).
   Shape rule: soft corners only. Controls 10px, buttons 12px, panels 16px. */

@font-face {
  font-family: "Geist";
  src: url("fonts/geist-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
  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: "Geist";
  src: url("fonts/geist-latin-ext.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
  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-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  color-scheme: light dark;
  --bg: #f6f8fb;
  --surface: #fdfdfe;
  --band: #eaeff8;
  --text: #0a2540;
  --text-2: #33405a;
  --muted: #586379;
  --line: #d5dce8;
  --line-strong: #a3b0c6;
  --accent: #1c3a77;
  --accent-hover: #17306a;
  --accent-press: #14295a;
  --on-accent: #f6f8fb;
  --accent-soft: #e3e9f6;
  --panel: #1c3a77;
  --on-panel: #f1f4fa;
  --on-panel-2: #cdd7ec;
  --focus: #3455a0;
  --danger: #b3301b;
  --font: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --section-y: clamp(4rem, 2.75rem + 5vw, 8rem);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #09111f;
    --surface: #0f192b;
    --band: #0d1a31;
    --text: #e8edf6;
    --text-2: #c3ccdc;
    --muted: #97a3b8;
    --line: #22304a;
    --line-strong: #3d4e6e;
    --accent: #a9c1f5;
    --accent-hover: #bfd1f8;
    --accent-press: #93afef;
    --on-accent: #0a1630;
    --accent-soft: #15254a;
    --panel: #1a3266;
    --on-panel: #eef2fa;
    --on-panel-2: #c6d2ec;
    --focus: #a9c1f5;
    --danger: #ff8a75;
  }
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}

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

h1, h2, h3, p, ol, ul, figure { margin: 0; }
a { color: inherit; text-underline-offset: 0.18em; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; border-radius: 4px; }

.wrap {
  width: 100%;
  max-width: 76rem;
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 4vw, 3rem);
}

.h2 {
  font-size: clamp(1.875rem, 1.35rem + 2.2vw, 3.25rem);
  line-height: 1.06;
  letter-spacing: -0.035em;
  font-weight: 600;
  text-wrap: balance;
}

/* Header and footer */

.site-header { border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; min-height: 4rem; }

.wordmark {
  font-weight: 650;
  font-size: 1.0625rem;
  letter-spacing: -0.02em;
  text-decoration: none;
}

.site-footer { border-top: 1px solid var(--line); }
.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 2rem;
  align-items: center;
  justify-content: space-between;
  padding-block: 2rem;
  font-size: 0.9375rem;
  color: var(--muted);
}
.site-footer .wordmark { color: var(--text); }

/* Button */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.25rem;
  padding: 0 1.625rem;
  border: 0;
  border-radius: 12px;
  background: var(--accent);
  color: var(--on-accent);
  font: inherit;
  font-weight: 600;
  font-size: 1.0625rem;
  letter-spacing: -0.005em;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 0.15s ease, transform 0.1s ease;
}
.button:hover { background: var(--accent-hover); }
.button:active { background: var(--accent-press); transform: translateY(1px); }

/* Hero */

.hero { padding-block: clamp(3rem, 1.5rem + 6vw, 7rem) clamp(4rem, 2.5rem + 6vw, 8rem); }
.hero .wrap { display: grid; row-gap: 2rem; }

.hero h1 {
  font-size: clamp(2.5rem, 1.5rem + 4.3vw, 5.25rem);
  line-height: 1.02;
  letter-spacing: -0.042em;
  font-weight: 620;
  text-wrap: balance;
  max-width: 13em;
}

.lead {
  font-size: clamp(1.125rem, 1rem + 0.45vw, 1.3125rem);
  line-height: 1.55;
  color: var(--text-2);
  max-width: 36em;
}
.cta-row { margin-top: 2rem; }
.made-by {
  margin-top: 1.5rem;
  max-width: 30em;
  font-size: 0.9375rem;
  color: var(--muted);
}

/* The clock at three o'clock: a CSS-only mark for the product name. Decorative. */
.clock {
  --size: 4.5rem;
  order: -1;
  position: relative;
  width: var(--size);
  aspect-ratio: 1;
  border-radius: 50%;
  border: 2px solid var(--text);
}
.clock-ticks {
  position: absolute;
  inset: 7%;
  border-radius: 50%;
  background: repeating-conic-gradient(from -1deg, var(--line-strong) 0 2deg, transparent 2deg 30deg);
  -webkit-mask: radial-gradient(circle closest-side, transparent 86%, #000 87%);
  mask: radial-gradient(circle closest-side, transparent 86%, #000 87%);
}
.clock-hand { position: absolute; border-radius: 999px; }
.clock-hand--hour {
  left: 50%;
  top: 50%;
  width: 27%;
  height: 5.5%;
  background: var(--accent);
  transform: translateY(-50%);
}
.clock-hand--minute {
  left: 50%;
  bottom: 50%;
  width: 3.5%;
  height: 37%;
  background: var(--text);
  transform: translateX(-50%);
}
.clock-pin {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 8%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--text);
  transform: translate(-50%, -50%);
}

/* Problem */

.problem { background: var(--band); padding-block: var(--section-y); }
.problem .wrap { display: grid; row-gap: 1.75rem; }
.problem .h2 { max-width: 16em; }
.problem p {
  font-size: clamp(1.125rem, 1rem + 0.5vw, 1.375rem);
  line-height: 1.6;
  color: var(--text-2);
  max-width: 38em;
}

/* How it works */

.how { padding-block: var(--section-y); }
.how .wrap { display: grid; row-gap: 2.5rem; }

.steps { list-style: none; padding: 0; counter-reset: step; }
.steps li {
  counter-increment: step;
  position: relative;
  display: grid;
  grid-template-columns: 2.75rem 1fr;
  column-gap: 1.25rem;
  padding-bottom: 2.5rem;
}
.steps li:last-child { padding-bottom: 0; }
.steps li::before {
  content: counter(step);
  grid-row: 1 / span 2;
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  border: 1.5px solid var(--accent);
  color: var(--accent);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  background: var(--bg);
  position: relative;
  z-index: 1;
}
.steps li:not(:last-child)::after {
  content: "";
  position: absolute;
  left: calc(1.375rem - 0.75px);
  top: 2.75rem;
  bottom: 0;
  width: 1.5px;
  background: var(--line-strong);
}
.steps h3 {
  font-size: clamp(1.25rem, 1.1rem + 0.6vw, 1.5rem);
  line-height: 1.25;
  letter-spacing: -0.02em;
  font-weight: 600;
  padding-top: 0.4rem;
}
.steps p { margin-top: 0.625rem; color: var(--text-2); max-width: 34em; }

/* What it already does */

.does { padding-block: 0 var(--section-y); }
.does .wrap { display: grid; row-gap: 2.5rem; }
.does-grid { display: grid; gap: 1rem; }

.cell {
  border-radius: 16px;
  padding: clamp(1.5rem, 1rem + 2vw, 2.5rem);
  background: var(--surface);
  border: 1px solid var(--line);
}
.cell h3 {
  font-size: clamp(1.25rem, 1.1rem + 0.6vw, 1.5rem);
  line-height: 1.25;
  letter-spacing: -0.02em;
  font-weight: 600;
}
.cell p { margin-top: 0.875rem; color: var(--text-2); }
.cell p + p { margin-top: 1rem; }

.cell--a { background: var(--panel); border-color: transparent; color: var(--on-panel); }
.cell--a p { color: var(--on-panel-2); }
.cell--c { background: var(--band); border-color: transparent; }

/* Join */

.join { background: var(--band); padding-block: var(--section-y); scroll-margin-top: 1rem; }
.join .wrap {
  display: grid;
  gap: 2.5rem;
  grid-template-areas: "intro" "form" "notice";
}
.join-intro { grid-area: intro; }
.join-intro p { margin-top: 1.25rem; font-size: 1.125rem; color: var(--text-2); max-width: 30em; }

.form {
  grid-area: form;
  display: grid;
  gap: 1.75rem;
  padding: clamp(1.25rem, 0.75rem + 2.5vw, 2.5rem);
  border-radius: 16px;
  background: var(--surface);
  border: 1px solid var(--line);
}

.field { display: grid; gap: 0.5rem; min-width: 0; }
fieldset.field { border: 0; margin: 0; padding: 0; }
.field > label, .field legend {
  font-weight: 560;
  font-size: 1rem;
  line-height: 1.4;
}
.field legend { padding: 0; margin-bottom: 0.75rem; }
.optional {
  white-space: nowrap;
  font-weight: 400;
  font-size: 0.875rem;
  color: var(--muted);
}

input[type="text"], input[type="email"], textarea {
  width: 100%;
  min-height: 3rem;
  padding: 0.75rem 0.875rem;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: var(--bg);
  color: var(--text);
  font: inherit;
  font-size: 1rem;
}
textarea { min-height: 7.5rem; resize: vertical; }
input[type="text"]:focus-visible, input[type="email"]:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 1px;
  border-color: var(--focus);
  border-radius: 10px;
}
input:user-invalid, textarea:user-invalid { border-color: var(--danger); }

.options { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.option {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 2.75rem;
  padding: 0.5rem 0.875rem;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: var(--bg);
  font-size: 0.96875rem;
  line-height: 1.3;
  cursor: pointer;
}
.option input { margin: 0; width: 1.05rem; height: 1.05rem; accent-color: var(--accent); flex: none; }
.option:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); }
.option:has(input:focus-visible) { outline: 2px solid var(--focus); outline-offset: 2px; }
.option input:focus-visible { outline: none; }

.other-software { margin-top: 0.625rem; }
@supports selector(:has(*)) {
  .other-software { display: none; }
  #f-scheduling:has(#f-sched-software:checked) .other-software { display: block; }
}

.consent {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.75rem;
  align-items: start;
  font-size: 1rem;
}
.consent input { margin: 0.2rem 0 0; width: 1.15rem; height: 1.15rem; accent-color: var(--accent); }
.consent a { color: var(--accent); font-weight: 560; }

.form-actions .button { width: 100%; }
.isca {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* Thanks page and the function's short messages */

.thanks { padding-block: clamp(4rem, 2.5rem + 6vw, 8rem); }
.thanks .wrap { display: grid; row-gap: 2rem; justify-items: start; }
.thanks h1 {
  font-size: clamp(1.75rem, 1.2rem + 2.4vw, 3rem);
  line-height: 1.12;
  letter-spacing: -0.03em;
  font-weight: 600;
  max-width: 20em;
  text-wrap: balance;
}
.thanks .clock { order: 0; --size: clamp(4.5rem, 3rem + 3vw, 6.5rem); }

.msg { padding-block: 4rem; display: grid; row-gap: 1rem; }
.msg a { color: var(--accent); font-weight: 560; }

.notice {
  grid-area: notice;
  padding-top: 1.75rem;
  border-top: 1px solid var(--line-strong);
  font-size: 0.9375rem;
  color: var(--text-2);
  max-width: 34em;
  scroll-margin-top: 1rem;
}
.notice h2 {
  font-size: 1.125rem;
  line-height: 1.3;
  letter-spacing: -0.01em;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.75rem;
}
.notice p + p { margin-top: 0.75rem; }
.notice a { color: var(--accent); font-weight: 560; }

/* Questions */

.faq { padding-block: var(--section-y); }
.faq-list { margin-top: 2.5rem; }
.qa { break-inside: avoid; padding-bottom: 2rem; }
.qa h3 {
  font-size: 1.1875rem;
  line-height: 1.35;
  letter-spacing: -0.012em;
  font-weight: 600;
  max-width: 26em;
}
.qa p { margin-top: 0.5rem; color: var(--text-2); max-width: 34em; }

/* Tablet and up */

@media (min-width: 48rem) {
  .form-actions .button { width: auto; }
  .faq-list { columns: 2; column-gap: clamp(2.5rem, 5vw, 5rem); }
}

/* Desktop */

@media (min-width: 64rem) {
  .hero .wrap {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    column-gap: 2rem;
    row-gap: 3rem;
  }
  .hero h1 { grid-column: 1 / -1; }
  .hero-body { grid-column: 1 / span 7; }
  .hero .clock {
    --size: clamp(13rem, 19vw, 17.5rem);
    order: 0;
    grid-column: 9 / -1;
    justify-self: end;
    align-self: end;
    border-width: 2.5px;
  }

  .problem .wrap { grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 2rem; }
  .problem .h2 { grid-column: 1 / span 9; }
  .problem p { grid-column: 4 / span 8; }

  .how .wrap { grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 2rem; align-items: start; }
  .how .h2 { grid-column: 1 / span 4; }
  .steps { grid-column: 6 / -1; }

  .does-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-areas: "a c" "b c";
    gap: 1.25rem;
  }
  .cell--a { grid-area: a; }
  .cell--b { grid-area: b; }
  .cell--c { grid-area: c; }

  .join .wrap {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    grid-template-areas: "intro form" "notice form";
    grid-template-rows: auto 1fr;
    column-gap: clamp(2.5rem, 5vw, 5rem);
    row-gap: 2.5rem;
    align-items: start;
  }
  .notice { align-self: end; }
}
