/* Lexir marketing + policy site — deep green / brass / parchment, matching the app. */

:root {
  --ink: #050b08;
  --forest-deep: #0b1f16;
  --forest: #102a20;
  --forest-hi: #163a2b;
  --brass-deep: #876326;
  --brass: #b18a4a;
  --brass-light: #d9b777;
  --brass-pale: #f2dca6;
  --parchment: #f0e8d6;
  --parchment-dim: #b9ae93;

  --maxw: 1080px;
  --radius: 22px;
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Spectral", Georgia, "Times New Roman", serif;
  color: var(--parchment);
  background-color: var(--ink);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* Layered backdrop: deep gradient + soft emerald glow + vignette, like the app. */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(60% 50% at 50% 12%, rgba(36, 121, 90, 0.28), transparent 70%),
    linear-gradient(180deg, var(--ink), var(--forest-deep) 45%, var(--ink));
}
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: radial-gradient(75% 75% at 50% 45%, transparent 55%, rgba(5, 11, 8, 0.85));
}

a { color: var(--brass-light); text-decoration: none; }
a:hover { color: var(--brass-pale); }

h1, h2, h3 {
  font-family: "Playfair Display", Georgia, serif;
  font-weight: 700;
  line-height: 1.1;
  margin: 0 0 0.4em;
}

.brass-text {
  background: linear-gradient(110deg, var(--brass-deep), var(--brass), var(--brass-light), var(--brass-pale));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.eyebrow {
  font-family: "Spectral", serif;
  text-transform: uppercase;
  letter-spacing: 0.32em;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--brass);
  margin: 0 0 1rem;
}

.rule {
  width: 56px;
  height: 2px;
  border: 0;
  margin: 1rem 0;
  background: linear-gradient(90deg, transparent, var(--brass), transparent);
}
.rule.center { margin-left: auto; margin-right: auto; }

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(10px);
  background: rgba(5, 11, 8, 0.6);
  border-bottom: 1px solid rgba(177, 138, 74, 0.18);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}
.wordmark {
  font-family: "Playfair Display", serif;
  font-weight: 800;
  font-size: 1.5rem;
  letter-spacing: 0.02em;
}
.nav-links { display: flex; gap: 26px; align-items: center; }
.nav-links a { color: var(--parchment-dim); font-size: 0.95rem; }
.nav-links a:hover { color: var(--brass-pale); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 14px 24px;
  border-radius: 999px;
  font-family: "Spectral", serif;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--ink);
  background: linear-gradient(90deg, var(--brass-deep), var(--brass), var(--brass-light), var(--brass), var(--brass-deep));
  border: 1px solid rgba(242, 220, 166, 0.5);
  box-shadow: 0 0 0 4px rgba(177, 138, 74, 0); /* spacer for the ring below */
  position: relative;
  transition: transform 0.12s ease, box-shadow 0.2s ease;
}
.btn::after {
  /* external hairline ring, set a hair off the fill — echoes the app's button */
  content: "";
  position: absolute;
  inset: -5px;
  border-radius: 999px;
  border: 1px solid rgba(177, 138, 74, 0.45);
}
.btn:hover { transform: translateY(-1px); color: var(--ink); }
.btn:active { transform: scale(0.98); }
.btn .play-icon { width: 22px; height: 22px; }
.btn small { display: block; font-size: 0.7rem; letter-spacing: 0.14em; opacity: 0.75; font-weight: 600; }
.btn strong { font-size: 1.05rem; font-weight: 700; letter-spacing: 0.02em; }
.btn .label { text-align: left; line-height: 1.15; }

