/* ═══════════════════════════════════════════════
   BEANIE IL — MAIN STYLESHEET
   Warm artisanal-modern design language
   ═══════════════════════════════════════════════ */

/* ── CSS Variables ── */
:root {
  --espresso: #1E0F05;
  --caramel:  #C07940;
  --gold:     #E8A44A;
  --cream:    #F8F1E7;
  --foam:     #FDF8F2;
  --white:    #FFFFFF;
  --text-dark: #1E0F05;
  --text-mid:  #5C4033;
  --text-light: #8B6E5A;
  --border:   #E5D8CC;
  --radius:   12px;
  --radius-sm: 8px;
  --shadow:   0 4px 24px rgba(30, 15, 5, 0.10);
  --shadow-lg: 0 16px 48px rgba(30, 15, 5, 0.16);
  --font-head: 'Playfair Display', Georgia, serif;
  --font-body: 'DM Sans', system-ui, sans-serif;
  --transition: 0.2s ease;
  --progress-h: 60px;
  --tab-h: 44px;
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background: var(--foam);
  color: var(--text-dark);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; display: block; }
a { color: var(--caramel); text-decoration: none; }
a:hover { text-decoration: underline; }
button { cursor: pointer; font-family: var(--font-body); }

/* ── Typography ── */
h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.2; }
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); }
h3 { font-size: 1.2rem; font-weight: 600; }
em { font-style: italic; }
p { max-width: 65ch; }

/* ── Containers ── */
.container { max-width: 1100px; margin: 0 auto; padding: 0 24px; }
.container-narrow { max-width: 720px; margin: 0 auto; padding: 0 24px; }
.section-pad { padding: 80px 0; }

/* ── Section Labels ── */
.section-title { font-family: var(--font-head); margin-bottom: 12px; }
.section-title.light { color: var(--cream); }
.section-sub { color: var(--text-mid); font-size: 1.05rem; margin: 0 auto 48px; }
.section-sub.light { color: rgba(248,241,231,0.8); }

/* ═══════════════════════════════════════════════
   PROGRESS BAR
   ═══════════════════════════════════════════════ */
.progress-bar-wrap {
  height: var(--progress-h);
  background: var(--white);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  position: sticky;
  top: 0;
  z-index: 100;
}
.progress-bar-inner {
  display: flex;
  align-items: center;
  gap: 0;
}
.step {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--text-light);
}
.step.active { color: var(--caramel); font-weight: 600; }
.step.done { color: var(--text-mid); }
.step-circle {
  width: 28px; height: 28px;
  border-radius: 50%;
  border: 2px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.8rem;
  font-weight: 600;
  background: var(--foam);
}
.step.active .step-circle { border-color: var(--caramel); background: var(--caramel); color: #fff; }
.step.done .step-circle { border-color: var(--text-mid); background: var(--text-mid); color: #fff; }
.step-connector {
  width: 48px; height: 2px;
  background: var(--border);
  margin: 0 8px;
}
.step-connector.done { background: var(--caramel); }
.step-label { white-space: nowrap; }

/* ═══════════════════════════════════════════════
   BUTTONS
   ═══════════════════════════════════════════════ */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 12px 28px;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  border: none;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition);
  cursor: pointer;
  white-space: nowrap;
  text-decoration: none;
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 6px 20px rgba(30,15,5,0.15); }
.btn:active { transform: translateY(0); }

