/* The look of the mockup in docs/design.md, section 3. Worker 1 owns this file.
   Other workers use these classes and ask worker 1 for new ones. */
@font-face { font-family: Figtree; src: url("fonts/figtree.woff2?1") format("woff2"); font-weight: 300 900; font-display: swap; }
:root {
  color-scheme: dark;
  --bg: #080e15;
  --panel: #0f1822;
  --text: #e8eef2;
  --quiet: #a9b6c0;
  --white: #fff;
  --ice: #79dcfe;
  --blue: #017bbb;
  --field: #f9f9f9;
  --line: #272d34;
  --bad: #ff9d8f;
  --good: #8fe3b4;
}
* { box-sizing: border-box; min-width: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 17px/1.55 Figtree, -apple-system, "Segoe UI", Roboto, sans-serif; overflow-x: clip; }
img, svg { display: block; max-width: 100%; }
h1, h2, h3 { margin: 0; font-weight: 700; color: var(--white); line-height: 1.1; letter-spacing: -.02em; text-wrap: balance; }
h1 { font-size: clamp(36px, 5.4vw, 66px); }
h2 { font-size: clamp(28px, 3.2vw, 38px); }
h3 { font-size: 22px; font-weight: 600; letter-spacing: -.01em; }
p { margin: 0; }
a { color: var(--ice); }
:focus-visible { outline: 3px solid var(--ice); outline-offset: 3px; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 16px; z-index: 99; padding: 12px; background: var(--bg); }

/* Layout */
.wrap { width: min(1120px, 100%); margin-inline: auto; padding-inline: 24px; }
.narrow { max-width: 680px; }
.page { display: grid; gap: 24px; padding-block: 40px 88px; }
.lead { font-size: 20px; color: var(--text); }
.quiet { color: var(--quiet); }
.row { display: flex; flex-wrap: wrap; gap: 14px 20px; align-items: center; }
.spread { justify-content: space-between; }
.stack { display: grid; gap: 14px; }
.grid { display: grid; gap: 24px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); }
.card { display: grid; gap: 12px; padding: 22px; border: 1px solid var(--line); border-radius: 18px; background: var(--panel); }
.rule { border: 0; border-top: 1px solid var(--line); margin: 0; width: 100%; }

/* Header and footer */
.top { position: relative; z-index: 20; display: flex; align-items: center; gap: 42px; padding-block: 22px; }
.top a { color: var(--white); text-decoration: none; }
.logo { display: flex; align-items: center; gap: 14px; margin-right: auto; font-size: 21px; font-weight: 600; letter-spacing: -.02em; white-space: nowrap; }
.logo .icon { width: 44px; height: 30px; }
.top nav { display: flex; gap: 42px; font-size: 16px; font-weight: 500; white-space: nowrap; }
.top nav a:hover, .top nav [aria-current] { color: var(--ice); }
.menu { display: none; }
.foot { border-top: 1px solid var(--line); color: var(--quiet); font-size: 16px; }
.foot .wrap { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 32px; padding-block: 44px; }
.foot section { display: grid; gap: 8px; align-content: start; justify-items: start; }
.foot h2 { font-size: 16px; font-weight: 600; letter-spacing: 0; }
.foot a { color: inherit; text-decoration: none; }
.foot a:hover { color: var(--ice); }
.foot .call { color: var(--white); font-size: 22px; font-weight: 600; }

