/* Fractional в Україні — landing page
   Tokens from the «Ната Вегас» design system (light theme). */

:root {
  /* Palette */
  --milk: #f3f1ec;
  --white: #ffffff;
  --silver-light: #e3e6e7;
  --silver: #c9ced1;
  --slate-pale: #a9bbbf;
  --slate-mist: #6e8a92;
  --slate-grey: #55626a;
  --slate: #315762;
  --slate-surface: #223d45;
  --slate-deep: #1b3138;
  --graphite: #1e2326;
  --graphite-line: #2e3438;
  --saffron: #f2b01e;

  /* Semantic */
  --bg: var(--milk);
  --surface: var(--white);
  --surface-2: var(--silver-light);
  --border: var(--silver);
  --text: var(--graphite);
  --heading: var(--slate-deep);
  --text-muted: var(--slate-grey);
  --kicker: var(--slate);
  --brand: var(--slate-deep);
  --on-brand: var(--milk);
  --accent: var(--saffron);
  --on-accent: var(--graphite);

  /* Type */
  --font-display: Unbounded, system-ui, sans-serif;
  --font-text: Onest, system-ui, sans-serif;

  /* Radius */
  --radius-sm: 4px;
  --radius-md: 6px;
  --radius-lg: 10px;
  --radius-pill: 999px;

  /* Layout */
  --gutter: clamp(16px, 4vw, 48px);
  --container: 1200px;
  --header-h: 72px;

  /* Motion */
  --duration-fast: 200ms;
  --easing: cubic-bezier(0.2, 0, 0, 1);
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  font-family: var(--font-text);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: var(--slate-deep); }
a:hover { color: var(--slate); }

h1, h2, h3, p, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }

:focus-visible { outline: 3px solid var(--saffron); outline-offset: 2px; }

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

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

.section {
  padding: clamp(56px, 8vw, 96px) var(--gutter);
  scroll-margin-top: var(--header-h);
}
.section--white { background: var(--white); }
.section--silver { background: var(--silver-light); }
.section--deep { background: var(--slate-deep); }

.container {
  max-width: var(--container);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 32px;
}
.container--narrow { max-width: 880px; }

.section-head { display: flex; flex-direction: column; gap: 16px; }
.section-head--760 { max-width: 760px; }
.section-head--780 { max-width: 780px; }
.section-head--820 { max-width: 820px; }

.grid { display: grid; gap: 16px; }
.grid--240 { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.grid--260 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 12px; }
.grid--300 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid--320 { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }

/* ---------- Typography ---------- */

.kicker {
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--kicker);
}
.kicker--accent { color: var(--saffron); }
.kicker--sm { font-size: 13px; }

.h1 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(30px, 4.2vw, 52px);
  line-height: 1.2;
  color: var(--heading);
}
.h2 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(26px, 3vw, 36px);
  line-height: 1.2;
  color: var(--heading);
}
.h2--on-dark { color: var(--milk); font-size: clamp(28px, 3.6vw, 44px); line-height: 1.25; }
.h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 20px;
  line-height: 1.25;
  color: var(--heading);
}
.h3--on-dark { color: var(--milk); }

.lead { font-size: 19px; line-height: 1.55; }
.lead--on-dark { color: var(--silver-light); }
.muted { font-weight: 600; font-size: 14px; line-height: 1.5; color: var(--text-muted); }

/* Saffron highlighter under a word */
.mark {
  background: var(--accent);
  color: var(--on-accent);
  padding: 0 8px;
  border-radius: var(--radius-sm);
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}
.mark--sm { padding: 0 6px; }
.mark--lg { padding: 0 10px; }

/* Desktop-only line breaks */
.br-desktop { display: inline; }

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 52px;
  padding: 0 28px;
  border: 0;
  border-radius: var(--radius-md);
  font-family: var(--font-text);
  font-weight: 700;
  font-size: 17px;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: background-color var(--duration-fast) var(--easing), color var(--duration-fast) var(--easing);
}
.btn--sm { min-height: 44px; padding: 0 20px; font-size: 15px; white-space: nowrap; }
.btn--md { min-height: 48px; padding: 0 22px; font-size: 16px; }
.btn--block { display: flex; width: 100%; padding: 0 24px; }

