/* The Grey Cells — landing pages. Palette taken from thegreycells.com (navy + orange hex logo, slate text). */
:root {
  color-scheme: light;
  --navy: #071e4a;
  --navy-2: #0e2d6b;
  --orange: #e8852b;
  --orange-d: #c96d17;
  --ink: #1e293b;
  --slate: #334155;
  --muted: #64748b;
  --line: #e2e8f0;
  --bg: #ffffff;
  --bg-soft: #f6f8fc;
  --ok: #1f8a5b;
  --warn: #c27c0e;
  --bad: #c2410c;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(7, 30, 74, 0.1);
  --gutter: 16px;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--slate);
  font: 16px/1.6 "Open Sans", -apple-system, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3 { font-family: "Poppins", sans-serif; color: var(--ink); line-height: 1.2; margin: 0 0 .5em; }
h1 { font-size: clamp(1.9rem, 5vw, 3rem); font-weight: 700; letter-spacing: -.02em; }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.1rem); font-weight: 600; letter-spacing: -.01em; }
h3 { font-size: 1.1rem; font-weight: 600; }
p { margin: 0 0 1em; }
a { color: var(--navy-2); }
img, svg { max-width: 100%; }

.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: 64px 0; }
.section.soft { background: var(--bg-soft); }
.eyebrow { font: 600 .78rem/1 "Poppins", sans-serif; letter-spacing: .12em; text-transform: uppercase; color: var(--orange-d); margin-bottom: 14px; display: block; }
.lead { font-size: 1.1rem; color: var(--slate); max-width: 56ch; }
.muted { color: var(--muted); font-size: .9rem; }

