/* HaideHai — pagina de teaser. Același stil ca situl (Carento; docs/DESIGN_SYSTEM.md §1). */

/* Urbanist servit de pe domeniul nostru (#459), nu de la Google Fonts. Subset
   latin + ș ț ă î â + ghilimelele românești, cinci greutăți, ~12 KB fiecare;
   licența OFL e în fonts/OFL.txt. Sursa: @expo-google-fonts/urbanist (mobil). */
@font-face {
  font-family: "Urbanist";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/urbanist-400.woff2") format("woff2");
}
@font-face {
  font-family: "Urbanist";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("fonts/urbanist-500.woff2") format("woff2");
}
@font-face {
  font-family: "Urbanist";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("fonts/urbanist-600.woff2") format("woff2");
}
@font-face {
  font-family: "Urbanist";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("fonts/urbanist-700.woff2") format("woff2");
}
@font-face {
  font-family: "Urbanist";
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url("fonts/urbanist-800.woff2") format("woff2");
}

:root {
  --brand: #70f46d;
  --brand-dark: #5edd5b;
  --brand-deep: #235922;
  --trail: #34d674;
  --ink: #101010;
  --neutral-100: #f2f4f6;
  --neutral-500: #737373;
  --neutral-600: #575756;
  --neutral-700: #313131;
  --line: #dde1de;
  --label: #8e8e8e;
  --paper: #ffffff;
  --overlay: #101010;

  --font: "Urbanist", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --r-card: 12px;
  --r-input: 8px;
  --r-pill: 50px;
  --wrap: 1180px;
  --gutter: clamp(16px, 4vw, 32px);
}

*, *::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(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, video, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, p, ul, ol, figure, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }
button, input { font: inherit; color: inherit; }

.wrap { width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.skip {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--brand); color: var(--ink); padding: 10px 16px; border-radius: var(--r-pill); font-weight: 700;
}
.skip:focus { top: 12px; }

/* Tipografie: aceleași trepte ca pe sit (h1 60/800/-1.5px, h2 36/800/-0.9px). */
.display {
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.05;
  font-size: clamp(2.4rem, 5.2vw, 3.75rem);
  text-wrap: balance;
}
.display--md { font-size: clamp(1.75rem, 3.2vw, 2.25rem); line-height: 1.12; }
.label {
  font-size: 12px; font-weight: 700; letter-spacing: 0.3px; text-transform: uppercase; color: var(--label);
}
.lead { font-size: clamp(1.02rem, 1.3vw, 1.15rem); color: rgba(255, 255, 255, 0.9); max-width: 36em; text-wrap: pretty; }

/* Cuvântul marcat cu poteca verde de sub el */
.mark { position: relative; display: inline; white-space: nowrap; }
.mark::after {
  content: "";
  position: absolute; left: -2%; right: -2%; bottom: 0.04em; height: 0.16em;
  background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 12' preserveAspectRatio='none'><path d='M1 8 C 20 2, 35 12, 50 7 S 80 2, 99 6' fill='none' stroke='%2370f46d' stroke-width='4' stroke-linecap='round'/></svg>") center / 100% 100% no-repeat;
  z-index: -1;
}

/* Butoane: pilulă, ca `.btn-brand` de pe sit */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 12px 24px; border-radius: var(--r-pill); border: 0;
  font-weight: 600; font-size: 1rem;
  cursor: pointer; text-decoration: none; white-space: nowrap;
  transition: background-color 0.2s;
}
.btn--primary { background: var(--brand); color: var(--ink); }
.btn--primary:hover { background: var(--brand-dark); }
.btn:focus-visible, .lang__btn:focus-visible, a:focus-visible {
  outline: 3px solid var(--trail); outline-offset: 3px;
}

/* Pastile: kicker-ul din hero și „În curând” din antet */
.kicker {
  display: inline-flex; align-items: center; justify-self: start;
  padding: 6px 16px; border-radius: var(--r-pill);
  background: rgba(112, 244, 109, 0.25); color: var(--brand);
  font-size: 14px; font-weight: 700;
}
.pill {
  display: inline-flex; align-items: center;
  padding: 6px 14px; border-radius: var(--r-pill);
  border: 1px solid var(--line); background: var(--paper);
  color: var(--neutral-600); font-size: 12px; font-weight: 600; white-space: nowrap;
}

