/* app.css — Moșul Secret · UI curat & modern, ca o aplicație. Manrope, accent verde. */

:root {
  --accent: #DE1C2B;       /* roșu de Crăciun (Coca-Cola) */
  --accent-600: #C01222;
  --accent-700: #9E0C1A;
  --accent-50: #FDECEE;
  --accent-100: #F8D3D8;

  --ink: #16211B;
  --ink-2: #2A3730;
  --muted: #6C7169;
  --bg: #FFF8F7;        /* alb cald */
  --card: #FFFFFF;
  --line: #F0E2E3;
  --line-2: #F7ECED;

  /* accente de sărbătoare */
  --gold: #E6B23E;
  --evergreen: #E01B2E;      /* banda hero = roșu */
  --evergreen-700: #A8101D;

  --danger: #C7382B;
  --danger-50: #FBEEEC;

  --r: 14px;
  --r-sm: 10px;
  --r-xs: 8px;
  --sh-sm: 0 1px 2px rgba(16,26,20,.05), 0 1px 3px rgba(16,26,20,.05);
  --sh: 0 12px 32px -14px rgba(16,26,20,.18);
  --sh-lg: 0 24px 60px -24px rgba(16,26,20,.28);
  --ring: 0 0 0 4px rgba(21,137,78,.15);

  --font: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; font-family: var(--font); color: var(--ink); background: var(--bg);
  font-size: 1rem; line-height: 1.6; -webkit-font-smoothing: antialiased; overflow-x: hidden;
}

h1, h2, h3 { margin: 0 0 .5em; font-weight: 800; letter-spacing: -.025em; line-height: 1.12; color: var(--ink); }
h1 { font-size: clamp(2rem, 6vw, 3.1rem); }
h2 { font-size: clamp(1.45rem, 3.6vw, 2rem); letter-spacing: -.02em; }
h3 { font-size: 1.08rem; font-weight: 700; letter-spacing: -.01em; }
p { margin: 0 0 1rem; }
a { color: var(--accent-600); text-decoration: none; }
a:hover { text-decoration: underline; }

.container { max-width: 960px; margin: 0 auto; padding: 28px 20px 72px; }
.muted, .note { color: var(--muted); }
.note { font-size: .88rem; }
.opt { color: var(--muted); font-weight: 500; font-size: .8rem; }

/* ---------- header ---------- */
.site-head {
  position: sticky; top: 0; z-index: 30;
  display: flex; align-items: center; justify-content: space-between;
  padding: 13px clamp(16px, 4vw, 28px);
  background: rgba(251,252,251,.85); backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid var(--line);
}
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); }
.brand:hover { text-decoration: none; }
.brand .logo { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center;
  background: linear-gradient(160deg, var(--accent), var(--accent-700)); box-shadow: var(--sh-sm); }
.brand b { font-weight: 800; font-size: 1.1rem; letter-spacing: -.02em; }
.head-cta { font-weight: 700; font-size: .9rem; color: var(--ink); padding: 8px 15px; border-radius: 999px; border: 1px solid var(--line); background: var(--card); transition: .15s; }
.head-cta:hover { border-color: var(--accent); color: var(--accent-600); text-decoration: none; }

