:root {
  color-scheme: light;
  --bg: #f6efe3;
  --bg-2: #fffaf1;
  --card: rgba(255, 255, 255, 0.76);
  --card-strong: rgba(255, 255, 255, 0.92);
  --text: #201817;
  --muted: #6d625f;
  --soft: #514846;
  --line: rgba(32, 24, 23, 0.14);
  --accent: #b1111d;
  --accent-2: #eab308;
  --accent-3: #0f6b68;
  --button-text: #fffaf1;
  --shadow: 0 24px 70px rgba(64, 34, 20, 0.15);
  --radius: 26px;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #0b0e12;
    --bg-2: #121821;
    --card: rgba(21, 28, 38, 0.78);
    --card-strong: rgba(25, 33, 45, 0.94);
    --text: #fff7ed;
    --muted: #c9b8ad;
    --soft: #efe0d2;
    --line: rgba(255, 247, 237, 0.16);
    --accent: #ff4a5d;
    --accent-2: #f8c747;
    --accent-3: #2dd4bf;
    --button-text: #21080b;
    --shadow: 0 24px 80px rgba(0, 0, 0, 0.4);
  }
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0b0e12;
  --bg-2: #121821;
  --card: rgba(21, 28, 38, 0.78);
  --card-strong: rgba(25, 33, 45, 0.94);
  --text: #fff7ed;
  --muted: #c9b8ad;
  --soft: #efe0d2;
  --line: rgba(255, 247, 237, 0.16);
  --accent: #ff4a5d;
  --accent-2: #f8c747;
  --accent-3: #2dd4bf;
  --button-text: #21080b;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.4);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  color: var(--text);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    linear-gradient(135deg, rgba(177, 17, 29, 0.1), transparent 34%),
    linear-gradient(45deg, transparent 58%, rgba(15, 107, 104, 0.12)),
    linear-gradient(180deg, var(--bg-2), var(--bg));
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.08;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 38px 38px;
}

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

a {
  color: inherit;
}

.wrap {
  position: relative;
  z-index: 1;
  width: min(1160px, calc(100% - 32px));
  margin: 0 auto;
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  padding: 22px 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text);
  text-decoration: none;
}

.brand strong {
  display: block;
  font-size: 1.08rem;
  font-weight: 900;
  letter-spacing: 0;
}

.brand small {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 650;
}

.topbar-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  flex-wrap: wrap;
}

.theme-toggle {
  display: inline-flex;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: color-mix(in srgb, var(--card-strong), transparent 8%);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.theme-toggle button {
  border: 0;
  border-radius: 999px;
  padding: 8px 12px;
  background: transparent;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 900;
}

.theme-toggle button[aria-pressed="true"] {
  background: var(--text);
  color: var(--bg-2);
}

.card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, var(--card-strong), var(--card));
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.signature-banner {
  margin: 18px 0 10px;
  padding: clamp(28px, 5vw, 54px);
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(177, 17, 29, 0.16), rgba(15, 107, 104, 0.08)),
    linear-gradient(180deg, var(--card-strong), var(--card));
}

.signature-banner-left {
  max-width: 820px;
}

.counter-label,
.eyebrow,
.post-label {
  margin-bottom: 14px;
  color: var(--accent);
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.counter-number {
  color: var(--accent);
  font-size: clamp(3.6rem, 10vw, 7.6rem);
  font-weight: 900;
  line-height: 0.88;
  letter-spacing: 0;
  text-transform: uppercase;
}

.signature-banner-copy,
.lead,
.copy,
.fineprint,
.status,
footer {
  line-height: 1.65;
}

.signature-banner-copy {
  max-width: 720px;
  margin: 16px 0 0;
  color: var(--soft);
  font-size: clamp(1.05rem, 2vw, 1.34rem);
  font-weight: 650;
}

.fineprint {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 0.86rem;
}

.hero,
.grid,
.two-col {
  display: grid;
  gap: 18px;
}

.hero {
  grid-template-columns: 1.1fr 0.72fr;
  align-items: start;
  padding: 30px 0 34px;
}

.hero-card,
.sign-card,
.panel,
.section-card,
.quote-card,
.pledge,
.province-section {
  padding: clamp(24px, 4vw, 42px);
}

.hero-card {
  position: relative;
  overflow: hidden;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 900px;
  margin-bottom: 22px;
  font-size: clamp(3.4rem, 8vw, 6.8rem);
  line-height: 0.9;
  letter-spacing: 0;
  text-transform: uppercase;
}

h2 {
  margin-bottom: 18px;
  font-size: clamp(2rem, 4.8vw, 4rem);
  line-height: 0.96;
  letter-spacing: 0;
  text-transform: uppercase;
}

h3 {
  margin-bottom: 12px;
  font-size: 1.2rem;
  line-height: 1.08;
  letter-spacing: 0;
  text-transform: uppercase;
}

.lead {
  max-width: 780px;
  margin-bottom: 20px;
  color: var(--soft);
  font-size: clamp(1.04rem, 1.9vw, 1.28rem);
  font-weight: 650;
}

.copy {
  margin-bottom: 0;
  color: var(--muted);
}

.actions,
.share-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin-top: 26px;
}

