/* ELX — pagina de prezentare (app-elx.ro).
   Culorile vin din src/ui/theme.ts. Perechile text/fundal folosite au contrast de cel puțin 4,5:1 (WCAG AA).
   Fără resurse externe: fontul Nunito e servit de pe server, doar literele folosite (latin + diacritice). */

@font-face {
  font-family: "Nunito";
  src: url("fonts/nunito-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Nunito";
  src: url("fonts/nunito-700.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Nunito";
  src: url("fonts/nunito-800.woff2") format("woff2");
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}

:root {
  --accent: #4b39e0;
  --accent-dark: #3a2abf;
  --accent-soft: #ece9ff;
  --violet: #8b2fd6;
  --bg: #f5f4fb;
  --card: #ffffff;
  --ink: #16132d;
  --ink-2: #211d40;
  --muted: #5b5875;
  --line: #e2dff0;
  --sun: #ffc233;
  --teal: #0b6b78;
  --teal-soft: #ddf4f6;
  --orange: #a8430a;
  --orange-soft: #ffe9d6;
  --danger: #b92c22;
  --danger-soft: #fdebe9;
  --on-brand: #ffffff;
  --on-brand-soft: #f0edff; /* 4,9:1 și pe capătul violet al degradeului */
  --on-ink-soft: #cfcbea; /* 11:1 pe --ink, 9:1 pe --ink-2 */
  --brand: linear-gradient(135deg, #4b39e0 0%, #8b2fd6 100%);

  --shadow-card: 0 1px 2px rgba(22, 19, 45, 0.05), 0 6px 16px rgba(22, 19, 45, 0.07);
  --shadow-raised: 0 4px 10px rgba(22, 19, 45, 0.08), 0 14px 28px rgba(22, 19, 45, 0.12);
  --shadow-float: 0 10px 32px rgba(22, 19, 45, 0.24);

  --r-m: 16px;
  --r-l: 24px;
  --r-xl: 32px;
  --pad: clamp(20px, 5vw, 40px);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: "Nunito", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
}

h1,
h2,
h3,
p,
ul,
ol,
figure {
  margin: 0;
}

h1,
h2,
h3 {
  text-wrap: balance;
}

p,
li {
  text-wrap: pretty;
}

a {
  color: inherit;
}

/* Pictogramele: dimensiunea vine din clasa fiecărui loc. */
svg {
  flex: none;
}

.sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

/* ------------------------------------------------------------------ focus și sărituri */
:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
  border-radius: 6px;
}

.hero :focus-visible,
.section--ink :focus-visible,
.final :focus-visible {
  outline-color: var(--sun);
}

.skip {
  position: absolute;
  left: 16px;
  top: 12px;
  z-index: 100;
  padding: 12px 18px;
  border-radius: 12px;
  background: var(--card);
  color: var(--accent);
  font-weight: 800;
  text-decoration: none;
  transform: translateY(-160%);
}

.skip:focus-visible {
  transform: none;
  outline-color: var(--sun);
}

.wrap {
  width: 100%;
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: var(--pad);
}

/* ------------------------------------------------------------------ text comun */
.dot {
  display: inline-block;
  width: 0.2em;
  height: 0.2em;
  margin-left: 0.07em;
  border-radius: 50%;
  background: var(--sun);
  vertical-align: baseline;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  color: var(--accent);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--sun);
}

.eyebrow--sun {
  color: var(--sun);
}

.h2 {
  font-size: clamp(32px, 4.6vw, 54px);
  line-height: 1.08;
  font-weight: 800;
  letter-spacing: -0.025em;
}

.h2--sm {
  font-size: clamp(28px, 3.4vw, 42px);
}

.h3 {
  font-size: 21px;
  line-height: 1.25;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.lead {
  margin-top: 18px;
  color: var(--muted);
  font-size: clamp(17px, 1.6vw, 20px);
  line-height: 1.55;
}

.link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  color: var(--accent);
  font-weight: 800;
  text-decoration: none;
}

.link svg {
  width: 18px;
  height: 18px;
  transition: transform 0.2s ease;
}

.link:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.link--inline {
  display: inline;
  min-height: 0;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ------------------------------------------------------------------ ero */
.hero {
  position: relative;
  overflow: hidden;
  color: var(--on-brand);
  background: var(--brand);
  border-radius: 0 0 clamp(28px, 4vw, 48px) clamp(28px, 4vw, 48px);
  isolation: isolate;
}

/* Cercurile de decor, ca în antetul aplicației. */
.hero__decor,
.final__decor {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}

.hero__decor::before,
.hero__decor::after,
.final__decor::before,
.final__decor::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
}

.hero__decor::before {
  width: 720px;
  height: 720px;
  right: -180px;
  top: -260px;
}

.hero__decor::after {
  width: 420px;
  height: 420px;
  left: -160px;
  bottom: -220px;
}

.topbar {
  display: flex;
  align-items: center;
  gap: 24px;
  min-height: 84px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  text-decoration: none;
  color: var(--on-brand);
}

.brand__mark {
  width: 42px;
  height: 42px;
  border-radius: 11px;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.35);
}