/* ---------- butoane ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .5em; justify-content: center;
  font-family: var(--font); font-weight: 700; font-size: .98rem; cursor: pointer; text-decoration: none;
  color: #fff; background: var(--accent); border: none; padding: 12px 22px; border-radius: var(--r-sm);
  box-shadow: 0 1px 2px rgba(11,84,48,.3), 0 8px 20px -10px rgba(21,137,78,.55); transition: transform .15s, box-shadow .15s, background .15s;
}
.btn:hover { background: var(--accent-600); transform: translateY(-1px); text-decoration: none; box-shadow: 0 12px 26px -10px rgba(21,137,78,.6); }
.btn:active { transform: translateY(0); }
.btn-lg { padding: 14px 28px; font-size: 1.05rem; }
.btn.secondary { background: var(--card); color: var(--ink); border: 1px solid var(--line); box-shadow: var(--sh-sm); }
.btn.secondary:hover { background: #fff; border-color: var(--accent); color: var(--accent-600); }
.btn.ghost { background: transparent; color: var(--accent-600); box-shadow: none; }
.btn.ghost:hover { background: var(--accent-50); }
.btn.danger { background: var(--danger); box-shadow: 0 8px 20px -10px rgba(199,56,43,.5); }
.btn.danger:hover { background: #a92e23; }
.btn-link { font-weight: 700; color: var(--accent-600); background: none; border: none; cursor: pointer; padding: 0; font-family: var(--font); font-size: .98rem; }
.btn-mini { font: inherit; font-family: var(--font); font-size: .8rem; font-weight: 600; padding: 6px 11px; border-radius: var(--r-xs); border: 1px solid var(--line); background: var(--card); color: var(--ink-2); cursor: pointer; transition: .15s; }
.btn-mini:hover { border-color: var(--accent); color: var(--accent-600); }
.btn-mini.danger { background: var(--danger-50); border-color: #ecc6c1; color: var(--danger); }

.badge { display: inline-flex; align-items: center; gap: 7px; font-size: .82rem; font-weight: 700;
  color: var(--accent-700); background: var(--accent-50); border: 1px solid var(--accent-100); padding: 6px 13px; border-radius: 999px; }
.badge .d { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }

/* ---------- HERO festiv (bandă verde-brad) ---------- */
.hero-band {
  position: relative; overflow: hidden; text-align: center; color: #fff;
  width: 100vw; margin-left: calc(50% - 50vw); margin-top: -28px;
  min-height: clamp(580px, 94vh, 860px); display: flex; align-items: center;
  padding: clamp(70px, 12vw, 120px) 20px clamp(130px, 20vw, 240px);
  background:
    radial-gradient(42% 34% at 76% 20%, rgba(255,232,180,.45), transparent 62%),
    linear-gradient(180deg, #250810 0%, #6B0E1A 46%, #A4141F 100%);
}
.hero-band::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 90px; z-index: 6; background: linear-gradient(to bottom, transparent, var(--bg)); }
.hero-inner { position: relative; z-index: 5; max-width: 680px; margin: 0 auto; }

