/* App page (Wrenchly). Loaded after site.css; uses its variables and base classes.
   The hero and the screenshots are fixed in both modes; surfaces below follow the theme. */

/* Header continues into the hero: same start colour, no seam (white text 5.2:1) */
.app-page .header-zafiro { background: #2C69CC; }

/* Hero ------------------------------------------------------------------- */
.app-hero { overflow: hidden; background: linear-gradient(180deg, #2C69CC 0%, #174C99 100%); color: #FFFFFF; }
.app-hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 40px; align-items: end; }
.app-copy { max-width: 560px; padding: 16px 0 56px; }
.app-icon { display: block; width: 72px; height: 72px; border-radius: 19px; box-shadow: 0 8px 24px rgb(0 0 0 / 30%); }
.app-hero h1 { margin: 18px 0 14px; font-size: clamp(32px, 5.4vw, 48px); line-height: 1.06; letter-spacing: -0.025em; font-weight: 800; }
.app-lead { margin: 0 0 22px; max-width: 34em; font-size: 18px; color: #FFFFFF; }
.app-soon { margin: 0; }
.app-pill { display: inline-block; padding: 10px 18px; border-radius: 999px; background: #FFFFFF; color: #174C99; font-weight: 700; font-size: 15px; line-height: 1.35; }
.app-phone { display: block; width: 280px; height: auto; border-radius: 26px 26px 0 0; box-shadow: 0 14px 40px rgb(0 0 0 / 30%); }
@media (max-width: 760px) {
  .app-hero-grid { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .app-copy { padding-bottom: 0; }
  .app-phone { justify-self: center; width: min(280px, 70vw); }
}

/* Plum variant (Trutina): same layout, plum hero and header, paper pill, drawing instead of a phone */
.app-page .header-ciruela { background: #6B3F69; color: #FFFFFF; }
.header-ciruela :is(.brand, .nav-anchors a, summary, .theme-toggle):focus-visible { outline-color: #FFFFFF; }
.header-ciruela .brand img { display: none; }
.header-ciruela .brand img.logo-dark { display: inline-block; }
.header-ciruela .lang-menu summary, .header-ciruela .theme-toggle {
  background: rgb(255 255 255 / 14%); border-color: rgb(255 255 255 / 24%); color: #FFFFFF;
}
.app-hero-ciruela { background: linear-gradient(180deg, #6B3F69 0%, #4D2C4B 100%); overflow: hidden; }
.app-hero-ciruela .app-hero-grid { align-items: center; }
.app-hero-ciruela .app-copy { padding: 16px 0 56px; }
.app-hero-ciruela .app-pill { background: #F5F0E6; color: #4D2C4B; }
.app-art { display: block; width: min(420px, 100%); height: auto; }
@media (max-width: 760px) {
  .app-hero-ciruela .app-copy { padding-bottom: 0; }
  .app-hero-ciruela .app-art { justify-self: center; margin-bottom: 36px; }
}

/* Pool-teal variant (Clarea): same layout as plum; pool-water teal hero and header, pale pill, waterline drawing */
.app-page .header-laguna { background: #0B6E79; color: #FFFFFF; }
.header-laguna :is(.brand, .nav-anchors a, summary, .theme-toggle):focus-visible { outline-color: #FFFFFF; }
.header-laguna .brand img { display: none; }
.header-laguna .brand img.logo-dark { display: inline-block; }
.header-laguna .lang-menu summary, .header-laguna .theme-toggle {
  background: rgb(255 255 255 / 14%); border-color: rgb(255 255 255 / 24%); color: #FFFFFF;
}
.app-hero-laguna { background: linear-gradient(180deg, #0B6E79 0%, #074C55 100%); overflow: hidden; }
.app-hero-laguna .app-hero-grid { align-items: center; }
.app-hero-laguna .app-copy { padding: 16px 0 56px; }
.app-hero-laguna .app-pill { background: #F3F8F8; color: #074C55; }
.app-hero-laguna .app-art { border-radius: 24px; }
@media (max-width: 760px) {
  .app-hero-laguna .app-copy { padding-bottom: 0; }
  .app-hero-laguna .app-art { justify-self: center; margin-bottom: 36px; }
}

/* Store links, once an app has a listing: the pills become links */
.app-stores { display: flex; flex-wrap: wrap; gap: 10px; }
a.app-pill { text-decoration: none; }
a.app-pill:hover { text-decoration: underline; }
a.app-pill:focus-visible { outline: 3px solid #FFFFFF; outline-offset: 3px; }
.app-disclaimer { margin: 0; padding-top: 18px; border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; max-width: 46em; }

/* Sections --------------------------------------------------------------- */
.app-section { padding-top: 40px; }
.app-section .label { margin: 0 0 14px; }

/* Screenshot strip: full store shots, snap scrolling, aligned with the page column */
.strip {
  --edge: max(24px, calc(50% - 466px));
  display: flex; gap: 14px; overflow-x: auto; padding: 4px var(--edge) 18px;
  scroll-snap-type: x mandatory; scroll-padding-inline: var(--edge);
}
@media (max-width: 480px) { .strip { --edge: 16px; } }
/* Narrow screens: swipe, scrollbar hidden. Wide screens: all shots at once, no scrolling. */
.strip { scrollbar-width: none; }
.strip::-webkit-scrollbar { display: none; }
@media (min-width: 900px) {
  .strip { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; overflow-x: visible; scroll-snap-type: none; }
  .strip img { width: 100%; }
}
.strip img { flex: none; width: 200px; height: auto; border-radius: 16px; scroll-snap-align: start; box-shadow: 0 4px 16px rgb(0 0 0 / 15%); }

/* Features --------------------------------------------------------------- */
.feature-grid { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 270px), 1fr)); }
.card.feature { padding: 20px 22px; }
.card.feature h3 { margin: 0 0 6px; font-size: 17px; font-weight: 700; }
.card.feature p { margin: 0; color: var(--muted); font-size: 15px; }

/* Studio card ------------------------------------------------------------- */
.studio-card { display: flex; align-items: center; gap: 16px; color: var(--text); text-decoration: none; }
.studio-card .logo-light { display: var(--show-logo-light); }
.studio-card .logo-dark { display: var(--show-logo-dark); }
.studio-card img { flex: none; width: 48px; height: 48px; border-radius: 12px; }
.studio-card strong { display: block; font-size: 17px; }
.studio-more { display: block; color: var(--muted); font-size: 15px; }
.studio-card:hover .studio-more { color: var(--text); text-decoration: underline; text-decoration-color: var(--coral); text-decoration-thickness: 2px; text-underline-offset: 3px; }
