:root {
  --brand: #1f8a4c;
  --brand-dark: #166b3a;
  --brand-light: #e6f5ec;
  --ink: #1c2b24;
  --muted: #5b6b62;
  --bg: #f6faf7;
  --card: #ffffff;
  --border: #e3efe7;
  --accent: #27ae60;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--brand);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

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

.container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Header ---------- */
.site-header {
  background: var(--card);
  border-bottom: 1px solid var(--border);
  padding: 16px 0;
  position: sticky;
  top: 0;
  z-index: 30;
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--ink);
}

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

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

.nav {
  display: flex;
  gap: 24px;
  font-weight: 500;
}

.nav a {
  white-space: nowrap;
}

.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--card);
  cursor: pointer;
  padding: 0;
}

.menu-bar {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.menu-toggle.active .menu-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.menu-toggle.active .menu-bar:nth-child(2) {
  opacity: 0;
}
.menu-toggle.active .menu-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ---------- Hero ---------- */
.hero {
  text-align: center;
  padding: 88px 24px 72px;
  background: linear-gradient(180deg, var(--brand-light) 0%, var(--bg) 100%);
}

.hero .logo-big {
  height: 104px;
  width: auto;
  margin-bottom: 24px;
}

.hero h1 {
  font-size: 2.6rem;
  line-height: 1.15;
  margin-bottom: 18px;
  font-weight: 800;
}

.hero p {
  font-size: 1.2rem;
  color: var(--muted);
  max-width: 640px;
  margin: 0 auto 36px;
}

.cta-group {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 1rem;
  border: none;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.btn:hover {
  text-decoration: none;
  transform: translateY(-2px);
}

.btn-primary {
  background: var(--brand);
  color: #fff;
  box-shadow: 0 6px 18px rgba(31, 138, 76, 0.28);
}

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

.btn-secondary {
  background: var(--card);
  color: var(--ink);
  border: 1px solid var(--border);
}

.btn-secondary:hover {
  background: var(--brand-light);
}

/* ---------- Coming soon + store badges ---------- */
.store-badges {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 28px;
}

.store-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 20px;
  border-radius: 12px;
  background: #000;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.3s ease, border-color 0.3s ease;
  text-decoration: none;
}

.store-badge:hover {
  background: #1a1a1a;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.22);
  text-decoration: none;
}

.store-badge.is-soon {
  background: var(--brand);
  border-color: var(--brand);
  transform: translateY(-2px) scale(1.04);
  box-shadow: 0 8px 24px rgba(31, 138, 76, 0.4);
  pointer-events: none;
  animation: soonPulse 0.9s ease;
}

.store-default,
.store-soon {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.store-default[hidden],
.store-soon[hidden] {
  display: none;
}

.store-soon {
  font-weight: 700;
}

.store-soon-icon {
  font-size: 1.4rem;
  line-height: 1;
}

@keyframes soonPulse {
  0% { transform: translateY(-2px) scale(1.04); }
  50% { transform: translateY(-2px) scale(1.1); }
  100% { transform: translateY(-2px) scale(1.04); }
}

.store-icon {
  height: 28px;
  width: auto;
  flex-shrink: 0;
}

.store-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1.15;
  text-align: left;
}

.store-text small {
  font-size: 0.68rem;
  color: #c9c9c9;
  letter-spacing: 0.02em;
}

.store-text strong {
  font-size: 1.05rem;
  font-weight: 700;
}

.cta-group {
  margin-top: 32px;
}

/* ---------- Sections ---------- */
.section {
  padding: 64px 24px;
}

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

.section h2 {
  font-size: 1.9rem;
  margin-bottom: 12px;
  font-weight: 800;
}

.section .lead {
  color: var(--muted);
  max-width: 700px;
  margin-bottom: 36px;
}

.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}

.feature {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 28px;
}

.feature .icon {
  font-size: 1.8rem;
  margin-bottom: 12px;
}

.feature h3 {
  font-size: 1.15rem;
  margin-bottom: 8px;
}

.feature p {
  color: var(--muted);
  font-size: 0.95rem;
}

.notice {
  background: var(--brand-light);
  border: 1px solid var(--border);
  border-left: 4px solid var(--brand);
  border-radius: 12px;
  padding: 20px 24px;
  max-width: 760px;
  margin: 0 auto;
  color: var(--ink);
}

.notice strong {
  color: var(--brand-dark);
}

/* ---------- Legal pages ---------- */
.legal {
  max-width: 820px;
  margin: 0 auto;
  padding: 56px 24px 80px;
}

.legal h1 {
  font-size: 2.1rem;
  font-weight: 800;
  margin-bottom: 8px;
}

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

.legal h2 {
  font-size: 1.4rem;
  margin: 32px 0 12px;
  color: var(--brand-dark);
}

