/*
 * move.wales — post-launch marketing site
 *
 * 9 alternating Charcoal / Warm-White section bands. Single Poppins family
 * loaded from Google Fonts. Atmospheric blobs are scoped to the hero only
 * (not body-fixed) so they don't bleed through alternating backgrounds.
 *
 * Tokens live in :root. The `.band` primitive is the workhorse — every
 * section is a full-width coloured band with a centred max-width inner.
 */

:root {
  /* Named brand tokens */
  --charcoal:    #1A1A2E;
  --forest:      #1B6B3A;
  --emerald:     #2D9B5E;
  --dragon-red:  #D42B2B;
  --white:       #FFFFFF;
  --warm-white:  #F8F6F3;

  /* Semantic aliases */
  --bg-dark:        var(--charcoal);
  --bg-light:       var(--warm-white);
  --ink-on-dark:    var(--warm-white);
  --ink-on-light:   var(--charcoal);
  --muted-on-dark:  rgba(248, 246, 243, 0.62);
  --muted-on-light: rgba(26, 26, 46, 0.62);
  --rule-on-dark:   rgba(248, 246, 243, 0.12);
  --rule-on-light:  rgba(26, 26, 46, 0.14);

  --accent-primary: var(--dragon-red);
  --accent-headers: var(--forest);
  --accent-hover:   var(--emerald);

  /* Type */
  --font-display: "Poppins", system-ui, -apple-system, "Segoe UI", "Helvetica Neue", Arial, sans-serif;

  /* Layout */
  --content-max:  1100px;
  --gutter:       clamp(1.25rem, 4vw, 2rem);
  --band-py:      clamp(3.5rem, 8vw, 6rem);
  --band-py-tight: clamp(1.75rem, 4vw, 2.5rem);
}

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

html,
body { margin: 0; padding: 0; }

body {
  background: var(--bg-dark);
  color: var(--ink-on-dark);
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 17px;
  line-height: 1.65;
  font-feature-settings: "kern" 1, "liga" 1;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
  overflow-x: hidden;
}

/* ----- Headings ------------------------------------------------------- */

h1, h2, h3 {
  margin: 0 0 0.65em;
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.022em;
  text-wrap: balance;
}

h1 {
  font-size: clamp(2.4rem, 6.5vw, 4rem);
  font-weight: 800;
  letter-spacing: -0.028em;
}

h2 {
  font-size: clamp(1.85rem, 4vw, 2.6rem);
}

h3 {
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: -0.012em;
  line-height: 1.25;
}

p {
  margin: 0 0 1.2rem;
  text-wrap: pretty;
}

a { color: inherit; }

/* ----- Band primitive ------------------------------------------------- */

.band {
  padding: var(--band-py) var(--gutter);
}

.band--dark {
  background: var(--bg-dark);
  color: var(--ink-on-dark);
}

.band--light {
  background: var(--bg-light);
  color: var(--ink-on-light);
}

.band__inner {
  max-width: var(--content-max);
  margin: 0 auto;
}

.band__inner > .cta {
  margin-top: clamp(1.5rem, 3vw, 2rem);
}

/* ----- Eyebrow / lede / footnote ------------------------------------- */

.eyebrow {
  margin: 0 0 1.25rem;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-hover);
  max-width: 38em;
}

.lede {
  margin: 0 0 1.75rem;
  max-width: 42em;
  font-size: clamp(1.05rem, 1.6vw, 1.18rem);
  font-weight: 300;
  line-height: 1.55;
  color: rgba(248, 246, 243, 0.82);
}

.band--light .lede {
  color: rgba(26, 26, 46, 0.78);
}

.footnote {
  margin: 0;
  font-size: 0.85rem;
  font-weight: 300;
  color: var(--muted-on-dark);
}

.band--light .footnote {
  color: var(--muted-on-light);
}

/* ----- CTAs ----------------------------------------------------------- */

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin: 0 0 1.5rem;
}

.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  min-height: 56px;
  padding: 0.95rem 1.5rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.88rem;
  letter-spacing: 0.08em;
  line-height: 1.2;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--white);
  border: 0;
  border-radius: 2px;
  transition: background 220ms ease, transform 220ms ease;
}

.cta--primary { background: var(--dragon-red); }
.cta--primary:hover,
.cta--primary:focus-visible { background: #b81f1f; }

.cta--secondary { background: var(--forest); }
.cta--secondary:hover,
.cta--secondary:focus-visible { background: var(--accent-hover); }

.cta:focus-visible {
  outline: 2px solid var(--accent-hover);
  outline-offset: 3px;
}

.cta__arrow {
  font-size: 1.1em;
  line-height: 1;
  transition: transform 220ms ease;
}

.cta:hover .cta__arrow,
.cta:focus-visible .cta__arrow {
  transform: translateX(3px);
}

/* ----- Brand mark ----------------------------------------------------- */

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  color: inherit;
}

.brand__logo {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  display: block;
}

.brand__name {
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.008em;
}

.brand:focus-visible {
  outline: 2px solid var(--accent-hover);
  outline-offset: 4px;
  border-radius: 2px;
}

