/* SMYSLIT design_ver2 — clarity layer on top of the existing design system.
   Same tokens, components, mascots and palette. Only hierarchy, order and legibility. */

h1, h2, h3 { text-wrap: balance; }

img { max-width: 100%; height: auto; }

.hero h1 {
  font-size: clamp(38px, 4.0vw, 58px);
  letter-spacing: -2.6px;
  max-width: 700px;
}

.hero .lead { max-width: 560px; }

.eyebrow {
  font-size: 12px;
  letter-spacing: 1.7px;
}

.eyebrow-short { display: none; }

.micro {
  font-size: 12px;
  line-height: 1.6;
}

.fact-strip {
  display: grid;
  grid-template-columns: repeat(2, max-content);
  gap: 8px;
  margin-top: 18px;
}

.fact-strip span {
  background: #f8f7f9;
  border: 1px solid #f1eef5;
  border-radius: 999px;
  padding: 8px 13px;
  font-size: 12px;
  line-height: 1.2;
  color: #575768;
  white-space: nowrap;
}

.fact-strip b { color: var(--ink); }

.anchor-alias {
  display: block;
  height: 0;
  scroll-margin-top: 100px;
}

/* Pilot: commercial frame on the second screen */
.pilot-section {
  background: linear-gradient(180deg, #fff 0%, #faf9f7 100%);
}

.pilot-timeline {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin: 0 0 34px;
}

.pilot-timeline article {
  border-top: 1px solid #e7d9ff;
  padding-top: 18px;
}

.pilot-timeline span {
  font-size: 11px;
  letter-spacing: 1.2px;
  color: var(--violet);
  font-weight: 700;
  text-transform: uppercase;
}

.pilot-timeline h3 {
  font-size: 19px;
  margin: 8px 0 6px;
}

.pilot-timeline p {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.65;
  margin: 0;
}

.pilot-grid { align-items: start; }

.pilot-grid .form-card {
  position: sticky;
  top: 110px;
}

.pilot-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.pilot-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 24px;
}

.pilot-card h3 {
  font-size: 18px;
  margin: 0 0 12px;
}

.pilot-card .plan-feat { margin: 0; }

.pilot-card .plan-feat li { font-size: 13px; }

.pilot-cta {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 26px;
}

.after-form {
  margin-top: 18px;
  border-top: 1px solid var(--line);
  padding-top: 16px;
}

.after-form b { font-size: 13px; }

.after-form .numsteps {
  margin-top: 12px;
  gap: 8px;
}

.after-form .numsteps li { font-size: 13px; }

/* Horizontal pilot form: one row of fields, no tall side column */
.pilot-form-wide { margin-top: 30px; }

.pilot-form-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

.pilot-form-head h3 { margin: 0; }

.pilot-form-head p {
  margin: 6px 0 0;
  font-size: 14px;
  color: var(--muted);
}

.pilot-form-head .micro {
  max-width: 340px;
  margin: 0;
  text-align: right;
}

.pilot-form-wide .row3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.pilot-form-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.pilot-form-foot .consent {
  flex: 1;
  min-width: 260px;
}

.pilot-form-wide .after-form { margin-top: 22px; }

.pilot-form-wide .after-form .numsteps {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.pilot-form-wide .after-form .numsteps li { font-size: 12px; }

.form-band {
  background: #faf9f7;
}

.form-band .pilot-form-wide {
  margin-top: 0;
}

#lead .lead-grid {
  grid-template-columns: minmax(0, 1fr) minmax(340px, 430px);
  align-items: center;
  gap: 56px;
}

/* Pilot: one flow, said once, right under the intro. */
.flow-note {
  margin: -4px 0 26px;
  max-width: 62ch;
  font-size: 14px;
  line-height: 1.55;
  color: var(--muted);
}

/* Dashboard demo: the mascot stands in the corner of the cabinet window. */
#product .access-plate {
  position: relative;
}

.product-mascot {
  position: absolute;
  right: 18px;
  bottom: -10px;
  width: 104px;
  height: auto;
  pointer-events: none;
  z-index: 2;
}

@media (max-width: 1024px) {
  .product-mascot { display: none; }
}

#lead .form-card {
  margin-top: 0;
}

