/* Atlas România: aceeași identitate ca aplicația (fundal închis, accent chihlimbar, logo-ul „R”). */
:root {
  --bg: #0f1417;
  --bg-2: #141b1f;
  --card: #182025;
  --line: rgba(255, 255, 255, 0.09);
  --line-strong: rgba(255, 255, 255, 0.18);
  --text: #e8e4dc;
  --muted: #9aa3a6;
  --accent: #e0a547;
  --accent-ink: #1a1205;
  --accent-soft: rgba(224, 165, 71, 0.14);
  --ok: #6cc28c;
  --radius: 14px;
  --wrap: 1120px;
  --gutter: 20px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.6 var(--font); overflow-x: hidden; }
img { max-width: 100%; display: block; }
a { color: var(--accent); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { line-height: 1.15; margin: 0 0 0.5em; letter-spacing: -0.01em; text-wrap: balance; }
h2 { font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.3rem); }
h3 { font-size: 1.1rem; }
p { margin: 0 0 1em; text-wrap: pretty; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.muted { color: var(--muted); }
.eyebrow { color: var(--accent); font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase; font-weight: 700; margin-bottom: 0.6em; }
.skip { position: absolute; left: -9999px; top: 8px; background: var(--accent); color: var(--accent-ink); padding: 8px 12px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }

/* Ce nu e încă hotărât (preț, vânzător, contact): se vede ca să nu fie uitat înainte de lansare. */
.todo { border: 1px dashed var(--accent); color: var(--accent); border-radius: 6px; padding: 0 6px; font-style: normal; -webkit-box-decoration-break: clone; box-decoration-break: clone; }

/* ---------- butoane ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 0 20px; border-radius: 12px; border: 1px solid var(--line-strong); background: rgba(255, 255, 255, 0.04); color: var(--text); font: inherit; font-weight: 650; text-decoration: none; cursor: pointer; transition: background 0.15s, border-color 0.15s, transform 0.15s; }
.btn:hover { border-color: var(--text); text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.btn.primary:hover { background: #ebb560; border-color: #ebb560; }
.btn.small { min-height: 38px; padding: 0 14px; font-size: 0.92rem; border-radius: 10px; }
.btn[aria-disabled="true"] { opacity: 0.6; cursor: default; }

/* ---------- antet ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(15, 20, 23, 0.86); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; gap: 16px; height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; white-space: nowrap; }
.brand-mark { width: 32px; height: 32px; border-radius: 9px; background: var(--accent); color: var(--accent-ink); display: grid; place-items: center; font-weight: 800; font-size: 17px; flex: none; }
.brand-text { letter-spacing: 0.1em; font-size: 0.86rem; }
.brand-text b { color: var(--accent); }
.nav { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.nav a:not(.btn) { color: var(--muted); text-decoration: none; padding: 8px 10px; border-radius: 8px; font-size: 0.95rem; }
.nav a:not(.btn):hover, .nav a[aria-current="page"] { color: var(--text); }
.nav .btn { margin-left: 6px; }
@media (max-width: 720px) { .nav a:not(.btn) { display: none; } }

/* ---------- prima secțiune: harta care trece prin epoci ---------- */
.hero { position: relative; min-height: min(88vh, 820px); min-height: min(88svh, 820px); display: flex; align-items: flex-end; overflow: hidden; background: #1b2226; isolation: isolate; }
.hero-map { position: absolute; inset: 0; z-index: -1; --x: 50%; touch-action: pan-y; cursor: ew-resize; user-select: none; -webkit-user-select: none; }
.hero-map img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.hero-map img.old { clip-path: inset(0 calc(100% - var(--x)) 0 0); }
.hero-map::after { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(15, 20, 23, 0.35) 0%, rgba(15, 20, 23, 0) 18%, rgba(15, 20, 23, 0) 40%, rgba(15, 20, 23, 0.72) 66%, rgba(15, 20, 23, 0.94) 88%, var(--bg) 100%); }
.hero-line { position: absolute; top: 0; bottom: 0; left: var(--x); width: 2px; margin-left: -1px; background: var(--accent); box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.25); z-index: 1; pointer-events: none; }
.hero-handle { position: absolute; top: var(--hy, 25%); left: 50%; transform: translate(-50%, -50%); width: 46px; height: 46px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); display: grid; place-items: center; box-shadow: 0 6px 20px rgba(0, 0, 0, 0.45); }
.hero-handle svg { width: 24px; height: 24px; }
.hero-tag { position: absolute; top: 18px; z-index: 1; font-size: 0.8rem; font-weight: 700; letter-spacing: 0.06em; white-space: nowrap; padding: 5px 10px; border-radius: 8px; background: rgba(15, 20, 23, 0.82); border: 1px solid var(--line-strong); pointer-events: none; transition: opacity 0.2s; }
.hero-tag.old { left: var(--gutter); color: var(--accent); }
.hero-tag.new { right: var(--gutter); }
.hero-map[data-x-low] .hero-tag.old, .hero-map[data-x-high] .hero-tag.new { opacity: 0; }
.hero-range { position: absolute; inset: auto 0 0 0; width: 100%; opacity: 0; height: 1px; pointer-events: none; }
.hero-range:focus-visible + .hero-line .hero-handle { outline: 3px solid var(--text); outline-offset: 3px; }
.hero-copy { position: relative; padding-bottom: clamp(36px, 7vh, 72px); padding-top: 160px; width: 100%; pointer-events: none; }
.hero-copy > * { pointer-events: auto; }
.hero h1 { font-size: clamp(2.4rem, 1.6rem + 4vw, 4.6rem); font-weight: 800; letter-spacing: -0.02em; margin-bottom: 0.25em; text-shadow: 0 2px 24px rgba(0, 0, 0, 0.5); }
.hero h1 span { color: var(--accent); }
.hero .lead { font-size: clamp(1.05rem, 0.95rem + 0.5vw, 1.3rem); max-width: 34em; color: #f1ede6; text-shadow: 0 1px 14px rgba(0, 0, 0, 0.7); }
.hero .actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.hero .credit { margin-top: 22px; font-size: 0.78rem; color: var(--muted); max-width: 48em; }
.hero .credit b { color: var(--text); font-weight: 600; }

/* ---------- secțiuni ---------- */
.section { padding: clamp(56px, 9vw, 104px) 0; }
.section.alt { background: var(--bg-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { max-width: 40em; margin-bottom: 36px; }
.section-head p { color: var(--muted); font-size: 1.05rem; }

.features { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 14px; }
.feature { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.feature .ico { width: 42px; height: 42px; border-radius: 11px; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; margin-bottom: 14px; }
.feature .ico svg { width: 22px; height: 22px; }
.feature p { color: var(--muted); margin: 0; font-size: 0.97rem; }
.feature .num { color: var(--text); font-weight: 650; }

/* capturi de ecran: un rând care se derulează pe telefon */
.shots { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(220px, 1fr); gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px var(--gutter) 18px; margin: 0 calc(-1 * var(--gutter)); scrollbar-width: thin; }
.shot { scroll-snap-align: center; margin: 0; }
.phone { border-radius: 30px; padding: 8px; background: #050708; border: 1px solid var(--line-strong); box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45); }
.phone img { border-radius: 23px; width: 100%; height: auto; aspect-ratio: 390 / 844; object-fit: cover; background: #1b2226; }
.shot figcaption { margin-top: 12px; font-size: 0.92rem; color: var(--muted); }
.shot figcaption b { color: var(--text); display: block; }
@media (min-width: 1100px) { .shots { overflow: visible; margin: 0; padding: 4px 0; } }

.split { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(28px, 6vw, 72px); align-items: center; }
.split .phone { max-width: 300px; margin: 0 auto; }
@media (max-width: 820px) { .split { grid-template-columns: 1fr; } }
.ticks { list-style: none; padding: 0; margin: 0 0 1em; display: grid; gap: 10px; }
.ticks li { position: relative; padding-left: 30px; }
.ticks li::before { content: ""; position: absolute; left: 4px; top: 0.45em; width: 12px; height: 7px; border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: rotate(-45deg); }
.note { font-size: 0.92rem; color: var(--muted); border-left: 2px solid var(--line-strong); padding-left: 14px; }

/* preț */
.price-card { max-width: 560px; margin: 0 auto; text-align: center; background: var(--card); border: 1px solid rgba(224, 165, 71, 0.35); border-radius: 20px; padding: clamp(28px, 5vw, 44px); box-shadow: 0 0 0 6px var(--accent-soft); }
.price { font-size: clamp(2.4rem, 2rem + 2vw, 3.4rem); font-weight: 800; margin: 6px 0 0; letter-spacing: -0.02em; }
.price .todo { font-size: 0.5em; vertical-align: middle; }
.price-card .ticks { text-align: left; max-width: 380px; margin: 24px auto; }
.price-card .btn { width: 100%; max-width: 380px; }

/* întrebări frecvente */
.faq { max-width: 780px; display: grid; gap: 10px; }
.faq details { background: var(--card); border: 1px solid var(--line); border-radius: 12px; }
.faq summary { cursor: pointer; padding: 16px 48px 16px 18px; font-weight: 650; list-style: none; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 18px; top: 50%; transform: translateY(-50%); color: var(--accent); font-size: 1.4rem; font-weight: 400; }
.faq details[open] summary::after { content: "−"; }
.faq details > div { padding: 0 18px 16px; color: var(--muted); }
.faq details > div p:last-child { margin: 0; }

/* ---------- pagini de text (instalare, surse, termeni) ---------- */
.page { padding: clamp(40px, 7vw, 80px) 0 clamp(56px, 8vw, 96px); }
.page .wrap { max-width: 780px; }
.page h1 { font-size: clamp(2rem, 1.5rem + 2.4vw, 3rem); }
.page h2 { font-size: 1.35rem; margin-top: 2em; }
.page .intro { font-size: 1.12rem; color: var(--muted); }
.page li { margin-bottom: 0.4em; }
.page .updated { font-size: 0.9rem; color: var(--muted); }
.steps { list-style: none; counter-reset: step; padding: 0; margin: 28px 0; display: grid; gap: 14px; }
.steps > li { counter-increment: step; position: relative; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 20px 20px 70px; margin: 0; }
.steps > li::before { content: counter(step); position: absolute; left: 20px; top: 18px; width: 34px; height: 34px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); display: grid; place-items: center; font-weight: 800; }
.steps h3 { margin-bottom: 0.3em; }
.steps p { color: var(--muted); margin: 0 0 0.5em; }
.steps p:last-child { margin: 0; }
.kbd { display: inline-block; border: 1px solid var(--line-strong); border-radius: 6px; padding: 0 6px; font-size: 0.92em; color: var(--text); background: rgba(255, 255, 255, 0.04); white-space: nowrap; }
.code { font-family: ui-monospace, "Cascadia Mono", Consolas, monospace; letter-spacing: 0.08em; color: var(--accent); white-space: nowrap; }
.sources { display: grid; gap: 10px; margin: 20px 0; }
.src { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; }
.src b { display: block; margin-bottom: 2px; }
.src span { color: var(--muted); font-size: 0.95rem; }
.big-404 { font-size: clamp(5rem, 3rem + 10vw, 9rem); font-weight: 800; color: var(--accent); line-height: 1; margin: 0 0 0.1em; }

/* ---------- subsol ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 40px 0 48px; color: var(--muted); font-size: 0.92rem; }
.site-footer .wrap { display: grid; grid-template-columns: 1.3fr 1fr; gap: 28px; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 6px 18px; justify-content: flex-end; align-content: start; }
.site-footer nav a { color: var(--muted); text-decoration: none; }
.site-footer nav a:hover { color: var(--text); }
.site-footer p { margin: 10px 0 0; }
@media (max-width: 720px) { .site-footer .wrap { grid-template-columns: 1fr; } .site-footer nav { justify-content: flex-start; } }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.fine { margin-top: 14px; font-size: 0.92rem; }
.credit-line { margin: 18px 0 0; font-size: 0.8rem; color: var(--muted); }

/* capturi late, cu toată țara */
.wide-shots { display: grid; gap: 36px; }
.wide-shot { margin: 0; }
.wide-shot img { width: 100%; height: auto; aspect-ratio: 1280 / 760; object-fit: cover; border-radius: var(--radius); border: 1px solid var(--line-strong); background: #1b2226; box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35); }
.wide-shot figcaption { margin-top: 12px; font-size: 0.95rem; color: var(--muted); }
.wide-shot figcaption b { color: var(--text); display: block; }
.legend { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 16px; margin-top: 8px; font-size: 0.85rem; }
.legend > span { white-space: nowrap; display: inline-flex; align-items: center; gap: 6px; }
.legend i { width: 12px; height: 12px; border-radius: 50%; border: 1.5px solid #fff; display: inline-block; }
.legend .e-antic { background: #8a5a2b; }
.legend .e-medieval { background: #b8432f; }
.legend .e-modern { background: #7a3f8c; }
.legend .e-ww1 { background: #4d6b2e; }
.legend .e-ww2 { background: #3b5a7a; }

/* fișele care se deschid pe hărțile cu toată țara (pops.js) */
.map-frame { position: relative; container-type: inline-size; }
.pops { list-style: none; margin: 0; padding: 0; position: absolute; inset: 0; pointer-events: none; }
.pops li { position: absolute; left: var(--x); top: var(--y); width: 0; height: 0; --tx: -50%; --dy: 8px; --s: 0.96; --gap: calc(1.4cqw + 8px); }
.pops li::before { content: ""; position: absolute; width: 2.4cqw; height: 2.4cqw; min-width: 14px; min-height: 14px; border-radius: 50%; border: 2px solid var(--accent); transform: translate(-50%, -50%) scale(1); opacity: 0; }
.pops li.on::before { animation: pop-ring 1.6s ease-out infinite; }
@keyframes pop-ring { 0% { opacity: 0.95; transform: translate(-50%, -50%) scale(0.9); } 100% { opacity: 0; transform: translate(-50%, -50%) scale(2.4); } }
.pops .card { position: absolute; left: 0; bottom: var(--gap); width: max-content; max-width: 25cqw; transform: translate(var(--tx), var(--dy)) scale(var(--s)); opacity: 0; transition: opacity 0.35s ease, transform 0.35s ease;
  background: rgba(18, 24, 28, 0.96); border: 1px solid rgba(224, 165, 71, 0.45); border-radius: 10px; padding: 0.65em 0.85em; font-size: clamp(10px, 1.2cqw, 14px); line-height: 1.35; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45); }
.pops .card::after { content: ""; position: absolute; left: calc(-1 * var(--tx)); bottom: -6px; width: 10px; height: 10px; margin-left: -5px; background: inherit; border: inherit; border-width: 0 1px 1px 0; transform: rotate(45deg); }
.pops li.on { --dy: 0px; --s: 1; }
.pops li.on .card { opacity: 1; }
.pops li.below .card { bottom: auto; top: var(--gap); }
.pops li.below { --dy: -8px; }
.pops li.below.on { --dy: 0px; }
.pops li.below .card::after { bottom: auto; top: -6px; border-width: 1px 0 0 1px; }
.pops li.left { --tx: -18px; }
.pops li.right { --tx: calc(-100% + 18px); }
.pops li.left .card::after { left: 18px; }
.pops li.right .card::after { left: calc(100% - 18px); }
.pops .pop-top { display: flex; align-items: center; gap: 0.45em; color: var(--accent); font-weight: 700; font-size: 0.86em; letter-spacing: 0.02em; }
.pops b { display: block; color: var(--text); font-size: 1.05em; }
.pops .pop-text { display: block; color: var(--muted); }
.pops li[data-era] .pop-top::before { content: ""; width: 0.8em; height: 0.8em; border-radius: 50%; border: 1px solid #fff; background: var(--era); }
.pops li[data-era="antic"] { --era: #8a5a2b; }
.pops li[data-era="medieval"] { --era: #b8432f; }
.pops li[data-era="modern"] { --era: #7a3f8c; }
.pops li[data-era="ww1"] { --era: #4d6b2e; }
.pops li[data-era="ww2"] { --era: #3b5a7a; }
@container (max-width: 640px) {
  .pops .card { max-width: 42cqw; font-size: 10px; padding: 0.5em 0.65em; }
  .pops .pop-text { display: none; }
}
@media (prefers-reduced-motion: reduce) { .pops .card { transition: none; } .pops li.on::before { animation: none; opacity: 0.9; } }


/* „Cum arată”: caruselul care crește (grow.js). Fără JavaScript e un rând simplu care se derulează. */
.showcase { position: relative; overflow: hidden; isolation: isolate; }
.showcase-bg { position: absolute; inset: -12%; z-index: -1; pointer-events: none; }
.showcase-bg img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: blur(64px) saturate(1.3); opacity: 0; transition: opacity 0.9s ease; }
.showcase-bg img.on { opacity: 0.3; }
.showcase-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, var(--bg-2) 6%, rgba(20, 27, 31, 0.2) 40%, rgba(20, 27, 31, 0.2) 70%, var(--bg-2) 96%); }
/* lățimea unei capturi: după lățimea ecranului, dar și după înălțime, ca banda cu captura mărită
   și legenda să încapă întreagă sub antet (banda ≈ 2,7 × lățimea, legenda ≈ 80 px, antetul 64 px) */
.grow { --cw: clamp(130px, min(44vw, calc((100vh - 170px) / 2.75)), 220px); --grow: 1.28; }
@supports (height: 100svh) { .grow { --cw: clamp(130px, min(44vw, calc((100svh - 170px) / 2.75)), 220px); } }
@media (max-width: 720px) { .grow { --grow: 1.16; } }
.grow-track { display: flex; gap: 18px; overflow-x: auto; padding: 8px var(--gutter) 18px; scrollbar-width: thin; }
.grow-card { flex: 0 0 var(--cw); margin: 0; }
.grow-card figcaption { margin-top: 12px; font-size: 0.92rem; color: var(--muted); }
.grow-card figcaption b { color: var(--text); display: block; }
.grow.is-live .grow-track { scrollbar-width: none; padding-block: calc((var(--grow) - 1) * 1.15 * var(--cw)); padding-inline: 0;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.grow.is-live .grow-track::-webkit-scrollbar { display: none; }
.grow.is-live .grow-card { transform: translateX(var(--shift, 0px)) scale(var(--sc, 1)); opacity: 0.45; filter: saturate(0.6) brightness(0.8);
  transition: transform 0.55s cubic-bezier(0.2, 0.7, 0.2, 1), opacity 0.4s ease, filter 0.4s ease; cursor: pointer; }
.grow.is-live .grow-card.on { opacity: 1; filter: none; z-index: 1; position: relative; }
.grow.is-live .grow-card figcaption { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.grow-foot { display: none; }
.grow.is-live + .grow-foot { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; margin-top: 4px; }
.grow-caption { margin: 0; min-height: 3.2em; max-width: 34em; transition: opacity 0.3s ease, transform 0.3s ease; }
.grow-caption b { display: block; font-size: 1.1rem; }
.grow-caption span { color: var(--muted); }
.grow-caption.swap { opacity: 0; transform: translateY(6px); }
.grow-nav { display: flex; gap: 8px; flex: none; }
.grow-btn { width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--line-strong); background: rgba(255, 255, 255, 0.04); color: var(--text); display: grid; place-items: center; cursor: pointer; transition: border-color 0.15s, background 0.15s; }
.grow-btn:hover { border-color: var(--accent); background: var(--accent-soft); }
.grow-btn svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
@media (prefers-reduced-motion: reduce) { .grow.is-live .grow-card, .grow-caption, .showcase-bg img { transition: none; } }
.grow.jump .grow-card { transition: none !important; }
/* rama telefonului din carusel: subțire (capturile sunt mici, iar 8 px păreau o margine groasă) */
.grow-card .phone { padding: 3px; border-radius: 24px; }
.grow-card .phone img { border-radius: 21px; }
.price .cur { font-size: 0.5em; font-weight: 700; color: var(--muted); }
.launch { display: inline-block; margin: 6px 0 0; padding: 4px 12px; border-radius: 20px; background: var(--accent-soft); color: var(--accent); font-size: 0.85rem; font-weight: 700; }
/* contorul: un singur contur, cu o lumină chihlimbarie care se rotește de jur împrejur */
@property --glow-a { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
.countdown { --glow: conic-gradient(from var(--glow-a), transparent 0deg 250deg, rgba(224, 165, 71, 0.35) 290deg, #f3c97a 335deg, #fff3d6 350deg, transparent 360deg);
  position: relative; display: inline-flex; justify-content: center; margin: 16px 0 4px; padding: 10px 4px; border-radius: 16px;
  border: 1.5px solid transparent; background: linear-gradient(var(--card), var(--card)) padding-box, var(--glow) border-box, linear-gradient(var(--line-strong), var(--line-strong)) border-box;
  animation: glow-spin 4.5s linear infinite; }
.countdown::before { content: ""; position: absolute; inset: -3px; z-index: -1; border-radius: 18px; background: var(--glow); filter: blur(10px); opacity: 0.7; animation: inherit; }
@keyframes glow-spin { to { --glow-a: 360deg; } }
.countdown[hidden] { display: none; }
.countdown span { min-width: 64px; padding: 2px 10px; display: grid; gap: 2px; }
.countdown span + span { border-left: 1px solid var(--line); }
.countdown b { font-size: 1.6rem; line-height: 1; font-variant-numeric: tabular-nums; color: var(--text); }
.countdown small { font-size: 0.72rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; }
@media (prefers-reduced-motion: reduce) { .countdown, .countdown::before { animation: none; } }
.countdown-note { font-size: 0.85rem; margin: 6px 0 0; }
@media (max-width: 380px) { .countdown span { min-width: 54px; padding: 2px 6px; } .countdown b { font-size: 1.35rem; } }
.price-card { isolation: isolate; } /* lumina contorului stă în spatele lui, nu în spatele cardului */

/* prețul: Barlow Condensed ExtraBold Italic (OFL, găzduit aici) — cifre înalte și înclinate, ca pe o etichetă de reducere */
@font-face { font-family: "Barlow Condensed"; font-style: italic; font-weight: 800; font-display: swap; src: url("/assets/fonts/barlow-condensed-latin-800-italic.woff2") format("woff2"); }
.price { font-family: "Barlow Condensed", var(--font); font-style: italic; font-weight: 800; font-size: clamp(3.6rem, 3rem + 3vw, 5rem); line-height: 1; letter-spacing: 0.005em; margin: 14px 0 4px;
  color: var(--accent); background: linear-gradient(180deg, #ffe2a6 0%, #f0b95c 45%, #d9952f 100%); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 4px 18px rgba(224, 165, 71, 0.28)); }
.price .cur { font-size: 0.42em; letter-spacing: 0.04em; margin-left: 0.06em; }



/* „Trage de linie”, lângă bilă; apare după deschidere și dispare la prima atingere (hero.js) */
.hero-hint { position: absolute; top: var(--hy, 25%); left: 34px; transform: translate(0, -50%); white-space: nowrap; padding: 6px 12px; border-radius: 20px;
  background: rgba(15, 20, 23, 0.86); border: 1px solid rgba(224, 165, 71, 0.55); color: var(--text); font-size: 0.85rem; font-weight: 650;
  opacity: 0; transition: opacity 0.4s ease; box-shadow: 0 6px 18px rgba(0, 0, 0, 0.4); }
.hero-hint.flip { left: auto; right: 34px; }
.hero-hint.on { opacity: 1; }

/* accesul timpuriu: sub prețul de lansare, despărțit de o linie */
.early { margin: 30px 0 18px; padding-top: 26px; border-top: 1px solid var(--line-strong); }
.early[hidden] { display: none; }
.early-text { margin: 16px auto 4px; max-width: 30em; }
.donation { display: flex; align-items: baseline; justify-content: center; gap: 12px; flex-wrap: wrap; margin: 8px 0 2px; }
.price.small { font-size: clamp(2.4rem, 2rem + 1.6vw, 3.1rem); margin: 0; }
.donation-label { font-size: 0.82rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: var(--accent); border: 1px dashed rgba(224, 165, 71, 0.6); border-radius: 20px; padding: 3px 10px; }
.early .btn { margin-top: 10px; }
/* „Obține aplicația” din antet rămâne pe un rând și pe telefoanele înguste */
.btn { white-space: nowrap; }
@media (max-width: 400px) { .brand-text { font-size: 0.76rem; letter-spacing: 0.06em; } .nav .btn.small { padding: 0 11px; font-size: 0.86rem; } .site-header .wrap { gap: 10px; } }

/* formularul de acces timpuriu */
.form { max-width: 640px; display: grid; gap: 16px; }
.form label { display: grid; gap: 6px; font-weight: 600; font-size: 0.95rem; }
.form label small { font-weight: 400; color: var(--muted); }
.form input:not([type=checkbox]), .form textarea { width: 100%; font: inherit; font-weight: 400; color: var(--text); background: var(--card); border: 1px solid var(--line-strong); border-radius: 10px; padding: 12px 14px; }
.form textarea { resize: vertical; min-height: 110px; }
.form input:focus, .form textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 600px) { .form-row { grid-template-columns: 1fr; } }
.form .check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; color: var(--muted); }
.form .check input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--accent); flex: none; }
.form .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form .btn { justify-self: start; min-width: 200px; }
.form .btn:disabled { opacity: 0.6; cursor: wait; }
.form-status { margin: 0; min-height: 1.5em; color: var(--muted); }
.form-status.ok { color: var(--ok); font-weight: 600; }
.form-status.err { color: #f08a6c; }
