@import url("https://fonts.googleapis.com/css2?family=Playfair+Display:wght@600;700&family=Nunito+Sans:wght@400;500;600;700&display=swap");

:root {
  color-scheme: light;
  --bg: #f1f5fb;
  --bg-strong: #e9eef7;
  --surface: #ffffff;
  --surface-soft: #f8fbff;
  --text: #1f3247;
  --text-dark: #132335;
  --muted: #5a6a7f;
  --primary: #2d73c4;
  --primary-dark: #1f5ca3;
  --border: #dce4ef;
  --shadow-sm: 0 6px 18px rgba(13, 35, 68, 0.08);
  --shadow-md: 0 18px 50px rgba(13, 35, 68, 0.12);
  --radius-sm: 12px;
  --radius-md: 18px;
  --radius-lg: 26px;
  --radius-xl: 36px;
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 48px;
  --space-8: 64px;
  --space-9: 88px;
  --container: 1180px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Nunito Sans", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  color: var(--text);
  background: var(--surface);
  line-height: 1.6;
}

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

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
}

:focus-visible {
  outline: 3px solid rgba(29, 78, 216, 0.45);
  outline-offset: 3px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: var(--space-4);
  top: var(--space-4);
  padding: var(--space-2) var(--space-4);
  background: var(--surface);
  border-radius: 999px;
  box-shadow: var(--shadow-sm);
  transform: translateY(-200%);
  transition: transform 0.2s ease;
  z-index: 1000;
}

.skip-link:focus-visible {
  transform: translateY(0);
}

.container {
  width: min(100% - 2 * var(--space-5), var(--container));
  margin: 0 auto;
}

/* ------------------------------------------------------------
   Header
------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(220, 228, 239, 0.7);
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  padding: var(--space-3) 0;
}

.logo {
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--text-dark);
  white-space: nowrap;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #fff;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 4px;
  cursor: pointer;
}

.nav-toggle-line {
  width: 18px;
  height: 2px;
  border-radius: 999px;
  background: var(--text-dark);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: 8px 14px;
  background: rgba(45, 115, 196, 0.08);
  color: var(--primary);
  border-radius: 999px;
  font-weight: 600;
}

.pill-active {
  background: var(--primary);
  color: #fff;
}

.header-right {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.btn-header {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 20px;
  background: var(--primary);
  color: #fff;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: background 0.2s ease, transform 0.2s ease;
}

.btn-header:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
  text-decoration: none;
  color: #fff;
}

@media (max-width: 900px) {
  .topbar {
    position: relative;
    min-height: 64px;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .header-right {
    position: absolute;
    left: 0;
    right: 0;
    top: calc(100% + 8px);
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: var(--space-2);
    padding: var(--space-3);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    background: #fff;
    box-shadow: var(--shadow-sm);
    z-index: 20;
  }

  body.nav-open .header-right {
    display: flex;
  }

  body.nav-open .nav-toggle-line:nth-child(2) {
    transform: translateY(6px) rotate(45deg);
  }

  body.nav-open .nav-toggle-line:nth-child(3) {
    opacity: 0;
  }

  body.nav-open .nav-toggle-line:nth-child(4) {
    transform: translateY(-6px) rotate(-45deg);
  }

  .header-right .pill,
  .header-right .btn-header {
    width: 100%;
    justify-content: center;
  }
}

/* ------------------------------------------------------------
   Borgerforslag status bar
------------------------------------------------------------- */
.borger-status-bar {
  border-top: 1px solid rgba(220, 228, 239, 0.7);
  background: rgba(248, 251, 255, 0.92);
}

.borger-status-inner {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 6px 0;
}

.borger-status-main {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}

.borger-pill {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  border-radius: 999px;
  padding: 5px 10px;
  border: 1px solid var(--border);
  background: #fff;
  color: var(--text);
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
}

.borger-pill-supporters {
  border-color: transparent;
  background: var(--primary);
  color: #fff;
  box-shadow: 0 5px 14px rgba(45, 115, 196, 0.28);
}

.borger-pill-supporters:hover {
  background: var(--primary-dark);
}

.borger-pill-updated {
  font-weight: 600;
  color: var(--muted);
}

.borger-status-sub {
  margin: 0;
  font-size: 0.76rem;
  line-height: 1.25;
  color: var(--muted);
}

.borger-status-fallback {
  margin: 0;
  font-size: 0.82rem;
  color: var(--muted);
}

.borger-status-bar.is-error .borger-status-main,
.borger-status-bar.is-error .borger-status-sub {
  display: none;
}

