/* ============================================================
   Liora AI — shared stylesheet for content pages
   (kept visually consistent with index.html's design tokens)
   ============================================================ */
:root {
  --bg:      #120e2a;
  --bg2:     #17122f;
  --card:    #221b4d;
  --line:    rgba(255, 255, 255, .10);
  --indigo:  #7c83f5;
  --indigo2: #6a72ef;
  --gold:    #e7c873;
  --ink:     #f3f2fb;
  --muted:   #b6b3d6;
  --green:   #74e3a8;
  --red:     #ff9b9b;

  --container: 1160px;
  --pad: 24px;
  --section-y: 88px;

  --r-pill: 50px;
  --r-card: 24px;
  --r-faq: 18px;

  --display: 'Space Grotesk', 'Poppins', sans-serif;
  --body: 'Poppins', system-ui, -apple-system, sans-serif;

  --shadow-btn: 0 14px 40px rgba(124, 131, 245, .45);
  --grad-text: linear-gradient(100deg, #c9c3ff 0%, #7c83f5 45%, #e7c873 100%);
  /* Deepened vs. the original #8b91ff→#6a72ef pair: that gradient gave white button
     text ~3.3:1 contrast (fails WCAG AA 4.5:1 for normal-weight 15px text). This pair
     keeps the same indigo hue but stays >=4.7:1 at every point across the gradient. */
  --grad-accent: linear-gradient(135deg, #5c63e6, #454ccb);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--body);
  color: var(--ink);
  background-color: var(--bg);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
  position: relative;
}

body::after {
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none; opacity: .035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
ul, ol { list-style: none; }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--pad); }
section { padding-block: var(--section-y); position: relative; }

.lavender { color: var(--indigo); }
.gold { color: var(--gold); }
.grad {
  background: var(--grad-text);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

.kicker {
  display: inline-flex; align-items: center; gap: 9px;
  font-size: 12px; font-weight: 600; text-transform: uppercase;
  letter-spacing: 2.5px; color: var(--gold); margin-bottom: 18px;
}
.kicker::before { content: ""; width: 22px; height: 1px; background: linear-gradient(90deg, transparent, var(--gold)); }

h1, h2, h3 { font-family: var(--display); }
h1 { font-size: 46px; font-weight: 700; letter-spacing: -1.3px; line-height: 1.1; margin-bottom: 20px; }
h2 { font-size: 32px; font-weight: 700; letter-spacing: -.9px; line-height: 1.15; margin: 48px 0 18px; }
h3 { font-size: 20px; font-weight: 600; letter-spacing: -.3px; margin: 26px 0 10px; }

.lead { color: var(--muted); font-size: 18.5px; max-width: 640px; }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--body); font-size: 15px; font-weight: 600;
  padding: 14px 30px; border-radius: var(--r-pill); border: 1px solid transparent;
  cursor: pointer; position: relative; overflow: hidden;
  transition: transform .2s ease, box-shadow .25s ease, background .2s ease, border-color .2s ease;
  white-space: nowrap;
}
.btn-primary { background: var(--grad-accent); color: #fff; box-shadow: 0 8px 24px rgba(124,131,245,.3); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: var(--shadow-btn); }
.btn-ghost { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.18); color: var(--ink); backdrop-filter: blur(6px); }
.btn-ghost:hover { background: rgba(255,255,255,.12); transform: translateY(-2px); border-color: rgba(124,131,245,.45); }

/* ============================================================
   GLASS CARD
   ============================================================ */
.glass {
  position: relative;
  background: linear-gradient(160deg, rgba(255,255,255,.055), rgba(255,255,255,.012));
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-radius: var(--r-card);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.06), 0 20px 50px rgba(0,0,0,.28);
}
.glass::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px;
  background: linear-gradient(160deg, rgba(124,131,245,.55), rgba(255,255,255,.06) 42%, rgba(231,200,115,.18));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
          mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude; pointer-events: none;
}

/* ============================================================
   NAV
   ============================================================ */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(18, 14, 42, .65);
  backdrop-filter: saturate(160%) blur(16px); -webkit-backdrop-filter: saturate(160%) blur(16px);
  border-bottom: 1px solid var(--line);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 74px; }
