:root {
  --bg: #fcfbfa;
  --surface: #fdfcfb;
  --surface-muted: #f5f4f2;
  --text: #3a3834;
  --primary: #3a3834;
  --primary-dark: #2a2825;
  --on-primary: #fcfbfa;
  --secondary: #6b6660;
  --secondary-soft: #f3f2f0;
  --accent: #148562;
  --accent-hover: #0e6649;
  --accent-soft: #dff0e9;
  --line: #edecea;
  --line-strong: #3a3834;
  --muted: #6b6660;
  --primary-rgb: 58, 56, 52;
  --secondary-rgb: 107, 102, 96;
  --accent-rgb: 20, 133, 98;
  --font-body: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-display: "Outfit", var(--font-body);
  --radius: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --radius-pill: 999px;
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.08);
  --shadow-accent: 0 8px 24px rgba(var(--accent-rgb), 0.18);
  --header-height: 72px;
}

* {
  box-sizing: border-box;
}

html {
  background-color: var(--bg);
  scroll-behavior: auto;
  scroll-padding-top: var(--header-height);
}

#form,
#examples,
#features {
  scroll-margin-top: calc(var(--header-height) + 16px);
}

html,
body {
  margin: 0;
  padding: 0;
  font-family: var(--font-body);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
}

body {
  position: relative;
  isolation: isolate;
  min-height: 100%;
  background-color: var(--bg);
  background-image:
    linear-gradient(rgba(58, 56, 52, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(58, 56, 52, 0.04) 1px, transparent 1px);
  background-size: 24px 24px;
  background-attachment: fixed;
}

body > * {
  position: relative;
  z-index: 1;
}

a {
  color: var(--text);
  text-decoration: none;
}

a:hover {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.header a:hover {
  color: inherit;
}

a.btn:hover:not(.btn-ghost),
.btn:hover:not(.btn-ghost) {
  color: var(--on-primary);
}

.container {
  width: min(1120px, 92%);
  margin: 0 auto;
}

.container-wide {
  width: min(1200px, 94%);
  margin: 0 auto;
}

.section {
  position: relative;
  padding: 64px 0;
  overflow: clip;
}

.section::before,
.section::after {
  display: none;
}

.section:nth-of-type(even) {
  background: var(--surface-muted);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.examples-tagline {
  margin: 0 0 32px;
  font-size: 18px;
  font-weight: 500;
  color: var(--muted);
  line-height: 1.5;
}

.section-examples {
  padding-top: 48px;
}

.lookbook-gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  align-items: start;
  max-width: 1200px;
  margin: 0 auto;
}

.lookbook-card {
  margin: 0;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.lookbook-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.lookbook-card img {
  display: block;
  width: 100%;
  height: auto;
  vertical-align: middle;
}

@media (max-width: 768px) {
  .lookbook-gallery {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 16px;
    padding: 0 4px 12px;
    margin: 0 -4px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
  }

  .lookbook-card {
    flex: 0 0 85vw;
    max-width: 400px;
    scroll-snap-align: start;
  }
}

.section h2 {
  position: relative;
  display: block;
  max-width: 100%;
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.02em;
}

.section h2::after {
  content: "";
  display: block;
  width: 40px;
  height: 4px;
  margin-top: 14px;
  border-radius: var(--radius-pill);
  background: var(--accent);
}

.hero.section {
  padding-top: 32px;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}

.section .container {
  position: relative;
  z-index: 1;
}

.header {
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid var(--line);
  background-color: var(--bg);
  background: rgba(252, 251, 249, 0.98);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow-sm);
}

.header .btn:hover {
  text-decoration: none;
}

.nav {
  height: var(--header-height);
  min-height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 20px;
  letter-spacing: -0.02em;
  color: var(--text);
}

h1,
h2,
h3 {
  margin: 0 0 16px;
  font-family: var(--font-display);
  line-height: 1.15;
}

h1 {
  font-size: clamp(34px, 5vw, 52px);
  font-weight: 600;
  letter-spacing: -0.03em;
}

.hero h1 {
  color: var(--text);
}

h2 {
  font-size: clamp(24px, 3.5vw, 34px);
  font-weight: 600;
}

h3 {
  font-weight: 600;
  letter-spacing: -0.01em;
}

.lead {
  color: var(--muted);
  font-size: 18px;
  max-width: 760px;
}

.lead--form {
  max-width: 34ch;
  margin-bottom: 28px;
  line-height: 1.5;
}

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

.small {
  margin-top: 12px;
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  background: var(--accent-soft);
  font-size: 13px;
  font-weight: 600;
  color: var(--accent-hover);
}

.tag::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
}

.hero-content {
  position: relative;
  max-width: 760px;
}

.hero-lead {
  max-width: 52ch;
  margin-bottom: 0;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 22px 0 10px;
}

.card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.card:hover {
  border-color: color-mix(in oklab, var(--accent) 35%, var(--line));
}

.hero-card {
  position: relative;
  background: var(--surface-muted);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-md);
}

.hero-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 24px;
  right: 24px;
  height: 3px;
  border-radius: 0 0 var(--radius-pill) var(--radius-pill);
  background: var(--accent);
}

.hero-card::after {
  display: none;
}

.hero-card h3 {
  font-size: 18px;
  margin-top: 8px;
}

.hero-card ul {
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
}

.hero-card li {
  margin-bottom: 8px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 48px;
  border-radius: var(--radius-pill);
  padding: 0 24px;
  border: none;
  background: var(--primary);
  color: var(--on-primary);
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  box-shadow: var(--shadow-sm);
  transition: background 0.2s ease, box-shadow 0.2s ease, transform 0.15s ease;
}

a.btn:hover {
  text-decoration: none;
}

.btn:hover:not(.btn-ghost) {
  background: var(--primary-dark);
  color: var(--on-primary);
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
  text-decoration: none;
}

.btn-small {
  height: 38px;
}

.btn-ghost {
  background: var(--bg);
  border: 1px solid var(--line);
  color: var(--text);
  box-shadow: none;
}

.btn-ghost:hover {
  background: var(--surface-muted);
  border-color: var(--accent);
  color: var(--text);
  text-decoration: none;
  transform: none;
}

.btn-full {
  width: 100%;
  margin-top: 12px;
}

.steps {
  margin-top: 18px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.steps--three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin-top: 8px;
}

.feature-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 16px 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  font-size: 15px;
  font-weight: 500;
  line-height: 1.4;
}

.feature-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  color: var(--accent);
  flex-shrink: 0;
}

.step-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  margin-bottom: 12px;
}

.step-head .step-num {
  margin-bottom: 0;
}

.step-num {
  display: inline-block;
  margin-bottom: 12px;
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  font-size: 12px;
  font-weight: 600;
  color: var(--on-primary);
  background: var(--accent);
}

.field-optional--step {
  font-size: 11px;
  padding: 5px 10px;
}

.steps .card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

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

.faq-lead {
  max-width: 58ch;
  margin: 0 0 20px;
  color: var(--muted);
  line-height: 1.65;
}

.faq-answer {
  margin-top: 10px;
}

.faq-answer p {
  margin: 0 0 12px;
  color: var(--muted);
  line-height: 1.65;
  font-size: 15px;
}

.faq-answer p:last-child {
  margin-bottom: 0;
}

.faq details.card {
  transition: box-shadow 0.15s ease;
}

.faq details[open].card {
  border-color: color-mix(in oklab, var(--accent) 40%, var(--line));
  box-shadow: var(--shadow-md);
}

details summary {
  font-weight: 600;
  cursor: pointer;
  font-size: 15px;
}

details[open] summary {
  color: var(--accent-hover);
}

details p {
  margin: 10px 0 0;
  color: var(--muted);
  line-height: 1.6;
}

