/* /aplikacje — FishRadar app hub and store landings.
   Tokens follow the app (ui/styles.css): abyss/deep/surface/ridge, sonar for
   actions, beacon for water data, buoy for "not yet" status. One display face
   (Instrument Serif, the app's screen-title face) and one text face. */
:root {
  --ap-abyss: #0A0F18;
  --ap-deep: #0E1420;
  --ap-surface: #131B2A;
  --ap-shelf: #1A2436;
  --ap-ridge: #243044;
  --ap-sonar: #2EECC1;
  --ap-sonar-2: #14A882;
  --ap-sonar-10: rgba(46, 236, 193, .10);
  --ap-sonar-20: rgba(46, 236, 193, .22);
  --ap-beacon: #54A0FF;
  --ap-beacon-10: rgba(84, 160, 255, .12);
  --ap-buoy: #FF9F43;
  --ap-buoy-10: rgba(255, 159, 67, .12);
  --ap-ink: #F0F4FA;
  --ap-ink-80: rgba(240, 244, 250, .80);
  --ap-ink-60: rgba(240, 244, 250, .64);
  --ap-ink-20: rgba(240, 244, 250, .18);
  --ap-ink-10: rgba(240, 244, 250, .09);
  --ap-serif: 'Instrument Serif', Georgia, 'Times New Roman', serif;
  --ap-sans: 'Instrument Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --ap-gutter: clamp(16px, 4.5vw, 40px);
  --ap-max: 1180px;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body.ap {
  margin: 0;
  background: var(--ap-abyss);
  color: var(--ap-ink);
  font: 400 17px/1.6 var(--ap-sans);
  font-feature-settings: "tnum" 1;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
.ap img { max-width: 100%; height: auto; display: block; }
.ap a { color: var(--ap-sonar); text-underline-offset: 3px; }
.ap a:hover { color: #7ff5da; }
.ap :focus-visible { outline: 3px solid var(--ap-sonar); outline-offset: 3px; border-radius: 6px; }
.ap-skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--ap-sonar); color: var(--ap-abyss) !important; padding: 10px 14px; border-radius: 8px; font-weight: 700; }
.ap-skip:focus { top: 12px; }
.ap-wrap { max-width: var(--ap-max); margin: 0 auto; padding: 0 var(--ap-gutter); }

/* ── header ─────────────────────────────────────────────────────────────── */
.ap-head {
  position: sticky; top: 0; z-index: 40;
  background: rgba(10, 15, 24, .92);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--ap-ink-10);
  padding-top: env(safe-area-inset-top);
}
.ap-head-in { display: flex; align-items: center; gap: 18px; min-height: 60px; }
.ap-logo { display: block; width: 122px; flex-shrink: 0; }
.ap-logo img { width: 122px; height: auto; }
.ap-nav { display: flex; gap: 4px; margin-left: auto; align-items: center; }
.ap-nav a { color: var(--ap-ink-80); text-decoration: none; font-size: 15px; font-weight: 500; padding: 8px 11px; border-radius: 8px; }
.ap-nav a:hover { color: var(--ap-ink); background: var(--ap-ink-10); }
.ap-nav a[aria-current="page"] { color: var(--ap-ink); box-shadow: inset 0 -2px 0 var(--ap-sonar); border-radius: 0; }
.ap-nav .ap-nav-cta { background: var(--ap-sonar); color: var(--ap-abyss); font-weight: 700; margin-left: 6px; border-radius: 10px; white-space: nowrap; }
.ap-nav .ap-nav-cta:hover { background: #6ff3d6; color: var(--ap-abyss); }
@media (max-width: 760px) {
  .ap-nav .ap-hide-s { display: none; }
}
@media (max-width: 400px) {
  .ap-logo, .ap-logo img { width: 104px; }
  .ap-head-in { gap: 10px; }
  .ap-nav a { padding: 8px 9px; font-size: 14px; }
}
/* 320 px: logo + "Aplikacje" + CTA overflow by ~24 px; the subnav's
   "Przegląd" pill already links to /aplikacje. */
@media (max-width: 350px) {
  .ap-nav a:not(.ap-nav-cta) { display: none; }
}
.ap-subnav { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding: 0 var(--ap-gutter) 10px; max-width: var(--ap-max); margin: 0 auto; }
.ap-subnav::-webkit-scrollbar { display: none; }
.ap-subnav a { flex: 0 0 auto; text-decoration: none; color: var(--ap-ink-80); font-size: 14px; font-weight: 600; padding: 7px 13px; border: 1px solid var(--ap-ink-20); border-radius: 999px; }
.ap-subnav a[aria-current="page"] { color: var(--ap-abyss); background: var(--ap-ink); border-color: var(--ap-ink); }

.ap-crumbs { font-size: 14px; color: var(--ap-ink-60); padding-top: 18px; }
.ap-crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; }
.ap-crumbs li + li::before { content: "/"; margin-right: 6px; color: var(--ap-ink-20); }
.ap-crumbs a { color: var(--ap-ink-60); text-decoration: none; }
.ap-crumbs a:hover { color: var(--ap-ink); text-decoration: underline; }
.ap-crumbs [aria-current] { color: var(--ap-ink-80); }