@media (max-width: 899px) {
  .borger-pill-updated {
    display: none;
  }

  .borger-status-main {
    gap: 5px;
  }

  .borger-pill {
    font-size: 0.75rem;
    padding: 5px 9px;
  }
}

@media (min-width: 900px) {
  .borger-status-inner {
    min-height: 44px;
    flex-direction: row;
    justify-content: flex-end;
    align-items: center;
    gap: 8px;
    padding: 4px 0;
  }

  .borger-status-main {
    flex-wrap: nowrap;
  }

  .borger-status-sub {
    display: none;
  }

  .borger-pill {
    font-size: 0.82rem;
    min-height: 30px;
    padding: 6px 12px;
  }
}

/* ------------------------------------------------------------
   Hero
------------------------------------------------------------- */
.hero {
  position: relative;
  min-height: 380px;
  display: flex;
  flex-direction: column;
  background-color: #f8f9fb;
  overflow: hidden;
  padding-bottom: 0;
}

/* Background image container */
.hero::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  top: 28%;
  background-image: url("assets/hero-bg.png");
  background-repeat: no-repeat;
  background-position: 28% bottom;
  background-size: 50% auto;
  pointer-events: none;
  z-index: 0;
}

.hero__inner {
  position: relative;
  display: flex;
  flex-direction: column;
  max-width: 840px;
  margin: 0 auto;
  padding: 0 24px;
  width: 100%;
  flex: 1;
  z-index: 1;
}

.hero__top {
  text-align: center;
  max-width: 1100px;
  margin: 0 auto;
  padding-top: var(--space-5);
}

.hero h1 {
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 800;
  line-height: 1.15;
  color: #0f172a;
  margin: 0 auto var(--space-2);
  max-width: 1000px;
}

.hero-lead {
  font-size: clamp(0.9rem, 1.6vw, 1.05rem);
  line-height: 1.55;
  color: #64748b;
  margin: 0 auto;
  max-width: 560px;
}

.hero__ctaWrap {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  align-items: center;
  text-align: center;
  width: 100%;
  max-width: 380px;
  margin: var(--space-5) auto 0;
  padding-bottom: var(--space-6);
}

.hero__cta-card {
  display: flex;
  flex-direction: column;
  gap: 4px;
  width: 100%;
  padding: 18px 24px;
  border-radius: 12px;
  background: #2563eb;
  color: #fff;
  box-shadow: 0 8px 24px rgba(37, 99, 235, 0.3);
  text-align: center;
  font-weight: 700;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.hero__cta-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(37, 99, 235, 0.4);
}

.hero__cta-title {
  font-size: clamp(1.1rem, 2.5vw, 1.5rem);
  font-weight: 700;
  line-height: 1.3;
}

.hero__cta-sub {
  font-size: clamp(0.85rem, 1.5vw, 1rem);
  font-weight: 500;
  opacity: 0.9;
  line-height: 1.4;
}

.trust-line {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  color: #64748b;
  font-size: 0.875rem;
  margin: 0;
  padding-top: var(--space-2);
}

.trust-icon {
  color: #64748b;
  flex-shrink: 0;
}

.trust-sep {
  color: #94a3b8;
}

/* Desktop Hero Layout */
@media (min-width: 900px) {
  .hero {
    min-height: 320px;
  }

  .hero::before {
    top: 25%;
    background-position: 30% bottom;
    background-size: 48% auto;
  }

  .hero__top {
    padding-top: var(--space-3);
  }

  .hero__ctaWrap {
    align-items: center;
    text-align: center;
    margin: 35px 0 0 auto;
    max-width: 320px;
    padding-bottom: var(--space-2);
  }

  .hero__cta-card {
    text-align: center;
    padding: 16px 28px;
  }

  .trust-line {
    justify-content: center;
  }
}

@media (min-width: 1100px) {
  .hero {
    min-height: 360px;
  }

  .hero::before {
    top: 22%;
    background-position: 32% bottom;
    background-size: 44% auto;
  }

  .hero__ctaWrap {
    margin-top: 40px;
    max-width: 340px;
  }

  .hero__cta-card {
    padding: 18px 32px;
  }

  .hero__cta-title {
    font-size: 1.3rem;
  }

  .hero__cta-sub {
    font-size: 0.9rem;
  }
}

@media (min-width: 1400px) {
  .hero {
    min-height: 400px;
  }

  .hero::before {
    top: 20%;
    background-position: 34% bottom;
    background-size: 40% auto;
  }

  .hero__ctaWrap {
    margin-top: 45px;
    max-width: 360px;
  }
}

/* ------------------------------------------------------------
   Sections + layout
------------------------------------------------------------- */
.section {
  padding: var(--space-4) 0;
}

