/* Eaves legal site — visual language mirrored from the app's theme tokens
   (src/theme/tokens.ts): same palette, type scale, Liquid-Glass card + specular
   edge, and ambient mode-gradient backdrop. */

:root {
  --bg-deep: #020203;
  --bg-base: #050506;
  --fg: #ededef;
  --fg-muted: #8a8f98;
  --fg-faint: #5a5f68;
  --accent: #8b5cf6;
  --accent-2: #a78bfa;
  --success: #34d399;
  --glass-tint: rgba(255, 255, 255, 0.06);
  --glass-border: rgba(255, 255, 255, 0.12);
  --hairline: rgba(255, 255, 255, 0.1);
  --radius: 24px;
  --maxw: 760px;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg-deep);
  color: var(--fg);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI",
    Roboto, system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  line-height: 1.62;
}

/* Ambient gradient backdrop — echoes the app's mode gradients
   (morning-calm pink, anxiety-relief blue, accent purple). */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(55% 45% at 12% 8%, rgba(233, 164, 255, 0.18), transparent 70%),
    radial-gradient(50% 42% at 88% 4%, rgba(125, 191, 245, 0.15), transparent 70%),
    radial-gradient(75% 60% at 50% 112%, rgba(139, 92, 246, 0.2), transparent 70%),
    linear-gradient(180deg, var(--bg-base), var(--bg-deep));
}

/* Slight darken so glass + light text stay readable (matches BlurredBackground). */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background: rgba(0, 0, 0, 0.22);
}

.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 44px 20px 72px;
}

/* ---- Header / nav ---- */
header.site {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 26px;
  flex-wrap: wrap;
  gap: 12px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.3px;
  color: var(--fg);
  text-decoration: none;
}

.brand .mark {
  width: 24px;
  height: 24px;
  border-radius: 8px;
  display: block;
  object-fit: cover;
  box-shadow: 0 0 26px rgba(139, 92, 246, 0.45);
}

nav.site a {
  color: var(--fg-muted);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  margin-left: 18px;
  transition: color 0.18s ease;
}
nav.site a:hover,
nav.site a[aria-current="page"] { color: var(--fg); }

/* ---- Glass card ---- */
.card {
  position: relative;
  background: var(--glass-tint);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  padding: 38px 34px;
  overflow: hidden;
  backdrop-filter: blur(30px) saturate(160%);
  -webkit-backdrop-filter: blur(30px) saturate(160%);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.45);
}

/* Specular top edge (matches GlassTile's SpecularEdge). */
.card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 38%;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.1), transparent);
  pointer-events: none;
}

.card > *:first-child { margin-top: 0; }

/* ---- Typography ---- */
.eyebrow {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  color: var(--accent-2);
  margin: 0 0 12px;
}

h1 {
  font-size: 34px;
  line-height: 1.15;
  font-weight: 700;
  letter-spacing: -0.6px;
  margin: 0 0 6px;
}

.meta {
  color: var(--fg-faint);
  font-size: 13px;
  margin: 0 0 26px;
}

h2 {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.2px;
  margin: 32px 0 10px;
  color: var(--fg);
}

p, li { font-size: 16px; color: rgba(237, 237, 239, 0.82); }
li { margin: 4px 0; }
strong { color: var(--fg); font-weight: 600; }
a { color: var(--accent-2); }
a:hover { color: var(--fg); }

hr { border: none; border-top: 1px solid var(--hairline); margin: 28px 0; }

table { width: 100%; border-collapse: collapse; margin: 16px 0; font-size: 15px; }
th, td {
  text-align: left;
  padding: 11px 12px;
  border-bottom: 1px solid var(--hairline);
  vertical-align: top;
}
th { color: var(--fg); font-weight: 600; }
td { color: rgba(237, 237, 239, 0.82); }

.callout {
  background: rgba(139, 92, 246, 0.1);
  border: 1px solid rgba(139, 92, 246, 0.22);
  border-radius: 14px;
  padding: 14px 16px;
  margin: 18px 0;
  font-size: 15px;
  color: rgba(237, 237, 239, 0.9);
}

/* Placeholder you must fill before publishing. */
.ph {
  color: #f0b429;
  border-bottom: 1px dashed rgba(240, 180, 41, 0.5);
  font-style: normal;
}

.backlink {
  display: inline-block;
  margin-bottom: 20px;
  color: var(--fg-muted);
  text-decoration: none;
  font-size: 14px;
}
.backlink:hover { color: var(--fg); }

/* ---- Landing tiles ---- */
.lede { font-size: 18px; color: rgba(237, 237, 239, 0.78); margin: 0 0 26px; max-width: 52ch; }
.tiles { display: grid; gap: 14px; }
.tile {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--hairline);
  text-decoration: none;
  color: var(--fg);
  transition: background 0.18s ease, border-color 0.18s ease;
}
.tile:hover { background: rgba(255, 255, 255, 0.07); border-color: var(--glass-border); }
.tile .t-title { font-size: 16px; font-weight: 600; }
.tile .t-sub { font-size: 13px; color: var(--fg-muted); margin-top: 2px; }
.tile .chev { color: var(--fg-faint); font-size: 20px; }

footer.site {
  margin-top: 38px;
  text-align: center;
  color: var(--fg-faint);
  font-size: 13px;
}
footer.site a { color: var(--fg-muted); text-decoration: none; }
footer.site a:hover { color: var(--fg); }

@media (max-width: 520px) {
  .card { padding: 28px 20px; }
  h1 { font-size: 28px; }
}
