/* =========================
   GOOGLE FONTS — TYPO CHIPS
========================= */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;500&family=Caveat:wght@600&display=swap');

/* =========================
   ROOT VARIABLES
========================= */

:root {
  --primary:       #1d4ed8;
  --primary-dark:  #1e3a8a;
  --primary-light: #dbeafe;
  --accent:        #f59e0b;
  --accent-light:  #fef3c7;
  --dark:          #0c1528;
  --text:          #1e293b;
  --muted:         #64748b;
  --subtle:        #94a3b8;
  --bg:            #f8fafc;
  --white:         #ffffff;
  --border:        #e2e8f0;
  --border-strong: #cbd5e1;
  --success:       #10b981;
  --card-shadow:   0 4px 24px rgba(15,23,42,0.07);
  --card-shadow-hover: 0 20px 60px rgba(15,23,42,0.13);
  --radius:        14px;
  --radius-lg:     20px;
  --font-display:  'Syne', sans-serif;
  --font-body:     'DM Sans', sans-serif;
}

/* =========================
   RESET & BASE
========================= */

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img {
  display: block;
  max-width: 100%;
}

a {
  text-decoration: none;
}

/* =========================
   LAYOUT
========================= */

.container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 40px;
}

.section {
  padding: 110px 0;
}

.section-alt {
  background: var(--white);
}

/* =========================
   TYPOGRAPHY
========================= */

h1, h2, h3, h4 {
  font-family: var(--font-display);
  line-height: 1.1;
  letter-spacing: -0.5px;
  color: var(--dark);
}

h1 { font-size: clamp(2.4rem, 5vw, 3.8rem); font-weight: 800; }
h2 { font-size: clamp(2rem, 4vw, 3rem);   font-weight: 700; }
h3 { font-size: 1.25rem; font-weight: 700; }

p { color: var(--muted); }

.label {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--primary);
  background: var(--primary-light);
  padding: 5px 12px;
  border-radius: 100px;
  margin-bottom: 18px;
}

.label-amber {
  color: #92400e;
  background: var(--accent-light);
}

/* =========================
   BUTTONS
========================= */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  padding: 14px 28px;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
  border: none;
}

.btn-primary {
  background: var(--primary);
  color: white;
  box-shadow: 0 8px 24px rgba(29,78,216,0.22);
}

.btn-primary:hover {
  background: var(--primary-dark);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 14px 32px rgba(29,78,216,0.32);
}

.btn-secondary {
  background: var(--white);
  color: var(--dark);
  border: 1.5px solid var(--border-strong);
}

.btn-secondary:hover {
  border-color: var(--primary);
  color: var(--primary);
  transform: translateY(-2px);
}

.btn-ghost {
  background: transparent;
  color: var(--muted);
  padding: 14px 20px;
}

.btn-ghost:hover {
  color: var(--primary);
}

.btn-lg {
  font-size: 16px;
  padding: 16px 34px;
  border-radius: 12px;
}

/* =========================
   HEADER
========================= */

.header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
  min-height: 70px;
}

.logo {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 800;
  color: var(--dark);
  letter-spacing: -0.5px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.logo span {
  color: var(--primary);
}

.nav {
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav a {
  font-size: 14.5px;
  font-weight: 500;
  color: var(--muted);
  padding: 8px 14px;
  border-radius: 8px;
  transition: 0.2s ease;
}

.nav a:hover {
  color: var(--primary);
  background: var(--primary-light);
}

.nav .btn-primary {
  padding: 10px 20px;
  font-size: 14px;
  color: white;
}

.nav .btn-primary:hover {
  color: white;
  background: var(--primary-dark);
  box-shadow: 0 8px 24px rgba(29,78,216,0.22);
  transform: translateY(-2px);
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  width: 40px;
  height: 40px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  border-radius: 8px;
  transition: background 0.2s;
}

.menu-toggle:hover { background: var(--bg); }

.menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--dark);
  border-radius: 2px;
  transition: all 0.3s ease;
}

.mobile-nav {
  display: none;
  border-top: 1px solid var(--border);
  background: white;
  padding: 8px 0 16px;
}

.mobile-nav.is-open {
  display: block;
}

.mobile-nav a {
  display: block;
  padding: 12px 24px;
  color: var(--text);
  font-weight: 500;
  font-size: 15px;
  transition: 0.2s;
}

.mobile-nav a:hover {
  color: var(--primary);
  background: var(--bg);
}

.mobile-nav .btn-primary {
  margin: 12px 24px 0;
  display: block;
  text-align: center;
  color: white;
}

