/* Check with Kin — site styles
   No build step. No frameworks. Tokens on :root; dark mode via prefers-color-scheme.
   Target reader: 40–65 buyer, but many 70+ parents will land here too.
   Body text never below 18px. Tap targets never below 48px. */

:root {
  color-scheme: light dark;

  /* Palette (light). All text/background pairs checked for WCAG AA ≥ 4.5:1. */
  --bg: #faf6f0;
  --surface: #ffffff;
  --surface-2: #f2ece3;
  --ink: #221c18;
  --muted: #5a514b;
  --border: #e2d9cd;
  --accent: #0e5a5f;
  --accent-ink: #ffffff;
  --accent-soft: #dcecec;
  --focus: #c2641c;

  --scam: #9a2b1e;
  --scam-bg: #fbeae6;
  --unsure: #7a5200;
  --unsure-bg: #fbf1dc;
  --ok: #2e6a3b;
  --ok-bg: #e7f2e8;

  --shadow: 0 1px 2px rgba(34, 28, 24, 0.06), 0 8px 24px rgba(34, 28, 24, 0.08);

  --font-body: "Atkinson Hyperlegible", "Helvetica Neue", Arial, sans-serif;
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;

  --radius: 18px;
  --radius-sm: 10px;
  --gutter: 16px;
  --measure: 62ch;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #1a1613;
    --surface: #241f1b;
    --surface-2: #2d2722;
    --ink: #f3ece3;
    --muted: #bdb2a6;
    --border: #3a332c;
    --accent: #8fd0d3;
    --accent-ink: #0f2224;
    --accent-soft: #1f3335;
    --focus: #f0a35e;

    --scam: #f4a79a;
    --scam-bg: #3a1f1b;
    --unsure: #f1c66f;
    --unsure-bg: #3a2e14;
    --ok: #9ed3a8;
    --ok-bg: #1d3322;

    --shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 8px 24px rgba(0, 0, 0, 0.35);
  }
}

/* ---------- Base ---------- */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  font-size: 19px;
  -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(--ink);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  overflow-x: hidden;
  overflow-wrap: anywhere;
}

img,
svg {
  max-width: 100%;
  height: auto;
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin: 0 0 0.5em;
  text-wrap: balance;
}

h1 {
  font-size: clamp(2rem, 1.3rem + 3vw, 3.2rem);
  font-variation-settings: "opsz" 144;
}

h2 {
  font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.3rem);
}

h3 {
  font-size: 1.25rem;
  font-family: var(--font-body);
  font-weight: 700;
  letter-spacing: 0;
}

p {
  margin: 0 0 1em;
  max-width: var(--measure);
}

a {
  color: var(--accent);
  text-underline-offset: 0.15em;
  text-decoration-thickness: 0.08em;
}

a:hover {
  text-decoration-thickness: 0.15em;
}

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
  border-radius: 4px;
}

strong {
  font-weight: 700;
}

.muted {
  color: var(--muted);
}

.lede {
  font-size: 1.2rem;
  line-height: 1.55;
}

.eyebrow {
  display: inline-block;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.8em;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 8px;
  background: var(--accent);
  color: var(--accent-ink);
  padding: 12px 18px;
  border-radius: var(--radius-sm);
  z-index: 100;
}

.skip-link:focus {
  left: 8px;
}

/* ---------- Layout ---------- */

.wrap {
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

section {
  padding: clamp(48px, 8vw, 96px) 0;
}

section + section {
  border-top: 1px solid var(--border);
}

.section-head {
  max-width: var(--measure);
  margin-bottom: 2rem;
}

.grid {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
}

.grid-2 {
  display: grid;
  gap: 32px;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
  align-items: start;
}

/* ---------- Header ---------- */

.site-header {
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
  background: var(--bg);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.35rem;
  min-height: 48px;
}

.brand svg {
  width: 34px;
  height: 34px;
  flex: none;
}

.nav {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
  align-items: center;
}

.nav a {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: 0 12px;
  text-decoration: none;
  color: var(--ink);
  border-radius: var(--radius-sm);
  font-weight: 700;
}

.nav a:hover {
  background: var(--surface-2);
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 56px;
  padding: 12px 26px;
  border-radius: 999px;
  border: 2px solid var(--accent);
  background: var(--accent);
  color: var(--accent-ink);
  font: inherit;
  font-weight: 700;
  font-size: 1.05rem;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.08s ease, box-shadow 0.08s ease;
}

.btn:hover {
  box-shadow: var(--shadow);
  transform: translateY(-1px);
}

.btn:active {
  transform: translateY(0);
}

.btn-secondary {
  background: transparent;
  color: var(--accent);
}

.btn[disabled],
.btn[aria-disabled="true"] {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 1.4rem;
}

/* ---------- Hero ---------- */

.hero {
  padding-top: clamp(40px, 7vw, 88px);
}

.hero .wrap {
  display: grid;
  gap: 40px;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr));
  align-items: center;
}

