* {
  box-sizing: border-box;
}

:root {
  --bg: #101318;
  --panel: #1b2028;
  --text: #e8e9ed;
  --muted: #a0a6b2;
  --accent: #d6a95a;
  --accent-2: #f0c77a;
  --border: #2b313a;
  --shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
  --num-font: "JetBrains Mono", "IBM Plex Mono", "Fira Code", ui-monospace,
    SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  --nav-bg: #161a1f;
  --nav-border: #1f242b;
  --nav-link: #e5e7eb;
  --nav-link-muted: #9ca3af;
  --nav-pill-border: #4b5563;
}

body.light {
  --bg: #f6f7fb;
  --panel: #ffffff;
  --text: #0b1220;
  --muted: #475569;
  --accent: #f59e0b;
  --accent-2: #f97316;
  --border: #f1f5f9;
  --shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
}

html,
body {
  min-height: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Segoe UI", system-ui, sans-serif;
  font-size: 14px;
}

a {
  color: #cfd8dc;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

body.light a {
  color: #1f2937;
}

body.light a:hover {
  color: #0f172a;
}

.container {
  max-width: 940px;
  padding: 12px;
}

.lp-shell {
  max-width: 860px;
  margin: 0 auto;
}

.muted {
  color: var(--muted);
}

.lp-hero {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: radial-gradient(
      120% 160% at 0% 0%,
      rgba(34, 72, 110, 0.35),
      transparent 60%
    ),
    linear-gradient(135deg, rgba(15, 18, 26, 0.95), rgba(20, 24, 34, 0.9));
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
  margin-bottom: 12px;
}

body.light .lp-hero {
  background: linear-gradient(135deg, #ffffff, #f3f6fb);
  border-color: #e2e8f0;
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.08);
}

.lp-hero-main {
  flex: 1;
  min-width: 0;
}

.lp-title-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.lp-logo {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: #0f1116;
  border: 1px solid var(--border);
  object-fit: contain;
}

body.light .lp-logo {
  background: #ffffff;
}

.lp-title-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.lp-title {
  margin: 0;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.lp-subtitle {
  font-size: 12px;
  color: var(--muted);
}

.lp-meta {
  margin-top: 6px;
  font-size: 12px;
  color: var(--muted);
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(12, 15, 21, 0.7);
  color: var(--text);
}

.pill .dot {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: #a1a1aa;
}

.pill.ok {
  background: rgba(34, 197, 94, 0.15);
  border-color: rgba(34, 197, 94, 0.45);
  color: #7cf4b1;
}

.pill.ok .dot {
  background: #22c55e;
}

.pill.warn {
  background: rgba(245, 158, 11, 0.15);
  border-color: rgba(245, 158, 11, 0.5);
  color: #facc15;
}

.pill.warn .dot {
  background: #f59e0b;
}

.pill.bad {
  background: rgba(239, 68, 68, 0.16);
  border-color: rgba(239, 68, 68, 0.5);
  color: #fca5a5;
}

.pill.bad .dot {
  background: #ef4444;
}

body.light .pill {
  background: #ffffff;
  border-color: #e2e8f0;
  color: #0f172a;
}

body.light .pill.ok {
  background: #ecfdf5;
  border-color: #86efac;
  color: #16a34a;
}

body.light .pill.warn {
  background: #fff7ed;
  border-color: #fcd34d;
  color: #d97706;
}

body.light .pill.bad {
  background: #fef2f2;
  border-color: #fca5a5;
  color: #dc2626;
}

.lp-hero-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  flex-shrink: 0;
}

.btn-slim {
  background: #2a2d36;
  color: #ffffff;
  border: 1px solid #343844;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: transform 0.15s ease, filter 0.15s ease;
}

.btn-slim.primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  border-color: transparent;
  color: #1b2028;
}

.btn-slim:hover {
  text-decoration: none;
  transform: translateY(-1px);
  filter: brightness(1.05);
}

body.light .btn-slim {
  background: #ffffff;
  color: #0f172a;
  border-color: #e2e8f0;
  box-shadow: none;
}

.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 12px;
}

