:root {
  --brand: #64c270;
  --brand-dark: #4da85a;
  --brand-light: #e8f5ea;
  --brand-muted: rgba(100, 194, 112, 0.15);
  --text: #1a2e1f;
  --text-muted: #5a6f5e;
  --bg: #fafcfa;
  --white: #ffffff;
  --shadow: 0 4px 24px rgba(26, 46, 31, 0.08);
  --shadow-lg: 0 12px 48px rgba(26, 46, 31, 0.12);
  --radius: 12px;
  --radius-lg: 20px;
  --font: "DM Sans", system-ui, sans-serif;
  --header-h: 72px;
  --hero-h: min(85vh, 720px);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
}

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

a {
  color: inherit;
  text-decoration: none;
}

.container {
  width: min(1120px, 100% - 2.5rem);
  margin-inline: auto;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.65rem 1.35rem;
  font-family: inherit;
  font-size: 0.9375rem;
  font-weight: 600;
  border-radius: 999px;
  border: 2px solid transparent;
  background: var(--brand);
  color: var(--white);
  cursor: pointer;
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
  white-space: nowrap;
}

.btn:hover {
  background: var(--brand-dark);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(100, 194, 112, 0.4);
}

.btn--sm {
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
}

.btn--lg {
  padding: 0.85rem 1.75rem;
  font-size: 1rem;
}

.btn--outline {
  background: transparent;
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.7);
}

.btn--outline:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: var(--white);
  box-shadow: none;
}

/* Header & Nav */
.site-header {
  position: relative;
}

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  height: var(--header-h);
  padding: 0 1.25rem;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--brand-muted);
}

.nav__brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 700;
  font-size: 1.125rem;
  color: var(--text);
}

.nav__logo {
  width: 40px;
  height: 40px;
  object-fit: contain;
}

.nav__links {
  display: flex;
  gap: 2rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav__links a {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: color 0.2s;
}

.nav__links a:hover {
  color: var(--brand-dark);
}

.nav__actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.lang-switch {
  display: flex;
  align-items: center;
}

.lang-select {
  font-family: inherit;
  font-size: 0.8125rem;
  font-weight: 600;
  padding: 0.45rem 2rem 0.45rem 0.75rem;
  border: 1px solid var(--brand-muted);
  border-radius: 999px;
  background: var(--brand-light) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%235a6f5e' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") no-repeat right 0.65rem center;
  color: var(--text);
  cursor: pointer;
  appearance: none;
  max-width: 9.5rem;
}

.lang-select:hover,
.lang-select:focus {
  border-color: var(--brand);
  outline: none;
}

.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  border: none;
  background: none;
  cursor: pointer;
}

.nav__toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 1px;
}

/* Hero */
.hero {
  position: relative;
  min-height: var(--hero-h);
  display: flex;
  align-items: center;
  padding-top: var(--header-h);
  overflow: hidden;
}

.hero__media {
  position: absolute;
  inset: 0;
}

.hero__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 55% 35%;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    rgba(26, 46, 31, 0.82) 0%,
    rgba(26, 46, 31, 0.55) 45%,
    rgba(100, 194, 112, 0.25) 100%
  );
}

.hero__content {
  position: relative;
  z-index: 1;
  width: min(1120px, 100% - 2.5rem);
  margin-inline: auto;
  padding: 3rem 0 4rem;
  max-width: 640px;
}

.hero__badge {
  width: 72px;
  height: 72px;
  object-fit: contain;
  margin-bottom: 1.25rem;
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.2));
}

.hero h1 {
  margin: 0 0 1rem;
  font-size: clamp(2rem, 5vw, 3.25rem);
  font-weight: 700;
  line-height: 1.15;
  color: var(--white);
  letter-spacing: -0.02em;
}

.hero__lead {
  margin: 0 0 2rem;
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.65;
}

.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

/* Sections */
.section {
  padding: 5rem 0;
}

.section__header {
  text-align: center;
  max-width: 560px;
  margin: 0 auto 3rem;
}

.section__eyebrow {
  display: inline-block;
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--brand-dark);
  margin-bottom: 0.75rem;
}

.section__header h2 {
  margin: 0 0 0.75rem;
  font-size: clamp(1.75rem, 3.5vw, 2.25rem);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.section__header p {
  margin: 0;
  color: var(--text-muted);
}

/* Features */
.features {
  background: var(--white);
}

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

.feature-card {
  padding: 1.75rem;
  background: var(--bg);
  border-radius: var(--radius-lg);
  border: 1px solid var(--brand-muted);
  transition: transform 0.2s, box-shadow 0.2s;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.feature-card__icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--brand);
  color: var(--white);
  border-radius: var(--radius);
  margin-bottom: 1.25rem;
}

.feature-card__icon svg {
  width: 24px;
  height: 24px;
}

.feature-card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.125rem;
}

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

/* How it works */
.how {
  background: var(--bg);
}

.how__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.how__text h2 {
  margin: 0 0 2rem;
  font-size: clamp(1.75rem, 3vw, 2.125rem);
  font-weight: 700;
}

.how__steps {
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: step;
}

