/* Family Tracker sales site: the shared look of every page (plan CHILD-SALES-001, row T-1, lane A).
   Tokens first; every page uses these, never its own colour or gap.
   Spacing scale (phone / computer): page edge 20 / 58, heading to text 24 / 32, between sections 48 / 96,
   inside cards 24 / 32, between items 16 / 24.
   The coral band and coral buttons carry white text at 4.65 to 1 (coral #D63B2A on white). */

:root {
  --navy: #13235b;
  --navy-deep: #0e1d55;
  --text-soft: #46527a;
  --coral: #d63b2a;
  --coral-hover: #c23324;
  --coral-soft: #ffe4de;
  --sun: #f6c33b;
  --sun-soft: #fff4cf;
  --leaf: #3fa34d;
  --leaf-soft: #ebf6e1;
  --sky: #4a7be0;
  --cream: #fdf3dc;
  --ground: #fbf4ea;
  --white: #ffffff;
  --line: #dfe3ee;
  --font: "Nunito", "Segoe UI Rounded", "Arial Rounded MT Bold", ui-rounded, "Segoe UI", system-ui, sans-serif;
  --radius: 20px;
  --radius-sm: 12px;
  --shadow: 0 6px 22px rgba(19, 35, 91, 0.08);
  --col: 1324px;

  --edge: 20px;
  --gap-head: 24px;
  --gap-sec: 48px;
  --pad-card: 24px;
  --gap-item: 16px;
  --top-h: 56px;
}

@media (min-width: 900px) {
  :root {
    --edge: 58px;
    --gap-head: 32px;
    --gap-sec: 96px;
    --pad-card: 32px;
    --gap-item: 24px;
  }
}
/* the computer top bar (with the words) starts at 1200 px; below it the phone bar and its menu stay,
   so no width from 360 to 1600 scrolls sideways (T-1S). Heights from final5: phone 56, computer 66. */
