/* Eyva launch site. One file, no web fonts, no external requests.
   Light and dark follow the system; the button in the header overrides it.
   The hero is always pure black: the tree is drawn for #000. */

:root {
  --bg: #fafaf7;
  --surface: #ffffff;
  --text: #0e1015;
  --muted: #4e5666;
  --line: #e2e4e9;
  --accent: #0b7285;
  --accent-ink: #ffffff;
  --focus: #5b4bdb;
  --tbd: #b8285f;
  --night: #000000;
  --night-text: #eef0f4;
  --night-muted: #a7afbd;
  --night-accent: #5dd8f0;
  --radius: 18px;
  --wrap: 1120px;
  color-scheme: light;
}

:root[data-theme="dark"] {
  --bg: #000000;
  --surface: #0b0d12;
  --text: #eef0f4;
  --muted: #a7afbd;
  --line: #1f2433;
  --accent: #5dd8f0;
  --accent-ink: #00161b;
  --focus: #a99eff;
  --tbd: #ff86b5;
  color-scheme: dark;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #000000;
    --surface: #0b0d12;
    --text: #eef0f4;
    --muted: #a7afbd;
    --line: #1f2433;
    --accent: #5dd8f0;
    --accent-ink: #00161b;
    --focus: #a99eff;
    --tbd: #ff86b5;
    color-scheme: dark;
  }
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 1.0625rem/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; height: auto; }

a { color: inherit; text-underline-offset: .18em; }

:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 6px; }

h1, h2, h3 { line-height: 1.12; letter-spacing: -.02em; margin: 0; font-weight: 680; }
h1 { font-size: clamp(2.3rem, 6.4vw, 4.6rem); }
h2 { font-size: clamp(1.8rem, 4vw, 2.8rem); }
h3 { font-size: 1.2rem; letter-spacing: -.01em; }
p { margin: 0; }

.wrap { width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto; }

.skip {
  position: absolute; left: 1rem; top: -4rem; z-index: 10;
  background: var(--accent); color: var(--accent-ink);
  padding: .6rem 1rem; border-radius: 10px; font-weight: 600; text-decoration: none;
}
.skip:focus { top: 1rem; }