.mobile-nav .btn-primary:hover {
  color: white;
}

/* =========================
   TRUST BAR
========================= */

.trust-bar {
  background: var(--white);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 28px 0;
}

.trust-bar-inner {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 14.5px;
  font-weight: 500;
  color: var(--muted);
}

.trust-item-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--success);
  flex-shrink: 0;
}

/* =========================
   HOW IT WORKS
========================= */

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: 60px;
  position: relative;
}

.steps-grid::before {
  content: '';
  position: absolute;
  top: 38px;
  left: calc(33.33% - 16px);
  right: calc(33.33% - 16px);
  height: 2px;
  background: linear-gradient(90deg, var(--primary-light), var(--primary-light));
  z-index: 0;
}

.step-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px 36px;
  position: relative;
  z-index: 1;
  transition: all 0.25s ease;
  box-shadow: var(--card-shadow);
}

.step-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--card-shadow-hover);
  border-color: var(--primary-light);
}

.step-number {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--primary);
  color: white;
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
}

.step-card h3 {
  font-size: 1.15rem;
  margin-bottom: 10px;
  color: var(--dark);
}

/* =========================
   PORTFOLIO
========================= */

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
  margin-top: 56px;
}

.portfolio-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  overflow: hidden;
  box-shadow: var(--card-shadow);
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
}

.portfolio-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--card-shadow-hover);
  border-color: var(--border-strong);
}

/* Image styles (real images) */
.portfolio-img {
  width: 100%;
  aspect-ratio: 16/9;
  overflow: hidden;
  position: relative;
  background: linear-gradient(135deg, #e8edf5 0%, #d1dce8 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.portfolio-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.portfolio-card:hover .portfolio-img img {
  transform: scale(1.05);
}

/* Fallback placeholder styles (kept for safety) */
.portfolio-img-label {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: #8fa3bb;
}

.portfolio-img-name {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  color: #6b8099;
}

.portfolio-img svg {
  opacity: 0.35;
  color: #6b8099;
}

.portfolio-content {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.portfolio-tag {
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.5px;
  color: var(--primary);
  text-transform: uppercase;
  margin-bottom: 6px;
}

.portfolio-content h3 {
  font-size: 1.1rem;
  margin-bottom: 8px;
  color: var(--dark);
}

.portfolio-content p {
  font-size: 14px;
  color: var(--muted);
  flex-grow: 1;
  margin-bottom: 18px;
}

.portfolio-content .btn-secondary {
  align-self: flex-start;
  font-size: 13.5px;
  padding: 10px 18px;
}

/* =========================
   FEATURES / WHY US
========================= */

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 56px;
}

.feature-card {
  padding: 40px 36px;
  border-radius: var(--radius-lg);
  background: var(--white);
  border: 1px solid var(--border);
  box-shadow: var(--card-shadow);
  transition: all 0.25s ease;
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--card-shadow-hover);
}

.feature-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: var(--primary-light);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 22px;
  color: var(--primary);
}

.feature-card h3 {
  margin-bottom: 10px;
  font-size: 1.1rem;
}

.feature-card p {
  font-size: 14.5px;
  line-height: 1.65;
}

/* =========================
   PRICING
========================= */

.section-intro {
  max-width: 700px;
  margin-top: 12px;
  font-size: 16px;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
  margin-top: 56px;
  align-items: stretch;
}

.price-card {
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 24px;
  display: flex;
  flex-direction: column;
  box-shadow: var(--card-shadow);
  transition: all 0.25s ease;
}

.price-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--card-shadow-hover);
}

.price-card.featured {
  border-color: var(--accent);
  background: linear-gradient(170deg, #fffef9 0%, #ffffff 100%);
  position: relative;
  transform: scale(1.03);
  padding-top: 44px;
}

.price-card.featured:hover {
  transform: scale(1.03) translateY(-4px);
}

.featured-badge {
  position: absolute;
  top: -13px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: white;
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: 100px;
  white-space: nowrap;
}

.price-card-name {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--subtle);
  margin-bottom: 10px;
}

.price-amount {
  font-family: var(--font-display);
  font-size: 2.4rem;
  font-weight: 800;
  color: var(--dark);
  line-height: 1;
  margin-bottom: 4px;
  min-height: 2.4rem;
}

.price-period {
  font-size: 13px;
  color: var(--subtle);
  margin-bottom: 18px;
  min-height: 36px;
}

.price-divider {
  height: 1px;
  background: var(--border);
  margin: 18px 0;
}

