/* app.css — the signed-in pages (/signin, /setup, /account). Same colours, type and tap sizes as the rest of the
   site; built for readers 45+ on phones: 19px text, full-width buttons at least 52px tall, one column. */
/* brand */
:root { --bg: #fafbf7; --card: #ffffff; --ink: #14201a; --muted: #4b5a51; --line: #d2dbd1; --accent: #1d5a42; --accent-ink: #ffffff; --link: #1c6585; --soft: #e3eadb; --signal: #c25418; --error: #9b2c1f; --ok: #1d5a42; --chart-a: #2e8560; --chart-b: #d9822b; }
@media (prefers-color-scheme: dark) { :root { --bg: #0f1612; --card: #17211b; --ink: #e6efe8; --muted: #a0b3a7; --line: #2a3a30; --accent: #80cba7; --accent-ink: #0f1612; --link: #86c6e2; --soft: #1c2a21; --signal: #f08a4b; --error: #f0a08f; --ok: #80cba7; --chart-a: #3f9a6f; --chart-b: #d47a35; color-scheme: dark; } }
@font-face { font-family: 'Libre Caslon Text'; font-style: normal; font-weight: 700; font-display: swap; src: url(/fonts/libre-caslon-text-700.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
h1, h2, h3 { font-family: 'Libre Caslon Text', Georgia, 'Times New Roman', serif; font-weight: 700; }
a { color: var(--link); }
.brand { display: inline-block; line-height: 0; border-radius: 4px; }
.brand svg { display: block; height: 34px; width: auto; }
.lk-a { fill: var(--accent); } .lk-i { fill: var(--ink); } .lk-s { fill: var(--signal); }
/* /brand */
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 19px/1.55 Georgia, 'Times New Roman', serif; padding: 20px 16px 120px; }
main { max-width: 36rem; margin: 0 auto; }
h1 { font-size: clamp(1.8rem, 6.5vw, 2.4rem); line-height: 1.15; margin: .5em 0 .4em; }
h2 { font-size: 1.35rem; line-height: 1.25; margin: 0 0 .5em; }
h3 { font-size: 1.1rem; margin: 1em 0 .4em; }
p { margin: 0 0 1em; }
.lede { font-size: 18px; color: var(--muted); }
.muted, small { color: var(--muted); }
small { display: block; font-size: 16px; line-height: 1.4; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 18px 16px; margin: 0 0 18px; }
.card > :last-child { margin-bottom: 0; }
label.field, .q { display: block; font-weight: 700; margin: 16px 0 8px; }
input[type=text], input[type=email], input[type=date], select {
  width: 100%; min-height: 52px; font: inherit; color: var(--ink); background: var(--bg); border: 2px solid var(--line); border-radius: 10px; padding: 10px 12px; }
input:focus-visible, select:focus-visible, button:focus-visible, summary:focus-visible, a:focus-visible, .chips input:focus-visible + span {
  outline: 3px solid var(--accent); outline-offset: 2px; }
button, .btn { display: block; width: 100%; min-height: 56px; font: 700 19px/1.2 system-ui, sans-serif; color: var(--accent-ink); background: var(--accent);
  border: 0; border-radius: 12px; padding: 16px; text-align: center; text-decoration: none; cursor: pointer; margin: 14px 0 0; }
button.btn-2, .btn-2 { color: var(--accent); background: transparent; border: 2px solid var(--accent); }
button.link { display: inline; width: auto; min-height: 44px; background: none; color: var(--accent); font: inherit; text-decoration: underline; padding: 8px 0; margin: 0; }
button[disabled] { opacity: .6; cursor: wait; }
.row { display: flex; flex-wrap: wrap; gap: 0 12px; align-items: flex-end; }
.row > * { flex: 1 1 130px; min-width: 0; }
input[type=date] { min-width: 0; -webkit-appearance: none; appearance: none; }
.error { color: var(--error); font-weight: 700; }
.ok { color: var(--ok); font-weight: 700; }
.status { min-height: 1.5em; margin: 10px 0 0; }
.note { background: var(--soft); border-radius: 10px; padding: 12px 14px; font-size: 17px; margin: 12px 0; }
[hidden] { display: none !important; }

/* On/off switches: a real checkbox, drawn as a switch. */
.switch-row { display: flex; justify-content: space-between; align-items: center; gap: 14px; min-height: 56px; cursor: pointer; }
.switch-row > span { flex: 1; }
input.switch { appearance: none; -webkit-appearance: none; flex: none; width: 58px; height: 34px; border-radius: 17px; background: var(--line); position: relative; cursor: pointer; margin: 0; transition: background .15s; }
input.switch::before { content: ''; position: absolute; top: 3px; left: 3px; width: 28px; height: 28px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.3); transition: left .15s; }
input.switch:checked { background: var(--accent); }
input.switch:checked::before { left: 27px; }

/* Chips: radio buttons drawn as pills. */
.chips { border: 0; margin: 10px 0 4px; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chips legend { width: 100%; font-size: 16px; color: var(--muted); padding: 0; margin-bottom: 6px; }
.chips legend.q { font-size: inherit; color: var(--ink); margin: 16px 0 8px; }
.chips label { position: relative; }
.chips input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.chips span { display: inline-flex; align-items: center; min-height: 48px; padding: 8px 18px; border: 2px solid var(--line); border-radius: 24px; background: var(--bg); font: 600 17px/1.2 system-ui, sans-serif; cursor: pointer; }
.chips input:checked + span { border-color: var(--accent); background: var(--accent); color: var(--accent-ink); }

/* Radio cards (delivery mode). */
.choice { display: block; position: relative; background: var(--bg); border: 2px solid var(--line); border-radius: 12px; padding: 14px 14px 14px 48px; margin: 0 0 10px; cursor: pointer; }
.choice:has(input:checked) { border-color: var(--accent); }
.choice input { position: absolute; left: 14px; top: 18px; width: 22px; height: 22px; accent-color: var(--accent); margin: 0; }
.choice b { display: block; }
.ticks label { display: flex; gap: 12px; align-items: center; min-height: 48px; cursor: pointer; }
.ticks input { width: 24px; height: 24px; accent-color: var(--accent); flex: none; margin: 0; }

/* Packs of alerts. */
details.pack { border-top: 1px solid var(--line); }
details.pack:first-of-type { border-top: 0; }
details.pack summary { list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 10px; min-height: 60px; cursor: pointer; font-weight: 700; }
details.pack summary::-webkit-details-marker { display: none; }
details.pack summary::after { content: '▾'; color: var(--muted); font-size: 22px; transition: transform .15s; }
details.pack[open] summary::after { transform: rotate(180deg); }
details.pack summary .count { margin-left: auto; font: 400 15px/1.2 system-ui, sans-serif; color: var(--muted); }
.alert { border-top: 1px dashed var(--line); padding: 6px 0 10px; }
.alert.flash { background: var(--soft); border-radius: 8px; padding-left: 8px; padding-right: 8px; }
.alert .more { padding: 0 0 4px; }

/* The place cards and the pin map. */
.place-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 4px 12px; }
.place-head b { font-size: 1.15rem; }
.map { position: relative; height: 320px; overflow: hidden; border-radius: 12px; border: 2px solid var(--line); background: var(--soft); touch-action: none; cursor: grab; margin: 12px 0 0; user-select: none; }
.map img { position: absolute; width: 256px; height: 256px; max-width: none; pointer-events: none; }
.map .pin { position: absolute; left: 50%; top: 50%; width: 36px; height: 48px; margin: -48px 0 0 -18px; pointer-events: none; filter: drop-shadow(0 2px 2px rgba(0,0,0,.45)); }
.map .zoom { position: absolute; right: 10px; top: 10px; display: flex; flex-direction: column; gap: 8px; }
.map .zoom button { width: 52px; min-height: 52px; margin: 0; padding: 0; font: 700 26px/1 system-ui, sans-serif; background: #ffffff; color: #14201a; border: 1px solid #d2dbd1; }
.map .credit { position: absolute; left: 0; bottom: 0; font: 12px/1.3 system-ui, sans-serif; background: rgba(255,255,255,.85); color: #14201a; padding: 2px 6px; border-top-right-radius: 6px; }

/* The Done bar stays in reach at the bottom of the screen. */
.done-bar { position: sticky; bottom: 0; background: var(--bg); padding: 10px 0 14px; border-top: 1px solid var(--line); margin-top: 8px; }
.done-bar button { margin-top: 0; }
.done-bar .status { margin: 8px 0 0; }
ul.plain { list-style: none; padding: 0; margin: 0; }
ul.plain li { padding: 10px 0; border-top: 1px solid var(--line); }
ul.plain li:first-child { border-top: 0; }
footer { margin-top: 32px; font-size: 15px; color: var(--muted); }

/* "Your plan" on /account: the cancel step, the card and Stripe's form, receipts */
textarea { width: 100%; min-height: 96px; font: inherit; color: var(--ink); background: var(--bg); border: 2px solid var(--line); border-radius: 10px; padding: 12px; resize: vertical; }
textarea:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.sub { border-top: 1px solid var(--line); padding-top: 14px; margin-top: 14px; }
.sub:first-child { border-top: 0; padding-top: 0; margin-top: 0; }
.sub .buttons { display: grid; gap: 10px; margin: 12px 0 0; }
.sub .buttons button { margin: 0; }
.confirm { background: var(--soft); border-radius: 12px; padding: 14px; margin: 12px 0 0; }
.confirm .chips span { font-size: 16px; }
.pay { margin-top: 14px; }
.pay:focus { outline: none; }
.pay-form { min-height: 120px; margin: 8px 0 12px; color: var(--muted); }
ul.plain li.receipt { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 12px; }
