/* ===========================================================================
   Avo Agency · La Palma — app DETAIL page components
   Shared across every /apps/<slug>/ page. Built on style.css tokens.
   =========================================================================== */

/* breadcrumb */
.crumb { font-family: "JetBrains Mono", monospace; font-size: 12px; color: var(--t3); letter-spacing: 0.06em; margin-bottom: 22px; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.crumb a { color: var(--t2); text-decoration: none; transition: color 0.2s; }
.crumb a:hover { color: var(--accent); }
.crumb .sep { opacity: 0.4; }
.crumb b { color: var(--accent); font-weight: 500; }

/* ---------------------------------------------------------------- app hero */
.app-hero { position: relative; padding: calc(var(--nav-h) + 56px) 0 40px; overflow: hidden; }
.app-hero-grid { display: grid; grid-template-columns: 1.04fr 0.96fr; gap: 48px; align-items: center; }
.app-id { display: inline-flex; align-items: center; gap: 16px; margin-bottom: 22px; }
.app-id .ico { width: 76px; height: 76px; border-radius: 18px; background-size: cover; box-shadow: inset 0 0 0 0.5px var(--border), 0 10px 26px rgba(0,0,0,0.5); flex: none; }
.app-id > span:last-child { display: flex; flex-direction: column; gap: 3px; }
.app-id .k { font-family: "JetBrains Mono", monospace; font-size: 12px; color: var(--accent); letter-spacing: 0.16em; text-transform: uppercase; }
.app-id .n { font-family: "Sora", sans-serif; font-weight: 600; font-size: 14px; color: var(--t2); margin-top: 3px; }
.app-hero h1 { font-size: clamp(34px, 5.2vw, 60px); font-weight: 800; }
.app-hero h1 .grad { background: linear-gradient(120deg, var(--accent), #fff); -webkit-background-clip: text; background-clip: text; color: transparent; }
.app-hero .tagline { font-family: "JetBrains Mono", monospace; color: var(--accent); font-size: 14px; margin-top: 14px; letter-spacing: 0.03em; }
.app-hero .lead { color: var(--t2); font-size: 17px; margin-top: 20px; max-width: 34em; }
.app-hero .hero-actions { margin-top: 28px; }
.app-hero .chips { margin-top: 24px; }

.app-hero-shot { position: relative; display: flex; align-items: center; justify-content: center; min-height: 480px; }
.app-hero-shot .glow { position: absolute; width: 380px; height: 380px; border-radius: 50%; background: radial-gradient(circle, var(--accent), transparent 62%); opacity: 0.22; filter: blur(20px); }
.app-hero-shot .phone { width: 268px; z-index: 2; }
.app-hero-shot .phone img { aspect-ratio: 1284/2778; }

/* ---------------------------------------------------------------- gallery */
.gallery-sec { padding: 60px 0; }
.gallery {
  display: flex; gap: 22px; overflow-x: auto; padding: 8px 24px 26px; margin: 0 -24px;
  scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch;
  scrollbar-width: thin; scrollbar-color: var(--accent) transparent;
}
.gallery::-webkit-scrollbar { height: 6px; }
.gallery::-webkit-scrollbar-thumb { background: var(--accent); border-radius: 10px; opacity: 0.6; }
.gallery .phone { flex: none; width: 230px; scroll-snap-align: center; transition: transform 0.35s var(--e-smooth); }
.gallery .phone:hover { transform: translateY(-8px); }
.gallery .phone img { aspect-ratio: 1284/2778; }

/* ------------------------------------------------------- mac gallery */
.gallery-mac { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.gallery-mac .shot {
  border-radius: var(--r-card); overflow: hidden; border: 0.5px solid var(--border);
  box-shadow: var(--sh-cyber); transition: transform 0.35s var(--e-smooth), border-color 0.35s;
  background: linear-gradient(180deg, var(--surface-top), var(--surface-bottom));
}
.gallery-mac .shot:hover { transform: translateY(-6px); border-color: var(--accent); }
.gallery-mac .shot img { display: block; width: 100%; aspect-ratio: 1400/875; object-fit: cover; }
.mac-badge {
  display: inline-flex; align-items: center; gap: 8px; font-family: "JetBrains Mono", monospace;
  font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent);
  border: 0.5px solid color-mix(in srgb, var(--accent) 32%, transparent); border-radius: var(--r-pill, 28px);
  padding: 7px 14px; background: color-mix(in srgb, var(--accent) 10%, transparent); margin-bottom: 14px;
}
.mac-badge svg { width: 15px; height: 15px; stroke: var(--accent); fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* ---------------------------------------------------------------- features */
.feat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.feat {
  background: linear-gradient(180deg, var(--surface-top), var(--surface-bottom));
  border: 0.5px solid var(--border); border-radius: var(--r-sheet); padding: 26px 24px;
  box-shadow: var(--sh-cyber); transition: transform 0.35s var(--e-smooth), border-color 0.35s;
}
.feat:hover { transform: translateY(-5px); border-color: var(--accent); }
.feat .fi { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; margin-bottom: 16px;
  background: color-mix(in srgb, var(--accent) 14%, transparent); border: 0.5px solid color-mix(in srgb, var(--accent) 32%, transparent); }
.feat .fi svg { width: 24px; height: 24px; stroke: var(--accent); fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.feat h4 { font-family: "Sora", sans-serif; font-size: 18px; font-weight: 600; }
.feat p { color: var(--t2); font-size: 14.5px; margin-top: 9px; }

/* ---------------------------------------------------------------- specs */
.specs-wrap { display: grid; grid-template-columns: 1.4fr 1fr; gap: 32px; align-items: start; }
.specs {
  background: linear-gradient(180deg, var(--surface-top), var(--surface-bottom));
  border: 0.5px solid var(--border); border-radius: var(--r-sheet); padding: 8px 26px; box-shadow: var(--sh-cyber);
}
.specs .row { display: flex; justify-content: space-between; gap: 20px; padding: 16px 0; border-bottom: 0.5px solid var(--divider); }
.specs .row:last-child { border-bottom: none; }
.specs .row .k { font-family: "JetBrains Mono", monospace; font-size: 12px; color: var(--t3); letter-spacing: 0.08em; text-transform: uppercase; }
.specs .row .v { color: var(--t1); font-size: 15px; text-align: right; font-weight: 500; }
.specs .row .v.acc { color: var(--accent); }
.privacy-card {
  background: linear-gradient(180deg, var(--surface-top), var(--surface-bottom));
  border: 0.5px solid var(--border); border-radius: var(--r-sheet); padding: 26px; box-shadow: var(--sh-cyber);
}
.privacy-card h4 { font-family: "Sora", sans-serif; font-size: 17px; display: flex; align-items: center; gap: 10px; }
.privacy-card h4 svg { width: 22px; height: 22px; stroke: var(--accent); fill: none; stroke-width: 2; }
.privacy-card p { color: var(--t2); font-size: 14.5px; margin-top: 12px; }

/* ---------------------------------------------------------------- related apps */
.rel-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.rel {
  display: flex; align-items: center; gap: 14px; text-decoration: none;
  background: linear-gradient(180deg, var(--surface-top), var(--surface-bottom));
  border: 0.5px solid var(--border); border-radius: var(--r-card); padding: 16px; box-shadow: var(--sh-cyber);
  transition: transform 0.3s var(--e-smooth), border-color 0.3s;
}
.rel:hover { transform: translateY(-4px); border-color: var(--rel-accent, var(--aqua)); }
.rel .ico { width: 48px; height: 48px; border-radius: 12px; background-size: cover; flex: none; box-shadow: inset 0 0 0 0.5px var(--border); }
.rel .t { font-family: "Sora", sans-serif; font-weight: 600; font-size: 14px; color: var(--t1); line-height: 1.2; }
.rel .c { font-family: "JetBrains Mono", monospace; font-size: 11px; color: var(--t3); margin-top: 3px; letter-spacing: 0.06em; }

/* ---------------------------------------------------------------- lightbox */
.lightbox {
  position: fixed; inset: 0; z-index: 200; display: none; align-items: center; justify-content: center;
  background: rgba(3, 6, 11, 0.88); backdrop-filter: blur(8px); padding: 40px;
}
.lightbox.open { display: flex; animation: lbin 0.3s var(--e-smooth); }
@keyframes lbin { from { opacity: 0; } to { opacity: 1; } }
.lightbox img { max-height: 88vh; max-width: 90vw; border-radius: 28px; box-shadow: 0 30px 80px rgba(0,0,0,0.7); }
.lightbox .lb-close { position: absolute; top: 24px; right: 28px; background: none; border: none; color: #fff; font-size: 38px; cursor: pointer; line-height: 1; opacity: 0.8; }
.lightbox .lb-nav { background: rgba(255,255,255,0.08); border: 0.5px solid var(--border); color: #fff; width: 52px; height: 52px; border-radius: 50%; font-size: 26px; cursor: pointer; margin: 0 18px; transition: background 0.2s; }
.lightbox .lb-nav:hover { background: rgba(255,255,255,0.18); }

@media (max-width: 980px) {
  .app-hero-grid { grid-template-columns: 1fr; gap: 30px; }
  .app-hero-shot { min-height: 420px; }
  .feat-grid { grid-template-columns: 1fr 1fr; }
  .gallery-mac { grid-template-columns: 1fr; }
  .specs-wrap { grid-template-columns: 1fr; }
  .rel-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .feat-grid, .rel-grid { grid-template-columns: 1fr; }
  .lightbox .lb-nav { width: 42px; height: 42px; margin: 0 8px; }
}
