/* ==========================================================================
   poveste.md — landing styles
   Layout: warm paper page, 1120px container, alternating Hârtie / Lavandă bands,
   two Noapte "night" bands (cartoon, footer). Lora headlines, Nunito text.
   ========================================================================== */
:root {
  /* palette — brand/brand-identity.md §4 */
  --noapte: #1F2D5C;
  --noapte-deep: #141F42;
  --noapte-soft: #2A3C78;
  --miere: #F6B64A;
  --miere-deep: #D9951F;
  --caisa: #FF8C61;
  --zmeura: #D9497B;
  --menta: #9ADBC9;
  --hartie: #FFF6E9;
  --lavanda: #ECEDF8;
  --cerneala: #1A1C33;
  --cerneala-soft: #4B4E6B;
  --line: rgba(31, 45, 92, .14);

  /* roles */
  --bg: var(--hartie);
  --bg-alt: var(--lavanda);
  --fg: var(--cerneala);
  --fg-muted: var(--cerneala-soft);
  --accent: var(--miere);
  --card: #FFFDF9;

  /* type */
  --font-display: "Lora", Georgia, "Times New Roman", serif;
  --font-text: "Nunito", "Segoe UI", system-ui, -apple-system, sans-serif;

  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 10px 30px rgba(31, 45, 92, .10);
  --shadow-lg: 0 24px 60px rgba(31, 45, 92, .18);
  --wrap: 1120px;
  --gutter-l: max(16px, env(safe-area-inset-left, 0px));
  --gutter-r: max(16px, env(safe-area-inset-right, 0px));
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-text);
  font-size: 17px;
  line-height: 1.55;
  overflow-x: hidden;
}
@media (min-width: 760px) { body { font-size: 18px; } }

img, svg { max-width: 100%; }
[hidden] { display: none !important; }
section, .order-done, .legal details { scroll-margin-top: 88px; }
a { color: var(--noapte); }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 700; line-height: 1.15; margin: 0; color: var(--noapte); text-wrap: balance; }
h1 { font-size: clamp(2.1rem, 5.2vw, 3.5rem); letter-spacing: -.01em; }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); }
h3 { font-size: 1.3rem; }
h4 { font-family: var(--font-text); font-weight: 800; font-size: .95rem; text-transform: uppercase; letter-spacing: .08em; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
small { font-size: .85em; font-weight: 400; color: var(--fg-muted); }

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-left: var(--gutter-l);
  padding-right: var(--gutter-r);
}
.wrap.narrow { max-width: 760px; }

.skip { position: absolute; left: -999px; top: 8px; background: var(--noapte); color: var(--hartie); padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }

:focus-visible { outline: 3px solid var(--miere); outline-offset: 3px; border-radius: 6px; }

.eyebrow {
  font-weight: 800; font-size: .8rem; letter-spacing: .12em; text-transform: uppercase;
  color: var(--caisa); margin-bottom: 10px;
}
.section-dark .eyebrow { color: var(--miere); }
.lead { font-size: 1.15rem; color: var(--fg-muted); max-width: 34em; }
.section-lead { color: var(--fg-muted); max-width: 40em; margin-top: 12px; }
.hint { font-size: .9rem; color: var(--fg-muted); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--font-text); font-weight: 800; font-size: 1rem; line-height: 1;
  padding: 15px 24px; border-radius: 999px; border: 2px solid transparent; cursor: pointer;
  text-decoration: none; white-space: nowrap; transition: transform .15s ease, background .15s ease, box-shadow .15s ease;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--miere); color: var(--noapte); box-shadow: 0 6px 18px rgba(246, 182, 74, .35); }
