/* VOICE: cald, de poveste, dar limpede – un părinte grăbit pe telefon
   IDEA: un plic de Crăciun care se deschide pas cu pas
   PICTURE: scrisoarea pe hârtie crem, care se scrie live cu numele copilului
   COLOUR+TYPE: roșu de ceară #9b1c2c dominant, crem hârtie, verde brad, auriu doar pentru acțiune; Playfair / Nunito / Cormorant / Caveat
   LAYOUT: mobil întâi: o coloană, pași mari, bară de acțiune lipită jos; desktop: pașii stânga, scrisoarea live dreapta */
:root {
  --red: #9b1c2c; --red-d: #6f1220; --green: #1f4d3a; --gold: #d8ae52; --gold-d: #a8822e;
  --cream: #fbf5e9; --paper: #fffaf0; --ink: #2b211c; --muted: #6f6157; --line: #eadfca;
  --r: 16px; --safe: env(safe-area-inset-bottom, 0px);
}
* { box-sizing: border-box; min-width: 0; -webkit-tap-highlight-color: transparent; }
html { scroll-behavior: smooth; scroll-padding-top: 64px; }
body { margin: 0; font: 17px/1.55 'Nunito', system-ui, sans-serif; color: var(--ink); background: var(--cream); overflow-x: clip; }
h1, h2, h3 { font-family: 'Playfair Display', Georgia, serif; line-height: 1.1; margin: 0; text-wrap: balance; }
a { color: var(--red); }
button { font: inherit; color: inherit; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 18px; }

