/*
  The landing page's look (index.html), over site.css, in the style of the app's
  sign-in page: dark panels (#1d2027), the salmon accent, the task statuses' colours
  as a "status track" motif (Backlog grey → In progress blue → Review orange → Done green), and the app pictures and
  icon colours (projects blue, knowledge green, tests violet).
*/
.theme-b {
  --panel: #1d2027;
  --panel-2: #262a33;
  --panel-line: #343a45;
  --on-panel: #e9eaee;
  --on-panel-soft: #a9adb8;

  --s-backlog: #c4cad3;
  --s-progress: #38bdf8;
  --s-review: #fb923c;
  --s-done: #22c55e;
  --c-projects: #38bdf8;
  --c-docs: #4ade80;
  --c-tests: #a78bfa;

  --accent: #e46b56;
  --accent-dark: #c9533f;
  --accent-soft: #fdeae6;
  --ink: #16191f;
  --ink-soft: #4a515c;
  --muted: #6f7682;
  --line: #e3e6eb;
  --bg: #ffffff;
  --bg-alt: #f5f6f8;
  --ok: var(--s-done);
  --radius: 12px;
  --shadow: 0 1px 2px rgba(17, 19, 23, .05), 0 8px 24px rgba(17, 19, 23, .06);
  --shadow-lg: 0 2px 6px rgba(17, 19, 23, .06), 0 24px 60px rgba(17, 19, 23, .14);
  /* The status track: a task's way from Backlog to Done. */
  --track: linear-gradient(90deg,
    var(--s-backlog) 0 25%, var(--s-progress) 25% 50%, var(--s-review) 50% 75%, var(--s-done) 75% 100%);
}

.theme-b h1, .theme-b h2 { letter-spacing: -.02em; font-weight: 750; }

/* Section labels: a short status track, then the text, ending in a green "done" dot. */
.theme-b .eyebrow { display: inline-flex; align-items: center; gap: 10px; color: var(--ink-soft); font-size: .8rem; letter-spacing: .12em; }
.theme-b .eyebrow::before { content: ""; width: 34px; height: 4px; border-radius: 2px; background: var(--track); }

.theme-b .accent { color: var(--accent); }

