/* ============================================================
   THE CREATOR VOCABULARY — web
   Editorial / creative-reference design system.
   Brand tokens mirror the app (src/constants/colors.ts):
   near-black surfaces, white ink, single golden-yellow accent.
   ============================================================ */
:root {
  color-scheme: dark;
  --bg: #0A0A0B;
  --bg-2: #08080A;
  --surface: #121214;
  --surface-2: #17171A;
  --ink: #FFFFFF;
  --ink-2: #B7BBC0;
  --ink-3: #82868C;
  --ink-4: #55585E;
  --yellow: #F5C518;
  --yellow-2: #FFD84D;
  --yellow-ink: #0A0A0B;
  --line: #26262A;
  --line-2: #34343A;
  --maxw: 1160px;

  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, "Times New Roman", serif;
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 17px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
a { color: var(--yellow); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }

/* Cursor-following background glow — the only glow on the page.
   Sits behind all content (z-index:-1); sections are transparent so it shows through. */
#cursorGlow {
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(380px circle at var(--mx, 50%) var(--my, 16%),
    rgba(245, 197, 24, 0.16), rgba(245, 197, 24, 0.05) 42%, transparent 66%);
}
@media (hover: none) { #cursorGlow { display: none; } }
h1, h2, h3 { line-height: 1.05; letter-spacing: -0.03em; margin: 0; font-weight: 800; }
::selection { background: var(--yellow); color: var(--yellow-ink); }

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 26px; }
.narrow { max-width: 780px; }

/* Shared micro-type */
.mono { font-family: var(--mono); }
.label {
  font-family: var(--mono); font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--ink-3); font-weight: 500;
}
.label .dot { color: var(--yellow); }
.accent { color: var(--yellow); }

/* ---------- Header ---------- */
.nav {
  position: sticky; top: 0; z-index: 60;
  background: rgba(10,10,11,0.78);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 62px; gap: 20px; }
.brand-mark { display: inline-flex; align-items: center; }
.brand-mark img { height: 24px; width: auto; display: block; }
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a { color: var(--ink-2); font-size: 14px; font-weight: 600; letter-spacing: 0.01em; }
.nav-links a:hover { color: var(--ink); text-decoration: none; }
.nav-cta {
  font-family: var(--mono); font-size: 12.5px; letter-spacing: 0.06em; text-transform: uppercase;
  font-weight: 600; color: var(--yellow-ink) !important; background: var(--yellow);
  padding: 8px 14px; border-radius: 3px;
}
.nav-cta:hover { background: var(--yellow-2); text-decoration: none; }
@media (max-width: 900px) { .nav-links .hide-md { display: none; } }
@media (max-width: 620px) { .nav-links { gap: 18px; } .nav-links .hide-sm { display: none; } }

/* ---------- Buttons (squared / editorial) ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font-weight: 700; font-size: 15px; line-height: 1; letter-spacing: 0.01em;
  padding: 15px 24px; border-radius: 4px; border: 1px solid transparent;
  cursor: pointer; transition: transform .12s ease, background .12s ease, border-color .12s ease, color .12s ease;
  white-space: nowrap;
}
.btn:hover { text-decoration: none; }
/* Two-class selectors so button colors win even inside `.doc a { color }` pages. */
.btn.btn-primary { background: var(--yellow); color: var(--yellow-ink); }
.btn.btn-primary:hover { background: var(--yellow-2); }
.btn.btn-outline { background: transparent; color: var(--ink); border-color: var(--line-2); }
.btn.btn-outline:hover { border-color: var(--ink); background: transparent; }
.btn .arw { font-family: var(--mono); }
.btn[aria-disabled="true"] { pointer-events: none; cursor: default; }
.btn-lg { padding: 17px 28px; font-size: 16px; }