.btn--primary { background: var(--brand); color: var(--on-brand); }
.btn--primary:hover { background: var(--slate); color: var(--on-brand); }
.btn--secondary { background: var(--silver-light); color: var(--slate-deep); }
.btn--secondary:hover { background: var(--silver); color: var(--slate-deep); }
.btn--light { background: var(--milk); color: var(--slate-deep); }
.btn--light:hover { background: var(--white); color: var(--slate-deep); }

.link-arrow {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  font-weight: 700;
  font-size: 17px;
  color: var(--slate-deep);
  text-decoration: underline;
  text-decoration-thickness: 3px;
  text-underline-offset: 6px;
}

.link-button {
  align-self: flex-start;
  min-height: 44px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--slate-deep);
  font-family: var(--font-text);
  font-weight: 700;
  font-size: 15px;
  text-decoration: underline;
  cursor: pointer;
}

/* ---------- Tags & markers ---------- */

.tag {
  align-self: flex-start;
  background: var(--accent);
  color: var(--on-accent);
  border-radius: var(--radius-pill);
  padding: 5px 12px;
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.tag--lg { padding: 7px 16px; font-size: 13px; letter-spacing: 0.08em; }

.num {
  flex: none;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: var(--brand);
  color: var(--on-brand);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.num--36 { width: 36px; height: 36px; }
.num--40 { width: 40px; height: 40px; }
.num--accent { background: var(--accent); color: var(--on-accent); }
.num--slate { background: var(--slate); color: var(--saffron); }

/* Ring bullet */
.ring-list { display: flex; flex-direction: column; gap: 18px; }
.ring-list li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  font-size: 17px;
  line-height: 1.5;
}
.ring-list--sm { gap: 14px; }
.ring-list--sm li { font-size: 16px; line-height: 1.45; }
.ring-list--on-dark li { color: var(--milk); }
.ring-list--muted li { color: var(--silver-light); }

.ring {
  flex: none;
  width: 18px;
  height: 18px;
  margin-top: 4px;
  border: 4px solid var(--slate-deep);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.ring::after {
  content: "";
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--slate-deep);
}
.ring-list--sm .ring { margin-top: 2px; }
.ring--pale { border-color: var(--slate-pale); }
.ring--pale::after { background: var(--slate-pale); }

/* Check list */
.check-list { display: flex; flex-direction: column; gap: 10px; }
.check-list li { display: flex; gap: 12px; font-size: 16px; line-height: 1.45; }
.check-list li::before { content: "✓"; font-weight: 700; color: var(--slate); }
.check-list--on-dark { color: var(--milk); }
.check-list--on-dark li::before { color: var(--saffron); }

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

.card {
  border-radius: var(--radius-lg);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.card--lg { padding: clamp(24px, 3vw, 40px); gap: 24px; }
.card--md { padding: clamp(24px, 3vw, 36px); gap: 20px; }
.card--white { background: var(--white); }
.card--milk { background: var(--milk); }
.card--graphite { background: var(--graphite); }
.card--deep { background: var(--slate-deep); }
.card--surface { background: var(--slate-surface); }

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--bg);
  padding: 0 var(--gutter);
}
.site-header__inner {
  max-width: var(--container);
  margin: 0 auto;
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.logo {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 17px;
  color: var(--slate-deep);
  text-decoration: none;
  white-space: nowrap;
}
.site-nav { display: flex; align-items: center; gap: 32px; }
.site-nav a { font-weight: 600; font-size: 16px; color: var(--text); text-decoration: none; }
.site-nav a:hover { color: var(--slate); }

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

.hero { padding: clamp(40px, 7vw, 96px) var(--gutter) clamp(56px, 8vw, 112px); }
.hero__inner {
  max-width: var(--container);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: clamp(40px, 6vw, 80px);
}
.hero__copy { flex: 1 1 520px; min-width: 0; display: flex; flex-direction: column; gap: 24px; }
.hero__lead { font-size: clamp(17px, 1.6vw, 20px); line-height: 1.55; max-width: 620px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; padding-top: 8px; }

.covers {
  flex: 1 1 360px;
  min-width: 0;
  max-width: 460px;
  height: clamp(380px, 38vw, 480px);
  position: relative;
  margin: 0 auto;
}
.cover {
  position: absolute;
  width: min(290px, 64%);
  aspect-ratio: 210 / 297;
  border-radius: var(--radius-lg);
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
}
.cover__top { display: flex; flex-direction: column; gap: 12px; }
.cover__kicker { font-weight: 700; font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; }
.cover__title { font-family: var(--font-display); font-weight: 800; }
.cover__meta { font-weight: 600; font-size: 12px; }
.cover--full {
  top: 0; right: 0;
  background: var(--white);
  box-shadow: 0 16px 40px rgba(27, 49, 56, 0.16);
}
.cover--full .cover__kicker { color: var(--slate); }
.cover--full .cover__title { font-size: clamp(16px, 1.5vw, 20px); line-height: 1.2; color: var(--slate-deep); }
.cover--full .cover__meta { color: var(--slate-grey); }
.cover--visual {
  bottom: 0; left: 0;
  background: var(--slate-deep);
  box-shadow: 0 20px 48px rgba(27, 49, 56, 0.28);
}
.cover--visual .cover__kicker { color: var(--slate-pale); }
.cover--visual .cover__title { font-size: clamp(20px, 2vw, 26px); line-height: 1.15; color: var(--milk); }
.cover--visual .cover__meta { color: var(--slate-pale); }
.cover__bottom { display: flex; flex-direction: column; gap: 4px; }
.cover__bar { display: block; width: 48px; height: 4px; border-radius: 2px; background: var(--saffron); margin-bottom: 6px; }

/* ---------- Stats ---------- */

.stats { padding: clamp(48px, 6vw, 80px) var(--gutter); background: var(--slate-deep); }
.stats__grid { max-width: var(--container); margin: 0 auto; }
.stat {
  background: var(--slate-surface);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 12px;
  min-height: 200px;
  overflow: hidden;
  border-top: 4px solid var(--saffron);
}
.stat__value { font-family: var(--font-display); font-weight: 800; font-size: 72px; line-height: 1; color: var(--milk); }
.stat__value--range { font-size: clamp(26px, 2.3vw, 32px); line-height: 1.15; }
.stat__label { font-weight: 600; font-size: 16px; color: var(--silver-light); }
.stat__note { font-size: 13px; line-height: 1.45; color: var(--slate-pale); }

/* Hero number with motion echo */
.stat--hero { border-top: 0; }
.stat--hero .stat__value {
  font-size: 96px;
  color: var(--saffron);
  padding-left: 48px;
  text-shadow: -24px 0 0 var(--slate-mist), -48px 0 0 var(--slate);
}

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

.finding__body { display: flex; flex-direction: column; gap: 16px; }
.finding h3 { font-family: var(--font-display); font-weight: 700; font-size: 18px; line-height: 1.3; color: var(--heading); }
.finding p { font-size: 16px; line-height: 1.55; }
.finding.card--graphite h3 { color: var(--milk); }
.finding.card--graphite p { color: var(--silver-light); }

/* ---------- Bar chart ---------- */

.chart-card {
  background: var(--milk);
  border-radius: var(--radius-lg);
  padding: clamp(24px, 3vw, 40px);
  display: flex;
  flex-wrap: wrap;
  gap: clamp(24px, 4vw, 56px);
  align-items: center;
}
.chart-card__head { flex: 1 1 260px; min-width: 0; display: flex; flex-direction: column; gap: 12px; }
.chart-card__head .h3 { font-size: 22px; }
.chart { flex: 2 1 420px; min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.chart__row { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 16px; align-items: center; }
.chart__label { font-weight: 700; font-size: 15px; }
.chart__track { display: flex; align-items: center; gap: 12px; }
.chart__bar { display: block; height: 32px; background: var(--chart-1, var(--slate-deep)); border-radius: var(--radius-sm); }
.chart__bar--key { background: var(--saffron); }
.chart__value { font-family: var(--font-display); font-weight: 700; font-size: 16px; white-space: nowrap; }
.chart-card__note--mobile { display: none; }

/* ---------- Report format ---------- */

.report-card { gap: 20px; }
.report-card__title { display: flex; flex-direction: column; gap: 8px; }
.report-card__title .h3 { font-weight: 800; font-size: 24px; line-height: 1.2; }
.report-card p { font-size: 17px; line-height: 1.5; }
.report-card__cta { margin-top: auto; display: flex; flex-direction: column; gap: 10px; padding-top: 8px; }
.report-card__cta .muted { text-align: center; }
.report-card--dark .h3 { color: var(--milk); }
.report-card--dark .muted { color: var(--slate-pale); }
.report-card--dark p { color: var(--silver-light); }

/* ---------- Form ---------- */

/* Honeypot: hidden field that only bots fill in */
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.form-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: clamp(24px, 4vw, 48px);
  display: flex;
  flex-wrap: wrap;
  gap: clamp(24px, 4vw, 56px);
  scroll-margin-top: calc(var(--header-h) + 16px);
}
.form-card[hidden] { display: none; }
/* Collapsed until «Отримати на пошту» is pressed (only when JS runs) */
.form-card { position: relative; }
.js .form-card:not(.is-open) { display: none; }
.form-card.is-open { animation: form-reveal 280ms var(--easing); }
@keyframes form-reveal { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }
.form-card__close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: var(--radius-md);
  background: var(--milk);
  color: var(--slate-deep);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background var(--duration-fast) var(--easing);
}
.form-card__close:hover { background: var(--silver-light); }
.form-card__head { padding-right: 56px; }
.form-card__head { flex: 1 1 260px; min-width: 0; display: flex; flex-direction: column; gap: 12px; }
.form-card__head .h3 { font-weight: 800; font-size: 24px; line-height: 1.2; }
.form-card__head p { font-size: 16px; line-height: 1.5; color: var(--text-muted); }

