/* Secret Santa by Peabyte. One stylesheet for the landing pages and the app.
   Identity: the gift tag. Pine green for the calm parts, a cranberry ribbon for the festive moments,
   a little gold. Names on tags are hand-lettered (Kalam); everything else is set for easy reading. */
@font-face { font-family: 'Atkinson Next'; src: url('/fonts/atkinson-hyperlegible-next-latin-400-normal.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Atkinson Next'; src: url('/fonts/atkinson-hyperlegible-next-latin-700-normal.woff2') format('woff2'); font-weight: 700; font-display: swap; }
@font-face { font-family: 'Bricolage'; src: url('/fonts/bricolage-grotesque-latin-800-normal.woff2') format('woff2'); font-weight: 800; font-display: swap; }
@font-face { font-family: 'Kalam'; src: url('/fonts/kalam-latin-700-normal.woff2') format('woff2'); font-weight: 700; font-display: swap; }

:root {
  --bg: #f2f5f1;
  --surface: #ffffff;
  --sunk: #e6ece5;
  --ink: #17231e;
  --ink-2: #4b5c54;
  --line: #d3dcd3;
  --pine: #1d4535;
  --pine-hover: #163628;
  --on-pine: #ffffff;
  --berry: #b0263a;
  --berry-soft: #f6dfe2;
  --gold: #c38a22;
  --gold-soft: #f5e7c4;
  --ok: #2b7149;
  --ok-soft: #dcefe2;
  --warn-soft: #fbefd6;
  --warn-ink: #6d4500;
  --danger: #a1202e;
  --tag: #fffdf8;
  --tag-edge: #e5dccb;
  --string: #b0263a;
  --focus: #c38a22;
  --shadow: 0 1px 0 rgba(23, 35, 30, .06), 0 8px 24px -12px rgba(23, 35, 30, .25);
  --radius: 14px;
  --font: 'Atkinson Next', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --display: 'Bricolage', 'Atkinson Next', system-ui, sans-serif;
  --hand: 'Kalam', 'Comic Sans MS', 'Segoe Print', cursive;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0f1a16; --surface: #16241e; --sunk: #1d2e27; --ink: #ebf1ec; --ink-2: #a8b8ae; --line: #2b3d35;
    --pine: #a9dcbf; --pine-hover: #c3e8d2; --on-pine: #0f1a16; --berry: #ee6f80; --berry-soft: #3a1f25;
    --gold: #e7bd5f; --gold-soft: #3a3020; --ok: #7fd3a0; --ok-soft: #1c3427; --warn-soft: #3a2f17; --warn-ink: #f2d08a;
    --danger: #ff8a94; --tag: #f7f1e3; --tag-edge: #d9ccb0; --string: #ee6f80; --focus: #e7bd5f;
    --shadow: 0 1px 0 rgba(0, 0, 0, .3), 0 10px 30px -14px rgba(0, 0, 0, .7);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0f1a16; --surface: #16241e; --sunk: #1d2e27; --ink: #ebf1ec; --ink-2: #a8b8ae; --line: #2b3d35;
  --pine: #a9dcbf; --pine-hover: #c3e8d2; --on-pine: #0f1a16; --berry: #ee6f80; --berry-soft: #3a1f25;
  --gold: #e7bd5f; --gold-soft: #3a3020; --ok: #7fd3a0; --ok-soft: #1c3427; --warn-soft: #3a2f17; --warn-ink: #f2d08a;
  --danger: #ff8a94; --tag: #f7f1e3; --tag-edge: #d9ccb0; --string: #ee6f80; --focus: #e7bd5f;
  --shadow: 0 1px 0 rgba(0, 0, 0, .3), 0 10px 30px -14px rgba(0, 0, 0, .7);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 400 1.0625rem/1.55 var(--font);
  min-height: 100vh; min-height: 100dvh;
  overflow-wrap: break-word;
}
img, svg { max-width: 100%; }
a { color: var(--pine); text-underline-offset: .18em; }
h1, h2, h3 { font-family: var(--display); font-weight: 800; line-height: 1.12; letter-spacing: -.012em; margin: 0 0 .5em; }
h1 { font-size: clamp(1.85rem, 1.3rem + 2.6vw, 2.75rem); }
h2 { font-size: 1.45rem; }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }
small, .muted { color: var(--ink-2); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 6px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--surface); padding: 8px 14px; border-radius: 10px; z-index: 50; }
.skip:focus { left: 8px; }
[hidden] { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- top bar ---------- */
.top {
  display: flex; align-items: center; gap: 12px; padding: 10px 16px; padding-top: max(10px, env(safe-area-inset-top));
  max-width: 1080px; margin: 0 auto;
}
.brand { white-space: nowrap; display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-family: var(--display); font-weight: 800; font-size: 1.15rem; letter-spacing: -.01em; margin-right: auto; min-height: 44px; }
.brand svg { width: 34px; height: 34px; flex: none; }
.brand .by { font-family: var(--font); font-weight: 400; font-size: .8rem; color: var(--ink-2); letter-spacing: 0; }
.topbtn {
  min-height: 44px; min-width: 44px; padding: 0 12px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface);
  color: var(--ink); font: 700 .95rem var(--font); white-space: nowrap; display: inline-flex; align-items: center; justify-content: center; gap: 6px; cursor: pointer; text-decoration: none;
}
.topbtn svg { width: 20px; height: 20px; }
.menu { position: relative; }
.menu-pop {
  position: absolute; right: 0; top: calc(100% + 6px); background: var(--surface); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow);
  min-width: 230px; padding: 6px; z-index: 30; display: grid;
}
.menu-pop a, .menu-pop button {
  display: flex; align-items: center; min-height: 44px; padding: 0 12px; border-radius: 10px; color: var(--ink); text-decoration: none; background: none; border: 0;
  font: 400 1rem var(--font); text-align: left; cursor: pointer; width: 100%;
}
.menu-pop a:hover, .menu-pop button:hover { background: var(--sunk); }
.menu-pop hr { border: 0; border-top: 1px solid var(--line); margin: 6px 4px; width: auto; }
.menu-pop .who { padding: 8px 12px; color: var(--ink-2); font-size: .9rem; }

