:root {
  --bg: #ffffff;
  --bg-alt: #f7f2fb;
  --ink: #1f1630;
  --muted: #6b6280;
  --line: #e7dff0;
  --card: #ffffff;
  --accent: #5a2d81;
  --accent-bright: #00b5e2;
  --accent-dark: #3d1a5c;
  --accent-soft: #f1e6ff;
  --highlight: #7a2b91;
  --danger: #ef4444;
  --header: rgba(255, 255, 255, 0.95);
  --shadow: 0 18px 50px rgba(90, 45, 129, 0.1);
  --radius: 22px;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.5;
}

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

button,
input,
select {
  font: inherit;
}

a {
  color: inherit;
}

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

.narrow {
  width: min(760px, calc(100% - 32px));
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-top: 4px solid var(--accent);
  background: var(--header);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(31, 41, 55, 0.08);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 68px;
  gap: 16px;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

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

.lang-btn {
  border: 0;
  background: transparent;
  min-width: 44px;
  min-height: 40px;
  padding: 8px 12px;
  font-weight: 700;
  font-size: 0.85rem;
  cursor: pointer;
  color: var(--ink);
}

.lang-btn.is-active {
  background: var(--ink);
  color: white;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.brand-logo {
  height: 48px;
  width: auto;
  max-width: min(200px, 50vw);
  object-fit: contain;
}

.brand-text {
  font-size: 0.95rem;
  font-weight: 600;
}

.header-link {
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 650;
  padding: 10px 14px;
  border-radius: 999px;
  background: var(--ink);
  color: white;
}

.setup-banner {
  background: linear-gradient(90deg, #5a2d81 0%, #00b5e2 100%);
  color: #ffffff;
  font-size: 0.92rem;
  line-height: 1.45;
}

.setup-banner .container {
  padding: 12px 0;
}

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

.hero-grid {
  display: grid;
  gap: 28px;
  align-items: start;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--highlight);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 14px;
  font-size: clamp(2.15rem, 5vw, 4rem);
  line-height: 1.02;
  letter-spacing: -0.045em;
  max-width: 11ch;
}

.lede {
  margin-bottom: 22px;
  max-width: 38rem;
  color: var(--muted);
  font-size: 1.05rem;
}

.points {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
  max-width: 36rem;
}

.points li {
  padding-inline-start: 28px;
  position: relative;
}

.points li::before {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  top: 0.45em;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft);
}

.form-card {
  background: var(--card);
  border: 1px solid rgba(31, 41, 55, 0.08);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 22px 18px 18px;
  scroll-margin-top: 88px;
}

.form-heading h2 {
  margin-bottom: 4px;
  font-size: 1.45rem;
  letter-spacing: -0.03em;
}

.form-heading p,
.fine-print,
.hint,
.section-head p {
  color: var(--muted);
}

.form-heading p {
  margin-bottom: 18px;
}

.field {
  margin-bottom: 14px;
}

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

.field input,
.field select {
  width: 100%;
  height: 52px;
  border-radius: 14px;
  border: 1.5px solid var(--line);
  background: white;
  color: var(--ink);
  padding: 0 14px;
}

.field select {
  appearance: none;
  padding-right: 42px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16'%3E%3Cpath d='M3.5 6L8 10.5 12.5 6' fill='none' stroke='%231f2937' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
}

.field input::placeholder {
  color: #9ca3af;
}

.field input[readonly] {
  background: #f4f1ec;
  color: var(--ink);
  cursor: default;
  pointer-events: none;
}

.field input:focus,
.field select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(90, 45, 129, 0.18);
}

.field input[aria-invalid="true"],
.field select[aria-invalid="true"] {
  border-color: var(--danger);
}

.hint,
.field-error,
.fine-print {
  margin: 6px 0 0;
  font-size: 0.82rem;
}

.field-error {
  color: var(--danger);
  font-weight: 650;
}

.field-error:empty {
  display: none;
}

.form-error {
  margin: 0 0 10px;
}

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

.btn {
  width: 100%;
  height: 54px;
  border: 0;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-bright) 100%);
  color: white;
  font-weight: 700;
  letter-spacing: -0.01em;
  cursor: pointer;
}