.hero p {
  max-width: 48ch;
}

.hero-note {
  margin-top: 1.4rem;
  font-size: 0.95rem;
  color: var(--muted);
}

.fridge-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 26px 26px 22px;
  position: relative;
  max-width: 420px;
  margin: 0 auto;
  transform: rotate(-1.2deg);
}

@media (prefers-reduced-motion: reduce) {
  .fridge-card {
    transform: none;
  }
}

.fridge-card::before {
  content: "";
  position: absolute;
  top: -12px;
  left: 50%;
  width: 26px;
  height: 26px;
  margin-left: -13px;
  border-radius: 50%;
  background: var(--focus);
  box-shadow: inset 0 -3px 0 rgba(0, 0, 0, 0.15);
}

.fridge-card .label {
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 10px;
}

.fridge-card h2 {
  font-size: 1.5rem;
  margin-bottom: 0.6em;
}

.fridge-card dl {
  margin: 0 0 14px;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 6px 12px;
}

.fridge-card dt {
  font-weight: 700;
  color: var(--muted);
}

.fridge-card dd {
  margin: 0;
  font-weight: 700;
  font-size: 1.1rem;
}

.fridge-card p {
  font-size: 0.95rem;
  margin: 0;
}

/* ---------- Steps ---------- */

.steps {
  counter-reset: step;
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
}

.steps li {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px 24px 22px;
  position: relative;
}

.steps li::before {
  counter-increment: step;
  content: counter(step);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--accent-ink);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.3rem;
  margin-bottom: 14px;
}

.steps h3 {
  margin-bottom: 0.4em;
}

.steps p {
  margin: 0;
}

/* ---------- Cards ---------- */

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px 24px;
}

.card h3 {
  margin-bottom: 0.4em;
}

.card p:last-child {
  margin-bottom: 0;
}

.check-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.check-list li {
  position: relative;
  padding-left: 2em;
  margin-bottom: 0.75em;
}

.check-list li::before {
  content: "";
  position: absolute;
  left: 0.2em;
  top: 0.55em;
  width: 0.55em;
  height: 0.55em;
  border-radius: 50%;
  background: var(--accent);
}

/* ---------- Example verdict (mock phone) ---------- */

.example .wrap {
  display: grid;
  gap: 40px;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
  align-items: start;
}

.phone {
  width: 100%;
  max-width: 400px;
  margin: 0 auto;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 36px;
  padding: 18px 14px 22px;
  box-shadow: var(--shadow);
}

.phone-bar {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  color: var(--muted);
  padding: 0 10px 12px;
}

.thread {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.msg {
  border-radius: var(--radius);
  padding: 14px 16px;
  font-size: 0.95rem;
  line-height: 1.5;
}

.msg p {
  margin: 0 0 0.6em;
  max-width: none;
}

.msg p:last-child {
  margin-bottom: 0;
}

.msg-meta {
  font-size: 0.8rem;
  color: var(--muted);
  margin-bottom: 6px;
}

.msg-forward {
  background: var(--surface-2);
  border: 1px solid var(--border);
  align-self: flex-end;
  max-width: 92%;
}

.msg-forward .from {
  font-weight: 700;
}

.msg-forward .fake-domain {
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 0.85em;
}

.msg-forward .fake-link {
  display: inline-block;
  color: var(--accent);
  text-decoration: underline;
}

.msg-reply {
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 6px solid var(--border);
  align-self: flex-start;
  max-width: 100%;
}

.verdict {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.15rem;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  margin-bottom: 12px;
}

.verdict-scam {
  color: var(--scam);
  background: var(--scam-bg);
}

.verdict-unsure {
  color: var(--unsure);
  background: var(--unsure-bg);
}

.verdict-ok {
  color: var(--ok);
  background: var(--ok-bg);
}

.msg-reply.is-scam {
  border-left-color: var(--scam);
}

.msg-reply ol {
  margin: 0 0 0.8em;
  padding-left: 1.3em;
}

.msg-reply li {
  margin-bottom: 0.35em;
}

.msg-reply .action {
  font-weight: 700;
}

.msg-reply .passphrase {
  color: var(--muted);
  font-size: 0.85rem;
  margin-top: 0.8em;
}

.sms-bubble {
  background: var(--accent-soft);
  border-radius: var(--radius);
  padding: 14px 16px;
  font-size: 0.95rem;
  max-width: 420px;
}

.sms-bubble .msg-meta {
  margin-bottom: 8px;
}

.sms-bubble p {
  margin: 0;
}

.verdict-key {
  list-style: none;
  padding: 0;
  margin: 1.4rem 0 0;
  display: grid;
  gap: 10px;
}

.verdict-key li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  align-items: start;
}

.verdict-key .verdict {
  margin: 0;
  font-size: 1rem;
}

/* ---------- Digest mock ---------- */

