/* Shared install surface for the Universal Lens and its standalone experiences. */
.install-hub {
  --install-surface: rgba(19, 23, 19, .94);
  --install-surface-deep: rgba(9, 13, 10, .96);
  --install-ink: #f3f0e7;
  --install-muted: #aeb4a8;
  --install-line: rgba(173, 196, 174, .24);
  --install-gold: #d7a66d;
  --install-green: #8eb5a2;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border: 1px solid var(--install-line);
  border-radius: 22px;
  background:
    radial-gradient(circle at 83% 7%, rgba(142, 181, 162, .18), transparent 29%),
    radial-gradient(circle at 8% 96%, rgba(215, 166, 109, .13), transparent 34%),
    linear-gradient(135deg, var(--install-surface), var(--install-surface-deep));
  color: var(--install-ink);
  box-shadow: 0 26px 70px rgba(0, 0, 0, .26);
}

.install-hub::before,
.install-hub::after {
  content: "";
  position: absolute;
  z-index: -1;
  border: 1px solid rgba(142, 181, 162, .17);
  border-radius: 50%;
  pointer-events: none;
}

.install-hub::before {
  width: 310px;
  height: 310px;
  right: -122px;
  top: -148px;
  box-shadow: 0 0 0 36px rgba(142, 181, 162, .025), 0 0 0 78px rgba(142, 181, 162, .018);
}

.install-hub::after {
  width: 128px;
  height: 128px;
  left: -64px;
  bottom: -72px;
  border-color: rgba(215, 166, 109, .2);
}

.install-hub-home {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(300px, .9fr);
  gap: clamp(30px, 5vw, 70px);
  margin-top: 58px;
  padding: clamp(30px, 4.5vw, 58px);
}

.install-hub-compact {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(240px, .56fr);
  gap: 24px;
  width: min(900px, calc(100% - 40px));
  margin: 24px auto 0;
  padding: 22px 24px;
}

.install-copy {
  min-width: 0;
}

.install-entry {
  margin: 13px 0 0;
  font: 9px/1.55 var(--mono, monospace);
  letter-spacing: .07em;
  text-transform: uppercase;
}