@media (min-width: 1200px) {
  :root { --top-h: 66px; }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--ground);
  color: var(--navy);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.5;
}
img, svg { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { margin: 0; font-weight: 900; line-height: 1.12; letter-spacing: -0.01em; }
h1 { font-size: 40px; }
h2 { font-size: 30px; }
h3 { font-size: 22px; }
p { margin: 0; }
@media (min-width: 900px) {
  body { font-size: 19px; }
  h1 { font-size: 62px; }
  h2 { font-size: 44px; }
  h3 { font-size: 28px; }
}

/* the column */
.wrap { width: 100%; max-width: calc(var(--col) + 2 * var(--edge)); margin: 0 auto; padding: 0 var(--edge); }
.sec { padding: var(--gap-sec) 0 0; }
.sec:last-child { padding-bottom: var(--gap-sec); }
.sec-head { margin-bottom: var(--gap-head); }
.sec-head p { margin-top: 12px; color: var(--text-soft); }

/* ---------- top bar ---------- */
.top { position: sticky; top: 0; z-index: 20; background: var(--white); box-shadow: 0 1px 0 rgba(19, 35, 91, 0.06); }
.top-in { display: flex; align-items: center; gap: 16px; height: var(--top-h); max-width: calc(var(--col) + 2 * var(--edge)); margin: 0 auto; padding: 0 var(--edge); }
.brand { display: inline-flex; align-items: center; gap: 5px; text-decoration: none; font-weight: 900; font-size: 14.5px; color: var(--navy); white-space: nowrap; min-width: 0; }
.brand .mark { width: 35px; height: 22px; flex: none; }
.nav { display: none; }
.top-act { margin-left: auto; display: flex; align-items: center; gap: 10px; flex: none; }
@media (max-width: 1199px) {
  .top-in { gap: 8px; }
}
@media (min-width: 900px) and (max-width: 1199px) {
  .brand { font-size: 24px; gap: 4px; }
  .brand .mark { width: 44px; height: 28px; }
}
/* the current page in the top bar: each page sets aria-current="page" on its own link (the pink mark of
   final5/how-1440.png; on Start, the "Start free" button carries it as on final5/start-1440.png) */
.nav a[aria-current="page"], .signin[aria-current="page"] { background: var(--coral-soft); border-radius: 999px; }
@media (min-width: 1200px) {
  .top-act .btn[aria-current="page"] { background: var(--coral-soft); border-color: var(--coral-soft); color: var(--navy); box-shadow: none; }
}
.signin { display: none; text-decoration: none; font-weight: 800; }
.menu-btn { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; border: 1.5px solid var(--line); background: var(--white); cursor: pointer; }
.menu-btn svg { width: 18px; height: 18px; }
.menu-btn .i-close { display: none; }
.menu-toggle { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.menu-toggle:focus-visible ~ .top-in .menu-btn { outline: 3px solid var(--sky); outline-offset: 2px; }
.menu-toggle:checked ~ .top-in .menu-btn .i-open { display: none; }
.menu-toggle:checked ~ .top-in .menu-btn .i-close { display: block; }

@media (min-width: 1200px) {
  .brand { font-size: 34px; gap: 4px; flex: none; }
  .brand .mark { width: 44px; height: 28px; }
  .nav { display: flex; gap: 8px; margin-left: 26px; }
  .nav a { padding: 6px 16px; text-decoration: none; font-weight: 800; font-size: 22px; white-space: nowrap; }
  .signin { padding: 6px 14px; }
  .nav a:hover, .signin:hover { color: var(--coral); }
  .signin { display: inline; font-size: 22px; }
  .top-act { gap: 18px; }
  .menu-btn, .menu { display: none !important; }
  .menu-toggle { display: none; } /* no hidden stop for the Tab key where the menu button is gone */
}
@media (min-width: 1200px) and (max-width: 1439px) {
  .nav { gap: 2px; margin-left: 14px; }
  .nav a, .signin { padding: 6px 10px; font-size: 19px; }
  .brand { font-size: 27px; }
  .top-act { gap: 10px; }
}

/* the phone menu: a check box toggles it, no script */
.menu { display: none; position: fixed; inset: var(--top-h) 0 0 0; overflow-y: auto; background: var(--cream); padding: 24px var(--edge) 32px; }
.menu-toggle:checked ~ .menu { display: block; }
.menu-list { list-style: none; margin: 0; padding: 0; }
.menu-list li { border-bottom: 1px solid rgba(19, 35, 91, 0.1); }
.menu-list a { display: flex; align-items: center; gap: 24px; padding: 12px 16px; border-radius: var(--radius); text-decoration: none; font-weight: 900; font-size: 22px; }
.menu-list a img { width: 64px; height: 52px; object-fit: contain; mix-blend-mode: multiply; }
.menu-list a.is-here { background: var(--coral-soft); }
.menu-signin { display: block; margin: 32px 12px 16px; font-weight: 900; font-size: 20px; text-decoration: none; }
.menu .btn { width: 100%; }

/* ---------- buttons, links, chips, lists ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 28px; border-radius: 999px; border: 2px solid var(--coral);
  background: var(--coral); color: var(--white); font: inherit; font-weight: 900; font-size: 18px;
  text-decoration: none; cursor: pointer; box-shadow: 0 4px 12px rgba(214, 59, 42, 0.22); white-space: nowrap;
}
.btn:hover { background: var(--coral-hover); border-color: var(--coral-hover); }
.btn-sm { min-height: 28px; padding: 0 13px; font-size: 12.5px; }
.btn-wide { min-width: 260px; }
.btn-ghost { background: var(--white); color: var(--coral); box-shadow: none; }
.btn-ghost:hover { background: var(--coral-soft); color: var(--coral-hover); }
.btn-white { background: var(--white); border-color: var(--white); color: var(--coral); box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12); }
.btn-white:hover { background: var(--cream); border-color: var(--cream); color: var(--coral-hover); }
@media (min-width: 900px) {
  .btn { min-height: 56px; font-size: 22px; padding: 0 34px; }
  .btn-sm { min-height: 44px; font-size: 19px; padding: 0 22px; }
}
@media (min-width: 1200px) {
  .btn-sm { min-height: 52px; font-size: 23px; padding: 0 30px; }
}

.link-more { display: inline-block; margin-top: var(--gap-head); color: var(--coral); font-weight: 900; text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 2px; }

/* a place and time chip, as on the pictures: pin, place, coral time */
.chip {
  display: inline-flex; align-items: center; gap: 6px; padding: 6px 14px 6px 10px; border-radius: 999px;
  background: var(--white); color: var(--navy); box-shadow: 0 4px 14px rgba(19, 35, 91, 0.16); font-weight: 900; font-size: 15px; white-space: nowrap;
}
.chip svg { width: 18px; height: 22px; }
.chip b { color: var(--coral); font-weight: 900; }
@media (min-width: 900px) { .chip { font-size: 20px; padding: 8px 18px 8px 12px; } .chip svg { width: 22px; height: 26px; } }

.checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.checks li { position: relative; padding-left: 32px; font-weight: 700; }
.checks li::before {
  content: ""; position: absolute; left: 0; top: 3px; width: 22px; height: 22px; border-radius: 50%; background: var(--leaf);
}
.checks li::after {
  content: ""; position: absolute; left: 8px; top: 7px; width: 6px; height: 11px;
  border: solid var(--white); border-width: 0 3px 3px 0; transform: rotate(45deg);
}

/* ---------- cards and the coral band ---------- */
.card { background: var(--white); border: 1.5px solid var(--line); border-radius: var(--radius); padding: var(--pad-card); box-shadow: var(--shadow); }
.band { background: var(--coral); color: var(--white); }
.band h2 { color: var(--white); }

/* ---------- foot ---------- */
/* heights from final5: phone 181, computer 225 */
.foot { background: var(--navy-deep); color: var(--white); padding: 19px 0 16px; }
.foot-in { max-width: calc(var(--col) + 2 * var(--edge)); margin: 0 auto; padding: 0 var(--edge); display: grid; gap: 10px; }
.foot-brand { display: inline-flex; align-items: center; gap: 6px; color: var(--white); text-decoration: none; font-weight: 900; font-size: 18px; line-height: 1.25; white-space: nowrap; }
.foot-brand .mark { width: 35px; height: 22px; }
.foot-tag { margin-top: 2px; opacity: 0.92; font-size: 12px; line-height: 1.6; }
.foot-links { display: grid; grid-template-columns: 1fr 1fr; gap: 0 24px; font-size: 12px; line-height: 1.8; }
.foot-links ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.foot-links a { color: var(--white); text-decoration: none; }
.foot-links a:hover { text-decoration: underline; }
@media (max-width: 899px) {
  .foot-in { justify-items: center; text-align: center; }
  .foot-links { grid-template-columns: 189px 81px; gap: 0; text-align: left; }
}
@media (min-width: 900px) {
  .foot { padding: 30px 0 48px; }
  .foot-in { grid-template-columns: 1fr auto; align-items: start; gap: 28px; }
  .foot-brand { font-size: 34px; margin-top: 4px; gap: 4px; }
  .foot-brand .mark { width: 44px; height: 28px; }
  .foot-tag { margin-top: 6px; font-size: 21px; }
  .foot-links { grid-template-columns: auto auto; gap: 0 32px; font-size: 19px; line-height: 1.5; }
  .foot-links ul { gap: 3px; }
}
@media (min-width: 1200px) {
  .foot-links { grid-template-columns: 344px 220px; gap: 0 24px; font-size: 23px; }
}

.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
