/* Avroleva brand site — see Design/BRAND.md for the palette and type rules. */

:root {
  --bg: #F6F5FC;
  --surface: #FFFFFF;
  --ink: #12122B;
  --muted: #5B5B7A;
  --accent: #4F3DF5;
  --accent-hover: #3B2EDB;
  --accent-soft: #E4E0FF;
  --mascot: #9B8CFF;
  --mascot-dark: #2B2468;
  --success: #2FBF8F;
  --warm: #FFC93C;

  --font-display: "Manrope", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Inter", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --font-pixel: "Silkscreen", "Courier New", monospace;

  --radius: 20px;
  --radius-sm: 12px;
  --shadow: 0 1px 2px rgba(18, 18, 43, 0.04), 0 12px 32px rgba(79, 61, 245, 0.08);
  --gutter: 16px;
  --container: 1120px;
}

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  overflow-x: hidden;
}

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

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-hover); text-decoration: underline; }

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

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -100px;
  z-index: 100;
  background: var(--ink);
  color: #fff;
  padding: 10px 16px;
  border-radius: 999px;
  font-weight: 500;
}
.skip-link:focus { top: 12px; }

/* ---------- Type ---------- */

.display {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.25rem, 5vw, 3.5rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 12px 0 20px;
}
.display-line { display: block; }
.accent { color: var(--accent); }

.h2 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.75rem, 3.6vw, 2.5rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 8px 0 12px;
}

.h3 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.25rem;
  line-height: 1.25;
  letter-spacing: -0.01em;
  margin: 0 0 8px;
}

.lead { font-size: 1.15rem; color: var(--muted); max-width: 34rem; margin: 0 0 28px; }
.lead-sm { color: var(--muted); margin: 0 0 20px; }

p { margin: 0; }
.card p, .step p { color: var(--muted); }

.px-label,
.px-tag,
.wordmark span,
.wordmark-text {
  font-family: var(--font-pixel);
  font-weight: 400;
  letter-spacing: 0.02em;
}

.px-label {
  font-size: 0.72rem;
  color: var(--accent);
  text-transform: lowercase;
  margin: 0 0 6px;
}

.px-tag {
  display: inline-block;
  font-size: 0.7rem;
  color: var(--accent);
  background: var(--accent-soft);
  padding: 4px 8px;
  border-radius: 6px;
  line-height: 1;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 12px 24px;
  border-radius: 999px;
  font-weight: 500;
  font-size: 1rem;
  line-height: 1.2;
  text-decoration: none;
  border: 0;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease, transform 0.15s ease;
}
.btn:hover { text-decoration: none; }

.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: var(--accent); color: #fff; }
.btn-dark:active { transform: translateY(1px); }

.btn-sm { min-height: 40px; padding: 8px 18px; font-size: 0.95rem; }

.btn-text { background: transparent; color: var(--ink); padding-inline: 8px; }
.btn-text:hover { color: var(--accent); }

.cta-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(246, 245, 252, 0.88);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(18, 18, 43, 0.06);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 64px;
  flex-wrap: wrap;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-size: 1.05rem;
  text-decoration: none;
}
.wordmark:hover { color: var(--accent); text-decoration: none; }
.wordmark-mark { width: 28px; height: 28px; image-rendering: pixelated; }

.nav-toggle {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 10px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  cursor: pointer;
}
.nav-toggle-bar {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--ink);
  border-radius: 2px;
}

.nav-menu {
  display: none;
  flex-basis: 100%;
  flex-direction: column;
  gap: 16px;
  padding: 8px 0 20px;
}
.nav-menu.is-open { display: flex; }

.nav-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.nav-links a {
  display: block;
  color: var(--ink);
  font-weight: 500;
  padding: 8px 0;
}
.nav-links a:hover { color: var(--accent); text-decoration: none; }

.lang-switch { display: inline-flex; align-items: center; gap: 6px; }
.lang-btn {
  background: transparent;
  border: 0;
  padding: 6px 8px;
  border-radius: 8px;
  font: inherit;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--muted);
  cursor: pointer;
}
.lang-btn:hover { color: var(--accent); }
.lang-btn[aria-pressed="true"] { color: var(--ink); background: var(--accent-soft); }
.lang-sep { color: var(--muted); font-size: 0.85rem; }