.how__steps li {
  position: relative;
  padding-left: 3.5rem;
  margin-bottom: 1.75rem;
  counter-increment: step;
}

.how__steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  width: 2.25rem;
  height: 2.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--brand);
  color: var(--white);
  font-weight: 700;
  font-size: 0.9375rem;
  border-radius: 50%;
}

.how__steps strong {
  display: block;
  font-size: 1.0625rem;
  margin-bottom: 0.25rem;
}

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

.phone-frame {
  display: block;
  margin: 0 auto;
  width: min(280px, 100%);
  padding: 10px;
  border: none;
  border-radius: 36px;
  background: linear-gradient(145deg, #2a3d2e, #1a2e1f);
  box-shadow: var(--shadow-lg);
  cursor: zoom-in;
  position: relative;
  transition: transform 0.2s, box-shadow 0.2s;
}

.phone-frame:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 56px rgba(26, 46, 31, 0.2);
}

.phone-frame img {
  width: 100%;
  height: auto;
  border-radius: 28px;
  display: block;
  background: var(--white);
}

.phone-frame__hint,
.screenshot-card__hint {
  position: absolute;
  right: 1rem;
  bottom: 1rem;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(26, 46, 31, 0.65);
  color: var(--white);
  border-radius: 50%;
  opacity: 0;
  transition: opacity 0.2s;
  pointer-events: none;
}

.phone-frame__hint svg,
.screenshot-card__hint svg {
  width: 18px;
  height: 18px;
}

.phone-frame:hover .phone-frame__hint,
.screenshot-card__btn:hover .screenshot-card__hint {
  opacity: 1;
}

/* Screenshots */
.screenshots {
  background: var(--bg);
}

.screenshots__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 1.25rem;
}

.screenshot-card {
  margin: 0;
  text-align: center;
}

.screenshot-card__btn {
  display: block;
  width: 100%;
  padding: 8px;
  border: none;
  border-radius: 24px;
  background: linear-gradient(145deg, #2a3d2e, #1a2e1f);
  box-shadow: var(--shadow);
  cursor: zoom-in;
  position: relative;
  transition: transform 0.2s, box-shadow 0.2s;
}

.screenshot-card__btn:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

.screenshot-card__btn img {
  width: 100%;
  height: auto;
  border-radius: 18px;
  display: block;
  background: var(--white);
}

.screenshot-card figcaption {
  margin-top: 0.65rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-muted);
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.lightbox[hidden] {
  display: none;
}

.lightbox__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(26, 46, 31, 0.82);
  cursor: zoom-out;
}

.lightbox__panel {
  position: relative;
  z-index: 1;
  max-width: min(420px, 100%);
  max-height: calc(100vh - 3rem);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}

.lightbox__img {
  max-width: 100%;
  max-height: calc(100vh - 8rem);
  width: auto;
  height: auto;
  border-radius: 20px;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.35);
  background: var(--white);
}

.lightbox__caption {
  margin: 0;
  color: var(--white);
  font-size: 0.9375rem;
  text-align: center;
  max-width: 360px;
}

.lightbox__close {
  position: absolute;
  top: -2.5rem;
  right: 0;
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  color: var(--white);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  transition: background 0.2s;
}

.lightbox__close:hover {
  background: rgba(255, 255, 255, 0.28);
}

body.lightbox-open {
  overflow: hidden;
}

/* Pricing */
.pricing {
  background: var(--white);
}

.pricing__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  max-width: 800px;
  margin: 0 auto;
}

.pricing-card {
  padding: 2rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--brand-muted);
  background: var(--bg);
}

.pricing-card--featured {
  border-color: var(--brand);
  box-shadow: 0 8px 32px var(--brand-muted);
}

.pricing-card--premium {
  border-color: var(--brand-light);
  background: linear-gradient(180deg, var(--white) 0%, var(--bg) 100%);
}

.pricing-card__badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  background: var(--brand);
  color: var(--white);
  margin-bottom: 1rem;
}

.pricing-card__badge--muted {
  background: var(--brand-light);
  color: var(--brand-dark);
}

.pricing-card h3 {
  margin: 0 0 1.25rem;
  font-size: 1.375rem;
}

.pricing-card__price {
  margin: 0 0 1.25rem;
  font-size: 2rem;
  font-weight: 700;
  color: var(--brand-dark);
}

.pricing-card__list {
  margin: 0;
  padding: 0 0 0 1.2rem;
  color: var(--text-muted);
}

.pricing-card__list li {
  margin-bottom: 0.5rem;
}

.pricing-card__note {
  margin: 1.25rem 0 0;
  font-size: 0.875rem;
  color: var(--text-muted);
  font-style: italic;
}

.footer__contact {
  color: rgba(255, 255, 255, 0.75);
}

.footer__links .email-link {
  color: rgba(255, 255, 255, 0.75);
}

.footer__links .email-link:hover {
  color: var(--brand);
}

/* Download */
.download {
  background: var(--white);
}

.download__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding: 3rem;
  background: linear-gradient(135deg, var(--brand-light) 0%, var(--white) 60%);
  border-radius: var(--radius-lg);
  border: 1px solid var(--brand-muted);
}

