/* DrillDay website.
   Layout: one navy band for the header and hero, then white for the rest of the page.
   Each section uses a different structure: numbered rows, a two-by-two grid,
   a split with a list, a single statement column, and a short contact block. */
@font-face {
  font-family: "Sora";
  src: url("/fonts/sora-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "DM Sans";
  src: url("/fonts/dm-sans-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 1000;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: light;
  /* brand, from the D-check logo */
  --navy: #071d49;
  --navy-2: #0d2a63;
  --ink: #0b1220;
  --lime: #39df18;
  --green: #3cb44b;
  --green-text: #15803d;
  /* activities, the same colors as the app */
  --training: #f97316;
  --workouts: #dc2626;
  --reading: #2563eb;
  --math: #7c3aed;
  --streak-a: #facc15;
  --streak-b: #f97316;
  --streak-c: #dc2626;
  /* neutrals, tinted toward the navy */
  --page: #ffffff;
  --rule: #e2e7ef;
  --text: #111827;
  --muted: #4b5568;
  --on-navy: #ffffff;
  --on-navy-muted: #c0cae0;
  /* type */
  --head: "Sora", "Segoe UI", Arial, sans-serif;
  --body: "DM Sans", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--page);
  color: var(--text);
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.6;
}
img { max-width: 100%; height: auto; }
a { color: var(--navy); text-underline-offset: 3px; }
a:hover { color: var(--green-text); }
:focus-visible { outline: 3px solid var(--lime); outline-offset: 3px; border-radius: 4px; }
p { margin: 0; }

.wrap {
  max-width: 1160px;
  margin: 0 auto;
  padding-left: max(20px, env(safe-area-inset-left, 0px));
  padding-right: max(20px, env(safe-area-inset-right, 0px));
}

h1, h2, h3 {
  font-family: var(--head);
  font-weight: 700;
  line-height: 1.15;
  text-wrap: balance;
  margin: 0;
}
h1 { font-size: clamp(3.25rem, 8.2vw, 6.75rem); font-weight: 800; line-height: 1.1; letter-spacing: -0.05em; }
h2 { font-size: clamp(2.1rem, 4.4vw, 3.4rem); font-weight: 750; line-height: 1.12; letter-spacing: -0.035em; }
h3 { font-size: 1.25rem; font-weight: 650; line-height: 1.3; letter-spacing: -0.015em; }

.eyebrow {
  font-family: var(--body);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--green-text);
}
.sub { color: var(--muted); font-size: 1.2rem; line-height: 1.5; max-width: 40em; }

.icon { width: 24px; height: 24px; flex: none; fill: currentColor; }

