/* LivF — livfapp.com */

:root {
  --bg:        #fafaf8;
  --bg-deep:   #f1f1ec;
  --surface:   #ffffff;
  --border:    #e6e6df;
  --ink:       #101210;
  --ink-soft:  #62665f;
  --logo-blend: multiply;
  --radius:    18px;
  --maxw:      1120px;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg:        #0c0d0c;
    --bg-deep:   #121412;
    --surface:   #151715;
    --border:    #262924;
    --ink:       #f2f2ee;
    --ink-soft:  #9a9f96;
    --logo-blend: screen;
  }
}
:root[data-theme="dark"] {
  --bg:        #0c0d0c;
  --bg-deep:   #121412;
  --surface:   #151715;
  --border:    #262924;
  --ink:       #f2f2ee;
  --ink-soft:  #9a9f96;
  --logo-blend: screen;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI",
               Inter, Roboto, Helvetica, Arial, sans-serif;
  font-size: 17px; line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 28px; }
.narrow { max-width: 780px; }

a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: color-mix(in srgb, var(--ink) 35%, transparent); }
a:hover { text-decoration-color: var(--ink); }

img.logo { mix-blend-mode: var(--logo-blend); }

/* ---------- header ---------- */

header.site {
  position: sticky; top: 0; z-index: 20;
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  backdrop-filter: saturate(160%) blur(16px);
  border-bottom: 1px solid var(--border);
}
header.site .wrap {
  display: flex; align-items: center; justify-content: space-between;
  height: 68px; gap: 24px;
}
.brand { display: flex; align-items: center; text-decoration: none; }
.brand img { height: 30px; width: auto; display: block; }
nav.site { display: flex; align-items: center; gap: 26px; }
nav.site a { color: var(--ink-soft); font-size: 0.94rem; font-weight: 500; text-decoration: none; }
nav.site a:hover { color: var(--ink); text-decoration: none; }
nav.site a.cta {
  color: var(--bg); background: var(--ink);
  padding: 9px 20px; border-radius: 100px; font-weight: 600;
}
nav.site a.cta:hover { opacity: 0.85; }

/* ---------- hero ---------- */

.hero { padding: 110px 0 90px; text-align: center; }
.hero .mark { height: clamp(58px, 10vw, 96px); width: auto; margin-bottom: 44px; }
.hero h1 {
  font-size: clamp(2.6rem, 7vw, 4.6rem);
  line-height: 1.02; letter-spacing: -0.04em;
  margin: 0 0 24px; font-weight: 800;
}
.hero h1 em { font-style: normal; color: var(--ink-soft); }
.hero .lede {
  font-size: clamp(1.08rem, 2.4vw, 1.32rem); color: var(--ink-soft);
  max-width: 640px; margin: 0 auto 40px;
}

