/* Microsite de campanie. Brandul e eticheta: culoarea lui (--brand) umple blocurile de brand, accentul (--accent) stă pe butoane.
   Promobon e bonul: datele (perioadă, coduri, amprente) stau pe hârtie termică, în monospațiat. Mobil întâi. */
:root {
  --page: #EEF0F3;
  --paper: #FDFDFB;
  --surface: #F8F9FC;
  --ink: #1A1C2A;
  --ink-soft: #555A70;
  --rule: #D2D6E1;
  --brand: #3532B0;
  --accent: #F2E25A;
  --on-brand: #FFFFFF;
  --ok: #1D7A4C;
  --ok-tint: #DCEFE4;
  --bad: #B0362B;
  --wait: #8A5A00;
  --wait-tint: #F4EAD2;
  --font-display: "Anybody", "Arial Narrow", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Onest", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-mono: "Martian Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  color-scheme: light;
}
*, *::before, *::after { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
p { margin: 0 0 0.75em; }
a { color: var(--brand); }
h1, h2, h3 { font-family: var(--font-display); line-height: 1.1; margin: 0 0 0.45em; }
h1 { font-size: clamp(2.2rem, 6.5vw, 3.6rem); font-stretch: 112%; font-weight: 860; letter-spacing: -0.01em; max-width: 14ch; }
h2 { font-size: clamp(1.5rem, 3.6vw, 2rem); font-stretch: 108%; font-weight: 800; }
h3 { font-size: 1.1875rem; font-stretch: 104%; font-weight: 760; }
.wrap { width: min(100% - 32px, 62rem); margin-inline: auto; }
.wrap-narrow { width: min(100% - 32px, 40rem); padding-top: 24px; }

/* antet și panglica de demo */
.demo-ribbon { margin: 0; padding: 10px 16px; background: var(--ink); color: #F2E25A; font-size: 0.9375rem; text-align: center; line-height: 1.45; }
.demo-ribbon strong { color: #fff; }
.top { padding: 14px 0; background: var(--paper); border-bottom: 1px solid var(--rule); }
.top-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-family: var(--font-display); font-size: 1.25rem; font-stretch: 118%; font-weight: 800; }
.brand img { display: block; height: 44px; width: auto; max-width: 220px; }
.brand-mark { width: 14px; height: 18px; background: var(--brand); border-radius: 2px 2px 0 0; clip-path: polygon(0 0, 100% 0, 100% 100%, 83% 86%, 66% 100%, 50% 86%, 33% 100%, 16% 86%, 0 100%); }

/* butoane */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0 1.35rem;
  border: 2px solid var(--brand); border-radius: 10px;
  background: var(--brand); color: var(--on-brand);
  font: 600 1rem var(--font-body); text-decoration: none; cursor: pointer;
}
.btn:hover { filter: brightness(1.1); }
.btn:focus-visible, .link:focus-visible, input:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.btn:disabled { opacity: 0.6; cursor: wait; }
.btn-accent { background: var(--accent); border-color: var(--accent); color: var(--ink); }
.btn-big { min-height: 56px; padding: 0 1.75rem; font-size: 1.125rem; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--rule); }
.btn-small { min-height: 40px; padding: 0 1rem; font-size: 0.9375rem; }
.link { background: none; border: 0; padding: 0; color: var(--brand); font: inherit; text-decoration: underline; cursor: pointer; }
.link:disabled { color: var(--ink-soft); text-decoration: none; cursor: default; }

