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

:root {
  --green: #37714f;
  --green-dark: #2a5740;
  --green-deep: #1e3f2e;
  --ink: #17211b;
  --muted: #3e5148;
  --line: #d9e3dc;
  --paper: #f5f7f6;
  --white: #ffffff;
  --danger: #6f1d1d;
  --danger-bg: #fdecec;
  --ok: #145233;
  --ok-bg: #e7f5ec;
  --shadow: 0 18px 50px rgba(23, 33, 27, 0.08);
  color-scheme: light;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: "Avenir Next", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(55, 113, 79, 0.1), transparent 34%),
    var(--paper);
}

main {
  flex: 1;
}

h1,
h2,
h3,
p {
  overflow-wrap: break-word;
}

h1,
h2 {
  text-wrap: balance;
  letter-spacing: -0.03em;
  line-height: 1.15;
}

h1 {
  margin: 0 0 12px;
  font-size: clamp(2rem, 4vw, 3.4rem);
}

h2 {
  margin: 0 0 10px;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
}

h3 {
  margin: 12px 0 6px;
  font-size: 1.15rem;
}

p {
  margin: 0 0 12px;
}

a {
  color: var(--green-deep);
}

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

button,
input {
  font: inherit;
}

.shell {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -48px;
  z-index: 50;
  padding: 8px 12px;
  border-radius: 8px;
  background: var(--green);
  color: var(--white);
  text-decoration: none;
}

.skip-link:focus {
  top: 12px;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(245, 247, 246, 0.92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
}

.header-bar {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 72px;
  gap: 16px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-right: auto;
  color: inherit;
  font-weight: 800;
  letter-spacing: -0.02em;
  text-decoration: none;
}

.logo-mark {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--green);
  color: var(--white);
}

.nav-check {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}

.nav-burger {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--white);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
}

.nav-burger > span:not(.sr-only) {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--ink);
}

.nav-check:focus-visible + .nav-burger,
.btn:focus-visible,
.nav-link:focus-visible,
.lang-link:focus-visible,
.text-btn:focus-visible,
input:focus-visible {
  outline: 3px solid rgba(55, 113, 79, 0.45);
  outline-offset: 2px;
}

.nav-panel {
  display: flex;
  align-items: center;
  gap: 8px 16px;
}

.nav-link {
  padding: 8px 2px;
  color: var(--ink);
  font-weight: 700;
  text-decoration: none;
}

.nav-link.is-active {
  color: var(--green);
}

.nav-user {
  max-width: 140px;
  overflow: hidden;
  color: var(--muted);
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.lang-switch {
  display: inline-flex;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--white);
}

.lang-link {
  padding: 6px 10px;
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 800;
  text-decoration: none;
}

.lang-link.is-current {
  background: var(--green);
  color: var(--white);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
}

.btn-primary {
  background: var(--green);
  color: var(--white);
}

.btn-secondary {
  background: var(--white);
  color: var(--green-deep);
  border-color: #c5d7cb;
}

.nav-cta {
  min-height: 40px;
  padding: 0 14px;
}

.hero {
  padding: 36px 0 12px;
}

.hero-grid,
.steps,
.split,
.stats {
  display: grid;
  gap: 16px;
  grid-template-columns: minmax(0, 1fr);
}

.hero-grid {
  gap: 32px;
  align-items: center;
}

.kicker {
  margin: 0 0 8px;
  color: var(--green);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.lede {
  max-width: 42rem;
  color: var(--muted);
  font-size: 1.05rem;
}

.hero-actions,
.closing-actions,
.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hero-actions {
  margin-top: 20px;
}

.chips,
.check-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
}

.chips li {
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--white);
  color: var(--green-deep);
  font-weight: 700;
}

.preview {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.preview-screen {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 220px;
  aspect-ratio: 16 / 10;
  background:
    radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.18), transparent 28%),
    linear-gradient(160deg, #2f6a4c, #173528);
}

