/* PlayPacer website. Colours come from the app icon: deep teal, white, brushed silver. */
:root {
  --bg: #f6f8f8;
  --surface: #ffffff;
  --surface-2: #eaf1f2;
  --text: #13262b;
  --muted: #4d6268;
  --line: #d5e0e2;
  --teal: #0b5d6e;
  --teal-strong: #084a59;
  --teal-soft: #d8ecef;
  --play: #1f8a70;
  --rest: #e0a43a;
  --night: #3d4f8a;
  --on-teal: #ffffff;
  --radius: 14px;
  --shadow: 0 1px 2px rgb(10 40 48 / 6%), 0 8px 24px rgb(10 40 48 / 8%);
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0c1719;
    --surface: #132225;
    --surface-2: #182c30;
    --text: #e6eff0;
    --muted: #9fb3b7;
    --line: #26393d;
    --teal: #3fb0c4;
    --teal-strong: #6cc6d6;
    --teal-soft: #173a41;
    --play: #3cbf98;
    --rest: #f0b54e;
    --night: #8a9be0;
    --on-teal: #06262d;
    --shadow: 0 1px 2px rgb(0 0 0 / 30%), 0 8px 24px rgb(0 0 0 / 30%);
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

a { color: var(--teal); text-underline-offset: 3px; }
a:hover { color: var(--teal-strong); }

img { max-width: 100%; height: auto; }

h1, h2, h3 { line-height: 1.2; letter-spacing: -0.01em; margin: 0 0 0.5em; }
h1 { font-size: clamp(2rem, 5vw, 3.1rem); }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.1rem); }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 760px; }

.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 16px; background: var(--surface); padding: 8px 12px; z-index: 10; }

/* Header and footer */
.site-header { background: var(--surface); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 68px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 1.2rem; color: var(--text); text-decoration: none; }
.brand img { width: 36px; height: 36px; border-radius: 9px; }
.nav { display: flex; gap: 4px 18px; flex-wrap: wrap; align-items: center; }
.nav a { color: var(--muted); text-decoration: none; font-weight: 500; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--text); }
.nav .btn-primary, .nav .btn-primary:hover { color: var(--on-teal); padding: 8px 18px; }

.site-footer { border-top: 1px solid var(--line); margin-top: 72px; padding: 32px 0 48px; color: var(--muted); font-size: 0.92rem; }
.site-footer .wrap { display: flex; justify-content: space-between; gap: 16px 32px; flex-wrap: wrap; }
.site-footer nav { display: flex; gap: 8px 20px; flex-wrap: wrap; }
.site-footer a { color: var(--muted); }

/* Buttons */
.btn {
  display: inline-block; padding: 12px 22px; border-radius: 999px; font-weight: 600;
  text-decoration: none; border: 2px solid var(--teal); line-height: 1.3;
}
.btn-primary { background: var(--teal); color: var(--on-teal); }
.btn-primary:hover { background: var(--teal-strong); border-color: var(--teal-strong); color: var(--on-teal); }
.btn-ghost { color: var(--teal); background: transparent; }
.btn-row { display: flex; gap: 12px; flex-wrap: wrap; margin: 24px 0 12px; }
.fine { color: var(--muted); font-size: 0.9rem; }

/* Hero */
.hero { padding: 64px 0 40px; }
.hero .wrap { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: center; }
.hero .lead { font-size: 1.2rem; color: var(--muted); max-width: 34em; }
.eyebrow { color: var(--teal); font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; font-size: 0.8rem; margin-bottom: 12px; }

