/*
 * The public pages: the landing page, /features (layouts/marketing) and every
 * page on layouts/auth — sign-in, request access, login links, OAuth consent.
 *
 * `stylesheet_link_tag :app` loads every file under app/assets on EVERY page,
 * the signed-in app included, so each rule here is scoped under `.marketing`
 * (the body class of both public layouts) and is inert everywhere else.
 * spec/assets/marketing_css_spec.rb fails on an unscoped selector. No
 * @keyframes: their from/to blocks cannot be scoped.
 *
 * System fonts only: nothing here makes a third-party request.
 */

.marketing {
  --mk-bg: #f4f7f4;
  --mk-surface: #ffffff;
  --mk-ink: #13261b;
  --mk-ink-2: #3e5446;
  --mk-muted: #5d7365;
  --mk-line: #dfe8e1;
  --mk-line-strong: #cfd8d2;
  --mk-green: #1a7f45;
  --mk-green-ink: #156638;
  --mk-green-soft: #d5f0df;
  --mk-danger: #a2361a;
  --mk-danger-soft: #ffe1d6;
  --mk-radius: 14px;
  --mk-shadow: 0 18px 40px -20px rgba(19, 38, 27, 0.35);

  color-scheme: light;
  margin: 0;
  min-height: 100vh;
  background: var(--mk-bg);
  color: var(--mk-ink);
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

.marketing a { color: var(--mk-green); }
.marketing :focus-visible { outline: 3px solid var(--mk-green); outline-offset: 2px; border-radius: 4px; }
.marketing .wrap { width: min(1080px, 100% - 32px); margin-inline: auto; }
.marketing .mk-visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.marketing .mk-skip { position: absolute; left: 16px; top: -48px; background: var(--mk-ink); color: #fff; padding: 8px 12px; border-radius: 8px; z-index: 10; }
.marketing .mk-skip:focus { top: 12px; }

/* ---- Nav and footer ---- */
.marketing .mk-nav { background: var(--mk-surface); border-bottom: 1px solid var(--mk-line); }
.marketing .mk-nav__inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 60px; }
.marketing .mk-logo { font-weight: 800; font-size: 1.15rem; letter-spacing: -0.02em; color: var(--mk-ink); text-decoration: none; flex-shrink: 0; }
.marketing .mk-logo__mark { display: block; height: 20px; width: auto; }
.marketing .mk-nav__links { display: flex; align-items: center; gap: 20px; font-size: 0.95rem; }
.marketing .mk-nav__links a:not(.mk-btn) { color: var(--mk-ink-2); text-decoration: none; white-space: nowrap; }
.marketing .mk-nav__links a:not(.mk-btn):hover { color: var(--mk-ink); text-decoration: underline; }
.marketing .mk-nav__languages { display: inline-flex; align-items: center; gap: 8px; font-size: 0.85rem; letter-spacing: 0.02em; }
.marketing .mk-nav__links a.mk-nav__language[aria-current] { color: var(--mk-ink); font-weight: 700; }
.marketing .mk-footer { padding: 28px 0 40px; font-size: 0.9rem; color: var(--mk-muted); }
.marketing .mk-footer__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.marketing .mk-footer nav { display: flex; flex-wrap: wrap; gap: 18px; }
.marketing .mk-footer a { color: var(--mk-ink-2); }
/* The quotable one-line summary search engines and AI assistants pick up. */
.marketing .mk-footer__about { flex-basis: 100%; max-width: 46em; margin: 0 0 4px; font-size: 0.85rem; }
.marketing .mk-contacts { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; }
.marketing .mk-footer a.mk-contacts__link { color: var(--mk-green-ink); font-weight: 600; }
.marketing .mk-footer a.mk-nav__language[aria-current] { color: var(--mk-ink); font-weight: 700; text-decoration: none; }

/* ---- Buttons (cta* are the auth views' existing names for the same thing) ---- */
.marketing .mk-btn,
.marketing .cta {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.4em;
  padding: 0.7em 1.2em; border-radius: 10px; border: 1px solid transparent;
  font: inherit; font-size: 1rem; font-weight: 650; line-height: 1.2;
  text-decoration: none; cursor: pointer;
  background: var(--mk-ink); color: #fff;
}
.marketing .mk-btn--primary:hover,
.marketing .cta:hover { background: #24402f; }
.marketing .mk-btn--ghost,
.marketing .cta--ghost { background: var(--mk-surface); color: var(--mk-ink); border-color: var(--mk-line-strong); }
.marketing .mk-btn--ghost:hover,
.marketing .cta--ghost:hover { background: #eef3ef; }
.marketing .mk-btn--light { background: #fff; color: var(--mk-ink); }
.marketing .mk-btn--light:hover { background: #eaf3ed; }
.marketing .mk-btn--sm { padding: 0.45em 0.9em; font-size: 0.9rem; }
.marketing .cta--block { display: flex; width: 100%; }

/* ---- Type ---- */
.marketing .mk-badge { display: inline-block; font-size: 0.8rem; font-weight: 700; color: var(--mk-green-ink); background: var(--mk-green-soft); padding: 0.3em 0.75em; border-radius: 99px; margin-bottom: 1rem; }
.marketing .mk-h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); line-height: 1.05; letter-spacing: -0.035em; font-weight: 800; margin: 0 0 0.5em; }
.marketing .mk-h1 em { font-style: normal; color: var(--mk-green); }
.marketing .mk-h2 { font-size: clamp(1.6rem, 3.4vw, 2.3rem); line-height: 1.12; letter-spacing: -0.03em; font-weight: 800; margin: 0 0 0.4em; }
.marketing .mk-lede { font-size: clamp(1.05rem, 1.6vw, 1.2rem); color: var(--mk-ink-2); max-width: 34em; margin: 0 0 1.6em; }
.marketing .mk-note { font-size: 0.92rem; color: var(--mk-muted); margin: 1rem 0 0; }
.marketing .mk-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
/* The small label above the hero's h1. */
.marketing .mk-eyebrow { font-size: 0.85rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: var(--mk-green-ink); margin: 0 0 0.9rem; }
/* The header button's label shortens on a phone, where the full one would push
   Sign in off the line. Only one of the two is ever displayed. */
.marketing .mk-cta-short { display: none; }

/* ---- Hero ---- */
.marketing .mk-hero { padding: clamp(40px, 8vw, 88px) 0 clamp(48px, 8vw, 96px); }
.marketing .mk-hero--compact { padding-bottom: clamp(24px, 4vw, 40px); }
.marketing .mk-hero__grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: center; }

/* ---- Sections and cards ---- */
.marketing .mk-section { padding: clamp(48px, 8vw, 88px) 0; }
.marketing .mk-section--alt { background: var(--mk-surface); border-block: 1px solid var(--mk-line); }
.marketing .mk-section__lede { color: var(--mk-ink-2); max-width: 40em; margin: 0 0 2rem; font-size: 1.05rem; }
.marketing .mk-grid { display: grid; gap: 16px; }
.marketing .mk-grid--4 { grid-template-columns: repeat(4, 1fr); }
.marketing .mk-grid--3 { grid-template-columns: repeat(3, 1fr); }
.marketing .mk-grid--stories { grid-template-columns: 1fr 1fr; align-items: stretch; }
.marketing .mk-card { background: var(--mk-surface); border: 1px solid var(--mk-line); border-radius: var(--mk-radius); padding: 20px; }
.marketing .mk-section--alt .mk-card { background: var(--mk-bg); }
.marketing .mk-card h3 { font-size: 1.05rem; line-height: 1.3; margin: 0 0 0.35rem; letter-spacing: -0.01em; }
.marketing .mk-card p { margin: 0; color: var(--mk-ink-2); }
.marketing .mk-card .mk-card__answer { margin-top: 0.75rem; color: var(--mk-green-ink); font-weight: 650; }
.marketing .mk-steps { list-style: none; padding: 0; margin: 0; }
.marketing .mk-step__n { display: inline-grid; place-items: center; width: 2rem; height: 2rem; border-radius: 50%; background: var(--mk-ink); color: #fff; font-weight: 800; margin-bottom: 0.8rem; }

/* ---- Shaped around you ---- */
.marketing .mk-split { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(24px, 5vw, 56px); align-items: center; }
/* A grid item defaults to its content's min-width; without this the nowrap
   client-list table stretches the one-column phone layout past the screen. */
.marketing .mk-split > *,
.marketing .mk-hero__grid > * { min-width: 0; }
.marketing .mk-checks { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.marketing .mk-checks li { padding-left: 1.8rem; position: relative; color: var(--mk-ink-2); }
.marketing .mk-checks li::before { content: "✓"; position: absolute; left: 0; top: 0; color: var(--mk-green); font-weight: 800; }
.marketing .mk-checks strong { display: block; color: var(--mk-ink); }

/* ---- Trust strip, FAQ, closing ---- */
/* The trust strip: one check-marked pill per promise. */
.marketing .mk-trust { list-style: none; margin-top: 28px; margin-bottom: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.marketing .mk-trust li { display: inline-flex; align-items: center; gap: 0.45em; padding: 8px 16px; border-radius: 999px; background: var(--mk-green-soft); border: 1px solid color-mix(in srgb, var(--mk-green) 25%, transparent); color: var(--mk-green-ink); font-size: 0.95rem; font-weight: 600; line-height: 1.3; }
.marketing .mk-trust li::before { content: "✓"; font-weight: 800; }
.marketing .mk-faq { max-width: 46rem; }
.marketing .mk-faq details { border-bottom: 1px solid var(--mk-line); padding: 1rem 0; }
.marketing .mk-faq summary { cursor: pointer; font-weight: 700; font-size: 1.05rem; list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
.marketing .mk-faq summary::-webkit-details-marker { display: none; }
.marketing .mk-faq summary::after { content: "+"; color: var(--mk-green); font-weight: 800; }
.marketing .mk-faq details[open] summary::after { content: "–"; }
.marketing .mk-faq p { margin: 0.6rem 0 0; color: var(--mk-ink-2); }
.marketing .mk-closing { background: var(--mk-ink); color: #eaf3ed; text-align: center; padding: clamp(56px, 9vw, 96px) 0; }
.marketing .mk-closing .mk-h2 { color: #fff; }
.marketing .mk-closing p { color: #a9c2b2; margin: 0 auto 1.6rem; max-width: 34em; }

/* ---- /features ---- */
.marketing .mk-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 1.5rem; }
.marketing .mk-chips a { background: var(--mk-surface); border: 1px solid var(--mk-line-strong); border-radius: 99px; padding: 0.35em 0.85em; font-size: 0.9rem; color: var(--mk-ink); text-decoration: none; }
.marketing .mk-chips a:hover { border-color: var(--mk-green); }
.marketing .mk-feature-group { padding: 40px 0; border-top: 1px solid var(--mk-line); }
.marketing .mk-feature-group--notyet { background: var(--mk-surface); }
.marketing .mk-feature-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 18px 32px; margin: 1.2rem 0 0; }
.marketing .mk-feature-list dt { font-weight: 700; }
.marketing .mk-feature-list dd { margin: 0.2rem 0 0; color: var(--mk-ink-2); }
.marketing .mk-facts-table__table { width: 100%; max-width: 820px; border-collapse: collapse; margin: 1.2rem 0 0; }
.marketing .mk-facts-table__table th,
.marketing .mk-facts-table__table td { text-align: left; vertical-align: top; padding: 10px 0; border-bottom: 1px solid var(--mk-line); }
.marketing .mk-facts-table__table th { font-weight: 700; width: 34%; padding-right: 24px; }
.marketing .mk-facts-table__table td { color: var(--mk-ink-2); }
@media (max-width: 480px) {
  .marketing .mk-facts-table__table th,
  .marketing .mk-facts-table__table td { display: block; width: auto; padding-right: 0; }
  .marketing .mk-facts-table__table th { border-bottom: 0; padding-bottom: 2px; }
}
.marketing .mk-feature-mockups { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px; margin-top: 1.6rem; }

/* ---- Product mockups ---- */
.marketing .mk-panel { margin: 0; background: var(--mk-surface); border: 1px solid var(--mk-line); border-radius: var(--mk-radius); padding: 18px 20px; box-shadow: var(--mk-shadow); font-size: 0.92rem; }
.marketing .mk-panel__title { font-size: 0.95rem; font-weight: 750; margin: 0 0 0.6rem; }
.marketing .mk-panel__row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 0.55rem 0; border-bottom: 1px solid #eef3ef; }
.marketing .mk-panel__row:last-child { border-bottom: 0; }
.marketing .mk-panel__meta { color: var(--mk-muted); font-size: 0.85rem; }
.marketing .mk-panel__note { margin: 0.7rem 0 0; color: var(--mk-muted); font-size: 0.82rem; }
.marketing .mk-pill { display: inline-block; font-size: 0.75rem; font-weight: 700; padding: 0.15em 0.6em; border-radius: 99px; margin-right: 0.4em; white-space: nowrap; }
.marketing .mk-pill--overdue { background: var(--mk-danger-soft); color: var(--mk-danger); }
.marketing .mk-pill--due { background: #e8efe9; color: var(--mk-ink-2); }
.marketing .mk-pill--progress { background: #fff4c2; color: #6b5a00; }
.marketing .mk-pill--paid { background: var(--mk-green-soft); color: var(--mk-green-ink); }
.marketing .mk-table-wrap { overflow-x: auto; }
.marketing .mk-table { width: 100%; border-collapse: collapse; font-size: 0.88rem; }
.marketing .mk-table th { text-align: left; font-size: 0.78rem; color: var(--mk-muted); font-weight: 650; padding: 0.4rem 0.5rem; border-bottom: 1px solid var(--mk-line); white-space: nowrap; }
.marketing .mk-table td { padding: 0.5rem; border-bottom: 1px solid #eef3ef; white-space: nowrap; }
.marketing .mk-table .mk-num { text-align: right; font-variant-numeric: tabular-nums; }
.marketing .mk-timeline { list-style: none; margin: 0; padding: 0; }
.marketing .mk-timeline li { display: grid; grid-template-columns: 10px 1fr auto; gap: 10px; align-items: baseline; padding: 0.45rem 0; }
.marketing .mk-timeline li::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--mk-green); }
.marketing .mk-ba { position: relative; min-height: 320px; }
.marketing .mk-sheet { position: absolute; left: 0; top: 0; width: 72%; background: #fff; border: 1px solid var(--mk-line-strong); transform: rotate(-3deg); font: 12px/1 ui-monospace, Menlo, Consolas, monospace; color: var(--mk-muted); }
.marketing .mk-sheet__row { display: grid; grid-template-columns: 26px 1.3fr 1fr 64px; border-bottom: 1px solid #e3e9e5; }
.marketing .mk-sheet__row span { padding: 7px 8px; border-right: 1px solid #e3e9e5; white-space: nowrap; overflow: hidden; }
.marketing .mk-sheet--clients { width: 86%; }
.marketing .mk-sheet--clients .mk-sheet__row { grid-template-columns: 26px 1.2fr 1.2fr 1fr 1fr; }
.marketing .mk-sheet__row--head { background: #eef3ef; font-weight: 700; color: var(--mk-ink-2); }
.marketing .mk-sheet__flag { background: #fff4c2; color: #6b5a00; }
.marketing .mk-ba .mk-panel { position: absolute; right: 0; bottom: 0; width: 78%; }

/* ---- Auth pages (class names are the nine auth views' own) ---- */
.marketing .auth-header { background: var(--mk-surface); border-bottom: 1px solid var(--mk-line); }
.marketing .auth-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 56px; }
.marketing .auth-header__langs { display: flex; align-items: center; gap: 12px; }
.marketing .auth { display: grid; justify-items: center; padding: clamp(24px, 7vh, 72px) 16px; }
.marketing .authcard { width: 100%; max-width: 420px; background: var(--mk-surface); border: 1px solid var(--mk-line); border-radius: 16px; box-shadow: var(--mk-shadow); }
.marketing .authcard__body { padding: 28px; }
.marketing .authcard__body > * + * { margin-top: 1rem; }
.marketing .authcard form > * + * { margin-top: 1rem; }
.marketing .authcard__kicker { font-size: 0.85rem; font-weight: 700; color: var(--mk-green-ink); margin: 0; }
.marketing .authcard__kicker.amber { color: var(--mk-danger); }
.marketing .authcard__title { font-size: 1.6rem; line-height: 1.15; letter-spacing: -0.025em; font-weight: 800; margin: 0.25rem 0 0; overflow-wrap: anywhere; }
.marketing .authcard__sub { color: var(--mk-ink-2); margin: 0.5rem 0 0; }
.marketing .field__label { display: block; font-size: 0.9rem; font-weight: 650; margin-bottom: 0.35rem; }
.marketing .field__input { display: block; width: 100%; font: inherit; font-size: 1rem; color: var(--mk-ink); background: #fff; border: 1px solid var(--mk-line-strong); border-radius: 10px; padding: 0.65rem 0.8rem; }
.marketing .field__input::placeholder { color: #8a9a90; }
.marketing .field__hint { margin: 0.35rem 0 0; font-size: 0.85rem; color: var(--mk-muted); }
.marketing .field__input:focus { outline: none; border-color: var(--mk-green); box-shadow: 0 0 0 3px rgba(26, 127, 69, 0.25); }
.marketing .auth__or { text-align: center; font-size: 0.85rem; color: var(--mk-muted); }
.marketing .auth__err { color: var(--mk-danger); font-size: 0.9rem; }
.marketing .auth__flash { border: 1px solid; border-radius: 10px; padding: 0.6rem 0.8rem; font-size: 0.92rem; }
.marketing .auth__flash--alert { border-color: #f1b9a6; background: var(--mk-danger-soft); color: var(--mk-danger); }
.marketing .auth__flash--notice { border-color: #b6dfc5; background: #eaf7ef; color: var(--mk-green-ink); }
.marketing .auth__foot { text-align: center; font-size: 0.92rem; color: var(--mk-muted); }
.marketing .consent-scopes { border: 0; margin: 0; padding: 0; }
.marketing .consent-scopes__item { display: flex; align-items: baseline; gap: 0.6rem; margin: 0.4rem 0; }
.marketing .consent-scopes__item input { accent-color: var(--mk-green); }
/* The request-access honeypot. Off-screen rather than display:none, because
   some bots skip fields that are explicitly hidden. */
.marketing .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---- Legal pages (/privacy, /terms and their /ru twins) ---- */
.marketing .mk-legal { padding: 0 0 clamp(40px, 6vw, 72px); }
.marketing .mk-legal__body { line-height: 1.65; color: var(--mk-ink-2); overflow-wrap: break-word; }
/* The column is the wrap, so it lines up with the heading; its text is kept to a readable measure. */
.marketing .mk-legal__body > * { max-width: 46em; }
.marketing .mk-legal__body h2 { color: var(--mk-ink); font-size: 1.35rem; line-height: 1.25; letter-spacing: -0.01em; margin: 2.4rem 0 0.6rem; scroll-margin-top: 16px; }
.marketing .mk-legal__body h3 { color: var(--mk-ink); font-size: 1.05rem; margin: 1.6rem 0 0.4rem; }
.marketing .mk-legal__body p,
.marketing .mk-legal__body ul,
.marketing .mk-legal__body ol { margin: 0 0 0.9rem; }
.marketing .mk-legal__body ul,
.marketing .mk-legal__body ol { padding-left: 1.3rem; }
/* Tailwind's preflight strips list markers; legal text needs them back. */
.marketing .mk-legal__body ul { list-style: disc; }
.marketing .mk-legal__body ol { list-style: decimal; }
.marketing .mk-legal__body li { margin: 0.25rem 0; }
.marketing .mk-legal__body strong { color: var(--mk-ink); }
.marketing .mk-legal__meta { color: var(--mk-muted); font-size: 0.92rem; margin: 0 0 1.4rem; }
.marketing .mk-legal__draft { background: var(--mk-danger-soft); color: var(--mk-danger); border-radius: var(--mk-radius); padding: 12px 16px; margin: 0 0 1.6rem; font-size: 0.95rem; }
.marketing .mk-legal__summary { background: var(--mk-surface); border: 1px solid var(--mk-line); border-radius: var(--mk-radius); padding: 16px 20px; margin: 0 0 1.6rem; }
.marketing .mk-legal__summary > :last-child { margin-bottom: 0; }
.marketing .mk-legal__toc { background: var(--mk-surface); border: 1px solid var(--mk-line); border-radius: var(--mk-radius); padding: 16px 20px; margin: 0 0 1rem; }
.marketing .mk-legal__toc h2 { margin-top: 0; font-size: 1rem; }
.marketing .mk-legal__toc ol { margin: 0; columns: 2 18em; column-gap: 2rem; }
.marketing .mk-legal__toc a { color: var(--mk-ink-2); }
/* Wide screens show a table; narrow ones stack each row (below). */
.marketing .mk-legal__table { overflow-x: auto; margin: 0 0 1.2rem; border: 1px solid var(--mk-line); border-radius: 10px; background: var(--mk-surface); }
.marketing .mk-legal__table table { border-collapse: collapse; width: 100%; font-size: 0.92rem; }
.marketing .mk-legal__table th,
.marketing .mk-legal__table td { text-align: left; vertical-align: top; padding: 8px 12px; border-bottom: 1px solid var(--mk-line); }
.marketing .mk-legal__table tr:last-child td { border-bottom: 0; }
.marketing .mk-legal__table th { color: var(--mk-ink); background: var(--mk-bg); font-weight: 700; }

/* ---- Narrow screens ---- */
@media (max-width: 960px) {
  .marketing .mk-grid--4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 860px) {
  .marketing .mk-hero__grid,
  .marketing .mk-split { grid-template-columns: 1fr; }
}
.marketing .mk-subnav { display: none; }
@media (max-width: 760px) {
  .marketing .mk-nav__section-link { display: none; }
  .marketing .mk-subnav { display: flex; gap: 22px; padding-top: 6px; padding-bottom: 10px; font-size: 0.95rem; font-weight: 600; }
  .marketing .mk-subnav a { color: var(--mk-ink-2); text-decoration: none; }
}
@media (max-width: 640px) {
  .marketing .mk-grid--4,
  .marketing .mk-grid--3,
  .marketing .mk-grid--stories { grid-template-columns: 1fr; }
  .marketing .authcard__body { padding: 22px; }
  /* Each legal table row becomes a block: its first cell as a heading, the
     others labelled with their column name from data-label. */
  .marketing .mk-legal__table thead { display: none; }
  .marketing .mk-legal__table table,
  .marketing .mk-legal__table tbody,
  .marketing .mk-legal__table tr,
  .marketing .mk-legal__table td { display: block; }
  .marketing .mk-legal__table tr { padding: 10px 14px; border-bottom: 1px solid var(--mk-line); }
  .marketing .mk-legal__table tr:last-child { border-bottom: 0; }
  .marketing .mk-legal__table td { padding: 2px 0; border-bottom: 0; }
  .marketing .mk-legal__table td:first-child { color: var(--mk-ink); font-weight: 700; }
  .marketing .mk-legal__table td[data-label]::before { content: attr(data-label) ": "; color: var(--mk-muted); }
}
@media (max-width: 480px) {
  .marketing .mk-ba { min-height: 0; }
  .marketing .mk-sheet { display: none; }
  .marketing .mk-ba .mk-panel { position: static; width: 100%; }
  .marketing .mk-logo__mark { height: 16px; }
  .marketing .mk-nav__links { gap: 14px; }
  /* Logo, Sign in, EN/RU and the button do not fit one line at 375px, so
     the header drops EN/RU; the footer carries them at every width. */
  .marketing .mk-nav .mk-nav__languages { display: none; }
  .marketing .mk-nav .mk-cta-long { display: none; }
  .marketing .mk-nav .mk-cta-short { display: inline; }
}

/* ---- Pricing ---- */
.marketing .mk-plans { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; max-width: 760px; margin: 0; }
.marketing .mk-plans__trial { margin: 1.8rem 0 0.9rem; }
.marketing .mk-plan { background: var(--mk-surface); border: 1px solid var(--mk-line); border-radius: var(--mk-radius); padding: 22px 24px; }
/* The yearly plan, recommended: the accent frame of our commercial proposal. */
.marketing .mk-plan--recommended { border: 2px solid var(--mk-green); padding: 21px 23px; }
.marketing .mk-plan__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.marketing .mk-plan__name { font-size: 1.1rem; font-weight: 750; margin: 0; letter-spacing: -0.01em; }
.marketing .mk-plan__flag { font-size: 0.78rem; font-weight: 700; color: #fff; background: var(--mk-green); padding: 0.25em 0.7em; border-radius: 99px; white-space: nowrap; }
.marketing .mk-plan__price { margin: 0.9rem 0 0; color: var(--mk-ink-2); }
.marketing .mk-plan__amount { font-size: clamp(2.2rem, 5vw, 2.8rem); font-weight: 800; letter-spacing: -0.03em; color: var(--mk-ink); }
.marketing .mk-plan__badge { display: inline-block; margin: 0.6rem 0 0; font-size: 0.85rem; font-weight: 700; color: var(--mk-green-ink); background: var(--mk-green-soft); padding: 0.3em 0.75em; border-radius: 99px; }
.marketing .mk-plans__notes { font-size: 0.88rem; color: var(--mk-muted); margin: 0.9rem 0 1.4rem; }
.marketing .mk-workspaces { max-width: 760px; margin: 2rem 0 0; padding: 18px 22px; border-radius: var(--mk-radius); background: var(--mk-surface); border: 1px dashed var(--mk-line-strong); }
.marketing .mk-workspaces__title { font-size: 1.05rem; margin: 0 0 0.4rem; }
.marketing .mk-workspaces p { margin: 0; color: var(--mk-ink-2); }
.marketing .mk-workspaces .mk-workspaces__note { margin-top: 0.6rem; font-size: 0.85rem; color: var(--mk-muted); }
.marketing .mk-timeline { list-style: none; padding: 0; margin: 1.6rem 0 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; position: relative; }
.marketing .mk-timeline li { position: relative; padding-top: 28px; display: flex; flex-direction: column; gap: 4px; color: var(--mk-ink-2); }
.marketing .mk-timeline li::before { content: ""; position: absolute; top: 4px; left: 0; width: 14px; height: 14px; border-radius: 50%; background: var(--mk-green); }
.marketing .mk-timeline li::after { content: ""; position: absolute; top: 10px; left: 20px; right: -12px; height: 2px; background: var(--mk-line-strong); }
.marketing .mk-timeline li:last-child::after { display: none; }
.marketing .mk-timeline__date { color: var(--mk-ink); font-size: 1.05rem; }
.marketing .mk-grid--included { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.marketing .mk-h2--sub { font-size: clamp(1.3rem, 2.4vw, 1.6rem); margin-top: 2.6rem; }
@media (max-width: 640px) {
  .marketing .mk-plans { grid-template-columns: 1fr; }
  .marketing .mk-timeline { grid-template-columns: 1fr; gap: 18px; }
  .marketing .mk-timeline li { padding: 0 0 0 28px; }
  .marketing .mk-timeline li::after { top: 20px; left: 6px; right: auto; width: 2px; height: calc(100% + 4px); }
}
/* The home hero's link to /pricing, under the trial offer. */
.marketing .mk-price-hint { margin: 0.35rem 0 0; font-weight: 600; }
.marketing .mk-price-hint a { color: var(--mk-green-ink); }
/* What's included: a check-marked heading in ink, its explanation smaller
   and muted, so the two read as a label and its detail. */
.marketing .mk-grid--included .mk-card h3 { display: flex; gap: 0.5em; color: var(--mk-ink); font-size: 1.05rem; font-weight: 750; margin-bottom: 0.5rem; }
.marketing .mk-grid--included .mk-card h3::before { content: "✓"; color: var(--mk-green); font-weight: 800; }
.marketing .mk-grid--included .mk-card p { color: var(--mk-muted); font-size: 0.92rem; line-height: 1.5; padding-left: 1.45em; }

/* A single-column section that reads as one block of text. */
.marketing .mk-narrow { max-width: 760px; }
.marketing .mk-price-link { margin: 0; font-weight: 700; }
.marketing .mk-price-link a { color: var(--mk-green-ink); }
/* An owner decision still to be made, shown on the page until it is. */
.marketing .mk-todo { background: #fff4c2; color: #6b5a00; border-radius: 6px; padding: 6px 10px; font-size: 0.9rem; font-weight: 600; }

/* ---- /crm and /invoicing ---- */
.marketing .mk-crumbs { font-size: 0.88rem; color: var(--mk-muted); margin: 0 0 1rem; }
.marketing .mk-crumbs a { color: var(--mk-ink-2); }
/* The direct answer a reader – or an assistant quoting the page – needs first. */
.marketing .mk-answer { font-size: clamp(1.05rem, 1.6vw, 1.2rem); color: var(--mk-ink); margin: 0 0 1.4rem; }
.marketing .mk-answer__intro { font-weight: 700; margin: 0 0 0.5rem; }
.marketing .mk-signs { margin: 0; padding-left: 1.2em; display: grid; gap: 0.35rem; color: var(--mk-ink-2); }
.marketing .mk-signs--muted { margin-bottom: 0.5rem; }
.marketing .mk-problem h3 { margin-bottom: 0.7rem; }
.marketing .mk-problem p { margin: 0; }
.marketing .mk-problem p + p { margin-top: 0.7rem; }
.marketing .mk-problem__label { display: block; font-size: 0.75rem; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: 0.15rem; }
.marketing .mk-problem__before { color: var(--mk-muted); }
.marketing .mk-problem__before .mk-problem__label { color: var(--mk-danger); }
.marketing .mk-problem__after .mk-problem__label { color: var(--mk-green-ink); }
.marketing .mk-actions--after { margin-top: 2rem; }
.marketing .mk-compare { width: 100%; border-collapse: collapse; background: var(--mk-surface); border-radius: var(--mk-radius); overflow: hidden; font-size: 0.95rem; }
.marketing .mk-compare th, .marketing .mk-compare td { text-align: left; vertical-align: top; padding: 12px 14px; border-bottom: 1px solid var(--mk-line); }
.marketing .mk-compare thead th { font-weight: 750; background: #eef3ef; }
.marketing .mk-compare tbody th { font-weight: 700; width: 22%; }
.marketing .mk-compare td { color: var(--mk-ink-2); }
.marketing .mk-compare .mk-compare__ours { background: var(--mk-green-soft); color: var(--mk-green-ink); font-weight: 650; }
.marketing .mk-grid--niches { grid-template-columns: repeat(2, 1fr); }
.marketing .mk-niche p { margin: 0; }
.marketing .mk-niche p + p { margin-top: 0.6rem; }
.marketing .mk-niches__more { margin-top: 1.5rem; }
.marketing .mk-notes { margin: 0; padding: 0; list-style: none; display: grid; gap: 14px; }
.marketing .mk-notes li { background: var(--mk-surface); border: 1px solid var(--mk-line); border-left: 4px solid #d9a400; border-radius: 10px; padding: 14px 16px; font-size: 1rem; }
.marketing .mk-notes strong { display: block; margin-bottom: 0.2rem; }
@media (max-width: 760px) {
  .marketing .mk-grid--niches { grid-template-columns: 1fr; }
  /* The comparison stacks: each row a block, the cells labelled by column. */
  .marketing .mk-compare thead { display: none; }
  .marketing .mk-compare, .marketing .mk-compare tbody, .marketing .mk-compare tr, .marketing .mk-compare th, .marketing .mk-compare td { display: block; width: auto; }
  .marketing .mk-compare tr { border-bottom: 1px solid var(--mk-line); padding: 8px 0; }
  .marketing .mk-compare th, .marketing .mk-compare td { border-bottom: 0; padding: 4px 14px; }
  .marketing .mk-compare td[data-label]::before { content: attr(data-label) ": "; color: var(--mk-muted); font-weight: 600; }
}
.marketing .mk-crm-note { margin-top: 1.6rem; font-size: 1rem; }
/* The home page's «for whom» cards: each one a link into /crm. */
.marketing .mk-whom__card { display: block; color: var(--mk-ink-2); text-decoration: none; transition: border-color 0.15s; }
.marketing .mk-whom__card strong { display: block; color: var(--mk-ink); margin-bottom: 0.3rem; }
.marketing .mk-whom__card:hover { border-color: var(--mk-green); }
.marketing .mk-whom__more, .marketing .mk-more { margin-top: 1.5rem; }
.marketing .mk-group-link { margin: -0.2rem 0 1.2rem; }
.marketing .mk-grid--included .mk-card h3 a { color: inherit; }
