/* ════════════════════════════════════════════════════════════════════════
   FreeGPT — Landing sub-pages chrome + content styles
   Shared by /about/, /faq/, /features/ (static pages).
   Companion to brand-tokens.css + brand-3d.css (load both first).
   Mirrors the inline nav/footer/section styles of apps/web/landing/index.html
   so sub-pages match the homepage exactly. Static only — no build step.
   ════════════════════════════════════════════════════════════════════════ */

body { background: var(--fg-bg-deep); overflow-x: hidden; }

.page-shell { position: relative; isolation: isolate; overflow: hidden; }
.container { max-width: 1500px; margin: 0 auto; padding: 0 20px; }
@media (min-width: 640px)  { .container { padding: 0 24px; } }
@media (min-width: 1024px) { .container { padding: 0 40px; } }

/* ─── Floating orbs (decorative) ─── */
.orb { position: absolute; border-radius: 50%; filter: blur(120px); pointer-events: none; z-index: -1; }
.orb-violet  { top: -80px; right: -120px; width: 420px; height: 420px; background: rgba(139,92,246,.30); animation: fg-float-y 10s ease-in-out infinite; }
.orb-cyan    { top: 160px; left: -160px;  width: 460px; height: 460px; background: rgba(56,189,248,.25); animation: fg-float-y 6s ease-in-out infinite; }
.orb-magenta { bottom: -120px; left: 50%; transform: translateX(-50%); width: 680px; height: 380px; background: rgba(217,70,239,.20); filter: blur(140px); }

/* ════════ Nav (permanent glass — no scroll-script needed on sub-pages) ════════ */
.nav {
  position: sticky; top: 0; z-index: 50; width: 100%;
  background: rgba(7,6,13,.72);
  border-bottom: 1px solid var(--fg-border);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; min-height: 84px; gap: 16px; position: relative; }
.nav-logo img {
  height: 46px; width: auto;
  filter: drop-shadow(0 0 24px rgba(139,92,246,.45));
  transition: all .5s ease;
}
.nav-logo:hover img { filter: drop-shadow(0 0 32px rgba(56,189,248,.6)); transform: scale(1.03); }

.nav-links { display: none; gap: 6px; align-items: center; list-style: none; padding: 0; margin: 0; }
@media (min-width: 1080px) { .nav-links { display: flex; flex: 1; justify-content: center; gap: 8px; } }

