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

:root {
  --accent: #E8503A;
  --accent-hover: #D1432F;
  --bg: #FAFAF7;
  --bg-alt: #F2F1EC;
  --text: #1A1A1A;
  --text-secondary: #5C5C5C;
  --radius: 8px;
  --font-serif: 'Lora', Georgia, serif;
  --font-sans: 'DM Sans', system-ui, sans-serif;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.container {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---- Nav ---- */
.nav {
  padding: 16px 0;
  border-bottom: 1px solid #E8E7E3;
  background: var(--bg);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav__brand {
  font-family: var(--font-serif);
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--text);
  text-decoration: none;
}

.lang-switcher {
  position: relative;
}

.lang-switcher__btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  font-family: var(--font-sans);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text);
  background: none;
  border: 1.5px solid #D4D3CE;
  border-radius: var(--radius);
  cursor: pointer;
  transition: border-color 0.2s;
}

.lang-switcher__btn:hover {
  border-color: var(--accent);
}

.lang-switcher__btn svg {
  width: 12px;
  height: 12px;
  transition: transform 0.2s;
}

.lang-switcher__btn[aria-expanded="true"] svg {
  transform: rotate(180deg);
}

.lang-switcher__menu {
  position: absolute;
  top: calc(100% + 4px);
  right: 0;
  min-width: 140px;
  background: #fff;
  border: 1.5px solid #E8E7E3;
  border-radius: var(--radius);
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  list-style: none;
  display: none;
  z-index: 100;
}

.lang-switcher__menu.open {
  display: block;
}

.lang-switcher__menu a {
  display: block;
  padding: 10px 14px;
  font-size: 0.875rem;
  color: var(--text);
  text-decoration: none;
  transition: background 0.15s;
}

.lang-switcher__menu a:hover {
  background: var(--bg-alt);
}

.lang-switcher__menu a.active {
  color: var(--accent);
  font-weight: 600;
}

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

.hero__badge {
  display: inline-block;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--accent);
  background: rgba(232, 80, 58, 0.08);
  padding: 6px 14px;
  border-radius: 100px;
  margin-bottom: 24px;
}

.hero h1 {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 5vw, 3.25rem);
  line-height: 1.15;
  margin-bottom: 16px;
}

.hero__subhead {
  font-family: var(--font-serif);
  font-size: clamp(1.125rem, 2.5vw, 1.375rem);
  font-weight: 700;
  color: var(--text);
  margin-bottom: 12px;
}

.hero p {
  font-size: 1.125rem;
  color: var(--text-secondary);
  max-width: 520px;
  margin: 0 auto 32px;
}

/* ---- Email Form ---- */
.email-form {
  display: flex;
  gap: 10px;
  max-width: 440px;
  margin: 0 auto;
}

.email-form input[type="email"] {
  flex: 1;
  padding: 14px 16px;
  font-size: 1rem;
  font-family: var(--font-sans);
  border: 1.5px solid #D4D3CE;
  border-radius: var(--radius);
  background: #fff;
  outline: none;
  transition: border-color 0.2s;
}

.email-form input[type="email"]:focus {
  border-color: var(--accent);
}

.email-form button {
  padding: 14px 24px;
  font-size: 1rem;
  font-weight: 600;
  font-family: var(--font-sans);
  color: #fff;
  background: var(--accent);
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.2s;
}

.email-form button:hover { background: var(--accent-hover); }
.email-form button:disabled { opacity: 0.6; cursor: not-allowed; }

.form-msg {
  margin-top: 12px;
  font-size: 0.875rem;
  min-height: 20px;
}

.form-msg.success { color: #2E7D32; }
.form-msg.error { color: var(--accent); }
.form-msg.info { color: var(--text-secondary); }

/* ---- Section shared ---- */
.section {
  padding: 64px 0;
}

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

.section__label {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}

.section h2 {
  font-family: var(--font-serif);
  font-size: clamp(1.5rem, 3.5vw, 2.25rem);
  line-height: 1.2;
  margin-bottom: 16px;
}

.section p.lead {
  font-size: 1.0625rem;
  color: var(--text-secondary);
  max-width: 600px;
}

/* ---- Problem ---- */
.problem { text-align: center; }
.problem p.lead { margin: 0 auto; }

/* ---- Solution ---- */
.solution { text-align: center; }
.solution p.lead { margin: 0 auto; }

/* ---- How It Works ---- */
.steps {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  margin-top: 40px;
}

.step {
  text-align: center;
}

.step__number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  font-family: var(--font-serif);
  font-size: 1.125rem;
  color: var(--accent);
  background: rgba(232, 80, 58, 0.08);
  border-radius: 50%;
  margin-bottom: 12px;
}

.step h3 {
  font-size: 1.0625rem;
  font-weight: 600;
  margin-bottom: 6px;
}

.step p {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  margin: 0 auto;
}

/* ---- Example Conversation ---- */
.example { text-align: center; }
.example p.lead { margin: 0 auto 40px; }

.phone-frame {
  max-width: 360px;
  margin: 0 auto;
  background: #fff;
  border-radius: 24px;
  box-shadow: 0 8px 40px rgba(0,0,0,0.08), 0 1px 3px rgba(0,0,0,0.06);
  overflow: hidden;
}

