/* Funstead Family Connect: the family website. The app's design language on the brand's cream: Inter Display for
   headlines, Atkinson Hyperlegible for everything else, one navy accent, coral for the brand mark only, 56px targets,
   an 8px grid, radii 12/20/28/capsule, one soft shadow. Calm and large; never busy. */
@font-face { font-family: "Atkinson Hyperlegible"; src: url(fonts/ah-400.woff2) format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Atkinson Hyperlegible"; src: url(fonts/ah-700.woff2) format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Inter Display"; src: url(fonts/inter-display-700.woff) format("woff"); font-weight: 700; font-display: swap; }

:root {
  --bg: #FBF4EA; --bg2: #F5EADB; --surface: #FFFFFF; --surface2: #F3ECE2; --line: #E8DDCD;
  --ink: #1B2033; --ink2: #4A5064; --ink3: #7C8296;
  --accent: #242E54; --accent-ink: #FFFFFF; --accent-soft: #E7EAF4;
  --coral: #EC6850; --coral-ink: #B8432E; --teal: #248E8A; --teal-ink: #17706C; --sun: #F9BA4A;
  --good: #17706C; --good-soft: #E1F1EF; --warn: #8A5A00; --warn-soft: #FDF0D5; --bad: #B3261E; --bad-soft: #FBE6E3;
  --s1: 8px; --s2: 16px; --s3: 24px; --s4: 32px; --s5: 48px;
  --r-s: 12px; --r-m: 20px; --r-l: 28px;
  --e1: 0 1px 2px rgba(36, 46, 84, .05), 0 3px 12px rgba(36, 46, 84, .06);
  --e2: 0 2px 6px rgba(36, 46, 84, .06), 0 18px 44px rgba(36, 46, 84, .16);
  --ease: cubic-bezier(.22, .8, .24, 1);
  --head: "Inter Display", "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --body: "Atkinson Hyperlegible", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --scrim: rgba(18, 22, 42, .45);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #12162A; --bg2: #171C33; --surface: #1C2238; --surface2: #262D47; --line: #2E3654;
    --ink: #F4F1EC; --ink2: #B8BCCB; --ink3: #8A90A6;
    --accent: #FBF4EA; --accent-ink: #1B2340; --accent-soft: #2A3252;
    --coral-ink: #F59A86; --teal-ink: #6CCFC9; --good: #6CCFC9; --good-soft: #17393A; --warn: #F2C35E; --warn-soft: #3A3120; --bad: #F2948A; --bad-soft: #42232A;
    --e1: 0 1px 2px rgba(0, 0, 0, .35), inset 0 0 0 1px rgba(255, 255, 255, .04);
    --e2: 0 2px 8px rgba(0, 0, 0, .4), 0 20px 48px rgba(0, 0, 0, .5), inset 0 0 0 1px rgba(255, 255, 255, .05);
    --scrim: rgba(0, 0, 0, .6);
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html { font-size: 18px; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--body); font-size: 1rem; line-height: 1.5; -webkit-font-smoothing: antialiased; min-height: 100vh; min-height: 100dvh; }
h1, h2, h3 { font-family: var(--head); font-weight: 700; margin: 0; letter-spacing: -.015em; line-height: 1.15; text-wrap: balance; color: var(--ink); }
h1 { font-size: 2rem; }
h2 { font-size: 1.5rem; }
h3 { font-size: 1.2rem; letter-spacing: -.005em; }
p { margin: 0; text-wrap: pretty; }
a { color: var(--accent); text-underline-offset: 3px; text-decoration-thickness: 1.5px; }
[hidden] { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 3px solid var(--coral); outline-offset: 3px; border-radius: 6px; }
svg.i { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* ---- page frame ---- */
.top { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); border-bottom: 1px solid transparent; transition: border-color .2s; }
.top.scrolled { border-bottom-color: var(--line); }
.top .in { max-width: 1040px; margin: 0 auto; display: flex; align-items: center; gap: var(--s2); min-height: 68px; padding: 0 max(16px, env(safe-area-inset-left)) 0 max(16px, env(safe-area-inset-right)); }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); flex: none; }
.brand img { width: 30px; height: 42px; }
.brand b { font-family: var(--head); font-size: 1.25rem; letter-spacing: -.01em; line-height: 1; }
.brand small { display: block; font-family: var(--head); color: var(--coral); font-size: .56rem; letter-spacing: .32em; margin-top: 3px; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .brand img { filter: drop-shadow(0 0 0 transparent); } }
.top .fam { margin-left: auto; min-width: 0; display: flex; align-items: center; }
.famswitch { min-height: 48px; max-width: 46vw; padding: 0 14px; border-radius: 999px; border: 0; background: var(--surface); box-shadow: var(--e1); color: var(--ink); font: 700 .89rem var(--body); display: inline-flex; align-items: center; gap: 6px; cursor: pointer; }
.famswitch span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.famswitch.plain { cursor: default; box-shadow: none; background: transparent; padding: 0; }
.tabs { display: none; }
main { max-width: 720px; margin: 0 auto; padding: var(--s3) max(16px, env(safe-area-inset-left)) calc(120px + env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-right)); }
main.wide { max-width: 1040px; }
main:focus { outline: none; }
.view { animation: viewIn .32s var(--ease); }
@keyframes viewIn { from { opacity: 0; transform: translateY(6px); } }