.brand__name {
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.brand--dark {
  color: var(--ink);
}

.brand--dark .brand__mark {
  box-shadow: none;
}

.topbar__links {
  display: none;
  list-style: none;
  padding: 0;
  margin-left: auto;
  gap: 4px;
}

.topbar__links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 14px;
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
  color: var(--on-brand);
}

.topbar__links a:hover {
  background: rgba(255, 255, 255, 0.14);
}

.topbar__cta {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin-left: auto;
  padding: 0 20px;
  border-radius: 999px;
  background: var(--card);
  color: var(--accent);
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
}

.topbar__cta:hover {
  background: var(--accent-soft);
}

.hero__grid {
  display: grid;
  gap: 40px;
  padding-top: clamp(24px, 4vw, 56px);
}

.hero__copy {
  position: relative;
  z-index: 4;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px 8px 12px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 700;
}

.pill--glass {
  background: rgba(22, 19, 45, 0.2);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18);
}

.pill__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--sun);
  box-shadow: 0 0 0 4px rgba(255, 194, 51, 0.25);
}

.hero__title {
  margin-top: 22px;
  font-size: clamp(46px, 7.4vw, 92px);
  line-height: 0.98;
  font-weight: 800;
  letter-spacing: -0.035em;
}

.hero__lead {
  margin-top: 22px;
  max-width: 28em;
  color: var(--on-brand-soft);
  font-size: clamp(18px, 1.7vw, 21px);
  line-height: 1.55;
}