.stat {
  background: linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.05) 0%,
      rgba(0, 0, 0, 0.18) 100%
    ),
    var(--panel);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  padding: 10px 12px;
  box-shadow: var(--shadow);
}

.stat .lab {
  font-size: 11px;
  color: var(--muted);
  margin-bottom: 4px;
}

.stat .val {
  font-size: 15px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  font-family: var(--num-font);
}

.grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.cardx {
  background: linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.05) 0%,
      rgba(0, 0, 0, 0.18) 100%
    ),
    var(--panel);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  padding: 12px;
  box-shadow: var(--shadow);
}

body.light .cardx,
body.light .stat {
  background: linear-gradient(180deg, #ffffff 0%, #f3f6fb 100%);
  border-color: #e2e8f0;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.08);
}

.h5x {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
  color: var(--muted);
  margin-bottom: 8px;
}

.calc-summary,
.calc-main {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 10px;
}

.calc-summary-item,
.calc-main-item {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  gap: 5px;
  padding: 8px 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.14);
  min-width: 0;
  min-height: 64px;
}

.calc-summary-item span,
.calc-main-item span {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.2;
  white-space: normal;
  overflow: visible;
  text-overflow: clip;
  min-width: 0;
}

.calc-summary-item strong,
.calc-main-item strong {
  font-size: 13px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  font-family: var(--num-font);
  text-align: left;
  white-space: normal;
  max-width: 100%;
  overflow-wrap: anywhere;
}

.amt.pos,
.calc-main-item strong.pos {
  color: #22c55e;
}

.amt.neg,
.calc-main-item strong.neg {
  color: #ef4444;
}

.calc-main-item.is-profit {
  border-color: rgba(34, 197, 94, 0.45);
  background: rgba(34, 197, 94, 0.1);
}

.calc-main-item.is-loss {
  border-color: rgba(239, 68, 68, 0.48);
  background: rgba(239, 68, 68, 0.1);
}

.calc-advanced {
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 8px 10px;
  margin-top: 8px;
  background: rgba(0, 0, 0, 0.1);
}

.calc-advanced summary {
  cursor: pointer;
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
  outline: none;
}

.calc-advanced summary::-webkit-details-marker {
  color: var(--muted);
}

.calc-grid {
  margin-top: 10px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.calc-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.calc-field span {
  font-size: 12px;
  color: var(--muted);
}

.calc-field input,
.calc-field select {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 6px 8px;
  font-size: 13px;
  font-variant-numeric: tabular-nums;
  font-family: var(--num-font);
  background: #171c25;
  color: var(--text);
}

.calc-field input:focus,
.calc-field select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(214, 169, 90, 0.2);
}

.calc-kvs {
  margin-top: 10px;
}

.calc-hint {
  margin-top: 8px;
  font-size: 12px;
  color: var(--muted);
  line-height: 1.45;
}

.calc-hint.is-warning {
  color: #fca5a5;
}

.calc-hint.is-profit {
  color: #86efac;
}

.calc-formula {
  display: flex;
  flex-direction: column;
  gap: 3px;
  margin-top: 10px;
  padding: 8px 10px;
  border: 1px solid rgba(214, 169, 90, 0.24);
  border-radius: 10px;
  background: rgba(214, 169, 90, 0.08);
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.calc-formula strong {
  color: var(--text);
  font-size: 12px;
}

.analytics-card {
  margin-top: 12px;
  overflow: hidden;
  padding: 14px;
}

.analytics-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, auto);
  gap: 14px;
  align-items: start;
  margin-bottom: 14px;
}

.analytics-kpis {
  display: grid;
  grid-template-columns: repeat(3, minmax(92px, 1fr));
  gap: 8px;
  justify-content: stretch;
}

.analytics-kpis div {
  min-width: 0;
  padding: 8px 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.12);
}

.analytics-kpis span {
  display: block;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.2;
}

.analytics-kpis strong {
  display: block;
  margin-top: 3px;
  font-family: var(--num-font);
  font-size: 13px;
  line-height: 1.15;
}

