/* parentproof.com — the marketing site.
 *
 * SAME TOKENS AS THE APP, ON PURPOSE. --glow, --ink, --cloud, --coral, --mint
 * and --sky are lifted verbatim from platform/public/app.css. A visitor who
 * reads this site and then signs in at platform.parentproof.com must not feel
 * they have arrived at a different company. If a token changes there, change it
 * here in the same commit.
 *
 * SYSTEM FONTS, no webfont, no CDN, no analytics script, nothing third-party.
 * The app makes an argument about staying small and touching nothing; a
 * marketing site that opens with 300KB of font bytes and a tracker contradicts
 * it on the first page a parent ever sees. This stylesheet is the whole design.
 *
 * NO INLINE STYLE ANYWHERE in the pages this serves — same discipline as the
 * app, so the site can move behind the app's `style-src 'self'` CSP without a
 * rewrite.
 */

:root {
  --ink:#16181D; --dusk:#1E2230; --dusk2:#262B3B; --glow:#FFC24B; --coral:#FF6B5E;
  --mint:#4FD1A1; --sky:#6BA8FF; --cloud:#F7F5EF; --haze:#C9CCD6; --line:#313647;
  --bg:#0E0F13;
  --ui: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --maxw: 1080px;
}

/* MEASURED against WCAG AA, not eyeballed. Three tokens here are DARKER than the
 * same-named tokens in platform/public/app.css, and the difference is deliberate:
 * this site puts small bold text (.eyebrow, .yes/.no/.part in tables) directly on
 * --bg, a combination the app never uses. On #EDEAE1 the app's values measure
 *   --glowink #9C6700  4.01:1   --mint #0E7C52  4.34:1   --sky #2C6BD1  4.23:1
 * — all under the 4.5:1 normal-text floor. The values below measure 4.88, 5.22
 * and 4.99. axe-core reported every one of these as a serious violation before
 * the change and none after; see tools/contrast-check.py to re-derive them.
 *
 * Light is the default for a marketing page — a parent arrives from a search
 * result in daylight — and dark follows the OS. Same two-palette structure the
 * app uses, so a screenshot of one drops into the other. */
:root {
  --bg:#EDEAE1; --dusk:#FFFFFF; --dusk2:#F5F2EB; --cloud:#1C1E26; --haze:#565C6B;
  --line:#E0DCD2; --coral:#BC3328; --mint:#0C6E49; --sky:#2560BE; --glow:#F2A93B;
  --glowink:#8A5B00;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg:#0E0F13; --dusk:#1E2230; --dusk2:#262B3B; --cloud:#F7F5EF; --haze:#C9CCD6;
    --line:#313647; --coral:#FF6B5E; --mint:#4FD1A1; --sky:#6BA8FF; --glow:#FFC24B;
    --glowink:#FFC24B;
  }
}

* { 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(--bg); color: var(--cloud);
  font-family: var(--ui); font-size: 17px; line-height: 1.6;
}

.skip {
  position: absolute; left: -9999px; top: 0; background: var(--glow); color: var(--ink);
  padding: 12px 18px; border-radius: 0 0 12px 0; font-weight: 700; z-index: 50;
}
.skip:focus { left: 0; }

a { color: var(--sky); }
a:focus-visible, button:focus-visible, summary:focus-visible {
  outline: 3px solid var(--glow); outline-offset: 2px; border-radius: 6px;
}

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }

/* ------------------------------------------------------------------ site nav */

.nav { border-bottom: 1px solid var(--line); background: var(--dusk); position: relative; }
.nav .wrap { display: flex; align-items: center; gap: 16px; min-height: 68px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: inherit; margin-right: auto; }
.brand img { width: 30px; height: 30px; display: block; }
.brand .wm { font-weight: 800; font-size: 20px; letter-spacing: -.4px; }
.brand .wm b { color: var(--glowink); font-weight: 800; }
.brand .wm small {
  display: block; font-size: 9px; font-weight: 700; letter-spacing: 3px;
  text-transform: uppercase; color: var(--haze); margin-top: -3px;
}

.navlinks { display: flex; gap: 4px; align-items: center; flex-wrap: wrap; }
.navlinks a {
  color: var(--cloud); text-decoration: none; font-weight: 600; font-size: 15px;
  padding: 9px 12px; border-radius: 10px;
}
.navlinks a:hover { background: var(--dusk2); }
.navlinks a[aria-current="page"] { color: var(--glowink); background: var(--dusk2); }