/* ---------- Ghost vocabulary (background type) ---------- */
.ghost {
  position: absolute; z-index: 0; pointer-events: none; user-select: none; -webkit-user-select: none;
  font-weight: 900; letter-spacing: -0.04em; line-height: 0.8; white-space: nowrap;
  color: transparent; -webkit-text-stroke: 1px rgba(255,255,255,0.05);
}
.ghost.fill { -webkit-text-stroke: 0; color: rgba(255,255,255,0.028); }
.ghost.y { -webkit-text-stroke: 1px rgba(245,197,24,0.10); }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding: 92px 0 60px; border-bottom: 1px solid var(--line); }
.hero .wrap { position: relative; z-index: 2; }
.hero-top { display: flex; align-items: center; gap: 14px; margin-bottom: 40px; }
.hero-top .rule { flex: 1; height: 1px; background: var(--line); }
.hero-wordmark { width: min(760px, 92%); height: auto; margin: 0 0 30px; }
.hero-def { max-width: 680px; }
.hero-pron { font-family: var(--mono); font-size: 14px; color: var(--ink-3); margin-bottom: 16px; letter-spacing: 0.02em; }
.hero-pron b { color: var(--yellow); font-weight: 600; font-style: normal; }
.hero-def p {
  font-family: var(--serif); font-size: clamp(21px, 3vw, 30px); line-height: 1.4; color: var(--ink);
  margin: 0; letter-spacing: -0.01em;
}
.hero-def p .accent { font-style: italic; }
.cta-row { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 38px; }
.cta-meta { margin-top: 20px; font-family: var(--mono); font-size: 12.5px; letter-spacing: 0.06em; color: var(--ink-4); text-transform: uppercase; }

/* ---------- Ticker ---------- */
.ticker { border-bottom: 1px solid var(--line); overflow: hidden; }
.ticker-track { display: flex; gap: 0; white-space: nowrap; width: max-content; animation: ticker 46s linear infinite; }
.ticker:hover .ticker-track { animation-play-state: paused; }
.ticker-item {
  font-family: var(--mono); font-size: 13px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--ink-3); padding: 15px 26px; display: inline-flex; align-items: center; gap: 26px;
}
.ticker-item::after { content: "◦"; color: var(--yellow); }
@keyframes ticker { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .ticker-track { animation: none; } }

/* ---------- Section scaffolding ---------- */
section { position: relative; padding: 84px 0; }
.sec-head { display: flex; align-items: baseline; justify-content: space-between; gap: 20px; margin-bottom: 40px; flex-wrap: wrap; }
.sec-head h2 { font-size: clamp(30px, 4.6vw, 52px); font-weight: 800; letter-spacing: -0.035em; }
.sec-head h2 .accent { color: var(--yellow); }
.pro-h2 { display: inline-flex; align-items: center; gap: 14px; }
.pro-h2 img { height: 0.78em; width: auto; display: block; }
.sec-index { font-family: var(--mono); font-size: 13px; letter-spacing: 0.14em; color: var(--ink-4); text-transform: uppercase; }
.divider-top { border-top: 1px solid var(--line); }

/* ---------- Term of the Day ---------- */
.totd { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); overflow: hidden; }
.totd .ghost.totd-ghost { right: -2%; bottom: -6%; font-size: clamp(120px, 20vw, 320px); }
.totd-grid { display: grid; grid-template-columns: 1.35fr 0.9fr; gap: 0; border: 1px solid var(--line-2); background: var(--surface); position: relative; z-index: 2; }
@media (max-width: 880px) { .totd-grid { grid-template-columns: 1fr; } }
.entry { padding: 40px; border-right: 1px solid var(--line); }
@media (max-width: 880px) { .entry { border-right: 0; border-bottom: 1px solid var(--line); } }
.entry-cat { font-family: var(--mono); font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--yellow); margin-bottom: 22px; }
.entry-head { font-size: clamp(40px, 7vw, 76px); font-weight: 900; letter-spacing: -0.045em; line-height: 0.95; }
.entry-meta { font-family: var(--mono); font-size: 14px; color: var(--ink-3); margin: 14px 0 22px; }
.entry-meta i { color: var(--ink-2); font-style: italic; }
.entry-def { font-family: var(--serif); font-size: clamp(19px, 2.4vw, 23px); line-height: 1.5; color: var(--ink); max-width: 46ch; }
.entry-ex { font-family: var(--serif); font-size: 16px; line-height: 1.6; color: var(--ink-3); font-style: italic; margin-top: 20px; padding-left: 16px; border-left: 2px solid var(--yellow); }
.related { margin-top: 30px; }
.related .label { margin-bottom: 12px; display: block; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  font-family: var(--mono); font-size: 12.5px; letter-spacing: 0.03em; color: var(--ink-2);
  border: 1px solid var(--line-2); padding: 7px 12px; border-radius: 3px; background: var(--bg);
}
.chip:hover { border-color: var(--yellow); color: var(--ink); text-decoration: none; }

