/* Android Apps page (garden.beogradpc.com/apps) in the beogradpc.com portal style.
   PlantID and FieldMobile keep a garden look (.ap-garden). Loaded only by apps.html. */

@font-face {
  font-family: "BPC Inter";
  src: url("fonts/bpc-inter-890990.woff2") format("woff2");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}

@font-face {
  font-family: "BPC Sora";
  src: url("fonts/bpc-sora-811e11.woff2") format("woff2");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}

:root.ap-root {
  color-scheme: dark;
  --bg: #070b13;
  --line: rgba(181, 207, 240, 0.25);
  --line-strong: rgba(181, 207, 240, 0.42);
  --text: #f5f8ff;
  --muted: #9caec6;
  --muted-2: #71839b;
  --blue: #5aa7ff;
  --cyan: #45d5ee;
  --green: #59dda0;
  --violet: #a78bfa;
  --amber: #f8ba55;
  --radius: 28px;
  --font: "BPC Inter", "Inter", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --display: "BPC Sora", "BPC Inter", ui-sans-serif, system-ui, sans-serif;
  --garden-serif: "Playfair Display", Georgia, serif;
  --head: var(--ap-head-h, 72px);
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--head) + 18px);
  scrollbar-color: #2b3d57 var(--bg);
}

/* The shared BeogradPC controls in the portal palette */
:root.ap-root[data-bpc-site] {
  --bpc-nav-bg: linear-gradient(145deg, rgba(50, 70, 101, 0.78), rgba(25, 40, 65, 0.86));
  --bpc-nav-text: #c5d4e8;
  --bpc-nav-border: rgba(189, 211, 241, 0.2);
  --bpc-nav-accent: #5aa7ff;
  --bpc-nav-radius: 11px;
  --bpc-nav-shadow: 4px 5px 11px rgba(0, 0, 0, 0.32), -2px -2px 7px rgba(138, 183, 239, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.ap-root body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  overflow-x: clip;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

.ap-root body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -3;
  pointer-events: none;
  background:
    radial-gradient(1000px 640px at 16% -10%, rgba(55, 130, 246, 0.22), transparent 65%),
    radial-gradient(800px 520px at 92% 8%, rgba(54, 211, 238, 0.12), transparent 62%),
    radial-gradient(900px 700px at 50% 105%, rgba(111, 78, 246, 0.12), transparent 64%),
    linear-gradient(180deg, #08101d 0%, #070b13 52%, #060910 100%);
}

.ap-root body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  opacity: 0.23;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse 82% 62% at 50% 16%, #000 15%, transparent 75%);
  mask-image: radial-gradient(ellipse 82% 62% at 50% 16%, #000 15%, transparent 75%);
}

.ap-root ::selection {
  background: rgba(90, 167, 255, 0.32);
  color: #fff;
}

.ap-main *,
.ap-main *::before,
.ap-main *::after,
.ap-footer *,
.ap-lightbox * {
  box-sizing: border-box;
}

.ap-main img,
.ap-main svg,
.ap-lightbox img,
.ap-lightbox svg {
  display: block;
}

.ap-main :focus-visible,
.ap-footer :focus-visible,
.ap-lightbox :focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 4px;
}

.ap-main a,
.ap-footer a {
  color: inherit;
  -webkit-tap-highlight-color: transparent;
}

.ap-container {
  width: min(1180px, calc(100% - 40px));
  margin-inline: auto;
}

.ap-ambient {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}

.ap-ambient span {
  position: absolute;
  width: 360px;
  height: 360px;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.13;
  animation: ap-drift 18s ease-in-out infinite alternate;
}

.ap-ambient span:first-child {
  top: 12%;
  left: -160px;
  background: #2f8cff;
}

.ap-ambient span:last-child {
  top: 52%;
  right: -180px;
  background: #7457ff;
  animation-delay: -7s;
}

/* ---------- Page header: the shared BeogradPC controls, one button per app, AI setup and help ----------
   The id is the hook bpc-navigation.js uses on garden pages; :root.ap-root keeps these rules
   ahead of the garden header rules in bpc-navigation.css. */
:root.ap-root #gv-suite-header {
  position: sticky;
  top: 0;
  z-index: 45;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  grid-template-areas: "bpc nav actions";
  align-items: center;
  gap: 14px;
  min-height: 66px;
  padding: 11px 18px;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(145deg, rgba(23, 37, 60, 0.94), rgba(13, 24, 42, 0.94));
  box-shadow: 0 14px 38px rgba(0, 0, 0, 0.36), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  color: #c5d4e8;
  font-family: var(--font);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
  backdrop-filter: blur(20px) saturate(140%);
}

.ap-header *,
.ap-dialog *,
.ap-toast {
  box-sizing: border-box;
}

.ap-header svg,
.ap-dialog svg {
  display: block;
}

.ap-header :focus-visible,
.ap-dialog :focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
}

.ap-header #bpc-navigation {
  grid-area: bpc;
}

.ap-appnav {
  grid-area: nav;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-width: 0;
}

