/* Anno XL — onboard.css
   Home screen, then notifications. Same idiom as the roll: full-bleed sea ink
   over a darkened aerial, Zodiak display, cut corners, marigold for the one
   thing you're meant to press.                                             */

/* Skirted, not height-sized (see --skirt in base.css): this panel has to
   OBSCURE the photograph behind it whatever the viewport resolves to; a
   viewport-unit height went stale on a real iPhone and let the aerial show
   underneath. The skirt is folded into padding-bottom so the card stays
   optically centred on the actual screen. */
.ob {
  position: fixed; top: 0; left: 0; right: 0; z-index: 92;
  bottom: calc(-1 * var(--skirt));   /* above #loader (90), under the grain */
  background: var(--ink);
  display: flex; align-items: center; justify-content: center;
  padding: max(24px, env(safe-area-inset-top)) 20px calc(24px + env(safe-area-inset-bottom) + var(--skirt));
  transition: opacity .46s var(--ease-soft);
}
.ob[hidden] { display: none; }
.ob.gone { opacity: 0; pointer-events: none; }

.ob::before {
  content: '';
  position: absolute; inset: 0;
  background: url('../assets/photos/aerial-gate.webp') center/cover no-repeat;
  filter: brightness(.26) saturate(.7);
}
.ob::after {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(90% 70% at 50% 46%, rgba(12, 33, 38, .5), rgba(12, 33, 38, .95) 78%);
}

.ob-inner {
  position: relative; z-index: 1;
  width: min(420px, 100%);
  text-align: center;
}

.ob-eyebrow {
  font: 600 9.5px/1 var(--sans);
  letter-spacing: .38em; text-indent: .38em;
  text-transform: uppercase;
  color: var(--gold);
}
.ob-title {
  margin-top: 14px;
  font: 400 clamp(26px, 7.5vw, 34px)/1.08 var(--serif);
  color: var(--bone);
  letter-spacing: -.01em;
}
.ob-body {
  margin: 12px auto 0;
  max-width: 34ch;
  font: 400 14px/1.62 var(--sans);
  color: rgba(231, 217, 189, .78);
}
.ob-foot {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid rgba(231, 217, 189, .16);
  font: 400 11.5px/1.5 var(--sans);
  color: rgba(231, 217, 189, .45);
}

/* the app tile */
.ob-tile { margin: 22px 0 4px; display: flex; flex-direction: column; align-items: center; gap: 7px; }
.ob-tile span {
  width: 58px; height: 58px; overflow: hidden;
  clip-path: var(--cut-s);
  box-shadow: 0 6px 20px rgba(4, 14, 17, .55);
}
.ob-tile img { width: 100%; height: 100%; }
.ob-tile small {
  font: 400 10px/1 var(--sans);
  letter-spacing: .12em;
  color: rgba(231, 217, 189, .6);
}

/* the two iOS steps */
.ob-steps {
  margin: 18px auto 0; padding: 0;
  width: min(330px, 100%);
  list-style: none; text-align: left;
  border: 1px solid rgba(231, 217, 189, .2);
  clip-path: var(--cut-s);
}
.ob-steps li {
  display: flex; align-items: center; gap: 13px;
  padding: 13px 15px;
  background: rgba(9, 26, 31, .55);
  font: 400 12.5px/1.4 var(--sans);
  color: rgba(231, 217, 189, .85);
}
.ob-steps li + li { border-top: 1px solid rgba(231, 217, 189, .12); }
.ob-n {
  flex: none; width: 26px;
  font: 700 12px/1 var(--serif);
  color: var(--gold);
}

/* buttons */
.ob-cta {
  display: block; width: min(330px, 100%);
  margin: 18px auto 0;
  padding: 15px 0;
  background: var(--gold);
  color: #16262b;
  font: 700 11px/1 var(--sans);
  letter-spacing: .24em; text-indent: .24em;
  text-transform: uppercase;
  clip-path: var(--cut-s);
  transition: filter .2s;
}
.ob-cta:hover { filter: brightness(1.08); }
.ob-outline {
  background: none;
  border: 1px solid var(--gold);
  color: var(--gold);
}
.ob-quiet {
  margin-top: 10px;
  padding: 8px 0;
  background: none;
  clip-path: none;
  font: 400 italic 13px/1 var(--serif);
  letter-spacing: 0; text-indent: 0; text-transform: none;
  color: rgba(231, 217, 189, .5);
}
.ob-quiet:hover { color: var(--sand); filter: none; }

/* points at Safari's share button — bottom centre on iPhone, top right on iPad */
.ob-point {
  position: absolute; z-index: 2;
  left: 50%; bottom: calc(env(safe-area-inset-bottom) + 6px);
  transform: translateX(-50%);
  color: var(--gold);
}
.ob-point svg { width: 30px; height: 30px; animation: obNudge 1.6s ease-in-out infinite; }
.ob-point.top-right {
  left: auto; right: 14px;
  bottom: auto; top: calc(env(safe-area-inset-top) + 6px);
  transform: rotate(180deg);
}
@keyframes obNudge {
  0%, 100% { transform: translateY(0); opacity: .55; }
  50%      { transform: translateY(7px); opacity: 1; }
}

@media (max-height: 620px) {
  .ob-tile { margin-top: 14px; }
  .ob-steps li { padding: 10px 13px; }
  .ob-cta { margin-top: 12px; padding: 13px 0; }
}

/* A big screen with a mouse: the phone-width card floats undersized in the
   middle of a monitor. Let it breathe — wider measure, slightly larger type,
   buttons that don't span the full card. */
@media (min-width: 900px) and (pointer: fine) {
  .ob-inner { width: min(540px, 100%); }
  .ob-title { font-size: 38px; }
  .ob-body { max-width: 46ch; font-size: 15px; }
  .ob-foot { max-width: 46ch; margin-left: auto; margin-right: auto; }
  .ob-cta { width: min(340px, 100%); }
}
