/*
 * EVROY design system — shared by evroy.eu and every Evroy product site
 * (evydo.com, nova.evydo.com, melyvo.com). Calm, white, typographic.
 * Copy this file verbatim into a product site; a product only sets
 * --ev-accent / --ev-accent-ink / --ev-accent-soft on <html> or <body>.
 * Source of truth: evroy-tech/evroy-website  public-web/assets/evroy.css
 * Version: 1.1.0 (2026-10-07)
 */

:root {
  color-scheme: only light;

  /* Neutrals */
  --ev-canvas: #ffffff;
  --ev-paper: #f6f6f3;
  --ev-ink: #15181d;
  --ev-ink-2: #4f5661;
  --ev-ink-3: #656b75;
  --ev-line: #e6e7e9;
  --ev-line-strong: #d3d5d9;

  /* Brand + product accents (fixed, shared by all sites) */
  --ev-evroy: #15181d;
  --ev-evydo: #435edb;
  --ev-evydo-ink: #3249b8;
  --ev-evydo-soft: #eef1fd;
  --ev-nova: #17174b;
  --ev-nova-ink: #17174b;
  --ev-nova-soft: #fdf6dd;
  --ev-melyvo: #635bff;
  --ev-melyvo-ink: #5147d9;
  --ev-melyvo-soft: #f1f0ff;

  /* Active accent: Evroy uses ink. Product sites override these three. */
  --ev-accent: var(--ev-evroy);
  --ev-accent-ink: var(--ev-evroy);
  --ev-accent-soft: var(--ev-paper);
  --ev-on-accent: #ffffff;

  --ev-focus: #435edb;

  /* Type: platform fonts, no external requests */
  --ev-font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --ev-font-display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Inter", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --ev-mono: ui-monospace, "SF Mono", "JetBrains Mono", Menlo, Consolas, monospace;

  /* Spacing: 4 8 16 24 32 48 64 96 128 */
  --ev-s1: 4px; --ev-s2: 8px; --ev-s3: 16px; --ev-s4: 24px; --ev-s5: 32px;
  --ev-s6: 48px; --ev-s7: 64px; --ev-s8: 96px; --ev-s9: 128px;

  --ev-radius: 16px;
  --ev-radius-lg: 24px;
  --ev-max: 1120px;
  --ev-read: 680px;
}



/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  background: var(--ev-canvas);
  color: var(--ev-ink);
  font: 400 17px/1.55 var(--ev-font);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
main { flex: 1; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--ev-focus); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { font-family: var(--ev-font-display); color: var(--ev-ink); margin: 0; font-weight: 600; text-wrap: balance; }
h1 { font-size: clamp(40px, 6.4vw, 76px); line-height: 1.03; letter-spacing: -0.035em; }
h2 { font-size: clamp(28px, 3.6vw, 44px); line-height: 1.1; letter-spacing: -0.025em; }
h3 { font-size: 21px; line-height: 1.25; letter-spacing: -0.01em; }
p { margin: 0; }
.ev-wrap { width: min(100% - 32px, var(--ev-max)); margin-inline: auto; }
.ev-skip { position: absolute; left: -9999px; top: 8px; z-index: 10; padding: 8px 16px; background: var(--ev-ink); color: var(--ev-canvas); border-radius: 8px; }
.ev-skip:focus { left: 16px; }