/* Notification / widget tease (right column) */
.aside { padding: 40px; display: flex; flex-direction: column; justify-content: center; gap: 22px; }
.notif {
  border: 1px solid var(--line-2); border-radius: 14px; background: rgba(255,255,255,0.03);
  padding: 15px 16px; display: flex; gap: 12px; align-items: flex-start;
}
.notif .app-ico { width: 34px; height: 34px; border-radius: 8px; flex: 0 0 auto; }
.notif .n-body { min-width: 0; }
.notif .n-top { display: flex; justify-content: space-between; gap: 10px; font-size: 12px; color: var(--ink-3); font-weight: 600; }
.notif .n-title { font-size: 14px; font-weight: 700; margin-top: 2px; }
.notif .n-text { font-size: 13px; color: var(--ink-2); margin-top: 2px; }
.aside-note { font-size: 15px; color: var(--ink-2); line-height: 1.55; }
.aside-note b { color: var(--ink); }
.soon-tag { display: inline-block; font-family: var(--mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--yellow); border: 1px solid rgba(245,197,24,0.3); padding: 4px 9px; border-radius: 3px; }

/* ---------- Explore the vocabulary (reference index) ---------- */
.index-list { border-top: 1px solid var(--line-2); }
.entry-row {
  display: grid; grid-template-columns: 48px 1fr; gap: 22px; align-items: start;
  padding: 26px 4px; border-bottom: 1px solid var(--line); position: relative; z-index: 2;
  transition: background .15s ease, padding-left .15s ease;
}
.entry-row:hover { background: rgba(255,255,255,0.015); }
.entry-row .num { font-family: var(--mono); font-size: 13px; color: var(--ink-4); padding-top: 8px; }
.entry-row .rh { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; }
.entry-row .term { font-size: clamp(24px, 3.2vw, 34px); font-weight: 800; letter-spacing: -0.03em; }
.entry-row .disc { font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--yellow); }
.entry-row .pos { font-family: var(--mono); font-size: 12px; color: var(--ink-4); font-style: italic; }
.entry-row .rd { font-family: var(--serif); font-size: 17px; line-height: 1.5; color: var(--ink-2); margin-top: 8px; max-width: 68ch; }
.index-foot { display: flex; justify-content: space-between; align-items: center; gap: 18px; margin-top: 30px; flex-wrap: wrap; }
.index-foot .label { font-size: 13px; }

/* ---------- Manifesto ---------- */
.manifesto { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); overflow: hidden; text-align: left; }
.manifesto .ghost.m-ghost { left: -3%; top: 50%; transform: translateY(-50%); font-size: clamp(90px, 15vw, 240px); }
.manifesto .wrap { position: relative; z-index: 2; }
.manifesto .label { margin-bottom: 26px; display: block; }
.manifesto h2 {
  font-size: clamp(30px, 5.4vw, 66px); font-weight: 900; letter-spacing: -0.04em; line-height: 1.02; max-width: 17ch;
}
.manifesto h2 .accent { color: var(--yellow); }
.manifesto .sub { font-family: var(--serif); font-size: clamp(18px, 2.4vw, 22px); line-height: 1.55; color: var(--ink-2); max-width: 60ch; margin-top: 28px; }

