/* Fair Future Safeguards. Styles follow the Field Level Tech brand
   pattern library (flt-brand skill, version 10 September 2026). */

:root {
  --dark-teal: #006571;
  --light-teal: #41D3BD;
  --cornflower: #2191FB;
  --pink: #F902A8;
  --blush: #F5EBEB;
  --pale-blue: #EBF4FB;
  --white: #FFFFFF;
  --rose: #D63A5F;   /* reserve: problems only */
  --green: #1A9E6B;  /* reserve: done / success only */
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Helvetica, Arial, sans-serif;
  background: var(--pale-blue);
  color: var(--dark-teal);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; }
a { color: var(--cornflower); }
p { margin: 0 0 16px; }
ul, ol { margin: 0 0 16px; padding-left: 22px; }
li { margin-bottom: 8px; }
strong { font-weight: 700; }
.muted { opacity: 0.75; }

.wrap { max-width: 1100px; margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 62ch; }

/* ── Skip link ── */
.skip {
  position: absolute; left: -9999px; top: 8px;
  background: var(--white); color: var(--dark-teal); padding: 8px 12px; border-radius: 8px;
}
.skip:focus { left: 8px; z-index: 100; }

/* ── Nav ── */
.nav {
  background: var(--dark-teal); color: var(--blush);
  padding-top: env(safe-area-inset-top, 0px);
}
.nav__inner {
  display: flex; align-items: center; gap: 20px;
  min-height: 72px; padding: 10px 0;
}
.nav__brand {
  display: flex; align-items: center; gap: 14px;
  color: var(--blush); text-decoration: none; font-weight: 800;
  letter-spacing: -0.01em; font-size: 1.05rem;
}
.nav__brand img { width: 44px; height: 44px; display: block; }
.nav__spacer { flex: 1; }
.nav__links { display: flex; gap: 22px; align-items: center; flex-wrap: wrap; }
.nav__links a {
  color: var(--blush); text-decoration: none; font-weight: 600; font-size: 0.95rem;
  padding: 6px 0; opacity: 0.9;
}
.nav__links a:hover { opacity: 1; }
.nav__links a.nav__cta {
  color: var(--light-teal); font-weight: 700; opacity: 1;
  border-bottom: 2px solid var(--pink); padding-bottom: 3px;
}
.nav__links a.nav__cta:hover { color: var(--blush); }
.nav__toggle {
  display: none; background: none; border: 0; color: var(--blush);
  font: inherit; font-weight: 700; cursor: pointer; padding: 8px 0;
}
@media (max-width: 760px) {
  .nav__toggle { display: inline-block; }
  .nav__links {
    display: none; width: 100%; flex-direction: column; align-items: flex-start;
    gap: 6px; padding: 6px 0 14px;
  }
  .nav__links.is-open { display: flex; }
  .nav__inner { flex-wrap: wrap; }
}

/* ── Type ── */
.eyebrow {
  font-size: 13px; font-weight: 700; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--pink); margin: 0 0 22px;
}
h1 {
  font-weight: 800; font-size: clamp(2.75rem, 7vw, 5.25rem);
  line-height: 0.95; letter-spacing: -0.025em; margin: 0 0 24px; max-width: 16ch;
}
h2 {
  font-weight: 800; font-size: clamp(1.75rem, 4vw, 2.75rem);
  line-height: 1; letter-spacing: -0.02em; margin: 0 0 28px;
}
h3 {
  font-weight: 800; font-size: 1.25rem; margin: 32px 0 12px; letter-spacing: -0.01em;
}
.accent { color: var(--cornflower); }
.accent--teal { color: var(--light-teal); }
.lead {
  font-size: clamp(1.0625rem, 1.4vw, 1.375rem);
  max-width: 55ch; opacity: 0.9; margin: 0 0 8px;
}
.lead .ai { color: var(--pink); font-weight: 600; }
.num { color: var(--pink); margin-right: 14px; }

/* ── Hero ── */
.hero { position: relative; overflow: hidden; padding: 64px 0 56px; }
/* Text and the brand shape sit side by side, so the whole shape stays on
   the page instead of bleeding off the right edge. */
.hero .wrap { display: flex; align-items: flex-start; justify-content: space-between; gap: 2.5rem; }
.hero__inner { position: relative; z-index: 1; flex: 1 1 auto; min-width: 0; }
.hero__ctas { display: flex; gap: 28px; flex-wrap: wrap; align-items: center; margin-top: 36px; }

/* The brand shape. Two stencils cut from the original artwork: the outer
   shape carries the drifting aurora colours; the overlap in the middle stays
   solid dark teal. Adapted from "The aurora (only CSS)" by ostylowany. */
