/* Eva landing — vanilla CSS, no build step */

:root {
  --bg: #faf8f5;
  --bg-alt: #f1eee8;
  --surface: #ffffff;
  --text: #1c1f26;
  --text-soft: #565b66;
  --accent: #1e2a4a;
  --accent-soft: #33456f;
  --accent-tint: #eaeef5;
  --wood: #b98a5e;
  --border: #e6e2da;
  --radius-lg: 22px;
  --radius-md: 14px;
  --shadow: 0 20px 50px -24px rgba(28, 31, 38, 0.28);
  --shadow-sm: 0 8px 24px -12px rgba(28, 31, 38, 0.18);
  --maxw: 1120px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
}

img, video { max-width: 100%; display: block; }

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

h1, h2, h3 {
  font-weight: 600;
  line-height: 1.15;
  margin: 0 0 0.5em;
  letter-spacing: -0.01em;
}

h2 { font-size: clamp(1.75rem, 1.3rem + 1.8vw, 2.6rem); font-weight: 500; }
h3 { font-size: 1.1rem; font-weight: 600; }

p { margin: 0 0 1em; color: var(--text-soft); }

a { color: inherit; }

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--accent);
  color: #fff;
  padding: 12px 18px;
  border-radius: 0 0 8px 0;
  z-index: 100;
}
.skip-link:focus {
  left: 0;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-block;
  padding: 14px 30px;
  border-radius: 999px;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background 0.25s var(--ease);
}

.btn--primary {
  background: var(--accent);
  color: #fff;
  box-shadow: var(--shadow-sm);
}
.btn--primary:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.btn--primary:focus-visible { outline: 3px solid var(--wood); outline-offset: 3px; }

.btn--ghost {
  background: transparent;
  color: var(--accent);
  border: 1.5px solid var(--accent);
}
.btn--ghost:hover { background: var(--accent); color: #fff; }
.btn--ghost:focus-visible { outline: 3px solid var(--wood); outline-offset: 3px; }

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(250, 248, 245, 0.82);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.brand {
  font-size: 1.2rem;
  font-weight: 700;
  text-decoration: none;
  color: var(--accent);
  letter-spacing: -0.01em;
}

.site-nav { display: flex; gap: 28px; }
.site-nav a {
  text-decoration: none;
  color: var(--text-soft);
  font-size: 0.95rem;
  transition: color 0.2s var(--ease);
}
.site-nav a:hover { color: var(--accent); }

@media (max-width: 560px) {
  .site-nav { display: none; }
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  overflow: hidden;
  color: #fff;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-video, .hero-poster {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-poster { display: none; }

.hero-veil {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(100deg, rgba(28, 31, 38, 0.62) 0%, rgba(28, 31, 38, 0.42) 38%, rgba(250, 248, 245, 0.12) 68%, rgba(250, 248, 245, 0.35) 100%),
    linear-gradient(0deg, rgba(20, 22, 28, 0.35), rgba(20, 22, 28, 0.05) 40%);
}

.hero__inner {
  position: relative;
  z-index: 1;
  max-width: 640px;
  padding-top: 96px;
  padding-bottom: 96px;
}

.hero h1 {
  font-size: clamp(3rem, 2.2rem + 4vw, 5.5rem);
  font-weight: 300;
  margin-bottom: 0.1em;
}

.hero__tagline {
  font-size: clamp(1.2rem, 1rem + 1vw, 1.6rem);
  color: #fff;
  font-weight: 500;
  margin-bottom: 0.6em;
}

.hero__lead {
  color: rgba(255, 255, 255, 0.88);
  font-size: 1.05rem;
  max-width: 46ch;
  margin-bottom: 2em;
}

@media (prefers-reduced-motion: reduce) {
  .hero-video { display: none; }
  .hero-poster { display: block; }
}

/* ---------- Sections (shared) ---------- */

section { padding: 96px 0; }

.section-lead {
  font-size: 1.1rem;
  max-width: 60ch;
  margin-bottom: 2.5em;
}

.always-on { background: var(--bg); }

.how-it-works { background: var(--bg-alt); }

.features { background: var(--bg); }

/* ---------- Point list ---------- */

.point-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.point {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
}

.point__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--accent-tint);
  color: var(--accent);
  margin-bottom: 18px;
}
.point__icon svg { width: 24px; height: 24px; }

