/* ==========================================================================
   Fanloom — landing page stylesheet
   Static marketing site. Plain CSS3, no framework, no build step.
   Colour tokens mirror config/brand.php in the Laravel application.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Tokens
   -------------------------------------------------------------------------- */
:root {
  --primary: #7C3AED;
  --primary-dark: #5B21B6;
  --primary-light: #A78BFA;
  --primary-soft: #F5F3FF;
  --accent: #EA580C;
  --accent-dark: #C2410C;
  --accent-soft: #FFF7ED;
  --success: #047857;
  --ink: #0B0A1F;
  --ink-soft: #1E1B3A;
  --muted: #5B6478;
  --line: #E2E8F0;
  --surface: #FFFFFF;
  --canvas: #F7F8FC;

  --font-head: "Space Grotesk", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --font-body: "DM Sans", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;

  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 22px;
  --radius-xl: 28px;

  --shadow-sm: 0 1px 2px rgba(11, 10, 31, .06), 0 1px 3px rgba(11, 10, 31, .05);
  --shadow-md: 0 6px 16px -6px rgba(11, 10, 31, .12), 0 2px 6px -2px rgba(11, 10, 31, .06);
  --shadow-lg: 0 24px 48px -20px rgba(91, 33, 182, .28), 0 10px 20px -12px rgba(11, 10, 31, .12);
  --shadow-violet: 0 14px 30px -12px rgba(124, 58, 237, .55);

  --container: 1160px;
  --gutter: 24px;
  --header-h: 68px;
  --ease: cubic-bezier(.2, .7, .3, 1);
}

/* --------------------------------------------------------------------------
   2. Reset & base
   -------------------------------------------------------------------------- */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: var(--font-head);
  color: var(--ink);
  line-height: 1.14;
  letter-spacing: -.02em;
  margin: 0 0 .5em;
  font-weight: 600;
}

h1 { font-size: clamp(2.1rem, 1.35rem + 3.1vw, 3.6rem); font-weight: 700; }
h2 { font-size: clamp(1.7rem, 1.22rem + 1.9vw, 2.55rem); }
h3 { font-size: clamp(1.12rem, 1.02rem + .38vw, 1.32rem); }
h4 { font-size: 1rem; letter-spacing: -.01em; }

p { margin: 0 0 1.05em; }
p:last-child { margin-bottom: 0; }

a { color: var(--primary-dark); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--primary); }

img, svg, canvas { max-width: 100%; }
img { height: auto; display: block; }

ul, ol { margin: 0 0 1.05em; padding-left: 1.15em; }
li { margin: .3em 0; }

hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 48px 0;
}

button { font: inherit; color: inherit; }

code, .mono {
  font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
  font-size: .92em;
  background: var(--primary-soft);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: .1em .38em;
}

:focus-visible {
  outline: 3px solid var(--primary);
  outline-offset: 3px;
  border-radius: 4px;
}