/* nav */
.nav { position: sticky; top: 0; z-index: 20; background: rgba(255,255,255,.94); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 12px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font: 700 1.05rem "Poppins", sans-serif; color: var(--navy); }
.brand svg { width: 30px; height: 30px; flex: none; }
.nav-links { display: flex; align-items: center; gap: 18px; font-size: .9rem; }
.nav-links a { text-decoration: none; color: var(--slate); }
.nav-links a.btn { color: #fff; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 13px 22px; border-radius: 999px; border: 0; cursor: pointer; font: 600 .98rem "Poppins", sans-serif; text-decoration: none; background: var(--orange); color: #fff; transition: transform .15s, background .15s, box-shadow .15s; }
.btn:hover { background: var(--orange-d); transform: translateY(-1px); box-shadow: 0 6px 16px rgba(232,133,43,.35); }
.btn:focus-visible, .opt:focus-visible, input:focus-visible, select:focus-visible, summary:focus-visible { outline: 3px solid rgba(14,45,107,.45); outline-offset: 2px; }
.btn.navy { background: var(--navy); }
.btn.navy:hover { background: var(--navy-2); box-shadow: 0 6px 16px rgba(7,30,74,.3); }
.btn.ghost { background: transparent; color: var(--navy); border: 1.5px solid var(--navy); }
.btn.ghost:hover { background: var(--navy); color: #fff; box-shadow: none; }
.btn.block { width: 100%; }
.btn[disabled] { opacity: .55; cursor: not-allowed; transform: none; box-shadow: none; }

/* hero */
.hero { padding: 28px 0 56px; background: linear-gradient(180deg, var(--bg-soft), #fff); }
/* Mobile order: copy, tool, proof. Desktop: copy + proof left, tool right. */
.hero-grid { display: grid; gap: 22px; align-items: start; grid-template-columns: minmax(0, 1fr); grid-template-areas: "copy" "tool" "proof"; }
.hero-copy { grid-area: copy; } .hero-grid > .tool { grid-area: tool; min-width: 0; } .hero-proof { grid-area: proof; }
.hero h1 em { font-style: normal; color: var(--orange-d); }
.proof { display: flex; flex-wrap: wrap; gap: 8px 22px; margin: 22px 0 0; padding: 0; list-style: none; font-size: .92rem; }
.proof li::before { content: "✓"; color: var(--ok); font-weight: 700; margin-right: 8px; }
.cred { margin-top: 26px; padding: 16px 18px; border-left: 3px solid var(--orange); background: #fff; border-radius: 0 var(--radius) var(--radius) 0; box-shadow: var(--shadow); font-size: .92rem; }
.cred strong { color: var(--ink); }

/* tool card */
.tool { background: #fff; border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow); padding: 22px var(--gutter); scroll-margin-top: 84px; }
.tool-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; gap: 10px; }
.tool-head .tag { font: 600 .72rem "Poppins", sans-serif; letter-spacing: .1em; text-transform: uppercase; color: var(--orange-d); }
.progress { height: 6px; background: var(--line); border-radius: 99px; overflow: hidden; margin-bottom: 20px; }
.progress > i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--orange), var(--navy-2)); transition: width .3s; }
.step[hidden] { display: none; }
.q-count { font-size: .8rem; color: var(--muted); margin-bottom: 6px; }
.q-title { font: 600 1.15rem/1.35 "Poppins", sans-serif; color: var(--ink); margin-bottom: 14px; }
.opts { display: grid; gap: 10px; }
.opt { text-align: left; padding: 13px 15px; border: 1.5px solid var(--line); background: #fff; border-radius: 12px; cursor: pointer; font: inherit; color: var(--slate); transition: border-color .15s, background .15s; }
.opt:hover { border-color: var(--navy-2); background: var(--bg-soft); }
.opt[aria-pressed="true"] { border-color: var(--navy); background: #eef3ff; color: var(--ink); }
.opt small { display: block; color: var(--muted); margin-top: 2px; }
.tool-nav { display: flex; justify-content: space-between; align-items: center; margin-top: 16px; }
.link-btn { background: none; border: 0; color: var(--muted); cursor: pointer; font: inherit; text-decoration: underline; padding: 6px 0; }

/* forms */
.field { margin-bottom: 14px; }
.field label { display: block; font-weight: 600; font-size: .88rem; color: var(--ink); margin-bottom: 5px; }
.field input, .field select { width: 100%; padding: 12px 13px; border: 1.5px solid var(--line); border-radius: 10px; font: inherit; color: var(--ink); background: #fff; }
.field input:focus, .field select:focus { border-color: var(--navy-2); }
.field .hint { font-size: .8rem; color: var(--muted); margin-top: 4px; }
.field .err { font-size: .82rem; color: var(--bad); margin-top: 4px; }
.row2 { display: grid; gap: 14px; }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: .82rem; color: var(--muted); margin: 6px 0 14px; }
.consent input { margin-top: 4px; width: 18px; height: 18px; flex: none; }
.hp { position: absolute; left: -9999px; height: 0; overflow: hidden; }

/* results */
.score-wrap { display: grid; gap: 20px; justify-items: center; text-align: center; margin-bottom: 18px; }
.ring { --p: 0; width: 148px; height: 148px; border-radius: 50%; background: conic-gradient(var(--c, var(--orange)) calc(var(--p) * 1%), var(--line) 0); display: grid; place-items: center; }
.ring > div { width: 118px; height: 118px; border-radius: 50%; background: #fff; display: grid; place-items: center; }
.ring b { font: 700 2.4rem/1 "Poppins", sans-serif; color: var(--ink); }
.ring span { font-size: .75rem; color: var(--muted); display: block; margin-top: -10px; }
.verdict h3 { margin-bottom: 4px; font-size: 1.25rem; }
.dims { display: grid; gap: 10px; margin: 18px 0; }
.dim { display: grid; grid-template-columns: 96px 1fr 38px; gap: 10px; align-items: center; font-size: .86rem; }
.dim .bar { height: 8px; border-radius: 99px; background: var(--line); overflow: hidden; }
.dim .bar i { display: block; height: 100%; border-radius: 99px; }
.fixes { display: grid; gap: 10px; margin: 8px 0 18px; padding: 0; list-style: none; counter-reset: fx; }
.fixes li { counter-increment: fx; padding: 13px 14px 13px 48px; position: relative; background: var(--bg-soft); border-radius: 12px; font-size: .92rem; }
.fixes li::before { content: counter(fx); position: absolute; left: 13px; top: 13px; width: 26px; height: 26px; border-radius: 50%; background: var(--navy); color: #fff; display: grid; place-items: center; font: 600 .8rem "Poppins", sans-serif; }
.fixes b { color: var(--ink); display: block; }
.fixes em { color: var(--muted); font-style: normal; display: block; margin-top: 3px; }
.cta-box { border: 1.5px solid var(--navy); border-radius: var(--radius); padding: 16px; margin-top: 14px; }
.cta-box h3 { margin-bottom: 6px; }
.cta-actions { display: grid; gap: 10px; margin-top: 12px; }
.wa-ask { background: var(--bg-soft); border: 1.5px solid var(--line); border-radius: var(--radius); padding: 14px; margin: 0 0 18px; text-align: left; }
.wa-q { margin: 0 0 10px; color: var(--ink); }
.wa-form { display: flex; gap: 8px; }
.wa-form input { flex: 1; min-width: 0; padding: 12px 13px; border: 1.5px solid var(--line); border-radius: 10px; font: inherit; color: var(--ink); background: #fff; }
.wa-form input:focus { border-color: var(--navy-2); }
.wa-ask .err { font-size: .82rem; color: var(--bad); margin-top: 6px; }
.wa-ask .hint { font-size: .8rem; color: var(--muted); margin-top: 6px; }
.notice { font-size: .85rem; padding: 10px 12px; border-radius: 10px; background: #fff7ed; color: #9a5b12; margin-top: 12px; }
.ok-note { background: #ecfdf5; color: #14633f; }

/* content sections */
.grid3 { display: grid; gap: 18px; margin-top: 28px; }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.card .ico { width: 42px; height: 42px; border-radius: 12px; background: #eef3ff; color: var(--navy); display: grid; place-items: center; font-weight: 700; margin-bottom: 12px; font-family: "Poppins", sans-serif; }
.steps { counter-reset: s; }
.steps .card { position: relative; padding-top: 52px; }
.steps .card::before { counter-increment: s; content: counter(s); position: absolute; top: 18px; left: 22px; width: 28px; height: 28px; border-radius: 50%; background: var(--orange); color: #fff; display: grid; place-items: center; font: 600 .85rem "Poppins", sans-serif; }
.about { display: grid; gap: 28px; align-items: center; }
.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.stat { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; text-align: center; }
.stat b { font: 700 1.6rem "Poppins", sans-serif; color: var(--navy); display: block; }
.stat span { font-size: .82rem; color: var(--muted); }
details { border-bottom: 1px solid var(--line); padding: 16px 0; }
summary { cursor: pointer; font: 600 1rem "Poppins", sans-serif; color: var(--ink); list-style: none; display: flex; justify-content: space-between; gap: 12px; }
summary::after { content: "+"; color: var(--orange-d); font-size: 1.3rem; line-height: 1; }
details[open] summary::after { content: "–"; }
details p { margin: 10px 0 0; }
.final { background: var(--navy); color: #dbe5ff; text-align: center; }
.final h2 { color: #fff; }
.final .lead { margin: 0 auto 24px; color: #c3d1f5; }
.footer { padding: 28px 0; font-size: .85rem; color: var(--muted); border-top: 1px solid var(--line); }
.footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; }

.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

@media (min-width: 760px) {
  :root { --gutter: 24px; }
  .grid3 { grid-template-columns: repeat(3, 1fr); }
  .row2 { grid-template-columns: 1fr 1fr; }
  .cta-actions { grid-template-columns: 1fr 1fr; }
  .tool { padding: 28px; }
  .score-wrap { grid-template-columns: auto 1fr; text-align: left; justify-items: start; }
  .stats { grid-template-columns: repeat(4, 1fr); }
  .about { grid-template-columns: 1.1fr 1fr; }
}
@media (min-width: 980px) {
  .hero { padding: 48px 0 64px; }
  .hero-grid { grid-template-columns: 1.05fr 1fr; grid-template-areas: "copy tool" "proof tool"; grid-template-rows: auto 1fr; column-gap: 56px; row-gap: 0; }
  .hero-grid > .tool { position: sticky; top: 84px; align-self: start; }
  .hero-proof { align-self: start; }
}
@media (max-width: 520px) {
  .nav-links .hide-sm { display: none; }
  .dim { grid-template-columns: 80px 1fr 34px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }

/* trust: photo + testimonials */
.cred { display: flex; gap: 14px; align-items: center; }
.avatar { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; flex: none; border: 3px solid #fff; box-shadow: 0 2px 10px rgba(7,30,74,.18); background: var(--bg-soft); }
.about-photo img { width: 100%; max-width: 260px; aspect-ratio: 1; object-fit: cover; border-radius: 24px; box-shadow: var(--shadow); display: block; margin: 0 auto; background: var(--bg-soft); }
.about > div + div .stats { margin-top: 18px; }
.rev-h { margin-top: 44px; }
.reviews { margin-top: 14px; }
.review { margin: 0; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; display: flex; flex-direction: column; gap: 10px; }
.review blockquote { margin: 0; font-size: .95rem; color: var(--slate); flex: 1; }
.review figcaption b { color: var(--ink); display: block; }
.review figcaption span { font-size: .8rem; color: var(--muted); }
.stars { color: #f5a524; letter-spacing: 2px; font-size: 1rem; }
@media (min-width: 760px) { .about { grid-template-columns: 260px 1fr; gap: 44px; align-items: start; } }

/* Google source mark on reviews */
.review figcaption .src { display: flex; align-items: center; gap: 6px; }
.glogo { flex: none; }
.gsum { display: flex; align-items: center; gap: 8px; margin-top: 14px; }
.gsum b { color: var(--ink); }

/* phones: keep the questionnaire above the fold */
@media (max-width: 759px) {
  .hero h1 { font-size: 1.75rem; margin-bottom: .35em; }
  .hero .lead { font-size: 1rem; margin-bottom: 0; }
  .hero .eyebrow { margin-bottom: 8px; }
  .nav .wrap { height: 56px; }
  .tool { scroll-margin-top: 66px; border-radius: 16px; }
  .cred { align-items: flex-start; }
  .about-photo img { max-width: 200px; }
}

/* <picture> wrappers must not shrink the photos inside flex rows */
.cred picture { flex: none; display: block; width: 72px; height: 72px; }
.about-photo picture { display: block; }
