/* VYLO official website — single stylesheet, no framework, no web font.
   Palette taken from the mobile app theme (src/theme.js). */

:root {
  --primary: #6c5ce7;
  --primary-dark: #5a4bd4;
  --primary-soft: #f3f1ff;
  --pink: #d14fa8;
  --navy: #0f1226;
  --canvas: #f8f8fc;
  --ink: #111827;
  --ink-soft: #6b7280;
  --line: #e8e7ef;
  --success: #35d6a2;
  --white: #ffffff;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 10px 30px rgba(15, 18, 38, 0.07);
  --shadow-soft: 0 2px 10px rgba(15, 18, 38, 0.05);
  --maxw: 1120px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue",
    Arial, "Noto Sans", sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--white);
  line-height: 1.6;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a {
  color: var(--primary-dark);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--primary);
}

h1,
h2,
h3 {
  line-height: 1.18;
  letter-spacing: -0.02em;
  color: var(--navy);
  margin: 0 0 0.5em;
}

h1 {
  font-size: clamp(2.1rem, 5vw, 3.4rem);
  font-weight: 800;
}

h2 {
  font-size: clamp(1.5rem, 3.2vw, 2.2rem);
  font-weight: 700;
}

h3 {
  font-size: 1.1rem;
  font-weight: 700;
}

p {
  margin: 0 0 1em;
}

.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 22px;
}

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--navy);
  color: #fff;
  padding: 10px 16px;
  z-index: 100;
}

.skip:focus {
  left: 8px;
  top: 8px;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 68px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.brand img {
  height: 26px;
  width: auto;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 26px;
}

.site-nav > a {
  color: var(--ink);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 600;
}

.site-nav > a:hover {
  color: var(--primary-dark);
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  background: var(--white);
  border-radius: 10px;
  cursor: pointer;
  padding: 0;
}

.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  display: block;
  width: 18px;
  height: 2px;
  background: var(--navy);
  margin: 0 auto;
  position: relative;
}

.nav-toggle span::before {
  position: absolute;
  top: -6px;
}

.nav-toggle span::after {
  position: absolute;
  top: 6px;
}

/* Language switcher */

.lang {
  position: relative;
}

.lang summary {
  list-style: none;
  cursor: pointer;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 7px 14px;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--navy);
  background: var(--white);
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.lang summary::-webkit-details-marker {
  display: none;
}

.lang summary::after {
  content: "";
  border: 4px solid transparent;
  border-top-color: var(--ink-soft);
  transform: translateY(2px);
}

.lang ul {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  margin: 0;
  padding: 8px;
  list-style: none;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow);
  min-width: 190px;
}

.lang li a {
  display: block;
  padding: 9px 12px;
  border-radius: 9px;
  text-decoration: none;
  color: var(--ink);
  font-size: 0.93rem;
}

.lang li a:hover {
  background: var(--primary-soft);
  color: var(--primary-dark);
}

.lang li a[aria-current="true"] {
  font-weight: 700;
  color: var(--primary-dark);
  background: var(--primary-soft);
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 24px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.98rem;
  text-decoration: none;
  border: 1px solid transparent;
  transition: transform 0.15s ease, background 0.15s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--primary);
  color: var(--white);
}

.btn-primary:hover {
  background: var(--primary-dark);
  color: var(--white);
}

.btn-ghost {
  background: var(--white);
  color: var(--navy);
  border-color: var(--line);
}

.btn-ghost:hover {
  border-color: var(--primary);
  color: var(--primary-dark);
}

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

.hero {
  background:
    radial-gradient(900px 420px at 12% -10%, rgba(108, 92, 231, 0.16), transparent 60%),
    radial-gradient(700px 380px at 92% 0%, rgba(209, 79, 168, 0.12), transparent 60%),
    linear-gradient(180deg, #fbfbff 0%, var(--canvas) 100%);
  border-bottom: 1px solid var(--line);
}

.hero-inner {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 48px;
  align-items: center;
  padding: 76px 22px 84px;
}

.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--primary-dark);
  background: var(--primary-soft);
  border-radius: 999px;
  padding: 7px 14px;
  margin-bottom: 18px;
}

.hero h1 .accent {
  background: linear-gradient(90deg, var(--primary), var(--pink));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-sub {
  font-size: 1.08rem;
  color: var(--ink-soft);
  max-width: 34rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 26px;
}

.hero-note {
  margin-top: 16px;
  font-size: 0.9rem;
  color: var(--ink-soft);
}

.hero-note strong {
  color: var(--navy);
}

/* Hero visual: illustrative only, no figures. */

.hero-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: var(--shadow);
  padding: 22px;
}

