/* ============================================================
   LIA — shared styles for withlia.ai (homepage + legal pages)
   Design tokens mirror ai_creator-marketing/src/styles/lia-tokens.css
   ============================================================ */
:root {
  --canvas:    #FAFAF8;
  --stone:     #F2F1EC;
  --pebble:    #E4E3DC;
  --ink:       #1A1A1E;
  --ink-light: #3A3A42;
  --ink-muted: #7C7C86;

  --creator:   #8B5CF6;
  --brand:     #10B981;
  --brand-deep:#059669;

  /* Surface accent — brand emerald by default (matches the app Home). */
  --accent:        var(--brand);
  --accent-deep:   var(--brand-deep);
  --shadow-accent: 0 8px 28px rgba(16, 185, 129, 0.22);

  --font-heading: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  --font-body:    'DM Sans', system-ui, -apple-system, sans-serif;

  --body-lg:  400 1.125rem/1.6 var(--font-body);
  --overline: 600 0.7rem/1.3 var(--font-body);
  --caption:  500 0.78rem/1.4 var(--font-body);
  --track-overline: 0.14em;

  --r-sm: 10px;
}

*,
*::before,
*::after { box-sizing: border-box; }

html, body { margin: 0; padding: 0; }

body { background: var(--canvas); font-family: var(--font-body); color: var(--ink-light); }

/* ── Page shell (homepage) ── */
.page {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--canvas);
  overflow: hidden;
  font-family: var(--font-body);
}

/* ── Ambient auras ── */
.aura { position: absolute; border-radius: 50%; filter: blur(120px); pointer-events: none; }
.auraViolet  { width: 640px; height: 640px; background: var(--creator); opacity: 0.20; top: -14%; left: -10%; }
.auraEmerald { width: 520px; height: 520px; background: var(--brand);   opacity: 0.13; bottom: -14%; right: -8%; }

/* ── Nav ── */
.nav {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 40px;
}

/* ── Logo ── */
.logo { display: inline-flex; align-items: center; gap: 9px; text-decoration: none; }
.logo .mark { display: block; }
.logo .word {
  font-family: var(--font-heading);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1;
  font-size: 24.08px; /* size(28) * 0.86 */
  color: var(--ink);
}

/* ── Hero ── */
.hero {
  position: relative;
  z-index: 1;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 40px 24px;
  max-width: 720px;
  margin: 0 auto;
}
.eyebrow {
  font: var(--overline);
  letter-spacing: var(--track-overline);
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-bottom: 20px;
}
.headline {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  line-height: 1.04;
  letter-spacing: -0.03em;
  color: var(--ink);
  margin: 0;
}
.sub { font: var(--body-lg); color: var(--ink-light); margin-top: 22px; max-width: 52ch; }
.actions { display: flex; gap: 12px; margin-top: 34px; flex-wrap: wrap; justify-content: center; }

/* ── Buttons (.lg size) ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 13px 24px;
  border: none;
  border-radius: var(--r-sm);
  cursor: pointer;
  white-space: nowrap;
  text-decoration: none;
  transition: background 0.15s, box-shadow 0.15s, color 0.15s, transform 0.1s;
}
.btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.btn.primary { background: var(--accent); color: #fff; }
.btn.primary:hover { background: var(--accent-deep); box-shadow: var(--shadow-accent); }
.btn.primary:active { transform: translateY(1px); box-shadow: none; }
.btn.outline { background: #fff; color: var(--ink); border: 1.5px solid var(--pebble); }
.btn.outline:hover { background: var(--stone); }

/* ── Footer (shared) ── */
.site-footer {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  text-align: center;
  padding: 28px;
  border-top: 1px solid var(--pebble);
}
.footer-links { display: flex; gap: 18px; flex-wrap: wrap; justify-content: center; }
.footer-links a {
  font: var(--caption);
  color: var(--ink-muted);
  text-decoration: none;
}
.footer-links a:hover { color: var(--ink); }
.footer-copy { font: var(--caption); color: var(--ink-muted); }

/* ============================================================
   Legal document pages (privacy / data-deletion / legal)
   ============================================================ */
.doc-page { min-height: 100vh; display: flex; flex-direction: column; background: var(--canvas); }

.doc {
  flex: 1;
  width: 100%;
  max-width: 760px;
  margin: 0 auto;
  padding: 24px 24px 64px;
}
.doc .back-link {
  display: inline-block;
  font: var(--caption);
  color: var(--ink-muted);
  text-decoration: none;
  margin-bottom: 28px;
}
.doc .back-link:hover { color: var(--ink); }

.doc h1 {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: clamp(2rem, 4vw, 2.8rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
  color: var(--ink);
  margin: 0 0 8px;
}
.doc .doc-meta { font: var(--caption); color: var(--ink-muted); margin: 0 0 36px; }

.doc h2 {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.3rem;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin: 40px 0 12px;
}
.doc h3 {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--ink);
  margin: 26px 0 8px;
}
.doc p, .doc li { font-size: 1rem; line-height: 1.7; color: var(--ink-light); }
.doc ul { padding-left: 22px; margin: 12px 0; }
.doc li { margin: 6px 0; }
.doc a { color: var(--brand-deep); text-decoration: underline; text-underline-offset: 2px; }
.doc strong { color: var(--ink); font-weight: 600; }

/* Placeholder highlight — bracketed values you still need to fill in.
   Remove this rule once all placeholders are replaced. */
.todo {
  background: #FFF4CC;
  border-bottom: 1px dashed #D9883B;
  padding: 0 2px;
  border-radius: 3px;
}

/* Subprocessor / data table */
.doc table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0;
  font-size: 0.9rem;
}
.doc th, .doc td {
  text-align: left;
  vertical-align: top;
  padding: 10px 12px;
  border: 1px solid var(--pebble);
}
.doc th { background: var(--stone); font-weight: 600; color: var(--ink); font-family: var(--font-heading); }
.doc td { color: var(--ink-light); }

/* Contact card */
.contact-card {
  background: var(--stone);
  border: 1px solid var(--pebble);
  border-radius: 14px;
  padding: 20px 24px;
  margin: 16px 0;
}
.contact-card p { margin: 4px 0; }

@media (max-width: 600px) {
  .nav { padding: 20px; }
  .doc table { display: block; overflow-x: auto; white-space: nowrap; }
}
