/* The parent page, in the comps' style (design/10a–10e, design/COLORS.md: the cream set). */

@font-face { font-family: Nunito; font-weight: 600; font-display: swap; src: url(/fonts/Nunito-600.woff2) format("woff2"); }
@font-face { font-family: Nunito; font-weight: 700; font-display: swap; src: url(/fonts/Nunito-700.woff2) format("woff2"); }
@font-face { font-family: Nunito; font-weight: 800; font-display: swap; src: url(/fonts/Nunito-800.woff2) format("woff2"); }

:root {
  --bg: #F7F0E4; --button: #D9B98C; --line: #E3D6C2; --text: #3F2E22; --muted: #7A5C44; --white: #FFFFFF;
  --chip: #F7F0E4; --flag-bg: #FBE8E4; --flag: #9B3B2E;
}
* { box-sizing: border-box; }
html { background: var(--bg); color: var(--text); font: 600 17px/1.4 Nunito, ui-rounded, -apple-system, system-ui, sans-serif; -webkit-text-size-adjust: 100%; }
body { margin: 0 auto; max-width: 480px; min-height: 100vh; min-height: 100dvh;
  padding: calc(env(safe-area-inset-top) + 28px) 16px calc(env(safe-area-inset-bottom) + 28px); }
[hidden] { display: none !important; }

.top { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 0 4px 16px; }
.brand { font-size: clamp(20px, 6.4vw, 28px); font-weight: 800; margin: 0; line-height: 1.2; white-space: nowrap; }
h2 { font-size: 24px; font-weight: 800; margin: 0 0 8px; line-height: 1.2; }
p { margin: 0; }

.card { background: var(--white); border-radius: 28px; padding: 24px 22px; box-shadow: 0 3px 0 var(--line); }
.card.center { text-align: center; }
.card > * + * { margin-top: 14px; }
form > * + * { margin-top: 12px; }
.card > h2 + .sub { margin-top: 4px; }

.sub { color: var(--muted); font-weight: 700; font-size: 15px; }
.label { font-weight: 800; font-size: 17px; }
.later { background: var(--chip); border-radius: 14px; padding: 10px 14px; color: var(--muted); font-weight: 800; font-size: 15px; }
.standing { color: var(--muted); font-size: 14px; font-weight: 700; border-top: 1px solid var(--line); padding-top: 14px; }
.empty { color: var(--muted); font-weight: 700; }
.signedin { color: var(--muted); font-size: 13px; text-align: center; margin-top: 16px; overflow-wrap: anywhere; }

/* tabs (comp: five white pills, the current one filled) */
.tabs { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; margin-bottom: 14px; }
.tab { font: inherit; font-weight: 800; font-size: 14px; color: var(--text); background: var(--white); border: 0; border-radius: 999px;
  padding: 12px 2px; box-shadow: 0 3px 0 var(--line); cursor: pointer; }
.tab[aria-selected="true"] { background: var(--button); }
.kids { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.kid { font: inherit; font-weight: 800; font-size: 15px; color: var(--text); background: transparent; border: 2px solid var(--line); border-radius: 999px; padding: 6px 14px; cursor: pointer; }
.kid[aria-pressed="true"] { background: var(--button); border-color: var(--button); }

/* rows (comp: label left, control right, thin rule between) */
.row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 0; border-top: 1px solid var(--line); margin: 0; }
.row.block { display: block; }
.row.block > * + * { margin-top: 8px; }
.card > .row:first-child, .card > .later + .row { border-top: 0; }
.section { border-top: 1px solid var(--line); padding-top: 14px; }
.section > * + * { margin-top: 10px; }