/* ============ Antet: alb, lipicios, ca pe sit ============ */
.top {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
  padding-block: 10px;
}
.top__row { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
/*
  Aceeași așezare ca în antetul sitului: siglă de 44 px într-un rând de 64, cu
  cuvântul ridicat pe linia textului de lângă el.
  `top` negativ: cutia desenului nu are aer, dar masa care se citește — cuvântul
  — stă în jumătatea de jos, sub litera înaltă și ac. Centrată ca dreptunghi,
  sigla pare căzută sub rând. Fracțiunea e măsurată, nu aleasă:
  `brand/tools/masura_optica.py` o scoate din chiar desenul curent, iar în sit e
  `OPTIC.horizontal` din `web/src/components/Logo.tsx`. Dacă se schimbă desenul,
  se rulează scriptul; nu se ajustează din ochi.
  Peste 44 px nu se poate urca: la 46 vârful acului atinge marginea de sus a
  barei, la 48 se taie.
*/
.top__logo img {
  --h: 44px;
  height: var(--h); width: auto;
  position: relative; top: calc(var(--h) * -0.1852);
}
.top__right { display: flex; align-items: center; gap: 12px; }

.lang { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: var(--r-pill); padding: 2px; background: var(--neutral-100); }
.lang__btn {
  border: 0; background: transparent; color: var(--neutral-500); min-height: 32px;
  padding: 4px 12px; border-radius: var(--r-pill); font-size: 12px; font-weight: 700; cursor: pointer;
}
.lang__btn.is-active { background: var(--paper); color: var(--ink); }

/* ============ Hero: fotografie cu voal închis, text alb, ca pe prima pagină ============ */
.hero {
  position: relative; min-height: min(86svh, 780px); display: flex; align-items: center;
  padding-block: clamp(64px, 9vh, 112px);
  isolation: isolate; color: var(--paper);
}
.hero__media { position: absolute; inset: 0; z-index: -1; overflow: hidden; background: var(--neutral-700); }
.hero__media img, .hero__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 60% 50%; }
.hero__video { opacity: 0; transition: opacity 1.2s ease; }
.hero__video.is-playing { opacity: 1; }
.hero__shade {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(16, 16, 16, 0.35) 0%, rgba(16, 16, 16, 0.2) 40%, rgba(16, 16, 16, 0.7) 100%),
    linear-gradient(90deg, rgba(16, 16, 16, 0.5) 0%, rgba(16, 16, 16, 0) 65%);
}
.hero__content { display: grid; gap: 20px; justify-items: start; }
.hero__content .display { max-width: 920px; }
.hero__content .display { text-shadow: 0 2px 20px rgba(0, 0, 0, 0.3); }
.hero__facts { color: rgba(255, 255, 255, 0.75); font-size: 0.95rem; }

.hero__cta { display: flex; }
.btn--ghost { background: rgba(255, 255, 255, 0.1); color: var(--paper); border: 1px solid rgba(255, 255, 255, 0.4); }
.btn--ghost:hover { background: rgba(255, 255, 255, 0.18); }

/* ============ Scrisoarea: pe gri deschis, ca subsolul sitului ============ */
.letter { background: var(--neutral-100); padding-block: clamp(56px, 8vw, 104px); }
.letter__grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(32px, 6vw, 88px); align-items: stretch; }
.letter__text { display: grid; gap: 18px; max-width: 58ch; }
.letter__text .display--md { margin-bottom: 4px; }
.letter__p { font-size: clamp(1.02rem, 1.3vw, 1.15rem); line-height: 1.65; color: var(--neutral-700); text-wrap: pretty; }
.letter__p--first { font-size: clamp(1.2rem, 1.7vw, 1.45rem); line-height: 1.4; font-weight: 500; color: var(--ink); }
.letter__sign { margin-top: 8px; padding-top: 16px; border-top: 2px solid var(--brand); display: grid; gap: 2px; width: fit-content; min-width: 220px; }
.letter__sign span { font-weight: 700; font-size: 1rem; }
.letter__sign small { color: var(--neutral-500); font-size: 0.82rem; }
.letter__fig { display: flex; min-height: 0; }
.letter__fig img { flex: 1; width: 100%; height: 100%; min-height: 0; object-fit: cover; object-position: 55% 60%; border-radius: var(--r-card); }
@media (max-width: 860px) {
  .letter__grid { grid-template-columns: 1fr; }
  .letter__fig img { aspect-ratio: 4 / 3; height: auto; }
}

/* ============ Ce găsești: listă numerotată pe alb ============ */
.what { background: var(--paper); padding-block: clamp(56px, 8vw, 104px); }
.what__grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.what__head { position: sticky; top: 96px; display: grid; gap: 12px; }
.what__lead { color: var(--neutral-500); font-size: 1.05rem; text-wrap: pretty; max-width: 30ch; }
.list { counter-reset: item; border-top: 1px solid var(--line); }
.item { counter-increment: item; display: grid; grid-template-columns: 3rem minmax(0, 1fr); gap: 4px 12px; padding: 24px 0 26px; border-bottom: 1px solid var(--line); }
.item::before {
  content: counter(item, decimal-leading-zero);
  grid-row: 1 / span 2; align-self: start; margin-top: 0.3rem;
  font-weight: 700; color: var(--brand-deep); font-size: 0.95rem;
}
.item h3 { font-weight: 700; font-size: clamp(1.15rem, 1.7vw, 1.35rem); letter-spacing: -0.01em; line-height: 1.2; }
.item p { color: var(--neutral-600); font-size: 1rem; text-wrap: pretty; max-width: 54ch; }
@media (max-width: 860px) {
  .what__grid { grid-template-columns: 1fr; }
  .what__head { position: static; }
}

