/* ============================================================
   סטודיו השיווק — Page-specific styles
   ----------------------------------------------------------
   Layout-only styles. All visual tokens (colors, fonts, radii,
   shadows) come from the shared base.css. Never redeclare a
   token — always use var(--token).

   Mobile-first: base styles are mobile, @media (min-width)
   adds desktop enhancements.
   ============================================================ */

/* ===== Hidden attribute MUST always hide =====
   Some component classes (.modal, .tabs, .logo-actions, .btn) set
   display: flex / inline-flex, which has higher specificity than
   the user-agent [hidden] { display: none } rule and so leaks
   "hidden" elements on screen. This forces hidden to win. */
[hidden] { display: none !important; }

/* ===== Layout shell ===== */
main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 32px 16px 64px;
}

@media (min-width: 760px) {
  main { padding: 48px 24px 80px; }
}

/* ============================================================
   HOME VIEW — hero + stats + categories + product grid
   ============================================================ */

.home-view { animation: fade-in 0.35s ease-out; }

.hero {
  text-align: center;
  padding: 16px 0 32px;
}

.hero h1 {
  font-size: 1.75rem;
  font-weight: 800;
  margin: 0 0 12px;
  color: var(--text);
}

.hero-sub {
  font-size: 1rem;
  color: var(--muted);
  line-height: 1.6;
  max-width: 640px;
  margin: 0 auto 24px;
}

@media (min-width: 760px) {
  .hero { padding: 32px 0 40px; }
  .hero h1 { font-size: 2.4rem; }
  .hero-sub { font-size: 1.125rem; }
}

.hero-search {
  position: relative;
  max-width: 520px;
  margin: 0 auto;
}
.hero-search .input {
  padding-inline-end: 48px;
  font-size: 1rem;
}
.hero-search-icon {
  position: absolute;
  inset-inline-end: 18px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.125rem;
  pointer-events: none;
  color: var(--muted);
}

/* Stats row */
.stats {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin: 24px 0 32px;
}
.stat {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px 20px;
  min-width: 100px;
  text-align: center;
  box-shadow: var(--shadow);
}
.stat strong {
  display: block;
  font-size: 1.5rem;
  color: var(--primary);
  font-weight: 800;
}
.stat span {
  font-size: 0.875rem;
  color: var(--muted);
}

/* Category tabs (uses .tabs from base + spacing) */
.categories {
  margin: 0 0 28px;
}

/* Section header */
.section-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 32px 0 20px;
}
.section-header .section-icon {
  font-size: 2rem;
  flex-shrink: 0;
}
.section-header h2 {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text);
}
.section-header p {
  margin: 2px 0 0;
  color: var(--muted);
  font-size: 0.9375rem;
}

@media (min-width: 760px) {
  .section-header h2 { font-size: 1.5rem; }
}

/* Product card grid */
.card-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
@media (min-width: 600px) {
  .card-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .card-grid {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
  }
}

/* Product card — inherits .card pattern, adds icon + arrow */
.product-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  cursor: pointer;
  position: relative;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
  min-height: 180px;
}
.product-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.product-card:focus-visible {
  outline: 3px solid var(--primary);
  outline-offset: 3px;
}
.product-card-icon {
  font-size: 2.25rem;
  line-height: 1;
}
.product-card-badge {
  position: absolute;
  top: 12px;
  inset-inline-start: 12px;
  font-size: 0.75rem;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  background: var(--accent);
  color: var(--text);
  font-weight: 600;
}
.product-card h3 {
  margin: 0;
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--text);
}
.product-card p {
  margin: 0;
  font-size: 0.875rem;
  color: var(--muted);
  line-height: 1.5;
  flex-grow: 1;
}
.product-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8125rem;
  color: var(--muted);
  border-top: 1px solid var(--border);
  padding-top: 10px;
}
.product-card-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--primary);
  font-weight: 500;
}
.product-card-arrow {
  font-size: 1.125rem;
  color: var(--primary);
  font-weight: 700;
}

.empty-state {
  text-align: center;
  padding: 48px 16px;
  color: var(--muted);
  font-size: 0.9375rem;
}

/* ============================================================
   TOOL VIEW — configuration form + live preview
   ============================================================ */