.form-wrapper {
  display: grid;
  gap: 16px;
}

.form-layout {
  display: flex;
  flex-direction: column;
  gap: 16px;
  counter-reset: form-step;
}

.form-success {
  padding: 32px 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  text-align: center;
}

.form-success-title {
  margin: 0 0 12px;
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 600;
  color: var(--accent-hover);
}

.form-success-lead {
  margin: 0 auto;
  max-width: 42ch;
}

.form-section {
  margin: 0;
  padding: 26px 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  counter-increment: form-step;
}

.form-section-title {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 22px;
  padding: 0;
  border: none;
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--text);
}

.form-section-title::before {
  content: counter(form-step);
  flex-shrink: 0;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  font-size: 15px;
  font-weight: 700;
  color: var(--accent-hover);
  background: var(--accent-soft);
  border-radius: 50%;
}

.form-section-title--footer::before {
  content: "4";
}

#form .form-section:has(.vm-picker) {
  position: relative;
  z-index: 2;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.form-grid--sizes-meta {
  margin-bottom: 20px;
}

.form-grid--sizes-clothing {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.form-footer {
  margin: 0;
  padding: 26px 28px;
  display: grid;
  gap: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
}

.tariff-picker--footer {
  width: 100%;
}

.form-pay-hint {
  margin: -6px 0 0;
  text-align: center;
  line-height: 1.45;
}

.form-pay-hint--refund {
  margin-top: 10px;
  color: #0e6649;
}

.btn-pay {
  min-height: 52px;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

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

.field-optional {
  font-size: 12px;
  font-weight: 500;
  color: var(--accent-hover);
  background: var(--accent-soft);
  border: none;
  border-radius: var(--radius-pill);
  padding: 4px 10px;
}

.field-hint {
  font-size: 14px;
  font-weight: 400;
  color: var(--muted);
  line-height: 1.45;
}

.gender-picker {
  border: none;
  margin: 0;
  padding: 0;
  min-width: 0;
}

.gender-picker legend {
  display: block;
  width: 100%;
  padding: 0;
  margin: 0 0 8px;
}

.gender-options {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.gender-option {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  background: var(--bg);
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease;
}

.gender-option:has(input:checked) {
  border-color: var(--accent);
  background: var(--accent-soft);
  color: var(--accent-hover);
  font-weight: 600;
}

.gender-option input {
  width: 16px;
  height: 16px;
  accent-color: var(--accent);
}

.vm-picker-field {
  display: grid;
  gap: 8px;
}

.vm-picker-label {
  font-size: 14px;
  font-weight: 500;
}

.vm-picker {
  position: relative;
}

.vm-picker-combo {
  min-height: 56px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px 10px 14px;
  border: 2px solid color-mix(in oklab, var(--accent) 28%, var(--line));
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.vm-picker-combo:hover {
  border-color: color-mix(in oklab, var(--accent) 40%, var(--line));
}

.vm-picker-combo[aria-expanded="true"],
.vm-picker-combo:focus-visible {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
  outline: none;
}

.vm-picker-combo-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.vm-picker-combo:has(.vm-picker-chip) .vm-picker-placeholder {
  display: none;
}

.vm-picker-placeholder {
  margin: 0;
  font-size: 14px;
  color: var(--muted);
}

.vm-picker-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px 6px 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  background: var(--surface-muted);
}

.vm-picker-chip-name {
  font-size: 14px;
  font-weight: 500;
  line-height: 1.2;
}

.vm-picker-chip-remove {
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: transparent;
  color: var(--muted);
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}

.vm-picker-chip-remove:hover {
  background: var(--accent);
  color: var(--on-primary);
}

.color-swatches--chip {
  width: 52px;
  height: 22px;
}

.color-swatches--chip .color-swatch {
  width: 20px;
  height: 20px;
  margin-left: -7px;
  border-width: 1.5px;
}

.vm-picker-chevron {
  flex-shrink: 0;
  width: 8px;
  height: 8px;
  border-right: 2px solid var(--muted);
  border-bottom: 2px solid var(--muted);
  transform: rotate(45deg);
  margin-top: -3px;
  margin-right: 4px;
  transition: transform 0.2s ease;
}

.vm-picker-combo[aria-expanded="true"] .vm-picker-chevron {
  transform: rotate(-135deg);
  margin-top: 3px;
}

.color-swatches {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  width: 62px;
  height: 28px;
}

.color-swatch {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 2px solid var(--surface);
  box-shadow: 0 1px 4px rgba(31, 41, 51, 0.14);
  margin-left: -9px;
}

.color-swatch:first-child {
  margin-left: 0;
}

.vm-picker-option.is-selected {
  background: var(--accent-soft);
  box-shadow: inset 0 0 0 1px color-mix(in oklab, var(--accent) 35%, transparent);
}

.vm-picker-option.is-selected::after {
  content: "✓";
  font-size: 14px;
  font-weight: 700;
  color: var(--accent);
  flex-shrink: 0;
}

.vm-picker-dropdown {
  position: absolute;
  z-index: 30;
  left: 0;
  right: 0;
  top: calc(100% + 6px);
  max-height: min(360px, 55vh);
  overflow-y: auto;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-md);
}

#stylePickerDropdown {
  max-height: min(480px, 68vh);
}

.vm-picker-option {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border: none;
  border-radius: var(--radius);
  background: transparent;
  font-family: inherit;
  font-size: 15px;
  color: var(--text);
  cursor: pointer;
  text-align: left;
  transition: background 0.15s ease, box-shadow 0.15s ease;
}

.vm-picker-option:hover,
.vm-picker-option:focus-visible {
  background: var(--surface-muted);
  outline: none;
}

.vm-picker-option-text {
  flex: 1;
  min-width: 0;
  display: grid;
  gap: 2px;
}

.vm-picker-option-name {
  font-weight: 600;
  line-height: 1.25;
}

.vm-picker-option-desc {
  font-size: 13px;
  font-weight: 400;
  color: var(--muted);
  line-height: 1.35;
}

.vm-picker-option--photo {
  align-items: flex-start;
  gap: 14px;
  padding: 12px;
}

.style-photo {
  flex-shrink: 0;
  display: block;
  overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--line);
  line-height: 0;
}

.style-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
}

.style-photo--option {
  width: 156px;
  height: 195px;
}

.style-photo--chip {
  width: 56px;
  height: 70px;
  border-radius: 8px;
}

.tariff-picker {
  position: relative;
  border: none;
  margin: 0;
  padding: 0;
  min-width: 0;
}

.tariff-picker-legend {
  padding: 0;
  margin-bottom: 8px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
}

.tariff-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.tariff-option {
  display: block;
  cursor: pointer;
}

.tariff-option-body {
  display: grid;
  grid-template-columns: 1fr auto;
  column-gap: 12px;
  row-gap: 4px;
  align-items: start;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--bg);
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.tariff-option input {
  grid-column: 2;
  grid-row: 1;
  align-self: start;
  width: 18px;
  height: 18px;
  margin: 2px 0 0;
  padding: 0;
  opacity: 1;
  accent-color: var(--accent);
  cursor: pointer;
}

.tariff-option-details {
  grid-column: 1;
  grid-row: 1;
  display: grid;
  gap: 4px;
  min-width: 0;
}

.tariff-option-name {
  font-weight: 600;
  font-size: 15px;
}

.tariff-option-prices {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px 10px;
}

.tariff-option-price-old {
  font-size: 15px;
  font-weight: 500;
  color: var(--muted);
  text-decoration: line-through;
  line-height: 1.1;
}

.tariff-option-price {
  font-size: 24px;
  font-weight: 800;
  color: var(--text);
  line-height: 1.1;
}