/* eroul: blocul de brand, cu punga desenată */
.hero { background: var(--brand); color: var(--on-brand); padding: 40px 0 0; overflow: hidden; }
.hero-grid { display: grid; gap: 24px; }
.hero a:not(.btn) { color: inherit; }
.hero .lead { font-size: 1.1875rem; max-width: 36rem; opacity: 0.92; margin-bottom: 1.4em; }
.hero .hint { color: inherit; opacity: 0.75; margin-top: 0.9em; }
.period {
  display: inline-block; margin-bottom: 18px; padding: 6px 12px;
  background: var(--paper); color: var(--ink);
  font-family: var(--font-mono); font-size: 0.8125rem; font-weight: 500; letter-spacing: 0.02em;
  clip-path: polygon(0 4px, 4px 0, calc(100% - 4px) 0, 100% 4px, 100% calc(100% - 4px), calc(100% - 4px) 100%, 4px 100%, 0 calc(100% - 4px));
}
.hero-art { display: flex; justify-content: center; align-items: flex-end; margin: 8px 0 -6px; }
.hero-art .pack { transform: rotate(-5deg); filter: drop-shadow(0 18px 24px rgb(0 0 0 / 0.35)); }
@media (min-width: 760px) {
  .hero { padding: 64px 0 0; }
  .hero-grid { grid-template-columns: 1.3fr 1fr; align-items: end; }
  .hero-copy { padding-bottom: 56px; }
  .hero-art { justify-content: flex-end; padding-right: 24px; }
}
@media (prefers-reduced-motion: no-preference) {
  .hero-art .pack { animation: settle 700ms cubic-bezier(0.2, 0.8, 0.2, 1) both; }
  @keyframes settle { from { transform: translateY(24px) rotate(-9deg); opacity: 0; } to { transform: rotate(-5deg); opacity: 1; } }
}
.notice { display: inline-block; padding: 12px 16px; border-radius: 10px; background: var(--paper); color: var(--wait); font-weight: 600; }
.hint, .small, .trust { color: var(--ink-soft); font-size: 0.9375rem; }

