/* The six navigation landing pages share one hero system. See 05-components.md. */
.ol-shell {
  box-sizing: border-box;
  width: 100%;
  max-width: var(--olne-container);
  padding-inline: var(--olne-gutter);
  margin-inline: auto;
}
.ol-page-crumbs { padding-top: 12px; padding-bottom: 0; }
.ol-page-crumbs .ol-crumbs { margin: 0; font-size: var(--olne-fs-meta); line-height: var(--olne-lh-body); }
.ol-page-crumbs .ol-crumbs a { padding-inline: 0; }
.ol-hero {
  --ol-hero-ground: var(--olne-bg);
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 48px;
  padding-top: 48px;
  padding-bottom: 64px;
  color: var(--olne-ink);
  font-family: var(--olne-font-body);
}
.ol-hero--home { --ol-hero-ground: var(--olne-surface); }
.ol-hero:not(.ol-hero--media) { padding-bottom: 0; }
.ol-hero:not(.ol-hero--media) + .ol-page-chips { padding-top: 48px; }
body[data-hero-page="learn"] .ol-hero:not(.ol-hero--media) + .lt-cover { padding-top: 48px; }
.ol-hero--media { grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); }
.ol-hero__copy { min-width: 0; }
.ol-hero .ol-hero__title {
  font-family: var(--olne-font-display);
  font-size: 40px;
  line-height: 1.4;
  font-weight: 600;
  margin: 0 0 24px;
  color: var(--olne-ink);
  letter-spacing: normal;
}
.ol-hero--home .ol-hero__title { font-size: clamp(2.125rem, 1.4rem + 2.6vw, 3.25rem); }
.ol-hero .ol-hero__lead { margin: 0; max-width: 34em; font-size: 18px; line-height: 1.8; color: var(--olne-ink); }
.ol-hero .ol-hero__description { margin: 16px 0 0; max-width: 34em; font-size: 16px; line-height: 1.8; color: var(--olne-ink-2); }
.ol-hero .ol-app { margin: 32px 0 0; }
.ol-hero .ol-app__row { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; }
.ol-hero .ol-app__badges { justify-content: flex-start; }
.ol-hero .ol-app__qr { display: flex; margin: 0; }
.ol-hero .ol-hero__sub { margin: 24px 0 0; }
.ol-hero .ol-hero__media { min-width: 0; margin: 0; display: flex; flex-direction: column; align-self: stretch; }
.ol-hero__crop {
  --ol-hero-phone-inset: min(120px, max(0px, calc(100% - 320px)));
  flex: none; height: 400px; position: relative; overflow: hidden;
}
.ol-hero__phone {
  box-sizing: border-box; position: absolute; top: 0;
  right: min(120px, max(0px, calc(100% - 320px)));
  width: 320px; height: 100%; margin: 0;
  border: 1px solid var(--olne-line); border-radius: 28px;
  overflow: hidden; background: var(--olne-surface); z-index: 1;
}
/* Opaque phone + ground-colour overlay: the rear phone never shows through. */
.ol-hero__phone::after {
  content: ""; position: absolute; left: -1px; right: -1px; bottom: -1px;
  height: 70px; pointer-events: none; z-index: 2;
  background: linear-gradient(to bottom, transparent, var(--ol-hero-ground));
}
.ol-hero__phone img { display: block; width: 100%; height: auto; max-width: none; }
.ol-hero__phone--back { right: 0; width: 232px; top: 56px; height: calc(100% - 80px); z-index: 0; }
.ol-hero .ol-hero__note {
  width: max-content; max-width: none; white-space: nowrap;
  margin: 16px 0 0 max(0px, calc(100% - 320px - min(120px, max(0px, calc(100% - 320px)))));
  font-size: 14px; color: var(--olne-ink-2); line-height: 1.8;
}
.ol-page-chips { padding-top: 32px; padding-bottom: 0; }
.ol-page-chips .ol-chips { margin: 0; justify-content: flex-start; }
.ol-content-shell--text > * { max-width: 44rem; margin-left: 0; margin-right: auto; }
/* Reading sections keep their reading width and begin at the shared left edge. */
body[data-hero-page] .lt-cover .lt-shell,
body[data-hero-page] .lt-shell,
body[data-hero-page] .pdh-shell { box-sizing: border-box; max-width: var(--olne-container); width: 100%; padding-inline: var(--olne-gutter); margin-inline: auto; }
body[data-hero-page] .pdh-shell > .ol-shell { padding-inline: 0; }
body[data-hero-page] .pdh-section,
body[data-hero-page] .pdh-guide,
body[data-hero-page] .pdh-guide-h { max-width: 44rem; margin-left: 0; margin-right: auto; }
body[data-hero-page="learn"] .lt-shell > :not(.ol-hero) { max-width: 64rem; margin-left: 0; margin-right: auto; }
body[data-hero-page="learn"] .lt-cover { padding-top: 0; }
@media (max-width: 899.98px) {
  .ol-hero { display: flex; flex-direction: column; gap: 0; padding-top: 32px; padding-bottom: 48px; }
  .ol-hero .ol-hero__title { font-size: 28px; }
  .ol-hero--home .ol-hero__title { font-size: clamp(2.125rem, 1.4rem + 2.6vw, 3.25rem); }
  .ol-hero .ol-hero__lead { font-size: 17px; }
  .ol-hero__copy { display: contents; }
  .ol-hero__copy > * { order: 1; }
  .ol-hero .ol-hero__media { order: 2; margin-top: 32px; }
  .ol-hero .ol-hero__sub { order: 1; margin-top: 16px; }
  .ol-hero .ol-hero__note { width: min(320px, 100%); margin-inline: auto; white-space: normal; text-wrap: balance; }
  .ol-hero:not(.ol-hero--media) { padding-bottom: 0; }
  .ol-hero:not(.ol-hero--media) + .ol-page-chips,
  body[data-hero-page="learn"] .ol-hero:not(.ol-hero--media) + .lt-cover { padding-top: 32px; }
  .ol-hero .ol-app__qr { display: none; }
  .ol-hero__crop { flex: none; height: 380px; }
  .ol-hero__phone { right: auto; left: 50%; transform: translateX(-50%); width: min(320px, 100%); }
  .ol-hero__phone--back { display: none; }
  .ol-hero__phone:has(+ .ol-hero__phone) { right: auto; }
}
@media (max-width: 900px) {
  .ol-shell, body[data-hero-page] .lt-cover .lt-shell,
  body[data-hero-page] .lt-shell, body[data-hero-page] .pdh-shell { padding-inline: var(--olne-gutter-mobile); }
}
@media (max-width: 600px) {
  .ol-hero__crop { height: 320px; }
}
