/* aihotwords — one stylesheet, system fonts (no web-font request), light and dark. */
:root {
  --bg: #fbfaf8;
  --panel: #ffffff;
  --ink: #17161c;
  --muted: #6b6873;
  --line: #ebe7e1;
  --soft: #f3f0ea;
  --brand: #5b3df5;
  --brand-ink: #ffffff;
  --brand-soft: #efebff;
  --rise: #0f8a4a;
  --rise-soft: #e3f6ea;
  --peak: #d9480f;
  --peak-soft: #fff0e6;
  --cool: #6b6873;
  --cool-soft: #efedf2;
  --deal: #c2410c;
  --radius: 14px;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #111015;
    --panel: #1a1920;
    --ink: #f2f0f6;
    --muted: #a19eab;
    --line: #2b2933;
    --soft: #22212a;
    --brand: #8b74ff;
    --brand-soft: #29224d;
    --rise: #3ccf7d;
    --rise-soft: #133222;
    --peak: #ff8a4c;
    --peak-soft: #3a1f12;
    --cool-soft: #26252d;
    --deal: #ffa257;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 16px/1.55 ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { line-height: 1.2; letter-spacing: -0.01em; margin: 0 0 0.5em; }
h1 { font-size: clamp(30px, 4.2vw, 46px); letter-spacing: -0.025em; }
h2 { font-size: 22px; }
h3 { font-size: 17px; }
h4 { font-size: 13px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); margin: 1.1em 0 0.35em; }
p { margin: 0 0 0.8em; }
img { max-width: 100%; display: block; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; border-radius: 6px; }

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 680px; }
.row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.grow { flex: 1 1 260px; }
.stack { display: grid; gap: 12px; }
.muted { color: var(--muted); }
.small { font-size: 13.5px; }
.lead { font-size: 19px; max-width: 720px; }
main { min-height: 60vh; }

