/*
 * Product pages (apps/<id>.html, ar/apps/<id>.html), generated by
 * tools/build_pages.py. Builds on styles.css. Each page sets --accent.
 */

.product {
  --accent: var(--blue);
  --tint: color-mix(in srgb, var(--accent) 9%, var(--bg));
  --tint-strong: color-mix(in srgb, var(--accent) 16%, var(--bg));
  --ink-accent: color-mix(in srgb, var(--accent) 78%, #000);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  overflow-x: clip;
}
@media (prefers-color-scheme: dark) {
  .product { --ink-accent: color-mix(in srgb, var(--accent) 55%, #fff); }
}

.skip {
  position: absolute;
  inset-inline-start: 12px;
  top: -60px;
  z-index: 30;
  padding: 10px 16px;
  border-radius: 10px;
  background: var(--card);
  color: var(--text);
  font-weight: 600;
}
.skip:focus { top: 12px; }

.product .container { width: min(1160px, 100% - 40px); }
.narrow-wide { max-width: 860px; }

.eyebrow-sm {
  margin: 0 0 10px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-accent);
}
html[lang="ar"] .eyebrow-sm { letter-spacing: 0; font-size: 0.92rem; }

.section-head { max-width: 720px; margin: 0 auto 48px; text-align: center; }
.section-head h2, .p-final h2, .more-head h2 {
  margin: 0;
  font-size: clamp(1.9rem, 4.4vw, 3rem);
  line-height: 1.1;
  letter-spacing: -0.03em;
  text-wrap: balance;
}
html[lang="ar"] :is(.section-head h2, .p-final h2, .more-head h2, .p-hero h1, .story h3) { letter-spacing: 0; line-height: 1.35; }
.section-lede { margin: 16px auto 0; max-width: 620px; color: var(--muted); font-size: 1.1rem; text-wrap: pretty; }

.p-section { padding: clamp(72px, 10vw, 128px) 0; }

/* ---------- Hero ---------- */
.p-hero {
  position: relative;
  padding: 120px 0 clamp(64px, 8vw, 104px);
  background: linear-gradient(180deg, var(--tint-strong), var(--bg) 92%);
  overflow: hidden;
  isolation: isolate;
}
.aurora { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.aurora i {
  position: absolute;
  width: 46vw;
  height: 46vw;
  max-width: 640px;
  max-height: 640px;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.5;
  background: var(--accent);
  animation: drift 18s ease-in-out infinite alternate;
}
.aurora i:nth-child(1) { top: -18%; inset-inline-end: -8%; }
.aurora i:nth-child(2) { bottom: -30%; inset-inline-start: -12%; opacity: 0.22; animation-duration: 22s; background: var(--purple); }
.aurora i:nth-child(3) { top: 30%; inset-inline-end: 22%; width: 22vw; height: 22vw; opacity: 0.22; animation-duration: 15s; background: var(--teal); }
@keyframes drift {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to { transform: translate3d(-4%, 6%, 0) scale(1.12); }
}

.p-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  align-items: center;
  gap: 40px;
}
.crumbs {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 28px;
  font-size: 0.9rem;
  color: var(--muted);
}
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--text); text-decoration: underline; }
.crumbs svg { opacity: 0.6; }
[dir="rtl"] .crumbs svg, [dir="rtl"] .g-btn svg, [dir="rtl"] .link-arrow svg { transform: scaleX(-1); }
[dir="rtl"] .g-btn[data-dir="-1"] svg { transform: none; }
.g-btn[data-dir="-1"] svg { transform: scaleX(-1); }

.p-id { display: flex; align-items: center; gap: 18px; margin-bottom: 30px; }
.p-icon {
  width: 88px;
  height: 88px;
  border-radius: 22.37%;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.5) inset, 0 14px 34px -10px color-mix(in srgb, var(--accent) 70%, transparent);
}
.p-name { margin: 0; font-size: 1.5rem; font-weight: 700; letter-spacing: -0.02em; line-height: 1.2; }
.p-name .native { margin-inline-start: 8px; font-size: 1.2rem; color: var(--ink-accent); font-weight: 600; letter-spacing: 0; }
.p-sub { margin: 4px 0 0; color: var(--muted); }

