:root {
  --bg: #ffffff;
  --bg-soft: #f7f7f8;
  --bg-elevated: #ffffff;
  --text: #0d0d0d;
  --text-secondary: #6e6e80;
  --border: #e5e5e5;
  --accent: #10a37f;
  --accent-hover: #0d8c6d;
  --accent-soft: rgba(16, 163, 127, 0.12);
  --shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
  --radius: 12px;
  --radius-lg: 24px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --max: 1120px;
  --cta: #10a37f;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body.menu-open {
  overflow: hidden;
}

img,
svg {
  display: block;
  max-width: 100%;
}

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

.container {
  width: min(100% - 24px, var(--max));
  margin-inline: auto;
  padding-inline: max(0px, env(safe-area-inset-left)) max(0px, env(safe-area-inset-right));
}

@media (min-width: 480px) {
  .container {
    width: min(100% - 32px, var(--max));
  }
}

/* Header */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding-top: env(safe-area-inset-top);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 0;
  min-height: 52px;
}

@media (min-width: 768px) {
  .header__inner {
    gap: 16px;
    padding: 14px 0;
    min-height: auto;
  }
}

.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: -0.02em;
  min-width: 0;
}

@media (min-width: 480px) {
  .logo {
    gap: 10px;
    font-size: 1.05rem;
  }
}

.logo__icon {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
}

@media (min-width: 480px) {
  .logo__icon {
    width: 32px;
    height: 32px;
  }
}

.logo__text {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.header__actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.nav {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.nav--desktop {
  display: none;
  gap: 28px;
}

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

@media (min-width: 768px) {
  .nav--desktop {
    display: flex;
  }
}

.nav--mobile {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 12px max(12px, env(safe-area-inset-right)) 16px max(12px, env(safe-area-inset-left));
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.06);
}

.nav--mobile[hidden] {
  display: none !important;
}

.nav--mobile a {
  display: block;
  padding: 14px 12px;
  font-size: 1rem;
  font-weight: 500;
  color: var(--text);
  border-radius: var(--radius);
}

.nav--mobile a:hover,
.nav--mobile a:active {
  background: var(--bg-soft);
}

.nav--mobile .btn {
  margin-top: 8px;
}

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

.menu-toggle__bar {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.2s, opacity 0.2s;
}

body.menu-open .menu-toggle__bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

body.menu-open .menu-toggle__bar:nth-child(2) {
  opacity: 0;
}

body.menu-open .menu-toggle__bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

@media (min-width: 768px) {
  .menu-toggle {
    display: none;
  }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
  white-space: nowrap;
  min-height: 44px;
  -webkit-tap-highlight-color: transparent;
}

.btn--header {
  padding: 10px 16px;
  font-size: 0.875rem;
}

@media (min-width: 480px) {
  .btn--header {
    padding: 12px 22px;
    font-size: 0.95rem;
  }
}

.btn--block,
.btn--block-sm {
  width: 100%;
  max-width: 100%;
}

@media (min-width: 480px) {
  .btn--block-sm {
    width: auto;
    max-width: none;
  }
}

.btn--primary {
  background: var(--cta);
  color: #fff;
  box-shadow: 0 2px 8px rgba(16, 163, 127, 0.35);
}

.btn--primary:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(16, 163, 127, 0.4);
}

.btn--primary:active {
  transform: translateY(0);
}

.btn--lg {
  padding: 14px 24px;
  font-size: 1rem;
}

@media (min-width: 480px) {
  .btn--lg {
    padding: 16px 32px;
    font-size: 1.05rem;
  }
}

.btn--ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}

.btn--ghost:hover {
  background: var(--bg-soft);
}

.btn__arrow {
  font-size: 1.1em;
  line-height: 1;
}

/* Hero */
.hero {
  padding: 32px 0 48px;
  text-align: center;
}

@media (min-width: 768px) {
  .hero {
    padding: 72px 0 88px;
  }
}

.badge {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  padding: 6px 12px;
  margin-bottom: 20px;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--accent);
  background: var(--accent-soft);
  border-radius: 999px;
  max-width: 100%;
}

@media (min-width: 480px) {
  .badge {
    padding: 6px 14px;
    margin-bottom: 24px;
    font-size: 0.85rem;
  }
}

