:root {
  --bg: #faf8f4;
  --surface: #ffffff;
  --text: #1c1b19;
  --muted: #6b675f;
  --line: #e6e1d7;
  --accent: #d1452c;
  --accent-ink: #ffffff;
  --trend: #fde7df;
  --trend-ink: #a3321e;
  --ever: #e3efe6;
  --ever-ink: #2f6b43;
  --radius: 14px;
  --band: #17130f;
  --band-text: #fbf6ee;
  --band-muted: #b9ae9f;
  --pop: #ffcf3f;
  --font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #151412;
    --surface: #1e1d1a;
    --text: #f1eee8;
    --muted: #a39e94;
    --line: #34312c;
    --accent: #f06a4f;
    --accent-ink: #1a0d09;
    --trend: #3a1f18;
    --trend-ink: #ffb19f;
    --ever: #1d2e22;
    --ever-ink: #9fd4b0;
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.6 var(--font);
}
a { color: inherit; }
.wrap { max-width: 1040px; margin: 0 auto; padding: 0 16px; }
.muted { color: var(--muted); }

.site-header { border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: baseline; gap: 14px; padding-top: 16px; padding-bottom: 16px; flex-wrap: wrap; }
.brand { font-weight: 750; font-size: 19px; letter-spacing: -0.02em; text-decoration: none; display: inline-flex; align-items: center; gap: 8px; }
.brand-mark { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 8px; background: var(--accent); color: var(--accent-ink); font-size: 12px; }
.brand-tag { color: var(--muted); font-size: 14px; }

h1, h2, h3 { line-height: 1.2; letter-spacing: -0.02em; }
h1 { font-size: clamp(30px, 5vw, 46px); margin: 0 0 16px; max-width: 22ch; }
h2 { font-size: 24px; margin: 48px 0 16px; }
h3 { font-size: 19px; margin: 0 0 10px; }
.lead { font-size: 18px; color: var(--muted); max-width: 62ch; margin: 0; }
.section-title { font-size: 14px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); margin: 48px 0 16px; }

.hero { padding-top: 56px; padding-bottom: 8px; }

.chip { display: inline-block; font-size: 12px; font-weight: 650; padding: 3px 9px; border-radius: 999px; }
.chip-trending { background: var(--trend); color: var(--trend-ink); }
.chip-evergreen { background: var(--ever); color: var(--ever-ink); }