/* ---- Buttons: the app's salmon ---- */
.theme-b .btn { border-radius: 10px; }
.theme-b .btn-primary { background: var(--accent); color: #fff; box-shadow: 0 8px 20px rgba(228, 107, 86, .3); }
.theme-b .btn-primary:hover { background: var(--accent-dark); }
.theme-b .btn-ghost { border: 1px solid #cfd4db; background: #fff; color: var(--ink); }
.theme-b .btn-ghost:hover { border-color: var(--accent); color: var(--accent-dark); }
.theme-b .btn-light { background: #fff; color: var(--panel); }

/* ---- Header: dark, like the hero below it ---- */
.theme-b .topbar { background: rgba(29, 32, 39, .92); border-bottom: 1px solid var(--panel-line); }
.theme-b .topbar.scrolled { box-shadow: 0 4px 16px rgba(0, 0, 0, .25); }
.theme-b .topbar .brand,
.theme-b .topbar .link-muted { color: var(--on-panel); }
.theme-b .nav a { color: var(--on-panel-soft); }
.theme-b .nav a:hover { color: #fff; }
.theme-b .menu-toggle span { background: var(--on-panel); }
@media (max-width: 960px) {
  .theme-b .nav { background: var(--panel); border-color: var(--panel-line); }
}

/* ---- Hero: the sign-in page's dark panel ---- */
.theme-b .hero {
  position: relative;
  padding: 88px 0 104px;
  color: var(--on-panel);
  /* Soft salmon and blue glows on the dark panel. */
  background:
    radial-gradient(640px 420px at 78% 38%, rgba(228, 107, 86, .22), transparent 70%),
    radial-gradient(560px 380px at 8% 100%, rgba(56, 189, 248, .12), transparent 70%),
    var(--panel);
}
/* A faint grid of board blocks (as under the sign-in page's marble run), fading out towards the text. */
.theme-b .hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='56'%3E%3Crect x='3' y='3' width='50' height='50' rx='9' fill='%23ffffff' fill-opacity='.035' stroke='%23ffffff' stroke-opacity='.05'/%3E%3C/svg%3E");
  -webkit-mask-image: linear-gradient(100deg, transparent 30%, #000 75%);
  mask-image: linear-gradient(100deg, transparent 30%, #000 75%);
  pointer-events: none;
}
.theme-b .hero { overflow: hidden; }
.theme-b .hero > .container { position: relative; }
/* The columns shrink to the screen (the wide screenshot would stretch them on phones). */
.theme-b .hero-b .hero-grid > * { min-width: 0; }
/* The last line of the section: the status track. */
.theme-b .hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: var(--track); }
.theme-b .hero h1 { color: #fff; }
.theme-b .hero .lead,
.theme-b .hero .trust-row li { color: var(--on-panel-soft); }
.theme-b .hero .eyebrow { color: var(--on-panel-soft); }
.theme-b .hero .btn-ghost { background: transparent; border-color: #4a515e; color: var(--on-panel); }
.theme-b .hero .btn-ghost:hover { border-color: var(--accent); color: #fff; }
.theme-b .hero-b .hero-grid { grid-template-columns: 1fr 1.1fr; gap: 64px; }
.theme-b .hero-b h1 { font-size: clamp(2.2rem, 4.4vw, 3.4rem); }
/* "в одном сервисе" stays on one line. */
.theme-b .hero-b h1 .accent { white-space: nowrap; }
.theme-b .hero-shot { position: relative; }
.theme-b .hero .browser { position: relative; z-index: 1; transform: perspective(1800px) rotateY(-5deg) rotateX(2deg); border-color: var(--panel-line); box-shadow: 0 30px 80px rgba(0, 0, 0, .45), 0 0 0 1px rgba(255, 255, 255, .04); }
.theme-b .hero .browser-bar { background: var(--panel-2); }
.theme-b .hero .browser-bar i { background: #4a515e; }
.theme-b .float-card { left: -18px; bottom: -22px; z-index: 2; border: 1px solid var(--line); box-shadow: var(--shadow-lg); }
.theme-b .float-icon { background: #e6f9ee; }
/* A task moving to Done: dark glass, the statuses' colours. */
.theme-b .float-status {
  position: absolute;
  top: -22px;
  right: -14px;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border: 1px solid var(--panel-line);
  border-radius: 14px;
  background: rgba(38, 42, 51, .92);
  box-shadow: 0 18px 40px rgba(0, 0, 0, .4);
  font-size: .85rem;
  font-weight: 600;
}
.theme-b .task-key { color: var(--on-panel-soft); font-weight: 700; letter-spacing: .02em; }
.theme-b .status-pill { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px 4px 8px; border-radius: 999px; border: 1.5px solid currentColor; }
.theme-b .status-pill::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.theme-b .status-pill.s-progress { color: var(--s-progress); }
.theme-b .status-pill.s-done { color: var(--s-done); background: rgba(34, 197, 94, .12); }
.theme-b .status-arrow { width: 22px; height: 2px; border-radius: 1px; background: linear-gradient(90deg, var(--s-progress), var(--s-done)); position: relative; }
.theme-b .status-arrow::after { content: ""; position: absolute; right: -1px; top: -3px; border: 4px solid transparent; border-left: 6px solid var(--s-done); border-right: 0; }
@media (max-width: 560px) {
  .theme-b .float-status { right: 0; top: -30px; font-size: .78rem; }
  .theme-b .task-key { display: none; }
}
@media (max-width: 960px) {
  .theme-b .hero-b .hero-grid { grid-template-columns: 1fr; }
}

/* ---- Screenshots ---- */
.theme-b .browser { border: 1px solid #d9dde3; box-shadow: var(--shadow-lg); }
.theme-b .browser-bar { background: #f3f4f6; }

/* ---- Cards ---- */
.theme-b .card,
.theme-b .steps li,
.theme-b .plan,
.theme-b .calculator,
.theme-b .table-wrap {
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.theme-b .icon { border-radius: 12px; }

/* The problem: each card's top edge in a status colour, as if the tasks are stuck. */
.theme-b .problem { background: var(--bg-alt); }
.theme-b .card.pain { border-top: 3px solid var(--s-backlog); }
.theme-b .cards-3 .card.pain:nth-child(2) { border-top-color: var(--s-progress); }
.theme-b .cards-3 .card.pain:nth-child(3) { border-top-color: var(--s-review); }
.theme-b .solution { background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--s-done); box-shadow: var(--shadow); text-align: left; }

/* The apps, with the app's home page pictures and its icon colours. */
.theme-b .app-card { position: relative; overflow: hidden; padding: 0 0 24px; }
.theme-b .app-card img { display: block; width: 100%; aspect-ratio: 2 / 1; height: auto; border-bottom: 1px solid var(--line); }
.theme-b .app-card h3, .theme-b .app-card p { padding: 0 24px; }
.theme-b .app-card h3 { margin-top: 18px; }
.theme-b .app-card::before { content: ""; position: absolute; left: 0; right: 0; top: 0; z-index: 1; height: 3px; }
.theme-b .app-card.c-projects::before { background: var(--c-projects); }
.theme-b .app-card.c-docs::before { background: var(--c-docs); }
.theme-b .app-card.c-tests::before { background: var(--c-tests); }
.theme-b .soon { position: absolute; top: 14px; right: 14px; z-index: 1; padding: 2px 10px; border-radius: 999px; background: #fff; border: 1px solid var(--line); color: var(--ink-soft); font-size: .8rem; font-weight: 600; }

/* Features: icons on pale tints of the app's colours. */
.theme-b .features-grid .card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.theme-b .features-grid .card:nth-child(1) .icon { background: #e4f6fd; }
.theme-b .features-grid .card:nth-child(2) .icon { background: #e7f9ee; }
.theme-b .features-grid .card:nth-child(3) .icon { background: #f1ecfe; }
.theme-b .features-grid .card:nth-child(4) .icon { background: #fef0e6; }
.theme-b .features-grid .card:nth-child(5) .icon { background: var(--accent-soft); }
.theme-b .features-grid .card:nth-child(6) .icon { background: #eef0f3; }

/* Steps: numbers along the status track. */
.theme-b .section.alt { background: var(--bg-alt); }
.theme-b .step-no { width: 34px; height: 34px; font-size: .95rem; }
.theme-b .steps li:nth-child(1) .step-no { background: #8a93a1; }
.theme-b .steps li:nth-child(2) .step-no { background: #0ea5e9; }
.theme-b .steps li:nth-child(3) .step-no { background: #16a34a; }

/* Comparison: ours in salmon. */
.theme-b .compare th { background: #f3f4f6; }
.theme-b .compare .ours { background: #fff4f1; color: var(--ink); }
.theme-b .compare th.ours { background: var(--accent); color: #fff; }

/* Security: pale tints. */
.theme-b .trust:nth-child(1) .icon { background: #e4f6fd; }
.theme-b .trust:nth-child(2) .icon { background: #f1ecfe; }
.theme-b .trust:nth-child(3) .icon { background: #e7f9ee; }
.theme-b .trust:nth-child(4) .icon { background: #fef0e6; }

/* ---- Pricing ---- */
.theme-b .billing-toggle button[aria-checked="true"] { background: var(--panel); color: #fff; box-shadow: none; }
.theme-b .save { background: #e7f9ee; color: #15803d; }
.theme-b .billing-toggle button[aria-checked="true"] .save { background: rgba(255, 255, 255, .16); color: #fff; }
.theme-b .offer { border: 1px solid #f6c7bd; border-left: 4px solid var(--accent); background: #fff6f3; text-align: left; }
.theme-b .plan { border-top: 3px solid var(--s-backlog); }
.theme-b .plans .plan:nth-child(2) { border-top-color: var(--accent); }
.theme-b .plans .plan:nth-child(3) { border-top-color: var(--panel); }
.theme-b .plan.featured { border: 2px solid var(--accent); border-top-width: 3px; box-shadow: var(--shadow-lg); transform: translateY(-6px); }
.theme-b .ribbon { background: var(--accent); }
.theme-b .calculator { background: #fff; }
.theme-b .calculator input { accent-color: var(--accent); }
/* The yearly price under the monthly one (plans loaded from the app). */
.theme-b .price-year { display: inline-block; margin: 0 0 18px; padding: 4px 10px; border-radius: 8px; background: #e7f9ee; color: #15803d; font-size: .85rem; }
.theme-b .price-year strong { color: #166534; }
/* Longer labels ("Попробовать 14 дней бесплатно") wrap centred. */
.theme-b .plan .btn-block { justify-content: center; text-align: center; }

/* Guarantees: white tiles, a status colour on the left. */
.theme-b .guarantees { gap: 16px; }
.theme-b .guarantee { padding: 20px 18px; border: 1px solid var(--line); border-left: 4px solid var(--s-done); border-radius: var(--radius); background: #fff; text-align: left; box-shadow: var(--shadow); }
.theme-b .guarantee:nth-child(2) { border-left-color: var(--s-progress); }
.theme-b .guarantee:nth-child(3) { border-left-color: var(--s-review); }
.theme-b .guarantee:nth-child(4) { border-left-color: var(--c-tests); }
.theme-b .guarantee span { color: var(--ink-soft); }

/* Migration and the last call to action: the dark panel, the status track along an edge, the logo's mark faint. */
.theme-b .migrate,
.theme-b .final { position: relative; overflow: hidden; background: var(--panel); color: var(--on-panel); }
.theme-b .migrate { border-radius: 16px; }
.theme-b .migrate::before { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: var(--track); }
.theme-b .final::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px; background: var(--track); }
.theme-b .migrate::after,
.theme-b .final::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 170px;
  height: 170px;
  margin-top: -85px;
  background: url("img/logo.svg") center / contain no-repeat;
  opacity: .12;
}
.theme-b .migrate::after { right: 320px; }
.theme-b .final::after { right: 8%; }
.theme-b .migrate .eyebrow { color: var(--on-panel-soft); }
.theme-b .migrate .lead,
.theme-b .final .lead { color: var(--on-panel-soft); }
.theme-b .migrate .btn-primary { position: relative; z-index: 1; }
@media (max-width: 820px) {
  .theme-b .final::after, .theme-b .migrate::after { display: none; }
}

/* FAQ. */
.theme-b .faq summary::after { color: var(--accent); }

/* Contact form. */
.theme-b .form input:focus, .theme-b .form select:focus, .theme-b .form textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(228, 107, 86, .18); }
.theme-b .consent input { accent-color: var(--accent); }

/* Footer: the panel colour, a shade darker. */
.theme-b .footer { background: #15171c; }
