:root {
  color-scheme: light;
  --ink: #111113;
  --muted: #6f7075;
  --line: #e6e6e9;
  --paper: #ffffff;
  --wash: #f5f5f6;
  --red: #e20e17;
  --red-dark: #b90911;
  --shadow: 0 18px 50px rgba(17,17,19,.08);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--wash);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  font-size: 16px;
}
button, textarea, input { font: inherit; }
button { cursor: pointer; }

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  min-height: 78px;
  padding: 14px clamp(20px, 4vw, 62px);
  background: rgba(11,11,12,.96);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  backdrop-filter: blur(14px);
}
.brand { display: flex; align-items: center; gap: 13px; }
.brand-mark {
  width: 46px; height: 46px; border-radius: 13px;
  display: grid; place-items: center;
  background: var(--red); color: #fff;
  font-weight: 900; letter-spacing: -.5px;
  transform: skew(-5deg);
}
.brand strong, .brand span { display: block; }
.brand > div > span { color: #aaaab0; font-size: 13px; margin-top: 2px; }
.top-actions { display: flex; align-items: center; gap: 10px; }
.save-state { color: #b9b9be; font-size: 13px; margin-right: 5px; }
.button { border: 0; border-radius: 999px; padding: 11px 17px; font-weight: 750; }
.button.primary { background: var(--red); color: #fff; }
.button.primary:hover { background: #f11822; }
.button.secondary { background: #29292c; color: #fff; }
.button.secondary:hover { background: #38383c; }

main { width: min(1420px, calc(100% - 40px)); margin: 0 auto; padding: 56px 0 72px; }
.intro { display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 30px; margin-bottom: 32px; }
.eyebrow { color: var(--red); font-size: 13px; font-weight: 850; letter-spacing: 1.8px; margin: 0 0 10px; }
h1 { font-size: clamp(34px, 5vw, 64px); letter-spacing: -.045em; line-height: .98; margin: 0; max-width: 820px; }
.intro > div > p:last-child { color: var(--muted); max-width: 690px; line-height: 1.6; margin: 18px 0 0; }
.progress-card { min-width: 190px; background: var(--paper); border-radius: 22px; padding: 20px 24px; box-shadow: var(--shadow); }
.progress-card span, .progress-card small { display: block; color: var(--muted); }
.progress-card strong { display: block; color: var(--red); font-size: 42px; line-height: 1; margin: 7px 0; }

.product-nav { display: flex; gap: 8px; overflow-x: auto; padding: 2px 2px 16px; margin-bottom: 20px; scrollbar-width: thin; }
.product-nav a { white-space: nowrap; color: #44454a; background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 10px 14px; text-decoration: none; font-size: 14px; font-weight: 650; }
.product-nav a:hover { border-color: var(--red); color: var(--red); }
.product-list { display: grid; gap: 30px; }
.product-card { background: var(--paper); border: 1px solid var(--line); border-radius: 28px; overflow: hidden; box-shadow: var(--shadow); scroll-margin-top: 100px; }
.product-heading { padding: 25px 28px 20px; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; gap: 20px; }
.product-heading h2 { margin: 0 0 5px; font-size: clamp(22px, 3vw, 33px); letter-spacing: -.025em; }
.filename { color: var(--muted); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12px; }
.product-number { color: var(--red); font-weight: 900; font-size: 14px; letter-spacing: 1px; }
.product-body { display: grid; grid-template-columns: minmax(0, .88fr) minmax(440px, 1.12fr); }
.copy-pane { padding: 26px 28px 28px; border-right: 1px solid var(--line); background: #fbfbfc; }
.copy-option + .copy-option { margin-top: 24px; padding-top: 24px; border-top: 1px solid var(--line); }
.copy-option h3 { font-size: 13px; letter-spacing: 1.4px; color: var(--red); margin: 0 0 14px; }
.field { display: block; margin-top: 13px; }
.field > span { display: block; color: var(--muted); font-size: 12px; font-weight: 760; letter-spacing: .5px; margin: 0 0 6px; }
textarea, input[type="text"] { width: 100%; border: 1px solid #d9d9de; border-radius: 12px; background: #fff; color: #171719; padding: 11px 13px; outline: none; transition: border-color .15s, box-shadow .15s; }
textarea { min-height: 92px; resize: vertical; line-height: 1.55; }
.rtl-field { direction: rtl; text-align: right; font-family: Arial, "Arial Hebrew", sans-serif; }
textarea:focus, input[type="text"]:focus { border-color: var(--red); box-shadow: 0 0 0 3px rgba(226,14,23,.1); }
.catalog-note { margin-top: 20px; background: #fff3d8; color: #77500a; border-radius: 12px; padding: 11px 13px; font-size: 13px; line-height: 1.45; }
.creative-pane { padding: 26px; }
.creative-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.creative { margin: 0; }
.creative img { width: 100%; display: block; aspect-ratio: 1; object-fit: cover; border-radius: 18px; background: #eee; border: 1px solid var(--line); }
.creative figcaption { display: flex; align-items: center; justify-content: space-between; gap: 10px; color: var(--muted); font-size: 12px; font-weight: 780; letter-spacing: .9px; margin-top: 9px; }
.creative figcaption span:last-child { font-weight: 500; letter-spacing: 0; }
footer { display: flex; justify-content: space-between; padding: 25px clamp(20px, 4vw, 62px); background: #0b0b0c; color: #a8a8ad; font-size: 13px; }

@media (max-width: 980px) {
  .save-state { display: none; }
  .product-body { grid-template-columns: 1fr; }
  .copy-pane { border-right: 0; border-bottom: 1px solid var(--line); }
}
@media (max-width: 680px) {
  .topbar { align-items: flex-start; }
  .brand > div { display: none; }
  .top-actions { flex-wrap: wrap; justify-content: flex-end; }
  .button { padding: 10px 13px; font-size: 13px; }
  main { width: min(100% - 24px, 1420px); padding-top: 35px; }
  .intro { grid-template-columns: 1fr; }
  .progress-card { display: none; }
  .product-heading, .copy-pane, .creative-pane { padding-left: 18px; padding-right: 18px; }
  .creative-grid { grid-template-columns: 1fr; }
  footer { flex-direction: column; gap: 5px; }
}
