/* ==========================================================
   AXERO — Digital Solutions Studio
   Design system + mobile-first responsive stylesheet
   ========================================================== */

:root {
  --primary: #3D4FE0;
  --primary-dark: #2E3BB8;
  --primary-soft: #EEF0FC;
  --background: #FAFAF8;
  --surface: #FFFFFF;
  --text: #16161A;
  --text-muted: #64646B;
  --border: #E5E5E2;
  --border-strong: #D4D4D0;
  --radius: 16px;
  --radius-sm: 10px;
  --container: 1160px;
  --space-1: 8px;
  --space-2: 16px;
  --space-3: 24px;
  --space-4: 32px;
  --space-5: 48px;
  --space-6: 64px;
  --space-7: 96px;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-heading: 'Sora', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --shadow-sm: 0 1px 2px rgba(22,22,26,0.04);
  --shadow-md: 0 8px 24px rgba(22,22,26,0.08);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--background);
  color: var(--text);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4, p { margin: 0; }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--text);
  color: #fff;
  padding: 12px 20px;
  border-radius: 0 0 8px 0;
  z-index: 1000;
}
.skip-link:focus {
  left: 0;
}

:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
  border-radius: 4px;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ---------- Layout helpers ---------- */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px;
}
.section {
  padding: var(--space-6) 0;
}
.section-band {
  border-top: 1px solid var(--border);
}
.section-band.surface {
  background: var(--surface);
}
.section-head {
  max-width: 560px;
  margin: 0 0 var(--space-4);
}
.section-head.center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--primary);
  margin: 0 0 var(--space-2);
}
.eyebrow::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--primary);
}
.section-title {
  font-family: var(--font-heading);
  font-size: clamp(24px, 4vw, 34px);
  line-height: 1.2;
  letter-spacing: -0.01em;
  margin: 0;
}
.section-subtitle {
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-muted);
  margin-top: var(--space-2);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: none;
  border-radius: var(--radius-sm);
  padding: 14px 22px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.15s var(--ease), background-color 0.15s var(--ease), border-color 0.15s var(--ease);
  white-space: nowrap;
  min-height: 44px;
}
.btn:active { transform: scale(0.97); }
.btn-primary {
  background: var(--text);
  color: #fff;
}
.btn-primary:hover { background: var(--primary); }
.btn-secondary {
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border-strong);
}
.btn-secondary:hover { border-color: var(--text); }
.btn-block { width: 100%; }

/* ---------- Navbar ---------- */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid var(--border);
  background: rgba(250, 250, 248, 0.85);
  -webkit-backdrop-filter: saturate(180%) blur(10px);
  backdrop-filter: saturate(180%) blur(10px);
}
.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 16px;
  flex-shrink: 0;
}
.nav-logo img {
  height: 30px;
  width: 30px;
  border-radius: 7px;
  object-fit: cover;
}
.nav-links {
  display: none;
  align-items: center;
  gap: 28px;
}
.nav-links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted);
  transition: color 0.15s var(--ease);
}
.nav-links a:hover { color: var(--text); }
.nav-cta { display: none; }
.nav-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  background: var(--surface);
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--text);
  position: relative;
  transition: background-color 0.2s var(--ease);
}
.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  position: absolute;
  left: 0;
  width: 18px;
  height: 2px;
  background: var(--text);
  transition: transform 0.2s var(--ease), top 0.2s var(--ease);
}
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }
.nav-toggle.open span { background: transparent; }
.nav-toggle.open span::before { top: 0; transform: rotate(45deg); }
.nav-toggle.open span::after { top: 0; transform: rotate(-45deg); }

.mobile-nav {
  display: none;
  flex-direction: column;
  border-top: 1px solid var(--border);
  background: var(--surface);
  padding: var(--space-2) 20px var(--space-3);
}
.mobile-nav.open { display: flex; }
.mobile-nav a {
  padding: 12px 0;
  font-size: 15px;
  font-weight: 500;
  border-bottom: 1px solid var(--border);
  color: var(--text);
}
.mobile-nav a:last-of-type { border-bottom: none; }
.mobile-nav .btn { margin-top: var(--space-2); }