.nav-link {
  position: relative;
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 13px; border-radius: 999px;
  font-size: 15px; font-weight: 700;
  color: rgba(255,255,255,.80);
  transition: color .3s; white-space: nowrap;
}
.nav-link:hover { color: #fff; }
.nav-link::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  border-radius: 999px; background: rgba(255,255,255,.06);
  transform: scale(0.9); opacity: 0; transition: all .3s;
}
.nav-link:hover::before { transform: scale(1); opacity: 1; }
.nav-link.active { color: #fff; }
.nav-link.active::before { transform: scale(1); opacity: 1; background: linear-gradient(135deg, rgba(56,189,248,.16), rgba(139,92,246,.16), rgba(217,70,239,.16)); }
.nav-link.highlight::before { background: linear-gradient(135deg, rgba(56,189,248,.15), rgba(139,92,246,.15), rgba(217,70,239,.15)); }
.nav-link.highlight .dot {
  display: inline-block; width: 6px; height: 6px; border-radius: 50%;
  background: linear-gradient(135deg, var(--fg-cyan), var(--fg-magenta));
  box-shadow: 0 0 10px rgba(56,189,248,.9);
}

.nav-cta {
  position: relative; overflow: hidden;
  display: inline-flex; align-items: center; padding: 10px 22px;
  background: linear-gradient(135deg, #fff 0%, rgba(255,255,255,.85) 100%);
  color: #000; font-weight: 700; font-size: 15px;
  border-radius: 999px;
  box-shadow: 0 8px 30px -8px rgba(139,92,246,.55);
  transition: all .3s; white-space: nowrap;
}
.nav-cta:hover { transform: scale(1.04); box-shadow: 0 12px 36px -8px rgba(56,189,248,.7); color: #000; }

/* ─── Mobile menu (CSS-only checkbox hack) ─── */
.nav-burger {
  display: inline-flex; flex-direction: column; justify-content: center; gap: 5px;
  width: 44px; height: 44px; padding: 0 10px;
  border-radius: 12px; cursor: pointer;
  background: rgba(255,255,255,.05); border: 1px solid var(--fg-border);
}
.nav-burger span { display: block; height: 2px; border-radius: 2px; background: #fff; transition: all .3s ease; }
#nav-toggle:checked ~ .nav-burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
#nav-toggle:checked ~ .nav-burger span:nth-child(2) { opacity: 0; }
#nav-toggle:checked ~ .nav-burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
@media (min-width: 1080px) { .nav-burger { display: none; } }

@media (max-width: 1079px) {
  .nav-links {
    position: absolute; top: calc(100% + 10px); right: 0; left: 0;
    flex-direction: column; align-items: stretch; gap: 4px;
    padding: 12px; border-radius: 16px;
    background: rgba(7,6,13,.96);
    border: 1px solid var(--fg-border);
    backdrop-filter: blur(22px); -webkit-backdrop-filter: blur(22px);
    box-shadow: 0 18px 44px rgba(2,6,23,.5);
  }
  #nav-toggle:checked ~ .nav-links { display: flex; }
  .nav-links .nav-link { justify-content: flex-end; padding: 12px 14px; font-size: 16px; }
  .nav-links .nav-link::before { display: none; }
  .nav-links .nav-link:hover { background: rgba(255,255,255,.06); border-radius: 12px; }
}

/* ════════ Page header (hero) ════════ */
.lp-hero { position: relative; padding: 40px 0 8px; text-align: center; }
@media (min-width: 768px) { .lp-hero { padding: 64px 0 8px; } }
.lp-hero-wrap { max-width: 880px; margin: 0 auto; }

.lp-breadcrumb {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; color: var(--fg-text-faint); margin-bottom: 18px;
}
.lp-breadcrumb a { color: var(--fg-text-muted); }
.lp-breadcrumb a:hover { color: var(--fg-cyan); }
.lp-breadcrumb .sep { opacity: .5; }

.lp-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 16px; background: rgba(255,255,255,.04);
  border-radius: 999px; font-size: 13px; font-weight: 500;
  color: rgba(255,255,255,.85); backdrop-filter: blur(10px);
}
.lp-h1 {
  font-size: clamp(34px, 6vw, 64px);
  font-weight: 800; line-height: 1.12; letter-spacing: -0.02em;
  margin: 22px 0 0;
}
.lp-lead {
  max-width: 680px; margin: 18px auto 0;
  font-size: clamp(15px, 1.5vw, 20px);
  font-weight: 500; line-height: 1.95; color: rgba(255,255,255,.70);
}

/* ════════ Section ════════ */
.lp-section { position: relative; padding: 56px 0; }
.lp-section[id], [id].lp-hero { scroll-margin-top: 96px; }
.lp-section.glow::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(60% 50% at 50% 0%, rgba(139,92,246,.12), transparent 60%);
  pointer-events: none;
}
.lp-section-head { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 0; margin-bottom: 8px; }
.sec-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 16px; background: rgba(255,255,255,.04);
  border-radius: 999px; font-size: 13px; font-weight: 500;
  color: rgba(255,255,255,.80); backdrop-filter: blur(10px);
}
.sec-h2 { font-size: clamp(28px, 4vw, 48px); font-weight: 700; line-height: 1.18; letter-spacing: -0.02em; text-align: center; margin: 18px 0 0; }
.sec-sub { max-width: 720px; margin: 16px auto 0; text-align: center; font-size: clamp(15px, 1.3vw, 18px); font-weight: 500; line-height: 1.9; color: rgba(255,255,255,.65); }

/* ════════ Prose (about page body text) ════════ */
.prose { max-width: 760px; margin: 0 auto; text-align: right; }
.prose h2 { font-size: clamp(22px, 3vw, 32px); font-weight: 700; margin: 40px 0 12px; color: #fff; }
.prose h3 { font-size: clamp(18px, 2.2vw, 22px); font-weight: 700; margin: 28px 0 10px; color: #fff; }
.prose p  { font-size: 16px; line-height: 2.1; color: rgba(255,255,255,.74); margin: 0 0 16px; }
.prose strong { color: #fff; font-weight: 700; }
.prose ul { margin: 0 0 18px; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 10px; }
.prose ul li { position: relative; padding-right: 28px; font-size: 16px; line-height: 1.95; color: rgba(255,255,255,.78); }
.prose ul li::before { content: "✦"; position: absolute; right: 0; top: 2px; color: var(--fg-cyan); font-size: 14px; }
.prose a { color: var(--fg-cyan); border-bottom: 1px solid rgba(56,189,248,.35); }
.prose a:hover { color: #fff; border-bottom-color: #fff; }

/* ════════ Generic card grid ════════ */
.lp-grid { display: grid; gap: 20px; grid-template-columns: 1fr; margin: 40px auto 0; }
@media (min-width: 640px)  { .lp-grid.cols-2 { grid-template-columns: 1fr 1fr; } .lp-grid.cols-3 { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .lp-grid.cols-3 { grid-template-columns: 1fr 1fr 1fr; } .lp-grid.cols-4 { grid-template-columns: repeat(4,1fr); } }
@media (min-width: 640px) and (max-width: 1023px) { .lp-grid.cols-4 { grid-template-columns: 1fr 1fr; } }

.lp-card { position: relative; overflow: hidden; padding: 26px; border-radius: 18px; transition: box-shadow .5s, transform .5s; }
.lp-card:hover { box-shadow: var(--fg-glow-brand); }
.lp-card .ico {
  width: 56px; height: 56px; border-radius: 14px;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 26px; margin-bottom: 16px;
  background: linear-gradient(135deg, rgba(56,189,248,.2), rgba(139,92,246,.2));
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.15); color: var(--fg-cyan);
}
.lp-card h3 { margin: 0 0 8px; font-size: 19px; font-weight: 700; color: #fff; text-align: right; }
.lp-card p  { margin: 0; font-size: 14px; font-weight: 500; line-height: 1.95; color: rgba(255,255,255,.68); text-align: right; }

/* ════════ Stats strip ════════ */
.lp-stats { display: grid; grid-template-columns: repeat(2,1fr); gap: 16px; margin: 40px auto 0; max-width: 920px; }
@media (min-width: 768px) { .lp-stats { grid-template-columns: repeat(4,1fr); } }
.lp-stat { text-align: center; padding: 22px 14px; border-radius: 16px; }
.lp-stat .big { font-size: clamp(28px,4vw,40px); font-weight: 900; line-height: 1; }
.lp-stat .lbl { margin-top: 8px; font-size: 13px; font-weight: 600; color: rgba(255,255,255,.62); }

/* ════════ Feature detail blocks (features page) ════════ */
.feat-block { display: grid; grid-template-columns: 1fr; gap: 22px; align-items: center; margin: 0 auto; max-width: 1080px; padding: 28px; border-radius: 24px; }
@media (min-width: 860px) { .feat-block { grid-template-columns: 1fr 1fr; gap: 40px; padding: 36px; } .feat-block.flip .feat-visual { order: 2; } }
.feat-block + .feat-block { margin-top: 28px; }
.feat-body h3 { font-size: clamp(22px,3vw,30px); font-weight: 700; color: #fff; margin: 0 0 12px; text-align: right; }
.feat-body p  { font-size: 15px; line-height: 2.05; color: rgba(255,255,255,.72); margin: 0 0 16px; text-align: right; }
.feat-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.feat-list li { display: flex; align-items: flex-start; justify-content: flex-end; gap: 8px; font-size: 14px; font-weight: 500; color: rgba(255,255,255,.82); text-align: right; }
.feat-visual { display: flex; align-items: center; justify-content: center; min-height: 180px; border-radius: 18px; padding: 26px; }
.feat-visual .emoji { font-size: clamp(64px, 12vw, 104px); filter: drop-shadow(0 12px 30px rgba(139,92,246,.5)); }
.check-bubble {
  flex-shrink: 0; width: 20px; height: 20px; margin-top: 2px;
  display: inline-flex; align-items: center; justify-content: center; border-radius: 50%;
  background: linear-gradient(135deg, rgba(56,189,248,.30), rgba(139,92,246,.30));
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.15);
  color: var(--fg-cyan); font-weight: 900; font-size: 12px;
}

/* ════════ Models grid (features#models) ════════ */
.model-cats { display: grid; grid-template-columns: 1fr; gap: 18px; margin: 40px auto 0; max-width: 1100px; }
@media (min-width: 700px)  { .model-cats { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1100px) { .model-cats { grid-template-columns: repeat(4,1fr); } }
.model-cat { padding: 22px; border-radius: 18px; }
.model-cat h4 { margin: 0 0 14px; font-size: 16px; font-weight: 800; color: #fff; display: flex; align-items: center; gap: 8px; }
.model-cat h4 .ce { font-size: 20px; }
.model-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.model-chip { padding: 6px 12px; border-radius: 999px; font-size: 13px; font-weight: 600; color: rgba(255,255,255,.82); background: rgba(255,255,255,.05); border: 1px solid var(--fg-border); }
.model-note { margin: 20px auto 0; max-width: 720px; text-align: center; font-size: 13px; color: var(--fg-text-faint); }

/* ════════ FAQ ════════ */
.faq-toolbar { max-width: 760px; margin: 28px auto 0; }
.faq-search {
  width: 100%; padding: 14px 18px; border-radius: 14px;
  background: var(--fg-surface-1); border: 1px solid var(--fg-border);
  color: #fff; font-family: inherit; font-size: 16px; outline: none;
  transition: all .2s ease;
}
.faq-search::placeholder { color: var(--fg-text-faint); }
.faq-search:focus { border-color: var(--fg-violet); background: var(--fg-surface-2); box-shadow: 0 0 0 3px rgba(139,92,246,.18); }

.faq-cats { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin: 18px auto 0; max-width: 900px; }
.faq-cat-link { padding: 7px 15px; border-radius: 999px; font-size: 13px; font-weight: 700; color: rgba(255,255,255,.78); background: rgba(255,255,255,.04); border: 1px solid var(--fg-border); transition: all .2s; }
.faq-cat-link:hover { color: #fff; border-color: var(--fg-border-strong); background: rgba(255,255,255,.08); }

.faq-group { max-width: 820px; margin: 44px auto 0; scroll-margin-top: 100px; }
.faq-group > h2 {
  font-size: clamp(20px,2.6vw,26px); font-weight: 800; color: #fff;
  margin: 0 0 16px; padding-right: 14px; display: flex; align-items: center; gap: 10px;
}
.faq-group > h2 .ce { font-size: 24px; }

.faq-item { border-radius: 14px; margin-bottom: 10px; overflow: hidden; }
.faq-item summary {
  list-style: none; cursor: pointer; user-select: none;
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  padding: 16px 18px; font-size: 16px; font-weight: 700; color: #fff; text-align: right;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary .q-ico {
  flex-shrink: 0; width: 26px; height: 26px; border-radius: 8px;
  display: inline-flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, rgba(56,189,248,.25), rgba(139,92,246,.25));
  color: var(--fg-cyan); font-weight: 900; font-size: 16px; transition: transform .3s ease;
}
.faq-item[open] summary .q-ico { transform: rotate(45deg); }
.faq-item .faq-a { padding: 0 18px 18px; font-size: 15px; line-height: 2.05; color: rgba(255,255,255,.72); text-align: right; }
.faq-item .faq-a a { color: var(--fg-cyan); border-bottom: 1px solid rgba(56,189,248,.35); }
.faq-item .faq-a a:hover { color: #fff; }
.faq-empty { display: none; max-width: 600px; margin: 32px auto 0; text-align: center; color: var(--fg-text-muted); font-size: 16px; }

/* ════════ CTA band ════════ */
.lp-cta-band {
  max-width: 1000px; margin: 24px auto 0; padding: 40px 32px; border-radius: 28px;
  text-align: center; position: relative; overflow: hidden;
}
.lp-cta-band h2 { font-size: clamp(24px,3.4vw,38px); font-weight: 800; color: #fff; margin: 0 0 12px; }
.lp-cta-band p { font-size: 16px; line-height: 1.95; color: rgba(255,255,255,.72); margin: 0 auto 24px; max-width: 560px; }
.lp-cta-row { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }
.lp-btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 28px; border-radius: 999px; font-size: 16px; font-weight: 800;
  text-decoration: none; transition: all .3s; cursor: pointer; border: none; font-family: inherit;
}
.lp-btn-primary { background: linear-gradient(135deg, var(--fg-cyan), var(--fg-violet), var(--fg-magenta)); color: #fff; box-shadow: var(--fg-glow-brand); }
.lp-btn-primary:hover { transform: scale(1.03); color: #fff; }
.lp-btn-ghost { background: rgba(255,255,255,.08); color: #fff; box-shadow: inset 0 0 0 1px rgba(255,255,255,.16); }
.lp-btn-ghost:hover { background: rgba(255,255,255,.14); color: #fff; }

/* ════════ Footer (mirrors index.html) ════════ */
.site-footer { margin-top: 72px; padding: 56px 0 32px; border-top: 1px solid var(--fg-border); }
.footer-logo { height: 30px; width: auto; margin-bottom: 12px; }
.footer-grid { display: grid; gap: 32px; grid-template-columns: 1fr; }
@media (min-width: 700px)  { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) { .footer-grid { grid-template-columns: 1.6fr 1fr 1fr 1fr 1fr; } }
.footer-col h4 { margin: 0 0 12px; font-size: 14px; color: #fff; font-weight: 700; }
.footer-col a { display: block; padding: 4px 0; font-size: 13px; color: rgba(255,255,255,.65); }
.footer-col a:hover { color: #fff; }
.footer-about { margin: 0; color: rgba(255,255,255,.55); font-size: 13px; line-height: 1.85; }
.footer-bottom { margin-top: 32px; padding-top: 24px; border-top: 1px solid var(--fg-border); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: 12px; color: rgba(255,255,255,.50); }
.footer-bottom a:hover { color: #fff; }
