:root {
  --bg: #f7f8fa;
  --surface: #ffffff;
  --text: #16181d;
  --text-muted: #565c66;
  --border: #e4e6eb;
  --accent: #1e7f4f;
  --accent-contrast: #ffffff;
  --good: #1e7f4f;
  --ok: #b9861f;
  --bad: #b3331d;
  --max-width: 1040px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #121316;
    --surface: #1b1d22;
    --text: #eef0f3;
    --text-muted: #a3a9b3;
    --border: #2c2f36;
    --accent: #3fbf85;
    --accent-contrast: #0b0d10;
    --good: #3fbf85;
    --ok: #e0ac3f;
    --bad: #e0604a;
  }
}

:root[data-theme="light"] {
  --bg: #f7f8fa;
  --surface: #ffffff;
  --text: #16181d;
  --text-muted: #565c66;
  --border: #e4e6eb;
  --accent: #1e7f4f;
  --accent-contrast: #ffffff;
  --good: #1e7f4f;
  --ok: #b9861f;
  --bad: #b3331d;
}

:root[data-theme="dark"] {
  --bg: #121316;
  --surface: #1b1d22;
  --text: #eef0f3;
  --text-muted: #a3a9b3;
  --border: #2c2f36;
  --accent: #3fbf85;
  --accent-contrast: #0b0d10;
  --good: #3fbf85;
  --ok: #e0ac3f;
  --bad: #e0604a;
}

* {
  box-sizing: border-box;
}

html {
  color-scheme: light dark;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.55;
}

.wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}

header.site {
  border-bottom: 1px solid var(--border);
  padding: 20px 0;
}

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

.brand {
  display: flex;
  align-items: baseline;
  gap: 8px;
  text-decoration: none;
  color: var(--text);
}

.brand strong {
  font-size: 1.25rem;
  letter-spacing: 0.02em;
}

.brand span {
  color: var(--text-muted);
  font-size: 0.85rem;
}

nav.top a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.95rem;
  margin-left: 18px;
}

nav.top a:hover {
  color: var(--text);
}

.theme-toggle {
  margin-left: 18px;
  vertical-align: middle;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  border-radius: 8px;
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  line-height: 1;
  cursor: pointer;
}

.theme-toggle:hover {
  border-color: var(--accent);
}

.lang-switch {
  position: relative;
  display: inline-block;
}

.lang-switch summary {
  cursor: pointer;
  list-style: none;
  color: var(--text-muted);
  font-size: 0.9rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 6px 10px;
}

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

.lang-switch[open] summary {
  color: var(--text);
}

.lang-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 6px);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 6px;
  min-width: 180px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  z-index: 10;
}

.lang-menu a {
  display: block;
  padding: 8px 10px;
  border-radius: 6px;
  color: var(--text);
  text-decoration: none;
  font-size: 0.92rem;
}

.lang-menu a:hover {
  background: var(--bg);
}

.lang-menu a[aria-current="true"] {
  color: var(--accent);
  font-weight: 600;
}

main {
  padding: 56px 0 72px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  align-items: center;
}

@media (min-width: 900px) {
  .hero-grid {
    grid-template-columns: 1.15fr 0.85fr;
  }
}

.hero h1 {
  font-size: 2.4rem;
  margin: 0 0 12px;
  letter-spacing: -0.01em;
}

.hero p.lede {
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 56ch;
}

.hero-mockup {
  display: flex;
  justify-content: center;
}

.hero-mockup img {
  width: 100%;
  max-width: 280px;
  height: auto;
  filter: drop-shadow(0 24px 40px rgba(0, 0, 0, 0.28));
}

.cta {
  display: inline-block;
  margin-top: 28px;
  background: var(--accent);
  color: var(--accent-contrast);
  text-decoration: none;
  font-weight: 600;
  padding: 12px 22px;
  border-radius: 10px;
}

.cta.disabled {
  opacity: 0.6;
  cursor: default;
  pointer-events: none;
}

.cta-note {
  margin-top: 10px;
  font-size: 0.85rem;
  color: var(--text-muted);
}

section.block {
  margin-top: 56px;
}

section.block h2 {
  font-size: 1.35rem;
  margin-bottom: 18px;
}

ol.steps {
  padding-left: 0;
  list-style: none;
  margin: 0;
  display: grid;
  gap: 18px;
}

ol.steps li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

ol.steps .num {
  flex: none;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--surface);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.9rem;
}

.benefits-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

@media (min-width: 640px) {
  .benefits-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.benefit-card {
  padding: 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
}

.benefit-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: color-mix(in srgb, var(--accent) 14%, transparent);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
}

.benefit-icon svg {
  width: 22px;
  height: 22px;
  stroke: currentColor;
}

.benefit-card h3 {
  margin: 0 0 6px;
  font-size: 1.05rem;
}

.benefit-card p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.92rem;
}

.trust-line {
  margin-top: 22px;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.trust-line a {
  color: var(--text-muted);
}

article.legal {
  max-width: 680px;
  margin: 0 auto;
}

article.legal h1 {
  font-size: 1.8rem;
  margin-bottom: 4px;
}

article.legal .updated {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 32px;
}

article.legal h2 {
  font-size: 1.15rem;
  margin-top: 36px;
}

article.legal p,
article.legal li {
  color: var(--text);
}

article.legal ul {
  padding-left: 20px;
}

footer.site {
  border-top: 1px solid var(--border);
  padding: 28px 0;
  color: var(--text-muted);
  font-size: 0.88rem;
}

footer.site .wrap {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

footer.site a {
  color: var(--text-muted);
}

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

.placeholder {
  border-bottom: 1px dashed var(--text-muted);
}
