:root {
  --bg: #f4f1eb;
  --bg-soft: #ebe6dc;
  --surface: rgba(255, 255, 255, 0.76);
  --surface-strong: #ffffff;
  --text: #17141f;
  --muted: #665f73;
  --line: rgba(30, 24, 42, 0.12);
  --accent: #5d43ff;
  --accent-2: #16a37a;
  --accent-soft: #ece9ff;
  --warning: #fff4d8;
  --shadow: 0 24px 70px rgba(42, 35, 67, 0.12);
  --radius: 28px;
  --max: 1160px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  background:
    radial-gradient(circle at top left, rgba(93, 67, 255, 0.16), transparent 32rem),
    radial-gradient(circle at top right, rgba(22, 163, 122, 0.15), transparent 30rem),
    linear-gradient(180deg, var(--bg), #fbfaf7 45%, var(--bg-soft));
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(23, 20, 31, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(23, 20, 31, 0.035) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(to bottom, #000, transparent 78%);
}

a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }

.site-header {
  position: sticky;
  top: 14px;
  z-index: 20;
  width: min(var(--max), calc(100% - 28px));
  margin: 14px auto 0;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 18px;
  align-items: center;
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(20px);
  box-shadow: 0 14px 50px rgba(43, 36, 68, 0.12);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 950;
  letter-spacing: -0.03em;
}
.brand-mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  color: #fff;
  background: linear-gradient(135deg, var(--accent), #111827);
  border-radius: 50%;
  box-shadow: 0 12px 26px rgba(93, 67, 255, 0.22);
}
.desktop-nav {
  display: flex;
  justify-content: center;
  gap: 22px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
}
.desktop-nav a:hover, .site-footer a:hover, .card a:hover { color: var(--accent); }
.header-action, .button {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-weight: 900;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}
.header-action, .button.primary {
  color: #fff;
  background: #17141f;
  box-shadow: 0 14px 34px rgba(23, 20, 31, 0.18);
}
.button.secondary {
  color: var(--text);
  background: rgba(255, 255, 255, 0.72);
  border-color: var(--line);
}
.header-action:hover, .button:hover { transform: translateY(-1px); }

.section-shell {
  width: min(var(--max), calc(100% - 28px));
  margin: 0 auto;
  padding: 88px 0;
  scroll-margin-top: 96px;
}
.hero {
  min-height: calc(100vh - 70px);
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.78fr);
  gap: 42px;
  align-items: center;
  padding-top: 92px;
}
.eyebrow {
  margin: 0 0 14px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 950;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
h1, h2, h3, p { margin-top: 0; }
h1 {
  max-width: 900px;
  margin-bottom: 22px;
  font-size: clamp(42px, 7vw, 82px);
  line-height: 0.95;
  letter-spacing: -0.06em;
}
h2 {
  margin-bottom: 16px;
  font-size: clamp(30px, 4.2vw, 56px);
  line-height: 1;
  letter-spacing: -0.05em;
}
h3 {
  margin-bottom: 10px;
  font-size: 20px;
  line-height: 1.15;
  letter-spacing: -0.025em;
}
p { color: var(--muted); line-height: 1.65; }
.hero-lead {
  max-width: 720px;
  font-size: clamp(18px, 2vw, 23px);
  color: #3a3347;
}
.hero-bullets, .check-list, .fit-card ul {
  margin: 0;
  padding: 0;
  list-style: none;
}
.hero-bullets {
  display: grid;
  gap: 10px;
  margin: 24px 0;
  color: #2a2535;
  font-weight: 760;
}
.hero-bullets li, .check-list li, .fit-card li {
  position: relative;
  padding-left: 28px;
  line-height: 1.5;
}
.hero-bullets li::before, .check-list li::before, .fit-card.yes li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--accent-2);
  font-weight: 950;
}
.fit-card.no li::before {
  content: "—";
  position: absolute;
  left: 0;
  color: #b45309;
  font-weight: 950;
}
.hero-actions, .inline-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin-top: 26px;
}
.microcopy {
  margin: 14px 0 0;
  font-size: 14px;
  color: #766f80;
}
.system-card {
  display: grid;
  gap: 12px;
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.76);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255,255,255,0.82), rgba(255,255,255,0.54));
  box-shadow: var(--shadow);
}
.flow-node {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(255,255,255,0.72);
  font-weight: 950;
}
.flow-node.accent { color: #fff; background: var(--accent); }
.flow-node.dark { color: #fff; background: #17141f; }
.flow-arrow { color: var(--muted); font-size: 22px; text-align: center; }

.section-head {
  max-width: 790px;
  margin-bottom: 34px;
}
.section-head p, .section-lead { font-size: 18px; }
.card-grid {
  display: grid;
  gap: 18px;
}
.card-grid.problems, .card-grid.scenarios { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.card, .stack-item, .fit-card, .included-card, .quiz-section, .final-cta, .highlight-section {
  border: 1px solid rgba(255, 255, 255, 0.74);
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: 0 18px 55px rgba(42, 35, 67, 0.08);
}
.card {
  min-height: 190px;
  padding: 24px;
}
.card p { margin-bottom: 0; }
.card a { color: var(--accent); font-weight: 900; }
.scenarios .card { display: flex; flex-direction: column; }
.scenarios .card a { margin-top: auto; }

.split-section {
  display: grid;
  grid-template-columns: minmax(0, 0.7fr) minmax(0, 1fr);
  gap: 34px;
  align-items: start;
}
.sticky-copy { position: sticky; top: 110px; }
.text-link { color: var(--accent); font-weight: 950; }
.stack-list { display: grid; gap: 14px; }
.stack-item {
  display: grid;
  grid-template-columns: 54px 1fr;
  gap: 16px;
  padding: 22px;
}
.stack-item span {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  color: var(--accent);
  border-radius: 50%;
  background: var(--accent-soft);
  font-weight: 950;
}
.stack-item p { margin-bottom: 0; }

.package-card {
  display: grid;
  grid-template-columns: 0.82fr 1.18fr;
  gap: 24px;
  padding: 28px;
  border-radius: calc(var(--radius) + 10px);
  background: linear-gradient(135deg, #17141f, #3d2fc4 62%, #16a37a);
  color: #fff;
  box-shadow: var(--shadow);
}
.package-card p, .package-card .eyebrow { color: rgba(255,255,255,0.82); }
.package-card h2 { color: #fff; }
.included-card {
  padding: 26px;
  background: rgba(255,255,255,0.94);
  color: var(--text);
}
.included-card p { color: var(--muted); }
.check-list { display: grid; gap: 10px; }
.boundary-note, .trust-note, .stub-note {
  padding: 14px 16px;
  border: 1px solid rgba(180, 83, 9, 0.18);
  border-radius: 18px;
  background: var(--warning);
  color: #6b4a16;
  font-weight: 780;
}
.trust-note { display: inline-block; margin-top: 14px; }
.center-action { display: flex; justify-content: center; margin-top: 28px; }

.highlight-section {
  display: grid;
  grid-template-columns: 1fr 0.8fr;
  gap: 26px;
  padding: 34px;
  align-items: center;
}
.columns { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.factory-flow {
  display: grid;
  gap: 12px;
}
.factory-flow span {
  display: block;
  padding: 16px 18px;
  border-radius: 18px;
  background: #17141f;
  color: #fff;
  font-weight: 900;
}
.factory-flow span:nth-child(even) { background: var(--accent); }

.timeline {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.timeline li {
  display: grid;
  grid-template-columns: 46px 1fr;
  gap: 14px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(255,255,255,0.64);
}
.timeline span {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  color: #fff;
  background: #17141f;
  font-weight: 950;
}
.timeline p { margin-bottom: 0; }
.fit-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}
.fit-card { padding: 26px; }
.fit-card ul { display: grid; gap: 12px; }
.fit-card.yes { background: rgba(239, 255, 248, 0.82); }
.fit-card.no { background: rgba(255, 248, 234, 0.86); }

.quiz-section {
  display: grid;
  grid-template-columns: 0.7fr 1.3fr;
  gap: 30px;
  padding: 34px;
}
.lead-form { min-width: 0; }
.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
label, fieldset { min-width: 0; }
.lead-form label span, legend {
  display: block;
  margin-bottom: 8px;
  color: #302a3c;
  font-size: 14px;
  font-weight: 900;
}
input, select, textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 13px 14px;
  color: var(--text);
  background: rgba(255,255,255,0.8);
  outline: none;
}
input:focus, select:focus, textarea:focus {
  border-color: rgba(93, 67, 255, 0.55);
  box-shadow: 0 0 0 4px rgba(93, 67, 255, 0.1);
}
textarea { resize: vertical; }
fieldset {
  grid-column: 1 / -1;
  margin: 0;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 18px;
}
.checkbox-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}
.checkbox-list label, .consent {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  color: var(--muted);
  font-weight: 760;
}
.checkbox-list input, .consent input { width: auto; margin-top: 4px; }
.full-width { grid-column: 1 / -1; }
.consent { margin: 16px 0; }
.form-note { margin: 14px 0 0; font-weight: 900; }
.form-note.success { color: var(--accent-2); }
.form-note.error { color: #b42318; }

.final-cta {
  padding: 46px 28px;
  text-align: center;
  background: #17141f;
  color: #fff;
}
.final-cta h2 { color: #fff; }
.final-cta p, .final-cta .eyebrow { color: rgba(255,255,255,0.78); }
.centered { justify-content: center; }

.site-footer {
  width: min(var(--max), calc(100% - 28px));
  margin: 0 auto;
  padding: 38px 0 48px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 22px;
  align-items: center;
  color: var(--muted);
  border-top: 1px solid var(--line);
}
.site-footer nav { display: flex; gap: 16px; font-weight: 820; }
.site-footer p { margin: 0; font-size: 14px; }

.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}
.reveal.is-visible { opacity: 1; transform: none; }

@media (max-width: 980px) {
  .desktop-nav { display: none; }
  .site-header { grid-template-columns: auto 1fr; }
  .header-action { justify-self: end; }
  .hero, .split-section, .package-card, .highlight-section, .quiz-section, .site-footer { grid-template-columns: 1fr; }
  .hero { min-height: auto; padding-top: 74px; }
  .sticky-copy { position: static; }
  .card-grid.problems, .card-grid.scenarios, .timeline { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 680px) {
  .site-header { width: calc(100% - 18px); top: 8px; margin-top: 8px; border-radius: 24px; }
  .brand-mark { width: 34px; height: 34px; }
  .brand { font-size: 15px; }
  .header-action { min-height: 40px; padding: 0 12px; font-size: 13px; }
  .section-shell { width: calc(100% - 18px); padding: 54px 0; scroll-margin-top: 76px; }
  .hero { padding-top: 48px; gap: 26px; }
  h1 { font-size: clamp(38px, 13vw, 54px); }
  h2 { font-size: clamp(29px, 10vw, 40px); }
  .hero-actions, .inline-actions { align-items: stretch; flex-direction: column; }
  .button { width: 100%; text-align: center; }
  .system-card, .package-card, .highlight-section, .quiz-section { padding: 18px; border-radius: 24px; }
  .card-grid.problems, .card-grid.scenarios, .timeline, .fit-grid, .form-grid, .columns, .checkbox-list { grid-template-columns: 1fr; }
  .card { min-height: 0; padding: 20px; }
  .stack-item, .timeline li { grid-template-columns: 1fr; }
  fieldset, .full-width { grid-column: auto; }
  .site-footer { gap: 16px; }
  .site-footer nav { flex-wrap: wrap; }
}

.metric-panel {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.76);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255,255,255,0.82), rgba(255,255,255,0.54));
  box-shadow: var(--shadow);
}
.metric-card {
  min-height: 146px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(255,255,255,0.76);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.metric-card strong {
  display: block;
  color: #17141f;
  font-size: clamp(28px, 3.4vw, 44px);
  line-height: 0.95;
  letter-spacing: -0.055em;
}
.metric-card p { margin: 14px 0 0; font-weight: 820; }
.metric-card.revenue {
  grid-column: 1 / -1;
  color: #fff;
  background: radial-gradient(circle at top right, rgba(255,255,255,0.26), transparent 45%), linear-gradient(135deg, #17141f, #5d43ff 68%, #16a37a);
}
.metric-card.revenue strong, .metric-card.revenue p { color: #fff; }
.metric-card.wide { grid-column: 1 / -1; }
.ready-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: stretch; }
.solution-card { min-height: 0; display: flex; flex-direction: column; gap: 14px; }
.solution-card h4 { margin: 6px 0 0; font-size: 16px; letter-spacing: -0.02em; }
.solution-card .button { width: fit-content; margin-top: auto; }
.factory-flow.compact { margin: 8px 0 6px; }
.factory-flow.compact span { padding: 13px 15px; }
.mini-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 22px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}
.mini-form .button, .mini-form .form-note { grid-column: 1 / -1; }
.calculator-section .section-head { max-width: 850px; }
.calculator-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.72fr);
  gap: 22px;
  padding: 28px;
  border: 1px solid rgba(255, 255, 255, 0.74);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}
.calc-controls { display: grid; gap: 18px; }
.calc-controls label > span {
  display: block;
  margin-bottom: 10px;
  color: #302a3c;
  font-size: 14px;
  font-weight: 950;
}
.calc-controls input[type="range"] { padding: 0; accent-color: auto; }
.calc-controls label > strong { display: block; margin-top: 8px; font-size: 22px; letter-spacing: -0.03em; }
.tariff-options { display: grid; gap: 10px; }
.tariff-options label {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 4px 10px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255,255,255,0.64);
}
.tariff-options input { width: auto; margin-top: 4px; }
.tariff-options b { display: block; }
.tariff-options small { grid-column: 2; color: var(--muted); line-height: 1.45; }
.calc-results { display: grid; gap: 12px; }
.calc-results article {
  padding: 20px;
  border-radius: 22px;
  background: #17141f;
  color: #fff;
}
.calc-results article:nth-child(even) { background: var(--accent); }
.calc-results span { display: block; margin-bottom: 8px; color: rgba(255,255,255,0.76); font-weight: 820; }
.calc-results strong { display: block; font-size: clamp(26px, 3.2vw, 40px); line-height: 1; letter-spacing: -0.05em; }

@media (max-width: 980px) {
  .metric-panel, .calculator-card { grid-template-columns: 1fr; }
  .ready-grid { grid-template-columns: 1fr; }
}

@media (max-width: 680px) {
  .metric-panel, .calculator-card { padding: 18px; border-radius: 24px; }
  .metric-card { min-height: 118px; }
  .mini-form { grid-template-columns: 1fr; }
  .solution-card .button { width: 100%; }
}

/* Revision 2: restore canonical brain / AI operations mood */
.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  width: min(calc(var(--max) + 56px), calc(100% - 28px));
  padding: 110px 28px 70px;
  border-radius: 42px;
  margin-top: 28px;
  background:
    linear-gradient(90deg, rgba(8, 7, 18, 0.94) 0%, rgba(20, 15, 44, 0.84) 46%, rgba(20, 15, 44, 0.42) 100%),
    url("assets/ai-living-brain-bg.png") center right / cover no-repeat;
  box-shadow: 0 32px 100px rgba(23, 20, 31, 0.28);
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(circle at 72% 36%, rgba(93, 67, 255, 0.34), transparent 32%),
    radial-gradient(circle at 88% 68%, rgba(22, 163, 122, 0.26), transparent 28%);
}
.hero .eyebrow { color: #b9adff; }
.hero h1,
.hero .hero-lead,
.hero .hero-bullets { color: #fff; }
.hero .hero-bullets li { color: rgba(255,255,255,0.9); }
.hero .button.secondary { color: #fff; background: rgba(255,255,255,0.12); border-color: rgba(255,255,255,0.24); backdrop-filter: blur(12px); }
.metric-panel {
  background: linear-gradient(180deg, rgba(255,255,255,0.16), rgba(255,255,255,0.08));
  border-color: rgba(255,255,255,0.24);
  backdrop-filter: blur(18px);
}
.metric-card { background: rgba(255,255,255,0.9); }
.accent-mark {
  padding: 0.08em 0.34em;
  color: #fff;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  border-radius: 0.45em;
}
.ready-grid { align-items: stretch; }
.solution-card { min-height: 100%; }
.solution-card p + p { margin-top: -4px; }
.calc-choice-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(260px, 0.78fr);
  gap: 14px;
  align-items: stretch;
}
.range-label span,
.calc-controls label > span,
.calc-controls legend {
  font-size: 17px;
}
.calc-controls input[type="range"] {
  height: 34px;
  cursor: pointer;
}
.calc-controls input[type="range"]::-webkit-slider-runnable-track {
  height: 12px;
  border-radius: 999px;
  background: #ded7ea;
}
.calc-controls input[type="range"]::-webkit-slider-thumb {
  width: 28px;
  height: 28px;
  margin-top: -8px;
}
.calc-controls input[type="range"]::-moz-range-track {
  height: 12px;
  border-radius: 999px;
  background: #ded7ea;
}
.calc-controls input[type="range"]::-moz-range-thumb {
  width: 28px;
  height: 28px;
  border: 0;
}
.addon-options { display: grid; gap: 10px; }
.addon-options label {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255,255,255,0.64);
}
.addon-options input[type="checkbox"] {
  width: 24px;
  height: 24px;
  accent-color: var(--accent);
}
.addon-options b,
.addon-options small { display: block; }
.addon-options small { margin-top: 4px; color: var(--muted); line-height: 1.4; }
.quiz-section { align-items: center; }
.lead-form .button { width: fit-content; }
@media (max-width: 980px) {
  .hero { width: min(var(--max), calc(100% - 28px)); padding: 82px 24px 48px; }
  .calc-choice-grid { grid-template-columns: 1fr; }
}
@media (max-width: 680px) {
  .hero { width: calc(100% - 18px); border-radius: 28px; padding: 58px 18px 34px; }
  .lead-form .button { width: 100%; }
}

/* Revision 3 hotfix: global brain background + light first block + neutral sliders */
body {
  background:
    linear-gradient(180deg, rgba(244, 241, 235, 0.88), rgba(251, 250, 247, 0.9) 42%, rgba(235, 230, 220, 0.92)),
    url("assets/ai-living-brain-bg.png") center top / cover fixed no-repeat;
}
.hero.light-hero {
  color: var(--text);
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.68);
  backdrop-filter: blur(16px);
  box-shadow: 0 32px 100px rgba(42, 35, 67, 0.16);
}
.hero.light-hero::before {
  background:
    radial-gradient(circle at 78% 28%, rgba(93, 67, 255, 0.14), transparent 30%),
    radial-gradient(circle at 88% 74%, rgba(22, 163, 122, 0.12), transparent 28%);
}
.hero.light-hero .eyebrow { color: var(--accent); }
.hero.light-hero h1,
.hero.light-hero .hero-lead,
.hero.light-hero .hero-bullets { color: var(--text); }
.hero.light-hero .hero-bullets li { color: var(--muted); }
.hero.light-hero .button.secondary {
  color: var(--text);
  background: rgba(255,255,255,0.72);
  border-color: var(--line);
  backdrop-filter: none;
}
.hero.light-hero .metric-panel {
  background: rgba(255,255,255,0.56);
  border-color: rgba(255,255,255,0.74);
}
.link-mark { text-decoration: none; }
.link-mark:hover { filter: brightness(0.96); transform: translateY(-1px); }
.calc-controls input[type="range"]::-webkit-slider-runnable-track,
.compact-calc input[type="range"]::-webkit-slider-runnable-track {
  height: 12px;
  border-radius: 999px;
  background: #ded7ea;
  border: 1px solid rgba(30, 24, 42, 0.1);
}
.calc-controls input[type="range"]::-webkit-slider-thumb,
.compact-calc input[type="range"]::-webkit-slider-thumb {
  width: 28px;
  height: 28px;
  margin-top: -9px;
  background: var(--surface-strong);
  border: 4px solid var(--accent);
  box-shadow: 0 8px 18px rgba(93, 67, 255, 0.22);
}
.calc-controls input[type="range"]::-moz-range-track,
.compact-calc input[type="range"]::-moz-range-track {
  height: 12px;
  border-radius: 999px;
  background: #ded7ea;
  border: 1px solid rgba(30, 24, 42, 0.1);
}
.calc-controls input[type="range"]::-moz-range-thumb,
.compact-calc input[type="range"]::-moz-range-thumb {
  width: 28px;
  height: 28px;
  background: var(--surface-strong);
  border: 4px solid var(--accent);
  box-shadow: 0 8px 18px rgba(93, 67, 255, 0.22);
}
.calc-controls input[type="range"]::-moz-range-progress,
.compact-calc input[type="range"]::-moz-range-progress {
  height: 12px;
  border-radius: 999px;
  background: #ded7ea;
}