/* Header */
.top { background: var(--bg); border-bottom: 1px solid var(--line); }
.top--night { background: var(--night); color: var(--night-text); border-bottom-color: #14171f; --focus: #a99eff; }
.top__in { display: flex; align-items: center; gap: 1rem; min-height: 64px; }
.brand { display: inline-flex; align-items: center; gap: .55rem; font-weight: 700; font-size: 1.125rem; text-decoration: none; letter-spacing: -.01em; }
.brand img { width: 28px; height: 28px; border-radius: 7px; }
.nav { margin-left: auto; }
.nav ul { display: flex; gap: .25rem; list-style: none; margin: 0; padding: 0; }
.nav a { display: inline-block; padding: .45rem .7rem; border-radius: 10px; text-decoration: none; font-size: .975rem; color: inherit; opacity: .82; }
.nav a:hover { opacity: 1; }
.nav a[aria-current="page"] { opacity: 1; font-weight: 600; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: .45em; }
.tools { display: flex; align-items: center; gap: .15rem; }
.theme {
  display: inline-grid; place-items: center; width: 40px; height: 40px;
  border: 0; border-radius: 10px; background: transparent; color: inherit; cursor: pointer; opacity: .82;
}
.theme:hover { opacity: 1; }
.theme svg { width: 20px; height: 20px; }
.theme[hidden] { display: none; }
.langmenu { position: relative; }
.langmenu summary {
  list-style: none; cursor: pointer; padding: .45rem .7rem; border-radius: 10px; white-space: nowrap;
  display: inline-flex; align-items: center; font-weight: 650; font-size: .9rem; opacity: .82;
}
.langmenu summary::-webkit-details-marker { display: none; }
.langmenu summary::after { content: ""; display: inline-block; margin-left: .35rem; border: 4px solid transparent; border-top-color: currentColor; transform: translateY(2px); }
.langmenu summary:hover, .langmenu[open] summary { opacity: 1; }
.langmenu ul {
  position: absolute; right: 0; top: calc(100% + 6px); z-index: 20; min-width: 10rem;
  list-style: none; margin: 0; padding: .35rem; border-radius: 12px;
  background: var(--surface); color: var(--text); border: 1px solid var(--line);
}
.top--night .langmenu ul { background: #0b0d12; color: var(--night-text); border-color: #1f2433; }
.langmenu a { display: block; padding: .5rem .75rem; border-radius: 8px; text-decoration: none; }
.langmenu a:hover { background: color-mix(in srgb, currentColor 10%, transparent); }
.langmenu a[aria-current="true"] { font-weight: 650; }

@media (max-width: 560px) {
  .brand span { display: none; }
  .nav a, .langmenu summary { padding: .45rem .45rem; font-size: .92rem; }
  .top__in { gap: .25rem; }
}

/* Buttons */
.btns { display: flex; flex-wrap: wrap; gap: .75rem; }
.btn {
  display: inline-flex; align-items: center; gap: .5rem; min-height: 48px;
  padding: .7rem 1.35rem; border-radius: 999px; font-weight: 620; text-decoration: none;
  background: var(--accent); color: var(--accent-ink); border: 1px solid transparent;
  transition: transform .2s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn--ghost { background: transparent; color: inherit; border-color: currentColor; }
.btn--todo { background: transparent; color: var(--muted); border: 1px dashed var(--line); cursor: not-allowed; }
.btn--todo:hover { transform: none; }

.tbd {
  display: inline-block; font: 650 .7rem/1 ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: .04em; padding: .35em .6em; border-radius: 999px;
  color: var(--tbd); border: 1px dashed currentColor; vertical-align: middle;
}

/* Hero (always black) */
.hero {
  position: relative; overflow: hidden; isolation: isolate;
  background: var(--night); color: var(--night-text);
  padding: clamp(1rem, 3vw, 2rem) 0 clamp(4rem, 9vw, 6.5rem);
  text-align: center;
  --accent: var(--night-accent); --accent-ink: #00161b; --focus: #a99eff; --muted: var(--night-muted);
}
.hero__art { width: min(500px, 84vw, 50vh); margin: 0 auto; animation: rise 1.4s cubic-bezier(.2,.7,.2,1) both; }
.hero__art img { transform-origin: 50% 90%; animation: breathe 11s ease-in-out 1.4s infinite; }
.hero__copy { display: grid; justify-items: center; gap: .9rem; margin-top: clamp(.75rem, 2vw, 1.5rem); animation: rise 1.2s cubic-bezier(.2,.7,.2,1) .35s both; }
.eyebrow { font-size: .9rem; font-weight: 600; letter-spacing: .06em; color: var(--night-accent); }
.wordmark { font-size: 1.15rem; font-weight: 700; letter-spacing: .02em; color: var(--night-muted); }
.hero h1 { max-width: 16ch; text-wrap: balance; }
.hero .lead { max-width: 34ch; color: var(--night-muted); font-size: clamp(1.1rem, 2.2vw, 1.3rem); }
.hero .btns { justify-content: center; margin-top: .5rem; }

/* Slow points of light, outer quarters only, never behind text. No glow. */
.seeds { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.seeds span {
  position: absolute; width: 5px; height: 5px; border-radius: 50%; opacity: 0;
  animation: drift 17s ease-in-out infinite;
}
.seeds span:nth-child(1) { left: 7%;  top: 18%; background: #8ff7e6; animation-delay: 0s; }
.seeds span:nth-child(2) { left: 13%; top: 52%; background: #5dd8f0; animation-delay: -4s; animation-duration: 21s; width: 4px; height: 4px; }
.seeds span:nth-child(3) { left: 5%;  top: 78%; background: #7c6bff; animation-delay: -9s; }
.seeds span:nth-child(4) { right: 8%; top: 24%; background: #ff5f9e; animation-delay: -2s; animation-duration: 19s; }
.seeds span:nth-child(5) { right: 14%; top: 60%; background: #7c6bff; animation-delay: -7s; width: 4px; height: 4px; }
.seeds span:nth-child(6) { right: 6%; top: 82%; background: #8ff7e6; animation-delay: -12s; animation-duration: 23s; }
.seeds span:nth-child(7) { left: 20%; top: 8%;  background: #5dd8f0; animation-delay: -15s; width: 3px; height: 3px; }
.seeds span:nth-child(8) { right: 22%; top: 10%; background: #ff5f9e; animation-delay: -6s; width: 3px; height: 3px; animation-duration: 25s; }

@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes breathe {
  0%, 100% { transform: rotate(-.35deg) scale(1); }
  50% { transform: rotate(.35deg) scale(1.012); }
}
@keyframes drift {
  0%, 100% { opacity: 0; transform: translateY(10px); }
  30% { opacity: .85; }
  60% { opacity: .5; transform: translateY(-16px); }
}

/* Sections */
.section { padding-block: clamp(3.5rem, 8vw, 6.5rem); }
.section + .section { border-top: 1px solid var(--line); }
.section__head { display: grid; gap: .75rem; margin-bottom: clamp(1.75rem, 4vw, 2.75rem); max-width: 46rem; }
.section__head p { color: var(--muted); font-size: 1.125rem; }

.page-head { padding-block: clamp(3rem, 7vw, 5rem) clamp(1.5rem, 4vw, 2.5rem); display: grid; gap: .9rem; }
.page-head p { color: var(--muted); font-size: clamp(1.1rem, 2vw, 1.25rem); max-width: 40rem; }

.grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); }
.grid--4 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); }

.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.5rem; display: grid; gap: .6rem; align-content: start;
}
.card p { color: var(--muted); }
.card .icon { width: 28px; height: 28px; color: var(--accent); margin-bottom: .35rem; }
.card .icon svg { width: 28px; height: 28px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

/* Two brains */
.brains { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.brain { padding: clamp(1.5rem, 3vw, 2.25rem); }
.brain__num { font-size: clamp(3rem, 7vw, 4.5rem); font-weight: 760; line-height: 1; letter-spacing: -.04em; color: var(--accent); }
.brain h3 { font-size: 1.35rem; }
.brain strong { font-weight: 640; color: var(--text); }

/* Honest line */
.honest { display: grid; gap: .9rem; max-width: 46rem; }
.honest p { font-size: clamp(1.2rem, 2.6vw, 1.55rem); line-height: 1.45; letter-spacing: -.01em; }
.honest a { color: var(--accent); font-weight: 600; }

.cta { text-align: center; display: grid; justify-items: center; gap: 1rem; }
.cta p { color: var(--muted); font-size: 1.125rem; }
.cta .btns { justify-content: center; margin-top: .5rem; }

/* Pricing */
.notice {
  display: flex; flex-wrap: wrap; align-items: center; gap: .6rem;
  padding: .85rem 1.1rem; border: 1px dashed var(--tbd); border-radius: 14px; color: var(--text);
  margin-bottom: 1.5rem;
}
.plan { gap: 1rem; }
.plan__tag { color: var(--muted); font-size: .95rem; }
.price-block { margin-top: clamp(2rem, 5vw, 3rem); }
.price-block .section__head { margin-bottom: 1.25rem; }
.price-block h2 { display: flex; align-items: center; flex-wrap: wrap; gap: .6rem; font-size: clamp(1.5rem, 3vw, 2rem); }
.plans-3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); }
.amount { display: flex; align-items: baseline; gap: .4rem; padding-block: .85rem; border-block: 1px solid var(--line); }
.amount__num { font-size: clamp(1.9rem, 4vw, 2.4rem); font-weight: 720; letter-spacing: -.02em; }
.amount small { color: var(--muted); font-size: .95rem; }
.first { color: var(--accent); font-weight: 600; font-size: .95rem; }
.ticks { list-style: none; margin: 0; padding: 0; display: grid; gap: .4rem; color: var(--muted); }
.ticks li { padding-left: 1.4rem; position: relative; }
.ticks li::before { content: ""; position: absolute; left: .1rem; top: .6em; width: .55rem; height: .55rem; border-radius: 50%; border: 2px solid var(--accent); }
.fine { color: var(--muted); margin-top: 1.75rem; display: grid; gap: .35rem; }
.fine a { color: var(--accent); }

/* Download */
.dl { gap: .9rem; }
.dl__os { font-size: .85rem; font-weight: 600; letter-spacing: .05em; color: var(--accent); }
.dl .btns { margin-top: .4rem; }
.soon { color: var(--muted); font-weight: 600; }

/* Support / FAQ */
.mail { font-size: clamp(1.3rem, 3vw, 1.8rem); font-weight: 680; color: var(--accent); text-decoration: none; letter-spacing: -.01em; word-break: break-word; }
.mail:hover { text-decoration: underline; }
.faq { display: grid; gap: .75rem; max-width: 50rem; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; }
.faq summary {
  cursor: pointer; list-style: none; padding: 1.1rem 1.25rem; font-weight: 620; font-size: 1.075rem;
  display: flex; justify-content: space-between; gap: 1rem; align-items: center;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { display: inline-block; content: "+"; font-size: 1.4rem; line-height: 1; color: var(--accent); transition: transform .2s ease; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 1.25rem 1.2rem; color: var(--muted); }
.faq details a { color: var(--accent); }

/* Legal */
.links { list-style: none; margin: 0; padding: 0; display: grid; gap: .75rem; max-width: 40rem; }
.links a { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1.15rem 1.3rem; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); text-decoration: none; font-weight: 620; }
.links a:hover { border-color: var(--accent); }
.links a::after { content: "→"; color: var(--accent); }
.draft { max-width: 44rem; display: grid; gap: 1rem; color: var(--muted); }
.draft a { color: var(--accent); }

/* Footer */
.foot { border-top: 1px solid var(--line); padding-block: 2.75rem 2.25rem; color: var(--muted); font-size: .95rem; }
.foot__grid { display: grid; gap: 1.75rem; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.foot h2 { font-size: .85rem; letter-spacing: .05em; color: var(--text); margin-bottom: .6rem; font-weight: 650; }
.foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .35rem; }
.foot a { text-decoration: none; }
.foot a:hover { color: var(--text); text-decoration: underline; }
.foot__base { margin-top: 2.25rem; display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; justify-content: space-between; }

/* 404 */
.lost { min-height: 60vh; display: grid; place-content: center; text-align: center; gap: 1rem; padding-block: 4rem; }
.lost p { color: var(--muted); }
.lost .btns { justify-content: center; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .seeds { display: none; }
}

@media print {
  .top, .foot, .seeds, .btns { display: none; }
  .hero { background: #fff; color: #000; }
}

/* Small helpers (kept out of HTML so the CSP can forbid inline styles) */
.h-card { font-size: 1.5rem; }
.h-card--sm { font-size: 1.25rem; }
.mt { margin-top: 1rem; }
.section--tight { padding-top: 2rem; }
.lost__mark { margin: 0 auto; border-radius: 14px; }
.imprint h2 { color: var(--text); }
.imprint p { color: var(--text); }
