/* Epinit site — tokens from design/TOKENS.md, dark editorial. No trackers. */
@font-face {
  font-family: Inter;
  src: url("/assets/fonts/inter.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: Newsreader;
  src: url("/assets/fonts/newsreader.woff2") format("woff2");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: Newsreader;
  src: url("/assets/fonts/newsreader-italic.woff2") format("woff2");
  font-weight: 200 800;
  font-style: italic;
  font-display: swap;
}

:root {
  --bg: #000000;
  --card: #1C1C1E;
  --fill: #2C2C2E;
  --ink: #F5F5F7;
  --ink-inv: #1D1D1F;
  --secondary: #A1A1A6;
  --tertiary: #8E8E93;
  --hairline: rgba(255, 255, 255, 0.16);
  --stroke: rgba(255, 255, 255, 0.10);
  --funny: #FFC933;
  --love: #FF6B88;
  --wow: #4F97FF;
  --inspired: #34C77B;
  --sad: #9A8AF5;
  --link: #4DA3FF;
  --max: 1120px;
  --prose: 38rem;
  --radius-card: 22px;
  --radius-btn: 16px;
  --sans: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --serif: Newsreader, "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { margin: 0; padding: 0; background: var(--bg); color: var(--ink); }
body {
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.5;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; }
a { color: inherit; }
.skip {
  position: absolute; left: 12px; top: -40px; background: var(--ink); color: var(--ink-inv);
  padding: 8px 12px; border-radius: 8px; z-index: 20;
}
.skip:focus { top: 12px; }

.color-bar {
  height: 3px;
  background: linear-gradient(90deg, var(--funny), var(--love), var(--wow), var(--inspired), var(--sad));
}

.site-header, .site-footer, main { width: min(var(--max), calc(100% - 40px)); margin-inline: auto; }
.site-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 22px 0 18px;
  gap: 24px;
}
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); flex-shrink: 0; }
.logo img { display: block; height: 40px; width: auto; }
.site-header nav { display: flex; flex-wrap: wrap; gap: 8px 22px; justify-content: flex-end; }
.site-header nav a, .site-footer nav a {
  color: var(--secondary);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.01em;
}
.site-header nav a:hover, .site-footer nav a:hover, .site-header nav a:focus-visible { color: var(--ink); }

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(280px, 0.85fr);
  gap: 56px;
  align-items: center;
  padding: 48px 0 72px;
}
.hero h1 {
  font-family: var(--serif);
  font-weight: 450;
  font-size: clamp(2.4rem, 5.2vw, 4.25rem);
  line-height: 1.08;
  letter-spacing: -0.022em;
  margin: 0 0 20px;
}
.lede {
  font-size: 18px;
  line-height: 1.55;
  color: var(--secondary);
  max-width: 36rem;
  margin: 0 0 32px;
}
.cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  height: 52px; padding: 0 22px;
  border-radius: var(--radius-btn);
  background: var(--ink); color: var(--ink-inv);
  font-weight: 600; font-size: 17px; letter-spacing: -0.02em;
  text-decoration: none;
}
.btn:hover { filter: brightness(0.95); }
.btn:focus-visible { outline: 2px solid var(--wow); outline-offset: 3px; }

.store-badge {
  display: inline-flex; align-items: center; gap: 10px;
  height: 52px; padding: 0 16px 0 14px;
  border-radius: 12px;
  border: 1px solid var(--hairline);
  background: #161618;
  color: var(--ink);
  text-decoration: none;
  pointer-events: none;
}
.store-badge svg { width: 22px; height: 22px; flex-shrink: 0; }
.store-badge .stack { display: flex; flex-direction: column; line-height: 1.1; }
.store-badge .kicker { font-size: 9px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--tertiary); font-weight: 600; }
.store-badge .name { font-size: 15px; font-weight: 600; letter-spacing: -0.02em; }

.device-wrap {
  position: relative;
  display: flex; justify-content: center;
  isolation: isolate;
}
.device-wrap::before {
  content: "";
  position: absolute;
  inset: 8% 4% 12%;
  background:
    radial-gradient(ellipse at 20% 30%, rgba(255, 201, 51, 0.28), transparent 55%),
    radial-gradient(ellipse at 80% 20%, rgba(255, 107, 136, 0.22), transparent 50%),
    radial-gradient(ellipse at 70% 80%, rgba(79, 151, 255, 0.22), transparent 55%),
    radial-gradient(ellipse at 20% 85%, rgba(154, 138, 245, 0.2), transparent 50%);
  filter: blur(28px);
  z-index: -1;
}
.device {
  width: min(100%, 320px);
  background: #0a0a0b;
  border-radius: 44px;
  padding: 10px;
  border: 1px solid var(--hairline);
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.55);
}
.device img { display: block; width: 100%; height: auto; border-radius: 34px; }