.tariff-option-meta {
  font-size: 13px;
  font-weight: 400;
  color: var(--muted);
  line-height: 1.35;
}

.tariff-option:has(input:checked) .tariff-option-body {
  border: 2px solid var(--accent);
  background: var(--accent-soft);
  box-shadow: var(--shadow-accent);
}

.tariff-option:has(input:checked) .tariff-option-name {
  color: var(--text);
  font-weight: 600;
}

.tariff-option:has(input:checked) .tariff-option-price {
  color: var(--accent);
}

.tariff-option:has(input:checked) .tariff-option-price-old {
  color: var(--muted);
}

.tariff-option:has(input:checked) .tariff-option-meta {
  color: var(--muted);
}

.tariff-option:has(input:focus-visible) .tariff-option-body {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.tariff-option:has(input:focus-visible) input {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

label {
  display: grid;
  gap: 8px;
  font-size: 14px;
  font-weight: 500;
}

input:not([type="checkbox"]):not([type="radio"]):not([type="file"]),
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  background: var(--bg);
  border-radius: var(--radius);
  height: 46px;
  padding: 0 14px;
  font-size: 15px;
  font-family: inherit;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

select {
  cursor: pointer;
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%),
    linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position: calc(100% - 18px) calc(50% - 2px), calc(100% - 12px) calc(50% - 2px);
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
  padding-right: 36px;
}

#leadForm select,
#form .form-select {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background-color: var(--bg);
  box-shadow: none;
  scroll-margin-top: 96px;
  scroll-margin-bottom: 32px;
}

#leadForm select:focus,
#form .form-select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

select:invalid {
  color: var(--muted);
}

input:not([type="checkbox"]):not([type="radio"]):not([type="file"]):focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.checkbox {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: start;
  gap: 12px;
  font-weight: 400;
}

.checkbox input[type="checkbox"] {
  width: 20px;
  height: 20px;
  min-width: 20px;
  min-height: 20px;
  margin: 3px 0 0;
  padding: 0;
  border: none;
  border-radius: 4px;
  background: transparent;
  box-shadow: none;
  accent-color: var(--accent);
  cursor: pointer;
  flex-shrink: 0;
}

.checkbox input[type="checkbox"]:focus {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border: none;
  box-shadow: none;
}

.checkbox input[type="checkbox"]:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.checkbox a {
  color: var(--accent-hover);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.checkbox a:hover {
  color: var(--accent);
}

.col-2 {
  grid-column: 1 / -1;
}

.photo-upload {
  display: grid;
  gap: 10px;
}

.photo-upload .label-row {
  margin-bottom: 2px;
}

.photo-dropzone {
  position: relative;
  border: 2px dashed color-mix(in oklab, var(--accent) 28%, var(--line));
  border-radius: var(--radius-lg);
  background: var(--bg);
  transition: border-color 0.15s ease, background 0.15s ease;
}

.photo-dropzone.is-dragover {
  border-color: var(--accent);
  background: var(--accent-soft);
}

.photo-dropzone.is-invalid {
  border-color: #c45c5c;
}

.photo-dropzone.is-filled .photo-dropzone-input {
  pointer-events: none;
}

.photo-dropzone-input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
  z-index: 1;
}

.photo-dropzone-empty,
.photo-dropzone-filled {
  padding: 24px 20px;
}

.photo-dropzone-empty {
  display: grid;
  gap: 10px;
  justify-items: center;
  text-align: center;
}

.photo-dropzone-lead {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
  line-height: 1.4;
}

.photo-dropzone-lead--mobile,
.photo-dropzone-btn {
  display: none;
}

.photo-dropzone-hint {
  margin: 0;
  font-size: 14px;
  color: var(--muted);
}

.photo-dropzone-btn {
  position: relative;
  z-index: 2;
  min-width: 180px;
}

.photo-dropzone-filled {
  display: grid;
  gap: 14px;
}

.photo-dropzone-filled[hidden],
.photo-dropzone-empty[hidden],
.photo-upload-error[hidden] {
  display: none !important;
}

.photo-preview {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 14px;
  align-items: center;
}

.photo-preview img {
  width: 88px;
  height: 110px;
  object-fit: cover;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--surface-muted);
}

.photo-preview-name {
  margin: 0;
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  word-break: break-word;
}

.photo-preview-size {
  margin: 4px 0 0;
  font-size: 14px;
  color: var(--muted);
}

.photo-remove-btn {
  justify-self: start;
  position: relative;
  z-index: 2;
  border: none;
  background: transparent;
  color: var(--accent-hover);
  font: inherit;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  padding: 0;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.photo-remove-btn:hover {
  color: var(--accent);
}

.photo-upload-error {
  margin: 10px 0 0;
  font-size: 14px;
  font-weight: 500;
  color: #9f2d2d;
}

#form .form-layout {
  position: relative;
  overflow: visible;
  background: var(--surface-muted);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-md);
  padding: 20px;
  gap: 14px;
}

#form .form-section,
#form .form-footer {
  overflow: visible;
}

#form label,
#form .vm-picker-label,
#form .gender-picker legend {
  font-size: 16px;
  font-weight: 600;
  gap: 10px;
  color: var(--text);
}

#form input:not([type="checkbox"]):not([type="radio"]):not([type="file"]),
#form .form-select {
  font-size: 16px;
  height: 48px;
}

#form .vm-picker-field {
  gap: 10px;
}

#form .vm-picker-placeholder {
  font-size: 15px;
  color: var(--muted);
}

#form .vm-picker-combo {
  min-height: 56px;
  border-width: 2px;
  border-radius: var(--radius-lg);
  background: var(--surface);
}

#form .vm-picker-combo:hover {
  background: color-mix(in oklab, var(--accent-soft) 35%, var(--surface));
}

#form .vm-picker-label {
  font-weight: 600;
}

#form .field-optional {
  font-size: 13px;
}

#form .checkbox {
  font-size: 15px;
  line-height: 1.55;
  color: var(--muted);
}

#form .checkbox a {
  color: var(--accent-hover);
}

#form .tariff-option-name {
  font-size: 16px;
}

#form .tariff-option-meta {
  font-size: 14px;
}

#form .form-section-title--footer {
  margin-bottom: 2px;
}

#form .form-layout::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
  background: var(--accent);
}

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

@media (max-width: 980px) {
  .steps,
  .steps--three {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .section {
    padding: 48px 0;
  }

  .hero.section {
    padding-top: 24px;
  }

  body {
    background-attachment: scroll;
  }

  .header {
    background: var(--bg);
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }

  .section::before {
    width: 220px;
    height: 220px;
  }

  .section::after {
    width: 140px;
    height: 140px;
  }

  #form .form-layout {
    padding: 14px;
    gap: 12px;
  }

  .form-success {
    padding: 28px 20px;
  }

  #form .form-section,
  #form .form-footer {
    padding: 20px 18px;
  }

  #form .form-section-title {
    font-size: 18px;
    margin-bottom: 18px;
  }

  .form-grid,
  .form-grid--sizes-clothing {
    grid-template-columns: 1fr;
  }

  .photo-dropzone-lead--desktop {
    display: none;
  }

  .photo-dropzone-lead--mobile,
  .photo-dropzone-btn {
    display: block;
  }

  .photo-dropzone-btn {
    display: inline-flex;
  }

  .photo-dropzone-input {
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    pointer-events: none;
  }

  .tariff-options {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .tariff-option-body {
    padding: 16px;
    min-height: 48px;
  }

  #form .btn-pay {
    min-height: 56px;
    font-size: 18px;
  }

  #form .form-pay-hint {
    font-size: 13px;
    padding: 0 4px;
  }

  #form .vm-picker-combo {
    min-height: 52px;
    padding: 10px 12px;
  }

  #form .vm-picker-option {
    min-height: 48px;
    padding: 12px;
  }

  #form .vm-picker-dropdown {
    max-height: min(320px, 50vh);
    -webkit-overflow-scrolling: touch;
  }

  #stylePickerDropdown {
    max-height: min(420px, 58vh);
  }

  .style-photo--option {
    width: 132px;
    height: 165px;
  }

  .style-photo--chip {
    width: 50px;
    height: 62px;
  }
}