.section-muted {
  background: var(--bg);
}

.section h2 {
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  margin: 0 0 var(--space-3);
  text-align: center;
  color: var(--text-dark);
}

.grid {
  display: grid;
  gap: var(--space-4);
}

.cards {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  box-shadow: var(--shadow-sm);
  text-align: center;
}

.card h3 {
  margin: 0 0 var(--space-2);
}

.card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: var(--surface-soft);
  border: 1px solid var(--border);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
  font-size: 1.3rem;
  margin-bottom: var(--space-3);
}

.stats {
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

.stat-card {
  background: linear-gradient(180deg, var(--surface) 0%, #f5f8fd 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  text-align: center;
  box-shadow: var(--shadow-sm);
}

.fact-card {
  display: flex;
  flex-direction: column;
  align-items: stretch;
}

.stat-value {
  font-size: 1.6rem;
  font-weight: 700;
  margin: 0 0 var(--space-2);
}

.stat-label {
  margin: 0;
  color: var(--muted);
}

.source-link {
  margin-top: auto;
  align-self: flex-end;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid var(--border);
  background: #fff;
  color: var(--muted);
  font: inherit;
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1;
  padding: 6px 10px;
  border-radius: 999px;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.15s ease, color 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.source-link::before {
  content: "i";
  width: 16px;
  height: 16px;
  border-radius: 999px;
  background: rgba(45, 115, 196, 0.14);
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.68rem;
  font-weight: 800;
}

.source-link:hover {
  transform: translateY(-1px);
  border-color: rgba(45, 115, 196, 0.35);
  box-shadow: var(--shadow-sm);
  color: var(--text);
}

.source-link:focus-visible {
  color: var(--text);
  border-color: rgba(45, 115, 196, 0.45);
}

.source-modal .story-modal__dialog {
  width: min(620px, 92%);
  padding: var(--space-6) var(--space-5) var(--space-5);
}

.source-modal .modal-close {
  border: 1px solid var(--border);
  width: 34px;
  height: 34px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
}

.source-modal #source-modal-title {
  margin: 0 0 var(--space-3);
}

.source-modal #source-modal-description {
  margin: 0;
  color: var(--text);
  line-height: 1.55;
}

.source-modal .source-modal__actions {
  margin-top: var(--space-4);
}

.source-modal .source-modal__actions .btn {
  min-width: 140px;
  color: var(--primary-dark);
}

/* ------------------------------------------------------------
   Story callout
------------------------------------------------------------- */
.story-callout {
  background: #f5f8fe;
}

.story-callout__grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: var(--space-5);
  align-items: stretch;
}

@media (max-width: 900px) {
  .story-callout__grid {
    grid-template-columns: 1fr;
  }
}

.story-callout__content h2 {
  margin: 0 0 var(--space-3);
}

.story-callout__content p {
  margin: 0 0 var(--space-3);
}

.story-callout__list {
  list-style: none;
  padding: 0;
  margin: 0 0 var(--space-4);
  display: grid;
  gap: 10px;
}

.story-callout__list li {
  padding-left: 26px;
  position: relative;
  color: var(--text);
  font-weight: 600;
}

.story-callout__list li::before {
  content: "•";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--primary);
  font-size: 1.2rem;
  line-height: 1;
}

.story-callout__cta {
  display: inline-flex;
  margin-top: var(--space-2);
  padding: 12px 20px;
}

.story-callout__card {
  background: transparent;
  border: none;
  padding: 0;
  box-shadow: none;
}

.story-callout__card h3 {
  margin: 0 0 var(--space-3);
}

.story-callout__card ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 10px;
  color: var(--text);
  font-weight: 600;
}

/* ------------------------------------------------------------
   FAQ
------------------------------------------------------------- */
.faq {
  display: grid;
  gap: var(--space-3);
}

.faq-cta__grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: var(--space-5);
  align-items: start;
}

@media (max-width: 900px) {
  .faq-cta__grid {
    grid-template-columns: 1fr;
  }
}

.privacy-card {
  background: transparent;
  border: none;
  box-shadow: none;
  padding: 0;
  text-align: left;
  display: grid;
  gap: var(--space-3);
}

.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.faq-question {
  width: 100%;
  padding: var(--space-4) var(--space-5);
  background: transparent;
  border: none;
  text-align: left;
  font-weight: 700;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-3);
  cursor: pointer;
}

.faq-icon {
  font-size: 1.4rem;
  line-height: 1;
  color: var(--primary);
  transition: transform 0.2s ease;
}

.faq-panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.25s ease;
}

