/* grace.astermind.ai — AsterMind's brand (tailwind.config.ts and src/index.css of astermind.ai): Inter, the dark hero
   (#070b14) with the gold eyebrow and the teal call to action, brand blue #0D91F5 into purple #7B2CBF, white cards on
   #F7FAFC. Mobile first; no external fonts (Inter is served from this host). */

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/fonts/inter-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --bg: #f7fafc;            /* --background 204 45% 98% */
  --fg: #1a1f2e;            /* --foreground, dark navy */
  --card: #ffffff;
  --muted: #4a5568;         /* --muted-foreground */
  --border: #d1d9e3;        /* --border 214 20% 85% */
  --tint: #e6f7fb;          /* --primary-subtle */
  --primary: #0d91f5;       /* brand blue (logo) */
  --primary-ink: #0b72c4;   /* brand blue, darkened for small text on white (4.98:1) */
  --purple: #7b2cbf;        /* --secondary */
  --night: #070b14;         /* the site's dark hero and header */
  --night-2: #0b1220;
  --night-line: #1a2636;
  --gold: #f2d6a0;          /* eyebrow on dark */
  --teal: #5eead4;          /* call to action on dark */
  --teal-hover: #8ff3e2;
  --good: #067a55;          /* 5.35:1 on white */
  --bad: #b42318;           /* 6.57:1 on white */
  --on-night: #ffffff;
  --on-night-muted: #c7cfdb;
  --radius: 0.75rem;
  --gradient: linear-gradient(135deg, #00b5e2 0%, #7b2cbf 100%); /* --gradient-hero */
  --shadow: 0 10px 40px -10px rgba(0, 181, 226, 0.22);           /* --shadow-elegant */
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; } /* the form, its button and its states are shown and hidden by app.js */
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 76px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; height: auto; }
h1, h2, h3 { line-height: 1.2; margin: 0 0 0.6em; letter-spacing: -0.01em; }
h2 { font-size: clamp(1.6rem, 1.2rem + 1.8vw, 2.25rem); font-weight: 800; }
h3 { font-size: 1.2rem; font-weight: 700; }
p { margin: 0 0 1em; }
a { color: var(--primary-ink); text-underline-offset: 2px; }
a:hover { color: var(--purple); }
:focus-visible { outline: 3px solid var(--primary); outline-offset: 3px; border-radius: 4px; }
q { quotes: "\201C" "\201D"; font-style: italic; }
sup { font-size: 0.72em; line-height: 0; vertical-align: super; }

.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 1rem; }
@media (min-width: 640px) { .wrap { padding: 0 1.5rem; } }
.center { text-align: center; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 1rem; top: -100px; z-index: 100; background: var(--card); color: var(--fg); padding: 0.6rem 1rem; border-radius: 0.5rem; font-weight: 600; }
.skip:focus { top: 0.75rem; }

/* ── buttons ─────────────────────────────────────────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  min-height: 3rem; padding: 0.7rem 1.4rem;
  border-radius: 0.5rem; border: 1px solid transparent;
  font: inherit; font-size: 1.05rem; font-weight: 700; line-height: 1.2; text-decoration: none; text-align: center;
  cursor: pointer; transition: background-color 0.2s, box-shadow 0.2s, color 0.2s, border-color 0.2s;
}
.btn .icon { width: 1.25rem; height: 1.25rem; flex: none; }
.btn-teal { background: var(--teal); color: var(--night); box-shadow: 0 0 28px rgba(94, 234, 212, 0.45); }
.btn-teal:hover { background: var(--teal-hover); color: var(--night); box-shadow: 0 0 40px rgba(94, 234, 212, 0.65); }
.btn-teal:focus-visible { outline-color: var(--teal); }
.btn-teal[disabled] { opacity: 0.65; cursor: progress; box-shadow: none; }
.btn-ghost { background: transparent; color: var(--on-night); border-color: rgba(255, 255, 255, 0.45); }
.btn-ghost:hover { background: #ffffff; color: var(--night); }
.btn-outline { background: var(--card); color: var(--primary-ink); border-color: var(--primary); }
.btn-outline:hover { background: var(--primary); color: #ffffff; }
.btn-small { min-height: 2.5rem; padding: 0.45rem 1rem; font-size: 0.95rem; box-shadow: none; }
.btn-block { width: 100%; }

/* ── header ──────────────────────────────────────────────────────────────────────────────────────────────────── */
.topbar { position: sticky; top: 0; z-index: 50; background: rgba(7, 11, 20, 0.96); border-bottom: 1px solid rgba(255, 255, 255, 0.1); box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35); }
.topbar-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 64px; }
.brand img { width: 140px; height: auto; }
@media (min-width: 768px) { .brand img { width: 170px; } }