@media (min-width: 900px) {
  .nav { flex-wrap: nowrap; }
  .nav-toggle { display: none; }
  .nav-menu {
    display: flex;
    flex-basis: auto;
    flex-direction: row;
    align-items: center;
    gap: 28px;
    padding: 0;
  }
  .nav-links { flex-direction: row; gap: 24px; }
  .nav-links a { padding: 4px 0; }
}

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

.hero {
  display: grid;
  gap: 32px;
  padding-top: 48px;
  padding-bottom: 32px;
}

.hero-art {
  position: relative;
  margin: 0;
  display: flex;
  justify-content: center;
  align-items: center;
}
.hero-art img {
  width: min(240px, 60vw);
  image-rendering: pixelated;
}
.hero-art .px-tag {
  position: absolute;
  top: 0;
  right: 8%;
}

@media (min-width: 900px) {
  .hero {
    grid-template-columns: 1.45fr 1fr;
    align-items: center;
    padding-top: 80px;
    padding-bottom: 56px;
  }
  .hero-art img { width: min(320px, 28vw); }
  .hero-art .px-tag { top: 8px; right: 12%; }
}

/* ---------- Proof strip ---------- */

.proof { padding-top: 24px; padding-bottom: 24px; }

.proof-grid {
  list-style: none;
  margin: 0;
  padding: 24px;
  display: grid;
  gap: 20px;
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.proof-item { display: flex; flex-direction: column; gap: 2px; }
.proof-num {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.25rem, 5vw, 3.25rem);
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--accent);
}
.proof-cap { color: var(--muted); font-size: 0.95rem; }
.proof-src {
  margin-top: 12px;
  color: var(--muted);
  font-size: 0.85rem;
}

@media (min-width: 720px) {
  .proof-grid { grid-template-columns: repeat(3, 1fr); padding: 32px; }
}

/* ---------- Sections ---------- */

.section { padding-top: 56px; padding-bottom: 24px; }
.section-head { margin-bottom: 28px; max-width: 40rem; }

.grid-3 { display: grid; gap: 16px; }
@media (min-width: 720px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } }

.card {
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 28px;
}
.card-soft { background: var(--surface); box-shadow: none; border: 1px solid rgba(79, 61, 245, 0.12); }
.card-muted {
  background: transparent;
  box-shadow: none;
  border: 1px dashed rgba(91, 91, 122, 0.4);
}
.card-muted .h3 { margin-bottom: 4px; }
.card-muted p { color: var(--muted); }

/* ---------- Product card ---------- */

.product-card {
  display: grid;
  gap: 32px;
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 32px 24px;
  overflow: hidden;
}
@media (min-width: 900px) {
  .product-card {
    grid-template-columns: 1.1fr 1fr;
    align-items: center;
    padding: 48px;
  }
}

.feature-list {
  list-style: none;
  margin: 0 0 24px;
  padding: 0;
  display: grid;
  gap: 12px;
}
.feature-list li { display: flex; gap: 12px; align-items: flex-start; line-height: 1.5; }
.check {
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
  margin-top: 2px;
  border-radius: 6px;
  background: var(--accent-soft);
  position: relative;
}
.check::after {
  content: "";
  position: absolute;
  left: 7px;
  top: 4px;
  width: 6px;
  height: 10px;
  border: solid var(--accent);
  border-width: 0 2.5px 2.5px 0;
  transform: rotate(45deg);
}