/* ----- scenă: lună, stele, brazi, dealuri, ghirlandă ----- */
.moon { position: absolute; top: 10%; right: 16%; width: clamp(80px, 14vw, 140px); height: clamp(80px, 14vw, 140px);
  border-radius: 50%; background: radial-gradient(circle at 38% 35%, #FFF7E4, #FBE6A8 60%, #F2CE78);
  box-shadow: 0 0 60px 20px rgba(255,235,190,.45); z-index: 1; will-change: transform; }
.stars { position: absolute; inset: 0 0 40% 0; z-index: 1; pointer-events: none; will-change: transform; }
.stars i { position: absolute; width: 2px; height: 2px; border-radius: 50%; background: #fff; opacity: .8; box-shadow: 0 0 4px #fff; }
.pines { position: absolute; left: 0; right: 0; bottom: 8%; width: 100%; height: auto; z-index: 2; will-change: transform; }
.hills { position: absolute; left: 0; right: 0; bottom: -1px; width: 100%; height: auto; z-index: 4; }
.garland { position: absolute; top: 0; left: 0; right: 0; height: 60px; z-index: 6; pointer-events: none; }

/* ninsoare globală (canvas) */
#snow-canvas { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 40; pointer-events: none; }

/* reveal la scroll */
.js .reveal-on-scroll { opacity: 0; transform: translateY(26px); transition: opacity .7s cubic-bezier(.2,.7,.2,1), transform .7s cubic-bezier(.2,.7,.2,1); }
.reveal-on-scroll.in { opacity: 1; transform: none; }
.reveal-on-scroll.s1 { transition-delay: .08s; } .reveal-on-scroll.s2 { transition-delay: .16s; }
.reveal-on-scroll.s3 { transition-delay: .24s; } .reveal-on-scroll.s4 { transition-delay: .32s; }

/* beculețe multicolore care clipesc */
.garland .bulb { animation: twinkle 2.4s ease-in-out infinite; }
@keyframes twinkle { 0%, 100% { opacity: 1; } 50% { opacity: .28; } }

/* iconițe festive colorate (cringe christmas) */
.feature.c-red .ic { color: #DE1C2B; background: #FDECEE; }
.feature.c-green .ic { color: #0E7A45; background: #E6F4EC; }
.feature.c-gold .ic { color: #C98A17; background: #FBF1DA; }

/* dungă de acadea */
.candy { height: 8px; width: 100%; border-radius: 999px;
  background: repeating-linear-gradient(45deg, #DE1C2B 0 14px, #fff 14px 28px, #0E7A45 28px 42px, #fff 42px 56px); }

/* accente festive pe secțiuni */
.section-head .eyebrow { color: #0E7A45; }
.step .n { color: #0E7A45; background: #E6F4EC; border-color: #CDE8D7; }
.hero-art { width: clamp(96px, 22vw, 132px); height: auto; margin: 0 auto 20px; display: block; filter: drop-shadow(0 16px 26px rgba(0,0,0,.3)); animation: floaty 5s ease-in-out infinite; }
@keyframes floaty { 0%,100% { transform: translateY(0) rotate(-2deg); } 50% { transform: translateY(-9px) rotate(2deg); } }
.hero-band h1 { color: #fff; margin: 8px 0 .35em; }
.hero-band h1 .hl { color: var(--gold); }
.hero-band .lead { font-size: clamp(1.05rem, 2.4vw, 1.22rem); color: rgba(255,255,255,.85); max-width: 500px; margin: 0 auto 28px; }
.hero-cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.hero-cta .btn { background: #fff; color: var(--evergreen-700); box-shadow: 0 10px 26px -10px rgba(0,0,0,.4); }
.hero-cta .btn:hover { background: #fff; color: var(--evergreen-700); filter: brightness(.97); }
.hero-cta .btn.ghost { background: transparent; color: #fff; border: 1.5px solid rgba(255,255,255,.5); box-shadow: none; }
.hero-cta .btn.ghost:hover { background: rgba(255,255,255,.12); }
.hero-note { margin-top: 18px; font-size: .9rem; color: rgba(255,255,255,.7); }
.badge-frost { display: inline-flex; align-items: center; gap: 8px; font-size: .82rem; font-weight: 700;
  color: #fff; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.25); padding: 7px 14px; border-radius: 999px; backdrop-filter: blur(4px); }
.badge-frost .d { width: 6px; height: 6px; border-radius: 50%; background: var(--gold); }

/* zăpadă discretă */
.snow { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.snow i { position: absolute; top: -8%; border-radius: 50%; background: #fff; opacity: .7; animation: snowfall linear infinite; }
@keyframes snowfall { to { transform: translateY(118vh) translateX(16px); opacity: .1; } }

/* ---------- secțiuni ---------- */
.section { margin: clamp(44px, 8vw, 84px) 0; }
.section-head { text-align: center; max-width: 560px; margin: 0 auto 40px; }
.section-head .eyebrow { display: inline-block; font-size: .8rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); margin-bottom: 10px; }
.section-head p { color: var(--muted); }

.steps { display: grid; gap: 14px; counter-reset: s; }
@media (min-width: 720px) { .steps { grid-template-columns: repeat(2, 1fr); } }
.step { position: relative; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 22px 22px 22px 64px; box-shadow: var(--sh-sm); transition: box-shadow .2s, transform .2s, border-color .2s; }
.step:hover { box-shadow: var(--sh); transform: translateY(-2px); border-color: var(--line); }
.step .n { position: absolute; left: 20px; top: 22px; width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; font-weight: 800; font-size: .95rem; color: var(--accent-700); background: var(--accent-50); border: 1px solid var(--accent-100); }
.step h3 { margin-bottom: 3px; }
.step p { margin: 0; color: var(--muted); font-size: .95rem; }

.features { display: grid; gap: 16px; }
@media (min-width: 720px) { .features { grid-template-columns: repeat(3, 1fr); } }
.feature { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 26px 24px; box-shadow: var(--sh-sm); transition: box-shadow .2s, transform .2s; }
.feature:hover { box-shadow: var(--sh); transform: translateY(-2px); }
.feature .ic { width: 42px; height: 42px; border-radius: 11px; display: grid; place-items: center; background: var(--accent-50); color: var(--accent); margin-bottom: 14px; }
.feature .ic svg { width: 22px; height: 22px; }
.feature h3 { margin-bottom: 5px; }
.feature p { margin: 0; color: var(--muted); font-size: .94rem; }

.cta-band { text-align: center; background: linear-gradient(165deg, var(--accent), var(--accent-700)); color: #fff; border-radius: 24px; padding: clamp(40px, 7vw, 64px) 24px; box-shadow: var(--sh-lg); }
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255,255,255,.88); max-width: 440px; margin: 0 auto 26px; }
.cta-band .btn { background: #fff; color: var(--accent-700); box-shadow: 0 10px 24px -10px rgba(0,0,0,.3); }
.cta-band .btn:hover { background: #fff; color: var(--accent-700); filter: brightness(.97); }

/* ---------- carduri / formular ---------- */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 24px; margin: 18px 0; box-shadow: var(--sh-sm); }
.privacy-note { background: var(--accent-50); border: 1px solid var(--accent-100); border-radius: var(--r-sm); padding: 12px 15px; font-size: .94rem; color: var(--accent-700); }

.form { display: flex; flex-direction: column; gap: 15px; margin-top: 14px; }
.form label { display: flex; flex-direction: column; gap: 7px; font-weight: 700; font-size: .9rem; color: var(--ink-2); }
.form input, .form select, .form textarea {
  font: inherit; font-weight: 500; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--r-sm);
  background: var(--card); color: var(--ink); width: 100%; transition: border-color .15s, box-shadow .15s;
}
.form input::placeholder, .form textarea::placeholder { color: #9aa49d; font-weight: 500; }
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--accent); box-shadow: var(--ring); }
.form textarea { resize: vertical; }
fieldset { border: 1px solid var(--line); border-radius: var(--r-sm); }
.row2, .row3 { display: grid; grid-template-columns: 1fr; gap: 15px; }
.inline-form { flex-flow: row wrap; align-items: center; }
.inline-form input, .inline-form select { width: auto; flex: 1 1 150px; }
@media (min-width: 560px) { .row2 { grid-template-columns: 1fr 1fr; } .row3 { grid-template-columns: 1fr 1fr 1fr; } }

/* ---------- tabel / listă ---------- */
.tbl { width: 100%; border-collapse: collapse; font-size: .94rem; }
.tbl th, .tbl td { text-align: left; padding: 11px 8px; border-bottom: 1px solid var(--line-2); vertical-align: middle; }
.tbl th { font-size: .72rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); font-weight: 700; }
.linkbox { font: inherit; font-size: .8rem; width: 150px; max-width: 42vw; padding: 7px 10px; border: 1px solid var(--line); border-radius: var(--r-xs); background: var(--bg); }
.ok-dot { color: var(--accent); font-weight: 700; }
.excl-list { list-style: none; padding: 0; margin: 0 0 14px; display: flex; flex-direction: column; gap: 8px; }
.excl-list li { background: var(--bg); border: 1px solid var(--line); border-radius: var(--r-sm); padding: 10px 13px; display: flex; align-items: center; justify-content: space-between; font-weight: 600; }
.draw-card { background: var(--accent-50); border-color: var(--accent-100); }
.danger-zone { border-color: #ecc6c1; }

/* ---------- vot (bare) ---------- */
.vote-row { display: flex; align-items: center; gap: 12px; }
.vote-row .bar { flex: 1; height: 8px; background: var(--line-2); border-radius: 999px; overflow: hidden; }
.vote-row .bar span { display: block; height: 100%; background: var(--accent); border-radius: 999px; }

/* ---------- dezvăluire (clean tap-to-reveal) ---------- */
.reveal { text-align: center; }
.reveal-kicker { font-size: .82rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); margin: 0 0 6px; }
.reveal-name { font-size: clamp(2rem, 7vw, 2.9rem); font-weight: 800; letter-spacing: -.03em; color: var(--ink); margin: 2px 0 14px; }
.wish { background: var(--bg); border: 1px solid var(--line); border-radius: var(--r-sm); padding: 15px; text-align: left; }
.reveal-card { max-width: 420px; margin: 8px auto 0; }
.reveal-cover { border: 1px solid var(--accent-100); background: var(--accent-50); border-radius: var(--r); padding: 30px 24px; cursor: pointer; transition: transform .15s, box-shadow .2s; }
.reveal-cover:hover { transform: translateY(-2px); box-shadow: var(--sh); }
.reveal-cover .blurname { font-size: clamp(1.8rem, 7vw, 2.6rem); font-weight: 800; letter-spacing: -.03em; color: var(--ink); filter: blur(12px); user-select: none; margin: 6px 0 14px; }
.reveal-cover .hint { color: var(--accent-700); font-weight: 700; }
.reveal-done { animation: pop .55s cubic-bezier(.2,1.3,.4,1) both; }
@keyframes pop { from { opacity: 0; transform: scale(.96); } to { opacity: 1; transform: none; } }

/* ---------- chat ---------- */
.chat { display: flex; flex-direction: column; gap: 9px; margin: 12px 0; }
.bubble { max-width: 85%; padding: 10px 14px; border-radius: 14px; display: flex; flex-direction: column; gap: 2px; }
.bubble .who { font-size: .7rem; font-weight: 800; opacity: .7; }
.bubble .time { font-size: .66rem; opacity: .55; align-self: flex-end; }
.bubble.me { align-self: flex-end; background: var(--accent); color: #fff; border-bottom-right-radius: 5px; }
.bubble.them { align-self: flex-start; background: var(--bg); border: 1px solid var(--line); border-bottom-left-radius: 5px; }

/* ---------- flash ---------- */
.flash { padding: 13px 16px; border-radius: var(--r-sm); margin: 0 0 16px; font-weight: 600; display: flex; gap: 10px; align-items: center; box-shadow: var(--sh-sm); }
.flash-ok { background: var(--accent-50); color: var(--accent-700); border: 1px solid var(--accent-100); }
.flash-err { background: var(--danger-50); color: #9a271d; border: 1px solid #ecc6c1; }

/* ---------- prose / legal ---------- */
.prose { max-width: 680px; margin: 0 auto; }
.prose h2 { margin-top: 28px; } .prose ul { padding-left: 22px; } .prose li { margin-bottom: 6px; }

/* ---------- reclamă ---------- */
.ad { margin: 40px auto 8px; text-align: center; max-width: 728px; }
.ad-label { display: block; font-size: .66rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); margin-bottom: 4px; }

/* ---------- footer ---------- */
.site-foot { border-top: 1px solid var(--line); padding: 30px 20px; color: var(--muted); font-size: .9rem; text-align: center; background: var(--card); }
.foot-nav { display: flex; gap: 20px; justify-content: center; flex-wrap: wrap; margin-bottom: 10px; }
.foot-nav a { color: var(--ink-2); font-weight: 600; }
.foot-nav a:hover { color: var(--accent-600); }

/* ---------- animații ---------- */
@keyframes fadeUp { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.fade-up { animation: fadeUp .6s both; }
.fade-up.d1 { animation-delay: .07s; } .fade-up.d2 { animation-delay: .14s; } .fade-up.d3 { animation-delay: .21s; }
.confetti-piece { position: fixed; top: -14px; width: 9px; height: 14px; z-index: 60; pointer-events: none; animation-name: confettiFall; animation-timing-function: ease-in; animation-fill-mode: forwards; }
@keyframes confettiFall { to { transform: translateY(105vh) rotate(680deg); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }

/* ---------- dark ---------- */
@media (prefers-color-scheme: dark) {
  :root {
    --ink: #F2E9EA; --ink-2: #D8C9CB; --muted: #A49698; --bg: #140E0F; --card: #1D1618;
    --line: #2E2224; --line-2: #261D1F; --accent: #F0444F; --accent-600: #F3626B; --accent-700: #F7B9BF;
    --accent-50: #2A1416; --accent-100: #3C1D20;
    --sh-sm: 0 1px 2px rgba(0,0,0,.4); --sh: 0 14px 34px -16px rgba(0,0,0,.6); --sh-lg: 0 24px 60px -24px rgba(0,0,0,.7);
  }
  .site-head { background: rgba(20,14,15,.82); }
  .head-cta { background: var(--card); }
  .cta-band { background: linear-gradient(165deg, #c01222, #7a0a14); }
  .cta-band .btn { background: #fff; color: #9E0C1A; }
  .flash-err { background: #2a1512; color: #f0b0a8; border-color: #4a221d; }
}