.price-desc {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: 24px;
}

.price-features {
  list-style: none;
  margin-bottom: 0;
  padding-bottom: 28px;
  display: flex;
  flex-direction: column;
  gap: 9px;
  flex-grow: 1;
}

.price-features li {
  font-size: 13.5px;
  color: var(--text);
  line-height: 1.5;
  padding-left: 20px;
  position: relative;
}

.price-features li::before {
  content: '✓';
  color: var(--success);
  font-weight: 700;
  position: absolute;
  left: 0;
  top: 0;
}

.price-card-footer {
  margin-top: auto;
}

.price-card .btn {
  width: 100%;
  justify-content: center;
}

.pricing-note {
  text-align: center;
  margin-top: 28px;
  font-size: 13.5px;
  color: var(--subtle);
}

/* =========================
   FINAL CTA
========================= */

.cta-section {
  background: linear-gradient(135deg, var(--dark) 0%, #162040 100%);
  padding: 130px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  top: -100px;
  right: -100px;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(29,78,216,0.12) 0%, transparent 70%);
  pointer-events: none;
}

.cta-section::after {
  content: '';
  position: absolute;
  bottom: -80px;
  left: -80px;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(245,158,11,0.08) 0%, transparent 70%);
  pointer-events: none;
}

.cta-inner {
  position: relative;
  z-index: 1;
  max-width: 680px;
  margin: 0 auto;
}

.cta-section h2 {
  color: white;
  margin-bottom: 20px;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
}

.cta-section p {
  color: #94a3b8;
  font-size: 1.05rem;
  margin-bottom: 38px;
}

.cta-section .btn-primary {
  background: white;
  color: var(--dark);
  box-shadow: 0 8px 30px rgba(255,255,255,0.12);
}

.cta-section .btn-primary:hover {
  background: #f0f5ff;
  box-shadow: 0 14px 40px rgba(255,255,255,0.18);
}

.cta-trust {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 32px;
}

.cta-trust-item {
  font-size: 13px;
  color: #64748b;
  display: flex;
  align-items: center;
  gap: 6px;
}

/* =========================
   FOOTER
========================= */

.footer {
  background: var(--dark);
  border-top: 1px solid rgba(255,255,255,0.06);
  padding: 48px 0;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 20px;
}

.footer-logo {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 800;
  color: white;
}

.footer-logo span {
  color: var(--primary);
}

.footer-links {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}

.footer-links a {
  font-size: 13.5px;
  color: #94a3b8;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: white;
}

.footer-copy {
  font-size: 13px;
  color: #64748b;
  text-align: center;
}

/* =========================
   RESPONSIVE
========================= */

@media (max-width: 1024px) {
  .pricing-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .price-card.featured {
    transform: none;
    padding-top: 44px;
  }
  .price-card.featured:hover {
    transform: translateY(-4px);
  }
}

@media (max-width: 860px) {
  .container { padding: 0 24px; }
  .section { padding: 80px 0; }
  .hero { padding: 90px 0 80px; }
  .steps-grid,
  .features-grid { grid-template-columns: 1fr; }
  .steps-grid::before { display: none; }
  .portfolio-grid { grid-template-columns: 1fr; }
  .nav { display: none; }
  .menu-toggle { display: flex; }
  .trust-bar-inner { justify-content: flex-start; }
}

@media (max-width: 600px) {
  .pricing-grid { grid-template-columns: 1fr; }
  .price-card.featured {
    transform: none;
    padding-top: 44px;
  }
  .hero-buttons { flex-direction: column; align-items: center; }
  .footer-top { flex-direction: column; align-items: flex-start; }
  .footer-right { align-items: flex-start; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .cta-section { padding: 90px 0; }
}

/* =========================
   ANIMATIONS
========================= */

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

.hero-inner > * {
  animation: fadeUp 0.6s ease both;
}

.hero-inner > *:nth-child(1) { animation-delay: 0.05s; }
.hero-inner > *:nth-child(2) { animation-delay: 0.15s; }
.hero-inner > *:nth-child(3) { animation-delay: 0.22s; }
.hero-inner > *:nth-child(4) { animation-delay: 0.28s; }
.hero-inner > *:nth-child(5) { animation-delay: 0.34s; }
/* =========================
   PREVIEW PAGE — INTRO BANNER
========================= */

.preview-intro {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: 20px 0;
  text-align: center;
}

.preview-intro-inner {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.preview-intro-left {
  display: flex;
  align-items: baseline;
  gap: 14px;
  flex-wrap: wrap;
}

.preview-intro .label {
  margin-bottom: 0;
}

.preview-intro h1 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--dark);
  margin: 0;
}