/* benzile paginii */
.band { padding: 40px 0; }
.band-paper { background: var(--paper); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.band-brand { background: var(--brand); color: var(--on-brand); }
.band-brand h2 { color: inherit; }
.band-brand a:not(.btn) { color: inherit; }

/* pașii: o fâșie de bon, cu numărul tipărit */
.steps { list-style: none; counter-reset: pas; margin: 0; padding: 0; display: grid; gap: 14px; }
.steps li {
  counter-increment: pas; position: relative;
  padding: 16px 18px 14px 60px; background: var(--paper); border: 1px solid var(--rule); border-radius: 6px;
}
.steps li::before {
  content: counter(pas); position: absolute; left: 18px; top: 16px;
  font-family: var(--font-mono); font-size: 1.375rem; font-weight: 700; color: var(--brand); line-height: 1.2;
}
.steps h3 { margin-bottom: 0.2em; }
.steps p { margin: 0; color: var(--ink-soft); }
@media (min-width: 760px) { .steps { grid-template-columns: repeat(3, 1fr); } }

/* raftul cu produse */
.shelf { list-style: none; margin: 0 0 32px; padding: 0 0 22px; display: flex; gap: 22px; overflow-x: auto; scroll-snap-type: x proximity; border-bottom: 3px solid var(--rule); }
.shelf li { flex: 0 0 auto; width: 136px; display: grid; justify-items: center; gap: 8px; text-align: center; scroll-snap-align: start; }
.shelf .pack { filter: drop-shadow(0 8px 10px rgb(0 0 0 / 0.18)); }
.shelf span { font-size: 0.9375rem; font-weight: 600; line-height: 1.3; }
.stores { display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 0; list-style: none; }
.stores li { padding: 6px 14px; border: 1.5px solid var(--ink); border-radius: 999px; font-weight: 600; font-size: 0.9375rem; }

/* extragerile: o cronologie pe o linie, cu sigiliul cheii */
.timeline { list-style: none; margin: 0 0 20px; padding: 0; }
.draw { display: grid; grid-template-columns: 18px 1fr; gap: 0 16px; position: relative; padding-bottom: 28px; }
.draw::before { content: ""; grid-column: 1; grid-row: 1 / span 2; justify-self: center; width: 2px; background: var(--rule); }
.draw::after { content: ""; position: absolute; left: 4px; top: 6px; width: 10px; height: 10px; border-radius: 50%; background: var(--brand); }
.draw:last-child::before { background: linear-gradient(var(--rule) 40%, transparent); }
.draw-date { grid-column: 2; margin: 0 0 4px; font-family: var(--font-mono); font-size: 0.8125rem; font-weight: 500; color: var(--ink-soft); }
.draw-body { grid-column: 2; }
.draw-window { color: var(--ink-soft); font-size: 0.9375rem; }
.prizes { list-style: none; margin: 0 0 14px; padding: 0; display: grid; gap: 6px; }
.prizes li { display: flex; align-items: baseline; gap: 12px; font-size: 1.0625rem; }
.prizes b { font-family: var(--font-display); font-stretch: 112%; font-weight: 860; font-size: 1.5rem; color: var(--brand); min-width: 3.2ch; }
.seal-row { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.seal {
  flex: none; display: grid; place-content: center; text-align: center;
  width: 86px; height: 86px; border: 2.5px solid var(--brand); border-radius: 50%;
  color: var(--brand); font-family: var(--font-mono); font-size: 0.6875rem; font-weight: 700; line-height: 1.3;
  transform: rotate(-8deg); box-shadow: inset 0 0 0 3px var(--paper), inset 0 0 0 4px var(--brand);
}
.seal span { display: block; font-family: var(--font-display); font-stretch: 112%; font-size: 1rem; font-weight: 860; letter-spacing: 0.04em; }
.hash { margin: 0; font-family: var(--font-mono); font-size: 0.75rem; font-stretch: 87.5%; word-break: break-all; max-width: 40ch; }
.hash span { display: block; font-family: var(--font-body); font-size: 0.8125rem; color: var(--ink-soft); margin-bottom: 2px; }

/* invitația pentru organizatori, doar pe demo */
.pitch { max-width: 44rem; }
.pitch p { font-size: 1.125rem; opacity: 0.92; margin-bottom: 1.4em; }

/* înscrierea și pagina bonului */
.card { background: var(--paper); border: 1px solid var(--rule); border-radius: 14px; padding: 22px 20px; margin-bottom: 18px; }
.card h1 { font-size: clamp(1.75rem, 5vw, 2.25rem); max-width: none; }
.code-line { font-family: var(--font-mono); font-size: 0.875rem; font-weight: 500; color: var(--ink-soft); margin-bottom: 0.4em; }
.progress { display: flex; gap: 6px; padding: 0; margin: 0 0 22px; list-style: none; font-size: 0.8125rem; color: var(--ink-soft); }
.progress li { flex: 1; padding-top: 8px; border-top: 3px solid var(--rule); }
.progress li.current { border-color: var(--brand); color: var(--ink); font-weight: 600; }
.progress li.done { border-color: var(--ok); }
.form { display: grid; gap: 16px; }
.field { display: grid; gap: 6px; }
.field > span { font-weight: 600; font-size: 0.9375rem; }
.field input[type="tel"], .field input[type="text"], .field input[type="file"] {
  width: 100%; min-height: 48px; padding: 10px 14px;
  border: 1.5px solid var(--rule); border-radius: 10px; background: #fff;
  font: inherit; color: var(--ink);
}
.field input:focus { border-color: var(--brand); }
.code-input { font-family: var(--font-mono); font-size: 1.5rem; letter-spacing: 0.3em; text-align: center; }
.field input[type="file"] { padding: 10px; }
.preview { max-width: 100%; max-height: 320px; border-radius: 10px; border: 1px solid var(--rule); justify-self: start; }
.photo-note { color: var(--ink-soft); }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 0.9375rem; }
.check input { width: 20px; height: 20px; margin-top: 2px; flex: none; accent-color: var(--brand); }
.error { display: block; color: var(--bad); font-style: normal; font-size: 0.9375rem; }
.form-row { display: flex; gap: 20px; margin-top: 16px; font-size: 0.9375rem; }
.alert { padding: 12px 16px; border-radius: 10px; font-weight: 600; margin-bottom: 1em; }
.alert-ok { background: var(--ok-tint); color: var(--ok); }
.alert-warn { background: var(--wait-tint); color: var(--wait); }
.status { display: grid; gap: 8px; margin: 0 0 1.25em; padding: 14px 16px; border: 1px dashed var(--rule); border-radius: 10px; font-family: var(--font-mono); font-size: 0.875rem; }
.status div { display: flex; justify-content: space-between; gap: 12px; }
.status dt { color: var(--ink-soft); }
.status dd { margin: 0; text-align: right; }

/* subsolul */
.foot { padding: 28px 0 40px; color: var(--ink-soft); font-size: 0.875rem; }
.foot p { margin-bottom: 0.6em; }
.foot-note { font-size: 0.8125rem; }