@supports (-webkit-touch-callout: none) {
  body {
    background-attachment: scroll;
  }

  .header {
    background: var(--bg);
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .btn:hover,
  .steps .card:hover,
  .card:hover {
    transform: none;
  }
}

/* Form validation highlight — must stay last */
#leadForm input.form-field-invalid,
#leadForm select.form-field-invalid,
#leadForm .form-select.form-field-invalid,
#leadForm textarea.form-field-invalid,
#leadForm .vm-picker-combo.form-field-invalid {
  border-color: #c44b4b !important;
  box-shadow: 0 0 0 3px rgba(196, 75, 75, 0.28) !important;
}

#leadForm input.form-field-invalid:focus,
#leadForm input.form-field-invalid:focus-visible,
#leadForm select.form-field-invalid:focus,
#leadForm select.form-field-invalid:focus-visible,
#leadForm .form-select.form-field-invalid:focus,
#leadForm .form-select.form-field-invalid:focus-visible,
#leadForm textarea.form-field-invalid:focus,
#leadForm textarea.form-field-invalid:focus-visible,
#leadForm .vm-picker-combo.form-field-invalid:focus,
#leadForm .vm-picker-combo.form-field-invalid:focus-visible,
#leadForm .vm-picker-combo.form-field-invalid[aria-expanded="true"] {
  border-color: #c44b4b !important;
  box-shadow: 0 0 0 3px rgba(196, 75, 75, 0.32) !important;
}

#leadForm .tariff-options.form-field-invalid {
  outline: 2px solid #c44b4b !important;
  outline-offset: 3px;
  border-radius: var(--radius-lg);
}

.chat-form {
  display: flex;
  flex-direction: column;
  min-height: 520px;
  max-height: min(78vh, 760px);
  padding: 0;
  overflow: hidden;
}

body.chat-page-body {
  height: 100dvh;
  overflow: hidden;
  margin: 0;
  display: flex;
  flex-direction: column;
  background: #f3f2ef;
  background-image: none;
  background-attachment: scroll;
}

body.chat-page-body.chat-page--done {
  overflow: auto;
}

.chat-page-back {
  position: fixed;
  top: calc(12px + env(safe-area-inset-top, 0px));
  left: 16px;
  z-index: 30;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  color: var(--text);
  text-decoration: none;
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(8px);
  transition: background 0.15s ease;
}

.chat-page-back:hover {
  background: rgba(255, 255, 255, 0.95);
  text-decoration: none;
  color: var(--text);
}

.chat-page-back[hidden] {
  display: none !important;
}