/* ---------- Pro ---------- */
.pro { overflow: hidden; }
.pro .ghost.pro-ghost { right: -2%; top: 8%; font-size: clamp(90px, 15vw, 220px); }
.pro-panel { position: relative; z-index: 2; border: 1px solid var(--line-2); background: var(--surface); }
.pro-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; }
@media (max-width: 860px) { .pro-grid { grid-template-columns: 1fr; } }
.pro-left { padding: 44px; border-right: 1px solid var(--line); }
@media (max-width: 860px) { .pro-left { border-right: 0; border-bottom: 1px solid var(--line); } }
.pro-left h3 { font-size: clamp(26px, 3.4vw, 38px); font-weight: 800; letter-spacing: -0.03em; }
.pro-left .pro-lede { color: var(--ink-2); margin-top: 14px; font-size: 16px; max-width: 44ch; }
.pro-feats { list-style: none; padding: 0; margin: 26px 0 0; }
.pro-feats li { display: flex; gap: 12px; padding: 11px 0; border-top: 1px solid var(--line); font-size: 15.5px; color: var(--ink); }
.pro-feats li:first-child { border-top: 0; }
.pro-feats li .mk { color: var(--yellow); font-family: var(--mono); flex: 0 0 auto; }
.pro-right { padding: 44px; display: flex; flex-direction: column; gap: 14px; justify-content: center; }
.plan { display: flex; align-items: baseline; justify-content: space-between; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.plan:last-of-type { border-bottom: 0; }
.plan .p-name { font-weight: 700; font-size: 16px; }
.plan .p-name span { display: block; font-family: var(--mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--yellow); margin-top: 4px; }
.plan .p-price { text-align: right; white-space: nowrap; }
.plan .p-price b { font-size: 22px; font-weight: 800; letter-spacing: -0.02em; }
.plan .p-price small { display: block; font-family: var(--mono); font-size: 11px; color: var(--ink-3); margin-top: 3px; }
.pro-note { font-family: var(--mono); font-size: 11.5px; color: var(--ink-4); line-height: 1.6; margin-top: 6px; letter-spacing: 0.02em; }

/* ---------- Download CTA ---------- */
.download { text-align: center; overflow: hidden; position: relative; }
.download .wrap { position: relative; z-index: 2; }
.download .dl-mark { height: 40px; width: auto; margin: 0 auto 26px; }
.download h2 { font-size: clamp(32px, 6vw, 68px); font-weight: 900; letter-spacing: -0.04em; line-height: 1; }
.download h2 .accent { color: var(--yellow); }
.download p { color: var(--ink-2); max-width: 480px; margin: 20px auto 0; font-size: 17px; }
.download .cta-row { justify-content: center; }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--line); padding: 56px 0 48px; }
.footer-inner { display: flex; justify-content: space-between; gap: 32px; flex-wrap: wrap; align-items: flex-start; }
.footer-brand img { height: 22px; width: auto; margin-bottom: 16px; }
.footer-links { display: flex; gap: 26px; flex-wrap: wrap; }
.footer-links a { color: var(--ink-2); font-size: 14px; font-weight: 600; }
.footer-links a:hover { color: var(--ink); text-decoration: none; }
.footer .credit { margin-top: 22px; font-size: 13px; color: var(--ink-3); }
.footer .credit b { color: var(--ink); font-weight: 800; letter-spacing: 0.02em; }
.footer .made-by { font-family: var(--mono); font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-3); }
.footer .made-by b { color: var(--yellow); font-weight: 700; }

.skip-link { position: absolute; left: -9999px; }
.skip-link:focus { left: 22px; top: 12px; background: var(--yellow); color: var(--yellow-ink); padding: 8px 14px; border-radius: 4px; z-index: 100; }

/* ============================================================
   LEGAL / SUPPORT DOCUMENT PAGES (kept intact, restyled to match)
   ============================================================ */