/* The one nav item that is an action rather than a destination. It reuses
 * .btn.solid's exact pair — --glow behind #16181D — because that combination is
 * already measured against AA in both palettes, and inventing a second accent
 * fill here would be a colour nobody has checked. `color` is hard-coded rather
 * than a token for the same reason .btn.solid hard-codes it: the ink has to stay
 * dark when --glow flips to its dark-mode value, or the button turns unreadable
 * in exactly the theme nobody screenshots. */
.navlinks a.navcta {
  background: var(--glow); color: #16181D; font-weight: 700;
}
.navlinks a.navcta:hover { background: var(--glow); filter: brightness(1.06); }
/* aria-current never lands on it — it points off-site — but a specificity
 * accident that made it grey-on-grey would be silent, so pin it. */
.navlinks a.navcta[aria-current="page"] { color: #16181D; background: var(--glow); }

/* The menu button exists only under 820px; above it the links are always shown,
 * so no script is needed to read this site on a laptop. */
.navtoggle { display: none; }

@media (max-width: 820px) {
  .navtoggle {
    display: block; background: transparent; border: 1px solid var(--line);
    color: var(--cloud); font: inherit; font-weight: 600; padding: 8px 14px;
    border-radius: 10px; cursor: pointer; min-height: 44px;
  }
  .navlinks {
    display: none; width: 100%; flex-direction: column; align-items: stretch;
    padding-bottom: 12px; gap: 2px;
  }
  .navlinks.open { display: flex; }
  .navlinks a { padding: 13px 12px; min-height: 48px; display: flex; align-items: center; }
}

/* ------------------------------------------------------------------- buttons */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: inherit; font-weight: 700; text-decoration: none; cursor: pointer;
  padding: 14px 24px; border-radius: 12px; min-height: 50px; border: 1px solid transparent;
}
.btn.solid { background: var(--glow); color: #16181D; }
.btn.solid:hover { filter: brightness(1.06); }
.btn.line { border-color: var(--line); color: var(--cloud); background: var(--dusk); }
.btn.line:hover { background: var(--dusk2); }
.btnrow { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 26px; }

/* --------------------------------------------------------------------- type */

h1, h2, h3 { line-height: 1.2; letter-spacing: -.6px; margin: 0 0 14px; }
h1 { font-size: clamp(34px, 5.4vw, 52px); font-weight: 800; }
h2 { font-size: clamp(26px, 3.4vw, 34px); font-weight: 800; margin-top: 8px; }
h3 { font-size: 19px; font-weight: 700; letter-spacing: -.2px; }
p { margin: 0 0 16px; }
.lede { font-size: clamp(18px, 2.2vw, 21px); color: var(--haze); max-width: 62ch; }
.eyebrow {
  text-transform: uppercase; letter-spacing: 2.4px; font-size: 12px; font-weight: 800;
  color: var(--glowink); margin: 0 0 12px;
}
.small { font-size: 15px; color: var(--haze); }
.tight { max-width: 68ch; }

/* A sentence in a PARENT's voice, quoted back at them. The four of these on the
 * home page are the owner's own words for the reaction a visitor should have,
 * and they have to read as speech rather than as another feature line — so
 * --cloud at full contrast, not --haze, because this is the load-bearing
 * sentence in its card and not a caption under one. */
.said {
  font-size: 18px; font-style: italic; color: var(--cloud);
  border-left: 3px solid var(--glow); padding-left: 16px; margin: 0 0 18px;
}

/* "Not switched on yet". Says a capability is described but not live.
 *
 * It exists because the alternative — leaving the unbuilt half of the AI
 * section looking exactly like the built half — is the specific dishonesty this
 * whole site is written against. --cloud on --dusk2 is the card/body pairing
 * already used throughout, so this adds no colour pair that has not been
 * measured. */
.soon {
  display: inline-block; background: var(--dusk2); color: var(--cloud);
  border: 1px solid var(--line); border-radius: 999px;
  padding: 3px 11px; font-size: 12px; font-weight: 800;
  letter-spacing: 1.4px; text-transform: uppercase;
}

section { padding: 62px 0; border-top: 1px solid var(--line); }
section:first-of-type { border-top: none; }
.hero { padding: 72px 0 66px; }

/* THE PHOTOGRAPH EARNS ITS PLACE ON A PHONE, WHICH THE OLD DRAWING DID NOT.
   The previous hero art was a flat SVG diagram and was hidden below 900px
   because 340px of wireframe pushed the sentence and the button off the fold.
   A real image is the first thing that makes this look like a product rather
   than a document, so on a phone it goes ABOVE the copy at a shallow crop —
   present, and still leaving the headline visible. */
.herogrid { display: grid; gap: 28px; align-items: center; }
/* The text column. Capped independently of the grid so the headline breaks
   where it reads best rather than wherever the column happens to end. */
.herocopy { max-width: 34rem; }
.heroshot { margin: 0; order: -1; }
.heroshot img {
  display: block; width: 100%; height: 220px; object-fit: cover; object-position: 62% 55%;
  border-radius: 18px;
  /* Depth, and it is the cheap kind that survives both themes: a soft ambient
     shadow plus a hairline that stops the image floating on the flat page. */
  box-shadow: 0 24px 60px -28px rgba(22,24,29,.55), 0 2px 10px -4px rgba(22,24,29,.18);
  outline: 1px solid var(--line); outline-offset: -1px;
}
@media (min-width: 900px) {
  .herogrid { grid-template-columns: 1.05fr 1fr; gap: 48px; }
  .heroshot { order: 0; }
  .heroshot img { height: 420px; object-position: 58% 55%; }
}

/* Depth on the cards too. Flat bordered rectangles on a flat page is what made
   this read as a document; a shadow that only appears on hover reads as
   unfinished, so the resting state carries a small one and hover lifts it. */
.card {
  box-shadow: 0 10px 30px -22px rgba(22,24,29,.45);
  transition: transform .18s ease, box-shadow .18s ease;
}
.card:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 44px -24px rgba(22,24,29,.55);
}
.btn { transition: transform .12s ease, filter .12s ease, background-color .12s ease; }
.btn:active { transform: translateY(1px); }