.chat-page-main {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

.chat-page-main[hidden] {
  display: none !important;
}

.chat-form--page {
  flex: 1 1 auto;
  min-height: 0;
  max-height: none;
  border: none;
  border-radius: 0;
  box-shadow: none;
  background: transparent;
  display: flex;
  flex-direction: column;
}

.chat-stage {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

.chat-stage__history {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.chat-messages {
  width: 100%;
  padding: 12px 16px 20px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.chat-row {
  width: 100%;
}

.chat-row--bot {
  padding: 10px 0 6px;
}

.chat-row__text {
  margin: 0;
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
  word-break: break-word;
}

.chat-row--user {
  display: flex;
  justify-content: flex-end;
  padding: 4px 0 8px;
}

.chat-row__answer {
  margin: 0;
  max-width: min(88%, 420px);
  font-size: 15px;
  line-height: 1.5;
  font-weight: 500;
  color: var(--text);
  word-break: break-word;
}

.chat-stage__history,
.chat-stage--flow {
  scrollbar-width: thin;
  scrollbar-color: rgba(58, 56, 52, 0.14) transparent;
  scrollbar-gutter: stable;
}

.chat-stage__history::-webkit-scrollbar,
.chat-stage--flow::-webkit-scrollbar {
  width: 4px;
}

.chat-stage__history::-webkit-scrollbar-track,
.chat-stage--flow::-webkit-scrollbar-track {
  background: transparent;
}

.chat-stage__history::-webkit-scrollbar-thumb,
.chat-stage--flow::-webkit-scrollbar-thumb {
  background: rgba(58, 56, 52, 0.12);
  border-radius: 4px;
}

.chat-controls {
  flex: 0 0 auto;
  background: transparent;
  border-top: none;
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom, 0px));
  transition: top 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.chat-controls[hidden] {
  display: none !important;
}

.chat-controls__inner {
  width: 100%;
  display: grid;
  gap: 12px;
}

.chat-controls__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chat-chip {
  appearance: none;
  border: 1px solid #d4d4d2;
  background: transparent;
  color: var(--text);
  border-radius: 999px;
  padding: 11px 20px;
  font-size: 14px;
  font-weight: 500;
  font-family: var(--font-body);
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
  line-height: 1.3;
}

.chat-chip:hover {
  background: #f5f5f4;
  border-color: #bcbcba;
}

.chat-chip.is-selected,
.chat-chip--featured {
  border-color: var(--accent);
  background: var(--accent-soft);
  color: var(--accent-hover);
}

.chat-chip--action {
  font-weight: 600;
  border-color: var(--text);
  background: var(--text);
  color: var(--on-primary);
}

.chat-chip--action:hover:not(:disabled) {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
}

.chat-chip--action:disabled {
  opacity: 0.38;
  cursor: not-allowed;
}

.chat-controls__hint {
  padding: 12px 16px;
  border-radius: 22px;
  background: #f4f4f3;
  font-size: 14px;
  color: #9a9690;
}

.chat-controls__chips--input {
  width: 100%;
}

.chat-chip--input {
  flex: 1 1 auto;
  min-width: 0;
  text-align: left;
  cursor: text;
}

.chat-chip--input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(var(--accent-rgb), 0.12);
}

.chat-chip--send {
  flex: 0 0 auto;
  min-width: 96px;
}

.chat-controls__panel {
  display: grid;
  gap: 10px;
}

.chat-controls__subhint {
  margin: 0;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.45;
}

.chat-controls__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chat-controls__status {
  margin: 0;
  font-size: 13px;
  color: var(--accent-hover);
}

.chat-controls__error {
  margin: 0;
  font-size: 13px;
  color: #9f2d2d;
}

.chat-row--checkout {
  padding: 8px 0 32px;
}

.chat-pay-card {
  display: grid;
  gap: 10px;
  padding: 16px 0 4px;
  border-radius: 0;
  background: transparent;
  border: none;
  box-shadow: none;
}

.chat-pay-card__hint {
  margin: 0;
  font-size: 14px;
  color: var(--muted);
  text-align: center;
  line-height: 1.45;
}

.chat-pay-card__refund {
  margin: 0;
  font-size: 13px;
  color: var(--accent-hover);
  text-align: center;
  line-height: 1.45;
}

.chat-pay-card__status {
  margin: 0;
  font-size: 13px;
  text-align: center;
  color: var(--accent-hover);
  line-height: 1.45;
}

.chat-pay-card__status--error {
  color: #9f2d2d;
}

.chat-pay-card .btn-pay {
  margin-top: 4px;
  min-height: 52px;
}

.chat-form.form-field-invalid-highlight {
  outline: 2px solid #c44b4b;
  outline-offset: 3px;
}

.chat-page-success {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 16px;
  padding: 24px 20px;
  text-align: center;
  background: var(--bg);
}

.chat-page-success[hidden] {
  display: none !important;
}

.chat-page-success .form-success-lead {
  max-width: 42ch;
}

/* Mobile: Telegram-style bot */
@media (max-width: 767px) {
  body.chat-page-body {
    background: #faf9f7;
  }

  .chat-page-main {
    padding-top: 56px;
  }

  .chat-messages {
    padding-right: 12px;
  }

  .chat-row__answer {
    padding: 10px 14px;
    border-radius: 18px;
    background: var(--accent-soft);
    border: 1px solid color-mix(in oklab, var(--accent) 28%, var(--line));
  }

  .chat-row--checkout .chat-pay-card {
    padding: 12px 0 4px;
  }

  .chat-controls {
    background: #fff;
    border-top: 1px solid var(--line);
    padding: 12px 16px calc(20px + env(safe-area-inset-bottom, 0px));
  }

  .chat-controls__chips {
    gap: 8px;
  }

  .chat-chip {
    flex: 1 1 calc(50% - 4px);
    min-width: 0;
    text-align: center;
  }

  .chat-chip--action,
  .chat-chip--input,
  .chat-chip--send {
    flex: 1 1 100%;
  }

  .chat-controls__chips--input {
    flex-direction: column;
  }
}

/* Desktop: centered stage */
@media (min-width: 768px) {
  body.chat-page-body {
    --chat-viewport-h: calc(100dvh - 64px - env(safe-area-inset-top, 0px));
    --chat-focus-y: calc(var(--chat-viewport-h) * 0.3);
    --chat-pad-top: calc(var(--chat-focus-y) * 0.55);
    --chat-pad-bottom: calc(var(--chat-viewport-h) * 0.22);
  }

  .chat-page-main {
    flex: 1;
    min-height: 0;
    padding-top: 64px;
  }

  .chat-stage {
    position: relative;
    height: 100%;
  }

  .chat-stage--intro {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding: var(--chat-pad-top) 24px var(--chat-pad-bottom);
  }

  .chat-stage--intro .chat-stage__history {
    flex: 0 0 auto;
    overflow: hidden;
    width: min(560px, 100%);
  }

  .chat-stage--intro .chat-messages {
    padding: 0;
    text-align: center;
  }

  .chat-stage--intro .chat-row__text {
    font-size: 18px;
    line-height: 1.6;
  }

  .chat-stage--intro .chat-controls {
    width: min(560px, 100%);
    margin-top: 24px;
    padding: 0;
  }

  .chat-stage--intro .chat-controls__chips {
    justify-content: center;
    gap: 12px;
  }

  .chat-stage--flow {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    align-items: center;
    padding: 0 24px env(safe-area-inset-bottom, 0px);
    scroll-behavior: smooth;
  }

  .chat-stage--flow::before,
  .chat-stage--flow::after {
    content: "";
    display: block;
    width: min(560px, 100%);
    flex-shrink: 0;
  }

  .chat-stage--flow::before {
    flex: 0 0 auto;
    height: var(--chat-pad-top);
    min-height: 8vh;
    max-height: 14vh;
  }

  .chat-stage--flow::after {
    flex: 0 0 auto;
    height: var(--chat-pad-bottom);
    min-height: 12vh;
    max-height: 22vh;
  }

  .chat-stage--flow .chat-stage__history {
    position: static;
    transform: none;
    width: min(560px, 100%);
    max-height: none;
    overflow: visible;
    flex: 0 0 auto;
  }

  .chat-stage--flow .chat-messages {
    padding: 0 8px 8px 0;
  }

  .chat-stage--flow .chat-row__text {
    font-size: 16px;
  }

  .chat-stage--flow .chat-row--user {
    padding-right: 8px;
  }

  .chat-stage--flow .chat-row__answer {
    text-align: right;
    color: var(--muted);
    font-size: 14px;
    max-width: min(82%, 400px);
  }

  .chat-stage--flow .chat-controls {
    position: static;
    transform: none;
    width: min(560px, 100%);
    padding: 4px 8px 0 0;
    flex: 0 0 auto;
  }

  .chat-stage--flow .chat-controls__chips {
    justify-content: center;
    gap: 10px;
  }

  .chat-controls__chips--input {
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: stretch;
  }

  .chat-stage--flow .chat-controls__chips--input {
    justify-content: stretch;
  }

  .chat-stage--flow .chat-chip--input {
    flex: 1 1 auto;
  }

  .chat-stage--flow .chat-chip--send {
    flex: 0 0 auto;
  }

  .chat-stage--flow .chat-row--checkout {
    width: min(560px, 100%);
    padding-right: 8px;
    padding-bottom: 0;
  }

  .chat-stage--flow .chat-pay-card {
    padding-top: 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .chat-stage--flow {
    scroll-behavior: auto;
  }

  .chat-controls {
    transition: none;
  }
}

/* ============================================================
   Stylist page — premium AI fashion assistant
   ============================================================ */

body.stylist-page {
  background: #f8f7f4;
  overflow-x: hidden;
}

body.stylist-page.chat-page-body {
  display: flex;
  flex-direction: column;
  min-height: 100dvh;
  height: auto;
  margin: 0;
  background: #f8f7f4;
  overflow-x: hidden;
  overflow-y: auto;
}

.stylist-shell {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  width: 100%;
  align-items: stretch;
  justify-content: flex-start;
  min-height: 0;
  padding: calc(16px + env(safe-area-inset-top, 0px)) 16px 0;
  box-sizing: border-box;
}

.stylist-shell[hidden] {
  display: none !important;
}

.stylist-chat {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  width: 100%;
  max-width: 760px;
  min-width: 0;
  min-height: 0;
  margin: 0 auto;
}

.stylist-form {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  width: 100%;
  min-height: 0;
}

/* Legacy chat-stage layout must not override stylist funnel */
body.stylist-page .chat-stage {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  position: static;
  height: auto;
  min-height: 0;
  overflow: visible;
}

body.stylist-page .chat-stage--intro,
body.stylist-page .chat-stage--flow {
  align-items: stretch;
  justify-content: flex-start;
  padding: 0;
  overflow: visible;
  scroll-behavior: auto;
}

body.stylist-page .chat-stage--flow::before,
body.stylist-page .chat-stage--flow::after {
  display: none !important;
  content: none;
}

.stylist-card {
  --stylist-bubble-gutter: 14px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  height: auto;
  background: #fff;
  border-radius: 24px;
  box-shadow: 0 20px 60px rgba(58, 56, 52, 0.08), 0 4px 16px rgba(58, 56, 52, 0.04);
  animation: stylistCardIn 0.3s cubic-bezier(0.22, 1, 0.36, 1) both;
  width: 100%;
  min-height: 0;
  padding: 36px 44px 24px;
  box-sizing: border-box;
}

.stylist-logo {
  flex: 0 0 auto;
  display: inline-block;
  margin: 0 0 24px;
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--text);
  transition: opacity 0.15s ease;
}

.stylist-logo:hover {
  text-decoration: none;
  color: var(--text);
  opacity: 0.72;
}

.stylist-card__hero {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin: 0 0 32px;
  gap: 6px;
}

.stylist-avatar {
  position: relative;
  flex-shrink: 0;
  border-radius: 50%;
  background: #2f2e2b;
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.stylist-avatar--lg {
  width: 56px;
  height: 56px;
  margin-bottom: 6px;
}

.stylist-avatar--sm {
  width: 32px;
  height: 32px;
}

.stylist-avatar--sm .stylist-avatar__letter {
  font-size: 14px;
}

.stylist-avatar__letter {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  line-height: 1;
}

.stylist-avatar__spark {
  position: absolute;
  top: -2px;
  right: -6px;
  color: #f5d565;
}

.stylist-card__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: var(--text);
}

.stylist-card__subtitle {
  margin: 0;
  font-size: 14px;
  color: var(--muted);
  line-height: 1.45;
}

.stylist-card__feed {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  min-height: 0;
}

.stylist-flow-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 0 0 20px;
  font-size: 13px;
  line-height: 1.3;
}

.stylist-flow-bar[hidden] {
  display: none !important;
}

.stylist-flow-bar__brand {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-decoration: none;
  color: var(--text);
}

.stylist-flow-bar__brand:hover {
  text-decoration: none;
  color: var(--text);
  opacity: 0.72;
}

.stylist-flow-bar__sep {
  color: #c8c5be;
}

.stylist-flow-bar__tag {
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
}

.stylist-card--flow {
  padding: 36px 44px 24px;
}

.stylist-chat-header {
  flex: 0 0 auto;
  align-self: stretch;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 0 0 16px;
  margin-bottom: 4px;
}

.stylist-flow-bar--inchat {
  margin: 0 0 16px;
}

.stylist-card__hero--inchat {
  margin: 0;
  gap: 6px;
}

.stylist-card--flow .stylist-controls.stylist-compose {
  padding: 12px var(--stylist-bubble-gutter) 4px;
  border-top: 1px solid #eceae6;
}

.stylist-card--flow .stylist-controls__inner {
  gap: 10px;
  padding-left: 0;
  max-width: 100%;
}

.stylist-card--flow .stylist-quick-replies:not(.stylist-bubble__chips) {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  width: 100%;
}

.stylist-card--flow .stylist-quick-replies .chat-chip:not(.chat-chip--action) {
  padding: 10px 18px;
  font-size: 14px;
  border-radius: 999px;
  border-color: #e4e3e0;
  background: #fff;
  box-shadow: 0 2px 8px rgba(58, 56, 52, 0.04);
}

.stylist-card--flow .stylist-quick-replies .chat-chip:not(.chat-chip--action):hover {
  border-color: #cfcbc4;
  background: #faf9f7;
  transform: translateY(-1px);
}

.stylist-card--flow .stylist-quick-replies .chat-chip.is-selected,
.stylist-page .chat-chip.is-selected {
  border-color: var(--accent);
  background: var(--accent-soft);
  color: var(--accent-hover);
  box-shadow: 0 2px 8px rgba(var(--accent-rgb), 0.12);
}

.stylist-card--flow .stylist-done-btn {
  flex: 1 1 100%;
  width: 100%;
  margin-top: 2px;
  text-align: center;
}

.stylist-card--flow .chat-chip--action {
  padding: 11px 22px;
  border-radius: 999px;
  border-color: var(--accent);
  background: var(--accent);
  color: #fff;
  font-weight: 600;
  box-shadow: var(--shadow-accent);
}

.stylist-card--flow .stylist-done-btn:hover:not(:disabled),
.stylist-card--flow .chat-chip--action:hover:not(:disabled) {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
}

.stylist-card--flow .stylist-done-btn:disabled,
.stylist-card--flow .chat-chip--action:disabled {
  opacity: 1;
  background: #d8d6d1;
  border-color: #d8d6d1;
  color: #fff;
  box-shadow: none;
  cursor: not-allowed;
}

.stylist-card--flow .chat-controls__chips--input {
  padding-left: 0;
  max-width: 100%;
}

.stylist-card--flow .chat-controls__chips--input .chat-chip--input {
  flex: 1 1 auto;
  min-width: 0;
  border-radius: 16px;
}

.stylist-card--flow .chat-controls__chips--input .chat-chip--send {
  border-radius: 16px;
  border-color: var(--accent);
  background: var(--accent);
  color: #fff;
}

.stylist-privacy--page {
  flex: 0 0 auto;
}

.stylist-messages {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  min-height: 0;
  gap: 10px;
  align-items: flex-start;
  padding: 0 var(--stylist-bubble-gutter) 16px;
  overflow-y: auto;
}

.stylist-card:not(.stylist-card--flow) .stylist-msg--active {
  margin-top: auto;
  align-self: stretch;
}

.stylist-controls {
  flex-shrink: 0;
  flex-grow: 0;
  margin-top: auto;
}

.stylist-msg {
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 0;
  align-self: flex-start;
  width: auto;
  max-width: 100%;
  margin-right: 0;
  animation: stylistBubbleIn 0.3s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.stylist-msg__main {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  min-width: 0;
  max-width: 100%;
}

.stylist-msg__main > .stylist-avatar--sm {
  flex: 0 0 32px;
}

.stylist-bubble {
  flex: 0 1 auto;
  width: auto;
  max-width: min(100%, 480px);
  min-width: 0;
  padding: 14px 14px 14px;
  box-sizing: border-box;
  border-radius: 18px;
  background: #fff;
  border: 1px solid #eceae6;
  box-shadow: 0 2px 10px rgba(58, 56, 52, 0.05);
  color: var(--text);
  font-size: 14px;
  line-height: 1.5;
}

.stylist-bubble:has(.stylist-bubble__options) {
  width: 100%;
  max-width: 100%;
}

.stylist-bubble__text {
  margin: 0;
}

.stylist-bubble__meta {
  display: flex;
  justify-content: flex-end;
  margin-top: 8px;
}

.stylist-bubble:has(.stylist-bubble__options) .stylist-bubble__meta {
  margin-top: 12px;
}

.stylist-bubble__time {
  font-size: 11px;
  color: #b5b1aa;
  line-height: 1.2;
}

.stylist-bubble__options {
  margin-top: 16px;
}

.stylist-bubble__chips--cloud {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 10px;
}

.stylist-bubble__chips--stack {
  flex-direction: column;
  align-items: stretch;
  width: 100%;
}

.stylist-bubble__chips--stack .chat-chip:not(.stylist-done-btn) {
  width: 100%;
  max-width: 100%;
}

.stylist-bubble__chips .chat-chip:not(.stylist-done-btn) {
  flex: 0 1 auto;
  width: auto;
  max-width: 100%;
  min-width: 0;
  padding: 10px 16px;
  border-radius: 999px;
  font-size: 13px;
  text-align: center;
  white-space: nowrap;
  line-height: 1.3;
  border-color: #e8e6e2;
  background: #fff;
  box-shadow: 0 1px 4px rgba(58, 56, 52, 0.04);
}

.stylist-bubble__chips .chat-chip:hover {
  border-color: #d4d0c8;
  background: #faf9f7;
}

.stylist-bubble__chips .chat-chip.is-selected {
  border-color: var(--accent);
  background: var(--accent-soft);
  color: var(--accent-hover);
}

.stylist-bubble__chips .stylist-done-btn {
  flex: 0 0 100%;
  width: 100%;
  margin-top: 6px;
  border-radius: 999px;
  white-space: nowrap;
}

.stylist-page .stylist-done-btn:not(:disabled) {
  border-color: var(--accent);
  background: var(--accent);
  color: #fff;
  box-shadow: var(--shadow-accent);
}

.stylist-page .stylist-done-btn:disabled {
  background: #d8d6d1;
  border-color: #d8d6d1;
  color: #fff;
  box-shadow: none;
}

.stylist-reply {
  align-self: flex-end;
  max-width: 100%;
  margin: 2px 0 2px auto;
  padding: 10px 14px;
  border-radius: 18px;
  background: #eef6f2;
  border: 1px solid color-mix(in oklab, var(--accent) 18%, var(--line));
  font-size: 14px;
  font-weight: 500;
  color: var(--accent-hover);
  line-height: 1.4;
  white-space: nowrap;
  animation: stylistBubbleIn 0.35s ease both;
}

.stylist-compose__bar {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
}

.stylist-compose__input {
  flex: 1 1 auto;
  min-width: 0;
  height: 44px;
  padding: 0 16px;
  border: 1px solid #e4e3e0;
  border-radius: 999px;
  background: #fff;
  font-size: 14px;
  font-family: var(--font-body);
  color: var(--text);
}

.stylist-compose__input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(var(--accent-rgb), 0.15);
}

.stylist-compose__send {
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  border: none;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: var(--shadow-accent);
}

.stylist-compose__send:hover:not(:disabled) {
  background: var(--accent-hover);
}

.stylist-compose__send:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  box-shadow: none;
}