.install-entry a {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  padding-bottom: 3px;
  border-bottom: 1px solid rgba(142, 181, 162, .38);
  color: var(--install-green, #8eb5a2);
  text-decoration: none;
  transition: color .2s ease, border-color .2s ease;
}

.install-entry a:is(:hover, :focus-visible) {
  border-color: currentColor;
  color: var(--install-gold, #d7a66d);
  outline: none;
}

.install-entry a:focus-visible {
  outline: 2px solid var(--install-green, #8eb5a2);
  outline-offset: 4px;
}

.install-entry span {
  font-size: 12px;
}

.work .install-hub-home {
  margin-bottom: 8px;
}

.install-eyebrow {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 15px;
  color: var(--install-green);
  font: 9px/1.4 var(--mono, monospace);
  letter-spacing: .17em;
  text-transform: uppercase;
}

.install-eyebrow span {
  width: 7px;
  height: 7px;
  flex: none;
  border-radius: 50%;
  background: var(--install-green);
  box-shadow: 0 0 0 5px rgba(142, 181, 162, .1), 0 0 18px rgba(142, 181, 162, .5);
  animation: install-pulse 3.2s ease-in-out infinite;
}

.install-copy h2,
.install-copy h3 {
  max-width: 680px;
  margin: 0;
  color: var(--install-ink);
  font-family: var(--serif, Georgia, serif);
  font-size: clamp(34px, 4.8vw, 64px);
  font-weight: 400;
  line-height: .96;
  letter-spacing: -.045em;
}

.install-hub-compact .install-copy h2 {
  font-size: clamp(27px, 3.5vw, 42px);
  line-height: 1;
}

.install-copy h2 em,
.install-copy h3 em {
  color: var(--install-gold);
  font-weight: 400;
}

.install-lede {
  max-width: 610px;
  margin: 18px 0 0;
  color: var(--install-muted);
  font-size: 13px;
  line-height: 1.8;
}

.install-primary {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px 18px;
  margin-top: 25px;
}

.install-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 46px;
  padding: 12px 18px;
  border: 1px solid rgba(215, 166, 109, .72);
  border-radius: 999px;
  background: linear-gradient(135deg, #d7a66d, #efd3aa);
  color: #17130e;
  font: 10px/1.2 var(--mono, monospace);
  font-weight: 500;
  letter-spacing: .075em;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 10px 30px rgba(215, 166, 109, .18);
  transition: transform .2s ease, box-shadow .2s ease, filter .2s ease;
}

.install-button:is(:hover, :focus-visible) {
  transform: translateY(-2px);
  filter: brightness(1.05);
  box-shadow: 0 14px 36px rgba(215, 166, 109, .26);
}

.install-button:focus-visible,
.install-app-link:focus-visible {
  outline: 2px solid var(--install-green);
  outline-offset: 4px;
}

.install-button[aria-busy="true"] {
  cursor: wait;
  opacity: .72;
}

.install-route-link {
  color: var(--install-muted);
  font: 9px/1.5 var(--mono, monospace);
  letter-spacing: .08em;
  text-transform: uppercase;
  text-underline-offset: 4px;
}

.install-route-link:hover {
  color: var(--install-ink);
}

.install-status {
  min-height: 1.5em;
  margin: 13px 0 0;
  color: var(--install-green);
  font-size: 11px;
  line-height: 1.55;
}

.install-manual {
  display: grid;
  gap: 7px;
  max-width: 620px;
  margin-top: 14px;
  padding: 15px 17px;
  border: 1px solid rgba(142, 181, 162, .2);
  border-radius: 12px;
  background: rgba(142, 181, 162, .055);
  color: var(--install-muted);
  font-size: 11px;
  line-height: 1.65;
}

.install-manual[hidden] {
  display: none;
}

.install-manual strong {
  color: var(--install-ink);
  font-weight: 500;
}

.install-manual b {
  color: var(--install-gold);
  font-weight: 500;
}

.install-options {
  display: grid;
  align-content: center;
  gap: 10px;
}

.install-option-heading {
  margin: 0 0 4px;
  color: var(--install-muted);
  font: 8px/1.4 var(--mono, monospace);
  letter-spacing: .16em;
  text-transform: uppercase;
}

.install-app-link {
  display: grid;
  grid-template-columns: 34px 1fr auto;
  align-items: center;
  gap: 3px 12px;
  min-height: 66px;
  padding: 12px 14px;
  border: 1px solid var(--install-line);
  border-radius: 14px;
  background: rgba(255, 255, 255, .025);
  color: var(--install-ink);
  text-decoration: none;
  transition: transform .2s ease, border-color .2s ease, background-color .2s ease;
}

.install-app-link:is(:hover, :focus-visible) {
  transform: translateX(3px);
  border-color: rgba(215, 166, 109, .52);
  background: rgba(215, 166, 109, .065);
}

.install-option-number {
  grid-row: 1 / span 2;
  color: var(--install-gold);
  font: 10px/1 var(--mono, monospace);
}

.install-app-link strong {
  font-family: var(--serif, Georgia, serif);
  font-size: 20px;
  font-weight: 400;
  letter-spacing: -.02em;
}

.install-app-link small {
  grid-column: 2;
  color: var(--install-muted);
  font-size: 10px;
  line-height: 1.45;
}

.install-app-link > span:last-child {
  grid-column: 3;
  grid-row: 1 / span 2;
  color: var(--install-green);
  font: 13px/1 var(--mono, monospace);
}

.install-hub-compact .install-primary {
  justify-content: flex-end;
  margin-top: 0;
}

.install-hub-compact .install-status,
.install-hub-compact .install-manual {
  grid-column: 1 / -1;
}

html[data-theme="light"] .install-hub {
  --install-surface: rgba(248, 245, 236, .97);
  --install-surface-deep: rgba(231, 236, 227, .97);
  --install-ink: #20251f;
  --install-muted: #5f685e;
  --install-line: rgba(77, 104, 84, .24);
  --install-gold: #8d5d28;
  --install-green: #315e49;
  box-shadow: 0 24px 60px rgba(59, 60, 50, .12);
}

html[data-theme="light"] .install-button {
  background: linear-gradient(135deg, #865823, #9b652d);
  color: #fff;
  font-weight: 600;
}

html[data-theme="light"] .install-button:is(:hover, :focus-visible) {
  filter: none;
}

html[data-theme="light"] .install-entry {
  font-size: 10px;
  line-height: 1.6;
  letter-spacing: .055em;
}

html[data-theme="light"] .install-entry a {
  color: #315e49;
  border-bottom-color: rgba(49, 94, 73, .55);
}

@keyframes install-pulse {
  0%, 100% { transform: scale(.9); opacity: .7; }
  50% { transform: scale(1.18); opacity: 1; }
}

.install-offer {
  --install-offer-surface: rgba(15, 19, 15, .97);
  --install-offer-ink: #f3f0e7;
  --install-offer-muted: #b8bdb3;
  --install-offer-line: rgba(174, 197, 176, .25);
  --install-offer-gold: #d7a66d;
  position: fixed;
  right: max(18px, env(safe-area-inset-right));
  bottom: max(18px, env(safe-area-inset-bottom));
  z-index: 1200;
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  gap: 15px;
  width: min(430px, calc(100vw - 36px));
  padding: 18px;
  border: 1px solid var(--install-offer-line);
  border-radius: 18px;
  background:
    radial-gradient(circle at 100% 0, rgba(142, 181, 162, .18), transparent 40%),
    linear-gradient(145deg, rgba(20, 25, 20, .98), var(--install-offer-surface));
  color: var(--install-offer-ink);
  box-shadow: 0 24px 70px rgba(0, 0, 0, .42), inset 0 1px rgba(255, 255, 255, .04);
  animation: install-offer-arrive .38s cubic-bezier(.2, .7, .25, 1) both;
}

.install-offer[hidden] {
  display: none;
}

.install-offer-icon {
  box-sizing: border-box;
  width: 52px;
  height: 52px;
  padding: 3px;
  border: 1px solid var(--install-offer-line);
  border-radius: 14px;
  background: #10110f;
  object-fit: contain;
  object-position: center;
  box-shadow: 0 8px 22px rgba(0, 0, 0, .24);
}

.install-offer-copy {
  min-width: 0;
}

.install-offer-eyebrow {
  margin: 0 0 5px;
  color: var(--install-offer-green, #8eb5a2);
  font: 8px/1.4 var(--mono, monospace);
  letter-spacing: .16em;
  text-transform: uppercase;
}

.install-offer-title {
  margin: 0;
  color: var(--install-offer-ink);
  font: 400 clamp(22px, 3vw, 28px)/1.05 var(--serif, Georgia, serif);
  letter-spacing: -.025em;
}

.install-offer-body {
  margin: 7px 0 0;
  color: var(--install-offer-muted);
  font-size: 11px;
  line-height: 1.55;
}

.install-offer-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 9px 13px;
  margin-top: 13px;
}

.install-offer-button {
  min-height: 40px;
  padding: 9px 14px;
  font-size: 9px;
}

.install-offer-dismiss {
  padding: 8px 3px;
  border: 0;
  background: transparent;
  color: var(--install-offer-muted);
  font: 9px/1.4 var(--mono, monospace);
  letter-spacing: .07em;
  text-decoration: underline;
  text-decoration-color: transparent;
  text-underline-offset: 4px;
  cursor: pointer;
}

.install-offer-dismiss:is(:hover, :focus-visible) {
  color: var(--install-offer-ink);
  text-decoration-color: currentColor;
}

.install-offer-dismiss:focus-visible {
  outline: 2px solid var(--install-green);
  outline-offset: 3px;
  border-radius: 3px;
}

.install-offer-status {
  margin-top: 8px;
  color: var(--install-offer-green, #8eb5a2);
  font-size: 10px;
}

.install-offer-manual {
  max-height: 180px;
  margin-top: 10px;
  overflow: auto;
}

html[data-theme="light"] .install-offer {
  --install-offer-surface: rgba(246, 243, 233, .98);
  --install-offer-ink: #20251f;
  --install-offer-muted: #5f685e;
  --install-offer-line: rgba(77, 104, 84, .25);
  --install-offer-gold: #8d5d28;
  --install-offer-green: #315e49;
  background:
    radial-gradient(circle at 100% 0, rgba(80, 127, 101, .14), transparent 40%),
    linear-gradient(145deg, rgba(252, 249, 240, .99), var(--install-offer-surface));
  box-shadow: 0 22px 60px rgba(43, 47, 39, .18), inset 0 1px rgba(255, 255, 255, .75);
}

html[data-theme="light"] .install-offer-icon {
  background: #f6f3e9;
}

html[data-theme="light"] .install-offer-eyebrow {
  font-size: 9px;
  font-weight: 600;
}

html[data-theme="light"] .install-offer-dismiss {
  font-size: 10px;
}

html[data-theme="light"] .install-offer-status {
  font-size: 11px;
  font-weight: 500;
}

html[data-theme="light"] .install-offer-button {
  min-height: 42px;
  font-size: 10px;
}

html[data-theme="light"] .install-option-heading {
  font-size: 9px;
}

@keyframes install-offer-arrive {
  from { transform: translateY(14px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

@media (max-width: 760px) {
  .install-hub-home,
  .install-hub-compact {
    grid-template-columns: 1fr;
  }

  .install-hub-home {
    margin-top: 42px;
    padding: 28px 23px;
  }

  .install-hub-compact {
    width: calc(100% - 28px);
    padding: 22px 19px;
  }

  .install-hub-compact .install-primary {
    justify-content: flex-start;
    margin-top: 20px;
  }

  .install-copy h2,
  .install-copy h3 {
    font-size: clamp(34px, 11vw, 50px);
  }

  .install-app-link {
    grid-template-columns: 28px 1fr auto;
  }
}

@media (max-width: 430px) {
  .install-primary {
    align-items: stretch;
    flex-direction: column;
  }

  .install-button {
    width: 100%;
    min-height: 50px;
  }

  .install-route-link {
    text-align: center;
  }

  .install-offer {
    right: 12px;
    bottom: max(12px, env(safe-area-inset-bottom));
    left: 12px;
    grid-template-columns: 44px minmax(0, 1fr);
    gap: 12px;
    width: auto;
    padding: 16px;
    border-radius: 16px;
  }

  .install-offer-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
  }

  .install-offer-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .install-offer-button {
    width: 100%;
    min-height: 46px;
  }

  .install-offer-dismiss {
    min-height: 36px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .install-eyebrow span {
    animation: none;
  }

  .install-button,
  .install-app-link {
    transition: none;
  }

  .install-offer {
    animation: none;
  }
}
