@font-face { font-family: "Fredoka"; src: url("/brand/Fredoka-SemiBold-latin.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Open Sauce Sans"; src: url("/brand/OpenSauceSans-Regular.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Open Sauce Sans"; src: url("/brand/OpenSauceSans-SemiBold.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Open Sauce Sans"; src: url("/brand/OpenSauceSans-ExtraBold.woff2") format("woff2"); font-weight: 700 900; font-display: swap; }
/* Restoration Kids: navy + gold, matching app.restorationmemphis.com */
:root {
  /* Restoration navy + gold, with playful kids colors */
  --navy: #082f45; --navy-deep: #0c2638; --navy2: #12405c;
  --bg: #fff8ec; --bg2: #ffffff; --card: #ffffff; --card2: #f6efe2; --line: #ecdfc8;
  --ink: #10222e; --muted: #5a6b76; --gold-text: #9a6f24; --gold: #d3a355; --gold-ink: #0c2638; --gold-soft: #fbf0dc;
  --coral: #ff6f61; --sky: #36b3f0; --mint: #2fc59a; --grape: #8f6cf0; --sun: #ffc93c;
  --red: #e5484d; --red-soft: #ffe3e3; --green: #1f9e6e; --green-soft: #ddf6ea;
  --radius: 20px;
  font-family: "Open Sauce Sans", ui-rounded, -apple-system, system-ui, "Segoe UI", sans-serif;
  color-scheme: light;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; background: var(--bg); color: var(--ink); }
body { min-height: 100vh; min-height: 100dvh; }
a { color: var(--gold-text); }
button { font: inherit; cursor: pointer; border: 0; color: inherit; background: none; }
input, select, textarea { font: inherit; color: var(--ink); }
h1 { font-size: 28px; margin: 6px 0 4px; letter-spacing: -.2px; }
h1, h2, .kid .nm { font-family: "Fredoka", "Open Sauce Sans", ui-rounded, system-ui, sans-serif; font-weight: 600; }
h2 { font-size: 21px; margin: 4px 0 10px; }
h3 { font-size: 16px; margin: 0 0 8px; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.hidden { display: none !important; }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.spread { justify-content: space-between; }
.stack > * + * { margin-top: 12px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; }
.card + .card { margin-top: 12px; }
.btn { box-shadow: 0 3px 0 rgba(20, 48, 74, .18); display: inline-flex; align-items: center; justify-content: center; gap: 8px; background: var(--gold); color: var(--gold-ink); font-weight: 750;
  border-radius: 999px; padding: 13px 22px; font-size: 16px; text-decoration: none; }
.btn.block { width: 100%; }
.btn.ghost { background: #fff; color: var(--ink); border: 2px solid var(--line); box-shadow: none; }
.btn.danger { background: var(--red); color: #fff; }
.btn.sm { padding: 8px 14px; font-size: 14px; }
.btn.lg { padding: 17px 26px; font-size: 19px; }
.btn:disabled { opacity: .4; cursor: default; }
.pill { display: inline-flex; align-items: center; gap: 6px; border-radius: 999px; padding: 3px 10px; font-size: 12.5px; font-weight: 700; background: var(--card2); color: var(--muted); }
.pill.gold { background: var(--gold-soft); color: var(--gold); }
.pill.green { background: var(--green-soft); color: var(--green); }
.pill.red { background: var(--red-soft); color: #c62a2f; }
.allergy { display: inline-block; background: var(--red); color: #fff; font-weight: 750; border-radius: 8px; padding: 3px 9px; font-size: 13px; }
.code { font-family: ui-monospace, "SF Mono", Menlo, monospace; font-weight: 800; letter-spacing: 2px; }
label.f { display: block; font-weight: 700; font-size: 13.5px; margin: 12px 0 5px; color: var(--muted); }
.in { width: 100%; background: var(--bg2); border: 1px solid var(--line); border-radius: 12px; padding: 12px 13px; font-size: 16px; outline: none; }
.in:focus { border-color: var(--gold); }
textarea.in { resize: vertical; min-height: 64px; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.check { display: flex; gap: 10px; align-items: flex-start; margin-top: 12px; font-size: 15px; }
.check input { width: 20px; height: 20px; margin-top: 1px; accent-color: var(--gold); flex: none; }
.toast { position: fixed; left: 50%; bottom: calc(90px + env(safe-area-inset-bottom)); transform: translateX(-50%); background: var(--ink); color: var(--bg);
  padding: 12px 18px; border-radius: 12px; font-weight: 650; z-index: 100; max-width: 92vw; box-shadow: 0 8px 30px rgba(0,0,0,.4); }
.toast.bad { background: var(--red); color: #fff; }
.kidgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.kid { position: relative; text-align: left; background: var(--card); border: 2px solid var(--line); border-radius: var(--radius); padding: 14px; min-height: 96px; }
.kid { --c: var(--sky); border-width: 3px; }
.kid:nth-child(5n+2) { --c: var(--coral); } .kid:nth-child(5n+3) { --c: var(--mint); } .kid:nth-child(5n+4) { --c: var(--grape); } .kid:nth-child(5n+5) { --c: var(--gold); }
.kid .nm { color: var(--c); }
.kid.on { border-color: var(--c); background: color-mix(in srgb, var(--c) 12%, white); }
.kid.on .tick { background: var(--c) !important; border-color: var(--c) !important; color: #fff !important; }
.kid .nm { font-size: 21px; font-weight: 800; }
.kid .mt { color: var(--muted); font-size: 13.5px; margin: 2px 0 6px; }
.kid .tick { position: absolute; top: 12px; right: 12px; width: 26px; height: 26px; border-radius: 50%; border: 2px solid var(--line); display: grid; place-items: center; font-size: 15px; color: var(--gold-ink); }
.kid.on .tick { background: var(--gold); border-color: var(--gold); }
.kid.done { opacity: .6; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { background: var(--card); border: 1px solid var(--line); border-radius: 999px; padding: 9px 14px; font-size: 14.5px; font-weight: 650; }
.chip.on { border-color: var(--gold); color: var(--gold); background: var(--gold-soft); }
.qrbox { background: #fff; border-radius: 18px; padding: 14px; display: inline-block; }
.qrbox svg { display: block; width: 220px; height: 220px; }
.stat { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; }
.stat b { display: block; font-size: 28px; line-height: 1.1; }
.stat span { color: var(--muted); font-size: 12px; font-weight: 700; letter-spacing: .3px; text-transform: uppercase; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 10px; }
.bar { height: 8px; background: var(--card2); border-radius: 99px; overflow: hidden; }
.bar > i { display: block; height: 100%; background: var(--gold); border-radius: 99px; }
.list-item { padding: 12px 0; border-top: 1px solid var(--line); }
.list-item:first-child { border-top: 0; }
.seg { display: flex; gap: 4px; background: var(--bg2); border: 1px solid var(--line); border-radius: 999px; padding: 4px; overflow-x: auto; }
.seg button { padding: 8px 14px; border-radius: 999px; font-weight: 700; font-size: 14px; color: var(--muted); white-space: nowrap; }
.seg button.on { background: var(--gold); color: var(--gold-ink); }
.modal { position: fixed; inset: 0; background: rgba(5, 12, 20, .82); display: grid; place-items: center; z-index: 60; padding: 20px; }
.modal > div { background: var(--bg2); border: 1px solid var(--line); border-radius: 22px; padding: 22px; max-width: 420px; width: 100%; text-align: center; }

/* playful bits */
.confetti { color: #fff; background-color: var(--navy-deep); background-repeat: no-repeat; background-image:
  radial-gradient(circle at 86% 30%, var(--sun) 0 4px, transparent 5px), radial-gradient(circle at 93% 70%, var(--coral) 0 4px, transparent 5px),
  radial-gradient(circle at 97% 24%, var(--mint) 0 3px, transparent 4px),
  linear-gradient(120deg, var(--navy-deep) 0%, #0b4566 55%, #1874a8 100%); }
.confetti .muted { color: #d6e6f2; }
.hero.confetti { background-color: var(--navy);
  background-image:
    radial-gradient(circle at 94% 88%, var(--sun) 0 6px, transparent 7px), radial-gradient(circle at 86% 94%, var(--coral) 0 4px, transparent 5px),
    radial-gradient(circle at 97% 72%, var(--mint) 0 4px, transparent 5px),
    url("/brand/mark-faint.svg"),
    radial-gradient(120% 140% at 100% 0%, #3aa7e6 0%, rgba(58, 167, 230, 0) 55%),
    linear-gradient(135deg, #0a3a57 0%, #11618f 60%, #2b8fd0 100%);
  background-position: 0 0, 0 0, 0 0, right -60px top -50px, 0 0, 0 0;
  background-size: auto, auto, auto, 230px 230px, auto, auto; box-shadow: 0 6px 0 rgba(8, 47, 69, .12); }
.hero.confetti h1 { text-shadow: 0 2px 0 rgba(0, 0, 0, .12); }
/* Restoration masthead (matches app.restorationmemphis.com) */
.mast { display: flex; align-items: center; gap: 12px; }
.mast img { width: 36px; height: 36px; flex: none; }
.mast .name { font-weight: 800; letter-spacing: .14em; text-transform: uppercase; font-size: 13.5px; line-height: 1.2; color: #fff; }
.mast .name span { display: block; color: var(--gold); font-weight: 600; letter-spacing: .2em; font-size: 10.5px; }
.mast .name span b { color: var(--sun); font-weight: 800; }
.confetti .muted { color: #c9d6e2; }
.rainbow { height: 6px; background: linear-gradient(90deg, var(--coral), var(--sun), var(--mint), var(--sky), var(--grape)); }
.card { box-shadow: 0 2px 0 rgba(20, 48, 74, .05); }
.stat:nth-child(4n+1) b { color: var(--sky); } .stat:nth-child(4n+2) b { color: var(--coral); } .stat:nth-child(4n+3) b { color: var(--mint); } .stat:nth-child(4n+4) b { color: var(--grape); }
.in { background: #fff; }

.grid2 > * { min-width: 0; }
input.in[type=date], input.in[type=time] { min-width: 0; max-width: 100%; }

/* Embedded in app.restorationmemphis.com */
body.embed { background: transparent; min-height: 0; }
body.embed header, body.embed .rainbow, body.embed nav.tabs { display: none !important; }
body.embed main { padding: 4px 2px 24px !important; }
