/* Playdate Posts pages: matches the new landing page (hot pink, golden yellow, white, black; Bricolage + Figtree).
   One light look everywhere, like the landing page. */
[hidden] { display: none !important; }
:root {
  --bg: #ffffff; --card: #ffffff; --ink: #000000; --muted: #5f6470; --line: #e6e7ea;
  --pink: #ff4d80; --pink-soft: #fff0f4; --yellow: #ffc300; --yellow-soft: #fff4cc;
  --accent: #000000; --accent-ink: #ffffff;   /* selected chips, current menu item */
  --btn: #ffc300; --btn-ink: #000000;         /* main buttons: yellow pills like the landing page */
  --link: #d81b55;                            /* pink-red text links (readable on white) */
  --hi: #ffc300; --soft: #fff0f4; --bubble: #ecedf0; --err: #d81b3c; --ok: #1f8a5b;
  --display: "Bricolage Grotesque", "Trebuchet MS", sans-serif;
  --body: "Figtree", system-ui, -apple-system, sans-serif;
  color-scheme: light;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.5 var(--body); }
.wrap { max-width: 560px; margin: 0 auto; padding-block: 20px 40px;
  padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
/* Pink band across the top, like the landing page hero, with two white dots. */
.logo { display: flex; align-items: center; gap: 10px; font: 800 20px var(--display); color: #000; text-decoration: none; margin-bottom: 18px;
  background: var(--pink); border-radius: 24px; padding: 16px 20px; }
.topbar { position: relative; }
.topbar .logout { position: absolute; top: 0; right: 0; bottom: 0; display: flex; align-items: center; padding: 0 20px; border: 0; background: none; font: 700 15px var(--body); color: #fff; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; border-radius: 0 24px 24px 0; }
.topbar .logout:focus-visible { outline: 3px solid #fff; outline-offset: -6px; }
.dot { width: 13px; height: 13px; border-radius: 50%; display: inline-block; background: #fff; }
.dot + .dot { margin-left: -6px; }
h1, h2 { font-family: var(--display); line-height: 1.15; text-wrap: balance; margin: 0 0 12px; }
h1 { font-size: 26px; } h2 { font-size: 20px; margin-top: 4px; }
p { margin: 0 0 12px; }
a { color: var(--link); }
.card { background: var(--card); border: 2px solid var(--line); border-radius: 24px; padding: 22px; margin-bottom: 14px; }
.steps { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; padding: 0; margin: 0 0 14px; }
.steps li { font-size: 12px; font-weight: 700; padding: 4px 11px; border-radius: 99px; background: var(--bubble); color: var(--muted); }
.steps li.done { background: var(--pink-soft); color: var(--link); }
.steps li.on { background: #000; color: #fff; }
label { display: flex; flex-direction: column; gap: 4px; font-weight: 600; font-size: 14px; margin-bottom: 12px; }
input:not([type=checkbox]) { font: inherit; font-weight: 400; padding: 11px 14px; border: 2px solid var(--line); border-radius: 12px; background: #fff; color: var(--ink); width: 100%; min-width: 0; }
input:not([type=checkbox]):focus { border-color: var(--pink); outline: none; }
input:focus-visible, button:focus-visible, a:focus-visible, select:focus-visible { outline: 3px solid var(--pink); outline-offset: 2px; }
.check input { accent-color: var(--pink); }
.row { display: flex; gap: 10px; } .row > * { flex: 1; min-width: 0; }
@media (max-width: 420px) { .row { flex-direction: column; gap: 0; } }
.check { flex-direction: row; align-items: flex-start; gap: 10px; font-weight: 400; color: var(--muted); font-size: 13px; }
.check input { margin-top: 3px; width: 18px; height: 18px; flex: none; }
.hint { font-weight: 400; font-size: 13px; color: var(--muted); }
.muted { color: var(--muted); font-weight: 400; }
.err { color: var(--err); font-size: 14px; min-height: 1.2em; margin: 0 0 8px; }
.okmsg { color: var(--ok); font-size: 14px; }
button { font: inherit; cursor: pointer; }
.btn { width: 100%; padding: 13px 18px; border-radius: 999px; border: 0; background: var(--btn); color: var(--btn-ink); font-weight: 700; }
.btn:disabled { opacity: .6; cursor: wait; }
.btn.small { width: auto; padding: 8px 14px; font-size: 14px; }
a.btn { display: inline-block; text-align: center; text-decoration: none; }
.btn.ghost { background: #fff; color: #000; box-shadow: inset 0 0 0 2px #000; }
.btn.danger { background: var(--err); color: #fff; }
.link { background: none; border: 0; padding: 0; color: var(--link); text-decoration: underline; font-size: 14px; }
.code { font: 800 40px var(--display); letter-spacing: .14em; margin: 0 0 12px; }
.invite { background: #fff; border: 2px solid var(--line); border-radius: 16px; padding: 14px; white-space: pre-line; }
.cardbox { border: 1px dashed var(--line); border-radius: 10px; padding: 14px; margin-bottom: 12px; }
.pricing { background: var(--yellow-soft); border-radius: 16px; padding: 12px; margin-bottom: 12px; font-size: 14px; }
.pricing ul { margin: 0 0 8px; padding-left: 18px; }
.grow { display: flex; gap: 8px; margin-bottom: 8px; }
.grow input { flex: 1; }
.x { width: 44px; border: 2px solid var(--line); border-radius: 12px; background: #fff; color: var(--muted); font-size: 18px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.foot { text-align: center; font-size: 13px; color: var(--muted); margin-top: 20px; }
/* manage page */
.member { border-top: 1px solid var(--line); padding: 12px 0; }
.member:first-of-type { border-top: 0; }
.mhead { display: flex; justify-content: space-between; gap: 8px; align-items: baseline; flex-wrap: wrap; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0; }
.chip { border: 2px solid #000; background: #fff; border-radius: 99px; padding: 4px 12px; font-size: 13px; color: #000; }
.chip[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.warn { background: var(--yellow-soft); border-radius: 14px; padding: 10px 12px; font-size: 14px; }
.inline { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.inline input { flex: 1; min-width: 140px; }
/* plan picker (sign-up and My List) */
.plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 4px 0 12px; }
@media (max-width: 420px) { .plans { grid-template-columns: 1fr; } }
.planbtn { text-align: center; border: 2px solid var(--line); background: #fff; color: #000; border-radius: 18px; padding: 14px 8px; display: flex; flex-direction: column; gap: 2px; align-items: center; min-width: 0; }
.planbtn b { font: 800 18px var(--display); }
.planbtn .pr { font: 800 26px var(--display); color: var(--pink); line-height: 1.1; }
.planbtn .pr small { font: 700 13px var(--body); color: #000; }
.planbtn .n { font-size: 13px; color: var(--muted); }
.planbtn[aria-pressed="true"] { border-color: #000; box-shadow: inset 0 0 0 2px #000; }
.planbtn .cur { font-size: 11px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; background: #000; color: #fff; border-radius: 99px; padding: 2px 8px; margin-top: 4px; }
.trialbox { background: var(--pink-soft); border-radius: 16px; padding: 12px 14px; font-size: 15px; margin-bottom: 12px; }

/* Fading confirmation banner (list page) */
.toast { position: fixed; top: 12px; left: 50%; transform: translateX(-50%); z-index: 50; width: min(92vw, 420px); background: #ffc300; color: #000; font-weight: 700; font-size: 15px; text-align: center; border-radius: 16px; padding: 12px 16px; box-shadow: 0 6px 20px rgba(0,0,0,.18); transition: opacity .6s ease, transform .6s ease; }
.toast.out { opacity: 0; transform: translate(-50%, -8px); }
@media (prefers-reduced-motion: reduce) { .toast { transition: none; } }

/* Plan tile with the $1 first month (like the home page) */
.planbtn.intro { padding-top: 0; overflow: hidden; }
.planbtn .tag { align-self: stretch; margin: 0 -8px 8px; background: var(--pink); color: #fff; font: 800 11px var(--body); letter-spacing: .06em; padding: 5px 6px; }
.planbtn .was { position: relative; display: inline-block; font-size: 18px; color: #7a808a; margin-right: 6px; vertical-align: baseline; }
.planbtn .was::after { content: ""; position: absolute; left: -2px; right: -2px; top: 52%; height: 2px; background: var(--pink); transform: rotate(-24deg); }
.planbtn .sub { font-size: 12px; color: var(--muted); margin-top: -2px; }

/* "Show QR code": a big code to hold up on the playground */
.qrwrap { position: fixed; inset: 0; z-index: 50; background: rgba(0,0,0,.6); display: flex; align-items: center; justify-content: center; padding: 16px; }
.qrcard { background: #fff; color: #000; border-radius: 24px; padding: 22px 20px; width: 100%; max-width: 380px; text-align: center; display: flex; flex-direction: column; gap: 8px; }
.qrtop { margin: 0; font-size: 14px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: #555; }
.qrname { margin: 0; font-size: 22px; line-height: 1.2; }
.qrimg svg { width: 100%; height: auto; display: block; max-width: 320px; margin: 4px auto; }
.qrurl { margin: 0; font-weight: 700; font-size: 16px; word-break: break-all; }
.qrnote { margin: 0 0 6px; font-size: 14px; color: #555; }

/* Congrats popup + confetti when a new list is ready (sign-up page) */
.party { position: fixed; inset: 0; z-index: 60; background: rgba(0,0,0,.45); display: flex; align-items: center; justify-content: center; padding: 16px; animation: partyIn .25s ease-out; }
.pbox { background: #fff; color: #000; border-radius: 24px; padding: 26px 22px 22px; width: 100%; max-width: 360px; text-align: center; display: flex; flex-direction: column; gap: 8px; box-shadow: 0 12px 34px rgba(0,0,0,.25); animation: partyPop .6s cubic-bezier(.3,1.6,.5,1) both; }
.pbox .pem { font-size: 52px; line-height: 1; }
.pbox h2 { font-size: 28px; margin: 4px 0 0; }
.pbox p { margin: 0 0 8px; color: var(--muted); }
canvas.confetti { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 70; pointer-events: none; }
@keyframes partyIn { from { opacity: 0; } }
@keyframes partyPop { from { transform: scale(.3); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .party, .pbox { animation: none; } }