/* ============ Trei vorbe scurte ============ */
.lines { background: var(--paper); border-top: 1px solid var(--line); padding-block: clamp(40px, 6vw, 72px); }
.lines__row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px clamp(24px, 4vw, 56px); }
.lines__p { font-weight: 800; font-size: clamp(1.35rem, 2.2vw, 1.75rem); line-height: 1.15; letter-spacing: -0.02em; text-wrap: balance; padding-top: 14px; border-top: 3px solid var(--brand); }
@media (max-width: 760px) { .lines__row { grid-template-columns: 1fr; } }

/* ============ Activități: cipuri pilulă, ca pe sit ============ */
.acts { background: var(--neutral-100); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding-block: clamp(32px, 5vw, 56px); }
.acts__row { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 16px 48px; align-items: center; }
.acts__title { font-weight: 700; font-size: clamp(1.15rem, 1.9vw, 1.4rem); letter-spacing: -0.01em; text-wrap: balance; }
.acts__list { display: flex; flex-wrap: wrap; gap: 8px; }
.acts__list span {
  display: inline-flex; align-items: center; padding: 6px 14px; border-radius: var(--r-pill);
  border: 1px solid var(--line); background: var(--paper); color: var(--neutral-600); font-size: 12px; font-weight: 600;
}
@media (max-width: 760px) { .acts__row { grid-template-columns: 1fr; } }

/* ============ Final: fotografie de noapte, text alb ============ */
.final { position: relative; padding-block: clamp(80px, 11vw, 150px); text-align: center; isolation: isolate; color: var(--paper); }
.final__media { position: absolute; inset: 0; z-index: -1; overflow: hidden; background: var(--ink); }
.final__media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 60%; }
.final__media::after { content: ""; position: absolute; inset: 0; background: radial-gradient(60% 60% at 50% 45%, rgba(16,16,16,0) 0%, rgba(16,16,16,0.55) 100%); }
.final__content { display: grid; gap: 16px; justify-items: center; max-width: 720px; }
.quote p { font-weight: 700; font-size: clamp(1.5rem, 3.2vw, 2.25rem); line-height: 1.2; letter-spacing: -0.02em; text-wrap: balance; }
.quote::before { content: ""; display: block; width: 40px; height: 3px; border-radius: 2px; background: var(--brand); margin: 0 auto 20px; }
.final__title { font-weight: 700; font-size: clamp(1.15rem, 2vw, 1.4rem); }
.final__lead { color: rgba(255, 255, 255, 0.85); max-width: 48ch; text-wrap: pretty; }
.label--light { color: rgba(255, 255, 255, 0.7); margin-top: 22px; }
.final__title { margin-top: 0; }
.share { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 6px; }
.share__msg { min-height: 1.4em; font-size: 0.92rem; color: var(--brand); }
.final__contact { margin-top: 18px; padding-top: 18px; border-top: 1px solid rgba(255, 255, 255, 0.2); color: rgba(255, 255, 255, 0.85); max-width: 48ch; text-wrap: pretty; }
.final__contact a { color: var(--paper); font-weight: 600; }
@media (max-width: 520px) { .share .btn { width: 100%; } }

/* ============ Subsol: gri deschis, ca pe sit ============ */
.foot { background: var(--neutral-100); border-top: 1px solid var(--line); padding-block: 36px 28px; color: var(--neutral-600); font-size: 0.9rem; }
.foot__row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 18px 32px; }
.foot__brand { display: flex; align-items: center; gap: 14px; }
/* `width: auto`: atributele din HTML rezervă locul până se încarcă desenul, dar
   sunt rotunjite la întreg (26 × 30 pentru un raport care cere 25,66). Fără
   regula asta, marca rămâne într-o cutie cu o treime de pixel goală la dreapta
   și se desprinde de cuvântul de lângă ea. */
.foot__brand img { width: auto; }
.foot__brand div { display: grid; }
.foot__brand strong { color: var(--ink); font-weight: 700; }
.foot__links { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.foot__links a { text-decoration: none; color: var(--ink); font-weight: 600; display: inline-block; padding: 10px 0; }
.foot__links a:hover { color: var(--brand-deep); }
.foot__fine { margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--line); display: grid; gap: 6px; font-size: 0.82rem; color: var(--neutral-500); }

/* Telefon îngust */
@media (max-width: 480px) {
  .pill { display: none; } /* hero-ul spune deja „se pregătește de lansare” */
  /* 36, nu mai jos: sub 35 px piciorul drept al primului „H" ajunge o așchie de
     un pixel sub potecă și sigla se citește „aideHai". Ridicarea urmează
     înălțimea, fiind scrisă ca fracțiune. */
  .top__logo img { --h: 36px; }
}
@media (max-width: 640px) {
  .hero { min-height: 0; padding-block: 56px 48px; }
  .display { font-size: clamp(2rem, 9vw, 2.5rem); }
}