/* Home hero: a dark band with the example clips stacked like phones. */
.hero-band { background: var(--band); color: var(--band-text); overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; align-items: center; padding-top: 64px; padding-bottom: 64px; }
.kicker { margin: 0 0 14px; font-size: 13px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--pop); }
.hero-band h1 { font-size: clamp(34px, 5.4vw, 58px); max-width: 16ch; letter-spacing: -0.035em; line-height: 1.04; }
.hero-band h1 em { font-style: normal; color: var(--pop); }
.hero-band .lead { color: var(--band-muted); }
.hero-actions { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; margin-top: 28px; }
.cta { display: inline-flex; gap: 8px; align-items: center; padding: 13px 22px; border-radius: 999px; background: var(--pop); color: #17130f; font-weight: 750; text-decoration: none; }
.cta:hover { filter: brightness(1.05); }
.stat { color: var(--band-muted); font-size: 14px; }
.reel { position: relative; height: 420px; }
.reel-item { position: absolute; display: block; border-radius: 18px; overflow: hidden; box-shadow: 0 24px 60px rgb(0 0 0 / 0.45); border: 3px solid #2b241d; background: #000; transition: transform 0.2s; }
.reel-item video { display: block; width: 100%; height: 100%; object-fit: cover; }
.reel-item span { position: absolute; left: 10px; bottom: 10px; padding: 4px 10px; border-radius: 999px; background: rgb(0 0 0 / 0.65); color: #fff; font-size: 12px; font-weight: 650; }
.reel-item:hover { transform: translateY(-4px) rotate(0deg) !important; z-index: 5; }
.reel-item.wide { width: 62%; aspect-ratio: 16 / 9; }
.reel-item.tall { width: 34%; aspect-ratio: 9 / 16; }
.reel-1 { left: 0; top: 30px; transform: rotate(-4deg); z-index: 2; }
.reel-2 { right: 0; top: 0; transform: rotate(3deg); z-index: 3; }
.reel-3 { left: 14%; bottom: 0; transform: rotate(2deg); z-index: 1; }
.reel-item.tall.reel-2 { top: 10px; }

.meme-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 20px; }
.meme-card {
  display: flex; flex-direction: column; overflow: hidden;
  border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--surface); text-decoration: none;
  transition: border-color 0.15s, transform 0.15s, box-shadow 0.15s;
}
.meme-card:hover { border-color: var(--accent); transform: translateY(-3px); box-shadow: 0 14px 30px rgb(0 0 0 / 0.08); }
.poster { position: relative; aspect-ratio: 16 / 10; background: var(--band); overflow: hidden; }
.poster img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 30%; display: block; }
.poster .chip { position: absolute; top: 12px; left: 12px; }
.play { position: absolute; right: 12px; bottom: 12px; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: rgb(255 255 255 / 0.92); color: #17130f; font-size: 13px; padding-left: 2px; }
.card-body { display: flex; flex-direction: column; gap: 10px; padding: 18px 20px 20px; flex: 1; }
.meme-card h3 { margin: 0; font-size: 22px; }
.meme-card p { margin: 0; color: var(--muted); font-size: 15px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.card-foot { margin-top: auto; font-weight: 650; color: var(--accent); font-size: 15px; }

.io { display: grid; gap: 6px; margin: 4px 0; }
.io div { display: flex; gap: 8px; font-size: 14px; }
.io dt { color: var(--muted); min-width: 72px; }
.io dd { margin: 0; font-weight: 600; }
.io-wide { grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; margin-top: 24px; }
.io-wide div { flex-direction: column; gap: 2px; padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.io-wide dd { font-size: 16px; }

.how ol { padding-left: 20px; max-width: 62ch; color: var(--muted); }
.how li { margin: 6px 0; }

.crumbs { font-size: 14px; color: var(--muted); padding-top: 24px; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }
.meme-head { padding-top: 24px; }
.meme-head-grid { display: grid; grid-template-columns: 1fr minmax(0, 440px); gap: 40px; align-items: start; }
.meme-head-grid.tall { grid-template-columns: 1fr minmax(0, 300px); }
.example { margin: 0; }
.example video { display: block; width: 100%; height: auto; border-radius: var(--radius); background: #000; box-shadow: 0 18px 40px rgb(0 0 0 / 0.14); }
.example figcaption { margin-top: 10px; font-size: 13px; color: var(--muted); }
.eyebrow { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--muted); margin: 0 0 14px; }
.aka { font-size: 14px; color: var(--muted); margin: 12px 0 0; }

.verdict { margin-top: 32px; padding: 20px 24px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--accent); }
.verdict h2 { margin: 0 0 8px; font-size: 18px; }
.verdict ul { margin: 0; padding-left: 20px; }
.verdict li { margin: 6px 0; }

.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.compare { width: 100%; border-collapse: collapse; font-size: 14px; }
.compare caption { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.compare th, .compare td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.compare thead th { font-size: 12px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); font-weight: 650; white-space: nowrap; }
.compare tbody tr:last-child th, .compare tbody tr:last-child td { border-bottom: 0; }
.compare tbody th a { font-weight: 700; text-decoration: none; }
.compare tbody th a:hover { text-decoration: underline; }
.src { text-decoration: none; color: var(--accent); font-size: 12px; padding: 0 2px; }
.fine { font-size: 13px; color: var(--muted); }

.tool { padding: 20px 0; border-top: 1px solid var(--line); scroll-margin-top: 16px; }
.tool:first-of-type { border-top: 0; padding-top: 0; }
.note { margin: 0 0 8px; color: var(--muted); font-size: 15px; }
.steps { margin: 0 0 12px; padding-left: 22px; }
.steps li { margin: 4px 0; }
.out {
  display: inline-flex; align-items: center; gap: 6px; font-weight: 650; font-size: 15px;
  padding: 10px 16px; border-radius: 999px; background: var(--accent); color: var(--accent-ink); text-decoration: none;
}
.out:hover { filter: brightness(1.06); }

.empty { margin-top: 32px; padding: 24px; border: 1px dashed var(--line); border-radius: var(--radius); }
.empty h2 { margin: 0 0 8px; font-size: 20px; }
.empty p { margin: 0; color: var(--muted); }

details { border-bottom: 1px solid var(--line); padding: 14px 0; }
details summary { cursor: pointer; font-weight: 650; }
details p { margin: 8px 0 0; color: var(--muted); }

.site-footer { margin-top: 72px; border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; }
.site-footer .wrap { padding-top: 24px; padding-bottom: 40px; }
.site-footer p { margin: 6px 0; }

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

/* On phones each tool row becomes a card with labelled values. */
@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; padding-top: 44px; padding-bottom: 40px; gap: 28px; }
  .reel { height: 300px; }
  .meme-head-grid, .meme-head-grid.tall { grid-template-columns: 1fr; gap: 24px; }
  .meme-head-grid.tall .example { max-width: 260px; }
  .io-wide { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .io-wide div { padding: 10px 12px; }
  .io-wide dt { font-size: 12px; }
  .io-wide dd { font-size: 14px; }
}
@media (max-width: 720px) {
  .hero { padding-top: 36px; }
  .reel { height: 240px; }
  .table-wrap { border: 0; background: none; overflow: visible; }
  .compare, .compare tbody, .compare tr, .compare th, .compare td { display: block; width: 100%; }
  .compare thead { display: none; }
  .compare tr { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); margin-bottom: 12px; padding: 6px 0; }
  .compare tbody th { border-bottom: 1px solid var(--line); font-size: 16px; }
  .compare td { display: flex; justify-content: space-between; gap: 16px; border-bottom: 0; padding: 7px 14px; }
  .compare td::before { content: attr(data-label); color: var(--muted); flex: none; }
  .compare td { text-align: right; }
}
@media (prefers-reduced-motion: reduce) {
  .meme-card { transition: none; }
  .meme-card:hover, .reel-item:hover { transform: none; }
  .meme-card, .reel-item { transition: none; }
}