.faq-panel-inner {
  padding: 0 var(--space-5) var(--space-4);
  color: var(--muted);
}

.faq-item.is-open .faq-panel {
  max-height: 280px;
}

.faq-item.is-open .faq-icon {
  transform: rotate(45deg);
}

/* ------------------------------------------------------------
   Proposal Box
------------------------------------------------------------- */
.proposal-box {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  max-width: 800px;
  margin: 0 auto;
}

.proposal-toggle {
  width: 100%;
  padding: var(--space-5);
  background: transparent;
  border: none;
  text-align: left;
  font-weight: 700;
  font-size: 1.1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-3);
  cursor: pointer;
  color: var(--text-dark);
}

.proposal-toggle:hover {
  background: var(--surface-soft);
}

.proposal-panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
}

.proposal-content {
  padding: 0 var(--space-5) var(--space-5);
  color: var(--muted);
  line-height: 1.7;
}

.proposal-content h4 {
  color: var(--text-dark);
  margin: var(--space-4) 0 var(--space-2);
  font-size: 1rem;
}

.proposal-content p {
  margin: 0 0 var(--space-3);
}

.proposal-intro {
  font-size: 1.05rem;
  color: var(--text);
}

.proposal-conclusion {
  margin-top: var(--space-5);
  padding-top: var(--space-4);
  border-top: 1px solid var(--border);
}

.proposal-box.is-open .proposal-panel {
  max-height: 1200px;
}

.proposal-box.is-open .faq-icon {
  transform: rotate(45deg);
}

/* ------------------------------------------------------------
   CTA + footer
------------------------------------------------------------- */
.cta-section {
  padding-top: 0;
}

.cta-card {
  background: var(--surface);
  border-radius: var(--radius-xl);
  border: 1px solid var(--border);
  padding: var(--space-6);
  display: grid;
  gap: var(--space-4);
  align-items: center;
  text-align: center;
  box-shadow: var(--shadow-md);
}

.cta-card p {
  margin: 0;
  color: var(--muted);
}

.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  justify-content: center;
}

.site-footer {
  padding: var(--space-6) 0;
  border-top: 1px solid var(--border);
  color: var(--muted);
}

.footer-content {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--space-3);
  align-items: center;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
}

/* ------------------------------------------------------------
   Buttons
------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: 0.7rem 1.4rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 700;
  letter-spacing: 0.01em;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn-lg {
  padding: 1rem 2.4rem;
  font-size: 1.05rem;
}

.btn-primary {
  background: var(--primary);
  color: #fff;
  box-shadow: var(--shadow-md);
}

.btn-primary:hover,
.btn-primary:focus-visible {
  background: var(--primary-dark);
  transform: translateY(-1px);
}

.btn-outline {
  border-color: var(--border);
  color: var(--text);
  background: transparent;
}

.btn-outline:hover,
.btn-outline:focus-visible {
  border-color: var(--primary);
  color: var(--primary);
}

/* ------------------------------------------------------------
   Responsive
------------------------------------------------------------- */

@media (max-width: 900px) {
  .hero h1 {
    white-space: normal;
  }
}

@media (max-width: 640px) {
  .hero {
    min-height: auto;
    padding-bottom: var(--space-3);
  }

  .hero::before {
    top: 40%;
    background-position: center bottom;
    background-size: 100% auto;
  }

  .hero__top {
    padding-top: var(--space-4);
  }

  .hero__ctaWrap {
    margin-top: var(--space-3);
    padding-bottom: 38vh;
  }

  .hero__cta-card {
    padding: 16px 20px;
  }

  .hero__cta-title {
    font-size: 1.1rem;
  }

  .hero__cta-sub {
    font-size: 0.85rem;
  }

  .card,
  .stat-card,
  .faq-item,
  .cta-card {
    border-radius: var(--radius-md);
  }
}

/* ------------------------------------------------------------
   Cookie banner
------------------------------------------------------------- */
.cookie-banner {
  position: fixed;
  bottom: 18px;
  left: 50%;
  transform: translateX(-50%);
  width: min(96%, 720px);
  display: none;
  gap: var(--space-4);
  align-items: center;
  background: #fff;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
  border-radius: var(--radius-lg);
  padding: var(--space-4);
  z-index: 20;
}

.cookie-banner.is-visible {
  display: flex;
}

.cookie-banner__text p {
  margin: 4px 0 0;
  color: var(--muted);
}

.cookie-banner__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  align-items: center;
  justify-content: flex-end;
  margin-left: auto;
}

.btn-ghost {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text);
  padding: 10px 16px;
  border-radius: 10px;
}

