@font-face {
  font-family: "Nunito Sans";
  src: url("/assets/NunitoSans.woff2") format("woff2-variations");
  font-weight: 200 1000;
  font-style: normal;
  font-display: swap;
}

:root {
  --green: #00C878;
  --green-border: #009E62;
  --green-lip: #008B56;
  --yellow: #FFD21C;
  --ink: #061C18;
  --white: #ffffff;
  --error: #e5484d;
  --error-soft: #fdf0f1;
  --canvas: #f2f7f5;
  --muted: #415851;
  --road: #606e6b;
  --mint: #e6faf2;
  --ink-soft: rgba(6, 28, 24, 0.73);
  --shadow: rgba(6, 28, 24, 0.12);
  --shadow-card: 0 4px 20px rgba(6, 28, 24, 0.06);
  --shadow-action: 0 5px 16px rgba(6, 28, 24, 0.15);
  --radius-sm: 12px;
  --radius-md: 20px;
  --radius-lg: 28px;
  --radius-pill: 999px;
  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 32px;
  --space-xxl: 48px;
  --font: "Nunito Sans", ui-rounded, system-ui, -apple-system, sans-serif;
  --header-h: 76px;
  --content: 1120px;
  --legal: 760px;
}

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

html {
  scroll-behavior: smooth;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font);
  font-weight: 500;
  font-size: 17px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--canvas);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a {
  color: var(--ink);
  font-weight: 800;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--green-lip);
}

h1, h2, h3, h4 {
  font-weight: 900;
  letter-spacing: -0.8px;
  line-height: 1.12;
  margin: 0;
}

p {
  margin: 0;
}

.skip {
  position: absolute;
  left: 12px;
  top: -48px;
  background: var(--ink);
  color: var(--white);
  padding: 8px 14px;
  border-radius: 12px;
  z-index: 100;
}

.skip:focus {
  top: 12px;
}

.wrap {
  width: min(var(--content), calc(100% - 40px));
  margin-inline: auto;
}

.legal-wrap {
  width: min(var(--legal), calc(100% - 40px));
  margin-inline: auto;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--white);
  box-shadow: var(--shadow-card);
}

.site-header .bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: var(--header-h);
}

.logo {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
}

.logo img {
  height: 40px;
  width: auto;
}

.nav {
  display: flex;
  align-items: center;
  gap: 8px 22px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.nav a:not(.btn) {
  text-decoration: none;
  font-weight: 800;
  font-size: 15px;
  color: var(--ink);
  padding: 6px 0;
}

.nav a:not(.btn):hover,
.nav a:not(.btn)[aria-current="page"] {
  color: var(--ink);
  box-shadow: inset 0 -3px 0 var(--yellow);
}

/* Buttons — exact OTP plate treatment */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 10px 22px;
  border-radius: 30px;
  font-family: inherit;
  font-weight: 900;
  font-size: 16px;
  line-height: 1.2;
  color: var(--ink);
  text-decoration: none;
  background: var(--green);
  border: 1px solid var(--green-border);
  border-bottom: 5px solid var(--green-lip);
  box-shadow: var(--shadow-action);
  cursor: pointer;
  letter-spacing: -0.2px;
  transition: transform 0.16s ease, filter 0.16s ease;
}

.btn:hover {
  color: var(--ink);
  filter: brightness(1.03);
  transform: translateY(-1px);
}

.btn:active {
  transform: translateY(2px);
  border-bottom-width: 2px;
  box-shadow: none;
}

.btn-lg {
  min-height: 56px;
  padding: 14px 28px;
  font-size: 17px;
}

.btn-ghost {
  background: var(--white);
  border: 1px solid rgba(6, 28, 24, 0.12);
  border-bottom: 5px solid rgba(6, 28, 24, 0.18);
  box-shadow: var(--shadow-card);
}

