@font-face {
  font-family: Golos;
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url("assets/golos-cyrillic.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
  font-family: Golos;
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url("assets/golos-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  color-scheme: light;
  --ink: #142641;
  --muted: #4b607b;
  --blue: #155cbc;
  --blue-deep: #1050a8;
  --teal: #087361;
  --violet: #6040a9;
  --amber: #87400e;
  --action: #145ec8;
  --action-hover: #124da8;
  --page: #f0f4fb;
  --panel: #fff;
  --quiet: #f6f8fc;
  --hover: #e9f1fd;
  --line: #d2ddec;
  --focus: #0d5cc7;
  --blue-tint: #e7f0ff;
  --teal-tint: #e5f6f0;
  --violet-tint: #efeafd;
  --amber-tint: #fff1df;
  --series-blue: #408af0;
  --series-teal: #23ab90;
  --series-violet: #9066e4;
  --series-amber: #bd742a;
  --line-fill: #28b99b49;
  --spp-line-fill: #408af03b;
  --ease-out: cubic-bezier(.23, 1, .32, 1);
  color: var(--ink);
  background: var(--page);
  font: 16px/1.55 Golos, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --ink: #edf2fa;
  --muted: #b5c2d7;
  --blue: #9bc7ff;
  --blue-deep: #bfdaff;
  --teal: #91e8ce;
  --violet: #cfbfff;
  --amber: #ffd09b;
  --action: #2865be;
  --action-hover: #2e6ac7;
  --page: #15161a;
  --panel: #1d1f24;
  --quiet: #24262d;
  --hover: #2c3039;
  --line: #383e4a;
  --focus: #acd1ff;
  --blue-tint: #293e5d;
  --teal-tint: #22443e;
  --violet-tint: #3a3153;
  --amber-tint: #493723;
  --series-blue: #70aaff;
  --series-teal: #51d3b5;
  --series-violet: #b393fc;
  --series-amber: #edae72;
  --line-fill: #51d3b555;
  --spp-line-fill: #70aaff42;
}

* { box-sizing: border-box; }
html { scroll-padding-top: 86px; }
body { margin: 0; }
:where(h1,h2,h3,h4,p,dl,dd,ul,ol) { margin: 0; }
[hidden] { display: none !important; }
img { display: block; max-width: 100%; }
a { color: var(--blue); text-underline-offset: .23em; }
button { font: inherit; }
button, summary { cursor: pointer; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }
::selection { color: var(--ink); background: var(--blue-tint); }

.wrap { width: min(calc(100% - 64px), 1216px); margin-inline: auto; }
.skip-link { position: fixed; z-index: 10; inset: 8px auto auto 8px; translate: 0 -150%; padding: 10px 14px; border-radius: 8px; background: var(--panel); }
.skip-link:focus { translate: none; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 3;
  border-bottom: 1px solid var(--line);
  background: var(--panel);
}

.header-inner {
  min-height: 70px;
  display: grid;
  grid-template-columns: minmax(0,1fr) auto;
  align-items: center;
  gap: 24px;
}

.brand { display: inline-block; width: 150px; margin-inline-start: -13px; border-radius: 8px; text-decoration: none; }
.brand img { width: 100%; height: auto; }
.brand-dark, :root[data-theme="dark"] .brand-light { display: none; }
:root[data-theme="dark"] .brand-dark { display: block; }
.header-actions, .hero-actions { display: flex; align-items: center; }

.header-actions { justify-self: end; gap: 8px; }
.theme-toggle {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 11px;
  color: var(--blue);
  background: var(--panel);
}

.theme-toggle:hover, .button-quiet:hover { background: var(--hover); }
.theme-horizon{position:relative;inline-size:30px;block-size:28px;overflow:hidden}
.theme-horizon::after{
  content:"";position:absolute;inset-inline:5px;inset-block-end:0;block-size:1px;
  background:var(--muted);opacity:.42;pointer-events:none
}
.theme-orbit{
  position:absolute;inset:0;display:grid;place-items:center;
  transform:translateX(var(--theme-x,0px));transition:transform 480ms ease-in-out;
  pointer-events:none
}
.theme-orbit svg{
  inline-size:20px;block-size:20px;transform:translateY(var(--theme-y,0px));
  transition:transform 500ms ease-in-out
}
.theme-sun{color:var(--amber)}
.theme-moon{color:var(--blue)}
:root:not([data-theme="dark"]) .theme-moon{--theme-x:-17px;--theme-y:25px}
:root[data-theme="dark"] .theme-sun{--theme-x:17px;--theme-y:25px}
@media(prefers-reduced-motion:reduce){
  .theme-orbit,.theme-orbit svg{transform:none}
  .theme-orbit{transition:opacity 150ms var(--ease-out)}
  .theme-orbit svg{transition:none}
  :root:not([data-theme="dark"]) .theme-moon,:root[data-theme="dark"] .theme-sun{opacity:0}
}

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 11px;
  padding: 10px 17px;
  font-size: .94rem;
  font-weight: 660;
  text-decoration: none;
  transition: transform 140ms var(--ease-out);
}

.button:active { transform: translateY(1px); }
.button-small { min-height: 44px; padding: 8px 16px; }
.button-primary { color: #fff; background: var(--action); }
.button-primary:hover { background: var(--action-hover); }
.button-quiet { border-color: var(--line); color: var(--ink); background: var(--panel); }
.report-section {
  border-bottom: 1px solid var(--line);
}

.hero { background: var(--panel); }

.section-wrap { padding-block: clamp(32px,4vw,56px) clamp(35px,4.25vw,61px); }
.report-mount[data-report-waiting] { min-block-size: var(--demo-height, 420px); }
[data-demo-report="ads"] { --demo-height: 534px; }
[data-demo-report="products"] { --demo-height: 390px; }
[data-demo-report="stock"] { --demo-height: 427px; }
[data-demo-report="finance"] { --demo-height: 474px; }
.hero .section-wrap { padding-top: clamp(27px,3vw,44px); }

.section-heading {
  display: grid;
  grid-template-columns: minmax(0,1fr) minmax(0,.8fr);
  align-items: center;
  gap: 11px clamp(24px,5vw,70px);
  margin-bottom: clamp(17px,2vw,27px);
}

.section-heading :is(h1,h2) {
  font-size: clamp(1.8rem,3.15vw,3rem);
  font-weight: 770;
  letter-spacing: -.04em;
  line-height: 1.07;
  text-wrap: balance;
}

.hero-copy h1 { font-size: clamp(2.45rem,5.15vw,4.7rem); }
.section-heading :is(h1,h2) span { color: var(--blue-deep); }

.section-intro { max-width: 45ch; padding-bottom: 2px; }
.section-intro > p { color: var(--muted); font-size: clamp(1rem,1.37vw,1.16rem); }
.section-intro > p strong { color: var(--ink); font-weight: 680; }
.hero-actions { gap: 8px 15px; flex-wrap: wrap; margin-top: 17px; }
.hero-actions p { flex-basis: 100%; color: var(--muted); font-size: .82rem; line-height: 1.4; }
.pricing-link { display: inline-flex; min-height: 44px; align-items: center; color: var(--blue); font-size: .9rem; font-weight: 650; }

.demo {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--panel);
  scroll-margin-top: 13px;
}

.demo-top, .demo-app, .demo-range, .chart-head {
  display: flex;
  align-items: center;
  gap: 11px;
}

.demo-top { justify-content: space-between; padding: 8px clamp(12px,2vw,22px); border-bottom: 1px solid var(--line); }
.demo-app { flex-wrap: wrap; gap: 5px 9px; }
.demo-mode { color: var(--muted); font-size: .78rem; }
.demo-label { padding: 3px 8px; border-radius: 6px; white-space: nowrap; color: var(--blue); background: var(--blue-tint); font-size: .73rem; font-weight: 650; }
.demo-range { justify-content: flex-end; }
.demo-dates { color: var(--muted); font-size: .79rem; white-space: nowrap; font-variant-numeric: tabular-nums; }

.segments {
  display: inline-flex;
  gap: 3px;
  padding: 3px;
  border-radius: 9px;
  background: var(--quiet);
  white-space: nowrap;
}

.segments button {
  min-height: 33px;
  padding: 5px 10px;
  border: 1px solid transparent;
  border-radius: 7px;
  color: var(--muted);
  background: transparent;
  font-size: .78rem;
  font-weight: 650;
}
.segments button:hover { color: var(--ink); }
.segments button[aria-pressed="true"] { border-color: var(--line); color: var(--blue); background: var(--panel); }



.demo-panel { min-width: 0; padding: 10px clamp(12px,2vw,22px) 13px; }
.demo-panel:focus-visible { outline-offset: -3px; }
.report-title { font-size: clamp(1.16rem,2vw,1.42rem); font-weight: 760; line-height: 1.15; letter-spacing: -.028em; }

.demo-metrics { display: grid; grid-template-columns: repeat(var(--metrics,5),minmax(0,1fr)); border-bottom: 1px solid var(--line); }
.metric { min-width: 0; padding: 8px 10px; }
.metric + .metric { border-inline-start: 1px solid var(--line); }
.metric dt { color: var(--muted); font-size: .77rem; line-height: 1.25; }
.metric dd { margin-top: 3px; color: var(--tone-text,var(--ink)); font-size: clamp(.86rem,1.5vw,1.25rem); font-weight: 745; line-height: 1.2; letter-spacing: -.025em; white-space: nowrap; font-variant-numeric: tabular-nums; }
.tone-blue { --tone-bg: var(--blue-tint); --tone-text: var(--blue-deep); --tone-chart: var(--series-blue); }
.tone-teal { --tone-bg: var(--teal-tint); --tone-text: var(--teal); --tone-chart: var(--series-teal); }
.tone-violet { --tone-bg: var(--violet-tint); --tone-text: var(--violet); --tone-chart: var(--series-violet); }
.tone-amber { --tone-bg: var(--amber-tint); --tone-text: var(--amber); --tone-chart: var(--series-amber); }

.report-visual { display: grid; grid-template-columns: minmax(0,1fr) minmax(215px,.36fr); margin-top: 5px; border-bottom: 1px solid var(--line); }
.chart-card, .insight { min-width: 0; padding: 10px 12px; }
.chart-head { justify-content: space-between; gap: 7px; }
.chart-head h4, .insight h4, .report-list h4 { font-size: .96rem; font-weight: 720; line-height: 1.22; }
.chart-switch button { min-height: 30px; padding-inline: 8px; }
.chart-key { display: flex; flex-wrap: wrap; align-items: center; gap: 3px 10px; margin: 4px 0; color: var(--muted); font-size: .71rem; }
.legend-item { display: inline-flex; align-items: center; gap: 5px; color: var(--tone-text); white-space: nowrap; }
.legend-item i { width: 8px; height: 8px; flex: none; border-radius: 2px; background: var(--tone-chart); }
.legend-note { margin-inline-start: auto; }

.chart-view { --plot-height: 108px; --axis-height: 20px; display: grid; grid-template-columns: 48px minmax(0,1fr); gap: 4px; }
.chart-axis { height: var(--plot-height); display: flex; flex-direction: column; justify-content: space-between; padding-block: 1px; color: var(--muted); font-size: .65rem; line-height: 1; white-space: nowrap; }
.plot-area { min-width: 0; position: relative; }
.plot-grid, .chart { position: absolute; inset: 0 0 auto; width: 100%; height: var(--plot-height); }
.plot-grid { border-block: 1px solid var(--line); background: linear-gradient(to bottom,transparent calc(50% - .5px),var(--line) calc(50% - .5px) calc(50% + .5px),transparent calc(50% + .5px)); }
.chart { display: block; }
.plot-lens {
  position: absolute;
  inset: 0 auto auto 0;
  width: calc(100% / var(--days,7));
  height: calc(var(--plot-height) + var(--axis-height));
  pointer-events: none;
  transform: translateX(calc(var(--index,0) * 100%));
  transition: transform 275ms var(--ease-out);
}
.plot-lens[data-kind="line"] {
  background: linear-gradient(90deg,transparent calc(50% - .5px),var(--line) calc(50% - .5px) calc(50% + .5px),transparent calc(50% + .5px));
}

.plot-days { position: relative; display: grid; grid-template-columns: repeat(var(--days,7),minmax(0,1fr)); }
.plot-day { position: relative; min-width: 0; display: flex; flex-direction: column; align-items: stretch; padding: 0; border: 0; border-radius: 5px; color: var(--muted); background: transparent; }
.plot-day:focus-visible, .rank-item:focus-visible { outline-offset: 0; }
.plot-slot { height: var(--plot-height); display: flex; justify-content: center; align-items: end; border-radius: 5px 5px 0 0; }
.plot-date { height: var(--axis-height); display: grid; place-items: center; font-size: .69rem; font-variant-numeric: tabular-nums; }
.plot-day[aria-pressed="true"] { color: var(--blue); font-weight: 720; }
.plot-tooltip { position: absolute; z-index: 1; display: flex; align-items: baseline; gap: 6px; padding: 4px 7px; border: 1px solid var(--line); border-radius: 6px; color: var(--muted); background: var(--panel); font-size: .72rem; line-height: 1.2; white-space: nowrap; pointer-events: none; transition: opacity 125ms var(--ease-out); }
.plot-tooltip strong { color: var(--tone-text,var(--ink)); font-variant-numeric: tabular-nums; }
@starting-style {
  .plot-tooltip { opacity: 0; }
}

.plot-column {
  width: min(70%,37px);
  height: var(--height);
  display: flex;
  flex-direction: column-reverse;
  overflow: hidden;
  border-radius: 5px 5px 2px 2px;
  transform-origin: bottom center;
  transition: filter 170ms ease;
}

.plot-column span:first-child { height: var(--organic); background: var(--series-blue); }
.plot-column span:last-child { flex: 1; background: var(--series-teal); }
.plot-day:hover .plot-column { filter: saturate(1.27) brightness(1.07); }
.plot-day[aria-pressed="true"] .plot-column { filter: saturate(1.29); }

.rank-view { display: grid; gap: 2px; margin-top: 5px; }
.rank-item { display: grid; gap: 3px; min-height: 32px; width: 100%; padding: 3px 7px; border: 1px solid transparent; border-radius: 6px; color: var(--ink); background: transparent; text-align: start; }
.rank-item:hover { background: var(--quiet); }
.rank-item[aria-pressed="true"] { border-color: var(--line); background: var(--quiet); }
.rank-info { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; font-size: .78rem; }
.rank-info strong { color: var(--tone-text); white-space: nowrap; font-variant-numeric: tabular-nums; }
.rank-meter { height: 5px; overflow: hidden; border-radius: 10px; background: var(--quiet); }
.rank-meter > span { display: block; width: var(--size); height: 100%; border-radius: 10px; background: color-mix(in srgb,var(--tone-chart) 70%,var(--panel)); }
.rank-item[aria-pressed="true"] .rank-meter > span { background: var(--tone-chart); }

.insight { border-inline-start: 1px solid var(--line); }
.insight-head { display: grid; gap: 3px; }
.insight-date { margin-top: 3px; color: var(--muted); font-size: .76rem; }
.insight-value { color: var(--ink); font-size: clamp(1.1rem,1.8vw,1.55rem); font-weight: 760; letter-spacing: -.035em; line-height: 1.2; font-variant-numeric: tabular-nums; }
.insight-items { display: grid; gap: 2px; margin-top: 6px; }
.insight-items > div { min-width: 0; display: flex; justify-content: space-between; align-items: baseline; gap: 5px; font-size: .74rem; line-height: 1.35; }
.insight-items dt { color: var(--muted); }
.insight-items dd { color: var(--tone-text,var(--ink)); font-weight: 670; white-space: nowrap; font-variant-numeric: tabular-nums; }
.insight-caption { margin-top: 6px; color: var(--muted); font-size: .69rem; line-height: 1.35; }

.report-list { margin-top: 10px; }
.report-list h4 { margin-bottom: 6px; }
.table-note { margin: -2px 0 6px; color: var(--muted); font-size: .75rem; }
.table-frame { overflow-x: auto; overscroll-behavior-inline: contain; border: 1px solid var(--line); border-radius: 10px; scrollbar-width: thin; scrollbar-color: var(--line) var(--quiet); }
.report-list.report-disclosure .table-frame { margin: 0 8px 8px; background: var(--panel); }
.table-frame:focus-visible { outline-offset: 1px; }
table { width: 100%; border-collapse: collapse; font-size: .76rem; font-variant-numeric: tabular-nums; }
th, td { padding: 5px 10px; border-bottom: 1px solid var(--line); text-align: right; white-space: nowrap; }
thead th { color: var(--ink); background: var(--quiet); font-weight: 650; }
tbody th { color: var(--ink); font-weight: 610; }
th:first-child { text-align: left; }
tbody tr:last-child > * { border-bottom: 0; }
tbody tr:hover { background: var(--quiet); }
tbody tr:focus-within { background: var(--hover); }
.row-status { padding: 2px 6px; border-radius: 5px; color: var(--tone-text); background: var(--tone-bg); font-weight: 650; }
.order-result { display: inline-flex; align-items: baseline; gap: 7px; font-weight: 690; }
.order-result small { color: var(--muted); font-size: .7rem; font-weight: 530; }
[data-demo-report="finance"] tbody tr:last-child { color: var(--teal); background: var(--teal-tint); }
[data-demo-report="finance"] tbody tr:last-child th { color: inherit; }
.no-script { padding: 10px 15px; color: var(--muted); }

.report-addons, .order-details { margin-top: 7px; }
.report-disclosure { border-top: 1px solid var(--line); }
.report-disclosure > summary { display: grid; grid-template-columns: minmax(0,1fr) auto 8px; align-items: center; gap: 5px 12px; min-height: 42px; padding: 6px 3px; cursor: pointer; list-style: none; font-size: .82rem; font-weight: 680; }
.report-disclosure > summary::-webkit-details-marker { display: none; }
.report-disclosure > summary:hover { background: var(--hover); }
.report-disclosure > summary::after { grid-column: 3; content: ""; width: 7px; height: 7px; border-right: 1.5px solid var(--muted); border-bottom: 1.5px solid var(--muted); transform: rotate(45deg) translateY(-2px); }
.report-disclosure[open] > summary::after { transform: rotate(225deg) translateY(-1px); }
.disclosure-kpis { display: flex; flex-wrap: wrap; gap: 2px 10px; font-size: .75rem; font-variant-numeric: tabular-nums; }
.disclosure-kpis strong { color: var(--blue-deep); font-weight: 670; white-space: nowrap; }
.disclosure-kpis :is(.locality-overview-extra,.stock-plan-overview) { color: var(--amber); }
.locality-widgets { display: grid; grid-template-columns: minmax(0,1.06fr) minmax(0,.94fr); gap: 8px; padding: 0 8px 8px; }
.report-widget {
  min-width: 0;
  padding: 9px 11px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--panel);
}
.report-widget :is(#locality-title,#logistics-title,#stock-plan-title) { scroll-margin-top: 10px; }
.stock-plan { margin: 0 8px 8px; }
.widget-heading { display: flex; min-height: 33px; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 6px 10px; }
.widget-heading h4 { font-size: .96rem; font-weight: 720; line-height: 1.22; }
.widget-reset {
  min-height: 33px;
  padding: 3px 8px;
  border: 1px solid transparent;
  border-radius: 7px;
  color: var(--blue);
  background: var(--panel);
  font-size: .73rem;
  font-weight: 650;
}
.widget-reset:hover, .widget-reset[aria-pressed="true"] { border-color: var(--line); background: var(--blue-tint); }
.widget-total { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 7px; margin: 8px 0; }
.widget-total > div { min-width: 0; padding: 7px 8px; border: 1px solid var(--line); border-radius: 8px; background: var(--panel); }
.widget-total dt { color: var(--muted); font-size: .72rem; line-height: 1.25; }
.widget-total dd { margin-top: 3px; color: var(--ink); font-size: clamp(1.08rem,1.65vw,1.49rem); font-weight: 750; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.widget-total .locality-share { color: var(--blue-deep); }
.widget-total .logistics-extra { color: var(--amber); }
.widget-legend { display: flex; flex-wrap: wrap; gap: 5px 12px; margin-bottom: 4px; font-size: .71rem; }
.locality-rows { display: grid; gap: 2px; }
.locality-row {
  display: grid;
  grid-template-columns: minmax(73px,auto) minmax(28px,1fr) auto;
  align-items: center;
  gap: 7px;
  min-height: 34px;
  padding: 3px 6px;
  border: 1px solid transparent;
  border-radius: 7px;
  color: var(--ink);
  background: transparent;
  font-size: .76rem;
  text-align: start;
}
.locality-row:hover, .locality-row[aria-pressed="true"] { border-color: var(--line); background: var(--panel); }
.locality-row strong { color: var(--amber); font-variant-numeric: tabular-nums; text-align: right; }
.widget-track { display: flex; height: 8px; overflow: hidden; border-radius: 10px; background: var(--hover); }
.widget-track > span { flex: 0 0 var(--fill); }
.route-local { background: var(--series-blue); }
.route-nonlocal { background: var(--series-amber); }
.logistics-cluster { color: var(--muted); font-size: .76rem; }
.logistics-bars { display: grid; gap: 9px; margin-top: 10px; }
.logistics-bar { display: grid; grid-template-columns: 1fr auto; align-items: baseline; gap: 3px 8px; color: var(--muted); font-size: .76rem; }
.logistics-bar strong { color: var(--ink); white-space: nowrap; font-variant-numeric: tabular-nums; }
.logistics-bar .widget-track { grid-column: 1 / -1; }
.widget-note { margin-top: 8px; color: var(--muted); font-size: .72rem; line-height: 1.45; }
.stock-plan .widget-heading .segments { background: var(--panel); }
.stock-plan .widget-heading [aria-pressed="true"] { background: var(--blue-tint); }
.stock-plan-summary { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 9px; margin: 9px 0; color: var(--muted); font-size: .84rem; }
.stock-plan-summary strong { color: var(--blue-deep); font-size: 1.3rem; font-weight: 750; }
.stock-plan-rows { display: grid; gap: 4px; }
.stock-plan-rows > div { display: grid; grid-template-columns: minmax(0,1fr) auto auto; align-items: center; gap: 5px 10px; padding: 6px 8px; border: 1px solid var(--line); border-radius: 7px; background: var(--panel); font-size: .8rem; }
.stock-plan-rows small { display: block; color: var(--muted); font-size: .71rem; }
.stock-plan-rows b { color: var(--amber); white-space: nowrap; font-variant-numeric: tabular-nums; }
.stock-plan-current { color: var(--muted); white-space: nowrap; }

.connect h2, .faq h2 { font-size: clamp(1.7rem,2.85vw,2.7rem); font-weight: 770; letter-spacing: -.035em; line-height: 1.08; }
.faq { background: var(--panel); }

.receipt { max-width: 540px; margin: 0 8px 8px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; background: var(--panel); scroll-margin-top: 10px; }
.receipt h4 { font-size: 1rem; font-weight: 720; line-height: 1.18; }
.receipt-switch { margin-top: 9px; background: var(--panel); }
.receipt-switch button[aria-pressed="true"] { background: var(--blue-tint); }
.receipt-rows { margin-top: 9px; }
.receipt-rows > div { display: flex; justify-content: space-between; gap: 12px; padding-block: 4px; border-bottom: 1px solid var(--line); color: var(--muted); font-size: .82rem; }
.receipt-rows dd { color: var(--ink); font-weight: 650; font-variant-numeric: tabular-nums; text-align: end; }
.receipt-rows .receipt-total { align-items: center; margin-top: 9px; padding: 7px 9px; border: 0; border-radius: 8px; color: var(--tone-text); background: var(--tone-bg); font-weight: 700; }
.receipt-total dd { color: var(--tone-text); font-size: 1.17rem; white-space: nowrap; }
.receipt-note { margin-top: 7px; color: var(--muted); font-size: .74rem; }

.pricing { padding-block: clamp(32px,4.5vw,60px); border-bottom: 1px solid var(--line); }
.pricing-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 12px; }
.pricing-heading h2 { font-size: clamp(2rem,4.55vw,4.1rem); }
.plan-discount {
  display: inline-block; margin-inline-start: 4px; padding: 1px 5px; border-radius: 5px;
  background: var(--tone-text); color: var(--panel);
  font-size: .78rem; font-weight: 750; white-space: nowrap;
}
:root[data-theme="dark"] .plan-discount { background: var(--tone-chart); }

.price-plan { min-width: 0; padding: clamp(14px,2vw,22px); border: 1px solid var(--line); border-radius: 12px; background: var(--panel); }
.price-plan h3 { font-size: 1rem; font-weight: 690; }
.price-plan p { color: var(--muted); }
.plan-price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 3px 9px; margin: 6px 0; }
.plan-price strong { color: var(--ink); font-size: clamp(1.85rem,4vw,2.65rem); font-weight: 770; line-height: 1.13; letter-spacing: -.035em; font-variant-numeric: tabular-nums; }
.price-plan .plan-savings { margin-top: 4px; font-size: .87rem; font-weight: 650; }
.price-plan .plan-best-label { margin-top: 6px; color: var(--ink); font-size: .8rem; font-weight: 620; }
.pricing-status { margin-top: 12px; color: var(--muted); font-size: .88rem; }