@media (max-width: 1024px) {
  #lead .lead-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

@media (max-width: 820px) {
  .pilot-form-head { display: block; }
  .pilot-form-head .micro {
    margin-top: 10px;
    max-width: none;
    text-align: left;
  }
  .pilot-form-foot .consent { min-width: 0; }
  .pilot-form-foot .btn { width: 100%; }
  .pilot-form-wide .after-form .numsteps { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  .pilot-form-wide { padding: 22px; }
  .pilot-form-wide .row3 { grid-template-columns: 1fr; }
  .capabilities { padding-top: 24px; }
}

/* Trust: facts, not invented proof */
.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.trust-grid .feature { padding: 24px; }

.trust-grid .feature h3 { font-size: 17px; }

/* Dashboard callouts */
.callouts {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 0 0 14px;
}

.callouts span {
  font-size: 11px;
  letter-spacing: .6px;
  text-transform: uppercase;
  color: var(--violet);
  background: #f6f1ff;
  border: 1px solid #e7d9ff;
  border-radius: 999px;
  padding: 7px 11px;
}

/* Readable mobile substitute for the desktop iframe */
.mobile-dash { display: none; }

@media (max-width: 760px) {
  .browser { display: none; }

  .mobile-dash {
    display: block;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: 16px;
    box-shadow: 0 14px 40px #31154412;
  }

  .md-top {
    display: flex;
    align-items: center;
    gap: 8px;
    padding-bottom: 10px;
    border-bottom: 1px solid #f1edf6;
    font-size: 12px;
    color: #575768;
  }

  .md-top > span:last-child {
    margin-left: auto;
    font-size: 10px;
    color: #898195;
  }

  .md-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #99cb39;
    flex: 0 0 auto;
  }

  .md-tabs {
    display: flex;
    gap: 6px;
    margin: 12px 0 4px;
    overflow-x: auto;
  }

  .md-tabs span {
    flex: 0 0 auto;
    font-size: 11px;
    padding: 7px 9px;
    border: 1px solid var(--line);
    border-radius: 999px;
    color: #575768;
  }

  .md-tabs .active {
    background: #eae1ff;
    border-color: #c6afff;
    color: var(--violet);
  }

  .md-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin: 12px 0 8px;
    font-size: 16px;
    font-weight: 700;
  }

  .md-title i {
    font-style: normal;
    font-size: 10px;
    font-weight: 600;
    background: #f6f1ff;
    color: var(--violet);
    border-radius: 6px;
    padding: 4px 7px;
  }

  .md-row {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 2px 10px;
    padding: 10px 0;
    border-top: 1px solid #f1edf6;
    font-size: 12px;
  }

  .md-row b { font-size: 12px; grid-column: 1; grid-row: 1; }
  .md-row span { grid-column: 1; grid-row: 2; font-size: 10px; color: #898195; }

  .md-row em {
    grid-column: 2;
    grid-row: 1 / span 2;
    align-self: center;
    font-style: normal;
    font-size: 10px;
    border-radius: 6px;
    padding: 4px 7px;
    white-space: nowrap;
  }

  .md-row em.ok { background: #edf7df; color: #618b30; }
  .md-row em.wait { background: #fff0e2; color: #a66b25; }
  .mobile-dash .micro { margin: 10px 0 0; font-size: 11px; }
}

/* Cases: 6 visible + 4 in details */
.case-grid { grid-template-columns: repeat(3, 1fr); }

.more-cases,
.more-problems { margin-top: 22px; }

.more-cases summary,
.more-problems summary {
  border: 0;
  padding: 0;
  font-size: 13px;
  color: var(--violet);
  display: inline-flex;
  width: max-content;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
}

.more-cases[open] summary,
.more-problems[open] summary { margin-bottom: 18px; }

.comparison-note {
  max-width: 860px;
  margin-top: 20px;
}

/* Final CTA: one form only, contacts instead of a duplicate */
.final-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.final-card .btn { align-self: flex-start; }

.final-contacts {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.final-contacts a {
  color: var(--violet);
  font-weight: 600;
}

/* Density: same rhythm, shorter page */
.section {
  padding-top: 72px;
  padding-bottom: 72px;
}

.process-section {
  padding-top: 70px;
  padding-bottom: 70px;
}

.capabilities {
  padding-top: 40px;
}

#video-demo .dash-box {
  max-width: 760px !important;
  padding: 10px !important;
  margin: 0 auto;
}

.browser-body { height: 600px; }
.console { min-height: 160px; }
.console .ln:first-child { opacity: 1; transform: none; }

.pstep p {
  font-size: 12px;
  line-height: 1.55;
  color: #b4aabd;
  margin: 8px 0 0;
  min-height: 36px;
}

.pc-badge { white-space: nowrap; flex-shrink: 0; }

.pc-stats {
  flex: 0 0 auto;
  white-space: nowrap;
}

.pc-stats span { white-space: nowrap; }

.pilot-timeline { margin-bottom: 26px; }
.pilot-timeline article { padding-top: 14px; }

/* Grid children must be allowed to shrink; otherwise long Russian words
   push the pilot form and timeline past the container edge. */
.hero-copy,
.hero-art,
.lead-grid > *,
.pilot-cols,
.pilot-card,
.pilot-timeline article,
.trust-grid .feature,
.case-grid a,
.three-grid > *,
.cmp-grid > *,
.format-panel > * {
  min-width: 0;
}

.lead-grid { grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); }
.pilot-timeline { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.pilot-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.trust-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.case-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.three-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cmp-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.format-panel { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.lead-form .pair { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.lead-form input,
.lead-form textarea { min-width: 0; }

.totop { display: none !important; }

#pilot-form { scroll-margin-top: 100px; }

/* Accessibility */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  background: #fff;
  color: var(--ink);
  padding: 12px 16px;
  border: 1px solid var(--line);
  border-radius: 0 0 10px 0;
}

.skip-link:focus { left: 0; }

.header nav a.active { color: var(--violet); }

/* Compact cookie bar: never covers the hero CTA on first paint */
.cookie { padding: 10px 0; }

.cookie p {
  font-size: 12px;
  max-width: 820px;
}

.cookie .ghost,
.cookie .btn.small {
  padding: 9px 14px;
  font-size: 12px;
}

/* Tablet header fix: the production CSS only collapses at 760px,
   which breaks the header between 761 and 1050px. */
@media (max-width: 1050px) {
  .header { background: #fff; }
  .header nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    flex-direction: column;
    gap: 0;
    padding: 4px 18px 20px;
    border-top: 1px solid #f0edf4;
    box-shadow: 0 24px 48px #21133514;
  }

  .header nav.open { display: flex; }

  .header nav a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 15px 2px;
    font-size: 16px;
    font-weight: 600;
    border-bottom: 1px solid #f4f1f7;
  }

  .header nav a:after {
    content: "→";
    color: #c1bbcc;
    font-size: 15px;
  }

  .header nav a:last-child { border-bottom: 0; }

  .header .btn.small:not(.nav-cta) { display: none; }

  .menu {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    margin-left: auto;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 12px;
    font-size: 19px;
    line-height: 1;
    color: var(--ink);
    flex-shrink: 0;
  }

  .lang-sw { display: none; }

  .pilot-timeline { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .trust-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .case-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pilot-grid .form-card { position: static; }
}

@media (max-width: 820px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: 0;
    padding-top: 45px;
    padding-bottom: 0;
  }

  .hero h1 {
    font-size: 40px;
    letter-spacing: -2px;
  }

  .hero .lead { font-size: 17px; }

  .hero-art {
    height: 430px;
    margin-top: 10px;
    overflow: hidden;
  }

  .hero-mascot { height: 410px; }
  .ribbon { width: 520px; left: -20px; }

  .float-card {
    width: 128px;
    font-size: 10.5px;
    padding: 12px;
  }

  .card-one { left: 0; top: 80px; }
  .card-two { right: 0; top: 35px; }
  .card-three { right: 0; bottom: 30px; width: 180px; }

  .pilot-grid { grid-template-columns: 1fr; }
  .pilot-grid .form-card { position: static; order: -1; margin-top: 0; }
  .warm-grid { grid-template-columns: 1fr; gap: 25px; }
  .cmp-grid { grid-template-columns: 1fr; }
  .capabilities { grid-template-columns: repeat(3, 1fr); }
  .lead-grid { grid-template-columns: 1fr; }
  .format-panel { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .eyebrow-full { display: none; }
  .eyebrow-short { display: inline; }
  .float-card { display: none; }
  .hero-art { height: 420px; }
  .hero-mascot { height: 400px; }
  .case-grid { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  .hero h1 {
    font-size: 32px;
    letter-spacing: -1.6px;
  }

  .eyebrow { font-size: 11px; }

  .fact-strip span {
    font-size: 11px;
    padding: 7px 11px;
  }

  .pilot-timeline { grid-template-columns: 1fr; }
  .pilot-cols { grid-template-columns: 1fr; }
  .trust-grid { grid-template-columns: 1fr; }
  .case-grid { grid-template-columns: 1fr; }
  .lead-form .pair { grid-template-columns: 1fr; }
  .lead-grid { grid-template-columns: 1fr; }
  .format-panel { grid-template-columns: 1fr; }
  .capabilities { grid-template-columns: repeat(2, 1fr); }
  .capabilities a:last-child { grid-column: span 2; }
  .cookie p { font-size: 11.5px; }
}