.btn-primary { background: var(--caramel); color: #fff; }
.btn-primary:hover { background: #a8693a; }

.btn-gold { background: var(--gold); color: var(--espresso); }
.btn-gold:hover { background: #d6922e; }

.btn-outline {
  background: transparent;
  color: var(--caramel);
  border: 2px solid var(--caramel);
}
.btn-outline:hover { background: var(--caramel); color: #fff; }

.btn-sm { padding: 8px 18px; font-size: 0.85rem; }
.btn-lg { padding: 16px 36px; font-size: 1rem; }
.btn-full { width: 100%; }

/* ═══════════════════════════════════════════════
   NAVBAR
   ═══════════════════════════════════════════════ */
.navbar {
  position: sticky; top: 0; z-index: 200;
  background: rgba(253, 248, 242, 0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
  height: 64px;
  display: flex; align-items: center;
}
.nav-inner {
  max-width: 1100px; margin: 0 auto; padding: 0 24px;
  display: flex; align-items: center; justify-content: space-between;
  width: 100%;
}
.nav-logo {
  display: flex; align-items: center; gap: 8px;
  font-family: var(--font-head);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--espresso);
  text-decoration: none;
}
.logo-bean { font-size: 1.4rem; }
.logo-img { height: 56px; width: auto; display: block; object-fit: contain; mix-blend-mode: multiply; }

/* ═══════════════════════════════════════════════
   HERO
   ═══════════════════════════════════════════════ */
.hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  max-width: 1100px;
  margin: 0 auto;
  padding: 80px 24px 96px;
}
.hero-eyebrow {
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--caramel);
  margin-bottom: 12px;
}
.hero-headline {
  font-family: var(--font-head);
  font-size: clamp(2.6rem, 5vw, 4rem);
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 20px;
  color: var(--espresso);
}
.hero-headline em { color: var(--caramel); }
.hero-sub {
  font-size: 1.1rem;
  color: var(--text-mid);
  margin-bottom: 36px;
}
.hero-ctas { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.hero-link { font-weight: 500; color: var(--text-mid); font-size: 0.95rem; }
.hero-link:hover { color: var(--caramel); }

/* Phone mockup (hero + preview) */
.phone-float { display: flex; justify-content: center; }
.phone-shell {
  width: 240px;
  background: var(--espresso);
  border-radius: 28px;
  padding: 12px 8px;
  box-shadow: var(--shadow-lg);
  animation: phoneFloat 4s ease-in-out infinite;
}
.phone-screen {
  background: #f2f2f2;
  border-radius: 20px;
  overflow: hidden;
  min-height: 300px;
  display: flex; align-items: center; justify-content: center;
  padding: 8px;
}

@keyframes phoneFloat {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-12px); }
}

/* Hero phone screenshot */
.hero-phone-img {
  display: block;
  margin: 0 auto;
  height: 520px;
  width: auto;
  border-radius: 36px;
  box-shadow: 0 32px 80px rgba(30,15,5,0.28);
  animation: phoneFloat 4s ease-in-out infinite;
}

/* ═══════════════════════════════════════════════
   SOCIAL PROOF BAR
   ═══════════════════════════════════════════════ */
.social-proof-bar {
  background: var(--espresso);
  color: rgba(248,241,231,0.7);
  padding: 14px 24px;
  display: flex; align-items: center; justify-content: center;
  gap: 24px;
  font-size: 0.85rem;
  flex-wrap: wrap;
}
.proof-label { color: var(--gold); font-weight: 600; white-space: nowrap; }
.proof-names { letter-spacing: 0.03em; }

/* ═══════════════════════════════════════════════
   HOW IT WORKS
   ═══════════════════════════════════════════════ */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: 48px;
}
.how-step {
  text-align: center;
  padding: 32px 20px;
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid var(--border);
}
.how-step-icon { margin-bottom: 20px; }
.how-step-icon svg { width: 40px; height: 40px; stroke: var(--caramel); stroke-width: 1.5; }
.how-step h3 { margin-bottom: 10px; font-size: 1.05rem; }
.how-step p { font-size: 0.93rem; color: var(--text-mid); margin: 0 auto; text-align: left; }

/* ═══════════════════════════════════════════════
   VALUE PROPOSITIONS
   ═══════════════════════════════════════════════ */
.bg-cream { background: var(--cream); }
.bg-espresso { background: var(--espresso); }
.value-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 48px;
}
.value-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 28px 24px;
  border: 1px solid var(--border);
  transition: transform var(--transition), box-shadow var(--transition);
}
.value-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.value-card h4 { font-size: 1rem; margin-bottom: 8px; }
.value-card p { font-size: 0.9rem; color: var(--text-mid); margin: 0; }