.cookie-link {
  color: var(--primary);
  font-weight: 600;
}

.link-button {
  background: none;
  border: none;
  color: #bfdbfe;
  cursor: pointer;
  padding: 0;
  font: inherit;
}

.footer-links .link-button {
  color: #bfdbfe;
}

@media (max-width: 640px) {
  .cookie-banner {
    flex-direction: column;
    align-items: flex-start;
  }

  .cookie-banner__actions {
    width: 100%;
    justify-content: flex-start;
  }
}

/* ------------------------------------------------------------
   Story pages
------------------------------------------------------------- */
.hero-sub {
  background: #f8f9fb;
  padding-top: var(--space-6);
  padding-bottom: var(--space-3);
}

.stories-hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.stories-hero h1 {
  margin: 0 0 var(--space-2);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-top: var(--space-3);
  justify-content: center;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
  font-size: 0.8rem;
  color: #64748b;
  margin: 0 0 4px;
}

.muted {
  color: var(--muted);
}

.small {
  font-size: 0.9rem;
}

.stats-bar {
  margin-top: var(--space-4);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: var(--space-3);
}

.stats-action {
  margin-top: var(--space-3);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-3);
}

.stats-action .muted {
  margin: 0;
}

.btn-data {
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  box-shadow: 0 10px 22px rgba(37, 99, 235, 0.28);
}

.btn-data:hover {
  filter: brightness(1.05);
  transform: translateY(-1px);
}

.stat-pill {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-4);
  box-shadow: var(--shadow-sm);
  text-align: center;
}

.stat-pill .stat-value {
  margin: 0;
  font-weight: 800;
  font-size: 1.3rem;
}

.stat-pill .stat-label {
  margin: 6px 0 0;
  color: var(--muted);
}

.story-layout {
  display: grid;
  gap: var(--space-5);
  grid-template-columns: 2fr 1fr;
  align-items: start;
}

@media (max-width: 960px) {
  .story-layout {
    grid-template-columns: 1fr;
  }
}

.story-form-card,
.stats-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  box-shadow: var(--shadow-sm);
}

.form-grid {
  display: grid;
  gap: var(--space-3);
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-weight: 600;
}

.field-error {
  color: #b91c1c;
  font-size: 0.85rem;
  margin: 0;
  font-weight: 500;
}

.is-hidden {
  display: none !important;
}

.form-field input,
.form-field select,
.form-field textarea {
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 12px;
  font: inherit;
  background: #fff;
}

.form-field textarea {
  resize: vertical;
  min-height: 140px;
}

.checkbox-field {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
}

.form-actions {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  flex-wrap: wrap;
}

.form-message {
  margin-top: var(--space-3);
  color: var(--text);
  background: #f0f9ff;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  padding: var(--space-3);
  display: none;
}

.form-message.is-visible {
  display: block;
}

.wizard-steps {
  display: grid;
}

.wizard-step[hidden] {
  display: none !important;
}

.wizard-step h3 {
  margin-top: 0;
  margin-bottom: var(--space-3);
}

.wizard-nav {
  display: flex;
  gap: var(--space-3);
  align-items: center;
  justify-content: space-between;
  margin-top: var(--space-4);
}

.tag-grid {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

.tag-chip {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface-soft);
}

.tag-chip input {
  accent-color: var(--primary);
}

.stats-card h3 {
  margin: 0 0 var(--space-3);
}

.mini-stats {
  display: grid;
  gap: var(--space-3);
}

.mini-stats div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--space-3);
  border-bottom: 1px dashed var(--border);
  padding-bottom: 6px;
}

.mini-stats dt {
  font-weight: 600;
}

.mini-stats dd {
  margin: 0;
  color: var(--text-dark);
  font-weight: 700;
}

.wall-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--space-3);
  margin-bottom: var(--space-4);
}

.story-wall {
  column-count: 4;
  column-gap: var(--space-4);
}

@media (max-width: 1200px) {
  .story-wall {
    column-count: 3;
  }
}

@media (max-width: 900px) {
  .story-wall {
    column-count: 2;
  }
}

@media (max-width: 640px) {
  .story-wall {
    column-count: 1;
  }
}

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
}

.story-controls {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: var(--space-4);
}

.story-search {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  align-items: center;
  justify-content: flex-end;
}

.story-search input {
  min-width: 220px;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 12px;
  font: inherit;
  background: #fff;
}

.story-search-result {
  margin-bottom: var(--space-3);
}

.filter-chip {
  border: 1px solid var(--border);
  background: #eef2ff;
  color: #312e81;
  padding: 6px 12px;
  border-radius: 999px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.filter-chip:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}