body.stylist-page .stylist-messages.chat-messages {
  text-align: left;
  width: 100%;
  padding: 0 var(--stylist-bubble-gutter) 16px;
  gap: 10px;
}

.stylist-controls {
  padding: 0;
  background: transparent;
  border: none;
}

.stylist-controls[hidden] {
  display: none !important;
}

.stylist-controls__inner {
  display: grid;
  gap: 14px;
}

.stylist-prompt-box {
  padding: 24px;
  border-radius: 20px;
  background: #fafafa;
  border: none;
}

.stylist-prompt-box--enter {
  animation: stylistBubbleIn 0.3s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.stylist-question {
  margin: 0 0 14px;
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.35;
  color: var(--text);
}

.stylist-gender-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.stylist-bubble__options .stylist-gender-grid {
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  width: 100%;
}

.stylist-bubble__options .stylist-gender-card {
  width: 100%;
  height: 72px;
}

.stylist-gender-card {
  appearance: none;
  border: 2px solid transparent;
  border-radius: 16px;
  height: 96px;
  padding: 0 16px;
  font-family: var(--font-body);
  color: var(--text);
  cursor: pointer;
  text-align: center;
  line-height: 1.3;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 4px 16px rgba(58, 56, 52, 0.05);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.stylist-gender-card--female {
  background: #f6f0f8;
  border-color: #eadcf0;
}

.stylist-gender-card--male {
  background: #f0f3f8;
  border-color: #dce4f0;
}

.stylist-gender-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(58, 56, 52, 0.07);
}

.stylist-gender-card.is-selected {
  border-color: var(--accent);
  box-shadow: 0 8px 24px rgba(var(--accent-rgb), 0.12);
}

.stylist-gender-card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #5c5a56;
}