.analytics-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.chart-box {
  min-width: 0;
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  background: rgba(6, 10, 17, 0.24);
}

.chart-box[hidden],
.analytics-grid[hidden] {
  display: none !important;
}

.chart-title {
  margin-bottom: 7px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.35;
}

.chart-canvas {
  position: relative;
  min-height: 356px;
  overflow: hidden;
  border-radius: 8px;
}

.chart-canvas svg {
  display: block;
  width: 100%;
  height: 320px;
}

.chart-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.25;
}

.chart-summary span {
  min-width: 0;
  padding: 6px 7px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.035);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.chart-summary strong {
  color: var(--text);
  font-family: var(--num-font);
  font-size: 11px;
}

.chart-summary .is-positive strong,
.chart-summary .is-positive {
  color: #22c55e;
}

.chart-summary .is-negative strong,
.chart-summary .is-negative {
  color: #fb7185;
}

.chart-x-label {
  fill: currentColor;
  opacity: .72;
  font-family: var(--num-font);
  font-size: 12px;
  font-weight: 650;
}

.chart-value-label {
  paint-order: stroke;
  stroke: rgba(6, 10, 17, .92);
  stroke-width: 5px;
  stroke-linejoin: round;
  font-family: var(--num-font);
  font-size: 11px;
  font-weight: 800;
  pointer-events: none;
}

.chart-last-badge {
  pointer-events: none;
}

.chart-last-badge text {
  font-family: var(--num-font);
  font-size: 13px;
  font-weight: 850;
}

.chart-point {
  cursor: pointer;
}

.chart-point-hit {
  fill: transparent;
  pointer-events: all;
}

.chart-point-dot {
  pointer-events: none;
  transition: r 120ms ease, stroke-opacity 120ms ease, stroke-width 120ms ease, filter 120ms ease;
}

.chart-point-ring {
  opacity: 0;
  pointer-events: none;
  transition: opacity 120ms ease;
}

.chart-point:hover .chart-point-dot {
  stroke: currentColor;
  stroke-width: 2.5px;
  stroke-opacity: .42;
  filter: drop-shadow(0 0 7px currentColor);
}

.chart-point:hover .chart-point-ring {
  opacity: .22;
}

.chart-tooltip {
  position: absolute;
  z-index: 12;
  max-width: min(250px, calc(100vw - 32px));
  padding: 8px 10px;
  border: 1px solid rgba(214, 169, 90, 0.36);
  border-radius: 10px;
  background: rgba(9, 13, 20, 0.96);
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.32);
  color: var(--text);
  font-family: var(--num-font);
  font-size: 11px;
  line-height: 1.35;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, calc(-100% - 10px));
  transition: opacity 120ms ease, transform 120ms ease;
  white-space: pre-line;
}

.chart-tooltip.show {
  opacity: 1;
}

.chart-tooltip.below {
  transform: translate(-50%, 12px);
}

.chart-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 300px;
  color: var(--muted);
  font-size: 13px;
  text-align: center;
}

.period {
  margin: 8px 0 10px;
  padding: 12px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.02);
}

.period-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 10px;
}

.period-title {
  min-width: 0;
  color: var(--text);
  font-size: 15px;
  font-weight: 700;
}

.period-state {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 24px;
  padding: 0 9px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.22);
  background: rgba(148, 163, 184, 0.1);
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
}

.period-state.is-soon {
  border-color: rgba(245, 158, 11, 0.45);
  background: rgba(245, 158, 11, 0.14);
  color: #facc15;
}

.period-state.is-active {
  border-color: rgba(34, 197, 94, 0.4);
  background: rgba(34, 197, 94, 0.14);
  color: #7cf4b1;
}

.period-state.is-done {
  border-color: rgba(239, 68, 68, 0.34);
  background: rgba(239, 68, 68, 0.12);
  color: #fca5a5;
}

