/* ontara.ch homepage draft (2026-10-01) — the D2 hero and product section (d2.css) plus the rest
 * of the page per founder: four pillars (deck slides 10 + 19), four industries (automotive,
 * machinery, medtech, rail), about us (HSG spin-off, no names yet). "Request a demo" and "Log in"
 * sit in the top bar; there is no pilot / "how we start" section and no separate closing CTA. */

html { scroll-padding-top: 66px; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }

/* ---- top bar: the normal logo (static, from the deck), bigger; log in + request a demo on the right ---- */
.site-header__logo { flex: none; width: 112px; height: 40px; }
.site-header__cta .btn { flex: none; }
.site-header__cta { display: flex; align-items: center; gap: 22px; }
.site-header__login { font-size: 14.5px; color: var(--ink-2); white-space: nowrap; }
.site-header__login:hover { color: var(--ink); }
@media (max-width: 899px) { /* the section links hide before the bar gets crowded */
  .site-header__nav { display: none; }
  .site-header__cta { margin-left: auto; }
}
@media (max-width: 640px) {
  .site-header__inner { gap: 12px; }
  .site-header__logo { width: 92px; height: 33px; }
  .site-header__cta { gap: 16px; margin-left: auto; }
  .site-header__login { font-size: 14px; }
  .site-header .site-header__cta .btn { margin-left: 0; }
}
@media (max-width: 359px) { .site-header__login { display: none; } } /* still in the footer */

/* ---- section frame (same grid as the hero and the product) ---- */
.hs { padding: 136px 0 0; }
.hs__in { max-width: 1344px; margin: 0 auto; padding: 0 32px; }
.hs__title { max-width: 15em; margin-top: 16px; }

/* ---- the four pillars ---- */
.pl { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; margin: 56px 0 0; padding: 0; list-style: none; }
.pl__i { display: flex; flex-direction: column; gap: 10px; padding-top: 20px; border-top: 1px solid var(--line-strong); }
.pl__n { font: 500 11.5px/1 var(--mono); letter-spacing: 0.1em; color: var(--accent-deep); }
.pl__t { margin: 6px 0 0; font-size: 19px; font-weight: 600; line-height: 1.25; letter-spacing: -0.015em; color: var(--ink); }
.pl__d { margin: 0; font-size: 15px; line-height: 1.55; color: var(--muted); }
.pl__d { margin-bottom: 14px; }
.pl__ex { display: grid; align-content: start; justify-items: start; gap: 8px; min-height: 122px; margin-top: auto; padding: 13px 14px 14px; border: 1px solid var(--rule); border-radius: 6px; background: #fff; } /* same height, aligned at the bottom */
.pl__ex-k { font: 500 10.5px/1 var(--mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted-2); }
.pl__ex-t { margin: 0; font-size: 13.5px; line-height: 1.5; color: var(--ink-2); }

/* ---- industries ---- */
.in { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; margin: 56px 0 0; padding: 0; list-style: none; }
.in__img { position: relative; display: grid; align-items: end; aspect-ratio: 4 / 3; border-radius: 8px; overflow: clip; background: radial-gradient(ellipse 80% 70% at 62% 42%, #fbfcfd 0%, #eef2f6 55%, #dfe6ee 100%); }
.in__img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.in__ph { padding: 12px 14px; font: 500 10.5px/1 var(--mono); letter-spacing: 0.06em; color: var(--muted-2); } /* until the images exist */
.in__t { margin: 18px 0 0; font-size: 19px; font-weight: 600; letter-spacing: -0.015em; color: var(--ink); }
.in__d { margin: 8px 0 0; font-size: 15px; line-height: 1.55; color: var(--muted); }
.in__r { margin: 12px 0 0; font: 500 11px/1.5 var(--mono); color: var(--muted-2); }

/* ---- about us ---- */
.ab { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 56px; }
.ab__t { max-width: 14em; margin-top: 16px; }
.ab__p { max-width: 36em; margin: 20px 0 0; font-size: 17px; line-height: 1.6; color: var(--muted); }
.ab__label { display: block; width: 132px; height: auto; } /* HSG Spin Off label, from pitch deck v2.0 (slide 3) */

/* ---- footer ---- */
.ft { margin-top: 136px; border-top: 1px solid var(--line); }
.ft__in { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; max-width: 1344px; margin: 0 auto; padding: 28px 32px 40px; font-size: 13.5px; color: var(--muted); }
.ft__logo { display: block; width: 92px; }
.ft__logo img { width: 100%; height: auto; }
.ft__links { display: flex; gap: 22px; margin-left: auto; }
.ft__links a { color: var(--muted); }
.ft__links a:hover { color: var(--ink); }

/* ---- smaller screens ---- */
@media (max-width: 1099px) {
  .pl, .in { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 44px; }
}
@media (max-width: 759px) {
  .hs { padding-top: 96px; }
  .hs__in { padding: 0 20px; }
  .pl, .in { grid-template-columns: minmax(0, 1fr); gap: 36px; margin-top: 40px; }
  .ab { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .ft { margin-top: 96px; }
  .ft__in { padding: 24px 20px 32px; }
  .ft__links { margin-left: 0; }
}