/* ---------- Hero ---------- */
.hero { padding: 72px 0 40px; }
.hero .wrap {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}
.hero h1 { font-size: clamp(3.2rem, 8vw, 5.4rem); font-weight: 800; margin-bottom: 0.2em; }
.hero .lede {
  font-size: 1.3rem;
  color: var(--parchment);
  max-width: 30ch;
  margin: 0 0 2rem;
}
.hero .lede em { color: var(--brass-light); font-style: italic; }
.hero .cta-row { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.hero .fineprint { color: var(--parchment-dim); font-size: 0.9rem; }

/* ---------- App screenshot in a phone frame ---------- */
.phone {
  justify-self: center;
  width: 300px;
  max-width: 80vw;
  border-radius: 40px;
  padding: 12px;
  background: linear-gradient(160deg, #1c1c1c, #0a0a0a);
  border: 1px solid rgba(177, 138, 74, 0.3);
  box-shadow: var(--shadow);
}
.phone-screen {
  border-radius: 28px;
  overflow: hidden;
  display: block;
}
.phone-screen img {
  display: block;
  width: 100%;
  height: auto;
}

/* ---------- Features ---------- */
.section { padding: 64px 0; }
.section-head { text-align: center; margin-bottom: 48px; }
.section-head h2 { font-size: clamp(2rem, 5vw, 2.8rem); }
.section-head p { color: var(--parchment-dim); max-width: 52ch; margin: 0.5rem auto 0; }

.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 22px;
}
.feature {
  border-radius: var(--radius);
  padding: 28px;
  background: linear-gradient(180deg, var(--forest-hi), var(--forest));
  border: 1px solid rgba(177, 138, 74, 0.22);
}
.feature h3 { font-size: 1.3rem; margin-top: 0; }
.feature p { margin: 0; color: var(--parchment-dim); font-size: 0.98rem; }

/* ---------- CTA band ---------- */
.cta-band { text-align: center; padding: 72px 0; }
.cta-band h2 { font-size: clamp(2rem, 5vw, 2.8rem); }
.cta-band p { color: var(--parchment-dim); margin: 0 auto 2rem; max-width: 44ch; }

/* ---------- Prose (policy pages) ---------- */
.prose { padding: 56px 0 24px; max-width: 760px; }
.prose h1 { font-size: clamp(2.2rem, 6vw, 3.2rem); }
.prose h2 { font-size: 1.5rem; margin-top: 2.2rem; color: var(--parchment); }
.prose p, .prose li { color: var(--parchment); }
.prose a:not(.btn) { text-decoration: underline; text-underline-offset: 3px; }
.prose .updated { color: var(--parchment-dim); font-style: italic; font-size: 0.95rem; }
.prose ul, .prose ol { padding-left: 1.3rem; }
.prose li { margin: 0.4rem 0; }
.callout {
  border-radius: var(--radius);
  padding: 24px 26px;
  margin: 28px 0;
  background: linear-gradient(180deg, var(--forest-hi), var(--forest));
  border: 1px solid rgba(177, 138, 74, 0.3);
}
/* Highlight emphasis in callout copy — but not button labels (keep those ink). */
.callout p strong { color: var(--brass-light); }

.steps { counter-reset: step; list-style: none; padding: 0; }
.steps li {
  position: relative;
  padding: 6px 0 18px 56px;
  margin: 0;
}
.steps li::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 0; top: 0;
  width: 38px; height: 38px;
  display: grid; place-items: center;
  border-radius: 50%;
  font-family: "Playfair Display", serif; font-weight: 700;
  color: var(--ink);
  background: linear-gradient(180deg, var(--brass-light), var(--brass), var(--brass-deep));
}

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid rgba(177, 138, 74, 0.18);
  padding: 36px 0;
  margin-top: 40px;
  color: var(--parchment-dim);
  font-size: 0.92rem;
}
.site-footer .wrap {
  display: flex; flex-wrap: wrap; gap: 16px;
  align-items: center; justify-content: space-between;
}
.site-footer .links { display: flex; gap: 22px; flex-wrap: wrap; }
.site-footer a { color: var(--parchment-dim); }
.site-footer a:hover { color: var(--brass-pale); }

@media (max-width: 820px) {
  .hero .wrap { grid-template-columns: 1fr; text-align: center; }
  .hero .lede { margin-left: auto; margin-right: auto; }
  .hero .cta-row { justify-content: center; }
  .phone { order: -1; }
  .nav-links { display: none; }
}