/* A section image, used where a claim is easier shown than described. */
.shot { margin: 26px 0 0; }
.shot img {
  display: block; width: 100%; height: auto; border-radius: 16px;
  box-shadow: 0 20px 50px -30px rgba(22,24,29,.5);
  outline: 1px solid var(--line); outline-offset: -1px;
}
.shot figcaption { font-size: 14px; color: var(--haze); margin-top: 10px; }

/* MOTION IS OPT-OUT, NOT OPT-IN. Anything that moves here is decoration, and a
   reader who has asked their system for less of it gets none. */
@media (prefers-reduced-motion: reduce) {
  .card, .btn { transition: none; }
  .card:hover { transform: none; }
}

/* --------------------------------------------------------------------- cards */

.grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid.two { grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); }
.card {
  background: var(--dusk); border: 1px solid var(--line); border-radius: 16px;
  padding: 24px; break-inside: avoid;
}
.card h3 { margin-bottom: 8px; }
.card p:last-child { margin-bottom: 0; }
.card .small:last-child { margin-bottom: 0; }

/* An honest note. Used wherever the page states a limit rather than a feature —
 * the whole reason this site is credible is that these are not hidden. */
.note {
  border-left: 3px solid var(--glow); background: var(--dusk2);
  padding: 16px 18px; border-radius: 0 12px 12px 0; margin: 22px 0;
}
.note p:last-child { margin-bottom: 0; }
.note.warn { border-left-color: var(--coral); }

/* ---------------------------------------------------------------------- steps */

.steps { list-style: none; counter-reset: s; padding: 0; margin: 26px 0 0; display: grid; gap: 18px; }
.steps li {
  counter-increment: s; display: grid; grid-template-columns: 44px 1fr; gap: 16px;
  align-items: start;
}
.steps li::before {
  content: counter(s); width: 44px; height: 44px; border-radius: 50%;
  background: var(--glow); color: #16181D; font-weight: 800; font-size: 19px;
  display: flex; align-items: center; justify-content: center;
}
.steps h3 { margin-bottom: 4px; }
.steps p:last-child { margin-bottom: 0; }

/* --------------------------------------------------------------------- tables */