.ap-appnav a,
.ap-header-actions button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 40px;
  padding: 0 12px;
  border: 1px solid rgba(189, 211, 241, 0.16);
  border-radius: 11px;
  background: linear-gradient(145deg, rgba(50, 70, 101, 0.78), rgba(25, 40, 65, 0.86));
  box-shadow: 4px 5px 11px rgba(0, 0, 0, 0.32), -2px -2px 7px rgba(138, 183, 239, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  color: #c5d4e8;
  font: 700 0.76rem/1.2 var(--font);
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.ap-appnav a {
  --accent: var(--blue);
}

.ap-appnav svg,
.ap-header-actions svg {
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
  color: var(--accent, var(--blue));
  filter: drop-shadow(0 0 5px color-mix(in srgb, var(--accent, var(--blue)) 42%, transparent));
}

.ap-appnav a:hover,
.ap-header-actions button:hover {
  transform: translateY(-2px);
  border-color: color-mix(in srgb, var(--accent, var(--blue)) 48%, transparent);
  color: #fff;
}

.ap-appnav a[aria-current] {
  border-color: color-mix(in srgb, var(--accent) 62%, transparent);
  background: linear-gradient(145deg, color-mix(in srgb, var(--accent) 32%, #263a59), color-mix(in srgb, var(--accent) 14%, #16263f));
  color: #fff;
}

.ap-header-actions {
  grid-area: actions;
  display: flex;
  align-items: center;
  gap: 7px;
}

.ap-header-actions #ap-ai-setup {
  --accent: #b9a6ff;
}

.ap-header-actions .ap-icon-btn {
  width: 40px;
  padding: 0;
  font-size: 0.9rem;
}

/* ---------- Dialogs: AI setup, AI information, help ---------- */
.ap-dialog {
  width: min(700px, calc(100vw - 28px));
  max-height: 88dvh;
  padding: 0;
  overflow: auto;
  border: 1px solid rgba(194, 215, 243, 0.3);
  border-radius: 22px;
  background: linear-gradient(145deg, #1d2f4b, #111d32);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  color: var(--text);
  font: 400 0.92rem/1.65 var(--font);
}

.ap-dialog::backdrop {
  background: rgba(4, 8, 15, 0.72);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
}

.ap-dialog-head {
  position: sticky;
  top: 0;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 22px 14px;
  border-bottom: 1px solid var(--line);
  background: #1a2a44;
}

.ap-dialog-head h2 {
  margin: 0;
  font: 690 1.3rem/1.2 var(--display);
  letter-spacing: -0.03em;
}

.ap-dialog-close {
  display: grid;
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  place-items: center;
  padding: 0;
  border: 1px solid rgba(189, 211, 241, 0.2);
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.05);
  color: #eaf2ff;
  font-size: 1.3rem;
  line-height: 1;
  cursor: pointer;
}

.ap-dialog-body {
  padding: 18px 22px 24px;
}

.ap-dialog-body p {
  margin: 0 0 14px;
  color: #c3d0e2;
}

.ap-dialog-body h3 {
  margin: 20px 0 10px;
  font: 700 0.95rem/1.3 var(--display);
}

.ap-dialog-body ul,
.ap-dialog-body ol {
  display: grid;
  gap: 8px;
  margin: 0 0 14px;
  padding-left: 20px;
  color: #c3d0e2;
}

.ap-dialog-body strong {
  color: #fff;
}

.ap-dialog-body a {
  color: #9ecaff;
  font-weight: 700;
}

.ap-dialog-body label {
  display: block;
  margin: 14px 0 6px;
  color: #eaf2ff;
  font-size: 0.85rem;
  font-weight: 700;
}

.ap-dialog-body input {
  width: 100%;
  padding: 11px 12px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: rgba(5, 10, 18, 0.55);
  color: var(--text);
  font: inherit;
}

.ap-dialog-body details {
  margin: 14px 0;
}

.ap-dialog-body summary {
  color: #eaf2ff;
  font-weight: 700;
  cursor: pointer;
}

.ap-uses {
  list-style: none;
  padding-left: 0 !important;
}

.ap-uses li {
  padding: 10px 12px;
  border: 1px solid rgba(194, 215, 243, 0.16);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.035);
}

.ap-dialog-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 18px 0 10px;
}

.ap-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 16px;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
  font: 800 0.82rem/1.2 var(--font);
  cursor: pointer;
}

.ap-btn:hover {
  border-color: rgba(90, 167, 255, 0.5);
}

.ap-btn:disabled {
  opacity: 0.55;
  cursor: wait;
}

.ap-btn-primary {
  border-color: transparent;
  background: linear-gradient(135deg, #5b9df2, #5ad8e4);
  color: #06101d;
}

.ap-dialog-body .ap-muted {
  color: var(--muted-2);
  font-size: 0.8rem;
}

.ap-dialog-body .ap-error {
  color: #ff9a9a;
  font-weight: 700;
}

.ap-dialog-body .ap-error:empty,
.ap-dialog-body #ap-ai-result:empty {
  display: none;
}

.ap-state {
  padding: 10px 12px;
  border-left: 3px solid var(--green);
  border-radius: 8px;
  background: rgba(89, 221, 160, 0.08);
}

.ap-toast {
  position: fixed;
  bottom: 20px;
  left: 50%;
  z-index: 1000;
  max-width: calc(100vw - 32px);
  padding: 12px 18px;
  border: 1px solid rgba(89, 221, 160, 0.4);
  border-radius: 12px;
  background: #12324a;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  color: #eaf6ff;
  font: 600 0.86rem/1.5 var(--font);
  transform: translateX(-50%);
}

.ap-toast[hidden] {
  display: none;
}