.doc { padding: 60px 0 96px; }
.doc h1 { font-size: clamp(32px, 6vw, 54px); font-weight: 900; letter-spacing: -0.035em; }
.doc > .wrap > .muted:first-of-type, .doc .muted { color: var(--ink-3); font-size: 14px; }
.doc h2 { font-size: 15px; font-weight: 700; color: var(--yellow); margin: 40px 0 12px; font-family: var(--mono); letter-spacing: 0.06em; text-transform: uppercase; }
.doc h3 { font-size: 16px; font-weight: 700; margin: 24px 0 6px; }
.doc p, .doc li { color: #E4E5E8; }
.doc ul { padding-left: 20px; } .doc li { margin: 7px 0; }
.doc hr { border: 0; border-top: 1px solid var(--line); margin: 40px 0; }
.doc code { background: var(--surface-2); padding: 1px 6px; border-radius: 4px; font-size: 0.9em; font-family: var(--mono); }
.doc a:not(.btn) { color: var(--yellow); }
.doc .lede { font-family: var(--serif); font-size: clamp(18px, 2.4vw, 22px); line-height: 1.5; color: var(--ink); }
.toc { background: var(--surface); border: 1px solid var(--line-2); border-radius: 6px; padding: 20px 24px; margin: 28px 0 8px; }
.toc h4 { margin: 0 0 12px; font-family: var(--mono); font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-4); font-weight: 500; }
.toc ul { list-style: none; padding: 0; margin: 0; columns: 2; }
.toc li { margin: 6px 0; break-inside: avoid; }
.toc a { font-size: 14px; }
@media (max-width: 560px) { .toc ul { columns: 1; } }

.help { display: grid; gap: 14px; grid-template-columns: 1fr 1fr; margin-top: 30px; }
@media (max-width: 640px) { .help { grid-template-columns: 1fr; } }
.help-card { background: var(--surface); border: 1px solid var(--line-2); border-radius: 6px; padding: 24px; }
.help-card h3 { font-size: 16px; font-weight: 700; display: flex; align-items: center; gap: 10px; }
.help-card p { color: var(--ink-2); font-size: 15px; margin: 10px 0 0; }
.help-card ol, .help-card ul { color: var(--ink-2); font-size: 15px; margin: 10px 0 0; padding-left: 20px; }
.help-card li { margin: 5px 0; }
.contact-box { background: var(--surface); border: 1px solid var(--line-2); border-left: 3px solid var(--yellow); border-radius: 6px; padding: 32px; text-align: center; margin-top: 30px; }
.contact-box a.btn { margin-top: 18px; }
.kicker { font-family: var(--mono); font-size: 12px; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; color: var(--yellow); margin-bottom: 10px; }

/* ============================================================
   MOBILE — center the landing sections + footer.
   (Legal/support body copy stays left-aligned for readability.)
   ============================================================ */
@media (max-width: 700px) {
  /* Hero */
  .hero { text-align: center; }
  .hero-top { flex-wrap: wrap; justify-content: center; gap: 8px 14px; }
  .hero-top .rule { display: none; }
  .hero-wordmark { margin-left: auto; margin-right: auto; }
  .hero-def { margin-left: auto; margin-right: auto; text-align: center; }
  .cta-row { justify-content: center; }
  .cta-meta { text-align: center; }

  /* Section headers */
  .sec-head { flex-direction: column; align-items: center; text-align: center; }

  /* Term of the Day */
  .entry { text-align: center; }
  .entry-def { margin-left: auto; margin-right: auto; }
  .entry-ex { border-left: 0; padding-left: 0; }
  .related .label { text-align: center; }
  .chips { justify-content: center; }
  .aside { align-items: center; text-align: center; }

  /* Explore index */
  .entry-row { grid-template-columns: 1fr; gap: 8px; text-align: center; }
  .entry-row .num { padding-top: 0; }
  .entry-row .rh { justify-content: center; }
  .entry-row .rd { margin-left: auto; margin-right: auto; }
  .index-foot { flex-direction: column; align-items: center; text-align: center; }

  /* Manifesto */
  .manifesto { text-align: center; }
  .manifesto h2, .manifesto .sub { margin-left: auto; margin-right: auto; }

  /* Pro */
  .pro-left { text-align: center; }
  .pro-lede { margin-left: auto; margin-right: auto; }
  .pro-feats li { justify-content: center; }
  .plan { flex-direction: column; align-items: center; text-align: center; gap: 5px; }
  .plan .p-price { text-align: center; }
  .pro-note { text-align: center; }

  /* Footer (all pages) */
  .footer-inner { justify-content: center; text-align: center; }
  .footer-brand img { margin-left: auto; margin-right: auto; }
  .footer-links { justify-content: center; }
}