.stylist-gender-card__label {
  font-size: 15px;
  font-weight: 600;
}

.stylist-privacy--page {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 0 auto;
  padding: 12px 20px calc(20px + env(safe-area-inset-bottom, 0px));
  max-width: 760px;
  width: 100%;
  font-size: 12px;
  color: #a8a49e;
  text-align: center;
  line-height: 1.4;
}

.stylist-privacy--page[hidden] {
  display: none !important;
}

/* Chips inside stylist card */
.stylist-page .chat-controls__chips {
  gap: 8px;
}

.stylist-page .chat-chip {
  border-radius: 14px;
  padding: 12px 18px;
  border-color: var(--line);
  background: #fff;
}

.stylist-page .chat-chip:hover {
  background: #faf9f7;
}

.stylist-page .chat-chip--featured {
  border-color: var(--accent);
  background: var(--accent-soft);
  color: var(--accent-hover);
}

.stylist-page .chat-chip--action:not(:disabled) {
  border-radius: 14px;
  border-color: var(--accent);
  background: var(--accent);
  color: #fff;
  font-weight: 600;
  box-shadow: var(--shadow-accent);
}

.stylist-page .chat-chip--action:not(:disabled):hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
}

.stylist-page .chat-chip--action:disabled {
  opacity: 1;
  background: #d8d6d1;
  border-color: #d8d6d1;
  color: #fff;
  box-shadow: none;
  cursor: not-allowed;
}

.stylist-page .chat-controls__hint {
  background: #f8f7f4;
  border-radius: 14px;
  color: var(--muted);
  padding: 10px 14px;
}

.stylist-page .chat-row--checkout {
  margin-top: 8px;
  max-width: 100%;
}

.stylist-page .chat-row--checkout .chat-pay-card {
  padding: 24px;
  border-radius: 20px;
  background: #fafafa;
}

.stylist-page .chat-pay-card .btn-pay {
  border-radius: 16px;
}

.stylist-success {
  background: #f8f7f4;
}

@keyframes stylistCardIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes stylistBubbleIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Tablet — 768–1023px */
@media (max-width: 1023px) and (min-width: 768px) {
  .stylist-chat {
    width: 92vw;
    max-width: 700px;
  }

  .stylist-card:not(.stylist-card--flow) {
    padding: 32px;
  }

  .stylist-card--flow {
    padding: 28px 28px 32px;
  }
}

/* Laptop — 1024–1439px */
@media (max-width: 1439px) and (min-width: 1024px) {
  .stylist-chat {
    width: 720px;
    max-width: 90vw;
  }

  .stylist-card:not(.stylist-card--flow) {
    padding: 40px;
  }

  .stylist-card--flow {
    padding: 32px 36px 36px;
  }
}

@media (min-width: 768px) {
  body.stylist-page .chat-stage--intro .chat-messages {
    text-align: left;
    padding: 0;
  }

  body.stylist-page .chat-stage--intro .chat-controls,
  body.stylist-page .chat-stage--flow .chat-controls {
    width: 100%;
    margin-top: auto;
    padding: 0;
  }

  body.stylist-page .chat-stage--flow .chat-messages {
    padding: 0;
  }
}

/* Mobile — до 767px */
@media (max-width: 767px) {
  .stylist-shell {
    padding: calc(16px + env(safe-area-inset-top, 0px)) 16px 0;
    align-items: stretch;
  }

  .stylist-chat {
    width: 100%;
    max-width: none;
    margin: 0;
  }

  .stylist-card {
    padding: 24px;
    border-radius: 20px;
  }

  .stylist-card--flow {
    padding: 20px 20px 16px;
  }

  .stylist-card--flow .stylist-controls__inner {
    padding-left: 0;
    max-width: 100%;
  }

  .stylist-card--flow .stylist-done-btn,
  .stylist-card--flow .chat-chip--action {
    margin-left: 0;
    width: 100%;
    justify-content: center;
  }

  .stylist-flow-bar {
    margin-bottom: 16px;
  }

  .stylist-card__title {
    font-size: 22px;
  }

  .stylist-card--flow {
    --stylist-bubble-gutter: 12px;
  }

  .stylist-bubble__options .stylist-gender-grid {
    grid-template-columns: 1fr 1fr;
  }

  .stylist-bubble__chips .chat-chip {
    padding: 10px 14px;
    font-size: 13px;
  }

  .stylist-gender-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .stylist-privacy--page {
    max-width: 100%;
    padding-left: 16px;
    padding-right: 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .stylist-card,
  .stylist-bubble,
  .stylist-reply,
  .stylist-question,
  .stylist-gender-card,
  .stylist-prompt-box--enter {
    animation: none;
    transition: none;
  }
}

/* Landing page — reference layout */
body[data-page="landing"] {
  background-color: #fafaf9;
  background-image: none;
}

body[data-page="landing"] .section:nth-of-type(even) {
  background: transparent;
  border: none;
}

body[data-page="landing"] .section h2::after {
  display: none;
}

body[data-page="landing"] .section {
  padding: 56px 0;
}

body[data-page="landing"] .header {
  background: rgba(250, 250, 249, 0.96);
  box-shadow: none;
}

.landing-hero.section {
  padding: 40px 0 64px;
  background: #fafaf9;
  border-bottom: none;
}

.landing-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: clamp(32px, 4vw, 56px);
  align-items: start;
}

