@font-face {
  font-family: "Inter";
  src: url("assets/fonts/InterVariable.woff2") format("woff2-variations");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --indigo: #4f46e5;
  --indigo-dark: #3730a3;
  --ink: #201c5c;
  --muted: #5b6472;
  --line: #e5e7eb;
  --soft: #f7f8fc;
  --white: #ffffff;
  --success: #16a34a;
  --radius: 8px;
  --shadow: 0 24px 70px rgba(17, 24, 39, 0.09);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family:
    "Inter",
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  color: var(--ink);
  background: var(--white);
  line-height: 1.6;
}

body.nav-open {
  overflow: hidden;
}

body.modal-open {
  overflow: hidden;
}

body.cookie-modal-open {
  overflow: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  padding: 0 5vw;
  background: rgba(255, 255, 255, 0.88);
  border-bottom: 1px solid rgba(229, 231, 235, 0.75);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 800;
  letter-spacing: 0;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  color: var(--white);
  background: var(--indigo);
  border-radius: var(--radius);
}

.site-nav {
  position: fixed;
  inset: 72px 0 auto 0;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: 1rem 5vw 1.5rem;
  background: var(--white);
  border-bottom: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.js .site-nav {
  display: none;
}

.js .nav-open .site-nav {
  display: flex;
}

.site-nav a {
  padding: 0.85rem 0;
  color: var(--muted);
  font-weight: 650;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--indigo);
}

.nav-cta {
  color: var(--indigo) !important;
}

.nav-toggle {
  display: none;
  gap: 5px;
  width: 42px;
  height: 42px;
  place-content: center;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
}

.js .nav-toggle {
  display: grid;
}

.nav-toggle span {
  width: 18px;
  height: 2px;
  background: var(--ink);
}

.hero {
  position: relative;
  min-height: calc(100vh - 72px);
  overflow: hidden;
  display: grid;
  align-items: center;
  padding: 4.5rem 5vw 5rem;
}

.hero-home {
  min-height: 86vh;
  background:
    linear-gradient(
      90deg,
      rgba(255, 255, 255, 0.96) 0%,
      rgba(255, 255, 255, 0.86) 45%,
      rgba(255, 255, 255, 0.62) 100%
    ),
    url("assets/hero-spine-software.webp") center right / cover no-repeat;
}

.hero-subpage {
  min-height: 68vh;
}

.hero-tailoring {
  min-height: 86vh;
  background:
    linear-gradient(
      90deg,
      rgba(255, 255, 255, 0.98) 0%,
      rgba(255, 255, 255, 0.94) 34%,
      rgba(255, 255, 255, 0.56) 66%,
      rgba(255, 255, 255, 0.18) 100%
    ),
    url("assets/hero-digitalni-krejcovstvi.webp") center right / cover no-repeat;
}

.hero-tailoring .hero-content {
  max-width: 980px;
}

.hero-tailoring .poly-canvas {
  background: rgba(255, 255, 255, 0.04);
  mask-image: linear-gradient(
    90deg,
    transparent 0%,
    rgba(0, 0, 0, 0.08) 34%,
    rgba(0, 0, 0, 0.45) 58%,
    rgba(0, 0, 0, 0.72) 100%
  );
  -webkit-mask-image: linear-gradient(
    90deg,
    transparent 0%,
    rgba(0, 0, 0, 0.08) 34%,
    rgba(0, 0, 0, 0.45) 58%,
    rgba(0, 0, 0, 0.72) 100%
  );
}

.poly-canvas {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, #ffffff 0%, #f7f8fc 100%);
}

.hero-home .poly-canvas {
  background: rgba(255, 255, 255, 0.04);
  mask-image: linear-gradient(
    90deg,
    transparent 0%,
    rgba(0, 0, 0, 0.12) 34%,
    rgba(0, 0, 0, 0.72) 56%,
    #000 100%
  );
  -webkit-mask-image: linear-gradient(
    90deg,
    transparent 0%,
    rgba(0, 0, 0, 0.12) 34%,
    rgba(0, 0, 0, 0.72) 56%,
    #000 100%
  );
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 760px;
}

.hero-subpage .hero-content {
  max-width: 1080px;
}

.hero-transition {
  position: relative;
  height: clamp(110px, 16vw, 210px);
  margin-top: calc(clamp(110px, 16vw, 210px) * -0.55);
  margin-bottom: -2px;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, var(--white) 72%);
  pointer-events: none;
  z-index: 3;
}

.hero-transition::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 3px;
  background: var(--white);
}

.transition-layer {
  position: absolute;
  inset: 0;
  display: block;
}

.layer-one {
  background: rgba(79, 70, 229, 0.08);
  clip-path: polygon(0 34%, 15% 42%, 31% 29%, 47% 48%, 63% 35%, 82% 43%, 100% 28%, 100% 100%, 0 100%);
}

.layer-two {
  background: rgba(79, 70, 229, 0.14);
  clip-path: polygon(0 48%, 14% 37%, 29% 45%, 44% 31%, 58% 44%, 73% 38%, 88% 47%, 100% 40%, 100% 100%, 0 100%);
}

.layer-three {
  background: rgba(55, 48, 163, 0.12);
  clip-path: polygon(0 64%, 12% 49%, 27% 56%, 43% 50%, 57% 66%, 72% 54%, 86% 61%, 100% 50%, 100% 100%, 0 100%);
}

.layer-four {
  background: var(--white);
  clip-path: polygon(0 78%, 15% 70%, 32% 76%, 48% 68%, 63% 80%, 78% 72%, 91% 77%, 100% 70%, 100% 100%, 0 100%);
}

.eyebrow {
  margin: 0 0 0.85rem;
  color: var(--indigo);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 1rem;
  max-width: 900px;
  font-size: clamp(1.65rem, 8vw, 5.6rem);
  line-height: 1.12;
  letter-spacing: 0;
}

.hero-subpage h1 {
  max-width: 1040px;
  font-size: clamp(1.65rem, 7vw, 4.7rem);
}

.hero-tailoring h1 {
  max-width: 980px;
}

h2 {
  margin-bottom: 1rem;
  font-size: clamp(1.7rem, 5vw, 3.4rem);
  line-height: 1.12;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 0.45rem;
  font-size: 1.05rem;
  line-height: 1.25;
}

.hero h2 {
  color: var(--indigo);
  font-size: clamp(1.4rem, 4vw, 2.5rem);
}