@media (max-width: 1320px) {
  :root.ap-root #gv-suite-header {
    grid-template-columns: auto minmax(0, 1fr) auto;
    grid-template-areas:
      "bpc . actions"
      "nav nav nav";
    row-gap: 10px;
  }
}

@media (max-width: 767px) {
  :root.ap-root #gv-suite-header {
    gap: 8px;
    padding: 9px 12px;
  }

  .ap-appnav {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 5px;
  }

  .ap-appnav a {
    min-width: 0;
    padding: 0;
  }

  .ap-appnav span {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }
}

@media (max-width: 480px) {
  .ap-header-actions #ap-ai-setup {
    width: 40px;
    padding: 0;
  }

  .ap-header-actions #ap-ai-setup span {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }
}

@media (max-width: 400px) {
  .ap-header #bpc-navigation .bpc-nav-home {
    width: 40px;
    padding: 0;
  }

  .ap-header #bpc-navigation .bpc-nav-home span {
    display: none;
  }
}

/* ---------- Hero ---------- */
.ap-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(360px, 0.85fr);
  align-items: center;
  gap: 64px;
  padding: 72px 0 88px;
}

.ap-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 22px;
  color: #9ecaff;
  font-size: 0.72rem;
  font-weight: 850;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.ap-eyebrow::before {
  content: "";
  width: 22px;
  height: 1px;
  background: currentColor;
  box-shadow: 0 0 12px currentColor;
}

.ap-hero h1 {
  max-width: 720px;
  margin: 0;
  font-family: var(--display);
  font-size: clamp(2.7rem, 6vw, 5.4rem);
  font-weight: 720;
  letter-spacing: -0.065em;
  line-height: 0.98;
}

.ap-hero h1 span {
  display: block;
  background: linear-gradient(102deg, #75aefd 4%, #69deeb 48%, #b9a6ff 96%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.ap-lead {
  max-width: 640px;
  margin: 26px 0 0;
  color: #aabbd0;
  font-size: clamp(1.02rem, 1.7vw, 1.2rem);
  line-height: 1.75;
}

.ap-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.ap-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 50px;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: 14px;
  font-size: 0.88rem;
  font-weight: 800;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.ap-button:hover {
  transform: translateY(-2px);
}

.ap-button svg {
  width: 18px;
  height: 18px;
}

.ap-button-primary {
  background: linear-gradient(135deg, #5b9df2, #5ad8e4);
  box-shadow: 0 16px 36px rgba(57, 146, 234, 0.24), inset 0 1px 0 rgba(255, 255, 255, 0.42);
  color: #06101d;
}

.ap-button-secondary {
  border-color: var(--line-strong);
  background: rgba(255, 255, 255, 0.045);
  color: var(--text);
}

.ap-button-secondary:hover {
  border-color: rgba(90, 167, 255, 0.42);
  background: rgba(255, 255, 255, 0.075);
}

.ap-note {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 22px;
  margin-top: 28px;
  color: var(--muted-2);
  font-size: 0.76rem;
  font-weight: 650;
}

.ap-note span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.ap-note svg {
  width: 15px;
  height: 15px;
  color: var(--green);
}

.ap-launch {
  position: relative;
}

.ap-orbit {
  position: absolute;
  inset: -14% -20%;
  border: 1px solid rgba(90, 167, 255, 0.1);
  border-radius: 50%;
  transform: rotate(-12deg);
  animation: ap-orbit 26s linear infinite;
  pointer-events: none;
}

.ap-orbit::before,
.ap-orbit::after {
  content: "";
  position: absolute;
  border-radius: 50%;
}

.ap-orbit::before {
  top: 17%;
  left: 2%;
  width: 9px;
  height: 9px;
  background: var(--cyan);
  box-shadow: 0 0 22px var(--cyan);
}

.ap-orbit::after {
  right: 12%;
  bottom: 14%;
  width: 6px;
  height: 6px;
  background: var(--violet);
  box-shadow: 0 0 18px var(--violet);
}

.ap-launch-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 24px;
  border: 1px solid rgba(190, 214, 245, 0.28);
  border-radius: 30px;
  background:
    linear-gradient(145deg, rgba(85, 116, 158, 0.44), rgba(35, 56, 88, 0.38)),
    rgba(24, 39, 63, 0.97);
  box-shadow: 20px 28px 70px rgba(0, 0, 0, 0.58), -8px -8px 26px rgba(105, 157, 222, 0.13), inset 0 2px 0 rgba(255, 255, 255, 0.15), inset 0 -1px 0 rgba(0, 0, 0, 0.42);
  transform: perspective(1000px) rotateY(-3deg) rotateX(1deg);
  animation: ap-float 7s ease-in-out infinite;
}

.ap-launch-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}

.ap-launch-head p {
  margin: 0;
  color: var(--muted-2);
  font-size: 0.68rem;
  font-weight: 850;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.ap-live {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #8de8ba;
  font-size: 0.67rem;
  font-weight: 750;
}

.ap-live::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 5px rgba(89, 221, 160, 0.09), 0 0 16px rgba(89, 221, 160, 0.7);
  animation: ap-pulse 2.2s ease-out infinite;
}

.ap-launch-list {
  display: grid;
  gap: 9px;
}

