:root {
  --bg: #fff7d6;
  --bg-2: #ffe9a8;
  --paper: #fffdf4;
  --ink: #1e1b18;
  --muted: #5e5547;
  --red: #d63b2f;
  --blue: #2057d4;
  --green: #177245;
  --gold: #f3b31f;
  --line: #1e1b18;
  --shadow: 8px 8px 0 rgba(30, 27, 24, 0.95);
  --radius: 18px;
  --max: 1200px;
}

* { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  scroll-padding-top: 85px; /* space for sticky header so anchor targets aren’t hidden */
}
body {
  margin: 0;
  font-family: "Trebuchet MS", "Verdana", Arial, sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at 20% 20%, rgba(255,255,255,0.35) 0 4%, transparent 4.2%),
    radial-gradient(circle at 80% 30%, rgba(255,255,255,0.35) 0 3%, transparent 3.2%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 100%);
  background-size: 140px 140px, 180px 180px, auto;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.08;
  background-image: linear-gradient(rgba(30,27,24,0.6) 1px, transparent 1px);
  background-size: 100% 4px;
  mix-blend-mode: multiply;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.container {
  width: min(calc(100% - 32px), var(--max));
  margin: 0 auto;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 247, 214, 0.92);
  border-bottom: 4px solid var(--line);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 14px 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-family: Georgia, "Times New Roman", serif;
}

.brand-mark {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--red);
  color: #fff8d8;
  border: 3px solid var(--line);
  box-shadow: 3px 3px 0 rgba(30,27,24,1);
  font-size: 0.9rem;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 18px;
  color: var(--ink);
  font-size: 0.95rem;
  font-weight: 700;
  flex-wrap: wrap;
}

.nav-links a:hover { text-decoration: underline; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 50px;
  padding: 0 22px;
  border-radius: 999px;
  border: 3px solid var(--line);
  font-weight: 900;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  cursor: pointer;
  box-shadow: 4px 4px 0 rgba(30,27,24,1);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 0.9rem;
}

.btn:hover { transform: translate(-1px, -1px); box-shadow: 6px 6px 0 rgba(30,27,24,1); }
.btn-primary { background: var(--red); color: #fff7dc; }
.btn-secondary { background: #fffdf4; color: var(--ink); }

.hero { padding: 54px 0 42px; }

.hero-grid {
  display: grid;
  grid-template-columns: 1.02fr 0.98fr;
  gap: 34px;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border: 3px solid var(--line);
  border-radius: 999px;
  background: #fffdf4;
  font-size: 0.88rem;
  margin-bottom: 18px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  box-shadow: 4px 4px 0 rgba(30,27,24,1);
}

h1, h2, h3 {
  margin: 0;
  line-height: 1.02;
  font-weight: 900;
}

h1 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(3rem, 7vw, 5.6rem);
  max-width: 10ch;
  text-transform: uppercase;
  text-shadow: 2px 2px 0 rgba(255,255,255,0.6);
}

.hero p {
  font-size: 1.15rem;
  line-height: 1.7;
  color: var(--muted);
  max-width: 58ch;
  margin: 22px 0 28px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 26px;
}

.proof {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  color: var(--ink);
  font-size: 0.92rem;
  font-weight: 700;
}

.proof span {
  padding: 8px 12px;
  border: 2px dashed var(--line);
  border-radius: 999px;
  background: rgba(255,253,244,0.9);
}

.certificate-wrap { position: relative; }

.certificate {
  position: relative;
  background: repeating-linear-gradient(
    45deg,
    #fffdf4,
    #fffdf4 14px,
    #fff7dd 14px,
    #fff7dd 28px
  );
  border: 4px solid var(--line);
  border-radius: 30px;
  box-shadow: 10px 10px 0 rgba(30,27,24,1);
  padding: 24px;
  overflow: hidden;
}

.certificate::before,
.certificate::after {
  content: "";
  position: absolute;
  inset: 12px;
  border: 3px solid var(--blue);
  border-radius: 22px;
  pointer-events: none;
}

.certificate::after {
  inset: 24px;
  border-color: var(--red);
  border-style: dashed;
  border-width: 2px;
  opacity: 0.75;
}

.cert-top {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 20px;
  margin-bottom: 24px;
  position: relative;
  z-index: 1;
}

.cert-badge {
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 3px solid var(--line);
  background: #fffdf4;
  font-weight: 900;
  box-shadow: 3px 3px 0 rgba(30,27,24,1);
}

.cert-seal {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  background: var(--gold);
  border: 4px solid var(--line);
  box-shadow: 4px 4px 0 rgba(30,27,24,1);
  display: grid;
  place-items: center;
  text-align: center;
  font-size: 0.68rem;
  line-height: 1.3;
  color: var(--ink);
  font-weight: 900;
  letter-spacing: 0.08em;
  transform: rotate(10deg);
}

.cert-title {
  text-align: center;
  padding: 10px 10px 14px;
  position: relative;
  z-index: 1;
}

.cert-title .tiny {
  font-size: 0.84rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--blue);
  font-weight: 900;
}

