/* Space Grotesk, servit de pe domeniul nostru. NU de la Google: altfel IP-ul fiecărui vizitator
   ajunge la Google fără consimțământ, iar politica noastră de confidențialitate nu spune asta.
   Fișierul e același pe care îl are aplicația (SIL Open Font License 1.1).
   Pentru text lung folosim fontul sistemului — Inter variabil cântărea 876 KB, prea mult pentru
   o pagină de prezentare, iar pe Windows/Android/macOS fontul de sistem arată foarte apropiat. */
@font-face {
  font-family: "Space Grotesk";
  src: url("fonts/space_grotesk.ttf") format("truetype-variations");
  font-weight: 300 700;
  font-display: swap;
}

/* RevZoom — aceleași culori și fonturi ca aplicația (RaColors.kt, Type.kt). */

:root {
  --lime: #C9F24D;
  --on-lime: #0E1113;
  --bg: #EFF1EC;
  --surface: #FFFFFF;
  --outline: #D3D8CE;
  --accent: #4A6400;          /* lime-ul nu se citește pe alb → oliv închis */
  --accent-soft: #E2F5A6;
  --text: #15191B;
  --text-dim: #59636A;
  --hazard: #D4471A;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0E1113;
    --surface: #1F2428;
    --outline: #2E3439;
    --accent: #C9F24D;
    --accent-soft: #2E3A12;
    --text: #E8EAEB;
    --text-dim: #9AA3A9;
    --hazard: #FF6A3D;
  }
}

* { box-sizing: border-box; }

body {
  margin: 0;
  padding: 0 16px 64px;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  font-size: 17px;
  line-height: 1.65;
  -webkit-text-size-adjust: 100%;
}

.wrap { max-width: 760px; margin: 0 auto; }

header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 28px 0 20px;
  border-bottom: 1px solid var(--outline);
  margin-bottom: 32px;
}

/* Logo-ul: imagine cu fundal transparent, deci nu are nevoie de pătratul lime de dinainte. */
.mark {
  display: block;
  width: 40px;
  height: 40px;
  object-fit: contain;
  flex: none;
}

header a.name {
  font-family: "Space Grotesk", system-ui, sans-serif;
  font-weight: 700;
  font-size: 22px;
  color: var(--text);
  text-decoration: none;
  letter-spacing: -0.01em;
}

h1, h2, h3 {
  font-family: "Space Grotesk", system-ui, sans-serif;
  letter-spacing: -0.02em;
  line-height: 1.25;
}

h1 { font-size: 34px; margin: 0 0 8px; }
h2 { font-size: 23px; margin: 40px 0 12px; }
h3 { font-size: 19px; margin: 28px 0 8px; }

.updated { color: var(--text-dim); font-size: 15px; margin: 0 0 32px; }

a { color: var(--accent); }

ul { padding-left: 22px; }
li { margin: 8px 0; }

.card {
  background: var(--surface);
  border: 1px solid var(--outline);
  border-radius: 18px;
  padding: 22px 24px;
  margin: 18px 0;
}

.card h3 { margin-top: 0; }

.btn {
  display: inline-block;
  background: var(--lime);
  color: var(--on-lime);
  font-weight: 600;
  text-decoration: none;
  padding: 13px 22px;
  border-radius: 14px;
  margin-top: 8px;
}

.btn.ghost {
  background: transparent;
  color: var(--accent);
  border: 1px solid var(--outline);
}

.steps { counter-reset: step; list-style: none; padding: 0; }

.steps li {
  counter-increment: step;
  position: relative;
  padding-left: 44px;
  margin: 18px 0;
}

.steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 1px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 700;
  display: grid;
  place-items: center;
  font-size: 15px;
}

.note {
  border-left: 3px solid var(--hazard);
  padding: 4px 0 4px 16px;
  color: var(--text-dim);
  margin: 22px 0;
}

footer {
  margin-top: 56px;
  padding-top: 24px;
  border-top: 1px solid var(--outline);
  color: var(--text-dim);
  font-size: 15px;
}

footer a { color: var(--text-dim); }

@media (max-width: 520px) {
  body { font-size: 16px; }
  h1 { font-size: 28px; }
  .card { padding: 18px; }
}