.p-hero h1 {
  margin: 0 0 18px;
  font-size: clamp(2.5rem, 5.6vw, 4.4rem);
  line-height: 1.02;
  letter-spacing: -0.04em;
  text-wrap: balance;
}
.p-lede { margin: 0 0 32px; max-width: 34em; font-size: clamp(1.08rem, 1.6vw, 1.25rem); color: var(--muted); text-wrap: pretty; }

.p-cta { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.p-cta-center { justify-content: center; }

.store-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 22px 10px 18px;
  border-radius: 14px;
  background: #000;
  color: #fff;
  text-decoration: none;
  box-shadow: 0 10px 26px -8px rgba(0, 0, 0, 0.45);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.store-badge:hover { transform: translateY(-2px); box-shadow: 0 16px 32px -10px rgba(0, 0, 0, 0.5); }
.store-badge .store-logo { width: 26px; height: 30px; margin: -2px 0 0; }
.store-badge span { display: flex; flex-direction: column; line-height: 1.1; text-align: start; }
.store-badge small { font-size: 0.72rem; opacity: 0.85; }
.store-badge b { font-size: 1.3rem; letter-spacing: -0.01em; }
@media (prefers-color-scheme: dark) {
  .store-badge { background: #fff; color: #000; }
}
.btn-notify {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 24px;
  border-radius: 14px;
  background: var(--accent);
  color: #fff;
  font-weight: 650;
  text-decoration: none;
  box-shadow: 0 10px 26px -8px color-mix(in srgb, var(--accent) 70%, transparent);
  transition: transform 0.25s var(--ease);
}
.btn-notify:hover { transform: translateY(-2px); }
.store-badge:focus-visible, .btn-notify:focus-visible, .g-btn:focus-visible, .faq-item summary:focus-visible,
.more-list a:focus-visible, .sticky-get:focus-visible, .link-arrow:focus-visible {
  outline: 3px solid var(--orange);
  outline-offset: 3px;
}

.facts {
  list-style: none;
  margin: 32px 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  color: var(--muted);
  font-size: 0.93rem;
}
.facts li { display: inline-flex; align-items: center; gap: 7px; }
.facts svg { color: var(--ink-accent); flex: none; }

/* Phones */
.phone {
  position: relative;
  width: 100%;
  aspect-ratio: 640 / 1391;
  padding: 3.4%;
  border-radius: 15% / 7%;
  background: linear-gradient(145deg, #2c2f36, #0b0c10 40%, #1b1d22);
  box-shadow:
    inset 0 0 0 1.5px rgba(255, 255, 255, 0.14),
    inset 0 0 0 4px #050608,
    0 50px 80px -30px rgba(10, 16, 50, 0.45),
    0 30px 60px -40px color-mix(in srgb, var(--accent) 80%, transparent);
}
.phone img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  border-radius: 12.4% / 5.8%;
  background: #f2f2f2;
}
.hero-visual {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 560px;
}
.hero-visual .phone-front {
  width: min(300px, 72%);
  z-index: 2;
  animation: rise 1.1s var(--ease) both, float 7s ease-in-out 1.2s infinite;
}
.hero-visual .phone-back {
  position: absolute;
  width: min(250px, 58%);
  transform: translateX(46%) rotate(8deg) scale(0.92);
  opacity: 0.95;
  filter: saturate(0.9);
  animation: rise-back 1.3s var(--ease) 0.15s both;
}
[dir="rtl"] .hero-visual .phone-back { transform: translateX(-46%) rotate(-8deg) scale(0.92); animation-name: rise-back-rtl; }
.hero-visual .phone-back ~ .phone-front { transform: translateX(-14%); }
[dir="rtl"] .hero-visual .phone-back ~ .phone-front { transform: translateX(14%); }
.hero-glow {
  position: absolute;
  inset: 12% 8%;
  z-index: -1;
  border-radius: 50%;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--accent) 45%, transparent), transparent);
  filter: blur(30px);
}
@keyframes rise { from { opacity: 0; translate: 0 60px; } to { opacity: 1; translate: 0 0; } }
@keyframes float { 50% { translate: 0 -12px; } }
@keyframes rise-back {
  from { opacity: 0; transform: translateX(20%) rotate(0deg) scale(0.86); }
  to { opacity: 0.95; transform: translateX(46%) rotate(8deg) scale(0.92); }
}
@keyframes rise-back-rtl {
  from { opacity: 0; transform: translateX(-20%) rotate(0deg) scale(0.86); }
  to { opacity: 0.95; transform: translateX(-46%) rotate(-8deg) scale(0.92); }
}