.cert-title h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 3vw, 3rem);
  margin-top: 12px;
  text-transform: uppercase;
}

.cert-title p { margin: 14px auto 0; max-width: 34ch; color: #524d45; line-height: 1.6; }

.recipient {
  margin: 28px auto 24px;
  text-align: center;
  position: relative;
  z-index: 1;
}

.recipient-label {
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--blue);
  font-size: 0.78rem;
  margin-bottom: 10px;
  font-weight: 900;
}

.recipient-name {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 4vw, 3.2rem);
  padding: 10px 18px;
  border: 3px solid var(--line);
  border-radius: 999px;
  display: inline-block;
  min-width: 280px;
  background: #fffdf4;
  box-shadow: 4px 4px 0 rgba(30,27,24,1);
}

.cert-bottom {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: end;
  margin-top: 28px;
  position: relative;
  z-index: 1;
}

.signature-block { flex: 1; }

.sig-line {
  width: 100%;
  max-width: 220px;
  border-bottom: 3px solid rgba(27,27,27,0.65);
  margin-bottom: 6px;
  padding-top: 34px;
}

.sig-label {
  font-size: 0.82rem;
  color: var(--muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 800;
}

.floating-stamp {
  position: absolute;
  right: -12px;
  bottom: -10px;
  transform: rotate(-8deg);
  padding: 18px 14px;
  border: 4px solid var(--red);
  color: var(--red);
  border-radius: 16px;
  font-weight: 900;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  background: rgba(255,253,244,0.88);
}

section { padding: 40px 0; }

.section-head {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: end;
  margin-bottom: 28px;
}

.section-head p { color: var(--muted); max-width: 55ch; margin: 0; line-height: 1.7; }
.section-head h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 4vw, 3.1rem);
  text-transform: uppercase;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.card {
  background: rgba(255,253,244,0.98);
  border: 4px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
}

.card h3 {
  font-size: 1.35rem;
  margin-bottom: 10px;
  text-transform: uppercase;
}
.card p { color: var(--muted); line-height: 1.7; margin: 0; }

.icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  margin-bottom: 16px;
  font-size: 1.25rem;
  font-weight: 900;
  border: 3px solid var(--line);
  background: var(--gold);
  box-shadow: 4px 4px 0 rgba(30,27,24,1);
}

.pricing {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  align-items: stretch;
}

.price-card {
  position: relative;
  background: #fffdf4;
  border: 4px solid var(--line);
  border-radius: 28px;
  padding: 28px;
  box-shadow: 8px 8px 0 rgba(30,27,24,1);
}

.price-card.featured {
  background: #fff2c8;
  transform: translateY(-8px) rotate(-1deg);
}

.ribbon {
  position: absolute;
  top: 14px;
  right: 14px;
  padding: 8px 12px;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: var(--blue);
  color: #fff7dc;
  border-radius: 999px;
  border: 3px solid var(--line);
  box-shadow: 3px 3px 0 rgba(30,27,24,1);
  font-weight: 900;
}

.plan {
  font-size: 1.45rem;
  margin-bottom: 8px;
  text-transform: uppercase;
}

.price {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 3rem;
  margin: 10px 0 8px;
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.price small {
  font-size: 1rem;
  color: var(--muted);
  font-weight: 700;
  font-family: "Trebuchet MS", "Verdana", Arial, sans-serif;
}

.subtle {
  color: var(--muted);
  line-height: 1.7;
  margin-bottom: 18px;
}

.features {
  display: grid;
  gap: 12px;
  margin: 20px 0 26px;
}

.features span {
  display: flex;
  gap: 10px;
  align-items: start;
  color: #3f3a34;
  font-weight: 700;
}

.features span::before {
  content: "★";
  color: var(--red);
  font-weight: 900;
}

.showcase {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 24px;
  align-items: center;
}

.certificate-mini {
  background: repeating-linear-gradient(
    -45deg,
    #fffdf4,
    #fffdf4 14px,
    #fff6dc 14px,
    #fff6dc 28px
  );
  border: 4px solid var(--line);
  border-radius: 24px;
  padding: 24px;
  box-shadow: var(--shadow);
  min-height: 100%;
  position: relative;
}

.certificate-mini::before {
  content: "";
  position: absolute;
  inset: 14px;
  border: 3px dashed var(--blue);
  border-radius: 16px;
  pointer-events: none;
}

.mini-name {
  margin: 18px 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.6rem, 3vw, 2.5rem);
  border: 3px solid var(--line);
  display: inline-block;
  padding: 8px 16px;
  border-radius: 999px;
  min-width: 240px;
  background: #fffdf4;
  box-shadow: 4px 4px 0 rgba(30,27,24,1);
}

.controls { display: grid; gap: 14px; }
.field { display: grid; gap: 8px; }

