/* Capable for parents. The app's look: cream paper, ink, one lime accent,
   Lexend, big round buttons. Phone first: most parents open it from a
   WhatsApp link. */

:root {
  --paper: #f6f3ec;
  --card: #ffffff;
  --ink: #141414;
  --muted: #6b6b6b;
  --line: rgba(0, 0, 0, 0.08);
  --lime: #ddf7a0;
  --board: #1e2a26;
  --green: #448361;
  --green-wash: #edf3ec;
  --amber: #b7791f;
  --amber-wash: #fbf3e4;
  --red: #b3261e;
  --video-paper: #f7f6f1;
  --radius: 20px;
  --shadow: 0 20px 40px rgba(0, 0, 0, 0.08), 0 2px 6px rgba(0, 0, 0, 0.04);
  color-scheme: light;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Lexend", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
  -webkit-text-size-adjust: 100%;
}

body { min-height: 100vh; min-height: 100dvh; }

a { color: inherit; }
button { font: inherit; color: inherit; }
[hidden] { display: none !important; }

.mono { font-family: "JetBrains Mono", ui-monospace, monospace; }

/* ── Top bar ─────────────────────────────────────────────────────────── */

.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1040px;
  margin: 0 auto;
  padding: 16px 20px;
}
.top .brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.top .brand img { height: 26px; width: auto; display: block; }
.top .brand span {
  font-size: 12px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 99px;
  background: var(--lime);
}
.top nav { display: flex; gap: 6px; align-items: center; }

.link {
  background: none;
  border: 0;
  padding: 10px 12px;
  font-size: 14.5px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ── Buttons and fields ─────────────────────────────────────────────── */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  min-height: 56px;
  padding: 0 24px;
  border: 0;
  border-radius: 99px;
  background: var(--ink);
  color: #fff;
  font-size: 16.5px;
  font-weight: 600;
  letter-spacing: -0.2px;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.12s ease, opacity 0.2s ease;
}
.btn:active { transform: scale(0.985); }
.btn:disabled { opacity: 0.28; cursor: default; transform: none; }
.btn.secondary { background: var(--card); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line); }
.btn.lime { background: var(--lime); color: var(--ink); }
.btn.small { min-height: 44px; font-size: 14.5px; width: auto; padding: 0 18px; }
.btn svg { width: 19px; height: 19px; flex: none; }

.spin {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-top-color: #fff;
  animation: spin 0.8s linear infinite;
}
.btn.secondary .spin, .btn.lime .spin { border-color: rgba(0, 0, 0, 0.15); border-top-color: var(--ink); }
@keyframes spin { to { transform: rotate(360deg); } }

.field { display: block; margin-bottom: 12px; }
.field > span { display: block; font-size: 13.5px; font-weight: 600; margin: 0 0 6px 4px; }
.input {
  width: 100%;
  min-height: 56px;
  padding: 0 16px;
  border-radius: 16px;
  border: 1px solid rgba(0, 0, 0, 0.12);
  background: var(--card);
  font: inherit;
  font-size: 16.5px;
  color: var(--ink);
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.input:focus { border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink); }
.input::placeholder { color: #9a9a9a; }
.phone-wrap { position: relative; }
.phone-wrap .flag { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); font-size: 18px; pointer-events: none; }
.phone-wrap .input { padding-left: 48px; }
.pw-wrap { position: relative; }
.pw-wrap .input { padding-right: 64px; }
.pw-wrap button {
  position: absolute; right: 8px; top: 50%; transform: translateY(-50%);
  border: 0; background: none; font-size: 13.5px; font-weight: 600; padding: 10px; cursor: pointer; color: var(--muted);
}
.code-input { text-align: center; font-family: "JetBrains Mono", monospace; font-size: 26px; letter-spacing: 10px; font-weight: 700; }
.hint { font-size: 13px; color: var(--muted); margin: 6px 4px 0; }

.error {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  color: var(--red);
  font-size: 14px;
  margin: 10px 2px 0;
}
.error svg { width: 16px; height: 16px; flex: none; margin-top: 2px; }
.notice {
  background: var(--green-wash);
  border-radius: 16px;
  padding: 12px 14px;
  font-size: 14.5px;
  margin: 12px 0 0;
}

