/*
  THE PARENT AREA — wondereel.app/parents/*

  Four pages share this sheet: the door, the account, the subscription and the
  deletion. They are the only signed-in pages on the site, and the only ones a
  parent reaches from inside the app — which is why they look like the wizard
  and not like the marketing site: the parent arrived mid-task, not browsing.

  The app links straight here with a one-time token (Contract §8.3), so most
  arrivals are already signed in before the page draws. Every page still works
  without one: the token is a shortcut, never the door.
*/
:root{
  --dark:#120C2B; --panel:#1E1748; --edge:#4A3F8C; --primary:#3E22BE;
  --pink:#FD87AA; --soft:#B3A9E6; --paper:#ECE7FA; --ink:#231A4A;
}
@font-face{font-family:Outfit;src:url(/assets/fonts/Outfit_300Light.ttf) format("truetype");font-weight:300;font-display:swap}
@font-face{font-family:Outfit;src:url(/assets/fonts/Outfit_400Regular.ttf) format("truetype");font-weight:400;font-display:swap}
@font-face{font-family:Outfit;src:url(/assets/fonts/Outfit_500Medium.ttf) format("truetype");font-weight:500;font-display:swap}
@font-face{font-family:Outfit;src:url(/assets/fonts/Outfit_600SemiBold.ttf) format("truetype");font-weight:600;font-display:swap}

*{box-sizing:border-box}
html,body{margin:0;padding:0}
body{
  background:var(--dark); color:#fff; min-height:100vh;
  font-family:Outfit,-apple-system,BlinkMacSystemFont,"Segoe UI",system-ui,sans-serif;
  -webkit-font-smoothing:antialiased;
}
img{display:block;max-width:100%}
a{color:inherit}

.shell{max-width:560px;margin:0 auto;padding:26px 20px 64px;min-height:100vh;
  display:flex;flex-direction:column}