.stores {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.stores--center {
  justify-content: center;
}

/* Insignele „În curând”: desenate de noi, neutre (nu sunt insignele oficiale ale magazinelor) și fără link. */
.store {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 58px;
  padding: 8px 20px 8px 14px;
  border-radius: 16px;
  background: var(--ink);
  color: #ffffff;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.16), 0 8px 20px rgba(22, 19, 45, 0.25);
}

.store__icon {
  width: 28px;
  height: 28px;
  color: var(--sun);
}

.store__text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.store__small {
  color: var(--on-ink-soft);
  font-size: 13px;
  font-weight: 700;
}

.store__big {
  font-size: 19px;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.hero__note {
  margin-top: 16px;
  color: var(--on-brand-soft);
  font-size: 15px;
}

/* ------------------------------------------------------------------ telefoanele (cadru desenat din CSS) */
.phone {
  position: relative;
  width: 300px;
  padding: 9px;
  border-radius: 46px;
  background: linear-gradient(160deg, #2c2752 0%, #0f0d1f 60%);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.1),
    0 2px 4px rgba(22, 19, 45, 0.2),
    0 30px 60px -12px rgba(22, 19, 45, 0.45);
}

.phone img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 37px;
  background: var(--bg);
}

/* Camera, un punct mic sus, și butonul lateral. */
.phone::before {
  content: "";
  position: absolute;
  top: 19px;
  left: 50%;
  width: 11px;
  height: 11px;
  margin-left: -5.5px;
  border-radius: 50%;
  background: #0b0a16;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.08);
}

.phone::after {
  content: "";
  position: absolute;
  right: -3px;
  top: 22%;
  width: 3px;
  height: 64px;
  border-radius: 0 3px 3px 0;
  background: #2c2752;
}

.hero__visual {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 560px;
  padding-bottom: 56px;
}

.phone--front {
  z-index: 2;
  width: min(290px, 74vw);
}

.phone--back {
  position: absolute;
  z-index: 1;
  top: 54px;
  left: calc(50% - 215px);
  width: min(240px, 58vw);
  transform: rotate(-9deg);
  opacity: 0.96;
}

.chip {
  position: absolute;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px 12px 12px;
  border-radius: 20px;
  background: var(--card);
  color: var(--ink);
  font-size: 14px;
  line-height: 1.3;
  box-shadow: var(--shadow-float);
}

.chip strong {
  font-weight: 800;
  font-size: 15px;
}

.chip__icon {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--accent-soft);
  color: var(--accent);
}

.chip__icon svg {
  width: 22px;
  height: 22px;
}

.chip__icon--sun {
  background: var(--sun);
  color: var(--ink);
}

.chip--a {
  left: 0;
  top: 96px;
}

.chip--b {
  right: 0;
  bottom: 150px;
}

.codebox {
  display: inline-flex;
  gap: 5px;
}

.codebox span {
  display: grid;
  place-items: center;
  width: 28px;
  height: 34px;
  border-radius: 8px;
  background: var(--bg);
  border-bottom: 3px solid var(--accent);
  font-size: 19px;
  font-weight: 800;
}

/* ------------------------------------------------------------------ secțiuni */
.section {
  padding-block: clamp(72px, 10vw, 128px);
}

.section--white {
  background: var(--card);
}

.section--ink {
  color: #ffffff;
  background:
    radial-gradient(900px 480px at 85% -10%, rgba(139, 47, 214, 0.35), transparent 70%),
    radial-gradient(700px 420px at 0% 110%, rgba(75, 57, 224, 0.3), transparent 70%),
    var(--ink);
}

.section--ink .lead {
  color: var(--on-ink-soft);
}

.section__head {
  max-width: 780px;
  margin: 0 auto clamp(40px, 6vw, 64px);
  text-align: center;
}

.section__head--left {
  margin: 0;
  text-align: left;
}

/* Pașii */
.steps {
  display: grid;
  gap: 20px;
  list-style: none;
  padding: 0;
}

.step {
  position: relative;
  overflow: hidden;
  padding: 32px 28px 34px;
  border-radius: var(--r-xl);
  background: var(--card);
  box-shadow: var(--shadow-card);
}

.step__num {
  position: absolute;
  top: 6px;
  right: 22px;
  color: var(--accent-soft);
  font-size: 104px;
  line-height: 1;
  font-weight: 800;
  letter-spacing: -0.05em;
}

.step__icon {
  position: relative;
  display: block;
  width: 56px;
  height: 56px;
  padding: 14px;
  margin-bottom: 26px;
  border-radius: 18px;
  background: var(--accent-soft);
  color: var(--accent);
}

.step .h3 {
  position: relative;
  margin-bottom: 10px;
}

.step p {
  position: relative;
  color: var(--muted);
}

.step--accent {
  color: #ffffff;
  background: var(--brand);
  box-shadow: 0 18px 40px -16px rgba(75, 57, 224, 0.6);
}

.step--accent .step__num {
  color: rgba(255, 255, 255, 0.14);
}

.step--accent .step__icon {
  background: rgba(255, 255, 255, 0.16);
  color: var(--sun);
}

.step--accent p {
  color: var(--on-brand-soft);
}

/* Vitrina cu codul */
.showcase {
  display: grid;
  gap: 32px;
  align-items: center;
  margin-top: clamp(56px, 8vw, 96px);
  padding: clamp(32px, 5vw, 64px);
  border-radius: 40px;
  background: var(--card);
  box-shadow: var(--shadow-card);
  overflow: hidden;
}

.showcase__phones {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-block: 12px 24px;
}

.showcase__phones .phone {
  width: min(250px, 44vw);
  padding: 7px;
  border-radius: 38px;
}

.showcase__phones .phone img {
  border-radius: 31px;
}

.phone--tilt-l {
  transform: rotate(-5deg);
}

.phone--tilt-r {
  margin-left: -36px;
  margin-top: 56px;
  transform: rotate(4deg);
}

.ticks {
  display: grid;
  gap: 14px;
  margin-top: 26px;
  padding: 0;
  list-style: none;
}

.ticks li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.ticks svg {
  width: 30px;
  height: 30px;
  padding: 6px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
}

.ticks--big {
  gap: 20px;
  margin-top: 32px;
}

.ticks--big span {
  color: var(--muted);
}

.ticks--big strong {
  color: var(--ink);
  font-weight: 800;
}

/* Ce poți face */
.bento {
  display: grid;
  gap: 18px;
}

.tile {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 250px;
  padding: 30px 28px;
  border-radius: var(--r-xl);
}

.tile p {
  color: var(--muted);
}

.tile__icon {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  margin-bottom: 14px;
  border-radius: 18px;
  background: var(--card);
  box-shadow: var(--shadow-card);
}

.tile__icon svg {
  width: 26px;
  height: 26px;
}

.tile--indigo {
  background: var(--accent-soft);
}

.tile--indigo .tile__icon {
  color: var(--accent);
}

.tile--plain {
  background: var(--bg);
}

.tile--plain .tile__icon {
  color: var(--accent);
}

.tile--teal {
  background: var(--teal-soft);
}

.tile--teal .tile__icon {
  color: var(--teal);
}

.tile--orange {
  background: var(--orange-soft);
}

.tile--orange .tile__icon {
  color: var(--orange);
}

.tile--money {
  position: relative;
  display: grid;
  gap: 32px;
  min-height: 0;
  padding: 40px 28px 0;
  overflow: hidden;
  color: #ffffff;
  background: var(--brand);
  isolation: isolate;
}

.tile--money::before {
  content: "";
  position: absolute;
  z-index: -1;
  width: 520px;
  height: 520px;
  right: -140px;
  top: -200px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
}

.tile--money .h3 {
  font-size: clamp(28px, 3.2vw, 40px);
  letter-spacing: -0.02em;
}

.tile--money p {
  color: var(--on-brand-soft);
  font-size: 18px;
}

.tile__money-copy {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-self: center;
}

.tile__icon--glass {
  background: rgba(255, 255, 255, 0.16);
  color: var(--sun);
  box-shadow: none;
}

.tile--money .tile__badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  align-self: flex-start;
  margin-top: 8px;
  padding: 10px 16px;
  border-radius: 16px;
  background: rgba(22, 19, 45, 0.24);
  color: #ffffff;
  font-size: 15px;
  font-weight: 700;
}

