/* ScaledOn brand, restrained: one gradient moment (hero), calm neutrals
   everywhere else. Quicksand. Tokens from client-presentation skill. */
:root {
  --so-pink: #ed4691;
  --so-orange: #f79253;
  --so-blue: #3f56cd;
  --so-grad: linear-gradient(135deg, #f79253 0%, #ed4691 100%);
  --so-emerald: #10b981;      /* the action colour - CTA buttons only */
  --so-cta-hover: linear-gradient(135deg, #3f56cd 0%, #ed4691 50%, #f79253 100%);
  --positive: #1f9d55;
  --negative: #dc3545;
  --ink: #23263a;
  --ink-soft: #7a8093;
  /* Small-text variants. The brand colours above are fine as fills and on
     large type, but as body-size text on white they land at 3.5-3.9:1 and miss
     WCAG AA's 4.5:1. Measured: pink 3.57, positive 3.49, ink-soft 3.94. */
  --so-pink-text: #cf1668;    /* 5.29:1 on white, 4.95:1 on --bg */
  --positive-text: #157f43;   /* 5.06:1 on white, 4.73:1 on --bg */
  --ink-soft-text: #5f6678;   /* 5.74:1 on white, 5.37:1 on --bg */
  --bg: #f7f7fa;
  --card: #ffffff;
  --line: #ebecf2;
  --shadow: 0 10px 40px rgba(35, 38, 58, .10), 0 2px 8px rgba(35, 38, 58, .05);
}
* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: "Quicksand", -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.6;
  min-height: 100vh; display: flex; flex-direction: column;
  -webkit-font-smoothing: antialiased;
}
main { width: 100%; max-width: 720px; margin: 0 auto; padding: 0 24px 72px; flex: 1; }

/* ---- hero: the single gradient moment ---- */
.hero {
  text-align: center; margin: 0 calc(50% - 50vw); padding: 64px 24px 128px;
  background: var(--so-grad); color: #fff;
}
/* ---- top bar ----
   The white logo disappeared into the orange end of the hero gradient, so the
   mark gets its own white band like the .com header, using the full-colour
   logo. No nav: this is a lead magnet and the top of the page should not offer
   a way out. The footer carries the real navigation. */
.topbar { background: #fff; border-bottom: 1px solid var(--line); }
.topbar-inner { max-width: 1120px; margin: 0 auto; padding: 15px 32px; }
.brand { display: inline-block; line-height: 0; }
.brand img { width: 160px; height: auto; display: block; }
.badge {
  display: inline-block; background: rgba(255, 255, 255, .16);
  border: 1px solid rgba(255, 255, 255, .28); color: #fff;
  font-size: 11px; font-weight: 700; padding: 6px 14px; border-radius: 999px;
  margin-bottom: 22px; letter-spacing: .08em; text-transform: uppercase;
}
h1 {
  font-size: 36px; line-height: 1.18; margin: 0 auto 16px; font-weight: 700;
  max-width: 620px; letter-spacing: -.01em;
}
h1 span { white-space: nowrap; }
.sub {
  color: rgba(255, 255, 255, .9); font-size: 16px; margin: 0 auto; max-width: 520px;
  font-weight: 500;
}

/* ---- cards: docked into the hero ---- */
.card {
  background: var(--card); border-radius: 20px;
  padding: 36px; margin-top: 24px; box-shadow: var(--shadow);
}
main > .card:first-of-type,
main > #uploader, main > #results { margin-top: -64px; }
#results.hidden + #uploader { margin-top: -64px; }

.field { margin-bottom: 24px; }
.field-label { font-size: 14px; font-weight: 700; margin-bottom: 10px; }
.field-label span { color: var(--ink-soft); font-weight: 500; }

/* Drop zones replace the native file input. The input is visually hidden but
   MUST stay focusable - display:none removes it from the tab order and the
   accessibility tree, which left uploading (the only conversion path on the
   page) impossible by keyboard. WCAG 2.1.1 Level A. */
input[type=file] {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0;
}
/* Surface that focus on the label the sighted keyboard user is looking at. */
.field:has(input[type=file]:focus-visible) .drop {
  outline: 2px solid var(--so-pink); outline-offset: 2px; border-color: var(--so-pink);
}
.drop {
  display: flex; align-items: center; gap: 14px;
  padding: 18px 20px; background: var(--bg);
  border: 1.5px dashed #d4d7e3; border-radius: 14px;
  cursor: pointer; transition: border-color .15s, background .15s;
}
.drop:hover, .drop.dragover { border-color: var(--so-pink); background: #fdf3f8; }
.drop.has-file { border-style: solid; border-color: var(--positive); background: #f2faf5; }
.drop-icon {
  flex: none; width: 40px; height: 40px; border-radius: 10px;
  background: #fff; box-shadow: 0 1px 4px rgba(35, 38, 58, .10);
  display: flex; align-items: center; justify-content: center;
}
.drop-icon svg { width: 20px; height: 20px; stroke: var(--so-pink); }
.drop.has-file .drop-icon svg { stroke: var(--positive); }
.drop-text { font-size: 13.5px; color: var(--ink-soft-text); font-weight: 500; }
.drop-text b { color: var(--ink); font-weight: 700; }
.drop-file { display: none; font-size: 13.5px; font-weight: 700; color: var(--positive); }
.drop.has-file .drop-text { display: none; }
.drop.has-file .drop-file { display: block; overflow-wrap: anywhere; }

input[type=email] {
  flex: 1; padding: 13px 16px; background: #fff; border: 1.5px solid #d4d7e3;
  border-radius: 12px; color: var(--ink); font-size: 15px; font-family: inherit;
  transition: border-color .15s;
}
input[type=email]:focus { outline: none; border-color: var(--so-pink); }
input[type=email]:focus-visible { outline: 2px solid var(--so-pink); outline-offset: 1px; }

/* Emerald is the single action colour, every CTA site-wide (brand v2.15,
   2026-07-24). It replaced the pink/orange gradient as the primary button;
   the gradient now appears on hover only. Keeping emerald exclusive to
   actions is what makes it read as a system. */
button, a.button {
  width: 100%; padding: 16px; background: var(--so-emerald); color: #fff; border: 0;
  border-radius: 12px; font-size: 15px; font-weight: 700; cursor: pointer; margin-top: 4px;
  font-family: inherit; letter-spacing: .01em;
  box-shadow: 0 6px 20px rgba(16, 185, 129, .30);
  transition: transform .12s, box-shadow .12s, background .15s;
  display: block; text-align: center; text-decoration: none; box-sizing: border-box;
}
button:hover:not(:disabled), a.button:hover {
  background: var(--so-cta-hover); transform: translateY(-1px);
  box-shadow: 0 10px 26px rgba(237, 70, 145, .36);
}
button:disabled { opacity: .55; cursor: default; box-shadow: none; }
.privacy { color: var(--ink-soft-text); font-size: 12px; text-align: center; margin: 16px 0 0; }
.err { color: var(--negative); font-size: 13px; margin: 10px 0 0; min-height: 1px; font-weight: 600; }
.hidden { display: none; }

/* helper accordions */
details.help { margin-top: 10px; font-size: 13px; }
details.help summary {
  cursor: pointer; color: var(--so-pink); font-size: 12.5px; font-weight: 700;
  list-style: none; display: inline-block;
}
details.help summary::before { content: "? "; opacity: .75; }
details.help summary::-webkit-details-marker { display: none; }
details.help[open] summary { margin-bottom: 8px; }
details.help ol {
  margin: 0; padding: 14px 16px 14px 32px; background: var(--bg);
  border-radius: 12px; color: #565c70;
}
details.help li { margin-bottom: 6px; }
details.help li:last-child { margin-bottom: 0; }
details.help b { color: var(--ink); font-weight: 700; }

/* ---- results ---- */
.stats { display: flex; gap: 14px; margin-bottom: 26px; }
.stats div {
  flex: 1; background: var(--bg); border-radius: 14px; padding: 18px 14px; text-align: center;
}
.stats b { display: block; font-size: 26px; font-weight: 700; color: var(--so-pink); letter-spacing: -.01em; }
.stats span { font-size: 11px; color: var(--ink-soft); font-weight: 600; letter-spacing: .02em; }

.teaser { border-top: 1px solid var(--line); padding-top: 22px; }
.teaser-label { font-size: 13px; color: var(--positive); font-weight: 700; margin-bottom: 12px; }
.rw { border-top: 1px solid var(--line); padding: 16px 0; }
.rw:first-child { border-top: 0; padding-top: 0; }
.rw-meta { font-size: 11px; color: var(--ink-soft); margin-bottom: 6px; letter-spacing: .05em; font-weight: 600; }
.rw-evidence { color: var(--positive); }
.old { color: #b9536a; text-decoration: line-through; font-size: 13px; margin-bottom: 8px; opacity: .8; }
.new { font-size: 16px; font-weight: 700; color: var(--ink); }
.new .ok { color: var(--positive); font-size: 12px; font-weight: 700; }
.ih { font-size: 13px; color: #565c70; margin-top: 6px; }
.ih .dim { color: var(--ink-soft); }

/* full audit table */
.tbl-h { font-size: 19px; margin: 34px 0 12px; font-weight: 700; letter-spacing: -.01em; }
.tblwrap {
  position: relative; overflow-x: auto; background: var(--card);
  border-radius: 20px; box-shadow: var(--shadow);
}
table.audit { width: 100%; border-collapse: collapse; font-size: 12.5px; }
table.audit th {
  text-align: left; padding: 14px 14px; color: var(--ink-soft); font-size: 10.5px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .07em; white-space: nowrap;
  border-bottom: 2px solid var(--line);
}
table.audit td { padding: 10px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
table.audit tr:last-child td { border-bottom: 0; }
table.audit .ttl { max-width: 340px; }
table.audit .mono { font-family: ui-monospace, Menlo, monospace; font-size: 12px; white-space: nowrap; }
.bad { color: var(--negative); font-weight: 700; font-size: 11px; letter-spacing: .03em; }
.good { color: var(--positive); font-weight: 700; font-size: 11px; letter-spacing: .03em; }
tr.blur td { filter: blur(5px); user-select: none; pointer-events: none; }
.tbl-lock {
  position: sticky; bottom: 0; text-align: center; font-size: 13px; color: var(--ink);
  font-weight: 700; padding: 18px;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0), #ffffff 50%);
}

/* email gate */
.gate { margin-top: 28px; background: var(--bg); border-radius: 16px; padding: 24px; }
.gate-h { font-size: 15px; font-weight: 700; margin-bottom: 14px; }
.gate-row { display: flex; gap: 10px; }
.gate-row button { width: auto; margin-top: 0; white-space: nowrap; padding: 13px 22px; }

/* ---- footer: mirrors the scaledon.com footer ----
   Kept in sync by hand across the three pages (hub, pets, thank-you). If you
   change it, change it everywhere - there is no templating on Pages, and
   rendering it via JS would hide the internal links from crawlers. */
.site-footer {
  margin-top: auto; background: #373737; color: #fff;
  font-size: 15px; font-weight: 500; padding: 48px 0 40px;
}
.f-inner { max-width: 1120px; margin: 0 auto; padding: 0 32px; }
.f-top { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.f-logo { line-height: 0; }
.f-logo img { width: 180px; height: auto; }
.f-tagline { color: #fff; text-decoration: none; font-size: 20px; font-weight: 500; }
.f-tagline:hover { color: var(--so-orange); }
.f-rule { border: 0; border-top: 1px solid rgba(255, 255, 255, .3); margin: 26px 0; }

.f-cols { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 30px; }
.f-col h3 {
  font-size: 18px; font-weight: 600; color: #fff; margin: 0 0 18px;
  text-transform: uppercase; letter-spacing: .01em;
}
.f-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 13px; }
/* SOLUTIONS runs as two sub-columns, filling down then across, like the .com */
.f-col.wide ul { grid-template-columns: 1fr 1fr; grid-auto-flow: column; grid-template-rows: repeat(7, auto); column-gap: 30px; }
.f-col a { color: #fff; text-decoration: none; font-weight: 500; }
.f-col a:hover { color: var(--so-orange); }

.f-insider { font-size: 18px; }
.f-insider a { color: var(--so-orange); text-decoration: none; font-weight: 500; }
.f-insider a strong { color: var(--so-pink); font-weight: 700; }
.f-insider a:hover { text-decoration: underline; }

.f-legal { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; margin-top: 26px; flex-wrap: wrap; }
.f-legal p { margin: 0 0 10px; font-size: 14px; color: #fff; font-weight: 500; }
.f-legal p:last-child { margin-bottom: 0; }
.f-legal a { color: #fff; text-decoration: none; }
.f-legal a:hover { color: var(--so-orange); }
.f-social { display: flex; gap: 16px; flex: none; }
.f-social a { color: #fff; line-height: 0; }
.f-social a:hover { color: var(--so-orange); }
.f-social svg { width: 26px; height: 26px; fill: currentColor; display: block; }

@media (max-width: 860px) {
  .f-cols { grid-template-columns: 1fr 1fr; }
  .f-col.wide { grid-column: 1 / -1; }
  .f-top { justify-content: flex-start; }
  .f-tagline { font-size: 17px; }
}
@media (max-width: 520px) {
  h1 { font-size: 27px; }
  .hero { padding: 44px 20px 108px; }
  .card { padding: 26px 22px; }
  .stats, .gate-row { flex-direction: column; }
  .topbar-inner { padding: 13px 22px; }
  .brand img { width: 132px; }
  .f-inner { padding: 0 22px; }
  .f-cols { grid-template-columns: 1fr; gap: 26px; }
  .f-col.wide ul { grid-template-columns: 1fr; grid-auto-flow: row; grid-template-rows: none; }
  .f-legal { flex-direction: column; align-items: flex-start; }
}