/* ── hero: what Grace is, and the problem ────────────────────────────────────────────────────────────────────── */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(60rem 30rem at 85% -10%, rgba(123, 44, 191, 0.38), transparent 60%),
    radial-gradient(50rem 28rem at -10% 110%, rgba(0, 181, 226, 0.28), transparent 60%),
    var(--night);
  color: var(--on-night);
  padding: 2.75rem 0 3rem;
}
.hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: var(--gradient); }
@media (min-width: 768px) { .hero { padding: 5rem 0 4.5rem; } }
.eyebrow { font-size: 0.8rem; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase; color: var(--primary-ink); margin-bottom: 0.75rem; }
.eyebrow-gold { color: var(--gold); }
.hero h1 { font-size: clamp(1.95rem, 1.2rem + 3.6vw, 3.6rem); font-weight: 800; max-width: 22ch; margin-bottom: 1rem; }
.grace-name { background: linear-gradient(90deg, #33c4ed, #b78cf0); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lede { font-size: clamp(1.1rem, 1rem + 0.6vw, 1.35rem); color: var(--on-night-muted); max-width: 46rem; margin-bottom: 1.75rem; }
.hero-actions { display: grid; gap: 0.75rem; margin-bottom: 2.25rem; }
@media (min-width: 560px) { .hero-actions { display: flex; flex-wrap: wrap; } }

.tiles { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.75rem; }
@media (min-width: 760px) { .tiles { grid-template-columns: repeat(3, 1fr); gap: 1rem; } }
.tile { background: rgba(255, 255, 255, 0.04); border: 1px solid rgba(255, 255, 255, 0.14); border-radius: var(--radius); padding: 1rem 1.1rem; }
.tile p { margin: 0; }
.tile-label { font-size: 0.85rem; color: var(--on-night-muted); margin-bottom: 0.35rem !important; }
.tile-figure { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.4rem; }
.tile-big { font-size: 1.9rem; font-weight: 800; color: #ffffff; font-variant-numeric: tabular-nums; letter-spacing: -0.02em; }
.tile-unit { font-size: 0.95rem; font-weight: 600; color: var(--teal); }
.tile-compare { font-size: 0.95rem; color: var(--on-night-muted); }

/* ── sections and cards ─────────────────────────────────────────────────────────────────────────────────────── */
.section { padding: 3rem 0; }
@media (min-width: 768px) { .section { padding: 4.5rem 0; } }
.section-tint { background: linear-gradient(180deg, #ffffff 0%, var(--tint) 100%); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.intro { color: var(--muted); font-size: 1.1rem; max-width: 46rem; margin: 0 auto 2rem; }
.video-frame { max-width: 960px; margin: 1.5rem auto 0; aspect-ratio: 16 / 9; background: var(--night); border: 1px solid var(--border); border-radius: 1rem; box-shadow: var(--shadow); overflow: hidden; }
.video-frame video { display: block; width: 100%; height: 100%; object-fit: contain; background: var(--night); }
.two { display: grid; gap: 1rem; }
@media (min-width: 860px) { .two { grid-template-columns: 1fr 1fr; gap: 1.5rem; } }
.card { background: var(--card); border: 1px solid var(--border); border-radius: 1rem; padding: 1.5rem; box-shadow: var(--shadow); }
@media (min-width: 640px) { .card { padding: 2rem; } }
.card h2 { font-size: 1.6rem; }
.card p:last-child { margin-bottom: 0; }
.card-dark { background: var(--night); border-color: var(--night); color: var(--on-night); }
.card-dark p { color: var(--on-night-muted); }
.card-dark strong { color: #ffffff; }
.quiet { font-size: 0.95rem; }
.checks { list-style: none; margin: 0 0 1em; padding: 0; display: grid; gap: 0.7rem; }
.checks li { position: relative; padding-left: 1.9rem; color: var(--on-night-muted); }
.checks li::before {
  content: ""; position: absolute; left: 0; top: 0.3rem; width: 1.15rem; height: 1.15rem; border-radius: 50%;
  background: var(--teal);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M20 6 9 17l-5-5' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 80% no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M20 6 9 17l-5-5' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 80% no-repeat;
}

/* ── Day 1 / Day 2 ──────────────────────────────────────────────────────────────────────────────────────────── */
.days { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; counter-reset: none; }
@media (min-width: 860px) { .days { grid-template-columns: 1fr 1fr; gap: 1.5rem; } }
.day { position: relative; background: var(--card); border: 1px solid var(--border); border-left: 5px solid var(--primary); border-radius: 1rem; padding: 1.4rem 1.5rem; box-shadow: var(--shadow); }
.day p:last-child { margin: 0; }
.day-two { border-left-color: var(--purple); }
.day-tag { display: inline-block; font-size: 0.8rem; font-weight: 800; letter-spacing: 0.16em; text-transform: uppercase; color: var(--primary-ink); margin-bottom: 0.5rem; }
.day-two .day-tag { color: var(--purple); }

/* ── results tables: a table on wide screens, one card per row on a phone ───────────────────────────────────── */
.table-title { margin-top: 2.25rem; font-size: 1.15rem; }
.table-card { background: var(--card); border: 1px solid var(--border); border-radius: 1rem; box-shadow: var(--shadow); overflow: hidden; }
.results { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.results th, .results td { text-align: left; vertical-align: top; padding: 0.8rem 1rem; }
.results thead th { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); background: #f1f5f9; border-bottom: 1px solid var(--border); }
.results tbody tr + tr > * { border-top: 1px solid var(--border); }
.results tbody th { font-weight: 600; }
.results tfoot tr > * { border-top: 2px solid var(--border); background: #f8fafc; font-weight: 800; }
.results .n { white-space: nowrap; font-weight: 600; }
.results .good { color: var(--good); font-weight: 800; }
.results .bad { color: var(--bad); font-weight: 800; }
@media (max-width: 759px) {
  .results thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .results, .results tbody, .results tfoot, .results tr, .results th, .results td { display: block; }
  .results tbody tr, .results tfoot tr { padding: 0.9rem 1rem; }
  .results tbody tr + tr { border-top: 1px solid var(--border); }
  .results tbody tr + tr > *, .results tfoot tr > * { border-top: 0; background: none; }
  .results tfoot tr { border-top: 2px solid var(--border); background: #f8fafc; }
  .results tbody th, .results tfoot th, .results td { padding: 0.25rem 0; display: flex; justify-content: space-between; gap: 1rem; }
  .results tbody th, .results tfoot th { font-size: 1.05rem; padding-bottom: 0.4rem; }
  .results td::before { content: attr(data-label); flex: 1 1 auto; min-width: 0; font-weight: 500; color: var(--muted); white-space: normal; text-align: left; }
  .results .n { white-space: nowrap; text-align: right; } /* a value stays on one line; its label wraps instead */
}
.note { color: var(--muted); font-size: 0.95rem; margin: 0.75rem 0 0; }
.note.hardware { font-size: 0.9rem; padding-left: 0.75rem; border-left: 3px solid var(--border); }
.note.hardware.above { margin: -0.2rem 0 0.9rem; }
.fineprint { color: var(--muted); font-size: 0.85rem; margin: 2rem 0 0; text-align: center; }

/* ── why it matters ─────────────────────────────────────────────────────────────────────────────────────────── */
.closing {
  margin: 2.25rem auto 0; max-width: 48rem; text-align: center;
  font-size: clamp(1.2rem, 1rem + 1vw, 1.6rem); font-weight: 700; line-height: 1.35;
  padding: 1.25rem 0; border-top: 3px solid transparent; border-bottom: 3px solid transparent;
  border-image: var(--gradient) 1;
}

/* ── the beta sign-up ───────────────────────────────────────────────────────────────────────────────────────── */
.beta-section { background: var(--bg); }
.beta-grid { display: grid; gap: 1rem; align-items: start; }
@media (min-width: 900px) { .beta-grid { grid-template-columns: 1.6fr 1fr; gap: 1.5rem; } }
.beta-card { background: #05090f; border: 1px solid var(--night-line); color: #e7edf5; border-radius: 1rem; padding: 1.75rem 1.25rem; box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.35); }
@media (min-width: 640px) { .beta-card { padding: 2.5rem 2.25rem; } }
.beta-card h2 { color: #ffffff; margin-bottom: 0.4rem; }
.beta-sub { color: rgba(255, 255, 255, 0.75); margin-bottom: 1.5rem; }
.beta-form { position: relative; display: grid; gap: 1rem; }
fieldset.plain { border: 0; margin: 0; padding: 0; min-width: 0; display: grid; gap: 1rem; }
@media (min-width: 640px) { fieldset.plain { grid-template-columns: 1fr 1fr; } fieldset.plain .field:first-of-type { grid-column: 1 / -1; } }
.field { display: grid; gap: 0.4rem; }
.field label { font-size: 0.95rem; font-weight: 600; color: rgba(255, 255, 255, 0.9); }
.hint { font-weight: 400; color: rgba(255, 255, 255, 0.6); }
.field input {
  width: 100%; min-height: 3rem; padding: 0.6rem 0.8rem;
  border-radius: 0.5rem; border: 1px solid #2a3a52; background: var(--night-2); color: #ffffff;
  font: inherit; font-size: 1rem; /* 16px: no zoom on focus in iOS */
}
.field input:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(242, 214, 160, 0.4); }
.field input[aria-invalid="true"] { border-color: #ff9b9b; }
.field input:disabled { opacity: 0.6; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.problem { margin: 0; color: #ff9b9b; font-size: 0.95rem; }
.problem a { color: #ffffff; }
.challenge { border: 1px solid rgba(242, 214, 160, 0.4); background: rgba(242, 214, 160, 0.05); border-radius: 0.6rem; padding: 1rem; }
.challenge p { margin: 0 0 0.75rem; color: rgba(255, 255, 255, 0.88); font-size: 0.95rem; }
.consent { margin: 0; font-size: 0.8rem; line-height: 1.55; color: rgba(255, 255, 255, 0.6); }
.consent a { color: rgba(255, 255, 255, 0.85); }
.consent a:hover { color: #ffffff; }
.done { text-align: left; }
.done:focus { outline: none; }
.done-icon { color: var(--teal); width: 2.5rem; height: 2.5rem; margin-bottom: 0.75rem; }
.done h3 { color: #ffffff; font-size: 1.5rem; }
.done p { color: rgba(255, 255, 255, 0.8); margin: 0; }
.done strong { color: #ffffff; word-break: break-all; }
.pdf-card { background: var(--card); border: 1px solid var(--border); border-radius: 1rem; padding: 1.5rem; box-shadow: var(--shadow); }
.pdf-card p { color: var(--muted); }
.pdf-card .btn { width: 100%; }
/* reCAPTCHA's notice is in the form's own text, so its floating badge is hidden, as Google allows (as on astermind.ai) */
.grecaptcha-badge { visibility: hidden; }

/* ── footer ─────────────────────────────────────────────────────────────────────────────────────────────────── */
.footer { background: var(--card); border-top: 1px solid var(--border); padding: 2rem 0 2.5rem; }
.footer-inner { display: grid; gap: 0.75rem; justify-items: start; }
@media (min-width: 760px) { .footer-inner { grid-template-columns: auto 1fr auto; align-items: center; gap: 1.5rem; } .footer-links { justify-self: center; } }
.footer-brand img { width: 140px; height: auto; }
.footer p { margin: 0; color: var(--muted); font-size: 0.9rem; }

/* ── the 404 page ───────────────────────────────────────────────────────────────────────────────────────────── */
.lost { min-height: 60vh; display: grid; align-content: center; }

@media print {
  .topbar, .hero-actions, .beta-section, .skip { display: none; }
  .hero { background: #ffffff; color: var(--fg); }
  .lede, .tile-label, .tile-compare { color: var(--muted); }
  .tile-big { color: var(--fg); }
}