.period-points {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.period-point {
  min-width: 0;
  padding: 9px 10px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  background: rgba(11, 15, 22, 0.2);
}

.period-point-label {
  display: block;
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
}

.period-point-value {
  display: block;
  color: var(--text);
  font-family: var(--num-font);
  font-size: 12px;
  line-height: 1.35;
  word-break: break-word;
}

.bar {
  position: relative;
  height: 6px;
  background: #232833;
  border-radius: 999px;
  overflow: hidden;
  margin-top: 10px;
}

.fill {
  position: absolute;
  inset: 0 auto 0 0;
  width: 0;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
}

body.light .bar {
  background: #e5ebf3;
}

.pct {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px 12px;
  font-size: 12px;
  margin-top: 8px;
}

.pct-kpi {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 9px;
  border-radius: 999px;
  border: 1px solid rgba(214, 169, 90, 0.28);
  background: rgba(214, 169, 90, 0.12);
  color: #f1d08e;
  font-family: var(--num-font);
  font-weight: 700;
}

.pct-left {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  min-width: 0;
  color: var(--text);
}

.pct-left-label {
  color: var(--muted);
}

body.light .period {
  border-color: #e2e8f0;
  background: #f8fafc;
}

body.light .period-point {
  border-color: #e2e8f0;
  background: #ffffff;
}

body.light .period-state {
  border-color: #d7dee8;
  background: #ffffff;
  color: #475569;
}

body.light .period-state.is-soon {
  border-color: #fcd34d;
  background: #fff7ed;
  color: #d97706;
}

body.light .period-state.is-active {
  border-color: #86efac;
  background: #ecfdf5;
  color: #16a34a;
}

body.light .period-state.is-done {
  border-color: #fca5a5;
  background: #fef2f2;
  color: #dc2626;
}

body.light .pct-kpi {
  border-color: #fdba74;
  background: #fff7ed;
  color: #b45309;
}

.kvs .kv {
  display: grid;
  grid-template-columns: minmax(140px, 44%) minmax(0, 56%);
  align-items: start;
  column-gap: 12px;
  padding: 6px 0;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.08);
  font-size: 13px;
}

.kvs .kv > span:first-child {
  min-width: 0;
}

.kvs .kv > span:last-child {
  min-width: 0;
  text-align: right;
  justify-self: end;
}

.kvs .kv:last-child {
  border-bottom: 0;
}

body.light .kvs .kv {
  border-bottom-color: #e2e8f0;
}

body.light .calc-summary-item,
body.light .calc-main-item,
body.light .calc-advanced {
  background: rgba(255, 255, 255, 0.85);
  border-color: #e2e8f0;
}

body.light .calc-field input,
body.light .calc-field select {
  background: #ffffff;
  color: #0f172a;
  border-color: #d8e1ee;
}

body.light .calc-formula {
  background: rgba(180, 121, 38, 0.08);
  border-color: rgba(180, 121, 38, 0.2);
}

body.light .analytics-kpis div,
body.light .chart-box {
  background: rgba(255, 255, 255, 0.85);
  border-color: #e2e8f0;
}

.amt {
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  font-family: var(--num-font);
  font-size: 14px;
  line-height: 1.25;
  white-space: nowrap;
}

#newUserCondition1,
#newUserCondition2,
#oldUserCondition1,
#oldUserCondition2,
#limitCountry,
#publishTime {
  font-family: inherit;
  font-variant-numeric: normal;
  font-size: 13px;
  font-weight: 600;
  white-space: normal;
  overflow-wrap: anywhere;
}

.soc {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.soc a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 999px;
  border: 1px solid var(--border);
  color: var(--text);
  background: #141821;
  transition: transform 0.15s ease, border-color 0.15s ease;
}

body.light .soc a {
  background: #ffffff;
  color: #0f172a;
  border-color: #e2e8f0;
}

.soc a:hover {
  text-decoration: none;
  transform: translateY(-1px);
}

hr {
  border-top: 1px solid var(--border);
}

.site-navbar {
  background: var(--nav-bg);
  border-bottom: none;
  box-shadow: none;
  padding-top: 0.45rem !important;
  padding-bottom: 0.45rem !important;
}

.site-navbar .navbar-brand {
  font-weight: 700;
  letter-spacing: 0.18em;
  font-size: 14px;
  text-transform: uppercase;
  color: #f9fafb !important;
}

