/* Liventra landing — the app's earthy design system (konzept §8):
   cream #F2EBDF, paper #F8F3EA, ink #3A332B, sage #A8B6A1/#6F8470,
   clay #B08D57 family, ochre #C8A66B. Fraunces display, Geist text. */

@font-face { font-family: "Fraunces"; src: url("assets/fonts/Fraunces-400.ttf") format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Fraunces"; src: url("assets/fonts/Fraunces-600.ttf") format("truetype"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Fraunces"; src: url("assets/fonts/Fraunces-Italic-400.ttf") format("truetype"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Geist"; src: url("assets/fonts/Geist-400.ttf") format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Geist"; src: url("assets/fonts/Geist-500.ttf") format("truetype"); font-weight: 500; font-display: swap; }

:root {
  --bg: #F2EBDF;
  --paper: #F8F3EA;
  --cream2: #EAE0D0;
  --ink: #3A332B;
  --ink2: #6B6152;
  --ink3: #9A8F7C;
  --line: #DFD5C2;
  --sage: #A8B6A1;
  --sage-deep: #6F8470;
  --sage-light: #E2E8DC;
  --clay: #B08D57;
  --clay-deep: #8A6A3B;
  --ochre: #C8A66B;
  --rose: #EFE0DC;
  --serif: "Fraunces", ui-serif, Georgia, serif;
  --sans: "Geist", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  overflow-x: hidden;
}
/* subtle paper grain */
body::before {
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 0; opacity: 0.35;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3CfeColorMatrix values='0 0 0 0 0.55 0 0 0 0 0.5 0 0 0 0 0.42 0 0 0 0.05 0'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)'/%3E%3C/svg%3E");
}
main, header, footer { position: relative; z-index: 1; }

h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.12; color: var(--ink); }
h2 { font-size: clamp(1.9rem, 4.5vw, 2.9rem); letter-spacing: -0.01em; }
h3 { font-size: clamp(1.35rem, 3vw, 1.9rem); }
em { font-style: italic; color: var(--clay-deep); }
a { color: var(--clay-deep); }

.eyebrow {
  font-family: var(--sans); font-size: 0.72rem; font-weight: 500;
  letter-spacing: 0.18em; text-transform: uppercase; color: var(--ink3);
}

/* ---------- top bar ---------- */
.topbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px clamp(16px, 4vw, 40px);
  transition: background 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.topbar.scrolled { background: rgba(248, 243, 234, 0.88); backdrop-filter: blur(14px); box-shadow: 0 1px 0 var(--line); }
.topbar-logo { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-family: var(--serif); font-style: italic; font-size: 1.1rem; }
.topbar-logo img { border-radius: 8px; }
.topbar-nav { display: flex; gap: clamp(12px, 2.5vw, 28px); }
.topbar-nav a { text-decoration: none; color: var(--ink2); font-size: 0.92rem; }
.topbar-nav a:hover { color: var(--ink); }
.lang-toggle {
  border: 1px solid var(--line); background: var(--paper); color: var(--ink2);
  font-family: var(--sans); font-size: 0.8rem; font-weight: 500;
  padding: 5px 12px; border-radius: 999px; cursor: pointer;
}
@media (max-width: 620px) { .topbar-nav { display: none; } }

/* ---------- hero ---------- */
.hero {
  min-height: 92vh; display: flex; flex-direction: column;
  align-items: center; justify-content: center; text-align: center;
  padding: 120px 20px 40px; position: relative;
}
.hero-icon { border-radius: 18px; box-shadow: 0 10px 30px rgba(58, 51, 43, 0.16); margin-bottom: 26px; }
.hero-title { font-size: clamp(2.6rem, 7.5vw, 4.6rem); font-weight: 600; }
.hero-title .accent { display: block; font-style: italic; font-weight: 400; color: var(--clay-deep); }
.hero-sub { max-width: 560px; margin: 22px auto 0; color: var(--ink2); font-size: clamp(1rem, 2vw, 1.15rem); }
.hero-cta { margin-top: 34px; display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; }
.cta-primary {
  background: var(--ink); color: var(--paper); text-decoration: none;
  padding: 14px 26px; border-radius: 999px; font-weight: 500; font-size: 0.98rem;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.cta-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 26px rgba(58, 51, 43, 0.22); }
.cta-secondary { color: var(--ink2); text-decoration: none; padding: 14px 10px; font-size: 0.98rem; }
.hero-badges { margin-top: 40px; display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }
.badge {
  display: inline-flex; align-items: center; gap: 7px;
  background: var(--paper); border: 1px solid var(--line); border-radius: 999px;
  padding: 7px 14px; font-size: 0.82rem; color: var(--ink2);
}
.badge .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--sage-deep); }
.scroll-cue { position: absolute; bottom: 26px; color: var(--ink3); animation: cue 2.4s var(--ease) infinite; }
@keyframes cue { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(7px); } }

/* ---------- intro statement ---------- */
.intro { max-width: 780px; margin: 0 auto; padding: clamp(70px, 12vh, 130px) 24px; text-align: center; }
.statement { margin-top: 18px; }
.intro-copy { margin-top: 20px; color: var(--ink2); max-width: 620px; margin-left: auto; margin-right: auto; }

