:root {
  --bg: #f5f7fa;
  --bg-alt: #ffffff;
  --primary: #1b8f3b;
  --primary-soft: #e3f6e9;
  --text: #111827;
  --muted: #6b7280;
  --border: #e5e7eb;
  --radius: 14px;
  --shadow: 0 10px 20px rgba(15, 23, 42, 0.08);
}

/* Reset */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
}

/* Topbar */
.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.7rem 1rem;
  background: #ffffff;
  border-bottom: 1px solid rgba(226, 232, 240, 0.8);
}

/* Right side of header: nav + language */
.topbar-right {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  max-width: 100%;
  white-space: nowrap;
}

.logo img {
  max-height: 40px;
  width: auto;
  display: block;
}

.logo-mark {
  font-size: 1.2rem;
}

.logo-text {
  font-weight: 700;
  font-size: 0.95rem;
}

/* Menu icon (mobile) */
.nav-toggle {
  border: none;
  background: none;
  font-size: 1.4rem;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Mobile nav */
.nav-links {
  position: fixed;
  top: 56px;
  left: 0;
  right: 0;
  background: #fff;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  padding: 0.6rem 1rem 1rem;
  transform: translateY(-120%);
  transition: transform 0.2s ease-out;
}

.nav-links.nav-open {
  transform: translateY(0);
}

.nav-links a {
  padding: 0.5rem 0.7rem;
  border-radius: 999px;
  text-decoration: none;
  color: var(--muted);
  font-size: 0.9rem;
}

.nav-links a.active {
  background: var(--primary-soft);
  color: var(--primary);
  font-weight: 600;
}

.btn-link {
  border: 1px solid var(--border);
}

/* Language dropdown */
.lang-select {
  margin-left: 0.75rem;
}

.lang-select select {
  border-radius: 999px;
  border: 1px solid var(--border);
  padding: 0.2rem 0.7rem;
  font-size: 0.8rem;
  background: #fff;
  color: var(--muted);
  outline: none;
  cursor: pointer;
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%),
                    linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position: calc(100% - 10px) 55%, calc(100% - 6px) 55%;
  background-size: 4px 4px, 4px 4px;
  background-repeat: no-repeat;
  padding-right: 1.5rem;
}

/* Hero */
.hero {
  padding: 1.6rem 1rem 0.4rem;
}

.hero-text h1 {
  font-size: 1.6rem;
  line-height: 1.25;
  margin-bottom: 0.5rem;
}

.hero-text p {
  font-size: 0.95rem;
  color: var(--muted);
  margin-bottom: 0.9rem;
}

.hero-actions {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 0.7rem;
}

.hero-tags {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  font-size: 0.8rem;
  color: var(--muted);
}

.hero-tags li {
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--border);
  padding: 0.2rem 0.6rem;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.55rem 1.1rem;
  border-radius: 999px;
  border: none;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
}

.primary {
  background: linear-gradient(135deg, var(--primary), #0f7430);
  color: #fff;
  box-shadow: var(--shadow);
}

.ghost {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text);
}

/* Sections */
.section {
  padding: 1rem;
}

.section-alt {
  background: #f9fafb;
}

.section-title {
  font-size: 1.1rem;
  margin-bottom: 0.7rem;
}

/* Cards & steps */
.cards {
  display: grid;
  gap: 0.7rem;
}

.card {
  background: #fff;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  padding: 0.75rem 0.9rem;
  box-shadow: 0 8px 16px rgba(15, 23, 42, 0.03);
}

.card h3 {
  font-size: 0.95rem;
  margin-bottom: 0.25rem;
}

.card p {
  font-size: 0.85rem;
  color: var(--muted);
}

.steps {
  list-style: none;
  display: grid;
  gap: 0.7rem;
}

.steps li {
  background: #fff;
  border-radius: var(--radius);
  border: 1px dashed var(--border);
  padding: 0.65rem 0.8rem;
}

.steps h3 {
  font-size: 0.9rem;
  margin-bottom: 0.15rem;
}

.steps p {
  font-size: 0.8rem;
  color: var(--muted);
}
 .screens-row {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  padding-bottom: 0.5rem;
}

/* Make each screen preview bigger */
.screen-placeholder {
  flex: 0 0 280px;         /* was 140px */
  height: 440px;           /* was 240px */
  border-radius: 24px;
  border: 1px solid var(--border);
  background: linear-gradient(145deg, #e5f9e9, #f9fafb);
  display: flex;
  flex-direction: column;   /* image on top, text below */
  align-items: center;
  padding: 0.75rem;
  box-sizing: border-box;
  overflow: hidden;
}

/* Let image use most of the height */
.screen-placeholder img {
  width: 100%;
  height: 100%;
  flex: 1;                  /* image grows to fill available space */
  object-fit: contain;      /* or 'cover' if you want edge‑to‑edge */
  border-radius: 18px;
}

/* Label at bottom */
.screen-label {
  margin-top: 0.5rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--muted);
  text-align: center;
}