/* ---------- Family bar (top strip on every product site) ---------- */
.ev-family { border-bottom: 1px solid var(--ev-line); background: var(--ev-paper); font-size: 13px; color: var(--ev-ink-2); }
.ev-family .ev-wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 36px; }
.ev-family a { text-decoration: none; }
.ev-family a:hover { color: var(--ev-ink); }
.ev-family__by strong { color: var(--ev-ink); font-weight: 600; letter-spacing: 0.08em; }
/* ---------- Header ---------- */
.ev-header { position: sticky; top: 0; z-index: 5; background: color-mix(in srgb, var(--ev-canvas) 88%, transparent); -webkit-backdrop-filter: saturate(180%) blur(16px); backdrop-filter: saturate(180%) blur(16px); border-bottom: 1px solid var(--ev-line); }
.ev-header .ev-wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 64px; }
.ev-logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 650; letter-spacing: 0.14em; font-size: 15px; }
.ev-logo svg { width: 26px; height: 26px; flex: none; }
.ev-logo small { font-weight: 450; letter-spacing: 0.02em; color: var(--ev-ink-3); font-size: 14px; }
.ev-nav { display: flex; align-items: center; gap: 28px; list-style: none; margin: 0; padding: 0; font-size: 15px; }
.ev-nav a { text-decoration: none; color: var(--ev-ink-2); }
.ev-nav a:hover, .ev-nav [aria-current="page"] { color: var(--ev-ink); }
.ev-menu { display: none; }
@media (max-width: 760px) {
  .ev-header nav > .ev-nav { display: none; }
  .ev-menu { display: block; position: relative; }
  .ev-menu summary { list-style: none; cursor: pointer; padding: 10px 16px; border: 1px solid var(--ev-line-strong); border-radius: 999px; font-size: 15px; }
  .ev-menu summary::-webkit-details-marker { display: none; }
  .ev-menu .ev-nav { display: none; }
  .ev-menu[open] .ev-nav { display: flex; flex-direction: column; align-items: stretch; gap: 0; position: absolute; right: 0; top: calc(100% + 8px); min-width: 220px; padding: 8px; background: var(--ev-canvas); border: 1px solid var(--ev-line); border-radius: var(--ev-radius); box-shadow: 0 12px 32px rgb(0 0 0 / 0.08); }
  .ev-menu[open] .ev-nav a { display: block; padding: 12px 14px; border-radius: 10px; }
  .ev-menu[open] .ev-nav a:hover { background: var(--ev-paper); }
}

/* ---------- Sections ---------- */
.ev-section { padding-block: var(--ev-s8); }
.ev-section--paper { background: var(--ev-paper); }
.ev-eyebrow { font-size: 13px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ev-accent-ink); margin-bottom: var(--ev-s3); }
.ev-lead { font-size: clamp(19px, 1.7vw, 22px); line-height: 1.5; color: var(--ev-ink-2); max-width: 42ch; }
.ev-muted { color: var(--ev-ink-2); }
.ev-small { font-size: 14px; color: var(--ev-ink-3); }
.ev-head { display: grid; gap: var(--ev-s3); margin-bottom: var(--ev-s6); max-width: 760px; }
.ev-head .ev-eyebrow { margin-bottom: 0; }
.ev-split { display: grid; grid-template-columns: 1fr 1fr; gap: var(--ev-s6); align-items: start; }
@media (max-width: 820px) { .ev-split { grid-template-columns: 1fr; gap: var(--ev-s5); } }

/* ---------- Hero ---------- */
.ev-hero { padding-block: clamp(64px, 11vw, 144px) clamp(48px, 8vw, 112px); }
.ev-hero--short { padding-bottom: var(--ev-s6); }
.ev-hero h1 { max-width: 15ch; }
.ev-hero .ev-lead { margin-top: var(--ev-s4); }
.ev-hero__split { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: var(--ev-s6); align-items: center; }
.ev-hero__art { justify-self: center; width: min(100%, 360px); }
@media (max-width: 860px) { .ev-hero__split { grid-template-columns: 1fr; } .ev-hero__art { width: min(60%, 260px); order: -1; justify-self: start; } }