.connect { padding-block: clamp(31px,4.5vw,60px); }
.connect-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 30px; }
.connect-inner p { max-width: 58ch; margin-top: 8px; color: var(--muted); }

.faq { padding-block: clamp(30px,4.5vw,64px); border-block: 1px solid var(--line); }
.faq-inner { display: grid; grid-template-columns: minmax(200px,.65fr) minmax(0,1.35fr); gap: 23px clamp(33px,8vw,110px); }
main > .faq h2 { text-wrap: auto; }
.faq-list { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { min-height: 49px; display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 2px; list-style: none; color: var(--ink); font-weight: 650; }
.faq summary:hover { color: var(--blue); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { width: 8px; height: 8px; flex: none; margin-inline-end: 4px; border: solid var(--blue); border-width: 0 2px 2px 0; content: ""; transform: translateY(-2px) rotate(45deg); }
.faq details[open] summary::after { transform: translateY(2px) rotate(225deg); }
.faq details p { margin: 1px 22px 11px 2px; color: var(--muted); font-size: .91rem; }
.site-footer { background: var(--page); }
.footer-inner {
  display: grid;
  grid-template-columns: minmax(0,1.2fr) repeat(2,minmax(0,.75fr)) minmax(0,1.15fr) minmax(0,1fr);
  gap: 20px clamp(14px,2.5vw,36px);
  padding-block: clamp(23px,3vw,42px);
}
.footer-about .brand { display: block; }
.footer-about p { max-width: 34ch; color: var(--muted); font-size: .92rem; }
.footer-inner h2 { font-size: .91rem; font-weight: 730; }
.footer-inner ul { margin-top: 5px; padding: 0; list-style: none; }
.footer-inner :is(nav, address) a {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding-block: 2px;
  color: var(--muted);
  font-size: .89rem;
  text-decoration: none;
}
.footer-inner :is(nav, address) a:hover { color: var(--blue); text-decoration: underline; }
.footer-inner nav a { overflow-wrap: anywhere; }
.footer-support address { font-style: normal; overflow-wrap: anywhere; }
.footer-meta {
  display: grid;
  gap: 10px;
  padding-block: 15px 22px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: .84rem;
}
.footer-meta p { max-width: 89ch; }
.footer-requisites { display: flex; flex-wrap: wrap; gap: 5px 20px; font-size: inherit; }
.footer-requisites span { white-space: nowrap; }

@media (max-width: 1060px) {
  .wrap { width: min(calc(100% - 44px),1216px); }
  th, td { padding-inline: 8px; }
}

@media (max-width: 900px) {
  .footer-inner { grid-template-columns: repeat(4,minmax(0,1fr)); }
  .footer-about { grid-column: 1 / -1; }
  .report-visual { grid-template-columns: minmax(0,1fr) minmax(186px,.32fr); }
}

@media (max-width: 685px) {
  .wrap { width: calc(100% - 32px); }
  html { scroll-padding-top: 76px; }
  .header-inner { min-height: 60px; gap: 10px; padding-block: 3px 4px; }
  .brand { width: 135px; }
  .section-wrap, .hero .section-wrap { padding-block: 24px 31px; }
  .report-mount[data-report-waiting] { min-block-size: calc(var(--demo-height, 420px) + 90px); }
  .section-heading { grid-template-columns: minmax(0,1fr); gap: 8px; margin-bottom: 15px; }
  .section-heading :is(h1,h2) { font-size: clamp(1.75rem,5.35vw,2.65rem); text-wrap: wrap; }
  .hero-copy h1 { font-size: clamp(2.3rem,7.7vw,3.75rem); }
  .pricing-heading h2 { font-size: clamp(2rem,7vw,3.4rem); }
  .pricing-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; }
  .section-intro > p { font-size: .96rem; }
  .hero-actions { margin-top: 11px; }
  .hero-actions .button { min-height: 44px; padding-block: 7px; }
  .demo-top { padding: 8px 10px; }
  .demo-panel { padding: 8px 10px 10px; }
  .report-visual, .locality-widgets, .faq-inner { grid-template-columns: minmax(0,1fr); }
  .chart-view { --plot-height: 94px; }
  .insight { padding: 8px 10px; border-inline-start: 0; border-top: 1px solid var(--line); }
  .insight-head { grid-template-columns: minmax(0,1fr) auto; align-items: center; gap: 8px; }
  .insight-date { margin-top: 1px; }
  .insight-items { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 3px 10px; }
  .insight-items > div { font-size: .72rem; }
  .footer-inner { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 16px; }
  .footer-about { grid-column: 1 / -1; }
  .footer-inner :is(nav, address) a { min-height: 36px; }
}

@media (max-width: 375px) {
  .footer-inner > :is(.footer-support, [aria-labelledby="footer-documents"]) { grid-column: 1 / -1; }
}

@media (max-width: 720px) {
  .demo-metrics { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .demo-metrics:not(:has(> :nth-child(5))) .metric:nth-child(3),
  .demo-metrics:has(> :nth-child(5)) .metric:nth-child(4) { border-inline-start: 0; }
  .demo-metrics:not(:has(> :nth-child(5))) .metric:nth-child(n+3),
  .demo-metrics:has(> :nth-child(5)) .metric:nth-child(n+4) { border-top: 1px solid var(--line); }
  .demo-metrics:has(> :nth-child(5)) { grid-template-columns: repeat(6,minmax(0,1fr)); }
  .demo-metrics:has(> :nth-child(5)) .metric { grid-column: span 2; }
  .demo-metrics:has(> :last-child:nth-child(5)) .metric:nth-last-child(-n+2) { grid-column: span 3; }
  .metric { padding: 5px 7px; }
  .metric dt { font-size: .69rem; }
  .metric dd { font-size: .91rem; }
}

@media (max-width: 510px) {
  .demo-top { flex-direction: column; align-items: stretch; gap: 4px; }
  .demo-range { justify-content: space-between; }
  .has-fortnight .plot-day:nth-child(even):not(:last-child):not([aria-pressed="true"]) .plot-date { visibility: hidden; }
  .table-frame table { width: max-content; min-width: 100%; }
  #orders table { width: 100%; }
  #orders :is(th,td) { padding-inline: 6px; }
  #orders tbody th { white-space: normal; }
  .order-result { flex-direction: column; align-items: end; gap: 0; }
  .report-disclosure > summary { grid-template-columns: minmax(0,1fr) 8px; gap: 1px 9px; }
  .report-disclosure > summary::after { grid-row: 1; grid-column: 2; }
  .disclosure-kpis { grid-column: 1; }
}

@media (max-width: 370px) {
  .wrap { width: calc(100% - 23px); }
  .header-inner { min-height: 56px; }
  .brand { width: 115px; }
  .header-actions .button { padding-inline: 8px; font-size: .83rem; }
  .demo-panel { padding-inline: 8px; }
  .metric { padding-inline: 5px; }
  .metric dd { font-size: .82rem; }
  .report-widget { padding-inline: 9px; }
  .widget-heading .segments button { padding-inline: 6px; }
  .stock-plan-rows > div { gap: 4px 6px; }
  .chart-card { padding-inline: 8px; }
  .chart-head h4 { max-width: 15ch; }
  .chart-view { grid-template-columns: 41px minmax(0,1fr); }
  .chart-axis { font-size: .59rem; }
  .legend-note { display: none; }
}

@media (max-width: 350px) {
  .insight-items { grid-template-columns: minmax(0,1fr); }
}

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
  .theme-horizon { view-transition-name: theme-glyph; }
  ::view-transition { pointer-events: none; }
  ::view-transition-group(root) { animation-duration: 500ms; }
  ::view-transition-old(root),
  ::view-transition-new(root) {
    animation-duration: 500ms;
    animation-delay: 0ms;
    animation-timing-function: ease-in-out;
    animation-fill-mode: both;
  }
  ::view-transition-group(theme-glyph),
  ::view-transition-new(theme-glyph) { animation: none; }
  ::view-transition-old(theme-glyph) { display: none; }

  .hero-copy { animation: hero-enter 500ms var(--ease-out) both; }
  .chart-intro .plot-column { animation: column-rise 650ms var(--delay) var(--ease-out) both; }
  .chart-intro .rank-meter > span { transform-origin: left center; animation: rank-grow 610ms var(--ease-out) both; }
  .chart-intro .chart { animation: line-reveal 680ms var(--ease-out) both; }
  .receipt.chart-intro { animation: hero-enter 460ms var(--ease-out) both; }
  @keyframes rank-grow {
    from { transform: scaleX(.13); }
    to { transform: scaleX(1); }
  }
  @keyframes line-reveal {
    from { clip-path: inset(0 82% 0 0); }
    to { clip-path: inset(0); }
  }
  @keyframes hero-enter {
    from { opacity: .68; transform: translateY(13px); }
    to { opacity: 1; transform: none; }
  }
  @keyframes column-rise {
    from { opacity: .55; transform: scaleY(.12); }
    to { opacity: 1; transform: scaleY(1); }
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