/* Bara de sus */
.topbar { position: sticky; top: 0; z-index: 30; background: rgba(111,18,32,.96); backdrop-filter: blur(8px); color: #fff; }
.topbar .wrap { display: flex; align-items: center; justify-content: space-between; height: 56px; gap: 12px; }
.brand { font-family: 'Playfair Display', serif; font-size: 19px; color: #fff; text-decoration: none; white-space: nowrap; }
.brand span { color: var(--gold); }
.tb-cta { background: var(--gold); color: #2b1b06; font-weight: 900; text-decoration: none; padding: 9px 14px; border-radius: 99px; font-size: 15px; white-space: nowrap; }

/* Hero */
.hero { background: radial-gradient(120% 80% at 50% 0%, #b8283b 0, var(--red-d) 75%); color: #fff; padding: 28px 0 36px; position: relative; overflow: hidden; }
.hero::before { content: ''; position: absolute; inset: 0; background-image: radial-gradient(#fff 1.2px, transparent 1.6px); background-size: 34px 34px; opacity: .13; animation: snow 18s linear infinite; pointer-events: none; }
@keyframes snow { to { background-position: 0 340px; } }
@media (prefers-reduced-motion: reduce) { .hero::before { animation: none; } }
.hero .wrap { position: relative; display: grid; gap: 18px; }
.hero h1 { font-size: clamp(32px, 8.6vw, 54px); }
.hero h1 em { font-style: normal; color: var(--gold); }
.hero .lead { font-size: 17px; opacity: .95; margin: 12px 0 0; max-width: 34em; }
.hero-letter { position: relative; height: 300px; overflow: hidden; border-radius: var(--r); mask-image: linear-gradient(#000 70%, transparent); -webkit-mask-image: linear-gradient(#000 70%, transparent); }
.hero-letter .lcard { transform: rotate(-2deg); margin: 8px 6px 0; }
.ticks { list-style: none; padding: 0; margin: 4px 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; font-size: 15px; }
.ticks li { background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.2); border-radius: 12px; padding: 9px 11px; }
.btn { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; min-height: 56px; padding: 14px 20px; border: 0; border-radius: 14px; background: var(--gold); color: #2b1b06; font-weight: 900; font-size: 18px; text-decoration: none; cursor: pointer; box-shadow: 0 5px 0 var(--gold-d); transition: transform .08s, box-shadow .08s; }
.btn:active { transform: translateY(3px); box-shadow: 0 2px 0 var(--gold-d); }
.btn:focus-visible, .chip:focus-within, .seg label:focus-within, input:focus-visible { outline: 3px solid #f3d68d; outline-offset: 2px; }
.btn[disabled] { opacity: .6; cursor: wait; }
.btn.ghost { background: #fff; color: var(--ink); box-shadow: 0 5px 0 var(--line); }
.price-line { text-align: center; font-size: 15px; opacity: .9; margin-top: 10px; }

/* Cum funcționează */
.how { padding: 36px 0 8px; }
.how h2 { font-size: 28px; margin-bottom: 16px; }
.how ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.how li { display: grid; grid-template-columns: 44px 1fr; gap: 12px; align-items: start; background: #fff; border-radius: var(--r); padding: 14px; box-shadow: 0 2px 10px rgba(80,40,20,.06); }
.how li b.n { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--green); color: #fff; font-size: 18px; }
.how li strong { display: block; font-size: 17px; }
.how li span { color: var(--muted); font-size: 15px; }

/* Comanda */
#comanda { padding: 32px 0 40px; }
.order { display: grid; gap: 24px; align-items: start; }
.panel { background: #fff; border-radius: 20px; box-shadow: 0 6px 30px rgba(80,40,20,.10); }
.panel-head { padding: 18px 18px 0; }
.panel-head h2 { font-size: 26px; }
.progress { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin: 14px 0 4px; }
.progress i { height: 6px; border-radius: 6px; background: var(--line); transition: background .25s; }
.progress i.on { background: var(--red); }
.step-label { font-size: 14px; color: var(--muted); font-weight: 700; }
.step { display: none; padding: 16px 18px 8px; }
.step.active { display: block; animation: in .25s ease; }
@keyframes in { from { opacity: 0; transform: translateY(6px); } }
@media (prefers-reduced-motion: reduce) { .step.active { animation: none; } }
.step h3 { font-size: 22px; margin-bottom: 14px; }
.field { margin-bottom: 18px; }
.field > label, .lbl { display: block; font-weight: 800; margin-bottom: 8px; font-size: 16px; }
.opt { font-weight: 400; color: var(--muted); font-size: 14px; }
input[type=text], input[type=email] { width: 100%; height: 54px; padding: 0 15px; font: 16px 'Nunito', sans-serif; color: var(--ink); background: #fffdf8; border: 2px solid var(--line); border-radius: 12px; -webkit-appearance: none; }
input[type=text]:focus, input[type=email]:focus { border-color: var(--gold); outline: none; }
.hint { font-size: 13px; color: var(--muted); margin-top: 6px; }

/* Vârsta: stepper */
.stepper { display: inline-grid; grid-template-columns: 54px 72px 54px; align-items: center; border: 2px solid var(--line); border-radius: 14px; overflow: hidden; background: #fffdf8; }
.stepper button { height: 54px; border: 0; background: #f6eedd; font-size: 26px; font-weight: 800; cursor: pointer; }
.stepper output { text-align: center; font-weight: 900; font-size: 20px; }
.row2 { display: grid; grid-template-columns: auto 1fr; gap: 14px; align-items: end; }

/* Segmente + chips */
.seg { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.seg label, .chip { position: relative; display: flex; align-items: center; justify-content: center; text-align: center; min-height: 52px; padding: 10px 12px; border: 2px solid var(--line); border-radius: 12px; background: #fffdf8; font-weight: 700; font-size: 15px; line-height: 1.25; cursor: pointer; user-select: none; transition: background .15s, border-color .15s; }
.seg input, .chip input { position: absolute; opacity: 0; pointer-events: none; }
.seg label:has(input:checked), .chip:has(input:checked) { background: #fcebee; border-color: var(--red); color: var(--red-d); }
.chip:has(input:disabled) { opacity: .45; }
.chips { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.chip { justify-content: flex-start; text-align: left; gap: 8px; }
.chip .e { font-size: 20px; flex: none; }
.counter { float: right; font-weight: 700; color: var(--muted); font-size: 14px; }
.consent { display: grid; grid-template-columns: 26px 1fr; gap: 10px; font-size: 14px; color: var(--muted); line-height: 1.45; cursor: pointer; padding: 12px; background: #faf5ea; border-radius: 12px; }
.consent input { width: 22px; height: 22px; margin: 1px 0 0; accent-color: var(--red); }

/* Pasul de previzualizare */
.recap { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.recap span { background: #f6eedd; border-radius: 99px; padding: 5px 11px; font-size: 14px; font-weight: 700; }
.recap button { border: 0; background: none; color: var(--red); font-weight: 800; text-decoration: underline; cursor: pointer; padding: 5px 4px; font-size: 14px; }
.secure { text-align: center; font-size: 13px; color: var(--muted); margin: 10px 0 0; }

/* Navigația pașilor: lipită jos pe telefon */
.nav { position: sticky; bottom: 0; z-index: 5; display: grid; grid-template-columns: auto 1fr; gap: 10px; padding: 12px 18px calc(12px + var(--safe)); background: linear-gradient(rgba(255,255,255,0), #fff 22%); border-radius: 0 0 20px 20px; }
.nav .back { width: 56px; min-height: 56px; border-radius: 14px; border: 2px solid var(--line); background: #fff; font-size: 22px; cursor: pointer; }
.nav .back[hidden] { display: block; visibility: hidden; }
.err { color: var(--red); font-weight: 800; font-size: 15px; min-height: 0; margin: 0 18px; }
.err:not(:empty) { margin-bottom: 4px; }

/* Coloana de previzualizare (doar desktop) */
.side { display: none; }
.side h3 { font-size: 20px; margin-bottom: 12px; }

/* Scrisoarea fluidă */
.lcard { position: relative; background: var(--paper); border-radius: 14px; padding: 26px 22px 24px; box-shadow: 0 10px 30px rgba(60,30,10,.18), inset 0 0 0 1px #efe2c4, inset 0 0 0 7px var(--paper), inset 0 0 0 8.5px #dcc28a; font-family: 'Cormorant Garamond', Georgia, serif; font-size: 19px; line-height: 1.5; color: #2a1d14; overflow: hidden; }
.lcard .lholly { position: absolute; top: 2px; left: 2px; width: 62px; height: 62px; }
.lcard header { text-align: center; margin-bottom: 14px; }
.lcard .lfrom { font-family: 'Playfair Display', serif; color: var(--red); font-size: 25px; }
.lcard .laddr { font-size: 12px; letter-spacing: 2.5px; text-transform: uppercase; color: var(--green); }
.lcard p { margin: 0 0 11px; }
.lcard .lgreet { font-family: 'Caveat', cursive; font-size: 30px; color: var(--red-d); margin-bottom: 6px; }
.lcard .lps { font-style: italic; font-size: 17px; color: #4b3a2c; }
.lcard footer { text-align: right; margin-top: 6px; }
.lcard footer span { display: block; }
.lcard footer b { font-family: 'Caveat', cursive; font-weight: 600; font-size: 42px; color: var(--red); line-height: 1; }
.lcard .blur { filter: blur(4.5px); user-select: none; }
.lcard.locked footer { filter: blur(3px); }
.lcard .lock { position: absolute; left: 0; right: 0; bottom: 0; height: 46%; display: flex; align-items: flex-end; justify-content: center; padding: 0 16px 20px; background: linear-gradient(rgba(255,250,240,0), var(--paper) 55%); }
.lcard .lock span { background: var(--green); color: #fff; font: 800 14px 'Nunito', sans-serif; padding: 10px 14px; border-radius: 99px; text-align: center; }

/* FAQ + footer */
.faq { padding: 8px 0 40px; }
.faq h2 { font-size: 28px; margin-bottom: 14px; }
details { background: #fff; border-radius: 14px; margin-bottom: 10px; box-shadow: 0 1px 8px rgba(80,40,20,.06); }
summary { font-weight: 800; cursor: pointer; padding: 16px 18px; min-height: 54px; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
summary::after { content: '+'; color: var(--red); font-size: 22px; line-height: 1; }
details[open] summary::after { content: '–'; }
details p { margin: 0; padding: 0 18px 16px; color: var(--muted); }
.site-foot { background: #2b211c; color: #d9cbb8; padding: 28px 0 calc(96px + var(--safe)); font-size: 14px; }
.site-foot a { color: #f0dcb0; }

/* Bara flotantă „Scrie scrisoarea” (telefon) */
.float-cta { position: fixed; left: 12px; right: 12px; bottom: calc(12px + var(--safe)); z-index: 40; transform: translateY(150%); transition: transform .25s; }
.float-cta.show { transform: none; }
.float-cta .btn { box-shadow: 0 5px 0 var(--gold-d), 0 10px 30px rgba(0,0,0,.25); }

/* ===== Tabletă / desktop ===== */
@media (min-width: 760px) {
  .hero { padding: 56px 0 64px; }
  .hero .wrap { grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); grid-template-areas: 't l' 'a l'; align-items: center; column-gap: 48px; row-gap: 8px; }
  .h-text { grid-area: t; align-self: end; } .h-act { grid-area: a; align-self: start; } .hero-letter { grid-area: l; }
  .hero-letter { height: 460px; }
  .hero .btn { width: auto; display: inline-flex; padding: 14px 34px; }
  .price-line { text-align: left; }
  .ticks { display: flex; flex-wrap: wrap; } .ticks li { white-space: nowrap; }
  .how ol { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .chips { grid-template-columns: 1fr 1fr; }
  .float-cta { display: none; }
  .site-foot { padding-bottom: 28px; }
}
@media (min-width: 980px) {
  .order { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 36px; }
  .side { display: block; position: sticky; top: 76px; }
  .side .lcard { max-height: calc(100vh - 140px); }
  .nav { position: static; background: none; }
  .step-preview .lcard-wrap { display: none; }
}

/* Pe telefon, previzualizarea din pasul 4 are înălțime limitată ca să rămână la vedere emailul și plata */
.step-preview .lcard { max-height: 520px; }
