/* Wiser Human — shared stylesheet
   Design tokens below are measured from the original Framer site.
   Plain CSS, no build step. */

:root {
  /* Colour — sampled from the live site */
  --ink:          #26262a;   /* headings + body text */
  --ink-soft:     #303036;   /* hero paragraph */
  --ink-article:  #001122;   /* article headings */
  --ink-title:    #111111;   /* article h1 */
  --muted:        #666666;   /* card body */
  --muted-2:      #828289;
  --muted-3:      #a1a1aa;   /* footer */
  --dark:         #222222;   /* buttons */
  --bg:           #ffffff;
  --surface:      #f2f2f2;   /* form fields, FAQ rows */
  --border:       #e6e6e8;

  /* Type */
  --font-display: "Urbanist", system-ui, sans-serif;      /* home headings */
  --font-body:    "Satoshi", "Inter", system-ui, sans-serif; /* body copy */
  --font-ui:      "Inter", system-ui, sans-serif;          /* cards, forms, article headings */

  --wrap:      1200px;
  --wrap-text: 640px;
  --radius:    8px;
  --radius-lg: 20px;

  --shadow-card: 0 0.8px 2.4px -0.6px rgb(0 0 0 / 5%),
                 0 2.3px 6.9px -1.25px rgb(0 0 0 / 5%),
                 0 7px 21px -1.9px rgb(0 0 0 / 5%);
  --shadow-btn:  0 0.7px 0.7px -0.6px rgb(0 0 0 / 15%),
                 0 2.3px 2.3px -1.25px rgb(0 0 0 / 14%),
                 0 7px 7px -1.9px rgb(0 0 0 / 12%);
}

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

html { scroll-behavior: smooth; scroll-padding-top: 100px; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 20px;
  font-weight: 500;
  line-height: 30px;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--ink);
  margin: 0 0 0.4em;
  line-height: 1.2;
  text-wrap: balance;
}

h1 { font-size: clamp(2.5rem, 5.4vw, 4.5rem); font-weight: 600; letter-spacing: -0.04em; }
h2 { font-size: clamp(2rem, 3.6vw, 3rem);     font-weight: 500; letter-spacing: -0.03em; }
h3 { font-size: clamp(1.4rem, 2.2vw, 1.75rem);font-weight: 500; letter-spacing: -0.02em; }

p { margin: 0 0 1.5rem; }
p:last-child { margin-bottom: 0; }

.wrap      { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: 40px; }
.wrap-text { width: 100%; max-width: var(--wrap-text); margin-inline: auto; padding-inline: 24px; }

section { padding-block: clamp(64px, 9vw, 120px); }
.center { text-align: center; }

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

.site-header {
  position: sticky; top: 0; z-index: 60;
  background: rgb(255 255 255 / 80%);
  backdrop-filter: saturate(180%) blur(14px);
}
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  min-height: 72px; gap: 24px; position: relative;
}

.brand {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--font-body);
  font-size: 20px; font-weight: 700;
  color: var(--ink); text-decoration: none;
  letter-spacing: -0.01em; white-space: nowrap;
}
.brand img { width: 26px; height: 26px; border-radius: 50%; }

.nav-toggle {
  display: flex; align-items: center; gap: 10px;
  background: none; border: 0; cursor: pointer;
  font-family: var(--font-body); font-size: 17px; font-weight: 500;
  color: var(--muted-2); padding: 8px 4px;
}
.nav-toggle .bars { display: inline-flex; flex-direction: column; gap: 5px; }
.nav-toggle .bars i { display: block; width: 20px; height: 1.5px; background: var(--ink); }

.nav {
  display: none;
  position: absolute; top: calc(100% + 8px); right: 40px;
  flex-direction: column; align-items: stretch;
  min-width: 200px; padding: 10px;
  background: #fff; border-radius: 12px;
  box-shadow: var(--shadow-card);
}
.nav.open { display: flex; }
.nav a {
  padding: 10px 14px; border-radius: var(--radius);
  font-family: var(--font-body); font-size: 17px; font-weight: 500;
  color: var(--ink); text-decoration: none;
}
.nav a:hover { background: var(--surface); }

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

.btn {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--dark); color: #fff;
  font-family: var(--font-body); font-size: 16px; font-weight: 500;
  padding: 13px 24px; border-radius: var(--radius);
  border: 0; text-decoration: none; cursor: pointer;
  box-shadow: var(--shadow-btn);
  transition: transform .15s ease, opacity .15s ease;
}
.btn::before {
  content: ""; width: 7px; height: 7px; border-radius: 50%;
  background: #fff; flex: none;
}
.btn:hover { transform: translateY(-1px); opacity: .92; }
.btn-caps { text-transform: uppercase; letter-spacing: .06em; font-size: 14px; }

.btn-row { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 40px; }
.btn-row.center { justify-content: center; }

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

.hero {
  position: relative; overflow: hidden;
  padding-block: clamp(72px, 11vw, 150px);
  text-align: center;
}
.hero .wrap-text { position: relative; z-index: 1; }
.hero h1 { margin-bottom: 0.35em; }
.hero p { color: var(--ink-soft); margin-bottom: 0; }

