/* wervia landing — shared stylesheet for both language pages.
   Plain CSS, no build step: the two HTML files are meant to be
   readable and indexable with zero JS. See design spec sections 1–3
   for the colour/type/shape tokens below. */

:root {
  --cream: #faf7ee;
  --sand: #efebdd;
  --white: #ffffff;
  --ink: #26261f;
  --ink-soft: #3f3f34;
  --grey1: #8a8778;
  --grey2: #a5a293;
  --grey3: #b4b0a0;
  --line: #eae5d5;

  --olive: #93a860;
  --olive-deep: #3f4a22;
  --olive-pale: #dfe5cf;

  --pink: #f9a8cf;
  --pink-ink: #3a2530;

  --blue: #c9d8f2;
  --blue-ink: #25314a;
  --blue-ink-soft: #4b5c7a;

  --font-latin: 'Outfit', system-ui, sans-serif;
  --font-cyrillic: 'Manrope', system-ui, sans-serif;
  --font-mono: 'IBM Plex Mono', 'Courier New', monospace;

  color-scheme: light;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-lang, var(--font-latin));
  -webkit-font-smoothing: antialiased;
}

html[lang="ru"] body { --font-lang: var(--font-cyrillic); }

img { max-width: 100%; }

a { color: inherit; }

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 20px;
}

@media (min-width: 1024px) {
  .container { padding: 0 40px; }
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--cream);
  border-bottom: 1px solid var(--line);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 16px;
  padding-bottom: 16px;
}

.wordmark {
  /* Always Outfit — the wordmark is never translated, so it must not
     inherit the page's language-driven body font (Manrope on RU). */
  font-family: var(--font-latin);
  font-weight: 800;
  font-size: 22px;
  letter-spacing: -0.5px;
  text-decoration: none;
  color: var(--ink);
}

.wordmark .dot { color: var(--olive); }

.main-nav {
  display: none;
  gap: 28px;
}

.main-nav a {
  font-weight: 600;
  font-size: 15px;
  color: var(--grey1);
  text-decoration: none;
}

@media (min-width: 1024px) {
  .main-nav { display: flex; }
  .site-header .container { padding-top: 18px; padding-bottom: 18px; }
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.lang-switch {
  display: flex;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  border: 1px solid var(--line);
  border-radius: 999px;
  overflow: hidden;
}

.lang-switch a {
  padding: 6px 10px;
  text-decoration: none;
  color: var(--grey1);
}

.lang-switch a.active {
  background: var(--ink);
  color: var(--cream);
}

.sign-in-link {
  display: none;
  font-weight: 600;
  font-size: 15px;
  color: var(--ink);
  text-decoration: none;
  padding: 10px 4px;
}

@media (min-width: 1024px) {
  .sign-in-link { display: inline-block; }
}

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

.btn {
  display: inline-block;
  font-weight: 700;
  text-decoration: none;
  border-radius: 999px;
  white-space: nowrap;
  border: none;
  cursor: pointer;
}

.btn-primary {
  background: var(--olive);
  color: #ffffff;
}

.btn-secondary {
  background: var(--sand);
  color: var(--ink);
}

.btn-dark {
  background: var(--ink);
  color: var(--cream);
}

.btn-outline {
  background: transparent;
  color: var(--ink);
  border: 1.5px solid var(--ink);
}

.btn-white {
  background: #ffffff;
  color: var(--ink);
}

.btn-sm { font-size: 14px; padding: 11px 20px; }
.btn-lg { font-size: 16px; padding: 15px 26px; }

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

.hero {
  padding: 40px 0 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 48px;
  flex-direction: column;
  text-align: center;
}

@media (min-width: 1024px) {
  .hero { padding: 64px 0 80px; flex-direction: row; text-align: left; }
}

.hero-copy { max-width: 560px; }

.badge {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--olive-deep);
  background: var(--olive-pale);
  border-radius: 999px;
  padding: 7px 14px;
  margin-bottom: 22px;
}

.hero h1 {
  font-weight: 800;
  font-size: 36px;
  line-height: 1.08;
  letter-spacing: -1px;
  margin: 0 0 20px;
  text-wrap: balance;
}

@media (min-width: 1024px) {
  .hero h1 { font-size: 54px; letter-spacing: -1.2px; }
}

.hero .sub {
  font-weight: 500;
  font-size: 16px;
  line-height: 1.5;
  color: var(--grey1);
  margin: 0 0 32px;
}

