/* Sonadoro funnel — light theme, pink/violet, one card per step.
   Mobile is the primary screen: the card fills the width and grows with content. */

:root {
  --violet: #7C3AED;
  --pink: #EC4899;
  --accent: #DB2777;
  --accent-soft: #FDF2F8;
  --title: #111827;
  --muted: #6B7280;
  --line: #E5E7EB;
  --bg: #FAFAFC;
  --card: #FFFFFF;
  --grad: linear-gradient(90deg, #7C3AED 0%, #EC4899 100%);
  --shadow: 0 20px 60px rgba(124, 58, 237, 0.10);
  --radius: 28px;
  --font: "Noto Sans Georgian", "Montserrat", -apple-system, BlinkMacSystemFont,
          "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(46% 32% at 4% 0%, rgba(236, 72, 153, 0.13), rgba(236, 72, 153, 0) 70%),
    radial-gradient(44% 30% at 98% 6%, rgba(124, 58, 237, 0.13), rgba(124, 58, 237, 0) 70%),
    radial-gradient(60% 34% at 50% 104%, rgba(219, 39, 119, 0.10), rgba(219, 39, 119, 0) 70%),
    var(--bg);
  background-attachment: fixed;
  color: var(--title);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.5;
  overflow-wrap: break-word;
}

.stage {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.card {
  width: 100%;
  max-width: 560px;
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 22px 20px 24px;
}

/* ── head ───────────────────────────────────────────────────────────── */
.card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}
.logo {
  font-weight: 700;
  font-size: 17px;
  letter-spacing: 0.02em;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.logo-dot { opacity: 0.7; }
.close {
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 50%;
  background: #F3F4F6;
  color: #9CA3AF;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  font-family: inherit;
}
.close:hover { background: #E9EAEE; color: #6B7280; }

/* ── переключатель языка ────────────────────────────────────────────── */
.head-right {
  display: flex;
  align-items: center;
  gap: 10px;
}
.lang {
  display: inline-flex;
  padding: 3px;
  border-radius: 999px;
  background: #F3F4F6;
}
.lang-btn {
  border: 0;
  cursor: pointer;
  font-family: inherit;
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.02em;
  padding: 6px 12px;
  border-radius: 999px;
  background: transparent;
  color: #6B7280;
  transition: color 0.15s ease, background 0.15s ease;
}
.lang-btn:hover { color: #374151; }
.lang-btn.is-on {
  background: var(--grad);
  color: #fff;
  box-shadow: 0 2px 8px rgba(219, 39, 119, 0.25);
}

/* ── progress ───────────────────────────────────────────────────────── */
.meter { margin-bottom: 22px; }
.meter-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 8px;
  gap: 12px;
}
.meter-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.meter-pct {
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
}
.meter-track {
  height: 6px;
  border-radius: 999px;
  background: #F1F1F5;
  overflow: hidden;
}
.meter-fill {
  display: block;
  height: 100%;
  width: 11%;
  border-radius: 999px;
  background: var(--grad);
  transition: width 0.3s ease;
}

/* ── step ───────────────────────────────────────────────────────────── */
.step {
  border: 0;
  margin: 0;
  padding: 0;
  min-width: 0;
  text-align: center;
}
.step[hidden] { display: none; }

.step-enter { animation: stepIn 0.2s ease both; }
@keyframes stepIn {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: none; }
}

.hero-title {
  font-size: clamp(22px, 6.2vw, 28px);
  font-weight: 700;
  line-height: 1.25;
  margin: 0 0 10px;
}
.hero-sub {
  font-size: 15px;
  color: var(--muted);
  margin: 0 0 24px;
}
.q {
  font-size: clamp(19px, 5.4vw, 24px);
  font-weight: 700;
  line-height: 1.3;
  margin: 0 0 8px;
}
.q-sub {
  font-size: 15px;
  color: var(--muted);
  margin: 0 0 20px;
}

/* ── options ────────────────────────────────────────────────────────── */
.options {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 9px;
}
.opt {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 11px 17px;
  border: 1.5px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--title);
  font-family: inherit;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s, color 0.15s;
}
.opt i { font-style: normal; font-size: 16px; }
.opt:hover { border-color: var(--pink); }
.opt[aria-pressed="true"] {
  border-color: var(--pink);
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 600;
}
.options-wide .opt { padding: 13px 20px; }

/* ── inputs ─────────────────────────────────────────────────────────── */
.text-input {
  width: 100%;
  padding: 14px 16px;
  font-family: inherit;
  font-size: 16px; /* below 16px iOS zooms on focus */
  color: var(--title);
  background: #fff;
  border: 1.5px solid var(--line);
  border-radius: 14px;
  outline: none;
  text-align: center;
}
.area { text-align: left; resize: vertical; line-height: 1.5; }
.text-input::placeholder { color: #9CA3AF; }
.text-input:focus { border-color: var(--pink); box-shadow: 0 0 0 4px rgba(236, 72, 153, 0.10); }
.text-input.invalid { border-color: var(--accent); }
.other-input { margin-top: 12px; }
.other-input[hidden] { display: none; }

.under {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin: 9px 2px 0;
  font-size: 13px;
  color: var(--muted);
  text-align: left;
}
.counter { white-space: nowrap; }

.field { display: block; text-align: left; margin-bottom: 14px; }
.field-label {
  display: block;
  margin-bottom: 6px;
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
}
.field .text-input { text-align: left; }

.price {
  display: inline-block;
  margin: 0 0 20px;
  padding: 9px 18px;
  border-radius: 999px;
  background: #ECFDF5;
  border: 1px solid #A7F3D0;
  color: #047857;
  font-size: 15px;
  font-weight: 600;
}

/* Hidden from people, visible to form-filling bots — and, unlike an
   off-screen position, it never widens the page. */
.hp {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  border: 0;
  overflow: hidden;
  clip-path: inset(50%);
}

.err {
  margin: 16px 0 0;
  padding: 10px 14px;
  border-radius: 12px;
  background: var(--accent-soft);
  border: 1px solid #FBCFE8;
  color: var(--accent);
  font-size: 14px;
}

/* ── nav ────────────────────────────────────────────────────────────── */
.nav {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 26px;
  /* Three buttons of Georgian text can outgrow a narrow phone: let them
     wrap onto a second row instead of pushing the page sideways. */
  flex-wrap: wrap;
}
.nav-space { flex: 1 1 auto; }

.back, .skip {
  border: 0;
  background: none;
  color: var(--muted);
  font-family: inherit;
  font-size: 15px;
  font-weight: 500;
  padding: 12px 6px;
  cursor: pointer;
  border-radius: 12px;
  min-width: 0;
}
.back:hover, .skip:hover { color: var(--title); }
.back[hidden], .skip[hidden], .go[hidden] { display: none; }

.go {
  border: 0;
  border-radius: 14px;
  padding: 14px 24px;
  background: var(--grad);
  color: #fff;
  font-family: inherit;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 8px 22px rgba(236, 72, 153, 0.30);
  transition: opacity 0.15s, box-shadow 0.15s;
  min-width: 0;
  margin-left: auto; /* stays on the right, even after wrapping */
}
.go:disabled {
  opacity: 0.45;
  box-shadow: none;
  cursor: default;
}

/* ── thank-you ──────────────────────────────────────────────────────── */
.thanks { text-align: center; }
.thanks-mark {
  width: 66px;
  height: 66px;
  margin: 6px auto 20px;
  border-radius: 50%;
  background: var(--grad);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 30px;
  box-shadow: 0 10px 26px rgba(236, 72, 153, 0.32);
}
.thanks h1 { font-size: clamp(24px, 6.4vw, 30px); font-weight: 700; margin: 0 0 10px; }
.thanks p { color: var(--muted); margin: 0 0 24px; font-size: 16px; }
.thanks .go { display: inline-block; text-decoration: none; text-align: center; }
.countdown { font-size: 13px; color: #9CA3AF; margin: 14px 0 0; }

/* ── narrow phones ──────────────────────────────────────────────────── */
@media (max-width: 420px) {
  .go { padding: 14px 18px; font-size: 15px; }
  .back, .skip { font-size: 14px; padding: 12px 2px; }
  .opt { padding: 10px 15px; font-size: 14.5px; }
}

/* ── wider screens ──────────────────────────────────────────────────── */
@media (min-width: 600px) {
  .card { padding: 28px 34px 30px; }
  .stage { padding: 32px 20px; }
}

@media (prefers-reduced-motion: reduce) {
  .meter-fill { transition: none; }
  .step-enter { animation: none; }
}
