/* framebright.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.framebright.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 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; }

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

/* The illustration is decorative (alt="") and DROPS OUT under 900px rather than
   shrinking: on a phone the hero's job is to get the sentence and the button
   above the fold, and 340px of drawing pushes both below it. */
.herogrid { display: grid; gap: 40px; align-items: center; }
.heroart { display: none; }
@media (min-width: 900px) {
  .herogrid { grid-template-columns: 1fr 460px; }
  .heroart { display: block; width: 100%; height: auto; max-width: 460px; }
}

/* --------------------------------------------------------------------- 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)); }
.foot h3 { font-size: 13px; 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); }
