/* Nannywise app styles: the same look as the prototype and waitlist page. */
:root {
  --bg: #faf7f2; --bg-2: #f3eee5; --surface: #ffffff; --ink: #1b2422; --muted: #66706c; --line: #e7e1d6; --line-strong: #d3cab9;
  --green: #1f4d43; --green-2: #2d6b5d; --green-soft: #e4efe9;
  --clay: #c8693f; --clay-2: #d9825b; --clay-soft: #fbe9df; --clay-ink: #a3502c;
  --good: #2e7d4f; --good-soft: #e3f3e8; --warn: #9a5b00; --warn-soft: #fbefd9; --bad: #b3261e; --bad-soft: #fbe7e5;
  --radius: 16px; --shadow-sm: 0 1px 2px rgba(27, 36, 34, .06), 0 2px 8px rgba(27, 36, 34, .04);
  --shadow: 0 16px 48px rgba(27, 36, 34, .12); --display: "Fraunces", Georgia, serif;
  color-scheme: light;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { background: var(--bg); color: var(--ink); font: 15.5px/1.55 "Inter", -apple-system, "Segoe UI", Roboto, sans-serif; -webkit-font-smoothing: antialiased; }
button, input, select, textarea { font: inherit; color: inherit; }
svg.i { width: 20px; height: 20px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.wrap { max-width: 1080px; margin: 0 auto; padding-left: max(24px, env(safe-area-inset-left, 0px)); padding-right: max(24px, env(safe-area-inset-right, 0px)); }
[hidden] { display: none !important; }

header.site { position: sticky; top: 0; z-index: 20; background: rgba(250, 247, 242, .92); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); padding-top: env(safe-area-inset-top, 0px); }
header.site .wrap { display: flex; align-items: center; gap: 20px; height: 64px; }
.logo { font-family: var(--display); font-size: 21px; font-weight: 600; display: flex; align-items: center; gap: 9px; text-decoration: none; color: inherit; }
.logo .dot { width: 28px; height: 28px; border-radius: 8px; background: var(--green); display: grid; place-items: center; color: #fff; }
.logo .dot svg { width: 15px; height: 15px; }
header.site nav { display: flex; gap: 18px; margin-left: auto; font-size: 14.5px; color: var(--muted); align-items: center; min-width: 0; }
header.site nav .link { white-space: nowrap; flex: none; }
.who { max-width: 180px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; flex: 0 1 auto; }
header.site nav a { text-decoration: none; color: inherit; cursor: pointer; }
header.site nav a.on, header.site nav a:hover { color: var(--ink); }
.who { font-size: 12.5px; padding: 6px 12px; border-radius: 999px; font-weight: 600; background: var(--clay-soft); color: var(--clay-ink); }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 20px; border-radius: 10px; border: 1px solid var(--green); background: var(--green); color: #fff; font-weight: 600; cursor: pointer; text-decoration: none; transition: background .15s, box-shadow .15s; }
.btn:hover { background: var(--green-2); }
.btn.clay { background: var(--clay); border-color: var(--clay); }
.btn.clay:hover { background: var(--clay-2); }
.btn.ghost { background: var(--surface); color: var(--ink); border-color: var(--line); }
.btn.ghost:hover { border-color: var(--line-strong); }
.btn.sm { padding: 8px 14px; font-size: 14px; }
.btn.block { width: 100%; }
.btn:disabled { opacity: .5; cursor: wait; }
.link { background: none; border: 0; color: var(--muted); cursor: pointer; padding: 0; font-size: 14px; display: inline-flex; gap: 6px; align-items: center; }
.link:hover { color: var(--ink); }

h1, h2.h { font-family: var(--display); font-weight: 600; letter-spacing: -.01em; line-height: 1.12; margin: 0 0 10px; text-wrap: balance; }
h1 { font-size: clamp(30px, 4vw, 42px); }
h2.h { font-size: clamp(24px, 3vw, 30px); }
h3 { margin: 0 0 4px; font-size: 17px; }
.lead { color: var(--muted); font-size: 17px; margin: 0 0 24px; max-width: 62ch; }
.eyebrow { text-transform: uppercase; letter-spacing: .11em; font-size: 12.5px; font-weight: 700; color: var(--clay); margin-bottom: 10px; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
main { padding: 36px 0 90px; }

.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow-sm); }
.sec { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; margin-bottom: 16px; }
.sec > .hd { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 14px; }
.sec > .hd h3 { font-size: 18px; margin: 0; }
.sub { margin: 18px 0 10px; font-weight: 600; font-size: 14.5px; }
.tag { font-size: 11px; font-weight: 700; color: var(--clay); background: var(--clay-soft); padding: 2px 8px; border-radius: 999px; }
.badge { display: inline-flex; align-items: center; gap: 5px; padding: 4px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; background: var(--bg-2); color: var(--muted); }
.badge.good { background: var(--good-soft); color: var(--good); }
.badge.warn { background: var(--warn-soft); color: var(--warn); }
.badge.bad { background: var(--bad-soft); color: var(--bad); }
.info { background: var(--green-soft); color: var(--green); border-radius: 12px; padding: 12px 14px; font-size: 14px; margin: 14px 0; }
.note { background: var(--warn-soft); color: var(--warn); border-radius: 12px; padding: 12px 14px; font-size: 14px; margin: 14px 0; }
.err { background: var(--bad-soft); color: var(--bad); border-radius: 12px; padding: 12px 14px; font-size: 14px; margin: 14px 0; }

.field { display: flex; align-items: center; gap: 10px; background: var(--surface); border: 1.5px solid var(--line); border-radius: 12px; padding: 0 14px; }
.field:focus-within { border-color: var(--green); box-shadow: 0 0 0 3px var(--green-soft); }
.field svg { color: var(--muted); }
.field input, .field select, .field textarea { flex: 1; border: 0; outline: 0; background: transparent; padding: 12px 0; min-width: 0; }
.field textarea { min-height: 120px; resize: vertical; }
.row { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.row > .field { flex: 1; min-width: 150px; }
label.lbl { display: block; font-weight: 600; font-size: 14px; margin: 14px 0 6px; }

.pills { display: flex; flex-wrap: wrap; gap: 8px; }
.pill { padding: 9px 15px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--surface); cursor: pointer; font-size: 14px; font-weight: 500; }
.pill:hover { border-color: var(--line-strong); }
.pill.on { background: var(--green); border-color: var(--green); color: #fff; }
.days .pill { width: 48px; height: 48px; padding: 0; display: grid; place-items: center; font-weight: 600; }
.seg { display: inline-flex; background: var(--bg-2); border-radius: 11px; padding: 4px; flex-wrap: wrap; }
.seg button { border: 0; background: none; padding: 7px 13px; border-radius: 8px; cursor: pointer; font-size: 14px; color: var(--muted); }
.seg button.on { background: var(--surface); color: var(--ink); box-shadow: var(--shadow-sm); font-weight: 600; }
.seg.mini button { padding: 5px 10px; font-size: 12.5px; }
.lang-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 12px; border: 1px solid var(--line); margin-top: 8px; flex-wrap: wrap; }

.drop { display: block; border: 2px dashed var(--line-strong); border-radius: 20px; padding: 40px 24px; text-align: center; cursor: pointer; background: var(--surface); }
.drop:hover, .drop.over { border-color: var(--clay); background: #fffaf6; }
.drop input { display: none; }
.pulse { width: 80px; height: 80px; border-radius: 50%; background: var(--clay-soft); color: var(--clay); margin: 30px auto 20px; display: grid; place-items: center; animation: pulse 1.4s ease-in-out infinite; }
@keyframes pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(200, 105, 63, .35); } 50% { box-shadow: 0 0 0 20px rgba(200, 105, 63, 0); } }