.btn-ghost:hover {
  color: var(--ink);
  filter: none;
  background: var(--mint);
}

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
  padding: 56px 0 24px;
}

.hero::before,
.hero::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

.hero::before {
  width: 520px;
  height: 520px;
  background: rgba(0, 200, 120, 0.12);
  right: -160px;
  top: -180px;
}

.hero::after {
  width: 380px;
  height: 380px;
  background: rgba(255, 210, 28, 0.22);
  right: 80px;
  bottom: -160px;
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  align-items: center;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--yellow);
  color: var(--ink);
  font-weight: 900;
  font-size: 13px;
  letter-spacing: -0.2px;
  padding: 6px 12px 6px 10px;
  border-radius: var(--radius-pill);
  margin-bottom: 18px;
}

.badge::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--ink);
}

.hero h1 {
  font-size: clamp(36px, 5vw, 54px);
  line-height: 0.98;
}

.accent-bar {
  display: block;
  width: 44px;
  height: 4px;
  margin: 16px 0 18px;
  background: var(--yellow);
  border-radius: 4px;
}

.lede {
  font-size: 18px;
  line-height: 1.5;
  color: var(--muted);
  font-weight: 600;
  max-width: 38ch;
  margin-bottom: 28px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.hero-note {
  margin-top: 14px;
  font-size: 14px;
  line-height: 1.45;
  color: var(--muted);
  font-weight: 600;
}

.mascot-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  padding: 24px 20px 8px;
  position: relative;
}

.mascot-card img {
  width: min(100%, 420px);
  margin: 0 auto;
  animation: duki-lift 2.16s ease-in-out infinite;
}

.mascot-caption {
  text-align: center;
  font-weight: 800;
  font-size: 14px;
  color: var(--muted);
  padding: 4px 8px 12px;
}

