/* claimpit.com — playful red/orange one-pager. Vanilla CSS, no deps. */

:root {
  --ink: #2a1c16;
  --ink-soft: #6b574d;
  --cream: #fff8f3;
  --cream-2: #fff1e6;
  --card: #ffffff;
  --line: #f0ddcf;
  --red: #ff4d3d;
  --orange: #ffae1f;
  --grad: linear-gradient(120deg, #ff4d3d 0%, #ff7a2f 45%, #ffae1f 100%);

  /* verdict palette — mirrors fact-check/lib/constants.js */
  --v-true: #2ecc71;
  --v-false: #e74c3c;
  --v-misleading: #f1c40f;
  --v-unverifiable: #9aa4ad;

  --radius: 18px;
  --shadow: 0 18px 40px -22px rgba(120, 50, 20, 0.45);
  --shadow-sm: 0 8px 22px -16px rgba(120, 50, 20, 0.5);
  --maxw: 1080px;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: inherit; }

.grad {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------- decorative blobs ---------- */
.blobs { position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.blob { position: absolute; border-radius: 50%; filter: blur(70px); opacity: 0.4; }
.blob--1 { width: 460px; height: 460px; background: #ff6a3d; top: -160px; right: -120px; }
.blob--2 { width: 380px; height: 380px; background: #ffc24b; top: 380px; left: -150px; opacity: 0.32; }
.blob--3 { width: 420px; height: 420px; background: #ff8a5b; bottom: -180px; right: -80px; opacity: 0.28; }

/* ---------- nav ---------- */
.nav {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 22px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 800; }
.brand__mark { display: inline-flex; filter: drop-shadow(0 4px 10px rgba(255, 90, 40, 0.45)); }
.brand__word { font-size: 22px; letter-spacing: -0.02em; }
.nav__links { display: flex; gap: 22px; font-weight: 600; font-size: 15px; }
.nav__links a { text-decoration: none; color: var(--ink-soft); transition: color 0.15s; }
.nav__links a:hover { color: var(--red); }

/* ---------- layout ---------- */
main { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.section { margin: 96px 0; }
.section__head { text-align: center; max-width: 640px; margin: 0 auto 36px; }
.section__title { font-size: clamp(28px, 4vw, 40px); letter-spacing: -0.03em; margin: 0 0 10px; }
.section__sub { font-size: 17px; color: var(--ink-soft); margin: 0; }

/* ---------- hero ---------- */
.hero { text-align: center; padding: 40px 0 8px; }
.eyebrow {
  text-transform: uppercase; letter-spacing: 0.22em; font-size: 12.5px; font-weight: 700;
  color: var(--red); margin: 0 0 18px;
}
.hero__title {
  font-size: clamp(40px, 8vw, 76px); line-height: 1.02; letter-spacing: -0.04em;
  margin: 0 auto 22px; max-width: 14ch; font-weight: 800;
}
.hero__lead { font-size: clamp(17px, 2.4vw, 20px); color: var(--ink-soft); max-width: 56ch; margin: 0 auto 30px; }
.hero__cta { display: flex; gap: 14px; justify-content: center; align-items: center; flex-wrap: wrap; }

.badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 11px 20px; border-radius: 999px; font-weight: 700; font-size: 15px;
  color: #fff; background: var(--grad); box-shadow: var(--shadow-sm);
}
.badge--soon { cursor: default; }

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 11px 18px; border-radius: 999px; font-weight: 700; font-size: 15px;
  text-decoration: none; border: 2px solid transparent; transition: transform 0.15s, border-color 0.15s, color 0.15s;
}
.btn--ghost { color: var(--ink); border-color: var(--line); background: rgba(255,255,255,0.6); }
.btn--ghost:hover { border-color: var(--orange); color: var(--red); transform: translateY(-1px); }
/* Primary install button — shown once the extension is published (replaces the
   "coming soon" badge). Mirrors the badge's gradient fill, but lifts on hover. */
.btn--store { color: #fff; background: var(--grad); box-shadow: var(--shadow-sm); }
.btn--store:hover { transform: translateY(-1px); box-shadow: var(--shadow); }

.verdict-dots { display: flex; gap: 10px; justify-content: center; margin-top: 40px; }
.verdict-dots span { width: 13px; height: 13px; border-radius: 50%; background: var(--c); box-shadow: 0 4px 10px -3px var(--c); }

/* ---------- cards ---------- */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.card--feature { padding: clamp(26px, 4vw, 48px); }
.feature__head { text-align: center; max-width: 640px; margin: 0 auto 32px; }
.feature__head .section__title { margin-bottom: 12px; }

.features { list-style: none; padding: 0; margin: 0 0 36px; display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px 28px; }
.features li { display: flex; gap: 14px; align-items: flex-start; }
.feat-ico {
  flex: none; width: 44px; height: 44px; border-radius: 13px; display: grid; place-items: center;
  font-size: 21px; background: var(--cream-2); border: 1px solid var(--line);
}
.features b { display: block; font-size: 16px; margin-bottom: 2px; }
.features p { margin: 0; font-size: 14.5px; color: var(--ink-soft); }

/* ---------- verdict legend ---------- */
.legend { background: var(--cream-2); border: 1px solid var(--line); border-radius: 14px; padding: 22px 24px; }
.legend__title { margin: 0 0 16px; font-size: 14px; text-transform: uppercase; letter-spacing: 0.12em; color: var(--ink-soft); }
.legend__list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.legend__list li { display: flex; align-items: center; gap: 9px; font-weight: 600; font-size: 14.5px; }
.legend-dot { width: 14px; height: 14px; border-radius: 50%; flex: none; }
.legend small { display: block; font-weight: 500; color: var(--ink-soft); font-size: 12.5px; }

.feature__cta { text-align: center; margin-top: 32px; }

/* ---------- stats ---------- */
.stats { display: flex; justify-content: center; gap: clamp(24px, 6vw, 72px); margin: 0 0 30px; flex-wrap: wrap; }
.stat { text-align: center; }
.stat__num { display: block; font-size: clamp(32px, 5vw, 46px); font-weight: 800; letter-spacing: -0.03em; line-height: 1;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat__label { font-size: 14px; color: var(--ink-soft); font-weight: 600; }

/* ---------- filters ---------- */
.filters { display: flex; gap: 10px; justify-content: center; margin: 0 0 30px; flex-wrap: wrap; }
.chip {
  font: inherit; font-weight: 700; font-size: 14.5px; cursor: pointer;
  padding: 9px 18px; border-radius: 999px; border: 1.5px solid var(--line);
  background: rgba(255,255,255,0.7); color: var(--ink-soft); transition: all 0.15s;
}
.chip:hover { border-color: var(--orange); color: var(--ink); }
.chip.is-active { background: var(--grad); border-color: transparent; color: #fff; box-shadow: var(--shadow-sm); }

/* ---------- grid + cards ---------- */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(258px, 1fr)); gap: 22px; }

.item {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow-sm); display: flex; flex-direction: column;
  transition: transform 0.16s, box-shadow 0.16s; text-decoration: none; color: inherit;
}
a.item:hover { transform: translateY(-4px); box-shadow: var(--shadow); }

.item__media { position: relative; aspect-ratio: 16 / 9; background: var(--cream-2); overflow: hidden; }
.item__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.item__media--article { display: grid; place-items: center; background: var(--grad); }
.item__media--article .glyph { font-size: 44px; filter: drop-shadow(0 4px 8px rgba(0,0,0,0.18)); }
.item__type {
  position: absolute; top: 10px; left: 10px; font-size: 11.5px; font-weight: 800; letter-spacing: 0.06em;
  text-transform: uppercase; padding: 4px 10px; border-radius: 999px; background: rgba(0,0,0,0.62); color: #fff;
}

.item__body { padding: 15px 16px 17px; display: flex; flex-direction: column; gap: 11px; flex: 1; }
.item__title {
  font-size: 15.5px; font-weight: 700; line-height: 1.35; margin: 0;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.item__title.is-untitled { color: var(--ink-soft); font-weight: 600; font-style: italic; }

.bar { display: flex; height: 9px; border-radius: 999px; overflow: hidden; background: var(--cream-2); }
.bar span { height: 100%; }
.bar__empty { width: 100%; background: repeating-linear-gradient(45deg, #eee, #eee 4px, #f6f6f6 4px, #f6f6f6 8px); }

.item__foot { display: flex; align-items: center; justify-content: space-between; margin-top: auto; font-size: 12.5px; color: var(--ink-soft); }
.item__claims { font-weight: 700; color: var(--ink); }
.item__claims b { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------- skeleton / state ---------- */
.skeleton { aspect-ratio: 0.78; border-radius: var(--radius); background: linear-gradient(100deg, #f4e7dc 30%, #fbf2ea 50%, #f4e7dc 70%);
  background-size: 200% 100%; animation: shimmer 1.3s infinite; }
@keyframes shimmer { from { background-position: 200% 0; } to { background-position: -200% 0; } }

.state-msg { text-align: center; font-size: 17px; color: var(--ink-soft); padding: 40px 0; }
.state-msg b { color: var(--ink); }

/* ---------- footer ---------- */
.footer { max-width: var(--maxw); margin: 60px auto 0; padding: 48px 24px 56px; border-top: 1px solid var(--line); text-align: center; }
.footer__teaser { font-size: clamp(20px, 3vw, 26px); font-weight: 800; letter-spacing: -0.02em; margin: 0 0 14px; }
.footer__meta { font-size: 14px; color: var(--ink-soft); display: flex; gap: 12px; justify-content: center; align-items: center; flex-wrap: wrap; }
.footer__meta a { color: var(--red); text-decoration: none; font-weight: 600; }
.footer__meta a:hover { text-decoration: underline; }

/* ---------- responsive ---------- */
@media (max-width: 680px) {
  .nav__links { display: none; }
  .section { margin: 70px 0; }
  .features { grid-template-columns: 1fr; }
  .legend__list { grid-template-columns: repeat(2, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; scroll-behavior: auto; }
  a.item:hover { transform: none; }
}