.hero-search {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--line);
  background: var(--canvas);
  border-radius: 999px;
  padding: 12px 18px;
  font-size: 0.95rem;
  color: var(--navy);
  font-weight: 600;
}

.hero-search svg {
  flex: none;
  color: var(--primary);
}

.hero-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.chip {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--primary-dark);
  background: var(--primary-soft);
  border-radius: 999px;
  padding: 6px 12px;
}

.hero-rows {
  margin-top: 16px;
  display: grid;
  gap: 10px;
}

.hero-row {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.86rem;
  color: var(--ink-soft);
}

.hero-row b {
  color: var(--navy);
  font-weight: 700;
}

.rank {
  width: 26px;
  height: 26px;
  border-radius: 8px;
  background: var(--primary-soft);
  color: var(--primary-dark);
  font-weight: 800;
  font-size: 0.8rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
}

.hero-foot {
  margin-top: 16px;
  font-size: 0.78rem;
  color: var(--ink-soft);
}

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

.section {
  padding: 76px 0;
}

.section.alt {
  background: var(--canvas);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.section-head {
  max-width: 46rem;
  margin-bottom: 38px;
}

.section-head p {
  color: var(--ink-soft);
  font-size: 1.03rem;
}

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

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow-soft);
}

.card p {
  color: var(--ink-soft);
  font-size: 0.95rem;
  margin: 0;
}

.card-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: var(--primary-soft);
  color: var(--primary-dark);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
}

.card-icon svg {
  width: 22px;
  height: 22px;
}

/* Steps */

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  counter-reset: step;
}

.step {
  position: relative;
  padding: 26px 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
}

.step::before {
  counter-increment: step;
  content: counter(step);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--pink));
  color: #fff;
  font-weight: 800;
  font-size: 0.92rem;
  margin-bottom: 14px;
}

.step p {
  color: var(--ink-soft);
  font-size: 0.95rem;
  margin: 0;
}

/* Quotas */

.quota {
  text-align: left;
}

.quota .label {
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--primary-dark);
}

.quota .value {
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--navy);
  margin: 8px 0 6px;
  letter-spacing: -0.01em;
}

.quota.pro {
  border-color: rgba(108, 92, 231, 0.4);
  background: linear-gradient(180deg, #fbfaff, #fff);
}

/* Languages */

.lang-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.lang-pills a {
  text-decoration: none;
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--navy);
  border: 1px solid var(--line);
  background: var(--white);
  border-radius: 999px;
  padding: 9px 16px;
}

.lang-pills a:hover {
  border-color: var(--primary);
  color: var(--primary-dark);
}

.lang-pills a[aria-current="true"] {
  background: var(--navy);
  border-color: var(--navy);
  color: #fff;
}

/* Disclosure + CTA */

.note-box {
  border: 1px solid var(--line);
  border-left: 4px solid var(--primary);
  background: var(--white);
  border-radius: var(--radius-sm);
  padding: 22px 24px;
}

.note-box h3 {
  margin-bottom: 6px;
}

.note-box p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.95rem;
}