.tile__badge svg {
  width: 18px;
  height: 18px;
  color: var(--sun);
}

/* Telefonul din „Banii mei” iese din card pe jos (se vede doar partea de sus a ecranului). */
.phone--money {
  justify-self: center;
  width: min(290px, 100%);
  margin-bottom: -46%;
}

/* Siguranța */
.safety {
  display: grid;
  gap: 16px;
  list-style: none;
  padding: 0;
}

.safe {
  padding: 28px;
  border-radius: var(--r-l);
  background: var(--ink-2);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.07);
}

.safe__icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  margin-bottom: 20px;
  border-radius: 16px;
  background: rgba(255, 194, 51, 0.12);
  color: var(--sun);
}

.safe__icon svg {
  width: 26px;
  height: 26px;
}

.safe .h3 {
  margin-bottom: 8px;
}

.safe p {
  color: var(--on-ink-soft);
}

/* Părinții */
.parents {
  display: grid;
  gap: 40px;
  align-items: start;
}

.links-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 28px;
  margin-top: 28px;
}

.rules {
  padding: 32px 28px;
  border-radius: var(--r-xl);
  background: var(--card);
  box-shadow: var(--shadow-raised);
}

.rules__icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  margin-bottom: 18px;
  border-radius: 16px;
  background: var(--danger-soft);
  color: var(--danger);
}