/* ── type ───────────────────────────────────────────────────────────────── */
.ap h1, .ap h2, .ap h3 { margin: 0; font-weight: 400; }
.ap h1 {
  font-family: var(--ap-serif);
  font-size: clamp(46px, 9.4vw, 92px);
  line-height: .98;
  letter-spacing: -.012em;
}
.ap h2 {
  font-family: var(--ap-serif);
  font-size: clamp(34px, 5.4vw, 54px);
  line-height: 1.04;
  letter-spacing: -.01em;
  max-width: 18ch;
}
.ap h3 { font-size: 20px; line-height: 1.3; font-weight: 650; }
.ap p { margin: 0; }
.ap-lede { font-size: clamp(18px, 2.2vw, 21px); line-height: 1.55; color: var(--ap-ink-80); max-width: 36em; }
.ap-measure { max-width: 64ch; }
.ap-muted { color: var(--ap-ink-60); }
.ap-small { font-size: 14px; line-height: 1.5; }

/* ── buttons & store CTAs ───────────────────────────────────────────────── */
.ap-cta-row { display: flex; flex-wrap: wrap; gap: 12px 14px; align-items: center; }
.ap-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 22px; border-radius: 12px;
  font: 700 16px/1 var(--ap-sans); text-decoration: none; cursor: pointer;
  border: 1px solid transparent;
}
.ap .ap-btn--primary { background: var(--ap-sonar); color: var(--ap-abyss); }
.ap .ap-btn--primary:hover { background: #6ff3d6; color: var(--ap-abyss); }
.ap .ap-btn--ghost { color: var(--ap-ink); border-color: var(--ap-ink-20); background: transparent; }
.ap .ap-btn--ghost:hover { border-color: var(--ap-ink-60); color: var(--ap-ink); }
.ap-play { display: inline-block; line-height: 0; border-radius: 10px; }
/* The official badge carries its own clear space; 60 px tall keeps the
   wordmark legible and the tap target well above 48 px. */
.ap-play img { height: 62px; width: auto; }
.ap-play--l img { height: 72px; }
.ap-status {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 14px; font-weight: 600; line-height: 1.2;
  padding: 7px 12px 7px 10px; border-radius: 999px;
}
.ap-status::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; flex-shrink: 0; }
.ap-status--live { color: var(--ap-sonar); background: var(--ap-sonar-10); }
.ap-status--soon { color: var(--ap-buoy); background: var(--ap-buoy-10); }

