/* YMLP — light flex redesign (site style) */
:root {
  --ymlp-bg: #eef1f3;
  --ymlp-bg-accent: #dfe8ee;
  --ymlp-surface: #ffffff;
  --ymlp-text: #2d2d2d;
  --ymlp-muted: #6b7278;
  --ymlp-blue: #327a9a;
  --ymlp-blue-mid: #428cad;
  --ymlp-blue-dark: #245f78;
  --ymlp-orange: #e87722;
  --ymlp-orange-soft: #f5a623;
  --ymlp-border: #d5dde3;
  --ymlp-plan-free: #f18c28;
  --ymlp-plan-pro: #3a8eb0;
  --ymlp-max: 980px;
  --ymlp-font: Verdana, Geneva, "DejaVu Sans", sans-serif;
}

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

html {
  font-size: 62.5%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--ymlp-font);
  font-size: 1.3rem;
  line-height: 1.55;
  color: var(--ymlp-text);
  background:
    linear-gradient(180deg, #f7f9fa 0%, var(--ymlp-bg) 180px, var(--ymlp-bg-accent) 100%);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

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

a {
  color: var(--ymlp-blue-mid);
  text-decoration: none;
}

a:hover,
a:focus {
  color: var(--ymlp-blue-dark);
  text-decoration: underline;
}

.site-wrap {
  width: 100%;
  max-width: var(--ymlp-max);
  margin: 0 auto;
  padding: 0 16px;
}

/* Header */
.site-header {
  background: linear-gradient(180deg, #ffffff 0%, #f3f6f8 100%);
  border-bottom: 1px solid var(--ymlp-border);
  padding: 18px 0 0;
}

.site-header__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  padding-bottom: 14px;
}

.site-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--ymlp-blue-dark);
}

.site-logo:hover {
  text-decoration: none;
}

.site-logo img {
  display: block;
  width: 220px;
  height: auto;
}

.site-logo__fallback {
  font-size: 2.2rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ymlp-blue);
}

.site-header__actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 16px;
  border-radius: 3px;
  font: 700 1.2rem/1.2 var(--ymlp-font);
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.btn:hover {
  text-decoration: none;
}

.btn--primary {
  background: var(--ymlp-blue);
  color: #fff;
  border-color: var(--ymlp-blue-dark);
}

.btn--primary:hover {
  background: var(--ymlp-blue-dark);
  color: #fff;
}

.btn--ghost {
  background: #fff;
  color: var(--ymlp-blue);
  border-color: var(--ymlp-blue-mid);
}

.btn--ghost:hover {
  background: #eef6fa;
  color: var(--ymlp-blue-dark);
}

.btn--orange {
  background: var(--ymlp-orange);
  color: #fff;
  border-color: #c96512;
}

.btn--orange:hover {
  background: #cf6a14;
  color: #fff;
}

/* Nav */
.site-nav {
  background: linear-gradient(180deg, #3a8db0 0%, #2f7190 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.site-nav__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 0;
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-nav__inner > li {
  position: relative;
  border-right: 1px solid rgba(255, 255, 255, 0.18);
}

.site-nav__inner > li:first-child {
  border-left: 1px solid rgba(255, 255, 255, 0.18);
}

.site-nav__inner a {
  display: block;
  padding: 12px 16px;
  color: #fff;
  font: 700 1.25rem/1.2 var(--ymlp-font);
  text-decoration: none;
  white-space: nowrap;
}

.site-nav__inner a:hover,
.site-nav__inner a.is-active {
  background: rgba(0, 0, 0, 0.18);
  color: #fff;
  text-decoration: none;
}

.site-nav__toggle {
  display: none;
  width: 100%;
  margin: 0;
  padding: 12px 16px;
  background: var(--ymlp-blue-dark);
  color: #fff;
  border: 0;
  font: 700 1.3rem/1.2 var(--ymlp-font);
  cursor: pointer;
  text-align: left;
}

/* Main */
.site-main {
  flex: 1;
  padding: 24px 0 48px;
}

.page-surface {
  background: var(--ymlp-surface);
  border: 1px solid var(--ymlp-border);
  border-radius: 4px;
  padding: 28px 24px;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.8) inset;
}

.page-header {
  margin: 0 0 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--ymlp-border);
}

.page-header h1 {
  margin: 0;
  font-size: 2.2rem;
  line-height: 1.25;
  color: var(--ymlp-blue-dark);
}