.btn:hover {
  background: linear-gradient(135deg, #3d1a5c 0%, #0090c5 100%);
}

.btn:disabled {
  cursor: progress;
  opacity: 0.72;
}

.btn-secondary {
  margin-top: 16px;
  background: transparent;
  color: var(--ink);
  border: 1.5px solid var(--line);
}

.btn-secondary:hover {
  background: white;
}

.fine-print {
  text-align: center;
  margin-top: 10px;
  margin-bottom: 0;
}

.success {
  text-align: center;
  padding: 18px 8px 8px;
}

.success-mark {
  width: 64px;
  height: 64px;
  margin: 0 auto 14px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--accent-soft);
  color: var(--accent);
}

.success h2 {
  margin-bottom: 8px;
  font-size: 1.8rem;
  letter-spacing: -0.04em;
}

.success bdi {
  font-weight: inherit;
}

#success-phone {
  white-space: nowrap;
}

.success p {
  color: var(--muted);
  margin-bottom: 0;
}

.section {
  padding: 56px 0;
}

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

.section-head {
  margin-bottom: 22px;
}

.section-head h2,
.faq summary,
.offer h3,
.steps h3 {
  letter-spacing: -0.03em;
}

.section-head h2 {
  margin-bottom: 6px;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
}

.section-head p {
  margin-bottom: 0;
}

.offers,
.steps {
  display: grid;
  gap: 14px;
}

.offer {
  background: var(--card);
  border: 1.5px solid transparent;
  border-radius: 18px;
  padding: 18px;
  box-shadow: 0 1px 0 rgba(31, 41, 55, 0.04);
}

.offer.is-selected {
  border-color: var(--accent);
  background: #f1e6ff;
}

.offer h3 {
  margin-bottom: 6px;
  font-size: 1.15rem;
}

.offer p {
  margin-bottom: 14px;
  color: var(--muted);
}

.offer button {
  background: transparent;
  border: 0;
  padding: 0;
  color: var(--accent);
  font-weight: 750;
  cursor: pointer;
}

.steps {
  list-style: none;
  margin: 0;
  padding: 0;
}

.steps li {
  background: var(--card);
  border-radius: 18px;
  padding: 18px;
}

.steps span {
  display: inline-grid;
  place-items: center;
  width: 32px;
  height: 32px;
  margin-bottom: 10px;
  border-radius: 50%;
  background: var(--ink);
  color: white;
  font-size: 0.85rem;
  font-weight: 700;
}

.steps h3 {
  margin-bottom: 4px;
  font-size: 1.05rem;
}

.steps p {
  margin-bottom: 0;
  color: var(--muted);
}

.faq {
  display: grid;
  gap: 10px;
}

.faq details {
  background: var(--card);
  border-radius: 16px;
  padding: 14px 16px;
}

.faq summary {
  cursor: pointer;
  font-weight: 700;
}

.faq p {
  margin: 10px 0 0;
  color: var(--muted);
}

.site-footer {
  padding: 28px 0 40px;
  color: var(--muted);
  font-size: 0.85rem;
}

.site-footer p {
  margin: 0 0 6px;
}

@media (min-width: 900px) {
  .hero {
    padding: 64px 0 28px;
  }

  .hero-grid {
    grid-template-columns: 1.05fr 0.95fr;
    gap: 56px;
  }

  .form-card {
    position: sticky;
    top: 92px;
    padding: 28px 26px 22px;
  }

  .offers,
  .steps {
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
  }

  .section {
    padding: 80px 0;
  }
}

@media (max-width: 899px) {
  .hero-grid {
    display: flex;
    flex-direction: column;
  }

  .form-card {
    order: -1;
  }

  h1 {
    max-width: 14ch;
  }
}

@media (max-width: 640px) {
  .header-link {
    display: none;
  }
}

html[dir="rtl"] body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Tahoma, "Noto Naskh Arabic", sans-serif;
  line-height: 1.75;
}

html[dir="rtl"] h1,
html[dir="rtl"] h2,
html[dir="rtl"] h3,
html[dir="rtl"] .eyebrow {
  letter-spacing: 0;
}

html[dir="rtl"] h1 {
  max-width: 12em;
  line-height: 1.35;
}

html[dir="rtl"] .eyebrow {
  text-transform: none;
}

html[dir="rtl"] .field select {
  padding-right: 14px;
  padding-left: 42px;
  background-position: left 14px center;
}

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