/* The front door (door/). Same palette and type as the demo (app.css :root), phone first. */
:root {
  --bg: hsl(340 47% 96%); --fg: hsl(258 24% 15%); --primary: hsl(320 76% 80%); --primary-soft: hsl(320 76% 92%);
  --pink: hsl(320 70% 56%); --border: hsl(258 18% 24% / .16); --muted: hsl(258 12% 40%); --bad: hsl(0 70% 42%);
}
* { box-sizing: border-box; }
html, body { margin: 0; }
[hidden] { display: none !important; }   /* form { display: grid } would otherwise beat the hidden attribute */
body { background: var(--bg); color: var(--fg); font: 16px/1.5 'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif; -webkit-font-smoothing: antialiased; }
.door { max-width: 460px; margin: 0 auto; padding: 28px 20px 48px; }
.door-brand { margin: 0 0 28px; font: 24px/1 'Instrument Serif', Georgia, serif; display: flex; align-items: baseline; gap: 5px; }
.door-brand i { width: 8px; height: 8px; border-radius: 50%; background: var(--pink); display: inline-block; }
.door-h1 { margin: 0; font: 46px/1.02 'Instrument Serif', Georgia, serif; letter-spacing: -.5px; text-wrap: balance; }
.door-lede { margin: 14px 0 26px; font-size: 17px; color: var(--muted); text-wrap: pretty; }
.door-card { background: #fff; border: 1px solid var(--border); border-radius: 18px; padding: 22px 20px; box-shadow: 0 6px 16px rgba(0, 0, 0, .06); }
.door-card + .door-card { margin-top: 16px; }
.door-card h2 { margin: 0 0 14px; font: 28px/1.1 'Instrument Serif', Georgia, serif; font-weight: 400; }
.door-in { background: transparent; box-shadow: none; }
.door-in h2 { font-size: 22px; }
form { display: grid; gap: 12px; }
label { display: grid; gap: 5px; font-size: 14px; font-weight: 600; }
input:not([type=radio]) { font: inherit; font-size: 17px; font-weight: 400; padding: 12px 14px; border: 1px solid hsl(258 18% 24% / .28); border-radius: 12px; background: #fff; color: var(--fg); width: 100%; }
input:focus-visible { outline: 3px solid var(--primary); outline-offset: 1px; border-color: var(--pink); }
.door-kinds { border: 0; padding: 0; margin: 2px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.door-kinds legend { font-size: 14px; font-weight: 600; padding: 0; margin-bottom: 6px; }
.door-kinds label { display: block; }
.door-kinds input { position: absolute; opacity: 0; pointer-events: none; }
.door-kinds span { display: inline-block; padding: 9px 14px; border: 1px solid hsl(258 18% 24% / .28); border-radius: 999px; font-weight: 600; font-size: 15px; cursor: pointer; background: #fff; }
.door-kinds input:checked + span { background: var(--primary-soft); border-color: var(--pink); box-shadow: inset 0 0 0 1px var(--pink); }
.door-kinds input:focus-visible + span { outline: 3px solid var(--primary); }
button { font: inherit; font-size: 17px; font-weight: 700; padding: 14px 18px; border: 0; border-radius: 12px; background: var(--fg); color: #fff; cursor: pointer; margin-top: 4px; }
button:hover { background: hsl(258 24% 26%); }
button[disabled] { opacity: .6; cursor: progress; }
.door-in button { background: #fff; color: var(--fg); border: 1px solid var(--fg); }
.door-in button:hover { background: var(--primary-soft); }
.door-err { margin: 0; color: var(--bad); font-size: 15px; font-weight: 600; text-wrap: pretty; }
.door-err:empty { display: none; }
.door-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.door-done .door-done-h { margin: 0 0 4px; font: 30px/1.1 'Instrument Serif', Georgia, serif; }
.door-done p { margin: 0; font-size: 17px; }
@media (min-width: 720px) { .door { padding-top: 64px; } .door-h1 { font-size: 58px; } }
/* the owners' film (Mark, 14 Oct: "a short video they can watch"): under the headline on a phone, left of the form on a laptop.
   Its first frame shows while it loads; it plays muted, and only a tap on Play with sound gives it sound. */
.door-film { position: relative; margin: 0 auto 24px; width: min(100%, calc(62vh * 9 / 16)); aspect-ratio: 9 / 16; border-radius: 18px; overflow: hidden; background: #1b1626; box-shadow: 0 10px 28px rgba(0, 0, 0, .18); }
.door-film video { display: block; width: 100%; height: 100%; object-fit: cover; }
.door-sound { position: absolute; left: 50%; bottom: 16px; transform: translateX(-50%); display: inline-flex; align-items: center; gap: 8px; margin: 0; padding: 11px 18px; border-radius: 999px; background: rgba(255, 255, 255, .94); color: var(--fg); font-size: 15px; white-space: nowrap; box-shadow: 0 4px 14px rgba(0, 0, 0, .25); }
.door-sound:hover { background: #fff; }
.door-sound:focus-visible { outline: 3px solid var(--primary); outline-offset: 2px; }
.door-sound svg { width: 18px; height: 18px; flex: none; }
@media (min-width: 900px) {
  .door-with-film { max-width: 1000px; display: grid; grid-template-columns: auto minmax(0, 460px); grid-template-rows: auto auto auto auto 1fr; column-gap: 56px;
    grid-template-areas: "film brand" "film h1" "film lede" "film ask" "film in"; justify-content: center; }
  .door-with-film .door-brand { grid-area: brand; } .door-with-film .door-h1 { grid-area: h1; } .door-with-film .door-lede { grid-area: lede; }
  .door-with-film #ask { grid-area: ask; } .door-with-film .door-in { grid-area: in; }
  .door-with-film .door-film { grid-area: film; width: calc(min(80vh, 640px) * 9 / 16); margin: 0; align-self: start; position: sticky; top: 32px; }
}
/* opt-in boxes: unticked, the exact wording beside each (it is what we store with the consent) */
.door-ok { display: grid; grid-template-columns: 24px 1fr; gap: 10px; align-items: start; font-size: 14px; font-weight: 500; line-height: 1.45; color: var(--muted); margin-top: -4px; }
.door-ok input { width: 22px; height: 22px; margin: 1px 0 0; accent-color: var(--fg); }
.door-ok a, .door-fine a { color: inherit; }
.door-fine { margin: 0; font-size: 14px; line-height: 1.45; color: var(--muted); text-wrap: pretty; }
.door-quiet { display: block; text-align: center; color: var(--fg); font-weight: 600; font-size: 16px; margin-top: 6px; }
.door-who { margin: 0 0 6px; font-size: 17px; }
.door-page h2 { margin-bottom: 8px; }
/* a personal link's first page (Chris, 15 Oct: "too much text ... squished"): room between the parts, the boxes' first line plain, the rest small */
.door-sub { margin: 0 0 20px; font-size: 16px; color: var(--muted); text-wrap: pretty; }
.door-page form { gap: 14px; }
.door-page .door-ok { margin: -2px 0 6px; }
.door-ok b { display: block; color: var(--fg); font-size: 15px; font-weight: 600; text-wrap: pretty; }
.door-ok small { display: block; margin-top: 3px; font-size: 13px; line-height: 1.4; text-wrap: pretty; }
.door-page button { margin-top: 10px; }
.door-on { margin: 0; font-size: 16px; }
.door-on b { color: hsl(140 50% 26%); }
.door-off b { color: var(--muted); }
.door-legal { font-size: 16px; }
.door-legal h1 { font: 34px/1.1 'Instrument Serif', Georgia, serif; margin: 0 0 14px; }
.door-legal h2 { font-size: 18px; margin: 22px 0 6px; }
.door-legal p, .door-legal li { margin: 0 0 8px; text-wrap: pretty; }
/* the email-code door (email.html, only while DOOR_MAIL is on): one line under the brand, the code box, two small links */
.door-beta { margin: -18px 0 26px; font-size: 15px; font-weight: 600; color: var(--muted); letter-spacing: .2px; }
.door-code input { font-size: 28px; letter-spacing: 10px; text-align: center; font-variant-numeric: tabular-nums; }
.door-links { display: flex; justify-content: space-between; gap: 12px; margin: 4px 0 0; font-size: 15px; }
.door-links a { color: var(--fg); font-weight: 600; }
.door-to { margin: 0 0 14px; font-size: 16px; text-wrap: pretty; }
.door-to b { overflow-wrap: anywhere; }
