/* PromoMonster — design tokens and components.
   Hand-written: shared hosting has no Node, so there is no build step here. */

:root {
  --paper: #faf9f6;
  --surface: #ffffff;
  --raised: #f2f1ec;
  --ink: #101418;
  --muted: #56606d;
  --faint: #8a93a0;
  --line: #e3e1da;
  --brand: #0b6b5b;
  --lime: #8ed03f;
  --earn: #c2621d;

  --radius: 12px;
  --radius-sm: 8px;
  --max: 72rem;
  --font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, monospace;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #0b0e11;
    --surface: #12161b;
    --raised: #1a1f26;
    --ink: #edf0f3;
    --muted: #9aa4b1;
    --faint: #6c7685;
    --line: #242b33;
    --brand: #2fb89c;
    --lime: #a8e055;
    --earn: #e8955a;
  }
}

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

html { color-scheme: light dark; scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; }
::selection { background: var(--lime); color: #101418; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* Layout ------------------------------------------------------------------ */

.container { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: 1.25rem; }
@media (min-width: 640px) { .container { padding-inline: 2rem; } }

.section { padding-block: 4rem; }
.section--hero { padding-block: 5rem; }
.section--bordered { border-top: 1px solid var(--line); }
.section--hero-bordered { border-bottom: 1px solid var(--line); }
@media (min-width: 640px) { .section--hero { padding-block: 7rem; } }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--brand); color: #fff; padding: .625rem 1rem;
  border-radius: var(--radius-sm); font-weight: 600;
}
.skip-link:focus { left: 1rem; top: 1rem; }

/* Header / footer --------------------------------------------------------- */

.site-header {
  position: sticky; top: 0; z-index: 50;
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: blur(8px);
}
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; height: 4rem; }

.logo { display: inline-flex; align-items: center; gap: .5rem; text-decoration: none; color: var(--ink); font-weight: 600; font-size: 1.0625rem; letter-spacing: -.01em; }
.logo svg { flex-shrink: 0; }
.logo__word { white-space: nowrap; }
.logo__accent { color: var(--brand); }