.share-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 10px 14px;
  background: color-mix(in srgb, var(--card-strong), transparent 7%);
  color: var(--soft);
  font-size: 0.86rem;
  font-weight: 900;
  text-decoration: none;
  transition: transform 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

.share-link:hover {
  border-color: color-mix(in srgb, var(--accent), transparent 45%);
  color: var(--text);
  transform: translateY(-2px);
}

.share-link:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--accent), transparent 70%);
  outline-offset: 2px;
}

.share-rail {
  position: fixed;
  top: 50%;
  right: max(18px, calc((100vw - 1160px) / 2 - 72px));
  z-index: 30;
  display: grid;
  gap: 8px;
  width: 58px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 9px;
  background: color-mix(in srgb, var(--card-strong), transparent 4%);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
  transform: translateY(-50%);
}

.share-rail span {
  color: var(--muted);
  font-size: 0.64rem;
  font-weight: 900;
  text-align: center;
  text-transform: uppercase;
  writing-mode: vertical-rl;
  justify-self: center;
}

.share-rail .share-link {
  width: 100%;
  min-height: 40px;
  border-radius: 999px;
  padding: 7px 5px;
  font-size: 0.68rem;
}

.btn {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 48px;
  border: 0;
  border-radius: 15px;
  padding: 14px 19px;
  font-size: 0.94rem;
  font-weight: 900;
  text-decoration: none;
  transition: transform 0.18s ease, box-shadow 0.18s ease, opacity 0.18s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent), #7f0812);
  color: white;
  box-shadow: 0 16px 34px rgba(177, 17, 29, 0.22);
}

.btn-secondary {
  border: 1px solid var(--line);
  background: color-mix(in srgb, var(--card-strong), transparent 5%);
  color: var(--text);
}

.btn:disabled {
  cursor: not-allowed;
  opacity: 0.62;
  transform: none;
}

.sign-card {
  position: sticky;
  top: 18px;
}

.form-intro {
  margin-bottom: 24px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--line);
}

.form-intro h2 {
  margin-bottom: 12px;
  font-size: clamp(1.8rem, 4vw, 3rem);
}

form {
  display: grid;
  gap: 13px;
}

label {
  display: block;
  margin-bottom: 7px;
  color: var(--soft);
  font-size: 0.88rem;
  font-weight: 900;
}

input,
select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 15px;
  outline: 0;
  padding: 14px 15px;
  background: color-mix(in srgb, var(--card-strong), transparent 2%);
  color: var(--text);
  font-size: 1rem;
}

input:focus,
select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent), transparent 84%);
}

.privacy-check {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  margin-top: 2px;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 650;
  line-height: 1.45;
}

.privacy-check input {
  width: 18px;
  height: 18px;
  margin: 2px 0 0;
  accent-color: var(--accent);
}

.privacy-check label {
  display: block;
  margin: 0;
  color: var(--muted);
  font-size: inherit;
  font-weight: 750;
  line-height: inherit;
}

.cf-turnstile {
  min-height: 65px;
}

.cf-turnstile[hidden] {
  display: none;
}

#website {
  position: absolute;
  left: -9999px;
  width: 0;
  height: 0;
  opacity: 0;
}

.status {
  min-height: 22px;
  color: var(--muted);
  font-size: 0.88rem;
}

.status.error {
  color: var(--accent);
}

.status.success {
  color: var(--accent-3);
}