.form { flex: 2 1 420px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.form[hidden] { display: none; }
.form__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.field { display: flex; flex-direction: column; gap: 8px; font-weight: 600; font-size: 14px; }
.field input {
  min-height: 48px;
  padding: 0 14px;
  border: 2px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--white);
  font-family: var(--font-text);
  font-size: 16px;
  color: var(--text);
  width: 100%;
}
.field input:focus { outline: none; border-color: var(--slate-deep); }
.field input[aria-invalid="true"] { border-color: #a3362a; }
.field__error { font-weight: 600; font-size: 13px; color: #a3362a; }
.field__error:empty { display: none; }

.fieldset { margin: 0; padding: 0; border: 0; display: flex; flex-direction: column; gap: 10px; }
.fieldset legend { padding: 0 0 10px; font-weight: 700; font-size: 15px; }
.radio-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 8px; }
.radio {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 48px;
  padding: 0 14px;
  border-radius: var(--radius-md);
  background: var(--milk);
  font-size: 15px;
  cursor: pointer;
}
.radio input, .check input { width: 20px; height: 20px; margin: 0; accent-color: var(--slate-deep); flex: none; }
.checks { display: flex; flex-direction: column; gap: 12px; }
.check { display: flex; align-items: flex-start; gap: 12px; font-size: 15px; line-height: 1.45; cursor: pointer; }
.check input { margin-top: 1px; }
.check a { font-weight: 600; }
.form__submit { align-self: flex-start; padding: 0 32px; }

.form-success {
  flex: 2 1 420px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
  background: var(--milk);
  border-radius: var(--radius-lg);
  padding: 28px;
}
.form-success[hidden] { display: none; }
.form-success p { font-size: 17px; line-height: 1.55; }
.form-success .num { font-family: var(--font-text); font-size: 20px; }

/* ---------- Method ---------- */

.steps { display: flex; flex-direction: column; gap: 14px; counter-reset: step; }
.steps li { display: flex; gap: 14px; align-items: center; font-size: 16px; line-height: 1.45; }
.method-limits .h3 { color: var(--saffron); }
.next-link {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 14px;
  min-height: 44px;
  font-weight: 700;
  font-size: 18px;
  line-height: 1.45;
  color: var(--slate-deep);
  text-decoration: none;
}
.next-link .num { background: var(--slate); font-family: var(--font-text); font-size: 18px; }

/* ---------- Participants ---------- */

.participants { padding: clamp(48px, 6vw, 72px) var(--gutter); }
.participants__inner {
  max-width: var(--container);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: clamp(20px, 4vw, 56px);
  align-items: flex-start;
}
.participants__head { flex: 1 1 320px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.participants__head .h2 { font-size: clamp(24px, 2.6vw, 32px); }
.participants__body { flex: 2 1 480px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.callout {
  background: var(--milk);
  border-radius: var(--radius-lg);
  padding: 20px 24px;
  font-weight: 600;
  font-size: 16px;
  line-height: 1.5;
  color: var(--slate-deep);
}

/* ---------- Second wave ---------- */

.wave2 { padding: clamp(56px, 8vw, 112px) var(--gutter); }
.wave2 .container { gap: clamp(32px, 4vw, 48px); }
.wave2-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: clamp(40px, 6vw, 96px);
}
.wave2-col { display: flex; flex-direction: column; gap: 24px; }

/* What we test: light numbered list, no cards */
.q-list { display: flex; flex-direction: column; gap: 20px; }
.q-list li { display: flex; gap: 20px; align-items: baseline; font-size: 17px; line-height: 1.5; color: var(--silver-light); }
.q-list__num { flex: none; width: 32px; font-family: var(--font-display); font-weight: 700; font-size: 16px; color: var(--saffron); }

/* Who can take part: one survey for all roles */
.survey__roles { display: flex; flex-direction: column; gap: 20px; }
.survey__role { display: flex; flex-direction: column; gap: 4px; }
.survey__role-title { font-weight: 700; font-size: 17px; line-height: 1.4; color: var(--milk); }
.survey__role-text { font-size: 15px; line-height: 1.5; color: var(--slate-pale); }
.survey__hint { display: flex; gap: 12px; align-items: baseline; font-size: 15px; line-height: 1.5; color: var(--silver-light); }
.survey__hint-arrow { flex: none; font-weight: 700; color: var(--saffron); }

/* Survey CTA: one light bar */
.survey-cta { display: flex; flex-direction: column; gap: 16px; }
.survey-bar {
  background: var(--milk);
  border-radius: var(--radius-lg);
  padding: clamp(24px, 3vw, 32px) clamp(24px, 3vw, 40px);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 24px clamp(24px, 4vw, 56px);
}
.survey__facts { display: flex; flex-wrap: wrap; gap: 16px clamp(24px, 4vw, 48px); }
.survey__facts li { display: flex; flex-direction: column; gap: 4px; }
.survey__fact-value { font-family: var(--font-display); font-weight: 800; font-size: 32px; line-height: 1; color: var(--slate-deep); white-space: nowrap; }
.survey__fact-label { font-weight: 600; font-size: 13px; line-height: 1.4; color: var(--text-muted); }
.survey__perk { flex: 1 1 220px; font-weight: 700; font-size: 17px; line-height: 1.4; color: var(--text); }
.survey-bar__btn { min-height: 56px; padding: 0 32px; white-space: nowrap; }
.survey__note { font-size: 14px; line-height: 1.5; color: var(--slate-pale); }

/* ---------- Author ---------- */

.author__inner {
  max-width: var(--container);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}
.author__photo {
  flex: 0 1 360px;
  min-width: 240px;
  aspect-ratio: 4 / 5;
  background: var(--slate);
  border-radius: var(--radius-lg);
  position: relative;
  overflow: hidden;
  margin: 0;
}
.author__photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.author__badge {
  position: absolute;
  left: 20px;
  bottom: 20px;
  background: var(--accent);
  color: var(--on-accent);
  border-radius: var(--radius-sm);
  padding: 6px 12px;
  font-weight: 700;
  font-size: 14px;
}
.author__copy { flex: 1 1 420px; min-width: 0; display: flex; flex-direction: column; gap: 20px; max-width: 640px; }
.author__name { display: flex; flex-direction: column; gap: 8px; }
.author__name .h2 { font-size: clamp(28px, 3.2vw, 40px); line-height: 1.15; }
.author__role { font-weight: 700; font-size: 16px; line-height: 1.45; color: var(--slate); }
.author__bio { font-size: 17px; line-height: 1.6; }
.author__more { font-size: 15px; line-height: 1.5; color: var(--text-muted); }
.author__more a { font-weight: 600; }
.author__links { display: flex; flex-wrap: wrap; gap: 12px; }
.author__kicker--mobile { display: none; }

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

.faq { display: flex; flex-direction: column; gap: 10px; }
.faq details { background: var(--milk); border-radius: var(--radius-lg); padding: 0 24px; }
.faq summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 64px;
  padding: 12px 0;
  font-weight: 700;
  font-size: 17px;
  line-height: 1.4;
  color: var(--slate-deep);
}
.faq summary::-webkit-details-marker { display: none; }
.faq__plus {
  flex: none;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-md);
  background: var(--accent);
  color: var(--on-accent);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 150ms ease;
}
.faq details[open] .faq__plus { transform: rotate(45deg); }
.faq details p { padding: 0 0 22px; font-size: 16px; line-height: 1.6; }

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