.rules__icon svg {
  width: 26px;
  height: 26px;
}

.rules__list {
  display: grid;
  gap: 10px;
  margin: 18px 0 14px;
  padding: 0;
  list-style: none;
  color: var(--muted);
  font-size: 16px;
}

.rules__list li {
  position: relative;
  padding-left: 22px;
}

.rules__list li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 0.62em;
  width: 9px;
  height: 2px;
  border-radius: 2px;
  background: var(--danger);
  box-shadow: 0 0 0 0 transparent;
}

/* Întrebări */
.faq-wrap {
  display: grid;
  gap: 40px;
}

.faq details {
  margin-bottom: 12px;
  border-radius: 20px;
  background: var(--card);
  box-shadow: var(--shadow-card);
}

.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 68px;
  padding: 16px 20px 16px 24px;
  border-radius: 20px;
  font-size: 18px;
  font-weight: 800;
  line-height: 1.35;
  cursor: pointer;
  list-style: none;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary svg {
  width: 36px;
  height: 36px;
  padding: 8px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
  transition: transform 0.2s ease, background-color 0.2s ease;
}

.faq details[open] summary svg {
  transform: rotate(45deg);
  background: var(--accent);
  color: #ffffff;
}

.faq details p {
  padding: 0 24px 24px;
  color: var(--muted);
}

/* Apelul final */
.final {
  position: relative;
  overflow: hidden;
  margin: 0 clamp(12px, 3vw, 32px) clamp(12px, 3vw, 32px);
  padding-block: clamp(64px, 9vw, 112px);
  border-radius: 40px;
  color: #ffffff;
  text-align: center;
  background: var(--brand);
  isolation: isolate;
}

.final__decor::before {
  width: 560px;
  height: 560px;
  left: -200px;
  top: -260px;
}

.final__decor::after {
  width: 460px;
  height: 460px;
  right: -140px;
  bottom: -260px;
}

.final__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.final__mark {
  width: 88px;
  height: 88px;
  border-radius: 20px;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.35), 0 20px 40px -12px rgba(22, 19, 45, 0.5);
}

.final__title {
  max-width: 14em;
  margin-top: 28px;
}

.final__lead {
  max-width: 34em;
  margin-top: 18px;
  color: var(--on-brand-soft);
  font-size: clamp(17px, 1.6vw, 20px);
}

/* Subsolul */
.footer {
  padding: 56px 0 32px;
  color: var(--muted);
  font-size: 16px;
}

.footer__grid {
  display: grid;
  gap: 32px;
}

.footer__brand p {
  margin-top: 8px;
}

.footer__h {
  margin-bottom: 8px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.footer ul {
  display: grid;
  padding: 0;
  list-style: none;
}

.footer__nav a,
.footer__contact a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--ink);
  font-weight: 700;
  text-decoration: none;
}