/* ═══════════════════════════════════════════════
   TESTIMONIALS
   ═══════════════════════════════════════════════ */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 48px;
}
.testimonial-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 28px 24px;
  border: 1px solid var(--border);
}
.testimonial-text {
  font-size: 0.95rem;
  color: var(--text-mid);
  margin-bottom: 20px;
  font-style: italic;
  max-width: none;
}
.testimonial-author {
  display: flex; align-items: center; gap: 12px;
}
.testimonial-avatar {
  width: 40px; height: 40px;
  background: var(--caramel);
  color: #fff;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700;
  flex-shrink: 0;
}
.testimonial-author strong { display: block; font-size: 0.9rem; }
.testimonial-author span { font-size: 0.8rem; color: var(--text-light); }

/* ═══════════════════════════════════════════════
   PRICING
   ═══════════════════════════════════════════════ */
.pricing { text-align: center; }
.pricing-card {
  display: inline-block;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(248,241,231,0.2);
  border-radius: 20px;
  padding: 48px 56px;
  margin-top: 48px;
  position: relative;
  max-width: 440px;
  width: 100%;
}
.pricing-badge {
  position: absolute;
  top: -14px; left: 50%;
  transform: translateX(-50%);
  background: var(--gold);
  color: var(--espresso);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 16px;
  border-radius: 20px;
  white-space: nowrap;
}
.pricing-amount {
  display: flex; align-items: flex-start; justify-content: center;
  gap: 4px;
  margin-bottom: 4px;
  color: var(--cream);
}
.pricing-currency { font-size: 1.6rem; margin-top: 12px; }
.pricing-price { font-family: var(--font-head); font-size: 5rem; font-weight: 700; line-height: 1; }
.pricing-period { font-size: 1.1rem; margin-top: 24px; color: rgba(248,241,231,0.7); }
.pricing-original { font-size: 0.85rem; color: rgba(248,241,231,0.5); margin-bottom: 28px; }
.pricing-features {
  list-style: none;
  text-align: left;
  margin-bottom: 32px;
  display: flex; flex-direction: column; gap: 10px;
}
.pricing-features li { font-size: 0.9rem; color: rgba(248,241,231,0.85); display: flex; align-items: center; gap: 8px; }
.pricing-check svg { width: 16px; height: 16px; flex-shrink: 0; stroke: var(--gold); stroke-width: 2.5; }

/* ═══════════════════════════════════════════════
   FAQ
   ═══════════════════════════════════════════════ */
.faq-list { margin-top: 40px; display: flex; flex-direction: column; gap: 0; }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-question {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  padding: 20px 0;
  font-size: 1rem;
  font-weight: 600;
  color: var(--espresso);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  cursor: pointer;
  transition: color var(--transition);
}
.faq-question:hover { color: var(--caramel); }
.faq-chevron {
  transition: transform 0.25s ease;
  flex-shrink: 0;
  color: var(--text-light);
}
.faq-chevron svg { width: 16px; height: 16px; display: block; }
.faq-item.open .faq-chevron { transform: rotate(180deg); }
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.2s ease;
}
.faq-item.open .faq-answer {
  max-height: 400px;
  padding-bottom: 20px;
}
.faq-answer p { font-size: 0.95rem; color: var(--text-mid); }

/* ═══════════════════════════════════════════════
   CONTACT / LEAD FORM
   ═══════════════════════════════════════════════ */
