/* Website register: a parent reading on a phone in a bright living room.
   Preserve Viddie's rounded system type and use its light, tactile palette. */
:root {
  color-scheme: light;
  --ink: oklch(0.306 0.039 213);
  --teal: oklch(0.43 0.057 199);
  --mint: oklch(0.778 0.077 176);
  --cream: oklch(0.917 0.071 90);
  --yellow: oklch(0.857 0.138 80);
  --paper: oklch(0.958 0.015 125);
  --line: oklch(0.79 0.032 168);
  font-family: ui-rounded, "SF Pro Rounded", "Arial Rounded MT Bold", system-ui, sans-serif;
  color: var(--ink);
  background: var(--paper);
  font-synthesis: none;
  -webkit-text-size-adjust: 100%;
}
* { box-sizing: border-box; }
body { margin: 0; font-size: 1.0625rem; line-height: 1.65; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-underline-offset: 0.25em; }
a:hover { text-decoration-thickness: 2px; }
a:focus-visible, summary:focus-visible { outline: 3px solid var(--teal); outline-offset: 6px; border-radius: 4px; }
::selection { color: var(--ink); background: var(--yellow); }
.wrap { width: min(100% - 7rem, 1240px); margin-inline: auto; }
.skip-link { position: absolute; left: 1rem; top: -10rem; z-index: 5; padding: 0.75rem 1rem; background: var(--yellow); }
.skip-link:focus { top: 1rem; }
.site-header { min-height: 108px; display: flex; align-items: center; justify-content: space-between; gap: 2rem; }
.wordmark { display: inline-flex; gap: 0.6rem; align-items: center; text-decoration: none; }
.wordmark span { font-size: 2.4rem; font-weight: 850; letter-spacing: -0.075em; line-height: 1; }
nav { display: flex; flex-wrap: wrap; gap: 2rem; font-size: 0.95rem; font-weight: 650; }
nav a { padding-block: 0.65rem; text-decoration: none; }
nav a:hover { text-decoration: underline; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { line-height: 1.08; font-weight: 800; text-wrap: balance; }
h1 { font-size: clamp(3.5rem, 5.5vw, 5.5rem); letter-spacing: -0.055em; }
h1 span { color: var(--yellow); }
h2 { font-size: clamp(2.4rem, 3.8vw, 3.8rem); letter-spacing: -0.045em; }
h3 { font-size: 1.4rem; line-height: 1.3; letter-spacing: -0.02em; }
.hero { background: var(--ink); color: var(--paper); overflow: hidden; }
.hero-inner { display: grid; grid-template-columns: 0.95fr 1.05fr; align-items: center; gap: clamp(2rem, 5vw, 5rem); padding-block: clamp(4rem, 7vw, 7rem); }
.intro { max-width: 39ch; margin-top: 1.6rem; font-size: 1.125rem; line-height: 1.7; }
.app-store-badge { display: inline-block; margin-top: 2rem; padding: 15px; margin-left: -15px; }
.app-store-badge img { width: 180px; height: auto; }
.hero a:focus-visible { outline-color: var(--mint); }
.app-preview { width: 100%; min-width: 0; padding: 10px; background: var(--teal); border: 1px solid var(--mint); border-radius: 24px; }
.app-preview img { width: 100%; border-radius: 14px; }
.family-section { padding-block: clamp(4.5rem, 8vw, 8rem); display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2.5rem, 8vw, 8rem); }
.section-intro > p:last-child { margin-top: 1.6rem; max-width: 37ch; }
.feature-list { display: grid; gap: 2rem; align-content: center; }
.feature-list article { display: flex; gap: 1.5rem; }
.feature-symbol { flex: 0 0 32px; width: 32px; height: 36px; font-family: system-ui, sans-serif; font-size: 2.2rem; line-height: 1; color: var(--teal); }
.feature-symbol.heart { font-size: 2.5rem; }
.feature-list p { margin-top: 0.6rem; max-width: 43ch; }
.setup-section { background: var(--mint); }
.setup-inner { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(3rem, 8vw, 8rem); padding-block: clamp(3.5rem, 6vw, 6rem); }
.setup-heading img { margin-bottom: 1.5rem; }
.setup-steps { list-style: none; counter-reset: steps; padding: 0; margin: 0; }
.setup-steps li { position: relative; padding: 0 0 2rem 3.8rem; counter-increment: steps; }
.setup-steps li:last-child { padding-bottom: 0; }
.setup-steps li::before { content: counter(steps); position: absolute; left: 0; top: -0.25rem; width: 2.5rem; height: 2.5rem; border: 1.5px solid var(--teal); border-radius: 50%; display: grid; place-items: center; font-size: 1rem; font-weight: 700; }
.setup-steps p { margin-top: 0.5rem; max-width: 40ch; }
.questions-section { display: grid; grid-template-columns: 1fr 1.2fr; gap: clamp(2rem, 8vw, 8rem); padding-block: clamp(4rem, 8vw, 8rem); }
details { border-bottom: 1px solid var(--line); }
details:first-child { border-top: 1px solid var(--line); }
summary { position: relative; list-style: none; cursor: pointer; padding: 1.3rem 2rem 1.3rem 0; font-size: 1.08rem; font-weight: 700; line-height: 1.5; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; position: absolute; right: 0.2rem; top: 1.2rem; font-size: 1.3rem; font-weight: 400; }
details[open] summary::after { content: "−"; }
details p { padding: 0 1.5rem 1.5rem 0; max-width: 58ch; font-size: 1rem; }
.site-footer { padding-block: 2rem 3rem; display: flex; gap: 2rem; justify-content: space-between; align-items: center; border-top: 1px solid var(--line); }
.site-footer .wordmark span { font-size: 2rem; }
.site-footer > a:last-child { font-size: 0.85rem; }
section[id] { scroll-margin-top: 2rem; }
.policy { max-width: 74ch; padding-block: clamp(2rem, 5vw, 5rem) 5rem; overflow-wrap: break-word; }
.policy h1 { font-size: clamp(2.8rem, 5vw, 4rem); }
.policy .policy-date { margin-top: 1rem; color: var(--teal); font-size: 0.95rem; }
.policy h2 { margin-top: 2.5rem; font-size: 1.8rem; letter-spacing: -0.025em; }
.policy h3 { margin-top: 1.8rem; }
.policy h4 { margin: 1.5rem 0 0; font-size: 1.1rem; }
.policy p, .policy ul { margin-top: 1rem; }
.policy ul { padding-left: 1.4rem; }
.policy li + li { margin-top: 0.6rem; }
@media (max-width: 1000px) {
  .wrap { width: min(100% - 4rem, 1240px); }
  .hero-inner { gap: 2.5rem; }
  h1 { font-size: clamp(3rem, 6vw, 4.5rem); }
}
@media (max-width: 740px) {
  .wrap { width: calc(100% - 3rem); }
  .site-header { min-height: 88px; gap: 1rem; }
  .site-header .wordmark img { width: 40px; }
  .wordmark span { font-size: 2rem; }
  nav { gap: 1rem; font-size: 0.8rem; }
  .hero-inner { grid-template-columns: 1fr; padding-block: 3.5rem; gap: 2.5rem; }
  h1 { font-size: clamp(3.2rem, 10vw, 4.7rem); }
  .intro { max-width: 45ch; }
  .family-section, .setup-inner, .questions-section { grid-template-columns: 1fr; gap: 2.5rem; }
  .feature-list { gap: 1.8rem; }
  .section-intro > p:last-child { max-width: 49ch; }
  .setup-heading { display: flex; align-items: center; gap: 1.5rem; }
  .setup-heading img { width: 64px; margin: 0; }
  .setup-heading h2 { font-size: 2.3rem; }
  .site-footer { flex-wrap: wrap; gap: 1.2rem; }
  .site-footer > a:last-child { margin-left: auto; }
}
@media (max-width: 380px) {
  .wrap { width: calc(100% - 2rem); }
  .site-header { align-items: flex-start; padding-block: 1rem; }
  nav { flex-direction: column; gap: 0; }
  nav a { padding-block: 0.2rem; }
  h1 { font-size: 3rem; }
  .setup-heading { align-items: flex-start; }
  .setup-heading img { width: 44px; }
}
