:root {
  --deep-green: #01411C;
  --accent-green: #0F7938;
  --accent-green-dark: #0B5C2A;
  --mint-bg: #EAF6EC;
  --ink: #10241A;
  --white: #FFFFFF;
  --line: #D8E7DC;
  --muted: #4B5C52;
  --error: #C0392B;
  --error-bg: #FBEAE8;
  --success-bg: #E7F6EA;

  --font-display: "Oswald", sans-serif;
  --font-body: "Manrope", sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--mint-bg);
}

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

.page {
  position: relative;
  overflow: hidden;
}

/* corner flag flourish */
.corner-flag {
  position: absolute;
  top: -40px;
  right: -60px;
  width: 260px;
  height: 220px;
  transform: rotate(8deg);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 30px 60px -20px rgba(1, 65, 28, 0.35);
  z-index: 0;
  opacity: 0.9;
}
.corner-flag svg { width: 100%; height: 100%; display: block; }

@media (max-width: 720px) {
  .corner-flag { width: 150px; height: 130px; top: -20px; right: -40px; }
}

.hero {
  position: relative;
  z-index: 1;
  padding: 72px 8vw 56px;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 64px;
  align-items: center;
  max-width: 1240px;
  margin: 0 auto;
}

@media (max-width: 980px) {
  .hero-inner { grid-template-columns: 1fr; gap: 40px; }
  .hero { padding: 56px 6vw 40px; }
}

/* ---------- copy column ---------- */

.eyebrow {
  font-family: var(--font-body);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 0.8rem;
  color: var(--muted);
  margin: 0 0 10px;
}

.headline {
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
  line-height: 0.98;
  letter-spacing: 0.01em;
  margin: 0;
  font-size: clamp(2.1rem, 5.6vw, 3.6rem);
}

.headline .line { display: block; }
.headline .accent { color: var(--accent-green); }
.headline .ink { color: var(--ink); }

.tower {
  display: inline-flex;
  height: 0.98em;
  width: 0.42em;
  vertical-align: baseline;
  transform: translateY(0.02em);
}
.tower svg { width: 100%; height: 100%; fill: currentColor; }

.rule {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 22px 0 26px;
}
.rule::before {
  content: "";
  width: 64px;
  height: 3px;
  background: var(--accent-green);
  border-radius: 2px;
}
.rule .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent-green);
}

.feature-list {
  list-style: none;
  margin: 0 0 26px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.feature-list li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  background: rgba(255,255,255,0.55);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px 16px;
}

.feature-icon {
  flex: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--accent-green);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.9rem;
}
.feature-icon svg { width: 20px; height: 20px; }

.feature-list strong {
  display: block;
  font-size: 0.98rem;
  font-weight: 700;
  margin-bottom: 2px;
}
.feature-list p {
  margin: 0;
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.35;
}

.badges { display: flex; gap: 12px; }
.badge {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  padding: 10px 16px;
  border-radius: 10px;
  color: #fff;
}
.badge-js { background: #F0DB4F; color: #10241A; }
.badge-re { background: #6C63FF; }

/* ---------- demo / card column ---------- */

.hero-demo { display: flex; justify-content: center; }

.card {
  width: 100%;
  max-width: 440px;
  background: var(--white);
  border-radius: 22px;
  padding: 34px 32px 28px;
  box-shadow: 0 30px 70px -30px rgba(1, 65, 28, 0.35), 0 2px 8px rgba(1,65,28,0.06);
  border: 1px solid var(--line);
}

.card-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--accent-green);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}
.card-icon svg { width: 26px; height: 26px; }

.card h2 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  line-height: 1.15;
  margin: 0 0 6px;
}
.card h2 .accent { color: var(--accent-green); }

.card-sub {
  margin: 0 0 22px;
  color: var(--muted);
  font-size: 0.92rem;
}

.field-label {
  display: block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 8px;
}

.input-row {
  display: flex;
  align-items: stretch;
  border: 1.5px solid var(--accent-green);
  border-radius: 12px;
  overflow: hidden;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.input-row:focus-within {
  box-shadow: 0 0 0 3px rgba(15, 121, 56, 0.18);
}
.input-row[data-state="invalid"] {
  border-color: var(--error);
}
.input-row[data-state="invalid"]:focus-within {
  box-shadow: 0 0 0 3px rgba(192, 57, 43, 0.16);
}

.country-code {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 14px;
  background: #F5FAF6;
  border-right: 1px solid var(--line);
  font-weight: 700;
  font-size: 0.95rem;
  white-space: nowrap;
}
.flag { width: 22px; height: 15px; border-radius: 2px; }

#phone-input {
  flex: 1;
  min-width: 0;
  border: none;
  outline: none;
  padding: 14px 16px;
  font-family: var(--font-body);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--ink);
  background: transparent;
}
#phone-input::placeholder { color: #9FB3A6; font-weight: 500; }

.result {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  margin-top: 18px;
  padding: 16px 16px;
  border-radius: 14px;
  background: #F4F7F5;
  border: 1px solid var(--line);
  transition: background 0.15s ease, border-color 0.15s ease;
}
.result[data-state="valid"] {
  background: var(--success-bg);
  border-color: #BFE3C8;
}
.result[data-state="invalid"] {
  background: var(--error-bg);
  border-color: #F1C4BE;
}

.result-icon {
  flex: none;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #C9D6CE;
  margin-top: 2px;
}
.result[data-state="valid"] .result-icon { background: var(--accent-green); }
.result[data-state="invalid"] .result-icon { background: var(--error); }
.result-icon svg { width: 16px; height: 16px; }

.result-title {
  margin: 0 0 2px;
  font-weight: 700;
  font-size: 0.96rem;
}
.result[data-state="valid"] .result-title { color: var(--accent-green-dark); }
.result[data-state="invalid"] .result-title { color: var(--error); }

.result-message {
  margin: 0;
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.4;
}

.checklist {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px dashed var(--line);
}

.check {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 0.84rem;
  font-weight: 600;
  color: #9FB3A6;
}
.check i {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #DCE7DF;
  position: relative;
  flex: none;
}
.check i::before {
  content: "";
  position: absolute;
  inset: 0;
}
.check.is-valid { color: var(--accent-green-dark); }
.check.is-valid i { background: var(--accent-green); }
.check.is-valid i::before {
  background: none;
  border: solid #fff;
  border-width: 0 0 2px 2px;
  width: 7px;
  height: 4px;
  top: 5px;
  left: 5px;
  transform: rotate(-45deg);
}
.check.is-invalid { color: var(--error); }
.check.is-invalid i { background: var(--error); }
.check.is-invalid i::before {
  background: #fff;
  width: 8px;
  height: 2px;
  top: 8px;
  left: 5px;
  border-radius: 1px;
}

.site-footer {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 26px 6vw 40px;
  color: var(--muted);
  font-size: 0.85rem;
}