.site-navbar .navbar-brand img {
  border-radius: 999px;
  box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.7);
}

.site-navbar .nav-link {
  position: relative;
  font-weight: 500;
  font-size: 14px;
  padding: 0.3rem 0.9rem;
  color: var(--nav-link-muted) !important;
  transition: color 0.15s ease, opacity 0.15s ease, transform 0.15s ease;
}

.site-navbar .nav-link:hover {
  color: var(--nav-link) !important;
  opacity: 1;
  text-decoration: none;
  transform: translateY(-1px);
}

.site-navbar .nav-link.active {
  color: var(--nav-link) !important;
}

.site-navbar .nav-link::after {
  content: "";
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: -0.45rem;
  width: 0;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, #fbbf24, #f97316);
  opacity: 0;
  transition: width 0.15s ease, opacity 0.15s ease;
}

.site-navbar .nav-link.active::after {
  width: 70%;
  opacity: 1;
}

.site-navbar .badge-primary {
  background: var(--accent);
  color: #1b2028;
  font-size: 10px;
  padding: 0.15rem 0.45rem;
  border-radius: 999px;
  vertical-align: middle;
}

.site-navbar .btn-outline-light,
.site-navbar .btn-light {
  border-radius: 999px;
  padding: 0.3rem 0.95rem;
  font-size: 0.8rem;
  border-color: var(--nav-pill-border);
  color: var(--nav-link) !important;
  background: transparent;
  transition: background 0.15s ease, color 0.15s ease,
    border-color 0.15s ease, box-shadow 0.15s ease;
}

.site-navbar .btn-outline-light:hover,
.site-navbar .btn-light:hover {
  background: #f9fafb;
  color: #020617 !important;
  border-color: transparent;
  box-shadow: none;
}

.site-footer {
  padding: 18px 14px 28px;
  text-align: center;
  color: var(--text);
  border-top: 1px solid var(--border);
  background: var(--bg);
}

.site-footer__meta {
  display: grid;
  gap: 4px;
  font-size: 13px;
  color: var(--muted);
}

.site-footer__brand {
  color: var(--text);
  font-weight: 700;
  letter-spacing: 0.04em;
}

.site-footer__social {
  margin-top: 10px;
  display: flex;
  justify-content: center;
  gap: 14px;
}

.site-footer__social a {
  color: var(--text);
  font-size: 20px;
  transition: color 0.15s ease, transform 0.15s ease;
}

.site-footer__social a:hover {
  color: var(--accent);
  transform: translateY(-1px);
}

@media (max-width: 992px) {
  .grid {
    grid-template-columns: 1fr;
  }

  .stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .lp-hero {
    padding: 14px;
  }

  .lp-title {
    font-size: 20px;
  }

  .lp-hero-actions {
    width: 100%;
  }

  .lp-hero-actions .btn-slim {
    flex: 1;
    justify-content: center;
  }

  .stats {
    grid-template-columns: 1fr;
  }

  .period-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .period-points {
    grid-template-columns: 1fr;
  }

  .calc-summary,
  .calc-main,
  .calc-grid,
  .analytics-grid {
    grid-template-columns: 1fr;
  }

  .analytics-head {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .analytics-kpis {
    width: 100%;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
  }

  .analytics-kpis div {
    min-width: 0;
    padding: 7px 8px;
  }

  .analytics-kpis strong {
    font-size: 12px;
  }

  .chart-box {
    padding: 9px;
  }

  .chart-canvas {
    min-height: 276px;
  }

  .chart-canvas svg {
    height: 230px;
  }

  .chart-summary {
    grid-template-columns: 1fr;
    gap: 4px;
    font-size: 10px;
  }

  .chart-summary span {
    padding: 5px 6px;
  }

  .chart-summary strong {
    font-size: 10px;
  }

  .chart-x-label {
    font-size: 11px;
  }

  .chart-value-label {
    font-size: 10px;
    stroke-width: 4px;
  }

  .calc-summary-item,
  .calc-main-item {
    padding: 8px;
  }

  .calc-summary-item strong,
  .calc-main-item strong {
    font-size: 14px;
  }
}