/* bottom tab bar on phones */
.tabbar { position: fixed; z-index: 30; left: 0; right: 0; bottom: 0; background: color-mix(in srgb, var(--surface) 94%, transparent); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border-top: 1px solid var(--line);
  display: grid; grid-template-columns: repeat(4, 1fr); padding: 6px 6px calc(6px + env(safe-area-inset-bottom)); }
.tabbar a, .tabs a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-height: 60px; border-radius: 16px; color: var(--ink3); text-decoration: none; font-size: .78rem; font-weight: 700; }
.tabbar a[aria-current="page"] { color: var(--ink); }
.tabbar a[aria-current="page"] svg { color: var(--accent); }
.tabbar a:active { background: var(--surface2); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .tabbar a[aria-current="page"] svg { color: var(--sun); } }
@media (min-width: 900px) {
  .tabbar { display: none; }
  .tabs { display: flex; gap: 4px; margin-left: var(--s3); }
  .tabs a { flex-direction: row; gap: 8px; min-height: 48px; padding: 0 16px; font-size: .94rem; color: var(--ink2); border-radius: 999px; }
  .tabs a svg { width: 20px; height: 20px; }
  .tabs a:hover { background: var(--surface2); color: var(--ink); }
  .tabs a[aria-current="page"] { background: var(--surface); color: var(--ink); box-shadow: var(--e1); }
  main { padding-top: var(--s4); padding-bottom: var(--s5); }
}

/* ---- buttons ---- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 56px; padding: 0 var(--s3); border-radius: 999px; border: 0; background: var(--surface2); color: var(--ink);
  font: 700 1rem/1.15 var(--body); text-decoration: none; cursor: pointer; transition: transform .12s var(--ease), background-color .15s, opacity .15s; -webkit-tap-highlight-color: transparent; text-align: center; }
.btn:active { transform: scale(.97); }
.btn.primary { background: var(--accent); color: var(--accent-ink); }
.btn.big { min-height: 64px; font-size: 1.1rem; padding: 0 var(--s4); }
.btn.wide { width: 100%; }
.btn.quiet { background: transparent; color: var(--ink2); }
.btn.quiet:hover { background: var(--surface2); }
.btn.danger { background: var(--bad-soft); color: var(--bad); }
.btn.danger.solid { background: var(--bad); color: #fff; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .45; cursor: default; transform: none; }
.btn svg { width: 22px; height: 22px; }
.btn.sm { min-height: 48px; padding: 0 18px; font-size: .94rem; }
.btnrow { display: flex; flex-wrap: wrap; gap: var(--s1); }
.btnrow.stack { flex-direction: column; }
.row .act { margin: 4px 0 0 -12px; min-height: 44px; padding: 0 12px; }
.link { background: none; border: 0; padding: 0; font: inherit; font-weight: 700; color: var(--accent); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; min-height: 44px; }

/* ---- type helpers ---- */
.eyebrow { color: var(--ink2); font-weight: 700; font-size: .94rem; }
.lead { font-size: 1.11rem; color: var(--ink2); }
.muted { color: var(--ink2); }
.small { font-size: .89rem; }
.stack > * + * { margin-top: var(--s2); }
.stack.s3 > * + * { margin-top: var(--s3); }
.stack.s4 > * + * { margin-top: var(--s4); }
.pagehead { margin-bottom: var(--s3); }
.pagehead p { margin-top: var(--s1); }
.pagehead .row { display: flex; align-items: flex-end; justify-content: space-between; gap: var(--s2); flex-wrap: wrap; }

