/* ringmasterkids.com: same tokens as the app (src/styles/tokens.css). Fonts are self-hosted: no third-party requests. */
@font-face { font-family: 'Fredoka'; font-weight: 600; font-display: swap; src: url('fonts/fredoka-latin-600-normal.woff2') format('woff2'); }
@font-face { font-family: 'Fredoka'; font-weight: 700; font-display: swap; src: url('fonts/fredoka-latin-700-normal.woff2') format('woff2'); }
@font-face { font-family: 'Nunito'; font-weight: 400; font-display: swap; src: url('fonts/nunito-latin-400-normal.woff2') format('woff2'); }
@font-face { font-family: 'Nunito'; font-weight: 700; font-display: swap; src: url('fonts/nunito-latin-700-normal.woff2') format('woff2'); }
@font-face { font-family: 'Nunito'; font-weight: 800; font-display: swap; src: url('fonts/nunito-latin-800-normal.woff2') format('woff2'); }

:root {
  --ink: #2B1A3D;
  --primary: #FF8B3D;
  --lime: #C8F55A;
  --ground: #F3F6EE;
  --ground-dot: #DCE4D2;
  --peach: #FFE6D2;
  --surface: #FFFFFF;
  --muted: #6A5A78;
  --muted3: #4A3A5C;
  --alert: #FF9A8A;
  --kid-mint: #6BE3C8;  --kid-mint-tint: #D8F8EF;
  --kid-sunny: #FFD34D; --kid-sunny-tint: #FFF3C4;
  --kid-lilac: #B9A2FF; --kid-lilac-tint: #ECE4FF;
  --border: 2px solid var(--ink);
  --sticker: 4px 4px 0 var(--ink);
  --sticker-sm: 2px 2px 0 var(--ink);
  --radius: 22px;
  --max: 1080px;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: 'Nunito', system-ui, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.55;
  color: var(--ink);
  background-color: var(--ground);
  background-image: radial-gradient(var(--ground-dot) 1.2px, transparent 1.2px);
  background-size: 18px 18px;
}
h1, h2, h3 { font-family: 'Fredoka', system-ui, sans-serif; font-weight: 700; line-height: 1.12; margin: 0; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.3rem, 6vw, 3.9rem); }
h2 { font-size: clamp(1.6rem, 3.6vw, 2.3rem); }
h3 { font-size: 1.3rem; font-weight: 600; }
p { margin: 0; }
a { color: var(--ink); font-weight: 800; text-underline-offset: 3px; }
a:focus-visible, button:focus-visible { outline: 3px solid var(--primary); outline-offset: 3px; border-radius: 8px; }
img, svg { display: block; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--surface); padding: 8px 12px; border: var(--border); border-radius: 12px; z-index: 10; }
.skip:focus { left: 8px; }

/* Header + footer */
.top { padding: 18px 0; }
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.brand { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; font-family: 'Fredoka', sans-serif; font-weight: 700; font-size: 1.55rem; letter-spacing: -0.02em; min-height: 44px; }
.nav { display: flex; gap: 4px 18px; flex-wrap: wrap; }
.nav a { text-decoration: none; min-height: 44px; display: inline-flex; align-items: center; }
.nav a[aria-current="page"] { text-decoration: underline; text-decoration-thickness: 3px; text-decoration-color: var(--primary); }
.foot { margin-top: 72px; padding: 28px 0 40px; border-top: 2px dashed var(--ground-dot); }
.foot .wrap { display: flex; justify-content: space-between; gap: 12px 24px; flex-wrap: wrap; align-items: center; }
.foot p { color: var(--muted3); font-weight: 700; font-size: 0.95rem; }

/* Bits */
.card { background: var(--surface); border: var(--border); border-radius: var(--radius); box-shadow: var(--sticker); padding: 24px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 52px; padding: 0 24px; border-radius: 999px; border: var(--border);
  background: var(--primary); color: var(--ink); box-shadow: var(--sticker);
  font: 800 1.05rem 'Nunito', sans-serif; text-decoration: none; cursor: pointer;
}
.btn:active { transform: translate(3px, 3px); box-shadow: none; }
.btn--plain { background: var(--surface); }
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; border: var(--border); background: var(--lime); font-weight: 800; font-size: 0.85rem; }
.muted { color: var(--muted3); }
.eyebrow { font-weight: 800; text-transform: uppercase; letter-spacing: 0.08em; font-size: 0.82rem; color: var(--muted3); }

