/* Shared extras for app pages. Loaded after notchwin/style.css, which holds the base look. */

/* per-app accent */
.p-vibrate { --accent: #1E78C8; --accent-l: #2E8BE0; --on-accent: #FFFFFF; }
.p-batteryiq { --accent: #15803D; --accent-l: #16A34A; --on-accent: #FFFFFF; }

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .p-vibrate { --accent: #4AA8F0; --accent-l: #6DBBF5; --on-accent: #04121F; }
  :root:not([data-theme="light"]) .p-batteryiq { --accent: #22C55E; --accent-l: #4ADE80; --on-accent: #052E14; }
}
:root[data-theme="dark"] .p-vibrate { --accent: #4AA8F0; --accent-l: #6DBBF5; --on-accent: #04121F; }
:root[data-theme="dark"] .p-batteryiq { --accent: #22C55E; --accent-l: #4ADE80; --on-accent: #052E14; }

/* hero rating line */
.rating-line {
  display: inline-flex; align-items: center; gap: 10px; margin-top: 18px;
  font-size: .86rem; color: var(--text-m);
}
.rating-line .stars { color: #F2A60C; letter-spacing: .06em; }

/* phone screenshot strip */
.gallery {
  display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px;
  margin-top: 56px;
}
.gallery img {
  width: 100%; aspect-ratio: 9 / 16; object-fit: cover;
  border-radius: 18px; border: 1px solid var(--border); box-shadow: var(--shadow);
}

/* video facade */
.video {
  position: relative; display: block; width: 100%; max-width: 860px; margin: 48px auto 0;
  aspect-ratio: 16 / 9; border-radius: 22px; overflow: hidden; border: 0; padding: 0;
  background: #000; box-shadow: var(--shadow); cursor: pointer;
}
.video img, .video iframe { width: 100%; height: 100%; object-fit: cover; border: 0; }
.video .play {
  position: absolute; left: 50%; top: 50%; width: 78px; height: 78px; transform: translate(-50%, -50%);
  border-radius: 50%; background: var(--accent);
  box-shadow: 0 0 0 10px color-mix(in srgb, var(--accent) 25%, transparent);
  transition: transform .3s;
}
.video .play::after {
  content: ''; position: absolute; left: 54%; top: 50%; transform: translate(-50%, -50%);
  border-left: 22px solid var(--on-accent); border-top: 14px solid transparent; border-bottom: 14px solid transparent;
}
.video:hover .play { transform: translate(-50%, -50%) scale(1.08); }

/* phone-shaped feature rows */
.feat--phone, .feat--phone:nth-child(even) { grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); }
.feat--phone:nth-child(even) { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); }
.feat--phone .shot { max-width: 320px; justify-self: center; width: 100%; }
.feat--phone .shot img { aspect-ratio: 9 / 16; object-fit: cover; }

/* free vs pro */
.tiers { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin-top: 48px; }
.tier { background: var(--card); border: 1px solid var(--border); border-radius: 18px; padding: 28px; }
.tier--pro { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent) inset; }
.tier h3 { font-family: var(--font-d); font-weight: 500; font-size: 1.6rem; }
.tier .price { color: var(--text-m); font-size: .88rem; margin: 2px 0 16px; }
.tier ul { list-style: none; display: grid; gap: 10px; }
.tier li { position: relative; padding-left: 26px; font-size: .95rem; }
.tier li::before {
  content: ''; position: absolute; left: 0; top: .45em; width: 14px; height: 8px;
  border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: rotate(-45deg);
}

/* reviews */
.score {
  display: flex; align-items: center; justify-content: center; gap: 18px; margin-top: 28px;
}
.score b { font-family: var(--font-d); font-weight: 400; font-size: 4rem; line-height: .9; }
.score .stars { font-size: 1.3rem; }
.score p { font-size: .86rem; color: var(--text-m); }

.wall { columns: 3 280px; column-gap: 16px; margin-top: 40px; }
.review {
  break-inside: avoid; margin-bottom: 16px; padding: 20px 22px; border-radius: 18px;
  background: var(--card); border: 1px solid var(--border);
  display: flex; flex-direction: column; gap: 12px;
}
.review-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.stars { color: #F2A60C; letter-spacing: .08em; font-size: .9rem; }
.star-off { color: var(--border); }
.review-src {
  font-family: var(--font-m); font-size: .6rem; letter-spacing: .1em; text-transform: uppercase;
  color: var(--text-m); display: inline-flex; align-items: center; gap: 6px;
}
.review-src::before { content: ''; width: 9px; height: 9px; background: #01875F; clip-path: polygon(0 0, 100% 50%, 0 100%); }
.review-src--ms::before { background: conic-gradient(#7FBA00 0 25%, #FFB900 0 50%, #00A4EF 0 75%, #F25022 0); clip-path: none; }
.review-title { font-weight: 600; font-size: 1rem; line-height: 1.3; margin-bottom: -6px; }
.review-title:last-of-type { margin-bottom: 0; }
.review-text { font-size: .95rem; line-height: 1.6; }
.review-by { display: flex; align-items: center; gap: 10px; }
.review-by b { display: block; font-weight: 500; font-size: .88rem; line-height: 1.3; }
.review-by div span { font-size: .74rem; color: var(--text-m); }
.avatar {
  width: 34px; height: 34px; border-radius: 50%; flex-shrink: 0; display: grid; place-items: center;
  color: #fff; font-weight: 600; font-size: .9rem; text-shadow: 0 1px 2px rgba(0, 0, 0, .25);
}
.avatar--0 { background: linear-gradient(135deg, #FF8A65, #C2185B); }
.avatar--1 { background: linear-gradient(135deg, #4FC3F7, #3949AB); }
.avatar--2 { background: linear-gradient(135deg, #AED581, #00897B); }
.avatar--3 { background: linear-gradient(135deg, #FFD54F, #EF6C00); }
.avatar--4 { background: linear-gradient(135deg, #CE93D8, #6A1B9A); }
.avatar--5 { background: linear-gradient(135deg, #80DEEA, #00838F); }
.reviews-note { text-align: center; font-size: .8rem; color: var(--text-m); margin-top: 8px; }

/* faq */
.faq { max-width: 760px; margin: 40px auto 0; display: grid; gap: 10px; }
.faq details { background: var(--card); border: 1px solid var(--border); border-radius: 14px; padding: 18px 22px; }
.faq summary {
  cursor: pointer; list-style: none; font-weight: 500; font-size: 1rem;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; font-family: var(--font-m); color: var(--accent); font-size: 1.2rem; transition: transform .3s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--text-m); font-size: .94rem; margin-top: 10px; }

/* other apps */
.more-apps { text-align: center; padding-bottom: 32px; }
.more-apps .btn { margin-top: 24px; }

@media (max-width: 800px) {
  .gallery {
    display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 12px;
    margin-inline: -24px; padding: 4px 24px 12px; scrollbar-width: none;
  }
  .gallery::-webkit-scrollbar { display: none; }
  .gallery img { flex: 0 0 62%; width: 62%; min-width: 0; scroll-snap-align: center; }
  .feat--phone, .feat--phone:nth-child(even) { grid-template-columns: 1fr; }
  .feat--phone .shot { max-width: 260px; }
  .tiers { grid-template-columns: 1fr; }
}

@media (max-width: 520px) {
  .gallery { margin-inline: -16px; padding-inline: 16px; }
  .score b { font-size: 3.2rem; }
  .review { padding: 18px; }
  .faq details { padding: 16px 18px; }
}