.tool-view { animation: fade-in 0.35s ease-out; }

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.875rem;
  color: var(--muted);
  margin-bottom: 16px;
}
.breadcrumb a {
  color: var(--primary);
  text-decoration: none;
}
.breadcrumb a:hover { text-decoration: underline; }

.tool-header { margin-bottom: 24px; }
.tool-header h1 {
  margin: 0 0 6px;
  font-size: 1.625rem;
  font-weight: 800;
}
.tool-subtitle {
  margin: 0;
  color: var(--muted);
  font-size: 0.9375rem;
}
@media (min-width: 760px) {
  .tool-header h1 { font-size: 2rem; }
}

.bundle-tabs {
  margin-bottom: 20px;
}

/* Layout: stack on mobile, two-column on desktop (preview wider) */
.tool-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}
@media (min-width: 1024px) {
  .tool-grid {
    grid-template-columns: 360px 1fr;
    gap: 28px;
    align-items: start;
  }
}

/* Form cards stack */
.tool-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.form-card {
  padding: 18px;
}
.form-card-title {
  margin: 0 0 12px;
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: 0.01em;
}
.form-hint {
  margin: 8px 0 0;
  font-size: 0.8125rem;
  color: var(--muted);
}

.form-fields {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.field label {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text);
}
.field .req {
  color: #ef4444;
  margin-inline-start: 2px;
}
.input.textarea {
  border-radius: 18px;
  padding-block: 12px;
  min-height: 80px;
  font-family: inherit;
  resize: vertical;
  line-height: 1.5;
}

/* Logo uploader */
.logo-uploader {
  border: 2px dashed var(--border);
  border-radius: var(--radius);
  background: var(--bg);
  padding: 24px 16px;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.18s ease, background 0.18s ease;
  min-height: 140px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.logo-uploader:hover, .logo-uploader.is-drag {
  border-color: var(--primary);
  background: rgba(40, 170, 225, 0.04);
}
.logo-uploader:focus-visible {
  outline: 3px solid var(--primary);
  outline-offset: 2px;
}
.logo-uploader-placeholder {
  color: var(--muted);
  font-size: 0.9375rem;
  line-height: 1.6;
}
.logo-uploader-placeholder small {
  font-size: 0.75rem;
  color: var(--muted);
  opacity: 0.8;
}
.logo-uploader-preview img {
  max-width: 100%;
  max-height: 100px;
  display: block;
  margin: 0 auto;
}
.logo-actions {
  display: flex;
  gap: 8px;
  margin-top: 10px;
  justify-content: center;
}

/* Style pills */
.style-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.style-pill {
  border: 1.5px solid var(--border);
  background: var(--card);
  border-radius: var(--radius-pill);
  padding: 6px 14px;
  font-size: 0.8125rem;
  font-family: inherit;
  color: var(--text);
  cursor: pointer;
  transition: all 0.15s ease;
  min-height: 32px;
}
.style-pill:hover { border-color: var(--primary); }
.style-pill.is-active {
  background: var(--primary);
  border-color: var(--primary);
  color: white;
  font-weight: 600;
}
.style-pill:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

/* Palette grid */
.palettes {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  margin-top: 10px;
}
.palette-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1.5px solid var(--border);
  background: var(--card);
  border-radius: var(--radius-pill);
  padding: 6px 10px;
  font-size: 0.75rem;
  font-family: inherit;
  color: var(--text);
  cursor: pointer;
  transition: all 0.15s ease;
  text-align: start;
  min-height: 34px;
}
.palette-btn:hover { border-color: var(--primary); }
.palette-btn.is-active {
  border-color: var(--primary);
  background: rgba(40, 170, 225, 0.06);
}
.palette-btn:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}
.palette-swatch {
  display: flex;
  flex-shrink: 0;
}
.palette-swatch span {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 2px solid white;
  margin-inline-start: -4px;
}
.palette-swatch span:first-child { margin-inline-start: 0; }
.palette-name {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Logo position sliders — compact grid: 1 column on narrow screens, 2 on
   wider ones, so the 4 controls take roughly half the vertical space they
   used to as one long stack. */
.slider-grid {
  display: flex;
  flex-wrap: wrap;
  direction: rtl;
  gap: 4px 16px;
}
.slider-grid .slider-field {
  flex: 1 1 100%;
  margin-bottom: 0;
}
@media (min-width: 420px) {
  .slider-grid .slider-field { flex: 1 1 calc(50% - 8px); }
}
.slider-field {
  margin-bottom: 8px;
}
.slider-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.75rem;
  margin-bottom: 2px;
}
.slider-val {
  color: var(--muted);
  font-family: monospace;
  font-size: 0.7rem;
}
.slider-field input[type="range"] {
  width: 100%;
  accent-color: var(--primary);
  height: 22px;
}