.legal p,
.legal ul {
  margin-bottom: 14px;
  color: var(--ink);
}

.legal ul {
  padding-left: 24px;
}

.legal li {
  margin-bottom: 6px;
}

.legal .card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 40px 44px;
}

*:focus-visible {
  outline: 3px solid var(--brand);
  outline-offset: 2px;
  border-radius: 4px;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--card);
  border-top: 1px solid var(--border);
  padding: 32px 24px;
  text-align: center;
}

.site-footer .links {
  display: flex;
  gap: 24px;
  justify-content: center;
  margin-bottom: 14px;
  flex-wrap: wrap;
  font-weight: 500;
}

.site-footer .copy {
  color: var(--muted);
  font-size: 0.9rem;
}

/* ---------- Language switcher ---------- */
.lang-wrap {
  position: relative;
  margin-left: 4px;
}

.lang-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--card);
  color: var(--ink);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.lang-btn:hover {
  background: var(--brand-light);
  border-color: var(--brand);
}

.lang-flag {
  font-size: 1rem;
  line-height: 1;
}

.lang-caret {
  font-size: 0.7rem;
  color: var(--muted);
}

.lang-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 180px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  padding: 6px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity 0.15s ease, transform 0.15s ease, visibility 0.15s;
  z-index: 20;
}

.lang-menu.open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.lang-opt {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 10px 12px;
  border: none;
  border-radius: 8px;
  background: transparent;
  color: var(--ink);
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  text-align: left;
}

.lang-opt:hover {
  background: var(--brand-light);
}

.lang-opt.active {
  background: var(--brand-light);
  color: var(--brand-dark);
  font-weight: 700;
}

/* ---------- Responsive: tablets & phones (hamburger) ---------- */
@media (max-width: 840px) {
  .menu-toggle {
    display: inline-flex;
  }

  .nav {
    position: absolute;
    top: calc(100% + 16px);
    left: 24px;
    right: 24px;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 14px;
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.10);
    padding: 8px;
    display: none;
  }

  .nav.open {
    display: flex;
    animation: navIn 0.18s ease;
  }

  @keyframes navIn {
    from { opacity: 0; transform: translateY(-6px); }
    to { opacity: 1; transform: translateY(0); }
  }

  .nav a {
    font-size: 1.05rem;
    padding: 14px 16px;
    border-radius: 10px;
    color: var(--ink);
  }

  .nav a:hover {
    background: var(--brand-light);
    text-decoration: none;
  }

  /* Language switcher sits inside the dropdown on mobile */
  .lang-wrap {
    margin: 6px 0 0;
    padding: 0 16px;
  }

  .lang-btn {
    width: 100%;
    justify-content: space-between;
    padding: 12px 16px;
  }

  .lang-menu {
    top: calc(100% + 6px);
    right: 16px;
    left: 16px;
    min-width: 0;
  }
}

/* ---------- Responsive: phones ---------- */
@media (max-width: 640px) {
  .container,
  .legal {
    padding-left: 20px;
    padding-right: 20px;
  }

  .hero {
    padding: 48px 20px 44px;
  }

  .hero h1 {
    font-size: 1.9rem;
    letter-spacing: -0.01em;
  }

  .hero p {
    font-size: 1.05rem;
    margin-bottom: 28px;
  }

  .btn {
    width: 100%;
    justify-content: center;
    padding: 15px 20px;
  }

  .cta-group {
    flex-direction: column;
    align-items: stretch;
  }

  .store-badges {
    flex-direction: column;
    align-items: stretch;
  }

  .store-badge {
    width: 100%;
    justify-content: flex-start;
    padding: 13px 20px;
  }

  .store-icon {
    height: 32px;
  }

  .section {
    padding: 44px 20px;
  }

  .section h2 {
    font-size: 1.6rem;
  }

  .section .lead {
    font-size: 1rem;
    margin-bottom: 28px;
  }

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

  .feature {
    padding: 22px;
  }

  .notice {
    padding: 18px 18px;
    font-size: 0.95rem;
  }

  .legal {
    padding-top: 36px;
    padding-bottom: 56px;
  }

  .legal .card {
    padding: 26px 20px;
  }

  .legal h1 {
    font-size: 1.7rem;
  }

  .legal h2 {
    font-size: 1.2rem;
  }

  .site-footer {
    padding: 26px 20px;
  }

  .site-footer .links {
    gap: 16px;
  }
}

/* ---------- Very small phones ---------- */
@media (max-width: 380px) {
  .hero h1 {
    font-size: 1.55rem;
  }

  .brand {
    font-size: 1.15rem;
    gap: 8px;
  }

  .brand img {
    height: 34px;
  }

  .nav {
    left: 16px;
    right: 16px;
  }
}