/* ---------- privacy pillars ---------- */
.pillars { background: var(--paper); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: clamp(60px, 10vh, 110px) 24px; }
.pillars-grid { max-width: 1060px; margin: 40px auto 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 22px; }
.pillars .head { text-align: center; max-width: 720px; margin: 0 auto; }
.pillar { background: var(--bg); border: 1px solid var(--line); border-radius: 20px; padding: 26px; }
.pillar .icon {
  width: 40px; height: 40px; border-radius: 12px; display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem; margin-bottom: 16px; background: var(--sage-light); color: var(--sage-deep);
}
.pillar:nth-child(2) .icon { background: var(--rose); color: #A2766D; }
.pillar:nth-child(3) .icon { background: var(--cream2); color: var(--clay-deep); }
.pillar h3 { font-size: 1.2rem; margin-bottom: 8px; }
.pillar p { color: var(--ink2); font-size: 0.95rem; }

/* ---------- sticky phone showcase ---------- */
.showcase { padding: clamp(70px, 10vh, 120px) 24px; }
.showcase-grid { max-width: 1060px; margin: 0 auto; display: grid; grid-template-columns: minmax(280px, 420px) 1fr; gap: clamp(30px, 6vw, 90px); align-items: start; }
.phone-wrap { position: sticky; top: 12vh; display: flex; flex-direction: column; align-items: center; gap: 18px; }
.phone {
  width: min(300px, 74vw); aspect-ratio: 1179 / 2556; position: relative;
  border-radius: 42px; overflow: hidden; background: var(--cream2);
  border: 10px solid var(--ink); box-shadow: 0 30px 70px rgba(58, 51, 43, 0.28);
}
.phone .shot { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 0.5s var(--ease); }
.phone .shot.is-active { opacity: 1; }
.phone-dots { display: flex; gap: 7px; }
.phone-dots .dot { width: 7px; height: 7px; border-radius: 999px; background: var(--line); transition: all 0.3s var(--ease); }
.phone-dots .dot.is-active { width: 22px; background: var(--ink); }
.steps { display: flex; flex-direction: column; gap: clamp(24vh, 34vh, 40vh); padding: 10vh 0 20vh; }
.step { opacity: 0.35; transition: opacity 0.4s var(--ease); }
.step.is-active { opacity: 1; }
.step .eyebrow { color: var(--clay-deep); }
.step h3 { margin: 10px 0 12px; }
.step p { color: var(--ink2); max-width: 46ch; }
.step-shot { display: none; }
@media (max-width: 760px) {
  .showcase-grid { grid-template-columns: 1fr; }
  .phone-wrap { display: none; }
  .steps { gap: 56px; padding: 0; }
  .step { opacity: 1; }
  .step-shot { display: block; width: min(260px, 80vw); border-radius: 26px; border: 8px solid var(--ink); margin-top: 18px; }
}

/* ---------- AI section ---------- */
.ai { background: var(--ink); color: var(--paper); padding: clamp(70px, 12vh, 130px) 24px; }
.ai .head { text-align: center; max-width: 760px; margin: 0 auto; }
.ai h2, .ai h3 { color: var(--paper); }
.ai .eyebrow { color: var(--ochre); }
.ai-copy { color: rgba(248, 243, 234, 0.75); margin-top: 18px; }
.ai-grid { max-width: 900px; margin: 44px auto 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; }
.ai-card { border: 1px solid rgba(248, 243, 234, 0.18); border-radius: 20px; padding: 26px; background: rgba(248, 243, 234, 0.05); }
.ai-card h3 { font-size: 1.25rem; margin-bottom: 8px; }
.ai-card p { color: rgba(248, 243, 234, 0.72); font-size: 0.95rem; }
.ai-card .tag { display: inline-block; margin-bottom: 14px; font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ochre); }
.ai-note { text-align: center; margin: 34px auto 0; max-width: 620px; font-family: var(--serif); font-style: italic; color: rgba(248, 243, 234, 0.65); font-size: 0.98rem; }

/* ---------- features grid ---------- */
.features { padding: clamp(70px, 10vh, 120px) 24px; }
.features .head { text-align: center; max-width: 700px; margin: 0 auto 42px; }
.features-grid { max-width: 1060px; margin: 0 auto; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; }
.feature { background: var(--paper); border: 1px solid var(--line); border-radius: 18px; padding: 22px; }
.feature h3 { font-size: 1.05rem; font-family: var(--sans); font-weight: 500; margin-bottom: 6px; }
.feature p { color: var(--ink2); font-size: 0.9rem; }
.feature .pro { display: inline-block; margin-left: 6px; font-size: 0.66rem; letter-spacing: 0.1em; padding: 2px 7px; border-radius: 999px; background: var(--cream2); color: var(--clay-deep); vertical-align: 2px; }

/* ---------- closing / footer ---------- */
.closing { text-align: center; padding: clamp(80px, 14vh, 150px) 24px; }
.closing .hero-cta { justify-content: center; }
footer { border-top: 1px solid var(--line); padding: 34px clamp(16px, 4vw, 40px); display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between; color: var(--ink3); font-size: 0.85rem; }
footer nav { display: flex; gap: 18px; }
footer a { color: var(--ink2); text-decoration: none; }
footer a:hover { color: var(--ink); }

/* ---------- reveal animations ---------- */
html.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
html.js .reveal.in { opacity: 1; transform: none; }
html.js .reveal.d-1 { transition-delay: 0.08s; }
html.js .reveal.d-2 { transition-delay: 0.16s; }
html.js .rise { opacity: 0; transform: translateY(18px); animation: rise 0.8s var(--ease) forwards; }
html.js .r-1 { animation-delay: 0.08s; } html.js .r-2 { animation-delay: 0.16s; }
html.js .r-3 { animation-delay: 0.26s; } html.js .r-4 { animation-delay: 0.36s; }
@keyframes rise { to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  html.js .reveal, html.js .rise { opacity: 1; transform: none; animation: none; transition: none; }
}