/* Placeholder poster for memes shown only through TikTok. */
.poster.placeholder { display: grid; place-items: center; background: radial-gradient(120% 90% at 20% 10%, #3b2a1f 0%, var(--band) 60%); }
.poster-title { padding: 0 24px; color: var(--pop); font-size: 26px; font-weight: 800; letter-spacing: -0.03em; line-height: 1.05; text-align: center; }

/* TikTok original: a button until clicked, then TikTok's own player. */
.tiktok { margin-top: 12px; display: grid; gap: 8px; }
.tiktok-play {
  display: grid; justify-items: start; gap: 4px; width: 100%; padding: 16px 18px;
  border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); color: var(--text);
  font: inherit; text-align: left; cursor: pointer;
}
.tiktok-play:hover { border-color: var(--accent); }
.tiktok-play strong { font-size: 16px; }
.tiktok-play span:last-child { color: var(--muted); font-size: 13px; }
.tt-icon { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--band); color: #fff; font-size: 12px; padding-left: 2px; margin-bottom: 6px; }
.tiktok-link { font-size: 13px; color: var(--muted); }
.tiktok-frame { width: 100%; max-width: 340px; aspect-ratio: 9 / 16; border: 0; border-radius: var(--radius); background: #000; }
.example-tiktok .tiktok { margin-top: 0; }
.example-tiktok .tiktok-play { aspect-ratio: 9 / 13; align-content: end; background: radial-gradient(120% 90% at 20% 10%, #3b2a1f 0%, var(--band) 65%); color: var(--band-text); border-color: transparent; }
.example-tiktok .tiktok-play span:last-child { color: var(--band-muted); }
.example-tiktok .tt-icon { width: 56px; height: 56px; font-size: 18px; background: var(--pop); color: #17130f; }
.tiktok-play:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
