/* ------------------------------------------------------------------ base */
:root {
  --brand: #6d28d9;
  --brand-dark: #4c1d95;
  --pink: #db2777;
  --grad: linear-gradient(135deg, #7c3aed 0%, #c026d3 55%, #db2777 100%);
  --ink: #140f2d;
  --text: #2b2545;
  --muted: #5f5a76;
  --line: #e8e5f2;
  --soft: #f6f4ff;
  --radius: 16px;
  --shadow: 0 18px 40px -24px rgba(76, 29, 149, .45);
  --maxw: 1140px;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
body {
  margin: 0;
  font: 17px/1.65 ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--text);
  background: #fff;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4 { color: var(--ink); line-height: 1.2; letter-spacing: -.015em; }
a { color: var(--brand); text-underline-offset: .18em; }
a:hover { color: var(--brand-dark); }
img { max-width: 100%; height: auto; }
:focus-visible { outline: 3px solid #a78bfa; outline-offset: 2px; border-radius: 6px; }
[id] { scroll-margin-top: 84px; }
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 22px; }
.narrow { max-width: 780px; }
.grad-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 10px; }
.skip-link:focus { top: 12px; color: #fff; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 22px; border-radius: 999px; border: 1px solid transparent;
  font-weight: 700; font-size: 1rem; line-height: 1.2; text-decoration: none;
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.btn-primary { background: var(--grad); color: #fff; box-shadow: var(--shadow); }
.btn-primary:hover { color: #fff; transform: translateY(-1px); }
.btn-ghost { background: #fff; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { color: var(--ink); border-color: #cbc3ea; }

/* ------------------------------------------------------------------ header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .92);
  -webkit-backdrop-filter: saturate(180%) blur(12px); backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav { position: relative; display: flex; align-items: center; gap: 24px; height: 66px; }
.logo { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.18rem; letter-spacing: -.02em; color: var(--ink); text-decoration: none; }
.logo:hover { color: var(--ink); }
.logo img { display: block; border-radius: 9px; }
.main-nav { margin-left: auto; }
.nav-links { display: flex; align-items: center; gap: 24px; list-style: none; margin: 0; padding: 0; }
.nav-links a { color: var(--muted); font-weight: 600; font-size: .95rem; text-decoration: none; }
.nav-links a:hover, .nav-links a[aria-current] { color: var(--ink); }
.nav-links a[aria-current] { box-shadow: inset 0 -2px 0 var(--pink); }
.menu-btn {
  display: none; align-items: center; justify-content: center; width: 44px; height: 44px; margin-left: auto;
  background: #fff; border: 1px solid var(--line); border-radius: 12px; color: var(--ink); cursor: pointer;
}
@media (max-width: 820px) {
  .menu-btn { display: inline-flex; }
  .main-nav { margin-left: 0; }
  .nav-links {
    display: none; position: absolute; top: 66px; left: -22px; right: -22px;
    flex-direction: column; align-items: stretch; gap: 0; padding: 6px 22px 14px;
    background: #fff; border-bottom: 1px solid var(--line); box-shadow: 0 24px 30px -24px rgba(20, 15, 45, .3);
  }
  .nav-links.open { display: flex; }
  .nav-links a { display: block; padding: 13px 0; border-bottom: 1px solid var(--line); }
  .nav-links a[aria-current] { box-shadow: none; color: var(--brand); }
  .nav-links li:last-child a { border-bottom: 0; }
}

/* ------------------------------------------------------------------ home */
.hero {
  padding: 76px 0 60px; text-align: center;
  background:
    radial-gradient(800px 420px at 85% -20%, #fbe3f2 0%, rgba(251, 227, 242, 0) 60%),
    radial-gradient(800px 460px at 10% -10%, #ece7ff 0%, rgba(236, 231, 255, 0) 60%);
}
.kicker { margin: 0; font-size: .8rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--pink); }
.hero h1 { max-width: 15em; margin: 14px auto 18px; font-size: clamp(2.2rem, 5.4vw, 3.7rem); line-height: 1.06; letter-spacing: -.03em; }
.lead { margin: 0 auto; max-width: 38em; font-size: 1.16rem; color: var(--muted); }
.pills { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; list-style: none; margin: 32px 0 0; padding: 0; }
.pills a {
  display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; border-radius: 999px;
  background: #fff; border: 1px solid var(--line); color: var(--ink); font-weight: 700; font-size: .95rem; text-decoration: none;
  transition: border-color .15s, transform .15s;
}
.pills a:hover { border-color: #c4b5fd; transform: translateY(-1px); }
.pills span { min-width: 22px; padding: 1px 7px; border-radius: 999px; background: var(--soft); color: var(--brand); font-size: .8rem; }

.section { padding: 72px 0; }
.section.alt { background: var(--soft); }
.section-head { max-width: 640px; margin: 0 auto 36px; text-align: center; }
.section-head h2 { margin: 0 0 10px; font-size: clamp(1.7rem, 3.2vw, 2.3rem); }
.section-head p { margin: 0; color: var(--muted); }
@media (max-width: 620px) { .section { padding: 56px 0; } .hero { padding: 52px 0 44px; } }

/* guide cards */
.guides { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
@media (max-width: 960px) { .guides { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .guides { grid-template-columns: 1fr; } }
.guide-card {
  --c: var(--brand);
  position: relative; display: flex; flex-direction: column; gap: 10px; padding: 24px;
  background: #fff; border: 1px solid var(--line); border-top: 4px solid var(--c); border-radius: var(--radius);
  transition: transform .2s ease, box-shadow .2s ease;
}
.guide-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.cat { align-self: flex-start; font-size: .76rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--c, var(--pink)); text-decoration: none; }
.guide-card h2, .guide-card h3 { margin: 0; font-size: 1.15rem; line-height: 1.35; }
.guide-card h2 a, .guide-card h3 a { color: var(--ink); text-decoration: none; }
.guide-card h2 a::after, .guide-card h3 a::after { content: ""; position: absolute; inset: 0; border-radius: var(--radius); }
.guide-card p { flex: 1; margin: 0; color: var(--muted); font-size: .96rem; }
.read { display: inline-flex; align-items: center; gap: 6px; color: var(--c); font-weight: 700; font-size: .92rem; }
.c-instagram { --c: #c026d3; }
.c-tiktok { --c: #0891b2; }
.c-analytics { --c: #d97706; }
.c-safety { --c: #059669; }

.principles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
@media (max-width: 820px) { .principles { grid-template-columns: 1fr; } }
.principle { padding: 26px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.principle h3 { margin: 0 0 8px; font-size: 1.12rem; }
.principle p { margin: 0; color: var(--muted); }

.faq { display: grid; gap: 12px; max-width: 780px; margin: 0 auto; }
.faq details { padding: 0 22px; background: #fff; border: 1px solid var(--line); border-radius: 14px; }
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 0; list-style: none; cursor: pointer; font-weight: 700; color: var(--ink); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex: none; width: 9px; height: 9px; margin-top: -5px;
  border-right: 2.5px solid var(--brand); border-bottom: 2.5px solid var(--brand); transform: rotate(45deg); transition: transform .2s;
}
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: 5px; }
.faq details p { margin: 0 0 18px; color: var(--muted); }

.pick {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px;
  margin: 36px 0 0; padding: 24px 26px; background: var(--soft); border: 1px solid #e4dcff; border-radius: 20px;
}
.pick > div { flex: 1; min-width: 220px; }
.pick-label { font-size: .75rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--pink); }
.pick-name { margin: 2px 0 4px; font-size: 1.2rem; font-weight: 800; color: var(--ink); }
.pick p { margin: 0; color: var(--muted); }
.pick .pick-name { color: var(--ink); }

/* ------------------------------------------------------------------ listing pages */
.page-hero { padding: 44px 0 36px; background: linear-gradient(180deg, var(--soft) 0%, #fff 100%); border-bottom: 1px solid var(--line); }
.page-hero h1 { margin: 14px 0 10px; font-size: clamp(2rem, 4.2vw, 2.9rem); letter-spacing: -.025em; }
.page-hero .lead { margin: 0; }
.listing { padding-top: 40px; padding-bottom: 80px; }
.cat-section + .cat-section { margin-top: 48px; }
.cat-section h2 { margin: 0 0 18px; font-size: 1.5rem; }
.cat-section h2 a { color: var(--ink); text-decoration: none; }
.cat-section h2 a:hover { color: var(--brand); }

.breadcrumbs ol { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; margin: 0; padding: 0; font-size: .88rem; color: var(--muted); }
.breadcrumbs li + li::before { content: "/"; margin-right: 6px; color: #b5aed0; }
.breadcrumbs a { color: var(--muted); text-decoration: none; }
.breadcrumbs a:hover { color: var(--brand); }

/* ------------------------------------------------------------------ article */
.article { padding-top: 40px; padding-bottom: 24px; }
.article-head { margin-bottom: 28px; }
.article-head .breadcrumbs li[aria-current] { display: none; }
.article-head .cat { display: inline-block; margin-top: 22px; }
.article-head h1 { margin: 8px 0 14px; font-size: clamp(2rem, 4.4vw, 2.9rem); line-height: 1.12; letter-spacing: -.025em; }
.byline { margin: 0; color: var(--muted); font-size: .92rem; }
.answer { margin: 0 0 32px; padding: 20px 22px; background: var(--soft); border: 1px solid #e4dcff; border-left: 4px solid var(--brand); border-radius: 14px; }
.answer-label { margin: 0 0 4px; font-size: .76rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--brand); }
.answer p:last-child { margin: 0; color: var(--ink); font-size: 1.05rem; }

.prose { font-size: 1.07rem; line-height: 1.75; }
.prose > :first-child { margin-top: 0; }
.prose h2 { margin: 2em 0 .6em; font-size: 1.6rem; }
.prose h3 { margin: 1.6em 0 .5em; font-size: 1.22rem; }
.prose p, .prose ul, .prose ol, .prose pre, .prose blockquote, .prose .table-wrap { margin: 0 0 1.2em; }
.prose ul, .prose ol { padding-left: 1.4em; }
.prose li { margin: .4em 0; }
.prose li::marker { color: var(--brand); font-weight: 700; }
.prose strong { color: var(--ink); }
.prose blockquote { padding: 16px 22px; background: #fff8e6; border-left: 4px solid #f59e0b; border-radius: 0 14px 14px 0; color: var(--ink); }
.prose blockquote p:last-child { margin-bottom: 0; }
.prose code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .9em; }
.prose :not(pre) > code { padding: .1em .4em; background: var(--soft); border: 1px solid var(--line); border-radius: 6px; }
.prose pre { overflow-x: auto; padding: 18px 20px; border-radius: 14px; background: #16112b; color: #f2efff; font-size: .95rem; line-height: 1.6; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 14px; }
.prose table { width: 100%; border-collapse: collapse; font-size: .97rem; }
.prose th, .prose td { padding: 11px 14px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.prose th { background: var(--soft); color: var(--ink); }
.prose tbody tr:last-child td { border-bottom: 0; }

.read-next { padding-top: 40px; padding-bottom: 80px; border-top: 1px solid var(--line); margin-top: 40px; }
.read-next h2 { margin: 0 0 20px; font-size: 1.5rem; }
.read-next .guides { grid-template-columns: 1fr; }
.back { display: inline-flex; align-items: center; gap: 6px; margin-top: 28px; font-weight: 700; text-decoration: none; }

/* 404 */
.notfound { padding: 96px 0 120px; text-align: center; }
.notfound .big { margin: 0; font-size: clamp(4.5rem, 14vw, 8rem); font-weight: 900; line-height: 1; letter-spacing: -.04em; }
.notfound h1 { margin: 10px 0 12px; font-size: clamp(1.8rem, 4vw, 2.5rem); }
.actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 28px; }

/* ------------------------------------------------------------------ footer */
.site-footer { padding: 60px 0 28px; background: #120d26; color: #b9b3d1; font-size: .95rem; }
.site-footer .logo { color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 36px; }
.footer-brand p { max-width: 30em; margin: 14px 0 0; }
.site-footer .f-title { margin: 6px 0 14px; color: #fff; font-size: .8rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.site-footer ul { display: grid; gap: 9px; list-style: none; margin: 0; padding: 0; }
.site-footer a { color: #e4defa; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; margin-top: 44px; padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, .1); font-size: .85rem;
}
.footer-bottom p { margin: 0; }
@media (max-width: 820px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}
