/* The App page, and the Copernix app's screens rebuilt for the web: the peer rescue simulator and the
   distress guide. Every .cpx-* measure is in iOS points on a 402 × 874 iPhone 17 screen, then scaled
   to fit, so the screens lay out exactly as in the app (CopernixTheme.swift). */

/* MARK: Page */

.app-hero { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: clamp(32px, 5vw, 72px); align-items: center; padding-block: clamp(48px, 7vw, 96px); }
.app-hero-shots { display: flex; justify-content: center; align-items: flex-end; gap: clamp(12px, 2vw, 22px); }
.app-hero-shots .shot { width: min(46%, 270px); }
.app-hero-shots .shot:first-child { transform: translateY(-28px); }
@media (max-width: 900px) { .app-hero { grid-template-columns: minmax(0, 1fr); } }

/* A real screenshot in a phone frame */
.shot { margin: 0; position: relative; }
.shot-device { position: relative; padding: 2.6%; border-radius: 13% / 6%; background: linear-gradient(160deg, #2b2f34 0%, #17191c 45%, #101113 100%); box-shadow: 0 30px 60px rgba(0, 0, 0, 0.45), inset 0 0 0 1px #3a4048; }
.shot-device img { width: 100%; height: auto; aspect-ratio: 603 / 1311; border-radius: 11% / 5.1%; background: #0B1016; }
.shot figcaption { margin-top: 14px; font-family: var(--mono); font-size: 11.5px; letter-spacing: 1.2px; text-transform: uppercase; color: var(--faint); text-align: center; }

.store-row { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.store-row .qr { display: flex; align-items: center; gap: 12px; padding: 8px 14px 8px 8px; background: #fff; color: var(--light-text); text-decoration: none; }
.store-row .qr img { width: 64px; height: 64px; }
.store-row .qr span { font-family: var(--mono); font-size: 11px; line-height: 1.45; max-width: 9em; }

.feature { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(32px, 6vw, 88px); align-items: center; }
.feature--flip > :first-child { order: 2; }
.feature .shot { width: min(100%, 320px); justify-self: center; }
.feature ul { margin: 0; padding-left: 1.1em; color: var(--muted); display: grid; gap: 8px; }
.feature ul strong { color: var(--text); font-weight: 500; }
@media (max-width: 860px) { .feature { grid-template-columns: minmax(0, 1fr); } .feature--flip > :first-child { order: 0; } }

.flow { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); counter-reset: flow; }
.flow li { background: var(--bg-2); padding: 24px 22px 26px; display: flex; flex-direction: column; gap: 10px; }
.flow .index { font-family: var(--mono); font-size: 13px; color: var(--bad); }
.flow h3 { font-size: 1.12rem; font-weight: 600; line-height: 1.3; }
.flow p { font-size: 15px; color: var(--muted); }
@media (max-width: 1000px) { .flow { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .flow { grid-template-columns: minmax(0, 1fr); } }

.eyebrow--bad { color: var(--bad); }
.sent-table { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.sent-table > div { background: var(--bg); padding: 22px 24px; display: flex; flex-direction: column; gap: 10px; }
.band--alt .sent-table > div { background: var(--bg-2); }
.sent-table h3 { font-family: var(--mono); font-size: 12px; font-weight: 500; letter-spacing: 1.2px; text-transform: uppercase; }
.sent-table .yes h3 { color: var(--signal); }
.sent-table .no h3 { color: var(--faint); }
.sent-table ul { margin: 0; padding-left: 1.1em; color: var(--muted); font-size: 15.5px; display: grid; gap: 6px; }
@media (max-width: 700px) { .sent-table { grid-template-columns: minmax(0, 1fr); } }

/* MARK: The simulator's layout */

.rescue { display: grid; grid-template-columns: minmax(250px, 330px) minmax(0, 1fr) minmax(250px, 330px); gap: clamp(16px, 2vw, 28px); align-items: start; }
.rescue-col { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.rescue-col > .mono { font-size: 11.5px; letter-spacing: 1.2px; text-transform: uppercase; color: var(--faint); display: flex; align-items: center; gap: 8px; }
.rescue-col > .mono i { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }
.rescue-tools { display: flex; flex-wrap: wrap; gap: 8px; }
.rescue-tools button, .map-tools button { font: 500 14px var(--body); color: var(--text); background: var(--panel); border: 1px solid var(--line-2); padding: 0 14px; min-height: 40px; cursor: pointer; }
.rescue-tools button:hover, .map-tools button:hover { border-color: var(--text-2); }
.rescue-tools button[aria-pressed="true"], .map-tools button[aria-pressed="true"] { background: var(--text); color: var(--bg); border-color: var(--text); }
.rescue-map { position: relative; border: 1px solid var(--line); background: #0E1820; touch-action: none; }
.rescue-map canvas { display: block; width: 100%; aspect-ratio: 4 / 3; cursor: crosshair; }
.rescue-map canvas:focus-visible { outline: 2px solid var(--signal); outline-offset: 2px; }
.map-tools { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.map-tools .hint { font-size: 13px; color: var(--faint); margin-left: auto; }
.map-readouts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border: 1px solid var(--line); }
.map-readouts > div { padding: 10px 14px; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.map-readouts > div + div { border-left: 1px solid var(--line); }
.map-readouts .mono { font-size: 10.5px; letter-spacing: 1.1px; text-transform: uppercase; color: var(--faint); }
.map-readouts strong { font-size: 15px; font-weight: 500; font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rescue-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); margin-bottom: 20px; }
.rescue-steps li { background: var(--bg); padding: 14px 16px; display: flex; flex-direction: column; gap: 4px; font-size: 14px; color: var(--muted); position: relative; }
.rescue-steps li .n { font-family: var(--mono); font-size: 11.5px; letter-spacing: 1px; color: var(--faint); }
.rescue-steps li b { color: var(--text); font-weight: 600; font-size: 14.5px; }
.rescue-steps li.is-current { background: var(--panel); box-shadow: inset 0 2px 0 var(--signal); }
.rescue-steps li.is-current .n { color: var(--signal); }
.rescue-steps li.is-done .n { color: var(--ok); }
.rescue-steps li.is-done .n::after { content: ' ✓'; }
.rescue-bar { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: flex-end; }
.rescue-bar p { color: var(--muted); font-size: 15px; max-width: 60em; }
.rescue-done[hidden] { display: none; }
.rescue-done { flex: 1; min-width: 260px; padding: 12px 16px; border: 1px solid #3F8F5F; background: rgba(127, 209, 158, 0.08); color: var(--text); margin-bottom: 14px; }
@media (max-width: 1100px) {
  .rescue { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rescue-map-col { grid-column: 1 / -1; order: -1; }
  .rescue-steps { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 620px) {
  .rescue { grid-template-columns: minmax(0, 1fr); }
  .rescue-col.phone-col { max-width: 360px; width: 100%; justify-self: center; }
  .rescue-steps { grid-template-columns: minmax(0, 1fr); }
  /* Only the step to do now, so the map stays close */
  .rescue-steps li:not(.is-current) { display: none; }
  .map-readouts { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .map-readouts > div:nth-child(3) { grid-column: 1 / -1; border-left: 0; border-top: 1px solid var(--line); }
}

.guide-stage { display: grid; grid-template-columns: minmax(0, 1fr) minmax(260px, 340px); gap: clamp(28px, 5vw, 72px); align-items: start; }
.guide-stage .phone-col { position: sticky; top: 100px; }
.guide-steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.guide-steps button { width: 100%; display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 2px 10px; text-align: left; font: inherit; color: var(--text); background: transparent; border: 1px solid transparent; border-left: 2px solid var(--line); padding: 12px 16px; cursor: pointer; }
.guide-steps button:hover { border-color: var(--line-2); border-left-color: var(--line-2); }
.guide-steps button[aria-current="step"] { background: var(--panel); border-color: var(--line-2); border-left-color: var(--bad); }
.guide-steps .mono { font-size: 12px; color: var(--faint); padding-top: 3px; }
.guide-steps button[aria-current="step"] .mono { color: var(--bad); }
.guide-steps strong { font-size: 1rem; font-weight: 600; }
@media (max-width: 860px) { .guide-stage { grid-template-columns: minmax(0, 1fr); } .guide-stage .phone-col { position: relative; top: 0; order: -1; max-width: 340px; width: 100%; justify-self: center; } }

/* MARK: The phone */

.cpx-device { --s: 1; position: relative; width: 100%; aspect-ratio: 426 / 898; border-radius: 15.5% / 7.3%; padding: 2.8%; background: linear-gradient(160deg, #2e3238 0%, #191b1f 45%, #0f1012 100%); box-shadow: 0 28px 56px rgba(0, 0, 0, 0.5), inset 0 0 0 1px #3a4048; transition: transform 0.2s; }
.cpx-device.is-ringing { animation: cpx-shake 0.9s ease-in-out infinite; }
@keyframes cpx-shake { 0%, 40%, 100% { transform: rotate(0); } 8% { transform: rotate(-1.4deg); } 16% { transform: rotate(1.4deg); } 24% { transform: rotate(-1deg); } 32% { transform: rotate(0.8deg); } }
@media (prefers-reduced-motion: reduce) { .cpx-device.is-ringing { animation: none; box-shadow: 0 0 0 3px var(--bad), 0 28px 56px rgba(0, 0, 0, 0.5); } }
.cpx-viewport { position: relative; width: 100%; height: 100%; overflow: hidden; border-radius: 13.6% / 6.3%; background: #000; }
.cpx-scr { position: absolute; left: 0; top: 0; width: 402px; height: 874px; transform: scale(var(--s)); transform-origin: 0 0; overflow: hidden;
  font-family: 'IBM Plex Sans', 'Segoe UI', sans-serif; font-size: 16px; line-height: normal; color: #E9EDF2; text-align: left; -webkit-font-smoothing: antialiased; user-select: none; -webkit-user-select: none; }
.cpx-scr *, .cpx-scr *::before, .cpx-scr *::after { box-sizing: border-box; }
/* No specificity, so every button class below wins over it */
:where(.cpx-scr) :where(button) { font: inherit; color: inherit; background: none; border: 0; padding: 0; margin: 0; cursor: pointer; text-align: inherit; }
.cpx-scr :focus-visible { outline: 2px solid #64D2FF; outline-offset: 2px; }
.cpx-icon { display: block; flex: none; }
.cpx-scr [hidden] { display: none !important; }

/* Status bar and Dynamic Island, over every screen */
.cpx-status { position: absolute; z-index: 30; left: 0; right: 0; top: 0; height: 54px; display: flex; align-items: center; justify-content: space-between; padding: 6px 34px 0 52px; pointer-events: none;
  font: 600 17px -apple-system, 'SF Pro Text', 'Helvetica Neue', 'Segoe UI', sans-serif; letter-spacing: -0.2px; color: #fff; }
.cpx-island { position: absolute; z-index: 31; left: 50%; top: 11px; width: 124px; height: 36px; margin-left: -62px; border-radius: 18px; background: #000; pointer-events: none; }
.cpx-status-icons { display: flex; align-items: center; gap: 6px; }
.cpx-home { position: absolute; z-index: 30; left: 50%; bottom: 8px; width: 140px; height: 5px; margin-left: -70px; border-radius: 3px; background: rgba(255, 255, 255, 0.55); pointer-events: none; }

/* A screen of the app: the site's CTA band behind it, as CpxScreenBackgroundView */
.cpx-view { position: absolute; inset: 0; display: flex; flex-direction: column; background: radial-gradient(342px circle at 88% 0, rgba(42, 102, 214, 0.30), rgba(42, 102, 214, 0.086) 50%, rgba(42, 102, 214, 0) 100%), linear-gradient(180deg, #0F1826 0%, #0B1016 100%); }
.cpx-view::before { content: ''; position: absolute; top: 0; right: 0; width: 385px; height: 385px; pointer-events: none;
  background-image: linear-gradient(90deg, rgba(100, 210, 255, 0.18) 1px, transparent 1px), linear-gradient(180deg, rgba(100, 210, 255, 0.18) 1px, transparent 1px); background-size: 48px 48px;
  -webkit-mask-image: radial-gradient(circle at 100% 0, #000 0, transparent 384px); mask-image: radial-gradient(circle at 100% 0, #000 0, transparent 384px); }
.cpx-view.is-entering { animation: cpx-push 0.32s ease-out; }
.cpx-view.is-guide-step .cpx-scroll > .cpx-col { animation: cpx-step 0.22s ease-out; }
@keyframes cpx-push { from { transform: translateY(40px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes cpx-step { from { transform: translateX(calc(var(--dir, 1) * 24px)); opacity: 0; } to { transform: none; opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .cpx-view.is-entering, .cpx-view.is-guide-step .cpx-scroll > .cpx-col { animation: none; } }

.cpx-header { position: relative; z-index: 2; flex: none; height: 126px; padding: 62px 20px 0 20px; display: flex; align-items: center; background: rgba(10, 14, 19, 0.94); border-bottom: 1px solid #1E2733; }
.cpx-header.has-back { padding-left: 12px; }
.cpx-back { width: 44px; height: 44px; border: 1px solid #35424F; display: flex; align-items: center; justify-content: center; margin-right: 14px; flex: none; }
.cpx-back:active { background: rgba(255, 255, 255, 0.15); }
.cpx-mark { width: 36px; height: 36px; flex: none; margin-right: 12px; }
.has-back .cpx-mark { width: 32px; height: 32px; margin-right: 10px; }
.cpx-wordmark { font-weight: 600; font-size: 16px; letter-spacing: 4.8px; }

.cpx-scroll { position: relative; z-index: 1; flex: 1; overflow-y: auto; overflow-x: hidden; scrollbar-width: none; overscroll-behavior: contain; }
.cpx-scroll::-webkit-scrollbar { display: none; }
.cpx-col { display: flex; flex-direction: column; padding: 28px 20px 24px; min-height: 100%; }

/* Type, as CpxTextStyle */
.cpx-eyebrow { font: 500 12.5px 'IBM Plex Mono', monospace; letter-spacing: 1.8px; text-transform: uppercase; color: #64D2FF; }
.cpx-title { font-weight: 600; font-size: 26px; line-height: 31px; letter-spacing: -0.39px; }
.cpx-lead { font-size: 16px; line-height: 24px; color: #A9B4C1; }
.cpx-caption { font-size: 14.5px; line-height: 21px; color: #A9B4C1; }
.cpx-kicker { font: 400 11px 'IBM Plex Mono', monospace; letter-spacing: 1.21px; text-transform: uppercase; color: #7C8897; }
.cpx-motto { font: 400 11px 'IBM Plex Mono', monospace; letter-spacing: 0.99px; text-transform: uppercase; color: #7C8897; text-align: center; }
.cpx-readout { font: 500 22px 'IBM Plex Mono', monospace; }
.cpx-display { font-weight: 600; font-size: 28px; line-height: 32px; letter-spacing: -0.62px; }
.cpx-link { display: flex; align-items: center; justify-content: center; min-height: 48px; font-size: 15px; color: #8AB4FF; text-align: center; width: 100%; }
.cpx-link--left { justify-content: flex-start; text-align: left; padding: 10px 16px; }
.cpx-em { color: #E9EDF2; font-weight: 500; }

/* Panels */
.cpx-frame { position: relative; background: #121A23; border: 1px solid #222D3A; padding: 18px 20px 22px; }
.cpx-frame::before, .cpx-frame::after { content: ''; position: absolute; width: 22px; height: 22px; border: 0 solid #64D2FF; }
.cpx-frame::before { left: -1px; top: -1px; border-left-width: 2px; border-top-width: 2px; }
.cpx-frame::after { right: -1px; bottom: -1px; border-right-width: 2px; border-bottom-width: 2px; }
.cpx-ap { display: flex; align-items: center; gap: 10px; font: 500 12px 'IBM Plex Mono', monospace; letter-spacing: 1.32px; text-transform: uppercase; color: #64D2FF; }
.cpx-divider { height: 1px; background: #222D3A; }

.cpx-row { position: relative; display: flex; align-items: center; gap: 14px; min-height: 56px; padding: 14px 16px; background: #121A23; border: 1px solid #35424F; width: 100%; }
.cpx-row:active { background: #19232E; }
.cpx-row::before { content: ''; position: absolute; left: -1px; top: -1px; bottom: -1px; width: 2px; background: #64D2FF; }
.cpx-row-title { flex: 1; font-weight: 600; font-size: 15.5px; line-height: 20px; }

.cpx-switchrow { position: relative; background: #121A23; border: 1px solid #35424F; padding: 12px 16px 14px; min-height: 56px; cursor: pointer; }
.cpx-switchrow::before { content: ''; position: absolute; left: -1px; top: -1px; bottom: -1px; width: 2px; background: var(--tint); }
.cpx-switchrow.is-washed { background: rgba(242, 121, 107, 0.141); border-color: var(--tint); }
.cpx-switchrow.is-washed::before { width: 3px; }
.cpx-switchrow-top { display: flex; align-items: center; gap: 14px; }
.cpx-switchrow-title { flex: 1; font-weight: 600; font-size: 15.5px; line-height: 20px; margin-right: -2px; }
.cpx-switchrow-status { margin: 2px 0 0 38px; font-size: 13.5px; line-height: 19px; color: #A9B4C1; }
.cpx-switchrow-status.is-on { color: #E9EDF2; }

/* The iOS 26 switch: 63 × 28, a pill knob */
.cpx-switch { position: relative; flex: none; width: 63px; height: 28px; border-radius: 14px; background: rgba(120, 120, 128, 0.36); transition: background 0.25s; }
.cpx-switch::after { content: ''; position: absolute; left: 2px; top: 2px; width: 38px; height: 24px; border-radius: 12px; background: #fff; box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2); transition: transform 0.25s cubic-bezier(0.3, 1.3, 0.5, 1); }
.cpx-switch[aria-checked="true"] { background: var(--tint); }
.cpx-switch[aria-checked="true"]::after { transform: translateX(21px); }

.cpx-banner { position: relative; display: flex; align-items: center; gap: 14px; min-height: 56px; padding: 14px 16px; background: rgba(242, 121, 107, 0.141); border: 1px solid #F2796B; width: 100%; }
.cpx-banner::before { content: ''; position: absolute; left: -1px; top: -1px; bottom: -1px; width: 3px; background: #F2796B; }
.cpx-banner:active { background: rgba(242, 121, 107, 0.25); }

.cpx-btn { display: flex; align-items: center; justify-content: center; min-height: 48px; padding: 12px 24px; border-radius: 4px; font-weight: 600; font-size: 16px; line-height: 21px; text-align: center; width: 100%; }
.cpx-btn--primary { background: #2A66D6; color: #fff; }
.cpx-btn--primary:active { background: #2358BF; }
.cpx-btn--ghost { border: 1px solid #35424F; font-weight: 500; color: #E9EDF2; }
.cpx-btn--ghost:active { background: #19232E; border-color: #C6CFDA; }
.cpx-btn--small { min-height: 40px; padding: 8px 14px; font-size: 14px; width: auto; }
.cpx-btn--whistle.is-on { background: rgba(100, 210, 255, 0.078); border: 1px solid #64D2FF; color: #64D2FF; }

/* The alert screen */
.cpx-card { position: relative; background: #121A23; border: 1px solid #35424F; padding: 16px 16px 16px 18px; }
.cpx-card::before { content: ''; position: absolute; left: -1px; top: -1px; bottom: -1px; width: 2px; background: #F2796B; }
.cpx-disclaimer { position: relative; margin-top: 14px; padding: 2px 0 2px 14px; }
.cpx-disclaimer::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 2px; background: #E8B865; }
.cpx-check { display: flex; align-items: center; gap: 12px; margin-top: 12px; font-weight: 500; font-size: 15px; line-height: 21px; width: 100%; }
.cpx-checkbox { flex: none; width: 22px; height: 22px; }
.cpx-where { display: flex; align-items: center; gap: 18px; margin-top: 14px; }
.cpx-dial { flex: none; width: 120px; height: 120px; }
.cpx-distance { font-weight: 600; font-size: 34px; line-height: 38px; letter-spacing: -0.75px; }
.cpx-guidance { margin-top: 4px; font-size: 13.5px; line-height: 19px; color: #E8B865; }
.cpx-silenced-row { display: flex; align-items: center; gap: 12px; background: #121A23; border: 1px solid #222D3A; padding: 10px 12px 10px 14px; }
.cpx-silenced-row .cpx-caption { flex: 1; color: #C6CFDA; }

/* The guide */
.cpx-guide-top { position: relative; z-index: 1; flex: none; padding: 20px 20px 0; }
.cpx-progress { display: flex; gap: 4px; height: 3px; margin-top: 10px; }
.cpx-progress i { flex: 1; background: #35424F; }
.cpx-progress i.is-done { background: #F2796B; }
.cpx-guide-col { padding-top: 0; padding-bottom: 4px; }
.cpx-guide-title { margin-top: 16px; font-weight: 600; font-size: 24px; line-height: 29px; letter-spacing: -0.36px; }
.cpx-scene { display: block; width: 100%; aspect-ratio: 360 / 270; margin-top: 14px; touch-action: pan-y; }
.cpx-guide-body { margin-top: 14px; font-size: 15.5px; line-height: 23px; color: #A9B4C1; white-space: pre-line; }
.cpx-tip { position: relative; margin-top: 12px; padding-left: 14px; font-size: 14px; line-height: 20px; color: #A9B4C1; white-space: pre-line; }
.cpx-tip::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 2px; background: #64D2FF; }
.cpx-guide-bottom { position: relative; z-index: 1; flex: none; display: flex; gap: 12px; padding: 14px 20px 50px; }
.cpx-guide-bottom .cpx-btn { flex: 1; }
.cpx-guide-bottom .is-hidden { visibility: hidden; }

/* iOS: lock screen and notifications */
.cpx-lock { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; padding-top: 70px; color: #fff; cursor: pointer;
  background: radial-gradient(130% 80% at 20% 100%, #1d3a5f 0%, transparent 60%), radial-gradient(120% 70% at 100% 0%, #2a2347 0%, transparent 55%), linear-gradient(180deg, #0b1220 0%, #101a2c 100%);
  font-family: -apple-system, 'SF Pro Text', 'Helvetica Neue', 'Segoe UI', sans-serif; }
.cpx-lock.is-dim::after { content: ''; position: absolute; inset: 0; background: rgba(0, 0, 0, 0.6); pointer-events: none; }
.cpx-lock-date { font-size: 20px; font-weight: 600; opacity: 0.85; }
.cpx-lock-time { font-size: 96px; font-weight: 700; line-height: 1; letter-spacing: -2px; margin-top: 2px; font-family: -apple-system, 'SF Pro Rounded', 'SF Pro Display', 'Helvetica Neue', sans-serif; }
.cpx-lock-hint { position: absolute; bottom: 30px; left: 0; right: 0; text-align: center; font-size: 14px; opacity: 0.6; }
.cpx-notes { width: 100%; padding: 0 12px; margin-top: auto; margin-bottom: 72px; display: flex; flex-direction: column; gap: 8px; }
.cpx-note { display: flex; gap: 10px; width: 100%; padding: 13px 14px 14px; border-radius: 24px; background: rgba(48, 52, 60, 0.72); -webkit-backdrop-filter: blur(24px) saturate(1.6); backdrop-filter: blur(24px) saturate(1.6); color: #fff; text-align: left;
  font-family: -apple-system, 'SF Pro Text', 'Helvetica Neue', 'Segoe UI', sans-serif; box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25); animation: cpx-note-in 0.4s cubic-bezier(0.2, 1.2, 0.4, 1); }
@keyframes cpx-note-in { from { transform: translateY(24px) scale(0.96); opacity: 0; } to { transform: none; opacity: 1; } }
.cpx-note img { width: 38px; height: 38px; border-radius: 9px; background: #000; padding: 3px; flex: none; }
.cpx-note-body { flex: 1; min-width: 0; }
.cpx-note-head { display: flex; justify-content: space-between; gap: 8px; font-size: 15px; font-weight: 600; line-height: 20px; }
.cpx-note-head span:last-child { font-weight: 400; opacity: 0.6; font-size: 14px; }
.cpx-note-text { font-size: 15px; line-height: 20px; opacity: 0.92; }
.cpx-note-tag { display: inline-block; font-size: 12px; font-weight: 600; letter-spacing: 0.4px; text-transform: uppercase; color: #FFD60A; margin-bottom: 1px; }
/* A notification over the app, while Copernix is open */
.cpx-banner-note { position: absolute; z-index: 25; left: 10px; right: 10px; top: 54px; }
.cpx-banner-note .cpx-note { background: rgba(40, 44, 52, 0.86); }

/* The iOS 26 alert: glass, left-aligned, capsule buttons */
.cpx-alert-dim { position: absolute; inset: 0; z-index: 40; display: flex; align-items: center; justify-content: center; padding: 90px 0 50px; background: rgba(0, 0, 0, 0.42); animation: cpx-fade 0.2s ease-out; }
@keyframes cpx-fade { from { opacity: 0; } to { opacity: 1; } }
.cpx-alert { width: 318px; max-height: 100%; display: flex; flex-direction: column; padding: 24px 14px 14px; border-radius: 34px; background: rgba(30, 32, 37, 0.9); -webkit-backdrop-filter: blur(30px) saturate(1.4); backdrop-filter: blur(30px) saturate(1.4); box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.07), 0 20px 50px rgba(0, 0, 0, 0.5);
  font-family: -apple-system, 'SF Pro Text', 'Helvetica Neue', 'Segoe UI', sans-serif; color: #fff; animation: cpx-pop 0.28s cubic-bezier(0.2, 1.3, 0.4, 1); }
@keyframes cpx-pop { from { transform: scale(1.12); opacity: 0; } to { transform: none; opacity: 1; } }
.cpx-alert-text { flex: 0 1 auto; min-height: 0; overflow-y: auto; padding: 0 15px; scrollbar-width: none; }
.cpx-alert-text::-webkit-scrollbar { display: none; }
.cpx-alert h4 { margin: 0; font-size: 17px; font-weight: 600; line-height: 22px; letter-spacing: -0.4px; }
.cpx-alert p { margin: 2px 0 0; font-size: 15px; line-height: 20px; letter-spacing: -0.2px; color: rgba(235, 235, 245, 0.8); white-space: pre-line; }
.cpx-alert-actions { display: flex; flex-direction: column; gap: 8px; margin-top: 20px; flex: none; }
.cpx-alert-actions.is-row { flex-direction: row; }
.cpx-alert-actions.is-row button { flex: 1 1 0; }
.cpx-alert-actions button { flex: none; height: 48px; border-radius: 24px; background: rgba(255, 255, 255, 0.1); font-size: 17px; font-weight: 500; letter-spacing: -0.3px; text-align: center; color: #fff; }
.cpx-alert-actions button:active { background: rgba(255, 255, 255, 0.2); }
.cpx-alert-actions button.is-destructive { color: #FF4245; }

/* The phone's own tap hint in the simulator */
.cpx-pulse { position: relative; }
.cpx-pulse::after { content: ''; position: absolute; inset: -4px; border: 2px solid #64D2FF; border-radius: inherit; animation: cpx-ping 1.6s ease-out infinite; pointer-events: none; }
@keyframes cpx-ping { from { opacity: 0.9; transform: scale(0.98); } to { opacity: 0; transform: scale(1.05); } }
@media (prefers-reduced-motion: reduce) { .cpx-pulse::after { animation: none; opacity: 0.8; } }