.preview-badge {
  position: absolute;
  top: 16px;
  left: 16px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--green-deep);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.play-btn {
  display: grid;
  place-items: center;
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background: var(--white);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.preview-body {
  padding: 18px 18px 22px;
}

.preview-body strong {
  display: block;
  margin-bottom: 6px;
  font-size: 1.15rem;
}

.preview-body p,
.audience p,
.step p,
.closing p {
  color: var(--muted);
}

.band {
  padding: 28px 0;
}

.step,
.audience,
.stat,
.auth-card {
  border: 1px solid var(--line);
  background: var(--white);
}

.step,
.audience {
  border-radius: 24px;
  padding: 22px;
}

.audience {
  border-top: 4px solid var(--green);
}

.step-index {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #e7f2eb;
  color: var(--green);
  font-weight: 800;
}

.check-list li {
  position: relative;
  margin: 10px 0;
  padding-left: 28px;
}

.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.45em;
  width: 14px;
  height: 8px;
  border-bottom: 2px solid var(--green);
  border-left: 2px solid var(--green);
  transform: rotate(-45deg);
}

.closing {
  padding: 36px 24px;
  border-radius: 28px;
  background: var(--green);
  color: var(--white);
  text-align: center;
}

.closing p {
  color: var(--white);
}

.closing-actions {
  justify-content: center;
  margin-top: 18px;
}

.closing .btn-primary {
  background: var(--white);
  color: var(--green-deep);
}

.closing .btn-secondary {
  background: transparent;
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.75);
}

.auth-shell {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 28px 0 64px;
}

.auth-card {
  width: min(460px, 100%);
  margin: 0 auto;
  padding: 28px 22px;
  border-radius: 24px;
  box-shadow: var(--shadow);
}

.auth-card h1 {
  font-size: clamp(1.7rem, 3vw, 2.1rem);
}

.field {
  margin-bottom: 14px;
}

.field label {
  display: block;
  margin-bottom: 6px;
  font-weight: 700;
}

.field input {
  width: 100%;
  min-height: 48px;
  padding: 10px 12px;
  border: 1px solid #c5d7cb;
  border-radius: 12px;
  background: var(--white);
  color: var(--ink);
}

.hint,
.switch-auth,
.account-meta {
  color: var(--muted);
}

.hint,
.switch-auth {
  font-size: 0.92rem;
}

.password-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.password-row input {
  flex: 1;
  min-width: 0;
}

.text-btn {
  min-height: 44px;
  padding: 0 8px;
  border: 0;
  background: transparent;
  color: var(--green-deep);
  font-weight: 800;
  cursor: pointer;
}

.js-only {
  display: none;
}

.has-js .js-only {
  display: inline-flex;
}

.form-actions {
  display: grid;
  margin-top: 8px;
}

.auth-card .btn {
  width: 100%;
}

.alert {
  margin-bottom: 16px;
  padding: 12px 14px;
  border-radius: 12px;
}

.alert ul {
  margin: 0;
  padding-left: 1.1rem;
}

.alert li + li {
  margin-top: 4px;
}

.alert-error {
  background: var(--danger-bg);
  color: var(--danger);
}

.alert-success {
  background: var(--ok-bg);
  color: var(--ok);
}

.page-head {
  padding: 32px 0 8px;
}

.account-meta {
  overflow-wrap: anywhere;
}

.stats {
  padding-bottom: 48px;
}

.stat {
  display: flex;
  min-height: 140px;
  flex-direction: column;
  justify-content: space-between;
  padding: 18px;
  border-radius: 20px;
}

.stat-label {
  color: var(--muted);
  font-weight: 700;
}

.stat-value {
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.03em;
}

.stat.is-accent {
  border-color: var(--green);
  background: var(--green);
  color: var(--white);
}

.stat.is-accent .stat-label {
  color: var(--white);
}

.site-footer {
  padding: 28px 0 40px;
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.footer-bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
}

.footer-bar p {
  margin: 0;
}

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

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

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

  .hero-grid {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  }
}

@media (min-width: 1000px) {
  .stats {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 960px) {
  .nav-burger {
    display: inline-flex;
    margin-left: auto;
  }

  .nav-panel {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    padding-bottom: 16px;
  }

  .nav-check:checked ~ .nav-panel {
    display: flex;
  }

  .nav-cta {
    width: 100%;
  }

  .lang-switch {
    align-self: flex-start;
  }

  .header-bar {
    flex-wrap: wrap;
  }
}

@media (min-width: 961px) {
  .nav-check {
    display: none;
  }
}

@media (hover: hover) {
  .btn-primary:hover {
    background: var(--green-dark);
  }

  .closing .btn-primary:hover {
    background: #e7f2eb;
  }

  .btn-secondary:hover,
  .nav-link:hover {
    border-color: var(--green);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
