:root {
  color-scheme: light dark;
  --bg: #fbfaf8;
  --fg: #1c1b1a;
  --muted: #63605c;
  --accent: #a8562f;
  --card: #ffffff;
  --border: #e6e2dc;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #16140f;
    --fg: #f2efe9;
    --muted: #b3ada3;
    --accent: #e08a54;
    --card: #211e18;
    --border: #33302a;
  }
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, sans-serif;
  line-height: 1.6;
}

.wrap {
  max-width: 640px;
  margin: 0 auto;
  padding: 56px 24px 96px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--fg);
  font-weight: 700;
  font-size: 17px;
  margin-bottom: 48px;
}

.brand .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent);
}

h1 {
  font-size: 28px;
  letter-spacing: -0.02em;
  margin: 0 0 8px;
}

.subtitle {
  color: var(--muted);
  margin: 0 0 40px;
  font-size: 15px;
}

h2 {
  font-size: 17px;
  margin: 40px 0 8px;
}

p { margin: 0 0 16px; color: var(--fg); }
p.muted { color: var(--muted); font-size: 14px; }

a { color: var(--accent); }

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 20px 22px;
  margin: 24px 0;
}

.card h3 {
  margin: 0 0 6px;
  font-size: 15px;
}

.card p { margin: 0; font-size: 14px; color: var(--muted); }

.footer {
  margin-top: 56px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  font-size: 13px;
  color: var(--muted);
}

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

.lang-banner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  background: var(--card);
  border-bottom: 1px solid var(--border);
  padding: 10px 20px;
  font-size: 13px;
  color: var(--fg);
  text-align: center;
}

.lang-banner-actions { display: flex; align-items: center; gap: 12px; }

.lang-banner-switch { color: var(--accent); font-weight: 600; text-decoration: none; }
.lang-banner-switch:hover { text-decoration: underline; }

.lang-banner-dismiss {
  background: none;
  border: none;
  color: var(--muted);
  font-size: 14px;
  line-height: 1;
  cursor: pointer;
  padding: 2px 4px;
}

.lang-banner-dismiss:hover { color: var(--fg); }

/* Home page (marketing) */

.page-home .wrap { max-width: 960px; }

.page-home h2 { font-size: 24px; letter-spacing: -0.01em; margin: 0 0 8px; }

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 56px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
  font-size: 14px;
}

.nav-links a { color: var(--muted); text-decoration: none; }
.nav-links a:hover { color: var(--fg); }

.lang-switch { font-size: 13px; color: var(--muted); }
.lang-switch a { color: var(--muted); text-decoration: none; }
.lang-switch a:hover { color: var(--fg); }
.lang-switch strong { color: var(--fg); font-weight: 600; }

.hero {
  display: flex;
  align-items: center;
  gap: 40px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.hero-text { flex: 1 1 320px; }

.hero-icon {
  flex: 0 0 auto;
  width: 128px;
  height: 128px;
  border-radius: 28px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18);
  display: block;
}

.page-home h1 {
  font-size: 42px;
  letter-spacing: -0.03em;
  margin: 0 0 16px;
}

.page-home .subtitle {
  font-size: 18px;
  max-width: 560px;
  margin-bottom: 28px;
}

.cta-row {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent);
  color: #fff;
  padding: 14px 26px;
  border-radius: 14px;
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  white-space: nowrap;
}

.btn-primary:hover { opacity: 0.92; }

.trust-line { color: var(--muted); font-size: 13px; margin: 0; }

.section { margin-top: 80px; }

.section-sub { color: var(--muted); font-size: 15px; margin: 0 0 32px; max-width: 620px; }

.screens {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  padding-bottom: 8px;
  margin: 0 -4px;
}

.screens figure { margin: 0; flex: 0 0 190px; padding: 0 4px; }

.screens img {
  width: 100%;
  height: auto;
  border-radius: 20px;
  border: 1px solid var(--border);
  display: block;
}

.screens figcaption {
  margin-top: 10px;
  font-size: 13px;
  color: var(--muted);
  text-align: center;
}

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

@media (max-width: 720px) {
  .feature-grid { grid-template-columns: 1fr; }
}

.feature-card { margin: 0; }

.feature-card .icon { font-size: 22px; margin-bottom: 8px; }

.feature-card h3 { font-size: 16px; margin: 0 0 6px; }
.feature-card p { font-size: 14px; color: var(--muted); margin: 0; }

.why-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px 32px;
  padding: 0;
  margin: 0;
  list-style: none;
}

@media (max-width: 720px) {
  .why-list { grid-template-columns: 1fr; }
}

.why-list li { display: flex; gap: 12px; align-items: flex-start; }

.why-list .icon {
  flex: 0 0 auto;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.why-list strong { display: block; font-size: 15px; margin-bottom: 2px; }
.why-list span { font-size: 14px; color: var(--muted); }

.faq-item {
  border-bottom: 1px solid var(--border);
  padding: 18px 0;
}

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

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

.faq-item summary::after {
  content: "+";
  color: var(--muted);
  font-weight: 400;
  font-size: 20px;
  flex-shrink: 0;
}

.faq-item[open] summary::after { content: "\2212"; }

.faq-item p { margin: 12px 0 0; color: var(--muted); font-size: 14px; }

.cta-band {
  margin-top: 88px;
  padding: 40px 32px;
  border-radius: 20px;
  background: var(--card);
  border: 1px solid var(--border);
  text-align: center;
}

.cta-band h2 { margin-bottom: 8px; }
.cta-band p { color: var(--muted); margin: 0 0 24px; }
.cta-band .cta-row { justify-content: center; }