.lead {
  max-width: 650px;
  color: var(--muted);
  font-size: clamp(1.05rem, 2.4vw, 1.35rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  align-items: center;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.85rem 1.15rem;
  border: 1px solid transparent;
  border-radius: var(--radius);
  cursor: pointer;
  font-weight: 800;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    background 180ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button.primary {
  color: var(--white);
  background: var(--indigo);
  box-shadow: 0 16px 34px rgba(79, 70, 229, 0.24);
}

.button.primary:hover {
  background: var(--indigo-dark);
}

.button.ghost {
  color: var(--indigo);
  background: rgba(79, 70, 229, 0.07);
  border-color: rgba(79, 70, 229, 0.14);
}

.section {
  padding: 5rem 5vw;
}

.split-section {
  display: grid;
  gap: 2.5rem;
}

.split-section.problem-section {
  grid-template-columns: minmax(0, 1fr);
  justify-content: stretch;
  text-align: left;
}

.problem-section > div:first-child {
  text-align: left;
}

.problem-title span {
  display: block;
}

.problem-section .stack {
  width: min(760px, 100%);
  justify-self: center;
  text-align: left;
}

.stack {
  display: grid;
  gap: 1rem;
}

.problem-item,
.feature-card,
.calculator-panel,
.calculator-result,
.contact-form {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
}

.problem-item {
  display: grid;
  grid-template-columns: min-content minmax(0, 1fr);
  column-gap: 0.85rem;
  align-items: baseline;
  padding: 1.3rem;
}

.problem-item span {
  color: var(--indigo);
  font-weight: 800;
}

.problem-item p {
  grid-column: 2;
}

.problem-item p,
.feature-card p,
.story-step p,
.contact-copy p {
  color: var(--muted);
}

.value-band {
  background: var(--soft);
}

.section-heading {
  max-width: 760px;
  margin-bottom: 2rem;
}

.feature-grid {
  display: grid;
  gap: 1rem;
}

.feature-card {
  padding: 1.4rem;
  box-shadow: 0 14px 44px rgba(17, 24, 39, 0.04);
}

.capabilities-section {
  background: var(--soft);
}

.capability-grid {
  display: grid;
  gap: 1rem;
}

.capability-card {
  position: relative;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  grid-template-rows: auto auto 1fr;
  align-content: start;
  column-gap: 0.75rem;
  row-gap: 0.55rem;
  min-height: 100%;
  padding: 1.35rem;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 14px 44px rgba(17, 24, 39, 0.045);
}

.capability-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  background: var(--indigo);
}

.capability-icon {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  color: var(--indigo);
  border: 1px solid rgba(79, 70, 229, 0.16);
  border-radius: var(--radius);
  background: rgba(79, 70, 229, 0.08);
}

.capability-icon svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.capability-card h3 {
  display: flex;
  align-items: center;
  margin-bottom: 0;
  min-height: 42px;
  line-height: 1.12;
}

.capability-card strong {
  display: block;
  grid-column: 1 / -1;
  margin-top: -0.1rem;
  color: var(--ink);
  line-height: 1.25;
}

.capability-card p {
  grid-column: 1 / -1;
  margin-bottom: 0;
  color: var(--muted);
}

.module-tabs-section {
  background: var(--white);
}

.module-tabs {
  display: grid;
  gap: 1rem;
}

.tab-list {
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  padding: 0.2rem 0 0.8rem;
  scrollbar-width: thin;
}

.tab-button {
  flex: 0 0 132px;
  min-height: 42px;
  padding: 0.65rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  background: var(--white);
  cursor: pointer;
  font-weight: 800;
  text-align: center;
  transition: color 180ms ease, border-color 180ms ease, background 180ms ease, transform 180ms ease;
}

.tab-button:hover {
  color: var(--indigo);
  border-color: rgba(79, 70, 229, 0.32);
  transform: translateY(-1px);
}

.tab-button.is-active {
  color: var(--white);
  border-color: var(--indigo);
  background: var(--indigo);
  box-shadow: 0 14px 30px rgba(79, 70, 229, 0.22);
}

.tab-panels {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: linear-gradient(180deg, #FFFFFF 0%, #F7F8FC 100%);
  box-shadow: var(--shadow);
}

.tab-panel {
  display: grid;
  gap: 1.5rem;
  padding: 1.25rem;
  animation: tabFade 220ms ease;
}

.tab-panel[hidden] {
  display: none;
}

.js .tab-panel:not(.is-active),
.js .agent-panel:not(.is-active) {
  display: none;
}

.module-copy {
  display: grid;
  align-content: center;
}

.module-copy h3 {
  font-size: clamp(1.6rem, 5vw, 3rem);
}

.module-copy p {
  max-width: 620px;
  color: var(--muted);
  font-size: 1.02rem;
}

.module-preview {
  position: relative;
  min-height: 280px;
  overflow: hidden;
  border: 1px solid rgba(79, 70, 229, 0.16);
  border-radius: var(--radius);
  background:
    radial-gradient(circle at 78% 22%, rgba(79, 70, 229, 0.18), transparent 26%),
    linear-gradient(135deg, #FFFFFF 0%, #EEF2FF 100%);
}

.module-preview::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(79, 70, 229, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(79, 70, 229, 0.06) 1px, transparent 1px);
  background-size: 34px 34px;
  mask-image: linear-gradient(180deg, #000, transparent 86%);
}

.crm-client-list,
.crm-funnel,
.crm-deal-grid {
  position: absolute;
  z-index: 1;
}

.crm-client-list {
  top: 82px;
  bottom: 28px;
  left: 24px;
  display: grid;
  gap: 0.65rem;
  width: 32%;
}

.crm-client-list > span {
  position: relative;
  min-height: 0;
  border: 1px solid rgba(79, 70, 229, 0.13);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 10px 24px rgba(17, 24, 39, 0.06);
}

.crm-client-list i {
  position: absolute;
  top: 50%;
  left: 12px;
  width: 26px;
  height: 26px;
  border: 7px solid rgba(79, 70, 229, 0.18);
  border-radius: 50%;
  background: var(--white);
  transform: translateY(-50%);
}

.crm-client-list b,
.crm-client-list em {
  position: absolute;
  left: 50px;
  height: 7px;
  border-radius: 999px;
  background: rgba(79, 70, 229, 0.2);
}

.crm-client-list b {
  top: 30%;
  right: 14px;
}

.crm-client-list em {
  right: 34%;
  bottom: 28%;
}

.crm-funnel {
  top: 88px;
  right: 24px;
  display: grid;
  gap: 0.8rem;
  align-content: start;
  width: 56%;
}

.crm-funnel span {
  height: 28px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--indigo), #7C3AED);
  box-shadow: 0 10px 22px rgba(79, 70, 229, 0.14);
}

.crm-funnel span:nth-child(2) {
  width: 78%;
  background: linear-gradient(90deg, rgba(79, 70, 229, 0.92), rgba(124, 58, 237, 0.68));
}

.crm-funnel span:nth-child(3) {
  width: 52%;
  background: linear-gradient(90deg, rgba(79, 70, 229, 0.78), rgba(124, 58, 237, 0.46));
}

.crm-deal-grid {
  right: 24px;
  bottom: 28px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.65rem;
  width: 56%;
}

.crm-deal-grid span {
  height: 58px;
  border: 1px solid rgba(79, 70, 229, 0.18);
  border-top: 5px solid var(--indigo);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 10px 22px rgba(79, 70, 229, 0.08);
}

.preview-topbar,
.preview-sidebar,
.preview-card,
.preview-chart,
.shelf-grid,
.timeline-row,
.machine-grid,
.profile-row,
.calendar-grid,
.approval-flow,
.document-stack,
.kanban-col,
.custom-nodes,
.maintenance-dial,
.tool-grid,
.file-list {
  position: absolute;
  z-index: 1;
}

.preview-topbar {
  top: 22px;
  right: 24px;
  left: 24px;
  height: 34px;
  border-radius: var(--radius);
  background: linear-gradient(90deg, var(--indigo), #7C3AED);
  box-shadow: 0 16px 30px rgba(79, 70, 229, 0.2);
}

.preview-sidebar {
  top: 74px;
  bottom: 24px;
  left: 24px;
  width: 78px;
  border-radius: var(--radius);
  background: rgba(79, 70, 229, 0.86);
}

.preview-card {
  width: 34%;
  height: 54px;
  border: 1px solid rgba(79, 70, 229, 0.12);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 12px 26px rgba(17, 24, 39, 0.08);
}

.preview-card.wide {
  top: 82px;
  left: 124px;
  width: calc(100% - 150px);
}

.shelf-grid {
  top: 82px;
  left: 24px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.7rem;
  width: 58%;
}

.shelf-grid span,
.machine-grid span,
.calendar-grid span {
  min-height: 54px;
  border-radius: var(--radius);
  background: rgba(79, 70, 229, 0.16);
  border: 1px solid rgba(79, 70, 229, 0.16);
}

.stock-card {
  right: 24px;
  top: 88px;
  height: 72px;
}

.stock-card.accent {
  top: 178px;
  background: rgba(79, 70, 229, 0.84);
}

.timeline-row {
  left: 28px;
  right: 34px;
  top: 92px;
  height: 34px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--indigo) 0 52%, rgba(79, 70, 229, 0.16) 52% 100%);
}

.timeline-row.short {
  top: 146px;
  right: 28%;
}

.timeline-row.medium {
  top: 200px;
  right: 16%;
}

.machine-grid {
  right: 32px;
  bottom: 28px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.6rem;
  width: 54%;
}

.profile-row {
  left: 28px;
  right: 28px;
  display: flex;
  align-items: center;
  gap: 0.8rem;
  height: 44px;
}

.profile-row:nth-of-type(2) {
  top: 90px;
}

.profile-row:nth-of-type(3) {
  top: 146px;
}

.profile-row:nth-of-type(4) {
  top: 202px;
}

.profile-row span {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--indigo);
}