/* The colour blob behind the hero.
   Two blurred conic-gradient circles, matching the original. */
.blob {
  position: absolute; z-index: 0; pointer-events: none;
  top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: min(400px, 76vw); aspect-ratio: 1;
}
.blob::before, .blob::after {
  content: ""; position: absolute; border-radius: 50%;
  top: 50%; left: 50%; transform: translate(-50%, -50%);
}
.blob::before {
  width: 100%; height: 100%;
  opacity: .8; filter: blur(70px);
  background: conic-gradient(
    #ff0080 0deg, #ee00ff 54.8916deg, #00a6ff 106.699deg,
    #4797ff 162deg, #0044ff 252deg, #ff8000 306deg, #ff00cc 360deg);
}
.blob::after {
  width: 75%; height: 75%;
  filter: blur(32px);
  background: conic-gradient(#ffffff 0deg, #12b4e6 180deg, #dc4cfc 360deg);
}

/* ---------- Split rows ---------- */

.split {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 84px); align-items: center;
}
.split.reverse .split-media { order: -1; }
.split h2 { margin-bottom: 0.5em; }
@media (max-width: 860px) {
  .split { grid-template-columns: 1fr; }
  .split.reverse .split-media { order: 0; }
}

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

.cards {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 320px));
  gap: 24px; justify-content: center; margin-top: 56px;
}
.card {
  display: flex; flex-direction: column;
  background: #fff; border-radius: var(--radius-lg);
  overflow: hidden; box-shadow: var(--shadow-card);
  transition: transform .18s ease;
}
.card:hover { transform: translateY(-4px); }
.card img { aspect-ratio: 1 / 0.72; object-fit: cover; width: 100%; }
.card-body { padding: 28px; display: flex; flex-direction: column; flex: 1; }
.card-body h3 {
  font-family: var(--font-ui); font-size: 20px; line-height: 28px;
  font-weight: 600; letter-spacing: -0.02em; color: var(--ink-article);
  margin-bottom: 14px;
}
.card-body p {
  font-family: var(--font-ui); font-size: 16px; line-height: 1.6;
  font-weight: 500; color: var(--muted); flex: 1; margin-bottom: 24px;
}
.card .btn { align-self: flex-start; font-size: 14px; font-weight: 600; padding: 11px 18px; }
.card .btn::before { width: 0; display: none; }

/* ---------- Findings / lists ---------- */

.findings { list-style: none; padding: 0; margin: 32px 0 0; }
.findings li { position: relative; padding-left: 26px; margin-bottom: 20px; }
.findings li::before {
  content: ""; position: absolute; left: 6px; top: 12px;
  width: 5px; height: 5px; border-radius: 50%; background: var(--ink);
}

/* ---------- Figures ---------- */

.figure-block { margin: 72px 0; text-align: center; }
.figure-block h3 {
  font-family: var(--font-body); font-weight: 700;
  font-size: clamp(1.05rem, 1.6vw, 1.25rem); line-height: 1.4;
  letter-spacing: -0.01em; color: var(--ink);
  max-width: 760px; margin: 0 auto 24px;
}
.figure-block img { margin-inline: auto; border-radius: 4px; }

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

.faq { margin-top: 32px; display: grid; gap: 10px; }
.faq details { background: var(--surface); border-radius: var(--radius); overflow: hidden; }
.faq summary {
  cursor: pointer; list-style: none; position: relative;
  padding: 16px 20px 16px 48px;
  font-family: var(--font-body); font-weight: 700;
  font-size: 16px; line-height: 1.4; color: var(--ink);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before {
  content: "+"; position: absolute; left: 18px; top: 50%;
  transform: translateY(-50%); font-size: 18px; font-weight: 400; color: var(--muted-2);
}
.faq details[open] summary::before { content: "\2013"; }
.faq .faq-body { padding: 0 20px 20px 48px; font-size: 17px; line-height: 1.6; }
.faq .faq-body p { margin-bottom: 1rem; }

/* ---------- Canary block ---------- */

.canary { margin-top: 80px; text-align: center; }
.canary h3 {
  font-family: var(--font-body); font-weight: 700;
  font-size: 20px; letter-spacing: -0.01em; margin-bottom: 24px;
}
.canary p { font-size: 17px; line-height: 1.6; margin-bottom: 1.2rem; word-break: break-word; }

/* ---------- Article (monte-carlo) ---------- */

.article-head { padding: clamp(56px, 8vw, 104px) 0 0; text-align: center; }
.article-head h1 {
  font-family: var(--font-ui); font-size: clamp(1.9rem, 3.4vw, 2.5rem);
  line-height: 1.1; font-weight: 700; letter-spacing: -0.04em; color: var(--ink-title);
  margin-bottom: 0.35em;
}
.article-head .sub {
  font-family: var(--font-ui); font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  line-height: 1.4; font-weight: 600; letter-spacing: -0.025em; color: var(--ink-article);
  max-width: 760px; margin: 0 auto;
}

.article { padding: clamp(48px, 6vw, 80px) 0 clamp(72px, 9vw, 120px); }

/* two-column: prose left, figures right — as on the original */
.a-row {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 0.86fr);
  gap: clamp(32px, 5vw, 72px); align-items: start;
  margin-bottom: 8px;
}
.a-row.full { grid-template-columns: 1fr; }
@media (max-width: 900px) { .a-row { grid-template-columns: 1fr; } }