.tablewrap { overflow-x: auto; margin: 22px 0; border: 1px solid var(--line); border-radius: 14px; }
table { border-collapse: collapse; width: 100%; font-size: 15px; min-width: 560px; }
th, td { text-align: left; padding: 13px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
thead th { background: var(--dusk2); font-size: 12px; text-transform: uppercase; letter-spacing: 1.4px; }
tbody tr:last-child td { border-bottom: none; }
.yes { color: var(--mint); font-weight: 700; }
.no  { color: var(--coral); font-weight: 700; }
.part { color: var(--glowink); font-weight: 700; }

/* ------------------------------------------------------------------- details */

details {
  border: 1px solid var(--line); border-radius: 14px; background: var(--dusk);
  padding: 0; margin-bottom: 12px;
}
summary {
  cursor: pointer; padding: 18px 22px; font-weight: 700; font-size: 17px;
  list-style: none; display: flex; justify-content: space-between; gap: 16px; align-items: center;
}
summary::-webkit-details-marker { display: none; }
summary::after { content: '+'; font-size: 24px; color: var(--glowink); font-weight: 400; line-height: 1; }
details[open] summary::after { content: '\2212'; }
.faqbody { padding: 0 22px 20px; }
.faqbody p:last-child { margin-bottom: 0; }

/* ----------------------------------------------------------------- waitlist */

.signup { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 20px; max-width: 520px; }
.signup input {
  flex: 1 1 240px; background: var(--bg); border: 1px solid var(--line); border-radius: 12px;
  color: var(--cloud); font: inherit; font-size: 16px; padding: 14px; min-height: 50px;
}
.signup input:focus-visible { outline: 3px solid var(--glow); outline-offset: 1px; }
.formmsg { margin-top: 12px; font-weight: 600; min-height: 1.6em; }
.formmsg.ok { color: var(--mint); }
.formmsg.bad { color: var(--coral); }

/* -------------------------------------------------------------------- footer */

.foot { border-top: 1px solid var(--line); background: var(--dusk); padding: 40px 0 56px; }
.foot .cols { display: grid; gap: 26px; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
/* The column labels are <h2>, not <h3>: 404.html has no <h2> in <main>, so an
 * <h3> here made every page-not-found an axe heading-order violation. Weight and
 * top margin are pinned because the h2 rule above sets 800 and 8px and this is
 * meant to look exactly as it did as an h3. */
.foot h2 {
  font-size: 13px; font-weight: 700; margin-top: 0; text-transform: uppercase;
  letter-spacing: 1.8px; color: var(--haze);
}
.foot ul { list-style: none; padding: 0; margin: 0; }
.foot li { margin-bottom: 8px; }
.foot a { color: var(--cloud); text-decoration: none; font-size: 15px; }
.foot a:hover { text-decoration: underline; }
.legal { margin-top: 34px; padding-top: 22px; border-top: 1px solid var(--line); font-size: 14px; color: var(--haze); }
.legal p { margin: 0 0 6px; }

code { font-family: var(--mono); font-size: .92em; background: var(--dusk2); padding: 2px 6px; border-radius: 6px; }
pre {
  font-family: var(--mono); font-size: 14px; background: var(--dusk2); color: var(--cloud);
  padding: 16px 18px; border-radius: 12px; overflow-x: auto; border: 1px solid var(--line);
}
pre code { background: none; padding: 0; }
hr { border: none; border-top: 1px solid var(--line); margin: 34px 0; }
ul.plain { list-style: none; padding: 0; }
ul.plain li { padding-left: 26px; position: relative; margin-bottom: 10px; }
ul.plain li::before { content: '\2713'; position: absolute; left: 0; color: var(--mint); font-weight: 800; }
ul.plain li.x::before { content: '\2715'; color: var(--coral); }

/* THE PRODUCT, SHOWN. A parental-control site that shows no product is asking
   for trust it has not earned, and this one showed none for its whole first
   day.

   THE WIDE SHOTS GET A WHOLE ROW, and that is the entire reason this rule
   exists. Both of them were first laid out two-up, which put a 1100px-wide
   screenshot of a dense UI into a ~520px column: the type rendered around 7px
   and every label in the dashboard was a grey smudge. A screenshot nobody can
   read is decoration, and decoration is what the site had too much of already.
   Phones are 420px to begin with, so they pair up happily underneath. */
.shotgrid { display: grid; gap: 30px; margin-top: 26px; }
.shotgrid .shot img { width: 100%; height: auto; }
.shotgrid .shot.phone img { max-width: 300px; display: block; margin-inline: auto; }
.shotgrid .shot figcaption { max-width: 68ch; }
@media (min-width: 880px) {
  .shotgrid { grid-template-columns: 1fr 1fr; align-items: start; }
  .shotgrid .shot.wide { grid-column: 1 / -1; }
  .shotgrid .shot.phone figcaption { max-width: 40ch; margin-inline: auto; }
}

/* THE HERO CLIP. Atmosphere, never information — every claim on this page is
   text in the DOM, and the hero reads identically with the clip absent,
   blocked, or still downloading, because hero.jpg is the video's poster and a
   poster is what a <video> shows until something plays it.

   THERE IS NO `autoplay` ATTRIBUTE IN THE MARKUP, deliberately. Playback is
   started by site.js and only when the OS has not asked for reduced motion.
   The attribute cannot be conditional — it is static HTML, and CSS cannot
   pause a video — so gating it in script is the only way the preference is
   actually honoured rather than merely mentioned. If the script never runs,
   the hero is a still photograph, which is a complete hero. */
.heroshot .herovid { width: 100%; height: auto; display: block; border-radius: 14px; }
@media (prefers-reduced-motion: reduce) {
  /* Belt to the script's braces: if anything ever reintroduces autoplay, the
     clip at least stops drawing attention to itself. */
  .heroshot .herovid { animation: none !important; transition: none !important; }
}