.filter-chip.is-active {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

.story-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-4);
  box-shadow: var(--shadow-sm);
  display: inline-block;
  width: 100%;
  margin: 0 0 var(--space-4);
  box-sizing: border-box;
  break-inside: avoid;
  gap: 10px;
}

.story-card.is-highlighted {
  animation: highlightPulse 2s ease-in-out;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.25), var(--shadow-md);
}

.story-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2);
  margin-top: var(--space-3);
}

.like-btn {
  border: 1px solid var(--border);
  background: #f8fafc;
  color: var(--text-dark);
  padding: 6px 12px;
  border-radius: 999px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.like-btn:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}

.like-btn.is-liked {
  background: #dcfce7;
  border-color: #16a34a;
  color: #166534;
  cursor: default;
}

.like-count {
  font-weight: 700;
  color: var(--muted);
}

.story-card .tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.story-card .tag {
  background: #e0ecff;
  color: #1e3a8a;
  padding: 4px 10px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.85rem;
}

.story-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--muted);
  font-size: 0.9rem;
}

.story-text {
  margin: 0;
  color: var(--text);
}

.story-ref {
  font-size: 0.9rem;
  color: var(--primary);
  word-break: break-word;
}

.cta-bottom {
  margin-top: var(--space-5);
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  align-items: center;
}

.cta-bottom .btn {
  min-width: 200px;
}

.load-more {
  margin-top: var(--space-4);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2);
}

.load-more .btn {
  min-width: 180px;
}

#story-empty {
  margin-top: var(--space-3);
}

#story-bottom-note {
  margin-top: var(--space-2);
  text-align: center;
}

@keyframes highlightPulse {
  0% {
    box-shadow: 0 0 0 0 rgba(37, 99, 235, 0.3);
  }
  100% {
    box-shadow: 0 0 0 6px rgba(37, 99, 235, 0);
  }
}

/* ------------------------------------------------------------
   Admin
------------------------------------------------------------- */
.admin-wrap {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.admin-locked main {
  min-height: calc(100vh - 160px);
  display: flex;
  align-items: center;
  justify-content: center;
}

.gate-card {
  max-width: 420px;
  width: 100%;
  margin: 0 auto;
  padding: var(--space-5);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  text-align: center;
  background: #fff;
}

.admin-locked #admin-panel {
  display: none !important;
}

.admin-locked .site-footer {
  display: none;
}

.admin-locked .header-right {
  display: none;
}

.admin-locked .nav-toggle {
  display: none;
}

.admin-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-3);
}

.admin-actions {
  display: flex;
  gap: var(--space-2);
  align-items: center;
}

.admin-list {
  display: grid;
  gap: var(--space-3);
}

.admin-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-4);
  box-shadow: var(--shadow-sm);
  display: grid;
  gap: var(--space-3);
}

.admin-card-actions {
  display: flex;
  gap: var(--space-2);
  flex-wrap: wrap;
}

.btn-danger {
  background: #ef4444;
  color: #fff;
  border: none;
  padding: 10px 14px;
  border-radius: 10px;
  cursor: pointer;
}

.btn-secondary {
  background: #e2e8f0;
  border: none;
  color: #0f172a;
  padding: 10px 14px;
  border-radius: 10px;
}

@media (max-width: 720px) {
  .admin-header {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ------------------------------------------------------------
   Modal
------------------------------------------------------------- */
.story-modal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 30;
}

.story-modal.is-visible {
  display: flex;
}

.story-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.45);
  backdrop-filter: blur(2px);
}

.story-modal__dialog {
  position: relative;
  width: min(720px, 92%);
  max-height: 90vh;
  overflow-y: auto;
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  padding: var(--space-5);
  z-index: 1;
}

.story-modal__dialog--small {
  width: min(560px, 92%);
}

.modal-actions {
  margin-top: var(--space-4);
  display: flex;
  justify-content: flex-end;
}

.modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  border: none;
  background: transparent;
  font-size: 1.6rem;
  cursor: pointer;
  line-height: 1;
}

.story-modal h2 {
  margin-top: 0;
}

.privacy-modal__body {
  display: grid;
  gap: var(--space-3);
}

.privacy-modal__body p {
  margin: 0;
}

.privacy-modal .cta-actions {
  justify-content: flex-start;
}

/* ------------------------------------------------------------
   Dashboard
------------------------------------------------------------- */
.dashboard-hero {
  text-align: center;
}

.filter-bar {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: var(--space-3);
  padding: var(--space-4);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  margin-bottom: var(--space-4);
}

