/* app-landing.css — the landing page of each live app, zyentora.in/apps/<app>
   (Release B redesign; built by js/app-landing.js).

   One structure, seven looks. Every colour, radius and typeface is a token,
   set per app on [data-app] (the page body), so each page carries its app's
   own personality: Uplifted a refined, minimal finance tool; Edgemark a
   precise trading terminal; Apex a game HUD; Meridian a warm, calm planner;
   Onyx a dark creator studio; Prompt Studio a crisp writing tool; Wanderlight
   dusk and starlight. Light page, with the hero band light or dark per app.

   Every text colour passes WCAG AA on its background in every app
   (zyentora-apps/tests/app-landing.cjs measures the real pages). Decorative
   glows stay below 60% opacity, so text is always judged against the solid
   colour under it. */

/* ---------- the tokens ---------- */
[data-app] {
  --f-display: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --f-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --f-mono: ui-monospace, "SF Mono", Consolas, monospace;
  --display-weight: 650; --display-track: -0.03em; --display-case: none;
  --r: 16px; --r-btn: 12px; --r-shot: 14px;
  --bezel: #101014;
  --shadow: 0 1px 2px rgba(16, 16, 24, .06), 0 12px 32px -12px rgba(16, 16, 24, .18);
  --shadow-lift: 0 2px 4px rgba(16, 16, 24, .06), 0 24px 48px -16px rgba(16, 16, 24, .26);
}
[data-app="uplifted"] {
  --f-display: "Geist", -apple-system, "Segoe UI", sans-serif; --f-body: "Geist", -apple-system, "Segoe UI", sans-serif; --f-mono: "Geist Mono", ui-monospace, monospace;
  --display-weight: 600; --display-track: -0.04em;
  --bg: #FAFAF7; --bg2: #F3F2EC; --surface: #FFFFFF; --ink: #15140F; --muted: #57544A; --line: rgba(21, 20, 15, .10); --line2: rgba(21, 20, 15, .24);
  --accent: #C9A227; --accent-ink: #7A5C00; --tint: rgba(201, 162, 39, .14); --btn: #15140F; --on-btn: #FFFFFF;
  --h-bg: linear-gradient(180deg, #FFFDF7 0%, #F5F1E3 100%); --h-ink: #15140F; --h-muted: #57544A; --h-line: rgba(21, 20, 15, .12);
  --h-btn: #15140F; --h-on-btn: #FFFFFF; --h-btn2: #15140F; --h-btn2-line: rgba(21, 20, 15, .30); --h-chip: rgba(201, 162, 39, .16); --h-chip-ink: #5E4700;
  --glow-a: rgba(201, 162, 39, .28); --glow-b: rgba(228, 194, 76, .18);
  --r: 14px; --r-btn: 10px;
}
[data-app="edgemark"] {
  --f-display: "IBM Plex Sans", -apple-system, "Segoe UI", sans-serif; --f-body: "IBM Plex Sans", -apple-system, "Segoe UI", sans-serif; --f-mono: "IBM Plex Mono", ui-monospace, monospace;
  --display-weight: 600; --display-track: -0.025em;
  --bg: #F6F8FA; --bg2: #EDF1F5; --surface: #FFFFFF; --ink: #0B1016; --muted: #4A5563; --line: rgba(11, 16, 22, .10); --line2: rgba(11, 16, 22, .24);
  --accent: #1AAE9E; --accent-ink: #0A6B61; --tint: rgba(26, 174, 158, .12); --btn: #0B1016; --on-btn: #FFFFFF;
  --h-bg: linear-gradient(180deg, #0A0D12 0%, #0F1521 100%); --h-ink: #F2F5F8; --h-muted: #A9B4C2; --h-line: rgba(255, 255, 255, .12);
  --h-btn: #2AC9B8; --h-on-btn: #04120F; --h-btn2: #F2F5F8; --h-btn2-line: rgba(255, 255, 255, .32); --h-chip: rgba(42, 201, 184, .14); --h-chip-ink: #8BE8DD;
  --glow-a: rgba(42, 201, 184, .30); --glow-b: rgba(124, 108, 240, .34);
  --r: 10px; --r-btn: 8px; --r-shot: 10px;
}
[data-app="apex"] {
  --f-display: "Chakra Petch", "Segoe UI", sans-serif; --f-body: "Manrope", -apple-system, "Segoe UI", sans-serif;
  --display-weight: 700; --display-track: -0.015em; --display-case: uppercase;
  --bg: #F4F7FB; --bg2: #EAF0F7; --surface: #FFFFFF; --ink: #06101F; --muted: #44526A; --line: rgba(6, 16, 31, .10); --line2: rgba(6, 16, 31, .24);
  --accent: #00B8E6; --accent-ink: #00687E; --tint: rgba(0, 184, 230, .12); --btn: #06101F; --on-btn: #FFFFFF;
  --h-bg: linear-gradient(180deg, #03070E 0%, #0A1628 100%); --h-ink: #EAF6FF; --h-muted: #A2B6CC; --h-line: rgba(0, 212, 255, .18);
  --h-btn: #00D4FF; --h-on-btn: #03111A; --h-btn2: #EAF6FF; --h-btn2-line: rgba(0, 212, 255, .45); --h-chip: rgba(0, 212, 255, .12); --h-chip-ink: #8CEBFF;
  --glow-a: rgba(0, 212, 255, .30); --glow-b: rgba(255, 184, 0, .22);
  --r: 6px; --r-btn: 4px; --r-shot: 6px;
}
[data-app="meridian"] {
  --f-display: "Newsreader", Georgia, "Times New Roman", serif; --f-body: "DM Sans", -apple-system, "Segoe UI", sans-serif;
  --display-weight: 500; --display-track: -0.02em;
  --bg: #F8F5F0; --bg2: #F0EAE0; --surface: #FFFFFF; --ink: #1E1A14; --muted: #5A5145; --line: rgba(30, 26, 20, .10); --line2: rgba(30, 26, 20, .24);
  --accent: #C99A5B; --accent-ink: #7E5414; --tint: rgba(201, 154, 91, .16); --btn: #1E1A14; --on-btn: #FFFFFF;
  --h-bg: linear-gradient(180deg, #FCF9F4 0%, #F2EBDF 100%); --h-ink: #1E1A14; --h-muted: #5A5145; --h-line: rgba(30, 26, 20, .12);
  --h-btn: #1E1A14; --h-on-btn: #FFFFFF; --h-btn2: #1E1A14; --h-btn2-line: rgba(30, 26, 20, .30); --h-chip: rgba(201, 154, 91, .18); --h-chip-ink: #664312;
  --glow-a: rgba(232, 184, 118, .34); --glow-b: rgba(201, 154, 91, .18);
  --r: 20px; --r-btn: 999px; --r-shot: 18px;
}
[data-app="onyx"] {
  --f-display: "Bricolage Grotesque", -apple-system, "Segoe UI", sans-serif; --f-body: "DM Sans", -apple-system, "Segoe UI", sans-serif;
  --display-weight: 800; --display-track: -0.045em;
  --bg: #F6F5FA; --bg2: #ECEAF4; --surface: #FFFFFF; --ink: #0E0D15; --muted: #4C4860; --line: rgba(14, 13, 21, .10); --line2: rgba(14, 13, 21, .24);
  --accent: #8B6CFF; --accent-ink: #5B3FD9; --tint: rgba(139, 108, 255, .12); --btn: #0E0D15; --on-btn: #FFFFFF;
  --h-bg: linear-gradient(180deg, #08080C 0%, #12101E 100%); --h-ink: #F5F3FF; --h-muted: #ADA8C6; --h-line: rgba(255, 255, 255, .12);
  --h-btn: #FFFFFF; --h-on-btn: #0E0D15; --h-btn2: #F5F3FF; --h-btn2-line: rgba(255, 255, 255, .30); --h-chip: rgba(139, 108, 255, .18); --h-chip-ink: #CDBFFF;
  --glow-a: rgba(124, 92, 252, .40); --glow-b: rgba(34, 211, 197, .24);
  --r: 18px; --r-btn: 12px;
}
[data-app="prompt-studio"] {
  --f-display: "Outfit", -apple-system, "Segoe UI", sans-serif; --f-body: "Outfit", -apple-system, "Segoe UI", sans-serif; --f-mono: "JetBrains Mono", ui-monospace, monospace;
  --display-weight: 600; --display-track: -0.035em;
  --bg: #FBF9F4; --bg2: #F3EFE4; --surface: #FFFFFF; --ink: #17141F; --muted: #554F60; --line: rgba(23, 20, 31, .10); --line2: rgba(23, 20, 31, .24);
  --accent: #E8B04B; --accent-ink: #7A5200; --tint: rgba(232, 176, 75, .16); --btn: #17141F; --on-btn: #FFFFFF;
  --h-bg: linear-gradient(180deg, #FFFCF5 0%, #F4EEE1 100%); --h-ink: #17141F; --h-muted: #554F60; --h-line: rgba(23, 20, 31, .12);
  --h-btn: #17141F; --h-on-btn: #FFFFFF; --h-btn2: #17141F; --h-btn2-line: rgba(23, 20, 31, .30); --h-chip: rgba(157, 127, 232, .16); --h-chip-ink: #4B32A8;
  --glow-a: rgba(157, 127, 232, .30); --glow-b: rgba(232, 176, 75, .30);
  --r: 14px; --r-btn: 10px;
}
[data-app="wanderlight"] {
  --f-display: "Fraunces", "Iowan Old Style", Georgia, serif; --f-body: "Nunito Sans", -apple-system, "Segoe UI", sans-serif;
  --display-weight: 500; --display-track: -0.02em;
  --bg: #F7F4FC; --bg2: #EEE9F8; --surface: #FFFFFF; --ink: #1E1430; --muted: #554A6A; --line: rgba(30, 20, 48, .10); --line2: rgba(30, 20, 48, .24);
  --accent: #FFB347; --accent-ink: #8A4E07; --tint: rgba(255, 179, 71, .18); --btn: #2E1D52; --on-btn: #FFFFFF;
  --h-bg: linear-gradient(180deg, #1E1336 0%, #3A2560 100%); --h-ink: #FBF7FF; --h-muted: #CEC2E6; --h-line: rgba(255, 255, 255, .14);
  --h-btn: #FFC56B; --h-on-btn: #24173F; --h-btn2: #FBF7FF; --h-btn2-line: rgba(255, 255, 255, .34); --h-chip: rgba(255, 197, 107, .14); --h-chip-ink: #FFD99A;
  --glow-a: rgba(255, 179, 71, .26); --glow-b: rgba(94, 234, 212, .18);
  --r: 24px; --r-btn: 999px; --r-shot: 20px;
}

/* ---------- the page ---------- */
body.lp-on { background: var(--bg); }
body.lp-on > .site-nav, body.lp-on > main.up-main, body.lp-on > .up-footer { display: none; }
.lp { background: var(--bg); color: var(--ink); font-family: var(--f-body); font-size: 16px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
.lp *, .lp *::before, .lp *::after { box-sizing: border-box; }
:where(.lp) a { color: inherit; }
.lp-wrap { width: 100%; max-width: 1160px; margin: 0 auto; padding-left: max(20px, env(safe-area-inset-left, 0px)); padding-right: max(20px, env(safe-area-inset-right, 0px)); }
.lp-skip { position: absolute; left: 12px; top: -60px; z-index: 50; padding: 10px 14px; border-radius: var(--r-btn); background: var(--btn); color: var(--on-btn); text-decoration: none; }
.lp-skip:focus { top: 12px; }
.lp-glyph { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.lp-glyph .fill, .lp-tick .fill, .lp-tile-icon .fill, .lp-quote-icon .fill { fill: currentColor; stroke: none; }
.lp-brand-icon.up-icon { width: 32px; height: 32px; border-radius: 9px; box-shadow: none; }
.lp-brand-icon.up-icon svg { width: 18px; height: 18px; }
.lp :focus-visible { outline: 2px solid var(--accent-ink); outline-offset: 3px; }
.lp-band :focus-visible, .lp-final :focus-visible { outline-color: var(--h-ink); }

/* Buttons */
.lp-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 22px; border-radius: var(--r-btn); border: 1px solid transparent;
  font: 600 15px/1 var(--f-body); letter-spacing: -0.005em; text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, background-color .18s ease, border-color .18s ease;
}
.lp-btn .lp-glyph { width: 15px; height: 15px; }
.lp-btn:hover { transform: translateY(-1px); }
.lp-btn--hero { background: var(--h-btn); color: var(--h-on-btn); box-shadow: 0 10px 30px -10px var(--glow-a); }
.lp-btn--hero-2 { background: transparent; color: var(--h-btn2); border-color: var(--h-btn2-line); }
.lp-btn--hero-2:hover { border-color: var(--h-btn2); }
.lp-btn--primary { background: var(--btn); color: var(--on-btn); }
.lp-btn--ghost { background: var(--surface); color: var(--ink); border-color: var(--line2); }
.lp-btn--ghost:hover { border-color: var(--ink); }
.lp-btn--sm { min-height: 44px; padding: 0 16px; font-size: 14px; }

/* ---------- the hero band ---------- */
.lp-band { position: relative; background: var(--h-bg); color: var(--h-ink); isolation: isolate; }
.lp-band::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; overflow: hidden;
  background: radial-gradient(60% 50% at 50% 62%, var(--glow-a), transparent 70%), radial-gradient(40% 40% at 85% 20%, var(--glow-b), transparent 70%);
}
[data-app="wanderlight"] .lp-band::after {
  /* a few stars */
  content: ""; position: absolute; inset: 0 0 40% 0; z-index: -1; pointer-events: none; opacity: .5;
  background-image: radial-gradient(1.5px 1.5px at 12% 22%, rgba(255, 255, 255, .55), transparent), radial-gradient(1px 1px at 28% 12%, rgba(255, 255, 255, .45), transparent),
    radial-gradient(1.5px 1.5px at 74% 18%, rgba(255, 255, 255, .5), transparent), radial-gradient(1px 1px at 88% 34%, rgba(255, 255, 255, .45), transparent),
    radial-gradient(1px 1px at 52% 8%, rgba(255, 255, 255, .4), transparent), radial-gradient(1.5px 1.5px at 6% 48%, rgba(255, 255, 255, .4), transparent);
}
.lp-nav-inner { display: flex; align-items: center; gap: 16px; min-height: 72px; }
.lp-brand { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; font: var(--display-weight) 18px/1 var(--f-display); letter-spacing: -0.01em; text-decoration: none; color: var(--h-ink); }
.lp-links { display: none; gap: 4px; margin-left: auto; }
.lp-links a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px; border-radius: var(--r-btn); color: var(--h-muted); font-size: 14px; font-weight: 500; text-decoration: none; }
.lp-links a:hover { color: var(--h-ink); }
.lp-nav .lp-btn { margin-left: auto; }
@media (min-width: 760px) { .lp-links { display: flex; } .lp-nav .lp-btn { margin-left: 8px; } }

.lp-hero-inner { display: grid; justify-items: center; text-align: center; gap: 22px; padding-block: 40px 44px; }
@media (min-width: 760px) { .lp-hero-inner { padding-block: 72px 56px; gap: 26px; } }
.lp-chip {
  display: inline-flex; align-items: center; gap: 8px; margin: 0; padding: 6px 14px; border-radius: 999px;
  background: var(--h-chip); color: var(--h-chip-ink); border: 1px solid var(--h-line); font: 500 13px/1.3 var(--f-mono); letter-spacing: .01em;
}
.lp-chip-dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; box-shadow: 0 0 0 4px var(--h-chip); }
.lp-title {
  margin: 0; max-width: 17ch; font-family: var(--f-display); font-weight: var(--display-weight); text-transform: var(--display-case);
  font-size: clamp(38px, 6.4vw, 76px); line-height: 1.02; letter-spacing: var(--display-track); text-wrap: balance;
}
[data-app="apex"] .lp-title { font-size: clamp(36px, 5.6vw, 68px); line-height: 1.04; }
[data-app="wanderlight"] .lp-title, [data-app="edgemark"] .lp-title { max-width: 20ch; font-size: clamp(36px, 5.4vw, 66px); }
.lp-sub { margin: 0; max-width: 58ch; color: var(--h-muted); font-size: clamp(17px, 1.6vw, 20px); line-height: 1.55; text-wrap: pretty; }
.lp-cta { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.lp-cta .lp-btn { min-height: 52px; padding: 0 26px; font-size: 16px; }
@media (max-width: 480px) { .lp-cta { display: grid; width: 100%; } }
.lp-facts { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 18px; margin: 0; padding: 0; list-style: none; color: var(--h-muted); font-size: 14px; }
.lp-facts li { display: inline-flex; align-items: center; gap: 6px; }
.lp-facts .lp-glyph { width: 15px; height: 15px; color: var(--h-ink); }

/* The app on a laptop and a phone, floating over the band's edge. */
.lp-stage { position: relative; margin-bottom: -150px; padding-bottom: 24px; }
@media (min-width: 760px) { .lp-stage { margin-bottom: -220px; } }
.lp-window {
  margin: 0 auto; max-width: 1040px; border-radius: calc(var(--r-shot) + 2px); overflow: hidden;
  background: var(--surface); border: 1px solid var(--h-line);
  box-shadow: 0 0 0 6px rgba(255, 255, 255, .04), 0 40px 100px -30px rgba(0, 0, 0, .45), 0 18px 40px -20px rgba(0, 0, 0, .3);
}
.lp-window-bar { display: flex; align-items: center; gap: 7px; height: 38px; padding: 0 14px; background: #F2F2F4; border-bottom: 1px solid rgba(0, 0, 0, .08); }
.lp-window-bar span { width: 11px; height: 11px; border-radius: 50%; background: #D4D4D8; }
.lp-window-bar span:nth-child(1) { background: #FF6159; } .lp-window-bar span:nth-child(2) { background: #FFBD2E; } .lp-window-bar span:nth-child(3) { background: #28C941; }
.lp-window-bar p { margin: 0 auto; padding: 3px 14px; border-radius: 7px; background: #FFFFFF; color: #3F3F46; font: 500 12px/1.3 var(--f-mono); }
.lp-window img { display: block; width: 100%; height: auto; }
.lp-phone {
  position: absolute; right: max(12px, 3%); bottom: 0; width: clamp(104px, 21%, 236px); margin: 0;
  border: 6px solid var(--bezel); border-radius: 30px; overflow: hidden; background: var(--bezel);
  box-shadow: 0 30px 70px -20px rgba(0, 0, 0, .5);
}
@media (min-width: 760px) { .lp-phone { border-width: 9px; border-radius: 40px; bottom: -28px; } }
.lp-phone img { display: block; width: 100%; height: auto; border-radius: 24px; }
@media (min-width: 760px) { .lp-phone img { border-radius: 31px; } }

/* ---------- sections ---------- */
.lp-section { padding-block: 60px; }
@media (min-width: 760px) { .lp-section { padding-block: 104px; } }
.lp-head { display: grid; gap: 12px; max-width: 720px; margin-bottom: 32px; }
@media (min-width: 760px) { .lp-head { margin-bottom: 44px; } }
.lp-eyebrow { margin: 0; color: var(--accent-ink); font: 600 13px/1.3 var(--f-mono); letter-spacing: .08em; text-transform: uppercase; }
.lp-h2 { margin: 0; font-family: var(--f-display); font-weight: var(--display-weight); text-transform: var(--display-case); font-size: clamp(30px, 4vw, 48px); line-height: 1.08; letter-spacing: var(--display-track); text-wrap: balance; }
.lp-lede { margin: 0; color: var(--muted); font-size: 18px; line-height: 1.6; max-width: 60ch; }

/* The live demo, first thing under the window. */
.lp-demo { padding-top: calc(150px + 64px); }
@media (min-width: 760px) { .lp-demo { padding-top: calc(220px + 96px); } }
.lp-demo-inner { display: grid; gap: 40px; align-items: center; }
@media (min-width: 900px) { .lp-demo-inner { grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 64px; } }
.lp-demo-text { display: grid; gap: 28px; justify-items: start; }
.lp-demo-text .lp-head { margin-bottom: 0; }
.lp-steps { display: grid; gap: 14px; margin: 0; padding: 0; list-style: none; }
.lp-steps li { display: flex; gap: 14px; align-items: flex-start; }
.lp-steps .lp-glyph { width: 40px; height: 40px; padding: 10px; border-radius: 12px; background: var(--tint); color: var(--accent-ink); }
.lp-steps div { display: grid; gap: 2px; }
.lp-steps b { font-weight: 600; }
.lp-steps span { color: var(--muted); }
.lp-demo-shot {
  position: relative; display: block; justify-self: center; width: min(320px, 78vw); border-radius: 36px; overflow: hidden;
  border: 8px solid var(--bezel); background: var(--bezel); box-shadow: var(--shadow-lift); transition: transform .25s ease, box-shadow .25s ease;
}
.lp-demo-shot img { display: block; width: 100%; height: auto; aspect-ratio: 540 / 900; object-fit: cover; object-position: top; border-radius: 28px; }
.lp-demo-shot:hover { transform: translateY(-4px) rotate(-.6deg); }
.lp-demo-play {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); display: grid; place-items: center;
  width: 76px; height: 76px; border-radius: 50%; background: var(--btn); color: var(--on-btn); box-shadow: 0 0 0 10px var(--tint), 0 20px 40px -10px rgba(0, 0, 0, .4);
}
.lp-demo-play .lp-glyph { width: 28px; height: 28px; margin-left: 4px; }

/* Features: a bento of problem → answer cards, each with its real screen. */
.lp-features { background: var(--bg2); }
.lp-grid { display: grid; gap: 18px; margin: 0; padding: 0; list-style: none; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 760px) { .lp-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } .lp-card--wide { grid-column: span 2; } }
.lp-card {
  display: grid; grid-template-rows: auto 1fr; overflow: hidden; min-width: 0;
  background: var(--surface); border: 1px solid var(--line); border-radius: calc(var(--r) + 4px); box-shadow: var(--shadow);
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}
.lp-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lift); border-color: var(--line2); }
.lp-card-text { display: grid; gap: 8px; padding: 26px 26px 18px; }
.lp-problem { margin: 0; color: var(--accent-ink); font-weight: 600; font-size: 14px; }
.lp-card h3 { margin: 0; font-family: var(--f-display); font-weight: var(--display-weight); font-size: 22px; line-height: 1.2; letter-spacing: -0.01em; }
.lp-card-text > p:last-child { margin: 0; color: var(--muted); }
/* The screenshot fills whatever height the card has (it never sets it), cropped at the bottom. */
.lp-card-shot { position: relative; min-height: 280px; overflow: hidden; background: linear-gradient(180deg, transparent, var(--tint)); }
.lp-card-shot img {
  position: absolute; top: 8px; left: 0; right: 0; margin-inline: auto; display: block; width: min(76%, 280px); height: auto;
  border-radius: var(--r-shot) var(--r-shot) 0 0; border: 1px solid var(--line); border-bottom: 0; box-shadow: 0 -6px 30px -14px rgba(0, 0, 0, .25);
  transition: transform .35s ease;
}
.lp-card:hover .lp-card-shot img { transform: translateY(-8px); }
@media (min-width: 760px) {
  .lp-card--wide { grid-template-rows: none; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .lp-card--wide .lp-card-text { align-content: center; padding: 34px; }
  .lp-card--wide .lp-card-shot { min-height: 360px; }
  .lp-card--wide .lp-card-shot img { top: 28px; }
}

/* Phones: the four cards are a swipe row, so the page stays short. */
@media (max-width: 759px) {
  .lp-grid {
    display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain;
    margin-inline: calc(-1 * max(20px, env(safe-area-inset-left, 0px))); padding: 4px max(20px, env(safe-area-inset-left, 0px)) 16px;
    scroll-padding-inline: max(20px, env(safe-area-inset-left, 0px));
  }
  .lp-grid::-webkit-scrollbar { display: none; }
  .lp-card { flex: 0 0 84%; scroll-snap-align: start; }
  .lp-card:hover { transform: none; }
  .lp-card-shot { min-height: 240px; }
}

/* Trust and objections. */
.lp-tiles { display: grid; gap: 16px; margin: 0; padding: 0; list-style: none; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 640px) { .lp-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .lp-tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.lp-tiles li { display: grid; gap: 8px; align-content: start; padding: 24px; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); }
@media (max-width: 639px) {
  .lp-tiles { gap: 10px; }
  .lp-tiles li { grid-template-columns: 42px minmax(0, 1fr); column-gap: 14px; row-gap: 2px; padding: 16px; }
  .lp-tiles li .lp-tile-icon { grid-row: span 2; }
  .lp-tiles h3 { margin: 0; }
}
.lp-tile-icon { width: 42px; height: 42px; padding: 10px; border-radius: 12px; background: var(--tint); color: var(--accent-ink); fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.lp-tiles h3 { margin: 6px 0 0; font-size: 17px; font-weight: 600; }
.lp-tiles p { margin: 0; color: var(--muted); font-size: 15px; }

/* Pricing. */
.lp-pricing { background: var(--bg2); }
.lp-pricing .lp-head { justify-items: center; text-align: center; margin-inline: auto; }
.lp-period { display: flex; width: max-content; margin: 0 auto 28px; padding: 4px; gap: 4px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line2); }
.lp-period button { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 20px; border: 0; border-radius: 999px; background: transparent; color: var(--muted); font: 600 15px/1 var(--f-body); cursor: pointer; }
.lp-period button[aria-checked="true"] { background: var(--btn); color: var(--on-btn); }
.lp-save { padding: 3px 8px; border-radius: 999px; background: var(--tint); color: var(--accent-ink); font-size: 12px; }
.lp-period button[aria-checked="true"] .lp-save { background: var(--accent); color: var(--ink); }
.lp-plans { display: grid; gap: 18px; max-width: 900px; margin: 0 auto; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 760px) { .lp-plans { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.lp-plan { display: grid; align-content: start; gap: 16px; padding: 30px; border-radius: calc(var(--r) + 4px); background: var(--surface); border: 1px solid var(--line); }
.lp-plan--pro { border: 2px solid var(--ink); padding: 29px; box-shadow: 0 24px 60px -24px var(--glow-a); }
.lp-plan h3 { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 0; font-family: var(--f-display); font-weight: var(--display-weight); font-size: 24px; letter-spacing: -0.01em; }
.lp-badge { padding: 4px 10px; border-radius: 999px; background: var(--tint); color: var(--accent-ink); font: 600 12px/1.2 var(--f-body); letter-spacing: 0; }
.lp-price { display: flex; align-items: baseline; gap: 6px; margin: 0; }
.lp-price b { font: 700 46px/1 var(--f-display); letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.lp-price span { color: var(--muted); }
.lp-plan-note { margin: -8px 0 0; color: var(--muted); font-size: 14px; min-height: 1.6em; }
.lp-plan .lp-btn { width: 100%; }
.lp-list { display: grid; gap: 10px; margin: 6px 0 0; padding: 18px 0 0; list-style: none; border-top: 1px solid var(--line); font-size: 15px; }
.lp-list li { display: flex; gap: 10px; align-items: flex-start; }
.lp-tick { width: 18px; height: 18px; flex: none; margin-top: 3px; color: var(--accent-ink); fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.lp-fine { max-width: 720px; margin: 24px auto 0; text-align: center; color: var(--muted); font-size: 14px; }

/* Reviews. */
.lp-reviews .lp-head { margin-bottom: 28px; }
.lp-quotes { display: grid; gap: 16px; margin: 0; padding: 0; list-style: none; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 760px) { .lp-quotes { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.lp-quotes figure { height: 100%; margin: 0; display: grid; gap: 14px; align-content: start; padding: 26px; border-radius: var(--r); background: var(--surface); border: 1px solid var(--line); }
.lp-quote-icon { width: 26px; height: 26px; color: var(--accent-ink); }
.lp-quotes blockquote { margin: 0; }
.lp-quotes blockquote p { margin: 0; font-family: var(--f-display); font-weight: var(--display-weight); font-size: 21px; line-height: 1.35; letter-spacing: -0.01em; }
[data-app="apex"] .lp-quotes blockquote p { text-transform: none; }
.lp-quotes figcaption { color: var(--muted); font-size: 14px; }

/* FAQ and install. */
.lp-faq { background: var(--bg2); }
.lp-faq-inner { display: grid; gap: 40px; align-items: start; }
@media (min-width: 900px) { .lp-faq-inner { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 56px; } }
.lp-qa { display: grid; border-top: 1px solid var(--line2); }
.lp-qa details { border-bottom: 1px solid var(--line2); }
.lp-qa summary { position: relative; display: flex; align-items: center; min-height: 60px; padding: 12px 36px 12px 0; font-weight: 600; font-size: 17px; cursor: pointer; list-style: none; }
.lp-qa summary::-webkit-details-marker { display: none; }
.lp-qa summary::after { content: ""; position: absolute; right: 6px; width: 10px; height: 10px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: translateY(-3px) rotate(45deg); transition: transform .2s ease; }
.lp-qa details[open] summary::after { transform: translateY(2px) rotate(225deg); }
.lp-qa p { margin: 0 0 18px; color: var(--muted); max-width: 64ch; }
.lp-install { display: grid; gap: 14px; padding: 26px; border-radius: calc(var(--r) + 4px); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); }
.lp-install h3 { display: flex; align-items: center; gap: 10px; margin: 0; font-family: var(--f-display); font-weight: var(--display-weight); font-size: 21px; }
.lp-install h3 .lp-glyph { width: 36px; height: 36px; padding: 8px; border-radius: 10px; background: var(--tint); color: var(--accent-ink); }
.lp-install > p { margin: 0; color: var(--muted); font-size: 15px; }
.lp-install-tabs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; padding: 4px; border-radius: calc(var(--r-btn) + 4px); background: var(--bg2); }
.lp-install-tabs button { min-height: 44px; padding: 0 6px; border: 0; border-radius: var(--r-btn); background: transparent; color: var(--muted); font: 600 13px/1.2 var(--f-body); cursor: pointer; }
.lp-install-tabs button[aria-selected="true"] { background: var(--surface); color: var(--ink); box-shadow: 0 1px 3px rgba(0, 0, 0, .12); }
.lp-install-steps { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; counter-reset: s; }
.lp-install-steps li { counter-increment: s; display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 10px; align-items: start; }
.lp-install-steps li::before { content: counter(s); display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--btn); color: var(--on-btn); font: 600 13px var(--f-body); }

/* The last call, and the footer. */
.lp-final { position: relative; background: var(--h-bg); color: var(--h-ink); isolation: isolate; overflow: hidden; }
.lp-final::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; background: radial-gradient(50% 70% at 50% 100%, var(--glow-a), transparent 70%); }
.lp-final-inner { display: grid; justify-items: center; gap: 18px; text-align: center; padding-block: 88px; }
.lp-final .lp-h2 { max-width: 20ch; }
.lp-final .lp-lede { color: var(--h-muted); }
.lp-footer { background: var(--bg); border-top: 1px solid var(--line); }
.lp-footer-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; padding-block: 28px calc(28px + env(safe-area-inset-bottom, 0px)); color: var(--muted); font-size: 14px; }
.lp-footer-brand { display: flex; align-items: center; gap: 10px; margin: 0; }
.lp-footer nav { display: flex; flex-wrap: wrap; gap: 4px 16px; }
.lp-footer nav a { display: inline-flex; align-items: center; min-height: 44px; color: var(--muted); }
.lp-footer a:hover { color: var(--ink); }

/* Phones: the two buttons stay at hand. */
.lp-sticky {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; display: grid; grid-template-columns: 1fr 1fr; gap: 8px;
  padding: 10px max(16px, env(safe-area-inset-right, 0px)) calc(10px + env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px));
  background: var(--surface); border-top: 1px solid var(--line); box-shadow: 0 -10px 30px -12px rgba(0, 0, 0, .2);
}
.lp-sticky .lp-btn { min-height: 48px; padding: 0 10px; }
.lp-sticky[hidden] { display: none; }
@media (min-width: 760px) { .lp-sticky { display: none !important; } }
@media (max-width: 759px) { .lp-footer-inner { padding-bottom: calc(96px + env(safe-area-inset-bottom, 0px)); } }

/* The Free offer (exit intent on a computer). */
.lp-dialog {
  width: min(460px, calc(100vw - 24px)); max-height: calc(100dvh - 24px); padding: 28px; border: 0; border-radius: calc(var(--r) + 4px);
  background: var(--surface); color: var(--ink); font-family: var(--f-body); box-shadow: var(--shadow-lift);
}
.lp-dialog[open] { display: grid; gap: 16px; }
.lp-dialog::backdrop { background: rgba(10, 10, 16, .55); }
.lp-dialog-head { display: flex; align-items: center; gap: 12px; }
.lp-dialog h2 { flex: 1; margin: 0; font-family: var(--f-display); font-weight: var(--display-weight); font-size: 24px; line-height: 1.15; letter-spacing: -0.01em; }
.lp-dialog > p { margin: 0; color: var(--muted); }
.lp-dialog .lp-list { margin: 0; }
.lp-dialog .lp-btn { width: 100%; }
.lp-x { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line2); background: var(--bg); color: var(--ink); cursor: pointer; }

@media (prefers-reduced-motion: reduce) {
  .lp-btn, .lp-card, .lp-card-shot img, .lp-demo-shot, .lp-qa summary::after { transition: none; }
  .lp-btn:hover, .lp-card:hover, .lp-card:hover .lp-card-shot img, .lp-demo-shot:hover { transform: none; }
}