/* Hero without screenshots: big icon and floating feature tiles */
.hero-visual-art .art-icon {
  width: min(240px, 60%);
  animation: rise 1.1s var(--ease) both, float 7s ease-in-out 1.2s infinite;
}
.art-icon img { width: 100%; height: auto; border-radius: 22.37%; box-shadow: 0 40px 80px -24px color-mix(in srgb, var(--accent) 80%, transparent); }
.art-tiles { list-style: none; margin: 0; padding: 0; position: absolute; inset: 0; }
.art-tiles li {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border-radius: 16px;
  background: color-mix(in srgb, var(--card) 82%, transparent);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  font-weight: 600;
  font-size: 0.95rem;
  animation: rise 1s var(--ease) calc(0.3s + var(--i) * 0.12s) both, float 6s ease-in-out calc(1.4s + var(--i) * 0.6s) infinite;
}
.art-tiles svg { color: var(--accent); }
.art-tiles li:nth-child(1) { top: 10%; inset-inline-start: 0; }
.art-tiles li:nth-child(2) { top: 22%; inset-inline-end: 0; }
.art-tiles li:nth-child(3) { bottom: 22%; inset-inline-start: 4%; }
.art-tiles li:nth-child(4) { bottom: 8%; inset-inline-end: 6%; }