.filter-note {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-4);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  margin: 0 0 var(--space-4);
  font-weight: 600;
}

.btn-sm {
  padding: 6px 12px;
  font-size: 0.85rem;
}

.filter-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-weight: 600;
}

.filter-field select {
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 12px;
  font: inherit;
  background: #fff;
}

.dashboard-status {
  margin: var(--space-2) 0 var(--space-3);
}

.dashboard-insights {
  margin-bottom: var(--space-5);
  padding: var(--space-4);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  display: grid;
  gap: var(--space-3);
}

.insights-header {
  display: flex;
  gap: var(--space-3);
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}

.insights-actions {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.insight-grid {
  display: grid;
  gap: var(--space-3);
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.insight-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: var(--space-2);
  align-items: start;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-3);
  background: var(--surface-soft);
}

.insight-icon {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: var(--primary);
  opacity: 0.9;
}

.insight-title {
  margin: 0;
  font-weight: 700;
}

.insight-meta {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 0.85rem;
}

.insights-disclaimer {
  margin: 0;
}

.dashboard-view-toggle {
  display: flex;
  gap: var(--space-2);
  margin-bottom: var(--space-4);
}

.view-toggle {
  border: 1px solid var(--border);
  background: #f1f5f9;
  padding: 10px 16px;
  border-radius: 999px;
  font-weight: 700;
  cursor: pointer;
}

.view-toggle.is-active {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

.dashboard-view-panel {
  display: none;
}

.dashboard-view-panel.is-active {
  display: block;
}

.dashboard-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-bottom: var(--space-4);
}

.tab {
  border: 1px solid var(--border);
  background: #eef2ff;
  color: #312e81;
  padding: 8px 14px;
  border-radius: 999px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.tab:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}

.tab.is-active {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

.tab-panel {
  display: none;
}

.tab-panel.is-active {
  display: block;
}

.kpi-grid {
  display: grid;
  gap: var(--space-3);
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  margin-bottom: var(--space-4);
}

.kpi-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-4);
  box-shadow: var(--shadow-sm);
}