::selection { background: var(--primary-light); color: #fff; }

/* --------------------------------------------------------------------------
   3. Layout helpers
   -------------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding: clamp(64px, 7vw, 104px) 0; }
.section--tight { padding: clamp(48px, 5vw, 72px) 0; }
.section--surface { background: var(--surface); }
.section--soft { background: var(--primary-soft); }

.section-head {
  max-width: 720px;
  margin: 0 auto clamp(36px, 4.5vw, 60px);
  text-align: center;
}
.section-head p {
  color: var(--muted);
  font-size: 1.06rem;
  margin: 0;
}
.section-head--left { margin-inline: 0; text-align: left; }

.eyebrow {
  display: inline-block;
  font-family: var(--font-head);
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--accent-dark);
  margin-bottom: 14px;
}
.eyebrow--violet { color: var(--primary-dark); }

.lead { color: var(--muted); font-size: 1.08rem; }
.muted { color: var(--muted); }
.text-success { color: var(--success); }

/* --------------------------------------------------------------------------
   4. Buttons
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 13px 22px;
  border-radius: 999px;
  border: 1.5px solid transparent;
  font-family: var(--font-head);
  font-size: .96rem;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: transform .18s var(--ease), box-shadow .18s var(--ease),
              background-color .18s var(--ease), color .18s var(--ease),
              border-color .18s var(--ease);
  will-change: transform;
}
.btn:active { transform: translateY(1px); }

.btn--primary {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: #fff;
  box-shadow: var(--shadow-violet);
}
.btn--primary:hover { color: #fff; transform: translateY(-2px); box-shadow: 0 18px 34px -12px rgba(124, 58, 237, .62); }

.btn--ghost {
  background: var(--surface);
  color: var(--ink);
  border-color: var(--line);
  box-shadow: var(--shadow-sm);
}
.btn--ghost:hover { color: var(--ink); border-color: var(--primary-light); transform: translateY(-2px); box-shadow: var(--shadow-md); }

.btn--outline-light {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, .42);
}
.btn--outline-light:hover { color: #fff; background: rgba(255, 255, 255, .12); border-color: #fff; transform: translateY(-2px); }

.btn--lg { padding: 16px 30px; font-size: 1.03rem; }
.btn--block { width: 100%; }

.btn__icon { width: 18px; height: 18px; flex: none; }

/* --------------------------------------------------------------------------
   5. Skip link
   -------------------------------------------------------------------------- */
.skip-link {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 200;
  background: var(--ink);
  color: #fff;
  padding: 11px 18px;
  border-radius: 999px;
  font-weight: 700;
  font-size: .9rem;
  text-decoration: none;
  transition: top .18s var(--ease);
}
.skip-link:focus { top: 12px; color: #fff; }

/* --------------------------------------------------------------------------
   6. Header
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, .88);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 18px;
  min-height: var(--header-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
  flex: none;
}
.brand:hover { color: var(--ink); }
.brand__mark { width: 34px; height: 34px; flex: none; }
.brand__name {
  font-family: var(--font-head);
  font-size: 1.24rem;
  font-weight: 700;
  letter-spacing: -.025em;
}
.brand__tag {
  font-size: .72rem;
  color: var(--muted);
  font-weight: 500;
  display: block;
  letter-spacing: .01em;
  margin-top: -4px;
}

.nav { margin-left: auto; }
.nav__list {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav__list li { margin: 0; }
.nav__link {
  display: inline-block;
  padding: 8px 12px;
  border-radius: 8px;
  color: var(--ink-soft);
  text-decoration: none;
  font-size: .95rem;
  font-weight: 500;
  transition: color .18s var(--ease), background-color .18s var(--ease);
}
.nav__link:hover { color: var(--primary-dark); background: var(--primary-soft); }

.header-actions { display: flex; align-items: center; gap: 10px; flex: none; }
.header-actions .btn { padding: 10px 18px; font-size: .92rem; }

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  cursor: pointer;
  margin-left: auto;
}
.nav-toggle__bars { position: relative; display: block; width: 18px; height: 12px; }
.nav-toggle__bars span {
  position: absolute;
  left: 0;
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: var(--ink);
  transition: transform .22s var(--ease), opacity .18s var(--ease);
}
.nav-toggle__bars span:nth-child(1) { top: 0; }
.nav-toggle__bars span:nth-child(2) { top: 5px; }
.nav-toggle__bars span:nth-child(3) { top: 10px; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars span:nth-child(1) { transform: translateY(5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars span:nth-child(3) { transform: translateY(-5px) rotate(-45deg); }

/* --------------------------------------------------------------------------
   7. Hero
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(48px, 5.5vw, 86px) 0 clamp(56px, 6vw, 96px);
  background:
    radial-gradient(900px 480px at 78% -12%, rgba(167, 139, 250, .32), transparent 62%),
    radial-gradient(680px 420px at 6% 8%, rgba(234, 88, 12, .12), transparent 60%),
    linear-gradient(180deg, #FFF 0%, var(--primary-soft) 62%, var(--canvas) 100%);
}

.hero-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.04fr);
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 7px 15px 7px 9px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  font-size: .86rem;
  font-weight: 500;
  color: var(--ink-soft);
  margin-bottom: 22px;
}
.hero-badge__dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--accent);
  flex: none;
}

.hero h1 { margin-bottom: 20px; }
.hero h1 em {
  font-style: normal;
  background: linear-gradient(120deg, var(--primary) 0%, var(--accent-dark) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-sub {
  font-size: clamp(1.02rem, .98rem + .3vw, 1.16rem);
  color: var(--muted);
  max-width: 54ch;
  margin-bottom: 28px;
}

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

.trust {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 20px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.trust li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  font-size: .9rem;
  font-weight: 500;
  color: var(--ink-soft);
}
.trust svg { width: 16px; height: 16px; color: var(--success); flex: none; }

.hero-visual { position: relative; }
.hero-canvas {
  position: absolute;
  inset: -60px -70px;
  z-index: 0;
  pointer-events: none;
}
.hero-canvas canvas { width: 100%; height: 100%; display: block; }
.hero-mockup { position: relative; z-index: 1; margin: 0; }
.hero-mockup figcaption {
  margin-top: 14px;
  text-align: center;
  font-size: .86rem;
  color: var(--muted);
}

.hero-note {
  margin-top: 18px;
  font-size: .9rem;
  color: var(--muted);
}
.hero-note a { font-weight: 600; }

/* --------------------------------------------------------------------------
   8. Social proof strip
   -------------------------------------------------------------------------- */
.proof {
  background: var(--surface);
  border-block: 1px solid var(--line);
  padding: 30px 0;
}
.proof__label {
  text-align: center;
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 18px;
}
.proof__list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 14px 38px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.proof__list li { margin: 0; }
.proof__item {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--ink-soft);
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: -.01em;
  opacity: .82;
}
.proof__item svg { width: 22px; height: 22px; color: var(--primary); flex: none; }

/* --------------------------------------------------------------------------
   9. Bento features
   -------------------------------------------------------------------------- */
.bento {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 26px 26px 28px;
  box-shadow: var(--shadow-sm);
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), border-color .2s var(--ease);
  overflow: hidden;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--primary-light); }