.download__content h2 {
  margin: 0 0 0.75rem;
  font-size: clamp(1.5rem, 3vw, 2rem);
}

.download__content p {
  margin: 0 0 1.75rem;
  color: var(--text-muted);
  max-width: 420px;
}

.download__logo {
  width: 160px;
  height: 160px;
  object-fit: contain;
  flex-shrink: 0;
  opacity: 0.9;
}

.store-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.store-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.65rem 1.25rem;
  background: var(--text);
  color: var(--white);
  border-radius: var(--radius);
  transition: background 0.2s, transform 0.15s;
}

.store-btn:hover {
  background: #0f1a12;
  transform: translateY(-2px);
}

.store-btn svg {
  width: 28px;
  height: 28px;
}

.store-btn small {
  display: block;
  font-size: 0.65rem;
  opacity: 0.8;
  line-height: 1.2;
}

.store-btn strong {
  display: block;
  font-size: 1rem;
  line-height: 1.2;
}

/* Footer */
.footer {
  padding: 2rem 0;
  background: var(--text);
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.875rem;
}

.footer__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.footer__brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--white);
  font-weight: 600;
}

.footer__brand img {
  width: 32px;
  height: 32px;
  object-fit: contain;
}

.footer__links {
  display: flex;
  gap: 1.5rem;
}

.footer__links a:hover {
  color: var(--brand);
}

/* Mobile nav */
@media (max-width: 900px) {
  .nav__links,
  .nav__actions .btn {
    display: none;
  }

  .nav__toggle {
    display: flex;
  }

  .nav.is-open .nav__links {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    background: var(--white);
    padding: 1.5rem;
    gap: 1rem;
    border-bottom: 1px solid var(--brand-muted);
    box-shadow: var(--shadow);
  }

  .nav.is-open .nav__actions {
    position: fixed;
    top: calc(var(--header-h) + 140px);
    left: 1.25rem;
    right: 1.25rem;
    flex-direction: column;
    align-items: stretch;
  }

  .nav.is-open .nav__actions .btn {
    display: inline-flex;
    justify-content: center;
  }

  .how__inner {
    grid-template-columns: 1fr;
  }

  .how__visual {
    order: -1;
  }

  .screenshots__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }

  .download__inner {
    flex-direction: column;
    text-align: center;
    padding: 2rem;
  }

  .download__content p {
    margin-inline: auto;
  }

  .store-buttons {
    justify-content: center;
  }

  .download__logo {
    width: 120px;
    height: 120px;
  }
}

/* Condition landing pages */
.condition-hero__brand {
  margin: 0 0 0.35rem;
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--white);
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.35);
}

.condition-hero .hero__content h1 {
  max-width: 18ch;
}

.condition-hero__privacy {
  max-width: 36rem;
  font-size: clamp(1.05rem, 2.2vw, 1.2rem);
  font-weight: 500;
}

.condition-privacy {
  background: linear-gradient(180deg, var(--brand-light) 0%, var(--bg) 100%);
}

.condition-privacy__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
  margin-top: 2rem;
}

.condition-point h3 {
  margin: 0 0 0.5rem;
  font-size: 1.125rem;
  color: var(--text);
}

.condition-point p {
  margin: 0;
  color: var(--text-muted);
}

.condition-why {
  background: var(--white);
}

.condition-why__inner {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 3rem;
  align-items: center;
}

.condition-why__lead {
  font-size: 1.0625rem;
  color: var(--text-muted);
}

.condition-why__list {
  margin: 1.5rem 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.85rem;
}

.condition-why__list li {
  position: relative;
  padding-left: 1.5rem;
  color: var(--text);
  font-weight: 500;
}

.condition-why__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: var(--brand);
}

.condition-why__visual {
  display: flex;
  justify-content: center;
}

.condition-phone {
  width: min(260px, 70%);
  border-radius: 28px;
  box-shadow: var(--shadow-lg);
  border: 3px solid rgba(26, 46, 31, 0.08);
}

.condition-steps {
  margin: 2rem 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  counter-reset: condition-step;
}

.condition-steps li {
  counter-increment: condition-step;
  display: grid;
  gap: 0.5rem;
  padding: 1.25rem 0 0;
  border-top: 2px solid var(--brand);
}

.condition-steps li::before {
  content: counter(condition-step);
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--brand-dark);
}

.condition-steps strong {
  font-size: 1.0625rem;
}

.condition-steps span {
  color: var(--text-muted);
}

.condition-back {
  margin-top: 1.5rem;
}

.condition-back a {
  color: var(--brand-dark);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

@media (max-width: 900px) {
  .condition-privacy__grid,
  .condition-steps {
    grid-template-columns: 1fr;
  }

  .condition-why__inner {
    grid-template-columns: 1fr;
  }

  .condition-why__visual {
    order: -1;
  }
}

@media (max-width: 600px) {
  .hero__image {
    object-position: 60% 30%;
  }

  .hero__cta {
    flex-direction: column;
  }

  .hero__cta .btn {
    width: 100%;
  }

  .footer__inner {
    flex-direction: column;
    text-align: center;
  }
}