.phone-header {
  padding: 16px 20px;
  background: var(--bg-alt);
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text-secondary);
  border-bottom: 1px solid #E8E7E3;
}

.chat {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  text-align: left;
}

.bubble {
  max-width: 80%;
  padding: 12px 16px;
  border-radius: 18px;
  font-size: 0.9375rem;
  line-height: 1.45;
}

.bubble--ai {
  align-self: flex-start;
  background: var(--bg-alt);
  border-bottom-left-radius: 4px;
}

.bubble--user {
  align-self: flex-end;
  background: var(--accent);
  color: #fff;
  border-bottom-right-radius: 4px;
}

.choices {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 0 4px;
}

.choice {
  padding: 10px 14px;
  font-size: 0.875rem;
  border: 1.5px solid #D4D3CE;
  border-radius: 12px;
  background: #fff;
  text-align: left;
  color: var(--text);
}

.choice--selected {
  border-color: var(--accent);
  background: rgba(232, 80, 58, 0.04);
  font-weight: 500;
}

.chat-divider {
  font-size: 0.75rem;
  color: #B0AFA8;
  text-align: center;
  margin: 4px 0;
}

/* ---- Survey ---- */
.survey {
  padding: 64px 0;
}

.survey.visible {
  animation: surveyFadeIn 0.4s ease-out;
}

@keyframes surveyFadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.survey__card {
  max-width: 640px;
  margin: 0 auto;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.06);
  padding: 40px 32px;
  text-align: left;
}

.survey__thanks {
  text-align: center;
  margin-bottom: 32px;
}

.survey__thanks h2 {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  margin-bottom: 8px;
}

.survey__thanks p {
  color: var(--text-secondary);
  font-size: 0.9375rem;
  line-height: 1.6;
}

.email-highlight {
  font-weight: 600;
  color: var(--accent);
}

.survey__header {
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
  text-align: center;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid #E8E7E3;
}

.survey__question {
  margin-bottom: 28px;
}

.survey__question:last-of-type {
  margin-bottom: 32px;
}

.survey__q-label {
  font-size: 0.9375rem;
  font-weight: 600;
  margin-bottom: 12px;
  line-height: 1.4;
}

.survey__q-hint {
  font-size: 0.8125rem;
  color: var(--text-secondary);
  margin-top: -4px;
  margin-bottom: 12px;
  font-weight: 400;
}

.survey__options {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.survey__option {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border: 1.5px solid #D4D3CE;
  border-radius: var(--radius);
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
  font-size: 0.9375rem;
}

.survey__option:hover {
  border-color: #B0AFA8;
}

.survey__option input[type="radio"] {
  accent-color: var(--accent);
  width: 16px;
  height: 16px;
  cursor: pointer;
  flex-shrink: 0;
}

.survey__option:has(input:checked) {
  border-color: var(--accent);
  background: rgba(232, 80, 58, 0.04);
}

.survey__textarea {
  width: 100%;
  padding: 12px 14px;
  font-family: var(--font-sans);
  font-size: 0.9375rem;
  border: 1.5px solid #D4D3CE;
  border-radius: var(--radius);
  background: #fff;
  outline: none;
  resize: vertical;
  min-height: 100px;
  transition: border-color 0.2s;
  line-height: 1.5;
}

.survey__textarea:focus {
  border-color: var(--accent);
}

.survey__submit {
  display: block;
  width: 100%;
  padding: 14px 24px;
  font-size: 1rem;
  font-weight: 600;
  font-family: var(--font-sans);
  color: #fff;
  background: var(--accent);
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background 0.2s;
}

.survey__submit:hover { background: var(--accent-hover); }
.survey__submit:disabled { opacity: 0.6; cursor: not-allowed; }

.survey__msg {
  margin-top: 12px;
  font-size: 0.875rem;
  text-align: center;
}

.survey__msg.success { color: #2E7D32; }
.survey__msg.error { color: var(--accent); }

/* ---- Final CTA ---- */
.final-cta {
  text-align: center;
  padding: 80px 0;
}

.final-cta h2 {
  font-family: var(--font-serif);
  font-size: clamp(1.5rem, 3.5vw, 2.25rem);
  margin-bottom: 12px;
}

.final-cta p {
  color: var(--text-secondary);
  margin-bottom: 32px;
}

/* ---- Footer ---- */
footer {
  padding: 32px 0;
  text-align: center;
  font-size: 0.8125rem;
  color: #B0AFA8;
  border-top: 1px solid #E8E7E3;
}

/* ---- Responsive ---- */
@media (min-width: 640px) {
  .hero { padding: 100px 0 80px; }
  .section { padding: 80px 0; }
  .steps { grid-template-columns: 1fr 1fr; }
  .email-form { max-width: 480px; }
}

@media (max-width: 639px) {
  .email-form {
    flex-direction: column;
  }
  .email-form button {
    padding: 14px;
  }
  .survey__card {
    padding: 28px 20px;
  }
}

@media (min-width: 1024px) {
  .steps { grid-template-columns: repeat(4, 1fr); }
  .final-cta { padding: 100px 0; }
}