.site-footer { background: var(--graphite); padding: clamp(48px, 6vw, 72px) var(--gutter) 40px; }
.site-footer .container { gap: 40px; }
.site-footer__top { display: flex; flex-wrap: wrap; gap: 32px 64px; justify-content: space-between; }
.site-footer__col { min-width: 0; display: flex; flex-direction: column; gap: 12px; }
.site-footer__col--main { flex: 2 1 420px; }
.site-footer__col--contacts { flex: 1 1 240px; }
.site-footer__brand { font-family: var(--font-display); font-weight: 800; font-size: 18px; color: var(--milk); }
.site-footer__cite { font-size: 15px; line-height: 1.55; color: var(--silver-light); }
.site-footer__links { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.site-footer__links a,
.site-footer__links span { display: inline-flex; align-items: center; min-height: 44px; font-weight: 600; font-size: 16px; color: var(--milk); }
.site-footer__links a:hover { color: var(--saffron); }
.site-footer__bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 32px;
  justify-content: space-between;
  align-items: center;
  padding-top: 24px;
  border-top: 4px solid var(--graphite-line);
}
.site-footer__bottom a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 600; font-size: 14px; color: var(--silver-light); }
.site-footer__bottom a:hover { color: var(--saffron); }
.site-footer__copy { font-weight: 600; font-size: 14px; color: var(--slate-pale); }