.ap-launch-item {
  --accent: var(--blue);
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  min-height: 62px;
  padding: 7px 14px;
  overflow: hidden;
  border: 1px solid rgba(198, 218, 244, 0.22);
  border-radius: 17px;
  background: linear-gradient(145deg, rgba(76, 100, 136, 0.58), rgba(35, 55, 86, 0.7));
  box-shadow: 7px 9px 19px rgba(0, 0, 0, 0.38), -3px -3px 9px rgba(139, 181, 233, 0.09), inset 0 1px 0 rgba(255, 255, 255, 0.12), inset 0 -1px 0 rgba(0, 0, 0, 0.32);
  text-decoration: none;
  transition: transform 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}

.ap-launch-item::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 2px;
  background: var(--accent);
  box-shadow: 0 0 18px var(--accent);
  opacity: 0.85;
}

.ap-launch-item:hover {
  transform: translateX(5px);
  border-color: color-mix(in srgb, var(--accent) 45%, rgba(255, 255, 255, 0.16));
}

.ap-launch-icon {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 13px;
  background: color-mix(in srgb, var(--accent) 14%, transparent);
  color: var(--accent);
}

.ap-launch-icon svg {
  width: 21px;
  height: 21px;
}

.ap-launch-copy {
  display: grid;
  min-width: 0;
  line-height: 1.3;
}

.ap-launch-copy strong {
  font-family: var(--display);
  font-size: 0.86rem;
}

.ap-launch-copy small {
  margin-top: 3px;
  overflow: hidden;
  color: var(--muted-2);
  font-size: 0.68rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ap-launch-arrow {
  color: var(--muted-2);
  font-size: 1rem;
  transition: color 0.2s ease, transform 0.2s ease;
}

.ap-launch-item:hover .ap-launch-arrow {
  color: #fff;
  transform: translateY(2px);
}

.ap-launch-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  padding-top: 16px;
}

.ap-launch-stats div {
  padding: 12px 6px 4px;
  border-top: 1px solid var(--line);
  text-align: center;
}

.ap-launch-stats strong,
.ap-launch-stats span {
  display: block;
}

.ap-launch-stats strong {
  font-family: var(--display);
  font-size: 1.05rem;
}

.ap-launch-stats span {
  margin-top: 2px;
  color: var(--muted-2);
  font-size: 0.62rem;
  font-weight: 750;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* ---------- Sections ---------- */
.ap-section {
  padding: 72px 0;
}

.ap-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 36px;
  margin-bottom: 34px;
}

.ap-heading h2 {
  max-width: 740px;
  margin: 0;
  font-family: var(--display);
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 690;
  letter-spacing: -0.055em;
  line-height: 1.08;
}

.ap-heading p {
  max-width: 420px;
  margin: 0 0 5px;
  color: var(--muted);
  font-size: 0.95rem;
}

.ap-heading p a {
  color: #9ecaff;
  font-weight: 700;
}

.ap-stack {
  display: grid;
  gap: 30px;
}

.ap-group {
  --accent: var(--blue);
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 18px 0 -6px;
  color: color-mix(in srgb, var(--accent) 78%, white);
  font-size: 0.72rem;
  font-weight: 850;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.ap-group:first-child {
  margin-top: 0;
}

.ap-group::before {
  content: "";
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 14px var(--accent);
}

.ap-group::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, color-mix(in srgb, var(--accent) 40%, transparent), transparent);
}

/* ---------- App card (portal feature row) ---------- */
.ap-app {
  --accent: var(--blue);
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  align-items: stretch;
  gap: 34px;
  padding: 34px;
  overflow: hidden;
  border: 1px solid rgba(194, 215, 243, 0.3);
  border-radius: var(--radius);
  background: linear-gradient(145deg, rgba(39, 61, 95, 0.98), rgba(20, 34, 57, 0.99));
  box-shadow: 15px 22px 46px rgba(0, 0, 0, 0.52), -7px -7px 22px rgba(104, 156, 222, 0.11), inset 0 2px 0 rgba(255, 255, 255, 0.14), inset 0 -2px 0 rgba(0, 0, 0, 0.38);
  isolation: isolate;
  transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1), border-color 0.3s ease, box-shadow 0.3s ease;
}

.ap-app::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: radial-gradient(560px circle at var(--mx, 30%) var(--my, 15%), color-mix(in srgb, var(--accent) 14%, transparent), transparent 70%);
  opacity: 0.75;
}

.ap-app:hover {
  transform: translateY(-4px);
  border-color: color-mix(in srgb, var(--accent) 48%, rgba(194, 215, 243, 0.3));
  box-shadow: 19px 30px 64px rgba(0, 0, 0, 0.62), -8px -8px 25px color-mix(in srgb, var(--accent) 14%, transparent), inset 0 2px 0 rgba(255, 255, 255, 0.16);
}

.ap-app.ap-flip .ap-visual {
  order: -1;
}

.ap-copy {
  position: relative;
  z-index: 1;
  display: flex;
  min-width: 0;
  flex-direction: column;
  padding: 6px 4px;
}

.ap-app-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.ap-app-icon {
  display: grid;
  width: 50px;
  height: 50px;
  place-items: center;
  border: 1px solid color-mix(in srgb, var(--accent) 32%, transparent);
  border-radius: 16px;
  background: color-mix(in srgb, var(--accent) 14%, rgba(7, 12, 22, 0.4));
  box-shadow: 6px 8px 16px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  color: var(--accent);
}

.ap-app-icon svg {
  width: 25px;
  height: 25px;
}