.btn {
  text-decoration: none;
  display: inline-block; padding: 15px 32px; border-radius: 100px;
  background: var(--ink); color: var(--bg); font-weight: 650; font-size: 1.02rem;
  border: 1px solid transparent;
}
.btn:hover { opacity: 0.85; text-decoration: none; }
.btn.ghost { background: transparent; color: var(--ink); border-color: var(--border); }
.btn.ghost:hover { background: var(--bg-deep); opacity: 1; }
.btn-row { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ---------- proof strip ---------- */

.proof { border-block: 1px solid var(--border); background: var(--bg-deep); }
.proof .wrap {
  display: flex; justify-content: center; gap: clamp(28px, 6vw, 90px);
  padding: 26px 28px; flex-wrap: wrap;
}
.proof div { text-align: center; }
.proof strong {
  display: block; font-size: 1.05rem; letter-spacing: -0.01em; font-weight: 700;
}
.proof span { font-size: 0.84rem; color: var(--ink-soft); }

/* ---------- feature rows ---------- */

.features { padding: 96px 0 40px; }
.features > .wrap > h2 {
  font-size: clamp(1.9rem, 4.5vw, 3rem); letter-spacing: -0.035em;
  font-weight: 800; margin: 0 0 64px; max-width: 700px;
}
.feature {
  display: grid; grid-template-columns: 88px 1fr; gap: 26px;
  padding: 44px 0; border-top: 1px solid var(--border);
  align-items: start;
}
.feature .num {
  font-size: 0.95rem; font-weight: 700; color: var(--ink-soft);
  letter-spacing: 0.08em; padding-top: 8px; font-variant-numeric: tabular-nums;
}
.feature h3 {
  margin: 0 0 10px; font-size: clamp(1.35rem, 3vw, 1.8rem);
  letter-spacing: -0.025em; font-weight: 750;
}
.feature p { margin: 0; color: var(--ink-soft); max-width: 640px; font-size: 1.02rem; }

/* ---------- philosophy ---------- */

.philosophy { padding: 110px 0; background: var(--ink); color: var(--bg); }
.philosophy .quote {
  font-size: clamp(1.6rem, 4.4vw, 2.8rem); line-height: 1.25;
  letter-spacing: -0.03em; font-weight: 700; max-width: 880px; margin: 0 0 26px;
}
.philosophy .quote em {
  font-style: normal;
  color: color-mix(in srgb, var(--bg) 55%, transparent);
}
.philosophy p.sub {
  color: color-mix(in srgb, var(--bg) 62%, transparent);
  max-width: 640px; margin: 0; font-size: 1.05rem;
}

/* ---------- FAQ ---------- */

.faq { padding: 96px 0; }
.faq h2 {
  font-size: clamp(1.8rem, 4vw, 2.6rem); letter-spacing: -0.03em;
  font-weight: 800; margin: 0 0 40px;
}
.faq details {
  border-top: 1px solid var(--border); padding: 4px 0;
}
.faq details:last-of-type { border-bottom: 1px solid var(--border); }
.faq summary {
  cursor: pointer; list-style: none; display: flex;
  justify-content: space-between; align-items: center; gap: 20px;
  padding: 20px 0; font-weight: 650; font-size: 1.06rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; font-size: 1.5rem; font-weight: 300; color: var(--ink-soft);
  flex-shrink: 0; transition: transform 0.2s;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 0 0 22px; color: var(--ink-soft); max-width: 680px; }

/* ---------- closing CTA ---------- */

.closing { padding: 110px 0 120px; text-align: center; background: var(--bg-deep); border-top: 1px solid var(--border); }
.closing .tile {
  width: 96px; height: 96px; border-radius: 24px; margin: 0 auto 34px;
  box-shadow: 0 10px 40px color-mix(in srgb, var(--ink) 18%, transparent);
}
.closing h2 {
  font-size: clamp(1.9rem, 4.6vw, 2.9rem); letter-spacing: -0.035em;
  font-weight: 800; margin: 0 0 14px;
}
.closing p { color: var(--ink-soft); max-width: 520px; margin: 0 auto 36px; }

/* ---------- prose (privacy / support) ---------- */

.prose { padding: 64px 0 90px; }
.prose h1 {
  font-size: clamp(2rem, 5vw, 2.8rem); letter-spacing: -0.035em;
  margin: 0 0 8px; font-weight: 800;
}
.prose .meta { color: var(--ink-soft); font-size: 0.92rem; margin: 0 0 44px; }
.prose h2 {
  font-size: 1.32rem; margin: 46px 0 12px; padding-top: 22px;
  border-top: 1px solid var(--border); letter-spacing: -0.02em;
}
.prose h3 { font-size: 1.04rem; margin: 26px 0 8px; font-weight: 700; }
.prose p, .prose li { color: var(--ink-soft); }
.prose strong { color: var(--ink); font-weight: 650; }
.prose ul { padding-left: 20px; }
.prose li { margin-bottom: 8px; }

table.data { width: 100%; border-collapse: collapse; margin: 18px 0; font-size: 0.93rem; }
table.data th, table.data td {
  text-align: left; padding: 11px 14px; border: 1px solid var(--border); vertical-align: top;
}
table.data th { background: var(--bg-deep); font-weight: 650; color: var(--ink); }
table.data td { color: var(--ink-soft); }
.scroll-x { overflow-x: auto; }

.callout {
  background: var(--bg-deep); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 22px 26px; margin: 28px 0;
}
.callout p:first-child { margin-top: 0; }
.callout p:last-child { margin-bottom: 0; }

/* ---------- footer ---------- */

footer.site { border-top: 1px solid var(--border); padding: 44px 0 60px; font-size: 0.9rem; }
footer.site .wrap {
  display: flex; justify-content: space-between; align-items: center;
  gap: 20px; flex-wrap: wrap;
}
footer.site img { height: 22px; width: auto; }
footer.site nav a { color: var(--ink-soft); margin-left: 22px; text-decoration: none; }
footer.site nav a:hover { color: var(--ink); }
footer.site .fine { color: var(--ink-soft); }

@media (max-width: 640px) {
  .hero { padding: 70px 0 60px; }
  .features, .faq { padding: 64px 0 24px; }
  .philosophy, .closing { padding: 76px 0; }
  .feature { grid-template-columns: 1fr; gap: 8px; padding: 34px 0; }
  nav.site { gap: 16px; }
  nav.site a:not(.cta) { display: none; }
}