@media (min-width: 1024px) {
  .hero .sub { font-size: 19px; }
}

.hero-buttons {
  display: flex;
  gap: 12px;
  margin-bottom: 40px;
  justify-content: center;
  flex-wrap: wrap;
}

@media (min-width: 1024px) {
  .hero-buttons { justify-content: flex-start; }
}

.stats {
  display: flex;
  gap: 24px;
  justify-content: center;
}

@media (min-width: 1024px) {
  .stats { gap: 36px; justify-content: flex-start; }
}

.stat-value {
  font-family: var(--font-latin);
  font-weight: 800;
  font-size: 30px;
  line-height: 1;
}

.stat-label {
  font-weight: 600;
  font-size: 13px;
  color: var(--grey1);
  margin-top: 4px;
}

/* ---------- Phone mock (hero) ---------- */

.phone-mock {
  display: none;
  flex: none;
  width: 300px;
  max-width: 300px;
  border-radius: 36px;
  background: var(--ink);
  padding: 10px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.18);
  overflow: hidden;
  align-self: center;
}

@media (min-width: 1024px) {
  .phone-mock { display: block; }
}

.phone-mock img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  border-radius: 28px;
}

.example-pill {
  background: var(--olive-pale);
  color: var(--olive-deep);
  border-radius: 14px;
  padding: 8px 12px;
  font-size: 13px;
  font-weight: 500;
}

/* ---------- Section heading ---------- */

.section-head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 48px;
}

.kicker-label {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--grey1);
  margin-bottom: 10px;
}

.section-head h2 {
  font-weight: 800;
  font-size: 26px;
  letter-spacing: -0.6px;
  margin: 0 0 12px;
}

@media (min-width: 1024px) {
  .section-head h2 { font-size: 36px; }
}

.section-head p {
  font-weight: 500;
  font-size: 16px;
  color: var(--grey1);
  margin: 0;
}

/* ---------- How it works ---------- */

.how {
  background: var(--sand);
  padding: 56px 0;
}

@media (min-width: 1024px) {
  .how { padding: 80px 0; }
}

.how-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

@media (min-width: 1024px) {
  .how-grid { grid-template-columns: repeat(3, 1fr); }
}

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

.how-card .number {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 500;
  color: var(--grey3);
  margin-bottom: 14px;
}

.how-card h3 {
  font-weight: 700;
  font-size: 19px;
  margin: 0 0 10px;
}

.how-card p {
  font-weight: 500;
  font-size: 15px;
  line-height: 1.5;
  color: var(--ink-soft);
  margin: 0;
}

.review-buttons {
  margin-top: 18px;
  display: flex;
  gap: 8px;
}

.review-pill {
  font-size: 13px;
  font-weight: 700;
  border-radius: 999px;
  padding: 8px 14px;
}

.review-pill.blue { background: var(--blue); color: var(--blue-ink); }
.review-pill.olive { background: var(--olive); color: #ffffff; }

/* ---------- Levels ---------- */

.levels { padding: 56px 0; }

@media (min-width: 1024px) {
  .levels { padding: 80px 0; }
}

.levels-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}

@media (min-width: 640px) {
  .levels-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
  .levels-grid { grid-template-columns: repeat(3, 1fr); }
}

.level-card {
  border-radius: 26px;
  padding: 26px;
}

.level-badge {
  display: inline-block;
  font-family: var(--font-latin);
  font-weight: 800;
  font-size: 15px;
  border-radius: 999px;
  border-width: 2px;
  border-style: solid;
  padding: 4px 12px;
  margin-bottom: 14px;
}

.level-card h3 {
  font-weight: 700;
  font-size: 20px;
  margin: 0 0 8px;
}

.level-card p {
  font-weight: 500;
  font-size: 14px;
  line-height: 1.5;
  opacity: 0.85;
  margin: 0 0 16px;
}

.level-meta {
  font-weight: 600;
  font-size: 13px;
  opacity: 0.75;
}

/* ---------- Pricing ---------- */

.pricing { background: var(--sand); padding: 56px 0; }

@media (min-width: 1024px) {
  .pricing { padding: 80px 0; }
}

.pricing-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  align-items: start;
}

@media (min-width: 1024px) {
  .pricing-grid { grid-template-columns: repeat(3, 1fr); }
}

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

.price-card.yearly {
  background: var(--olive);
  border: none;
  color: #ffffff;
}

.price-badge {
  position: absolute;
  top: -14px;
  right: 24px;
  background: #f4de8a;
  color: #3c3418;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.5px;
  border-radius: 999px;
  padding: 6px 12px;
}