.site-nav { display: flex; align-items: center; gap: .125rem; font-size: .875rem; }
.site-nav a { padding: .5rem .75rem; border-radius: var(--radius-sm); color: var(--muted); text-decoration: none; font-weight: 500; }
.site-nav a:hover { color: var(--ink); }
.site-nav a.is-cta { background: var(--brand); color: #fff; font-weight: 600; padding-inline: 1rem; margin-left: .25rem; }
.site-nav a.is-cta:hover { opacity: .9; color: #fff; }
.site-nav__link { display: none; }
@media (min-width: 700px) { .site-nav__link { display: block; } }

.site-footer { margin-top: 6rem; border-top: 1px solid var(--line); padding-block: 3rem; }
.site-footer__grid { display: flex; flex-direction: column; gap: 1.5rem; }
@media (min-width: 640px) { .site-footer__grid { flex-direction: row; justify-content: space-between; align-items: flex-start; } }
.site-footer p { max-width: 30rem; color: var(--muted); font-size: .875rem; margin: .75rem 0 0; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; font-size: .875rem; }
.site-footer nav a { color: var(--muted); text-decoration: none; }
.site-footer nav a:hover { color: var(--ink); }
.site-footer__legal { margin-top: 2rem; font-size: .75rem; color: var(--faint); }

/* Typography -------------------------------------------------------------- */

h1, h2, h3 { letter-spacing: -.02em; line-height: 1.12; margin: 0; }
h1 { font-size: clamp(2.25rem, 5vw, 3.75rem); font-weight: 600; }
h2 { font-size: clamp(1.5rem, 3vw, 1.875rem); font-weight: 600; }
h3 { font-size: 1.125rem; font-weight: 600; }

.eyebrow { margin: 0 0 1rem; font-size: .75rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--brand); }
.lede { margin: 1.5rem 0 0; max-width: 40rem; font-size: 1.125rem; line-height: 1.6; color: var(--muted); }
.prose { max-width: 44rem; }
.prose p { color: var(--muted); margin: 1rem 0 0; }
.measure { max-width: 48rem; }
.muted { color: var(--muted); }
.mono { font-family: var(--mono); font-size: .75rem; color: var(--faint); }

/* Buttons ----------------------------------------------------------------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .8125rem 1.25rem; border-radius: var(--radius-sm); border: 1px solid transparent;
  font-size: .875rem; font-weight: 600; text-decoration: none; cursor: pointer;
  font-family: inherit; transition: opacity .15s, background-color .15s;
}
.btn--primary { background: var(--brand); color: #fff; }
.btn--earn { background: var(--earn); color: #fff; }
.btn--primary:hover, .btn--earn:hover { opacity: .9; }
.btn--secondary { background: var(--surface); color: var(--ink); border-color: var(--line); }
.btn--secondary:hover { background: var(--raised); }
.btn--block { width: 100%; }
.btn:disabled { opacity: .5; cursor: not-allowed; }

.btn-row { display: flex; flex-direction: column; gap: .75rem; margin-top: 2.25rem; }
@media (min-width: 640px) { .btn-row { flex-direction: row; } }

/* Cards & grids ----------------------------------------------------------- */

.card { border: 1px solid var(--line); background: var(--surface); border-radius: var(--radius); padding: 1.5rem; }
.card--flush { padding: 0; }

.grid { display: grid; gap: 1.25rem; }
@media (min-width: 700px) { .grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 700px) { .grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 640px) { .grid--sm2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.stat__value { font-size: 1.875rem; font-weight: 600; letter-spacing: -.02em; }
.stat__label { margin-top: .25rem; font-size: .875rem; color: var(--muted); }
.stat-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2rem; margin-top: 3rem; max-width: 40rem; }

.tick-list { list-style: none; margin: 1.25rem 0 0; padding: 0; display: grid; gap: .5rem; font-size: .9375rem; color: var(--muted); }
.tick-list li { display: flex; gap: .625rem; }
.tick-list li::before { content: "—"; color: var(--brand); flex-shrink: 0; }
.tick-list--earn li::before { content: "✓"; color: var(--earn); }

.steps { display: grid; gap: 2rem; margin-top: 2.5rem; }
@media (min-width: 640px) { .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.steps__num { font-family: var(--mono); font-size: .875rem; color: var(--brand); }
.steps h3 { margin-top: .75rem; }
.steps p { margin: .5rem 0 0; font-size: .9375rem; color: var(--muted); }

.dl { margin: 2rem 0 0; display: grid; gap: 1.5rem; }
@media (min-width: 640px) { .dl--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.75rem 2.5rem; } }
.dl dt { font-weight: 600; }
.dl dd { margin: .375rem 0 0; font-size: .9375rem; color: var(--muted); }

.split { display: grid; gap: 3rem; }
@media (min-width: 860px) { .split { grid-template-columns: 1.1fr 1fr; align-items: start; } }

.price { flex-shrink: 0; font-size: .875rem; font-weight: 600; color: var(--brand); }
.card__head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; }

/* Forms ------------------------------------------------------------------- */

.form { display: grid; gap: .75rem; }
.form__row { display: grid; gap: .75rem; }
@media (min-width: 520px) { .form__row--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.field {
  width: 100%; padding: .625rem .875rem; border-radius: var(--radius-sm);
  border: 1px solid var(--line); background: var(--surface); color: var(--ink);
  font-family: inherit; font-size: .875rem;
}
.field::placeholder { color: var(--faint); }
.field:focus-visible { outline: 2px solid var(--brand); outline-offset: 1px; border-color: var(--brand); }
textarea.field { resize: vertical; min-height: 5rem; }

.form__note { margin: 0; font-size: .75rem; color: var(--faint); }

.honeypot { position: absolute; width: 0; height: 0; overflow: hidden; }

.alert { border-radius: var(--radius-sm); padding: .75rem 1rem; font-size: .875rem; }
.alert--error { background: color-mix(in srgb, var(--earn) 12%, transparent); color: var(--earn); }

.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;
}

a:focus-visible, button:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; border-radius: 4px; }