/* ---------- Problem → fix ---------- */
.problem { background: var(--bg); }
.pf-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.pf {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--card);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.pf p { margin: 0; display: flex; align-items: center; gap: 12px; padding: 22px 24px; font-weight: 600; }
.pain { color: var(--muted); }
.fix { background: var(--tint); color: var(--text); border-inline-start: 1px solid var(--line); }
.pain-x, .fix-c {
  flex: none;
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
}
.pain-x { background: color-mix(in srgb, #e5484d 14%, transparent); color: #d93b40; }
.fix-c { background: var(--accent); color: #fff; }
.pain-t {
  background: linear-gradient(currentColor, currentColor) no-repeat 0 55% / 0 1.5px;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
  transition: background-size 0.9s var(--ease) 0.35s;
}
[dir="rtl"] .pain-t { background-position: 100% 55%; }
.pf.in .pain-t { background-size: 100% 1.5px; }

/* ---------- Stories ---------- */
.stories { padding-top: 0; }
.story {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: clamp(32px, 6vw, 96px);
  padding: clamp(40px, 6vw, 72px) 0;
}
.story-flip .story-text { order: 2; }
.story-icon {
  display: inline-grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin-bottom: 18px;
  border-radius: 14px;
  background: var(--accent);
  color: #fff;
  box-shadow: 0 10px 24px -8px color-mix(in srgb, var(--accent) 70%, transparent);
}
.story h3 {
  margin: 0 0 16px;
  font-size: clamp(1.8rem, 3.6vw, 2.7rem);
  line-height: 1.1;
  letter-spacing: -0.03em;
  text-wrap: balance;
}
.story-body { margin: 0 0 22px; color: var(--muted); font-size: 1.1rem; text-wrap: pretty; }
.ticks { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.ticks li { display: flex; align-items: flex-start; gap: 10px; font-weight: 550; }
.ticks svg { flex: none; margin-top: 4px; color: var(--ink-accent); }
.story-media {
  position: relative;
  display: grid;
  place-items: center;
  padding: clamp(28px, 4vw, 56px) 0;
  border-radius: 32px;
  background:
    radial-gradient(70% 60% at 50% 40%, color-mix(in srgb, var(--accent) 22%, transparent), transparent 70%),
    var(--tint);
  border: 1px solid color-mix(in srgb, var(--accent) 14%, var(--line));
}
.phone-story { width: min(280px, 64%); will-change: transform; }
.story-art {
  display: grid;
  place-items: center;
  width: 200px;
  height: 200px;
  border-radius: 48px;
  background: linear-gradient(145deg, var(--accent), color-mix(in srgb, var(--accent) 60%, var(--purple)));
  color: #fff;
  box-shadow: 0 30px 60px -20px color-mix(in srgb, var(--accent) 80%, transparent);
}

/* ---------- Feature tiles ---------- */
.inside { background: var(--bg-alt); border-block: 1px solid var(--line); }
.tiles { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.tile {
  padding: 28px 26px;
  border-radius: 22px;
  border: 1px solid var(--line);
  background: var(--card);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.35s;
}
.tile:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: color-mix(in srgb, var(--accent) 35%, var(--line)); }
.tile-icon {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-bottom: 16px;
  border-radius: 12px;
  background: var(--tint-strong);
  color: var(--ink-accent);
}
.tile h3 { margin: 0 0 6px; font-size: 1.12rem; }
.tile p { margin: 0; color: var(--muted); font-size: 0.98rem; }

/* ---------- Gallery ---------- */
.gallery-section { overflow: hidden; }
.gallery-track {
  list-style: none;
  margin: 0;
  padding: 10px max(20px, calc((100% - 1160px) / 2)) 40px;
  display: flex;
  gap: 28px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: max(20px, calc((100% - 1160px) / 2));
  scrollbar-width: none;
  overscroll-behavior-x: contain;
}
.gallery-track::-webkit-scrollbar { display: none; }
.gallery-track:focus-visible { outline: 3px solid var(--orange); outline-offset: -3px; }
.gallery-track li { flex: none; scroll-snap-align: start; }
.phone-sm { width: 240px; transition: transform 0.4s var(--ease); }
.gallery-track li:hover .phone-sm { transform: translateY(-8px); }
.gallery-nav { display: flex; justify-content: flex-end; gap: 10px; }
.g-btn {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--card);
  color: var(--text);
  cursor: pointer;
  transition: background 0.2s, transform 0.2s var(--ease), opacity 0.2s;
}
.g-btn:hover:not(:disabled) { background: var(--tint-strong); transform: scale(1.06); }
.g-btn:disabled { opacity: 0.35; cursor: default; }

/* ---------- Plans ---------- */
.plans { background: var(--bg-alt); border-block: 1px solid var(--line); }
.plan-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; max-width: 940px; margin: 0 auto; }
.plan {
  padding: 34px 32px;
  border-radius: 26px;
  border: 1px solid var(--line);
  background: var(--card);
}
.plan h3 { margin: 0; font-size: 1.6rem; letter-spacing: -0.02em; }
.plan-sub { margin: 4px 0 24px; color: var(--muted); }
.plan ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.plan li { display: flex; gap: 10px; align-items: flex-start; }
.plan li svg { flex: none; margin-top: 4px; color: var(--ink-accent); }
.plan-premium {
  position: relative;
  color: #fff;
  border: 0;
  background:
    radial-gradient(120% 90% at 100% 0%, color-mix(in srgb, #fff 18%, transparent), transparent 55%),
    linear-gradient(150deg, var(--accent), color-mix(in srgb, var(--accent) 55%, #0a0f3a));
  box-shadow: 0 30px 60px -24px color-mix(in srgb, var(--accent) 75%, transparent);
}
.plan-premium .plan-sub { color: rgba(255, 255, 255, 0.78); }
.plan-premium li svg { color: var(--pop, #ffd88a); }
.plan-grid-3 { grid-template-columns: repeat(3, 1fr); max-width: 1180px; }
.plan-business {
  background:
    radial-gradient(120% 90% at 100% 0%, color-mix(in srgb, var(--pop, #fff) 16%, transparent), transparent 55%),
    linear-gradient(150deg, color-mix(in srgb, var(--accent) 70%, #0a0f3a), #0a0f3a);
}
.plan-note { max-width: 720px; margin: 28px auto 0; text-align: center; color: var(--muted); }

/* ---------- Privacy band ---------- */
.privacy-band {
  color: #fff;
  background:
    radial-gradient(60% 80% at 80% 0%, color-mix(in srgb, var(--accent) 45%, transparent), transparent 70%),
    linear-gradient(180deg, #0b1240, #101a5c);
}
.privacy-band .section-lede { color: rgba(255, 255, 255, 0.78); }
.privacy-band .eyebrow-sm { color: var(--dawn); }
.pv-pills { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; }
.pv-pills li {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 16px 22px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  font-weight: 600;
}
.pv-pills svg { color: var(--dawn); }

/* ---------- FAQ ---------- */
.faq-list { display: grid; gap: 12px; }
.faq-item {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--card);
  transition: border-color 0.25s, box-shadow 0.25s;
}
.faq-item[open] { border-color: color-mix(in srgb, var(--accent) 40%, var(--line)); box-shadow: var(--shadow); }
.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 24px;
  font-weight: 650;
  font-size: 1.06rem;
  cursor: pointer;
  list-style: none;
  border-radius: 18px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-plus { position: relative; flex: none; width: 28px; height: 28px; border-radius: 50%; background: var(--tint-strong); }
.faq-plus::before, .faq-plus::after {
  content: "";
  position: absolute;
  inset: 50% auto auto 50%;
  width: 12px;
  height: 2px;
  margin: -1px 0 0 -6px;
  border-radius: 2px;
  background: var(--ink-accent);
  transition: transform 0.3s var(--ease);
}
.faq-plus::after { transform: rotate(90deg); }
.faq-item[open] .faq-plus::after { transform: rotate(0deg); }
.faq-a { padding: 0 24px 22px; color: var(--muted); }
.faq-a p { margin: 0; }
.faq-item[open] .faq-a { animation: faq-in 0.35s var(--ease); }
@keyframes faq-in { from { opacity: 0; translate: 0 -6px; } }

/* ---------- Final CTA ---------- */
.p-final {
  padding: clamp(80px, 10vw, 130px) 0;
  text-align: center;
  background: linear-gradient(180deg, var(--bg), var(--tint-strong));
}
.p-icon-lg { width: 120px; height: 120px; margin: 0 auto 28px; }
.p-final p { margin: 14px auto 30px; max-width: 520px; color: var(--muted); font-size: 1.12rem; }
.p-final .p-meta { margin: 22px auto 0; font-size: 0.9rem; }

/* ---------- More apps ---------- */
.more { padding-top: 72px; }
.more-head { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 28px; flex-wrap: wrap; }
.more-head h2 { font-size: clamp(1.5rem, 3vw, 2rem); }
.link-arrow { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; color: var(--ink-accent); text-decoration: none; }
.link-arrow:hover { text-decoration: underline; }
.more-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.more-list a {
  display: grid;
  grid-template-columns: 56px 1fr;
  grid-template-rows: auto auto;
  column-gap: 14px;
  align-items: center;
  padding: 14px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: var(--card);
  text-decoration: none;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.more-list a:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.more-list img { grid-row: span 2; width: 56px; height: 56px; border-radius: 22.37%; }
.more-name { font-weight: 700; align-self: end; }
.more-sub { font-size: 0.85rem; color: var(--muted); align-self: start; line-height: 1.35; }

/* ---------- Sticky bar ---------- */
.sticky-bar {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 11;
  padding: 10px max(20px, calc((100% - 1160px) / 2));
  background: color-mix(in srgb, var(--card) 80%, transparent);
  backdrop-filter: saturate(1.6) blur(18px);
  -webkit-backdrop-filter: saturate(1.6) blur(18px);
  border-bottom: 1px solid var(--line);
  transform: translateY(-110%);
  transition: transform 0.45s var(--ease);
}
.sticky-bar.show { transform: none; }
.sticky-inner { display: flex; align-items: center; gap: 12px; }
.sticky-inner img { width: 36px; height: 36px; border-radius: 22.37%; }
.sticky-name { display: flex; flex-direction: column; font-weight: 700; line-height: 1.2; }
.sticky-name small { font-weight: 500; color: var(--muted); font-size: 0.8rem; }
.sticky-get {
  margin-inline-start: auto;
  padding: 8px 20px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  font-size: 0.92rem;
  text-decoration: none;
  white-space: nowrap;
}

/* ---------- Scroll reveal (only when JS runs: product.js adds .js) ---------- */
.js [data-reveal] {
  opacity: 0;
  translate: 0 28px;
  transition: opacity 0.9s var(--ease), translate 0.9s var(--ease);
  transition-delay: calc(var(--d, 0) * 90ms);
}
.js [data-reveal].in { opacity: 1; translate: 0 0; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .p-hero-grid { grid-template-columns: 1fr; text-align: center; }
  .p-hero { padding-top: 104px; }
  .crumbs, .p-id, .p-cta, .facts { justify-content: center; }
  .p-id { flex-direction: column; gap: 12px; }
  .p-lede { margin-inline: auto; }
  .hero-visual { min-height: 0; padding-top: 20px; }
  .story, .story-flip { grid-template-columns: 1fr; }
  .story-flip .story-text { order: 0; }
  .tiles { grid-template-columns: repeat(2, 1fr); }
  .more-list { grid-template-columns: repeat(2, 1fr); }
}
/* An app's second brand colour (apps.js "pop"), used as a fill with --accent on it. */
.product[style*="--pop"] .fix-c,
.product[style*="--pop"] .story-icon { background: var(--pop); color: var(--accent); }
@media (max-width: 980px) {
  .plan-grid-3 { grid-template-columns: 1fr 1fr; }
  .plan-grid-3 .plan-business { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  .plan-grid-3 .plan-business { grid-column: auto; }
  .product .container { width: calc(100% - 32px); }
  .pf { grid-template-columns: 1fr; }
  .fix { border-inline-start: 0; border-top: 1px solid var(--line); }
  .pf p { padding: 16px 18px; }
  .tiles, .plan-grid, .more-list { grid-template-columns: 1fr; }
  .plan { padding: 28px 22px; }
  .hero-visual .phone-back { display: none; }
  .hero-visual .phone-back ~ .phone-front, [dir="rtl"] .hero-visual .phone-back ~ .phone-front { transform: none; }
  .hero-visual .phone-front { width: min(260px, 70%); }
  .art-tiles li { font-size: 0.82rem; padding: 9px 12px; }
  .phone-sm { width: 200px; }
  .gallery-track { gap: 18px; padding-inline: 16px; scroll-padding-inline: 16px; }
  .sticky-name small { display: none; }
  .faq-item summary { padding: 18px; }
  .faq-a { padding: 0 18px 18px; }
}

@media (prefers-reduced-motion: reduce) {
  .aurora i, .hero-visual .phone-front, .hero-visual .phone-back, .art-icon, .art-tiles li { animation: none !important; }
  .js [data-reveal] { opacity: 1; translate: none; transition: none; }
  .pain-t { transition: none; }
  .store-badge, .btn-notify, .tile, .phone-sm, .more-list a, .sticky-bar { transition: none; }
}