.contact { background: var(--white); }
.lead-form { margin-top: 40px; }
.form-row { display: flex; gap: 20px; margin-bottom: 20px; }
.form-row-2 > * { flex: 1; min-width: 0; }
.form-group { display: flex; flex-direction: column; gap: 6px; margin-bottom: 20px; }
.form-group label { font-size: 0.9rem; font-weight: 600; color: var(--espresso); }
.req { color: var(--caramel); }
.form-group input,
.form-group select,
.form-group textarea {
  padding: 11px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 0.95rem;
  background: var(--foam);
  color: var(--espresso);
  transition: border-color var(--transition);
  width: 100%;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--caramel);
  background: var(--white);
}
.form-group input.input-error,
.form-group select.input-error { border-color: #D9534F; }
.field-error { font-size: 0.8rem; color: #D9534F; min-height: 1em; }
.field-hint { font-size: 0.8rem; color: var(--text-light); }
.form-actions { margin-top: 8px; }
.form-success {
  margin-top: 16px;
  background: #EBF7EE;
  border: 1px solid #A3D4AE;
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  display: flex; align-items: center; gap: 10px;
  font-size: 0.95rem;
  color: #2D6A4F;
}
.form-success[hidden] { display: none; }
.success-icon { font-size: 1.2rem; color: #52B788; }
.form-error-global {
  margin-top: 16px;
  background: #FEE;
  border: 1px solid #F5C2C1;
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  color: #842029;
}

/* ═══════════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════════ */
.footer {
  background: var(--espresso);
  padding: 28px 24px;
}
.footer-inner {
  max-width: 1100px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 12px;
}
.footer-logo-img { height: 36px; width: auto; display: block; filter: brightness(0) invert(1); opacity: 0.9; }
.footer-copy { font-size: 0.8rem; color: rgba(248,241,231,0.5); }
.footer-contact { font-size: 0.85rem; color: var(--gold); }
.footer-contact:hover { color: var(--cream); }

/* ═══════════════════════════════════════════════
   FADE-UP ANIMATION
   ═══════════════════════════════════════════════ */
.fade-up {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ═══════════════════════════════════════════════
   CARD BUILDER STUDIO
   ═══════════════════════════════════════════════ */
.studio {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: start;
}

/* Left panel — flows with the page; page scrolls naturally */
.studio-left {
  display: flex;
  flex-direction: column;
  min-height: calc(100vh - var(--progress-h));
  background: var(--white);
  border-right: 1px solid var(--border);
}
.studio-header {
  padding: 14px 24px;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 20px;
}
.studio-logo { flex-shrink: 0; }
.studio-header-text { flex: 1; min-width: 0; text-align: center; }
.studio-form-body {
  flex: 1;
  padding: 24px 28px 0;
}
.studio-title {
  font-family: var(--font-head);
  font-size: 1.6rem;
  margin-bottom: 0;
}
.studio-subtitle {
  font-size: 0.82rem;
  color: var(--text-mid);
  margin-bottom: 0;
}
.studio-footer {
  padding: 16px 28px 20px;
  border-top: 1px solid var(--border);
  flex-shrink: 0;
  background: var(--white);
}
.studio-error-global {
  background: #FEE;
  border: 1px solid #F5C2C1;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  color: #842029;
  margin-bottom: 12px;
}

/* Form sections within studio */
.form-section {
  margin-bottom: 32px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--border);
}
.form-section:last-child { border-bottom: none; }
.form-section-title {
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-light);
  margin-bottom: 4px;
}
.section-desc {
  font-size: 0.85rem;
  color: var(--text-mid);
  margin-bottom: 16px;
  max-width: none;
}
.section-desc-lg {
  font-size: 1rem;
  color: var(--text-dark);
  font-weight: 500;
}
.label-with-hint {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.label-hint {
  font-size: 0.78rem;
  color: var(--text-light);
  font-weight: 400;
  font-style: italic;
}
.optional-tag {
  font-size: 0.7rem;
  color: var(--text-light);
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0;
  margin-left: 4px;
}

/* Char counter */
.input-with-counter { position: relative; }
.input-with-counter input { padding-right: 52px; }
.char-counter {
  position: absolute;
  right: 12px; top: 50%;
  transform: translateY(-50%);
  font-size: 0.75rem;
  color: var(--text-light);
  pointer-events: none;
}

/* Color inputs */
.color-inputs {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}
input[type="color"] {
  width: 48px; height: 48px;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  padding: 2px;
  background: none;
}
.hex-input-wrap {
  display: flex; align-items: center;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--foam);
}
.hex-prefix {
  padding: 0 8px;
  font-size: 0.9rem;
  color: var(--text-light);
  background: var(--cream);
  border-right: 1px solid var(--border);
  height: 40px;
  display: flex; align-items: center;
}
.hex-input-wrap input {
  border: none;
  background: transparent;
  width: 80px;
  padding: 8px 10px;
  font-family: monospace;
  font-size: 0.9rem;
  text-transform: uppercase;
}
.hex-input-wrap input:focus { outline: none; }

/* Swatches */
.swatch-row {
  display: flex; gap: 8px; flex-wrap: wrap;
  margin-bottom: 12px;
}
.swatch {
  width: 32px; height: 32px;
  border-radius: 50%;
  cursor: pointer;
  border: 2px solid transparent;
  position: relative;
  transition: transform var(--transition), border-color var(--transition);
  display: flex; align-items: center; justify-content: center;
}
.swatch:hover { transform: scale(1.15); }
.swatch.active { border-color: var(--gold); box-shadow: 0 0 0 2px var(--white), 0 0 0 4px var(--caramel); }
.swatch-check {
  font-size: 0.65rem;
  color: #fff;
  position: absolute;
  text-shadow: 0 1px 2px rgba(0,0,0,0.4);
}

/* Color preview strip */
.color-preview-strip {
  height: 36px;
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  font-family: monospace;
  font-size: 0.8rem;
  font-weight: 600;
  transition: background var(--transition);
}
.color-preview-label { letter-spacing: 0.08em; }

/* Upload drop zones */
.drop-zone {
  border: 2px dashed var(--border);
  border-radius: var(--radius);
  padding: 24px;
  text-align: center;
  cursor: pointer;
  transition: border-color var(--transition), background var(--transition);
  background: var(--foam);
}
.drop-zone:hover, .drop-zone.drag-over {
  border-color: var(--caramel);
  background: var(--cream);
}
.drop-zone p { font-size: 0.9rem; color: var(--text-mid); margin: 0 auto; }
.drop-icon-svg { margin-bottom: 10px; color: var(--text-light); }
.drop-icon-svg svg { width: 32px; height: 32px; display: block; stroke-width: 1.5; }
.drop-hint { font-size: 0.78rem; color: var(--text-light); margin-top: 4px; }
.inline-link {
  background: none; border: none; padding: 0;
  color: var(--caramel); font-size: inherit;
  font-family: inherit;
  text-decoration: underline;
  cursor: pointer;
}
.drop-zone-preview {
  display: flex; align-items: center; gap: 16px;
}
.upload-thumb-circle {
  width: 56px; height: 56px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--border);
}
.upload-thumb-rect {
  width: 100px; height: 56px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  border: 2px solid var(--border);
}
.upload-meta { text-align: left; }
.upload-filename { font-size: 0.85rem; display: block; margin-bottom: 4px; color: var(--espresso); }

/* Right panel — sticky so the preview stays in view as the form scrolls */
.studio-right {
  background: var(--cream);
  display: flex;
  align-items: center;
  justify-content: center;
  position: sticky;
  top: var(--progress-h);
  height: calc(100vh - var(--progress-h));
  overflow: hidden;
}
.preview-area {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px;
  width: 100%;
  height: 100%;
}

/* Preview phone — realistic flagship proportions (9:19.5 ≈ iPhone 15 Pro / Galaxy S24) */
.preview-phone.phone-shell {
  aspect-ratio: 9 / 19.5;
  width: min(300px, 85%);
  max-height: calc(100vh - var(--progress-h) - 60px);
  height: auto;
  animation: none;
}
.preview-phone .phone-screen {
  height: calc(100% - 24px); /* phone shell padding: 12px top + 12px bottom */
  min-height: unset;
  padding: 6px;
  align-items: stretch;
}

/* Wallet card preview */
.wallet-card {
  width: 100%;
  height: 100%;
  border-radius: 16px;
  overflow: hidden;
  transition: background-color 0.3s ease, color 0.3s ease;
  background: var(--caramel);
  color: #fff;
  display: flex;
  flex-direction: column;
}
.card-header-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 18px 18px 8px;
}
.card-logo-circle {
  width: 42px; height: 42px;
  border-radius: 50%;
  background: rgba(255,255,255,0.25);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
  background-size: cover;
  background-position: center;
  overflow: hidden;
}
.card-logo-circle.has-logo { font-size: 0; }
.card-biz-name {
  font-family: var(--font-head);
  font-size: 1rem;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.card-tagline-area { padding: 2px 18px 14px; }
.card-tagline {
  font-size: 1.45rem;
  font-weight: 600;
  line-height: 1.3;
  opacity: 0.95;
}
.card-counters {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 18px 18px;
}
.card-counter { display: flex; flex-direction: column; gap: 2px; }
.counter-label {
  font-size: 0.68rem;
  opacity: 0.7;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.counter-value { font-size: 1.3rem; font-weight: 700; line-height: 1; }
.card-counter-right { align-items: flex-end; }
.card-qr-area {
  padding: 0 18px 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}
.card-qr-box {
  background: #fff;
  border-radius: 10px;
  padding: 12px;
  width: 180px; height: 180px;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 2px 12px rgba(0,0,0,0.18);
}
.card-qr-svg { width: 100%; height: 100%; color: #111; }
.card-qr-id {
  font-size: 0.54rem;
  font-family: monospace;
  opacity: 0.65;
  letter-spacing: 0.02em;
}
.card-hero-strip {
  height: 180px;
  background: rgba(255,255,255,0.12);
  flex-shrink: 0;
  margin-top: auto;
  background-size: cover;
  background-position: center;
  transition: background-image 0.2s;
}
.card-hero-strip.has-image { background-color: transparent; }

/* Wallet button */
.wallet-btn-row { display: flex; justify-content: center; }
.add-to-wallet-btn {
  display: flex; align-items: center; gap: 8px;
  background: #000;
  color: #fff;
  padding: 10px 20px;
  border-radius: 8px;
  font-size: 0.8rem;
  font-weight: 500;
  opacity: 0.85;
}

/* Hint cards */
.hint-cards { display: flex; flex-direction: column; gap: 8px; width: 100%; max-width: 280px; }
.hint-card {
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  display: flex; align-items: center; gap: 8px;
  font-size: 0.78rem;
  color: rgba(255,255,255,0.7);
}
.hint-icon { font-size: 1rem; flex-shrink: 0; }

/* ═══════════════════════════════════════════════
   MODAL
   ═══════════════════════════════════════════════ */
.modal-overlay[hidden] { display: none; }
.modal-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.55);
  z-index: 500;
  display: flex; align-items: center; justify-content: center;
  padding: 24px;
}
.modal-box {
  background: var(--white);
  border-radius: 16px;
  padding: 36px 32px;
  max-width: 480px;
  width: 100%;
  box-shadow: var(--shadow-lg);
}
.modal-box h2 { font-size: 1.4rem; margin-bottom: 20px; }
.modal-summary { display: flex; flex-direction: column; gap: 12px; margin-bottom: 28px; }
.summary-row {
  display: flex; justify-content: space-between; gap: 16px;
  font-size: 0.9rem;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}
.summary-label { font-weight: 600; color: var(--text-mid); white-space: nowrap; }
.summary-color { display: flex; align-items: center; gap: 8px; }
.summary-color-swatch {
  width: 18px; height: 18px;
  border-radius: 4px;
  border: 1px solid var(--border);
  display: inline-block;
}
.modal-actions { display: flex; gap: 12px; justify-content: flex-end; }
.modal-error {
  margin-top: 12px;
  background: #FEE;
  border: 1px solid #F5C2C1;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  color: #842029;
}

/* ═══════════════════════════════════════════════
   DONE PAGE
   ═══════════════════════════════════════════════ */
.done-page {
  min-height: calc(100vh - var(--progress-h));
  display: flex; align-items: center; justify-content: center;
  padding: 48px 24px;
  background: var(--foam);
}
.done-card {
  background: var(--white);
  border-radius: 20px;
  padding: 48px 40px;
  max-width: 560px;
  width: 100%;
  text-align: center;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}
.done-icon {
  width: 72px; height: 72px;
  background: #EBF7EE;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 2rem;
  color: #52B788;
  margin: 0 auto 20px;
  border: 3px solid #A3D4AE;
}
.done-title { margin-bottom: 8px; }
.done-sub { color: var(--text-mid); margin: 0 auto 36px; }
.done-steps {
  text-align: left;
  background: var(--foam);
  border-radius: var(--radius);
  padding: 24px 28px;
  margin-bottom: 28px;
}
.done-steps h3 { font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.07em; color: var(--text-light); margin-bottom: 16px; }
.done-list {
  list-style: none;
  counter-reset: steps;
  display: flex; flex-direction: column; gap: 16px;
}
.done-list li {
  counter-increment: steps;
  display: flex; gap: 12px;
  align-items: flex-start;
  font-size: 0.9rem;
}
.done-list li::before {
  content: counter(steps);
  min-width: 24px; height: 24px;
  background: var(--caramel);
  color: #fff;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 1px;
}
.done-list li strong { display: block; margin-bottom: 2px; }
.done-list li span { color: var(--text-mid); display: block; }
.done-contact { margin-bottom: 28px; font-size: 0.9rem; color: var(--text-mid); }
.done-contact a { color: var(--caramel); }
.done-share { text-align: center; margin-bottom: 24px; padding: 20px; background: var(--foam); border-radius: var(--radius); }
.done-share-label { font-size: 0.9rem; color: var(--text-mid); margin-bottom: 12px; }
.done-share-btn { margin: 0 auto; }
.done-back-btn { margin: 0 auto; display: block; width: fit-content; }
.btn-ghost { background: transparent; color: var(--text-mid); font-size: 0.85rem; padding: 8px 0; border: none; text-decoration: none; display: inline-flex; align-items: center; cursor: pointer; }
.btn-ghost:hover { color: var(--caramel); }

/* ═══════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════ */
/* Mobile tab bar — hidden on desktop */
.mobile-tabs { display: none; }
.mobile-tab {
  flex: 1;
  padding: 0 16px;
  height: var(--tab-h);
  background: none;
  border: none;
  border-bottom: 3px solid transparent;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-light);
  cursor: pointer;
  transition: color var(--transition), border-color var(--transition);
}
.mobile-tab.active { color: var(--caramel); border-bottom-color: var(--caramel); }