.btn-primary:hover { background: #FFC45C; box-shadow: 0 8px 22px rgba(246, 182, 74, .45); }
.btn-secondary { background: transparent; color: var(--noapte); border-color: var(--noapte); }
.btn-secondary:hover { background: var(--noapte); color: var(--hartie); }
.btn-sm { padding: 11px 18px; font-size: .95rem; }
.btn-lg { padding: 18px 32px; font-size: 1.1rem; }
.btn-wa { background: #25D366; color: #fff; }
.btn-wa:hover { background: #1fbf5a; }
.btn-tg { background: #2AABEE; color: #fff; }
.btn-tg:hover { background: #1c9ad9; }
.btn-icon { padding: 14px; }
.btn .ico { width: 20px; height: 20px; }
.link-btn { background: none; border: 0; color: var(--noapte); font: inherit; font-weight: 600; text-decoration: underline; cursor: pointer; padding: 6px 0; }

.ico { width: 24px; height: 24px; flex: none; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50;
  background: rgba(255, 246, 233, .9); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 60; background: var(--hartie); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 72px; }
.brand img { display: block; height: 44px; width: auto; }
.nav { display: none; gap: 26px; }
.nav a { text-decoration: none; font-weight: 600; color: var(--noapte); padding: 6px 0; border-bottom: 2px solid transparent; }
.nav a:hover { border-bottom-color: var(--miere); }
/* mobile dropdown panel */
.nav.open {
  display: flex; flex-direction: column; gap: 0;
  position: absolute; left: 0; right: 0; top: 100%;
  background: var(--hartie); border-bottom: 1px solid var(--line); box-shadow: 0 16px 30px rgba(31, 45, 92, .14);
  padding: 8px var(--gutter-r) 12px var(--gutter-l);
}
.nav.open a { padding: 13px 4px; border-bottom: 1px solid var(--line); font-size: 1.05rem; }
.nav.open a:last-child { border-bottom: 0; }
.site-header { position: sticky; }
.header-inner { position: relative; }
.menu-btn {
  display: inline-flex; flex-direction: column; justify-content: center; gap: 5px;
  width: 44px; height: 44px; padding: 10px; border: 0; border-radius: 12px; background: var(--lavanda); cursor: pointer;
}
.menu-bar { display: block; height: 2.5px; border-radius: 2px; background: var(--noapte); transition: transform .2s ease, opacity .2s ease; }
.menu-btn[aria-expanded="true"] .menu-bar:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.menu-btn[aria-expanded="true"] .menu-bar:nth-child(2) { opacity: 0; }
.menu-btn[aria-expanded="true"] .menu-bar:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }
.header-actions { display: flex; align-items: center; gap: 12px; }
.lang { display: inline-flex; background: var(--lavanda); border-radius: 999px; padding: 3px; }
.lang-btn {
  border: 0; background: transparent; font: inherit; font-weight: 800; font-size: .85rem; letter-spacing: .04em;
  padding: 7px 12px; border-radius: 999px; color: var(--noapte); cursor: pointer;
}
.lang-btn[aria-pressed="true"] { background: var(--noapte); color: var(--hartie); }
@media (min-width: 980px) { .nav { display: flex; } .menu-btn { display: none; } }
@media (max-width: 480px) { .header-actions .btn-sm { display: none; } }

/* ---------- hero ---------- */
.hero { padding-block: 40px 56px; position: relative; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: auto -10% -40% auto; width: 60vw; max-width: 720px; aspect-ratio: 1;
  background: radial-gradient(closest-side, rgba(246, 182, 74, .22), transparent 70%); pointer-events: none;
}
.hero-inner { display: grid; gap: 36px; align-items: center; position: relative; }
.hero-copy { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.hero-copy h1 { max-width: 12em; }
.name-form { display: flex; flex-direction: column; gap: 10px; margin-top: 8px; }
.name-form label { font-weight: 800; color: var(--noapte); }
.name-row { display: flex; flex-wrap: wrap; gap: 10px; }
.name-row input {
  flex: 1 1 180px; min-width: 0; font: inherit; font-weight: 600; font-size: 1.1rem; padding: 14px 18px;
  border: 2px solid var(--noapte); border-radius: 999px; background: var(--card); color: var(--fg);
}
.name-row input::placeholder { color: #9a9db5; font-weight: 400; }
.hero-visual { display: flex; flex-direction: column; align-items: center; gap: 14px; min-width: 0; }
.cover { width: min(100%, 380px); height: auto; display: block; }
.cover-caption { font-size: .9rem; color: var(--fg-muted); }
.cover-name { font-style: normal; }
@media (min-width: 860px) {
  .hero { padding-block: 64px 80px; }
  .hero-inner { grid-template-columns: 1.1fr .9fr; gap: 48px; }
}

/* ---------- trust strip ---------- */
.trust { background: var(--noapte); color: var(--hartie); }
.trust-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px 24px; padding-block: 22px; }
.trust-list li { display: flex; align-items: center; gap: 12px; font-weight: 600; font-size: .95rem; line-height: 1.3; min-width: 0; }
.trust-list .ico { color: var(--miere); width: 26px; height: 26px; }
@media (min-width: 860px) { .trust-list { grid-template-columns: repeat(4, 1fr); } }

/* ---------- sections ---------- */
.section { padding-block: 64px; }
.section-alt { background: var(--bg-alt); }
.section-dark { background: var(--noapte); color: var(--hartie); }
.section-dark h2, .section-dark h3 { color: var(--hartie); }
.section-dark p { color: rgba(255, 246, 233, .85); }
@media (min-width: 860px) { .section { padding-block: 96px; } }

/* steps */
.steps { display: grid; gap: 28px; margin-top: 36px; counter-reset: step; }
.step { position: relative; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.step-icon { position: relative; width: 64px; height: 64px; border-radius: 20px; background: var(--card); box-shadow: var(--shadow); display: grid; place-items: center; color: var(--noapte); }
.step-icon svg { width: 30px; height: 30px; }
.step-n { position: absolute; top: -10px; right: -10px; width: 28px; height: 28px; border-radius: 50%; background: var(--miere); color: var(--noapte); font-weight: 800; font-size: .85rem; display: grid; place-items: center; }
.step p { color: var(--fg-muted); }
@media (min-width: 760px) { .steps { grid-template-columns: repeat(3, 1fr); gap: 36px; } }

/* products */
.products { display: grid; gap: 20px; margin-top: 36px; }
.product {
  background: var(--card); border-radius: var(--radius); padding: 26px; display: flex; flex-direction: column; gap: 16px;
  box-shadow: var(--shadow); border: 2px solid transparent; min-width: 0;
}
.product-featured { border-color: var(--miere); position: relative; }
.product-head { display: flex; align-items: center; gap: 12px; }
.product-head .ico { color: var(--caisa); width: 28px; height: 28px; }
.product-desc { color: var(--fg-muted); }
.features { display: flex; flex-direction: column; gap: 8px; font-size: .95rem; }
.features li { padding-left: 26px; position: relative; }
.features li::before { content: ""; position: absolute; left: 0; top: .35em; width: 16px; height: 16px; border-radius: 50%; background: var(--menta); }
.features li::after { content: ""; position: absolute; left: 4px; top: calc(.35em + 4px); width: 8px; height: 5px; border-left: 2px solid var(--noapte); border-bottom: 2px solid var(--noapte); transform: rotate(-45deg); }
.price-row { margin-top: auto; display: flex; flex-direction: column; gap: 8px; }
.badge { display: inline-block; font-size: .72rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; padding: 5px 10px; border-radius: 999px; align-self: flex-start; }
.badge-launch { background: var(--zmeura); color: #fff; }
.price { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.price-now { font-family: var(--font-display); font-size: 2.2rem; color: var(--noapte); font-variant-numeric: tabular-nums; }
.price-now small { font-family: var(--font-text); font-size: 1rem; font-weight: 800; color: var(--noapte); }
.price-then { color: var(--fg-muted); font-size: .95rem; }
.product .btn { align-self: stretch; }
.delivery-note { margin-top: 24px; color: var(--fg-muted); font-size: .95rem; max-width: 60em; }
@media (min-width: 860px) { .products { grid-template-columns: repeat(3, 1fr); } }

/* stories */
.stories { display: grid; gap: 22px; margin-top: 36px; }
.story { background: var(--card); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column; min-width: 0; }
.scene { display: block; width: 100%; height: auto; }
.story-body { padding: 18px 20px 22px; display: flex; flex-direction: column; gap: 8px; }
.story-meta { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { font-size: .75rem; font-weight: 800; letter-spacing: .04em; padding: 4px 10px; border-radius: 999px; background: var(--menta); color: var(--noapte); }
.chip-soft { background: var(--lavanda); }
.chip-berry { background: var(--zmeura); color: #fff; }
.story h3 { font-style: italic; }
.story p { color: var(--fg-muted); font-size: .95rem; }
.stories-note { margin-top: 24px; color: var(--fg-muted); }
@media (min-width: 640px) { .stories { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 980px) { .stories { grid-template-columns: repeat(3, 1fr); } }

/* two-column feature blocks */
.two-col { display: grid; gap: 36px; align-items: center; }
.col-text { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.col-text .btn { align-self: flex-start; margin-top: 8px; }
.col-visual { min-width: 0; display: flex; justify-content: center; }
@media (min-width: 860px) {
  .two-col { grid-template-columns: 1fr 1fr; gap: 56px; }
  .two-col-reverse .col-visual { order: -1; }
}
.checklist { display: flex; flex-direction: column; gap: 10px; }
.checklist li { display: flex; align-items: center; gap: 10px; font-weight: 600; }
.checklist .ico { color: var(--noapte); background: var(--menta); border-radius: 50%; padding: 4px; }

/* cartoon phone */
.phone { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.phone-svg { width: min(100%, 260px); height: auto; display: block; filter: drop-shadow(0 24px 40px rgba(0, 0, 0, .35)); }
.phone figcaption { font-size: .85rem; color: rgba(255, 246, 233, .7); letter-spacing: .06em; text-transform: uppercase; font-weight: 800; }

/* launch block */
.launch { display: grid; gap: 32px; }
.launch-text { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.launch-text p:not(.eyebrow) { color: var(--fg-muted); }
.promises { display: grid; gap: 14px; }
.promises li { background: var(--card); border-radius: var(--radius-sm); padding: 18px 20px; display: flex; flex-direction: column; gap: 4px; border-left: 4px solid var(--miere); min-width: 0; }
.promises strong { font-family: var(--font-display); color: var(--noapte); font-size: 1.1rem; }
.promises span { color: var(--fg-muted); font-size: .95rem; }
@media (min-width: 860px) { .launch { grid-template-columns: 1fr 1.2fr; gap: 56px; align-items: start; } .promises { grid-template-columns: 1fr 1fr; } }

/* faq */
.faq { margin-top: 28px; display: flex; flex-direction: column; gap: 10px; }
.faq details { background: var(--card); border-radius: var(--radius-sm); padding: 0 20px; box-shadow: 0 2px 10px rgba(31, 45, 92, .06); }
.faq summary { cursor: pointer; font-weight: 800; color: var(--noapte); padding: 16px 32px 16px 0; position: relative; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 0; top: 50%; transform: translateY(-50%); font-size: 1.4rem; color: var(--caisa); font-weight: 400; }
.faq details[open] summary::after { content: "–"; }
.faq details p { padding: 0 0 18px; color: var(--fg-muted); }

/* ---------- order form ---------- */
.order { margin-top: 32px; display: grid; gap: 18px; background: var(--card); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; border: 0; padding: 0; margin: 0; }
.field label, .field legend { font-weight: 800; color: var(--noapte); font-size: .95rem; padding: 0; }
.field input, .field select, .field textarea {
  font: inherit; font-size: 1rem; padding: 12px 14px; border: 2px solid var(--line); border-radius: var(--radius-sm);
  background: #fff; color: var(--fg); width: 100%; min-width: 0;
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--noapte); outline: none; }
.field textarea { resize: vertical; }
.choices { display: flex; flex-wrap: wrap; gap: 8px; }
.choice { position: relative; display: inline-flex; align-items: center; cursor: pointer; }
.choice input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.choice > span { display: inline-flex; align-items: center; padding: 10px 16px; border-radius: 999px; border: 2px solid var(--line); font-weight: 600; background: #fff; transition: background .15s, border-color .15s; }
.choice input:checked + span { background: var(--noapte); color: var(--hartie); border-color: var(--noapte); }
.choice input:focus-visible + span { outline: 3px solid var(--miere); outline-offset: 2px; }
.choices-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.choice-card { display: flex; }
.choice-card > span { flex: 1; flex-direction: column; align-items: flex-start; gap: 2px; border-radius: var(--radius-sm); padding: 12px 14px; }
.choice-card em { font-style: normal; font-size: .85rem; opacity: .8; }
.submit-row { gap: 12px; margin-top: 6px; }
.submit-row .btn { align-self: stretch; }
.form-error { color: var(--zmeura); font-weight: 600; }
@media (min-width: 640px) {
  .order { grid-template-columns: 1fr 1fr; padding: 32px; }
  .field-full { grid-column: 1 / -1; }
  .submit-row .btn { align-self: flex-start; }
}
@media (max-width: 400px) { .choices-cards { grid-template-columns: 1fr; } }

/* thank-you state */
.order-done { margin-top: 32px; background: var(--card); border-radius: var(--radius); padding: 32px 24px; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 16px; align-items: flex-start; }
.done-mark { width: 56px; height: 56px; border-radius: 50%; background: var(--menta); display: grid; place-items: center; color: var(--noapte); }
.done-mark svg { width: 30px; height: 30px; }
.done-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.done-copy { width: 100%; }
.done-copy summary { cursor: pointer; font-weight: 600; color: var(--fg-muted); }
.done-copy pre { white-space: pre-wrap; font-family: var(--font-text); font-size: .9rem; background: var(--lavanda); padding: 14px; border-radius: var(--radius-sm); margin: 10px 0 0; }

/* ---------- footer ---------- */
.site-footer { background: var(--noapte); color: rgba(255, 246, 233, .85); padding-block: 56px 100px; }
.footer-grid { display: grid; gap: 32px; }
.footer-brand { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.footer-brand img { height: 44px; width: auto; }
.footer-city { font-size: .9rem; opacity: .7; }
.footer-col { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.footer-col h4 { color: var(--miere); }
.site-footer a { color: var(--hartie); text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.contact-list, .footer-links { display: flex; flex-direction: column; gap: 10px; }
.contact-list li { display: flex; align-items: center; gap: 10px; }
.contact-list .ico { color: var(--miere); width: 20px; height: 20px; }
.legal { margin-top: 40px; padding-top: 24px; border-top: 1px solid rgba(255, 246, 233, .15); display: flex; flex-direction: column; gap: 10px; font-size: .9rem; }
.legal details { max-width: 70em; }
.legal summary { cursor: pointer; color: var(--hartie); font-weight: 600; }
.legal details p { margin-top: 8px; opacity: .8; }
.copyright { opacity: .6; margin-top: 8px; }
@media (min-width: 760px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; } }

/* ---------- sticky mobile CTA ---------- */
.sticky-cta {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
  display: flex; gap: 10px; align-items: center;
  padding: 10px var(--gutter-r) calc(10px + env(safe-area-inset-bottom, 0px)) var(--gutter-l);
  background: rgba(255, 246, 233, .96); border-top: 1px solid var(--line); backdrop-filter: blur(10px);
  transform: translateY(110%); transition: transform .25s ease;
}
.sticky-cta.visible { transform: translateY(0); }
.sticky-cta .btn-primary { flex: 1; }
@media (min-width: 860px) { .sticky-cta { display: none; } }

/* ---------- motion ---------- */
.float { animation: float 4s ease-in-out infinite; transform-origin: center; }
.float-slow { animation: float 5.5s ease-in-out infinite; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
.twinkle circle { animation: twinkle 3s ease-in-out infinite; }
.twinkle circle:nth-child(2n) { animation-delay: .8s; }
.twinkle circle:nth-child(3n) { animation-delay: 1.6s; }
@keyframes twinkle { 0%, 100% { opacity: .35; } 50% { opacity: 1; } }
.reveal { opacity: 1; transform: none; }
.js .reveal { opacity: 0; transform: translateY(12px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .float, .float-slow, .twinkle circle { animation: none; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .btn, .sticky-cta { transition: none; }
}

/* order form: photos + honeypot */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.field input[type="file"] { padding: 10px; background: var(--card); }
.photo-list { color: var(--noapte); }
.btn.is-busy { opacity: .6; pointer-events: none; }