/* Icons are outlines in one colour */
.icon { width: 28px; height: 28px; flex: none; fill: none; stroke: var(--ice); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 0 26px; border: 0; border-radius: 99px; background: var(--blue); color: var(--white); font-family: inherit; font-size: 17px; font-weight: 600; text-decoration: none; cursor: pointer; }
.btn:hover { filter: brightness(1.12); }
.btn:disabled { opacity: .5; cursor: default; }
.btn.light, .top .btn { background: var(--ice); color: var(--bg); }
.btn.plain { background: none; border: 1px solid #56616b; color: var(--white); }
.btn.small { min-height: 40px; padding: 0 18px; font-size: 15px; }
.btn .icon { stroke: currentColor; width: 20px; height: 20px; }

/* Forms: <label class="field">Name <input></label> */
.field { display: grid; gap: 7px; color: var(--white); font-weight: 600; }
.field small { color: var(--quiet); font-weight: 400; font-size: 15px; }
input, select, textarea, button { font-family: inherit; }
input:not([type=checkbox], [type=radio], [type=range], [type=file], [type=hidden]), select, textarea { width: 100%; min-height: 50px; padding: 12px 18px; border: 2px solid transparent; border-radius: 14px; background: var(--field); color: #101820; font-size: 17px; }
textarea { min-height: 110px; }
input::placeholder, textarea::placeholder { color: #5c6670; }
.error { color: var(--bad); font-weight: 600; }
.good { color: var(--good); font-weight: 600; }
/* A choice you tap: <label class="choice"><input type="radio"> Text</label> */
.choice { position: relative; display: flex; align-items: center; gap: 14px; padding: 17px 20px; border: 1px solid #56616b; border-radius: 16px; background: var(--panel); color: var(--white); font-weight: 600; cursor: pointer; }
.choice:has(:checked) { border-color: var(--ice); box-shadow: inset 0 0 0 1px var(--ice); }
.choice:has(:focus-visible) { outline: 3px solid var(--ice); outline-offset: 3px; }
.choice input { width: 20px; height: 20px; margin: 0; accent-color: var(--blue); flex: none; }
.choice small { display: block; color: var(--quiet); font-weight: 400; }

/* Tables of figures, and status labels */
.sum { width: 100%; border-collapse: collapse; }
.sum td { padding: 11px 0; border-bottom: 1px solid var(--line); }
.sum td:last-child { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.sum tr:last-child td { border: 0; color: var(--white); font-weight: 700; font-size: 20px; }
.tag { display: inline-block; padding: 3px 12px; border: 1px solid #56616b; border-radius: 99px; color: var(--white); font-size: 14px; white-space: nowrap; }

/* Home page */
.hero { position: relative; display: grid; justify-items: center; gap: 22px; padding: 36px 24px 26vw; text-align: center; overflow: clip; }
.hero > * { position: relative; }
.hero > img { position: absolute; left: 0; top: calc(100% - 29vw); width: 100%; height: auto; mask-image: linear-gradient(transparent, #000 22%); }
.hero h1 { font-size: clamp(60px, 7.2vw, 92px); letter-spacing: -.02em; line-height: 1.05; }
.hero p { font-size: clamp(20px, 2vw, 25px); }
.find { display: flex; align-items: center; width: min(660px, 100%); margin-top: 14px; padding: 8px; border-radius: 99px; background: var(--field); }
.find:focus-within { outline: 3px solid var(--ice); outline-offset: 3px; }
.find > .icon { margin-left: 20px; stroke: #4a5560; stroke-width: 1.5; }
.find input:not([type=hidden]) { flex: 1; min-height: 48px; padding: 0 16px; border: 0; border-radius: 99px; background: none; font-size: 19px; outline: 0; }
.find .btn { padding-inline: 24px; font-size: 18px; white-space: nowrap; }
.band { padding-block: 64px; }
.about { display: grid; grid-template-columns: 1.04fr 1fr; align-items: center; gap: 56px; }
.about > div { display: grid; gap: 16px; }
.about h2, .steps h2 { font-size: clamp(30px, 3.7vw, 46px); }
.about p { font-size: clamp(18px, 1.75vw, 21px); line-height: 1.45; }
.steps { padding-bottom: 48px; text-align: center; }
.steps ol { display: grid; grid-template-columns: repeat(3, 1fr); margin: 28px 0 0; padding: 0; list-style: none; }
.steps li { position: relative; display: grid; justify-items: center; align-content: start; gap: 8px; padding-inline: 32px; }
.steps li + li::before, .promises li + li::before { content: ""; position: absolute; left: 0; top: 8px; bottom: 0; border-left: 1px solid #3a424a; }
.steps .icon { width: 46px; height: 46px; stroke-width: 1.5; }
.steps li:nth-child(2) > .icon { width: 58px; }
.steps h3 { font-size: 28px; }
.steps p { max-width: 260px; font-size: 18px; line-height: 1.4; text-wrap: balance; }
.promises { display: grid; grid-template-columns: repeat(3, 1fr); margin: 0; padding: 28px 0 36px; border-top: 1px solid #3a424a; list-style: none; color: var(--white); font-size: 19px; font-weight: 500; }
.promises li { position: relative; display: flex; align-items: center; justify-content: center; gap: 20px; padding-inline: 12px; }
.promises li + li::before { top: 0; }
.promises .icon { width: 34px; height: 34px; }

/* Before-and-after slider: {{template "compare" (dict "Before" url "After" url)}} */
.compare { position: relative; margin: 0; aspect-ratio: 2.38; border-radius: 24px; overflow: hidden; background: var(--panel); isolation: isolate; --at: 50%; }
.compare.tall { aspect-ratio: 1.5; }
.gallery { display: grid; gap: 24px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 440px), 1fr)); }
.compare img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.compare .after { clip-path: inset(0 0 0 var(--at)); }
.compare .line { position: absolute; left: var(--at); top: 0; bottom: 0; width: 3px; margin-left: -1.5px; background: var(--white); pointer-events: none; }
.compare .line .icon { position: absolute; left: 50%; top: 50%; width: 46px; max-width: none; height: 46px; padding: 11px; transform: translate(-50%, -50%); border-radius: 50%; background: var(--white); stroke: var(--blue); stroke-width: 2; }
.compare input { position: absolute; left: -24px; top: 0; width: calc(100% + 48px); height: 100%; margin: 0; appearance: none; background: none; cursor: ew-resize; touch-action: pan-y; opacity: 0; }
.compare input::-webkit-slider-runnable-track { height: 100%; }
.compare input::-webkit-slider-thumb { appearance: none; width: 48px; height: 100%; }
.compare input::-moz-range-thumb { width: 48px; height: 100%; border: 0; border-radius: 0; }
.compare:has(:focus-visible) { outline: 3px solid var(--ice); outline-offset: 3px; }
.compare figcaption { position: absolute; right: 12px; bottom: 10px; padding: 2px 10px; border-radius: 99px; background: #080e15cc; color: var(--white); font-size: 13px; pointer-events: none; }

/* Pages of text */
.text { display: grid; gap: 14px; }
.text + .text { padding-top: 32px; border-top: 1px solid var(--line); }
.row + .text { padding-top: 24px; }
.text h2 { font-size: 28px; }
.text ul { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.text ul li { display: flex; gap: 12px; }
.text ul .icon { width: 20px; height: 20px; margin-top: 3px; }
.ask { border-top: 1px solid var(--line); }
.ask:last-of-type { border-bottom: 1px solid var(--line); }
.ask summary { display: flex; justify-content: space-between; gap: 16px; list-style: none; padding: 18px 0; color: var(--white); font-size: 19px; font-weight: 600; cursor: pointer; }
.ask summary::-webkit-details-marker { display: none; }
.ask summary::after { content: "+"; color: var(--ice); font-size: 26px; font-weight: 400; line-height: 1; }
.ask[open] summary::after { content: "\2212"; }
.ask p { padding-bottom: 20px; }
.sum th { padding: 11px 0; border-bottom: 1px solid var(--line); color: var(--quiet); font-weight: 500; text-align: left; }
.sum th:last-child { text-align: right; }
.sum.even tr:last-child td { color: inherit; font-weight: inherit; font-size: inherit; }

@media (min-width: 761px) and (max-width: 940px) {
  .about { gap: 32px; }
  .promises { font-size: 17px; }
  .promises li { gap: 12px; }
}
@media (max-width: 900px) {
  .top { gap: 16px; padding-block: 12px; }
  .top nav, .top > .btn { display: none; }
  .menu { display: block; }
  .menu summary { display: grid; place-items: center; width: 48px; height: 48px; margin-right: -10px; list-style: none; cursor: pointer; }
  .menu summary::-webkit-details-marker { display: none; }
  .menu summary .icon { stroke: var(--white); }
  .menu div { position: absolute; z-index: 20; left: 0; right: 0; display: grid; padding: 0 24px 16px; background: var(--bg); border-bottom: 1px solid var(--line); }
  .menu .icon { width: 30px; height: 30px; }
  .menu div a { padding: 15px 0; border-top: 1px solid var(--line); font-size: 19px; font-weight: 600; }
}
@media (max-width: 760px) {
  .btn.wide { width: 100%; }
  .foot .wrap { grid-template-columns: 1fr 1fr; }
  .foot section:first-child { grid-column: 1 / -1; }
  .hero { gap: 16px; margin-top: 0; padding-top: 14px; padding-bottom: 48vw; }
  .hero > img { top: auto; bottom: 0; height: 52vw; object-fit: cover; object-position: 40% 0; border-radius: 0 0 24px 24px; }
  .hero h1 { max-width: 6em; font-size: min(13vw, 62px); line-height: 1; }
  .hero p { max-width: 15em; font-size: 20px; line-height: 1.35; }
  .find, .find:focus-within { position: relative; display: grid; gap: 12px; margin-top: 6px; padding: 0; outline: 0; background: none; }
  .find > .icon { position: absolute; left: 18px; top: 12px; margin: 0; width: 26px; height: 26px; }
  .find input:not([type=hidden]) { min-height: 52px; padding-left: 58px; background: var(--field); font-size: 18px; }
  .find input:focus-visible { outline: 3px solid var(--ice); outline-offset: 3px; }
  .find .btn { min-height: 52px; }
  .band { padding-block: 32px; }
  .about { grid-template-columns: 1fr; gap: 22px; }
  .about > div { gap: 10px; }
  .compare { border-radius: 18px; }
  .compare:not(.tall) { aspect-ratio: 2.2; }
  .steps { padding-block: 4px 0; }
  .steps ol { grid-template-columns: 1fr; margin-top: 10px; }
  .steps li { grid-template-columns: 58px 1fr; justify-items: start; align-items: center; gap: 2px 26px; padding: 18px 0 18px 12px; border-bottom: 1px solid #3a424a; text-align: left; }
  .steps li + li::before { display: none; }
  .steps li .icon { grid-row: 1 / 3; width: 42px; height: 42px; }
  .steps li:nth-child(2) > .icon { width: 48px; }
  .steps h3 { font-size: 22px; }
  .steps p { max-width: none; font-size: 16px; text-wrap: pretty; }
  .promises { border: 0; padding-block: 24px 32px; font-size: 15px; line-height: 1.25; text-align: center; }
  .promises li { flex-direction: column; justify-content: start; gap: 8px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
