/* The Global AI Survey - site styles, based on the identity set */

:root {
  --navy: #16263A;        /* Ink Navy: type and dark backgrounds */
  --paper: #F5F2EA;       /* Warm Paper: background and surfaces */
  --paper-deep: #E7E3D9;  /* Alternate section background */
  --slate: #2F6E92;       /* Slate Blue: fundraisers */
  --ochre: #D99A2B;       /* Ochre: donors */
  --ochre-deep: #9A6410;  /* Small ochre text on paper */
  --plum: #5B2A4E;        /* Emphasis, pull-quotes */
  --body: #46515F;        /* Body text */
  --muted: #5A5548;       /* Labels */
  --line: #D8D3C5;        /* Borders */
  --card: #FBF9F4;        /* Card surface */
  --radius: 16px;
  --max: 1120px;
  --font: "Outfit", "Avenir Next", "Segoe UI", sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 18px;
  font-weight: 400;
  line-height: 1.6;
  color: var(--body);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

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

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

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

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

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--navy);
  color: var(--paper);
  padding: 8px 16px;
  z-index: 100;
}
.skip-link:focus { left: 16px; top: 16px; }

h1, h2, h3 { color: var(--navy); font-weight: 800; letter-spacing: -0.02em; }

/* Lockup (mark + wordmark) */
.lockup {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
}
.lockup img { width: 54px; height: auto; flex: none; }
.lockup .words { display: flex; flex-direction: column; gap: 3px; }
.lockup .kicker {
  font-weight: 700;
  font-size: 9.5px;
  letter-spacing: 0.3em;
  line-height: 1;
  color: var(--plum);
}
.lockup .name {
  font-weight: 800;
  font-size: 24px;
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--navy);
}
.lockup.reversed .kicker { color: var(--ochre); }
.lockup.reversed .name { color: var(--paper); }

/* Header */
.site-header {
  border-bottom: 1px solid var(--line);
  background: var(--paper);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 80px;
  gap: 16px;
}
.header-links a {
  color: var(--navy);
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  margin-left: 24px;
}
.header-links a:hover { color: var(--slate); }

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
  padding: 88px 0 120px;
}
.hero .wrap { position: relative; z-index: 1; }
.hero-mark {
  position: absolute;
  right: -180px;
  bottom: -170px;
  width: 760px;
  opacity: 0.95;
  pointer-events: none;
}
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.3em;
  font-size: 13px;
  font-weight: 700;
  color: var(--plum);
  margin: 0 0 18px;
}
.hero h1 {
  font-size: clamp(40px, 6vw, 72px);
  line-height: 1.04;
  letter-spacing: -0.03em;
  margin: 0 0 20px;
  max-width: 15ch;
}
.tagline {
  display: inline-block;
  font-size: clamp(19px, 2.2vw, 24px);
  font-weight: 500;
  color: var(--body);
  padding-top: 14px;
  border-top: 2px solid var(--ochre);
  margin: 0 0 28px;
}
.hero p.lead {
  font-size: clamp(17px, 1.9vw, 19px);
  max-width: 54ch;
  margin: 0 0 36px;
}
.cta-row { display: flex; flex-wrap: wrap; gap: 14px; }
.btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 15px 26px 15px 20px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 17px;
  text-decoration: none;
  transition: transform 0.15s ease, filter 0.15s ease;
}
.btn:hover { transform: translateY(-1px); filter: brightness(1.06); }
.btn-fundraiser { background: var(--slate); color: var(--paper); }
.btn-fundraiser:hover { color: var(--paper); }
.btn-donor { background: var(--ochre); color: var(--navy); }
.btn-donor:hover { color: var(--navy); }