/* ── hero ───────────────────────────────────────────────────────────────── */
.ap-hero { position: relative; padding: 28px 0 56px; overflow: hidden; }
.ap-hero-grid { display: grid; grid-template-columns: 1fr; gap: 36px; align-items: center; }
.ap-hero-copy { display: grid; gap: 22px; position: relative; z-index: 1; }
.ap-hero-copy .ap-status { justify-self: start; }
.ap-hero-note { font-size: 14px; color: var(--ap-ink-60); }
.ap-hero-note strong { color: var(--ap-ink-80); font-weight: 600; }
.ap-appid { display: flex; align-items: center; gap: 14px; }
.ap-appid img { width: 56px; height: 56px; border-radius: 14px; }
.ap-appid b { display: block; font-size: 17px; }
.ap-appid span { font-size: 14px; color: var(--ap-ink-60); }
@media (min-width: 900px) {
  .ap-hero { padding: 44px 0 84px; }
  .ap-hero-grid { grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); gap: 48px; }
}

/* Sonar stage: the one deliberate motion on the page. */
.ap-stage { position: relative; display: grid; place-items: center; padding: 18px 0 8px; }
.ap-stage::before, .ap-stage::after {
  content: ""; position: absolute; left: 50%; top: 50%;
  width: min(118vw, 640px); aspect-ratio: 1; transform: translate(-50%, -50%);
  border-radius: 50%; pointer-events: none;
}
.ap-stage::before {
  background:
    repeating-radial-gradient(circle at center, transparent 0 58px, rgba(46, 236, 193, .16) 58px 59px);
  -webkit-mask: radial-gradient(circle at center, #000 30%, transparent 70%);
          mask: radial-gradient(circle at center, #000 30%, transparent 70%);
}
.ap-stage::after {
  background: conic-gradient(from 0deg, rgba(46, 236, 193, .24), rgba(46, 236, 193, 0) 22%, transparent 100%);
  -webkit-mask: radial-gradient(circle at center, #000 18%, transparent 66%);
          mask: radial-gradient(circle at center, #000 18%, transparent 66%);
  animation: ap-sweep 7s linear infinite;
}
@keyframes ap-sweep { to { transform: translate(-50%, -50%) rotate(360deg); } }
.ap-stage-pair { position: relative; display: flex; align-items: flex-end; justify-content: center; }
.ap-stage-pair .ap-phone--back { margin-right: -64px; transform: translateY(26px) scale(.9); transform-origin: bottom right; opacity: .96; }
@media (max-width: 420px) { .ap-stage-pair .ap-phone--back { display: none; } }

/* ── device frames (CSS, no raster mock-up) ─────────────────────────────── */
.ap-phone {
  position: relative; z-index: 1;
  width: var(--ap-phone-w, min(74vw, 300px));
  padding: 9px;
  border-radius: 46px;
  background: linear-gradient(160deg, #2a3446, #0c1119 38%, #05070b);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .08), 0 30px 70px -20px rgba(0, 0, 0, .8), 0 0 90px -30px rgba(46, 236, 193, .35);
}
.ap-phone-screen {
  position: relative; overflow: hidden;
  border-radius: 37px; background: var(--ap-deep);
  aspect-ratio: 9 / 19.5;
}
.ap-phone-screen picture { display: block; }
.ap-phone-screen img, .ap-phone-screen picture { width: 100%; height: 100%; }
.ap-phone-screen img { object-fit: cover; object-position: top center; }
/* A status-bar strip above the capture, so the camera cut-out never covers the
   app's own top bar (the captures have no system status bar of their own). */
.ap-phone:not(.ap-phone--169) .ap-phone-screen { padding-top: 30px; background: #0b111b; }
.ap-phone--ios:not(.ap-phone--169) .ap-phone-screen { padding-top: 48px; }
.ap-phone--sm:not(.ap-phone--169) .ap-phone-screen { padding-top: 24px; }
.ap-phone--sm.ap-phone--ios:not(.ap-phone--169) .ap-phone-screen { padding-top: 38px; }
/* 9:16 store screenshots sit under a status-bar strip instead of being cropped. */
.ap-phone--169 .ap-phone-screen { aspect-ratio: auto; padding-top: 28px; background: #0b111b; }
.ap-phone--169 .ap-phone-screen img, .ap-phone--169 .ap-phone-screen picture { height: auto; }
.ap-phone::after { /* Android punch-hole camera */
  content: ""; position: absolute; z-index: 2; top: 20px; left: 50%;
  width: 11px; height: 11px; margin-left: -5.5px; border-radius: 50%;
  background: #05070b; box-shadow: 0 0 0 2px #111823;
}
.ap-phone--ios::after { /* Dynamic Island */
  width: 92px; height: 26px; margin-left: -46px; top: 18px; border-radius: 999px; box-shadow: none;
}
.ap-phone--sm { --ap-phone-w: min(62vw, 236px); padding: 7px; border-radius: 38px; }
.ap-phone--sm .ap-phone-screen { border-radius: 31px; }
.ap-phone--sm::after { top: 16px; width: 9px; height: 9px; margin-left: -4.5px; }
.ap-phone--sm.ap-phone--ios::after { width: 72px; height: 20px; margin-left: -36px; top: 14px; }

/* ── sections ───────────────────────────────────────────────────────────── */
.ap-sec { padding: 64px 0; }
.ap-sec--deep { background: var(--ap-deep); border-top: 1px solid var(--ap-ink-10); border-bottom: 1px solid var(--ap-ink-10); }
.ap-sec-head { display: grid; gap: 14px; margin-bottom: 34px; }
@media (min-width: 900px) { .ap-sec { padding: 96px 0; } }

/* Readout: the numbers as one sounder strip, not a wall of cards. */
.ap-readout { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--ap-ridge); }
.ap-readout li { padding: 20px 16px 22px 0; border-bottom: 1px solid var(--ap-ridge); display: grid; gap: 4px; align-content: start; }
.ap-readout li:nth-child(2n) { padding-left: 16px; border-left: 1px solid var(--ap-ridge); }
.ap-readout-n { font-family: var(--ap-serif); font-size: clamp(40px, 6.4vw, 60px); line-height: 1; letter-spacing: -.01em; }
.ap-readout-l { font-size: 15px; line-height: 1.35; color: var(--ap-ink-80); }
.ap-readout-n.is-water { color: var(--ap-beacon); }
.ap-readout-n.is-act { color: var(--ap-sonar); }
@media (min-width: 900px) {
  .ap-readout { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .ap-readout li, .ap-readout li:nth-child(2n) { padding: 26px 22px 28px; border-left: 1px solid var(--ap-ridge); }
  .ap-readout li:nth-child(3n + 1) { border-left: 0; padding-left: 0; }
}
.ap-method { margin-top: 18px; }
.ap-method summary { cursor: pointer; font-size: 15px; font-weight: 600; color: var(--ap-ink-80); padding: 8px 0; }
.ap-method dl { display: grid; gap: 14px; margin: 12px 0 0; font-size: 14px; line-height: 1.5; }
.ap-method dt { font-weight: 700; color: var(--ap-ink); }
.ap-method dd { margin: 2px 0 0; color: var(--ap-ink-60); }

/* Scale: one giant reading, one strong second, four quiet ones. */
.ap-scale { display: grid; gap: 28px; align-items: stretch; }
.ap-scale-main { position: relative; overflow: hidden; padding: 30px 22px 28px; border-radius: 26px;
  background: radial-gradient(120% 90% at 20% 0%, rgba(84, 160, 255, .16), transparent 60%), var(--ap-surface);
  border: 1px solid rgba(84, 160, 255, .22); isolation: isolate; }
.ap-scale-contours { position: absolute; z-index: -1; right: -60px; bottom: -40px; width: 520px; max-width: 120%;
  color: rgba(84, 160, 255, .22); }
.ap-scale p { margin: 0; }
.ap-scale-n { font-family: var(--ap-serif); line-height: .9; letter-spacing: -.02em; font-variant-numeric: lining-nums; }
.ap-scale-main { container-type: inline-size; }
.ap-scale-n { white-space: nowrap; }
.ap-scale-n--water { font-size: clamp(56px, 17vw, 168px); color: #8cc2ff; text-shadow: 0 0 60px rgba(84, 160, 255, .35); }
@supports (font-size: 1cqw) { .ap-scale-n--water { font-size: min(168px, 21cqw); } }
.ap-scale-full { container-type: inline-size; }
.ap-scale-n--act { font-size: clamp(52px, 12vw, 104px); color: var(--ap-sonar); }
@supports (font-size: 1cqw) { .ap-scale-n--act { font-size: min(104px, 26cqw); } }
.ap-scale-l { margin-top: 10px !important; font-size: clamp(18px, 2.4vw, 24px); line-height: 1.25; color: var(--ap-ink); font-weight: 600; max-width: 22ch; }
.ap-scale-note { margin-top: 12px !important; font-size: 14px; line-height: 1.5; color: var(--ap-ink-60); max-width: 46ch; }
.ap-scale-side { display: grid; gap: 22px; align-content: start; }
.ap-scale-full { padding: 26px 22px; border-radius: 22px; border: 1px solid rgba(46, 236, 193, .28);
  background: linear-gradient(180deg, rgba(46, 236, 193, .08), transparent 70%); }
.ap-scale-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0;
  border-top: 1px solid var(--ap-ridge); }
.ap-scale-list li { padding: 16px 12px 16px 0; border-bottom: 1px solid var(--ap-ridge); display: grid; gap: 2px; }
.ap-scale-list li:nth-child(2n) { padding-left: 14px; border-left: 1px solid var(--ap-ridge); }
.ap-scale-sn { font-family: var(--ap-serif); font-size: clamp(32px, 6vw, 44px); line-height: 1; }
.ap-scale-sl { font-size: 14px; line-height: 1.35; color: var(--ap-ink-80); }
@media (min-width: 900px) {
  .ap-scale { grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: 32px; }
  .ap-scale-main { padding: 44px 40px 38px; display: flex; flex-direction: column; justify-content: flex-end; min-height: 420px; }
}

/* Feature rows: one real screen + what it does + who gets it. */
.ap-rows { display: grid; gap: 64px; }
.ap-row { display: grid; gap: 26px; align-items: center; }
.ap-row-media { display: flex; justify-content: center; }
.ap-row-copy { display: grid; gap: 14px; }
.ap-row-copy h3 { font-family: var(--ap-serif); font-weight: 400; font-size: clamp(28px, 4vw, 38px); line-height: 1.08; }
.ap-row-copy ul { margin: 4px 0 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.ap-row-copy li { position: relative; padding-left: 20px; color: var(--ap-ink-80); }
.ap-row-copy li::before { content: ""; position: absolute; left: 2px; top: .62em; width: 8px; height: 8px; border-radius: 50%; border: 2px solid var(--ap-sonar); }
.ap-row--water .ap-row-copy li::before { border-color: var(--ap-beacon); }
@media (min-width: 900px) {
  .ap-row { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 64px; }
  .ap-row:nth-child(even) .ap-row-media { order: 2; }
}
/* Bathymetry pair: 2D and 3D side by side, never overlapping — each capture is
   shown whole. 3D is the larger one; the row gets a wider media column. */
.ap-duo { display: flex; align-items: flex-end; justify-content: center; gap: 4%; width: 100%; max-width: 560px; }
.ap-duo-item { margin: 0; display: grid; justify-items: center; gap: 12px; }
.ap-duo-item .ap-phone { --ap-phone-w: 100%; }
.ap-duo-item--2d { width: 40%; }
.ap-duo-item--3d { width: 56%; }
.ap-duo figcaption { display: grid; gap: 2px; font-size: 13px; line-height: 1.3; color: var(--ap-ink-60); text-align: center; }
.ap-duo figcaption b { color: var(--ap-ink-80); font-weight: 600; }
.ap-duo-item--3d figcaption b { color: var(--ap-sonar); }
/* Featured row under the screen tour (Android page). */
.ap-rows--after-tour { margin-top: 64px; }
@media (min-width: 900px) {
  .ap-row--duo { grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); }
  .ap-row--duo:nth-child(even) { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); }
}
.ap-access { display: flex; flex-wrap: wrap; gap: 6px; }
.ap-chip { font-size: 13px; font-weight: 600; line-height: 1; padding: 6px 10px; border-radius: 999px; border: 1px solid var(--ap-ink-20); color: var(--ap-ink-80); }
.ap-chip--free { border-color: rgba(46, 236, 193, .45); color: var(--ap-sonar); }
.ap-chip--pro { border-color: rgba(255, 159, 67, .5); color: var(--ap-buoy); }
.ap-chip--note { border-style: dashed; }

/* Workflow: a real sequence, so it is numbered. */
.ap-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; counter-reset: step; }
.ap-step { position: relative; padding: 26px 22px 24px; border: 1px solid var(--ap-ridge); border-radius: 18px; background: var(--ap-surface); display: grid; gap: 12px; }
.ap-step::before { counter-increment: step; content: counter(step); font-family: var(--ap-serif); font-size: 44px; line-height: 1; color: var(--ap-sonar); }
.ap-step h3 { font-family: var(--ap-serif); font-weight: 400; font-size: 30px; }
.ap-step ul { margin: 0; padding-left: 18px; color: var(--ap-ink-80); display: grid; gap: 6px; }
@media (min-width: 900px) { .ap-steps { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* Product tour: real screens, scroll-snap, no carousel script. */
.ap-tour { display: flex; gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 6px var(--ap-gutter) 22px; margin: 0 calc(var(--ap-gutter) * -1); scrollbar-color: var(--ap-ridge) transparent; }
.ap-tour figure { margin: 0; flex: 0 0 auto; scroll-snap-align: center; display: grid; gap: 12px; justify-items: center; }
.ap-tour figcaption { font-size: 14px; color: var(--ap-ink-80); max-width: 220px; text-align: center; }
@media (min-width: 900px) { .ap-tour { justify-content: flex-start; } }

/* Data join: what one place on the map pulls together. */
.ap-join { display: grid; gap: 0; border: 1px solid var(--ap-ridge); border-radius: 20px; overflow: hidden; }
.ap-join > div { padding: 22px; display: grid; gap: 6px; border-top: 1px solid var(--ap-ridge); }
.ap-join > div:first-child { border-top: 0; }
.ap-join b { font-size: 16px; }
.ap-join span { font-size: 15px; color: var(--ap-ink-60); }
.ap-join .is-water b { color: var(--ap-beacon); }
.ap-join .is-law b { color: var(--ap-buoy); }
.ap-join .is-map b { color: var(--ap-sonar); }
@media (min-width: 760px) {
  .ap-join { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ap-join > div:nth-child(2) { border-top: 0; }
  .ap-join > div:nth-child(even) { border-left: 1px solid var(--ap-ridge); }
}
@media (min-width: 1080px) {
  .ap-join { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .ap-join > div:nth-child(-n + 4) { border-top: 0; }
  .ap-join > div + div { border-left: 1px solid var(--ap-ridge); }
}

/* Platform choice on the hub. */
.ap-plat { display: grid; gap: 18px; }
.ap-plat > article { border: 1px solid var(--ap-ridge); border-radius: 22px; padding: 26px 24px; display: grid; gap: 14px; align-content: start; background: var(--ap-surface); }
.ap-plat > article h3 { font-family: var(--ap-serif); font-weight: 400; font-size: 34px; }
.ap-plat .ap-status { justify-self: start; }
@media (min-width: 900px) { .ap-plat { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* Access table. */
.ap-table-wrap { overflow-x: auto; border: 1px solid var(--ap-ridge); border-radius: 16px; }
.ap-table { width: 100%; border-collapse: collapse; min-width: 560px; font-size: 15px; }
.ap-table th, .ap-table td { text-align: left; padding: 13px 16px; border-bottom: 1px solid var(--ap-ridge); vertical-align: top; }
.ap-table thead th { font-size: 14px; color: var(--ap-ink-60); font-weight: 600; background: var(--ap-deep); }
.ap-table tbody tr:last-child th, .ap-table tbody tr:last-child td { border-bottom: 0; }
.ap-table tbody th { font-weight: 600; }

/* FAQ */
.ap-faq { display: grid; gap: 0; border-top: 1px solid var(--ap-ridge); }
.ap-faq details { border-bottom: 1px solid var(--ap-ridge); }
.ap-faq summary { cursor: pointer; list-style: none; padding: 20px 36px 20px 0; position: relative; font-weight: 650; font-size: 18px; }
.ap-faq summary::-webkit-details-marker { display: none; }
.ap-faq summary::after { content: "+"; position: absolute; right: 4px; top: 16px; font-size: 26px; font-weight: 300; color: var(--ap-sonar); }
.ap-faq details[open] summary::after { content: "–"; }
.ap-faq details > div { padding: 0 0 22px; color: var(--ap-ink-80); max-width: 66ch; display: grid; gap: 10px; }

/* Notes and disclaimers: readable, proportionate. */
.ap-note { border-left: 3px solid var(--ap-buoy); padding: 4px 0 4px 16px; color: var(--ap-ink-80); font-size: 15px; max-width: 70ch; }
.ap-note--water { border-color: var(--ap-beacon); }

/* Final CTA */
.ap-final { padding: 72px 0 calc(84px + env(safe-area-inset-bottom)); }
.ap-final-in { display: grid; gap: 26px; align-items: center; }
@media (min-width: 900px) { .ap-final-in { grid-template-columns: minmax(0, 1fr) auto; gap: 56px; } }
.ap-qr { display: none; }
@media (min-width: 900px) and (hover: hover) {
  .ap-qr { display: grid; gap: 10px; justify-items: center; font-size: 13px; color: var(--ap-ink-60); }
  .ap-qr img { width: 132px; height: 132px; border-radius: 12px; }
}

/* iOS-specific */
.ap-howto { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; counter-reset: how; }
.ap-howto li { counter-increment: how; display: grid; grid-template-columns: 38px 1fr; gap: 14px; align-items: start; }
.ap-howto li::before { content: counter(how); width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--ap-ridge); font-weight: 700; color: var(--ap-sonar); }

/* Footer */
.ap-foot { border-top: 1px solid var(--ap-ink-10); padding: 36px 0 calc(40px + env(safe-area-inset-bottom)); font-size: 14px; color: var(--ap-ink-60); }
.ap-foot-in { display: grid; gap: 18px; }
.ap-foot nav { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.ap-foot a { color: var(--ap-ink-80); text-decoration: none; }
.ap-foot a:hover { color: var(--ap-ink); text-decoration: underline; }

@media (prefers-reduced-motion: reduce) {
  .ap-stage::after { animation: none; }
  .ap * { scroll-behavior: auto !important; }
}
@media (orientation: landscape) and (max-height: 500px) {
  .ap-hero-grid { grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: 24px; }
  .ap-phone { --ap-phone-w: 200px; }
  .ap-stage-pair .ap-phone--back { display: none; }
  .ap-duo { max-width: 400px; }
}