/* ----- §1 Hero -------------------------------------------------------- */

.hero {
  position: relative;
  overflow: hidden;
  padding-top: clamp(2rem, 4vw, 3rem);
  padding-bottom: clamp(4rem, 9vw, 6.5rem);
}

.hero__blobs {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.hero__inner {
  position: relative;
  z-index: 1;
}

.hero__masthead {
  margin-bottom: clamp(3rem, 8vw, 5rem);
}

.hero__footnote {
  margin-top: 1.25rem;
}

.blob {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  will-change: transform;
}

.blob--forest {
  top: -140px;
  right: -160px;
  width: 640px;
  height: 640px;
  background: radial-gradient(circle at 42% 42%, var(--forest) 0%, transparent 65%);
  opacity: 0.7;
  filter: blur(56px);
  animation: drift-a 24s ease-in-out infinite alternate;
}

.blob--red {
  bottom: -200px;
  left: -180px;
  width: 480px;
  height: 480px;
  background: radial-gradient(circle at 58% 42%, var(--dragon-red) 0%, transparent 62%);
  opacity: 0.32;
  filter: blur(72px);
  animation: drift-b 28s ease-in-out infinite alternate;
}

/* ----- §2 Backers (social proof bar) ---------------------------------- */

.backers {
  padding: var(--band-py-tight) var(--gutter);
  background: var(--bg-dark);
  color: var(--ink-on-dark);
  border-top: 1px solid var(--rule-on-dark);
  border-bottom: 1px solid var(--rule-on-dark);
}

.backers__inner {
  max-width: var(--content-max);
  margin: 0 auto;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
}

.backers__label {
  margin: 0;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted-on-dark);
}

.backers__list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 0.9rem;
}

.backers__list li {
  font-weight: 500;
  font-size: 0.95rem;
  white-space: nowrap;
}

.backers__list li:not(:last-child)::after {
  content: "·";
  color: var(--muted-on-dark);
  margin-left: 0.65rem;
}

/* ----- §3 Problem ----------------------------------------------------- */

.problem__intro {
  margin-bottom: clamp(2.5rem, 6vw, 3.5rem);
  max-width: 36em;
}

.problem__subhead {
  margin: 0;
  font-size: clamp(1.05rem, 1.6vw, 1.2rem);
  font-weight: 300;
  color: rgba(26, 26, 46, 0.7);
}

.problem__stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.5rem, 3vw, 2.5rem);
  margin: 0 0 clamp(2.5rem, 6vw, 3.5rem);
  padding: clamp(1.75rem, 4vw, 2.5rem) 0;
  border-top: 1px solid var(--rule-on-light);
  border-bottom: 1px solid var(--rule-on-light);
}