/* ============================================================
   PREVIEW pane
   ============================================================ */
.preview-card {
  background: var(--bg);
  border: 1px solid var(--border);
  padding: 16px;
  min-height: 360px;
}
@media (min-width: 760px) {
  .preview-card { padding: 24px; min-height: 480px; }
}

.preview-meta {
  text-align: center;
  font-size: 0.8125rem;
  color: var(--muted);
  margin-bottom: 14px;
}

.preview-frame {
  margin: 0 auto;
  background: white;
  border-radius: 8px;
  box-shadow: 0 24px 60px -16px rgba(26, 38, 54, 0.22);
  overflow: hidden;
  max-width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.preview-frame svg {
  display: block;
  max-width: 100%;
  height: auto;
}

/* Download bar */
.download-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 16px 0;
}
.download-bar .btn { flex: 1 1 auto; min-width: 140px; }

@media (min-width: 760px) {
  .download-bar .btn { flex: 0 0 auto; }
}

/* Order form */
.order-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}
@media (min-width: 600px) {
  .order-grid { grid-template-columns: 1fr 1fr; }
}
.field-wide { grid-column: 1 / -1; }
.checkbox-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9375rem;
  cursor: pointer;
}
.checkbox-label input { accent-color: var(--primary); width: 18px; height: 18px; }

.order-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 18px;
}
.order-actions .btn { min-width: 160px; }

.order-message {
  margin-top: 12px;
  padding: 10px 14px;
  border-radius: var(--radius);
  font-size: 0.9375rem;
}
.order-message.is-error {
  background: #fee2e2;
  color: #991b1b;
  border: 1px solid #fecaca;
}

/* ============================================================
   THANK-YOU MODAL
   ============================================================ */
.modal {
  position: fixed;
  inset: 0;
  background: rgba(26, 38, 54, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
  padding: 16px;
  animation: fade-in 0.2s ease-out;
}
.modal-content {
  background: var(--card);
  border-radius: var(--radius);
  padding: 32px 24px;
  max-width: 480px;
  width: 100%;
  text-align: center;
  box-shadow: var(--shadow-lg);
  animation: scale-in 0.22s ease-out;
}
.modal-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(40, 170, 225, 0.12);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  margin: 0 auto 16px;
  font-weight: 700;
}
.modal-content h2 {
  margin: 0 0 10px;
  font-size: 1.375rem;
  font-weight: 800;
}
.modal-content p {
  margin: 0 0 20px;
  color: var(--muted);
  line-height: 1.6;
}
.modal-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.modal-actions + .modal-actions {
  margin-top: 14px;
}
@media (min-width: 480px) {
  .modal-actions { flex-direction: row; justify-content: center; }
}

/* ============================================================
   Hero search icon utility
   ============================================================ */
.hero-search-icon {
  pointer-events: none;
}

/* Fade-in keyframes (local to this site) */
@keyframes fade-in {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes scale-in {
  from { opacity: 0; transform: scale(0.97); }
  to { opacity: 1; transform: scale(1); }
}

/* ============================================================
   Accessibility-page-specific styles (when accessibility.html
   loads this same stylesheet)
   ============================================================ */
.accessibility-statement {
  max-width: 800px;
  margin: 0 auto;
  background: var(--card);
  border-radius: var(--radius);
  padding: 32px 24px;
  box-shadow: var(--shadow);
}
.accessibility-statement h1 {
  margin: 0 0 8px;
  font-size: 1.75rem;
}
.accessibility-statement h2 {
  margin: 28px 0 12px;
  font-size: 1.25rem;
  color: var(--primary);
}
.accessibility-statement p {
  line-height: 1.7;
  margin: 0 0 12px;
}
.accessibility-statement ul {
  padding-inline-start: 24px;
  line-height: 1.8;
}
.accessibility-statement .last-updated {
  color: var(--muted);
  font-size: 0.9375rem;
}
.accessibility-statement .contact-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 20px;
  margin: 16px 0;
}
.accessibility-statement .contact-card p { margin: 4px 0; }