/* CSS-illustrated mock */
.mock {
  position: relative;
  padding: 8px 0 76px;
}
.mock-window {
  background: var(--bg);
  border: 1px solid rgba(18, 18, 43, 0.06);
  border-radius: 16px;
  padding: 14px;
  box-shadow: 0 8px 24px rgba(18, 18, 43, 0.06);
}
.mock-bar { display: flex; align-items: center; gap: 6px; margin-bottom: 14px; }
.mock-dot { width: 8px; height: 8px; border-radius: 50%; background: rgba(18, 18, 43, 0.12); }
.mock-title {
  margin-left: auto;
  font-family: var(--font-pixel);
  font-size: 0.62rem;
  color: var(--muted);
}
.mock-tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 12px; }
.mock-tile {
  background: var(--surface);
  border-radius: 10px;
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.mock-tile-num {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.35rem;
  line-height: 1;
  letter-spacing: -0.02em;
}
.mock-tile-cap { font-size: 0.68rem; color: var(--muted); }
.mock-tile-ok .mock-tile-num { color: var(--success); }
.mock-tile-warn .mock-tile-num { color: #C89400; }

.mock-rows { list-style: none; margin: 0 0 12px; padding: 0; display: grid; gap: 6px; }
.mock-row {
  background: var(--surface);
  border-radius: 8px;
  padding: 8px 10px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.mock-line { height: 8px; border-radius: 4px; background: var(--accent-soft); }
.mock-line-long { width: 60%; }
.mock-line-mid { width: 45%; }
.mock-line-short { width: 32%; }
.mock-pill {
  margin-left: auto;
  font-size: 0.64rem;
  font-weight: 500;
  padding: 3px 8px;
  border-radius: 999px;
  white-space: nowrap;
}
.mock-pill-ok { background: rgba(47, 191, 143, 0.15); color: #1E8A65; }
.mock-pill-warn { background: rgba(255, 201, 60, 0.28); color: #8A6300; }

.mock-bar-chart { display: flex; align-items: center; gap: 10px; font-size: 0.7rem; color: var(--muted); }
.mock-progress {
  flex: 1;
  height: 8px;
  border-radius: 4px;
  background: var(--accent-soft);
  overflow: hidden;
}
.mock-progress-fill { display: block; width: 94%; height: 100%; background: var(--accent); }
.mock-bar-val { font-weight: 500; color: var(--ink); }

.mock-phone {
  position: absolute;
  right: 4px;
  bottom: 0;
  width: 132px;
  background: var(--ink);
  color: #fff;
  border-radius: 14px;
  padding: 12px 10px 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  box-shadow: 0 12px 24px rgba(18, 18, 43, 0.25);
}
.mock-phone-head { font-family: var(--font-pixel); font-size: 0.56rem; color: var(--mascot); }
.mock-phone-line { height: 6px; border-radius: 3px; background: rgba(255, 255, 255, 0.22); }
.mock-phone-line-short { width: 60%; }
.mock-phone-btn {
  margin-top: 4px;
  background: var(--accent);
  color: #fff;
  font-size: 0.62rem;
  font-weight: 500;
  text-align: center;
  padding: 6px 4px;
  border-radius: 999px;
}

/* ---------- Steps ---------- */

.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 16px;
  counter-reset: step;
}
@media (min-width: 720px) { .steps { grid-template-columns: repeat(3, 1fr); } }

.step {
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 28px;
}
.step-art {
  display: flex;
  align-items: flex-end;
  gap: 12px;
  min-height: 120px;
  margin-bottom: 20px;
}
.step-art img { width: 100px; image-rendering: pixelated; } /* 20-px grid x 5 = whole pixels */
.step-art .px-tag { align-self: flex-start; }

/* ---------- Contact / footer ---------- */

.contact { padding-bottom: 64px; }
.contact-inner {
  background: var(--accent-soft);
  border-radius: var(--radius);
  padding: 40px 24px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}
.contact-inner .lead-sm { margin-bottom: 20px; }
@media (min-width: 720px) { .contact-inner { padding: 56px 32px; } }

.site-footer {
  border-top: 1px solid rgba(18, 18, 43, 0.06);
  padding: 24px 0 40px;
  font-size: 0.9rem;
  color: var(--muted);
}
.footer-inner { display: flex; flex-direction: column; gap: 12px; }
.footer-brand { display: flex; align-items: baseline; gap: 12px; color: var(--ink); }
.wordmark-text { font-size: 0.95rem; }
.footer-copy { color: var(--muted); }
.footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
}
.footer-links a { color: var(--muted); }
.footer-links a:hover { color: var(--accent); }
@media (min-width: 720px) {
  .footer-inner { flex-direction: row; justify-content: space-between; align-items: center; }
}

/* ---------- Motion ---------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn { transition: none; }
}
