/* Use the smallest viewport height so mobile browser controls do not cover the hero. */
.landing-page .landing-hero-card {
  min-height: auto;
  grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr);
  align-content: center;
}
.landing-hero-card .landing-copy { min-width: 0; }
.landing-hero-card .landing-copy .product-logo {
  width: auto;
  height: clamp(60px, 14vh, 124px);
  height: clamp(60px, 14svh, 124px);
  max-width: 100%;
  margin-inline: auto;
  object-fit: contain;
  object-position: center;
}
/* Installation remains available below the first-screen content. */
.landing-page > .landing-pwa-panel { margin-top: 16px; }

/* Keep the artwork subtle in dark mode without dimming the hero's content. */
html[data-theme="dark"] .landing-page .landing-hero-card {
  background-color: #0c1928;
  background-image: linear-gradient(115deg, rgba(9, 23, 39, .94), rgba(15, 37, 43, .91)), url('../images/landing-background.jpg');
  border-color: #304455;
  box-shadow: 0 24px 65px rgba(0, 0, 0, .28);
}
html[data-theme="dark"] .landing-hero-card .landing-copy h1 { color: #fff; }
html[data-theme="dark"] .landing-hero-card .landing-copy h1 span {
  background: none;
  color: #86e4b0;
}
html[data-theme="dark"] .landing-hero-card .landing-copy > .eyebrow { color: #86e4b0; }
html[data-theme="dark"] .landing-hero-card .landing-copy > .landing-intro { color: #d2dfeb; }
html[data-theme="dark"] .landing-hero-card .landing-action-row .button { color: #fff; }
html[data-theme="dark"] .landing-hero-card .landing-action-row .button:not(.primary):not(.report-action) {
  background: #192f40;
  border-color: #486071;
}
html[data-theme="dark"] .landing-hero-card .landing-action-row .button:not(.primary):not(.report-action):hover {
  background: #263f51;
  border-color: #86e4b0;
}
html[data-theme="dark"] .landing-hero-card .landing-action-row .report-action {
  background: #3b202a;
  color: #ffb0ba;
  border-color: #c85c70;
}
html[data-theme="dark"] .landing-hero-card .landing-action-row .report-action:hover { background: #4c2935; }
html[data-theme="dark"] .landing-hero-card .workspace-preview {
  background: #172a3b;
  border-color: #40576a;
  box-shadow: 0 24px 65px rgba(0, 0, 0, .25);
}
html[data-theme="dark"] .landing-hero-card .workspace-preview figcaption { color: #d2dfeb; }

@media (max-width: 900px) {
  .landing-page .landing-hero-card {
    grid-template-columns: minmax(0, 1fr);
    padding: clamp(16px, 3svh, 28px) 18px;
  }
  .landing-hero-card .workspace-preview { display: none; }
  .landing-hero-card .landing-copy { width: min(100%, 600px); margin-inline: auto; }
  .landing-hero-card .landing-copy .product-logo {
    height: clamp(56px, 12vh, 96px);
    height: clamp(56px, 12svh, 96px);
    margin-bottom: 8px;
  }
  .landing-hero-card .landing-copy > .eyebrow { margin: 10px 0; font-size: 11px; }
  .landing-hero-card .landing-copy h1 {
    margin: 12px 0;
    font-size: clamp(32px, 10vw, 42px);
    line-height: 1.04;
  }
  .landing-hero-card .landing-copy > p:not(.eyebrow):not(.trust-line) {
    margin: 12px 0;
    font-size: 16px;
    line-height: 1.5;
  }
  .landing-hero-card .landing-action-grid { margin-top: 16px; gap: 7px; }
  .landing-hero-card .landing-action-row { gap: 7px; }
  .landing-hero-card .landing-action-row .button {
    min-height: 44px;
    padding: 10px 8px;
    font-size: 12px;
    line-height: 1.3;
  }
}
@media (max-width: 900px) and (max-height: 700px) {
  .landing-hero-card .landing-copy > p:not(.eyebrow):not(.trust-line) { font-size: 14px; }
  .landing-hero-card .landing-copy h1 { margin-block: 10px; }
  .landing-hero-card .landing-action-grid { margin-top: 12px; }
}
@media (max-width: 700px) {
  .landing-hero-card .landing-copy h1 {
    font-size: clamp(28px, 5.4vh, 40px);
    font-size: clamp(28px, 5.4svh, 40px);
    margin-block: 10px;
  }
  .landing-hero-card .landing-action-row { grid-template-columns: minmax(0, 1fr); }
  .landing-hero-card .landing-action-row .button {
    width: 100%;
    min-height: clamp(48px, 7vh, 56px);
    min-height: clamp(48px, 7svh, 56px);
    padding: 12px;
    font-size: 15px;
    line-height: 1.25;
  }
  .landing-hero-card .landing-entry-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: stretch;
  }
  .landing-hero-card .landing-entry-actions .button {
    min-width: 0;
    padding-inline: 8px;
    font-size: 14px;
    white-space: normal;
    overflow-wrap: anywhere;
  }
}
@media (max-width: 700px) and (max-height: 600px) {
  .landing-page .landing-hero-card { padding-block: 8px; }
  .landing-hero-card .landing-copy .product-logo {
    max-height: 8vh;
    max-height: 8svh;
    margin-bottom: 0;
  }
  .landing-hero-card .landing-copy > .eyebrow {
    margin-block: 4px;
    font-size: 9.5px;
    letter-spacing: .1em;
  }
  .landing-hero-card .landing-copy h1 { margin-block: 4px; font-size: 26px; }
  .landing-hero-card .landing-copy > p:not(.eyebrow):not(.trust-line) { margin-block: 6px; font-size: 13px; line-height: 1.35; }
  .landing-hero-card .landing-action-grid { margin-top: 6px; gap: 6px; }
  .landing-hero-card .landing-action-row { gap: 6px; }
  .landing-hero-card .landing-action-row .button { min-height: 44px; padding-block: 10px; }
}
@media (max-width: 600px) and (max-height: 800px) {
  .landing-quick-actions { flex-direction: row; }
}

/* Keep the demo gateway separate from the existing paired sign-in actions. */
.landing-hero-card .landing-demo-entry { grid-template-columns: minmax(0, 1fr); }