@media (min-width: 900px) {
  .nav-links { display: flex; }
  .nav-cta { display: inline-flex; }
  .nav-toggle { display: none; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: var(--space-6) 0 var(--space-7);
}
.hero-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, black 40%, transparent 100%);
  opacity: 0.5;
  pointer-events: none;
}
.hero-inner {
  position: relative;
  text-align: center;
  max-width: 760px;
  margin: 0 auto;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--primary);
  background: var(--primary-soft);
  border: 1px solid #d7dcfa;
  padding: 7px 14px;
  border-radius: 999px;
}
.hero h1 {
  font-family: var(--font-heading);
  font-size: clamp(32px, 6.5vw, 60px);
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: var(--space-3) 0 0;
}
.hero p.lead {
  font-size: clamp(15px, 2vw, 18px);
  line-height: 1.6;
  color: var(--text-muted);
  max-width: 540px;
  margin: var(--space-3) auto 0;
}
.hero-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: var(--space-4);
  align-items: center;
}
@media (min-width: 560px) {
  .hero-actions { flex-direction: row; justify-content: center; }
}

.hero-mock {
  position: relative;
  margin: var(--space-6) auto 0;
  max-width: 720px;
  display: none;
}
@media (min-width: 720px) {
  .hero-mock { display: block; }
}
.mock-card {
  position: absolute;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  padding: var(--space-2);
}
.hero-mock-main {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  padding: var(--space-3);
  height: 260px;
}
.hero-mock-main .dots { display: flex; gap: 6px; margin-bottom: var(--space-3); }
.hero-mock-main .dots span { width: 9px; height: 9px; border-radius: 50%; background: var(--border-strong); }
.hero-mock-main .bar { height: 10px; border-radius: 4px; background: var(--border); margin-bottom: 10px; }
.hero-mock-main .bar.w60 { width: 60%; }
.hero-mock-main .bar.w80 { width: 80%; }
.hero-mock-main .bar.w40 { width: 40%; background: var(--primary-soft); }
.mock-card.card-a { top: -24px; left: -24px; width: 140px; }
.mock-card.card-b { bottom: -20px; right: -20px; width: 160px; }
.mock-card .chip { font-size: 11px; font-weight: 600; color: var(--primary); }
.mock-card .chip-label { font-size: 11px; color: var(--text-muted); margin-top: 6px; }

/* ---------- Trust bar ---------- */
.trust-bar {
  padding: var(--space-4) 0;
}
.trust-bar-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-4) var(--space-5);
}
.trust-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
}
.trust-item svg { width: 16px; height: 16px; color: var(--primary); stroke: var(--primary); flex-shrink: 0; }
.trust-title {
  text-align: center;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: var(--space-3);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ---------- Services ---------- */
.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-3);
}
@media (min-width: 640px) {
  .services-grid { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 1000px) {
  .services-grid { grid-template-columns: repeat(3, 1fr); }
}
.service-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  padding: var(--space-4);
  transition: transform 0.2s var(--ease), border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
  display: flex;
  flex-direction: column;
  height: 100%;
}
.service-card:hover {
  transform: translateY(-3px);
  border-color: var(--border-strong);
  box-shadow: var(--shadow-md);
}
.service-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.service-number {
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 700;
  color: var(--border-strong);
}
.service-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--primary-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: var(--space-3);
}
.service-icon svg { width: 20px; height: 20px; color: var(--primary); stroke: var(--primary); }
.service-card h3 {
  font-family: var(--font-heading);
  font-size: 17px;
  margin-top: var(--space-3);
}
.service-card p {
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-muted);
  margin-top: 8px;
  flex-grow: 1;
}
.service-arrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  margin-top: var(--space-3);
  transition: gap 0.2s var(--ease);
}
.service-card:hover .service-arrow { gap: 10px; }
.service-arrow svg { width: 14px; height: 14px; }