/* =========================================================
   Mobile (≤ 720px) — matches the 390px artboard
   ========================================================= */

@media (max-width: 720px) {
  :root { --header-h: 64px; }

  .site-nav { display: none; }
  .site-header__inner { gap: 12px; }
  .logo { font-size: 16px; }
  .site-header .btn--sm { padding: 0 16px; font-size: 14px; }

  .br-desktop { display: none; }

  .kicker { font-size: 13px; }
  .lead { font-size: 17px; line-height: 1.5; }
  .h2 { font-size: 26px; line-height: 1.25; }
  .h2--on-dark { font-size: 28px; }
  .mark { padding: 0 6px; }

  .section { padding: 48px 16px; }
  .container { gap: 20px; }
  .section-head { gap: 12px; padding: 0 8px; }

  /* Hero */
  .hero { padding: 24px 24px 48px; }
  .hero__inner { gap: 20px; }
  .hero__copy { gap: 20px; }
  .tag--lg { padding: 6px 14px; font-size: 12px; }
  .h1 { font-size: 30px; }
  .hero__lead { font-size: 17px; }
  .hero__actions { flex-direction: column; gap: 10px; padding-top: 4px; }
  .hero__actions .btn { width: 100%; }
  .hero__note { text-align: center; }

  .covers { flex: 1 1 100%; max-width: none; height: 300px; margin-top: 12px; }
  .cover { padding: 16px; }
  .cover__top { gap: 8px; }
  .cover__kicker { font-size: 9px; }
  .cover__meta { font-size: 10px; }
  .cover--full { right: 8px; width: 176px; box-shadow: 0 12px 32px rgba(27, 49, 56, 0.16); }
  .cover--full .cover__title { font-size: 13px; line-height: 1.25; }
  .cover--visual { left: 8px; width: 186px; box-shadow: 0 16px 40px rgba(27, 49, 56, 0.28); }
  .cover--visual .cover__title { font-size: 17px; line-height: 1.2; }
  .cover__bottom { gap: 6px; }
  .cover__bar { width: 40px; margin-bottom: 0; }
  .cover__author { display: none; }

  /* Stats: 2-col grid, hero number and range span both */
  .stats { padding: 40px 16px; }
  .stats__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .stat { min-height: 0; padding: 20px; gap: 10px; justify-content: flex-start; }
  .stat__value { font-size: 48px; }
  .stat__label { font-size: 14px; line-height: 1.35; }
  .stat--hero {
    grid-column: span 2;
    padding: 24px;
    flex-direction: row;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
  }
  .stat--hero .stat__value { font-size: 88px; padding-left: 44px; text-shadow: -22px 0 0 var(--slate-mist), -44px 0 0 var(--slate); }
  .stat--hero .stat__label { font-size: 16px; text-align: right; padding-bottom: 6px; }
  .stat--range { grid-column: span 2; padding: 20px 24px; gap: 8px; }
  .stat__value--range { font-size: 26px; }
  .stat--range .stat__label { font-size: 15px; }

  /* Audience */
  .card--lg { padding: 24px; gap: 18px; }
  .audience .h3 { font-size: 20px; line-height: 1.3; }
  .ring-list { gap: 14px; }
  .ring-list li { font-size: 16px; }
  .audience .kicker { margin: 0 8px; }

  /* Findings: number left, text right */
  .findings { gap: 10px; }
  .finding { flex-direction: row; gap: 14px; padding: 20px; align-items: flex-start; }
  .finding .num { width: 40px; height: 40px; }
  .finding__body { gap: 8px; }
  .finding h3 { font-size: 16px; line-height: 1.35; }
  .finding p { font-size: 15px; line-height: 1.5; }

  /* Chart: labels above bars, note below */
  .chart-card { padding: 24px 20px; gap: 18px; flex-direction: column; align-items: stretch; }
  .chart-card__head { flex: none; }
  .chart-card__head .h3 { font-size: 18px; }
  .chart-card__note--desktop { display: none; }
  .chart-card__note--mobile { display: block; font-size: 13px; }
  .chart { flex: none; }
  .chart__row { grid-template-columns: 1fr; gap: 6px; }
  .chart__label { font-size: 14px; }
  .chart__track { gap: 10px; }
  .chart__bar { height: 28px; }
  .link-arrow { margin: 0 8px; font-size: 16px; gap: 8px; }

  /* Report */
  .report-card { padding: 24px; gap: 16px; }
  .report-card__title { gap: 6px; }
  .report-card__title .h3 { font-size: 22px; }
  .report-card p { font-size: 16px; }
  .check-list { gap: 8px; }
  .check-list li { font-size: 15px; gap: 10px; }
  .form-card { padding: 24px; gap: 20px; }
  .form-card__close { top: 12px; right: 12px; }
  .form-card__head .h3 { font-size: 22px; }
  .form__submit { align-self: stretch; }

  /* Method */
  .card--md { padding: 24px; gap: 16px; }
  .next-link { margin: 0 8px; font-size: 16px; }

  /* Participants */
  .participants { padding: 40px 24px; }
  .participants__inner { gap: 14px; }
  .participants__head, .participants__body { flex-basis: 100%; gap: 14px; }
  .participants__head .h2 { font-size: 24px; line-height: 1.3; }

  /* Wave 2 */
  .wave2 { padding: 48px 16px; }
  .wave2 .container { gap: 36px; }
  .wave2-grid { gap: 36px; padding: 0 8px; }
  .wave2-col { gap: 18px; }
  .q-list { gap: 16px; }
  .q-list li { gap: 16px; font-size: 16px; }
  .q-list__num { width: 28px; }
  .survey__roles { gap: 16px; }
  .survey__role-title { font-size: 16px; }
  .survey-bar { flex-direction: column; align-items: stretch; padding: 24px 20px; gap: 20px; }
  .survey__fact-value { font-size: 24px; }
  .survey__perk { flex: none; font-size: 16px; }
  .survey-bar__btn { width: 100%; min-height: 52px; }
  .survey__note { padding: 0 8px; }

  /* Author: kicker above photo */
  .author { padding: 48px 24px; }
  .author__inner { gap: 18px; }
  .author__kicker--mobile { display: block; flex-basis: 100%; }
  .author__kicker--desktop { display: none; }
  .author__photo { flex: 1 1 100%; min-width: 0; }
  .author__badge { left: 16px; bottom: 16px; padding: 6px 10px; font-size: 13px; }
  .author__copy { gap: 18px; }
  .author__role { font-size: 15px; }
  .author__bio { font-size: 16px; }
  .author__links .btn { flex: 1 1 0; }

  /* FAQ */
  .faq details { padding: 0 20px; }
  .faq summary { font-size: 16px; }
  .faq details p { font-size: 15px; }

  /* Footer */
  .site-footer { padding: 40px 24px 32px; }
  .site-footer .container { gap: 28px; }
  .site-footer__top { gap: 28px; }
  .site-footer__col { flex-basis: 100%; gap: 8px; }
  .site-footer__brand { font-size: 17px; }
  .site-footer .kicker { font-size: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}

/* ---------- Legal page (privacy.html) ---------- */

.legal { max-width: 760px; gap: 40px; }
.legal__back {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
}
.legal .h2 { font-size: clamp(26px, 3vw, 36px); }
.legal__block { display: flex; flex-direction: column; gap: 14px; }
.legal__block p { font-size: 17px; line-height: 1.6; }
.legal__block strong { color: var(--slate-deep); }
.legal + .site-footer, .site-footer .site-footer__bottom:only-child { border-top: 0; padding-top: 0; }

/* Placeholder to fill before publishing */
.todo {
  background: var(--silver-light);
  border-radius: var(--radius-sm);
  padding: 0 4px;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

/* Form & FAQ inline links */
.form .muted a, .faq a { font-weight: 600; }

/* Legal page lists & links */
.legal__list { list-style: disc; padding-left: 22px; display: flex; flex-direction: column; gap: 10px; }
.legal__list li { font-size: 17px; line-height: 1.6; }
.legal__list li::marker { color: var(--slate); }
.legal__links { font-size: 15px !important; color: var(--text-muted); }
.legal__links a { font-weight: 600; }
.legal__inline-btn {
  padding: 0; border: 0; background: none; font: inherit; color: var(--slate-deep);
  text-decoration: underline; cursor: pointer;
}

/* Footer button (cookie settings) */
.site-footer__btn {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0; border: 0; background: none;
  font-family: var(--font-text); font-weight: 600; font-size: 14px; color: var(--silver-light);
  text-decoration: underline; cursor: pointer;
}
.site-footer__btn:hover { color: var(--saffron); }
[hidden] { display: none !important; }

/* Cookie banner */
.cookie-banner {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 20;
  max-width: 720px;
  margin: 0 auto;
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: 0 6px 18px rgba(27, 49, 56, 0.16);
  padding: 20px 24px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 24px;
}
.cookie-banner__text { flex: 1 1 320px; font-size: 15px; line-height: 1.5; }
.cookie-banner__text a { font-weight: 600; }
.cookie-banner__actions { display: flex; flex-wrap: wrap; gap: 8px; }
@media (max-width: 720px) {
  .cookie-banner { left: 8px; right: 8px; bottom: 8px; padding: 16px; }
  .cookie-banner__actions { width: 100%; }
  .cookie-banner__actions .btn { flex: 1 1 0; }
}