/* ═══════════════════════════════════════════════════════════════════════════
   Pagina principală. Tot ce e deasupra rămâne neatins — îl folosesc
   privacy.html, terms.html și delete-account.html.

   Prima pagină stă pe întuneric în ambele teme, intenționat: aplicația e
   întunecată, harta e întunecată, iar pagina asta arată produsul, nu hârtiile.
   Paginile legale rămân pe tema sistemului, fiindcă acolo se citește text lung.
   ═══════════════════════════════════════════════════════════════════════════ */

body.home {
  --bg: #0B0E10;
  --surface: #14191C;
  --surface-2: #1B2125;
  --outline: #262D32;
  --accent: #C9F24D;
  --text: #E9ECED;
  --text-dim: #949EA4;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  color-scheme: dark;
}

.home .shell,
.home main > section:not(.hero),
.home .hero-inner,
.home .foot-grid { max-width: 1120px; margin-inline: auto; padding-inline: 20px; }

/* ── Bara de sus ───────────────────────────────────────────────────────── */
.home .nav {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  max-width: 1120px;
  margin: 0 auto;
  padding: 14px 20px;
  border: 0;
  background: color-mix(in srgb, #0B0E10 82%, transparent);
  backdrop-filter: blur(14px);
}
.home .brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.home .brand .mark { width: 42px; height: 42px; }
.home .brand .name { font-size: 19px; }
.home .nav nav { display: flex; align-items: center; gap: 22px; }
.home .nav nav a { color: var(--text-dim); text-decoration: none; font-size: 15px; font-weight: 500; }
.home .nav nav a:hover { color: var(--text); }
.home .nav .pill {
  padding: 9px 16px;
  border-radius: 999px;
  background: var(--accent);
  color: #0B0E10;
  font-weight: 600;
}
.home .nav .pill:hover { color: #0B0E10; filter: brightness(1.06); }

/* ── Hero ──────────────────────────────────────────────────────────────── */
/* Hero pe toata latimea: harta trebuie sa ajunga pana in marginile ferestrei, iar textul se
   aliniaza cu bara de sus prin .hero-text, nu prin sectiune. Inainte sectiunea primea max-width
   1120 si margin:0, deci statea lipita la stanga si harta se taia la mijlocul unui ecran lat. */
.home .hero {
  position: relative;
  isolation: isolate;
  margin: 0;
  max-width: none;
  padding: clamp(56px, 9vw, 120px) 0;
  border-radius: 0;
  overflow: hidden;
  background: none;
}
.home .hero-map {
  position: absolute;
  inset: 0;
  z-index: -1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* se stinge spre text, ca titlul să nu stea pe desen */
  mask-image: linear-gradient(100deg, transparent 28%, #000 62%);
  opacity: 0.6;
}

/* Textul în stânga, telefoanele în dreapta; pe telefon, unul sub altul. */
.home .hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  align-items: center;
  gap: clamp(24px, 5vw, 64px);
}

/* Două capturi suprapuse: pagina traseului în față, tura înregistrată în spate. */
.home .hero-phones {
  position: relative;
  height: clamp(420px, 46vw, 560px);
}
.home .hero-phones .phone {
  position: absolute;
  top: 0;
  width: clamp(190px, 21vw, 258px);
}
.home .hero-phones .front { left: 4%; z-index: 2; transform: rotate(-4deg); }
.home .hero-phones .back { right: 4%; top: 46px; transform: rotate(5deg); opacity: 0.92; }
/* lumina lime de sub telefoane: aceeași culoare ca traseul de pe hartă */
.home .hero-phones::before {
  content: "";
  position: absolute;
  inset: 18% 8% 6%;
  z-index: -1;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(201, 242, 77, 0.22), transparent);
  filter: blur(18px);
}

/* ── Rama de telefon (hero și rânduri) ─────────────────────────────────── */
.home .phone {
  margin: 0;
  padding: 7px;
  border-radius: 38px;
  background: linear-gradient(160deg, #2A3238, #14191C 55%);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.07),
    0 30px 60px -24px rgba(0, 0, 0, 0.9);
}
.home .phone img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 31px;
  background: var(--surface);
}
.home .hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, transparent 55%, var(--bg) 100%);
}

.home .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 20px;
  padding: 0;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
}
.home .eyebrow::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
}