.preview-intro h1 em {
  font-style: normal;
  color: var(--primary);
}

.preview-intro p {
  display: none;
}

.preview-intro-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.preview-trust-item {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 12.5px;
  font-size: 13px;
  font-weight: 500;
  color: var(--success);
}

/* =========================
   PREVIEW PAGE — ONBOARDING WRAP
========================= */

.onboarding-wrap {
  max-width: 700px;
  margin: 0 auto;
  padding: 2.5rem 1.5rem 5rem;
}

.onboarding-header {
  margin-bottom: 2.75rem;
}

/* =========================
   PREVIEW PAGE — PROGRESS BAR
========================= */

.progress-bar {
  display: flex;
  align-items: flex-start;
  gap: 0;
}

.p-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  flex: 1;
  position: relative;
}

.p-dot {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1.5px solid var(--border-strong);
  background: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 700;
  color: var(--subtle);
  transition: all 0.25s ease;
  position: relative;
  z-index: 1;
  flex-shrink: 0;
}

.p-dot.active {
  background: var(--primary);
  color: white;
  border-color: transparent;
  box-shadow: 0 0 0 4px var(--primary-light);
}

.p-dot.done {
  background: #ecfdf5;
  color: #065f46;
  border-color: transparent;
}

.p-dot.done::after {
  content: '';
  display: block;
  width: 10px;
  height: 6px;
  border-left: 2px solid var(--success);
  border-bottom: 2px solid var(--success);
  transform: rotate(-45deg) translate(1px, -1px);
}

.p-dot.done span { display: none; }

.p-label {
  font-size: 11px;
  font-weight: 500;
  color: var(--subtle);
  text-align: center;
  white-space: nowrap;
  letter-spacing: 0.02em;
}

.p-label.active {
  color: var(--primary);
  font-weight: 600;
}

.p-label.done {
  color: var(--success);
}

.p-line {
  flex: 1;
  height: 1.5px;
  background: var(--border);
  margin-top: 15px;
  transition: background 0.4s ease;
}

.p-line.done {
  background: var(--success);
  opacity: 0.5;
}

/* =========================
   PREVIEW PAGE — PAGES
========================= */

.page {
  display: none;
  animation: fadeUp 0.25s ease both;
}

.page.active {
  display: block;
}

.page-title {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.5px;
  color: var(--dark);
  margin-bottom: 5px;
  line-height: 1.2;
}

.page-sub {
  font-size: 14.5px;
  color: var(--muted);
  margin-bottom: 1.75rem;
  font-weight: 400;
}

/* =========================
   PREVIEW PAGE — FORM CARDS
========================= */

.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem 1.6rem;
  margin-bottom: 1rem;
  box-shadow: var(--card-shadow);
  transition: border-color 0.2s ease;
}

.card:last-of-type {
  margin-bottom: 0;
}

.card:focus-within {
  border-color: var(--border-strong);
}

.group-label {
  font-family: var(--font-display);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--subtle);
  margin-bottom: 1rem;
}

/* =========================
   PREVIEW PAGE — FIELDS
========================= */

.field {
  margin-bottom: 1.1rem;
}

.field:last-child {
  margin-bottom: 0;
}

.field label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 6px;
  letter-spacing: -0.01em;
}

.field .hint {
  font-size: 12px;
  color: var(--subtle);
  margin-top: -3px;
  margin-bottom: 8px;
}

.field input[type="text"],
.field input[type="email"],
.field input[type="tel"],
.field input[type="url"],
.field select,
.field textarea {
  width: 100%;
  padding: 10px 13px;
  font-size: 14px;
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: 8px;
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  appearance: none;
  -webkit-appearance: none;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(29,78,216,0.1);
  background: var(--white);
}

.field input::placeholder,
.field textarea::placeholder {
  color: var(--subtle);
  font-weight: 400;
}

.field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='M2 4l4 4 4-4' stroke='%2394a3b8' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 13px center;
  background-color: var(--bg);
  padding-right: 34px;
  cursor: pointer;
}

.field select:focus {
  background-color: var(--white);
}

.field textarea {
  resize: vertical;
  min-height: 88px;
  line-height: 1.65;
}

.row2 {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 14px;
}

@media (max-width: 480px) {
  .row2 { grid-template-columns: 1fr; }
}