.section { padding: 24px 0 80px; }
.section h2 {
  font-family: var(--serif);
  font-weight: 450;
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  letter-spacing: -0.02em;
  margin: 0 0 8px;
}
.section .intro { color: var(--secondary); margin: 0 0 36px; max-width: 36rem; }

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.step {
  background: var(--card);
  border: 1px solid var(--stroke);
  border-radius: var(--radius-card);
  padding: 24px 22px 26px;
  min-height: 100%;
}
.step .num {
  font-family: var(--serif);
  font-size: 28px;
  line-height: 1;
  margin-bottom: 14px;
}
.step:nth-child(1) .num { color: var(--funny); }
.step:nth-child(2) .num { color: var(--love); }
.step:nth-child(3) .num { color: var(--wow); }
.step h3 { margin: 0 0 8px; font-size: 17px; font-weight: 600; letter-spacing: -0.02em; }
.step p { margin: 0; color: var(--secondary); font-size: 15px; line-height: 1.5; }

.emotions {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
}
.emotion {
  background: var(--card);
  border: 1px solid var(--stroke);
  border-radius: var(--radius-card);
  padding: 22px 12px 18px;
  text-align: center;
}
.mark {
  width: 56px; height: 56px; border-radius: 50%;
  display: grid; place-items: center;
  margin: 0 auto 12px;
}
.mark svg { width: 28px; height: 28px; }
.emotion h3 { margin: 0; font-size: 14px; font-weight: 600; }
.e-funny .mark { background: var(--funny); }
.e-love .mark { background: var(--love); }
.e-wow .mark { background: var(--wow); }
.e-inspired .mark { background: var(--inspired); }
.e-sad .mark { background: var(--sad); }

.beta {
  margin: 8px 0 80px;
  background: var(--card);
  border: 1px solid var(--stroke);
  border-radius: 34px;
  padding: 40px 36px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: center;
}
.beta h2 { margin: 0 0 8px; }
.beta p { margin: 0; color: var(--secondary); max-width: 36rem; }
.beta .cta-row { margin-top: 4px; }

.legal {
  width: min(var(--prose), 100%);
  padding: 36px 0 80px;
}
.legal h1 {
  font-family: var(--serif);
  font-weight: 450;
  font-size: clamp(2.1rem, 4vw, 3rem);
  letter-spacing: -0.02em;
  margin: 0 0 10px;
  line-height: 1.1;
}
.legal .updated { color: var(--tertiary); font-size: 14px; margin: 0 0 32px; }
.legal h2 { font-size: 1.15rem; font-weight: 600; letter-spacing: -0.02em; margin: 2.1em 0 0.6em; }
.legal p, .legal li { color: #d2d2d7; }
.legal p { margin: 0 0 1em; }
.legal ul, .legal ol { margin: 0 0 1em; padding-left: 1.2em; }
.legal li { margin: 0 0 0.45em; }
.legal a { color: var(--link); text-decoration: underline; text-underline-offset: 3px; }
.legal a[href^="mailto"] { color: var(--link); }

.site-footer {
  border-top: 1px solid var(--hairline);
  padding: 28px 0 48px;
}
.footer-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.logo-foot img { height: 36px; width: 36px; }
.logo-foot span { font-weight: 600; letter-spacing: -0.02em; }
.site-footer nav { display: flex; gap: 20px; }
.fine { margin: 16px 0 0; color: var(--tertiary); font-size: 13px; }

@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; gap: 40px; padding: 28px 0 56px; }
  .device-wrap { order: -1; }
  .device { width: min(100%, 280px); }
  .steps, .emotions { grid-template-columns: 1fr 1fr; }
  .emotions .emotion:last-child { grid-column: 1 / -1; max-width: 50%; justify-self: center; width: 100%; }
  .beta { grid-template-columns: 1fr; padding: 28px 22px; }
}
@media (max-width: 640px) {
  .site-header, .site-footer, main { width: min(var(--max), calc(100% - 32px)); }
  .site-header { flex-direction: column; align-items: flex-start; gap: 14px; padding-top: 16px; }
  .site-header nav { gap: 8px 16px; justify-content: flex-start; }
  .steps, .emotions { grid-template-columns: 1fr; }
  .emotions .emotion:last-child { max-width: none; }
  .hero h1 { font-size: 2.25rem; }
}