.home .hero h1 {
  margin: 0 0 20px;
  max-width: 15ch;
  font-family: "Space Grotesk", system-ui, sans-serif;
  font-weight: 700;
  font-size: clamp(42px, 8.5vw, 86px);
  line-height: 0.98;
  letter-spacing: -0.035em;
  text-wrap: balance;
}
.home .lede { max-width: 46ch; margin: 0 0 30px; font-size: clamp(17px, 2.1vw, 20px); color: var(--text-dim); }

.home .cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin: 0; }
.home .btn {
  display: inline-block;
  padding: 13px 24px;
  border: 0;
  border-radius: 999px;
  background: var(--accent);
  color: #0B0E10;
  font-weight: 600;
  font-size: 16px;
  text-decoration: none;
}
.home .btn:hover { filter: brightness(1.06); }
.home .btn.ghost { background: transparent; color: var(--text); box-shadow: inset 0 0 0 1px var(--outline); }
.home .btn.ghost:hover { box-shadow: inset 0 0 0 1px var(--text-dim); filter: none; }

/* ── Banda de cifre ────────────────────────────────────────────────────── */
.home .specs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin-block: 0 clamp(64px, 9vw, 104px);
  border-block: 1px solid var(--outline);
}
.home .specs > div {
  display: grid;
  gap: 4px;
  padding: 26px 22px;
  border-left: 1px solid var(--outline);
}
.home .specs > div:first-child { border-left: 0; padding-left: 0; }
.home .specs > div:last-child { padding-right: 0; }
.home .specs b {
  font-family: "Space Grotesk", system-ui, sans-serif;
  font-size: clamp(28px, 4.4vw, 46px);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}
.home .specs span { font-size: 14px; color: var(--text-dim); }

/* ── Secțiuni ──────────────────────────────────────────────────────────── */
.home .block { padding-block: 0 clamp(64px, 9vw, 112px); }
.home .block h2 {
  margin: 0 0 14px;
  font-family: "Space Grotesk", system-ui, sans-serif;
  font-size: clamp(28px, 4.6vw, 48px);
  font-weight: 700;
  line-height: 1.04;
  letter-spacing: -0.03em;
  text-wrap: balance;
}
.home .intro { max-width: 62ch; margin: 0 0 12px; color: var(--text-dim); font-size: 17px; }

/* ── Rândurile de prezentare: captura pe o parte, textul pe cealaltă ───── */
.home .rows { max-width: 1120px; margin-inline: auto; padding-inline: 20px; }

.home .row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(28px, 6vw, 72px);
  padding-block: clamp(36px, 4.5vw, 60px);
  border-top: 1px solid var(--outline);
  max-width: none;
}
.home .row:first-child { border-top: 0; }
.home .row.flip > figure { order: 2; }

/* Telefonul întreg, pe un panou cu lumină de sus: ecranul complet spune mai mult decât o tăietură. */
.home .row figure.phone {
  justify-self: center;
  width: min(100%, 290px);
}
.home .row > figure { position: relative; }
.home .row > figure::before {
  content: "";
  position: absolute;
  inset: 10% -30% 10%;
  z-index: -1;
  background: radial-gradient(closest-side, rgba(201, 242, 77, 0.10), transparent);
}
.home .row { isolation: isolate; }

.home .row-text { max-width: 52ch; }
.home .row-text h2 {
  margin: 0 0 12px;
  font-family: "Space Grotesk", system-ui, sans-serif;
  font-size: clamp(26px, 3.6vw, 40px);
  font-weight: 700;
  line-height: 1.06;
  letter-spacing: -0.03em;
  text-wrap: balance;
}
.home .row-text p { margin: 0; font-size: 17px; color: var(--text-dim); }