.hero__decoration {
  position: relative; flex: 0 0 clamp(14rem, 26vw, 24rem); aspect-ratio: 900 / 817;
  margin-top: -0.5rem; user-select: none; pointer-events: none;
}
.hero__decoration > div { position: absolute; inset: 0; }
.hero__aurora {
  background: var(--light-teal); overflow: hidden;
  -webkit-mask: url(img/hero-shape-aurora.png) center / contain no-repeat;
          mask: url(img/hero-shape-aurora.png) center / contain no-repeat;
}
.hero__core {
  background: var(--dark-teal);
  -webkit-mask: url(img/hero-shape-core.png) center / contain no-repeat;
          mask: url(img/hero-shape-core.png) center / contain no-repeat;
}
.hero__aurora > span {
  position: absolute; width: 70%; aspect-ratio: 1; filter: blur(2rem);
  border-radius: 37% 29% 27% 27% / 28% 25% 41% 37%;
  animation: aurora-border 6s ease-in-out infinite;
}
.hero__aurora > span:nth-child(1) { background: var(--cornflower); top: -50%; animation-name: aurora-border, aurora-1; animation-duration: 6s, 12s; animation-direction: normal, alternate; }
.hero__aurora > span:nth-child(2) { background: var(--dark-teal); right: 0; top: 0; animation-name: aurora-border, aurora-2; animation-duration: 6s, 12s; animation-direction: normal, alternate; }
.hero__aurora > span:nth-child(3) { background: var(--light-teal); left: 0; bottom: 0; animation-name: aurora-border, aurora-3; animation-duration: 6s, 8s; animation-direction: normal, alternate; }
.hero__aurora > span:nth-child(4) { background: var(--cornflower); right: 0; bottom: -50%; animation-name: aurora-border, aurora-4; animation-duration: 6s, 24s; animation-direction: normal, alternate; }
@keyframes aurora-1 { 0% { top: 0; right: 0; } 50% { top: 100%; right: 75%; } 75% { top: 100%; right: 25%; } 100% { top: 0; right: 0; } }
@keyframes aurora-2 { 0% { top: -50%; left: 0; } 60% { top: 100%; left: 75%; } 85% { top: 100%; left: 25%; } 100% { top: -50%; left: 0; } }
@keyframes aurora-3 { 0% { bottom: 0; left: 0; } 40% { bottom: 100%; left: 75%; } 65% { bottom: 40%; left: 50%; } 100% { bottom: 0; left: 0; } }
@keyframes aurora-4 { 0% { bottom: -50%; right: 0; } 50% { bottom: 0; right: 40%; } 90% { bottom: 50%; right: 25%; } 100% { bottom: -50%; right: 0; } }
@keyframes aurora-border {
  0% { border-radius: 37% 29% 27% 27% / 28% 25% 41% 37%; }
  25% { border-radius: 47% 29% 39% 49% / 61% 19% 66% 26%; }
  50% { border-radius: 57% 23% 47% 72% / 63% 17% 66% 33%; }
  75% { border-radius: 28% 49% 29% 100% / 93% 20% 64% 25%; }
  100% { border-radius: 37% 29% 27% 27% / 28% 25% 41% 37%; }
}
@media (prefers-reduced-motion: reduce) { .hero__aurora > span { animation: none; } }
@media (max-width: 760px) {
  .hero { padding: 40px 0 44px; }
  .hero .wrap { flex-direction: column; gap: 1.5rem; }
  .hero__decoration { flex: none; width: 11rem; align-self: flex-end; margin-top: -1rem; }
}

/* ── CTA links (light teal at rest, dark teal on hover, pink underline) ── */
.cta {
  display: inline-block; font-size: 1.125rem; font-weight: 700;
  color: var(--light-teal); text-decoration: none;
  border-bottom: 2px solid var(--pink); padding-bottom: 4px;
  transition: color 0.15s ease; background: none; border-top: 0; border-left: 0; border-right: 0;
  font-family: inherit; cursor: pointer;
}
.cta:hover { color: var(--dark-teal); }
.cta--primary { color: var(--cornflower); }
.cta--small { font-size: 1rem; }
.panel .cta, .nav .cta { color: var(--light-teal); }
.panel .cta:hover { color: var(--blush); }

/* ── Sections ── */
section { padding: 72px 0; }
section.tight { padding: 40px 0; }
.section-white { background: var(--white); }

