/*
 * Ternion — mobile layout
 * This file is loaded only for viewports up to 760px.
 * Keep mobile spacing and typography overrides here.
 */

:root {
  --pad: 20px;
  --mobile-section-space: 64px;
}

body {
  font-size: 14px;
}

section {
  padding: var(--mobile-section-space) var(--pad);
}

.section-label {
  margin-bottom: 36px;
}

.section-heading,
.trust-lead {
  gap: 24px;
  margin-bottom: 38px;
}

.section-heading h2,
.trust h2,
.ai h2,
.why h2,
.about h2,
.faq h2,
.contact h2 {
  font-size: clamp(34px, 10vw, 46px);
  line-height: 1.04;
}

/* Hero */
.hero {
  min-height: auto;
  padding-top: 96px;
  padding-bottom: 40px;
}

.hero h1 {
  max-width: 100%;
  margin: 48px 0 28px;
  font-size: clamp(33px, 10.5vw, 46px);
  line-height: 1.02;
  letter-spacing: -0.055em;
  white-space: normal;
  overflow-wrap: normal;
  word-break: normal;
}

.hero-bottom {
  gap: 24px;
}

.hero-visual {
  min-height: 310px;
  margin-top: 8px;
}

.capabilities {
  padding-top: 24px;
}

/* Trust */
.trust-items {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-bottom: 0;
}

.trust-items span {
  padding: 21px 12px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.trust-items span:nth-child(2n) {
  border-right: 0;
}

.trust-items span:last-child {
  grid-column: 1 / -1;
  border-right: 0;
  border-bottom: 1px solid var(--line);
}

.facts-note {
  margin-top: 14px;
}

/* Services */
.service-row {
  padding: 20px 0;
  gap: 12px;
}

.service-row p {
  margin-top: -2px;
}

/* Solutions */
.solutions {
  padding-top: 56px;
  padding-bottom: 56px;
}

.solutions .section-label {
  margin-bottom: 32px;
}

.solutions .section-heading {
  margin-bottom: 32px;
}

.solution-stage {
  min-height: 500px;
  padding: 22px;
}

.solution-copy h3 {
  margin-top: 42px;
}

.product-ui {
  min-height: 250px;
  margin-top: 8px;
}

.solution-tabs {
  margin-top: 14px;
}

/* AI and process */
.ai-copy > p {
  margin: 24px 0;
}

.data-field {
  margin-top: 12px;
}

.ai-tags {
  margin-top: 34px;
}

.timeline article {
  min-height: 210px;
  padding-top: 28px;
}

.timeline h3 {
  margin-top: 48px;
}

/* Why, stack, about and FAQ */
.why-layout {
  gap: 42px;
}

.why-list article {
  padding: 22px 0;
}

.stack-grid,
.about-grid,
.faq-grid,
.contact {
  gap: 32px;
}

.about-grid > div > p,
.contact-head > p:last-child {
  margin-top: 24px;
}

.about-art {
  width: min(88%, 420px);
}

.faq-grid {
  gap: 28px;
}

summary {
  padding: 20px 0;
}

/* Contact and footer */
.contact {
  padding-top: 68px;
  padding-bottom: 76px;
}

.lead-form {
  padding: 20px;
  gap: 20px;
}

.footer {
  padding-top: 54px;
}

.footer-grid {
  padding: 42px 0;
}

@media (max-width: 370px) {
  :root {
    --pad: 16px;
    --mobile-section-space: 56px;
  }

  .hero h1 {
    font-size: 33px;
  }

  .section-heading h2,
  .trust h2,
  .ai h2,
  .why h2,
  .about h2,
  .faq h2,
  .contact h2 {
    font-size: 33px;
  }
}