.digest {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px 22px 18px;
  box-shadow: var(--shadow);
  max-width: 480px;
}

.digest .msg-meta {
  margin-bottom: 10px;
}

.digest h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.4rem;
}

.digest table {
  width: 100%;
  border-collapse: collapse;
  margin: 10px 0 14px;
  font-size: 0.95rem;
}

.digest td {
  padding: 8px 0;
  border-top: 1px solid var(--border);
  vertical-align: top;
}

.digest td:last-child {
  text-align: right;
  white-space: nowrap;
  font-weight: 700;
}

.digest p {
  font-size: 0.95rem;
  margin: 0;
}

/* ---------- Pricing ---------- */

.price-card {
  background: var(--surface);
  border: 2px solid var(--accent);
  border-radius: var(--radius);
  padding: 32px 28px;
  max-width: 460px;
  box-shadow: var(--shadow);
}

.price {
  font-family: var(--font-display);
  font-size: 2.6rem;
  font-weight: 600;
  line-height: 1;
  margin: 10px 0 4px;
}

.price small {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 400;
  color: var(--muted);
}

.price-alt {
  color: var(--muted);
  margin-bottom: 1.2rem;
}

.price-card .check-list {
  margin-bottom: 1.4rem;
}

/* ---------- FAQ ---------- */

.faq {
  max-width: 760px;
}

.faq details {
  border-top: 1px solid var(--border);
}

.faq details:last-child {
  border-bottom: 1px solid var(--border);
}

.faq summary {
  cursor: pointer;
  list-style: none;
  padding: 18px 44px 18px 0;
  font-weight: 700;
  font-size: 1.1rem;
  position: relative;
  min-height: 48px;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "+";
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--font-display);
  font-size: 1.6rem;
  color: var(--accent);
  line-height: 1;
}

.faq details[open] summary::after {
  content: "–";
}

.faq details > div {
  padding: 0 0 20px;
}

.faq details p:last-child {
  margin-bottom: 0;
}

/* ---------- Waitlist form ---------- */

.waitlist-form {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  max-width: 560px;
  box-shadow: var(--shadow);
}

.field {
  margin-bottom: 18px;
}

.field label {
  display: block;
  font-weight: 700;
  margin-bottom: 6px;
}

.field .hint {
  display: block;
  font-size: 0.9rem;
  color: var(--muted);
  margin-top: 4px;
}

input[type="email"],
input[type="text"],
select {
  width: 100%;
  min-height: 56px;
  padding: 12px 14px;
  font: inherit;
  color: var(--ink);
  background: var(--bg);
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
}

input:focus,
select:focus {
  border-color: var(--accent);
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}

fieldset {
  border: 0;
  padding: 0;
  margin: 0 0 18px;
}

legend {
  font-weight: 700;
  margin-bottom: 8px;
}

.choice {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 48px;
  cursor: pointer;
}

.choice input {
  width: 26px;
  height: 26px;
  accent-color: var(--accent);
  flex: none;
}

.form-note {
  font-size: 0.9rem;
  color: var(--muted);
  margin: 14px 0 0;
}

.form-status {
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  background: var(--unsure-bg);
  color: var(--unsure);
  font-weight: 700;
  margin-bottom: 18px;
}

/* ---------- Footer ---------- */

.site-footer {
  border-top: 1px solid var(--border);
  padding: 40px 0 48px;
  font-size: 0.95rem;
  color: var(--muted);
}

.site-footer .wrap {
  display: grid;
  gap: 18px;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 20px;
}

.site-footer nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}

.site-footer .promise {
  font-weight: 700;
  color: var(--ink);
}

/* ---------- Legal pages ---------- */

.legal {
  max-width: 760px;
  padding-top: 40px;
}

.legal h2 {
  font-size: 1.5rem;
  margin-top: 2em;
}

.draft-banner {
  background: var(--unsure-bg);
  color: var(--unsure);
  border: 2px solid currentColor;
  border-radius: var(--radius-sm);
  padding: 14px 18px;
  font-weight: 700;
  margin-bottom: 2rem;
}

.legal ul {
  padding-left: 1.3em;
}

.legal li {
  margin-bottom: 0.5em;
}

/* ---------- Utilities (replace inline style attributes; CSP forbids them) ---------- */

.mt-36 { margin-top: 36px; }
.mt-15 { margin-top: 1.5rem; }

/* ---------- Waitlist form states ---------- */

.form-status[data-tone="pending"] {
  background: var(--surface-2);
  color: var(--ink);
}

.form-status[data-tone="ok"] {
  background: var(--ok-bg);
  color: var(--ok);
}

/* Errors stay calm: same neutral surface as "pending", never alarm colors. */
.form-status[data-tone="retry"] {
  background: var(--surface-2);
  color: var(--ink);
}

.cf-turnstile {
  margin: 4px 0 18px;
  min-height: 65px;
}

.btn[disabled] {
  opacity: 0.6;
  cursor: progress;
}