/* ---------- Buttons ---------- */
.ev-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: var(--ev-s5); align-items: center; }
.ev-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 22px; border-radius: 999px; font: 500 16px/1 var(--ev-font); text-decoration: none; border: 1px solid transparent; transition: background-color .15s, border-color .15s, color .15s; }
.ev-btn--primary { background: var(--ev-ink); color: var(--ev-canvas); }
.ev-btn--primary:hover { background: color-mix(in srgb, var(--ev-ink) 84%, var(--ev-canvas)); }
.ev-btn--accent { background: var(--ev-accent); color: var(--ev-on-accent); }
.ev-btn--accent:hover { background: color-mix(in srgb, var(--ev-accent) 86%, #000); }
.ev-btn--ghost { border-color: var(--ev-line-strong); color: var(--ev-ink); }
.ev-btn--ghost:hover { border-color: var(--ev-ink); }
.ev-link { display: inline-flex; align-items: center; gap: 6px; font-weight: 500; text-decoration: none; color: var(--ev-accent-ink); }
.ev-link:hover { text-decoration: underline; }
.ev-link::after { content: "→"; transition: transform .15s; }
.ev-link:hover::after { transform: translateX(3px); }

/* ---------- Product cards ---------- */
.ev-grid { display: grid; gap: var(--ev-s4); }
.ev-grid--3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 960px) { .ev-grid--3 { grid-template-columns: 1fr; max-width: 560px; } }

.ev-product { --p-ink: var(--ev-ink); --p-soft: var(--ev-paper);
  display: flex; flex-direction: column; gap: var(--ev-s3); padding: var(--ev-s4); border: 1px solid var(--ev-line); border-radius: var(--ev-radius-lg); background: var(--ev-canvas); text-decoration: none; transition: border-color .2s, transform .2s, box-shadow .2s; }
a.ev-product:hover { border-color: var(--ev-line-strong); transform: translateY(-2px); box-shadow: 0 16px 40px rgb(0 0 0 / 0.06); }
.ev-product--evydo { --p-ink: var(--ev-evydo-ink); --p-soft: var(--ev-evydo-soft); }
.ev-product--nova { --p-ink: var(--ev-nova-ink); --p-soft: var(--ev-nova-soft); }
.ev-product--melyvo { --p-ink: var(--ev-melyvo-ink); --p-soft: var(--ev-melyvo-soft); }
.ev-product__visual { position: relative; display: grid; place-items: center; aspect-ratio: 16 / 10; max-width: 100%; border-radius: var(--ev-radius); background: var(--p-soft); overflow: hidden; }
.ev-product__visual img { position: absolute; inset: 8%; width: 84%; height: 84%; object-fit: contain; }
.ev-product__word { font: 600 44px/1 var(--ev-font-display); letter-spacing: -0.03em; color: var(--p-ink); }
.ev-product__name { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: var(--ev-s2); }
.ev-product p { color: var(--ev-ink-2); }
.ev-product .ev-link { color: var(--p-ink); margin-top: auto; padding-top: var(--ev-s2); }

.ev-tag { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; font-size: 12.5px; font-weight: 550; background: var(--ev-paper); color: var(--ev-ink-2); border: 1px solid var(--ev-line); white-space: nowrap; }
.ev-tag::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.ev-tag--live { color: #0f766e; }
.ev-tag--pilot { color: #a15c07; }
.ev-tag--dev { color: var(--ev-ink-3); }


/* ---------- Video band (Nova night sky) ---------- */
.ev-video-band { padding-block: var(--ev-s8); background: radial-gradient(120% 90% at 80% 10%, #2a3f86 0%, #17174b 55%, #0d0f2e 100%); color: #fff; }
.ev-video-band__inner { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: var(--ev-s7); align-items: center; }
.ev-video-band h2 { color: #fff; }
.ev-video-band p { color: rgb(255 255 255 / 0.78); max-width: 46ch; }
.ev-video-band .ev-eyebrow { color: #f9e6aa; }
.ev-video-band__copy { display: grid; gap: var(--ev-s3); }
.ev-video { display: block; width: 100%; height: auto; aspect-ratio: 9 / 16; border-radius: 32px; border: 6px solid rgb(255 255 255 / 0.12); background: #0d0f2e; box-shadow: 0 32px 80px rgb(0 0 0 / 0.45); }
@media (max-width: 760px) { .ev-video-band__inner { grid-template-columns: minmax(0, 1fr); } .ev-video { width: min(100%, 300px); justify-self: center; } }

/* ---------- Feature list / facts ---------- */
.ev-features { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--ev-s5) var(--ev-s6); list-style: none; padding: 0; margin: 0; }
.ev-features li { display: grid; gap: 8px; align-content: start; padding-top: var(--ev-s3); border-top: 1px solid var(--ev-line-strong); }
.ev-features p { color: var(--ev-ink-2); }
@media (max-width: 900px) { .ev-features { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .ev-features { grid-template-columns: 1fr; } }

.ev-facts { display: grid; grid-template-columns: max-content 1fr; gap: 14px 32px; margin: 0; }
.ev-facts dt { color: var(--ev-ink-3); }
.ev-facts dd { margin: 0; }
@media (max-width: 560px) { .ev-facts { grid-template-columns: 1fr; gap: 2px; } .ev-facts dd { margin-bottom: 14px; } }

.ev-panel { padding: var(--ev-s5); border-radius: var(--ev-radius-lg); background: var(--ev-paper); }
.ev-contact { display: grid; gap: 6px; padding: var(--ev-s4) 0; border-top: 1px solid var(--ev-line); }
.ev-contact:last-child { border-bottom: 1px solid var(--ev-line); }
.ev-contact a { font-weight: 500; }
address { font-style: normal; }

/* ---------- Legal / long-form prose ---------- */
.ev-prose { max-width: var(--ev-read); }
.ev-prose h1 { font-size: clamp(36px, 5vw, 52px); margin-bottom: var(--ev-s3); }
.ev-prose h2 { font-size: 24px; letter-spacing: -0.015em; margin: var(--ev-s6) 0 var(--ev-s3); scroll-margin-top: 88px; }
.ev-prose h3 { font-size: 18px; margin: var(--ev-s4) 0 var(--ev-s2); scroll-margin-top: 88px; }
.ev-prose p, .ev-prose ul, .ev-prose ol { margin: 0 0 var(--ev-s3); color: var(--ev-ink-2); }
.ev-prose li { margin-bottom: 6px; }
.ev-prose strong { color: var(--ev-ink); font-weight: 600; }
.ev-prose table { width: 100%; border-collapse: collapse; margin: 0 0 var(--ev-s4); font-size: 15px; }
.ev-prose th, .ev-prose td { text-align: left; vertical-align: top; padding: 12px 12px 12px 0; border-bottom: 1px solid var(--ev-line); }
.ev-prose th { color: var(--ev-ink); font-weight: 600; }
.ev-prose td { color: var(--ev-ink-2); }
.ev-updated { font-size: 14px; color: var(--ev-ink-3); }
.ev-toc { display: flex; flex-wrap: wrap; gap: 8px; margin: var(--ev-s4) 0 0; padding: 0; list-style: none; }
.ev-prose .ev-toc li { margin: 0; }
.ev-toc a { display: inline-block; padding: 6px 12px; border: 1px solid var(--ev-line); border-radius: 999px; font-size: 14px; text-decoration: none; color: var(--ev-ink-2); }
.ev-toc a:hover { border-color: var(--ev-ink); color: var(--ev-ink); }

/* ---------- Footer ---------- */
.ev-footer { border-top: 1px solid var(--ev-line); padding-block: var(--ev-s7) var(--ev-s5); font-size: 15px; color: var(--ev-ink-2); }
.ev-footer__grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: var(--ev-s5); }
.ev-footer h2 { font-size: 13px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ev-ink); margin-bottom: var(--ev-s3); }
.ev-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.ev-footer a { text-decoration: none; }
.ev-footer a:hover { color: var(--ev-ink); text-decoration: underline; }
.ev-footer address { display: grid; gap: 4px; margin-top: var(--ev-s3); }
.ev-footer__legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: var(--ev-s6); padding-top: var(--ev-s4); border-top: 1px solid var(--ev-line); font-size: 13px; color: var(--ev-ink-3); }
@media (max-width: 860px) { .ev-footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .ev-footer__grid { grid-template-columns: 1fr; } }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; } }
@media print { .ev-header, .ev-family, .ev-footer__grid { display: none; } }

/* Two product cards; full-bleed scene art for Evydo Nova (same art as the evydo.com card). */
.ev-grid--2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 860px) { .ev-grid--2 { grid-template-columns: 1fr; max-width: 560px; } }
.ev-product__visual--scene { background: #17174b; }
.ev-product__visual--scene img { inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ev-hero__art--scene { width: min(100%, 560px); border-radius: var(--ev-radius-lg); }
.ev-product__visual { aspect-ratio: 1316 / 578; }
.ev-product--soon { border-style: dashed; }
.ev-product--soon .ev-product__visual { background: var(--ev-paper); }
.ev-product--soon .ev-product__word { font-size: 28px; color: var(--ev-ink-3); }

/* Real game screens (landscape tablet) on product pages. */
.ev-shots { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--ev-s5); }
.ev-shots figure { margin: 0; display: grid; gap: 10px; }
.ev-shots img { width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; border-radius: var(--ev-radius-lg); box-shadow: 0 20px 50px rgb(20 20 60 / 14%); background: #17174b; }
.ev-shots figcaption { color: var(--ev-ink-3); font-size: 14px; }
@media (max-width: 760px) { .ev-shots { grid-template-columns: 1fr; } }