.profile-row i {
  flex: 1;
  height: 18px;
  border-radius: 999px;
  background: rgba(79, 70, 229, 0.16);
}

.calendar-grid {
  right: 30px;
  bottom: 30px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.45rem;
  width: 34%;
}

.approval-flow {
  top: 94px;
  left: 34px;
  right: 34px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.approval-flow span {
  min-height: 78px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(79, 70, 229, 0.14);
}

.document-stack {
  right: 44px;
  bottom: 34px;
  width: 42%;
  height: 86px;
}

.document-stack span {
  position: absolute;
  inset: 0;
  border-radius: var(--radius);
  background: rgba(79, 70, 229, 0.12);
  border: 1px solid rgba(79, 70, 229, 0.14);
}

.document-stack span:nth-child(2) {
  transform: translate(-16px, -12px);
}

.document-stack span:nth-child(3) {
  transform: translate(-32px, -24px);
  background: var(--white);
}

.document-stack.large {
  top: 98px;
  left: 38px;
  right: auto;
  bottom: auto;
  width: 44%;
  height: 150px;
}

.kanban-col {
  top: 84px;
  bottom: 28px;
  display: grid;
  align-content: start;
  gap: 0.7rem;
  width: calc((100% - 92px) / 3);
  padding: 0.8rem;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(79, 70, 229, 0.12);
}

.kanban-col:nth-child(2) {
  left: 24px;
}

.kanban-col:nth-child(3) {
  left: calc(50% - ((100% - 92px) / 6));
}

.kanban-col:nth-child(4) {
  right: 24px;
}

.kanban-col span {
  min-height: 48px;
  border-radius: var(--radius);
  background: rgba(79, 70, 229, 0.18);
}

.custom-nodes {
  inset: 82px 28px 88px;
}

.custom-nodes span {
  position: absolute;
  width: 54px;
  height: 54px;
  border-radius: var(--radius);
  background: var(--indigo);
  box-shadow: 0 14px 28px rgba(79, 70, 229, 0.22);
}

.custom-nodes span:nth-child(1) { left: 6%; top: 18%; }
.custom-nodes span:nth-child(2) { left: 34%; top: 4%; }
.custom-nodes span:nth-child(3) { left: 58%; top: 34%; }
.custom-nodes span:nth-child(4) { right: 8%; top: 10%; }
.custom-nodes span:nth-child(5) { left: 42%; bottom: 0; }

.custom-preview .preview-card.wide {
  top: auto;
  bottom: 24px;
  left: 28px;
  width: calc(100% - 56px);
}

.maintenance-dial {
  top: 94px;
  left: 36px;
  width: 126px;
  height: 126px;
  border-radius: 50%;
  background:
    radial-gradient(circle, #FFFFFF 0 42%, transparent 43%),
    conic-gradient(var(--indigo) 0 72%, rgba(79, 70, 229, 0.16) 72% 100%);
  box-shadow: 0 18px 36px rgba(79, 70, 229, 0.16);
}

.cmms-preview .timeline-row {
  left: 194px;
  top: 104px;
}

.cmms-preview .timeline-row.short {
  left: 194px;
  top: 160px;
  right: 20%;
}

.tool-grid {
  right: 34px;
  bottom: 34px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.55rem;
  width: 52%;
}

.tool-grid span {
  min-height: 58px;
  border-radius: var(--radius);
  background: rgba(79, 70, 229, 0.16);
  border: 1px solid rgba(79, 70, 229, 0.16);
}

.file-list {
  top: 92px;
  right: 34px;
  display: grid;
  gap: 0.75rem;
  width: 42%;
}

.file-list span {
  height: 34px;
  border-radius: 999px;
  background: rgba(79, 70, 229, 0.16);
}

@keyframes tabFade {
  from {
    opacity: 0;
    transform: translateY(6px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.site-footer {
  display: grid;
  gap: 2rem;
  padding: 3rem 5vw;
  color: #d1d5db;
  border-top: 4px solid var(--indigo);
  background: #0b1020;
}

.site-footer p,
.footer-billing h2 {
  margin: 0;
}

.site-footer .brand {
  color: var(--white);
}

.footer-brand {
  display: grid;
  gap: 0.45rem;
  align-content: start;
}

.footer-billing {
  display: grid;
  gap: 0.35rem;
}

.footer-billing h2 {
  color: var(--white);
  font-size: 1rem;
  line-height: 1.2;
}

.footer-billing strong {
  color: var(--white);
}

.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  align-items: flex-start;
}

.footer-nav a {
  color: #e5e7eb;
  font-weight: 800;
}

.footer-nav a:hover {
  color: var(--white);
}

.footer-copyright {
  margin: 0;
  color: #9ca3af;
  font-size: 0.8rem;
  text-align: center;
}

.cta-form-section {
  display: grid;
  gap: 2rem;
  align-items: start;
  color: var(--ink);
  background: var(--soft);
}

.cta-copy {
  max-width: 700px;
}

.cta-copy p:not(.eyebrow) {
  color: #5f5870;
}

.mini-cta-form {
  display: grid;
  gap: 1rem;
  padding: 1.35rem;
  border: 1px solid rgba(124, 58, 237, 0.12);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 24px 70px rgba(88, 69, 128, 0.14);
  backdrop-filter: blur(18px);
}

.mini-cta-form label {
  color: #5f5870;
}

.mini-cta-form input,
.mini-cta-form select,
.mini-cta-form textarea {
  border-color: rgba(124, 58, 237, 0.14);
  color: var(--ink);
  background: rgba(255, 255, 255, 0.78);
}

.mini-cta-form input::placeholder,
.mini-cta-form textarea::placeholder {
  color: #8b8498;
}

.form-privacy-note,
.form-status,
.marketing-consent {
  font-size: 0.78rem;
  line-height: 1.5;
}

.form-privacy-note {
  margin: 0;
  color: var(--muted);
}

.form-privacy-note a,
.marketing-consent a {
  color: var(--indigo-dark);
  text-decoration: underline;
  text-underline-offset: 0.16em;
}

.marketing-consent {
  grid-template-columns: 1.1rem minmax(0, 1fr);
  gap: 0.65rem !important;
  align-items: start;
  font-weight: 500;
}

.marketing-consent input[type="checkbox"] {
  width: 1.1rem;
  height: 1.1rem;
  min-height: 0;
  margin-top: 0.18rem;
  padding: 0;
  accent-color: var(--indigo);
}

.form-status {
  min-height: 1.5em;
  margin: 0;
  color: var(--muted);
}

.form-status.is-error {
  color: #b42318;
  font-weight: 700;
}

.form-status.is-pending {
  color: var(--indigo-dark);
  font-weight: 700;
}

.form-honeypot {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  clip: rect(0 0 0 0) !important;
  clip-path: inset(50%) !important;
  white-space: nowrap !important;
}

.no-js-note {
  margin: 0;
  padding: 1rem;
  border: 1px solid rgba(79, 70, 229, 0.18);
  border-radius: var(--radius);
  color: var(--ink);
  background: rgba(79, 70, 229, 0.06);
}

.story-layout {
  display: grid;
  gap: 1.5rem;
  padding: 4rem 5vw;
  background: var(--white);
}

.story-visual {
  position: relative;
  top: auto;
  height: 320px;
  pointer-events: auto;
}

.story-canvas {
  border: 0;
  background: transparent;
}

.story-steps {
  display: grid;
  gap: 1.25rem;
}

.story-step {
  min-height: 38vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.story-step .eyebrow {
  color: var(--indigo);
}

.comparison-wrap {
  overflow-x: auto;
  padding: clamp(1rem, 2.4vw, 1.65rem);
  border: 1px solid rgba(79, 70, 229, 0.12);
  border-radius: 24px;
  background: var(--white);
  box-shadow: 0 24px 62px rgba(17, 24, 39, 0.08);
}

.comparison-table {
  width: 100%;
  min-width: 820px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 16px;
  border-collapse: separate;
  border-spacing: 0;
  background: var(--white);
}

.comparison-table th,
.comparison-table td {
  padding: 0.85rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

.comparison-table thead th {
  color: var(--white);
  background: var(--ink);
  font-size: 0.74rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.highlight-row {
  background: rgba(79, 70, 229, 0.08);
}

.comparison-table tbody th {
  color: var(--ink);
  font-size: 0.84rem;
  font-weight: 800;
}

.comparison-table tbody td {
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.48;
}

.comparison-table tbody tr:nth-child(even) {
  background: rgba(79, 70, 229, 0.025);
}

.comparison-table tbody tr:hover {
  background: rgba(79, 70, 229, 0.06);
}

.comparison-table tbody tr:last-child th,
.comparison-table tbody tr:last-child td {
  border-bottom: 0;
}

.page-intro {
  padding: 5rem 5vw 2rem;
}

.page-intro h1,
.contact-layout h1 {
  font-size: clamp(1.65rem, 7vw, 4.7rem);
}

.calculator-shell {
  display: grid;
  gap: 1.25rem;
  align-items: start;
  padding: 3rem 5vw 5rem;
  scroll-margin-top: 80px;
  background: linear-gradient(180deg, #F7F8FC 0%, #FFFFFF 100%);
}

.calculator-section-heading {
  grid-column: 1 / -1;
  max-width: 820px;
}

.calculator-section-heading > p:last-child {
  color: var(--muted);
}

.calculator-panel,
.calculator-result,
.contact-form {
  padding: 1.4rem;
  box-shadow: var(--shadow);
}

.calculator-panel {
  display: grid;
  gap: 0.9rem;
  padding: 1.25rem;
  border-color: rgba(79, 70, 229, 0.12);
  box-shadow: 0 18px 48px rgba(17, 24, 39, 0.07);
}

.calculator-panel h2,
.contact-form h2 {
  font-size: 1.35rem;
  line-height: 1.2;
}

.calculator-panel-heading {
  padding-bottom: 0.9rem;
  border-bottom: 1px solid var(--line);
}

.calculator-panel-heading .eyebrow {
  margin-bottom: 0.35rem;
}

.calculator-panel-heading h2 {
  margin-bottom: 0.35rem;
}

.calculator-panel-heading > p:last-child {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.45;
}

.calculator-panel label {
  gap: 0.32rem;
  font-size: 0.86rem;
}

.calculator-panel input:not([type="range"]),
.calculator-panel select {
  min-height: 44px;
  padding: 0.62rem 0.75rem;
}

.calculator-panel #employee-count {
  color: var(--indigo);
}

label {
  display: grid;
  gap: 0.45rem;
  color: var(--muted);
  font-weight: 700;
}

.input-hint {
  color: #6B7280;
  font-size: 0.72rem;
  font-weight: 500;
  line-height: 1.35;
}

.required-mark {
  color: var(--indigo);
  font-weight: 900;
}

input,
select,
textarea {
  width: 100%;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  padding: 0.9rem 1rem;
  outline: none;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--indigo);
  box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.12);
}

input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
textarea:-webkit-autofill,
textarea:-webkit-autofill:hover,
textarea:-webkit-autofill:focus {
  -webkit-text-fill-color: var(--ink);
  box-shadow: 0 0 0 1000px var(--white) inset;
  transition: background-color 9999s ease-out;
}

.mini-cta-form input:-webkit-autofill,
.mini-cta-form input:-webkit-autofill:hover,
.mini-cta-form input:-webkit-autofill:focus,
.mini-cta-form textarea:-webkit-autofill,
.mini-cta-form textarea:-webkit-autofill:hover,
.mini-cta-form textarea:-webkit-autofill:focus {
  -webkit-text-fill-color: var(--ink);
  box-shadow: 0 0 0 1000px #ffffff inset;
}

.phone-input {
  display: grid;
  grid-template-columns: 104px minmax(0, 1fr);
  gap: 0.55rem;
}

.input-with-suffix {
  position: relative;
  display: block;
}

.input-with-suffix input {
  padding-right: 3.2rem !important;
}

.input-with-suffix > span {
  position: absolute;
  top: 50%;
  right: 0.75rem;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
  transform: translateY(-50%);
  pointer-events: none;
}

.phone-input select,
.phone-input input {
  min-width: 0;
}

input[type="range"] {
  accent-color: var(--indigo);
  padding: 0;
}

.calculator-result {
  display: grid;
  gap: 1rem;
  align-content: start;
  padding: 1.25rem;
  color: var(--ink);
  border-color: rgba(79, 70, 229, 0.14);
  background: linear-gradient(145deg, #FFFFFF 0%, #F4F3FF 100%);
  box-shadow: 0 18px 48px rgba(17, 24, 39, 0.08);
}

.result-intro .eyebrow {
  margin-bottom: 0.35rem;
}

.insight {
  margin: 0;
  max-width: 920px;
  color: #40475A;
  font-size: 0.94rem;
  font-weight: 650;
  line-height: 1.5;
}

.module-box h2 {
  margin-bottom: 0.6rem;
  font-size: 0.92rem;
  line-height: 1.3;
}

.module-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.module-pill {
  padding: 0.42rem 0.65rem;
  border-radius: 999px;
  color: var(--indigo-dark);
  border: 1px solid rgba(79, 70, 229, 0.12);
  background: rgba(79, 70, 229, 0.08);
  font-size: 0.78rem;
  font-weight: 800;
}

.result-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.65rem;
}

.summary-card {
  min-width: 0;
  padding: 0.9rem;
  border: 1px solid rgba(79, 70, 229, 0.1);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 10px 24px rgba(17, 24, 39, 0.05);
}

.summary-card > span,
.summary-card > strong,
.summary-card > small {
  display: block;
}

.summary-card > span {
  margin-bottom: 0.35rem;
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 700;
}

.summary-card > strong {
  margin-bottom: 0.35rem;
  color: var(--ink);
  font-size: clamp(1.15rem, 2.4vw, 1.45rem);
  line-height: 1.15;
  overflow-wrap: anywhere;
}

.summary-card > small {
  color: #747B89;
  font-size: 0.7rem;
}

.summary-card > small b {
  color: inherit;
  font-size: inherit;
}

.summary-card-primary {
  color: var(--white);
  border-color: transparent;
  background: linear-gradient(135deg, var(--indigo), #6D28D9);
  box-shadow: 0 14px 30px rgba(79, 70, 229, 0.22);
}

.summary-card-primary > span,
.summary-card-primary > strong,
.summary-card-primary > small {
  color: var(--white);
}

.result-details {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem;
}

.result-detail {
  min-width: 0;
  padding: 0.9rem;
  border: 1px solid rgba(79, 70, 229, 0.1);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.78);
}

.result-detail h2 {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.3;
}

.result-heading {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
  justify-content: space-between;
}

.result-badge {
  max-width: 100%;
  padding: 0.32rem 0.52rem;
  border-radius: 999px;
  color: var(--indigo-dark);
  background: rgba(79, 70, 229, 0.1);
  font-size: 0.68rem;
  font-weight: 800;
  overflow-wrap: anywhere;
  text-align: center;
}

.result-note {
  margin: 0.55rem 0 0;
  color: var(--muted);
  font-size: 0.72rem;
  line-height: 1.4;
}

.result-list {
  display: grid;
  gap: 0;
  margin: 0.6rem 0 0;
}

.result-list > div {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  justify-content: space-between;
  padding: 0.48rem 0;
  border-top: 1px solid var(--line);
}

.result-list dt {
  color: var(--muted);
  font-size: 0.76rem;
}

.result-list dd {
  margin: 0;
  color: var(--ink);
  font-size: 0.84rem;
  font-weight: 800;
  text-align: right;
}

.calculator-disclaimer {
  margin: 0;
  color: #7A8190;
  font-size: 0.7rem;
  line-height: 1.45;
}

.saving-chart {
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(79, 70, 229, 0.1);
}

.saving-bar {
  width: 0%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--indigo), var(--success));
  transition: width 260ms ease;
}

@media (max-width: 620px) {
  .result-summary,
  .result-details {
    grid-template-columns: minmax(0, 1fr);
  }

  .result-heading {
    align-items: flex-start;
    flex-direction: column;
  }
}

.hero-spaine {
  min-height: 72vh;
  background:
    linear-gradient(
      90deg,
      rgba(255, 255, 255, 0.98) 0%,
      rgba(255, 255, 255, 0.92) 44%,
      rgba(238, 242, 255, 0.54) 100%
    ),
    url("assets/hero-spine-software.webp") center right / cover no-repeat;
}

.hero-spaine .hero-content {
  max-width: 920px;
}

.hero-spaine .poly-canvas {
  background: rgba(255, 255, 255, 0.04);
  mask-image: linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, 0.15) 42%, #000 100%);
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, 0.15) 42%, #000 100%);
}

.spaine-brand {
  color: var(--indigo);
}

.ai-pillars .section-heading,
.ai-benefits .section-heading,
.ai-calculator-section .section-heading {
  max-width: 900px;
}

.ai-pillars .section-heading > p:last-child,
.ai-benefits .section-heading > p:last-child,
.ai-calculator-section .section-heading > p:last-child {
  color: var(--muted);
}

.ai-pillar-grid {
  display: grid;
  gap: 1rem;
}

.ai-pillar-card {
  padding: 1.35rem;
  border: 1px solid rgba(79, 70, 229, 0.12);
  border-radius: var(--radius);
  background: linear-gradient(145deg, #FFFFFF 0%, #F8F8FF 100%);
  box-shadow: 0 14px 38px rgba(17, 24, 39, 0.05);
}

.ai-pillar-card > span {
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  margin-bottom: 1rem;
  border-radius: 50%;
  color: var(--indigo);
  background: rgba(79, 70, 229, 0.1);
  font-size: 0.76rem;
  font-weight: 800;
}

.ai-pillar-card p,
.benefit-card p {
  margin-bottom: 0;
  color: var(--muted);
}

.ai-benefits {
  position: relative;
  overflow: hidden;
  background: var(--white);
}

.ai-benefits-heading {
  display: flex;
  gap: 1.5rem;
  align-items: end;
  justify-content: space-between;
}

.carousel-controls {
  position: absolute;
  inset: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1.15rem;
  pointer-events: none;
}

.carousel-button {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid rgba(79, 70, 229, 0.16);
  border-radius: 50%;
  color: var(--indigo);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 12px 28px rgba(32, 28, 92, 0.14);
  backdrop-filter: blur(12px);
  cursor: pointer;
  font-size: 1.1rem;
  font-weight: 800;
  pointer-events: auto;
  transition: color 180ms ease, background 180ms ease, opacity 180ms ease, transform 180ms ease;
}

.carousel-button:hover:not(:disabled) {
  background: linear-gradient(135deg, var(--indigo), #7C3AED);
  transform: scale(1.08);
}

.carousel-button:disabled {
  opacity: 0.35;
  cursor: default;
}

.carousel-status {
  position: absolute;
  bottom: 1rem;
  left: 50%;
  min-width: 76px;
  padding: 0.38rem 0.7rem;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 999px;
  color: var(--indigo);
  background: rgba(239, 238, 255, 0.94);
  backdrop-filter: blur(12px);
  font-size: 0.78rem;
  font-weight: 700;
  text-align: center;
  transform: translateX(-50%);
}

.benefit-carousel {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: transparent;
}

.benefit-carousel::before {
  content: none;
}

.benefit-carousel::after {
  content: none;
}

.benefit-track {
  position: relative;
  z-index: 2;
  min-height: 430px;
  perspective: 1100px;
  transform-style: preserve-3d;
  touch-action: pan-y;
  user-select: none;
}

.benefit-card {
  position: absolute;
  top: 47%;
  left: 50%;
  z-index: var(--carousel-z, 1);
  overflow: hidden;
  width: clamp(300px, 38vw, 440px);
  min-height: 280px;
  padding: 1.5rem;
  border: 5px solid rgba(255, 255, 255, 0.9);
  border-radius: 22px;
  background: linear-gradient(145deg, #FFFFFF 0%, #EFEEFF 100%);
  box-shadow: 0 22px 54px rgba(16, 12, 61, 0.28);
  opacity: 0;
  visibility: hidden;
  transform: translate(-50%, -50%) translateX(var(--carousel-x, 0)) translateZ(var(--carousel-depth, 0)) rotateY(var(--carousel-yaw, 0deg)) scale(var(--carousel-scale, 1));
  transform-origin: center;
  backface-visibility: hidden;
  pointer-events: none;
  transition: transform 520ms cubic-bezier(0.22, 1, 0.36, 1), opacity 360ms ease, box-shadow 320ms ease, border-color 320ms ease;
}

.benefit-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 7px;
  background: linear-gradient(90deg, var(--indigo), #7C3AED, #A78BFA);
}

.benefit-card::after {
  content: "";
  position: absolute;
  right: -86px;
  bottom: -98px;
  width: 210px;
  height: 210px;
  border-radius: 50%;
  background: rgba(79, 70, 229, 0.06);
}

.benefit-card.is-visible {
  opacity: var(--carousel-opacity, 0.5);
  visibility: visible;
  pointer-events: auto;
  cursor: pointer;
}

.benefit-card.is-active {
  border-color: var(--white);
  background: linear-gradient(145deg, #FFFFFF 0%, #F7F5FF 62%, #E8E5FF 100%);
  box-shadow: 0 32px 80px rgba(12, 9, 47, 0.38);
  cursor: default;
}

.benefit-card-top {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.65rem;
}

.benefit-icon {
  display: inline-grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 16px;
  color: var(--white);
  background: linear-gradient(135deg, var(--indigo), #7C3AED);
  box-shadow: 0 12px 26px rgba(79, 70, 229, 0.24);
}

.benefit-icon svg {
  width: 26px;
  height: 26px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.benefit-number {
  display: inline-flex;
  padding: 0.36rem 0.6rem;
  border: 1px solid rgba(79, 70, 229, 0.12);
  border-radius: 999px;
  color: var(--indigo);
  background: rgba(79, 70, 229, 0.07);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.benefit-card h3 {
  position: relative;
  z-index: 1;
  margin-bottom: 0.65rem;
  font-size: 1.3rem;
}

.benefit-card p {
  position: relative;
  z-index: 1;
  line-height: 1.6;
}

.ai-agent-section {
  background: linear-gradient(180deg, #F7F8FC 0%, #FFFFFF 100%);
}

.ai-agent-section .section-heading {
  max-width: 880px;
}

.ai-agent-section .section-heading > p:last-child {
  color: var(--muted);
}

.agent-tabs {
  display: grid;
  gap: 0.9rem;
}

.agent-tab-list {
  display: flex;
  gap: 0.55rem;
  overflow-x: auto;
  padding: 0.2rem 0 0.65rem;
  scrollbar-width: thin;
}

.agent-tab {
  flex: 1 0 145px;
  min-height: 46px;
  padding: 0.7rem 1rem;
  border: 1px solid rgba(79, 70, 229, 0.14);
  border-radius: 999px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.9);
  cursor: pointer;
  font-weight: 800;
  transition: color 180ms ease, border-color 180ms ease, background 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.agent-tab:hover {
  color: var(--indigo);
  border-color: rgba(79, 70, 229, 0.34);
  transform: translateY(-1px);
}

.agent-tab.is-active {
  color: var(--white);
  border-color: var(--indigo);
  background: linear-gradient(135deg, var(--indigo), #7C3AED);
  box-shadow: 0 14px 30px rgba(79, 70, 229, 0.22);
}

.agent-panels {
  overflow: hidden;
  border: 1px solid rgba(79, 70, 229, 0.12);
  border-radius: 24px;
  background: var(--white);
  box-shadow: 0 24px 62px rgba(17, 24, 39, 0.08);
}

.agent-panel {
  padding: clamp(1rem, 2.4vw, 1.65rem);
  animation: tabFade 220ms ease;
}

.agent-panel[hidden] {
  display: none;
}

.agent-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 16px;
}

.agent-table {
  width: 100%;
  min-width: 720px;
  border-collapse: collapse;
  background: var(--white);
}

.agent-table th,
.agent-table td {
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.agent-table th {
  color: var(--white);
  background: var(--ink);
  font-size: 0.74rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.agent-table th:first-child,
.agent-table td:first-child {
  width: 31%;
}

.agent-table td {
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.48;
}

.agent-table td:first-child {
  color: var(--ink);
  font-weight: 800;
}

.agent-table tbody tr:nth-child(even) {
  background: rgba(79, 70, 229, 0.025);
}

.agent-table tbody tr:last-child td {
  border-bottom: 0;
}

.agent-table tbody tr:hover {
  background: rgba(79, 70, 229, 0.06);
}

.ai-calculator-section {
  background: var(--white);
}

.ai-calculator-shell {
  display: grid;
  gap: 1rem;
  align-items: start;
}

.ai-calculator-form,
.ai-calculator-result {
  padding: 1.3rem;
  border: 1px solid rgba(79, 70, 229, 0.12);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: 0 18px 48px rgba(17, 24, 39, 0.07);
}

.ai-calculator-form {
  display: grid;
  gap: 0.9rem;
}

.ai-calculator-heading {
  padding-bottom: 0.9rem;
  border-bottom: 1px solid var(--line);
}

.ai-calculator-heading h3 {
  margin-bottom: 0.35rem;
  font-size: 1.1rem;
}

.ai-calculator-heading p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.45;
}

.ai-calculator-form label {
  gap: 0.32rem;
  font-size: 0.84rem;
}

.ai-calculator-form input {
  min-height: 44px;
  padding: 0.62rem 0.75rem;
}

.ai-price-strip,
.ai-cost-comparison {
  display: grid;
  gap: 0.65rem;
}

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

.ai-fixed-chat {
  display: grid;
  gap: 0.2rem;
  padding: 0.8rem 0.9rem;
  border: 1px solid rgba(79, 70, 229, 0.12);
  border-radius: var(--radius);
  background: rgba(79, 70, 229, 0.05);
}

.ai-price-strip > div {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  justify-content: space-between;
}

.ai-fixed-chat span,
.ai-price-strip span {
  color: var(--muted);
  font-size: 0.74rem;
}

.ai-fixed-chat strong,
.ai-price-strip strong {
  font-size: 0.8rem;
}

.ai-calculator-result {
  display: grid;
  gap: 0.9rem;
  background: linear-gradient(145deg, #FFFFFF 0%, #F4F3FF 100%);
}

.ai-price-strip {
  padding: 0.85rem;
  border: 1px solid rgba(79, 70, 229, 0.1);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.76);
}

.ai-price-strip > div {
  display: grid;
  gap: 0.15rem;
  justify-content: start;
}

.ai-cost-comparison {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.ai-cost-card {
  min-width: 0;
  padding: 0.9rem;
  border: 1px solid rgba(79, 70, 229, 0.1);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 10px 24px rgba(17, 24, 39, 0.05);
}

.ai-cost-card > span,
.ai-cost-card > strong,
.ai-cost-card > small {
  display: block;
}

.ai-cost-card > span {
  margin-bottom: 0.35rem;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 700;
}

.ai-cost-card > strong {
  margin-bottom: 0.35rem;
  font-size: clamp(1.05rem, 2.2vw, 1.35rem);
  line-height: 1.15;
  overflow-wrap: anywhere;
}

.ai-cost-card > small {
  color: #747B89;
  font-size: 0.68rem;
}

.ai-savings-card {
  color: var(--white);
  border-color: transparent;
  background: linear-gradient(135deg, var(--indigo), #6D28D9);
  box-shadow: 0 14px 30px rgba(79, 70, 229, 0.22);
}

.ai-savings-card > span,
.ai-savings-card > small {
  color: var(--white);
}

.ai-savings-card.is-negative {
  color: #7F1D1D;
  border-color: #FECACA;
  background: #FEF2F2;
  box-shadow: none;
}

.ai-savings-card.is-negative > span,
.ai-savings-card.is-negative > small {
  color: #991B1B;
}

.ai-result-list {
  display: grid;
  margin: 0;
  padding: 0 0.9rem;
  border: 1px solid rgba(79, 70, 229, 0.1);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.72);
}

.ai-result-list > div {
  display: flex;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
  padding: 0.65rem 0;
  border-top: 1px solid var(--line);
}

.ai-result-list > div:first-child {
  border-top: 0;
}

.ai-result-list dt {
  color: var(--muted);
  font-size: 0.76rem;
}

.ai-result-list dd {
  margin: 0;
  font-size: 0.82rem;
  font-weight: 800;
  text-align: right;
}

.ai-calculator-note {
  margin: 0;
  color: #747B89;
  font-size: 0.69rem;
  line-height: 1.45;
}

.ai-cta-section {
  background: linear-gradient(180deg, #FFFFFF 0%, #F8F6FF 100%);
}

@media (max-width: 1020px) {
  .ai-cost-comparison {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 680px) {
  .agent-panels {
    border-radius: 18px;
  }

  .ai-benefits-heading {
    display: block;
  }

  .carousel-controls {
    justify-content: space-between;
    padding: 0 0.65rem;
  }

  .benefit-track {
    min-height: 370px;
  }

  .benefit-card {
    top: 47%;
    width: min(78vw, 310px);
    min-height: 270px;
    padding: 1.2rem;
  }

  .benefit-icon {
    width: 46px;
    height: 46px;
    border-radius: 14px;
  }

  .benefit-card-top {
    margin-bottom: 1.3rem;
  }

  .benefit-card h3 {
    font-size: 1.15rem;
  }

  .ai-price-strip {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (min-width: 760px) {
  .ai-pillar-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .ai-calculator-shell {
    grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
  }

  .ai-calculator-form {
    position: sticky;
    top: 92px;
  }
}

.contact-layout {
  display: grid;
  gap: 2rem;
  min-height: calc(100vh - 72px);
  align-items: center;
  padding: 5rem 5vw;
  background: linear-gradient(180deg, #ffffff 0%, #f7f8fc 100%);
}

.contact-proof {
  display: grid;
  gap: 0.75rem;
  margin-top: 2rem;
}

.contact-proof span {
  padding-left: 1rem;
  border-left: 3px solid var(--indigo);
  color: var(--ink);
  font-weight: 800;
}

.contact-form {
  display: grid;
  gap: 1rem;
}

.legal-page {
  max-width: 980px;
  margin: 0 auto;
  padding: clamp(3rem, 8vw, 6rem) 5vw;
}

.legal-hero {
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--line);
}

.legal-hero h1 {
  max-width: 820px;
}

.legal-content {
  max-width: 820px;
}

.legal-content section {
  scroll-margin-top: 7rem;
}

.legal-page h2 {
  margin-top: 2.5rem;
  font-size: clamp(1.35rem, 3vw, 2rem);
}

.legal-page h3 {
  margin-top: 1.6rem;
  font-size: 1.05rem;
}

.legal-page p,
.legal-page li {
  color: var(--muted);
}

.legal-page a {
  color: var(--indigo-dark);
  text-decoration: underline;
  text-underline-offset: 0.16em;
}

.cookie-list {
  display: grid;
  gap: 0.8rem;
  margin-block: 1.25rem;
}

.cookie-list section {
  padding: 1rem;
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.cookie-list h3,
.cookie-list p {
  margin: 0;
}

.cookie-list p {
  margin-top: 0.45rem;
}

.cookie-list code {
  overflow-wrap: anywhere;
}

html:not(.js) #spine-calculator,
html:not(.js) #ai-cost-calculator,
html:not(.js) .calculator-result,
html:not(.js) .ai-calculator-result {
  display: none;
}

.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 1.25rem;
  background: rgba(17, 24, 39, 0.58);
  backdrop-filter: blur(12px);
}

.modal-overlay[hidden] {
  display: none;
}

.modal-dialog {
  display: grid;
  width: min(100%, 520px);
  padding: 1.5rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow);
}

.modal-dialog h2 {
  font-size: clamp(1.7rem, 5vw, 2.6rem);
}

.modal-dialog p:not(.eyebrow) {
  color: var(--muted);
}

.modal-dialog .modal-close {
  justify-self: end;
}

.cookie-banner {
  position: fixed;
  inset: 0;
  z-index: 110;
  display: grid;
  align-items: end;
  overflow-y: auto;
  padding: clamp(0.75rem, 2vw, 1.25rem);
  background: rgba(17, 24, 39, 0.62);
  backdrop-filter: blur(6px);
}

.cookie-banner[hidden],
.cookie-settings[hidden] {
  display: none;
}

.cookie-banner__content {
  display: grid;
  gap: 1rem;
  width: min(100%, 1180px);
  max-height: calc(100vh - 1.5rem);
  max-height: calc(100dvh - 1.5rem);
  margin-inline: auto;
  padding: clamp(1rem, 3vw, 1.5rem);
  overflow-y: auto;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.99);
  border: 1px solid rgba(79, 70, 229, 0.24);
  border-radius: 14px;
  box-shadow: 0 24px 80px rgba(17, 24, 39, 0.32);
  outline: none;
}

.cookie-kicker {
  margin: 0 0 0.25rem;
  color: var(--indigo-dark);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.cookie-banner h2,
.cookie-settings h2,
.cookie-settings h3 {
  margin: 0;
}

.cookie-banner h2,
.cookie-settings h2 {
  font-size: clamp(1.25rem, 3vw, 1.65rem);
  line-height: 1.25;
}

.cookie-banner p:not(.cookie-kicker),
.cookie-settings__dialog > p,
.cookie-category p {
  margin: 0.45rem 0 0;
  color: var(--muted);
  font-size: 0.93rem;
  line-height: 1.55;
}

.cookie-banner a,
.cookie-settings a {
  color: var(--indigo-dark);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 0.16em;
}

.cookie-banner__actions,
.cookie-settings__actions {
  display: grid;
  gap: 0.55rem;
}

.cookie-button {
  min-height: 44px;
  padding: 0.65rem 0.9rem;
  color: var(--indigo-dark);
  font-weight: 750;
  line-height: 1.2;
  background: var(--white);
  border: 2px solid var(--indigo);
  border-radius: var(--radius);
  cursor: pointer;
}

.cookie-button:hover,
.cookie-button:focus-visible {
  color: var(--white);
  background: var(--indigo);
}

.cookie-button--settings {
  color: var(--ink);
  background: transparent;
  border-color: transparent;
  text-decoration: underline;
  text-underline-offset: 0.16em;
}

.cookie-button--settings:hover,
.cookie-button--settings:focus-visible {
  color: var(--indigo-dark);
  background: var(--soft);
}

.cookie-settings {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: grid;
  place-items: center;
  overflow-y: auto;
  padding: 1rem;
  background: rgba(17, 24, 39, 0.6);
  backdrop-filter: blur(12px);
}

.cookie-settings__dialog {
  width: min(100%, 720px);
  max-height: calc(100vh - 2rem);
  overflow-y: auto;
  padding: clamp(1.1rem, 4vw, 1.75rem);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow);
}

.cookie-settings__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.cookie-settings__close {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  color: var(--ink);
  font-size: 1.8rem;
  line-height: 1;
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 50%;
  cursor: pointer;
}

.cookie-settings__close:hover,
.cookie-settings__close:focus-visible {
  color: var(--white);
  background: var(--indigo);
  border-color: var(--indigo);
}

.cookie-category {
  display: grid;
  gap: 1rem;
  margin-top: 1rem;
  padding: 1rem;
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.cookie-category h3 {
  font-size: 1.02rem;
}

.cookie-category code {
  overflow-wrap: anywhere;
}

.cookie-switch {
  display: inline-flex;
  align-items: center;
  align-self: start;
  gap: 0.55rem;
  min-width: max-content;
  cursor: pointer;
}

.cookie-switch input {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
}

.cookie-switch span {
  position: relative;
  width: 46px;
  height: 26px;
  background: #9ca3af;
  border-radius: 999px;
  transition: background 160ms ease;
}

.cookie-switch span::after {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 20px;
  height: 20px;
  content: "";
  background: var(--white);
  border-radius: 50%;
  box-shadow: 0 1px 3px rgba(17, 24, 39, 0.28);
  transition: transform 160ms ease;
}

.cookie-switch input:checked + span {
  background: var(--indigo);
}

.cookie-switch input:checked + span::after {
  transform: translateX(20px);
}

.cookie-switch input:focus-visible + span {
  outline: 3px solid rgba(79, 70, 229, 0.28);
  outline-offset: 3px;
}

.cookie-switch--locked {
  cursor: default;
}

.cookie-switch--locked span {
  opacity: 0.72;
}

.cookie-settings__privacy {
  margin: 1rem 0;
}

.cookie-settings-link {
  width: fit-content;
  padding: 0;
  color: inherit;
  font-weight: inherit;
  text-align: left;
  background: transparent;
  border: 0;
  cursor: pointer;
}

.cookie-settings-link:hover,
.cookie-settings-link:focus-visible {
  color: var(--white);
  text-decoration: underline;
}

button:disabled {
  cursor: wait;
  opacity: 0.72;
}

@media (max-width: 420px) {
  h1,
  .hero-subpage h1,
  .page-intro h1,
  .contact-layout h1 {
    font-size: clamp(1.55rem, 7vw, 1.95rem);
  }
}

@media (min-width: 760px) {
  .cookie-banner__content {
    grid-template-columns: minmax(0, 1fr) minmax(280px, 0.52fr);
    align-items: center;
    gap: 1.5rem;
  }

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

  .cookie-button--settings {
    grid-column: 1 / -1;
  }

  .cookie-category {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
  }

  .cookie-settings__actions {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .feature-grid,
  .calculator-shell {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

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

  .calculator-panel {
    grid-column: span 1;
    position: sticky;
    top: 92px;
  }

  .calculator-result {
    grid-column: span 2;
  }

  .split-section,
  .cta-form-section,
  .contact-layout {
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  }

  .story-zigzag {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 0 3rem;
  }

  .story-zigzag .story-visual {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 0;
    width: calc(var(--story-visual-width, calc((100% - 3rem) / 2)) * 1.5);
    height: clamp(390px, 51vh, 540px);
    transform: translate(var(--story-visual-x, calc(100% + 3rem)), var(--story-visual-y, 0px));
    transition: transform 900ms cubic-bezier(0.22, 1, 0.36, 1);
  }

  .story-visual-left {
    grid-column: 1 / -1;
  }

  .story-zigzag .story-steps {
    display: contents;
  }

  .story-zigzag .story-step {
    position: relative;
    z-index: 1;
    min-height: 42vh;
    max-width: 620px;
  }

  .story-zigzag .story-step:nth-child(odd) {
    grid-column: 1;
  }

  .story-zigzag .story-step:nth-child(even) {
    grid-column: 2;
  }

  .story-zigzag .story-step:nth-child(1) {
    grid-row: 1;
  }

  .story-zigzag .story-step:nth-child(2) {
    grid-row: 2;
  }

  .story-zigzag .story-step:nth-child(3) {
    grid-row: 3;
  }

  .story-zigzag .story-step:nth-child(4) {
    grid-row: 4;
  }

  .tab-panel {
    grid-template-columns: 0.82fr 1.18fr;
    align-items: stretch;
    padding: 1.6rem;
  }

  .module-preview {
    min-height: 380px;
  }

  .tab-list {
    display: flex;
    flex-wrap: wrap;
    overflow: visible;
  }

  .tab-button {
    width: 132px;
  }

  .site-footer {
    grid-template-columns: 1fr 1fr 0.8fr;
    align-items: start;
  }

  .footer-copyright {
    grid-column: 1 / -1;
  }
}

@media (min-width: 940px) {
  .js .nav-toggle {
    display: none;
  }

  .site-nav,
  .js .site-nav {
    position: static;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 1.35rem;
    padding: 0;
    border: 0;
    box-shadow: none;
    background: transparent;
  }

  .site-nav a {
    padding: 0;
  }

  .nav-cta {
    padding: 0.65rem 0.9rem !important;
    border: 1px solid rgba(79, 70, 229, 0.18);
    border-radius: var(--radius);
    background: rgba(79, 70, 229, 0.08);
  }

  .section,
  .story-layout,
  .page-intro,
  .calculator-shell,
  .cta-form-section,
  .contact-layout {
    padding-left: 7vw;
    padding-right: 7vw;
  }

  .site-header,
  .site-footer {
    padding-left: 7vw;
    padding-right: 7vw;
  }

  .hero {
    padding-left: 7vw;
    padding-right: 7vw;
  }

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

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