/* ---------- Portfolio ---------- */
.portfolio-head {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  margin-bottom: var(--space-4);
}
@media (min-width: 780px) {
  .portfolio-head { flex-direction: row; align-items: flex-end; justify-content: space-between; }
}
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.filter-btn {
  border: 1px solid var(--border-strong);
  background: var(--surface);
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 500;
  padding: 8px 16px;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.15s var(--ease);
}
.filter-btn:hover { border-color: var(--text); color: var(--text); }
.filter-btn.active { background: var(--text); border-color: var(--text); color: #fff; }

.portfolio-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-3);
}
@media (min-width: 640px) {
  .portfolio-grid { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 1024px) {
  .portfolio-grid { grid-template-columns: repeat(3, 1fr); }
}
.portfolio-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  overflow: hidden;
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
  display: flex;
  flex-direction: column;
}
.portfolio-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}
.portfolio-preview {
  height: 160px;
  position: relative;
  background: linear-gradient(135deg, var(--primary-soft), var(--background));
  border-bottom: 1px solid var(--border);
  padding: var(--space-2);
  display: flex;
  flex-direction: column;
  gap: 8px;
  justify-content: center;
}
.portfolio-preview .pv-bar { height: 8px; border-radius: 4px; background: rgba(61,79,224,0.16); }
.portfolio-preview .pv-bar.w70 { width: 70%; }
.portfolio-preview .pv-bar.w50 { width: 50%; }
.portfolio-preview .pv-bar.w90 { width: 90%; background: rgba(61,79,224,0.28); }
.portfolio-preview .pv-dot-row { display: flex; gap: 6px; margin-top: 4px; }
.portfolio-preview .pv-dot-row span { width: 8px; height: 8px; border-radius: 50%; background: var(--primary); opacity: 0.5; }
.demo-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: var(--text);
  color: #fff;
  padding: 4px 9px;
  border-radius: 999px;
}
.portfolio-body { padding: var(--space-3); display: flex; flex-direction: column; gap: 6px; flex-grow: 1; }
.portfolio-category { font-size: 11px; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; color: var(--primary); }
.portfolio-body h3 { font-family: var(--font-heading); font-size: 16px; }
.portfolio-body p { font-size: 13px; line-height: 1.55; color: var(--text-muted); flex-grow: 1; }
.portfolio-link { font-size: 13px; font-weight: 600; display: inline-flex; align-items: center; gap: 6px; margin-top: 4px; }
.portfolio-link svg { width: 13px; height: 13px; }

/* ---------- Why AXERO ---------- */
.why-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-4);
}
@media (min-width: 720px) {
  .why-grid { grid-template-columns: 1fr 1fr; }
}
.why-item {
  padding-top: var(--space-3);
  border-top: 1px solid var(--border);
}
.why-number {
  font-family: var(--font-heading);
  font-size: 34px;
  font-weight: 700;
  color: var(--primary-soft);
  -webkit-text-stroke: 1.5px var(--primary);
  line-height: 1;
}
.why-item h3 { font-family: var(--font-heading); font-size: 17px; margin-top: var(--space-2); }
.why-item p { font-size: 14px; line-height: 1.6; color: var(--text-muted); margin-top: 6px; }

/* ---------- Process ---------- */
.process-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  margin-top: var(--space-4);
  position: relative;
}
@media (min-width: 860px) {
  .process-list { grid-template-columns: repeat(4, 1fr); gap: var(--space-3); }
}
.process-item {
  position: relative;
  padding: var(--space-3) 0 var(--space-4) 44px;
  border-left: 2px solid var(--border);
}
.process-item:last-child { border-left: 2px solid transparent; padding-bottom: 0; }
@media (min-width: 860px) {
  .process-item {
    padding: 0 0 0 0;
    border-left: none;
    border-top: 2px solid var(--border);
    padding-top: var(--space-3);
  }
}
.process-num {
  position: absolute;
  left: -15px;
  top: var(--space-3);
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--text);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}
@media (min-width: 860px) {
  .process-num { left: 0; top: -15px; }
}
.process-item h3 { font-family: var(--font-heading); font-size: 16px; margin: 0 0 6px; }
.process-item p { font-size: 14px; line-height: 1.6; color: var(--text-muted); }

/* ---------- Pricing ---------- */
.pricing-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-3);
}
@media (min-width: 640px) {
  .pricing-grid { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 1000px) {
  .pricing-grid { grid-template-columns: repeat(4, 1fr); }
}
.price-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  padding: var(--space-4);
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}
.price-card.featured {
  border-color: var(--text);
  box-shadow: var(--shadow-md);
}
.price-card h3 { font-family: var(--font-heading); font-size: 16px; }
.price-label { font-size: 12px; color: var(--text-muted); margin-top: 4px; }
.price-value { font-family: var(--font-heading); font-size: 24px; font-weight: 700; margin-top: 2px; }
.price-note {
  text-align: center;
  font-size: 13px;
  color: var(--text-muted);
  margin-top: var(--space-3);
}
.pricing-cta { text-align: center; margin-top: var(--space-3); }

/* ---------- FAQ ---------- */
.faq-list {
  max-width: 720px;
  margin: 0 auto;
}
.faq-item {
  border-bottom: 1px solid var(--border);
}
.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: none;
  border: none;
  text-align: left;
  padding: 18px 0;
  font-size: 15px;
  font-weight: 500;
  color: var(--text);
  cursor: pointer;
}
.faq-question .icon {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  transition: transform 0.2s var(--ease);
}
.faq-item.open .faq-question .icon { transform: rotate(45deg); }
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.25s var(--ease);
}
.faq-answer p {
  font-size: 14px;
  line-height: 1.65;
  color: var(--text-muted);
  padding-bottom: 18px;
}