/* ============================================================
   Respect prefers-reduced-motion (Israeli a11y law layer 2)
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ============================================================
   v3 additions — UX fixes from the 23-point review
   ============================================================ */

/* --- Header overlap fix (#23): more breathing room below header --- */
main {
  padding-top: 56px;
}

/* --- Product card redesign (#1, #3): icon in a circle, badge separate, padded footer --- */
.product-card {
  position: relative;
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 18px;
  padding: 28px 28px 22px;
  min-height: 240px;
  cursor: pointer;
  transition: transform .12s ease, box-shadow .16s ease;
}
.product-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 32px rgba(40, 170, 225, 0.15);
}

.product-card-icon-wrap {
  position: absolute;
  top: 22px;
  left: 22px;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(40, 170, 225, 0.12), rgba(40, 170, 225, 0.05));
  display: flex;
  align-items: center;
  justify-content: center;
}
.product-card-icon { font-size: 28px; }

.product-card-badge {
  position: absolute;
  top: 18px;
  right: 18px;
  background: #fbb041;
  color: #1a2636;
  font-size: 12px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
  letter-spacing: 0.02em;
  box-shadow: 0 2px 8px rgba(251, 176, 65, 0.35);
}

.product-card-body {
  padding-top: 56px;  /* room for icon circle */
}
.product-card-body h3 {
  margin: 0 0 10px;
  font-size: 22px;
  font-weight: 700;
  color: var(--text);
}
.product-card-body p {
  margin: 0;
  font-size: 14px;
  color: var(--text-muted, #6b7f96);
  line-height: 1.55;
}

.product-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 14px 4px 0;
  margin-top: auto;
  border-top: 1px solid rgba(40, 170, 225, 0.15);
  font-size: 14px;
}
.product-card-tag {
  color: var(--text-muted, #6b7f96);
  font-weight: 500;
}
.product-card-cta {
  color: var(--accent, #28AAE1);
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.product-card-arrow { font-size: 18px; line-height: 1; }
.product-card:hover .product-card-arrow { transform: translateX(-3px); transition: transform .15s; }

/* --- CTA banner (#4) --- */
.cta-banner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 32px;
  align-items: center;
  padding: 32px 36px;
  margin-top: 48px;
  background: linear-gradient(135deg, #28AAE1, #1888b9);
  color: #ffffff;
  border: none;
}
.cta-banner h2 { color: #ffffff; margin: 0 0 8px; font-size: 26px; }
.cta-banner p { color: rgba(255, 255, 255, 0.92); margin: 0; font-size: 16px; line-height: 1.6; }
.cta-banner .cta-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 220px;
}
.cta-banner .btn { width: 100%; justify-content: center; }
.cta-banner .btn-primary { background: #fbb041; color: #1a2636; border-color: #fbb041; }
.cta-banner .btn-outline { background: transparent; color: #ffffff; border-color: rgba(255,255,255,0.6); }
.cta-banner .btn-outline:hover { background: rgba(255,255,255,0.12); }
@media (max-width: 720px) {
  .cta-banner { grid-template-columns: 1fr; padding: 24px; }
}

/* --- Logo shape pills (#15) --- */
#logo-shape-pills .style-pill { padding: 10px 14px; font-size: 14px; }

/* --- Color tools row (#7) --- */
.color-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}
.color-picker-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border: 1px solid var(--accent, #28AAE1);
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  color: var(--accent, #28AAE1);
  cursor: pointer;
  background: #ffffff;
}
.color-picker-label:hover { background: rgba(40, 170, 225, 0.06); }
.color-picker-label input[type="color"] {
  width: 22px; height: 22px;
  padding: 0; border: none; background: none; cursor: pointer;
  border-radius: 50%;
}
.color-picker-label input[type="color"]::-webkit-color-swatch-wrapper { padding: 0; }
.color-picker-label input[type="color"]::-webkit-color-swatch { border: 1px solid rgba(0,0,0,0.1); border-radius: 50%; }

/* --- Icon buttons for logo actions (#8) --- */
.logo-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
  justify-content: center;
}
.icon-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border: 1px solid #d4dde6;
  border-radius: 10px;
  background: #ffffff;
  color: #1a2636;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all .15s;
}
.icon-btn:hover { border-color: #28AAE1; color: #28AAE1; }
.icon-btn-danger:hover { border-color: #dc2626; color: #dc2626; }
.icon-btn svg { display: block; }
.icon-btn-label { font-size: 13px; }
@media (max-width: 480px) {
  .icon-btn-label { display: none; }
}

/* --- Download bar reorder (#14): primary CTA prominent on top --- */
.download-bar-stacked {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 20px 0;
}
.download-bar-stacked .btn-fullwidth {
  width: 100%;
  justify-content: center;
  padding: 16px 24px;
  font-size: 16px;
  font-weight: 700;
}
.download-bar-row {
  display: flex;
  gap: 10px;
}
.download-bar-row .btn {
  flex: 1;
  justify-content: center;
}
.btn-lg { padding: 14px 24px; font-size: 15px; }

/* --- Form fields grid (event flyer fields side by side on desktop) --- */
.form-fields-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}
@media (max-width: 520px) {
  .form-fields-grid { grid-template-columns: 1fr; }
}

/* --- Smaller logo uploader for app-screenshot --- */
.logo-uploader-sm .logo-uploader-preview {
  min-height: 120px;
}

/* --- Grey-on-blue contrast fix (#21): inside any blue area, text-muted goes white --- */
[style*="background:#28AAE1"] .text-muted,
.bg-brand .text-muted {
  color: rgba(255, 255, 255, 0.92);
}

/* --- Tool subtitle (#5): better contrast, larger --- */
.tool-subtitle {
  color: #4a5b6e;
  font-size: 16px;
  line-height: 1.55;
  margin-top: 8px;
}

/* --- Footer cleanup (#22) — no other changes needed since the HTML is the source of truth --- */

/* ============================================================
   v4 — refinements per second-round review
   ============================================================ */

/* --- Stronger header overlap fix (#1): use enough padding for the fixed CDN header --- */
main {
  padding-top: 110px;
}

/* --- Grey on blue (#2): broader fallback — any subtitle/text-muted inside a blue
       background turns white. base.css from the CDN sets the top header blue. --- */
.tool-subtitle,
.tool-header .tool-subtitle {
  color: #1a2636;
  background: #ffffff;
  position: relative;
  z-index: 1;
}
header[role="banner"] ~ *:not([style*="background"]) .text-muted { color: #4a5b6e; }
/* When base.css decorations bleed through, fail-safe to white */
.bg-brand, .bg-brand .text-muted, [class*="brand-band"] .text-muted {
  color: rgba(255, 255, 255, 0.92);
}

/* --- Product card: icon on the RIGHT, CTA in blue (#6) --- */
.product-card-icon-wrap {
  /* was: left: 22px — now on the right */
  left: auto;
  right: 22px;
}
.product-card-badge {
  /* moved to the OPPOSITE corner — left side */
  right: auto;
  left: 18px;
}
.product-card-body {
  padding-top: 56px;
  /* Space for the icon on the right side */
  padding-right: 76px;
}
.product-card-cta {
  color: #28AAE1 !important;
  font-weight: 700;
}
.product-card-cta .product-card-arrow { color: #28AAE1; }

/* --- Download bar: 3 buttons in a single row (#4) --- */
.download-bar-row {
  display: flex;
  flex-direction: row;
  gap: 10px;
  margin: 20px 0;
  align-items: stretch;
}
.download-bar-row .btn {
  flex: 1;
  justify-content: center;
}
.download-bar-row .btn-order {
  /* Primary CTA — biggest, occupies more space */
  flex: 2;
  font-weight: 800;
  font-size: 16px;
}
/* Stack on mobile so buttons don't get cramped */
@media (max-width: 720px) {
  .download-bar-row { flex-direction: column; }
  .download-bar-row .btn { flex: 1; }
}

/* --- Custom color group: picker + nested eyedropper icon (#5) --- */
.custom-color-group {
  display: inline-flex;
  align-items: center;
  border: 1px solid #fbb041;
  border-radius: 999px;
  padding: 2px;
  background: #fff;
  gap: 4px;
}
.custom-color-group .color-picker-label {
  border: none;
  padding: 6px 12px;
  color: #fbb041;
}
.custom-color-group .color-picker-label:hover { background: rgba(251, 176, 65, 0.08); }
.custom-color-eyedropper {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border: 1px solid #d4dde6;
  border-radius: 50%;
  background: #fff;
  color: #4a5b6e;
  cursor: pointer;
  padding: 0;
}
.custom-color-eyedropper:hover { color: #28AAE1; border-color: #28AAE1; }

/* --- Sticky preview so color picker / scroll doesn't hide it (#11) --- */
@media (min-width: 960px) {
  .tool-grid .tool-preview {
    position: sticky;
    top: 130px;
    align-self: start;
  }
}

/* --- Mobile responsive tool view: form (design controls) FIRST, then the
   preview/download/order section — you design, then you download/order,
   not the other way around. (Used to be column-reverse, showing the preview
   before you'd touched any setting — that's what buried the controls.) --- */
@media (max-width: 960px) {
  .tool-grid {
    display: flex;
    flex-direction: column;
    gap: 20px;
  }
  .tool-form,
  .tool-preview {
    width: 100%;
  }
  .preview-card {
    margin-bottom: 12px;
  }
  /* Make download bar sticky at the bottom on mobile so it's always reachable */
  .download-bar-row {
    position: sticky;
    bottom: 0;
    background: linear-gradient(to top, #ffffff 80%, rgba(255,255,255,0));
    padding: 16px 0 12px;
    z-index: 5;
  }
  .product-card { min-height: 200px; }
  .hero h1 { font-size: 26px; line-height: 1.3; }
  .hero-sub { font-size: 14px; }
}

/* --- Variant pills: support thumbnails (rendered by app.js) --- */
.style-pills.has-thumbs {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 10px;
}
.style-pill-thumb {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 8px;
  padding: 8px;
  border: 1px solid #d4dde6;
  border-radius: 12px;
  background: #fff;
  cursor: pointer;
  text-align: center;
  font-size: 13px;
  font-weight: 600;
  color: #1a2636;
  transition: all .14s;
}
.style-pill-thumb:hover { border-color: #28AAE1; transform: translateY(-1px); }
.style-pill-thumb.is-active {
  border-color: #28AAE1;
  background: rgba(40, 170, 225, 0.06);
  box-shadow: 0 0 0 2px rgba(40, 170, 225, 0.25);
}
.style-pill-thumb-preview {
  width: 100%;
  aspect-ratio: 1 / 1.3;
  background: #f4f9fd;
  border-radius: 6px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.style-pill-thumb-preview svg {
  width: 100%;
  height: 100%;
}
.style-pill-thumb-label {
  font-size: 12px;
  padding: 0 4px;
  line-height: 1.3;
}

/* --- Shape pill styling: SVG icon + Hebrew label, aligned --- */
.style-pill-shape {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
}
.style-pill-shape svg { flex-shrink: 0; }

/* ============================================================
   v4 — CSS variable fallbacks so the site renders correctly
   even when the CDN base.css fails to load (file:// or offline)
   ============================================================ */
:root {
  /* If base.css already defined these, the original wins.
     If not, these defaults kick in. */
  --primary-fallback: #28AAE1;
  --text-fallback:    #1a2636;
  --card-fallback:    #ffffff;
  --border-fallback:  #d4dde6;
  --accent-fallback:  #28AAE1;
}

/* Active pills always get the brand blue */
.style-pill.is-active {
  background: var(--primary, #28AAE1) !important;
  border-color: var(--primary, #28AAE1) !important;
  color: #ffffff !important;
  font-weight: 600;
}

.style-pill {
  border-color: var(--border, #d4dde6);
  color: var(--text, #1a2636);
  background: var(--card, #ffffff);
}

.palette-btn.is-active {
  border-color: var(--primary, #28AAE1) !important;
  background: rgba(40, 170, 225, 0.06) !important;
}

/* ============================================================
   v5 — second-round refinements
   ============================================================ */

/* --- Tool header as an intentional blue band with white text (#1) --- */
.tool-header-blue {
  background: var(--primary, #28AAE1);
  color: #ffffff;
  border-radius: 16px;
  padding: 28px 32px;
  margin: 8px 0 24px;
}
.tool-header-blue h1 { color: #ffffff; margin: 0 0 8px; }
.tool-header-blue .tool-subtitle {
  color: rgba(255, 255, 255, 0.92);
  background: transparent;
  margin: 0;
}
@media (max-width: 600px) {
  .tool-header-blue { padding: 20px; }
}

/* --- Coming-soon disabled product cards (#19) --- */
.product-card.is-disabled {
  opacity: 0.55;
  cursor: default;
  filter: grayscale(0.4);
}
.product-card.is-disabled:hover { transform: none; box-shadow: none; }
.product-card-badge-soon {
  background: #6b7f96;
  color: #ffffff;
  box-shadow: none;
}

/* --- Two custom color pickers side by side (#22) --- */
.custom-color-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 10px;
}

/* --- Social-post square preview keeps 1:1 --- */
.preview-frame svg { max-width: 100%; height: auto; }

/* ── DC integration overrides ─────────────────────────────── */
/* main מופיע אחרי ה-DC hero, לא צריך margin נוסף */
main { margin-top: 0 !important; }

/* product grid — מתאים לרוחב */
.home-view { padding: 24px 0; }

/* product cards — סגנון DC article-card */
.card-grid { 
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
  margin-bottom: 32px;
}
.product-card {
  background: var(--card, #fff);
  border: 1.5px solid var(--border, #e3eaf1);
  border-radius: var(--radius, 14px);
  padding: 20px;
  cursor: pointer;
  transition: box-shadow .15s, border-color .15s;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.product-card:hover {
  border-color: var(--primary, #28AAE1);
  box-shadow: 0 4px 16px rgba(40,170,225,.12);
}
.product-card .product-icon {
  font-size: 2rem;
  background: var(--primary-light, #eef7fc);
  border-radius: 10px;
  width: 52px; height: 52px;
  display: flex; align-items: center; justify-content: center;
}
.product-card h3 { font-size: 1rem; font-weight: 700; color: var(--text, #1a2636); }
.product-card .product-desc { font-size: .85rem; color: var(--muted, #6b7c8f); line-height: 1.5; flex: 1; }
.product-card .product-actions {
  display: flex; gap: 8px; margin-top: 4px;
}
.product-card .product-badge {
  font-size: .72rem; font-weight: 700;
  padding: 2px 9px; border-radius: 12px;
}
.product-badge.featured { background: rgba(217,119,6,.12); color: #d97706; }
.product-badge.soon     { background: var(--border, #e3eaf1); color: var(--muted, #6b7c8f); }

/* tool view — ניווט עליון */
.tool-view .breadcrumb {
  background: var(--primary, #28AAE1);
  padding: 10px 20px;
  border-radius: 0;
}
.tool-view .breadcrumb a { color: #fff; font-weight: 600; font-size: .9rem; }

/* (duplicate .cta-banner rule removed here — it overrode the banner's blue
   gradient background with a pale one while leaving the text white, which
   is what made the CTA text and outline button unreadable.) */

/* ── Form inputs — DC style ───────────────────────────────── */
.input,
.tool-form input,
.tool-form select,
.tool-form textarea {
  width: 100%;
  padding: 9px 12px;
  border: 1.5px solid var(--border, #e3eaf1);
  border-radius: 8px;
  font-family: inherit;
  font-size: .9rem;
  color: var(--text, #1a2636);
  background: #fff;
  transition: border-color .2s, box-shadow .2s;
  box-sizing: border-box;
  appearance: none;
}
.input:focus, .tool-form input:focus, .tool-form select:focus, .tool-form textarea:focus {
  border-color: var(--primary, #28AAE1);
  outline: none;
  box-shadow: 0 0 0 3px rgba(40,170,225,.12);
}
.form-fields label {
  display: block;
  font-size: .84rem;
  font-weight: 600;
  color: var(--text, #1a2636);
  margin-bottom: 5px;
}
.form-group {
  margin-bottom: 14px;
}

/* ── Hero stats — override studio .stat defaults ────────── */
.hero .stat,
.hero .stat-num,
.hero .stat-label {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  padding: 0 !important;
  color: #fff !important;
}
.hero .stat strong { color: #fff !important; }
.hero .stat span   { color: rgba(255,255,255,.85) !important; }

/* ── הסתרת breadcrumb פנימי של הסטודיו — DC article-nav מחליף ── */
.tool-view > .breadcrumb { display: none !important; }

/* ── Hero title color fix ─────────────────────────────────── */
.hero h1, .hero h2, .hero p, .hero .hero-sub { color: #fff !important; }

/* ── Article-view card in studio ─────────────────────────── */
.article-view.show main { padding: 0; }
.main-layout .article-view.show { border-radius: 14px; overflow: hidden; }