/* The break screen, drawn in CSS: what a child sees during a break. */
.break-card {
  background: linear-gradient(160deg, #0f6b7d, #073f4c); color: #fff; border-radius: 20px;
  padding: 32px 28px; box-shadow: var(--shadow); text-align: center; position: relative;
}
.break-card .ring {
  width: 150px; height: 150px; margin: 4px auto 20px; border-radius: 50%;
  background: conic-gradient(#f0b54e 0 70%, rgb(255 255 255 / 15%) 70% 100%);
  display: grid; place-items: center;
}
.break-card .ring span {
  width: 124px; height: 124px; border-radius: 50%; background: #0a5262;
  display: grid; place-items: center; font-size: 1.9rem; font-weight: 700; font-variant-numeric: tabular-nums;
}
.break-card h3 { font-size: 1.5rem; margin-bottom: 6px; }
.break-card p { color: rgb(255 255 255 / 82%); margin: 0; }
.break-card .tag { position: absolute; top: 14px; left: 16px; font-size: 0.75rem; opacity: 0.7; }

/* Sections */
section { padding: 48px 0; }
.section-intro { color: var(--muted); max-width: 40em; font-size: 1.08rem; }
.alt { background: var(--surface-2); }

/* The "pace" timeline: play, break, play, bedtime. */
.timeline { margin: 28px 0 8px; }
.timeline-bar { display: flex; height: 54px; border-radius: 12px; overflow: hidden; box-shadow: var(--shadow); }
.timeline-bar div { display: grid; place-items: center; color: #fff; font-weight: 600; font-size: 0.9rem; padding: 0 6px; text-align: center; line-height: 1.2; }
.tl-play { background: var(--play); }
.tl-rest { background: var(--rest); color: #3a2800 !important; }
.tl-night { background: var(--night); }
.timeline-legend { display: flex; justify-content: space-between; color: var(--muted); font-size: 0.85rem; margin-top: 8px; }

.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 28px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.card h3 { margin-bottom: 8px; }
.card p { color: var(--muted); margin: 0; }
.card .icon { width: 40px; height: 40px; border-radius: 10px; background: var(--teal-soft); color: var(--teal); display: grid; place-items: center; margin-bottom: 14px; }
.card .icon svg { width: 22px; height: 22px; }

.steps { counter-reset: step; list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 16px; grid-template-columns: repeat(3, 1fr); }
.steps li { counter-increment: step; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.steps li::before {
  content: counter(step); display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%;
  background: var(--teal); color: var(--on-teal); font-weight: 700; margin-bottom: 12px;
}
.steps strong { display: block; margin-bottom: 4px; }
.steps span { color: var(--muted); }

.checks { list-style: none; padding: 0; margin: 0; }
.checks li { padding-left: 30px; position: relative; margin-bottom: 10px; }
.checks li::before {
  content: ""; position: absolute; left: 0; top: 0.35em; width: 18px; height: 18px; border-radius: 50%;
  background: var(--teal-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5 10.5l3 3 7-7' fill='none' stroke='%230b8aa0' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/14px no-repeat;
}

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }

/* Pricing */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 28px; align-items: stretch; }
.plan { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 24px; display: flex; flex-direction: column; }
.plan.featured { border: 2px solid var(--teal); box-shadow: var(--shadow); }
.plan .price { font-size: 2.4rem; font-weight: 700; margin: 4px 0 0; }
.plan .price.tbd { font-size: 1.4rem; margin-top: 10px; }
.plan .price small { font-size: 1rem; font-weight: 500; color: var(--muted); }
.plan .sub { color: var(--muted); margin-bottom: 18px; }
.plan .checks { flex: 1; margin-bottom: 20px; }
.plan .btn { text-align: center; }
.badge { display: inline-block; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; padding: 3px 10px; border-radius: 999px; background: var(--teal-soft); color: var(--teal); margin-bottom: 10px; align-self: flex-start; }
.badge.soon { background: var(--surface-2); color: var(--muted); }
.plan.later { opacity: 0.85; }

/* FAQ */
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 16px 20px; margin-bottom: 12px; }
.faq summary { cursor: pointer; font-weight: 600; }
.faq details p { margin: 12px 0 0; color: var(--muted); }

/* Policy pages */
.doc { padding-top: 48px; }
.doc h2 { font-size: 1.35rem; margin-top: 2em; }
.doc li { margin-bottom: 6px; }
.doc .updated { color: var(--muted); }
.callout { background: var(--teal-soft); border-radius: 12px; padding: 16px 20px; margin: 20px 0; }

table.simple { border-collapse: collapse; width: 100%; margin: 12px 0 20px; font-size: 0.95rem; }
table.simple th, table.simple td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
table.simple th { color: var(--muted); font-weight: 600; }
.table-scroll { overflow-x: auto; }

@media (max-width: 860px) {
  .hero .wrap, .split { grid-template-columns: 1fr; gap: 32px; }
  .grid, .plans, .steps { grid-template-columns: 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
  .hero { padding-top: 40px; }
  .timeline-bar div { font-size: 0.75rem; }
}

@media (max-width: 520px) {
  .wrap { padding: 0 16px; }
  .timeline-bar { height: 64px; }
}