@keyframes duki-lift {
  0%, 7% { transform: translateY(0); }
  20%, 22% { transform: translateY(10px); }
  38% { transform: translateY(0); }
  46% { transform: translateY(-6px); }
  58%, 100% { transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .mascot-card img,
  .btn {
    animation: none !important;
    transition: none !important;
  }
}

/* Sections */
.section {
  padding: 28px 0 64px;
}

.section h2 {
  font-size: clamp(28px, 3.4vw, 40px);
  margin-bottom: 8px;
}

.section-lead {
  color: var(--muted);
  font-weight: 600;
  margin-bottom: 28px;
  max-width: 46ch;
}

.features {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.card {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  padding: 24px 24px 22px;
}

.card .icon {
  width: 48px;
  height: 48px;
  border-radius: 16px;
  background: var(--mint);
  display: grid;
  place-items: center;
  margin-bottom: 16px;
}

.card h3 {
  font-size: 22px;
  letter-spacing: -0.6px;
  margin-bottom: 6px;
}

.card p {
  color: var(--muted);
  font-weight: 600;
  font-size: 16px;
  line-height: 1.5;
}

.together {
  display: grid;
  grid-template-columns: 0.72fr 1.28fr;
  gap: 28px;
  align-items: center;
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  padding: 16px 28px 16px 8px;
  overflow: hidden;
}

.together img {
  width: 100%;
  max-width: 340px;
  margin: 0 auto;
}

.together h2 {
  margin-bottom: 10px;
}

.together p {
  color: var(--muted);
  font-weight: 600;
}

.disclaimer {
  margin-top: 28px;
  background: var(--ink);
  color: var(--white);
  border-radius: var(--radius-lg);
  padding: 28px 32px;
}

.disclaimer h2 {
  font-size: 22px;
  margin-bottom: 8px;
  color: var(--white);
}

.disclaimer p {
  color: rgba(255, 255, 255, 0.86);
  font-weight: 600;
  max-width: 70ch;
}

.disclaimer strong {
  color: var(--yellow);
  font-weight: 900;
}

/* Footer */
.site-footer {
  background: var(--white);
  margin-top: 8px;
  padding: 36px 0 28px;
  box-shadow: 0 -4px 20px rgba(6, 28, 24, 0.04);
}

.footer-grid {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  align-items: flex-start;
}

.footer-brand p {
  margin-top: 10px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
  max-width: 32ch;
}

.footer-links {
  display: flex;
  gap: 8px 22px;
  flex-wrap: wrap;
  font-size: 15px;
}

.footer-links a {
  text-decoration: none;
}

.footer-links a:hover {
  box-shadow: inset 0 -3px 0 var(--yellow);
  color: var(--ink);
}

.legal-copy {
  margin-top: 28px;
  padding-top: 18px;
  border-top: 1px solid rgba(6, 28, 24, 0.08);
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
}

/* Legal pages */
.page-hero {
  padding: 40px 0 8px;
}

.page-hero h1 {
  font-size: clamp(32px, 4.4vw, 48px);
}

.kicker {
  font-weight: 900;
  font-size: 13px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 8px;
}

.meta {
  color: var(--muted);
  font-weight: 600;
  font-size: 15px;
  margin: 0 0 28px;
}

.article {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  padding: 32px 36px 40px;
  margin-bottom: 64px;
}

.article h2 {
  font-size: 22px;
  letter-spacing: -0.5px;
  margin: 32px 0 10px;
  padding-top: 8px;
}

.article h2:first-child {
  margin-top: 0;
  padding-top: 0;
}

.article h3 {
  font-size: 18px;
  margin: 20px 0 8px;
}

.article p,
.article li {
  color: var(--ink);
  font-weight: 600;
  font-size: 16.5px;
  line-height: 1.65;
}

.article p + p {
  margin-top: 12px;
}

.article ul,
.article ol {
  margin: 8px 0 0;
  padding-left: 22px;
}

.article li + li {
  margin-top: 6px;
}

.article .note {
  background: var(--mint);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  margin: 16px 0 0;
  font-size: 15px;
  font-weight: 700;
}

/* Fields the owner must fill in before publishing */
.todo {
  display: inline;
  background: #fff3b0;
  border-bottom: 2px dashed #e0b000;
  padding: 0 5px;
  border-radius: 6px;
  font-weight: 800;
  color: var(--ink);
  white-space: nowrap;
}

.support-grid {
  display: grid;
  gap: 16px;
  margin: 8px 0 64px;
}

.support-grid .card h3 {
  margin-bottom: 8px;
}

.support-grid .card p {
  margin-bottom: 16px;
}

/* 404 */
.empty {
  min-height: calc(100vh - 220px);
  display: grid;
  place-items: center;
  text-align: center;
  padding: 48px 20px;
}

.empty h1 {
  font-size: clamp(36px, 6vw, 64px);
  margin: 12px 0 10px;
}

.empty p {
  color: var(--muted);
  font-weight: 600;
  margin-bottom: 24px;
}

@media (max-width: 860px) {
  .hero {
    padding: 32px 0 8px;
  }

  .hero-grid,
  .together,
  .features {
    grid-template-columns: 1fr;
  }

  .together {
    padding: 8px 20px 24px;
    text-align: center;
  }

  .together p,
  .section-lead {
    margin-inline: auto;
  }

  .hero h1 {
    max-width: none;
  }

  .article {
    padding: 24px 20px 32px;
  }

  .logo img {
    height: 34px;
  }

  .nav a:not(.btn) {
    font-size: 14px;
  }

  .nav .btn {
    min-height: 42px;
    padding: 8px 14px;
    font-size: 14px;
  }
}

@media (max-width: 560px) {
  .wrap,
  .legal-wrap {
    width: min(var(--content), calc(100% - 28px));
  }

  .site-header .bar {
    flex-wrap: wrap;
    padding: 10px 0 12px;
    min-height: 0;
  }

  .nav {
    width: 100%;
    justify-content: flex-start;
    gap: 8px 16px;
  }
}