.cta-band {
  background: linear-gradient(120deg, var(--navy) 0%, #1c1f45 55%, #2b2470 100%);
  color: #fff;
  border-radius: 26px;
  padding: 46px 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  flex-wrap: wrap;
}

.cta-band h2 {
  color: #fff;
  margin-bottom: 8px;
}

.cta-band p {
  color: rgba(255, 255, 255, 0.76);
  margin: 0;
  max-width: 34rem;
}

/* ---------- Legal pages ---------- */

.page-head {
  background: linear-gradient(180deg, #fbfbff, var(--canvas));
  border-bottom: 1px solid var(--line);
  padding: 54px 0 44px;
}

.page-head .kicker {
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--primary-dark);
  margin-bottom: 10px;
}

.page-head .updated {
  color: var(--ink-soft);
  font-size: 0.9rem;
  margin: 0;
}

.doc-layout {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  gap: 48px;
  padding: 52px 0 80px;
}

.toc {
  position: sticky;
  top: 92px;
  align-self: start;
}

.toc h2 {
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 12px;
}

.toc ol {
  list-style: none;
  margin: 0;
  padding: 0;
  border-left: 2px solid var(--line);
}

.toc li a {
  display: block;
  padding: 7px 0 7px 14px;
  margin-left: -2px;
  border-left: 2px solid transparent;
  color: var(--ink-soft);
  text-decoration: none;
  font-size: 0.88rem;
  line-height: 1.4;
}

.toc li a:hover {
  color: var(--primary-dark);
  border-left-color: var(--primary);
}

.doc-body h2 {
  font-size: 1.22rem;
  margin-top: 44px;
  scroll-margin-top: 92px;
}

.doc-body h2:first-child {
  margin-top: 0;
}

.doc-body p,
.doc-body li {
  color: #2b3040;
  font-size: 1rem;
}

.doc-body ul {
  padding-left: 20px;
  margin: 0 0 1.1em;
}

.doc-body li {
  margin-bottom: 6px;
}

.doc-links {
  margin-top: 54px;
  padding-top: 26px;
  border-top: 1px solid var(--line);
}

.doc-links h2 {
  font-size: 1rem;
  margin-top: 0;
}

.doc-links ul {
  list-style: none;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.doc-links a {
  display: inline-block;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--navy);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 15px;
}

.doc-links a:hover {
  border-color: var(--primary);
  color: var(--primary-dark);
}

/* ---------- Support ---------- */

.contact-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  flex-wrap: wrap;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 28px;
  box-shadow: var(--shadow-soft);
}

.contact-card .label {
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ink-soft);
}

.contact-card .address {
  font-size: clamp(1.1rem, 3vw, 1.5rem);
  font-weight: 800;
  color: var(--navy);
  text-decoration: none;
  word-break: break-all;
}

.contact-card .address:hover {
  color: var(--primary-dark);
}

.faq {
  display: grid;
  gap: 12px;
  margin-top: 14px;
}

.faq details {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--white);
  padding: 0;
}

.faq summary {
  cursor: pointer;
  list-style: none;
  padding: 17px 20px;
  font-weight: 700;
  color: var(--navy);
  display: flex;
  justify-content: space-between;
  gap: 14px;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "+";
  color: var(--primary);
  font-weight: 800;
  font-size: 1.1rem;
}

.faq details[open] summary::after {
  content: "–";
}

.faq .answer {
  padding: 0 20px 18px;
  color: var(--ink-soft);
  font-size: 0.96rem;
}

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

.site-footer {
  background: var(--navy);
  color: rgba(255, 255, 255, 0.72);
  padding: 56px 0 34px;
  font-size: 0.92rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 36px;
}

.site-footer h2 {
  color: #fff;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.site-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 9px;
}

.site-footer a {
  color: rgba(255, 255, 255, 0.76);
  text-decoration: none;
}

.site-footer a:hover {
  color: #fff;
}

.footer-brand img {
  height: 26px;
  width: auto;
  margin-bottom: 14px;
}

.footer-brand p {
  max-width: 30rem;
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.88rem;
}

.footer-bottom {
  margin-top: 38px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.55);
}

/* ---------- 404 ---------- */

.notfound {
  min-height: 55vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 22px;
}

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

@media (max-width: 940px) {
  .hero-inner {
    grid-template-columns: 1fr;
    padding: 54px 22px 60px;
  }

  .grid-3,
  .steps,
  .grid-2 {
    grid-template-columns: 1fr 1fr;
  }

  .doc-layout {
    grid-template-columns: 1fr;
    gap: 26px;
  }

  .toc {
    position: static;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 720px) {
  body {
    font-size: 16px;
  }

  .nav-toggle {
    display: inline-block;
  }

  .site-nav {
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    background: var(--white);
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    padding: 14px 22px 20px;
    display: none;
    box-shadow: var(--shadow-soft);
  }

  .site-nav.open {
    display: flex;
  }

  .site-nav > a {
    padding: 10px 0;
    width: 100%;
  }

  .lang ul {
    right: auto;
    left: 0;
  }

  .grid-3,
  .steps,
  .grid-2,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 54px 0;
  }

  .cta-band {
    padding: 32px 26px;
  }
}

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

  .btn:hover {
    transform: none;
  }
}

@media print {
  .site-header,
  .site-footer,
  .toc,
  .doc-links {
    display: none;
  }

  .doc-layout {
    grid-template-columns: 1fr;
    padding: 0;
  }

  body {
    font-size: 12pt;
  }
}