/* ---------- header and hero: the only colored band ---------- */
.top { background: var(--navy); color: var(--on-navy); }
.site-head .wrap {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding-block: 20px; flex-wrap: wrap;
}
.brand {
  display: inline-flex; align-items: center; gap: 10px;
  color: var(--on-navy); text-decoration: none;
  font-family: var(--head); font-weight: 800; font-size: 1.45rem; letter-spacing: -0.04em;
}
.brand:hover { color: var(--on-navy); }
.brand svg { width: 32px; height: 34px; flex: none; }
.site-nav { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.site-nav a { color: var(--on-navy-muted); text-decoration: none; font-weight: 500; font-size: 0.95rem; }
.site-nav a:hover { color: var(--on-navy); }
.pill {
  display: inline-block; padding: 6px 12px; border-radius: 999px;
  border: 1.5px solid var(--lime); color: var(--lime);
  font-weight: 700; font-size: 0.75rem; letter-spacing: 0.1em; text-transform: uppercase; white-space: nowrap;
}

.hero .wrap {
  display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.7fr);
  gap: 48px; align-items: center; padding-block: 40px 88px;
}
.hero-copy { display: grid; gap: 24px; min-width: 0; }
.hero .eyebrow { color: var(--lime); }
.hero h1 .hit { color: var(--lime); }
.hero .sub { color: var(--on-navy-muted); font-size: 1.25rem; max-width: 32em; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 0; list-style: none; }
.chips li {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 12px; border-radius: 999px; background: var(--navy-2);
  font-size: 0.9rem; color: var(--on-navy);
}
.chips li::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--dot); }
.actions { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.btn {
  display: inline-flex; align-items: center; gap: 10px; min-height: 50px; padding: 0 22px;
  border-radius: 10px; font-weight: 700; text-decoration: none; font-size: 1rem;
}
.btn .icon { width: 20px; height: 20px; }
.btn-lime { background: var(--lime); color: var(--ink); }
.btn-lime:hover { color: var(--ink); filter: brightness(0.95); }
.btn-ghost { border: 1.5px solid rgba(255, 255, 255, 0.35); color: var(--on-navy); }
.btn-ghost:hover { color: var(--on-navy); border-color: var(--on-navy); }
.btn-navy { background: var(--navy); color: var(--on-navy); }
.btn-navy:hover { color: var(--on-navy); background: var(--navy-2); }
.when { color: var(--on-navy-muted); font-size: 0.95rem; }

/* ---------- sample Today screen ---------- */
.phone-wrap { display: grid; justify-items: center; gap: 12px; min-width: 0; margin: 0; }
.phone {
  width: min(100%, 320px);
  border-radius: 38px; padding: 12px;
  background: #02102b;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.35), inset 0 0 0 1.5px rgba(255, 255, 255, 0.12);
}
.screen {
  border-radius: 28px; background: var(--page); color: var(--text);
  padding: 22px 18px 18px; display: grid; gap: 14px;
  font-size: 0.9rem; line-height: 1.35;
}
.screen-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.screen-top h3 { font-size: 1.45rem; font-weight: 750; letter-spacing: -0.03em; }
.screen-top .who { color: var(--muted); font-size: 0.8rem; }
.streak {
  display: inline-flex; align-items: center; padding: 5px 10px; border-radius: 999px;
  background: linear-gradient(90deg, var(--streak-a), var(--streak-b), var(--streak-c));
  color: var(--ink); font-weight: 800; font-size: 0.76rem; white-space: nowrap;
}
.points { display: flex; align-items: baseline; gap: 8px; }
.points b { font-family: var(--head); font-weight: 800; font-size: 2.2rem; letter-spacing: -0.04em; font-variant-numeric: tabular-nums; }
.points span { color: var(--muted); font-size: 0.85rem; }
.rings { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.ring { display: grid; justify-items: center; gap: 6px; text-align: center; }
.ring i {
  width: 62px; height: 62px; border-radius: 50%;
  background: conic-gradient(var(--c) calc(var(--pct) * 1%), #eeeeee 0);
  display: grid; place-items: center;
}
.ring i::after {
  content: attr(data-v); width: 46px; height: 46px; border-radius: 50%; background: var(--page);
  display: grid; place-items: center; font-style: normal; font-weight: 800; font-size: 0.85rem;
  font-variant-numeric: tabular-nums; color: var(--text);
}
.ring small { font-size: 0.75rem; color: var(--muted); font-weight: 600; }
.card { border: 1px solid var(--rule); border-radius: 14px; padding: 12px 14px; display: grid; gap: 8px; }
.card-row { display: grid; gap: 2px; }
.card-row b { font-weight: 700; }
.card-row span { color: var(--muted); font-size: 0.78rem; font-variant-numeric: tabular-nums; white-space: nowrap; }
.bar { height: 9px; border-radius: 99px; background: #f3f4f6; overflow: hidden; }
.bar i { display: block; height: 100%; width: var(--w); border-radius: 99px; background: linear-gradient(90deg, var(--streak-a), var(--streak-b)); }
.blocks { display: grid; grid-template-columns: repeat(10, minmax(0, 1fr)); gap: 3px; }
.blocks i { height: 12px; border-radius: 3px; background: #eeeeee; }
.blocks i.on { background: var(--green); }
.sample-note { color: var(--on-navy-muted); font-size: 0.85rem; text-align: center; }

/* ---------- sections on white ---------- */
.section { padding-block: 72px; }
.section.wide { padding-block: 120px; }
.section + .section { border-top: 1px solid var(--rule); }
.head { display: grid; gap: 16px; margin-bottom: 56px; max-width: 44em; }

/* How it works: numbered rows, one column */
.steps { list-style: none; margin: 0; padding: 0; counter-reset: step; display: grid; }
.steps li {
  counter-increment: step;
  display: grid; grid-template-columns: 120px 56px minmax(0, 1fr); gap: 24px; align-items: start;
  padding-block: 32px; border-top: 1px solid var(--rule);
}
.steps li:last-child { border-bottom: 1px solid var(--rule); }
.steps li::before {
  content: counter(step, decimal-leading-zero);
  font-family: var(--head); font-weight: 800; font-size: 3.6rem; line-height: 1; letter-spacing: -0.05em;
  color: var(--navy);
}
.step-icon { width: 56px; height: 56px; border-radius: 16px; background: var(--navy); color: var(--lime); display: grid; place-items: center; }
.step-icon .icon { width: 34px; height: 34px; }
.steps div { display: grid; gap: 8px; max-width: 38em; min-width: 0; }
.steps h3 { font-size: 1.55rem; }
.steps p { color: var(--muted); font-size: 1.1rem; }

/* Inside the app: two by two grid, no boxes */
.grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 56px 64px; }
.feature { display: grid; gap: 14px; align-content: start; min-width: 0; }
.feature-icon { width: 52px; height: 52px; border-radius: 14px; background: var(--c); color: #ffffff; display: grid; place-items: center; }
.feature-icon .icon { width: 32px; height: 32px; }
.feature p { color: var(--muted); max-width: 30em; }
.feature .meta { font-size: 0.9rem; font-weight: 600; color: var(--text); }

/* For parents: split, heading left, list right */
.split { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 64px; align-items: center; }
.split .head { margin-bottom: 0; }
.rules { list-style: none; margin: 0; padding: 0; display: grid; }
.rules li { display: grid; grid-template-columns: 26px minmax(0, 1fr); gap: 16px; padding-block: 20px; border-bottom: 1px solid var(--rule); }
.rules li:first-child { padding-top: 0; }
.rules .icon { color: var(--green-text); width: 26px; height: 26px; margin-top: 1px; }
.rules b { font-family: var(--head); font-weight: 650; font-size: 1.1rem; letter-spacing: -0.01em; display: block; margin-bottom: 4px; }
.rules p { color: var(--muted); }

/* Price: one statement column */
.statement { display: grid; gap: 22px; max-width: 46em; }
.facts { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 12px 28px; }
.facts li { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; }
.facts .icon { color: var(--green-text); width: 24px; height: 24px; }
.statement p:not(.eyebrow) { color: var(--muted); font-size: 1.1rem; max-width: 38em; }

/* Price and questions: two columns side by side */
.duo { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr); gap: 72px; align-items: start; }
.facts { flex-direction: column; gap: 14px; }
.contact {
  display: grid; gap: 14px; justify-items: start; align-content: start; min-width: 0;
  padding-left: 40px; border-left: 4px solid var(--lime);
}
.contact h3 { font-size: 1.6rem; letter-spacing: -0.03em; }
.contact p:not(.eyebrow) { color: var(--muted); }
.email {
  font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  font-size: 0.98rem; padding: 12px 14px; border-radius: 10px;
  border: 1px solid var(--rule); user-select: all; max-width: 100%; overflow-wrap: anywhere;
}

/* ---------- footer ---------- */
.site-foot { border-top: 1px solid var(--rule); padding-block: 32px 40px; font-size: 0.88rem; color: var(--muted); }
.site-foot .wrap { display: grid; gap: 10px; }
.foot-row { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; align-items: center; }
.foot-row nav { display: flex; gap: 18px; flex-wrap: wrap; }
.foot-row nav a { color: var(--muted); }
.follow { display: flex; gap: 6px 18px; flex-wrap: wrap; align-items: center; }
.follow span { font-weight: 600; color: var(--ink); }
.follow a { color: var(--muted); }

/* ---------- simple pages (privacy, join, 404) ---------- */
.doc .wrap { max-width: 760px; padding-block: 56px 80px; }
.doc .actions { margin-top: 28px; }
.doc h1 { font-size: clamp(2.4rem, 5.5vw, 3.4rem); letter-spacing: -0.04em; margin: 8px 0 6px; }
.doc h2 { font-size: 1.35rem; margin: 36px 0 10px; letter-spacing: -0.015em; line-height: 1.3; }
.doc p + p { margin-top: 12px; }
.doc .muted { color: var(--muted); }
.doc address { font-style: normal; line-height: 1.7; }

/* ---------- narrow screens ---------- */
@media (max-width: 960px) {
  .hero .wrap { grid-template-columns: minmax(0, 1fr); gap: 48px; padding-block: 24px 72px; }
  .split { grid-template-columns: minmax(0, 1fr); gap: 36px; }
  .duo { grid-template-columns: minmax(0, 1fr); gap: 48px; }
  .contact { padding-left: 24px; }
}
@media (max-width: 720px) {
  .site-nav .navlink { display: none; }
  .section { padding-block: 56px; }
  .section.wide { padding-block: 80px; }
  .grid2 { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .steps li { grid-template-columns: 56px minmax(0, 1fr); gap: 14px 18px; padding-block: 26px; }
  .steps li::before { grid-column: 1 / -1; font-size: 2.6rem; }
  .head { margin-bottom: 40px; }
}
