/* Stop OTA Tyranny — "Not a petition" page. Tokens and component classes are
   the Organic design system (claude.ai/design project a74171dd), self-hosted;
   the page layer below them is the 2a layout. The old manifesto stylesheet
   (styles.css) stays in place because the film tooling still renders from it. */

@font-face {
  font-family: 'Figtree';
  font-style: normal;
  font-weight: 300 900;
  font-display: swap;
  src: url(fonts/figtree-var.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --color-bg: #f5ead8;
  --color-surface: #ebddc5;
  --color-text: #201e1d;
  --color-accent: #c67139;
  --color-divider: color-mix(in srgb, #201e1d 16%, transparent);

  --color-neutral-100: #f9f4ed;
  --color-neutral-700: #645c50;
  --color-neutral-800: #474238;

  --color-accent-200: #ffe1d0; /* og card */
  --color-accent-300: #ffc6a5;
  --color-accent-400: #f6a06b;
  --color-accent-500: #d67f48;
  --color-accent-600: #b2622d;
  --color-accent-700: #8c491a;
  --color-accent-800: #643312;

  --color-accent-2-200: #e1eecc;
  --color-accent-2-700: #56633f;

  --font-heading: "Figtree", system-ui, sans-serif;
  --font-heading-weight: 800;
  --font-body: "Figtree", system-ui, sans-serif;

  --space-1: 4.4px;
  --space-2: 8.8px;
  --space-3: 13.2px;
  --space-4: 17.6px;
  --space-6: 26.4px;
  --space-8: 35.2px;

  --radius-md: 16px;
  --radius-lg: 28px;

  --shadow-md: 0 3px 10px color-mix(in srgb, #2e2b25 16%, transparent);
  --shadow-lg: 0 12px 32px color-mix(in srgb, #2e2b25 22%, transparent);

  --gutter: clamp(20px, 5vw, 64px);
  --ease-out: cubic-bezier(0.25, 1, 0.5, 1);
}

/* — base — */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--color-bg); color: var(--color-text);
  font-family: var(--font-body); font-size: 15px; line-height: 1.55;
}
h1, h2, h3 {
  font-family: var(--font-heading); font-weight: var(--font-heading-weight);
  line-height: 1.1; letter-spacing: -0.025em; margin: 0;
}
p { margin: 0; }
a { color: var(--color-accent-700); text-underline-offset: 3px; }
a:hover { color: var(--color-accent-800); }
:focus { outline: none; }
:focus-visible { outline: 2px solid var(--color-accent); outline-offset: 2px; }
::selection { background: color-mix(in srgb, var(--color-accent) 30%, transparent); }
[hidden] { display: none !important; }

/* — components (Organic) — */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  min-height: 44px; padding: var(--space-2) 18px;
  cursor: pointer; text-decoration: none;
  font-family: var(--font-heading); font-weight: 700;
  font-size: 15px; line-height: 1.2; color: var(--color-text);
  background: transparent; border: 1px solid transparent; border-radius: 999px;
  transition: background-color 160ms var(--ease-out), border-color 160ms var(--ease-out), color 160ms var(--ease-out);
}
.btn:disabled { opacity: 0.45; cursor: not-allowed; }
.btn[aria-busy='true'] { opacity: 0.7; cursor: progress; }
/* Ink on the accent is 4.6:1 (AA at body size); the system's cream-on-accent
   is 3:1, large text only. Hover and press lighten so contrast only improves. */
.btn-primary { background: var(--color-accent); color: var(--color-text); }
.btn-primary:hover { background: var(--color-accent-500); color: var(--color-text); }
.btn-primary:active { background: var(--color-accent-400); }
.btn-secondary { border-color: var(--color-divider); }
.btn-secondary:hover { background: color-mix(in srgb, var(--color-text) 7%, transparent); color: var(--color-text); }
.btn-secondary:active { background: color-mix(in srgb, var(--color-text) 14%, transparent); }
.btn-ghost { color: var(--color-accent-700); padding-inline: var(--space-2); }
.btn-ghost:hover { background: color-mix(in srgb, var(--color-accent) 10%, transparent); }

.card {
  display: flex; flex-direction: column; gap: var(--space-2);
  padding: var(--space-3); border-radius: calc(var(--radius-lg) * 1.15);
  background: var(--color-surface);
}

.input {
  width: 100%; min-height: 44px; padding: 6px 16px; font: inherit;
  font-size: 16px; font-weight: 400; color: var(--color-text); caret-color: var(--color-accent);
  background: var(--color-neutral-100);
  border: 1px solid var(--color-divider); border-radius: 999px;
}
.input:hover { border-color: color-mix(in srgb, var(--color-text) 45%, transparent); }
.input:focus-visible { border-color: var(--color-accent); outline-offset: 0; }
.input::placeholder { color: color-mix(in srgb, var(--color-text) 42%, transparent); }
textarea.input { min-height: 90px; padding: 12px 16px; line-height: 1.45; resize: vertical; border-radius: var(--radius-lg); }

/* — nav — */
.nav {
  display: flex; align-items: center; gap: var(--space-3);
  max-width: 1280px; margin: 0 auto; padding: 22px var(--gutter);
}
.nav-brand {
  display: flex; align-items: center; gap: 10px; margin-right: auto;
  font-family: var(--font-heading); font-weight: 800; font-size: 18px; letter-spacing: -0.02em; color: inherit; text-decoration: none; white-space: nowrap;
}
.nav-brand::before { content: ''; width: 14px; height: 14px; border-radius: 999px; background: var(--color-accent); }
.nav-brand:hover { color: inherit; }
.nav-brand, .nav__lang, .foot a { display: inline-flex; align-items: center; min-height: 44px; }
.nav__short { display: none; }
.nav__lang { font-size: 14px; color: var(--color-neutral-800); }

/* — share — */
.share { position: relative; }
.share > summary { list-style: none; }
.share > summary::-webkit-details-marker { display: none; }
.share__list {
  display: flex; flex-wrap: wrap; gap: var(--space-2);
  margin: 0; padding: 0; list-style: none;
}
.share--menu .share__list {
  position: absolute; z-index: 10; right: 0; top: calc(100% + 8px);
  flex-direction: column; flex-wrap: nowrap; gap: 2px; min-width: 200px;
  padding: var(--space-2); border-radius: var(--radius-lg);
  background: var(--color-neutral-100); box-shadow: var(--shadow-lg);
}
.share--menu .share__list .btn { width: 100%; justify-content: flex-start; border-color: transparent; }
.share__copied { color: var(--color-accent-2-700); }

/* — page — */
.page {
  display: grid; gap: 28px 72px;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  grid-template-areas: "intro form" "steps form" "voices voices";
  max-width: 1280px; margin: 0 auto; padding: 40px var(--gutter) 72px;
}
.intro { grid-area: intro; display: flex; flex-direction: column; gap: 24px; padding-top: 12px; }
.intro h1 { font-size: clamp(46px, 6vw, 72px); line-height: 1; letter-spacing: -0.035em; text-wrap: balance; }
.intro p { font-size: 20px; line-height: 1.55; max-width: 500px; text-wrap: pretty; }

/* Campaign goal: the fill grows in once, then a slow sheen keeps it alive. */
.goal { display: flex; flex-direction: column; gap: 12px; max-width: 480px; margin-top: 6px; }
.intro .goal__count { font-size: 17px; font-weight: 600; line-height: 1.2; }
.goal__count strong {
  font-family: var(--font-heading); font-weight: 800; font-size: 44px; line-height: 1; letter-spacing: -0.03em;
  color: var(--color-accent-700); font-variant-numeric: tabular-nums; margin-right: 6px;
  display: inline-block;
}
.goal__bar {
  position: relative; height: 16px; border-radius: 999px; overflow: hidden;
  background: var(--color-surface);
  box-shadow: inset 0 1px 2px color-mix(in srgb, var(--color-text) 14%, transparent);
}
.goal__bar i {
  position: absolute; inset: 0 auto 0 0; width: var(--progress); border-radius: inherit;
  background: linear-gradient(90deg, var(--color-accent-500), var(--color-accent) 60%, var(--color-accent-600));
  box-shadow: 0 0 12px color-mix(in srgb, var(--color-accent) 45%, transparent),
    inset 0 1px 0 color-mix(in srgb, #fff 35%, transparent);
  overflow: hidden;
  animation: goal-fill 1.6s var(--ease-out) 0.2s both;
}
.goal__bar i::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(100deg, transparent 20%, color-mix(in srgb, #fff 45%, transparent) 50%, transparent 80%);
  transform: translateX(-100%);
  animation: goal-sheen 3.2s ease-in-out 2s infinite;
}
.intro .goal__target { align-self: flex-end; font-size: 14px; color: var(--color-neutral-700); }
.goal__target strong { color: var(--color-text); font-variant-numeric: tabular-nums; }
@keyframes goal-fill { from { width: 0; } }
@keyframes goal-sheen { 60%, 100% { transform: translateX(100%); } }
@media (prefers-reduced-motion: reduce) {
  .goal__bar i, .goal__bar i::after { animation: none; }
}

.steps { grid-area: steps; display: flex; flex-direction: column; gap: 18px; }
.steps h2 { font-size: 26px; }
.steps ol { display: flex; flex-direction: column; gap: 18px; margin: 0; padding: 0; list-style: none; counter-reset: step; }
.steps li { display: flex; gap: 14px; align-items: baseline; font-size: 17px; font-weight: 700; line-height: 1.35; text-wrap: pretty; counter-increment: step; }
.steps li::before {
  content: counter(step) "."; flex: none; min-width: 1.4em;
  font-family: var(--font-heading); font-weight: 800; font-size: 22px; line-height: 1; color: var(--color-accent-700);
}
.steps li a { color: inherit; text-decoration-color: var(--color-accent); text-decoration-thickness: 2px; }
.road {
  margin-top: 20px; padding: 24px 28px; max-width: 560px; border-radius: var(--radius-lg);
  background: var(--color-accent-2-700); color: var(--color-bg);
  font-family: var(--font-heading); font-weight: 800; font-size: 26px; line-height: 1.2; letter-spacing: -0.01em; text-wrap: balance;
  text-align: center;
}

/* — the form card — */
.pledge {
  grid-area: form; align-self: start;
  padding: 36px; gap: 20px; background: var(--color-neutral-100); box-shadow: var(--shadow-lg);
}
.pledge h2 { font-size: 30px; line-height: 1.1; text-wrap: balance; }
.lead { display: flex; flex-direction: column; gap: var(--space-4); }
.lead__row { display: flex; flex-wrap: wrap; gap: var(--space-3); }
.lead__row > * { flex: 1 1 200px; }
.field { display: flex; flex-direction: column; gap: 6px; font-size: 13px; font-weight: 600; }
.field > label { display: flex; flex-direction: column; gap: 6px; }
.field i, .field small { font-style: normal; font-weight: 400; color: var(--color-neutral-700); }
.field i { margin-left: 4px; }
.field small { font-size: 12px; text-wrap: pretty; }
.field--key .input { min-height: 48px; background: var(--color-bg); border: 2px solid var(--color-accent-300); }
.field--key .input:focus-visible { border-color: var(--color-accent); }
.lead__trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.lead .btn-primary { min-height: 50px; font-size: 16px; }
.lead__fine { font-size: 12px; line-height: 1.5; color: var(--color-neutral-700); text-wrap: pretty; }
.lead__status:empty { display: none; }
.lead__status { font-size: 14px; color: var(--color-neutral-800); }
.lead__status.is-error { color: var(--color-accent-800); font-weight: 600; }

.done { display: flex; flex-direction: column; gap: var(--space-4); padding: var(--space-4) 0; }
.done h3 { font-size: 28px; line-height: 1.1; }
.done p { font-size: 15px; line-height: 1.5; text-wrap: pretty; }
.done .btn-ghost { align-self: flex-start; }

/* — host voices — */
.voices { grid-area: voices; display: flex; flex-direction: column; gap: 20px; margin: 44px calc(var(--gutter) * -1) 0; }
.voices__head { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 0 var(--gutter); }
.voices h2 { font-size: 30px; text-wrap: balance; }
.voices__head .btn { flex: none; }
.marquee {
  overflow: hidden; min-height: 200px;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}
.marquee__track {
  display: flex; gap: 16px; width: max-content; padding: 6px 0;
  animation: marquee var(--marquee-duration, 70s) linear infinite;
}
.marquee:hover .marquee__track, .marquee.is-paused .marquee__track { animation-play-state: paused; }
.marquee ul { display: flex; gap: 16px; margin: 0; padding: 0; list-style: none; }
@keyframes marquee { to { transform: translateX(calc(-50% - 8px)); } }
/* Width follows quote length (--len, set per card) so long and short quotes
   land at about the same height instead of every card stretching to the longest. */
.quote {
  flex: none; width: clamp(240px, calc(150px + var(--len, 80) * 1.6px), 460px);
  padding: 22px; gap: 14px; justify-content: space-between;
}
.quote:nth-child(even) { background: var(--color-accent-2-200); }
.quote p { font-size: 17px; line-height: 1.45; text-wrap: pretty; }
.quote footer { display: flex; flex-direction: column; font-size: 13px; line-height: 1.35; }
.quote footer span { color: var(--color-neutral-800); }

@media (prefers-reduced-motion: reduce) {
  .marquee { overflow-x: auto; -webkit-mask-image: none; mask-image: none; padding: 0 var(--gutter); }
  .marquee__track { animation: none; }
  .marquee ul[aria-hidden] { display: none; }
  .voices__head .btn { display: none; }
  .btn { transition: none; }
}

/* — legal (privacy) — */
.legal { max-width: 760px; margin: 0 auto; padding: 12px var(--gutter) 80px; }
.legal h1 { font-size: clamp(34px, 5vw, 50px); line-height: 1.05; text-wrap: balance; }
.legal__updated { margin-top: 10px; font-size: 13px; color: var(--color-neutral-700); }
.legal h2 { margin-top: 34px; font-size: 22px; line-height: 1.2; }
.legal h3 { margin-top: 20px; font-size: 16px; }
.legal p, .legal li { font-size: 16px; line-height: 1.6; text-wrap: pretty; }
.legal p { margin-top: 10px; }
.legal ul { display: grid; gap: 6px; margin: 10px 0 0; padding-left: 20px; }
.legal .legal__lede { margin-top: 18px; font-size: 18px; }
.legal .legal__back { display: inline-flex; align-items: center; min-height: 44px; margin-top: 28px; font-weight: 600; }

/* — footer — */
.foot { background: var(--color-surface); }
.foot__inner {
  display: flex; justify-content: space-between; align-items: center; gap: 0 32px; flex-wrap: wrap;
  max-width: 1280px; margin: 0 auto; padding: 20px var(--gutter);
  font-size: 13px; color: var(--color-neutral-700);
}

/* — mobile: form follows the pitch, voices come before the how-it-works — */
.intro__cta { display: none; }
.intro .intro__free { font-size: 15px; line-height: 1.5; color: var(--color-neutral-800); max-width: 480px; }

@media (max-width: 900px) {
  .nav { padding-block: 16px; gap: 10px; }
  .nav .btn { padding-inline: 14px; font-size: 14px; }
  .nav-brand { font-size: 17px; gap: 8px; }
  .nav-brand::before { width: 12px; height: 12px; }
  .nav .tag { display: none; }
  .page {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "intro" "form" "voices" "steps";
    gap: 34px; padding-top: 12px; padding-bottom: 40px;
  }
  .intro { gap: 18px; padding-top: 0; }
  .intro p { font-size: 16px; }
  .intro .goal__count { font-size: 15px; }
  .goal__count strong { font-size: 36px; }
  .goal__bar { height: 14px; }
  .steps { gap: 14px; }
  .voices { margin-top: 0; }
  .steps h2, .voices h2 { font-size: 22px; }
  .marquee { min-height: 190px; }
  .steps ol { gap: 14px; }
  .steps li { gap: 10px; font-size: 15px; }
  .steps li::before { font-size: 20px; }
  .road { margin-top: 8px; padding: 20px; font-size: 20px; }
  .pledge { padding: 22px 20px; gap: 16px; box-shadow: var(--shadow-md); }
  .pledge h2 { font-size: 24px; }
    .quote { width: clamp(220px, calc(140px + var(--len, 80) * 1.3px), 340px); padding: 18px; }
  .quote p { font-size: 15px; }
  .foot__inner { font-size: 12px; padding-block: 16px; }

  /* Phones read as screens, each legible without scrolling inside it:
     1) nav + pitch, 2) the whole form, 3) host stories, steps and footer.
     svh is the viewport with browser bars showing. */
  html { scroll-snap-type: y proximity; }
  .page { gap: 0; padding-top: 0; padding-bottom: 0; }
  .nav { min-height: 76px; }
  .intro {
    min-height: calc(100svh - 76px); justify-content: center; gap: 16px; padding-bottom: 20px;
  }
  .intro__cta { display: inline-flex; min-height: 50px; font-size: 16px; margin-top: 4px; }
  .intro .intro__free { margin-top: -6px; font-size: 14px; line-height: 1.45; }
  .pledge {
    min-height: 100svh; justify-content: center; scroll-snap-align: start;
    margin-inline: calc(var(--gutter) * -1); padding: 12px var(--gutter); gap: 8px;
    border-radius: 0; box-shadow: none;
  }
  .pledge h2 { font-size: 22px; }
  .lead { gap: 8px; }
  .lead__row { gap: 10px; }
  .lead__row > * { flex-basis: 140px; }
  .field, .field > label { gap: 4px; font-size: 12px; }
  .field small { font-size: 11.5px; line-height: 1.35; }
  .input { min-height: 40px; }
  .field--key .input { min-height: 42px; }
  textarea.input { min-height: 40px; height: 40px; padding-block: 9px; resize: none; }
  .lead .btn-primary { min-height: 48px; }
  .lead__fine { font-size: 11.5px; line-height: 1.4; }
  .voices { scroll-snap-align: start; padding-top: 18px; gap: 10px; }
  .marquee { min-height: 160px; }
  .quote { padding: 14px 16px; gap: 10px; }
  .quote p { font-size: 14px; }
  .steps { gap: 10px; padding-block: 14px 16px; }
  .steps ol { gap: 8px; }
  .steps li { font-size: 14px; }
  .road { margin-top: 4px; padding: 12px 16px; font-size: 17px; }
  .foot__inner { display: block; padding-block: 10px 12px; }
  .foot__inner a { min-height: 0; margin-left: 6px; }
}
@media (max-width: 900px) and (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}
@media (max-width: 900px) {
  .lead__row--split > * { flex-basis: 100%; }
}

/* Desktop reads as two screens: 1) pitch beside the form, 2) how it works,
   host stories and footer. */
@media (min-width: 901px) {
  html { scroll-snap-type: y proximity; }
  .nav { min-height: 72px; padding-block: 0; }
  .page {
    grid-template-areas: "intro form" "steps steps" "voices voices";
    grid-template-rows: minmax(calc(100svh - 72px), auto) auto auto;
    gap: 0 64px; padding-top: 0; padding-bottom: 0; align-items: center;
  }
  .intro { padding-block: 12px 28px; }
  .pledge { align-self: center; padding: 22px 28px; gap: 12px; }
  .pledge h2 { font-size: 26px; }
  .lead { gap: 12px; }
  .lead__row--split > :first-child { flex: 3 1 220px; }
  .lead__row--split > :last-child { flex: 2 1 150px; }
  textarea.input { min-height: 44px; height: 44px; padding-block: 10px; resize: none; }
  .steps { scroll-snap-align: start; padding-top: 32px; gap: 16px; }
  .steps ol { flex-direction: row; gap: 32px; }
  .steps li { flex: 1; flex-direction: column; align-items: flex-start; gap: 6px; }
  .road { max-width: none; text-align: center; margin-top: 8px; }
  .voices { margin-top: 28px; }
}
/* Short laptop screens: a little less air so the first screen still fits. */
@media (min-width: 901px) and (max-height: 700px) {
  .intro { gap: 18px; }
  .intro h1 { font-size: clamp(46px, 5vw, 64px); }
  .pledge { padding-block: 18px; gap: 10px; }
  .lead { gap: 10px; }
}

/* Small phones: shorten the nav so brand, share and language fit on one line. */
@media (max-width: 380px) {
  .nav { gap: 8px; }
  .nav-brand { font-size: 15px; }
  .nav-brand::before { display: none; }
  .nav .btn { padding-inline: 12px; font-size: 13px; }
  .nav__long { display: none; }
  .nav__short { display: inline; }
  .intro h1 { font-size: 40px; }
}
