/* Лендинг profit.taxi — світла тема основна, темна на перемикач.
   Обидві зібрані на одному наборі змінних: у розмітці змінюється рівно
   один атрибут, а не дві копії верстки. */

:root {
  --bg: #FFFFFF;      --sunk: #F6F8F9;    --card: #FFFFFF;
  --line: #E4EAEF;    --hair: #EFF3F6;
  --ink: #0B1220;     --dim: #5B6B7B;     --faint: #92A1AF;
  --acc: #059669;     --accInk: #FFFFFF;  --accSoft: #ECFDF5;
  --accLine: #A7F3D0; --accDeep: #065F46;
  --bad: #DC2626;     --warn: #D97706;
  --shadow: 0 1px 2px rgba(11,18,32,.05), 0 8px 24px rgba(11,18,32,.05);
}
/* Темна тема описана двічі й навмисно.
   Перший блок — системний вибір: він працює ще до того, як виконається
   будь-який скрипт, тому сторінка не встигає блимнути білим.
   Другий — явний вибір кнопкою, і він сильніший за системний. */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0B0F14;      --sunk: #0F161D;    --card: #131A22;
    --line: #1F2A35;    --hair: #182129;
    --ink: #ECF2F7;     --dim: #9CACBC;     --faint: #6D7E8E;
    --acc: #34D399;     --accInk: #06231A;  --accSoft: #0D2A21;
    --accLine: #1B4034; --accDeep: #A7F3D0;
    --bad: #F87171;     --warn: #FBBF24;
    --shadow: 0 1px 2px rgba(0,0,0,.4), 0 8px 24px rgba(0,0,0,.35);
  }
  :root:not([data-theme="light"]) .theme-btn .moon { display: none; }
  :root:not([data-theme="light"]) .theme-btn .sun { display: block; color: #FBBF24; }
}

[data-theme="dark"] {
  --bg: #0B0F14;      --sunk: #0F161D;    --card: #131A22;
  --line: #1F2A35;    --hair: #182129;
  --ink: #ECF2F7;     --dim: #9CACBC;     --faint: #6D7E8E;
  --acc: #34D399;     --accInk: #06231A;  --accSoft: #0D2A21;
  --accLine: #1B4034; --accDeep: #A7F3D0;
  --bad: #F87171;     --warn: #FBBF24;
  --shadow: 0 1px 2px rgba(0,0,0,.4), 0 8px 24px rgba(0,0,0,.35);
}
[data-theme="light"] .theme-btn .moon { display: block; }
[data-theme="light"] .theme-btn .sun { display: none; }

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: 'Manrope', 'Segoe UI', system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
  /* Колір теми не встигає застосуватись миттєво, тому перехід згладжуємо */
  transition: background-color .2s ease, color .2s ease;
}

.u { font-family: 'Unbounded', 'Trebuchet MS', sans-serif; }
.n { font-family: 'JetBrains Mono', ui-monospace, 'Courier New', monospace;
     font-variant-numeric: tabular-nums; }

.wrap { max-width: 460px; margin: 0 auto; padding: 0 20px 48px; }
@media (min-width: 900px) { .wrap { max-width: 720px; } }

a { color: var(--acc); text-decoration: none; }
a:hover { color: var(--accDeep); }

/* ── Шапка ── */
.top { display: flex; align-items: center; justify-content: space-between;
       padding: 16px 20px; max-width: 460px; margin: 0 auto; }
@media (min-width: 900px) { .top { max-width: 720px; } }
.mark { display: inline-flex; align-items: center; gap: 8px;
        font-size: 17px; font-weight: 800; letter-spacing: -.02em; color: var(--ink); }
