/* ===== LANDING V2 =====
   Loaded after style.css. Centered hero, live HTML demo, compare table,
   tighter section rhythm. Uses the page theme's --blue / --accent-rgb. */

.section { padding: 84px 0; }
.section-header { margin-bottom: 48px; }

/* ---- Hero ---- */
.hero2 { position: relative; overflow: hidden; padding: 128px 0 72px; text-align: center; }
.hero2::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(ellipse 60% 45% at 50% 0%, rgba(var(--accent-rgb),0.16), transparent 70%),
    linear-gradient(rgba(255,255,255,0.035) 1px, transparent 1px) 0 0 / 48px 48px,
    linear-gradient(90deg, rgba(255,255,255,0.035) 1px, transparent 1px) 0 0 / 48px 48px;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 20%, #000 40%, transparent 100%);
          mask-image: radial-gradient(ellipse 70% 60% at 50% 20%, #000 40%, transparent 100%);
}
.hero2 .container { position: relative; z-index: 1; }
.hero2-pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px; border-radius: 50px; margin-bottom: 28px;
  background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.12);
  font-size: 0.8rem; font-weight: 600; color: #e2e8f0; letter-spacing: 0.02em;
}
.hero2-pill .stars { color: #FBBF24; letter-spacing: 1px; }
.hero2-title {
  font-size: clamp(2.4rem, 6vw, 4.4rem); font-weight: 900; line-height: 1.05;
  letter-spacing: -0.03em; color: #fff; max-width: 900px; margin: 0 auto 22px;
}
.hero2-title .muted { color: #6b7280; }
.hero2-desc { font-size: 1.15rem; color: var(--muted); max-width: 640px; margin: 0 auto 34px; line-height: 1.7; }
.hero2-desc strong { color: #fff; font-weight: 600; }
.hero2-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-bottom: 26px; }
.hero2-trust {
  display: flex; gap: 22px; justify-content: center; flex-wrap: wrap;
  font-size: 0.88rem; color: var(--muted);
}
.hero2-trust span { display: inline-flex; align-items: center; gap: 7px; }
.hero2-trust b { color: #fff; font-weight: 700; }
.hero2-trust .ok { color: #22c55e; }

/* ---- Demo window ---- */
.demo {
  margin: 56px auto 0; max-width: 1080px; text-align: left;
  border-radius: 18px; background: #0d0f16;
  border: 1px solid rgba(255,255,255,0.09);
  box-shadow: 0 40px 120px rgba(0,0,0,0.7), 0 0 0 1px rgba(255,255,255,0.02);
}
.demo-bar {
  display: flex; align-items: center; gap: 14px; padding: 14px 18px;
  border-bottom: 1px solid rgba(255,255,255,0.07);
}
.demo-dots { display: flex; gap: 7px; }
.demo-dots i { width: 11px; height: 11px; border-radius: 50%; display: block; }
.demo-dots i:nth-child(1) { background: #ff5f57; }
.demo-dots i:nth-child(2) { background: #febc2e; }
.demo-dots i:nth-child(3) { background: #28c840; }
.demo-url {
  flex: 1; max-width: 360px; margin: 0 auto; padding: 5px 14px; border-radius: 8px;
  background: rgba(255,255,255,0.05); color: #9ca3af; font-size: 0.8rem; text-align: center;
}
.demo-body { display: grid; grid-template-columns: 1.05fr 1fr; gap: 18px; padding: 18px; }

.demo-chat {
  border-radius: 12px; background: #000; border: 1px solid rgba(255,255,255,0.08);
  display: flex; flex-direction: column; min-height: 380px;
}
.demo-chat-head {
  display: flex; align-items: center; gap: 10px; padding: 12px 16px;
  border-bottom: 1px solid rgba(255,255,255,0.08); font-weight: 700; color: #fff; font-size: 0.92rem;
}
.demo-chat-head .exp-btns { margin-left: auto; display: flex; gap: 6px; }
.demo-chat-head .exp-btns span {
  font-size: 0.68rem; font-weight: 700; padding: 3px 8px; border-radius: 6px;
  background: #fff; color: #000;
}
.demo-msgs { padding: 16px; display: flex; flex-direction: column; gap: 14px; flex: 1; }
.msg-user {
  align-self: flex-end; max-width: 80%; padding: 10px 14px; border-radius: 16px 16px 4px 16px;
  background: #1f2023; color: #f3f4f6; font-size: 0.88rem;
}
.msg-ai { color: #d1d5db; font-size: 0.88rem; line-height: 1.65; }
.msg-ai h4 { color: #fff; font-size: 0.95rem; margin-bottom: 6px; }
.msg-ai ul { margin: 6px 0 8px 18px; }
.msg-ai code {
  display: block; margin-top: 8px; padding: 10px 12px; border-radius: 8px;
  background: #111317; border: 1px solid rgba(255,255,255,0.06);
  font-family: ui-monospace, 'SFMono-Regular', Consolas, monospace; font-size: 0.78rem; color: #93c5fd;
  white-space: pre;
}
.msg-ai code .k { color: #f472b6; }
.msg-ai code .s { color: #86efac; }

.demo-out { display: flex; flex-direction: column; gap: 12px; }
.demo-tabs {
  display: flex; gap: 6px; padding: 5px; border-radius: 12px;
  background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.07);
}
.demo-tab {
  flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  padding: 8px 6px; border-radius: 8px; border: 0; cursor: pointer;
  background: transparent; color: #9ca3af; font-size: 0.82rem; font-weight: 600;
  transition: background 0.2s, color 0.2s;
}
.demo-tab:hover { color: #fff; }
.demo-tab[aria-selected="true"] { background: #fff; color: #000; }
.demo-tab .ico { width: 18px; height: 18px; border-radius: 4px; font-size: 0.6rem; font-weight: 800;
  display: inline-flex; align-items: center; justify-content: center; color: #fff; }
.ico-word { background: #2B579A; } .ico-pdf { background: #dc2626; }
.ico-md { background: #374151; } .ico-notion { background: #fff; color: #000 !important; border: 1px solid #d1d5db; }

.demo-doc {
  flex: 1; border-radius: 12px; background: #fff; color: #111827; padding: 22px 24px;
  position: relative; min-height: 320px; overflow: hidden;
  animation: docIn 0.45s ease both;
}
@keyframes docIn { from { opacity: 0; transform: translateY(10px) scale(0.985); } to { opacity: 1; transform: none; } }
.doc-file {
  display: flex; align-items: center; gap: 8px; font-size: 0.75rem; font-weight: 600; color: #6b7280;
  padding-bottom: 12px; margin-bottom: 14px; border-bottom: 1px solid #e5e7eb;
}
.doc-file .ok { margin-left: auto; color: #16a34a; }
.demo-doc h3 { font-size: 1.05rem; font-weight: 800; margin-bottom: 4px; color: #111827; }
.demo-doc .meta { font-size: 0.72rem; color: #9ca3af; margin-bottom: 12px; }
.demo-doc p { font-size: 0.82rem; line-height: 1.6; color: #374151; }
.demo-doc ul { font-size: 0.82rem; margin: 6px 0 10px 18px; color: #374151; }
.demo-doc .q { font-size: 0.8rem; padding: 8px 10px; border-left: 3px solid #d1d5db; background: #f9fafb; color: #4b5563; margin-bottom: 10px; }
.demo-doc pre {
  font-family: ui-monospace, Consolas, monospace; font-size: 0.74rem; line-height: 1.5;
  background: #f3f4f6; border-radius: 6px; padding: 10px 12px; color: #1f2937; white-space: pre; overflow: hidden;
}
.demo-doc.is-md { background: #0b0d12; color: #d1d5db; font-family: ui-monospace, Consolas, monospace; }
.demo-doc.is-md pre { background: transparent; color: #d1d5db; padding: 0; font-size: 0.78rem; }
.demo-doc.is-md .doc-file { border-color: rgba(255,255,255,0.1); color: #9ca3af; }
.demo-doc.is-pdf::after {
  content: "PDF"; position: absolute; right: 18px; bottom: 14px; font-size: 0.65rem; font-weight: 800;
  color: #dc2626; letter-spacing: 0.1em;
}
.notion-row { display: flex; gap: 8px; font-size: 0.75rem; color: #6b7280; margin-bottom: 4px; }
.notion-row b { color: #374151; min-width: 70px; font-weight: 500; }
.notion-tag { background: #E9E5F3; color: #5B3E96; border-radius: 4px; padding: 0 6px; }

/* ---- Compare ---- */
.compare { max-width: 900px; margin: 0 auto; border-radius: 18px; overflow: hidden;
  border: 1px solid rgba(255,255,255,0.08); background: var(--bg3); }
.compare-row { display: grid; grid-template-columns: 1.3fr 1fr 1fr; align-items: center; }
.compare-row > div { padding: 16px 22px; font-size: 0.92rem; }
.compare-row + .compare-row { border-top: 1px solid rgba(255,255,255,0.06); }
.compare-head { background: rgba(255,255,255,0.03); }
.compare-head > div { font-size: 0.78rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.compare-head .us { color: #fff; }
.compare-row .feat { color: #e5e7eb; font-weight: 600; }
.compare-row .bad { color: #f87171; }
.compare-row .good { color: #4ade80; font-weight: 600; }
.compare-row .us-col { background: rgba(255,255,255,0.025); }

@media (max-width: 900px) {
  .demo-body { grid-template-columns: 1fr; }
  .demo-chat { min-height: 0; }
}
@media (max-width: 640px) {
  .hero2 { padding: 150px 0 56px; }
  .hero2-trust { gap: 10px 18px; }
  .demo { margin-top: 40px; }
  .demo-url { display: none; }
  .demo-tab { font-size: 0.74rem; }
  .compare-row { grid-template-columns: 1fr 1fr; }
  .compare-row > div:first-child { grid-column: 1 / -1; padding-bottom: 0; }
  .compare-row > div { padding: 12px 16px; }
  .compare-head > div:first-child { display: none; }
}

/* ---- Per-theme accents ----
   Text drawn on an accent surface. Grok's accent is white, so its text is black. */
body { --on-accent: #fff; }
body.theme-grok { --on-accent: #08090d; }
body.theme-notebooklm { --on-accent: #111827; }

.btn-hero { font-weight: 700; }
.demo-tab[aria-selected="true"] { background: var(--blue); color: var(--on-accent); }
.demo-chat-head .exp-btns span { background: var(--blue); color: var(--on-accent); }
.demo-chat-head .brand-dot { width: 18px; height: 18px; border-radius: 6px; background: var(--blue); flex-shrink: 0; }
.compare-head .us { color: var(--blue); }

/* Grok: solid white buttons, grey second line in the headline */
body.theme-grok .btn-primary { background: #fff; color: #08090d; border: 0; font-weight: 700;
  box-shadow: 0 10px 40px rgba(255,255,255,0.12), inset 0 -2px 0 rgba(0,0,0,0.12); }
body.theme-grok .btn-primary:hover { box-shadow: 0 14px 50px rgba(255,255,255,0.2); }
body.theme-grok .hero2-title .gradient-text {
  background: linear-gradient(180deg, #9ca3af, #4b5563);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
body.theme-grok .compare-head .us { color: #fff; }

/* ---- Billing toggle ---- */
.bill-toggle {
  display: flex; align-items: center; justify-content: center; gap: 14px;
  margin: -16px 0 36px; font-size: 0.95rem; font-weight: 600; color: var(--muted);
}
.bill-toggle .lbl { cursor: pointer; transition: color 0.2s; }
.bill-toggle .lbl.on { color: #fff; }
.bill-switch {
  position: relative; width: 52px; height: 28px; border-radius: 50px; border: 0; cursor: pointer;
  background: rgba(255,255,255,0.14); transition: background 0.25s; flex-shrink: 0;
}
.bill-switch::after {
  content: ""; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%;
  background: #fff; box-shadow: 0 2px 6px rgba(0,0,0,0.35); transition: transform 0.25s;
}
.bill-switch[aria-checked="true"] { background: var(--blue); }
body.theme-grok .bill-switch[aria-checked="true"] { background: #4b5563; }
.bill-switch[aria-checked="true"]::after { transform: translateX(24px); }
.bill-switch:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }
.bill-save {
  padding: 3px 9px; border-radius: 50px; font-size: 0.72rem; font-weight: 800; letter-spacing: 0.04em;
  color: #4ade80; background: rgba(34,197,94,0.12); border: 1px solid rgba(34,197,94,0.3);
}
.price-value, .price-period, .price-sub { transition: opacity 0.2s; }
.pricing-section.is-swapping .price-value,
.pricing-section.is-swapping .price-period,
.pricing-section.is-swapping .price-sub { opacity: 0; }

/* ---- Navbar: never wrap labels; collapse to the burger menu earlier ---- */
.logo-text, .nav-link, .btn-nav { white-space: nowrap; }
.nav-inner { gap: 20px; }
.nav-link { padding: 8px 10px; font-size: 0.88rem; }
.lang-current { display: none; }
@media (max-width: 1100px) {
  .nav-links { display: none; flex-direction: column; gap: 4px; position: absolute; top: 100%; left: 0; right: 0;
    background: rgba(8,9,13,0.97); padding: 16px 24px 24px; border-bottom: 1px solid var(--border); }
  .nav-links.open { display: flex; }
  .lang-switcher { margin-left: auto; }
  .hamburger { display: flex; margin-left: 0; }
}
@media (max-width: 640px) {
  .lang-switcher { margin-left: 0; }
  .hamburger { margin-left: auto; }
}

/* ---- How it works + in-page guide, side by side ---- */
.how-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.how-grid .steps-wrapper { margin: 0; max-width: none; }
.how-visual .guide-img-wrap { margin-bottom: 22px; }
.how-caption { color: var(--muted); line-height: 1.7; margin-bottom: 18px; }
.how-visual .guide-points { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 18px; }

/* ---- 9 platforms ---- */
.pf-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; max-width: 920px; margin: 0 auto; }
.pf-tile {
  position: relative; display: flex; align-items: center; gap: 14px; padding: 16px 18px;
  border-radius: 16px; background: var(--bg3); border: 1px solid var(--border);
  transition: transform 0.2s, border-color 0.2s, background 0.2s;
}
a.pf-tile:hover { transform: translateY(-3px); border-color: rgba(255,255,255,0.18); background: #1b1f2e; }
.pf-tile .product-logo { width: 46px; height: 46px; border-radius: 12px; margin: 0; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center; }
.pf-tile .product-logo svg { width: 24px; height: 24px; }
.pf-name { font-weight: 700; color: #fff; font-size: 1rem; }
.pf-here {
  margin-left: auto; padding: 3px 9px; border-radius: 50px; font-size: 0.7rem; font-weight: 700; white-space: nowrap;
  color: var(--on-accent); background: var(--blue);
}
.pf-tile.is-here { border-color: rgba(var(--accent-rgb),0.55); background: rgba(var(--accent-rgb),0.07); }
.pf-cta { text-align: center; margin-top: 30px; }

@media (max-width: 900px) {
  .how-grid { grid-template-columns: 1fr; gap: 40px; }
  .pf-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .how-visual .guide-points { grid-template-columns: 1fr; }
  .pf-tile { padding: 12px; gap: 10px; }
  .pf-tile .product-logo { width: 38px; height: 38px; }
  .pf-here { display: none; }
}

/* ---- Features: four compact cards in one row ---- */
#features .features-grid { grid-template-columns: repeat(4, 1fr); gap: 16px; }
#features .feature-card { padding: 26px 22px; }
#features .feature-icon-wrap { width: 44px; height: 44px; border-radius: 12px; margin-bottom: 18px; }
#features .feature-title { font-size: 1.02rem; margin-bottom: 8px; }
#features .feature-desc { font-size: 0.9rem; line-height: 1.65; margin-bottom: 0; }
#features .feature-tag,
#built-for .feature-tag { display: none; }

/* ---- Built for: borderless two-column list, so it reads differently ---- */
#built-for .features-grid { grid-template-columns: 1fr 1fr; gap: 0 56px; max-width: 1000px; margin: 0 auto; }
#built-for .feature-card {
  background: none; border: 0; border-radius: 0; padding: 26px 0;
  border-top: 1px solid rgba(255,255,255,0.07);
}
#built-for .feature-card:hover { transform: none; box-shadow: none; }
#built-for .feature-card-inner { display: grid; grid-template-columns: 44px 1fr; column-gap: 18px; }
#built-for .feature-icon-wrap { width: 44px; height: 44px; border-radius: 12px; margin: 2px 0 0; grid-row: span 2; }
#built-for .feature-title { font-size: 1.05rem; margin-bottom: 6px; }
#built-for .feature-desc { font-size: 0.92rem; line-height: 1.65; margin-bottom: 0; }

@media (max-width: 1000px) {
  #features .features-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  #features .features-grid, #built-for .features-grid { grid-template-columns: 1fr; }
}
#built-for .feature-card:not(:has(> .feature-card-inner)) { display: grid; grid-template-columns: 44px 1fr; column-gap: 18px; align-content: start; }

/* ---- One background for the whole page ----
   Every section sits on the hero's dark base; only pricing and the closing CTA
   repeat the hero's grid + accent glow, so the page opens and closes the same way. */
body[class] .features-section, body[class] .how-section, body[class] .showcase-section,
body[class] .faq-section, body[class] .pricing-section, body[class] .guide-section { background: transparent; }
body[class] .footer { background: var(--bg); }

body[class] .pricing-section, body[class] .cta-section { position: relative; overflow: hidden; isolation: isolate; }
body[class] .cta-section { background: var(--bg); }
body[class] .cta-orbs { display: none; }
body[class] .pricing-section::before, body[class] .cta-section::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(ellipse 60% 45% at 50% 0%, rgba(var(--accent-rgb),0.14), transparent 70%),
    linear-gradient(rgba(255,255,255,0.035) 1px, transparent 1px) 0 0 / 48px 48px,
    linear-gradient(90deg, rgba(255,255,255,0.035) 1px, transparent 1px) 0 0 / 48px 48px;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 20%, #000 40%, transparent 100%);
          mask-image: radial-gradient(ellipse 70% 60% at 50% 20%, #000 40%, transparent 100%);
}
body[class] .cta-section::before { background-position: 0 0, 0 0, 0 0;
  -webkit-mask-image: radial-gradient(ellipse 70% 70% at 50% 50%, #000 30%, transparent 100%);
          mask-image: radial-gradient(ellipse 70% 70% at 50% 50%, #000 30%, transparent 100%); }

/* ---- One card surface everywhere ----
   Neutral translucent white on the black page (same as the hero demo),
   instead of the navy #161927 / #0f111a mix that clashed with warm themes. */
body { --surface: rgba(255,255,255,0.035); --surface-hover: rgba(255,255,255,0.06); --surface-line: rgba(255,255,255,0.09); }
body[class] .feature-card, body[class] .compare, body[class] .faq-item, body[class] .price-card,
body[class] .showcase-panel, body[class] .settings-showcase, body[class] .pf-tile,
body[class] .format-badge, body[class] .tab-btn, body[class] .demo {
  background: var(--surface); border-color: var(--surface-line);
}
body[class] #built-for .feature-card { background: none; }
body[class] .compare-head, body[class] .compare-row .us-col { background: rgba(255,255,255,0.025); }
body[class] a.pf-tile:hover, body[class] .feature-card:hover { background: var(--surface-hover); }
body[class] .tab-btn.tab-active { background: rgba(var(--accent-rgb),0.12); border-color: rgba(var(--accent-rgb),0.45); }

/* Pro card: accent border + glow only, no rose tint */
body[class] .price-card-featured {
  background: linear-gradient(180deg, rgba(var(--accent-rgb),0.09), rgba(var(--accent-rgb),0.02) 60%), var(--surface);
  border-color: rgba(var(--accent-rgb),0.55);
  box-shadow: 0 24px 70px rgba(var(--accent-rgb),0.14);
}
/* Buttons inside price cards fill the card width */
body[class] .price-actions .btn { width: 100%; justify-content: center; }

/* ---- One accent for icons and ticks (the compare table keeps green/red: they mean yes/no) ---- */
body[class] .feature-icon-wrap { background: rgba(var(--accent-rgb),0.13); color: var(--blue); }
body[class] .panel-list .check { color: var(--blue); }
body.theme-grok .feature-icon-wrap { background: rgba(255,255,255,0.08); color: #fff; }

/* ---- Homepage: AI switcher in the demo + compact platform tiles ---- */
.demo-switch {
  display: flex; gap: 6px; padding: 12px 18px 0; overflow-x: auto; scrollbar-width: none;
}
.demo-switch::-webkit-scrollbar { display: none; }
.demo-switch button {
  display: inline-flex; align-items: center; gap: 8px; flex-shrink: 0;
  padding: 6px 12px 6px 6px; border-radius: 50px; cursor: pointer;
  background: transparent; border: 1px solid var(--surface-line, rgba(255,255,255,0.09));
  color: #9ca3af; font-size: 0.82rem; font-weight: 600; transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.demo-switch button:hover { color: #fff; }
.demo-switch button[aria-pressed="true"] { color: #fff; background: rgba(255,255,255,0.08); border-color: rgba(255,255,255,0.22); }
.demo-switch .product-logo { width: 24px; height: 24px; border-radius: 50%; margin: 0; display: flex; align-items: center; justify-content: center; }
.demo-switch .product-logo svg { width: 14px; height: 14px; }
.demo[style*="--demo-accent"] .brand-dot,
.demo[style*="--demo-accent"] .exp-btns span { background: var(--demo-accent); color: #fff; transition: background 0.3s; }

.pf-grid-9 { grid-template-columns: repeat(9, 1fr); max-width: none; gap: 12px; }
.pf-tile-col { flex-direction: column; text-align: center; gap: 10px; padding: 22px 8px 18px; }
.pf-tile-col .pf-name { font-size: 0.92rem; }
.pf-domain { font-size: 0.7rem; color: var(--muted); margin-top: -6px; word-break: break-all; }
@media (max-width: 1100px) { .pf-grid-9 { grid-template-columns: repeat(5, 1fr); } }
@media (max-width: 640px)  { .pf-grid-9 { grid-template-columns: repeat(3, 1fr); } .pf-domain { display: none; } }

/* ---- Maths in the demo ---- */
.m-lead { margin: 8px 0 6px; }
.math-block {
  position: relative; display: flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 14px; margin-bottom: 4px; border-radius: 8px;
  background: #111317; border: 1px solid rgba(255,255,255,0.06);
  font-family: 'Cambria Math', 'STIX Two Math', 'Latin Modern Math', 'Times New Roman', serif;
  font-size: 1.25rem; color: #f3f4f6;
}
.math-block i { font-style: italic; }
.frac { display: inline-flex; flex-direction: column; align-items: center; vertical-align: middle; line-height: 1.25; font-size: 0.9em; }
.frac > span:first-child { border-bottom: 1px solid currentColor; padding: 0 6px 1px; }
.frac > span:last-child { padding: 1px 6px 0; }
.demo-doc .m-lead { font-size: 0.82rem; color: #374151; }
.demo-doc .math-block { background: #f9fafb; border-color: #e5e7eb; color: #111827; margin-bottom: 10px; }
.demo-doc .eq-tag {
  position: absolute; right: 8px; top: 6px; font-family: -apple-system, 'Segoe UI', sans-serif;
  font-size: 0.62rem; font-weight: 700; color: #2B579A; background: #e8eef8; border-radius: 4px; padding: 1px 6px;
}
/* Keep both demo columns fixed when the output tab changes */
.demo-body { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); }
.demo-doc pre { white-space: pre-wrap; word-break: break-word; }
@media (max-width: 900px) { .demo-body { grid-template-columns: minmax(0, 1fr); } }

/* =====================================================================
   Typography + pricing, measured from the reference page
   (Inter 800 headings, rounded-xl buttons, p-8 price cards).
   ===================================================================== */
body[class] { font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Noto Sans', sans-serif; -webkit-font-smoothing: antialiased; }
body[class] .hero2-title, body[class] .section-title, body[class] .cta-title,
body[class] .panel-title, body[class] .settings-title { font-weight: 800; letter-spacing: -0.03em; }
body[class] .section-title { letter-spacing: -0.025em; }
body[class] .section-eyebrow { font-size: 0.75rem; letter-spacing: 0.14em; }
body[class] .btn { border-radius: 12px; }
body[class] .btn-lg { padding: 15px 28px; }

/* ---- Trust row ---- */
.hero2-trust { align-items: center; gap: 10px 14px; font-size: 0.9rem; }
.tr-item { display: inline-flex; align-items: center; gap: 7px; color: var(--muted); }
.tr-item b { color: #e2e8f0; font-weight: 700; }
.tr-dot { color: #475569; }
.tr-safe svg { color: #34d399; }
.stars-wrap { position: relative; display: inline-block; font-size: 0.85rem; letter-spacing: 1px; line-height: 1; }
.stars-bg { color: #3f3f46; }
.stars-fg { position: absolute; left: 0; top: 0; overflow: hidden; white-space: nowrap; color: #fbbf24; }

/* ---- Price cards ---- */
.pc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; align-items: stretch; max-width: 1080px; margin: 0 auto; }
.pc {
  position: relative; display: flex; flex-direction: column; padding: 32px; border-radius: 16px;
  background: var(--surface, rgba(255,255,255,0.035)); border: 1px solid var(--surface-line, rgba(255,255,255,0.09));
  transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s;
}
.pc:hover { transform: translateY(-3px); border-color: rgba(var(--accent-rgb),0.4); box-shadow: 0 10px 30px -10px rgba(var(--accent-rgb),0.25); }
.pc-hot { border: 2px solid var(--blue); box-shadow: 0 0 25px rgba(var(--accent-rgb),0.30);
  background: linear-gradient(180deg, rgba(var(--accent-rgb),0.08), transparent 55%), var(--surface, rgba(255,255,255,0.035)); }
.pc-hot:hover { border-color: var(--blue); box-shadow: 0 0 35px rgba(var(--accent-rgb),0.40); }
.pc-badge {
  position: absolute; top: -13px; left: 50%; transform: translateX(-50%); white-space: nowrap;
  padding: 4px 12px; border-radius: 50px; background: var(--blue); color: var(--on-accent, #fff);
  font-size: 0.69rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase;
}
.pc-name { font-size: 1.125rem; font-weight: 700; color: #cbd5e1; margin-bottom: 8px; }
.pc-hot .pc-name { color: #fff; }
.pc-tag { font-size: 0.8rem; color: var(--muted); margin-bottom: 24px; min-height: 2.4em; line-height: 1.5; }
.pc-price { display: flex; align-items: baseline; gap: 4px; margin-bottom: 4px; }
.pc-amt { font-size: 2.25rem; font-weight: 800; color: #fff; letter-spacing: -0.02em; line-height: 1.1; }
.pc-per { font-size: 0.875rem; color: var(--muted); }
.pc-sub { font-size: 0.75rem; color: #64748b; margin-bottom: 24px; min-height: 1.2em; }
.pc-list { list-style: none; display: flex; flex-direction: column; gap: 12px; margin: 0 0 32px; padding: 0; flex-grow: 1; }
.pc-list li { display: flex; align-items: flex-start; gap: 10px; font-size: 0.875rem; line-height: 1.45; color: #cbd5e1; }
.pc-list li svg { flex-shrink: 0; margin-top: 1px; }
.pc-list li.ok svg { color: #34d399; }
.pc-hot .pc-list li.ok svg { color: var(--blue); }
.pc-hot .pc-list li { color: #e2e8f0; }
.pc-list li.no { color: #64748b; }
.pc-list li.no svg { color: #475569; }
.pc-btn { width: 100%; justify-content: center; padding: 13px 20px; font-weight: 700; }
body[class] .pc .btn-ghost { background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.12); color: #fff; }
body[class] .pc .btn-ghost:hover { background: rgba(255,255,255,0.1); }
@media (max-width: 900px) { .pc-grid { grid-template-columns: 1fr; max-width: 440px; gap: 32px; } }

/* ---- NPV formula, set in the KaTeX fonts (katex.min.css is loaded for its @font-face only) ---- */
.math-block { font-family: 'KaTeX_Main', 'Cambria Math', 'Times New Roman', serif; font-size: 1.3rem; gap: 0; padding: 16px 14px; }
.math-block i { font-family: 'KaTeX_Math', 'Cambria Math', serif; font-style: italic; }
.math-block sub, .math-block sup { font-size: 0.68em; line-height: 0; }
.math-block sub { vertical-align: -0.35em; } .math-block sup { vertical-align: 0.85em; }
.mx-up { font-family: 'KaTeX_Main', serif; }
.mx-rel { margin: 0 0.45em; } .mx-bin { margin: 0 0.3em; }
.mx-sum { display: inline-flex; flex-direction: column; align-items: center; line-height: 1; margin: 0 0.2em 0 0.05em; }
.mx-sig { font-family: 'KaTeX_Size2', 'KaTeX_Main', serif; font-size: 1.55em; line-height: 1; margin: 1px 0; }
.mx-lim { font-size: 0.62em; line-height: 1.1; }
.math-block .frac { font-size: 0.92em; margin: 0 0.15em; }
.math-block .frac > span:first-child { padding: 0 0.35em 2px; }
.math-block .frac > span:last-child { padding: 3px 0.35em 0; }
.demo-doc .math-block { font-size: 1.15rem; }
.mx-sig { margin: 3px 0 2px; }
.mx-lim { line-height: 1.25; }
.pc-sub s { color: #475569; margin-left: 4px; }

/* ---- Legal pages (terms / privacy / refund / contact) ---- */
body.theme-site .legal-main { position: relative; isolation: isolate; }
body.theme-site .legal-main::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 560px; z-index: -1; pointer-events: none;
  background:
    radial-gradient(ellipse 55% 50% at 50% 0%, rgba(var(--accent-rgb),0.15), transparent 70%),
    linear-gradient(rgba(255,255,255,0.035) 1px, transparent 1px) 0 0 / 48px 48px,
    linear-gradient(90deg, rgba(255,255,255,0.035) 1px, transparent 1px) 0 0 / 48px 48px;
  -webkit-mask-image: radial-gradient(ellipse 70% 70% at 50% 15%, #000 35%, transparent 100%);
          mask-image: radial-gradient(ellipse 70% 70% at 50% 15%, #000 35%, transparent 100%);
}
body.theme-site .legal-header { border-color: var(--surface-line); }
body.theme-site .legal-eyebrow { font-size: 0.75rem; letter-spacing: 0.14em; font-weight: 800; }
body.theme-site .legal-title { font-size: clamp(2.3rem, 4.8vw, 3.3rem); font-weight: 800; letter-spacing: -0.035em; line-height: 1.08; }
body.theme-site .legal-content h2 { font-size: 1.4rem; font-weight: 700; letter-spacing: -0.02em; }
body.theme-site .legal-content p, body.theme-site .legal-content li { line-height: 1.75; }
body.theme-site .legal-contact-card { background: var(--surface); border: 1px solid var(--surface-line); border-radius: 16px; }
body.theme-site .product-card { background: var(--surface); border-color: var(--surface-line); }

/* Logo: real NAN mark instead of the download icon */
.logo-img { width: 38px; height: 38px; border-radius: 10px; display: block; flex-shrink: 0; object-fit: cover;
 }
.logo-img-sm { width: 28px; height: 28px; border-radius: 8px; }
/* Grok's mark is black on transparent: flip it to white on the dark page */
body.theme-grok .logo-img { filter: invert(1); }