/* Revision 3 item 5: compact clean calculator per Danil reference */
.calculator-card.compact-calc {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  max-width: 760px;
  margin: 0 auto;
  background: rgba(255, 255, 255, 0.84);
}
.compact-calc input[type="range"] {
  width: 100%;
  height: 42px;
  padding: 0;
  cursor: pointer;
  accent-color: auto;
  -webkit-appearance: none;
  appearance: none;
  background: transparent;
}
.calc-topline {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(180px, 0.65fr);
  gap: 14px;
  align-items: stretch;
}
.calc-main-metric,
.calc-side-metric {
  display: grid;
  align-content: center;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.72);
}
.calc-main-metric strong,
.calc-side-metric strong,
.automation-range strong {
  display: block;
  margin: 0 0 10px;
  font-size: clamp(26px, 3vw, 36px);
  line-height: 1;
  letter-spacing: -0.05em;
}
.calc-side-metric span { color: var(--muted); font-weight: 900; }
.tariff-fieldset {
  padding: 0;
  border: 0;
}
.tariff-options.compact {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.tariff-options.compact label {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 62px;
  background: rgba(255,255,255,0.72);
  transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}
.tariff-options.compact label:has(input:checked) {
  border-color: rgba(93, 67, 255, 0.56);
  background: #fff;
  box-shadow: 0 12px 28px rgba(93, 67, 255, 0.12);
}
.tariff-options.compact input { flex: 0 0 auto; margin: 0; }
.automation-range {
  display: grid;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(255,255,255,0.72);
}
.compact-calc .calc-results {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.compact-calc .calc-results article,
.compact-calc .calc-results article:nth-child(even) {
  background: rgba(255,255,255,0.78);
  color: var(--text);
  border: 1px solid var(--line);
}
.compact-calc .calc-results span { color: var(--muted); }
.compact-calc .calc-results strong { font-size: clamp(24px, 2.6vw, 34px); }

@media (max-width: 760px) {
  .calc-topline,
  .tariff-options.compact,
  .compact-calc .calc-results { grid-template-columns: 1fr; }
}


/* Danil revision: design system polish + calculator add-ons */
.calculator-card.compact-calc{max-width:1080px;grid-template-columns:minmax(0,1.05fr) minmax(280px,0.95fr);align-items:start;}
.calc-choice-grid{display:grid;grid-template-columns:minmax(0,0.92fr) minmax(240px,0.78fr);gap:14px;align-items:stretch;}
.tariff-options.compact{grid-template-columns:1fr;}
.addon-options{display:grid;gap:10px;}
.addon-options label{display:grid;grid-template-columns:1fr auto;gap:12px;align-items:center;padding:14px;border:1px solid var(--line);border-radius:18px;background:rgba(255,255,255,.64);}
.addon-options input[type="checkbox"]{width:24px;height:24px;accent-color:var(--accent);}
.calc-results{grid-template-columns:repeat(2,minmax(0,1fr));}
.compact-calc .calc-results article:nth-child(3){grid-column:1/-1;}
.final-cta{display:none;}

@media (max-width: 980px){.calculator-card.compact-calc,.calc-choice-grid{grid-template-columns:1fr;}}

/* 2026-05-03 UX/UI-only polish pass: hierarchy, rhythm, premium control-room finish */
:root {
  --card-shadow: 0 18px 48px rgba(30, 24, 42, 0.075);
  --card-shadow-strong: 0 28px 78px rgba(30, 24, 42, 0.13);
  --section-gap: 78px;
}

.site-header {
  top: 10px;
  min-height: 58px;
  padding: 8px 10px;
  border-color: rgba(255, 255, 255, 0.82);
  background: rgba(255, 255, 255, 0.79);
  box-shadow: 0 12px 38px rgba(43, 36, 68, 0.095);
}
.desktop-nav { gap: 18px; font-size: 13px; }
.header-action { min-height: 42px; padding: 0 16px; }

.button.primary,
.header-action {
  background: linear-gradient(135deg, #17141f, #3b2cf1 72%, #16a37a);
  box-shadow: 0 18px 38px rgba(59, 44, 241, 0.22), 0 8px 18px rgba(23, 20, 31, 0.14);
}
.button.secondary {
  color: #383245;
  background: rgba(255,255,255,0.58);
  box-shadow: none;
}

.section-shell { padding: var(--section-gap) 0; }
.section-head { margin-bottom: 28px; }
.section-head p, .section-lead { max-width: 700px; }

.hero.light-hero {
  min-height: auto;
  grid-template-columns: minmax(0, 1.08fr) minmax(330px, 0.72fr);
  gap: 36px;
  padding: 82px 30px 58px;
  margin-top: 22px;
  border-radius: 38px;
  background:
    linear-gradient(115deg, rgba(255,255,255,0.92) 0%, rgba(255,255,255,0.78) 48%, rgba(255,255,255,0.48) 100%),
    radial-gradient(circle at 86% 20%, rgba(93, 67, 255, 0.18), transparent 34%),
    rgba(255,255,255,0.72);
  box-shadow: 0 30px 88px rgba(42, 35, 67, 0.18);
}
.hero.light-hero h1 {
  max-width: 780px;
  margin-bottom: 18px;
  color: #110f18;
  font-size: clamp(48px, 7.2vw, 88px);
  letter-spacing: -0.07em;
}
.hero.light-hero .hero-lead {
  max-width: 650px;
  color: #312b3c;
  font-weight: 720;
}
.hero-bullets { gap: 8px; margin: 20px 0 0; }
.hero-actions { gap: 14px; margin-top: 24px; }
.hero-actions .button.primary { min-height: 52px; padding: 0 24px; }
.hero-actions .button.secondary { min-height: 48px; padding: 0 20px; opacity: 0.88; }

.hero.light-hero .metric-panel {
  gap: 12px;
  padding: 18px;
  background: rgba(255,255,255,0.66);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.9), 0 20px 56px rgba(42, 35, 67, 0.11);
}
.metric-card {
  min-height: 128px;
  padding: 18px;
  border-color: rgba(30, 24, 42, 0.09);
  box-shadow: 0 10px 26px rgba(42, 35, 67, 0.055);
}
.metric-card strong { font-size: clamp(31px, 3.55vw, 48px); }
.metric-card p { margin-top: 10px; font-size: 13px; font-weight: 680; line-height: 1.45; }

#problem {
  position: relative;
  padding-top: 72px;
}
#problem .section-head h2 { max-width: 720px; }
.card-grid.problems { gap: 14px; }
.problems .card {
  min-height: 170px;
  padding: 22px;
  border-color: rgba(180, 83, 9, 0.16);
  background: linear-gradient(180deg, rgba(255,255,255,0.82), rgba(255,248,234,0.58));
  box-shadow: var(--card-shadow);
}
.problems .card h3 { color: #251b13; }

#solution.split-section {
  margin-top: 8px;
  padding: 48px 34px;
  border: 1px solid rgba(255,255,255,0.72);
  border-radius: 36px;
  background: linear-gradient(135deg, rgba(255,255,255,0.80), rgba(236,233,255,0.54));
  box-shadow: var(--card-shadow-strong);
}
.stack-list { gap: 12px; }
.stack-item {
  padding: 20px;
  border-color: rgba(93, 67, 255, 0.13);
  background: rgba(255,255,255,0.74);
  box-shadow: 0 12px 32px rgba(42, 35, 67, 0.06);
}
.stack-item span { background: #fff; box-shadow: inset 0 0 0 1px rgba(93,67,255,0.16); }

.card, .included-card, .quiz-section, .calculator-card, .timeline li {
  border-color: rgba(255,255,255,0.76);
  box-shadow: var(--card-shadow);
}
.package-card {
  gap: 28px;
  padding: 34px;
  box-shadow: var(--card-shadow-strong);
}
.package-card h2 { font-size: clamp(34px, 4.6vw, 58px); }
.included-card { padding: 28px; }
.mini-form { margin-top: 20px; }

.ready-grid { gap: 22px; }
.solution-card {
  padding: 26px;
  border-color: rgba(93,67,255,0.12);
  background: linear-gradient(180deg, rgba(255,255,255,0.83), rgba(255,255,255,0.64));
}
.solution-card h3 { font-size: 24px; }
.solution-card h4 {
  margin-top: 8px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.timeline {
  position: relative;
  gap: 18px;
}
.timeline li {
  position: relative;
  background: rgba(255,255,255,0.72);
}
.timeline span {
  background: linear-gradient(135deg, #17141f, var(--accent));
  box-shadow: 0 10px 22px rgba(93,67,255,0.18);
}

.calculator-card.compact-calc {
  padding: 30px;
  border-color: rgba(93,67,255,0.12);
  background:
    linear-gradient(135deg, rgba(255,255,255,0.88), rgba(245,243,255,0.78)),
    rgba(255,255,255,0.82);
  box-shadow: var(--card-shadow-strong);
}
.calc-main-metric,
.automation-range,
.tariff-options.compact label,
.addon-options label,
.compact-calc .calc-results article,
.compact-calc .calc-results article:nth-child(even) {
  background: rgba(255,255,255,0.82);
  border-color: rgba(30,24,42,0.095);
}
.calc-results { gap: 12px; }
.compact-calc .calc-results strong { letter-spacing: -0.055em; }
.compact-calc .calc-results article:nth-child(3) {
  background: linear-gradient(135deg, #17141f, #3b2cf1);
  color: #fff;
}
.compact-calc .calc-results article:nth-child(3) span { color: rgba(255,255,255,0.72); }

.quiz-section {
  background: linear-gradient(135deg, rgba(255,255,255,0.82), rgba(236,233,255,0.52));
}
.lead-form .button.primary { min-width: 190px; min-height: 50px; }
.site-footer {
  padding: 30px 0 40px;
  color: #777080;
}
.site-footer .brand-mark { width: 32px; height: 32px; }

@media (max-width: 980px) {
  :root { --section-gap: 64px; }
  .hero.light-hero { grid-template-columns: 1fr; padding: 74px 24px 44px; }
  #solution.split-section { padding: 34px 24px; }
  .card-grid.problems { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 680px) {
  :root { --section-gap: 50px; }
  .site-header {
    min-height: 52px;
    grid-template-columns: auto auto;
    gap: 10px;
  }
  .header-action { font-size: 12px; }
  .hero.light-hero {
    padding: 50px 18px 28px;
    border-radius: 28px;
  }
  .hero.light-hero h1 {
    margin-bottom: 14px;
    font-size: clamp(39px, 13vw, 52px);
    line-height: 0.98;
  }
  .hero-lead { font-size: 17px; }
  .hero-bullets li { padding-left: 24px; }
  .hero-actions { gap: 10px; }
  .metric-panel { grid-template-columns: 1fr; }
  .metric-card.revenue { grid-column: auto; }
  #solution.split-section, .package-card, .quiz-section, .calculator-card.compact-calc {
    padding: 20px;
    border-radius: 24px;
  }
  .card-grid.problems { grid-template-columns: 1fr; }
  .solution-card h3 { font-size: 21px; }
  .site-footer { align-items: start; }
}