.footer__nav a:hover,
.footer__contact a:hover {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.footer__bottom {
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  font-size: 15px;
}

/* ------------------------------------------------------------------ telefoane mici: totul mai compact */
@media (max-width: 639px) {
  .stores {
    gap: 10px;
  }

  .store {
    gap: 8px;
    min-height: 54px;
    padding: 8px 14px 8px 10px;
    border-radius: 14px;
  }

  .store__icon {
    width: 22px;
    height: 22px;
  }

  .store__small {
    font-size: 12px;
  }

  .store__big {
    font-size: 16px;
  }

  /* Cardurile: pictograma stă lângă titlu, nu deasupra lui. */
  .tile:not(.tile--money),
  .safe {
    display: grid;
    grid-template-columns: auto 1fr;
    column-gap: 16px;
    row-gap: 8px;
    align-items: center;
    min-height: 0;
    padding: 24px 22px;
  }

  .tile:not(.tile--money) p,
  .safe p {
    grid-column: 1 / -1;
  }

  .tile__icon,
  .safe__icon {
    width: 48px;
    height: 48px;
    margin: 0;
    border-radius: 14px;
  }

  .safe .h3 {
    margin: 0;
  }

  .step {
    padding: 26px 22px 28px;
  }

  .step__icon {
    margin-bottom: 18px;
  }

  .step__num {
    font-size: 84px;
  }

  .footer__grid {
    grid-template-columns: 1fr 1fr;
  }

  .footer__brand {
    grid-column: 1 / -1;
  }
}

/* ------------------------------------------------------------------ ecrane mai mari */
@media (min-width: 640px) {
  .bento {
    grid-template-columns: repeat(2, 1fr);
  }

  .tile--money {
    grid-column: 1 / -1;
  }

  .safety {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer__grid {
    grid-template-columns: 1.4fr 1fr 1fr;
  }
}

@media (min-width: 900px) {
  .topbar__links {
    display: flex;
  }

  .topbar__cta {
    margin-left: 8px;
  }

  .hero__grid {
    grid-template-columns: 1.08fr 0.92fr;
    align-items: center;
    gap: 24px;
  }

  .hero__visual {
    min-height: 700px;
    padding-bottom: 72px;
  }

  .phone--front {
    width: 300px;
  }

  .phone--back {
    top: 92px;
    left: calc(50% - 250px);
    width: 256px;
  }

  .chip--a {
    left: -8px;
    top: 150px;
  }

  .chip--b {
    right: -12px;
    bottom: 170px;
  }

  .steps {
    grid-template-columns: repeat(3, 1fr);
  }

  .showcase {
    grid-template-columns: 1fr 1fr;
    gap: 48px;
  }

  .bento {
    grid-template-columns: repeat(4, 1fr);
  }

  .tile--money {
    grid-template-columns: 1.1fr 0.9fr;
    padding: 56px 56px 0;
    min-height: 460px;
  }

  .tile__money-copy {
    padding-bottom: 56px;
  }

  .phone--money {
    align-self: start;
    margin-bottom: -190px;
  }

  .safety {
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
  }

  .parents {
    grid-template-columns: 1.3fr 0.9fr;
    gap: 64px;
  }

  .faq-wrap {
    grid-template-columns: 0.8fr 1.2fr;
    gap: 64px;
    align-items: start;
  }
}

/* Între 900 și 1279 px coloana de text e prea aproape: rămâne doar telefonul din față. */
@media (min-width: 900px) and (max-width: 1279px) {
  .phone--back {
    display: none;
  }
}

@media (min-width: 1100px) {
  .hero__visual {
    min-height: 740px;
  }

  .phone--front {
    width: 320px;
  }

  .phone--back {
    left: calc(50% - 250px);
    width: 262px;
  }
}

/* ------------------------------------------------------------------ mișcare (doar dacă nu e cerută mai puțină) */
@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }

  .chip--a {
    animation: plutire 6s ease-in-out 4 alternate;
  }

  .chip--b {
    animation: plutire 7s ease-in-out 4 alternate;
  }

  .link:hover svg {
    transform: translateX(3px);
  }
}

@keyframes plutire {
  from {
    transform: translateY(0);
  }
  to {
    transform: translateY(-10px);
  }
}

@media (forced-colors: active) {
  .dot,
  .pill__dot,
  .eyebrow::before {
    background: CanvasText;
  }
}

/* Camera desenată stă doar pe telefoanele drepte: pe cele înclinate ar acoperi titlul ecranului. */
.phone--back::before,
.phone--tilt-l::before,
.phone--tilt-r::before {
  display: none;
}