@media (max-width: 960px) {
  .hero { grid-template-columns: 1fr; text-align: center; }
  .hero-visual { display: flex; justify-content: center; }
  .hero-phone-img { height: 340px; border-radius: 24px; }
  .hero-ctas { justify-content: center; }
  .hero-sub { margin-left: auto; margin-right: auto; }
  .steps-grid, .value-grid, .testimonials-grid { grid-template-columns: 1fr; }

  /* Tab bar — sticky so it stays at top when form scrolls */
  .mobile-tabs {
    display: flex;
    background: var(--white);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: var(--progress-h);
    z-index: 50;
  }

  /* Studio: single column, natural height */
  .studio {
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  /* Design panel: natural height, page scrolls */
  .studio-left { min-height: calc(100vh - var(--progress-h) - var(--tab-h)); }
  .studio-left.tab-hidden { display: none; }

  /* Preview panel: hidden by default; when shown, fill viewport for the phone */
  .studio-right {
    display: none;
    position: static;   /* override desktop sticky */
    height: calc(100vh - var(--progress-h) - var(--tab-h));
  }
  .studio-right.tab-active { display: flex; }

  /* Preview phone on mobile: fit within the panel */
  .preview-phone.phone-shell {
    width: min(260px, 80%);
    max-height: calc(100vh - var(--progress-h) - var(--tab-h) - 40px);
  }

  .form-row-2 { flex-direction: column; }
}

@media (max-width: 640px) {
  .progress-bar-inner { gap: 4px; }
  .step-label { display: none; }
  .step-connector { width: 28px; }
  .nav-inner { padding: 0 16px; }
  .hero { padding: 48px 16px 64px; }
  .section-pad { padding: 56px 0; }
  .pricing-card { padding: 36px 24px; }
  .done-card { padding: 32px 20px; }
}

/* ══════════════════════════════════════════
   LEAD GATE OVERLAY  (/create)
   Full-screen overlay shown before the card builder is accessible.
══════════════════════════════════════════ */
.lead-gate {
  position: fixed;
  inset: 0;
  z-index: 300;
  background: rgba(30, 15, 5, 0.82);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  overflow-y: auto;
  transition: opacity 0.35s ease;
}
.lead-gate[hidden] { display: none; }
.lead-gate.dismissing {
  opacity: 0;
  pointer-events: none;
}
.lead-gate-card {
  background: #fff;
  border-radius: 20px;
  padding: 40px 40px 36px;
  width: 100%;
  max-width: 560px;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.45);
  position: relative;
}
.lead-gate-back {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.85rem;
  color: var(--text-muted);
  text-decoration: none;
  margin-bottom: 20px;
  transition: color 0.15s;
}
.lead-gate-back:hover { color: var(--espresso); }
button.lead-gate-back {
  border: none;
  background: none;
  cursor: pointer;
  font-family: inherit;
  line-height: 1;
  padding: 0;
}
.lead-gate-title {
  font-family: var(--font-serif);
  font-size: 1.65rem;
  font-weight: 700;
  color: var(--espresso);
  margin: 0 0 8px;
}
.lead-gate-subtitle {
  font-size: 0.92rem;
  color: var(--text-muted);
  margin: 0 0 24px;
  line-height: 1.55;
}
.lead-gate .form-group { margin-bottom: 18px; }
.lead-gate-actions { margin-top: 8px; }
.lead-gate-error {
  margin-top: 12px;
  padding: 12px 16px;
  background: #fef2f2;
  border: 1px solid #fecaca;
  border-radius: 8px;
  color: #b91c1c;
  font-size: 0.88rem;
  text-align: center;
}

