/*
 * Capability Equity pages — standalone stylesheet.
 *
 * Used only by /capability-equity.html and the pages in /capability-equity/
 * (resources.html, bulk-book-sales.html).
 * These pages do not load tailwind.css, theme.css or assets/index-new.css, so
 * nothing here can leak into the rest of the site (or the other way round).
 *
 * Colours are tokens so a dark theme can be added later by redefining them
 * under prefers-color-scheme / [data-theme="dark"] without touching the rules.
 */

/* ============================ WEB FONT ============================ */
/* Plus Jakarta Sans, self-hosted (no third-party request). These faces mirror
   the ones at the top of /theme.css, which these pages don't load — keep the
   two in step. Licence: SIL OFL 1.1, see /fonts/README.md. */
@font-face {
  font-family: "Plus Jakarta Sans";
  font-style: normal;
  font-weight: 200 800;         /* variable weight axis */
  font-display: swap;           /* never hide text while the file loads */
  src: url("../fonts/plus-jakarta-sans-latin.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;
}
@font-face {
  font-family: "Plus Jakarta Sans";
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url("../fonts/plus-jakarta-sans-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF,
    U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020,
    U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Plus Jakarta Sans";
  font-style: italic;
  font-weight: 200 800;
  font-display: swap;
  src: url("../fonts/plus-jakarta-sans-italic-latin.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;
}
@font-face {
  font-family: "Plus Jakarta Sans";
  font-style: italic;
  font-weight: 200 800;
  font-display: swap;
  src: url("../fonts/plus-jakarta-sans-italic-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF,
    U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020,
    U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* ============================ TOKENS ============================ */
:root {
  color-scheme: light;

  /* Brand */
  --ce-navy: #011738;        /* headline navy, sampled from the brand art */
  --ce-navy-ink: #06142f;    /* card titles */
  --ce-green: #2b7d0a;       /* tagline, number badges, primary button */
  --ce-green-hover: #236908;

  /* Neutrals */
  --ce-bg: #ffffff;
  --ce-bg-tint: #f5f8f3;     /* faint green-grey band to separate sections */
  --ce-surface: #ffffff;
  --ce-text: var(--ce-navy-ink);
  --ce-text-muted: #5f6268;
  --ce-border: #e9ecef;
  --ce-on-green: #ffffff;

  /* Footer: a navy band closing the white page */
  --ce-footer-bg: var(--ce-navy);
  --ce-footer-text: #c3cddd;
  --ce-footer-strong: #ffffff;
  --ce-footer-accent: #8fd16a;   /* light brand green; readable on navy */
  --ce-footer-rule: rgb(255 255 255 / 0.12);

  /* Depth */
  --ce-shadow-card: 0 1px 2px rgb(1 23 56 / 0.04), 0 6px 20px rgb(1 23 56 / 0.07);
  --ce-radius-card: 12px;

  /* Type: Plus Jakarta Sans (self-hosted, variable 200–800), declared above */
  --ce-font-display: "Plus Jakarta Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --ce-font-body: var(--ce-font-display);

  /* Layout */
  --ce-max: 1240px;
  --ce-gutter: clamp(16px, 4vw, 40px);
}

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

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--ce-bg);
  color: var(--ce-text);
  font-family: var(--ce-font-body);
  font-size: 1rem;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

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

a { color: inherit; }

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

.ce-skip-link {
  position: absolute;
  left: 16px;
  top: -100px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--ce-navy);
  color: #fff;
  border-radius: 8px;
  text-decoration: none;
}
.ce-skip-link:focus { top: 16px; }

.ce-container {
  width: 100%;
  max-width: var(--ce-max);
  margin-inline: auto;
  padding-inline: var(--ce-gutter);
}

/* ============================ HEADER (placeholder) ============================ */
.ce-header { padding-block: 20px; }
.ce-header__brand { display: inline-block; }
.ce-header__brand img { width: 132px; }

/* ============================ BUTTONS ============================ */
.ce-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 12px 24px;
  border-radius: 8px;
  font: inherit;
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  transition: background-color 0.15s ease, box-shadow 0.15s ease;
}

.ce-btn--primary {
  background: var(--ce-green);
  color: var(--ce-on-green);
  box-shadow: 0 4px 14px rgb(43 125 10 / 0.25);
}
.ce-btn--primary:hover { background: var(--ce-green-hover); }

.ce-btn--secondary {
  background: var(--ce-surface);
  color: var(--ce-navy);
  box-shadow: inset 0 0 0 2px var(--ce-navy);
}
.ce-btn--secondary:hover { background: var(--ce-navy); color: #fff; }

/* ============================ SHARED TEXT ============================ */
.ce-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.ce-eyebrow {
  margin: 0 0 12px;
  color: var(--ce-green);
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/* ============================ HERO ============================ */
.ce-hero {
  padding-block: clamp(24px, 4vw, 56px) clamp(48px, 6vw, 80px);
  overflow: hidden;
}

/* Mobile order: title → visual → points → closing line.
   Desktop: copy column on the left, visual on the right. */
.ce-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-areas:
    "title"
    "visual"
    "points"
    "close";
  gap: clamp(24px, 3vw, 40px);
}

.ce-hero__title-block { grid-area: title; }
.ce-hero__visual      { grid-area: visual; }
.ce-hero__points      { grid-area: points; }
.ce-hero__close       { grid-area: close; }

.ce-hero__title {
  margin: 0;
  color: var(--ce-navy);
  font-family: var(--ce-font-display);
  font-size: clamp(2.5rem, 7.2vw, 5.5rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.03em;
}

.ce-hero__title sup {
  font-size: 0.32em;
  font-weight: 600;
  letter-spacing: 0;
  vertical-align: top;
  position: relative;
  top: 0.2em;
  margin-left: 0.04em;
}

.ce-hero__tagline {
  margin: 0.4em 0 0;
  color: var(--ce-green);
  font-size: clamp(1.25rem, 2.6vw, 2.125rem);
  font-weight: 650;
  line-height: 1.2;
  letter-spacing: -0.015em;
}

/* Five numbered points */
.ce-hero__points {
  display: grid;
  gap: clamp(12px, 1.4vw, 18px);
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: ce-point;
}

.ce-point {
  counter-increment: ce-point;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: clamp(14px, 1.8vw, 24px);
  padding: clamp(14px, 1.6vw, 20px) clamp(16px, 2vw, 24px);
  background: var(--ce-surface);
  border: 1px solid var(--ce-border);
  border-radius: var(--ce-radius-card);
  box-shadow: var(--ce-shadow-card);
}

.ce-point::before {
  content: counter(ce-point);
  display: grid;
  place-items: center;
  width: clamp(44px, 4.4vw, 60px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--ce-green);
  color: var(--ce-on-green);
  font-size: clamp(1.25rem, 2vw, 1.75rem);
  font-weight: 700;
  line-height: 1;
}

.ce-point__title {
  margin: 0;
  color: var(--ce-navy-ink);
  font-size: clamp(1.125rem, 1.8vw, 1.5rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.015em;
}

.ce-point__text {
  margin: 0.2em 0 0;
  color: var(--ce-text-muted);
  font-size: clamp(0.9375rem, 1.3vw, 1.125rem);
  line-height: 1.4;
}

/* Tree + book visual */
.ce-hero__visual {
  margin: 0;
  justify-self: center;
  width: min(100%, 640px);
}

/* The placeholder art is on an off-white field; multiply drops that field
   into the page white so no image edge shows. Remove once the final art is
   transparent. */
.ce-hero__visual img { mix-blend-mode: multiply; }

.ce-hero__credit {
  margin: 8px 0 0;
  color: var(--ce-navy-ink);
  font-size: 1.125rem;
  font-weight: 700;
  text-align: right;
}

/* Closing line + CTA */
.ce-hero__close {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 32px;
  padding-top: clamp(8px, 1.5vw, 16px);
}

.ce-hero__statement {
  margin: 0;
  color: var(--ce-navy);
  font-size: clamp(1.375rem, 2.6vw, 2.125rem);
  font-weight: 750;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

@media (max-width: 599px) {
  .ce-hero__close .ce-btn { width: 100%; }
}

@media (min-width: 960px) {
  .ce-hero__grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    grid-template-areas:
      "title  visual"
      "points visual"
      "close  close";
    column-gap: clamp(24px, 3vw, 48px);
    row-gap: clamp(24px, 2.4vw, 36px);
  }

  .ce-hero__title-block { align-self: end; }

  .ce-hero__visual {
    align-self: center;
    width: 100%;
    max-width: none;
  }

  /* Headline runs across into the visual column, as in the brand art */
  .ce-hero__title-block {
    position: relative;
    z-index: 1;
    margin-right: -40%;
  }
}

/* ============================ THE BOOK ============================ */
.ce-book {
  background: var(--ce-bg-tint);
  padding-block: clamp(56px, 8vw, 112px);
}

/* Mobile order: heading → book + buttons → copy.
   Desktop: book + buttons stay in view on the left while the copy scrolls. */
.ce-book__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-areas:
    "intro"
    "aside"
    "body";
  gap: clamp(28px, 4vw, 48px);
}

.ce-book__intro { grid-area: intro; }
.ce-book__aside { grid-area: aside; }
.ce-book__body  { grid-area: body; }

.ce-book__title {
  margin: 0;
  max-width: 22ch;
  color: var(--ce-navy);
  font-size: clamp(1.875rem, 4vw, 3rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.025em;
  text-wrap: balance;
}

.ce-book__visual {
  margin: 0 auto;
  width: min(100%, 380px);
}

/* Stage holds the still poster and, once loaded, the live 3D canvas on top
   of it at exactly the same size (3:4, matching the poster render). */
.ce-book__stage {
  position: relative;
  aspect-ratio: 3 / 4;
  filter: drop-shadow(0 28px 32px rgb(1 23 56 / 0.18)) drop-shadow(0 6px 10px rgb(1 23 56 / 0.10));
}

.ce-book__poster,
.ce-book__canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.ce-book__canvas {
  opacity: 0;
  cursor: grab;
  touch-action: pan-y;          /* sideways drags turn the book; vertical swipes scroll */
  border-radius: 8px;
  transition: opacity 0.5s ease;
}
.ce-book__canvas.is-dragging { cursor: grabbing; }

.is-3d .ce-book__canvas { opacity: 1; }
.is-3d .ce-book__poster { opacity: 0; transition: opacity 0.5s ease; }

.ce-book__hint {
  margin-top: 12px;
  color: var(--ce-text-muted);
  font-size: 0.875rem;
  text-align: center;
}

/* Quick Look button: the link's only child is the icon <img>, so the label
   comes from ::after (Safari requires that structure for rel="ar"). */
.ce-book__ar {
  display: flex;
  width: fit-content;
  margin: 16px auto 0;
}
.ce-book__ar[hidden] { display: none; }
.ce-book__ar::after { content: "View in 3D"; }

.ce-btn--ghost {
  min-height: 40px;
  padding: 8px 16px;
  background: transparent;
  color: var(--ce-navy);
  font-size: 0.9375rem;
  box-shadow: inset 0 0 0 1px var(--ce-border);
}
.ce-btn--ghost:hover { background: var(--ce-surface); box-shadow: inset 0 0 0 1px var(--ce-navy); }

.ce-book__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: clamp(24px, 3vw, 36px);
}

.ce-book__bulk {
  margin: 16px 0 0;
  color: var(--ce-text-muted);
  font-size: 0.9375rem;
  text-align: center;
}
.ce-book__bulk a {
  color: var(--ce-green);
  font-weight: 700;
  text-underline-offset: 3px;
}

.ce-book__body {
  max-width: 68ch;
  color: var(--ce-text);
  font-size: clamp(1rem, 1.25vw, 1.125rem);
  line-height: 1.7;
}

.ce-book__body p { margin: 0 0 1.1em; }
.ce-book__body strong { color: var(--ce-navy); }

.ce-book__subhead {
  margin: 2em 0 1em;
  color: var(--ce-navy);
  font-size: clamp(1.25rem, 1.8vw, 1.5rem);
  font-weight: 750;
  letter-spacing: -0.015em;
}

.ce-checklist {
  display: grid;
  gap: 12px;
  margin: 0 0 2em;
  padding: 0;
  list-style: none;
}

.ce-checklist li {
  position: relative;
  padding: 14px 18px 14px 54px;
  background: var(--ce-surface);
  border: 1px solid var(--ce-border);
  border-radius: var(--ce-radius-card);
  line-height: 1.5;
}

/* Green check badge, drawn with a mask so it follows the --ce-green token */
.ce-checklist li::before {
  content: "";
  position: absolute;
  left: 16px;
  top: 15px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--ce-green);
}
.ce-checklist li::after {
  content: "";
  position: absolute;
  left: 16px;
  top: 15px;
  width: 24px;
  height: 24px;
  background: var(--ce-on-green);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M7 12.5l3.2 3.2L17 9' fill='none' stroke='black' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M7 12.5l3.2 3.2L17 9' fill='none' stroke='black' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
}

.ce-book__closer {
  margin-top: 2em !important;
  padding-top: 1.5em;
  border-top: 2px solid var(--ce-green);
  color: var(--ce-navy);
  font-size: clamp(1.25rem, 2vw, 1.625rem);
  font-weight: 750;
  line-height: 1.3;
  letter-spacing: -0.015em;
}
.ce-book__closer span { display: block; color: var(--ce-green); }

@media (min-width: 960px) {
  .ce-book__grid {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    grid-template-areas:
      "aside intro"
      "aside body";
    grid-template-rows: auto 1fr;
    column-gap: clamp(48px, 6vw, 96px);
    row-gap: 32px;
  }

  .ce-book__aside {
    align-self: start;
    position: sticky;
    top: 40px;
  }

  .ce-book__visual { width: min(100%, 420px); }
}

/* ============================ PROMO BANNER ============================ */
/* Full-width strip above the header for a time-limited offer. JS hides it
   after data-ce-promo-ends. */
.ce-promo {
  background: var(--ce-navy);
  color: var(--ce-footer-text);
}
.ce-promo[hidden] { display: none; }

.ce-promo__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  padding-block: 14px;
}

.ce-promo__copy { margin: 0; font-size: 0.9375rem; line-height: 1.45; }

.ce-promo__headline {
  display: block;
  color: var(--ce-footer-accent);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.ce-promo__copy strong { color: #fff; font-weight: 700; }

.ce-btn--promo {
  min-height: 40px;
  padding: 8px 18px;
  background: var(--ce-footer-accent);
  color: var(--ce-navy);
  font-size: 0.9375rem;
}
.ce-btn--promo:hover { background: #fff; }
.ce-promo :focus-visible { outline-color: var(--ce-footer-accent); }

@media (max-width: 599px) {
  .ce-promo .ce-btn--promo { width: 100%; }
}

/* ============================ SUB-PAGE INTRO ============================ */
.ce-breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 0;
  margin: 0 0 clamp(20px, 3vw, 32px);
  padding: 0;
  list-style: none;
  font-size: 0.9375rem;
  font-weight: 600;
}

.ce-breadcrumb li + li::before {
  content: "/";
  margin-inline: 10px;
  color: var(--ce-text-muted);
  font-weight: 400;
}

.ce-breadcrumb a {
  color: var(--ce-green);
  text-decoration: none;
  text-underline-offset: 3px;
}
.ce-breadcrumb a:hover { text-decoration: underline; }
.ce-breadcrumb [aria-current] { color: var(--ce-text-muted); }

.ce-page-intro { padding-block: clamp(16px, 3vw, 40px) clamp(40px, 6vw, 72px); }

.ce-page-intro__title {
  margin: 0;
  color: var(--ce-navy);
  font-size: clamp(2.5rem, 6.4vw, 4.5rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.03em;
}

.ce-page-intro__lead {
  max-width: 60ch;
  margin: 0.8em 0 0;
  color: var(--ce-text-muted);
  font-size: clamp(1.0625rem, 1.6vw, 1.25rem);
  line-height: 1.6;
}

/* ============================ RESOURCE CARDS ============================ */
.ce-resources { padding-bottom: clamp(56px, 8vw, 96px); }

.ce-resources__heading {
  margin: clamp(48px, 6vw, 72px) 0 20px;
  color: var(--ce-navy);
  font-size: clamp(1.5rem, 2.6vw, 2rem);
  font-weight: 800;
  letter-spacing: -0.02em;
}

.ce-resources__heading:has(+ .ce-resources__note) { margin-bottom: 8px; }

.ce-resources__note {
  margin: 0 0 20px;
  color: var(--ce-text-muted);
  font-size: 1.0625rem;
}

.ce-tag {
  display: inline-block;
  align-self: flex-start;
  margin-bottom: 14px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgb(43 125 10 / 0.1);
  color: var(--ce-green);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.ce-res-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(14px, 1.6vw, 20px);
}

.ce-res-card {
  display: flex;
  flex-direction: column;
  padding: clamp(20px, 2.4vw, 28px);
  background: var(--ce-surface);
  border: 1px solid var(--ce-border);
  border-radius: var(--ce-radius-card);
  box-shadow: var(--ce-shadow-card);
}

.ce-res-card__title {
  margin: 0;
  color: var(--ce-navy-ink);
  font-size: clamp(1.25rem, 1.8vw, 1.5rem);
  font-weight: 750;
  line-height: 1.2;
  letter-spacing: -0.015em;
}

.ce-res-card__text {
  flex: 1;
  margin: 0.5em 0 1.25em;
  color: var(--ce-text-muted);
  line-height: 1.6;
}

.ce-res-card__link {
  align-self: flex-start;
  color: var(--ce-green);
  font-weight: 700;
  text-decoration: none;
  text-underline-offset: 3px;
}
.ce-res-card__link:hover { text-decoration: underline; }

@media (min-width: 720px) {
  .ce-res-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }

  .ce-res-card--feature {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
  }
  .ce-res-card--feature .ce-res-card__text { margin-bottom: 0; max-width: 60ch; }
  .ce-res-card--feature .ce-res-card__link { align-self: center; white-space: nowrap; }
}

/* ============================ BULK BOOK SALES ============================ */
/* Packs stack inside the Book Resources panel (.ce-signup__panel), each
   ruled off from the one above. */
.ce-pack + .ce-pack {
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--ce-border);
}
.ce-pack .ce-res-card__title { margin-bottom: 4px; }
.ce-pack .ce-signup__choices-label { color: var(--ce-green); }
.ce-pack .ce-signup__choices { margin-bottom: 0; }
.ce-pack .ce-signup__choices + .ce-res-card__text { margin: 16px 0 0; }
.ce-pack + .ce-signup__choices-label--divided { margin-top: 28px; }
.ce-check--locked { align-items: flex-start; }
.ce-check--locked::before { margin-top: 2px; }

/* ============================ JOIN THE COMMUNITY ============================ */
.ce-signup {
  background: var(--ce-bg-tint);
  padding-block: clamp(56px, 8vw, 96px);
  scroll-margin-top: 16px;
}
.ce-signup:focus { outline: none; }

.ce-signup__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(24px, 4vw, 48px);
}

.ce-signup__title {
  margin: 0 0 0.4em;
  color: var(--ce-navy);
  font-size: clamp(1.75rem, 3.4vw, 2.5rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.025em;
}

.ce-signup__intro p:last-child { margin: 0; color: var(--ce-text-muted); font-size: 1.0625rem; }

.ce-signup__panel {
  padding: clamp(20px, 3vw, 32px);
  background: var(--ce-surface);
  border: 1px solid var(--ce-border);
  border-radius: var(--ce-radius-card);
  box-shadow: var(--ce-shadow-card);
}

.ce-signup__choices-label {
  margin: 0 0 10px;
  color: var(--ce-navy);
  font-weight: 700;
}

.ce-signup__choices-label--divided {
  margin-bottom: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--ce-border);
}

.ce-signup__choices {
  display: grid;
  gap: 10px;
  margin: 0 0 24px;
  padding: 0;
  list-style: none;
}

.ce-check {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Always-ticked box: every resource comes with the community, so this is
   drawn rather than a real checkbox and can't be unticked. */
.ce-check--locked::before {
  content: "";
  flex: none;
  width: 20px;
  height: 20px;
  border-radius: 4px;
  background: var(--ce-green) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4L18 8' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 16px no-repeat;
}

.ce-signup__cta { width: 100%; }

@media (min-width: 960px) {
  .ce-signup__grid {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    align-items: start;
    column-gap: clamp(48px, 6vw, 96px);
  }
}

/* ============================ FOOTER ============================ */
.ce-footer {
  position: relative;
  background: var(--ce-footer-bg);
  color: var(--ce-footer-text);
  font-size: 0.9375rem;
  line-height: 1.6;
}

/* Green rule along the top edge, echoing the rising arrow in the hero art */
.ce-footer::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  background: linear-gradient(90deg, var(--ce-green), var(--ce-footer-accent) 60%, transparent);
}

.ce-footer__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 36px;
  padding-block: clamp(48px, 6vw, 72px) clamp(36px, 4vw, 48px);
}

.ce-footer p { margin: 0; }
.ce-footer p + p,
.ce-footer p + ul { margin-top: 14px; }

.ce-footer a {
  color: var(--ce-footer-strong);
  text-decoration: none;
  text-underline-offset: 3px;
}
.ce-footer a:hover { text-decoration: underline; text-decoration-color: var(--ce-footer-accent); }
.ce-footer :focus-visible { outline-color: var(--ce-footer-accent); }

.ce-footer__brand img { width: 150px; margin-bottom: 18px; }
.ce-footer__brand p {
  max-width: 30ch;
  color: var(--ce-footer-strong);
  font-size: clamp(1.125rem, 1.6vw, 1.375rem);
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: -0.01em;
}

.ce-footer__heading {
  margin: 0 0 14px;
  color: var(--ce-footer-accent);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.ce-footer__links {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.ce-footer__contact { color: var(--ce-footer-text); }

.ce-footer__bottom {
  border-top: 1px solid var(--ce-footer-rule);
  padding-block: 20px;
  font-size: 0.8125rem;
}

@media (min-width: 720px) {
  .ce-footer__grid {
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1fr);
    gap: 48px;
  }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}