/* ---------- Final CTA ---------- */
.final-cta {
  background: var(--text);
  color: #fff;
  border-radius: var(--radius);
  margin: 0 20px;
  padding: var(--space-6) var(--space-3);
  text-align: center;
}
.final-cta-inner { max-width: 620px; margin: 0 auto; }
.final-cta h2 {
  font-family: var(--font-heading);
  font-size: clamp(24px, 4vw, 36px);
  line-height: 1.2;
}
.final-cta p {
  font-size: 15px;
  line-height: 1.6;
  color: rgba(255,255,255,0.7);
  margin-top: var(--space-2);
}
.final-cta .btn-primary {
  background: #fff;
  color: var(--text);
  margin-top: var(--space-4);
}
.final-cta .btn-primary:hover { background: var(--primary-soft); color: var(--primary-dark); }

/* ---------- Footer ---------- */
.site-footer { padding: var(--space-6) 0 var(--space-4); }
.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-4);
}
@media (min-width: 720px) {
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; }
}
.footer-brand { display: flex; align-items: center; gap: 8px; font-family: var(--font-heading); font-weight: 700; font-size: 16px; }
.footer-brand img { height: 28px; width: 28px; border-radius: 6px; }
.footer-col p.footer-desc { font-size: 13px; color: var(--text-muted); margin-top: var(--space-2); max-width: 220px; line-height: 1.6; }
.footer-col h4 { font-size: 12px; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; color: var(--text-muted); margin-bottom: var(--space-2); }
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul a { font-size: 14px; color: var(--text); }
.footer-col ul a:hover { color: var(--primary); }
.footer-bottom {
  margin-top: var(--space-5);
  padding-top: var(--space-3);
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 12px;
  color: var(--text-muted);
}
@media (min-width: 720px) {
  .footer-bottom { flex-direction: row; justify-content: space-between; }
}

/* ---------- WhatsApp float ---------- */
.wa-float {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 90;
  display: flex;
  align-items: center;
  gap: 8px;
  background: #25D366;
  color: #fff;
  padding: 13px 16px;
  border-radius: 999px;
  box-shadow: 0 6px 20px rgba(37,211,102,0.35);
  font-size: 13px;
  font-weight: 600;
  transition: transform 0.15s var(--ease);
}
.wa-float:hover { transform: translateY(-2px); }
.wa-float svg { width: 20px; height: 20px; flex-shrink: 0; }
.wa-float .wa-text { display: none; }
@media (min-width: 560px) {
  .wa-float .wa-text { display: inline; }
}

/* ---------- Reveal animation ---------- */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease);
}
.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}

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

/* ==========================================================
   BRIEF FORM PAGE
   ========================================================== */
.brief-header {
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  background: rgba(250, 250, 248, 0.9);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  z-index: 50;
}
.brief-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
}
.brief-step-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
}

.form-shell {
  max-width: 640px;
  margin: 0 auto;
  padding: var(--space-4) 20px var(--space-7);
}

.progress {
  display: flex;
  gap: 8px;
}
.progress .seg {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}
.progress .bar {
  height: 6px;
  border-radius: 999px;
  background: var(--border);
  transition: background-color 0.2s var(--ease);
}
.progress .seg.active .bar,
.progress .seg.done .bar { background: var(--text); }
.progress .label {
  font-size: 11px;
  font-weight: 500;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.progress .seg.active .label { color: var(--text); }

.step {
  display: none;
  flex-direction: column;
  gap: var(--space-3);
  margin-top: var(--space-4);
}
.step.active { display: flex; animation: stepIn 0.25s var(--ease); }
@keyframes stepIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}
.step h2 { font-family: var(--font-heading); font-size: 21px; }
.step .step-desc { font-size: 14px; color: var(--text-muted); margin-top: 4px; }