.lead {
  font-size: 1.45rem;
  color: var(--ymlp-muted);
  margin: 0 0 20px;
}

/* Hero */
.hero {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 28px;
}

.hero__banner {
  display: block;
  border-radius: 4px;
  overflow: hidden;
  border: 1px solid var(--ymlp-border);
}

.hero__banner img {
  display: block;
  width: 100%;
  height: auto;
}

.hero__copy h1 {
  margin: 0 0 8px;
  font-size: 2.4rem;
  color: var(--ymlp-blue-dark);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
}

/* Plans */
.section-title {
  margin: 0 0 16px;
  font-size: 1.9rem;
  color: var(--ymlp-blue);
}

.plans {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 32px;
}

.plan-card {
  flex: 1 1 220px;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--ymlp-border);
  border-radius: 4px;
  overflow: hidden;
  background: #fafcfd;
}

.plan-card__head {
  padding: 14px 16px;
  color: #fff;
  font-weight: 700;
  font-size: 1.5rem;
  text-align: center;
}

.plan-card--free .plan-card__head {
  background: linear-gradient(180deg, var(--ymlp-orange-soft), var(--ymlp-orange));
}

.plan-card--pro .plan-card__head,
.plan-card--proplus .plan-card__head {
  background: linear-gradient(180deg, #4aa0c2, var(--ymlp-plan-pro));
}

.plan-card__body {
  padding: 16px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.plan-card__price {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--ymlp-text);
  margin: 0;
}

.plan-card ul {
  margin: 0;
  padding: 0 0 0 18px;
  color: var(--ymlp-muted);
}

.plan-card__cta {
  margin-top: auto;
  padding-top: 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

/* Feature blocks */
.feature-block {
  margin-bottom: 28px;
  padding-top: 8px;
  border-top: 1px solid var(--ymlp-border);
}

.feature-block h2 {
  margin: 0 0 10px;
  font-size: 1.7rem;
  color: var(--ymlp-blue);
}

.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
}

.feature-grid li {
  flex: 1 1 280px;
  list-style: disc;
  margin-left: 18px;
  color: var(--ymlp-text);
}

.feature-compare {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 8px;
  margin-top: 10px;
  font-size: 1.15rem;
  color: var(--ymlp-muted);
}

.feature-compare span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-width: 70px;
}

.check-ico {
  width: 12px;
  height: 12px;
  vertical-align: middle;
}

/* Testimonials / archive content */
.testimonial {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 16px 0;
  border-bottom: 1px solid var(--ymlp-border);
}

.testimonial:last-child {
  border-bottom: 0;
}

.testimonial__meta {
  color: var(--ymlp-muted);
  font-size: 1.2rem;
}

.lang-switch {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-bottom: 16px;
  font-size: 1.25rem;
}

.archive-content {
  overflow-x: auto;
}

.archive-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 12px 0;
}

.archive-content th,
.archive-content td {
  border: 1px solid var(--ymlp-border);
  padding: 8px;
  vertical-align: top;
  text-align: left;
}

.archive-content img {
  max-width: 100%;
  height: auto;
}

.notice-box {
  padding: 20px;
  background: #f7fafc;
  border: 1px solid var(--ymlp-border);
  border-radius: 4px;
  text-align: center;
}

/* Footer */
.site-footer {
  background: #eceff1;
  border-top: 1px solid var(--ymlp-border);
  padding: 24px 0 32px;
  color: var(--ymlp-muted);
  font-size: 1.2rem;
}

.site-footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  margin: 0 0 16px;
  padding: 0;
  list-style: none;
}

.site-footer__links a {
  color: var(--ymlp-muted);
  text-decoration: underline;
}

.site-footer__copy {
  margin: 0;
}

/* Blog page surface tweaks */
.blog-page .page-header {
  margin-bottom: 24px;
}

/* Responsive */
@media (max-width: 720px) {
  .site-logo img {
    width: 180px;
  }

  .site-nav__toggle {
    display: block;
  }

  .site-nav__inner {
    display: none;
    flex-direction: column;
  }

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

  .site-nav__inner > li {
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  }

  .site-nav__inner > li:first-child {
    border-left: 0;
  }

  .page-surface {
    padding: 20px 14px;
  }

  .hero__copy h1 {
    font-size: 2rem;
  }
}