/* ── Cards ── */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; margin-top: 8px; }
.card {
  background: var(--white); border-radius: 18px; padding: 26px 28px;
  box-shadow: 0 10px 30px -22px rgba(0,40,46,0.4);
  display: flex; flex-direction: column;
}
.card h3 { margin-top: 0; }
.card p { flex: 1; }
.card .cta { align-self: flex-start; }
.card__num {
  font-size: 13px; font-weight: 700; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--pink); margin-bottom: 12px;
}
.card.is-current { outline: 3px solid var(--light-teal); }

/* ── Dark panel (the signature CTA card) ── */
.panel {
  background: var(--dark-teal); color: var(--blush);
  border-radius: 28px; padding: 48px 52px;
}
.panel h2, .panel h3 { color: var(--blush); margin-top: 0; }
.panel .accent { color: var(--light-teal); }
.panel p { opacity: 0.92; }
.panel .lead { max-width: 60ch; }
@media (max-width: 720px) { .panel { padding: 34px 26px; } }

/* ── Pledge block ── */
.pledge {
  font-weight: 800; font-size: clamp(1.4rem, 2.6vw, 2.1rem);
  line-height: 1.2; letter-spacing: -0.015em; max-width: 34ch; margin: 0 0 24px;
}

/* ── Callout (blush block with pink rule) ── */
.callout {
  background: var(--blush); border-left: 4px solid var(--pink);
  border-radius: 6px; padding: 16px 20px; max-width: 62ch; font-size: 0.9375rem;
}

/* ── Checklist ── */
.checklist { list-style: none; padding: 0; margin: 0 0 16px; }
.checklist li {
  position: relative; padding-left: 30px; margin-bottom: 14px; max-width: 62ch;
}
.checklist li::before {
  content: ''; position: absolute; left: 0; top: 0.45em; width: 14px; height: 14px;
  border-radius: 50%; background: var(--light-teal);
}

/* ── Two column ── */
.cols { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
@media (max-width: 860px) { .cols { grid-template-columns: 1fr; gap: 32px; } }
.sticky { position: sticky; top: 24px; }

/* ── FAQ ── */
.faq details {
  background: var(--white); border-radius: 16px; padding: 4px 24px; margin-bottom: 12px;
  box-shadow: 0 10px 30px -24px rgba(0,40,46,0.4);
}
.faq summary {
  cursor: pointer; font-weight: 800; font-size: 1.1rem; padding: 16px 0; list-style: none;
  letter-spacing: -0.01em;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; float: right; color: var(--pink); font-weight: 800; }
.faq details[open] summary::after { content: '\2013'; }
.faq details p { max-width: 62ch; }
.faq details > div { padding-bottom: 16px; }

/* ── Form ── */
.form { background: var(--white); border-radius: 22px; padding: 30px 30px 26px; box-shadow: 0 10px 30px -22px rgba(0,40,46,0.4); }
.form h2 { font-size: 1.6rem; margin-bottom: 18px; }
.form label { display: block; font-size: 13px; font-weight: 700; letter-spacing: 0.04em; margin-bottom: 6px; }
.form label .optional { font-weight: 500; opacity: 0.6; letter-spacing: 0; }
.form input[type=text], .form input[type=email] {
  width: 100%; font-family: inherit; font-size: 1rem; color: var(--dark-teal);
  background: var(--white); border: 2px solid #d8c9c9; border-radius: 12px;
  padding: 12px 14px; margin-bottom: 18px; transition: border-color 0.15s ease;
}
.form input::placeholder { color: var(--dark-teal); opacity: 0.4; }
.form input:focus { outline: none; border-color: var(--cornflower); }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 480px) { .form .row { grid-template-columns: 1fr; } }
.form .check { display: flex; gap: 12px; align-items: flex-start; margin: 4px 0 18px; }
.form .check input { width: 20px; height: 20px; margin-top: 3px; accent-color: var(--dark-teal); flex: none; }
.form .check label { font-size: 0.95rem; font-weight: 500; letter-spacing: 0; line-height: 1.45; margin: 0; }
.form .honeypot { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.form .submit {
  width: 100%; font-family: inherit; font-size: 1.05rem; font-weight: 700; color: var(--white);
  background: var(--dark-teal); border: none; border-radius: 12px; padding: 14px 18px;
  cursor: pointer; transition: background-color 0.15s ease;
}
.form .submit:hover:not(:disabled) { background: var(--cornflower); }
.form .submit:disabled { opacity: 0.65; cursor: default; }
.form .small { font-size: 0.8rem; line-height: 1.45; opacity: 0.75; margin: 14px 0 0; }
.form .small a { color: var(--cornflower); font-weight: 600; text-decoration: none; border-bottom: 1px solid var(--pink); }
.form .error { color: var(--rose); font-weight: 600; font-size: 0.9rem; margin: 0 0 14px; }

/* ── Petition text ── */
.petition-text ol { padding-left: 0; list-style: none; counter-reset: ask; }
.petition-text ol li {
  counter-increment: ask; position: relative; padding-left: 44px; margin-bottom: 18px; max-width: 62ch;
}
.petition-text ol li::before {
  content: counter(ask); position: absolute; left: 0; top: -2px;
  font-weight: 800; font-size: 1.4rem; color: var(--pink);
}
.petition-text ol li strong { display: block; font-weight: 800; font-size: 1.1rem; margin-bottom: 4px; }

/* ── Share buttons ── */
.share { display: flex; flex-wrap: wrap; gap: 14px; margin: 24px 0 8px; }
.share a, .share button {
  font-family: inherit; font-size: 1rem; font-weight: 700; color: var(--white);
  background: var(--dark-teal); border: none; border-radius: 12px; padding: 14px 20px;
  text-decoration: none; cursor: pointer; transition: background-color 0.15s ease;
}
.share a:hover, .share button:hover { background: var(--cornflower); }
.copybox {
  background: var(--white); border-radius: 16px; padding: 20px 22px; margin: 12px 0 24px;
  white-space: pre-wrap; font-size: 0.95rem; box-shadow: 0 10px 30px -24px rgba(0,40,46,0.4);
  max-width: 62ch;
}

/* ── Footer ── */
footer {
  background: var(--dark-teal); color: var(--blush); padding: 56px 0 40px;
  padding-bottom: calc(40px + env(safe-area-inset-bottom, 0px));
}
footer .wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: start; }
@media (max-width: 720px) { footer .wrap { grid-template-columns: 1fr; } }
footer img { width: 220px; height: auto; display: block; margin-bottom: 18px; }
footer p { font-size: 0.9rem; opacity: 0.85; max-width: 48ch; }
footer a { color: var(--light-teal); text-decoration: none; border-bottom: 2px solid var(--pink); font-weight: 700; }
footer a:hover { color: var(--blush); }
footer .tagline { font-weight: 800; font-size: 1.3rem; letter-spacing: -0.02em; color: var(--light-teal); margin-bottom: 20px; }
footer ul { list-style: none; padding: 0; margin: 0; }
footer li { margin-bottom: 10px; font-size: 0.95rem; }
footer .legal { font-size: 0.8rem; opacity: 0.65; margin-top: 24px; }