.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 14px; font-weight: 500; }
.field label .req { color: var(--primary); }
.field .hint { font-size: 12px; color: var(--text-muted); }
.field .error { font-size: 12px; color: #dc2626; min-height: 0; }

input[type="text"], input[type="email"], input[type="tel"], textarea, select {
  width: 100%;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--surface);
  padding: 12px 14px;
  font-size: 16px;
  font-family: var(--font-body);
  color: var(--text);
  transition: border-color 0.15s var(--ease);
}
@media (min-width: 561px) {
  input[type="text"], input[type="email"], input[type="tel"], textarea, select {
    font-size: 14px;
  }
}
input:focus, textarea:focus, select:focus {
  outline: 2px solid var(--primary);
  outline-offset: 1px;
  border-color: var(--primary);
}
input.invalid, textarea.invalid, select.invalid { border-color: #f87171; }
textarea { resize: none; min-height: 96px; line-height: 1.5; }
select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2364646B' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; padding-right: 36px; }

.row-2 { display: grid; grid-template-columns: 1fr; gap: var(--space-3); }
@media (min-width: 561px) { .row-2 { grid-template-columns: 1fr 1fr; } }

.options-grid { display: grid; grid-template-columns: 1fr; gap: 10px; }
@media (min-width: 561px) { .options-grid { grid-template-columns: 1fr 1fr; } }

.option-card {
  display: flex; align-items: flex-start; gap: 12px;
  border: 1px solid var(--border); background: var(--surface);
  border-radius: var(--radius); padding: 13px 16px; cursor: pointer;
  text-align: left; font-family: inherit; font-size: 14px; line-height: 1.4;
  color: var(--text); transition: border-color 0.15s var(--ease), background-color 0.15s var(--ease);
  min-height: 48px;
}
.option-card:hover { border-color: var(--border-strong); }
.option-card.selected { border-color: var(--primary); background: var(--primary-soft); }
.option-card .mark {
  width: 16px; height: 16px; min-width: 16px; border: 1px solid var(--border);
  border-radius: 4px; background: var(--surface); display: flex; align-items: center;
  justify-content: center; margin-top: 2px; transition: border-color 0.15s var(--ease), background-color 0.15s var(--ease);
}
.option-card.round .mark { border-radius: 999px; }
.option-card.selected .mark { border-color: var(--primary); background: var(--primary); }
.option-card .mark svg { width: 10px; height: 10px; display: none; }
.option-card.selected .mark svg { display: block; }

.review-card { border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); padding: 20px; }
.review-card .review-head { display: flex; align-items: center; justify-content: space-between; }
.review-card h3 { font-family: var(--font-heading); font-size: 14px; font-weight: 600; margin: 0; }
.review-card .edit-btn { border: none; background: none; color: var(--primary); font-size: 13px; font-weight: 600; cursor: pointer; padding: 4px 0; }
.review-card .edit-btn:hover { text-decoration: underline; }
.review-row { display: flex; gap: 16px; padding: 8px 0; border-top: 1px solid var(--border); font-size: 13px; }
.review-row:first-of-type { margin-top: 8px; }
.review-row .rlabel { width: 150px; min-width: 150px; color: var(--text-muted); font-size: 12px; }
.review-row .rvalue { color: var(--text); word-break: break-word; }
@media (max-width: 480px) {
  .review-row { flex-direction: column; gap: 2px; }
  .review-row .rlabel { width: auto; }
}

.confirm-box { display: flex; align-items: flex-start; gap: 10px; border: 1px solid var(--border); background: var(--surface); border-radius: var(--radius); padding: 16px; font-size: 14px; line-height: 1.5; }
.confirm-box input { margin-top: 3px; accent-color: var(--primary); width: 18px; height: 18px; flex-shrink: 0; }

.form-error { margin-top: var(--space-3); border: 1px solid #fecaca; background: #fef2f2; color: #b91c1c; padding: 12px 16px; border-radius: var(--radius-sm); font-size: 14px; display: none; line-height: 1.5; }
.form-error.show { display: block; }

.form-nav { margin-top: var(--space-4); padding-top: var(--space-3); border-top: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; gap: 12px; }
@media (max-width: 420px) {
  .form-nav { flex-direction: column-reverse; }
  .form-nav .btn { width: 100%; }
}

#success { display: none; text-align: center; padding: var(--space-5) 0; }
#success.active { display: block; animation: stepIn 0.3s var(--ease); }
.success-icon { width: 52px; height: 52px; border-radius: 999px; background: var(--primary-soft); display: flex; align-items: center; justify-content: center; margin: 0 auto; }
.success-icon svg { width: 26px; height: 26px; color: var(--primary); stroke: var(--primary); }
#success h1 { font-family: var(--font-heading); font-size: clamp(22px, 4vw, 27px); margin: var(--space-3) 0 0; }
#success p { font-size: 14px; line-height: 1.6; color: var(--text-muted); margin: 12px auto 0; max-width: 380px; }
.ref-badge { margin-top: var(--space-3); display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--border); background: var(--surface); border-radius: var(--radius-sm); padding: 8px 16px; }
.ref-badge .rlabel { font-size: 12px; color: var(--text-muted); }
.ref-badge .rvalue { font-size: 14px; font-weight: 600; }
.success-actions { margin-top: var(--space-4); display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; }
@media (max-width: 420px) {
  .success-actions { flex-direction: column; width: 100%; }
  .success-actions .btn { width: 100%; }
}