.ap-kicker {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 10px;
  border: 1px solid color-mix(in srgb, var(--accent) 30%, transparent);
  border-radius: 999px;
  background: rgba(5, 10, 18, 0.55);
  color: color-mix(in srgb, var(--accent) 84%, white);
  font-size: 0.64rem;
  font-weight: 850;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.ap-kicker::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 10px var(--accent);
}

.ap-app h3 {
  margin: 20px 0 0;
  font-family: var(--display);
  font-size: clamp(2rem, 3.6vw, 3rem);
  font-weight: 690;
  letter-spacing: -0.055em;
  line-height: 1.06;
}

.ap-sub {
  margin: 8px 0 0;
  color: color-mix(in srgb, var(--accent) 78%, white);
  font-size: 0.9rem;
  font-weight: 700;
}

.ap-desc {
  max-width: 560px;
  margin: 14px 0 0;
  color: #adbed3;
  font-size: 0.93rem;
  line-height: 1.75;
}

.ap-points {
  display: grid;
  gap: 9px;
  margin: 20px 0 0;
  padding: 0;
  color: #d3deed;
  font-size: 0.82rem;
  font-weight: 600;
  line-height: 1.5;
  list-style: none;
}

.ap-points li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.ap-points svg {
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
  margin-top: 2px;
  color: var(--accent);
  filter: drop-shadow(0 0 6px color-mix(in srgb, var(--accent) 55%, transparent));
}

.ap-box {
  margin: 22px 0 0;
  padding: 20px 22px;
  border: 1px solid rgba(188, 211, 241, 0.18);
  border-radius: 18px;
  background: rgba(5, 10, 18, 0.34);
  box-shadow: inset 4px 6px 14px rgba(0, 0, 0, 0.32), inset -2px -2px 8px rgba(120, 165, 225, 0.05);
}

.ap-box h4 {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 12px;
  font-family: var(--display);
  font-size: 0.92rem;
}

.ap-box h4 svg {
  width: 18px;
  height: 18px;
  color: var(--accent);
}

.ap-box ol {
  display: grid;
  gap: 9px;
  margin: 0;
  padding: 0;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.6;
  list-style: none;
}

.ap-box strong {
  color: #eaf2ff;
}

.ap-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: auto;
  padding-top: 26px;
}

.ap-dl,
.ap-alt {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 48px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: 13px;
  font-size: 0.82rem;
  font-weight: 800;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.ap-dl svg,
.ap-alt svg {
  width: 17px;
  height: 17px;
}

.ap-dl {
  background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 72%, white), var(--accent));
  box-shadow: 0 14px 30px color-mix(in srgb, var(--accent) 24%, transparent), inset 0 1px 0 rgba(255, 255, 255, 0.45);
  color: #06101d;
}

.ap-dl:hover {
  transform: translateY(-2px);
  filter: brightness(1.06);
}

.ap-alt {
  border-color: var(--line-strong);
  background: rgba(255, 255, 255, 0.045);
  color: var(--text);
}

.ap-alt:hover {
  transform: translateY(-2px);
  border-color: color-mix(in srgb, var(--accent) 50%, transparent);
  background: rgba(255, 255, 255, 0.075);
}

.ap-small {
  margin: 12px 0 0;
  color: var(--muted-2);
  font-size: 0.74rem;
  line-height: 1.65;
}

.ap-small + .ap-small {
  margin-top: 6px;
}

.ap-small a {
  color: color-mix(in srgb, var(--accent) 80%, white);
  font-weight: 700;
}

.ap-small code {
  font-size: 0.95em;
  word-break: break-all;
}

.ap-visual {
  position: relative;
  z-index: 1;
  display: flex;
  min-width: 0;
  flex-direction: column;
  justify-content: center;
  gap: 12px;
  padding: 18px;
  border: 1px solid rgba(188, 211, 241, 0.2);
  border-radius: 22px;
  background: linear-gradient(145deg, rgba(12, 23, 40, 0.86), rgba(7, 14, 25, 0.94));
  box-shadow: 9px 13px 28px rgba(0, 0, 0, 0.42), -4px -4px 14px rgba(113, 161, 222, 0.07), inset 0 2px 0 rgba(255, 255, 255, 0.08), inset 0 -2px 0 rgba(0, 0, 0, 0.48);
}

