/* Trapeza waitlist site. Colors and type follow the PROV-97 brand kit v2 (direction B, Table T). */
/* Literata: Latin only, weight 600 (the only weight the site uses), optical size 18-54 for headings. */
@font-face { font-family: "Literata"; src: url("fonts/Literata-600-latin.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Figtree"; src: url("fonts/Figtree-VF.woff2") format("woff2"); font-weight: 200 1000; font-display: swap; }
:root {
  --plum: #5A2E4A; --honey: #E3A440; --oat: #F5EEDF; --ink: #21141C;
  --plum-light: #D7A9C6; --honey-deep: #8A5A10;
  --line: #EADFCB; --muted: #6B5A63; --error-on-plum: #FFD3C9;
  --radius: 18px; --max: 1080px;
}
* { box-sizing: border-box; }
/* Keep elements with the hidden attribute hidden even when a class sets display (the waitlist form after joining). */
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--oat); color: var(--ink); font: 400 1rem/1.6 "Figtree", system-ui, sans-serif; }
h1, h2, h3 { font-family: "Literata", Georgia, serif; font-weight: 600; line-height: 1.15; margin: 0 0 .5em; }
h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.2rem); }
h3 { font-size: 1.25rem; }
a { color: var(--honey-deep); }
/* Focus rings: plum on light backgrounds, oat on the plum waitlist panel (both 3:1 or better). */
a:focus-visible, button:focus-visible, input:focus-visible { outline: 3px solid var(--plum); outline-offset: 2px; }
.waitlist :focus-visible { outline-color: var(--oat); }
.waitlist .done :focus-visible { outline-color: var(--plum); }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.skip { position: absolute; left: -999px; } .skip:focus { left: 12px; top: 12px; background: #fff; padding: 8px 12px; z-index: 9; }
header.site { padding: 22px 0; }
header.site .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
header.site img { height: 44px; width: auto; display: block; }
header.site nav a { margin-left: 20px; font-weight: 700; text-decoration: none; color: var(--ink); }
.btn { display: inline-block; background: var(--plum); color: var(--oat); border: 0; border-radius: 999px; padding: 14px 26px; font: 700 1rem "Figtree", sans-serif; cursor: pointer; text-decoration: none; }
.btn:hover { background: var(--ink); }
.btn:disabled { opacity: .55; cursor: not-allowed; }
.hero { padding: 48px 0 72px; }
.hero .wrap { display: grid; grid-template-columns: 1.2fr .8fr; gap: 48px; align-items: center; }
.hero p.lede { font-size: 1.2rem; max-width: 34em; }
/* Hero preview: an example week and its grocery list. */
.preview { margin: 0; display: grid; gap: 14px; }
.card { background: #fff; border-radius: var(--radius); padding: 18px 20px; box-shadow: 0 12px 32px -16px #5A2E4A66, 0 1px 0 #0000000d; }
.card-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 12px; }
.card-title { margin: 0; font: 600 1.15rem/1.3 "Literata", Georgia, serif; color: var(--plum); }
.pills { margin: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.pills span { background: var(--oat); border-radius: 999px; padding: 2px 10px; font-size: .8rem; font-weight: 700; }
.dinners { list-style: none; margin: 10px 0 0; padding: 0; }
.dinners li { display: grid; grid-template-columns: 2.8em 1fr auto; gap: 10px; align-items: baseline; padding: 8px 0; border-top: 1px solid var(--line); }
.day { font-size: .8rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--honey-deep); }
.time, .more { font-size: .85rem; color: var(--muted); }
.time { white-space: nowrap; }
.preview .list { margin-left: 40px; }
.estimate { margin: 0; background: var(--honey); border-radius: 999px; padding: 2px 10px; font-size: .85rem; font-weight: 700; }
.aisle { margin: 12px 0 4px; font-size: .75rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.list ul { list-style: none; margin: 0; padding: 0; }
.list li { display: flex; align-items: center; gap: 10px; padding: 3px 0; }
.list li::before { content: ""; flex: none; width: 14px; height: 14px; border: 2px solid var(--plum-light); border-radius: 4px; }
.more { margin: 10px 0 0; }
.eyebrow { color: var(--honey-deep); font-weight: 800; letter-spacing: .08em; text-transform: uppercase; font-size: .85rem; }
section { padding: 64px 0; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; counter-reset: s; }
.step { background: var(--oat); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.step::before { counter-increment: s; content: counter(s); display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--honey); color: var(--ink); font: 600 1.1rem "Literata", serif; margin-bottom: 14px; }
.band { background: #fff; }
.waitlist { background: var(--plum); color: var(--oat); border-radius: 32px; padding: 48px; }
.waitlist h2, .waitlist a { color: var(--oat); }
.waitlist form { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 18px; }
.waitlist label { flex-basis: 100%; font-weight: 700; }
.waitlist input[type=email] { flex: 1 1 260px; padding: 14px 18px; border-radius: 999px; border: 2px solid transparent; font: 1rem "Figtree", sans-serif; color: var(--ink); background: var(--oat); }
.waitlist input[aria-invalid="true"] { border-color: var(--error-on-plum); box-shadow: 0 0 0 2px var(--error-on-plum); }
.waitlist .field-error { order: 1; flex-basis: 100%; margin: 0; color: var(--error-on-plum); font-weight: 700; }
/* Inline links in the small print get a taller tap target (24 px or more). */
.waitlist form p.small a { display: inline-block; padding: 4px 0; }
.waitlist .btn { background: var(--ink); }
.waitlist .btn:hover { background: #000; }
.small { font-size: .9rem; }
/* Field error and bot check sit right under the field; status and small print come last. */
.waitlist form p { flex-basis: 100%; margin: 4px 0 0; order: 2; }
/* The bot check takes no room unless it needs the visitor to do something. */
.waitlist .cf-turnstile { order: 1; flex-basis: 100%; height: 0; overflow: hidden; margin-top: -12px; }
.waitlist .cf-turnstile.show { height: auto; overflow: visible; margin-top: 0; }
.done { background: var(--oat); color: var(--ink); border-radius: var(--radius); padding: 22px; margin-top: 18px; }
.done input { width: 100%; padding: 12px; border-radius: 10px; border: 1px solid #e0d6c4; font: .95rem "Figtree", monospace; }
.status { flex-basis: 100%; font-weight: 700; margin: 4px 0 0; }
.notice { background: var(--oat); border-left: 6px solid var(--honey); padding: 14px 18px; border-radius: 10px; }
footer.site { padding: 40px 0 56px; font-size: .95rem; }
footer.site .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; }
footer.site nav a { margin-right: 18px; white-space: nowrap; display: inline-block; line-height: 2; }
.page { padding-top: 24px; padding-bottom: 64px; max-width: 760px; }
.page h2 { font-size: 1.35rem; margin-top: 1.6em; }
.page li { margin-bottom: .35em; }
@media (max-width: 760px) {
  .hero .wrap, .steps { grid-template-columns: 1fr; }
  .preview { max-width: 460px; }
  .preview .list { margin-left: 0; }
  header.site nav { display: none; }
  .waitlist { padding: 28px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
/* Dark mode: follows the device unless the visitor picks Light or Dark (assets/theme.js sets data-theme). */
.theme-pick { display: flex; align-items: center; gap: 6px; font-size: .85rem; font-weight: 700; }
.theme-pick select { font: inherit; color: var(--ink); background: var(--oat); border: 1px solid var(--muted); border-radius: 8px; padding: 4px 6px; }
.theme-pick select:focus-visible { outline: 3px solid var(--plum); outline-offset: 2px; }
header.site .right { display: flex; align-items: center; gap: 4px 0; }
header.site .logo-dark { display: none; }
:root[data-theme=dark] header.site .logo-light { display: none; }
:root[data-theme=dark] header.site .logo-dark { display: block; }
:root[data-theme=dark] {
  color-scheme: dark;
  --oat: #1A1116; --ink: #F5EEDF; --plum: #E9B8D6; --plum-light: #8A5A7A;
  --honey-deep: #E3A440; --line: #3E2C36; --muted: #C9B6C0;
}
:root[data-theme=dark] .card, :root[data-theme=dark] .band, :root[data-theme=dark] .skip:focus { background: #2A1C24; }
:root[data-theme=dark] .card { box-shadow: 0 12px 32px -16px #000a; }
:root[data-theme=dark] .card-title { color: #AD7099; }
:root[data-theme=dark] .estimate, :root[data-theme=dark] .step::before { color: #21141C; }
:root[data-theme=dark] .waitlist { background: #3A2232; color: #F5EEDF; }
:root[data-theme=dark] .waitlist h2, :root[data-theme=dark] .waitlist a { color: #F5EEDF; }
:root[data-theme=dark] .waitlist :focus-visible { outline-color: #F5EEDF; }
:root[data-theme=dark] .waitlist input[type=email] { background: #F5EEDF; color: #21141C; }
:root[data-theme=dark] .waitlist .btn { background: #E3A440; color: #21141C; }
:root[data-theme=dark] .waitlist .btn:hover { background: #D3942F; color: #21141C; }
:root[data-theme=dark] .btn { background: #E3A440; color: #21141C; }
:root[data-theme=dark] .btn:hover { background: #D3942F; color: #21141C; }
:root[data-theme=dark] .done { background: #2A1C24; }
:root[data-theme=dark] .done :focus-visible { outline-color: var(--plum); }
:root[data-theme=dark] .done input { background: #1A1116; color: #F5EEDF; border-color: #3E2C36; }

.swap { display: block; font-size: .78rem; font-weight: 700; color: var(--muted); }
.features .step::before { display: none; }
.pricing { margin: 24px 0 0; font-weight: 700; text-align: center; }
#features { padding: 56px 0; }
.waitlist .btn-retry { order: 2; background: transparent; border: 2px solid currentColor; }