/* ---- cards and lists ---- */
.card { background: var(--surface); border-radius: var(--r-m); box-shadow: var(--e1); padding: var(--s3); }
.card.flat { box-shadow: none; background: var(--surface2); }
.card h3 + p, .card h2 + p { margin-top: 6px; }
.section { margin-top: var(--s4); }
.section > h2, .section > .sh { margin-bottom: var(--s2); }
.sh { display: flex; align-items: baseline; justify-content: space-between; gap: var(--s2); }
.sh h2 { font-size: 1.3rem; }
.list { background: var(--surface); border-radius: var(--r-m); box-shadow: var(--e1); overflow: hidden; }
.row { display: flex; align-items: center; gap: var(--s2); min-height: 72px; padding: 12px var(--s3); }
.list .row + .row { border-top: 1px solid var(--line); }
.row .grow { flex: 1; min-width: 0; }
.row .t { font-weight: 700; overflow-wrap: break-word; }
.row .d { color: var(--ink2); font-size: .89rem; overflow-wrap: anywhere; }
.list .ph-ic { width: 44px; height: 44px; border-radius: 14px; }
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; background: var(--surface2); color: var(--ink2); font-size: .8rem; font-weight: 700; vertical-align: 2px; white-space: nowrap; }
.badge.good { background: var(--good-soft); color: var(--good); }
.badge.warn { background: var(--warn-soft); color: var(--warn); }
.badge.bad { background: var(--bad-soft); color: var(--bad); }
.badge.navy { background: var(--accent-soft); color: var(--ink); }
.avatar { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; font-family: var(--head); font-size: 1.05rem; color: #fff; flex: none; }
.dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; background: var(--ink3); flex: none; }
.dot.good { background: var(--teal); box-shadow: 0 0 0 4px var(--good-soft); }
.dot.warn { background: var(--sun); box-shadow: 0 0 0 4px var(--warn-soft); }

/* ---- forms ---- */
label.f { display: block; font-weight: 700; margin-bottom: 8px; }
.hint { color: var(--ink2); font-size: .89rem; margin-top: 6px; }
input[type=text], input[type=email], input[type=search], textarea {
  width: 100%; min-height: 60px; padding: 0 18px; border-radius: 16px; border: 0; background: var(--surface); color: var(--ink); font: 400 1.05rem var(--body);
  box-shadow: var(--e1), inset 0 0 0 1.5px var(--line); transition: box-shadow .15s; }
textarea { padding: 14px 18px; min-height: 100px; resize: vertical; }
input::placeholder, textarea::placeholder { color: var(--ink3); }
input:focus, textarea:focus { outline: none; box-shadow: var(--e1), inset 0 0 0 2px var(--accent); }
input[aria-invalid="true"] { box-shadow: var(--e1), inset 0 0 0 2px var(--bad); }
.err { color: var(--bad); font-weight: 700; font-size: .94rem; margin-top: 8px; }
.code { font-family: var(--head); font-size: 2.2rem; letter-spacing: .32em; text-align: center; padding-left: .32em; min-height: 84px; font-variant-numeric: tabular-nums; }
.check { display: flex; gap: 14px; align-items: flex-start; padding: 14px 0; cursor: pointer; }
.check input { width: 26px; height: 26px; margin: 2px 0 0; accent-color: var(--accent); flex: none; }