.kpi-label {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.kpi-value {
  margin: 6px 0 0;
  font-size: 1.4rem;
  font-weight: 700;
}

.dashboard-grid {
  display: grid;
  gap: var(--space-4);
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.dashboard-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-4);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.dashboard-card.compact {
  padding: var(--space-3);
  gap: var(--space-2);
}

.dashboard-card.map-card {
  grid-column: 1 / -1;
}

.card-header h3 {
  margin: 0 0 4px;
}

.chart-slot {
  min-height: 120px;
}

.chart-guidance {
  display: grid;
  gap: 4px;
  color: var(--muted);
  font-size: 0.85rem;
  border-top: 1px dashed var(--border);
  padding-top: var(--space-2);
}

.trends-explainer {
  margin: 0;
}

.trend-drivers {
  padding: var(--space-3);
  border-radius: var(--radius-md);
  background: var(--surface-soft);
  border: 1px solid var(--border);
  display: grid;
  gap: var(--space-2);
}

.trend-driver-grid {
  display: grid;
  gap: var(--space-3);
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.trend-driver-list {
  display: grid;
  gap: 8px;
  font-size: 0.9rem;
}

.trend-driver-item {
  display: flex;
  justify-content: space-between;
  gap: var(--space-2);
  font-weight: 600;
}

.trend-driver-delta {
  font-weight: 700;
}

.trend-driver-delta.is-up {
  color: #15803d;
}

.trend-driver-delta.is-down {
  color: #b91c1c;
}

.map-layout {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
  gap: var(--space-3);
}

.map-panel {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: var(--space-3);
  background: var(--surface-soft);
  display: grid;
  gap: var(--space-2);
  align-content: start;
  font-size: 0.9rem;
}

.map-panel h4 {
  margin: 0;
}

.map-panel-list {
  display: grid;
  gap: 6px;
}

.map-panel-link {
  font-weight: 700;
  color: var(--primary);
}

.map-coverage {
  padding-top: var(--space-2);
  font-weight: 600;
}

.map-container {
  height: 500px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
}

@media (max-width: 1024px) {
  .map-container {
    height: 380px;
  }
}

.map-bubble {
  background: transparent;
  border: none;
}

.map-bubble-inner {
  width: var(--size, 28px);
  height: var(--size, 28px);
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(45, 115, 196, 0.15);
  border: 2px solid #1f5ca3;
  color: #1f5ca3;
  font-weight: 700;
  font-size: 0.75rem;
  box-shadow: var(--shadow-sm);
}

.data-quality {
  margin-top: var(--space-5);
}

.quality-grid {
  display: grid;
  gap: var(--space-2);
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  margin-top: var(--space-3);
}

.quality-item {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: var(--space-2) var(--space-3);
  background: var(--surface-soft);
  display: grid;
  gap: 2px;
}

.quality-label {
  font-size: 0.85rem;
  color: var(--muted);
}

.quality-value {
  font-weight: 700;
}

.bar-chart {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.bar-row {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(120px, 2.5fr) auto;
  gap: var(--space-2);
  align-items: center;
  font-size: 0.9rem;
}

.bar-label {
  color: var(--text-dark);
  font-weight: 600;
  white-space: normal;
  overflow-wrap: anywhere;
  line-height: 1.35;
}

.bar-track {
  background: var(--bg-strong);
  border-radius: 999px;
  height: 10px;
  position: relative;
  overflow: hidden;
}

.bar-fill {
  background: var(--primary);
  height: 100%;
  border-radius: 999px;
}

.bar-value {
  font-weight: 700;
  color: var(--text-dark);
}

.stacked-bar {
  display: flex;
  height: 14px;
  border-radius: 999px;
  overflow: hidden;
  background: var(--bg-strong);
}

.stacked-segment {
  height: 100%;
}

.stacked-legend {
  display: grid;
  gap: 6px;
  margin-top: var(--space-3);
  font-size: 0.9rem;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 8px;
}

.legend-swatch {
  width: 12px;
  height: 12px;
  border-radius: 4px;
}

@media (max-width: 640px) {
  .bar-row {
    grid-template-columns: 1fr;
  }

  .bar-value {
    justify-self: start;
  }

  .filter-note {
    flex-direction: column;
    align-items: flex-start;
  }

  .insights-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .dashboard-view-toggle {
    flex-direction: column;
    align-items: stretch;
  }

  .map-layout {
    grid-template-columns: 1fr;
  }

  .story-controls {
    flex-direction: column;
    align-items: stretch;
  }

  .story-search {
    justify-content: flex-start;
  }

  .map-container {
    height: 320px;
  }
}

/* ------------------------------------------------------------
   Guide Page
------------------------------------------------------------- */
.guide-hero {
  display: grid;
  gap: var(--space-3);
  text-align: center;
  justify-items: center;
}

.guide-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  justify-content: center;
  margin-top: var(--space-2);
}

.checklist-card {
  text-align: left;
  max-width: 820px;
  margin: 0 auto;
  display: grid;
  gap: var(--space-3);
}

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

.checklist li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-weight: 600;
}

.checklist li::before {
  content: "✓";
  color: var(--primary);
  font-weight: 800;
  margin-top: 2px;
}

.situation-grid {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.situation-card {
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: var(--space-4);
  text-align: left;
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  font-weight: 600;
  width: 100%;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.situation-card:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.situation-card.is-active {
  border-color: var(--primary);
  box-shadow: var(--shadow-md);
}

.detail-panel {
  margin-top: var(--space-4);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-4);
  box-shadow: var(--shadow-sm);
  display: grid;
  gap: var(--space-3);
}

.detail-grid {
  display: grid;
  gap: var(--space-4);
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.detail-panel ul {
  margin: 0;
  padding-left: 18px;
  color: var(--text);
}

.detail-panel h4 {
  margin: 0 0 var(--space-2);
}

.detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  align-items: center;
}

.stepper {
  display: grid;
  gap: var(--space-4);
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.step-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-4);
  box-shadow: var(--shadow-sm);
  display: grid;
  gap: var(--space-2);
}

.step-number {
  margin: 0;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
  color: var(--muted);
}

.guide-appeal {
  margin-top: var(--space-4);
}

.guide-appeal h3 {
  margin: 0;
  font-size: clamp(1.4rem, 2.8vw, 1.9rem);
  color: var(--text-dark);
}

.guide-appeal p {
  margin: 0;
}

.guide-appeal-links {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
}

@media (max-width: 640px) {
  .guide-appeal-links .btn {
    width: 100%;
  }
}

.template-text {
  background: var(--surface-soft);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: var(--space-3);
  white-space: pre-wrap;
  font-family: "Nunito Sans", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  font-size: 0.95rem;
  color: var(--text);
  margin: 0 0 var(--space-3);
}

.copy-feedback {
  min-height: 1em;
}

.cta-grid {
  display: grid;
  gap: var(--space-4);
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.cta-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  box-shadow: var(--shadow-sm);
  display: grid;
  gap: var(--space-2);
}

.footer-note {
  margin-top: var(--space-4);
  text-align: center;
}

/* ------------------------------------------------------------
   Reduced motion
------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}
