:root {
  --bg: #f5f1fb;
  --surface: rgba(255,255,255,.92);
  --surface-2: #eee8fb;
  --ink: #1d1930;
  --muted: #6f6884;
  --purple: #6d4bd8;
  --purple-2: #8c6cf1;
  --purple-3: #d9cdf8;
  --line: #ddd4f2;
  --shadow: 0 18px 50px rgba(65,42,118,.10);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at 12% 8%, rgba(140,108,241,.18), transparent 28%),
    radial-gradient(circle at 88% 18%, rgba(216,205,248,.55), transparent 30%),
    linear-gradient(180deg, #faf8fd 0%, var(--bg) 100%);
  min-height: 100vh;
}
a { color: inherit; }
.page-shell { width: min(760px, calc(100% - 28px)); margin: 0 auto; padding: 22px 0 40px; }
.card, .topic-card {
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
}
.hero {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  padding: 24px;
}
.hero::after {
  content: "";
  position: absolute;
  width: 240px;
  height: 240px;
  right: -110px;
  top: -110px;
  border-radius: 50%;
  background: linear-gradient(145deg, rgba(109,75,216,.24), rgba(140,108,241,.04));
}
.brand-row { display: flex; gap: 16px; align-items: center; position: relative; z-index: 1; }
.brand-mark {
  width: 78px; height: 78px; flex: 0 0 78px;
  border-radius: 24px;
  display: grid; place-items: center;
  background: linear-gradient(145deg, #ffffff, #eee8fb);
  border: 1px solid #ded4f5;
  color: #262236;
  font-weight: 800;
  font-size: 26px;
  letter-spacing: -.04em;
  box-shadow: inset 0 1px 0 #fff, 0 10px 24px rgba(64,44,109,.10);
}
.brand-mark span { color: var(--purple); margin-left: 3px; }
.eyebrow, .section-kicker, .tag {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .12em;
  color: var(--purple);
}
h1 { margin: 5px 0 0; font-size: clamp(28px, 7vw, 46px); line-height: .98; letter-spacing: -.045em; max-width: 560px; }
.lead { position: relative; z-index: 1; margin: 22px 0 0; color: var(--muted); font-size: 16px; line-height: 1.55; max-width: 620px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; position: relative; z-index: 1; }
.chips span { padding: 8px 11px; background: var(--surface-2); border: 1px solid #ddd2f6; border-radius: 999px; font-size: 12px; font-weight: 700; color: #554774; }
.section-title-wrap { padding: 28px 5px 14px; }
h2 { margin: 4px 0 0; font-size: 28px; letter-spacing: -.035em; }
.grid { display: grid; gap: 14px; }
.topic-card {
  display: flex;
  gap: 16px;
  padding: 18px;
  border-radius: 24px;
  text-decoration: none;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.topic-card[href]:hover { transform: translateY(-2px); border-color: #cbbcf2; box-shadow: 0 22px 55px rgba(65,42,118,.15); }
.icon {
  width: 58px; height: 58px; flex: 0 0 58px;
  border-radius: 18px;
  display: grid; place-items: center;
  background: linear-gradient(145deg, #f3edff, #e4dafb);
  font-size: 27px;
  border: 1px solid #dbd0f5;
}
.topic-copy { min-width: 0; }
.topic-copy h3 { margin: 4px 0 6px; font-size: 20px; letter-spacing: -.025em; }
.topic-copy p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.5; }
.cta { display: inline-block; margin-top: 12px; font-weight: 800; color: var(--purple); font-size: 14px; }
.muted-card { opacity: .72; box-shadow: none; }
.cta.muted { color: var(--muted); }
.note { margin-top: 18px; border-radius: 22px; padding: 16px 18px; display: flex; gap: 12px; align-items: flex-start; }
.note-dot { width: 10px; height: 10px; margin-top: 5px; border-radius: 50%; background: var(--purple); box-shadow: 0 0 0 6px #ece5fb; flex: 0 0 auto; }
.note strong { font-size: 14px; }
.note p { margin: 4px 0 0; color: var(--muted); font-size: 12px; line-height: 1.5; }
footer { display: flex; justify-content: space-between; gap: 12px; padding: 24px 4px 0; color: #877fa0; font-size: 12px; }
@media (max-width: 560px) {
  .page-shell { width: min(100% - 18px, 760px); padding-top: 10px; }
  .hero { border-radius: 24px; padding: 18px; }
  .brand-row { align-items: flex-start; }
  .brand-mark { width: 64px; height: 64px; flex-basis: 64px; border-radius: 20px; font-size: 22px; }
  h1 { font-size: 31px; }
  .lead { font-size: 14px; }
  .topic-card { padding: 15px; border-radius: 20px; }
  .icon { width: 50px; height: 50px; flex-basis: 50px; border-radius: 16px; font-size: 23px; }
  .topic-copy h3 { font-size: 18px; }
  footer { flex-direction: column; }
}

/* Channel-safe offer routing: TikTok-only offers never render for Instagram/direct traffic. */
.tiktok-only { display: none; }
html[data-source="tiktok"] .tiktok-only { display: flex; }