.home .feature-tag {
  display: inline-block;
  margin: 0 0 14px;
  padding: 4px 11px;
  border-radius: 999px;
  background: #222B14;
  color: var(--accent);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.home .caveat {
  margin-top: 14px;
  padding-left: 13px;
  border-left: 2px solid var(--outline);
  font-size: 14.5px;
}

/* ── Stadiu ────────────────────────────────────────────────────────────── */
.home .status { border: 0; background: none; padding-inline: 20px; }
.home .status-card {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(24px, 5vw, 56px);
  padding: clamp(28px, 5vw, 56px);
  border: 1px solid var(--outline);
  border-radius: 32px;
  background:
    radial-gradient(90% 120% at 100% 0%, rgba(201, 242, 77, 0.10), transparent 60%),
    var(--surface);
}
.home .status-card .cta-row { margin-top: 22px; }
.home .platforms { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }
.home .platforms li {
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-areas: "os when" "where when";
  align-items: center;
  margin: 0;
  padding: 16px 20px;
  border: 1px solid var(--outline);
  border-radius: 20px;
  background: var(--surface-2);
}
.home .platforms .os {
  grid-area: os;
  font-family: "Space Grotesk", system-ui, sans-serif;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.home .platforms .where { grid-area: where; font-size: 14px; color: var(--text-dim); }
.home .platforms .when {
  grid-area: when;
  padding: 5px 12px;
  border-radius: 999px;
  background: #222B14;
  color: var(--accent);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* Insignele oficiale ale magazinelor: se folosesc cum sunt, doar mărite (ghidurile Apple / Google). */
.home .store { display: inline-flex; line-height: 0; border-radius: 9px; }
.home .store img { display: block; height: 44px; width: auto; }
.home .store:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.home .stores { align-items: center; }
.home .hero-more { margin: 18px 0 0; font-size: 15px; }
.home .hero-more a { color: var(--text-dim); text-decoration: none; }
.home .hero-more a:hover { color: var(--text); }
.home .platforms .when.store { padding: 0; background: none; }
.home .platforms .when.store img { height: 40px; }
/* Bara de sus e lipită: fără marjă, saltul la o secțiune îi ascundea titlul sub ea. */
.home section[id] { scroll-margin-top: 88px; }

/* ── Subsol ────────────────────────────────────────────────────────────── */
.home footer {
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--outline);
  text-align: left;
}
.home .foot-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1.6fr;
  gap: 32px;
  padding-block: 40px 56px;
}
.home .foot-brand .mark { width: 30px; height: 30px; }
.home .foot-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 10px;
  font-family: "Space Grotesk", system-ui, sans-serif;
  font-weight: 700;
  font-size: 18px;
}
.home footer h4 {
  margin: 0 0 10px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-dim);
}
.home footer ul { margin: 0; padding: 0; list-style: none; }
.home footer li { margin: 0 0 7px; }
.home footer a { color: var(--text-dim); }
.home footer a:hover { color: var(--text); }
.home .fine { font-size: 14px; color: var(--text-dim); }

@media (max-width: 860px) {
  .home .specs { grid-template-columns: repeat(2, 1fr); }
  .home .specs > div:nth-child(odd) { border-left: 0; padding-left: 0; }
  .home .specs > div:nth-child(even) { padding-right: 0; }
  .home .specs > div:nth-child(n+3) { border-top: 1px solid var(--outline); }
  .home .foot-grid { grid-template-columns: 1fr; gap: 26px; }
}

@media (max-width: 820px) {
  .home .row { grid-template-columns: 1fr; gap: 28px; }
  .home .row.flip > figure { order: 0; }
  .home .row figure.phone { width: min(72%, 250px); }
  .home .hero-inner { grid-template-columns: 1fr; }
  .home .hero-phones { height: clamp(360px, 92vw, 460px); max-width: 420px; width: 100%; justify-self: center; }
  .home .hero-phones .phone { width: clamp(170px, 44vw, 210px); }
  .home .status-card { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .home .nav nav { gap: 14px; }
  .home .nav nav a:not(.pill) { display: none; }
  /* pe lat de telefon textul acoperă toată lățimea, deci harta nu mai are unde să stea lângă el */
  .home .hero-map { mask-image: none; opacity: 0.22; }
  .home .hero { padding-block: 40px 56px; }
}

/* ── Desenul: drumul se trage, iar ceața se ridică hexagon cu hexagon ──── */
.draw { stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw 2.4s cubic-bezier(.33,.9,.35,1) forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
/* fiecare hexagon știe cât de departe e pe drum (--t, 0…1) și apare când ajunge linia la el */
.holes polygon { opacity: 0; animation: clear .5s ease-out forwards; animation-delay: calc(var(--t) * 2.1s + .15s); }
@keyframes clear { to { opacity: 1; } }

@media (prefers-reduced-motion: reduce) {
  .draw { animation: none; stroke-dashoffset: 0; }
  .holes polygon { animation: none; opacity: 1; }
}

/* Textul de sub titlu: trei promisiuni, fiecare pe rândul ei (2026-11-08). */
.lede.lines span { display: block; }
.lede.lines span + span { margin-top: 6px; }