/* ---- notes and toasts ---- */
.note { display: flex; gap: 14px; align-items: flex-start; padding: var(--s2) 20px; border-radius: var(--r-m); background: var(--surface2); }
.note.good { background: var(--good-soft); }
.note.warn { background: var(--warn-soft); }
.note.bad { background: var(--bad-soft); }
.note svg { margin-top: 1px; }
.note.good svg { color: var(--good); } .note.warn svg { color: var(--warn); } .note.bad svg { color: var(--bad); }
.toast { position: fixed; z-index: 60; left: 50%; bottom: calc(96px + env(safe-area-inset-bottom)); transform: translate(-50%, 0); max-width: min(560px, calc(100vw - 32px)); padding: 16px 22px; border-radius: 18px;
  background: #1B2033; color: #fff; font-weight: 700; box-shadow: var(--e2); animation: toastIn .28s var(--ease); }
.toast.out { opacity: 0; transform: translate(-50%, 8px); transition: all .3s var(--ease); }
@keyframes toastIn { from { opacity: 0; transform: translate(-50%, 10px); } }
@media (min-width: 900px) { .toast { bottom: 32px; } }

/* ---- sheets (dialogs) ---- */
.scrim { position: fixed; inset: 0; z-index: 50; background: var(--scrim); display: flex; align-items: flex-end; justify-content: center; animation: fadeIn .2s; }
@keyframes fadeIn { from { opacity: 0; } }
.sheet { width: 100%; max-width: 560px; max-height: 92vh; max-height: 92dvh; overflow: auto; background: var(--bg); border-radius: var(--r-l) var(--r-l) 0 0; padding: var(--s3) var(--s3) calc(var(--s3) + env(safe-area-inset-bottom));
  box-shadow: var(--e2); animation: sheetUp .32s var(--ease); }
.sheet h2 { margin-bottom: var(--s1); }
.sheet .btnrow { margin-top: var(--s3); }
@keyframes sheetUp { from { transform: translateY(40px); opacity: 0; } }
@media (min-width: 700px) { .scrim { align-items: center; } .sheet { border-radius: var(--r-l); } }
.sheet .photo-big { width: 100%; border-radius: var(--r-m); background: var(--surface2); display: block; max-height: 56vh; object-fit: contain; }

/* ---- welcome / sign in ---- */
.hero { padding: var(--s3) 0 var(--s4); }
.hero h1 { font-size: 2.35rem; line-height: 1.06; letter-spacing: -.025em; }
.hero .lead { margin-top: var(--s2); }
.fan { position: relative; height: 196px; margin: var(--s2) 0 var(--s3); }
.fan .ph { position: absolute; top: 18px; width: 124px; height: 156px; border-radius: 18px; border: 6px solid #fff; box-shadow: var(--e2); background-size: cover; background-position: center; }
.fan .ph:nth-child(1) { left: calc(50% - 166px); transform: rotate(-8deg); background-image: linear-gradient(160deg, #F9BA4A, #EC6850); }
.fan .ph:nth-child(2) { left: calc(50% - 62px); top: 0; z-index: 2; background-image: linear-gradient(160deg, #248E8A, #242E54); }
.fan .ph:nth-child(3) { left: calc(50% + 42px); transform: rotate(7deg); background-image: linear-gradient(160deg, #EC6850, #242E54); }
.fan .ph svg { position: absolute; inset: 0; margin: auto; width: 56px; height: 56px; color: rgba(255, 255, 255, .9); stroke-width: 1.6; }
.points { display: grid; gap: var(--s2); margin-top: var(--s4); }
.points .pt { display: flex; gap: var(--s2); align-items: flex-start; }
.points .pt .ic { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; flex: none; background: var(--surface); box-shadow: var(--e1); color: var(--teal-ink); }
.points .pt b { display: block; }
.points .pt span { color: var(--ink2); }
@media (min-width: 900px) {
  .welcome { display: grid; grid-template-columns: 1.1fr .9fr; gap: var(--s5); align-items: center; padding-top: var(--s4); }
  .welcome .hero h1 { font-size: 3rem; }
  .fan { height: 300px; }
  .fan .ph { width: 200px; height: 240px; }
  .fan .ph:nth-child(1) { left: calc(50% - 260px); } .fan .ph:nth-child(2) { left: calc(50% - 100px); } .fan .ph:nth-child(3) { left: calc(50% + 70px); }
}

/* ---- family home ---- */
.greet h1 { font-size: 2rem; }
.status { display: flex; gap: var(--s2); align-items: center; }
.ph-ic { width: 56px; height: 56px; border-radius: 18px; display: grid; place-items: center; flex: none; background: var(--accent-soft); color: var(--accent); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .ph-ic { color: var(--sun); } }
.status .grow { flex: 1; min-width: 0; }
.status .t { font-weight: 700; font-size: 1.05rem; }
.status .d { color: var(--ink2); }
.strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.strip .th { aspect-ratio: 1; }
@media (min-width: 700px) { .strip { grid-template-columns: repeat(6, 1fr); } }
.feed .row { min-height: 60px; }
.feed .when { color: var(--ink3); font-size: .85rem; white-space: nowrap; }

/* ---- photo grid ---- */
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
@media (min-width: 640px) { .grid { grid-template-columns: repeat(4, 1fr); gap: 10px; } }
@media (min-width: 900px) { .grid { grid-template-columns: repeat(5, 1fr); } }
.th { position: relative; display: block; width: 100%; aspect-ratio: 1; padding: 0; border: 0; border-radius: var(--r-s); overflow: hidden; background: var(--surface2); cursor: pointer; }
.th img { width: 100%; height: 100%; object-fit: cover; display: block; opacity: 0; transition: opacity .3s; }
.th img.on { opacity: 1; }
.th .tag { position: absolute; left: 6px; bottom: 6px; max-width: calc(100% - 12px); padding: 2px 8px; border-radius: 999px; background: rgba(18, 22, 42, .72); color: #fff; font-size: .72rem; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.th .tag.warn { background: rgba(138, 90, 0, .9); }
.empty { text-align: center; padding: var(--s5) var(--s3); }
.empty .ic { width: 72px; height: 72px; margin: 0 auto var(--s2); border-radius: 22px; display: grid; place-items: center; background: var(--surface); box-shadow: var(--e1); color: var(--teal-ink); }
.empty .ic svg { width: 34px; height: 34px; }
.empty p { color: var(--ink2); margin: var(--s1) auto var(--s3); max-width: 30em; }

/* ---- add photos ---- */
.drop { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; min-height: 220px; border-radius: var(--r-l); border: 2.5px dashed color-mix(in srgb, var(--accent) 35%, transparent); background: var(--surface);
  cursor: pointer; text-align: center; padding: var(--s3); transition: background-color .15s, border-color .15s; }
.drop:hover, .drop.over { background: var(--accent-soft); border-color: var(--accent); }
.drop .ic { width: 64px; height: 64px; border-radius: 20px; background: var(--accent); color: var(--accent-ink); display: grid; place-items: center; }
.drop .ic svg { width: 32px; height: 32px; }
.drop b { font-size: 1.15rem; }
.drop input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.items { display: grid; gap: var(--s2); }
.item { display: grid; grid-template-columns: 96px 1fr; gap: var(--s2); align-items: start; background: var(--surface); border-radius: var(--r-m); box-shadow: var(--e1); padding: 12px; }
.item .pv { width: 96px; height: 96px; border-radius: var(--r-s); object-fit: cover; background: var(--surface2); display: block; }
.item .meta { min-width: 0; }
.item input { min-height: 52px; font-size: 1rem; }
.item .sub { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 8px; color: var(--ink2); font-size: .85rem; min-height: 32px; }
.item .x { min-height: 40px; min-width: 40px; border-radius: 999px; border: 0; background: transparent; color: var(--ink2); cursor: pointer; display: grid; place-items: center; }
.bar { height: 8px; border-radius: 999px; background: var(--surface2); overflow: hidden; margin-top: 10px; }
.bar i { display: block; height: 100%; width: 0; background: var(--teal); border-radius: 999px; transition: width .2s; }
.item.done .bar i { background: var(--teal); }
.item.failed .bar i { background: var(--bad); }
.sticky-go { position: sticky; bottom: calc(84px + env(safe-area-inset-bottom)); margin-top: var(--s3); padding: 12px; border-radius: 999px; background: color-mix(in srgb, var(--bg) 80%, transparent); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
@media (min-width: 900px) { .sticky-go { bottom: 16px; } }

/* ---- home screen editor ---- */
.games .row { min-height: 68px; padding: 8px 12px 8px var(--s3); }
.gicon { width: 44px; height: 44px; border-radius: 13px; display: grid; place-items: center; color: #fff; flex: none;
  background: linear-gradient(165deg, color-mix(in oklab, var(--c, #242E54) 78%, #fff 6%), color-mix(in oklab, var(--c, #242E54) 82%, #10142a)); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .18); }
.gicon svg { width: 25px; height: 25px; fill: none; stroke: #fff; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.gicon svg.gi { width: 31px; height: 31px; stroke: none; stroke-width: 1; stroke-linecap: butt; stroke-linejoin: miter; color: var(--c); }
.toggle { min-height: 48px; min-width: 48px; padding: 0 14px; border-radius: 999px; border: 0; background: var(--surface2); color: var(--ink2); font: 700 .89rem var(--body); display: inline-flex; align-items: center; gap: 6px; cursor: pointer; }
.toggle svg { width: 20px; height: 20px; }
.toggle[aria-pressed="true"].pin { background: var(--accent); color: var(--accent-ink); }
.toggle[aria-pressed="true"].hide { background: var(--bad-soft); color: var(--bad); }
.row.is-hidden .t, .row.is-hidden .gicon { opacity: .45; }
@media (max-width: 480px) {
  .games .row { gap: 12px; padding-left: 16px; padding-right: 10px; }
  .toggle { padding: 0; width: 48px; justify-content: center; }
  .toggle span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
}
.order { display: flex; gap: 4px; }
.order button { min-height: 44px; min-width: 44px; border-radius: 999px; border: 0; background: var(--surface2); color: var(--ink); cursor: pointer; display: grid; place-items: center; }
.order button[disabled] { opacity: .3; cursor: default; }
.preview { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; padding: 14px; border-radius: var(--r-m); background: var(--surface2); }
.preview .pg { display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: .74rem; font-weight: 700; color: var(--ink2); text-align: center; line-height: 1.2; }
.preview .pg .gicon { width: 48px; height: 48px; }
.saved { color: var(--good); font-weight: 700; font-size: .94rem; min-height: 24px; display: inline-flex; align-items: center; gap: 6px; }

/* ---- steps (pairing) ---- */
.steps { counter-reset: s; display: grid; gap: 12px; padding: 0; margin: 0; list-style: none; }
.steps li { counter-increment: s; display: flex; gap: 14px; align-items: flex-start; }
.steps li::before { content: counter(s); width: 36px; height: 36px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); display: grid; place-items: center; font-family: var(--head); flex: none; }
.steps li b { font-weight: 700; }
.wait { display: flex; flex-direction: column; align-items: center; text-align: center; gap: var(--s2); padding: var(--s4) var(--s2); }
.spinner { width: 56px; height: 56px; border-radius: 50%; border: 5px solid var(--surface2); border-top-color: var(--teal); animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.bigcheck { width: 76px; height: 76px; border-radius: 50%; background: var(--good-soft); color: var(--good); display: grid; place-items: center; }
.bigcheck svg { width: 40px; height: 40px; stroke-width: 2.6; }

/* ---- static pages ---- */
.doc h1 { margin-bottom: var(--s2); }
.doc h2 { margin: var(--s4) 0 var(--s1); font-size: 1.3rem; }
.doc p, .doc li { color: var(--ink); }
.doc p + p, .doc ul, .doc ol { margin-top: 12px; }
.doc ul, .doc ol { padding-left: 1.3em; }
.doc li + li { margin-top: 8px; }
.foot { max-width: 720px; margin: 0 auto; padding-bottom: var(--s5) !important; padding: 0 max(16px, env(safe-area-inset-left)); color: var(--ink3); font-size: .85rem; display: flex; flex-wrap: wrap; gap: 6px 18px; }
.foot a { color: var(--ink2); }
.loading { display: grid; place-items: center; min-height: 40vh; }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; } }