.badge__dot {
  width: 8px;
  height: 8px;
  background: var(--accent);
  border-radius: 50%;
  animation: pulse 2s ease infinite;
}

@keyframes pulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}

.hero__title {
  margin: 0 0 16px;
  font-size: clamp(1.5rem, 6.5vw, 3rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.03em;
  max-width: 100%;
  margin-inline: auto;
  padding-inline: 4px;
  word-wrap: break-word;
  overflow-wrap: break-word;
  hyphens: auto;
}

@media (min-width: 768px) {
  .hero__title {
    margin-bottom: 20px;
    max-width: 20ch;
  }
}

.hero__title span {
  color: var(--accent);
}

.hero__lead {
  margin: 0 auto 24px;
  max-width: 42rem;
  font-size: clamp(0.95rem, 2.8vw, 1.2rem);
  color: var(--text-secondary);
  padding-inline: 4px;
}

@media (min-width: 768px) {
  .hero__lead {
    margin-bottom: 32px;
  }
}

.hero__cta {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 10px;
  margin-bottom: 16px;
  width: 100%;
  max-width: 360px;
  margin-inline: auto;
}

.hero__cta .btn {
  width: 100%;
  white-space: normal;
  text-align: center;
}

@media (min-width: 480px) {
  .hero__cta {
    align-items: center;
    max-width: none;
  }

  .hero__cta .btn {
    width: auto;
    white-space: nowrap;
  }
}

@media (min-width: 640px) {
  .hero__cta {
    flex-direction: row;
    justify-content: center;
  }
}

.hero__note {
  font-size: 0.8rem;
  color: var(--text-secondary);
}

.hero__mock {
  margin-top: 32px;
  padding: 16px;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-align: left;
  max-width: 640px;
  margin-inline: auto;
  box-shadow: var(--shadow);
}

@media (min-width: 480px) {
  .hero__mock {
    margin-top: 48px;
    padding: 24px;
    border-radius: var(--radius-lg);
  }
}

.mock__bar {
  display: flex;
  gap: 6px;
  margin-bottom: 20px;
}

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

.mock__dot:nth-child(1) {
  background: #ff5f57;
}
.mock__dot:nth-child(2) {
  background: #febc2e;
}
.mock__dot:nth-child(3) {
  background: #28c840;
}

.mock__msg {
  padding: 12px 14px;
  border-radius: var(--radius);
  margin-bottom: 10px;
  font-size: 0.875rem;
  max-width: 95%;
  line-height: 1.45;
  word-break: break-word;
}

@media (min-width: 480px) {
  .mock__msg {
    padding: 14px 16px;
    margin-bottom: 12px;
    font-size: 0.95rem;
    max-width: 90%;
  }
}

.mock__msg--user {
  margin-left: auto;
  background: var(--accent);
  color: #fff;
}

.mock__msg--bot {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  color: var(--text);
}

/* Sections */
.section {
  padding: 40px 0;
}

@media (min-width: 768px) {
  .section {
    padding: 64px 0;
  }
}

.section-cta {
  text-align: center;
  margin-top: 24px;
  padding-inline: 4px;
}

@media (min-width: 768px) {
  .section-cta {
    margin-top: 32px;
  }
}

.section--soft {
  background: var(--bg-soft);
  border-block: 1px solid var(--border);
}

.section__title {
  margin: 0 0 12px;
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  text-align: center;
}

.section__subtitle {
  margin: 0 auto 28px;
  max-width: 36rem;
  text-align: center;
  color: var(--text-secondary);
  font-size: 0.95rem;
  padding-inline: 4px;
}

@media (min-width: 768px) {
  .section__subtitle {
    margin-bottom: 40px;
    font-size: 1rem;
  }
}

/* Benefits grid */
.grid {
  display: grid;
  gap: 20px;
}

@media (min-width: 600px) {
  .grid--2 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 900px) {
  .grid--3 {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 600px) and (max-width: 899px) {
  .grid--3 {
    grid-template-columns: repeat(2, 1fr);
  }
}

.card {
  padding: 20px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color 0.2s, box-shadow 0.2s;
}

@media (min-width: 768px) {
  .card {
    padding: 24px;
  }
}

.section--soft .card {
  background: var(--bg);
}

.card:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow);
}