.ap-shots {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.ap-shots.is-wide {
  grid-template-columns: minmax(0, 1fr);
}

/* wide screenshots (TV, Windows) stay in view beside a long description */
.ap-visual.is-wide {
  justify-content: flex-start;
}

.ap-visual.is-wide .ap-shots {
  position: sticky;
  top: calc(var(--head) + 24px);
}

@media (max-width: 960px) {
  .ap-visual.is-wide .ap-shots {
    position: static;
  }
}

.ap-shot-btn {
  display: block;
  width: 100%;
  margin: 0;
  padding: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  background: #0b1220;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.35);
  cursor: zoom-in;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.ap-shot-btn:hover {
  transform: translateY(-4px);
  border-color: color-mix(in srgb, var(--accent) 55%, transparent);
  box-shadow: 0 16px 30px rgba(0, 0, 0, 0.45);
}

.ap-shot-btn img {
  width: 100%;
  height: auto;
}

.ap-tap {
  margin: 0;
  color: var(--muted-2);
  font-size: 0.72rem;
  text-align: center;
}

/* ---------- Garden apps: PlantID and FieldMobile ---------- */
.ap-group.is-garden {
  --accent: #6db552;
}

.ap-garden {
  --g-ink: #263d2e;
  --g-green: #2d5a3d;
  padding-bottom: 104px;
  border-color: rgba(178, 214, 160, 0.6);
  background:
    radial-gradient(120% 90% at 100% 0%, rgba(247, 227, 160, 0.42), transparent 55%),
    linear-gradient(160deg, #f5f8f0 0%, #e9f0e1 55%, #dde8d3 100%);
  box-shadow: 15px 22px 46px rgba(0, 0, 0, 0.5), -7px -7px 22px rgba(109, 181, 82, 0.1), inset 0 2px 0 rgba(255, 255, 255, 0.85), inset 0 -2px 0 rgba(45, 90, 61, 0.14);
  color: var(--g-ink);
}

.ap-garden::before {
  background: radial-gradient(520px circle at var(--mx, 70%) var(--my, 10%), rgba(255, 255, 255, 0.55), transparent 70%);
  opacity: 1;
}

.ap-garden:hover {
  border-color: rgba(109, 181, 82, 0.75);
  box-shadow: 19px 30px 64px rgba(0, 0, 0, 0.58), -8px -8px 25px rgba(109, 181, 82, 0.16), inset 0 2px 0 rgba(255, 255, 255, 0.9);
}

.ap-garden .ap-app-icon {
  border-color: rgba(79, 157, 67, 0.3);
  background: linear-gradient(145deg, #fbfcf8, #dfe8d6);
  box-shadow: 4px 4px 10px rgba(36, 58, 39, 0.16), -4px -4px 10px rgba(255, 255, 255, 0.85);
  color: var(--g-green);
}

.ap-garden .ap-kicker {
  border-color: color-mix(in srgb, var(--accent) 40%, transparent);
  background: rgba(255, 255, 255, 0.72);
  color: var(--g-green);
}

.ap-garden h3 {
  color: var(--g-green);
  font-family: var(--garden-serif);
  font-weight: 700;
  letter-spacing: -0.015em;
}

.ap-garden .ap-sub {
  color: #4f7f3f;
}

.ap-garden .ap-desc {
  color: #4a5d4c;
}

.ap-garden .ap-points {
  color: #33483a;
}

.ap-garden .ap-points svg {
  color: var(--accent);
  filter: none;
}

.ap-garden .ap-dl {
  background: linear-gradient(135deg, #3d7d50, #2d5a3d);
  box-shadow: 0 12px 24px rgba(45, 90, 61, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.25);
  color: #fff;
}

.ap-garden .ap-alt {
  border-color: rgba(83, 115, 77, 0.32);
  background: #f8faf5;
  box-shadow: 3px 3px 8px rgba(36, 58, 39, 0.12), -3px -3px 8px rgba(255, 255, 255, 0.8);
  color: var(--g-green);
}

.ap-garden .ap-alt:hover {
  border-color: var(--g-green);
  background: #eef4e8;
}

.ap-garden .ap-small {
  color: #5c6d5c;
}

.ap-garden .ap-small a {
  color: var(--g-green);
}

.ap-garden .ap-visual {
  border-color: rgba(83, 115, 77, 0.2);
  background: linear-gradient(145deg, #e4ecdc, #d5e1ca);
  box-shadow: inset 4px 4px 12px rgba(36, 58, 39, 0.14), inset -4px -4px 12px rgba(255, 255, 255, 0.7);
}

.ap-garden .ap-shot-btn {
  border-color: rgba(45, 90, 61, 0.16);
  box-shadow: 0 8px 18px rgba(36, 58, 39, 0.22);
}

.ap-garden .ap-shot-btn:hover {
  border-color: rgba(45, 90, 61, 0.5);
}

.ap-garden .ap-tap {
  color: #5c6d5c;
}

.ap-garden :focus-visible {
  outline-color: #3d7d50;
}

.ap-deco {
  position: absolute;
  top: 20px;
  right: 24px;
  z-index: 0;
  width: 112px;
  height: 112px;
  color: var(--accent);
  opacity: 0.13;
  pointer-events: none;
}

.ap-bed {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 0;
  width: 100%;
  height: 96px;
  pointer-events: none;
}

.ap-bed .ap-sway {
  transform-box: fill-box;
  transform-origin: 50% 100%;
  animation: ap-sway var(--t, 5s) ease-in-out var(--d, 0s) infinite alternate;
  animation-play-state: paused;
}

/* the flowers move only while their card is on screen */
.ap-garden.is-live .ap-bed .ap-sway {
  animation-play-state: running;
}

/* ---------- Install ---------- */
.ap-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--line);
  box-shadow: 13px 18px 38px rgba(0, 0, 0, 0.46), -6px -6px 19px rgba(104, 156, 221, 0.09), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.ap-step {
  padding: 30px;
  background: linear-gradient(145deg, rgba(42, 64, 98, 0.99), rgba(22, 37, 61, 0.99));
  box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.11), inset 0 -2px 0 rgba(0, 0, 0, 0.32);
}

.ap-step-index {
  color: var(--blue);
  font-family: var(--display);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.ap-step h3 {
  margin: 16px 0 8px;
  font-family: var(--display);
  font-size: 1.12rem;
}

.ap-step p {
  margin: 0;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.7;
}

.ap-step strong,
.ap-panel strong {
  color: #eaf2ff;
}

.ap-help {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 18px;
}

.ap-panel {
  --accent: var(--blue);
  padding: 28px;
  border: 1px solid rgba(194, 215, 243, 0.28);
  border-radius: var(--radius);
  background: linear-gradient(145deg, rgba(40, 62, 96, 0.96), rgba(22, 37, 61, 0.98));
  box-shadow: 13px 18px 38px rgba(0, 0, 0, 0.46), -6px -6px 19px rgba(104, 156, 221, 0.1), inset 0 2px 0 rgba(255, 255, 255, 0.13), inset 0 -2px 0 rgba(0, 0, 0, 0.34);
}

.ap-panel h3 {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 16px;
  font-family: var(--display);
  font-size: 1rem;
}

.ap-panel h3 span {
  display: grid;
  width: 33px;
  height: 33px;
  place-items: center;
  border-radius: 10px;
  background: color-mix(in srgb, var(--accent) 13%, transparent);
  color: var(--accent);
}

.ap-panel h3 svg {
  width: 17px;
  height: 17px;
}

.ap-panel ul {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.ap-panel li,
.ap-panel p {
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.7;
}

.ap-panel p {
  margin: 0 0 12px;
}

.ap-panel p:last-child {
  margin-bottom: 0;
}

.ap-contact {
  margin: 24px 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.ap-contact a {
  color: #9ecaff;
  font-weight: 750;
}

/* ---------- FAQ ---------- */
.ap-faq {
  display: grid;
  grid-template-columns: 0.72fr 1.28fr;
  gap: 68px;
  align-items: start;
}

.ap-faq-copy h2 {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(2rem, 4vw, 3.5rem);
  letter-spacing: -0.055em;
  line-height: 1.08;
}

.ap-faq-copy p {
  margin: 18px 0 0;
  color: var(--muted);
}

.ap-faq-list {
  display: grid;
  gap: 10px;
}

.ap-faq-list details {
  border: 1px solid rgba(194, 215, 243, 0.27);
  border-radius: 18px;
  background: linear-gradient(145deg, rgba(48, 71, 106, 0.95), rgba(24, 41, 67, 0.97));
  box-shadow: 8px 11px 23px rgba(0, 0, 0, 0.4), -3px -3px 11px rgba(114, 164, 226, 0.08), inset 0 2px 0 rgba(255, 255, 255, 0.11), inset 0 -1px 0 rgba(0, 0, 0, 0.34);
  transition: border-color 0.2s ease;
}

.ap-faq-list details[open] {
  border-color: rgba(90, 167, 255, 0.3);
}

.ap-faq-list summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 20px 22px;
  color: #eaf2ff;
  font-family: var(--display);
  font-size: 0.9rem;
  font-weight: 650;
  cursor: pointer;
  list-style: none;
}

.ap-faq-list summary::-webkit-details-marker {
  display: none;
}

.ap-faq-list summary::after {
  content: "+";
  display: grid;
  width: 27px;
  height: 27px;
  flex: 0 0 27px;
  place-items: center;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.055);
  color: var(--blue);
  font-size: 1rem;
  transition: transform 0.2s ease;
}

.ap-faq-list details[open] summary::after {
  transform: rotate(45deg);
}

.ap-faq-list details p {
  margin: -3px 22px 22px;
  color: var(--muted);
  font-size: 0.86rem;
}

.ap-faq-list details a {
  color: #9ecaff;
  font-weight: 700;
}

/* ---------- Footer ---------- */
.ap-footer {
  padding: 30px 0 40px;
}

.ap-footer-groups {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  gap: 12px;
  padding: 14px;
  border: 1px solid rgba(194, 215, 243, 0.28);
  border-radius: var(--radius);
  background: linear-gradient(145deg, rgba(40, 62, 96, 0.96), rgba(22, 37, 61, 0.98));
  box-shadow: 13px 18px 38px rgba(0, 0, 0, 0.46), -6px -6px 19px rgba(104, 156, 221, 0.1), inset 0 2px 0 rgba(255, 255, 255, 0.13), inset 0 -2px 0 rgba(0, 0, 0, 0.34);
}

.ap-footer-group {
  --accent: var(--blue);
  padding: 20px;
  border: 1px solid rgba(196, 216, 243, 0.2);
  border-radius: 20px;
  background: linear-gradient(145deg, rgba(78, 103, 139, 0.4), rgba(37, 58, 90, 0.52));
  box-shadow: 6px 8px 17px rgba(0, 0, 0, 0.32), -2px -2px 8px rgba(137, 178, 230, 0.07), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.ap-footer-group h3 {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 14px;
  font-family: var(--display);
  font-size: 0.86rem;
}

.ap-footer-group h3::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 10px var(--accent);
}

.ap-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.ap-footer-links a {
  padding: 7px 9px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.035);
  color: #aebed2;
  font-size: 0.72rem;
  font-weight: 700;
  text-decoration: none;
  transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.ap-footer-links a:hover {
  transform: translateY(-1px);
  border-color: color-mix(in srgb, var(--accent) 35%, transparent);
  background: color-mix(in srgb, var(--accent) 8%, transparent);
  color: #fff;
}

.ap-footer-shell {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px 24px;
  margin-top: 26px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  color: var(--muted-2);
  font-size: 0.76rem;
}

.ap-footer-shell p {
  margin: 0;
}

.ap-footer-brand {
  display: flex;
  align-items: center;
  gap: 11px;
}

.ap-footer-brand strong {
  color: #cdd9e8;
  font-family: var(--display);
}

.ap-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 10px rgba(89, 221, 160, 0.75);
}

/* ---------- Screenshot viewer ---------- */
.ap-lightbox {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: rgba(4, 8, 15, 0.84);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}

.ap-lightbox[hidden] {
  display: none;
}

.ap-lightbox figure {
  display: flex;
  max-height: 100%;
  margin: 0;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.ap-lightbox img {
  width: auto;
  max-width: min(92vw, 1400px);
  max-height: 78vh;
  border: 1px solid rgba(194, 215, 243, 0.25);
  border-radius: 18px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
}

.ap-lightbox figcaption {
  max-width: 92vw;
  padding: 10px 18px;
  border: 1px solid rgba(194, 215, 243, 0.25);
  border-radius: 12px;
  background: linear-gradient(145deg, rgba(48, 71, 106, 0.95), rgba(24, 41, 67, 0.97));
  color: #eaf2ff;
  font: 700 0.84rem/1.4 var(--font);
  text-align: center;
}

.ap-lb-btn {
  position: absolute;
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  padding: 0;
  border: 1px solid rgba(189, 211, 241, 0.22);
  border-radius: 13px;
  background: linear-gradient(145deg, rgba(50, 70, 101, 0.9), rgba(25, 40, 65, 0.94));
  box-shadow: 4px 5px 11px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  color: #eaf2ff;
  cursor: pointer;
}

.ap-lb-btn:hover {
  border-color: rgba(90, 167, 255, 0.5);
  color: #fff;
}

.ap-lb-btn svg {
  width: 22px;
  height: 22px;
}

.ap-lb-close {
  top: 16px;
  right: 16px;
}

.ap-lb-prev {
  left: 16px;
}

.ap-lb-next {
  right: 16px;
}

/* ---------- Reveal on scroll ---------- */
.ap-root.js [data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.2, 0.8, 0.2, 1), border-color 0.3s ease, box-shadow 0.3s ease;
}

.ap-root.js [data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

.ap-root.js .ap-app[data-reveal].is-visible:hover {
  transform: translateY(-4px);
}

@keyframes ap-drift {
  from { transform: translate3d(0, -30px, 0) scale(0.95); }
  to { transform: translate3d(90px, 70px, 0) scale(1.14); }
}

@keyframes ap-orbit {
  to { transform: rotate(348deg); }
}

@keyframes ap-float {
  0%, 100% { transform: perspective(1000px) rotateY(-3deg) rotateX(1deg) translateY(0); }
  50% { transform: perspective(1000px) rotateY(-2deg) rotateX(0.5deg) translateY(-10px); }
}

@keyframes ap-pulse {
  0% { box-shadow: 0 0 0 0 rgba(89, 221, 160, 0.36), 0 0 16px rgba(89, 221, 160, 0.7); }
  65%, 100% { box-shadow: 0 0 0 8px rgba(89, 221, 160, 0), 0 0 16px rgba(89, 221, 160, 0.7); }
}

@keyframes ap-sway {
  from { transform: rotate(calc(var(--a, 3deg) * -1)); }
  to { transform: rotate(var(--a, 3deg)); }
}

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .ap-hero {
    grid-template-columns: minmax(0, 1fr);
    gap: 44px;
    padding: 52px 0 64px;
  }

  .ap-launch {
    width: min(620px, 100%);
  }

  .ap-launch-card {
    transform: none;
    animation: none;
  }
}

@media (max-width: 960px) {
  .ap-heading {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }

  .ap-app {
    grid-template-columns: minmax(0, 1fr);
    gap: 26px;
  }

  .ap-app.ap-flip .ap-visual {
    order: 0;
  }

  .ap-steps,
  .ap-help,
  .ap-footer-groups {
    grid-template-columns: minmax(0, 1fr);
  }

  .ap-faq {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
  }
}

@media (max-width: 600px) {
  .ap-container {
    width: calc(100% - 24px);
  }

  .ap-hero {
    padding: 36px 0 52px;
  }

  .ap-section {
    padding: 52px 0;
  }

  .ap-launch-card {
    padding: 16px;
    border-radius: 24px;
  }

  .ap-orbit {
    display: none;
  }

  .ap-app {
    padding: 20px;
    border-radius: 24px;
  }

  .ap-garden {
    padding-bottom: 92px;
  }

  .ap-deco {
    width: 84px;
    height: 84px;
    top: 14px;
    right: 14px;
  }

  .ap-visual {
    padding: 10px;
    border-radius: 18px;
  }

  .ap-shots {
    gap: 8px;
  }

  .ap-shot-btn {
    border-radius: 12px;
  }

  .ap-cta a {
    flex: 1 1 100%;
  }

  .ap-step,
  .ap-panel {
    padding: 22px;
  }

  .ap-lb-prev,
  .ap-lb-next {
    top: auto;
    bottom: 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ap-root {
    scroll-behavior: auto;
  }

  .ap-ambient span,
  .ap-orbit,
  .ap-launch-card,
  .ap-live::before,
  .ap-bed .ap-sway {
    animation: none;
  }

  .ap-root.js [data-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .ap-app,
  .ap-app:hover,
  .ap-shot-btn:hover,
  .ap-launch-item:hover {
    transform: none;
  }
}