/* Two overlapping dots used on buttons and edition pills */
.dots { display: inline-flex; align-items: center; flex: none; }
.dots span { width: 14px; height: 14px; border-radius: 999px; }
.dots span + span { margin-left: -5px; }
.dots.fundraiser span:first-child { background: var(--paper); }
.dots.fundraiser span:last-child { background: #E2D9C4; }
.dots.donor span:first-child { background: #E2D9C4; }
.dots.donor span:last-child { background: var(--navy); }
.dots.both span:first-child { background: var(--slate); }
.dots.both span:last-child { background: var(--ochre); }

.pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px 8px 13px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.08em;
  line-height: 1;
  text-transform: uppercase;
}
.pill.fundraiser { background: var(--slate); color: var(--paper); }
.pill.donor { background: var(--ochre); color: var(--navy); }
.pill.both { background: var(--navy); color: var(--paper); }

/* Sections */
section { padding: 88px 0; }
section.alt { background: var(--paper-deep); }
h2 {
  font-size: clamp(30px, 3.8vw, 42px);
  line-height: 1.12;
  margin: 0 0 20px;
}
h3 { font-size: 22px; margin: 0 0 8px; }
.label {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  margin: 0 0 12px;
}
.section-intro { max-width: 66ch; margin: 0 0 40px; }
.prose { max-width: 66ch; }
.prose p { margin: 0 0 18px; }
.pull {
  font-size: clamp(22px, 2.6vw, 28px);
  font-weight: 600;
  line-height: 1.3;
  color: var(--plum);
  max-width: 30ch;
  margin: 8px 0 0;
}

.why-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 56px;
  align-items: start;
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
}
.card .num {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--ochre-deep);
  margin-bottom: 14px;
}
.card p { margin: 0; }

/* Choose your survey */
.choose {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}
.choice {
  display: flex;
  flex-direction: column;
  gap: 16px;
  text-decoration: none;
  color: var(--body);
  background: var(--card);
  border: 1px solid var(--line);
  border-top-width: 6px;
  border-radius: var(--radius);
  padding: 32px;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.choice.fundraiser { border-top-color: var(--slate); }
.choice.donor { border-top-color: var(--ochre); }
.choice:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(22, 38, 58, 0.08);
  color: var(--body);
}
.choice h3 { font-size: 26px; margin: 0; }
.choice p { margin: 0; }
.choice .go { font-weight: 600; color: var(--navy); margin-top: auto; }
.choice .pill { align-self: flex-start; }