.mark{width:118px;margin:0 auto 24px;opacity:.95}
h1{font-size:27px;line-height:1.2;margin:0 0 6px;font-weight:600}
.sub{color:#C6BCEB;font-size:15px;line-height:1.5;margin:0 0 4px}

/* A card per subject. One subject per card, in the order a parent asks for
   them: who the child is, what the subscription is doing, how to get the app
   onto a device, and only then the account itself. */
.card{background:var(--panel);border:1px solid var(--edge);border-radius:20px;
  padding:22px 20px;margin:18px 0 0}
.card h2{font-size:12.5px;letter-spacing:.09em;text-transform:uppercase;color:var(--soft);
  margin:0 0 16px;font-weight:600}
.card.quiet{background:none;border-color:rgba(255,255,255,.14)}

.row{display:flex;align-items:center;gap:14px;padding:13px 0;border-top:1px solid rgba(255,255,255,.1)}
.row:first-of-type{border-top:0;padding-top:0}
.row .label{color:var(--soft);font-size:13.5px;flex:0 0 112px}
.row .value{font-size:16px;font-weight:500;flex:1;min-width:0;overflow-wrap:anywhere}
.row .edit{background:none;border:1.5px solid var(--edge);border-radius:11px;color:#fff;
  padding:8px 13px;font-size:13.5px;cursor:pointer;font-family:inherit}
.row .edit:hover{border-color:var(--soft)}

.state{display:inline-flex;align-items:center;gap:8px;font-size:15px;font-weight:600}
.dot{width:9px;height:9px;border-radius:50%;background:var(--soft)}
.dot.good{background:#5BD39A}
.dot.warn{background:#FFC46B}
.dot.off{background:#8C83BC}

.fld{margin:0 0 14px}
.fld label{display:block;font-size:12px;color:var(--soft);margin:0 0 7px}
.fld input,.fld select{width:100%;background:none;border:1.5px solid #6C5FC0;border-radius:14px;
  padding:15px 16px;color:#fff;font-size:17px;font-weight:600;font-family:inherit}
.fld input::placeholder{color:#5B4BA8;font-weight:500}
.fld select option{background:var(--panel);color:#fff}
.chips{display:flex;flex-wrap:wrap;gap:9px}
.chips button{background:none;border:1.5px solid var(--edge);border-radius:12px;color:#fff;
  padding:10px 13px;font-size:13.5px;cursor:pointer;font-family:inherit}
.chips button.on{border-color:var(--pink);background:rgba(253,135,170,.12)}

.primary{width:100%;background:#fff;color:var(--dark);border:0;border-radius:14px;padding:16px;
  font-size:16.5px;font-weight:600;cursor:pointer;font-family:inherit}
.primary:disabled{background:#2A2160;color:#6C5FC0;cursor:default}
.second{width:100%;background:none;border:1.5px solid var(--edge);border-radius:14px;color:#fff;
  padding:15px;font-size:15.5px;font-weight:500;cursor:pointer;font-family:inherit;margin:10px 0 0}
.second:hover{border-color:var(--soft)}
.danger{color:#FF9BB4;border-color:rgba(255,155,180,.45)}
.danger:hover{border-color:#FF9BB4}
.ghost{background:none;border:0;color:#C6BCEB;font-size:14.5px;cursor:pointer;font-family:inherit;
  text-decoration:underline;padding:0}

.err{font-size:13.5px;color:var(--pink);margin:10px 0 0;font-weight:600;min-height:18px}
.said{font-size:13.5px;color:#9BE3C2;margin:10px 0 0;font-weight:600;min-height:18px}
.note{color:#8C83BC;font-size:13px;line-height:1.55;margin:14px 0 0}
.note a{color:#B3A9E6}

.spin{width:18px;height:18px;border-radius:50%;border:2px solid #4A3F8C;border-top-color:var(--pink);
  animation:sp .8s linear infinite;margin:40px auto}
@keyframes sp{to{transform:rotate(360deg)}}
[hidden]{display:none !important}

/* The modal a field is edited in. The page never navigates to edit one value:
   a parent who came from the app is standing next to a child holding a phone. */
.sheet{position:fixed;inset:0;background:rgba(10,6,28,.72);display:flex;align-items:center;
  justify-content:center;padding:20px;z-index:10}
.sheet .box{background:var(--panel);border:1px solid var(--edge);border-radius:20px;
  padding:24px 20px;width:100%;max-width:420px}
.sheet h3{margin:0 0 16px;font-size:19px;font-weight:600}

.foot{margin-top:auto;padding-top:34px;display:flex;gap:18px;justify-content:center;
  color:#8C83BC;font-size:12.5px}
.foot a{color:#8C83BC}

@media (max-width:420px){
  h1{font-size:24px}
  .row{flex-wrap:wrap}
  .row .label{flex:1 0 100%}
}

/* The ROSCA consent row (9.11.2026). The checkbox sits on our page now, one
   step before Stripe, so it has to read as a decision and not as fine print:
   full-size box, the label beside it, never pre-ticked. */
.agree{display:flex;gap:10px;align-items:flex-start;margin:18px 0 0;font-size:13.5px;line-height:1.55;color:#C6BCEB}
.agree input{margin:2px 0 0;width:18px;height:18px;flex:0 0 auto;accent-color:var(--pink)}
.agree a{color:#fff}

/* THE TWO WAYS IN THAT WERE MISSING (found 9.11.2026, in Roy's phone test).
   The wizard offers Google and Apple first, so a parent can finish sign-up
   without ever choosing a password -- and this screen asked for one. That
   parent could not reach the parents area at all: not the subscription, not
   cancelling it, not deleting the account. Same buttons, same order. */
.social{width:100%;background:#fff;color:#1F1F1F;border:0;border-radius:14px;padding:15px;
  font-size:16px;font-weight:600;cursor:pointer;font-family:inherit;display:flex;align-items:center;
  justify-content:center;gap:10px;margin:0 0 10px}
.or{display:flex;align-items:center;gap:12px;color:#C6BCEB;font-size:13.5px;margin:16px 0}
.or:before,.or:after{content:"";flex:1;height:1px;background:rgba(255,255,255,.18)}