table.pay { width: 100%; border-collapse: collapse; margin-top: 14px; font-size: 14.5px; font-variant-numeric: tabular-nums; }
table.pay th { font-weight: 600; color: var(--muted); font-size: 12.5px; text-align: right; padding: 6px 8px; }
table.pay td { padding: 10px 8px; text-align: right; border-top: 1px solid var(--line); }
table.pay th:first-child, table.pay td:first-child { text-align: left; }
.pay-wrap { overflow-x: auto; }

.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 10px; }
.tile { position: relative; text-align: left; background: var(--surface); border: 1.5px solid var(--line); border-radius: 14px; padding: 14px; cursor: pointer; display: flex; flex-direction: column; gap: 4px; }
.tile:hover { border-color: var(--line-strong); }
.tile b { font-size: 15px; padding-right: 24px; }
.tile small { color: var(--muted); font-size: 12.5px; line-height: 1.35; }
.tile.on { border-color: var(--green); background: #f6faf8; box-shadow: 0 0 0 3px var(--green-soft); }
.tile .help { position: absolute; top: 10px; right: 10px; width: 22px; height: 22px; border-radius: 50%; border: 1.5px solid var(--line); background: var(--surface); color: var(--muted); font-size: 12px; font-weight: 700; display: grid; place-items: center; cursor: help; }
.tile .help:hover { border-color: var(--green); color: var(--green); }
.steps { display: flex; gap: 6px; margin-bottom: 18px; }
.steps i { flex: 1; height: 5px; border-radius: 3px; background: var(--line); }
.steps i.on { background: var(--green); }
.req { font-size: 11.5px; font-weight: 700; color: var(--warn); background: var(--warn-soft); padding: 2px 8px; border-radius: 999px; margin-left: 6px; }
.extra { margin-top: 12px; padding: 14px; border-radius: 12px; background: #f8eed9; }
.popup { position: fixed; inset: 0; background: rgba(20, 28, 26, .45); display: grid; place-items: center; padding: 16px; z-index: 50; }
.popup .card { max-width: 440px; }
.check-card { display: flex; gap: 14px; align-items: flex-start; }
/* Matches: list rows, nanny cards, job facts and reasons */
.match-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; width: 100%; text-align: left; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; margin-top: 8px; cursor: pointer; flex-wrap: wrap; }
.match-row:hover { border-color: var(--line-strong); }
.facts { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px 20px; }
.fact { display: flex; flex-direction: column; gap: 2px; }
.fact b { font-weight: 500; }
ul.reasons { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; }
ul.reasons li { padding-left: 26px; position: relative; }
ul.reasons li::before { content: "✓"; position: absolute; left: 0; top: 0; width: 18px; height: 18px; border-radius: 50%; background: var(--green-soft); color: var(--green); font-size: 11px; font-weight: 700; display: grid; place-items: center; margin-top: 3px; }
.nanny-card { display: flex; flex-direction: column; gap: 10px; }
.nanny-card .top { display: flex; align-items: center; gap: 14px; }
.avatar { width: 52px; height: 52px; border-radius: 50%; background: var(--clay-soft); color: var(--clay-ink); display: grid; place-items: center; font-family: var(--display); font-size: 21px; font-weight: 600; flex: none; }
.score { margin-left: auto; text-align: center; font-weight: 700; color: var(--green); font-size: 22px; line-height: 1; }
.score small { display: block; font-size: 11px; font-weight: 600; color: var(--muted); margin-top: 3px; }
.quote { font-style: italic; color: var(--muted); border-left: 3px solid var(--line); padding-left: 12px; margin: 0; }
.hero { margin-bottom: 16px; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 20px; }
.stat { background: var(--bg); border-radius: 12px; padding: 14px; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.stat b { font-family: var(--display); font-size: 22px; font-weight: 600; line-height: 1.2; }
.tracker { list-style: none; margin: 20px 0 0; padding: 0; display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 6px; counter-reset: s; }
.tracker li { counter-increment: s; font-size: 12.5px; color: var(--muted); border-top: 4px solid var(--line); padding-top: 8px; }
.tracker li::before { content: counter(s) ". "; }
.tracker li.done { border-color: var(--green); color: var(--green); }
.tracker li.done::before { content: "✓ "; }
.tracker li.now { border-color: var(--clay); color: var(--clay-ink); font-weight: 700; }
.family-quote { margin: 0; padding: 4px 0 4px 18px; border-left: 3px solid var(--clay); font-size: 16.5px; line-height: 1.6; white-space: pre-line; }
.days-mini { gap: 4px; margin-top: 4px; }
.days-mini span { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; font-weight: 600; background: var(--bg-2); color: var(--muted); }
.days-mini span.on { background: var(--green); color: #fff; }
.action-card { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; border-color: var(--clay-soft); background: #fffaf6; margin-top: 8px; }
.contact-card { background: var(--green-soft); border-color: transparent; margin-bottom: 16px; }
.contact-card a { color: var(--green); }
dl.summary { display: grid; grid-template-columns: 150px 1fr; gap: 10px 14px; margin: 0; }
.job-line { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; width: 100%; text-align: left; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 12px 16px; margin: -8px 0 20px; cursor: pointer; }
.job-line:hover { border-color: var(--line-strong); }
@media (max-width: 520px) { dl.summary { grid-template-columns: 1fr; gap: 2px; } dl.summary dd { margin-bottom: 10px !important; } }
.timeline { list-style: none; margin: 0; padding: 0; }
.timeline li { display: grid; grid-template-columns: 110px 1fr; gap: 14px; padding: 12px 0 12px; border-top: 1px solid var(--line); }
.timeline li:first-child { border-top: 0; padding-top: 0; }
.timeline .when { font-size: 13px; font-weight: 600; color: var(--clay-ink); padding-top: 2px; }
@media (max-width: 520px) { .timeline li { grid-template-columns: 1fr; gap: 2px; } }
@media (max-width: 720px) { .stats { grid-template-columns: 1fr 1fr; } .tracker { grid-auto-flow: row; grid-template-columns: repeat(3, 1fr); row-gap: 12px; } .tracker li { font-size: 11.5px; } }
footer.site { border-top: 1px solid var(--line); padding: 20px 0 calc(24px + env(safe-area-inset-bottom, 0px)); font-size: 13.5px; color: var(--muted); }
footer.site .wrap { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; }
footer.site a { color: inherit; }
footer.site .concern-link { margin-left: auto; color: var(--bad); font-weight: 600; }
.terms-box { display: flex; gap: 10px; align-items: flex-start; cursor: pointer; font-size: 14px; }
.terms-box input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--green); flex: none; }
.terms-box a { color: var(--green); }
.footer-actions { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 24px; flex-wrap: wrap; }
.toast { position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); background: var(--ink); color: #fff; padding: 11px 18px; border-radius: 12px; font-size: 14px; opacity: 0; transition: opacity .2s; pointer-events: none; z-index: 60; }
.toast.on { opacity: 1; }
.center { text-align: center; }
:focus-visible { outline: 3px solid var(--clay); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }
@media (max-width: 720px) {
  .grid2 { grid-template-columns: 1fr; }
  header.site nav .hide-sm { display: none; }
}
@media (max-width: 1000px) {
  header.site nav { gap: 12px; }
  .who { max-width: 110px; }
}
header.site nav a { white-space: nowrap; }
@media (max-width: 560px) {
  .who { display: none; }
  header.site .wrap { gap: 12px; }
  header.site nav { gap: 14px; }
}
@media (max-width: 520px) {
  .wrap { padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
  .days .pill { width: 42px; height: 42px; }
}