.brand { display: flex; align-items: center; gap: 11px; }
.brand .logo { width: 36px; height: 36px; flex-shrink: 0; filter: drop-shadow(0 0 10px rgba(231,200,115,.45)); }
.brand .wordmark { font-family: var(--display); font-weight: 700; font-size: 21px; letter-spacing: -.3px; }
.brand .wordmark .ai { color: var(--gold); font-size: 13px; margin-left: 3px; vertical-align: super; font-weight: 600; }
.nav-right { display: flex; align-items: center; gap: 14px; }
.nav-links { display: flex; gap: 30px; }
.nav-links a { color: var(--muted); font-weight: 500; font-size: 15px; transition: color .2s; }
.nav-links a:hover { color: #fff; }
.nav-toggle {
  display: none; width: 40px; height: 40px; border-radius: 10px; flex-shrink: 0;
  background: rgba(255,255,255,.06); border: 1px solid var(--line);
  flex-direction: column; align-items: center; justify-content: center; gap: 5px; cursor: pointer;
}
.nav-toggle span { width: 18px; height: 2px; background: var(--ink); border-radius: 2px; }

/* ============================================================
   PAGE HEADER (hero-lite for content pages)
   ============================================================ */
.page-header { padding-top: 72px; padding-bottom: 24px; }
.breadcrumb { display: flex; gap: 8px; align-items: center; color: var(--muted); font-size: 13.5px; margin-bottom: 22px; }
.breadcrumb a:hover { color: #fff; }
.breadcrumb span { opacity: .5; }

/* ============================================================
   ARTICLE / PROSE
   ============================================================ */
.prose { max-width: 780px; }
.prose p { color: var(--muted); font-size: 16.5px; margin-bottom: 18px; }
.prose ul, .prose ol { margin: 0 0 22px; display: grid; gap: 10px; }
.prose ul li, .prose ol li { color: var(--muted); font-size: 16px; padding-left: 22px; position: relative; }
.prose ul li::before { content: "—"; position: absolute; left: 0; color: var(--gold); }
.prose ol { counter-reset: item; }
.prose ol li { counter-increment: item; }
.prose ol li::before { content: counter(item) "."; position: absolute; left: 0; color: var(--gold); font-weight: 600; }
.prose strong { color: var(--ink); }
.prose h2:first-child { margin-top: 0; }
.meta-line { color: var(--muted); font-size: 13.5px; margin-bottom: 28px; display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.meta-line .dot { width: 4px; height: 4px; border-radius: 50%; background: var(--muted); }

.card-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; margin: 28px 0 36px; }
.mini-card { padding: 24px; }
.mini-card h3 { margin-top: 0; font-size: 17px; }
.mini-card p { color: var(--muted); font-size: 14.5px; margin: 0; }

/* ============================================================
   FAQ
   ============================================================ */
.faq { max-width: 820px; }
details { margin-bottom: 14px; overflow: hidden; }
details[open]::before { background: linear-gradient(160deg, rgba(124,131,245,.7), rgba(255,255,255,.06) 45%, rgba(231,200,115,.25)); }
summary {
  list-style: none; cursor: pointer; padding: 20px 24px; font-weight: 600; font-size: 16.5px;
  font-family: var(--display); letter-spacing: -.2px;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
}
summary::-webkit-details-marker { display: none; }
summary .chev { color: var(--indigo); transition: transform .25s ease; flex-shrink: 0; font-size: 22px; line-height: 1; font-family: var(--body); }
details[open] summary .chev { transform: rotate(45deg); }
details .answer { padding: 0 24px 22px; color: var(--muted); font-size: 15.5px; }

/* ============================================================
   FINAL CTA BAND
   ============================================================ */
.cta-band {
  position: relative; border-radius: 30px; padding: 56px 48px; text-align: center; overflow: hidden;
  background:
    radial-gradient(700px 300px at 50% -20%, rgba(124,131,245,.35), transparent 70%),
    linear-gradient(135deg, #2a2270, #1b1545);
}
.cta-band::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px;
  background: linear-gradient(135deg, rgba(124,131,245,.8), rgba(231,200,115,.4));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
          mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude; pointer-events: none;
}
.cta-band h2 { margin: 0 0 14px; }
.cta-band p { color: #d8d5f0; font-size: 16.5px; max-width: 560px; margin: 0 auto 26px; }
.cta-band .btn { margin: 0 6px; }

/* ============================================================
   FOOTER
   ============================================================ */
footer { border-top: 1px solid var(--line); padding-block: 44px; }
.footer-inner { display: flex; justify-content: space-between; align-items: flex-start; gap: 24px; flex-wrap: wrap; }
.footer-brand .tag { color: var(--muted); font-size: 14px; margin-top: 10px; }
.footer-links { display: flex; gap: 40px; flex-wrap: wrap; }
.footer-links h4 { font-size: 13px; color: var(--ink); text-transform: uppercase; letter-spacing: 1px; margin-bottom: 12px; font-family: var(--display); }
.footer-links ul { display: grid; gap: 9px; }
.footer-links a { color: var(--muted); font-size: 14px; }
.footer-links a:hover { color: #fff; }
.footer-meta { color: var(--muted); font-size: 13.5px; max-width: 470px; line-height: 1.7; }
.footer-bottom { border-top: 1px solid var(--line); margin-top: 34px; padding-top: 24px; color: var(--muted); font-size: 13px; }
.footer-legal { display: flex; gap: 18px; flex-wrap: wrap; margin-top: 10px; }
.footer-legal a { color: var(--muted); font-size: 13px; }
.footer-legal a:hover { color: #fff; }
.footer-legal button { color: var(--muted); font-size: 13px; background: none; border: none; padding: 0; cursor: pointer; font-family: var(--body); text-decoration: underline; text-underline-offset: 2px; }
.footer-legal button:hover { color: #fff; }
.footer-social { display: flex; gap: 12px; margin-top: 16px; }
.footer-social a {
  width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(255,255,255,.06); border: 1px solid var(--line); color: var(--muted); transition: color .2s, border-color .2s, transform .2s;
}
.footer-social a:hover { color: #fff; border-color: rgba(124,131,245,.5); transform: translateY(-2px); }
.footer-social svg { width: 17px; height: 17px; }

/* ============================================================
   ACCESSIBILITY: skip link + focus states
   ============================================================ */
.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 1000;
  background: var(--ink); color: var(--bg); font-weight: 600; font-size: 14px;
  padding: 12px 18px; border-radius: 10px; transition: top .2s ease;
}
.skip-link:focus { top: 12px; }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible, summary:focus-visible {
  outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 4px;
}

/* ============================================================
   FORM VALIDATION + ANTI-SPAM HONEYPOT
   ============================================================ */
.hp-field { position: absolute; left: -9999px; top: -9999px; width: 1px; height: 1px; overflow: hidden; }
.field.has-error input, .field.has-error textarea, .field.has-error select { border-color: var(--red); box-shadow: 0 0 0 3px rgba(255,155,155,.14); }
.field-error { display: none; color: var(--red); font-size: 12.5px; margin-top: 2px; }
.field.has-error .field-error { display: block; }

/* ============================================================
   COOKIE CONSENT BANNER
   ============================================================ */
.cookie-banner {
  position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 200;
  max-width: 720px; margin-inline: auto; border-radius: 20px; padding: 20px 22px;
  background: linear-gradient(160deg, rgba(28,22,64,.96), rgba(20,16,46,.98));
  border: 1px solid var(--line); box-shadow: 0 30px 70px rgba(0,0,0,.5);
  display: flex; align-items: center; gap: 20px; flex-wrap: wrap;
}
.cookie-banner[hidden] { display: none; }
.cookie-banner p { color: var(--muted); font-size: 13.5px; line-height: 1.6; margin: 0; flex: 1 1 320px; }
.cookie-banner a { color: var(--ink); text-decoration: underline; text-underline-offset: 2px; }
.cookie-banner-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.cookie-banner .btn { padding: 10px 20px; font-size: 13.5px; }

/* ============================================================
   404 PAGE
   ============================================================ */
.error-page { padding-top: 120px; padding-bottom: 100px; text-align: center; }
.error-page .code {
  font-family: var(--display); font-weight: 700; font-size: 110px; line-height: 1; letter-spacing: -3px;
  background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent; margin-bottom: 8px;
}
.error-page h1 { font-size: 30px; }
.error-page p.lead { margin-inline: auto; margin-bottom: 34px; }
.error-page .error-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-bottom: 44px; }
.error-page .error-links { display: flex; gap: 24px; justify-content: center; flex-wrap: wrap; }
.error-page .error-links a { color: var(--muted); font-size: 14.5px; }
.error-page .error-links a:hover { color: #fff; }

@media (max-width: 880px) {
  :root { --section-y: 56px; --pad: 16px; }
  .nav-right { gap: 8px; }
  .brand .wordmark { font-size: 18px; }
  .nav-right .btn-primary { padding: 10px 14px; font-size: 13px; }
  .nav-toggle { display: flex; }
  .nav-links {
    /* Solid opaque color, no backdrop-filter: nesting a blurred/translucent dropdown
       inside the already-blurred sticky .nav causes a compositing bug in some engines
       where the dropdown reads as ~15-20% opacity instead of the declared 98%, letting
       page content bleed through. A flat solid color sidesteps that entirely. */
    display: none; position: absolute; top: 74px; left: 0; right: 0; z-index: 99;
    background: #171233;
    flex-direction: column; gap: 2px; padding: 10px 24px 18px; border-bottom: 1px solid var(--line);
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 13px 2px; border-bottom: 1px solid rgba(255,255,255,.06); }
  h1 { font-size: 34px; }
  h2 { font-size: 25px; }
  .card-grid { grid-template-columns: 1fr; }
  .cta-band { padding: 40px 22px; }
  .footer-inner { flex-direction: column; }
  .cookie-banner { flex-direction: column; align-items: stretch; left: 10px; right: 10px; bottom: 10px; padding: 18px; }
  .cookie-banner-actions { justify-content: stretch; }
  .cookie-banner-actions .btn { flex: 1; }
  .error-page .code { font-size: 72px; }
  .error-page { padding-top: 70px; }
}