/* Partners */
.logos {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 24px;
  align-items: center;
}
.logo-tile {
  background: transparent;
  border-radius: var(--radius);
  height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.logo-tile img { max-height: 72px; width: auto; object-fit: contain; }

/* Notice */
.notice {
  border-left: 4px solid var(--plum);
  background: var(--card);
  padding: 22px 26px;
  border-radius: 0 var(--radius) var(--radius) 0;
  max-width: 72ch;
}
.notice p { margin: 0 0 10px; }
.notice p:last-child { margin: 0; }

/* Footer */
.site-footer {
  background: var(--navy);
  color: #D6DAE0;
  padding: 56px 0 40px;
  font-size: 15px;
}
.site-footer a { color: var(--paper); }
.footer-top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  margin-bottom: 32px;
}
.footer-links a { margin-left: 20px; }
.footer-meta {
  border-top: 1px solid rgba(245, 242, 234, 0.18);
  padding-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.ack { font-size: 13px; color: #A9B2BE; max-width: 90ch; margin: 0; }

/* Survey pages */
body.survey-page {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100dvh;
}
.survey-bar { background: var(--navy); color: var(--paper); }
.survey-bar .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 64px;
  gap: 16px;
  max-width: none;
}
.survey-bar .lockup img { width: 40px; }
.survey-bar .lockup .name { font-size: 19px; }
.survey-bar .right { display: flex; align-items: center; gap: 18px; }
.survey-bar .switch { color: #D6DAE0; font-size: 14px; }
.survey-embed { flex: 1; display: flex; }
.survey-embed > div { flex: 1; width: 100%; min-height: 560px; }

/* Legal page */
.legal { padding: 72px 0; }
.legal .prose { max-width: 72ch; }

@media (max-width: 860px) {
  .why-grid { grid-template-columns: 1fr; gap: 24px; }
  .hero-mark { width: 520px; right: -200px; bottom: -150px; opacity: 0.35; }
}

@media (max-width: 640px) {
  body { font-size: 17px; }
  .hero { padding: 56px 0 96px; }
  section { padding: 60px 0; }
  .header-links { display: none; }
  .btn { width: 100%; justify-content: center; }
  .logos { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .logo-tile { height: 96px; }
  .survey-bar .switch { display: none; }
  .footer-links a { margin: 0 16px 0 0; }
}

/* Landing page: one-screen hero with the partner row pinned to the bottom */
.hero-home {
  display: flex;
  padding: 0;
  min-height: calc(100vh - 81px);
  min-height: calc(100svh - 81px);
}
.hero-home .wrap {
  display: flex;
  flex-direction: column;
  padding-top: clamp(24px, 5.5vh, 64px);
  padding-bottom: clamp(20px, 3.5vh, 40px);
}
.hero-home .hero-copy { max-width: 700px; padding-bottom: 32px; }
.hero-home .eyebrow { margin-bottom: 12px; }
.hero-home h1 {
  font-size: clamp(34px, min(4.2vw, 6.4vh), 52px);
  line-height: 1.06;
  max-width: none;
  margin-bottom: 16px;
  text-wrap: balance;
}
.hero-home .tagline {
  font-size: clamp(18px, 1.7vw, 21px);
  padding-top: 12px;
  margin-bottom: 16px;
}
.hero-home p.lead {
  font-size: 17px;
  line-height: 1.55;
  max-width: none;
  margin-bottom: 24px;
}
.hero-note {
  font-size: 14px;
  line-height: 1.5;
  color: var(--muted);
  margin: 16px 0 0;
}
.hero-note a { color: inherit; }
.hero-note a:hover { color: var(--navy); }
.hero-partners {
  max-width: 700px;
  margin-top: auto;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}
.partners-label {
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  margin: 0 0 12px;
}
.hero-logos {
  display: flex;
  flex-wrap: wrap; /* one line on laptops; wraps on phones and narrow windows */
  align-items: center;
  gap: 16px 40px;
}
.hero-logos { --logo-h: 42px; }
.hero-logos img { height: var(--logo-h); width: auto; flex: none; }
/* Long, tightly cropped wordmarks (e.g. Funraisin) sit smaller so they carry the same visual weight */
.hero-logos img.wordmark { height: calc(var(--logo-h) * 0.62); }
.hero-home .hero-mark {
  /* Starts just right of the copy column and scales with the window,
     so the blue, plum and ochre all stay in view. */
  left: calc(50% + 200px);
  right: auto;
  top: 50%;
  bottom: auto;
  transform: translateY(-50%);
  width: min(760px, calc((50vw - 200px) * 1.15));
  max-width: none;
}

/* Shorter laptop windows: tighten so the buttons, note and logos stay on one screen */
@media (min-width: 641px) and (max-height: 740px) {
  .hero-home .hero-copy { padding-bottom: 20px; }
  .hero-home .eyebrow { margin-bottom: 8px; }
  .hero-home h1 { margin-bottom: 12px; }
  .hero-home .tagline { font-size: 18px; padding-top: 10px; margin-bottom: 12px; }
  .hero-home p.lead { font-size: 16px; margin-bottom: 18px; }
  .hero-home .btn { padding-top: 12px; padding-bottom: 12px; }
  .hero-note { margin-top: 12px; }
  .hero-partners { padding-top: 14px; }
  .partners-label { margin-bottom: 8px; }
  .hero-logos { --logo-h: 38px; }
}

/* Narrower screens: fade the mark right back so it never sits behind the copy */
@media (max-width: 1199px) {
  .hero-home .hero-mark {
    left: auto;
    right: -200px;
    width: 620px;
    opacity: 0.15;
  }
}

/* Mobile: the page scrolls naturally */
@media (max-width: 640px) {
  .hero-home { min-height: 0; }
  .hero-home .wrap { padding-top: 32px; padding-bottom: 32px; }
  .hero-home .hero-copy { padding-bottom: 36px; }
  .hero-home h1 { font-size: 34px; }
  .hero-home .hero-mark { width: 520px; }
  .hero-logos { gap: 12px 24px; }
  .hero-logos { --logo-h: 34px; }
}
