/* TCGaze - TGCAtlas pokemon / indigo CI (atlas-ci-pokemon.css). No build step. */
:root {
  color-scheme: light;

  --bg: #f6f6f7;
  --surface: #ffffff;
  --surface-2: #f3f4f6;
  --surface-3: #f9fafb;
  --ink: #2d2d2d;
  --ink-2: #374151;
  --muted: #6b7280;
  --line: #e5e7eb;
  --line-2: #d1d5db;

  --accent: #6366f1;
  --accent-hover: #4f46e5;
  --accent-soft: #eef2ff;
  --accent-ink: #3730a3;
  --on-accent: #ffffff;

  --ok: #15803d;
  --ok-soft: #ecfdf5;
  --warn: #b45309;
  --warn-soft: #fffbeb;
  --danger: #b91c1c;
  --danger-soft: #fef2f2;

  --radius: 16px;
  --radius-sm: 10px;
  --radius-lg: 16px;

  --shadow-sm: 0 1px 2px rgb(45 45 45 / 4%);
  --shadow: 0 1px 2px rgb(45 45 45 / 4%), 0 8px 22px -10px rgb(45 45 45 / 11%);
  --shadow-lg: 0 2px 4px rgb(45 45 45 / 3%), 0 10px 28px -8px rgb(45 45 45 / 12%);
  --shadow-nav: 0 1px 2px rgb(45 45 45 / 4%), 0 8px 22px -10px rgb(45 45 45 / 11%);
  --ring: 0 0 0 3px rgba(99, 102, 241, .22);

  --hero-stripe-tile: 5rem;
  --hero-stripe-band: 3rem;
  --hero-stripe-peak: color-mix(in srgb, var(--accent) 3.5%, var(--bg));
  --hero-stripe-image: repeating-linear-gradient(
    -42deg,
    transparent 0px,
    transparent calc(var(--hero-stripe-tile) / 2 - var(--hero-stripe-band) / 2 - 0.5px),
    var(--hero-stripe-peak) calc(var(--hero-stripe-tile) / 2 - var(--hero-stripe-band) / 2),
    var(--hero-stripe-peak) calc(var(--hero-stripe-tile) / 2 + var(--hero-stripe-band) / 2),
    transparent calc(var(--hero-stripe-tile) / 2 + var(--hero-stripe-band) / 2 + 0.5px),
    transparent var(--hero-stripe-tile)
  );

  --font-sans: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-display: "Space Grotesk", var(--font-sans);
  --font: var(--font-sans);
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

html.dark {
  color-scheme: dark;

  --bg: #252830;
  --surface: #2d3139;
  --surface-2: #343841;
  --surface-3: #3d424c;
  --ink: #f4f4f5;
  --ink-2: #d4d4d8;
  --muted: #a1a1aa;
  --line: rgba(255, 255, 255, .18);
  --line-2: rgba(255, 255, 255, .28);

  --accent: #818cf8;
  --accent-hover: #6366f1;
  --accent-soft: rgba(99, 102, 241, .16);
  --accent-ink: #c7d2fe;
  --on-accent: #1e1b4b;

  --shadow-sm: 0 1px 2px rgba(0, 0, 0, .35);
  --shadow: 0 1px 2px rgba(0, 0, 0, .35), 0 8px 22px -10px rgba(0, 0, 0, .45);
  --shadow-lg: 0 1px 2px rgba(0, 0, 0, .42), 0 0 0 1px rgba(255, 255, 255, .08);
  --shadow-nav: 0 1px 2px rgba(0, 0, 0, .35), 0 8px 22px -10px rgba(0, 0, 0, .45);
  --ring: 0 0 0 3px rgba(129, 140, 248, .28);

  --hero-stripe-peak: color-mix(in srgb, var(--accent) 5%, var(--bg));
}

/* Base ---------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font); font-size: 15px; line-height: 1.55; min-height: 100vh; display: flex; flex-direction: column; -webkit-font-smoothing: antialiased; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 2px; }
img { max-width: 100%; display: block; }
h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.2; margin: 0 0 .5em; letter-spacing: -.02em; font-weight: 600; color: var(--ink); }
h1 { font-size: clamp(1.75rem, 3vw, 2.25rem); }
.font-display { font-family: var(--font-display), var(--font-sans), ui-sans-serif, system-ui, sans-serif; }
h2 { font-size: clamp(1.35rem, 2.2vw, 1.65rem); }
h3 { font-size: 1.05rem; letter-spacing: -.01em; }
h4 { font-size: .95rem; letter-spacing: 0; }
p { margin: 0 0 1em; }
code, pre, kbd { font-family: var(--mono); font-size: .88em; }
pre { background: #18181b; color: #e4e4e7; padding: 14px 16px; border-radius: var(--radius-sm); overflow: auto; line-height: 1.55; font-size: .82rem; }
code:not(pre code) { background: var(--surface-2); border: 1px solid var(--line); border-radius: 5px; padding: 1px 5px; color: var(--ink-2); }
hr { border: 0; border-top: 1px solid var(--line); margin: 28px 0; }
strong { font-weight: 600; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
::selection { background: var(--accent-soft); }

.muted { color: var(--muted); }
.small { font-size: .9rem; }
.tiny { font-size: .8rem; }
.center { text-align: center; }
.mt-0 { margin-top: 0 !important; } .mt-1 { margin-top: 8px; } .mt-2 { margin-top: 16px; } .mt-3 { margin-top: 24px; } .mt-4 { margin-top: 40px; } .mt-5 { margin-top: 64px; }
.mb-0 { margin-bottom: 0 !important; } .mb-1 { margin-bottom: 8px; } .mb-2 { margin-bottom: 16px; } .mb-3 { margin-bottom: 24px; }
.flex { display: flex; gap: 12px; align-items: center; } .wrap { flex-wrap: wrap; } .between { justify-content: space-between; } .grow { flex: 1; } .gap-sm { gap: 8px; }
.hidden { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.num { font-variant-numeric: tabular-nums; }

.container { width: min(1200px, 100% - 40px); margin-inline: auto; }
.narrow { width: min(720px, 100% - 40px); margin-inline: auto; }
main { flex: 1; }
.section { padding: 64px 0; }
.section-tight { padding: 32px 0; }
.section-head { max-width: 640px; margin-bottom: 32px; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head p { color: var(--muted); font-size: 1.02rem; }
.section-surface { background: var(--surface); border-block: 1px solid var(--line); }
.section-band { background: var(--surface-2); }
.eyebrow { font-size: .78rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--accent); margin-bottom: 12px; display: block; }
.icon { width: 1em; height: 1em; display: inline-block; vertical-align: -.15em; flex: none; }

/* Navigation ------------------------------------------------------------------------ */
.nav { position: sticky; top: 0; z-index: 40; background: var(--bg); box-shadow: var(--shadow-nav); }
.nav .container { display: flex; align-items: stretch; gap: 16px; min-height: 64px; padding-left: 0; }
.logo-plate { display: flex; align-items: center; align-self: center; padding: 0 4px 0 0; margin-right: 8px; text-decoration: none; flex-shrink: 0; }
.logo-plate:hover { text-decoration: none; }
.wordmark { display: block; height: 28px; width: auto; max-width: min(98px, 42vw); }
html.dark .wordmark { filter: invert(1) hue-rotate(180deg); }
.nav-links { display: flex; gap: 2px; margin-left: auto; align-items: center; align-self: center; }
.ci-appearance-toggle { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; padding: 0; border: 1px solid transparent; border-radius: 8px; background: transparent; color: var(--muted); cursor: pointer; transition: background .12s, color .12s, border-color .12s; }
.ci-appearance-toggle:hover { color: var(--ink); background: var(--surface-2); border-color: var(--line); }
.ci-appearance-toggle .icon { width: 18px; height: 18px; }
.nav-links a { color: var(--ink-2); padding: 7px 11px; border-radius: 8px; font-weight: 500; font-size: .9rem; }
.nav-links a:hover { color: var(--ink); background: var(--surface-2); text-decoration: none; }
.nav-links a.active { color: var(--ink); background: var(--surface-2); }
.nav-links .btn { margin-left: 8px; }
.nav-links .badge { margin-left: 6px; }
.nav-toggle { display: none; margin-left: auto; background: none; border: 1px solid var(--line-2); color: var(--ink); border-radius: 8px; width: 36px; height: 36px; align-items: center; justify-content: center; cursor: pointer; }
.nav-toggle .icon { width: 18px; height: 18px; }
@media (max-width: 860px) {
  .nav-toggle { display: inline-flex; }
  .nav-links { display: none; position: absolute; top: 64px; left: 0; right: 0; background: var(--surface); flex-direction: column; align-items: stretch; padding: 10px 16px 16px; border-bottom: 1px solid var(--line); box-shadow: var(--shadow); }
  .nav-links.open { display: flex; }
  .nav-links .btn { justify-content: center; margin: 6px 0 0; }
}

/* Buttons --------------------------------------------------------------------------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; padding: 8px 14px; border-radius: var(--radius-sm); border: 1px solid var(--line-2); background: var(--surface); color: var(--ink); font-weight: 500; font-size: .9rem; cursor: pointer; line-height: 1.25; transition: background .12s, border-color .12s, color .12s, box-shadow .12s; white-space: nowrap; font-family: inherit; text-decoration: none; }
.btn:hover { background: var(--surface-2); text-decoration: none; }
.btn:active { transform: translateY(.5px); }
.btn:disabled, .btn[aria-disabled="true"] { opacity: .5; cursor: not-allowed; }
.btn .icon { width: 15px; height: 15px; }
.btn-primary { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.btn-primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); }
.btn-accent { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.btn-accent:hover { background: var(--accent-hover); border-color: var(--accent-hover); }
.btn-ghost { background: transparent; border-color: transparent; color: var(--ink-2); }
.btn-ghost:hover { background: var(--surface-2); color: var(--ink); }
.btn-danger { color: var(--danger); border-color: #fecaca; background: var(--surface); }
.btn-danger:hover { background: var(--danger-soft); }
.btn-sm { padding: 5px 10px; font-size: .82rem; border-radius: 7px; }
.btn-sm .icon { width: 14px; height: 14px; }
.btn-lg { padding: 11px 20px; font-size: 1rem; border-radius: 10px; }
.btn-block { width: 100%; }
.btn-icon { padding: 0; width: 32px; height: 32px; }
.btn-icon.btn-sm { width: 28px; height: 28px; }

/* Cards / panels ------------------------------------------------------------------------ */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 22px; }
.card h3 { margin-top: 0; }
.card-pad-sm { padding: 16px; }
.grid { display: grid; gap: 16px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

/* Badges & chips -------------------------------------------------------------------------- */
.badge { display: inline-flex; align-items: center; gap: 5px; padding: 1px 8px; border-radius: 999px; font-size: .75rem; font-weight: 500; line-height: 1.6; background: var(--surface-2); color: var(--ink-2); border: 1px solid var(--line); white-space: nowrap; }
.badge-accent { background: var(--accent-soft); color: var(--accent-ink); border-color: #c7d2fe; }
.badge-ok { background: var(--ok-soft); color: var(--ok); border-color: #bbf7d0; }
.badge-warn { background: var(--warn-soft); color: var(--warn); border-color: #fde68a; }
.badge-danger { background: var(--danger-soft); color: var(--danger); border-color: #fecaca; }
.badge-dark { background: var(--ink); color: #fff; border-color: var(--ink); }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--surface); font-size: .83rem; font-weight: 500; cursor: pointer; user-select: none; color: var(--ink-2); transition: border-color .12s, background .12s; }
.chip input { display: none; }
.chip:hover { border-color: var(--ink-2); color: var(--ink); }
.chip:has(input:checked) { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }

/* Forms ------------------------------------------------------------------------------------ */
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.field label, .label { font-weight: 500; font-size: .88rem; color: var(--ink-2); }
.input, select, textarea { width: 100%; padding: 9px 11px; border: 1px solid var(--line-2); border-radius: var(--radius-sm); font: inherit; font-size: .92rem; background: var(--surface); color: var(--ink); transition: border-color .12s, box-shadow .12s; }
.input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent); box-shadow: var(--ring); }
.input:disabled { background: var(--surface-2); color: var(--muted); }
select { appearance: none; -webkit-appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2371717a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 10px center; padding-right: 32px; }
.help { font-size: .8rem; color: var(--muted); }
.check { display: flex; gap: 9px; align-items: flex-start; font-size: .88rem; color: var(--ink-2); cursor: pointer; }
.check input { margin: 3px 0 0; accent-color: var(--accent); width: 15px; height: 15px; flex: none; }
.check-inline { align-items: center; }
.check-inline input { margin: 0; }
input[type="range"] { accent-color: var(--accent); width: 100%; }
.alert { padding: 11px 14px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface); font-size: .88rem; margin-bottom: 16px; color: var(--ink-2); }
.alert-danger { background: var(--danger-soft); border-color: #fecaca; color: #7f1d1d; }
.alert-ok { background: var(--ok-soft); border-color: #bbf7d0; color: #14532d; }
.alert-info { background: var(--accent-soft); border-color: #c7d2fe; color: var(--accent-ink); }
.alert-warn { background: var(--warn-soft); border-color: #fde68a; color: #78350f; }
.alert .btn { flex: none; }

/* Tables ------------------------------------------------------------------------------------ */
.table { width: 100%; border-collapse: collapse; font-size: .88rem; }
.table th, .table td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.table th { font-size: .74rem; letter-spacing: .02em; color: var(--muted); font-weight: 500; background: var(--surface-2); white-space: nowrap; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.table tr:last-child td { border-bottom: 0; }
.table td .flex { gap: 6px; }

/* Footer ----------------------------------------------------------------------------------- */
.footer { border-top: none; background: var(--surface); padding: 28px 0; margin-top: 56px; color: var(--muted); font-size: .84rem; box-shadow: 0 -6px 20px -12px rgb(45 45 45 / 10%); }
html.dark .footer { box-shadow: 0 -6px 20px -12px rgba(0, 0, 0, .35); }
.footer .container { display: flex; flex-wrap: wrap; gap: 10px 20px; align-items: center; }
.footer a { color: var(--ink-2); }
.footer a:hover { color: var(--ink); }
.footer .spacer { flex: 1; }

/* Landing (search-engine layout) ------------------------------------------------------------- */
body.lp {
  --lp-section-y: 56px;
  --lp-section-y-tight: 40px;
  --lp-hero-pad-top: 40px;
  --lp-hero-pad-bottom: 48px;
  --lp-cta-y: 64px;
  --lp-gap-xs: 8px;
  --lp-gap-sm: 12px;
  --lp-gap: 16px;
  --lp-gap-lg: 24px;
  --lp-gap-xl: 32px;
  --lp-radius: 12px;
  --lp-radius-lg: 14px;
  background: var(--bg);
}
body.lp .container { width: min(1280px, 100% - 32px); }
body.lp .footer { margin-top: 0; }

.lp-section { padding: var(--lp-section-y) 0; }
.lp-section-tight { padding: var(--lp-section-y-tight) 0; }
.lp-section-head { max-width: 560px; margin-bottom: var(--lp-gap-lg); }
.lp-section-head.center { margin-inline: auto; text-align: center; }
.lp-section-head h2 { font-family: var(--font-display); font-size: clamp(1.4rem, 2.4vw, 1.85rem); letter-spacing: -.03em; margin-bottom: var(--lp-gap-xs); }
.lp-section-head p { color: var(--muted); font-size: .98rem; margin: 0; line-height: 1.5; }
.lp-brand-line { font-size: .78rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--accent); margin: 0 0 var(--lp-gap-sm); }
/* Landing nav */
body.lp .nav .container { min-height: 52px; gap: var(--lp-gap-lg); }
body.lp .nav-links { gap: 0; }
body.lp .nav-links a { padding: 6px 10px; font-size: .875rem; }
body.lp .nav-links .btn { margin-left: var(--lp-gap-xs); }
@media (max-width: 860px) {
  body.lp .nav-links { top: 64px; padding: 10px var(--lp-gap) var(--lp-gap); }
}

/* Hero */
.lp-hero { padding: var(--lp-hero-pad-top) 0 var(--lp-hero-pad-bottom); border-bottom: 1px solid var(--line); background-color: var(--bg); background-image: var(--hero-stripe-image); }
.lp-hero-stage { display: grid; grid-template-columns: 1fr; gap: var(--lp-gap-xl); align-items: center; }
.lp-hero-copy { position: relative; z-index: 2; width: 100%; max-width: 36rem; margin-inline: auto; }
.lp-hero-alert { margin-bottom: var(--lp-gap); }
.lp-hero-copy .lp-brand-line { margin: 0 0 var(--lp-gap-sm); }
.lp-hero-copy h1 {
  font-family: var(--font-display);
  font-size: clamp(2.35rem, 4.25vw + 1rem, 3.75rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin: 0 auto var(--lp-gap);
  max-width: min(100%, 18ch);
  text-wrap: balance;
}
.lp-lead { font-size: 1.02rem; color: var(--muted); max-width: 48ch; margin: 0 auto var(--lp-gap); line-height: 1.5; }
.lp-hero-games { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 6px; margin-bottom: 20px; }
.lp-hero-games-label { font-size: .72rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); margin-right: 2px; }
.lp-hero-game { font-size: .8rem; font-weight: 500; line-height: 1.2; padding: 5px 11px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); color: var(--ink); text-decoration: none; transition: border-color .12s, color .12s, background .12s, box-shadow .12s; }
.lp-hero-game:hover { border-color: var(--ink-2); background: var(--surface-2); text-decoration: none; box-shadow: var(--shadow-sm); }
.lp-hero-note { margin: var(--lp-gap) 0 0; font-size: .8rem; color: var(--muted); text-align: center; }
.lp-hero-copy .lp-brand-line,
.lp-hero-copy h1,
.lp-hero-copy .lp-lead { text-align: center; }
.lp-search { display: flex; align-items: stretch; background: var(--surface); border: 1px solid var(--line-2); border-radius: var(--lp-radius-lg); padding: 4px; box-shadow: 0 4px 24px rgba(0, 0, 0, .07); transition: border-color .15s, box-shadow .15s; }
.lp-search:focus-within { border-color: var(--accent); box-shadow: 0 8px 32px rgba(99, 102, 241, .12), var(--ring); }
.lp-search input { flex: 1; border: 0; font-size: 1rem; padding: var(--lp-gap) var(--lp-gap); outline: none; color: var(--ink); background: transparent; min-width: 0; font-family: inherit; }
.lp-search input::placeholder { color: #a1a1aa; }
.lp-search .btn { flex: none; border-radius: var(--lp-radius); padding: var(--lp-gap-sm) 20px; font-size: .95rem; }
.lp-search .btn .icon { width: 16px; height: 16px; }
.lp-hero .lp-search { width: 100%; max-width: none; }
.lp-search-lg { max-width: 640px; margin-inline: auto; }
@media (min-width: 961px) {
  .lp-hero-stage {
    grid-template-columns: minmax(188px, 1fr) minmax(0, 36rem) minmax(188px, 1fr);
    gap: 20px clamp(56px, 7vw, 104px);
    min-height: 520px;
    align-items: center;
  }
  .lp-hero-copy { grid-column: 2; grid-row: 1; }
  .lp-reel-lane--left { grid-column: 1; grid-row: 1; justify-self: end; margin-right: clamp(12px, 2vw, 32px); }
  .lp-reel-lane--right { grid-column: 3; grid-row: 1; justify-self: start; margin-left: clamp(12px, 2vw, 32px); }
  .lp-hero .lp-search input { font-size: 1.12rem; padding: var(--lp-gap) 20px; }
  .lp-hero .lp-search .btn { padding: var(--lp-gap) var(--lp-gap-lg); font-size: 1rem; }
}

.lp-examples { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--lp-gap-xs); margin-top: var(--lp-gap-lg); }
.lp-examples button { color: var(--ink-2); font-size: .8rem; font-weight: 500; padding: 4px var(--lp-gap-sm); border: 1px solid var(--line); border-radius: 999px; background: var(--surface-2); cursor: pointer; font-family: inherit; transition: border-color .12s, color .12s, background .12s, transform .12s; }
.lp-examples button:hover { border-color: var(--accent); color: var(--ink); background: var(--surface); }
.lp-examples button:active { transform: scale(.98); }
.lp-examples button.lp-example-active { border-color: var(--accent); color: var(--accent-ink); background: var(--surface); box-shadow: var(--shadow-sm); }
.lp-example-link { color: var(--ink-2); font-size: .8rem; font-weight: 500; padding: 4px var(--lp-gap-sm); border: 1px solid var(--line); border-radius: 999px; background: var(--surface-2); text-decoration: none; transition: border-color .12s, color .12s, background .12s; }
.lp-example-link:hover { border-color: var(--accent); color: var(--ink); background: var(--surface); text-decoration: none; }
.lp-hero-compact { padding: var(--lp-gap-xl) 0 var(--lp-section-y-tight); }
.lp-hero-compact h1 { font-size: clamp(1.75rem, 3.6vw, 2.35rem); letter-spacing: -.04em; line-height: 1.1; margin: 0 0 var(--lp-gap); max-width: 22ch; }
.lp-games-grid { display: grid; gap: var(--lp-gap); grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
.lp-games-grid-main { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.lp-game-card { display: grid; gap: 6px; padding: var(--lp-gap); border: 1px solid var(--line); border-radius: var(--lp-radius); background: var(--surface); color: inherit; text-decoration: none; transition: border-color .12s, box-shadow .12s; }
.lp-game-card:hover { border-color: var(--line-2); box-shadow: var(--shadow-sm); text-decoration: none; }
.lp-game-card strong { font-size: .95rem; }
.lp-game-card span { font-size: .82rem; color: var(--muted); line-height: 1.4; }
.lp-game-card-lg { padding: var(--lp-gap-lg); }
.lp-hero-actions { display: flex; flex-wrap: wrap; gap: var(--lp-gap-sm); margin-top: var(--lp-gap); }

.seo-results-grid { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--lp-gap); grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.seo-result-card { display: grid; grid-template-columns: 88px minmax(0, 1fr); gap: var(--lp-gap-sm); padding: var(--lp-gap-sm); border: 1px solid var(--line); border-radius: var(--lp-radius); background: #fff; }
.seo-result-thumb { width: 88px; height: 88px; border-radius: var(--lp-gap-xs); background: repeating-conic-gradient(#f4f4f5 0 25%, #fafafa 0 50%) 0 0 / 12px 12px; display: grid; place-items: center; overflow: hidden; }
.seo-result-thumb img { width: 100%; height: 100%; object-fit: contain; }
.seo-result-body { min-width: 0; display: grid; gap: 4px; align-content: start; }
.seo-result-title { font-size: .9rem; font-weight: 600; line-height: 1.3; margin: 0; }
.seo-result-sub { font-size: .78rem; color: var(--muted); margin: 0; line-height: 1.35; }
.seo-result-meta { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; font-size: .72rem; color: var(--muted); margin: 0; }
.seo-result-actions { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.seo-results-empty { margin: 0; }
.seo-results-more { margin: var(--lp-gap) 0 0; }
.seo-find-links { display: grid; gap: var(--lp-gap-sm); grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.seo-find-link { display: grid; gap: 4px; padding: var(--lp-gap); border: 1px solid var(--line); border-radius: var(--lp-radius); background: #fff; color: inherit; text-decoration: none; transition: border-color .12s, box-shadow .12s; }
.seo-find-link:hover { border-color: var(--line-2); box-shadow: var(--shadow-sm); text-decoration: none; }
.seo-find-link strong { font-size: .92rem; }
.seo-find-link span { font-size: .8rem; color: var(--muted); line-height: 1.4; }
.seo-points { display: grid; gap: var(--lp-gap-lg); }
.seo-point h2 { font-size: 1.05rem; margin: 0 0 6px; }
.seo-point p { margin: 0; color: var(--muted); line-height: 1.55; font-size: .95rem; }

/* Hero card reel lanes (TGCAtlas-style, flanking centered copy) */
.lp-reel-lane {
  --lp-reel-card-w: 188px;
  --lp-reel-card-h: 263px;
  --lp-reel-gap: 20px;
  --lp-reel-duration: 54s;
  --lp-reel-scale-ease: cubic-bezier(0.22, 1, 0.36, 1);
  width: var(--lp-reel-card-w);
  min-height: 480px;
  max-height: 540px;
  overflow: visible;
  display: none;
}
@media (min-width: 961px) {
  .lp-reel-lane { display: block; }
}
@media (min-width: 1280px) {
  .lp-reel-lane {
    --lp-reel-card-w: 200px;
    --lp-reel-card-h: 280px;
  }
}
.lp-reel-viewport {
  --lp-reel-bleed: 30px;
  height: 100%;
  max-height: 540px;
  width: calc(100% + 2 * var(--lp-reel-bleed));
  margin-inline: calc(-1 * var(--lp-reel-bleed));
  padding-inline: var(--lp-reel-bleed);
  overflow: visible;
  perspective: 720px;
  perspective-origin: 50% 50%;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 8.5%, #000 91.5%, transparent 100%);
  mask-image: linear-gradient(to bottom, transparent 0, #000 8.5%, #000 91.5%, transparent 100%);
}
.lp-reel-strip {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--lp-reel-gap);
}
.lp-reel-strip--up,
.lp-reel-strip--down { animation: none; }
.lp-reel-lane--ready .lp-reel-strip--up { animation: lp-reel-scroll-up var(--lp-reel-duration) linear infinite; }
.lp-reel-lane--ready .lp-reel-strip--down { animation: lp-reel-scroll-down var(--lp-reel-duration) linear infinite; }
@keyframes lp-reel-scroll-up {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(0, -50%, 0); }
}
@keyframes lp-reel-scroll-down {
  from { transform: translate3d(0, -50%, 0); }
  to { transform: translate3d(0, 0, 0); }
}
@media (prefers-reduced-motion: reduce) {
  .lp-reel-strip--up, .lp-reel-strip--down { animation: none; transform: translate3d(0, -12%, 0); }
}
.lp-reel-item {
  display: block;
  position: relative;
  z-index: 1;
  width: var(--lp-reel-card-w);
  color: inherit;
  text-decoration: none;
  transform-origin: center center;
  will-change: transform, opacity;
  overflow: visible;
}
.lp-reel-item.is-hover { z-index: 30; }
.lp-reel-item:hover { text-decoration: none; }
.lp-reel-card {
  display: grid;
  gap: 8px;
  transform-origin: center center;
  transition: filter 0.25s ease;
}
.lp-reel-item.is-hover .lp-reel-card { filter: drop-shadow(0 14px 28px rgba(0, 0, 0, .18)); }
.lp-reel-art {
  width: var(--lp-reel-card-w);
  height: var(--lp-reel-card-h);
  border-radius: 12px;
  overflow: hidden;
  background: var(--surface-2);
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
  transition: box-shadow 0.25s ease, border-color 0.25s ease;
}
.lp-reel-item.is-hover .lp-reel-art { box-shadow: var(--shadow-lg); border-color: var(--line-2); }
.lp-reel-lane:not(.lp-reel-lane--ready) { opacity: 0; pointer-events: none; }
.lp-reel-lane--ready { opacity: 1; pointer-events: auto; transition: opacity 0.35s ease; }
.lp-reel-img { width: 100%; height: 100%; object-fit: contain; display: block; background: #fff; }
html.dark .lp-reel-img { background: var(--surface-3); }
.lp-reel-item--sealed .lp-reel-art { height: 220px; }
@media (min-width: 1280px) {
  .lp-reel-item--sealed .lp-reel-art { height: 232px; }
}
.lp-reel-item--sealed .lp-reel-img { object-fit: contain; }
.lp-reel-caption {
  margin-top: 10px;
  display: grid;
  gap: 3px;
  font-size: .8rem;
  line-height: 1.3;
  text-align: center;
  max-width: var(--lp-reel-card-w);
}
.lp-reel-caption-game { color: var(--accent); font-weight: 600; letter-spacing: .02em; text-transform: uppercase; font-size: .7rem; }
.lp-reel-caption-title { color: var(--ink-2); font-size: .78rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lp-hero-preview--empty {
  display: grid;
  place-items: center;
  min-height: 320px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: var(--lp-radius-lg);
}

/* Legacy hit list (app empty state) */
.lp-hero-preview { background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--lp-radius-lg); padding: var(--lp-gap); overflow: hidden; }
.lp-preview-query { font-size: .82rem; color: var(--muted); margin-bottom: var(--lp-gap-sm); padding: 0 4px; }
.lp-preview-label { font-weight: 500; color: var(--ink-2); margin-right: 4px; }
.lp-preview-stack { display: grid; gap: var(--lp-gap-xs); transition: opacity .2s; }
.lp-preview-stack.lp-preview-switch { animation: lp-fade .22s ease-out; }
@keyframes lp-fade { from { opacity: .4; transform: translateY(4px); } to { opacity: 1; transform: none; } }
.lp-hit {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr) 76px;
  align-items: center;
  gap: var(--lp-gap-sm);
  min-height: 72px;
  padding: 10px var(--lp-gap-sm);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--lp-radius);
  color: inherit;
  text-decoration: none;
  transition: border-color .12s, box-shadow .12s, transform .12s;
}
.lp-hit:hover { border-color: var(--line-2); box-shadow: var(--shadow); transform: translateY(-2px); text-decoration: none; }
.lp-hit-muted { opacity: .88; }
.lp-hit-thumb { width: 56px; height: 56px; border-radius: var(--lp-gap-xs); background: repeating-conic-gradient(#f4f4f5 0 25%, #fafafa 0 50%) 0 0 / 12px 12px; display: grid; place-items: center; overflow: hidden; }
.lp-hit-thumb img { width: 100%; height: 100%; object-fit: contain; }
.lp-hit-body { min-width: 0; display: grid; gap: 4px; align-content: center; }
.lp-hit-market { font-size: .72rem; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .03em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lp-flag { margin-right: 4px; }
.lp-hit-title { font-size: .86rem; font-weight: 600; line-height: 1.3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lp-hit-meta { display: flex; gap: var(--lp-gap-xs); font-size: .74rem; color: var(--muted); min-width: 0; }
.lp-hit-meta span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lp-hit-meta span:first-child { color: var(--ink-2); flex: 1; min-width: 0; }
.lp-hit-meta span:last-child { flex: none; }
.lp-hit-actions { display: flex; flex-direction: column; gap: 4px; width: 76px; align-items: stretch; justify-content: center; }
.lp-hit-action { font-size: .72rem; font-weight: 500; color: var(--ink-2); padding: 4px var(--lp-gap-xs); border: 1px solid var(--line); border-radius: var(--lp-gap-xs); background: var(--surface-2); text-align: center; white-space: nowrap; line-height: 1.25; min-height: 24px; box-sizing: border-box; }
.lp-hit-action-primary { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.lp-hit-action-ghost { visibility: hidden; pointer-events: none; }

/* Trust / sources */
.lp-trust { max-width: 720px; margin-inline: auto; }
.lp-trust-card { display: grid; grid-template-columns: 160px 1fr; gap: 20px; align-items: start; padding: 18px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); box-shadow: var(--shadow-sm); }
.lp-trust-preview { width: 160px; background: repeating-conic-gradient(#f4f4f5 0 25%, #fafafa 0 50%) 0 0 / 16px 16px; border-radius: 10px; border: 1px solid var(--line); padding: 8px; display: grid; place-items: center; }
.lp-trust-preview img { width: 100%; height: auto; object-fit: contain; display: block; }
.lp-trust-title { font-weight: 600; font-size: 1rem; margin-bottom: 4px; }
.lp-trust-source { font-size: .84rem; color: var(--muted); margin-bottom: 12px; }
.lp-trust-source a { font-weight: 500; }
.lp-trust-kv { display: grid; grid-template-columns: max-content 1fr; gap: 6px 20px; align-items: baseline; font-size: .82rem; margin: 0 0 14px; }
.lp-trust-kv dt { color: var(--muted); white-space: nowrap; }
.lp-trust-kv dd { margin: 0; font-weight: 500; min-width: 0; }
.lp-trust-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.lp-trust-link { margin: 14px 0 0; font-size: .88rem; text-align: center; }

/* Workflow */
.lp-workflow-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; align-items: stretch; }
.lp-batch-demo { display: flex; flex-direction: column; padding: 18px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface-2); }
.lp-batch-list { display: grid; gap: 8px; margin-bottom: 14px; flex: 1; }
.lp-batch-row { display: flex; align-items: center; gap: 10px; font-size: .86rem; padding: 8px 10px; background: var(--surface); border: 1px solid var(--line); border-radius: 8px; color: var(--ink-2); }
.lp-batch-row input { accent-color: var(--accent); flex-shrink: 0; }
.lp-batch-demo .btn { width: 100%; justify-content: center; }
.lp-csv-demo { padding: 18px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px; }
.lp-csv-step { font-size: .84rem; font-weight: 500; padding: 8px 12px; background: var(--surface-2); border: 1px solid var(--line); border-radius: 8px; text-align: center; }
.lp-csv-icon { font-size: .72rem; font-weight: 700; letter-spacing: .03em; color: var(--muted); display: block; margin-bottom: 2px; }
.lp-csv-arrow { color: var(--muted); font-size: .9rem; flex-shrink: 0; }
.lp-csv-note { width: 100%; margin: 10px 0 0; text-align: center; }

/* Pricing */
.lp-pricing { background: var(--surface-2); border-block: 1px solid var(--line); }
.lp-pricing .lp-section-head { margin-bottom: 24px; }
.lp-plans { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; max-width: 680px; margin-inline: auto; align-items: stretch; }
.lp-plan { display: flex; flex-direction: column; height: 100%; padding: 24px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.lp-plan-featured { border-color: var(--accent); box-shadow: var(--shadow); }
.lp-plan-head { margin-bottom: 0; }
.lp-plan h3 { font-size: .95rem; margin: 0; }
.lp-plan-price { font-size: 1.85rem; font-weight: 600; letter-spacing: -.03em; margin: 8px 0 0; line-height: 1; }
.lp-plan-price small { font-size: .85rem; color: var(--muted); font-weight: 400; }
.lp-plan ul { padding: 0; margin: 24px 0; list-style: none; display: grid; gap: 8px; flex: 1; }
.lp-plan li { padding-left: 22px; position: relative; font-size: .88rem; color: var(--ink-2); }
.lp-plan li::before { content: ""; position: absolute; left: 0; top: 5px; width: 13px; height: 13px; border-radius: 50%; background: var(--ok-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2315803d' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12 5 5L20 7'/%3E%3C/svg%3E") center / 8px no-repeat; }
.lp-plan .cta { margin-top: auto; width: 100%; justify-content: center; }
.lp-business-link { margin-top: 24px; }

/* FAQ */
.lp-section .container.narrow.faq { width: min(640px, 100%); max-width: 640px; }

/* Final CTA */
.lp-cta { background: linear-gradient(135deg, #4338ca 0%, #312e81 100%); color: var(--on-accent); padding: var(--lp-cta-y) 0; }
.lp-cta h2 { font-family: var(--font-display); color: var(--on-accent); font-size: clamp(1.5rem, 3vw, 2rem); margin-bottom: 8px; }
.lp-cta p { color: #c7d2fe; margin: 0 0 24px; }
.lp-cta-inner { text-align: center; max-width: 640px; margin-inline: auto; }
.lp-cta .lp-search { max-width: 640px; margin-inline: auto; box-shadow: 0 8px 32px rgba(0, 0, 0, .25); }
.lp-cta .btn-primary { background: var(--surface); border-color: var(--surface); color: var(--accent-ink); }
.lp-cta .btn-primary:hover { background: var(--accent-soft); border-color: var(--accent-soft); }

/* Footer */
.lp-footer { padding: 32px 0 20px; background: var(--surface-2); border-top: 1px solid var(--line); }
.lp-footer-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; margin-bottom: 24px; }
.lp-footer-col { display: flex; flex-direction: column; gap: 6px; font-size: .84rem; }
.lp-footer-col strong { font-size: .78rem; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); margin-bottom: 4px; }
.lp-footer-col a { color: var(--ink-2); }
.lp-footer-col span { color: var(--muted); }
.lp-footer-bottom { padding-top: 20px; border-top: 1px solid var(--line); font-size: .8rem; color: var(--muted); }

/* Landing responsive */
@media (max-width: 960px) {
  body.lp {
    --lp-section-y: 44px;
    --lp-section-y-tight: 32px;
    --lp-hero-pad-top: 32px;
    --lp-hero-pad-bottom: 40px;
    --lp-cta-y: 48px;
  }
  .lp-hero-stage { grid-template-columns: 1fr; gap: 24px; }
  .lp-hero-copy h1 { max-width: none; }
  .lp-hit { grid-template-columns: 56px minmax(0, 1fr) auto; }
  .lp-hit-actions { flex-direction: row; width: auto; min-width: 148px; }
  .lp-workflow-grid { grid-template-columns: 1fr; }
  .lp-trust-card { grid-template-columns: 1fr; }
  .lp-trust-preview { max-width: 180px; }
}
@media (max-width: 720px) {
  body.lp {
    --lp-section-y: 40px;
    --lp-section-y-tight: 28px;
    --lp-hero-pad-top: 28px;
    --lp-hero-pad-bottom: 36px;
    --lp-cta-y: 44px;
  }
  .lp-plans { grid-template-columns: 1fr; max-width: 360px; }
  .lp-footer-grid { grid-template-columns: 1fr 1fr; gap: 20px; }
  .lp-search .btn { padding: 11px 14px; }
  .lp-search .btn .icon { margin: 0; }
}
@media (max-width: 480px) {
  body.lp {
    --lp-section-y: 32px;
    --lp-section-y-tight: 24px;
    --lp-hero-pad-top: 24px;
    --lp-hero-pad-bottom: 32px;
    --lp-cta-y: 40px;
  }
  body.lp .container { width: min(1280px, 100% - 24px); }
  .lp-search { flex-wrap: wrap; }
  .lp-search input,
  .lp-search .btn { width: 100%; }
  .lp-footer-grid { grid-template-columns: 1fr; }
  .lp-hit { grid-template-columns: 48px minmax(0, 1fr); min-height: 64px; }
  .lp-hit-thumb { width: 48px; height: 48px; }
  .lp-hit-actions { display: none; }
  .lp-csv-demo { flex-direction: column; align-items: stretch; }
  .lp-csv-arrow { display: none; }
}

/* Legacy landing helpers (app empty state) */
.examples { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; }
.examples a, .examples button { color: var(--ink-2); font-size: .82rem; font-weight: 500; padding: 4px 11px; border: 1px solid var(--line-2); border-radius: 999px; background: var(--surface); cursor: pointer; font-family: inherit; transition: border-color .12s, color .12s, background .12s; }
.examples a:hover, .examples button:hover { border-color: var(--ink-2); color: var(--ink); background: var(--surface-2); text-decoration: none; }
.pricing-header { text-align: center; max-width: 480px; margin: 0 auto 28px; }
.pricing-header h2 { margin-bottom: 6px; }
.pricing-teaser { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; max-width: 720px; margin-inline: auto; align-items: stretch; }
@media (max-width: 600px) { .pricing-teaser { grid-template-columns: 1fr; max-width: 360px; } }
.feature { padding: 24px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); }
.feature .feature-icon { width: 36px; height: 36px; border-radius: 9px; background: var(--accent-soft); color: var(--accent-ink); display: grid; place-items: center; margin-bottom: 14px; }
.feature .feature-icon svg { width: 18px; height: 18px; }
.feature h3 { font-size: 1rem; }
.feature p { color: var(--muted); font-size: .92rem; margin: 0; }
.steps { counter-reset: step; }
.step { position: relative; padding-left: 44px; }
.step::before { counter-increment: step; content: counter(step); position: absolute; left: 0; top: 0; width: 28px; height: 28px; border-radius: 50%; background: var(--accent); color: var(--on-accent); display: grid; place-items: center; font-weight: 600; font-size: .82rem; }
.step h3 { font-size: 1rem; margin-top: 2px; }
.step p { color: var(--muted); font-size: .92rem; margin: 0; }
.logos { display: flex; flex-wrap: wrap; gap: 8px; }
.logos span { padding: 6px 12px; border-radius: 8px; background: var(--surface); border: 1px solid var(--line); font-size: .84rem; color: var(--ink-2); font-weight: 500; display: inline-flex; align-items: center; gap: 6px; }
.logos .dot { width: 6px; height: 6px; }

/* Pricing ------------------------------------------------------------------------------------ */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; align-items: stretch; }
@media (max-width: 900px) { .plans { grid-template-columns: 1fr; max-width: 460px; margin-inline: auto; } }
.plan { position: relative; display: flex; flex-direction: column; padding: 26px; }
.plan.featured { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent), var(--shadow); }
.plan .ribbon { position: absolute; top: -11px; left: 22px; }
.plan .price { font-size: 2.2rem; font-weight: 600; letter-spacing: -.03em; margin: 14px 0 0; line-height: 1; }
.plan .price small { font-size: .95rem; color: var(--muted); font-weight: 400; letter-spacing: 0; }
.plan .price-note { font-size: .8rem; color: var(--muted); margin-top: 6px; min-height: 1.2em; }
.plan ul { padding: 0; margin: 22px 0 24px; list-style: none; display: grid; gap: 9px; }
.plan li { padding-left: 24px; position: relative; font-size: .9rem; color: var(--ink-2); }
.plan li::before { content: ""; position: absolute; left: 0; top: 5px; width: 14px; height: 14px; border-radius: 50%; background: var(--ok-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2315803d' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12 5 5L20 7'/%3E%3C/svg%3E") center / 9px no-repeat; }
.plan li.no { color: var(--muted); }
.plan li.no::before { background: var(--surface-2) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23a1a1aa' stroke-width='3' stroke-linecap='round'%3E%3Cpath d='M6 12h12'/%3E%3C/svg%3E") center / 9px no-repeat; }
.plan .cta { margin-top: auto; }
.toggle { display: inline-flex; background: var(--surface-2); border: 1px solid var(--line); border-radius: 999px; padding: 3px; gap: 2px; }
.toggle button { border: 0; background: transparent; padding: 6px 14px; border-radius: 999px; font-weight: 500; font-size: .88rem; cursor: pointer; color: var(--ink-2); font-family: inherit; display: inline-flex; align-items: center; gap: 6px; }
.toggle button.on { background: var(--surface); color: var(--ink); box-shadow: var(--shadow-sm); }
.compare td:first-child { font-weight: 500; color: var(--ink); }
.compare td:not(:first-child) { color: var(--ink-2); }
.faq details { border-bottom: 1px solid var(--line); padding: 14px 0; }
.faq summary { cursor: pointer; font-weight: 500; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--muted); font-size: 1.2rem; line-height: 1; transition: transform .15s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 10px 0 0; color: var(--ink-2); font-size: .92rem; }

/* FAQ OVERRIDES */
.lp-section .faq > h2 { margin-bottom: 24px; }
body.lp .faq details { padding: 12px 0; }
body.lp .faq details:first-child { padding-top: 0; }

/* Workspace ------------------------------------------------------------------------------------ */
.workspace { padding: 24px 0 80px; }
.searchbar { display: flex; gap: 6px; background: var(--surface); border: 1px solid var(--line-2); border-radius: 12px; padding: 5px; box-shadow: var(--shadow-sm); align-items: center; transition: border-color .12s, box-shadow .12s; }
.searchbar:focus-within { border-color: var(--accent); box-shadow: var(--ring); }
.searchbar select { width: auto; border: 0; background-color: var(--surface-2); border-radius: 8px; font-weight: 500; font-size: .86rem; padding: 8px 30px 8px 10px; color: var(--ink-2); flex: none; max-width: 190px; }
.searchbar select:focus { box-shadow: none; }
.searchbar input { flex: 1; border: 0; font-size: 1rem; padding: 8px 10px; outline: none; min-width: 0; background: transparent; color: var(--ink); font-family: inherit; }
.searchbar input::placeholder { color: #a1a1aa; }
.searchbar .btn { flex: none; }
@media (max-width: 640px) {
  .searchbar { flex-wrap: wrap; }
  .searchbar select { order: 1; max-width: none; flex: 1; }
  .searchbar input { order: 0; flex: 1 1 100%; }
  .searchbar .btn { order: 2; }
}
.toolbar { display: flex; flex-wrap: wrap; gap: 8px 10px; align-items: center; margin-top: 12px; font-size: .86rem; color: var(--ink-2); }
.toolbar-right { margin-left: auto; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; color: var(--muted); font-size: .82rem; }
@media (max-width: 720px) { .toolbar-right { margin-left: 0; width: 100%; } }
.segment { display: inline-flex; background: var(--surface-2); border: 1px solid var(--line); border-radius: 9px; padding: 2px; gap: 2px; }
.segment label { padding: 5px 11px; font-size: .84rem; font-weight: 500; cursor: pointer; color: var(--ink-2); border-radius: 7px; transition: background .12s, color .12s; }
.segment input { display: none; }
.segment label:has(input:checked) { background: var(--surface); color: var(--ink); box-shadow: var(--shadow-sm); }
.menu { position: relative; }
.menu > summary { list-style: none; }
.menu > summary::-webkit-details-marker { display: none; }
.menu[open] > summary { background: var(--surface-2); }
.menu-panel { position: absolute; top: calc(100% + 6px); left: 0; z-index: 30; min-width: 280px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow-lg); padding: 12px; }
.menu-panel .chips { gap: 5px; }
.menu-foot { display: flex; justify-content: space-between; align-items: center; margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--line); font-size: .8rem; color: var(--muted); }
.quota-pill { display: inline-flex; align-items: center; gap: 6px; }
.quota-pill strong { color: var(--ink); font-weight: 500; }
.status-line { display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: center; font-size: .86rem; color: var(--muted); min-height: 26px; margin-top: 18px; }
.status-line .spin { width: 13px; height: 13px; border: 2px solid var(--line-2); border-top-color: var(--accent); border-radius: 50%; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.interpretation { font-size: .82rem; color: var(--muted); margin-top: 2px; }
.interpretation strong { color: var(--ink-2); font-weight: 500; }
.interpretation code { font-size: .8rem; padding: 0 4px; }
[data-results] { display: block; }
.provider-block { margin-top: 26px; }
.provider-head { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin-bottom: 10px; }
.provider-head h3 { margin: 0; font-size: .95rem; font-weight: 600; }
.provider-head .count { color: var(--muted); font-size: .84rem; }
.provider-head .note { color: var(--muted); font-size: .8rem; }
.results { display: grid; grid-template-columns: repeat(auto-fill, minmax(164px, 1fr)); gap: 12px; }
.tile-sentinel { grid-column: 1 / -1; height: 1px; margin-top: -1px; pointer-events: none; visibility: hidden; }
.tile { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; transition: border-color .12s, box-shadow .12s; }
.tile:hover { border-color: var(--line-2); box-shadow: var(--shadow); }
.tile.selected { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.tile .thumb { aspect-ratio: 1 / 1.08; background: repeating-conic-gradient(#f4f4f5 0 25%, #fafafa 0 50%) 0 0 / 16px 16px; display: grid; place-items: center; overflow: hidden; cursor: zoom-in; padding: 8px; }
.tile .thumb img { width: 100%; height: 100%; object-fit: contain; transition: transform .2s; }
.tile:hover .thumb img { transform: scale(1.025); }
.tile .thumb .broken { font-size: .76rem; color: var(--muted); padding: 10px; text-align: center; }
.tile .meta { padding: 10px 10px 6px; display: grid; gap: 3px; }
.tile .title { font-weight: 600; font-size: .84rem; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; letter-spacing: -.005em; }
.tile .sub { font-size: .76rem; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.tile .actions { display: flex; gap: 5px; padding: 6px 10px 10px; align-items: center; }
.tile .actions .btn { padding: 5px 9px; font-size: .78rem; }
.tile .actions .btn-primary { flex: 1; }
.tile .select { position: absolute; top: 8px; left: 8px; width: 22px; height: 22px; border-radius: 50%; border: 1.5px solid var(--line-2); background: rgba(255, 255, 255, .92); display: grid; place-items: center; cursor: pointer; color: transparent; opacity: 0; transition: opacity .12s; z-index: 2; }
.tile .select svg { width: 12px; height: 12px; }
.tile:hover .select, .tile.selected .select, .tile:focus-within .select { opacity: 1; }
@media (hover: none) { .tile .select { opacity: 1; } }
.tile.selected .select { background: var(--accent); color: var(--on-accent); border-color: var(--accent); }
.tile .fmt { position: absolute; top: 8px; right: 8px; font-size: .64rem; padding: 0 6px; background: rgba(255, 255, 255, .92); }
.batchbar { position: sticky; bottom: 16px; z-index: 30; margin-top: 24px; background: var(--surface); border: 1px solid var(--line-2); border-radius: 12px; padding: 10px 14px; display: flex; flex-wrap: wrap; gap: 8px 10px; align-items: center; box-shadow: var(--shadow-lg); font-size: .88rem; }
.batchbar .hint { color: var(--muted); font-size: .8rem; }
.empty { text-align: center; padding: 72px 20px 48px; color: var(--muted); }
.empty h3 { color: var(--ink); font-size: 1.15rem; }
.empty p { max-width: 460px; margin: 0 auto 18px; font-size: .92rem; }
.empty .examples { justify-content: center; }
.more-wrap { text-align: center; margin-top: 28px; }

/* Modal ------------------------------------------------------------------------------------------- */
.modal-backdrop { position: fixed; inset: 0; background: rgba(9, 9, 11, .55); backdrop-filter: blur(2px); z-index: 60; display: grid; place-items: center; padding: 16px; }
.modal { background: var(--surface); border-radius: 16px; width: min(940px, 100%); max-height: calc(100vh - 32px); overflow: auto; box-shadow: var(--shadow-lg); border: 1px solid var(--line); }
.modal-head { display: flex; align-items: center; gap: 12px; padding: 14px 18px; border-bottom: 1px solid var(--line); position: sticky; top: 0; background: var(--surface); z-index: 1; }
.modal-head h3 { margin: 0; flex: 1; font-size: 1rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.modal-body { padding: 18px; }
.modal-close { border: 1px solid transparent; background: transparent; width: 32px; height: 32px; border-radius: 8px; cursor: pointer; color: var(--muted); display: grid; place-items: center; }
.modal-close:hover { background: var(--surface-2); color: var(--ink); }
.modal-close .icon { width: 16px; height: 16px; }
.modal-compact { width: min(380px, 100%); border-radius: 12px; }
.modal-compact .modal-body { padding: 20px 20px 18px; }
.modal-compact-title { margin: 0 0 6px; font-size: 1rem; font-weight: 600; }
.preview { display: grid; grid-template-columns: 1.15fr 1fr; gap: 20px; }
@media (max-width: 760px) { .preview { grid-template-columns: 1fr; } }
.preview .stage { background: repeating-conic-gradient(#f4f4f5 0 25%, #fafafa 0 50%) 0 0 / 20px 20px; border: 1px solid var(--line); border-radius: 12px; display: grid; place-items: center; min-height: 320px; padding: 14px; position: relative; }
.preview .stage img { max-height: 62vh; object-fit: contain; }
.preview .stage .stage-note { position: absolute; bottom: 10px; left: 50%; transform: translateX(-50%); background: rgba(255, 255, 255, .92); padding: 3px 10px; border-radius: 999px; font-size: .78rem; color: var(--muted); border: 1px solid var(--line); }
.kv { display: grid; grid-template-columns: auto 1fr; gap: 7px 16px; font-size: .88rem; margin: 0; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; word-break: break-word; color: var(--ink); }
.actions-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }

/* Toasts ------------------------------------------------------------------------------------------- */
.toasts { position: fixed; right: 16px; bottom: 88px; z-index: 80; display: grid; gap: 8px; max-width: 360px; }
.toast { background: var(--surface); color: var(--ink); padding: 11px 14px; border-radius: 10px; border: 1px solid var(--line-2); border-left: 3px solid var(--accent); box-shadow: var(--shadow-lg); font-size: .88rem; display: flex; gap: 10px; align-items: flex-start; animation: rise .18s ease-out; }
.toast.danger { border-left-color: var(--danger); }
.toast.ok { border-left-color: var(--ok); }
.toast a { font-weight: 500; }
@keyframes rise { from { transform: translateY(8px); opacity: 0; } }

/* Auth ---------------------------------------------------------------------------------------------- */
.auth { width: min(420px, 100% - 32px); margin: 56px auto; }
.auth .card { padding: 30px; }
.auth h1 { font-size: 1.45rem; margin-bottom: 6px; }
.auth .lead { color: var(--muted); font-size: .92rem; margin-bottom: 22px; }
.auth-wide { width: min(560px, 100% - 32px); }

/* Account ------------------------------------------------------------------------------------------- */
.page-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 12px; margin-bottom: 8px; }
.page-head h1 { font-size: 1.5rem; margin: 0; }
.page-head p { margin: 2px 0 0; color: var(--muted); font-size: .9rem; }
.tabs { display: flex; gap: 2px; margin: 18px 0 26px; box-shadow: inset 0 -1px 0 var(--line); overflow-x: auto; overflow-y: hidden; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tabs a { padding: 9px 12px; font-weight: 500; color: var(--muted); border-bottom: 2px solid transparent; white-space: nowrap; font-size: .9rem; }
.tabs a:hover { color: var(--ink); text-decoration: none; }
.tabs a.active { color: var(--accent-ink); border-bottom-color: var(--accent); }
.stat { padding: 16px 18px; }
.stat .n { font-size: 1.5rem; font-weight: 600; letter-spacing: -.02em; font-variant-numeric: tabular-nums; line-height: 1.2; }
.stat .n small { font-size: .9rem; color: var(--muted); font-weight: 400; }
.stat .l { color: var(--muted); font-size: .82rem; margin-top: 4px; }
.key { font-family: var(--mono); background: var(--surface-2); border: 1px dashed var(--line-2); padding: 10px 12px; border-radius: 8px; word-break: break-all; font-size: .85rem; }
.quota { font-size: .84rem; color: var(--muted); }
.quota .bar { height: 5px; background: var(--surface-3); border-radius: 999px; overflow: hidden; margin: 6px 0 10px; }
.quota .bar span { display: block; height: 100%; background: var(--accent); border-radius: 999px; transition: width .3s; }
.plan-option { border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; margin-bottom: 12px; }
.plan-option.featured { border-color: var(--accent); }
.receipt { white-space: pre-wrap; background: var(--surface-2); color: var(--ink); border: 1px solid var(--line); font-size: .82rem; }
.summary-box { padding: 14px 16px; background: var(--surface-2); border-radius: 10px; }

/* Legal ----------------------------------------------------------------------------------------------- */
.prose { width: min(760px, 100% - 40px); margin: 40px auto 64px; }
.prose h1 { font-size: 1.9rem; margin-bottom: 8px; }
.prose h2 { font-size: 1.2rem; margin-top: 36px; }
.prose h3 { font-size: 1rem; margin-top: 22px; }
.prose p, .prose li { color: var(--ink-2); font-size: .95rem; line-height: 1.65; }
.prose ul { padding-left: 20px; }
.prose li { margin-bottom: 4px; }
.prose .box { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 18px 20px; }
.prose .box h2:first-child { margin-top: 0; }
.prose .meta { color: var(--muted); font-size: .85rem; margin-bottom: 28px; }

/* Misc ------------------------------------------------------------------------------------------------ */
.progress { height: 6px; background: var(--surface-3); border-radius: 999px; overflow: hidden; }
.progress span { display: block; height: 100%; background: var(--accent); transition: width .3s; }
.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--line-2); }
.dot.ok { background: var(--ok); } .dot.warn { background: #d97706; } .dot.bad { background: var(--danger); }
.thumb-sm { width: 52px; height: 52px; object-fit: contain; background: var(--surface-2); border-radius: 6px; border: 1px solid var(--line); }
.drop { border: 1.5px dashed var(--line-2); border-radius: 12px; padding: 28px; text-align: center; background: var(--surface); cursor: pointer; display: block; transition: border-color .12s, background .12s; }
.drop:hover { border-color: var(--ink-2); }
.drop.over { border-color: var(--accent); background: var(--accent-soft); }
.popover { position: absolute; z-index: 5; min-width: 260px; margin-top: 6px; right: 0; }
.rel { position: relative; }