@media (max-width: 720px) {
  .problem__stats {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

.stat { margin: 0; }

.stat__number {
  display: block;
  font-size: clamp(2.5rem, 5.5vw, 3.6rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.028em;
  color: var(--accent-hover);
  margin-bottom: 0.55rem;
}

.stat__label {
  display: block;
  margin: 0;
  font-size: 0.98rem;
  font-weight: 500;
  line-height: 1.45;
  color: var(--ink-on-light);
  max-width: 22ch;
}

.problem__closing {
  margin: 0;
  font-size: clamp(1.1rem, 1.8vw, 1.3rem);
  font-weight: 600;
  color: var(--accent-headers);
  max-width: 36em;
}

/* ----- §4 What is Move Wales ----------------------------------------- */

.whatis__body {
  max-width: 38em;
  margin-bottom: 0;
}

.whatis__body p {
  font-size: clamp(1rem, 1.3vw, 1.08rem);
  line-height: 1.7;
  color: rgba(248, 246, 243, 0.88);
}

/* ----- §5 Principles -------------------------------------------------- */

.principles__intro {
  margin-bottom: clamp(2.5rem, 6vw, 3.5rem);
  max-width: 36em;
}

.principles__grid {
  list-style: none;
  padding: 0;
  margin: 0 0 clamp(2.75rem, 6vw, 4rem);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

@media (max-width: 920px) {
  .principles__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 560px) {
  .principles__grid {
    grid-template-columns: 1fr;
  }
}

.principle {
  padding: clamp(1.5rem, 3vw, 1.9rem);
  color: var(--white);
  border-radius: 2px;
}

.principle:nth-child(odd)  { background: var(--dragon-red); }
.principle:nth-child(even) { background: var(--charcoal); }

.principle__title {
  margin: 0 0 0.55rem;
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: -0.008em;
  color: var(--white);
}

.principle__title em {
  font-style: normal;
  font-weight: 400;
  opacity: 0.72;
}

.principle__desc {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.85);
}

.principles__pinned {
  margin: 0;
  font-size: clamp(1.15rem, 1.8vw, 1.35rem);
  font-weight: 700;
  color: var(--accent-headers);
  text-align: center;
}

.principles__pinned em {
  font-style: normal;
  color: var(--accent-hover);
}

/* ----- §6 What you get ------------------------------------------------ */

.whatyouget h2 {
  margin-bottom: clamp(2rem, 4vw, 3rem);
  max-width: 22ch;
}

.features {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(1.75rem, 3.5vw, 2.75rem) clamp(2rem, 4vw, 3.5rem);
}

@media (max-width: 720px) {
  .features {
    grid-template-columns: 1fr;
  }
}

.feature {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.feature__icon {
  width: 28px;
  height: 28px;
  color: var(--accent-hover);
  flex-shrink: 0;
  display: block;
}

.feature__title {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: -0.008em;
  color: var(--ink-on-dark);
}

.feature__desc {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.6;
  color: rgba(248, 246, 243, 0.82);
}

/* ----- §7 Membership ------------------------------------------------- */

.membership__intro {
  margin-bottom: clamp(2rem, 4vw, 2.5rem);
  max-width: 36em;
}

.membership__terms {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem;
  border-top: 1px solid var(--rule-on-dark);
}

.membership__terms li {
  display: flex;
  align-items: baseline;
  gap: 1.5rem;
  padding: 1.1rem 0;
  border-bottom: 1px solid var(--rule-on-dark);
}

.membership__terms strong {
  flex-shrink: 0;
  width: 14rem;
  font-weight: 700;
  color: var(--accent-hover);
}

.membership__terms span {
  color: rgba(248, 246, 243, 0.85);
  font-weight: 300;
}

@media (max-width: 560px) {
  .membership__terms li {
    flex-direction: column;
    gap: 0.25rem;
  }
  .membership__terms strong { width: auto; }
}

/* ----- §8 How it works ------------------------------------------------ */

.howitworks__intro {
  margin-bottom: clamp(2.5rem, 6vw, 3.5rem);
  max-width: 36em;
}

.steps {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.75rem, 3.5vw, 2.75rem);
}

@media (max-width: 720px) {
  .steps {
    grid-template-columns: 1fr;
  }
}

.step {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.step__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--white);
  background: var(--accent-hover);
  border-radius: 50%;
}

.step__title {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.008em;
  color: var(--ink-on-light);
}

.step__desc {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.6;
  color: rgba(26, 26, 46, 0.72);
}

/* ----- §9 Footer ----------------------------------------------------- */

.site-footer {
  padding: clamp(3rem, 6vw, 4.5rem) var(--gutter) clamp(2rem, 4vw, 2.5rem);
  background: var(--bg-dark);
  color: var(--ink-on-dark);
  text-align: center;
  border-top: 1px solid var(--rule-on-dark);
}

.site-footer__inner {
  max-width: var(--content-max);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.4rem;
}

.site-footer__tagline {
  margin: 0;
  max-width: 38em;
  font-size: 0.98rem;
  font-weight: 300;
  color: rgba(248, 246, 243, 0.78);
}

.site-footer__backers {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.4rem 0.9rem;
}

.site-footer__backers li {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--muted-on-dark);
  white-space: nowrap;
}

.site-footer__backers li:not(:last-child)::after {
  content: "·";
  margin-left: 0.65rem;
}

.site-footer__credit {
  margin: 0;
  font-size: 0.82rem;
  color: var(--muted-on-dark);
}

.site-footer__credit a {
  color: var(--ink-on-dark);
  text-decoration: none;
  border-bottom: 1px solid var(--accent-hover);
  padding-bottom: 1px;
  transition: color 180ms ease;
}

.site-footer__credit a:hover,
.site-footer__credit a:focus-visible {
  color: var(--accent-hover);
  outline: none;
}

.site-footer__credit a:focus-visible {
  outline: 2px solid var(--accent-hover);
  outline-offset: 3px;
  border-bottom-color: transparent;
}

/* ----- Animations ----------------------------------------------------- */

@keyframes rise {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes drift-a {
  from { transform: translate(0, 0); }
  to   { transform: translate(-32px, 28px); }
}

@keyframes drift-b {
  from { transform: translate(0, 0); }
  to   { transform: translate(28px, -22px); }
}

.hero__masthead              { animation: rise 700ms cubic-bezier(0.2, 0.7, 0.2, 1) both; }
.hero__inner .eyebrow        { animation: rise 700ms cubic-bezier(0.2, 0.7, 0.2, 1) 80ms  both; }
.hero__inner h1              { animation: rise 750ms cubic-bezier(0.2, 0.7, 0.2, 1) 140ms both; }
.hero__inner .lede           { animation: rise 750ms cubic-bezier(0.2, 0.7, 0.2, 1) 220ms both; }
.hero__inner .cta-row        { animation: rise 750ms cubic-bezier(0.2, 0.7, 0.2, 1) 300ms both; }
.hero__inner .hero__footnote { animation: rise 750ms cubic-bezier(0.2, 0.7, 0.2, 1) 380ms both; }

/* ----- Motion preferences -------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
  .blob,
  .hero__masthead,
  .hero__inner .eyebrow,
  .hero__inner h1,
  .hero__inner .lede,
  .hero__inner .cta-row,
  .hero__inner .hero__footnote {
    animation: none !important;
  }
  .cta,
  .cta__arrow {
    transition: none;
  }
}

/* ----- Focus visible (universal) ------------------------------------- */

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