.point h3 { margin-bottom: 0.4em; }
.point p { margin: 0; }

@media (max-width: 860px) {
  .point-list { grid-template-columns: 1fr; }
}

/* ---------- States widget ---------- */

.states__tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 28px;
}

.states__tab {
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  padding: 12px 22px;
  border-radius: 999px;
  border: 1.5px solid var(--border);
  background: var(--surface);
  color: var(--text-soft);
  cursor: pointer;
  transition: background 0.2s var(--ease), color 0.2s var(--ease), border-color 0.2s var(--ease);
}
.states__tab:hover { border-color: var(--accent-soft); color: var(--accent); }
.states__tab:focus-visible { outline: 3px solid var(--wood); outline-offset: 2px; }
.states__tab[aria-selected="true"] {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.states__stage {
  position: relative;
}

.states__panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.states__panel img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.states__panel p {
  margin: 0;
  padding: 24px 28px 28px;
  font-size: 1.05rem;
  color: var(--text);
}

.states__dots {
  display: none;
  justify-content: center;
  gap: 10px;
  margin-top: 24px;
}
.states__dot {
  width: 9px;
  height: 9px;
  padding: 0;
  border-radius: 50%;
  border: none;
  background: var(--border);
  cursor: pointer;
  transition: background 0.2s var(--ease), transform 0.2s var(--ease);
}
.states__dot.is-active { background: var(--accent); transform: scale(1.3); }

/* No-JS fallback: four visible cards, tabs/dots hidden */
.states__tabs, .states__dots { display: none; }
.states__stage {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.states__panel[hidden] { display: block; }

/* JS-enhanced: tabbed crossfade */
.has-js .states__tabs { display: flex; }
.has-js .states__dots { display: flex; }
.has-js .states__stage { display: block; }
.has-js .states__panel { display: grid; grid-template-columns: 1.1fr 0.9fr; align-items: stretch; }
.has-js .states__panel[hidden] { display: none; }
.has-js .states__panel img { height: 100%; aspect-ratio: auto; }
.has-js .states__panel p { display: flex; align-items: center; font-size: 1.15rem; }

@media (max-width: 720px) {
  .states__stage { grid-template-columns: 1fr; }
  .has-js .states__panel { grid-template-columns: 1fr; }
}

/* ---------- Features grid ---------- */

.features__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 30px;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.feature-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-sm); }

.feature-card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: var(--accent-tint);
  color: var(--accent);
  margin-bottom: 16px;
}
.feature-card__icon svg { width: 22px; height: 22px; }

.feature-card h3 { margin-bottom: 0.4em; }
.feature-card p { margin: 0; }

@media (max-width: 860px) {
  .features__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .features__grid { grid-template-columns: 1fr; }
}

/* ---------- Final CTA ---------- */

.final-cta {
  background: var(--accent);
  color: #fff;
  text-align: center;
}
.final-cta h2 { color: #fff; }
.final-cta p {
  color: rgba(255, 255, 255, 0.85);
  max-width: 52ch;
  margin: 0 auto 2em;
}

/* ---------- Footer ---------- */

.site-footer {
  background: var(--bg-alt);
  padding: 32px 0;
  border-top: 1px solid var(--border);
}
.site-footer p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-soft);
  text-align: center;
}

/* ---------- Scroll reveal ---------- */

.has-js .reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.has-js .reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}
.has-js .hero .reveal {
  opacity: 1;
  transform: none;
  transition: none;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .has-js .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .feature-card, .btn, .states__tab, .states__dot {
    transition: none;
  }
}

/* ---------- Responsive tuning ---------- */

@media (max-width: 1024px) {
  section { padding: 72px 0; }
}

@media (max-width: 640px) {
  .wrap { padding: 0 18px; }
  section { padding: 56px 0; }
  .hero__inner { padding-top: 72px; padding-bottom: 72px; }
  .point, .feature-card { padding: 24px; }
}

@media (max-width: 380px) {
  .states__tab { padding: 10px 16px; font-size: 0.85rem; }
}