.card--wide { grid-column: span 2; }
.card--tall { grid-row: span 2; }
.card--accent {
  background: linear-gradient(140deg, var(--primary-dark) 0%, #4C1D95 100%);
  border-color: transparent;
  color: #EDE9FE;
}
.card--accent h3, .card--accent h4 { color: #fff; }
.card--accent .card__text { color: #DCD3FB; }
.card--accent .card__icon { background: rgba(255, 255, 255, .14); color: #fff; }
.card--accent a { color: #fff; }

.card__icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--primary-soft);
  color: var(--primary-dark);
  margin-bottom: 16px;
}
.card__icon svg { width: 21px; height: 21px; }
.card__icon--warm { background: var(--accent-soft); color: var(--accent-dark); }
.card__icon--green { background: #ECFDF5; color: var(--success); }

.card h3 { margin-bottom: 8px; }
.card__text { color: var(--muted); font-size: .96rem; margin: 0; }
.card__list {
  list-style: none;
  margin: 14px 0 0;
  padding: 0;
  display: grid;
  gap: 8px;
}
.card__list li {
  position: relative;
  padding-left: 22px;
  margin: 0;
  font-size: .93rem;
  color: var(--ink-soft);
}
.card__list li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: .58em;
  width: 7px;
  height: 7px;
  border-radius: 2px;
  background: var(--primary-light);
  transform: rotate(45deg);
}
.card--accent .card__list li { color: #DCD3FB; }
.card--accent .card__list li::before { background: var(--accent); }

.tier-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}
.tier-chip {
  display: inline-flex;
  flex-direction: column;
  gap: 2px;
  padding: 10px 14px;
  border-radius: 12px;
  background: var(--canvas);
  border: 1px solid var(--line);
  min-width: 108px;
}
.tier-chip strong {
  font-family: var(--font-head);
  font-size: 1.02rem;
  color: var(--ink);
  letter-spacing: -.01em;
}
.tier-chip span { font-size: .78rem; color: var(--muted); }
.card--accent .tier-chip { background: rgba(255, 255, 255, .1); border-color: rgba(255, 255, 255, .2); }
.card--accent .tier-chip strong { color: #fff; }
.card--accent .tier-chip span { color: #C9BEF4; }

/* --------------------------------------------------------------------------
   10. How it works
   -------------------------------------------------------------------------- */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}
.steps {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 30px;
  box-shadow: var(--shadow-sm);
}
.steps--fans { background: linear-gradient(160deg, var(--primary-soft) 0%, #FFFFFF 55%); }
.steps__head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
}
.steps__head svg { width: 30px; height: 30px; flex: none; }
.steps__head h3 { margin: 0; }
.steps__intro { color: var(--muted); font-size: .95rem; margin-bottom: 22px; }

.step {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  gap: 14px;
  padding: 16px 0;
  border-top: 1px solid var(--line);
}
.step:first-of-type { border-top: 0; padding-top: 4px; }
.step__num { width: 34px; height: 34px; }
.step__body h4 { margin: 2px 0 4px; font-family: var(--font-head); font-size: 1.03rem; }
.step__body p { margin: 0; color: var(--muted); font-size: .93rem; }

/* --------------------------------------------------------------------------
   11. Pricing
   -------------------------------------------------------------------------- */
.billing {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  margin-bottom: 36px;
}
.billing-toggle {
  display: inline-flex;
  padding: 5px;
  gap: 4px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
  box-shadow: var(--shadow-sm);
}
.billing-btn {
  border: 0;
  background: transparent;
  border-radius: 999px;
  padding: 9px 20px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: .94rem;
  color: var(--muted);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: background-color .2s var(--ease), color .2s var(--ease), transform .2s var(--ease);
}
.billing-btn:hover { color: var(--ink); }
.billing-btn.is-active {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: #fff;
  box-shadow: var(--shadow-violet);
}
.billing-btn__save {
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  padding: 2px 7px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-dark);
}
.billing-btn.is-active .billing-btn__save { background: rgba(255, 255, 255, .22); color: #fff; }
.billing__note { font-size: .88rem; color: var(--muted); margin: 0; }

.plans {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  align-items: start;
}
.plan {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 26px 24px 28px;
  box-shadow: var(--shadow-sm);
  height: 100%;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease);
}
.plan:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.plan--featured {
  border-color: var(--primary);
  box-shadow: var(--shadow-lg);
  position: relative;
}
.plan__flag {
  position: absolute;
  top: -12px;
  left: 24px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: #fff;
  font-family: var(--font-head);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 999px;
}
.plan__name { font-family: var(--font-head); font-size: 1.16rem; font-weight: 600; margin: 0 0 3px; }
.plan__for { font-size: .85rem; color: var(--muted); margin: 0 0 16px; min-height: 2.6em; }
.plan__price {
  display: flex;
  align-items: baseline;
  gap: 2px;
  font-family: var(--font-head);
  color: var(--ink);
  letter-spacing: -.035em;
  margin: 0;
}
.plan__price .currency { font-size: 1.35rem; font-weight: 600; }
.plan__price .amount { font-size: 2.5rem; font-weight: 700; line-height: 1.05; }
.plan__price .per { font-size: .92rem; color: var(--muted); font-weight: 500; letter-spacing: 0; }
.plan__billing { font-size: .82rem; color: var(--muted); margin: 6px 0 16px; min-height: 2.5em; }
.plan__billing strong { color: var(--success); font-weight: 600; }
.plan__cta { margin-bottom: 18px; }
.plan__features {
  list-style: none;
  margin: 0;
  padding: 18px 0 0;
  border-top: 1px solid var(--line);
  display: grid;
  gap: 9px;
}
.plan__features li {
  position: relative;
  padding-left: 24px;
  margin: 0;
  font-size: .9rem;
  color: var(--ink-soft);
}
.plan__features li svg {
  position: absolute;
  left: 0;
  top: .22em;
  width: 15px;
  height: 15px;
  color: var(--success);
}
.plan__features li.is-off { color: var(--muted); }
.plan__features li.is-off svg { color: #B6BECD; }

.pricing-footnote {
  margin-top: 34px;
  padding: 20px 22px;
  border-radius: var(--radius);
  background: var(--primary-soft);
  border: 1px solid #E6DDFE;
  color: var(--ink-soft);
  font-size: .93rem;
  display: flex;
  gap: 14px;
  align-items: flex-start;
}
.pricing-footnote svg { width: 20px; height: 20px; color: var(--primary-dark); flex: none; margin-top: 2px; }

/* Comparison table */
.compare { margin-top: 56px; }
.compare h3 { text-align: center; margin-bottom: 8px; }
.compare__intro { text-align: center; color: var(--muted); font-size: .95rem; margin-bottom: 24px; }
.compare__scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); }
.compare table {
  width: 100%;
  min-width: 720px;
  border-collapse: collapse;
  font-size: .92rem;
}
.compare caption {
  caption-side: top;
  text-align: left;
  padding: 18px 20px 6px;
  font-size: .82rem;
  color: var(--muted);
}
.compare th, .compare td {
  padding: 13px 18px;
  text-align: left;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
.compare thead th {
  font-family: var(--font-head);
  font-size: .92rem;
  font-weight: 600;
  color: var(--ink);
  background: var(--canvas);
  white-space: nowrap;
}
.compare thead th:first-child { border-top-left-radius: 0; }
.compare tbody th {
  font-weight: 600;
  color: var(--ink-soft);
  font-size: .9rem;
  width: 26%;
}
.compare td { color: var(--muted); }
.compare .is-us {
  background: var(--primary-soft);
  color: var(--ink);
  font-weight: 600;
}
.compare thead .is-us { color: var(--primary-dark); }
.compare tbody tr:last-child th,
.compare tbody tr:last-child td { border-bottom: 0; }
.compare__note { margin-top: 14px; font-size: .82rem; color: var(--muted); }

/* --------------------------------------------------------------------------
   12. Creator earnings
   -------------------------------------------------------------------------- */
.earn-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: clamp(28px, 4vw, 52px);
  align-items: center;
}
.chart {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 26px 26px 22px;
  box-shadow: var(--shadow-sm);
}
.chart__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 20px;
}
.chart__title { font-family: var(--font-head); font-weight: 600; font-size: 1.05rem; margin: 0; }
.chart__value {
  font-family: var(--font-head);
  font-size: 1.85rem;
  font-weight: 700;
  letter-spacing: -.03em;
  color: var(--ink);
  margin: 0;
  font-variant-numeric: tabular-nums;
}
.chart__value small { font-size: .82rem; font-weight: 500; color: var(--muted); letter-spacing: 0; }
.chart__label { font-size: .82rem; color: var(--muted); margin: 2px 0 0; }
.chart__bars {
  display: flex;
  align-items: flex-end;
  gap: 10px;
  height: 190px;
  padding-top: 10px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 10px;
}
.chart__bar {
  position: relative;
  flex: 1;
  height: 100%;
  display: flex;
  align-items: flex-end;
}
.chart__bar span {
  display: block;
  width: 100%;
  height: var(--h);
  border-radius: 8px 8px 3px 3px;
  background: linear-gradient(180deg, var(--primary-light) 0%, var(--primary) 100%);
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform .7s var(--ease);
  transition-delay: var(--d, 0s);
}
.js .is-visible .chart__bar span,
.chart__bar.is-in span { transform: scaleY(1); }
.chart__bar:last-child span { background: linear-gradient(180deg, var(--accent) 0%, var(--accent-dark) 100%); }
.chart__months {
  display: flex;
  gap: 10px;
  font-size: .78rem;
  color: var(--muted);
}
.chart__months span { flex: 1; text-align: center; }
.chart__disclaimer { font-size: .78rem; color: var(--muted); margin: 16px 0 0; }

.quotes { display: grid; gap: 16px; }
.quote {
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 3px solid var(--primary-light);
  border-radius: var(--radius);
  padding: 22px 24px;
  box-shadow: var(--shadow-sm);
}
.quote p {
  font-size: 1rem;
  color: var(--ink-soft);
  margin: 0 0 14px;
  font-style: italic;
}
.quote__meta { display: flex; align-items: center; gap: 10px; }
.quote__avatar {
  width: 34px; height: 34px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--font-head); font-weight: 700; font-size: .85rem;
  background: var(--primary-soft); color: var(--primary-dark);
  flex: none;
}
.quote__name { font-family: var(--font-head); font-weight: 600; font-size: .92rem; }
.quote__role { font-size: .8rem; color: var(--muted); }
.quote__tag {
  display: inline-block;
  margin-left: auto;
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--accent-dark);
  background: var(--accent-soft);
  border-radius: 999px;
  padding: 3px 9px;
  white-space: nowrap;
}