.prose h2 {
  font-family: var(--font-ui); font-size: 24px; line-height: 36px;
  font-weight: 600; letter-spacing: -0.03em; color: var(--ink-article);
  margin: 2em 0 0.6em;
}
.prose h3 {
  font-family: var(--font-ui); font-size: 20px; line-height: 30px;
  font-weight: 600; letter-spacing: -0.025em; color: var(--ink-article);
  margin: 1.8em 0 0.6em;
}
.prose h4 {
  font-family: var(--font-ui); font-size: 17px; line-height: 26px;
  font-weight: 600; letter-spacing: -0.02em; color: var(--ink-article);
  margin: 1.6em 0 0.5em;
}
.prose > :first-child { margin-top: 0; }
.prose ul, .prose ol { padding-left: 1.2em; margin: 0 0 1.5rem; }
.prose li { margin-bottom: 0.6em; }
.prose a { color: #1f6feb; text-decoration: none; }
.prose a:hover { text-decoration: underline; }

.a-fig { margin: 0 0 40px; }
.a-fig img { border-radius: 4px; }
.a-fig figcaption {
  margin-top: 14px; font-family: var(--font-body);
  font-size: 16px; line-height: 1.45; color: var(--muted);
}
.a-fig figcaption a { color: #1f6feb; text-decoration: none; }

.toc { margin: 8px 0 40px; }
.toc ol { margin: 0; padding-left: 1.2em; columns: 2; column-gap: 40px; }
.toc li { margin-bottom: 0.45em; break-inside: avoid; }
.toc a { color: #1f6feb; text-decoration: none; font-size: 17px; }
.toc a:hover { text-decoration: underline; }
@media (max-width: 640px) { .toc ol { columns: 1; } }

.pull {
  font-family: var(--font-ui); font-size: clamp(1.3rem, 2.4vw, 1.6rem);
  line-height: 1.35; font-weight: 600; letter-spacing: -0.03em;
  color: var(--ink-article); margin: 32px 0;
}

.formula { text-align: center; margin: 28px 0; }
.formula img { margin-inline: auto; }

.callout {
  background: var(--surface); border-radius: var(--radius);
  padding: 20px 24px; margin: 32px 0; font-size: 17px; line-height: 1.6;
}

.refs { font-size: 15px; line-height: 1.7; color: var(--muted); }
.refs p { margin-bottom: 1rem; }
.refs a { color: #1f6feb; text-decoration: none; word-break: break-word; }

/* ---------- Forms ---------- */

.form { max-width: 400px; margin: 48px auto 0; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 520px) { .form-grid { grid-template-columns: 1fr; } }

.field { margin-bottom: 18px; }
.field label {
  display: block; font-family: var(--font-ui);
  font-size: 14px; font-weight: 400; color: var(--muted-2);
  margin-bottom: 8px;
}
.field input, .field textarea {
  width: 100%; font-family: var(--font-ui);
  font-size: 14px; line-height: 1.4; color: #333;
  background: var(--surface); border: 1px solid transparent;
  border-radius: var(--radius); padding: 12px 14px;
}
.field input::placeholder, .field textarea::placeholder { color: #9a9aa2; }
.field input:focus, .field textarea:focus {
  outline: none; border-color: #c8c8ce; background: #eeeef0;
}
.field textarea { min-height: 100px; resize: vertical; }
.hp { position: absolute; left: -9999px; opacity: 0; }

.form .btn { width: 100%; justify-content: center; font-weight: 600; font-size: 15px; }
.form .btn::before { display: none; }
.form-note { font-family: var(--font-ui); font-size: 13px; color: var(--muted-2); margin-top: 14px; text-align: center; }

.embed-wrap { max-width: 420px; margin: 32px auto 0; }
.embed-wrap iframe { width: 100%; border: 0; display: block; }

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

.site-footer { padding-block: 0 48px; }
.footer-rule {
  position: relative; border-top: 1px solid var(--border);
  margin-bottom: 40px; height: 1px;
}
.footer-rule img {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 30px; height: 30px; border-radius: 50%; background: #fff;
}
.site-footer .wrap {
  display: flex; flex-wrap: wrap; gap: 20px 40px;
  align-items: center; justify-content: space-between;
}
.footer-meta { font-family: var(--font-body); font-size: 14px; color: var(--muted-3); margin: 0; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 28px; }
.footer-nav a {
  font-family: var(--font-body); font-size: 16px; font-weight: 500;
  color: var(--ink); text-decoration: none;
}
.footer-nav a:hover { color: var(--muted-2); }

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