/* buttons */
button { -webkit-tap-highlight-color: transparent; }
.pill { font: inherit; font-weight: 800; color: var(--text); background: var(--white); border: 2px solid var(--line); border-radius: 999px; padding: 11px 22px; cursor: pointer; }
.pill.primary { background: var(--button); border-color: var(--button); }
.pill.wide { width: 100%; }
.pill:disabled { opacity: 0.5; cursor: default; }
.link { font: inherit; font-weight: 800; color: var(--muted); background: none; border: 0; padding: 4px 0; text-decoration: underline; cursor: pointer; }
.top .link { font-size: 18px; }
.switch { text-align: center; }
.row-buttons { display: flex; flex-wrap: wrap; gap: 10px; }

/* choice chips (comp: outlined pills, the chosen one filled) */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.choice { font: inherit; font-weight: 800; font-size: 16px; color: var(--text); background: var(--white); border: 2px solid var(--line); border-radius: 999px; min-width: 48px; padding: 8px 12px; cursor: pointer; }
.choice[aria-pressed="true"] { background: var(--button); border-color: var(--button); }
.topic { display: inline-flex; align-items: center; gap: 10px; background: var(--chip); border-radius: 999px; padding: 8px 10px 8px 16px; font-weight: 800; }
.topic button { font: inherit; font-weight: 800; color: var(--muted); background: none; border: 0; padding: 0 6px; cursor: pointer; }
.add-topic { font: inherit; font-weight: 800; color: var(--muted); background: none; border: 2px dashed var(--line); border-radius: 999px; padding: 8px 18px; cursor: pointer; }

/* switches (comp: tan when on, line colour when off) */
.switch-btn { flex: none; position: relative; width: 62px; height: 36px; border-radius: 999px; border: 2px solid var(--line); background: var(--line); cursor: pointer; padding: 0; }
.switch-btn::after { content: ""; position: absolute; top: 2px; left: 2px; width: 28px; height: 28px; border-radius: 50%; background: var(--white); box-shadow: 0 1px 2px rgba(63, 46, 34, 0.25); transition: left 0.15s; }
.switch-btn[aria-checked="true"] { background: var(--button); border-color: var(--button); }
.switch-btn[aria-checked="true"]::after { left: 28px; }

/* forms */
.field { display: block; }
.field span { display: block; font-weight: 800; margin-bottom: 6px; }
input[type="text"], input[type="email"], select, textarea {
  font: inherit; font-weight: 600; color: var(--text); width: 100%; padding: 12px 14px; border: 2px solid var(--line); border-radius: 16px; background: var(--white); }
input.code { font-weight: 800; letter-spacing: 2px; text-transform: uppercase; }
input.right, select.right { flex: 1 1 auto; min-width: 0; width: auto; max-width: 62%; text-align: right; border-color: transparent; font-weight: 800; padding: 8px 4px; }
input.right:focus, select.right:focus { border-color: var(--line); text-align: left; }
textarea { resize: vertical; min-height: 84px; }
.inline { display: flex; gap: 8px; }
.tick { display: flex; gap: 12px; align-items: flex-start; }
.tick input { width: 24px; height: 24px; margin-top: 2px; accent-color: var(--button); flex: none; }

.msg { color: var(--muted); font-weight: 700; font-size: 15px; min-height: 1.2em; }
.msg.warn, .msg.bad { color: var(--flag); }
.msg.warn { background: var(--flag-bg); border-radius: 14px; padding: 10px 14px; margin-bottom: 12px; }

.notice { background: var(--chip); border-radius: 18px; padding: 14px 16px; font-size: 15px; }

/* add her phone */
.steps { margin: 0; padding-left: 22px; }
.steps li { margin: 6px 0; }
.linkbox { background: var(--chip); border-radius: 16px; padding: 12px 14px; }
.url { font-size: 13px; overflow-wrap: anywhere; user-select: all; -webkit-user-select: all; }
.codebox { text-align: center; }
.bigcode { font-size: 30px; font-weight: 800; letter-spacing: 3px; }

.devices { list-style: none; margin: 0; padding: 0; }
.devices li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 0; }
.devices .sub { display: block; }

.who { margin-bottom: 14px; }