/* =========================
   PREVIEW PAGE — CHIPS
========================= */

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 6px;
}

.chip {
  padding: 7px 16px;
  border-radius: 999px;
  border: 1.5px solid var(--border);
  font-size: 13px;
  font-family: var(--font-body);
  font-weight: 500;
  color: var(--muted);
  cursor: pointer;
  background: var(--bg);
  transition: all 0.14s ease;
  user-select: none;
  line-height: 1.4;
}

.chip:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--primary-light);
}

.chip.on {
  background: var(--primary-light);
  color: var(--primary);
  border-color: var(--primary);
  font-weight: 600;
}

/* =========================
   PREVIEW PAGE — TYPOGRAPHY CHIPS
========================= */

/* Base overrides — each chip renders in its own voice */
.chip--typo-sans {
  font-family: 'DM Sans', sans-serif;
  font-weight: 500;
  letter-spacing: -0.01em;
  font-size: 13px;
}

.chip--typo-serif {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 400;
  font-style: italic;
  letter-spacing: 0.01em;
  font-size: 13.5px;
}

.chip--typo-display {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  letter-spacing: -0.04em;
  font-size: 14px;
  text-transform: uppercase;
}

.chip--typo-rounded {
  font-family: ui-rounded, 'Hiragino Maru Gothic ProN', Quicksand, 'DM Sans', sans-serif;
  font-weight: 600;
  letter-spacing: 0.02em;
  font-size: 13px;
}

.chip--typo-script {
  font-family: 'Caveat', cursive;
  font-weight: 600;
  font-size: 16px;
  letter-spacing: 0.01em;
  padding-top: 5px;
  padding-bottom: 5px;
}

.chip--typo-neutral {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 12.5px;
  color: var(--subtle);
  letter-spacing: 0;
}

.typo-other-field {
  margin-top: 1rem;
  margin-bottom: 0;
}

.typo-other-field label {
  font-size: 12px;
  font-weight: 500;
  color: var(--subtle);
  margin-bottom: 6px;
}

/* =========================
   PREVIEW PAGE — COLOUR SWATCHES
========================= */

.swatch-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-top: 10px;
}

.swatch-hint {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 2px;
}

.sw {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  cursor: pointer;
  border: 2.5px solid transparent;
  transition: transform 0.14s ease, box-shadow 0.14s ease;
  flex-shrink: 0;
  outline: 2px solid transparent;
  outline-offset: 2px;
}

.sw:hover {
  transform: scale(1.12);
}

.sw.on {
  outline-color: var(--primary);
  transform: scale(1.12);
  box-shadow: 0 0 0 2px white inset;
}

.sw-custom {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
}

.sw-custom input[type="color"] {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1.5px solid var(--border);
  cursor: pointer;
  padding: 0;
  background: none;
  flex-shrink: 0;
}

/* =========================
   PREVIEW PAGE — STEP NAVIGATION
   (renamed from .nav to avoid clash with header .nav)
========================= */

.step-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}

.step-nav .btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 11px 26px;
  font-size: 14px;
  font-family: var(--font-body);
  font-weight: 600;
  border-radius: 8px;
  border: 1.5px solid var(--border-strong);
  background: var(--white);
  color: var(--text);
  cursor: pointer;
  transition: all 0.15s ease;
  text-decoration: none;
  letter-spacing: -0.01em;
}

.step-nav .btn:hover {
  background: var(--bg);
  border-color: var(--primary);
  color: var(--primary);
  transform: translateY(-1px);
}

.step-nav .btn:active {
  transform: scale(0.98);
}

.step-nav .btn.primary {
  background: var(--primary);
  color: white;
  border-color: transparent;
  box-shadow: 0 6px 20px rgba(29,78,216,0.22);
}

.step-nav .btn.primary:hover {
  background: var(--primary-dark);
  color: white;
  border-color: transparent;
  box-shadow: 0 10px 28px rgba(29,78,216,0.32);
  transform: translateY(-2px);
}

.step-nav .btn-ghost {
  background: none;
  border-color: transparent;
  color: var(--muted);
  padding-left: 4px;
  box-shadow: none;
}

.step-nav .btn-ghost:hover {
  background: none;
  border-color: transparent;
  color: var(--primary);
  transform: none;
}

.step-nav .btn.primary.submit {
  background: var(--accent);
  box-shadow: 0 6px 20px rgba(245,158,11,0.28);
}

.step-nav .btn.primary.submit:hover {
  background: #d97706;
  box-shadow: 0 10px 28px rgba(245,158,11,0.38);
}