/* --------------------------------------------------------------------------
   13. FAQ
   -------------------------------------------------------------------------- */
.faq {
  display: grid;
  grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
  gap: clamp(28px, 4vw, 56px);
  align-items: start;
}
.faq__list { display: grid; gap: 10px; }
.faq__item {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color .2s var(--ease);
}
.faq__item[open] { border-color: var(--primary-light); box-shadow: var(--shadow-sm); }
.faq__item summary {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 17px 20px;
  cursor: pointer;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1rem;
  color: var(--ink);
  list-style: none;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::marker { content: ""; }
.faq__item summary:hover { color: var(--primary-dark); }
.faq__q { flex: 1; }
.faq__chev {
  width: 20px; height: 20px; flex: none;
  color: var(--primary);
  transition: transform .22s var(--ease);
}
.faq__item[open] .faq__chev { transform: rotate(180deg); }
.faq__a {
  padding: 0 20px 20px;
  color: var(--muted);
  font-size: .96rem;
  margin: 0;
}
.faq__a code { font-size: .86em; }
.faq__side {
  position: sticky;
  top: calc(var(--header-h) + 24px);
}
.faq__cta {
  margin-top: 22px;
  padding: 24px;
  border-radius: var(--radius-lg);
  background: linear-gradient(150deg, var(--primary-dark) 0%, #4C1D95 100%);
  color: #EDE9FE;
}
.faq__cta h3 { color: #fff; }
.faq__cta p { color: #DCD3FB; font-size: .94rem; }

/* --------------------------------------------------------------------------
   14. Final CTA
   -------------------------------------------------------------------------- */
.final {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(700px 360px at 50% -20%, rgba(167, 139, 250, .38), transparent 65%),
    linear-gradient(140deg, var(--primary-dark) 0%, #3B1173 100%);
  color: #EDE9FE;
  text-align: center;
  padding: clamp(56px, 7vw, 92px) 0;
}
.final h2 { color: #fff; max-width: 20ch; margin-inline: auto; }
.final p { color: #DCD3FB; max-width: 56ch; margin-inline: auto; font-size: 1.06rem; }
.final__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 28px;
}
.final__note { margin-top: 22px; font-size: .88rem; color: #BFB2EE; }

/* --------------------------------------------------------------------------
   15. Footer
   -------------------------------------------------------------------------- */
.site-footer {
  background: var(--ink);
  color: #B9BBD0;
  padding: clamp(48px, 6vw, 72px) 0 28px;
  font-size: .93rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) repeat(4, minmax(0, 1fr));
  gap: 32px;
}
.footer-brand .brand { color: #fff; }
.footer-brand .brand:hover { color: #fff; }
.footer-brand .brand__tag { color: #8B8DA6; }
.footer-brand p { margin: 18px 0 0; max-width: 34ch; color: #9EA0B8; font-size: .92rem; }
.footer-col h3 {
  color: #fff;
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.footer-col li { margin: 0; }
.footer-col a { color: #B9BBD0; text-decoration: none; transition: color .18s var(--ease); }
.footer-col a:hover { color: #fff; text-decoration: underline; }

.socials { display: flex; gap: 10px; margin-top: 20px; }
.socials a {
  width: 38px; height: 38px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, .16);
  color: #B9BBD0;
  transition: background-color .18s var(--ease), color .18s var(--ease), border-color .18s var(--ease);
}
.socials a:hover { background: rgba(255, 255, 255, .1); color: #fff; border-color: rgba(255, 255, 255, .4); }
.socials svg { width: 17px; height: 17px; }

.footer-bottom {
  margin-top: 40px;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, .1);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  font-size: .85rem;
  color: #8B8DA6;
}
.footer-bottom a { color: #B9BBD0; }
.footer-bottom__note { display: inline-flex; align-items: center; gap: 8px; }
.footer-bottom__note svg { width: 14px; height: 14px; color: var(--primary-light); }

/* --------------------------------------------------------------------------
   16. Scroll reveal
   -------------------------------------------------------------------------- */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .5s var(--ease), transform .5s var(--ease);
  transition-delay: var(--reveal-delay, 0s);
}
.js [data-reveal].is-visible { opacity: 1; transform: none; }

/* --------------------------------------------------------------------------
   17. Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
  .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .plans { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .footer-brand { grid-column: span 3; }
}

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr); }
  .hero-visual { max-width: 620px; }
  .earn-grid, .faq, .steps-grid { grid-template-columns: minmax(0, 1fr); }
  .faq__side { position: static; }
}

@media (max-width: 860px) {
  :root { --header-h: 62px; }
  /* The tagline is a nice touch on a wide screen but it pushes the header
     past the edge of a phone. */
  .site-header .brand__tag { display: none; }
  .site-header .brand { min-width: 0; }
  .nav-toggle { display: inline-flex; }
  .nav {
    position: absolute;
    left: 0; right: 0; top: 100%;
    background: var(--surface);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-md);
    display: none;
    padding: 10px var(--gutter) 18px;
    margin: 0;
  }
  .nav.is-open { display: block; }
  .nav__list { flex-direction: column; align-items: stretch; gap: 2px; }
  .nav__link { padding: 12px 10px; font-size: 1rem; }
  .header-actions { margin-left: 0; }
  .header-actions .btn--ghost { display: none; }
}

@media (max-width: 720px) {
  body { font-size: 16px; }
  .bento { grid-template-columns: minmax(0, 1fr); }
  .card--wide { grid-column: span 1; }
  .plans { grid-template-columns: minmax(0, 1fr); }
  .plan--featured { order: -1; }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-brand { grid-column: span 2; }
  .chart__bars { height: 150px; }
  .hero-canvas { inset: -30px -40px; }
}

@media (max-width: 460px) {
  .header-actions .btn--primary { display: none; }
  .footer-grid { grid-template-columns: minmax(0, 1fr); }
  .footer-brand { grid-column: span 1; }
  .billing-toggle { width: 100%; justify-content: center; }
  .billing-btn { flex: 1; justify-content: center; padding: 9px 12px; }
}

/* --------------------------------------------------------------------------
   18. Reduced motion
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
  .js [data-reveal] { opacity: 1; transform: none; }
  .chart__bar span { transform: scaleY(1); }
}

/* --------------------------------------------------------------------------
   19. Print
   -------------------------------------------------------------------------- */
@media print {
  .site-header, .nav-toggle, .hero-canvas, .final__actions, .skip-link { display: none !important; }
  body { background: #fff; font-size: 12pt; }
  .card, .plan, .chart, .quote, .steps, .faq__item { break-inside: avoid; box-shadow: none; }
}
