/* AI GEO Hub - frontend styles (light, modern, responsive) */
:root {
  --bg: #f6f7fb;
  --surface: #ffffff;
  --ink: #171a26;
  --ink-soft: #4d5266;
  --ink-faint: #8a90a5;
  --line: #e4e6ef;
  --brand: #5b5ce2;
  --brand-dark: #4647c9;
  --brand-soft: #eeeeff;
  --accent: #0ea5a5;
  --gold: #b7791f;
  --gold-soft: #fdf3e0;
  --danger: #d64545;
  --ok: #1a9e5c;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(23, 26, 38, .05), 0 8px 24px rgba(23, 26, 38, .07);
  --shadow-lg: 0 12px 40px rgba(23, 26, 38, .14);
  --font: "Inter", "Segoe UI", -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --mono: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  font-size: 16px;
}
img { max-width: 100%; height: auto; }
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }
.wrap { max-width: 1140px; margin: 0 auto; padding: 0 20px; }
.skip-link { position: absolute; left: -9999px; top: 0; background: var(--brand); color: #fff; padding: 8px 14px; z-index: 100; }
.skip-link:focus { left: 8px; top: 8px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; gap: 18px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; color: var(--ink); font-size: 1.05rem; }
.brand:hover { text-decoration: none; }
.brand-mark {
  display: inline-grid; place-items: center;
  width: 34px; height: 34px; border-radius: 9px;
  background: linear-gradient(135deg, var(--brand), #8b5cf6);
  color: #fff; font-size: .78rem; letter-spacing: .5px;
}
.main-nav { display: flex; align-items: center; gap: 4px; margin-left: auto; flex-wrap: wrap; }
.main-nav > a { padding: 7px 11px; border-radius: 8px; color: var(--ink-soft); font-weight: 500; font-size: .93rem; }
.main-nav > a:hover { background: var(--brand-soft); color: var(--brand-dark); text-decoration: none; }
.lang-switch { display: inline-flex; margin-left: 8px; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; }
.lang-switch a { padding: 5px 12px; font-size: .82rem; font-weight: 600; color: var(--ink-soft); }
.lang-switch a.active { background: var(--brand); color: #fff; }
.lang-switch a:hover { text-decoration: none; }
.nav-toggle { display: none; margin-left: auto; background: none; border: 1px solid var(--line); border-radius: 8px; font-size: 1.1rem; padding: 6px 10px; cursor: pointer; }

/* ---------- Hero ---------- */
.hero {
  background:
    radial-gradient(60rem 30rem at 85% -10%, rgba(139, 92, 246, .14), transparent 60%),
    radial-gradient(50rem 26rem at -10% 0%, rgba(14, 165, 165, .12), transparent 55%),
    var(--surface);
  border-bottom: 1px solid var(--line);
  padding: 72px 0 56px;
}
.hero-badge {
  display: inline-block; padding: 5px 14px; border-radius: 999px;
  background: var(--brand-soft); color: var(--brand-dark);
  font-size: .8rem; font-weight: 700; letter-spacing: .4px; text-transform: uppercase;
}
.hero h1 { font-size: clamp(2rem, 4.6vw, 3.2rem); line-height: 1.15; margin: 18px 0 14px; letter-spacing: -.02em; }
.hero h1 em { font-style: normal; background: linear-gradient(120deg, var(--brand), #8b5cf6, var(--accent)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p.hero-sub { font-size: 1.12rem; color: var(--ink-soft); max-width: 46rem; margin: 0 0 28px; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; }
.stats-strip { display: flex; gap: 36px; margin-top: 44px; flex-wrap: wrap; }
.stat b { display: block; font-size: 1.6rem; letter-spacing: -.02em; }
.stat span { color: var(--ink-faint); font-size: .88rem; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 22px; border-radius: 10px; border: 1px solid transparent;
  font-weight: 650; font-size: .95rem; cursor: pointer; text-align: center;
  transition: transform .06s ease, box-shadow .15s ease, background .15s ease;
}
.btn:hover { text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--brand); color: #fff; box-shadow: 0 6px 18px rgba(91, 92, 226, .35); }
.btn-primary:hover { background: var(--brand-dark); }
.btn-outline { background: var(--surface); color: var(--ink); border-color: var(--line); }
.btn-outline:hover { border-color: var(--brand); color: var(--brand-dark); }
.btn-gold { background: linear-gradient(135deg, #d69e2e, #b7791f); color: #fff; }
.btn-gold:hover { filter: brightness(1.06); }
.btn-sm { padding: 7px 14px; font-size: .85rem; border-radius: 8px; }
.btn-block { width: 100%; }

/* ---------- Sections ---------- */
.section { padding: 56px 0; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 26px; flex-wrap: wrap; }
.section-head h2 { font-size: 1.55rem; letter-spacing: -.01em; margin: 0; }
.section-head p { color: var(--ink-soft); margin: 4px 0 0; }
.section-alt { background: var(--surface); border-block: 1px solid var(--line); }

/* ---------- Grid & cards ---------- */
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.card {
  position: relative; display: flex; flex-direction: column;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow);
  transition: transform .15s ease, box-shadow .15s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.card.is-locked .card-summary { filter: blur(2.5px); opacity: .55; }
.card.is-locked .card-title a { pointer-events: none; }
.card-top { display: flex; gap: 8px; padding: 14px 16px 0; flex-wrap: wrap; }
.card-media img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.card-body { padding: 14px 16px 6px; flex: 1; }
.card-title { font-size: 1.08rem; line-height: 1.35; margin: 0 0 8px; letter-spacing: -.01em; }
.card-title a { color: var(--ink); }
.card-summary { margin: 0; color: var(--ink-soft); font-size: .92rem; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.card-answer { margin: 8px 0 0; color: var(--brand-dark); font-size: .82rem; line-height: 1.55; padding-left: 10px; border-left: 3px solid var(--brand-soft); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 16px 16px; }
.card-meta { color: var(--ink-faint); font-size: .8rem; }
.chip {
  display: inline-block; padding: 3px 10px; border-radius: 999px;
  background: var(--brand-soft); color: var(--brand-dark);
  font-size: .74rem; font-weight: 700; letter-spacing: .3px;
}
.chip-premium { background: var(--gold-soft); color: var(--gold); }
.chip-industry {
  background: var(--brand-soft); color: var(--brand-dark);
  font-weight: 600; letter-spacing: 0;
}
.price-tag { font-weight: 800; color: var(--gold); }
.unlocked-tag { font-weight: 700; color: var(--ok); font-size: .85rem; }
.free-tag { font-weight: 800; color: var(--ok); font-size: .78rem; letter-spacing: .5px; }

/* payment slot overlay ("支付占用格子") */
.slot-overlay {
  position: absolute; inset: 0; display: grid; place-items: center;
  background: rgba(246, 247, 251, .72);
  backdrop-filter: blur(2px);
}
.slot-box {
  display: grid; justify-items: center; gap: 6px; text-align: center;
  background: var(--surface); border: 1px dashed #d6b06a; border-radius: 12px;
  padding: 18px 26px; box-shadow: var(--shadow);
}
.slot-lock { font-size: 1.3rem; }
.slot-box strong { font-size: .95rem; }
.slot-price { color: var(--gold); font-weight: 800; font-size: 1.05rem; }

/* ---------- Category strip ---------- */
.cat-strip { display: flex; gap: 12px; flex-wrap: wrap; }
.cat-pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 18px; border-radius: 999px; background: var(--surface);
  border: 1px solid var(--line); color: var(--ink); font-weight: 600;
}
.cat-pill:hover { border-color: var(--brand); color: var(--brand-dark); text-decoration: none; }
.cat-pill .count { color: var(--ink-faint); font-size: .8rem; font-weight: 500; }

/* ---------- How it works ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.step { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.step-num {
  display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%;
  background: var(--brand-soft); color: var(--brand-dark); font-weight: 800; margin-bottom: 12px;
}
.step h3 { margin: 0 0 6px; font-size: 1.05rem; }
.step p { margin: 0; color: var(--ink-soft); font-size: .93rem; }

/* ---------- FAQ ---------- */
.faq-list { display: grid; gap: 10px; max-width: 760px; }
.faq-item { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 4px 18px; }
.faq-item summary { cursor: pointer; font-weight: 650; padding: 12px 0; list-style: none; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; float: right; color: var(--ink-faint); font-weight: 400; }
.faq-item[open] summary::after { content: "−"; }
.faq-item p { margin: 0 0 14px; color: var(--ink-soft); }

/* ---------- Pass CTA ---------- */
.pass-card {
  display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap;
  background: linear-gradient(120deg, #2b2d52, #4647c9 55%, #6d4bc9);
  color: #fff; border-radius: 18px; padding: 34px 38px;
}
.pass-card h2 { margin: 0 0 6px; font-size: 1.5rem; }
.pass-card p { margin: 0; opacity: .85; }
.pass-price { font-size: 2.2rem; font-weight: 800; letter-spacing: -.02em; }
.pass-card .btn-gold { box-shadow: 0 8px 24px rgba(214, 158, 46, .4); }

/* ---------- Article page ---------- */
.article-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 40px; padding: 44px 0 64px; }
.breadcrumb { font-size: .85rem; color: var(--ink-faint); margin-bottom: 14px; }
.breadcrumb a { color: var(--ink-soft); }
.breadcrumb span { margin: 0 6px; }
.article-title { font-size: clamp(1.7rem, 3.4vw, 2.4rem); line-height: 1.2; letter-spacing: -.02em; margin: 0 0 14px; }
.article-meta { display: flex; gap: 14px; flex-wrap: wrap; color: var(--ink-faint); font-size: .88rem; margin-bottom: 26px; }
.article-hero img { border-radius: var(--radius); margin-bottom: 26px; }
.prose { font-size: 1.05rem; }
.prose h2 { font-size: 1.45rem; margin: 40px 0 14px; letter-spacing: -.01em; }
.prose h3 { font-size: 1.18rem; margin: 30px 0 10px; }
.prose h4 { font-size: 1.02rem; margin: 24px 0 8px; }
.prose p { margin: 0 0 18px; }
.prose ul, .prose ol { margin: 0 0 18px; padding-left: 24px; }
.prose li { margin-bottom: 6px; }
.prose blockquote { margin: 22px 0; padding: 14px 20px; border-left: 4px solid var(--brand); background: var(--brand-soft); border-radius: 0 10px 10px 0; color: var(--ink-soft); }
.prose code { font-family: var(--mono); font-size: .88em; background: #eef0f6; padding: 2px 6px; border-radius: 6px; }
.prose pre { background: #171a26; color: #e8eaf2; padding: 18px 20px; border-radius: 12px; overflow-x: auto; font-size: .88rem; line-height: 1.55; }
.prose pre code { background: none; padding: 0; color: inherit; }
.prose img { border-radius: 12px; }
.prose hr { border: none; border-top: 1px solid var(--line); margin: 34px 0; }
.prose table { width: 100%; border-collapse: collapse; margin: 20px 0; font-size: .95rem; }
.prose th, .prose td { border: 1px solid var(--line); padding: 9px 12px; text-align: left; }
.prose th { background: var(--bg); }

.article-side { display: grid; gap: 18px; align-content: start; position: sticky; top: 84px; }
.side-box { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.side-box h4 { margin: 0 0 10px; font-size: .95rem; }
.side-box .side-price { font-size: 1.5rem; font-weight: 800; color: var(--gold); }
.side-list { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 8px; font-size: .9rem; color: var(--ink-soft); }
.side-list li::before { content: "✓ "; color: var(--ok); font-weight: 700; }
.share-row { display: flex; gap: 8px; flex-wrap: wrap; }
.share-row a, .share-row button {
  padding: 7px 12px; border-radius: 8px; border: 1px solid var(--line);
  background: var(--surface); color: var(--ink-soft); font-size: .82rem; cursor: pointer;
}
.share-row a:hover, .share-row button:hover { border-color: var(--brand); color: var(--brand-dark); text-decoration: none; }

.paywall {
  background: linear-gradient(160deg, #fffdf7, #fdf3e0);
  border: 1px dashed #d6b06a; border-radius: 18px; padding: 34px; text-align: center;
}
.paywall .lock-icon { font-size: 2.2rem; }
.paywall h2 { margin: 10px 0 8px; }
.paywall p { color: var(--ink-soft); max-width: 34rem; margin: 0 auto 18px; }
.paywall .paywall-price { font-size: 2rem; font-weight: 800; color: var(--gold); margin-bottom: 18px; }
.paywall .side-list { display: inline-grid; text-align: left; margin-bottom: 22px; }
.teaser-note { text-align: center; color: var(--ink-faint); font-size: .85rem; margin: 26px 0 0; }
.banner-ok { background: #e9f9f0; border: 1px solid #a9e3c3; color: #10693f; border-radius: 12px; padding: 14px 18px; margin-bottom: 24px; }
.banner-err { background: #fdeeee; border: 1px solid #f3c2c2; color: #a13030; border-radius: 12px; padding: 14px 18px; margin-bottom: 24px; }

.faq-visible { margin-top: 44px; }
.faq-visible h2 { font-size: 1.35rem; margin-bottom: 16px; }

/* ---------- Pagination ---------- */
.pagination { display: flex; gap: 6px; justify-content: center; margin-top: 36px; }
.pagination a { padding: 8px 14px; border-radius: 8px; border: 1px solid var(--line); background: var(--surface); color: var(--ink-soft); }
.pagination a.current { background: var(--brand); border-color: var(--brand); color: #fff; font-weight: 700; }

/* ---------- Static pages / forms ---------- */
.page-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 38px; max-width: 780px; margin: 44px auto; }
.page-card h1 { margin-top: 0; }
.form-row { margin-bottom: 16px; }
label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: 6px; }
input[type="text"], input[type="email"], input[type="password"], input[type="number"], input[type="datetime-local"], input[type="url"], select, textarea {
  width: 100%; padding: 10px 12px; border: 1px solid var(--line); border-radius: 9px;
  font: inherit; font-size: .95rem; background: var(--surface); color: var(--ink);
}
input:focus, select:focus, textarea:focus { outline: 2px solid var(--brand); outline-offset: 1px; border-color: var(--brand); }
textarea { min-height: 140px; resize: vertical; }
.form-note { color: var(--ink-faint); font-size: .84rem; margin-top: 6px; }
.search-bar { display: flex; gap: 10px; max-width: 560px; margin: 0 auto 30px; }
.empty-state { text-align: center; color: var(--ink-faint); padding: 60px 0; }

/* ---------- Flash / footer ---------- */
.flash-wrap { padding-top: 18px; }
.flash { background: #e9f9f0; border: 1px solid #a9e3c3; color: #10693f; border-radius: 10px; padding: 12px 16px; }
.site-footer { background: #171a26; color: #b9bdcf; margin-top: 20px; }
.footer-grid { display: grid; grid-template-columns: 1.2fr 1.4fr .8fr; gap: 36px; padding: 52px 20px 36px; }
.footer-brand .brand-mark { margin-bottom: 10px; }
.footer-brand p { font-size: .88rem; line-height: 1.6; }
.footer-sub h3 { color: #fff; font-size: 1rem; margin: 0 0 6px; }
.footer-sub p { font-size: .88rem; margin: 0 0 12px; }
.subscribe-form { display: flex; gap: 8px; }
.subscribe-form input { flex: 1; min-width: 0; background: #22252f; border-color: #333747; color: #fff; }
.subscribe-form input::placeholder { color: #7d8296; }
.footer-sub small { display: block; margin-top: 8px; font-size: .78rem; color: #7d8296; }
.footer-links { display: grid; gap: 8px; align-content: start; }
.footer-links a { color: #b9bdcf; font-size: .9rem; }
.footer-bottom { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; border-top: 1px solid #2a2d3a; padding: 18px 20px; font-size: .82rem; color: #7d8296; }

/* ---------- Hero note ---------- */
.hero-note {
  max-width: 720px; margin: 14px auto 0; padding: 12px 18px;
  background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 12px; color: #d6d9ee; font-size: .95rem;
}

/* ---------- AI engines strip ---------- */
.engines-strip { padding: 40px 0 34px; text-align: center; }
.engines-title { font-size: .95rem; font-weight: 700; color: var(--ink-faint); text-transform: uppercase; letter-spacing: .08em; margin: 0 0 16px; }
.engine-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.engine-chip {
  padding: 8px 18px; border-radius: 999px; background: var(--surface);
  border: 1px solid var(--line); box-shadow: var(--shadow);
  font-weight: 700; font-size: .95rem; color: var(--ink);
}
.engines-note { max-width: 640px; margin: 16px auto 0; color: var(--ink-soft); font-size: .92rem; }

/* ---------- Features / what you get ---------- */
.feature {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px; box-shadow: var(--shadow);
}
.feature-icon { font-size: 1.7rem; line-height: 1; margin-bottom: 12px; }
.feature h3 { margin: 0 0 8px; font-size: 1.08rem; }
.feature p { margin: 0; color: var(--ink-soft); font-size: .93rem; }
.who-list {
  list-style: none; display: flex; flex-wrap: wrap; gap: 10px 28px;
  margin: 26px 0 0; padding: 18px 22px; background: var(--brand-soft);
  border-radius: var(--radius); color: var(--brand-dark); font-weight: 600; font-size: .93rem;
}
.who-list li { padding-left: 22px; position: relative; }
.who-list li::before { content: "✓"; position: absolute; left: 0; font-weight: 800; }

/* ---------- Pricing ---------- */
.pricing-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; max-width: 860px; margin: 0 auto; }
.price-card {
  position: relative; background: var(--surface); border: 1px solid var(--line);
  border-radius: 18px; padding: 30px 28px; box-shadow: var(--shadow);
  display: flex; flex-direction: column; gap: 12px;
}
.price-card-hot { border: 2px solid var(--gold); background: linear-gradient(180deg, #fffdf7, #ffffff); }
.price-card-badge {
  position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
  background: var(--gold); color: #fff; font-size: .75rem; font-weight: 800;
  letter-spacing: .06em; padding: 4px 14px; border-radius: 999px; white-space: nowrap;
}
.price-card h3 { margin: 0; font-size: 1.15rem; }
.price-card-price { font-size: 1.6rem; font-weight: 800; color: var(--brand-dark); }
.price-card-hot .price-card-price { color: var(--gold); }
.price-card-desc { margin: 0; color: var(--ink-soft); font-size: .93rem; }
.price-card-list { list-style: none; margin: 4px 0 14px; padding: 0; display: grid; gap: 8px; font-size: .92rem; color: var(--ink-soft); }
.price-card-list li { padding-left: 22px; position: relative; }
.price-card-list li::before { content: "✓"; position: absolute; left: 0; color: var(--ok); font-weight: 800; }
.price-card .btn { margin-top: auto; justify-content: center; }
.pricing-note { text-align: center; color: var(--ink-faint); font-size: .85rem; margin: 22px 0 0; }
@media (max-width: 680px) {
  .pricing-grid { grid-template-columns: 1fr; }
}

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: 1fr; }
  .article-layout { grid-template-columns: 1fr; }
  .article-side { position: static; }
  .footer-grid { grid-template-columns: 1fr; }
}
@media (max-width: 680px) {
  .grid, .grid-2 { grid-template-columns: 1fr; }
  .nav-toggle { display: block; }
  .main-nav {
    display: none; position: absolute; top: 64px; left: 0; right: 0;
    background: var(--surface); border-bottom: 1px solid var(--line);
    flex-direction: column; align-items: stretch; padding: 10px 20px 16px; margin-left: 0;
  }
  body.nav-open .main-nav { display: flex; }
  .lang-switch { margin-left: 0; align-self: flex-start; }
  .hero { padding: 48px 0 40px; }
  .pass-card { padding: 26px; }
}

/* ---------- Paid leaderboard (rank) ---------- */
.rank-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.rank-row {
  display: grid;
  grid-template-columns: 56px 1fr auto;
  align-items: center;
  gap: 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px 18px;
  box-shadow: var(--shadow);
}
.rank-row.top3 { border-width: 1px; }
.rank-row.rank-1 { border-color: var(--gold); background: linear-gradient(180deg, var(--gold-soft), var(--surface) 60%); }
.rank-row.rank-2 { border-color: #b9bccb; }
.rank-row.rank-3 { border-color: #d9a06b; }
.rank-pos {
  font-size: 1.5rem; font-weight: 800; text-align: center; color: var(--ink-faint);
  width: 56px; height: 56px; line-height: 56px; border-radius: 12px; background: var(--brand-soft); color: var(--brand-dark);
}
.rank-1 .rank-pos { background: var(--gold); color: #fff; }
.rank-2 .rank-pos { background: #eef0f5; color: #6b7088; }
.rank-3 .rank-pos { background: #f6e7d6; color: #9c6a32; }
.rank-main { min-width: 0; }
.rank-title-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.rank-title { font-size: 1.05rem; font-weight: 700; color: var(--ink); }
.rank-title:hover { color: var(--brand); }
.rank-badge { font-size: .68rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--brand-dark); background: var(--brand-soft); padding: 2px 8px; border-radius: 999px; }
.rank-url { display: block; font-size: .82rem; color: var(--ink-faint); word-break: break-all; }
.rank-url:hover { color: var(--brand); }
.rank-desc { margin: 6px 0 0; font-size: .9rem; color: var(--ink-soft); }
.rank-amount { text-align: right; font-weight: 800; color: var(--ink); white-space: nowrap; }
.rank-paid-label { display: block; font-size: .66rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--ink-faint); }

/* ---------- Paid grid slots: 2 columns x 10 rows ---------- */
.ad-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 16px;
}
.ad-cell {
  position: relative; display: flex; flex-direction: column; border-radius: 14px;
  border: 1px solid var(--line); background: var(--surface); overflow: hidden;
  box-shadow: 0 1px 2px rgba(31,35,51,.04);
  min-height: 148px; transition: transform .14s ease, box-shadow .14s ease, border-color .14s ease;
}
.ad-cell:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); border-color: #d7dcea; }
.ad-cell-head {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 9px 12px; border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, #fbfcff, #f6f8fd);
}
.ad-cell-no {
  font-size: .78rem; font-weight: 800; letter-spacing: .06em; color: var(--ink-faint);
  font-variant-numeric: tabular-nums;
}
.ad-cell-main { display: flex; gap: 12px; padding: 12px; flex: 1; align-items: flex-start; }
.ad-cell-body { min-width: 0; flex: 1; }
.ad-cell-title {
  display: block; font-weight: 700; color: var(--ink); line-height: 1.35; font-size: .96rem;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.ad-cell-title:hover { color: var(--brand); }
.ad-cell-url {
  display: block; font-size: .76rem; color: var(--ink-faint); margin-top: 2px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
a.ad-cell-url:hover { color: var(--brand); }
.ad-cell-desc {
  margin: 6px 0 0; font-size: .82rem; color: var(--ink-soft); line-height: 1.5;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.ad-thumb {
  display: block; flex: 0 0 92px; width: 92px; height: 92px; border-radius: 10px;
  background: var(--brand-soft); overflow: hidden; border: 1px solid var(--line);
}
.ad-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ad-thumb-text, .ad-thumb-official {
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--brand-soft), #e9edfb);
}
.ad-thumb-text span, .ad-thumb-official span {
  font-size: 1.7rem; font-weight: 800; color: var(--brand);
  letter-spacing: -.02em;
}
.ad-cell-badge {
  font-size: .62rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
  color: #fff; background: var(--brand); padding: 3px 9px; border-radius: 999px; white-space: nowrap;
}
.ad-cell-badge.is-official { background: #eef0f7; color: #6b7088; }
.ad-cell-foot {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 9px 12px; border-top: 1px dashed var(--line); background: #fbfcff;
}
.ad-cell-status {
  font-size: .72rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
  color: var(--ink-faint);
}
.ad-cell-cta {
  font-size: .8rem; font-weight: 700; color: #fff; background: var(--brand);
  padding: 5px 12px; border-radius: 999px; text-decoration: none; white-space: nowrap;
  transition: background .12s ease, transform .12s ease;
}
.ad-cell-cta:hover { background: var(--brand-dark); color: #fff; text-decoration: none; transform: translateY(-1px); }
.ad-cell-cta.is-ghost {
  background: transparent; color: var(--brand); border: 1px solid var(--brand);
  padding: 4px 12px;
}
.ad-cell-cta.is-ghost:hover { background: var(--brand); color: #fff; }

/* empty slot = currently showing the site's own URL as default content */
.ad-cell.empty { border-style: solid; border-color: #dfe3f0; }
.ad-cell.empty .ad-cell-head { background: linear-gradient(180deg, #f7f9fe, #eef1f9); }
.ad-cell.empty .ad-thumb { border-style: dashed; }

/* filled slot gets a subtle accent so paid placements stand out */
.ad-cell.filled { border-color: #d7dcea; }
.ad-cell.filled .ad-cell-head { background: linear-gradient(180deg, #f2fbf6, #eaf7f0); }
.ad-cell.filled .ad-cell-no { color: #2f8f5e; }

/* ---------- Ad submit form ---------- */
.wrap-narrow { max-width: 640px; }
.ad-form { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); }
.ad-form .form-row { margin-bottom: 16px; }
.ad-form label { display: block; font-weight: 600; margin-bottom: 6px; color: var(--ink); }
.ad-form input[type=text], .ad-form input[type=url], .ad-form input[type=number], .ad-form textarea {
  width: 100%; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; font: inherit; color: var(--ink); background: #fff;
}
.ad-form input:focus, .ad-form textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }
.ad-form .form-note { margin-top: 6px; font-size: .8rem; color: var(--ink-faint); }
.price-tag-lg { font-size: 1.6rem; font-weight: 800; color: var(--brand-dark); }
.ad-form-note { margin: 12px 0 0; font-size: .78rem; color: var(--ink-faint); text-align: center; }
.flash-err { background: #fdeaea; border: 1px solid #f3b9b9; color: #a32626; border-radius: 10px; padding: 12px 14px; margin-bottom: 16px; font-size: .9rem; }
.flash-err div { margin: 2px 0; }

@media (max-width: 900px) { .ad-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) {
  .rank-row { grid-template-columns: 44px 1fr; }
  .rank-amount { grid-column: 2; text-align: left; }
  .rank-pos { width: 44px; height: 44px; line-height: 44px; font-size: 1.2rem; }
  .ad-grid { grid-template-columns: 1fr; }
  .ad-cell { min-height: 0; }
  .ad-thumb { flex: 0 0 62px; width: 62px; height: 62px; }
}

/* ---------- GEO (AI citation readiness) ---------- */
.geo-answer {
  margin: 0 0 28px; padding: 18px 22px;
  background: linear-gradient(135deg, var(--brand-soft), #f6f0ff);
  border: 1px solid #d8d6ff; border-radius: 14px;
}
.geo-answer-title {
  font-size: .78rem; font-weight: 800; text-transform: uppercase; letter-spacing: .08em;
  color: var(--brand-dark); margin: 0 0 8px;
}
.geo-answer p { margin: 0; font-size: 1.05rem; line-height: 1.72; color: var(--ink); }

.author-box {
  display: flex; align-items: center; gap: 12px;
  margin: 0 0 24px; padding: 12px 16px;
  border: 1px solid var(--line); border-radius: 12px; background: #fbfcfe;
}
.author-avatar { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; flex: none; }
.author-meta { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.author-label { font-size: .78rem; color: var(--ink-faint); }
.author-name { font-weight: 700; }
.author-headline { font-size: .82rem; color: var(--ink-faint); }

.geo-citations { margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--line); }
.geo-citations h2 { font-size: 1.2rem; margin-bottom: 14px; }
.geo-citations ol { margin: 0; padding-left: 22px; font-size: .95rem; }
.geo-citations li { margin-bottom: 8px; }

.geo-author-page { max-width: 760px; }
.geo-author-head { display: flex; align-items: center; gap: 18px; margin-bottom: 24px; }
.geo-author-head img { width: 84px; height: 84px; border-radius: 50%; object-fit: cover; }
.geo-author-head h1 { margin: 0 0 4px; font-size: 1.7rem; }
.geo-author-headline { color: var(--ink-soft); font-size: .95rem; }
.geo-author-bio { font-size: 1.02rem; line-height: 1.75; }
.geo-expertise { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.geo-expertise span {
  font-size: .8rem; padding: 4px 12px; border-radius: 999px;
  background: var(--brand-soft); color: var(--brand-dark); font-weight: 600;
}

/* ---------- Home: search, ad inventory, industries, pass ---------- */
.hero-search {
  display: flex; gap: 8px; margin-top: 26px; max-width: 560px;
}
.hero-search input {
  flex: 1; padding: 13px 18px; border: 1px solid var(--line);
  border-radius: 999px; font-size: .95rem; background: var(--surface);
  color: var(--ink); font-family: inherit;
}
.hero-search input:focus {
  outline: none; border-color: var(--brand);
  box-shadow: 0 0 0 3px var(--brand-soft);
}
.nav-search { display: inline-flex; }
.nav-search input {
  padding: 7px 14px; border: 1px solid var(--line); border-radius: 999px;
  font-size: .82rem; width: 150px; background: var(--surface); color: var(--ink);
  font-family: inherit;
}
.nav-search input:focus {
  outline: none; border-color: var(--brand); box-shadow: 0 0 0 2px var(--brand-soft);
}

/* --- ad inventory overview bar --- */
.ad-overview {
  background: linear-gradient(135deg, #1e2036 0%, #2c2f4d 100%);
  padding: 26px 0 22px; color: #fff;
}
.ad-overview-inner {
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px;
}
.ad-ov-item { display: flex; flex-direction: column; gap: 5px; }
.ad-ov-label {
  font-size: .72rem; text-transform: uppercase; letter-spacing: .09em;
  color: rgba(255, 255, 255, .58); font-weight: 700;
}
.ad-ov-item b { font-size: 1.5rem; letter-spacing: -.02em; line-height: 1.15; }
.ad-ov-item b .sep { font-size: .95rem; color: rgba(255, 255, 255, .5); font-weight: 600; }
.ad-ov-item b .unit { font-size: .9rem; margin-left: 2px; color: rgba(255, 255, 255, .7); }
.ad-ov-bar {
  height: 5px; background: rgba(255, 255, 255, .16); border-radius: 3px;
  overflow: hidden; margin: 3px 0 1px;
}
.ad-ov-bar span {
  display: block; height: 100%; border-radius: 3px;
  background: linear-gradient(90deg, #6ee7b7, #22d3ee);
}
.ad-ov-note { font-size: .74rem; color: rgba(255, 255, 255, .58); }
.ad-ov-disclosure {
  margin: 20px 0 0; padding-top: 15px; border-top: 1px solid rgba(255, 255, 255, .12);
  font-size: .76rem; color: rgba(255, 255, 255, .55); line-height: 1.6;
}

/* --- leaderboard briefing --- */
.ad-brief {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px;
  margin-bottom: 22px; padding: 16px 20px;
  background: var(--brand-soft); border-radius: var(--radius);
}
.ad-brief-item { display: flex; flex-direction: column; gap: 3px; }
.ad-brief-k {
  font-size: .74rem; color: var(--ink-faint); font-weight: 600;
  text-transform: uppercase; letter-spacing: .04em;
}
.ad-brief-v { font-size: 1.05rem; font-weight: 700; color: var(--ink); }
.ad-brief-v.is-strong { color: var(--brand-dark); }

.ad-vacancy {
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
  margin-top: 20px; padding: 16px 20px;
  border: 1px dashed var(--line); border-radius: var(--radius);
  background: var(--bg-soft, #fafbfd);
}
.ad-vacancy p { margin: 0; font-size: .88rem; color: var(--ink-soft); }
.ad-vacancy-dots { display: flex; gap: 5px; flex-wrap: wrap; max-width: 190px; }
.ad-vacant-dot {
  width: 11px; height: 11px; border-radius: 50%;
  border: 2px dashed var(--line); background: transparent;
}

.ad-empty-box {
  padding: 40px 24px; text-align: center;
  border: 1px dashed var(--line); border-radius: var(--radius); background: var(--bg-soft, #fafbfd);
}
.ad-empty-title { margin: 0 0 8px; font-size: 1.05rem; font-weight: 700; color: var(--ink); }
.ad-empty-sub { margin: 0 0 18px; font-size: .88rem; color: var(--ink-soft); }

/* --- grid occupancy bar + legend --- */
.ad-grid-bar {
  display: flex; align-items: center; justify-content: space-between;
  gap: 18px; flex-wrap: wrap; margin-bottom: 14px;
  padding: 14px 18px; background: var(--bg-soft, #fafbfd);
  border: 1px solid var(--line); border-radius: var(--radius);
}
.ad-gb-status { display: flex; align-items: center; gap: 12px; flex: 1; min-width: 240px; }
.ad-gb-bar {
  flex: 1; height: 8px; background: var(--line); border-radius: 4px; overflow: hidden;
}
.ad-gb-bar span { display: block; height: 100%; border-radius: 4px; background: var(--ok); }
.ad-gb-bar span.lv-mid { background: var(--gold); }
.ad-gb-bar span.lv-high { background: #ea8a3c; }
.ad-gb-bar span.lv-full { background: var(--danger); }
.ad-gb-text { font-size: .82rem; color: var(--ink-soft); font-weight: 600; white-space: nowrap; }
.ad-gb-meta { font-size: .82rem; color: var(--ink-soft); display: flex; gap: 8px; align-items: center; }
.ad-gb-meta b { color: var(--ink); }
.ad-gb-meta .dot { color: var(--ink-faint); }

.ad-legend {
  display: flex; gap: 20px; flex-wrap: wrap; list-style: none;
  margin: 0 0 16px; padding: 0; font-size: .78rem; color: var(--ink-faint);
}
.ad-legend li { display: flex; align-items: center; gap: 7px; }
.lg { width: 13px; height: 13px; border-radius: 4px; flex-shrink: 0; }
.lg-taken { background: var(--brand); }
.lg-open { background: transparent; border: 2px dashed var(--line); }
.lg-official { background: var(--gold-soft); border: 1px solid var(--gold); }

/* --- grid cell states --- */
.ad-cell.is-next {
  border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft);
}
.ad-cell-badge.is-next { background: var(--brand); color: #fff; }
.ad-cell-cta.is-primary {
  background: var(--brand); color: #fff; border-color: var(--brand);
}
.ad-cell-cta.is-primary:hover { background: var(--brand-dark); }

.ad-grid-foot {
  display: flex; align-items: center; justify-content: space-between;
  gap: 18px; flex-wrap: wrap; margin-top: 24px; padding-top: 20px;
  border-top: 1px solid var(--line);
}
.ad-grid-foot p { margin: 0; font-size: .85rem; color: var(--ink-soft); max-width: 640px; }

/* --- industry cards --- */
.ind-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px;
}
.ind-card {
  display: flex; flex-direction: column; gap: 8px; padding: 20px;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.ind-card:hover {
  transform: translateY(-3px); box-shadow: var(--shadow-lg);
  border-color: var(--brand); text-decoration: none;
}
.ind-card-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.ind-card h3 { margin: 0; font-size: 1rem; line-height: 1.35; color: var(--ink); }
.ind-count {
  font-size: .72rem; font-weight: 700; color: var(--brand-dark);
  background: var(--brand-soft); padding: 3px 9px; border-radius: 999px;
  white-space: nowrap; flex-shrink: 0;
}
.ind-aliases {
  margin: 0; font-size: .76rem; color: var(--ink-faint);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.ind-desc {
  margin: 0; font-size: .84rem; color: var(--ink-soft); line-height: 1.55;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.ind-desc.is-muted { color: var(--ink-faint); font-style: italic; }
.ind-foot {
  display: flex; align-items: center; justify-content: space-between;
  margin-top: auto; padding-top: 10px; border-top: 1px solid var(--line);
  font-size: .76rem; color: var(--ink-faint);
}
.ind-score { font-weight: 700; color: var(--ok); }

/* --- all-access pass band --- */
.pass-band {
  background: linear-gradient(135deg, #2c2f4d 0%, #4b3f8f 100%);
  color: #fff;
}
.pass-inner {
  display: grid; grid-template-columns: 1.6fr 1fr; gap: 40px;
  align-items: center; padding: 44px 0;
}
.pass-badge {
  display: inline-block; padding: 4px 12px; border-radius: 999px;
  background: rgba(255, 255, 255, .16); font-size: .74rem; font-weight: 700;
  letter-spacing: .06em; text-transform: uppercase; margin-bottom: 12px;
}
.pass-copy h2 { margin: 0 0 10px; font-size: 1.9rem; letter-spacing: -.02em; color: #fff; }
.pass-copy p { margin: 0 0 18px; color: rgba(255, 255, 255, .78); line-height: 1.65; }
.pass-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.pass-list li { position: relative; padding-left: 26px; font-size: .89rem; color: rgba(255, 255, 255, .9); }
.pass-list li::before {
  content: '✓'; position: absolute; left: 0; top: 0;
  color: #6ee7b7; font-weight: 800;
}
.pass-buy {
  display: flex; flex-direction: column; align-items: center; gap: 14px;
  padding: 30px 26px; background: rgba(255, 255, 255, .1);
  border: 1px solid rgba(255, 255, 255, .18); border-radius: var(--radius);
  backdrop-filter: blur(8px);
}
.pass-price { display: flex; flex-direction: column; align-items: center; }
.pass-cur { font-size: .8rem; color: rgba(255, 255, 255, .7); font-weight: 600; }
.pass-price b { font-size: 2.6rem; letter-spacing: -.03em; line-height: 1.1; color: #fff; }
.pass-price small { font-size: .76rem; color: rgba(255, 255, 255, .62); }
.pass-note { font-size: .74rem; color: rgba(255, 255, 255, .58); text-align: center; }
.btn-lg { padding: 14px 32px; font-size: 1rem; width: 100%; text-align: center; }

@media (max-width: 900px) {
  .ad-overview-inner { grid-template-columns: repeat(2, 1fr); gap: 20px; }
  .ad-brief { grid-template-columns: repeat(2, 1fr); }
  .ind-grid { grid-template-columns: repeat(2, 1fr); }
  .pass-inner { grid-template-columns: 1fr; gap: 28px; padding: 32px 0; }
  .nav-search input { width: 110px; }
}
@media (max-width: 560px) {
  .ad-overview-inner { grid-template-columns: repeat(2, 1fr); }
  .ind-grid { grid-template-columns: 1fr; }
  .ad-brief { grid-template-columns: 1fr; }
  .hero-search { flex-direction: column; }
  .nav-search { display: none; }
}