/* Labels on dark surfaces read better in light teal */
.panel .eyebrow, .card[style*="dark-teal"] .card__num { color: var(--light-teal); }

/* ── Staging banner (remove before launch) ── */
.staging {
  background: #FFB800; color: var(--dark-teal); text-align: center;
  font-size: 0.85rem; font-weight: 700; padding: 8px 16px; letter-spacing: 0.01em;
}

/* ── Supported by ── */
.placeholder-note {
  display: inline-block; font-size: 0.85rem; font-weight: 600; color: var(--amber);
  border: 2px dashed var(--amber); border-radius: 10px; padding: 8px 14px; margin-bottom: 24px;
}
.quote__text { font-size: 1.05rem; line-height: 1.5; font-weight: 500; }
.quote__who { font-size: 0.9rem; opacity: 0.8; flex: 0 !important; margin: 0; }
.logos { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 14px; margin-top: 28px; }
.logo-tile {
  background: var(--white); border-radius: 14px; min-height: 84px;
  display: flex; align-items: center; justify-content: center; text-align: center; padding: 12px;
  font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; opacity: 0.55;
  border: 2px dashed rgba(0,101,113,0.25);
}

/* ── Nav name: "FFS" until hovered or focused, then the full name ── */
.nav__name { display: inline-grid; }
.nav__name > span { grid-area: 1 / 1; white-space: nowrap; transition: opacity 0.15s ease; }
.nav__name-full { opacity: 0; }
.nav__brand:hover .nav__name-short, .nav__brand:focus-visible .nav__name-short { opacity: 0; }
.nav__brand:hover .nav__name-full, .nav__brand:focus-visible .nav__name-full { opacity: 1; }

/* ── Backers: duotone photos in brand teal ── */
.people { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 22px; margin-top: 8px; }
.person { margin: 0; text-align: center; }
.person__photo {
  background: var(--light-teal); border-radius: 50%; overflow: hidden;
  aspect-ratio: 1; width: 100%; max-width: 160px; margin: 0 auto 12px;
}
.person__photo img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  filter: grayscale(1) contrast(1.05); mix-blend-mode: multiply;
}
.person figcaption { font-weight: 700; font-size: 0.95rem; }
