/* DigitalBracelet: warm, reassuring and very readable.
   Layout: soft colour bands, hand-drawn people, generous spacing. Red is kept for emergencies only. */
@font-face { font-family: "Atkinson Hyperlegible"; src: url("fonts/atkinson-400.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Atkinson Hyperlegible"; src: url("fonts/atkinson-700.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Nunito"; src: url("fonts/nunito.woff2") format("woff2"); font-weight: 200 1000; font-style: normal; font-display: swap; }

:root {
  --bg: #fbf7f2;
  --surface: #ffffff;
  --ink: #2a2522;
  --muted: #6b625b;
  --line: #ece3d8;
  --brand: #1f6f6a;
  --brand-ink: #ffffff;
  --brand-soft: #e2f0ec;
  --sun: #f4a259;
  --sun-soft: #fde8d4;
  --rose: #e07a5f;
  --rose-soft: #fbe3dc;
  --alert: #c62828;
  --alert-soft: #fdecea;
  --good: #1e7a46;
  --warn: #9a5b00;
  --radius: 20px;
  --radius-sm: 12px;
  --shadow: 0 1px 2px rgba(60, 40, 20, .05), 0 10px 30px rgba(60, 40, 20, .07);
  --font-display: "Nunito", ui-rounded, "Segoe UI", system-ui, sans-serif;
  --font-body: "Atkinson Hyperlegible", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #1a1715; --surface: #24201d; --ink: #f3ede6; --muted: #b9aea4; --line: #3a332e;
    --brand: #6cc3b7; --brand-ink: #10201e; --brand-soft: #1f3431; --sun: #f4a259; --sun-soft: #3b2a1c;
    --rose: #ef9a83; --rose-soft: #3a241e; --alert: #ef6b6b; --alert-soft: #3a1f1f; --good: #5ccf8d; --warn: #f0b04a;
    --shadow: 0 1px 2px rgba(0,0,0,.3), 0 10px 30px rgba(0,0,0,.25);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #1a1715; --surface: #24201d; --ink: #f3ede6; --muted: #b9aea4; --line: #3a332e;
  --brand: #6cc3b7; --brand-ink: #10201e; --brand-soft: #1f3431; --sun: #f4a259; --sun-soft: #3b2a1c;
  --rose: #ef9a83; --rose-soft: #3a241e; --alert: #ef6b6b; --alert-soft: #3a1f1f; --good: #5ccf8d; --warn: #f0b04a;
  --shadow: 0 1px 2px rgba(0,0,0,.3), 0 10px 30px rgba(0,0,0,.25);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 18px/1.65 var(--font-body); }
a { color: var(--brand); text-underline-offset: 3px; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, summary:focus-visible { outline: 3px solid var(--sun); outline-offset: 2px; }
h1, h2, h3 { font-family: var(--font-display); line-height: 1.18; letter-spacing: -.01em; text-wrap: balance; }
h1 { font-size: clamp(2rem, 4.6vw, 3.1rem); font-weight: 850; margin: .3em 0 .35em; }
h2 { font-size: clamp(1.4rem, 2.6vw, 1.85rem); font-weight: 800; margin: 1.8em 0 .6em; }
h3 { font-size: 1.15rem; font-weight: 800; margin: 0 0 .3em; }
p { margin: 0 0 1em; }
.wrap { max-width: 1120px; margin: 0 auto; padding-inline: 20px; }
.muted { color: var(--muted); }
.small { font-size: .9rem; }
.lead { font-size: 1.18rem; color: var(--muted); max-width: 40em; }
.eyebrow { font-family: var(--font-display); font-weight: 800; color: var(--rose); font-size: 1rem; margin: 0; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 8px; top: 8px; background: var(--surface); padding: 8px; z-index: 9; }
img.person { display: block; width: 100%; height: auto; }

/* header / footer */
.org-band { margin-top: 64px; background: var(--sun-soft); }
.org-band-row { display: flex; align-items: center; gap: 16px 28px; flex-wrap: wrap; padding-block: 22px; }
.org-band-row img { flex-shrink: 0; width: 200px; height: auto; }
.org-band-row p { margin: 0; flex: 1 1 320px; font-size: 1.02rem; }
.org-band + .site-footer { margin-top: 0; }
.site-header { background: var(--bg); }
.header-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 72px; flex-wrap: wrap; }
.logo { display: flex; align-items: center; gap: 8px; text-decoration: none; color: var(--ink); font-family: var(--font-display); font-size: 1.25rem; font-weight: 700; }
.logo b { color: var(--brand); font-weight: 900; }
.nav { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; font-size: .98rem; }
.nav a:not(.btn) { color: var(--ink); text-decoration: none; }
.nav a:not(.btn):hover { color: var(--brand); text-decoration: underline; }
.langs { display: flex; gap: 6px; }
.nav a.lang-switch { font-weight: 700; font-size: .82rem; letter-spacing: .04em; color: var(--muted); border: 1.5px solid var(--line); border-radius: 8px; padding: 2px 8px; text-decoration: none; }
.nav a.lang-switch:hover { color: var(--brand); border-color: var(--brand); text-decoration: none; }
.site-footer { margin-top: 80px; padding: 40px 0 28px; background: var(--brand-soft); font-size: .95rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1.2fr 1fr; gap: 28px 36px; align-items: start; }
.footer-col { display: grid; gap: 8px; align-content: start; }
.footer-col h2 { font-size: .82rem; text-transform: uppercase; letter-spacing: .08em; color: var(--brand); margin: 0 0 4px; font-family: var(--font-body); font-weight: 700; }
.footer-col .footer-sub { margin-top: 14px; }
.footer-col a { color: var(--ink); text-decoration: none; font-size: .95rem; line-height: 1.35; }
.footer-col a:hover { color: var(--brand); text-decoration: underline; }
.footer-about p { margin: 0 0 10px; }
.footer-brand { font-family: var(--font-display); font-size: 1.2rem; margin: 0 0 6px; }
.footer-brand b { color: var(--brand); }
.fine { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; color: var(--muted); font-size: .82rem; margin-top: 24px; }

/* buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  background: var(--brand); color: var(--brand-ink); border: 2px solid var(--brand);
  border-radius: 999px; padding: .62em 1.3em; font: inherit; font-family: var(--font-display); font-weight: 800; text-decoration: none;
  cursor: pointer; min-height: 46px; transition: transform .15s ease, filter .15s ease;
}
.btn:hover { filter: brightness(1.07); transform: translateY(-1px); }
.btn:disabled, .btn[aria-disabled="true"] { opacity: .45; cursor: not-allowed; pointer-events: none; }
.btn-ghost { background: transparent; color: var(--brand); }
.btn-sm { padding: .35em 1em; min-height: 38px; font-size: .92rem; }
.btn-lg { font-size: 1.15rem; padding: .8em 1.7em; }
.btn-row { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0; }
@media (prefers-reduced-motion: reduce) { .btn, .choose-card { transition: none; } .btn:hover, .choose-card:hover { transform: none; } }

/* home hero */
.hero { padding: 24px 0 48px; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: 40px; align-items: center; }
.hero h1 { max-width: 15em; }
.hero-cta { margin: 8px 0 18px; }
.reassure { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px 18px; color: var(--muted); font-size: .98rem; }
.reassure li { display: flex; align-items: center; gap: 8px; }
.reassure li::before { content: ""; width: 18px; height: 18px; border-radius: 50%; background: var(--brand-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Cpath d='M5 9.5l2.6 2.5L13 6.5' fill='none' stroke='%231f6f6a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/18px no-repeat; flex-shrink: 0; }
.hero-people { position: relative; aspect-ratio: 1.1; max-width: 520px; width: 100%; margin-left: auto; }
.blob { position: absolute; inset: 8% 4% 4% 6%; background: var(--sun-soft); border-radius: 46% 54% 42% 58% / 52% 44% 56% 48%; }
.hero-people .blob::after { content: ""; position: absolute; width: 38%; aspect-ratio: 1; right: -4%; top: -6%; border-radius: 50%; background: var(--brand-soft); z-index: -1; }
.hero-people .person { position: absolute; bottom: 0; }
.hero-people .p1 { width: 44%; left: 2%; }
.hero-people .p3 { width: 44%; right: 0; }
.hero-people .p2 { width: 36%; left: 33%; z-index: 1; }

/* chooser */
.section { margin-top: 32px; }
.choose { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.choose-card { display: grid; grid-template-columns: 96px 1fr auto; align-items: center; gap: 14px; padding: 14px 18px 14px 14px; background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); text-decoration: none; color: var(--ink); transition: transform .15s ease; border: 2px solid transparent; }
.choose-card:hover { transform: translateY(-2px); border-color: var(--brand-soft); }
.choose-art { display: block; width: 96px; height: 96px; border-radius: 50%; overflow: hidden; background: var(--sun-soft); }
.choose-card:nth-child(2) .choose-art { background: var(--brand-soft); }
.choose-card:nth-child(3) .choose-art { background: var(--rose-soft); }
.choose-art .person { width: 100%; margin-top: 6px; }
.choose-text { display: grid; gap: 2px; min-width: 0; }
.choose-text strong { font-family: var(--font-display); font-size: 1.12rem; color: var(--brand); }
.choose-text span { color: var(--muted); font-size: .95rem; line-height: 1.45; }
.arrow { font-size: 1.4rem; color: var(--brand); }

/* "what happens on the day" */
.day { background: var(--brand-soft); margin-top: 64px; padding: 24px 0 48px; }
.day-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: center; }
.day-steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 18px; counter-reset: s; }
.day-steps li { display: grid; grid-template-columns: 44px 1fr; gap: 14px; counter-increment: s; }
.day-steps li::before { content: counter(s); grid-row: span 2; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--surface); color: var(--brand); font-family: var(--font-display); font-weight: 900; font-size: 1.2rem; box-shadow: var(--shadow); }
.day-steps h3 { margin: 6px 0 2px; }
.day-steps p { margin: 0; color: var(--muted); }
.demo-phone { background: var(--surface); border-radius: 32px; padding: 14px; box-shadow: var(--shadow); max-width: 360px; margin: 0 auto; font-size: .86rem; border: 6px solid var(--ink); }
.demo-banner { background: var(--alert); color: #fff; font-weight: 700; letter-spacing: .06em; border-radius: 12px; padding: 8px 12px; font-size: .78rem; }
.demo-name { font-family: var(--font-display); font-weight: 900; font-size: 1.5rem; margin: 8px 4px 0; }
.demo-call { margin: 8px 0; background: var(--alert); color: #fff; border-radius: 999px; text-align: center; font-weight: 700; padding: 8px; }
.demo-contact { display: flex; justify-content: space-between; align-items: center; border: 1px solid var(--line); border-radius: 12px; padding: 8px 10px; }
.demo-callbtn { background: var(--brand); color: var(--brand-ink); border-radius: 999px; padding: 2px 12px; font-weight: 700; }
.demo-phone .action-card { font-size: .82rem; }

/* why */
.why { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.why-item { padding: 22px 24px; border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow); }
.why-item h3 { color: var(--brand); }
.why-item p { margin: 0; color: var(--muted); }
.why-0 { background: var(--sun-soft); box-shadow: none; }
.why-0 h3 { color: var(--ink); }

/* cost teaser */
.cost-teaser { display: flex; flex-wrap: wrap; gap: 18px 32px; align-items: center; justify-content: space-between; background: var(--surface); border-radius: var(--radius); padding: 24px 28px; box-shadow: var(--shadow); }
.cost-teaser h2 { margin: 0 0 6px; }
.cost-teaser p { margin: 0; color: var(--muted); max-width: 36em; }
.cost-links { display: flex; flex-wrap: wrap; gap: 10px; }
.small-teaser { margin: 32px 0; }
.small-teaser h2 { font-size: 1.3rem; }

.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip { background: var(--surface); border: 1.5px solid var(--line); border-radius: 999px; padding: .4em 1em; text-decoration: none; color: var(--ink); font-size: .98rem; }
.chip:hover { border-color: var(--brand); color: var(--brand); }

/* audience hero */
.aud-hero { padding: 8px 0 24px; }
.aud-hero-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px; align-items: center; }
.empathy { font-size: 1.2rem; line-height: 1.6; border-left: 4px solid var(--sun); padding-left: 16px; margin: 0 0 1em; max-width: 34em; }
.aud-art { position: relative; max-width: 360px; width: 100%; margin-left: auto; aspect-ratio: .95; }
.aud-art .blob { inset: 10% 0 0 0; }
.aud-art .person { position: absolute; bottom: 0; left: 8%; width: 84%; }

/* article pages */
.article { max-width: 800px; }
.crumbs { font-size: .9rem; color: var(--muted); margin-top: 12px; }
.crumbs a { color: var(--muted); }
.ticks { list-style: none; padding: 0; display: grid; gap: 10px; }
.ticks li { position: relative; padding-left: 32px; }
.ticks li::before { content: ""; position: absolute; left: 0; top: .2em; width: 22px; height: 22px; border-radius: 50%; background: var(--brand-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 22 22'%3E%3Cpath d='M6.5 11.5l3 3 6-6.5' fill='none' stroke='%231f6f6a' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/22px no-repeat; }
.cta-box { margin: 40px 0; padding: 20px 24px 20px 12px; border-radius: var(--radius); background: var(--sun-soft); display: grid; grid-template-columns: 120px 1fr; gap: 18px; align-items: center; }
.cta-box p { margin: 0 0 10px; }
img.cta-person { width: 120px; align-self: end; margin-bottom: -20px; }
.faq details { background: var(--surface); border-radius: var(--radius-sm); padding: 14px 18px; margin-bottom: 10px; box-shadow: var(--shadow); }
.faq summary { cursor: pointer; font-weight: 700; }
.faq details p { margin: 10px 0 0; }
.sources { margin-top: 36px; font-size: .92rem; }
.sources h2 { font-size: 1.05rem; }

/* action card (guides and emergency card) */
.action-card { background: var(--surface); border: 2px solid var(--alert); border-radius: var(--radius-sm); overflow: hidden; margin: 12px 0; }
.action-head { background: var(--alert-soft); color: var(--alert); font-weight: 700; padding: 10px 14px; font-size: 1.05rem; margin: 0; font-family: var(--font-body); }
.action-card ol { margin: 10px 0; padding: 0 16px 0 36px; }
.action-card li { margin: .35em 0; }
.when { border-top: 1px solid var(--line); padding: 10px 14px; font-size: .92em; }

/* calculators */
.calc-controls { display: flex; flex-wrap: wrap; gap: 12px 20px; align-items: center; background: var(--surface); padding: 14px 16px; border-radius: var(--radius); box-shadow: var(--shadow); margin: 20px 0; }
.seg { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.seg-label { font-weight: 700; margin-right: 4px; }
.seg button { font: inherit; font-size: .95rem; border: 1.5px solid var(--line); background: var(--bg); color: var(--ink); border-radius: 999px; padding: .3em .95em; cursor: pointer; min-height: 40px; }
.seg button[aria-pressed="true"] { background: var(--brand); border-color: var(--brand); color: var(--brand-ink); font-weight: 700; }
.toggle, .sim { display: flex; align-items: center; gap: 8px; font-size: .95rem; }
.toggle input { width: 20px; height: 20px; accent-color: var(--brand); }
.sim input { width: 84px; font: inherit; padding: .3em .5em; border: 1.5px solid var(--line); border-radius: 10px; background: var(--bg); color: var(--ink); min-height: 40px; }
.calc-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.calc-row { background: var(--surface); border-radius: var(--radius); padding: 16px 18px; box-shadow: var(--shadow); }
.calc-row[hidden] { display: none; }
.calc-main { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }
.calc-name { display: grid; min-width: 0; }
.calc-name strong { font-family: var(--font-display); font-size: 1.12rem; }
.calc-name .muted { font-size: .92rem; }
.calc-total { font-family: var(--font-display); font-weight: 900; font-size: 1.5rem; white-space: nowrap; font-variant-numeric: tabular-nums; }
.calc-bar { height: 10px; background: var(--bg); border-radius: 999px; margin: 10px 0; overflow: hidden; }
.calc-bar span { display: block; height: 100%; background: var(--sun); border-radius: 999px; transition: width .3s ease; }
.calc-meta { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; font-size: .88rem; }
.calc-break { color: var(--muted); font-variant-numeric: tabular-nums; }
.pill { border-radius: 999px; padding: .1em .7em; font-weight: 700; font-size: .82rem; }
.pill-center { background: var(--brand-soft); color: var(--brand); }
.pill-direct, .pill-family { background: var(--rose-soft); color: var(--ink); }
.pill-fall { background: var(--sun-soft); color: var(--ink); }
.calc-note { margin: 8px 0 0; font-size: .9rem; color: var(--muted); }
.calc-none { padding: 16px; background: var(--surface); border-radius: var(--radius); }
.explain { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.explain div { background: var(--surface); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow); }
.explain p { margin: 0; color: var(--muted); font-size: .95rem; }

/* generator */
.creator-head { display: grid; grid-template-columns: 1fr 150px; gap: 24px; align-items: end; }
img.creator-person { width: 150px; }
.creator-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 32px; align-items: start; margin-top: 8px; }
.form { display: grid; gap: 16px; }
.form label { display: grid; gap: 6px; font-weight: 700; font-size: .98rem; }
.form input, .form select, .form textarea {
  font: inherit; font-weight: 400; color: var(--ink); background: var(--surface);
  border: 1.5px solid var(--line); border-radius: var(--radius-sm); padding: .6em .8em; width: 100%; min-height: 48px;
}
.form input:focus, .form select:focus, .form textarea:focus { outline: 3px solid var(--brand-soft); border-color: var(--brand); }
fieldset { border: 0; background: var(--surface); border-radius: var(--radius); padding: 16px 18px 18px; margin: 0; box-shadow: var(--shadow); }
legend { font-family: var(--font-display); font-weight: 800; font-size: 1.1rem; padding: 0; float: left; width: 100%; margin-bottom: 6px; }
legend + * { clear: both; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.row3 { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 12px; }
.contact-row { display: grid; grid-template-columns: 1.2fr 1fr 1.4fr; gap: 8px; margin-top: 8px; }
.checks { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px 14px; }
.form .check { display: flex; align-items: center; gap: 10px; font-weight: 400; }
.check input { width: 22px; height: 22px; min-height: 0; accent-color: var(--brand); flex-shrink: 0; }
.result { position: sticky; top: 16px; background: var(--surface); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); }
.result h2 { margin-top: 0; }
.result h3 { margin-top: 18px; }
.result ul { font-size: .94rem; }
.qr-box { display: grid; place-items: center; min-height: 220px; background: #fff; border-radius: var(--radius-sm); border: 2px dashed var(--line); padding: 10px; }
.qr-box svg { width: 100%; max-width: 260px; height: auto; display: block; }
.qr-box p { padding: 16px; text-align: center; color: #6b625b; }
.good { color: var(--good); }
.warn { color: var(--warn); }
.warn.bad { color: var(--alert); font-weight: 700; }
.wallet { display: none; }

/* emergency card page */
.card-page { background: var(--bg); }
.emcard { max-width: 560px; margin: 0 auto; padding: 0 0 32px; }
.em-banner { background: var(--alert); color: #fff; font-weight: 700; letter-spacing: .06em; padding: 14px 16px; display: flex; justify-content: space-between; align-items: center; gap: 8px; position: sticky; top: 0; z-index: 2; }
.em-lang { display: flex; gap: 4px; }
.em-lang button { font: inherit; font-size: .8rem; font-weight: 700; color: #fff; background: transparent; border: 1.5px solid rgba(255,255,255,.75); border-radius: 8px; padding: 4px 8px; cursor: pointer; min-height: 32px; }
.em-lang button[aria-pressed="true"] { background: #fff; color: #c62828; }
.em-body { padding: 0 16px; }
.em-name { font-size: 2.1rem; margin: 16px 0 4px; }
.facts { display: flex; gap: 16px; flex-wrap: wrap; margin: 4px 0 8px; }
.btn-sos { background: var(--alert); border-color: var(--alert); color: #fff; width: 100%; font-size: 1.25rem; margin: 12px 0; min-height: 58px; }
.em-msg { background: var(--sun-soft); border-radius: var(--radius-sm); padding: 12px 14px; margin: 8px 0; }
.em-msg p { margin: 2px 0 0; font-size: 1.18rem; font-weight: 700; }
.em-h { font-size: 1.15rem; margin: 20px 0 6px; }
.contacts { list-style: none; padding: 0; margin: 0; }
.contact { display: flex; justify-content: space-between; align-items: center; gap: 12px; background: var(--surface); border-radius: var(--radius-sm); padding: 10px 14px; margin-bottom: 8px; box-shadow: var(--shadow); }
.phone { font-size: .95rem; color: var(--muted); }
.btn-call { flex-shrink: 0; }
.em-row { display: grid; gap: 2px; background: var(--surface); border-radius: var(--radius-sm); padding: 10px 14px; margin: 10px 0; box-shadow: var(--shadow); }
.em-row span { color: var(--muted); font-size: .85rem; }
.em-row.alert { border: 2px solid var(--alert); box-shadow: none; }
.em-row.alert b { color: var(--alert); }
.em-disc { margin-top: 24px; }
.em-links { font-size: .9rem; }
.loading { text-align: center; padding: 40px; }

@media (max-width: 900px) {
  .hero-grid, .aud-hero-grid, .day-grid, .creator-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-about { grid-column: 1 / -1; }
  .choose, .explain { grid-template-columns: 1fr; }
  .hero-people { max-width: 420px; margin: 0 auto; }
  .aud-art { max-width: 260px; margin: 0 auto; }
  .result { position: static; }
}
@media (max-width: 600px) {
  body { font-size: 17px; }
  .wrap { padding-inline: 16px; }
  .why, .row2, .row3, .contact-row, .checks { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .contact-row { padding-bottom: 10px; border-bottom: 1px dashed var(--line); }
  .nav { gap: 12px; }
  .choose-card { grid-template-columns: 72px 1fr auto; }
  .choose-art { width: 72px; height: 72px; }
  .cta-box { grid-template-columns: 1fr; padding: 20px; }
  img.cta-person { width: 96px; margin: 0; }
  .creator-head { grid-template-columns: 1fr; }
  img.creator-person { display: none; }
  .calc-total { font-size: 1.3rem; }
}

/* badge builder */
.badge-builder { display: grid; gap: 14px; background: var(--surface); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow); margin: 20px 0; }
.badge-builder .pf, .pf-controls .pf { display: grid; gap: 6px; font-weight: 700; font-size: .95rem; }
.badge-builder select, .badge-builder textarea, .code-box, .pf-controls input, .pf-controls select {
  font: inherit; font-weight: 400; color: var(--ink); background: var(--bg); border: 1.5px solid var(--line); border-radius: var(--radius-sm); padding: .55em .75em; width: 100%; min-height: 46px; }
.badge-builder textarea, .code-box { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .85rem; resize: vertical; }
.badge-styles { box-shadow: none; padding: 0; display: flex; flex-wrap: wrap; gap: 12px; }
.badge-choice { display: flex; align-items: center; gap: 10px; cursor: pointer; padding: 8px; border-radius: var(--radius-sm); border: 2px solid transparent; }
.badge-choice:has(input:checked) { border-color: var(--brand); background: var(--brand-soft); }
.badge-choice img { max-width: 100%; height: auto; }
.badge-choice input { width: 20px; height: 20px; accent-color: var(--brand); }
.plain-steps li { grid-template-columns: 44px 1fr; }
.plain-steps p { color: var(--ink); margin: 8px 0 0; }

/* printables: on screen the sheet looks like paper you can type on */
.wide-article { max-width: 920px; }
.print-actions { display: flex; flex-wrap: wrap; gap: 12px 18px; align-items: center; margin: 8px 0 24px; }
.pf-controls { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; background: var(--surface); padding: 16px; border-radius: var(--radius); box-shadow: var(--shadow); margin-bottom: 20px; }
.sheet { background: #fff; color: #2a2522; border-radius: 6px; box-shadow: 0 2px 6px rgba(60,40,20,.08), 0 18px 40px rgba(60,40,20,.12); padding: 28px; margin: 0 auto 32px; max-width: 760px; font-family: var(--font-body); }
.sheet-head { display: flex; justify-content: space-between; gap: 16px; align-items: flex-start; border-bottom: 3px solid #c62828; padding-bottom: 12px; margin-bottom: 14px; }
.sheet-title { font-family: var(--font-display); font-weight: 900; font-size: 1.9rem; color: #c62828; text-transform: uppercase; letter-spacing: .02em; line-height: 1.1; }
.sheet-sub { color: #6b625b; }
.qr-slot { width: 110px; height: 110px; flex-shrink: 0; border: 2px dashed #c9bfb3; border-radius: 10px; display: grid; place-items: center; text-align: center; font-size: .75rem; color: #6b625b; padding: 8px; line-height: 1.25; }
.pf-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px 16px; }
.pf-grid .span2 { grid-column: span 2; }
.pf-grid .span4 { grid-column: 1 / -1; }
.sheet .pf { display: grid; gap: 2px; }
.sheet .pf span { font-size: .78rem; font-weight: 700; color: #1f6f6a; text-transform: uppercase; letter-spacing: .04em; }
.sheet .pf.nolabel span { display: none; }
.sheet .pf input, .sheet .pf textarea { font: inherit; font-size: 1rem; color: #2a2522; background: repeating-linear-gradient(#fff, #fff 1.9em, #d9cfc3 1.9em, #d9cfc3 calc(1.9em + 1px)); border: 0; border-radius: 0; padding: 0 2px; line-height: 1.9em; min-height: 1.95em; width: 100%; resize: none; outline: none; }
.sheet .pf input { background: #fff; border-bottom: 1px solid #d9cfc3; height: 1.95em; }
.sheet .pf input:focus, .sheet .pf textarea:focus { background-color: #fdf6ee; }
.sheet .pf-alert span { color: #c62828; }
.sheet-foot { text-align: right; font-size: .75rem; color: #9a8f84; margin-top: 10px; }

.sheet-lost { display: grid; grid-template-columns: 1fr 1fr; gap: 0; padding: 0; overflow: hidden; }
.lost-card { display: grid; grid-template-columns: 54px 1fr; gap: 10px; padding: 16px; border: 1px dashed #c9bfb3; min-height: 230px; align-content: start; }
.lost-art { width: 54px; height: auto; border-radius: 50%; background: #fde8d4; }
.lost-hello { font-family: var(--font-display); font-weight: 800; color: #1f6f6a; }
.lost-big { font-family: var(--font-display); font-weight: 900; font-size: 1.6rem; line-height: 1.15; border-bottom: 1px solid #d9cfc3; min-height: 1.3em; margin-bottom: 8px; }
.lost-label { font-size: .85rem; color: #2a2522; margin-top: 6px; }
.lost-label span { font-weight: 700; }
.lost-phone { font-family: var(--font-display); font-weight: 800; font-size: 1.25rem; border-bottom: 1px solid #d9cfc3; min-height: 1.4em; }

.sheet-wallet { display: grid; gap: 20px; max-width: 700px; }
.wallet-slot { position: relative; }
.wallet-fold { display: grid; grid-template-columns: 1fr 1fr; border: 1px solid #2a2522; border-radius: 10px; overflow: hidden; aspect-ratio: 171.2 / 54; font-size: 12px; line-height: 1.3; }
.wallet-fold[hidden] { display: none; }
.wf-front { padding: 10px 12px; display: grid; align-content: start; gap: 4px; border-right: 1.5px dashed #9a8f84; }
.wf-alert { background: #c62828; color: #fff; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; font-size: 10px; padding: 2px 8px; border-radius: 4px; justify-self: start; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
.wf-title { font-family: var(--font-display); font-weight: 900; font-size: 15px; line-height: 1.15; color: #c62828; }
.wf-row { display: grid; gap: 0; }
.wf-row span { font-size: 9px; text-transform: uppercase; letter-spacing: .05em; color: #1f6f6a; font-weight: 700; }
.wf-row b { border-bottom: 1px solid #d9cfc3; min-height: 1.3em; }
.wf-site { font-size: 9px; color: #9a8f84; margin-top: auto; }
.wf-inside { padding: 8px 10px; font-size: 9.5px; line-height: 1.28; overflow: hidden; }
.wf-q { font-weight: 700; color: #c62828; margin-bottom: 2px; }
.wf-inside ol { margin: 0; padding-left: 14px; }
.wf-inside li { margin: 0 0 1px; }
.wf-when { margin-top: 3px; border-top: 1px solid #ece3d8; padding-top: 2px; }
.wf-fold-label { position: absolute; left: 50%; top: -14px; transform: translateX(-50%); font-size: 10px; color: #9a8f84; }

.size-pick { display: grid; gap: 4px; font-weight: 700; font-size: .95rem; min-width: 240px; }
.size-pick select { font: inherit; font-weight: 400; color: var(--ink); background: var(--surface); border: 1.5px solid var(--line); border-radius: var(--radius-sm); padding: .55em .75em; min-height: 48px; }
.print-actions { align-items: end; margin-bottom: 8px; }

/* lost-child cards: 4 large, 6 medium or 10 small */
.size-l .lost-card:nth-child(n+5), .size-m .lost-card:nth-child(n+7) { display: none; }
.size-m .lost-card { min-height: 170px; }
.size-m .lost-big { font-size: 1.35rem; }
.size-m .lost-phone { font-size: 1.1rem; }
.size-s .lost-card { min-height: 0; grid-template-columns: 1fr; padding: 10px 12px; }
.size-s .lost-art { display: none; }
.size-s .lost-big { font-size: 1.1rem; margin-bottom: 2px; }
.size-s .lost-phone { font-size: .95rem; }
.size-s .lost-label { font-size: .75rem; margin-top: 2px; }
/* wallet cards: bank-card size (3 per page) or large print (2 per page) */
.size-large .wallet-slot:nth-child(3) { display: none; }
.size-large .wallet-fold { aspect-ratio: 186 / 84; font-size: 15px; }
.size-large .wf-title { font-size: 20px; }
.size-large .wf-inside { font-size: 12.5px; line-height: 1.35; }
.size-large .wf-row span, .size-large .wf-site { font-size: 11px; }
.size-large .wf-alert { font-size: 12px; }

@media (max-width: 700px) {
  .sheet { padding: 16px; }
  .pf-grid { grid-template-columns: 1fr 1fr; }
  .pf-grid .span2 { grid-column: 1 / -1; }
  .sheet-head { flex-direction: column; }
  .sheet-lost { grid-template-columns: 1fr; }
  .sheet-wallet { overflow-x: auto; }
  .wallet-fold { min-width: 560px; }
}

/* print */
@media print {
  @page { margin: 12mm; }
  body { background: #fff; }
  /* generator: only the wallet card, at credit-card size */
  body.page-create * { visibility: hidden; }
  body.page-create .wallet, body.page-create .wallet * { visibility: visible; }
  .wallet { display: block; position: absolute; left: 0; top: 0; }
  .wallet-card { width: 85.6mm; height: 54mm; border: .3mm solid #000; border-radius: 3mm; padding: 3mm; display: flex; gap: 2.5mm; color: #000; background: #fff; font: 7.5pt/1.25 "Atkinson Hyperlegible", Arial, sans-serif; overflow: hidden; }
  .wallet-text { flex: 1; min-width: 0; }
  .wallet-title { background: #c62828; color: #fff; font-weight: 700; font-size: 7pt; padding: .8mm 1.5mm; border-radius: 1mm; margin-bottom: 1.2mm; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .wallet-name { font-size: 10pt; font-weight: 700; }
  .wallet-line { margin-top: .6mm; overflow: hidden; text-overflow: ellipsis; }
  .wallet-scan { margin-top: 1.2mm; font-size: 6pt; color: #333; }
  .wallet-qr { width: 30mm; flex-shrink: 0; align-self: center; }
  .wallet-qr svg { width: 30mm; height: 30mm; display: block; }

  /* printables: only the sheet */
  body.page-print .site-header, body.page-print .site-footer, body.page-print .no-print, body.page-print .skip { display: none !important; }
  body.page-print main, body.page-print .wrap, body.page-print .article { max-width: none; margin: 0; padding: 0; }
  body.page-print .sheet { box-shadow: none; border-radius: 0; padding: 0; margin: 0; max-width: 186mm; }
  body.page-print .sheet .pf input:focus, body.page-print .sheet .pf textarea:focus { background-color: #fff; }
  .print-fridge .sheet { font-size: 10pt; }
  .print-fridge .pf-grid { gap: 1mm 5mm; }
  .print-fridge .sheet .pf input, .print-fridge .sheet .pf textarea { font-size: 10pt; line-height: 7.2mm; min-height: 7.2mm; background-size: 100% 7.2mm; background-image: repeating-linear-gradient(#fff, #fff 7mm, #d9cfc3 7mm, #d9cfc3 7.2mm); }
  .print-fridge .sheet .pf input { height: 7.2mm; background: #fff; }
  .print-fridge .sheet-title { font-size: 20pt; }
  .print-fridge .qr-slot { width: 30mm; height: 30mm; }
  .print-lost .sheet-lost { grid-template-columns: 1fr 1fr; max-width: 186mm; }
  .print-lost .lost-card { min-height: 0; height: 118mm; break-inside: avoid; }
  .print-wallet .sheet-wallet { gap: 12mm; }
  .print-wallet .wallet-fold { width: 171.2mm; height: 54mm; aspect-ratio: auto; break-inside: avoid; }
  .print-wallet .wf-fold-label { top: -4mm; }
  .size-half .sheet-fridge { zoom: .7; }
  .print-lost.size-l .lost-card { height: 118mm; }
  .print-lost.size-m .lost-card { height: 80mm; }
  .print-lost.size-s .lost-card { height: 47mm; }
  .print-wallet.size-large .wallet-fold { width: 186mm; height: 84mm; }
  .print-wallet.size-large .sheet-wallet { gap: 16mm; }
}