.card__icon {
  width: 44px;
  height: 44px;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  background: var(--accent-soft);
  border-radius: 10px;
}

.card__title {
  margin: 0 0 8px;
  font-size: 1.1rem;
  font-weight: 600;
}

.card__text {
  margin: 0;
  font-size: 0.95rem;
  color: var(--text-secondary);
}

/* Steps */
.steps {
  counter-reset: step;
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 20px;
}

@media (min-width: 768px) {
  .steps {
    grid-template-columns: repeat(3, 1fr);
  }
}

.step {
  position: relative;
  padding: 28px 24px 24px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.section--soft .step {
  background: var(--bg-elevated);
}

.step::before {
  counter-increment: step;
  content: counter(step);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  margin-bottom: 16px;
  font-weight: 700;
  font-size: 0.95rem;
  color: #fff;
  background: var(--accent);
  border-radius: 50%;
}

.step__title {
  margin: 0 0 8px;
  font-weight: 600;
}

.step__text {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

/* FAQ */
.faq {
  max-width: 720px;
  margin: 0 auto;
}

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

.faq summary {
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  padding-right: 32px;
  position: relative;
  font-size: 0.95rem;
  line-height: 1.4;
  -webkit-tap-highlight-color: transparent;
}

@media (min-width: 480px) {
  .faq summary {
    font-size: 1rem;
    padding-right: 24px;
  }
}

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

.faq summary::after {
  content: "+";
  position: absolute;
  right: 0;
  top: 0;
  color: var(--accent);
  font-size: 1.25rem;
  font-weight: 400;
}

.faq details[open] summary::after {
  content: "−";
}

.faq__answer {
  margin: 12px 0 0;
  color: var(--text-secondary);
  font-size: 0.95rem;
}

/* CTA block */
.cta-block {
  text-align: center;
  padding: 36px 20px;
  background: linear-gradient(135deg, #0d8c6d 0%, #10a37f 50%, #12b886 100%);
  border-radius: var(--radius);
  color: #fff;
}

.cta-block .btn--lg {
  width: 100%;
  max-width: 320px;
  white-space: normal;
}

@media (min-width: 480px) {
  .cta-block {
    padding: 48px 28px;
    border-radius: var(--radius-lg);
  }

  .cta-block .btn--lg {
    width: auto;
    white-space: nowrap;
  }
}

@media (min-width: 768px) {
  .cta-block {
    padding: 56px 32px;
  }
}

.cta-block__title {
  margin: 0 0 12px;
  font-size: clamp(1.4rem, 3vw, 1.85rem);
  font-weight: 700;
}

.cta-block__text {
  margin: 0 auto 24px;
  max-width: 32rem;
  opacity: 0.92;
  font-size: 0.95rem;
  line-height: 1.5;
  padding-inline: 4px;
}

@media (min-width: 480px) {
  .cta-block__text {
    margin-bottom: 28px;
    font-size: 1.05rem;
  }
}

.cta-block .btn--primary {
  background: #fff;
  color: var(--accent);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.cta-block .btn--primary:hover {
  background: #f0fdf9;
  color: var(--accent-hover);
}

/* Footer */
.footer {
  padding: 28px 0 calc(88px + env(safe-area-inset-bottom));
  font-size: 0.75rem;
  color: var(--text-secondary);
  text-align: center;
  line-height: 1.5;
}

@media (min-width: 480px) {
  .footer {
    font-size: 0.8rem;
  }
}

.footer p {
  margin: 0 0 8px;
  max-width: 40rem;
  margin-inline: auto;
}

/* Sticky mobile CTA */
.sticky-cta {
  display: flex;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 200;
  padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
  padding-left: max(12px, env(safe-area-inset-left));
  padding-right: max(12px, env(safe-area-inset-right));
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-top: 1px solid var(--border);
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.06);
}

body.menu-open .sticky-cta {
  display: none;
}

.sticky-cta .btn {
  flex: 1;
  width: 100%;
}

@media (min-width: 768px) {
  .sticky-cta {
    display: none;
  }
  .footer {
    padding-bottom: 40px;
  }
}

/* Visually hidden for a11y */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
