/* Install page and public shell. Keep these selectors scoped so the app's
   existing navigation and dense review surfaces retain their geometry. */
.install-page-main {
  width: min(100%, 1040px);
  padding-top: clamp(1.5rem, 4vw, 3.75rem);
}

.install-page {
  width: 100%;
  max-width: 980px;
  margin: 0 auto;
}

.install-hero {
  display: grid;
  grid-template-columns: minmax(7rem, 10rem) minmax(0, 1fr);
  gap: clamp(1.5rem, 5vw, 4.5rem);
  align-items: center;
  padding: clamp(1.4rem, 4vw, 3rem);
  border: 1px solid color-mix(in srgb, var(--accent) 24%, var(--line));
  border-radius: 14px;
  background:
    radial-gradient(420px 230px at 10% 0%, rgba(61, 184, 197, 0.14), transparent 68%),
    linear-gradient(135deg, color-mix(in srgb, var(--panel) 94%, var(--accent)), var(--panel));
  box-shadow: 0 22px 50px rgba(0, 0, 0, 0.28);
}

.install-hero-mark {
  display: grid;
  justify-items: center;
  gap: 1.15rem;
}

.install-hero-mark img {
  display: block;
  width: min(112px, 100%);
  height: auto;
  filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.32));
}

.install-mark-rule {
  width: 3.25rem;
  height: 2px;
  border-radius: 99px;
  background: var(--accent);
  box-shadow: 0 0 20px color-mix(in srgb, var(--accent) 70%, transparent);
}

.install-hero-copy h1 {
  max-width: 16ch;
  margin: 0;
  color: var(--text);
  font-size: clamp(2rem, 5vw, 3.55rem);
  line-height: 1.02;
  letter-spacing: -0.04em;
}

.install-lede {
  max-width: 41rem;
  margin: 1rem 0 0;
  color: var(--muted);
  font-size: clamp(0.98rem, 1.7vw, 1.12rem);
  line-height: 1.58;
}

.install-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  align-items: center;
  margin-top: 1.35rem;
}

.install-actions button,
.install-open-link {
  min-height: 2.7rem;
  padding-inline: 1rem;
}

.install-open-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.install-status {
  min-height: 1.3em;
  margin: 0.85rem 0 0;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.45;
}

.install-status[data-state="success"] { color: #9ce4b2; }
.install-status[data-state="error"] { color: #f0b6b6; }

.install-options {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
  margin-top: 0.85rem;
}

.install-option {
  min-width: 0;
  padding: 1.25rem 1.15rem 1.35rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: color-mix(in srgb, var(--panel) 82%, transparent);
}

.install-option-kicker {
  margin: 0 0 0.7rem;
  color: var(--accent);
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
}

.install-option h2 {
  margin: 0 0 0.6rem;
  font-size: 1rem;
  letter-spacing: 0.01em;
}

.install-option p,
.install-option li {
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.55;
}

.install-option p { margin: 0.55rem 0 0; }
.install-option ol { margin: 0; padding-left: 1.15rem; }
.install-option li + li { margin-top: 0.45rem; }
.install-option strong { color: var(--text); font-weight: 600; }

.install-note {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  max-width: 62rem;
  margin: 1.15rem auto 0;
  padding: 0.85rem 0.95rem;
  border-left: 2px solid var(--accent-line);
  color: var(--muted);
}

.install-note .ico {
  flex: 0 0 auto;
  margin-top: 0.12rem;
  color: var(--accent);
}

.install-note p {
  margin: 0;
  font-size: 0.8rem;
  line-height: 1.5;
}

.sentinel-public-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.45rem 1rem;
  width: min(100% - 2.5rem, 1040px);
  margin: 0 auto;
  padding: 0 0 1.75rem;
  color: var(--muted);
  font-size: 0.76rem;
}

.sentinel-public-footer-identity {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.3rem 1rem;
}

.sentinel-company-credit a {
  display: inline-block;
  min-height: 24px;
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.sentinel-public-footer-links {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.login-install-link {
  margin: 1rem 0 0;
  text-align: center;
  font-size: 0.86rem;
}

.home-install-link {
  margin: 0.65rem 0 0;
}

.home-install-link:has(> a[hidden]) {
  display: none;
}

@media (max-width: 700px) {
  .install-hero {
    grid-template-columns: 1fr;
    gap: 1.35rem;
    text-align: center;
  }

  .install-hero-copy .eyebrow { justify-content: center; width: 100%; }
  .install-hero-copy h1 { margin-inline: auto; }
  .install-lede { margin-inline: auto; }
  .install-actions { justify-content: center; }
  .install-status { text-align: center; }
  .install-options { grid-template-columns: 1fr; }
}

@media (max-width: 380px) {
  .install-page-main { padding-inline: 0.8rem; }
  .install-hero { padding: 1.2rem 0.9rem 1.35rem; }
  .install-hero-copy h1 { font-size: 2rem; }
  .install-actions { align-items: stretch; flex-direction: column; }
  .install-actions button, .install-open-link { width: 100%; }
  .sentinel-public-footer { width: min(100% - 1.6rem, 1040px); }
}

/* Standalone windows need room for the device cutout and home indicator. These
   rules only apply after installation and leave ordinary mobile navigation as-is. */
@media (display-mode: standalone) {
  body {
    padding-left: env(safe-area-inset-left);
    padding-right: env(safe-area-inset-right);
    padding-bottom: env(safe-area-inset-bottom);
  }

  .top {
    padding-top: calc(0.72rem + env(safe-area-inset-top));
  }
}

@media (display-mode: standalone) and (max-width: 900px) {
  .top {
    padding-top: calc(0.28rem + env(safe-area-inset-top));
  }
}