/* header & footer */
.top { position: sticky; top: 0; z-index: 10; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.top .row { height: 60px; flex-wrap: nowrap; }
.brand { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: 18px; color: var(--ink); letter-spacing: -0.02em; }
.brand svg { color: var(--brand); }
.brand:hover { text-decoration: none; }
.nav { display: flex; gap: 4px; margin-left: 12px; }
.nav a { color: var(--muted); padding: 6px 10px; border-radius: 8px; font-weight: 500; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--ink); background: var(--soft); text-decoration: none; }
.right { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.foot { border-top: 1px solid var(--line); margin-top: 64px; padding: 28px 0 40px; }
.foot-links { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 10px 0 14px; font-size: 14px; }

/* buttons & chips */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; border: 1px solid transparent; border-radius: 10px; padding: 9px 16px; font: inherit; font-weight: 600; font-size: 15px; cursor: pointer; text-decoration: none; white-space: nowrap; transition: background 0.15s, border-color 0.15s, transform 0.05s; }
.btn:hover { text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: 0.6; cursor: progress; }
.btn.primary { background: var(--brand); color: var(--brand-ink); }
.btn.primary:hover { background: color-mix(in srgb, var(--brand) 88%, #000); }
.btn.ghost { background: var(--panel); color: var(--ink); border-color: var(--line); }
.btn.ghost:hover { border-color: var(--muted); }
.link { background: none; border: 0; padding: 6px 8px; white-space: nowrap; font: inherit; color: var(--muted); cursor: pointer; border-radius: 8px; }
.link:hover { color: var(--ink); background: var(--soft); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; margin: 0; padding: 0; }
.chip { display: inline-flex; align-items: center; border: 1px solid var(--line); background: var(--panel); color: var(--ink); border-radius: 999px; padding: 4px 11px; font: inherit; font-size: 14px; cursor: default; }
button.chip { cursor: pointer; }
button.chip:hover { border-color: var(--muted); }
.chip.on { background: var(--ink); border-color: var(--ink); color: var(--bg); }

/* stages */
.stage { display: inline-flex; align-items: center; border-radius: 999px; padding: 1px 9px; font-size: 12.5px; font-weight: 600; white-space: nowrap; }
.stage-new { background: var(--brand-soft); color: var(--brand); }
.stage-rising { background: var(--rise-soft); color: var(--rise); }
.stage-peak { background: var(--peak-soft); color: var(--peak); }
.stage-cooling { background: var(--cool-soft); color: var(--cool); }

/* hero */
.hero { padding: 44px 20px 22px; }
.hero .muted { max-width: 720px; }

/* locked teaser for free visitors */
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; }
.locked { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin: 4px 0 22px; border-color: color-mix(in srgb, var(--brand) 35%, var(--line)); background: linear-gradient(135deg, var(--brand-soft), var(--panel) 65%); }
.locked h2 { font-size: 20px; }
.ghost-rows { list-style: none; padding: 0; margin: 12px 0 0; display: grid; gap: 4px; }
.ghost-rows li { display: flex; gap: 14px; align-items: baseline; }
.blur { filter: blur(5px); color: var(--muted); user-select: none; letter-spacing: 0.05em; }

/* filters */
.filters { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 6px 0 10px; }
.filters .sep { width: 1px; height: 22px; background: var(--line); margin: 0 6px; }
.search { margin-left: auto; min-width: 200px; flex: 0 1 260px; border: 1px solid var(--line); background: var(--panel); color: var(--ink); border-radius: 10px; padding: 8px 12px; font: inherit; font-size: 15px; }
.sub { margin: 14px 0 6px; }

/* trend rows */
.thead { display: grid; grid-template-columns: 1fr 110px 130px; gap: 16px; padding: 8px 4px; border-bottom: 1px solid var(--line); }
.thead span:nth-child(n + 2) { text-align: right; }
.trows { list-style: none; margin: 0; padding: 0; }
.trow { display: grid; grid-template-columns: 1fr 110px 130px; gap: 16px; align-items: center; padding: 16px 4px; border-bottom: 1px solid var(--line); }
.tmain { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; min-width: 0; }
.tname { font-weight: 650; font-size: 18px; color: var(--ink); letter-spacing: -0.01em; }
.srcs { flex-basis: 100%; margin: 0; }
.verify { display: flex; flex-wrap: wrap; gap: 6px; flex-basis: 100%; }
.vchip { font-size: 12.5px; color: var(--muted); border: 1px solid var(--line); border-radius: 7px; padding: 2px 8px; background: var(--panel); }
.vchip::after { content: " ↗"; opacity: 0.6; }
.vchip:hover { color: var(--ink); border-color: var(--muted); text-decoration: none; }
.spark { justify-self: end; fill: var(--brand); opacity: 0.85; }
.tseen { display: grid; justify-items: end; text-align: right; font-size: 14px; }
.empty { padding: 30px 0; text-align: center; }

/* detail */
.detail { padding-top: 24px; }
.detail h1 { margin: 10px 0 12px; }
.meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; }
.detail > .verify { margin: 4px 0 22px; }
.grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.block { margin-top: 38px; }
.timeline { list-style: none; padding: 0; margin: 0 0 10px; display: grid; gap: 8px; }
.timeline li { display: flex; justify-content: space-between; gap: 12px; padding-left: 16px; position: relative; }
.timeline li::before { content: ""; position: absolute; left: 0; top: 0.55em; width: 7px; height: 7px; border-radius: 50%; background: var(--brand); }
.notice { background: var(--brand-soft); color: var(--ink); border-radius: 10px; padding: 12px 14px; }
.answers { display: grid; grid-template-columns: repeat(auto-fill, minmax(310px, 1fr)); gap: 14px; }
.answer header { gap: 8px; margin-bottom: 4px; }
.answer h3 { margin: 0; }
.answer .model { margin-left: auto; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 11.5px; }
.answer ol, .answer ul:not(.chips) { padding-left: 1.2em; margin: 0 0 0.6em; }
.answer p { margin-bottom: 0.4em; }
.pre { white-space: pre-wrap; }
.cites { padding-left: 1.2em; margin: 6px 0 0; word-break: break-word; }
details summary { cursor: pointer; color: var(--muted); margin-top: 10px; }
.tools { margin: 14px 0; }
.ask { margin-top: 10px; align-items: flex-end; }
.ask label { display: grid; gap: 4px; }
.ask input, #signin input { border: 1px solid var(--line); background: var(--panel); color: var(--ink); border-radius: 10px; padding: 9px 12px; font: inherit; font-size: 15px; width: 100%; }
.ask .muted, .ask .msg { flex-basis: 100%; margin: 0; }
.videos { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 14px; }
.xposts { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 14px; margin-top: 14px; }
.vcard { margin: 0; display: grid; gap: 8px; align-content: start; }
.vthumb { position: relative; border-radius: 12px; overflow: hidden; background: var(--soft); aspect-ratio: 9 / 16; display: grid; place-items: center; }
.vcard[data-embed="youtube"] .vthumb { aspect-ratio: 16 / 9; }
.vthumb img { width: 100%; height: 100%; object-fit: cover; }
.vthumb .tt { position: absolute; top: 10px; left: 12px; font-weight: 700; font-size: 13px; color: var(--muted); }
.vthumb .play { position: absolute; }
.vcard[data-embed="x"] { border: 1px solid var(--line); border-radius: 12px; padding: 12px; background: var(--panel); }
.vcard figcaption { display: grid; gap: 2px; }
.vcard figcaption a { color: var(--ink); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.embed { width: 100%; border: 0; border-radius: 12px; background: var(--soft); }
.embed-tiktok { aspect-ratio: 9 / 16; }
.embed-youtube { aspect-ratio: 16 / 9; }
.embed-x { height: 560px; }
.domains { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.domains li { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; }

/* paywall */
.paywall { position: relative; display: grid; gap: 10px; justify-items: start; }
.paywall .answers.blurred { filter: blur(6px); opacity: 0.55; pointer-events: none; user-select: none; width: 100%; }
.paywall .paywall-cta { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; text-align: center; gap: 10px; padding: 20px; }
.paywall .paywall-cta p { max-width: 460px; font-weight: 500; }

/* pricing */
.plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; align-items: start; }
.plan { display: grid; gap: 10px; }
.plan h2 { margin: 0; font-size: 18px; }
.plan ul { padding-left: 1.2em; margin: 0 0 6px; display: grid; gap: 4px; }
.plan .btn { width: 100%; }
.plan.featured { border: 2px solid var(--brand); box-shadow: 0 8px 30px color-mix(in srgb, var(--brand) 14%, transparent); }
.price { font-size: 36px; font-weight: 750; letter-spacing: -0.03em; margin: 0; }
.price .muted { font-size: 16px; font-weight: 500; letter-spacing: 0; }
.plan > .muted.small:not(.consent) { color: var(--deal); font-weight: 600; }
.plan .consent { margin: -2px 0 0; font-size: 12.5px; }
.ai-note { margin-top: -4px; }
.plans > .msg, .plans > .billing-note { grid-column: 1 / -1; }
.msg:empty { display: none; }
.msg { color: var(--ink); }

/* text pages */
.prose { padding-top: 36px; }
.prose h2 { font-size: 19px; margin-top: 1.6em; }
.prose ul { padding-left: 1.2em; }

/* sign-in dialog */
.dialog { border: 1px solid var(--line); border-radius: 16px; padding: 26px; width: min(420px, calc(100vw - 32px)); background: var(--panel); color: var(--ink); }
.dialog::backdrop { background: rgb(10 8 20 / 45%); backdrop-filter: blur(2px); }
.dialog h2 { margin-right: 30px; }
.dialog-close { position: absolute; right: 10px; top: 8px; }
.dialog-close .link { font-size: 24px; line-height: 1; }
#signin label { display: grid; gap: 6px; font-weight: 500; font-size: 14px; }

@media (max-width: 760px) {
  .nav { margin-left: 4px; }
  .nav a { padding: 6px 7px; }
  .right .link { padding: 6px 4px; }
  .hero { padding-top: 30px; }
  .thead { display: none; }
  .trow { grid-template-columns: 1fr auto; gap: 8px 12px; }
  .tmain { grid-column: 1 / -1; }
  .spark { justify-self: start; }
  .search { margin-left: 0; flex: 1 1 100%; }
  .filters .sep { display: none; }
  .locked { flex-direction: column; align-items: stretch; }
  .grid2, .plans { grid-template-columns: 1fr; }
  .answers { grid-template-columns: 1fr; }
  .videos { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .paywall .paywall-cta { position: static; }
  .paywall .answers.blurred { display: none; }
}
@media (max-width: 480px) {
  .wrap { padding: 0 16px; }
  .brand { font-size: 16px; gap: 6px; }
  .nav { margin-left: 0; }
  .nav .nav-home { display: none; }
  .right { gap: 2px; }
  .right .btn { padding: 7px 11px; font-size: 14px; }
  .videos { gap: 10px; }
}
.g-signin { display: flex; justify-content: center; min-height: 44px; margin: 6px 0 2px; }
.or { text-align: center; margin: 10px 0 4px; position: relative; }
.or::before, .or::after { content: ""; position: absolute; top: 50%; width: 28%; height: 1px; background: var(--line); }
.or::before { left: 0; }
.or::after { right: 0; }
#code-form input { letter-spacing: 0.3em; font-size: 20px; text-align: center; }

