@font-face { font-family: "Onest"; src: url("/projects/listapp/fonts/onest-latin.woff2") format("woff2"); font-weight: 100 900; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Onest"; src: url("/projects/listapp/fonts/onest-latin-ext.woff2") format("woff2"); font-weight: 100 900; font-display: swap; unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root {
  color-scheme: light;
  --cobalt: #494fdf;
  --cobalt-deep: #3a40c4;
  --cobalt-soft: #e7e8fb;
  --bg: #f2f2f7;
  --surface: #ffffff;
  --ink: #191c1f;
  --muted: #5f6369;
  --line: rgba(60, 60, 67, 0.15);
  --teal-ink: #00694e;
  --teal-soft: rgba(0, 168, 126, 0.14);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --gutter: clamp(16px, 4vw, 48px);
  font-family: "Onest", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scrollbar-color: rgba(73, 79, 223, 0.45) var(--bg); }
body { background: var(--bg); color: var(--ink); font-size: 17px; line-height: 1.5; -webkit-font-smoothing: antialiased; caret-color: var(--cobalt); overflow-x: clip; }
::selection { background: var(--cobalt); color: #fff; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-underline-offset: 3px; }
button, input { font: inherit; color: inherit; background: none; border: 0; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--cobalt); outline-offset: 2px; }
.hero :focus-visible, .cta :focus-visible { outline-color: #fff; }
.demo :focus-visible { outline-color: var(--cobalt); }
.wrap { width: min(100%, 1240px); margin-inline: auto; padding-inline: var(--gutter); }
h1, h2 { font-weight: 650; letter-spacing: -0.032em; line-height: 1.04; text-wrap: balance; }

.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 26px; border-radius: 999px; font-weight: 600; text-decoration: none; white-space: nowrap; transition: transform 0.25s var(--ease), background 0.2s, color 0.2s; }
.btn:active { transform: scale(0.97); }
.btn-white { background: #fff; color: var(--cobalt-deep); }
.btn-white:hover { background: var(--cobalt-soft); }
.btn-line { box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, 0.7); color: #fff; }
.btn-line:hover { background: rgba(255, 255, 255, 0.14); }
.btn-small { min-height: 44px; padding: 0 18px; font-size: 15px; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; }

/* Primul ecran */
.hero { display: flex; flex-direction: column; min-height: 100vh; min-height: 100svh; background: var(--cobalt); color: #fff; padding: 0 0 clamp(40px, 6vw, 72px); }
.nav { display: flex; align-items: center; justify-content: space-between; width: min(100%, 1240px); margin-inline: auto; padding: calc(env(safe-area-inset-top) + 16px) var(--gutter) 16px; }
.brand { font-size: 22px; font-weight: 700; letter-spacing: -0.03em; text-decoration: none; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 40px; width: min(100%, 1240px); margin-inline: auto; padding: clamp(24px, 5vw, 56px) var(--gutter) 0; }
.hero h1 { font-size: clamp(44px, 12.4vw, 92px); }
.lead { max-width: 34em; margin: 22px 0 28px; font-size: clamp(18px, 2.2vw, 21px); color: rgba(255, 255, 255, 0.92); }
.demo-hint { text-wrap: balance; margin-bottom: 12px; font-size: 15px; font-weight: 500; color: #fff; }

/* Lista de probă din primul ecran: aceleași forme ca în aplicație */
.demo { background: var(--bg); color: var(--ink); border-radius: 30px; padding: 16px 12px 12px; box-shadow: 0 24px 60px rgba(20, 22, 90, 0.34); animation: rise 0.8s var(--ease) both; }
@keyframes rise { from { opacity: 0; transform: translateY(26px); } }
.d-title { font-size: 25px; font-weight: 700; letter-spacing: -0.022em; padding: 0 6px 10px; }
.d-tabs { display: flex; gap: 8px; padding: 0 2px 14px; }
.d-tab { height: 38px; padding: 0 14px; display: inline-flex; align-items: center; border-radius: 999px; background: var(--surface); font-size: 15px; font-weight: 500; }
.d-tab[data-on] { background: var(--cobalt); color: #fff; }
.d-stage { font-size: 15px; font-weight: 600; padding: 0 6px 8px; }
.d-rows { list-style: none; background: var(--surface); border-radius: 20px; }
.d-row { position: relative; display: grid; grid-template-columns: 46px minmax(0, 1fr) auto; align-items: center; min-height: 56px; padding-right: 14px; animation: rowin 0.35s var(--ease); }
@keyframes rowin { from { opacity: 0; transform: translateY(6px); } }
.d-row + .d-row::before, .d-total::before, .d-add::before { content: ""; position: absolute; top: 0; left: 46px; right: 0; border-top: 1px solid var(--line); }
.d-check { display: grid; place-items: center; width: 46px; height: 100%; min-height: 56px; }
.d-dot { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px var(--muted); color: transparent; transition: background 0.2s, box-shadow 0.2s; }
.d-check:hover .d-dot { box-shadow: inset 0 0 0 2px var(--cobalt); }
.d-row[data-done] .d-dot { background: var(--cobalt); box-shadow: none; color: #fff; animation: tick 0.42s var(--ease); }
@keyframes tick { 0% { transform: scale(0.7); } 55% { transform: scale(1.12); } 100% { transform: scale(1); } }
.d-main { min-width: 0; padding: 9px 8px 9px 0; }
.d-name { display: block; font-size: 16px; }
.d-row[data-done] .d-name { color: var(--muted); }
.d-tag { display: inline-block; margin-top: 4px; padding: 2px 7px; border-radius: 6px; background: var(--teal-soft); color: var(--teal-ink); font-size: 11px; font-weight: 600; letter-spacing: 0.02em; }
.d-sum { font-size: 15px; font-variant-numeric: tabular-nums; color: var(--muted); white-space: nowrap; text-align: right; }
.d-sum[data-final] { color: var(--ink); font-weight: 600; }
.d-sum small { display: block; font-size: 12px; font-weight: 400; color: var(--cobalt-deep); }
.d-final { grid-column: 2 / -1; display: flex; align-items: center; gap: 8px; margin: -2px 0 10px; font-size: 13px; color: var(--muted); }
.d-final span { flex: 1; }
.d-final label { display: flex; align-items: center; height: 40px; width: 112px; padding: 0 10px 0 12px; border-radius: 12px; background: var(--bg); }
.d-final label:focus-within { box-shadow: inset 0 0 0 2px var(--cobalt); }
.d-final input { width: 100%; min-width: 0; outline: 0; font-size: 16px; font-weight: 500; font-variant-numeric: tabular-nums; }
.d-final i { font-style: normal; margin-left: 4px; }
.d-total { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 10px; align-items: center; padding: 7px 14px 7px 46px; font-weight: 600; font-size: 15px; font-variant-numeric: tabular-nums; }
.d-total div { text-align: right; white-space: nowrap; }
.d-total small { display: block; font-size: 12px; font-weight: 400; color: var(--muted); }
.d-add { position: relative; }
.d-add form { display: flex; align-items: center; min-height: 56px; }
.d-add button { display: grid; place-items: center; width: 46px; height: 56px; color: var(--cobalt-deep); flex: none; }
.d-add input { flex: 1; min-width: 0; height: 56px; padding-right: 14px; outline: 0; font-size: 16px; }
.d-add input::placeholder { color: var(--muted); opacity: 1; }
.d-bar { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 12px; padding: 12px 18px; border-radius: 22px; background: var(--surface); box-shadow: 0 8px 28px rgba(25, 28, 31, 0.1); }
.d-bar span { display: block; font-size: 12px; color: var(--muted); }
.d-bar strong { font-size: 19px; font-weight: 650; letter-spacing: -0.01em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.d-bar em { font-size: 0.72em; font-style: normal; font-weight: 500; }

/* Comparația */
.compare { background: var(--surface); padding: clamp(64px, 10vw, 128px) 0; }
.compare h2, .desk h2, .story h2 { font-size: clamp(32px, 5.4vw, 58px); }
.compare h2 { max-width: 15em; }
.section-lead { max-width: 36em; margin-top: 18px; font-size: clamp(18px, 2vw, 21px); color: var(--muted); }
.table-wrap { margin-top: clamp(32px, 5vw, 56px); }
table { width: 100%; border-collapse: collapse; }
thead th { vertical-align: bottom; padding: 0 16px 14px; text-align: left; font-size: 15px; font-weight: 600; color: var(--muted); }
thead th.us { color: #fff; background: var(--cobalt); border-radius: 18px 18px 0 0; padding-top: 14px; }
tbody th { padding: 18px 16px 18px 0; text-align: left; font-weight: 500; font-size: clamp(17px, 1.6vw, 19px); letter-spacing: -0.01em; }
tbody td { padding: 18px 16px; font-size: 16px; color: var(--ink); }
tbody tr { border-top: 1px solid var(--line); }
tbody td.no { color: var(--muted); }
tbody td.us { background: var(--cobalt); color: #fff; font-weight: 600; }
tbody tr:last-child td.us { border-radius: 0 0 18px 18px; }
tbody tr + tr td.us { box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22); }
tbody tr td.us { border-top: 0; }

/* Povestea, cu telefonul fix pe desktop */
.story { padding: clamp(64px, 10vw, 128px) 0; }
.step + .step { margin-top: 72px; }
.step h2 { font-size: clamp(30px, 5vw, 50px); }
.step p { max-width: 30em; margin-top: 16px; font-size: clamp(17px, 1.7vw, 19px); color: var(--muted); }
.step-img { width: min(100%, 340px); margin: 28px auto 0; border-radius: 36px; box-shadow: 0 0 0 6px var(--surface), 0 20px 50px rgba(25, 28, 31, 0.16); }
.phone-rail { display: none; }

/* Laptop */
.desk { background: var(--cobalt-soft); padding: clamp(64px, 10vw, 128px) 0; }
.desk-text { display: grid; gap: 24px; }
.desk-notes { display: grid; gap: 14px; color: #33364f; font-size: clamp(17px, 1.6vw, 19px); }
.desk-shot { width: 100%; margin-top: clamp(32px, 5vw, 56px); border-radius: clamp(14px, 2vw, 26px); box-shadow: 0 0 0 1px rgba(58, 64, 196, 0.14), 0 30px 70px rgba(58, 64, 196, 0.24); }

.desk-note { margin-top: 18px; font-size: 14px; color: #4a4d68; }

/* Întrebări */
.faq { padding: clamp(64px, 10vw, 120px) 0; background: var(--surface); }
.faq h2 { font-size: clamp(32px, 5vw, 50px); }
.faq-grid { display: grid; gap: 28px; }
.faq dl > div { padding: 20px 0; border-top: 1px solid var(--line); }
.faq dt { font-size: 19px; font-weight: 600; letter-spacing: -0.01em; }
.faq dd { margin-top: 6px; color: var(--muted); max-width: 38em; }
.faq dd a { color: var(--cobalt-deep); }

/* Contact */
.cta { background: var(--cobalt); color: #fff; padding: clamp(72px, 12vw, 150px) 0; }
.cta h2 { font-size: clamp(42px, 9vw, 96px); max-width: 11em; }
.cta p { margin: 22px 0 30px; font-size: clamp(18px, 2.2vw, 21px); color: rgba(255, 255, 255, 0.92); max-width: 30em; }

.foot { padding: 22px 0 calc(env(safe-area-inset-bottom) + 22px); font-size: 13px; color: var(--muted); }
.foot-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; }
.foot a:hover { color: var(--ink); }

/* Pe telefon, tabelul devine rânduri cu trei valori */
@media (max-width: 719px) {
  thead { display: none; }
  table, tbody { display: block; }
  tbody tr { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; padding: 18px 0; }
  tbody th { grid-column: 1 / -1; padding: 0 0 6px; }
  tbody td, tbody td.us { padding: 10px; border-radius: 12px; font-size: 14px; line-height: 1.25; background: var(--bg); box-shadow: none !important; }
  tbody td::before { content: attr(data-label); display: block; margin-bottom: 2px; font-size: 12px; font-weight: 500; color: var(--muted); }
  tbody td.us, tbody tr:last-child td.us { background: var(--cobalt); border-radius: 12px; }
  tbody td.us::before { color: rgba(255, 255, 255, 0.88); }
}

@media (min-width: 720px) {
  .desk-text { grid-template-columns: 3fr 2fr; gap: 56px; align-items: end; }
  .faq-grid { grid-template-columns: 1fr 2fr; gap: 56px; }
  table { table-layout: fixed; }
  thead td { width: 46%; }
}

@media (min-width: 1000px) {
  .hero { padding-bottom: clamp(32px, 5vh, 64px); }
  .hero-grid { flex: 1; grid-template-columns: minmax(0, 1fr) 410px; gap: 64px; align-items: center; padding-top: clamp(16px, 3vh, 32px); }
  .hero h1 { font-size: clamp(60px, 6.5vw, 92px); }
  .compare h2 { font-size: clamp(36px, 4.2vw, 58px); }

  .story-grid { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 80px; }
  .step { min-height: 88vh; display: flex; flex-direction: column; justify-content: center; }
  .step:last-child { min-height: 100vh; }
  .step h2 { transition: color 0.35s; }
  .step[data-on] h2 { color: var(--cobalt); }
  .step + .step { margin-top: 0; }
  .step-img { display: none; }
  .phone-rail { --ph: min(822px, calc(100vh - 48px)); display: block; position: sticky; top: calc((100vh - var(--ph)) / 2); align-self: start; }
  .phone { position: relative; height: var(--ph); aspect-ratio: 390 / 844; margin-inline: auto; border-radius: 44px; overflow: hidden; background: var(--bg); box-shadow: 0 0 0 7px var(--surface), 0 30px 70px rgba(25, 28, 31, 0.2); }
  .phone img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top; opacity: 0; transform: scale(1.015); transition: opacity 0.45s, transform 0.6s var(--ease); }
  .phone img.on { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
  html { scroll-behavior: auto; }
}