@media (max-width: 640px) {
  .lead-gate-card { padding: 28px 20px 24px; border-radius: 14px; }
  .lead-gate-title { font-size: 1.35rem; }
}

/* ══════════════════════════════════════════
   RTL OVERRIDES  (Hebrew — dir="rtl")
══════════════════════════════════════════ */
[dir="rtl"] body {
  font-family: 'Heebo', system-ui, sans-serif;
}
[dir="rtl"] h1,
[dir="rtl"] h2,
[dir="rtl"] h3,
[dir="rtl"] h4 {
  font-family: 'Heebo', system-ui, sans-serif;
}

/* Navigation */
[dir="rtl"] .nav-inner         { flex-direction: row-reverse; }
[dir="rtl"] .footer-inner      { flex-direction: row-reverse; }

/* Hero */
[dir="rtl"] .hero-ctas         { flex-direction: row-reverse; }

/* How-it-works */
[dir="rtl"] .how-step p        { text-align: right; }

/* Value props / pricing */
[dir="rtl"] .pricing-features  { text-align: right; padding-right: 0; }
[dir="rtl"] .pricing-features li { text-align: right; }

/* FAQ */
[dir="rtl"] .faq-question {
  text-align: right;
  flex-direction: row-reverse;
}

/* Studio sidebar border flips */
[dir="rtl"] .studio-left {
  border-right: none;
  border-left: 1px solid var(--border);
}

/* Form helpers */
[dir="rtl"] .label-with-hint   { flex-direction: row-reverse; }
[dir="rtl"] .optional-tag      { margin-left: 0; margin-right: 4px; }

/* Char counter flips to the left side */
[dir="rtl"] .char-counter {
  right: auto;
  left: 12px;
}
[dir="rtl"] .input-with-counter input {
  padding-right: 14px;
  padding-left: 52px;
}

/* Hex colour prefix border flips */
[dir="rtl"] .hex-prefix {
  border-right: none;
  border-left: 1px solid var(--border);
}

/* Card preview counters */
[dir="rtl"] .card-counter-right { align-items: flex-start; }
[dir="rtl"] .card-counter:first-child { align-items: flex-end; }

/* Upload zone */
[dir="rtl"] .upload-meta       { text-align: right; }

/* Done page */
[dir="rtl"] .done-steps        { text-align: right; }
[dir="rtl"] .done-list li      { text-align: right; }