.landing-hero__copy {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.landing-hero__copy .tag {
  align-self: flex-start;
  width: fit-content;
  max-width: 100%;
}

.landing-hero__copy h1 {
  font-size: clamp(2rem, 3.8vw, 3.25rem);
  line-height: 1.08;
  margin-bottom: 12px;
}

.landing-hero__copy .hero-lead {
  font-size: clamp(1rem, 1.6vw, 1.125rem);
  margin-bottom: 24px;
}

.landing-hero__benefits {
  list-style: none;
  margin: 0 0 28px;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.landing-hero__benefits li {
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 13px;
  line-height: 1.45;
  color: var(--muted);
}

.landing-hero__benefit-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #eef6f2;
  color: var(--accent-hover);
}

.btn-hero {
  gap: 8px;
  min-width: min(100%, 280px);
  height: 52px;
  font-size: 16px;
}

.landing-hero__social {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 20px;
}

.landing-hero__social p {
  margin: 0;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.4;
}

.landing-hero__avatars {
  display: flex;
  flex-shrink: 0;
}

.landing-hero__avatar {
  display: block;
  width: 32px;
  height: 32px;
  margin-left: -8px;
  border: 2px solid #fafaf9;
  border-radius: 50%;
  object-fit: cover;
}

.landing-hero__avatar:first-child {
  margin-left: 0;
}

.hero-preview {
  display: block;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 12px 40px rgba(58, 56, 52, 0.08);
}

.hero-preview__photo {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
  object-position: top center;
  background: var(--surface-muted);
}

.section-examples {
  padding-top: 32px;
}

.section-examples h2 {
  text-align: center;
  margin-bottom: 32px;
}

.lookbook-gallery {
  gap: 24px;
}

.lookbook-card {
  padding: 0;
}

.features-grid--landing {
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
}

.feature-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 20px 12px;
  text-align: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.feature-card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #eef6f2;
  color: var(--accent-hover);
}

.feature-card__text {
  font-size: 12px;
  font-weight: 500;
  line-height: 1.4;
  color: var(--text);
}

.section-features h2,
.section-steps h2 {
  text-align: center;
  margin-bottom: 32px;
}

.steps-flow {
  display: flex;
  align-items: stretch;
  justify-content: center;
  gap: 8px;
}

.step-card {
  flex: 1 1 0;
  max-width: 280px;
  padding: 24px 20px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.step-card h3 {
  font-size: 16px;
  margin-bottom: 8px;
}

.step-card p {
  margin: 0;
  font-size: 14px;
  color: var(--muted);
  line-height: 1.5;
}

.step-card .step-num {
  margin-bottom: 14px;
  background: #eef6f2;
  color: var(--accent-hover);
}

.steps-flow__arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 32px;
  color: #c8c4bc;
  align-self: center;
}

.faq-layout {
  display: grid;
  gap: 12px;
}

.faq-layout__title {
  margin: 0;
}

.faq-layout__body {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  gap: 32px;
  align-items: start;
}

.faq-layout__questions {
  display: grid;
  gap: 12px;
  min-width: 0;
}

.faq-cta {
  position: sticky;
  top: calc(var(--header-height) + 24px);
  text-align: center;
  padding: 32px 28px;
  background: var(--surface-muted);
}

.faq-cta__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  margin: 0 auto 16px;
  border-radius: 50%;
  background: #eef6f2;
  color: var(--accent-hover);
}

.faq-cta h3 {
  font-size: 20px;
  margin-bottom: 10px;
}

.faq-cta__lead {
  margin: 0 0 20px;
  font-size: 15px;
  color: var(--muted);
  line-height: 1.5;
}

.faq-cta__note {
  margin: 14px 0 0;
  font-size: 13px;
  color: var(--muted);
}

.landing-trust {
  border-top: 1px solid var(--line);
  background: #fff;
  padding: 20px 0 calc(20px + env(safe-area-inset-bottom, 0px));
}

.landing-trust__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.landing-trust__item {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 13px;
  color: var(--muted);
}

.landing-trust__item svg {
  color: var(--accent-hover);
  flex-shrink: 0;
}

.landing-trust__extra {
  margin: 16px 0 0;
  text-align: center;
  font-size: 13px;
}

.landing-trust__extra a {
  color: var(--muted);
  text-decoration: none;
  transition: color 0.15s ease;
}

.landing-trust__extra a:hover {
  color: var(--accent-hover);
}

@media (max-width: 1100px) {
  .landing-hero__benefits {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .landing-hero__benefits li {
    flex-direction: row;
    align-items: center;
  }

  .features-grid--landing {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 980px) {
  .landing-hero__grid {
    grid-template-columns: 1fr;
  }

  .hero-preview {
    max-width: 520px;
    margin: 0 auto;
    width: 100%;
  }

  .steps-flow {
    flex-direction: column;
    align-items: stretch;
  }

  .steps-flow__arrow {
    transform: rotate(90deg);
    align-self: center;
    margin: 4px 0;
  }

  .step-card {
    max-width: none;
  }

  .faq-layout__body {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .faq-cta {
    position: static;
  }
}

@media (max-width: 768px) {
  body[data-page="landing"] .section {
    padding: 40px 0;
  }

  .landing-hero.section {
    padding-top: 24px;
    padding-bottom: 40px;
  }

  .features-grid--landing {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .landing-trust__grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .landing-trust__item {
    justify-content: flex-start;
  }
}

/* Careers page */
body[data-page="careers"] {
  background-color: #fafaf9;
}

body[data-page="careers"] .header {
  background: rgba(250, 250, 249, 0.96);
}

.careers-hero {
  padding-top: 32px;
  padding-bottom: 24px;
  text-align: center;
}

.careers-hero__inner {
  max-width: 720px;
  margin: 0 auto;
}

.careers-hero__inner .tag {
  display: inline-block;
  margin-bottom: 16px;
}

.careers-hero h1 {
  font-size: clamp(2rem, 4vw, 2.75rem);
  line-height: 1.1;
  margin-bottom: 16px;
}

.careers-hero__lead {
  margin: 0 auto;
  max-width: 560px;
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--muted);
}

.careers-perks h2,
.careers-openings h2 {
  text-align: center;
  margin-bottom: 32px;
}

.careers-perks__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.careers-openings__lead {
  text-align: center;
  max-width: 520px;
  margin: -16px auto 28px;
  font-size: 15px;
  color: var(--muted);
  line-height: 1.55;
}

.careers-jobs {
  display: grid;
  gap: 16px;
  max-width: 760px;
  margin: 0 auto;
}

.careers-job {
  padding: 24px;
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.careers-job:hover {
  border-color: #d8e8e0;
  box-shadow: var(--shadow-md);
}

.careers-job__head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.careers-job h3 {
  margin: 0;
  font-size: 1.15rem;
}

.careers-job__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.careers-tag {
  display: inline-flex;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.02em;
  background: var(--accent-soft);
  color: var(--accent-hover);
}

.careers-job__desc {
  margin: 0 0 18px;
  font-size: 14px;
  line-height: 1.6;
  color: var(--muted);
}

.careers-cta {
  padding-bottom: 64px;
}

.careers-cta__card {
  max-width: 640px;
  margin: 0 auto;
  padding: 32px;
  text-align: center;
}

.careers-cta__card h2 {
  font-size: 1.35rem;
  margin-bottom: 12px;
}

.careers-cta__card p {
  margin: 0 0 24px;
  font-size: 15px;
  line-height: 1.6;
  color: var(--muted);
}

.careers-cta__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

.landing-trust--careers a {
  font-size: 13px;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.15s ease;
}

.landing-trust--careers a:hover {
  color: var(--accent-hover);
}

@media (max-width: 1100px) {
  .careers-perks__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .careers-perks__grid {
    grid-template-columns: 1fr;
  }

  .careers-job__head {
    flex-direction: column;
  }

  .careers-cta__actions {
    flex-direction: column;
    align-items: stretch;
  }
}
