/* ---------- Font ---------- */
/* Self-hosted Inter (SIL Open Font License, free for any use) — a free, openly-licensed
   geometric sans stand-in, since the original font used for reference isn't publicly licensed. */
@font-face {
  font-family: "Inter";
  src: url("fonts/Inter-Variable.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

/* ---------- Design tokens ---------- */
:root {
  --gold: #c9a227;
  --gold-dark: #9c7d1e;
  --gold-tint: #faf3d9;
  --ivory: #faf6ea;
  --ink: #2a201e;
  --ink-soft: #6b5f58;
  --rule: #e8dcc0;
  --bg: #ffffff;
  --surface: #ffffff;
  --footer-bg: #2a201e;
  --error: #b3261e;
  --max-width: 1120px;
  --radius: 24px;
  /* Both aliases point to the same stack so every existing var(--font-serif)/var(--font-sans)
     reference across the CSS files renders in one consistent typeface. */
  --font-serif: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

/* ---------- Reset ---------- */
* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  transition: background-color 0.2s ease, color 0.2s ease;
}

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

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

ul { list-style: none; }

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}

/* ---------- Eyebrow labels ---------- */
.eyebrow {
  display: block;
  font-family: var(--font-sans);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  word-spacing: -0.1em;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--gold-dark);
  margin-bottom: 12px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  font-family: var(--font-sans);
  font-weight: 700;
  border-radius: 0;
  cursor: pointer;
  border: none;
  transition: filter 0.15s ease;
  text-align: center;
}

.btn[hidden] {
  display: none;
}

.btn-primary {
  background: var(--gold);
  color: #ffffff;
}

.btn-primary:hover {
  filter: brightness(1.06);
}

.btn-primary:active {
  filter: brightness(0.94);
}

.btn-small {
  padding: 10px 20px;
  font-size: 0.9rem;
}

.btn-large {
  padding: 16px 36px;
  font-size: 1.05rem;
}

/* ---------- Header ---------- */
.site-header {
  background: var(--surface);
  border-bottom: 1px solid var(--rule);
  transition: background-color 0.2s ease;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 22px;
  padding-bottom: 22px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-serif);
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: var(--ink);
}

.logo-icon {
  width: 32px;
  height: auto;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 18px;
}

.discord-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #5865f2;
  color: #fff;
  flex-shrink: 0;
  transition: background 0.15s ease;
}

.discord-btn:hover {
  background: #4752c4;
}

.discord-btn svg {
  width: 18px;
  height: 18px;
}

.header-login-link {
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--ink-soft);
}

.header-login-link:hover {
  color: var(--gold-dark);
}

.header-logout-btn {
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--font-sans);
}

/* ---------- Hero ---------- */
.hero {
  padding: 56px 0 64px;
  background: var(--bg);
}

.hero-inner {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.hero h1 {
  font-family: var(--font-serif);
  font-size: 2.1rem;
  line-height: 1.2;
  font-weight: 700;
  margin-bottom: 36px;
}

.hero h1 .highlight {
  color: var(--gold-dark);
  font-style: italic;
}

.pull-quote {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.3rem;
  line-height: 1.45;
  color: var(--ink);
  border-left: 3px solid var(--gold);
  padding-left: 20px;
  max-width: 420px;
}

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

.section-tinted {
  background: var(--ivory);
}

.section-head {
  text-align: center;
  margin-bottom: 48px;
}

.section-title {
  font-family: var(--font-serif);
  font-size: 1.7rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.section-sub {
  color: var(--ink-soft);
  max-width: 560px;
  margin: 0 auto;
}

/* ---------- Pricing ---------- */
.pricing-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  max-width: 900px;
  margin: 0 auto;
}

@media (min-width: 640px) {
  .pricing-grid {
    grid-template-columns: repeat(2, 1fr);
    align-items: stretch;
  }
}

.pricing-card {
  display: flex;
  flex-direction: column;
  background: var(--gold-tint);
  border-radius: var(--radius);
  padding: 36px 30px;
  text-align: center;
}

.pricing-feature-list {
  margin-bottom: 24px;
}

.pricing-cta {
  margin-top: auto;
}

.pricing-name {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 14px;
}

.pricing-price {
  margin-bottom: 4px;
}

.price-amount {
  font-family: var(--font-serif);
  font-size: 2.8rem;
  font-weight: 700;
  color: var(--gold-dark);
}

.price-period {
  font-size: 1rem;
  color: var(--ink-soft);
}

.pricing-cancel {
  font-size: 0.85rem;
  color: var(--ink-soft);
  margin-bottom: 24px;
}

.pricing-price-note {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--error);
  margin-top: -16px;
  margin-bottom: 24px;
}


.pricing-cta {
  width: 100%;
}

/* ---------- Stat box ---------- */
.stat-box {
  max-width: 420px;
  margin: 0 auto 48px;
  background: var(--gold-tint);
  border-radius: var(--radius);
  padding: 32px 30px;
}

.stat-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  text-align: left;
}

.stat-list li {
  position: relative;
  padding-left: 26px;
  font-size: 1rem;
  font-weight: 600;
  color: var(--ink);
}

.stat-list li::before {
  content: "★";
  position: absolute;
  left: 0;
  color: var(--gold-dark);
}

/* ---------- Testimonials / score progressions ---------- */
.testimonial-carousel-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: 1000px;
  margin: 0 auto;
}

.testimonial-carousel {
  display: flex;
  gap: 28px;
  overflow-x: auto;
  padding: 4px 4px 12px;
}

.carousel-btn {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--rule);
  background: var(--surface);
  color: var(--ink);
  font-size: 1.1rem;
  cursor: pointer;
}

.carousel-btn:hover {
  border-color: var(--gold);
}

.testimonial-card {
  flex: 0 0 280px;
  border-top: 1px solid var(--rule);
  padding-top: 24px;
}

.testimonial-score {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--gold-dark);
  margin-bottom: 14px;
}

.testimonial-note {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--ink-soft);
  text-transform: none;
}

.testimonial-quote {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.05rem;
  line-height: 1.5;
  color: var(--ink);
  margin-bottom: 14px;
}

.testimonial-name {
  font-size: 0.82rem;
  color: var(--ink-soft);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--footer-bg);
  color: #f2f2f2;
  padding: 40px 0;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.logo-footer {
  font-family: var(--font-serif);
  color: #ffffff;
}

.footer-brand p {
  margin-top: 8px;
  color: #bdbdbd;
  font-size: 0.9rem;
  max-width: 320px;
}

.footer-contact p {
  font-size: 0.88rem;
  color: #d5d5d5;
}

.footer-contact a:hover {
  color: var(--gold);
}

.footer-copyright {
  margin-top: 20px;
  font-size: 0.78rem;
  color: #9a9a9a;
}

/* ---------- Tablet and up ---------- */
@media (min-width: 640px) {
  .hero h1 { font-size: 2.6rem; }
}

@media (min-width: 900px) {
  .hero { padding: 88px 0 76px; }
  .hero h1 { font-size: 3.1rem; }
  .section-title { font-size: 2.1rem; }

  .hero-inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 60px;
  }

  .hero-copy { max-width: 560px; }

  .testimonial-card { flex-basis: 320px; }

  .footer-inner {
    flex-direction: row;
    justify-content: space-between;
  }
}