/* Home */
.hero { padding-top: 36px; padding-bottom: 24px; display: grid; gap: 40px; grid-template-columns: 1.1fr 0.9fr; align-items: center; }
.hero .lede { font-size: 1.25rem; font-weight: 700; color: var(--muted3); max-width: 34ch; margin-top: 16px; }
.hero .ctas { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; margin-top: 26px; }
.phone {
  justify-self: center; width: min(320px, 100%); background: var(--ground); border: var(--border); border-radius: 40px;
  box-shadow: 8px 8px 0 var(--ink); padding: 22px 16px; display: grid; gap: 10px;
}
.phone .date { font-weight: 800; font-size: 0.72rem; letter-spacing: 0.06em; color: var(--muted); }
.phone .hi { font-family: 'Fredoka', sans-serif; font-weight: 700; font-size: 1.6rem; line-height: 1.1; }
.phone .ink { background: var(--ink); color: var(--surface); border-radius: 18px; padding: 14px; font-size: 0.86rem; line-height: 1.45; }
.phone .ink b { color: var(--lime); font-family: 'Fredoka', sans-serif; font-size: 1rem; display: block; margin-bottom: 4px; }
.phone .row { display: flex; gap: 8px; align-items: center; border-radius: 14px; padding: 8px 10px; font-size: 0.84rem; font-weight: 700; border-left: 6px solid; }
.phone .need { background: var(--peach); border: var(--border); border-radius: 18px; padding: 12px; font-size: 0.84rem; font-weight: 800; display: grid; gap: 6px; }
.phone .need span { background: var(--surface); border: var(--border); border-radius: 12px; padding: 6px 10px; }

.section { padding: 56px 0 0; }
.section > .wrap > h2 { margin-bottom: 8px; }
.section > .wrap > .sub { font-size: 1.15rem; font-weight: 700; color: var(--muted3); max-width: 52ch; margin-bottom: 28px; }
.grid { display: grid; gap: 20px; grid-template-columns: repeat(3, 1fr); }
.feature { display: grid; gap: 10px; align-content: start; }
.feature .dot { width: 46px; height: 46px; border-radius: 14px; border: var(--border); display: grid; place-items: center; font-size: 1.4rem; }
.feature p { color: var(--muted3); font-weight: 600; }
.soon { opacity: 0.92; }
.soon .pill { background: var(--peach); }
.ways { display: grid; gap: 14px; grid-template-columns: repeat(2, 1fr); }
.way { display: flex; gap: 14px; align-items: flex-start; background: var(--surface); border: var(--border); border-radius: 18px; padding: 16px 18px; box-shadow: var(--sticker-sm); }
.way b { display: block; font-size: 1.05rem; }
.way span.n { flex: 0 0 34px; height: 34px; border-radius: 50%; border: var(--border); display: grid; place-items: center; font-weight: 800; background: var(--lime); }
.promise { background: var(--ink); color: var(--surface); border-radius: 28px; padding: 36px; display: grid; gap: 18px; grid-template-columns: 1fr 1fr; align-items: center; box-shadow: 6px 6px 0 var(--primary); }
.promise h2 { color: var(--lime); }
.promise ul { margin: 0; padding-left: 20px; display: grid; gap: 8px; font-weight: 700; }
.promise a { color: var(--lime); }

/* Long-form pages (privacy, terms, support) */
.doc { max-width: 760px; }
.doc .card { padding: clamp(20px, 4vw, 40px); display: grid; gap: 14px; }
.doc h1 { font-size: clamp(2rem, 5vw, 2.8rem); }
.doc h2 { font-size: 1.45rem; margin-top: 14px; }
.doc ul { margin: 0; padding-left: 22px; display: grid; gap: 6px; }
.doc .updated { font-weight: 800; color: var(--muted3); }
.doc table { border-collapse: collapse; width: 100%; font-size: 0.97rem; }
.doc th, .doc td { text-align: left; vertical-align: top; padding: 8px 10px; border-bottom: 2px dashed var(--ground-dot); }
.doc th { font-weight: 800; }
.faq details { border: var(--border); border-radius: 16px; padding: 4px 16px; background: var(--surface); }
.faq details + details { margin-top: 10px; }
.faq summary { font-weight: 800; cursor: pointer; min-height: 44px; display: flex; align-items: center; }
.faq details p, .faq details ol, .faq details ul { margin: 0 0 12px; }

@media (max-width: 860px) {
  .hero, .promise { grid-template-columns: 1fr; }
  .grid { grid-template-columns: 1fr 1fr; }
  .ways { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .grid { grid-template-columns: 1fr; }
  .promise { padding: 26px 22px; }
  .card { padding: 20px; }
}
@media (prefers-reduced-motion: reduce) { .btn:active { transform: none; } }