/* Links */
.text-link {
  display: inline-block;
  margin-top: 0.5rem;
  font-size: 0.85rem;
  color: var(--primary);
  text-decoration: none;
}

/* CTA section */
.cta-section {
  text-align: center;
}

.cta-section p {
  font-size: 0.9rem;
  color: var(--muted);
  margin-bottom: 0.7rem;
}

/* Page layout */
.page {
  padding: 3rem 1rem 1rem;
}

.page-header {
  margin-bottom: 0.9rem;
}

.page-header h1 {
  font-size: 1.3rem;
  margin-bottom: 0.3rem;
}

.page-header p {
  font-size: 0.9rem;
  color: var(--muted);
}

/* Footer */
.footer {
  border-top: 1px solid var(--border);
  background: #fff;
  margin-top: 0.25rem;
}

.footer-main {
  padding: 0.6rem 1rem 0.3rem;
  display: grid;
  gap: 0.6rem;
}

.footer-col h3,
.footer-col h4 {
  font-size: 0.9rem;
  margin-bottom: 0.2rem;
}

.footer-col p,
.footer-col li {
  font-size: 0.78rem;
  line-height: 1.4;
  color: var(--muted);
}

.footer-col ul {
  list-style: none;
  display: grid;
  gap: 0.2rem;
}

.footer-col a {
  color: var(--muted);
  text-decoration: none;
}

.footer-col a:hover {
  color: var(--text);
}

.footer-tagline {
  margin-top: 0.1rem;
}

.footer-bottom {
  border-top: 1px dashed var(--border);
  padding: 0.25rem 1rem 0.35rem;
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  color: var(--muted);
}

/* Contact page */
.contact-grid {
  display: grid;
  gap: 0.8rem;
}

.contact-card p {
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 0.5rem;
}

.contact-form {
  margin-top: 0.7rem;
  display: grid;
  gap: 0.7rem;
  max-width: 480px;
}

.form-row {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.form-row label {
  font-size: 0.85rem;
  color: var(--text);
}

.form-row input,
.form-row select,
.form-row textarea {
  border-radius: 8px;
  border: 1px solid var(--border);
  padding: 0.45rem 0.6rem;
  font-size: 0.9rem;
  font-family: inherit;
}

.form-row textarea {
  resize: vertical;
}

.contact-notes {
  list-style: disc;
  padding-left: 1.1rem;
  font-size: 0.85rem;
  color: var(--muted);
  display: grid;
  gap: 0.3rem;
}

/* Trust / privacy helper */
.trust-links {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin-top: 0.4rem;
}

.privacy-list {
  list-style: disc;
  padding-left: 1.1rem;
  font-size: 0.85rem;
  color: var(--muted);
  display: grid;
  gap: 0.3rem;
}

/* Mobile: language below links in menu */
@media (max-width: 767px) {
  .lang-select {
    margin: 0.4rem 0 0;
    align-self: flex-start;
  }
}

/* Desktop layout (from 1024px up) */
@media (min-width: 1024px) {
  .topbar {
    padding-inline: 2rem;
  }

  .nav-toggle {
    display: none;
  }

  .topbar-right {
    display: flex;
    align-items: center;
    gap: 1rem; /* a bit more space between nav and dropdown */
  }

  .nav-links {
    position: static;
    flex-direction: row;
    align-items: center;
    transform: none;
    padding: 0;
    gap: 0.6rem;
  }

  .hero {
    max-width: 960px;
    margin: 4rem auto 0;
  }

  .section,
  .page,
  .footer-main {
    max-width: 960px;
    margin-inline: auto;
  }

  .cards {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .footer-main {
    grid-template-columns: 2fr 1fr 1fr;
    gap: 0.8rem;
  }

  .contact-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .trust-links {
    flex-direction: row;
    justify-content: center;
    gap: 1rem;
  }
}
/* language block when it sits inside nav */
.nav-lang {
  margin-left: 0;
}

/* Mobile: dropdown as a menu item, not top-right */
@media (max-width: 767px) {
  .topbar-right {
    /* nothing special; nav is full-width */
  }

  .nav-links {
    /* already column layout */
  }

  .lang-select {
    margin-top: 0.4rem;
    align-self: stretch;        /* full width like other items */
  }

  .lang-select select {
    width: 100%;
  }
}

/* Desktop: dropdown back on the right end of the row */
@media (min-width: 1024px) {
  .nav-links {
    position: static;
    flex-direction: row;
    align-items: center;
    transform: none;
    padding: 0;
    gap: 0.6rem;
  }

  .lang-select {
    margin-left: 0.75rem;
  }

  .nav-lang {
    margin-left: 1rem;          /* little gap after links */
  }
}