.price-card .plan-name {
  font-weight: 700;
  font-size: 18px;
  margin-bottom: 8px;
}

.price-row {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin-bottom: 4px;
}

.price-amount {
  font-family: var(--font-latin);
  font-weight: 800;
  font-size: 40px;
  letter-spacing: -1px;
}

.price-period {
  font-weight: 500;
  font-size: 14px;
  color: var(--grey1);
}

.price-card .everything-in-free {
  font-weight: 700;
  font-size: 14px;
  margin: 20px 0 12px;
}

.feature-list {
  list-style: none;
  margin: 20px 0 26px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.feature-list li {
  font-weight: 500;
  font-size: 14px;
  color: var(--ink-soft);
  padding-left: 22px;
  position: relative;
}

.feature-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 7px;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--olive);
}

.price-card.yearly .price-period,
.price-card.yearly .feature-list li {
  color: rgba(255, 255, 255, 0.85);
}

.price-card.yearly .feature-list li::before {
  background: #ffffff;
}

.price-card .btn {
  width: 100%;
  text-align: center;
  padding: 16px 0;
  font-size: 16px;
}

/* ---------- FAQ ---------- */

.faq { padding: 56px 0; }

@media (min-width: 1024px) {
  .faq { padding: 80px 0; }
}

.faq-list {
  max-width: 760px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 4px 22px;
}

.faq-item summary {
  cursor: pointer;
  list-style: none;
  font-weight: 700;
  font-size: 16px;
  padding: 18px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

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

.faq-item .chevron {
  flex-shrink: 0;
  font-family: var(--font-mono);
  color: var(--grey3);
  transition: transform 0.15s ease;
}

.faq-item[open] .chevron { transform: rotate(45deg); }

.faq-item p {
  font-weight: 500;
  font-size: 15px;
  line-height: 1.5;
  color: var(--ink-soft);
  margin: 0 0 20px;
}

/* ---------- Final CTA ---------- */

.final-cta {
  background: var(--ink);
  color: var(--cream);
  padding: 64px 0;
  text-align: center;
}

.final-cta h2 {
  font-weight: 800;
  font-size: 30px;
  letter-spacing: -0.6px;
  margin: 0 0 14px;
}

@media (min-width: 1024px) {
  .final-cta h2 { font-size: 40px; }
}

.final-cta .sub {
  font-weight: 500;
  font-size: 16px;
  color: var(--grey3);
  margin: 0 0 32px;
}

.final-cta .hero-buttons { justify-content: center; }

.final-cta .btn-secondary {
  background: transparent;
  color: var(--cream);
  border: 1px solid rgba(250, 247, 238, 0.3);
}

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

.site-footer {
  padding: 48px 0;
  border-top: 1px solid var(--line);
}

.footer-grid {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

@media (min-width: 768px) {
  .footer-grid {
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
  }
}

.footer-tagline {
  font-weight: 500;
  font-size: 15px;
  color: var(--grey1);
  max-width: 320px;
}

.footer-links {
  display: flex;
  gap: 56px;
  flex-wrap: wrap;
}

.footer-links h4 {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--grey2);
  margin: 0 0 12px;
}

.footer-links a {
  display: block;
  font-weight: 500;
  font-size: 14px;
  color: var(--ink-soft);
  text-decoration: none;
  margin-bottom: 8px;
}

.footer-bottom {
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  color: var(--grey2);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

/* ---------- Legal pages (Terms / Privacy / Refund) ---------- */

.legal { padding: 48px 0 80px; max-width: 760px; }

.legal h1 { font-weight: 800; font-size: 32px; margin: 0 0 6px; letter-spacing: -0.5px; }

.legal .updated { color: var(--grey1); font-size: 14px; font-weight: 500; margin: 0 0 36px; }

.legal h2 { font-weight: 700; font-size: 19px; margin: 32px 0 12px; }

.legal p {
  font-weight: 500;
  font-size: 15px;
  line-height: 1.6;
  color: var(--ink-soft);
  margin: 0 0 14px;
}

.legal ul { margin: 0 0 14px; padding-left: 22px; }

.legal li {
  font-weight: 500;
  font-size: 15px;
  line-height: 1.6;
  color: var(--ink-soft);
  margin-bottom: 6px;
}

.legal a { color: var(--olive-deep); }

.legal hr { border: none; border-top: 1px solid var(--line); margin: 32px 0; }