label {
  font-size: 0.92rem;
  color: var(--ink);
  font-weight: 900;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

input, select {
  width: 100%;
  min-height: 52px;
  padding: 0 16px;
  border-radius: 14px;
  border: 3px solid var(--line);
  background: #fffdf4;
  font: inherit;
  color: var(--ink);
  outline: none;
  box-shadow: 4px 4px 0 rgba(30,27,24,1);
}

input:focus, select:focus {
  border-color: var(--blue);
  box-shadow: 4px 4px 0 rgba(30,27,24,1), 0 0 0 4px rgba(32,87,212,0.14);
}

.testimonial-wrap {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

/* Leaderboard + Signup */
.leaderboard-with-signup {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 28px;
  align-items: start;
}

.leaderboard-wrap {
  min-width: 0;
}

.signup-card {
  background: rgba(255,253,244,0.98);
  border: 4px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
  position: sticky;
  top: 90px;
}

.signup-card h3 {
  font-size: 1.35rem;
  margin-bottom: 10px;
  text-transform: uppercase;
}

.signup-message {
  color: var(--green);
  font-weight: 700;
  margin: 0 0 12px;
}

.signup-error {
  color: var(--red);
  font-weight: 700;
  margin: 0 0 12px;
}

.signup-form {
  display: grid;
  gap: 18px;
  margin-top: 20px;
}

.signup-form .btn {
  margin-top: 4px;
}

.leaderboard {
  background: rgba(255,253,244,0.98);
  border: 4px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.leaderboard-header {
  display: grid;
  grid-template-columns: 80px 1fr 180px 120px;
  gap: 16px;
  padding: 16px 24px;
  background: var(--bg-2);
  border-bottom: 4px solid var(--line);
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.leaderboard-row {
  display: grid;
  grid-template-columns: 80px 1fr 180px 120px;
  gap: 16px;
  align-items: center;
  padding: 18px 24px;
  border-bottom: 3px solid rgba(30,27,24,0.12);
  font-weight: 700;
  color: var(--ink);
}

.leaderboard-row:last-child {
  border-bottom: none;
}

.leaderboard-row.featured {
  background: #fff2c8;
}

.leaderboard-col.rank {
  display: flex;
  align-items: center;
}

.rank-badge {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--paper);
  border: 3px solid var(--line);
  box-shadow: 3px 3px 0 rgba(30,27,24,1);
  font-size: 1rem;
  font-weight: 900;
}

.rank-badge.gold {
  background: var(--gold);
  color: var(--ink);
}

.rank-badge.silver {
  background: #c0c0c0;
  color: var(--ink);
}

.rank-badge.bronze {
  background: #cd7f32;
  color: #fffdf4;
}

.leaderboard-col.points {
  color: var(--red);
  font-size: 1.1rem;
}

@media (max-width: 720px) {
  .leaderboard-header,
  .leaderboard-row {
    grid-template-columns: 60px 1fr 100px;
  }
  .leaderboard-header .leaderboard-col.points,
  .leaderboard-row .leaderboard-col.points {
    display: none;
  }
  .leaderboard-header,
  .leaderboard-row {
    padding: 12px 16px;
    font-size: 0.9rem;
  }
}

blockquote { margin: 0; font-size: 1.08rem; line-height: 1.8; }
.quote-meta { margin-top: 18px; color: var(--muted); font-size: 0.95rem; font-weight: 700; }

.faq { display: grid; gap: 14px; }

details {
  background: rgba(255,253,244,0.98);
  border: 4px solid var(--line);
  border-radius: 18px;
  padding: 18px 20px;
  box-shadow: 6px 6px 0 rgba(30,27,24,1);
}

summary {
  cursor: pointer;
  font-weight: 900;
  list-style: none;
  text-transform: uppercase;
}

summary::-webkit-details-marker { display: none; }
details p { margin: 14px 0 2px; color: var(--muted); line-height: 1.7; }

.cta {
  padding: 24px;
  border-radius: 30px;
  background: linear-gradient(135deg, #2057d4, #14368a);
  color: #fff8df;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 20px;
  align-items: center;
  border: 4px solid var(--line);
  box-shadow: 10px 10px 0 rgba(30,27,24,1);
}

.cta p { color: rgba(255,248,223,0.88); line-height: 1.8; }
.cta .btn-primary { background: var(--gold); color: var(--ink); }

footer {
  padding: 36px 0 60px;
  color: var(--ink);
  font-size: 0.95rem;
  font-weight: 700;
}

.footer-row {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  border-top: 4px solid rgba(27,27,27,0.18);
  padding-top: 20px;
  flex-wrap: wrap;
}

@media (max-width: 1024px) {
  .hero-grid,
  .showcase,
  .cta,
  .grid-3,
  .pricing,
  .testimonial-wrap,
  .leaderboard-with-signup {
    grid-template-columns: 1fr;
  }

  .price-card.featured { transform: none; }
  .section-head { align-items: start; flex-direction: column; }
  .signup-card { position: static; }
}

@media (max-width: 720px) {
  .nav { flex-wrap: wrap; }
  .nav-links { width: 100%; justify-content: center; }
  h1 { max-width: none; }
  .cert-bottom { flex-direction: column; align-items: start; }
  .recipient-name, .mini-name { min-width: 100%; }
  .floating-stamp { position: static; margin-top: 18px; display: inline-block; }
  .hero { padding-top: 30px; }
}