/* Phone / Email */
.seg {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  padding: 4px;
  border-radius: 99px;
  background: rgba(0, 0, 0, 0.05);
  margin-bottom: 18px;
}
.seg button {
  min-height: 44px;
  border: 0;
  border-radius: 99px;
  background: transparent;
  font-size: 15px;
  font-weight: 600;
  color: var(--muted);
  cursor: pointer;
}
.seg button[aria-selected="true"] { background: var(--card); color: var(--ink); box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1); }

/* ── Landing ────────────────────────────────────────────────────────── */

.hero {
  max-width: 1040px;
  margin: 0 auto;
  padding: 24px 20px 40px;
  display: grid;
  gap: 28px;
  align-items: center;
}
@media (min-width: 900px) {
  .hero { grid-template-columns: 1fr 1.15fr; gap: 56px; padding-top: 56px; }
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 14px;
}
.eyebrow::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--green); }
h1 {
  font-size: clamp(36px, 8.6vw, 58px);
  line-height: 1.02;
  letter-spacing: -0.035em;
  font-weight: 800;
  margin: 0 0 16px;
}
h1 em { font-style: normal; background: linear-gradient(transparent 62%, var(--lime) 62%); }
.lead b { color: var(--ink); }
.lead { font-size: 18px; color: #3b3b3b; margin: 0 0 24px; max-width: 34em; }
.hero .actions { display: grid; gap: 10px; max-width: 420px; }
.price-line { font-size: 14.5px; color: var(--muted); margin: 14px 2px 0; }
.price-line b { color: var(--ink); }

.two-holidays {
  max-width: 1040px;
  margin: 0 auto;
  padding: 0 20px 28px;
}
.two-holidays h2 { font-size: 22px; letter-spacing: -0.02em; margin: 0 0 14px 2px; }
.two-holidays .pair { display: grid; gap: 12px; }
@media (min-width: 760px) { .two-holidays .pair { grid-template-columns: 1fr 1fr; } }
.two-holidays .side {
  border-radius: var(--radius);
  padding: 18px 20px 20px;
}
.two-holidays .drift { background: var(--card); box-shadow: inset 0 0 0 1px var(--line); color: var(--muted); }
.two-holidays .plan { background: var(--board); color: #fff; }
.two-holidays .mono {
  display: inline-block;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.4px;
  padding: 3px 9px;
  border-radius: 99px;
  margin-bottom: 12px;
}
.two-holidays .drift .mono { background: var(--paper); color: var(--ink); }
.two-holidays .plan .mono { background: var(--lime); color: var(--ink); }
.two-holidays ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.two-holidays li { position: relative; padding-left: 20px; font-size: 15px; line-height: 1.45; }
.two-holidays li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 0.55em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.45;
}
.two-holidays .plan li::before { background: var(--lime); opacity: 1; }

.weeks {
  max-width: 1040px;
  margin: 0 auto;
  padding: 0 20px 28px;
}
.weeks h2 { font-size: 22px; letter-spacing: -0.02em; margin: 0 0 14px 2px; }
.weeks ol {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
}
@media (min-width: 560px) { .weeks ol { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .weeks ol { grid-template-columns: repeat(4, 1fr); } }
.weeks li {
  background: var(--card);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: inset 0 0 0 1px var(--line);
}
.weeks li .mono {
  display: inline-block;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.4px;
  padding: 3px 9px;
  border-radius: 99px;
  background: var(--lime);
  margin-bottom: 10px;
}
.weeks li b { display: block; font-size: 16px; margin-bottom: 4px; }
.weeks li span:last-child { font-size: 14px; color: var(--muted); }
.weeks > p { font-size: 14px; color: var(--muted); margin: 14px 2px 0; }

.steps-strip {
  max-width: 1040px;
  margin: 0 auto;
  padding: 8px 20px 64px;
}
.steps-strip h2 { font-size: 22px; letter-spacing: -0.02em; margin: 0 0 14px 2px; }
.steps-strip ol {
  list-style: none;
  margin: 0;
  padding: 22px;
  border-radius: 28px;
  background: var(--board);
  color: #fff;
  display: grid;
  gap: 16px;
}
@media (min-width: 760px) { .steps-strip ol { grid-template-columns: repeat(3, 1fr) auto; align-items: center; } }
.steps-strip li { display: flex; gap: 12px; align-items: center; font-weight: 500; }
.steps-strip li i {
  font-style: normal;
  width: 30px; height: 30px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--lime); color: var(--ink);
  font-size: 14px; font-weight: 700; flex: none;
}
.steps-strip .btn { width: auto; }

footer.foot {
  text-align: center;
  font-size: 13px;
  color: var(--muted);
  padding: 24px 20px 40px;
}
footer.foot a { margin: 0 8px; }

/* ── The video ──────────────────────────────────────────────────────── */

.video {
  position: relative;
  margin: 0;
  aspect-ratio: 16 / 9;
  border-radius: 24px;
  overflow: hidden;
  background: var(--video-paper);
  box-shadow: var(--shadow), inset 0 0 0 1px var(--line);
}
.video video { position: absolute; inset: 0; width: 100%; height: 100%; display: block; background: var(--video-paper); }
/* The poster: the line from the film a parent knows best. */
.video .poster {
  position: absolute;
  inset: 0;
  border: 0;
  padding: 0;
  width: 100%;
  background: radial-gradient(ellipse at 50% 46%, #fff 0%, var(--video-paper) 62%);
  cursor: pointer;
  display: grid;
  place-items: center;
  text-align: center;
}
.video .poster .quote {
  font-size: clamp(22px, 5.4vw, 40px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
  padding: 0 8%;
  margin-top: -6%;
}
.video .poster .small { display: block; font-size: clamp(11px, 2.4vw, 14px); font-weight: 400; color: var(--muted); letter-spacing: 0; margin-bottom: 10px; }
.video .poster .mark { position: absolute; left: 4%; bottom: 7%; height: 7%; min-height: 14px; }
.video .poster .play {
  position: absolute;
  right: 4%;
  bottom: 6%;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px 10px 12px;
  border-radius: 99px;
  background: var(--ink);
  color: #fff;
  font-size: clamp(13px, 2.8vw, 15px);
  font-weight: 600;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.18);
  transition: transform 0.15s ease;
}
.video .poster:hover .play { transform: scale(1.04); }
.video .poster .play i {
  width: 30px; height: 30px; border-radius: 50%;
  background: var(--lime); color: var(--ink);
  display: grid; place-items: center;
}
.video .poster .play svg { width: 14px; height: 14px; margin-left: 2px; }
.video-caption { font-size: 13.5px; color: var(--muted); margin: 10px 4px 0; }

/* ── Flow pages (register, children, checkout, family, sign in) ─────── */

.page {
  max-width: 560px;
  margin: 0 auto;
  padding: 4px 20px 48px;
}
.progress {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 4px 0 26px;
}
.progress .bar { flex: 1; height: 6px; border-radius: 99px; background: rgba(0, 0, 0, 0.07); overflow: hidden; }
.progress .bar div { height: 100%; background: var(--ink); border-radius: 99px; transition: width 0.4s ease; }
.progress span { font-size: 12.5px; color: var(--muted); white-space: nowrap; }
.back {
  border: 0; background: none; padding: 8px; margin-left: -8px; cursor: pointer; display: grid; place-items: center; border-radius: 50%;
}
.back svg { width: 22px; height: 22px; }
h2 {
  font-size: clamp(30px, 7.4vw, 38px);
  line-height: 1.05;
  letter-spacing: -0.03em;
  font-weight: 800;
  margin: 0 0 8px;
}
.line { font-size: 16px; color: var(--muted); margin: 0 0 22px; }
.stack { display: grid; gap: 10px; }
.terms { font-size: 12.5px; color: var(--muted); text-align: center; margin: 14px 8px 0; }
.switch { text-align: center; margin-top: 8px; font-size: 14.5px; }
.switch button { font-weight: 700; }

/* Children */
.child {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--card);
  border-radius: var(--radius);
  padding: 14px 14px 14px 16px;
  box-shadow: inset 0 0 0 1px var(--line);
  margin-bottom: 10px;
}
.avatar {
  width: 44px; height: 44px; border-radius: 14px;
  display: grid; place-items: center;
  font-weight: 700; font-size: 18px; color: #fff; flex: none;
}
.child .who { flex: 1; min-width: 0; }
.child .who b { display: block; font-size: 16px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.child .who span { font-size: 13.5px; color: var(--muted); }
.child .x { border: 0; background: none; padding: 8px; cursor: pointer; color: var(--muted); border-radius: 50%; }
.child .x svg { width: 18px; height: 18px; display: block; }
.pill { font-size: 12px; font-weight: 600; padding: 4px 10px; border-radius: 99px; white-space: nowrap; }
.pill.paid { background: var(--green-wash); color: var(--green); }
.pill.unpaid { background: var(--amber-wash); color: var(--amber); }

.add-card {
  background: var(--card);
  border-radius: 24px;
  padding: 18px;
  box-shadow: inset 0 0 0 1px var(--line);
  margin: 6px 0 18px;
}
.add-card h3 { font-size: 17px; margin: 0 0 12px; letter-spacing: -0.2px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.chip {
  border: 0;
  border-radius: 14px;
  padding: 10px 14px;
  background: var(--paper);
  box-shadow: inset 0 0 0 1px var(--line);
  cursor: pointer;
  text-align: left;
  font-size: 14.5px;
  font-weight: 600;
}
.chip small { display: block; font-size: 11.5px; font-weight: 400; color: var(--muted); }
.chip[aria-pressed="true"] { background: var(--ink); color: #fff; box-shadow: none; }
.chip[aria-pressed="true"] small { color: #cfcfcf; }

.sticky {
  position: sticky;
  bottom: 0;
  padding: 14px 0 18px;
  background: linear-gradient(transparent, var(--paper) 22%);
}
.sticky .sum { display: flex; justify-content: space-between; font-size: 14.5px; margin: 0 6px 10px; color: var(--muted); }
.sticky .sum b { color: var(--ink); }

/* Checkout */
.plans { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 22px 0 14px; }
.plan {
  position: relative;
  border: 0;
  border-radius: 18px;
  background: var(--card);
  box-shadow: inset 0 0 0 1px var(--line);
  padding: 14px;
  text-align: left;
  cursor: pointer;
}
.plan b { display: block; font-size: 16px; }
.plan span { font-size: 13px; color: var(--muted); }
.plan[aria-pressed="true"] { box-shadow: inset 0 0 0 2px var(--ink); }
.plan .save {
  position: absolute; top: -9px; right: 10px;
  background: var(--lime); font-size: 11px; font-weight: 700; padding: 3px 8px; border-radius: 99px;
}
.lines { background: var(--card); border-radius: var(--radius); box-shadow: inset 0 0 0 1px var(--line); padding: 6px 16px; }
.lines label { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); cursor: pointer; }
.lines label:last-of-type { border-bottom: 0; }
.lines input { width: 20px; height: 20px; accent-color: var(--ink); flex: none; }
.lines .who { flex: 1; }
.lines .who b { display: block; font-size: 15px; }
.lines .who span { font-size: 12.5px; color: var(--muted); }
.lines .amt { font-weight: 600; font-variant-numeric: tabular-nums; }
.total { display: flex; justify-content: space-between; align-items: baseline; margin: 16px 6px 4px; }
.total span { color: var(--muted); font-size: 14.5px; }
.total b { font-size: 24px; letter-spacing: -0.5px; }
.secure { display: flex; align-items: center; justify-content: center; gap: 8px; font-size: 13px; color: var(--muted); margin-top: 10px; }
.secure svg { width: 14px; height: 14px; }
.promise { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 8px; font-size: 14px; color: #3b3b3b; }
.promise li { display: flex; gap: 10px; align-items: flex-start; }
.promise svg { width: 17px; height: 17px; flex: none; color: var(--green); margin-top: 2px; }

/* Family */
.how {
  background: var(--board);
  color: #fff;
  border-radius: 24px;
  padding: 20px;
  margin: 18px 0;
}
.how h3 { margin: 0 0 12px; font-size: 17px; }
.how ol { margin: 0; padding-left: 20px; display: grid; gap: 8px; color: #d9e0dc; font-size: 15px; }
.how ol b { color: #fff; }
.how .btn { margin-top: 16px; }
.share { color: #25d366; }
.row-actions { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }

.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%);
  background: var(--ink);
  color: #fff;
  padding: 12px 18px;
  border-radius: 14px;
  font-size: 14.5px;
  box-shadow: var(--shadow);
  z-index: 10;
  max-width: calc(100% - 32px);
}

.boot { display: grid; place-items: center; min-height: 60vh; }
.boot .spin { border-color: rgba(0, 0, 0, 0.12); border-top-color: var(--ink); width: 26px; height: 26px; }

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation-duration: 0.01ms !important; }
}