.mark b { color: var(--acc); font-weight: inherit; }
.mark svg { color: var(--acc); flex-shrink: 0; }
.top-right { display: flex; align-items: center; gap: 10px; }
.theme-btn {
  width: 36px; height: 36px; border-radius: 100px; border: 1px solid var(--line);
  background: var(--card); display: flex; align-items: center; justify-content: center;
  cursor: pointer; padding: 0; color: var(--dim);
}
.theme-btn:hover { border-color: var(--faint); }
.theme-btn .moon { display: block; }
.theme-btn .sun { display: none; }
[data-theme="dark"] .theme-btn .moon { display: none; }
[data-theme="dark"] .theme-btn .sun { display: block; color: #FBBF24; }
.login { font-size: 14px; font-weight: 600; color: var(--dim); }

/* ── Загальне ── */
h1 { margin: 0; font-size: 37px; line-height: 1.08; font-weight: 800;
     letter-spacing: -.04em; text-wrap: pretty; }
h2 { margin: 0; font-size: 25px; line-height: 1.18; font-weight: 700;
     letter-spacing: -.03em; color: var(--ink); text-wrap: pretty; }
@media (min-width: 900px) { h1 { font-size: 52px; } h2 { font-size: 30px; } }
p { margin: 0; }
.lead { font-size: 14px; line-height: 1.55; color: var(--dim); }
.cap { font-size: 11.5px; font-weight: 700; letter-spacing: .15em; color: var(--faint);
       display: block; }
.card { border: 1px solid var(--line); border-radius: 16px; background: var(--card); }
.shadow { box-shadow: var(--shadow); }
.sec { padding-top: 50px; }

.pill { display: inline-flex; align-items: center; gap: 7px; padding: 6px 11px;
        border: 1px solid var(--line); border-radius: 100px; margin-bottom: 20px;
        font-size: 11.5px; font-weight: 600; color: var(--dim); }
.dot { width: 6px; height: 6px; border-radius: 100px; background: var(--acc); }

.cta {
  display: flex; align-items: center; justify-content: center;
  height: 52px; border-radius: 14px; background: var(--acc); color: var(--accInk);
  font-size: 16px; font-weight: 700; box-shadow: var(--shadow); border: 0; width: 100%;
}
.cta:hover { filter: brightness(1.05); }
.sub-cta { display: block; font-size: 12.5px; color: var(--faint); text-align: center;
           margin-top: 10px; }

.row { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.lbl { font-size: 14px; color: var(--dim); }
.val { font-size: 15px; font-weight: 600; color: var(--ink); }
.neg { color: var(--bad); }

/* ── Поява ── */
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.r1 { animation: rise .6s cubic-bezier(.2,.7,.3,1) both .04s; }
.r2 { animation: rise .6s cubic-bezier(.2,.7,.3,1) both .12s; }
.r3 { animation: rise .6s cubic-bezier(.2,.7,.3,1) both .2s; }
.r4 { animation: rise .6s cubic-bezier(.2,.7,.3,1) both .3s; }
.r5 { animation: rise .7s cubic-bezier(.2,.7,.3,1) both .42s; }
@media (prefers-reduced-motion: reduce) {
  .r1,.r2,.r3,.r4,.r5 { animation: none; }
  body { transition: none; }
}

/* ── Чек зміни ── */
.sheet { overflow: hidden; }
.sheet-body { display: flex; flex-direction: column; gap: 11px; padding: 17px 18px 15px; }
.sheet-band { display: flex; justify-content: space-between; align-items: center;
              padding: 14px 18px; background: var(--sunk);
              border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.sheet-band b { font-size: 14px; font-weight: 700; color: var(--ink); display: block; }
.sheet-band small { font-size: 11px; color: var(--faint); }
.sheet-total { padding: 17px 18px; background: var(--accSoft); border-top: 1px solid var(--accLine); }
.sheet-total .row span:first-child { font-size: 15px; font-weight: 700; color: var(--accDeep); }
.sheet-total .big { font-size: 27px; font-weight: 700; color: var(--acc); letter-spacing: -.02em; }
.sheet-total .note { margin-top: 8px; font-size: 12.5px; line-height: 1.5;
                     color: var(--accDeep); opacity: .85; }

/* ── Картка замовлення ── */
.trip { border-color: var(--accLine); overflow: hidden; }
.trip-head { padding: 13px 16px; background: var(--accSoft); }
.trip-head .line { display: flex; align-items: center; gap: 9px; }
.trip-head .price { font-size: 21px; font-weight: 700; color: var(--ink); }
.trip-head .net { margin-left: auto; font-size: 21px; font-weight: 700; color: var(--acc); }
.trip-head .meta { font-size: 11.5px; color: var(--dim); margin-top: 4px; }
.trip-row { display: flex; align-items: center; gap: 9px; padding: 10px 16px;
            border-top: 1px solid var(--hair); font-size: 13.5px; }
.trip-row .v { margin-left: auto; color: var(--ink); }
.trip-foot { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
             border-top: 1px solid var(--line); }
.trip-foot > div { padding: 13px; text-align: center; }
.trip-foot > div:first-child { border-right: 1px solid var(--line); }
.trip-foot .k { font-size: 11.5px; color: var(--faint); }
.trip-foot .v { font-size: 17px; font-weight: 700; margin-top: 2px; }

/* ── Драбина ── */
.ladder { display: flex; flex-direction: column; gap: 18px; }
.bar { height: 8px; border-radius: 100px; background: var(--sunk); overflow: hidden; }
.bar > i { display: block; height: 100%; border-radius: 100px; }
.step-note { font-size: 11.5px; color: var(--faint); margin-top: 6px; }

/* ── Порівняння ── */
.cmp { width: 100%; border-collapse: collapse; }
.cmp th, .cmp td { padding: 11px 14px; text-align: left; font-weight: 400; }
.cmp thead th { background: var(--sunk); border-bottom: 1px solid var(--line);
                font-size: 10.5px; color: var(--faint); line-height: 1.2; }
.cmp thead th:nth-child(2), .cmp thead th:nth-child(3) { text-align: center; width: 62px; }
.cmp tbody td { font-size: 13.5px; color: var(--ink); border-bottom: 1px solid var(--hair); }
.cmp tbody tr:last-child td { border-bottom: 0; }
.cmp .mid { text-align: center; color: var(--faint); font-size: 15px; }
.cmp .yes { text-align: center; color: var(--acc); font-size: 15px; font-weight: 700; }
.cmp .ours { color: var(--acc); font-weight: 600; }

/* ── Можливості ── */
.group + .group { margin-top: 20px; }
.group-head { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.group-head span { font-size: 13px; font-weight: 600; color: var(--ink); }
.group ul { margin: 0; padding: 0; list-style: none;
            display: flex; flex-direction: column; gap: 7px; }
.group li { position: relative; padding-left: 24px; font-size: 14px;
            line-height: 1.55; color: var(--dim); }
.group li::before { content: "·"; position: absolute; left: 8px; color: var(--acc); }

/* ── Сервіси ── */
.chips { display: flex; gap: 8px; margin-top: 14px; }
.chips span { flex: 1; text-align: center; padding: 9px 0; border-radius: 10px;
              background: var(--sunk); border: 1px solid var(--line);
              font-size: 12px; font-weight: 600; color: var(--ink); }

/* ── Заклик і підвал ── */
.final { border-radius: 20px; padding: 26px 20px; background: var(--accSoft);
         border: 1px solid var(--accLine); }
.final h2 { color: var(--accDeep); font-size: 22px; }
.final p { margin-top: 11px; font-size: 14px; line-height: 1.55;
           color: var(--accDeep); opacity: .8; }
.final .cta { margin-top: 18px; }
footer { margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--line);
         display: flex; align-items: center; justify-content: space-between; gap: 12px;
         font-size: 12px; color: var(--faint); }
footer .mark { font-size: 13px; color: var(--faint); }