/* ---------- layout ---------- */
main { display: block; }
main:focus { outline: none; }
.section h3 { margin-top: 22px; }
.section > h2 + h3, .note h3 { margin-top: 0; }
.section > .btn.block { margin: 8px 0 14px; }
.wrap { max-width: 680px; margin: 0 auto; padding: 8px 16px 64px; }
.wide { max-width: 1080px; margin: 0 auto; padding: 0 16px; }
.foot { max-width: 680px; margin: 0 auto; padding: 24px 16px calc(32px + env(safe-area-inset-bottom)); color: var(--ink-2); font-size: .9rem; display: flex; flex-wrap: wrap; gap: 8px 18px; }
.foot a { color: var(--ink-2); }

.section { padding: 22px 0; border-top: 1px solid var(--line); }
.section:first-of-type { border-top: 0; }
.section > h2 { display: flex; align-items: center; gap: 10px; }
.step { flex: none; width: 30px; height: 30px; border-radius: 50%; background: var(--pine); color: var(--on-pine); display: inline-grid; place-items: center; font: 800 .95rem var(--display); }
.step.done { background: var(--ok); }
.lead { font-size: 1.1rem; color: var(--ink-2); }
.sheet { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 18px; box-shadow: var(--shadow); }

/* ---------- forms ---------- */
label { display: block; font-weight: 700; margin: 14px 0 6px; }
.hint { display: block; font-weight: 400; color: var(--ink-2); font-size: .92rem; margin-top: 2px; }
input[type="text"], input[type="email"], input[type="password"], input[type="date"], input[type="time"], input[type="number"], input[type="url"], select, textarea {
  width: 100%; min-height: 50px; padding: 12px 14px; border-radius: 12px; border: 1.5px solid var(--line); background: var(--surface); color: var(--ink);
  font: 400 1.05rem var(--font);
}
textarea { min-height: 96px; resize: vertical; line-height: 1.45; }
input:focus, select:focus, textarea:focus { border-color: var(--pine); outline: 2px solid transparent; box-shadow: 0 0 0 3px color-mix(in srgb, var(--pine) 25%, transparent); }
input[aria-invalid="true"], textarea[aria-invalid="true"] { border-color: var(--danger); }
.row { display: flex; gap: 10px; align-items: flex-end; flex-wrap: wrap; }
.row > * { flex: 1 1 140px; min-width: 0; }
.row > .fixed { flex: 0 0 auto; }
.check { display: flex; gap: 12px; align-items: flex-start; font-weight: 400; margin: 12px 0; cursor: pointer; min-height: 44px; }
.check input { width: 24px; height: 24px; margin: 2px 0 0; accent-color: var(--pine); flex: none; }
.check b { display: block; }
.choice { display: grid; gap: 8px; margin: 10px 0; }
.choice label { margin: 0; display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 12px; font-weight: 400; cursor: pointer; background: var(--surface); }
.choice label:has(input:checked) { border-color: var(--pine); background: color-mix(in srgb, var(--pine) 7%, var(--surface)); }
.choice input { width: 22px; height: 22px; margin: 2px 0 0; accent-color: var(--pine); flex: none; }
.err { color: var(--danger); font-weight: 700; margin: 8px 0 0; }
details.more { margin: 16px 0; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
details.more > summary { cursor: pointer; padding: 12px 14px; min-height: 48px; font-weight: 700; list-style: none; display: flex; align-items: center; gap: 8px; }
details.more > summary::-webkit-details-marker { display: none; }
details.more > summary::before { content: ''; width: 9px; height: 9px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(-45deg); transition: transform .15s; flex: none; margin-right: 4px; }
details.more[open] > summary::before { transform: rotate(45deg); }
details.more > .body { padding: 0 14px 14px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 50px; padding: 0 20px; border-radius: 14px;
  border: 1.5px solid transparent; font: 700 1.05rem var(--font); cursor: pointer; text-decoration: none; text-align: center; line-height: 1.2;
  background: var(--pine); color: var(--on-pine); transition: background .15s, transform .05s;
}
.btn:hover { background: var(--pine-hover); }
.btn:active { transform: translateY(1px); }
.btn[disabled] { opacity: .55; cursor: not-allowed; }
.btn.ghost { background: var(--surface); color: var(--ink); border-color: var(--line); }
.btn.ghost:hover { background: var(--sunk); }
.btn.festive { background: var(--berry); color: #fff; }
:root[data-theme="dark"] .btn.festive { color: #2a0d12; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .btn.festive { color: #2a0d12; } }
.btn.festive:hover { filter: brightness(1.06); background: var(--berry); }
.btn.danger { background: var(--surface); color: var(--danger); border-color: color-mix(in srgb, var(--danger) 45%, var(--line)); }
.btn.small { min-height: 44px; padding: 0 14px; font-size: .95rem; border-radius: 12px; }
.btn.block { width: 100%; }
.btn svg { width: 20px; height: 20px; flex: none; }
.btns { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 16px; }
.linkbtn { background: none; border: 0; padding: 0; color: var(--pine); font: inherit; text-decoration: underline; text-underline-offset: .18em; cursor: pointer; min-height: 44px; }
.iconbtn { width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); display: inline-grid; place-items: center; cursor: pointer; flex: none; text-decoration: none; }
.iconbtn svg { width: 20px; height: 20px; }
.iconbtn:hover { background: var(--sunk); }

/* ---------- notes and banners ---------- */
.note { border-radius: 14px; padding: 14px 16px; margin: 14px 0; background: var(--sunk); }
.note.warn { background: var(--warn-soft); color: var(--warn-ink); }
.note.ok { background: var(--ok-soft); }
.note.festive { background: var(--berry-soft); }
.note > :last-child { margin-bottom: 0; }
.note h3 { margin-bottom: .3em; }
.copyline { display: flex; gap: 8px; align-items: stretch; margin-top: 10px; }
.copyline input { font-size: .92rem; min-height: 46px; }

/* ---------- people list ---------- */
.people { list-style: none; margin: 10px 0; padding: 0; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); overflow: hidden; }
.people li { display: flex; align-items: center; gap: 10px; padding: 10px 10px 10px 14px; border-top: 1px solid var(--line); min-height: 60px; }
.people li:first-child { border-top: 0; }
.people .who { flex: 1; min-width: 0; }
.people .name { font-weight: 700; display: block; }
.people .meta { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.chip { display: inline-flex; align-items: center; gap: 4px; font-size: .82rem; padding: 2px 9px; border-radius: 999px; background: var(--sunk); color: var(--ink-2); white-space: nowrap; }
.chip.ok { background: var(--ok-soft); color: var(--ok); }
.chip.you { background: var(--gold-soft); color: var(--warn-ink); }
.chip svg { width: 14px; height: 14px; }
.actions { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }

.meter { height: 10px; border-radius: 999px; background: var(--sunk); overflow: hidden; margin: 8px 0 4px; }
.meter > span { display: block; height: 100%; background: var(--ok); border-radius: inherit; width: 0; transition: width .4s; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 12px 0; }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 12px; }
.stat b { display: block; font: 800 1.6rem/1 var(--display); margin-bottom: 4px; }
.stat span { font-size: .88rem; color: var(--ink-2); }

/* event header */
.event-head { padding: 12px 0 6px; }
.event-head h1 { margin-bottom: .25em; }
.facts { display: flex; flex-wrap: wrap; gap: 8px 16px; color: var(--ink-2); margin: 0 0 6px; padding: 0; list-style: none; }
.facts li { display: inline-flex; align-items: center; gap: 6px; }
.facts svg { width: 18px; height: 18px; color: var(--pine); flex: none; }
.message { white-space: pre-wrap; background: var(--surface); border-left: 4px solid var(--gold); padding: 12px 14px; border-radius: 0 12px 12px 0; margin: 12px 0; }

/* ---------- the gift tag ---------- */
.tagstage { display: grid; place-items: center; padding: 8px 0 18px; filter: drop-shadow(0 1.5px 0 var(--tag-edge)) drop-shadow(0 14px 18px rgba(20, 35, 28, .16)); }
.tagwrap { position: relative; width: min(300px, 78vw); padding-top: 56px; perspective: 1100px; }
.tagwrap::before { /* the string */
  content: ''; position: absolute; left: 50%; top: 0; width: 2px; height: 70px; background: var(--string); transform: translateX(-50%); border-radius: 2px;
}
.tag {
  position: relative; width: 100%; aspect-ratio: 1 / 1.1; border: 0; padding: 0; background: transparent; cursor: pointer; display: block;
  transform-style: preserve-3d; transition: transform .9s cubic-bezier(.3, 1.4, .5, 1); transform-origin: 50% 0; color: #1a2420; font: inherit;
}
.tag .face {
  position: absolute; inset: 0; backface-visibility: hidden; -webkit-backface-visibility: hidden; background: var(--tag);
  clip-path: polygon(50% 0, 100% 16%, 100% 100%, 0 100%, 0 16%);
  display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 26% 22px 22px;
  box-shadow: inset 0 0 0 2px var(--tag-edge);
}
.tag .face::before { /* the eyelet */
  content: ''; position: absolute; left: 50%; top: 9%; width: 22px; height: 22px; border-radius: 50%; transform: translateX(-50%);
  background: var(--bg); box-shadow: 0 0 0 5px var(--gold);
}
.tag .face::after { /* ribbon band across the bottom */
  content: ''; position: absolute; left: 0; right: 0; bottom: 14%; height: 10px; background: var(--berry); opacity: .9;
}
.tag .back { transform: rotateY(180deg); }
.tag .front .cue { font: 800 1.35rem/1.15 var(--display); color: #1d4535; margin-bottom: 10px; }
.tag .front .sub { font-size: .95rem; color: #4b5c54; }
.tag .back .to { font-size: .95rem; color: #4b5c54; margin-bottom: 4px; }
.tag .back .name { font: 700 clamp(2.4rem, 12vw, 3.3rem)/1.05 var(--hand); color: #8f1d2e; overflow-wrap: anywhere; }
.tag .back .from { margin-top: 12px; font-size: .9rem; color: #4b5c54; }
.tag.flipped { transform: rotateY(180deg); }
.tag:not(.flipped) { animation: sway 4.5s ease-in-out 1s 2; }
@keyframes sway { 0%, 100% { transform: rotate(0); } 30% { transform: rotate(2.4deg); } 70% { transform: rotate(-2deg); } }
.tagwrap.lit::after {
  content: ''; position: absolute; inset: 40px -20px -20px; pointer-events: none;
  background: radial-gradient(circle at 20% 30%, var(--gold) 0 3px, transparent 4px), radial-gradient(circle at 80% 20%, var(--berry) 0 3px, transparent 4px),
              radial-gradient(circle at 12% 75%, var(--berry) 0 2px, transparent 3px), radial-gradient(circle at 88% 70%, var(--gold) 0 2.5px, transparent 3.5px),
              radial-gradient(circle at 50% 96%, var(--gold) 0 2px, transparent 3px);
  animation: sparkle 1.2s ease-out forwards;
}
@keyframes sparkle { from { opacity: 0; transform: scale(.7); } 40% { opacity: 1; } to { opacity: 0; transform: scale(1.15); } }
@media (prefers-reduced-motion: reduce) {
  .tag { transition: none; }
  .tag:not(.flipped) { animation: none; }
  .tag .face { transition: opacity .25s; }
  .tag.flipped { transform: none; }
  .tag.flipped .front { opacity: 0; }
  .tag .back { transform: none; opacity: 0; }
  .tag.flipped .back { opacity: 1; }
  .tagwrap.lit::after { animation: none; display: none; }
  .meter > span { transition: none; }
}

/* ---------- wishlist ---------- */
.wishes { list-style: none; padding: 0; margin: 10px 0; display: grid; gap: 8px; }
.wish { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; display: flex; gap: 10px; align-items: flex-start; }
.wish .body { flex: 1; min-width: 0; }
.wish .title { font-weight: 700; }
.wish .note-t { color: var(--ink-2); white-space: pre-wrap; font-size: .95rem; margin-top: 2px; }
.wish a.out { display: inline-flex; align-items: center; gap: 6px; margin-top: 6px; min-height: 36px; }
.wish a.out svg { width: 16px; height: 16px; }
.wish-edit { background: var(--surface); border: 1.5px solid var(--line); border-radius: 14px; padding: 12px; display: grid; gap: 8px; }
.wish-edit label { margin: 0 0 4px; font-size: .9rem; }
.wish-edit .tools { display: flex; gap: 6px; justify-content: flex-end; }
.empty { color: var(--ink-2); padding: 18px; text-align: center; border: 1.5px dashed var(--line); border-radius: 14px; }

/* ---------- messages ---------- */
.thread { display: grid; gap: 8px; margin: 12px 0; }
.bubble { max-width: 85%; padding: 10px 14px; border-radius: 16px; white-space: pre-wrap; position: relative; }
.bubble.me { justify-self: end; background: var(--pine); color: var(--on-pine); border-bottom-right-radius: 6px; }
.bubble.them { justify-self: start; background: var(--surface); border: 1px solid var(--line); border-bottom-left-radius: 6px; }
.bubble .by { display: block; font-size: .78rem; opacity: .8; margin-bottom: 2px; }
.bubble .hide { background: none; border: 0; color: inherit; opacity: .75; font: inherit; font-size: .8rem; text-decoration: underline; cursor: pointer; padding: 6px 0 0; min-height: 32px; }
.compose { display: flex; gap: 8px; align-items: flex-end; }
.compose textarea { min-height: 50px; height: 50px; }
.counter { font-size: .82rem; color: var(--ink-2); text-align: right; margin-top: 4px; }

/* ---------- lists of events ---------- */
.cards { list-style: none; margin: 10px 0; padding: 0; display: grid; gap: 10px; }
.card { display: flex; align-items: center; gap: 12px; padding: 14px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; color: var(--ink); text-decoration: none; min-height: 64px; }
.card:hover { border-color: var(--pine); }
.card .t { font-weight: 700; display: block; }
.card .s { color: var(--ink-2); font-size: .92rem; }
.card .grow { flex: 1; min-width: 0; }
.card svg.mini { width: 30px; height: 30px; flex: none; }

/* ---------- dialog, toast ---------- */
dialog {
  border: 0; border-radius: 20px; padding: 0; background: var(--surface); color: var(--ink); width: min(460px, calc(100vw - 24px)); max-height: calc(100dvh - 24px);
  box-shadow: 0 30px 80px -20px rgba(0, 0, 0, .45);
}
dialog::backdrop { background: rgba(10, 20, 16, .55); }
dialog .dbody { padding: 22px 20px 18px; }
dialog h2 { font-size: 1.3rem; }
dialog .btns { justify-content: flex-end; }
.qrbox { background: #fff; border-radius: 14px; padding: 10px; width: min(300px, 100%); margin: 10px auto; }
.qrbox svg { display: block; width: 100%; height: auto; }
.toast {
  position: fixed; left: 50%; bottom: calc(20px + env(safe-area-inset-bottom)); transform: translate(-50%, 140%); background: var(--ink); color: var(--bg);
  padding: 12px 18px; border-radius: 12px; font-weight: 700; z-index: 60; transition: transform .25s, opacity .25s; opacity: 0; max-width: calc(100vw - 32px); pointer-events: none;
}
.toast.show { transform: translate(-50%, 0); opacity: 1; }
.codes { font: 700 1.05rem/1.9 ui-monospace, 'SFMono-Regular', Menlo, Consolas, monospace; background: var(--sunk); border-radius: 12px; padding: 12px 16px; display: grid; grid-template-columns: repeat(auto-fill, minmax(15ch, 1fr)); column-gap: 20px; margin: 10px 0; white-space: nowrap; }
.offline { background: var(--warn-soft); color: var(--warn-ink); text-align: center; padding: 8px 16px; font-weight: 700; }
.loading { padding: 60px 0; text-align: center; color: var(--ink-2); }

.results { list-style: none; padding: 0; margin: 10px 0; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.results li { padding: 10px 14px; border-top: 1px solid var(--line); display: flex; gap: 8px; flex-wrap: wrap; }
.results li:first-child { border-top: 0; }
.results .arrow { color: var(--berry); font-weight: 700; }
.share-row { display: flex; gap: 6px; flex-wrap: wrap; }

/* ---------- landing ---------- */
.hero { display: grid; grid-template-columns: 1fr; gap: 12px; align-items: center; padding: 16px 0 28px; }
.hero h1 { font-size: clamp(2.2rem, 1.4rem + 4vw, 3.6rem); max-width: 14ch; }
.hero .lead { max-width: 36ch; }
.hero .btns { margin-top: 22px; }
.hero-tag { justify-self: center; }
.hero-tag .tagwrap { width: min(260px, 70vw); }
.hero-tag .tag { cursor: default; }
.hero-tag .tag { animation: none; transform: rotate(-4deg); }
.how { list-style: none; padding: 0; margin: 12px 0 0; display: grid; gap: 18px; counter-reset: how; }
.how li { display: grid; grid-template-columns: 40px 1fr; gap: 4px 14px; counter-increment: how; }
.how li::before { content: counter(how); grid-row: span 2; width: 38px; height: 38px; border-radius: 50%; background: var(--pine); color: var(--on-pine); display: grid; place-items: center; font: 800 1.05rem var(--display); }
.how h3 { margin: 6px 0 0; }
.how p { margin: 0; color: var(--ink-2); }
.features { display: grid; gap: 22px 32px; grid-template-columns: 1fr; margin-top: 12px; }
.features h3 { margin-bottom: .3em; }
.features p { color: var(--ink-2); margin: 0; }
.faq details { border-top: 1px solid var(--line); padding: 4px 0; }
.faq summary { cursor: pointer; font-weight: 700; padding: 12px 0; min-height: 48px; }
.faq p { color: var(--ink-2); }
.band { padding: 36px 0; }
.band.alt { background: var(--sunk); }
.band h2 { font-size: clamp(1.5rem, 1.2rem + 1.4vw, 2.1rem); }
.install-hint { display: flex; gap: 12px; align-items: center; }

@media (min-width: 760px) {
  .wrap { padding-top: 16px; }
  .hero { grid-template-columns: 1.25fr 1fr; padding: 48px 0 56px; }
  .features { grid-template-columns: 1fr 1fr; }
  .how { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 420px) {
  .stats { grid-template-columns: 1fr 1fr 1fr; gap: 6px; }
  .stat { padding: 10px 8px; }
  .stat b { font-size: 1.35rem; }
  .brand .by { display: none; }
  .people li { flex-wrap: wrap; }
}
@media print { .top, .foot, .btns, .actions { display: none; } }
.hero-tag .tag .back { transform: none; }

.foot.widefoot { max-width: 1080px; }
.short { display: none; }
@media (max-width: 480px) { .top .long { display: none; } .top .short { display: inline; } .top { gap: 8px; } }