.grid {
  grid-template-columns: repeat(3, 1fr);
  padding: 0 0 34px;
}

.panel {
  min-height: 230px;
}

.icon,
.check {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 14px;
  background: color-mix(in srgb, var(--accent), transparent 88%);
  color: var(--accent);
  font-weight: 900;
}

.icon {
  width: 50px;
  height: 50px;
  margin-bottom: 20px;
}

.two-col {
  grid-template-columns: 0.92fr 1.08fr;
  padding-bottom: 34px;
}

blockquote {
  margin: 0;
  color: var(--text);
  font-size: clamp(1.8rem, 4vw, 3.1rem);
  font-weight: 900;
  line-height: 1.03;
  letter-spacing: 0;
}

.quote-copy {
  margin-top: 20px;
}

.highlight-list {
  display: grid;
  gap: 14px;
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
}

.highlight-list li {
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: 12px;
  align-items: start;
  color: var(--soft);
  line-height: 1.55;
}

.check {
  width: 36px;
  height: 36px;
}

.province-section,
.pledge,
.privacy-notice {
  margin-bottom: 34px;
}

.province-section {
  background:
    linear-gradient(135deg, rgba(15, 107, 104, 0.1), rgba(177, 17, 29, 0.06)),
    linear-gradient(180deg, var(--card-strong), var(--card));
  color: var(--text);
}

.province-section h2 {
  margin-bottom: 12px;
  color: var(--text);
}

.province-section .copy {
  color: var(--muted);
}

.privacy-notice {
  padding: clamp(22px, 3vw, 34px);
}

.privacy-notice h2 {
  margin-bottom: 16px;
  font-size: clamp(1.7rem, 3vw, 2.8rem);
  line-height: 1;
}

.privacy-notice .copy {
  max-width: 980px;
}

.privacy-notice .copy + .copy {
  margin-top: 12px;
}

.province-head {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 20px;
}

.province-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.province-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  min-height: 52px;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 13px 14px;
  background: color-mix(in srgb, var(--card-strong), transparent 6%);
}

.province-name {
  color: var(--soft);
  font-size: 0.82rem;
  font-weight: 800;
  line-height: 1.25;
}

.province-item strong {
  color: var(--accent-3);
  font-weight: 900;
  white-space: nowrap;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 22px;
  z-index: 40;
  width: min(92%, 520px);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 14px 18px;
  background: var(--card-strong);
  box-shadow: var(--shadow);
  color: var(--text);
  font-weight: 900;
  text-align: center;
  transform: translateX(-50%) translateY(120px);
  transition: transform 0.32s ease;
}

.toast.show {
  transform: translateX(-50%) translateY(0);
}

footer {
  padding: 0 0 34px;
  color: var(--muted);
  font-size: 0.84rem;
  text-align: center;
}

@media (max-width: 900px) {
  .topbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .topbar-actions {
    justify-content: flex-start;
    width: 100%;
  }

  .wrap {
    padding-bottom: 76px;
  }

  .hero,
  .signature-banner,
  .grid,
  .two-col,
  .province-grid {
    grid-template-columns: 1fr;
  }

  .sign-card {
    position: relative;
    top: auto;
  }

  .share-rail {
    top: auto;
    right: 12px;
    bottom: 12px;
    left: 12px;
    grid-template-columns: auto repeat(4, minmax(0, 1fr));
    align-items: center;
    width: auto;
    border-radius: 18px;
    transform: none;
  }

  .share-rail span {
    text-align: left;
    writing-mode: horizontal-tb;
  }

}

@media (max-width: 560px) {
  .wrap {
    width: min(100% - 24px, 1160px);
  }

  .topbar-actions,
  .theme-toggle {
    width: 100%;
  }

  .theme-toggle {
    justify-content: space-between;
  }

  .theme-toggle button {
    flex: 1;
  }

  h1 {
    font-size: clamp(3rem, 15vw, 4.4rem);
  }

  .actions,
  .share-row {
    flex-direction: column;
  }

  .btn {
    width: 100%;
  }

  .share-rail {
    gap: 7px;
    padding: 8px;
  }

  .share-rail span {
    display: none;
  }

  .share-rail {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .share-rail .share-link {
    min-height: 40px;
    font-size: 0.7rem;
  }

}
