/* Per-app pages (loaded after style.css and home.css) */

/* ---------- Hero ---------- */
.stage { position: relative; height: min(66vh, 660px); min-height: 380px; display: grid; place-items: center; }
.phone {
  position: relative; height: 100%; aspect-ratio: 9 / 20; border-radius: 11.5% / 5.2%;
  background: #141414; padding: 1.5%; flex: none;
  box-shadow: 0 0 0 1px rgba(255,255,255,.14) inset, 0 30px 60px -18px rgba(0,0,0,.4), 0 0 0 1px rgba(0,0,0,.5);
}
.phone .screen { position: relative; width: 100%; height: 100%; border-radius: 10.2% / 4.6%; overflow: hidden; background: #000; }
.phone .screen img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.stage .phone.main { min-height: 0; z-index: 2; animation: bob 7s ease-in-out infinite; }
.stage .phone.back { position: absolute; height: 78%; top: 14%; z-index: 1; opacity: 0; animation: slide 1s .5s var(--ease) forwards; }
.stage .phone.left { left: -2%; --r: -5deg; --x: -24px; }
.stage .phone.right { right: -2%; --r: 5deg; --x: 24px; top: 18%; }
@keyframes slide { from { opacity: 0; transform: translateX(var(--x)) rotate(0deg); } to { opacity: 1; transform: rotate(var(--r)); } }
.stage .badge-icon {
  position: absolute; z-index: 3; width: clamp(74px, 9vw, 112px); aspect-ratio: 1; right: 4%; bottom: 6%;
  border-radius: 22.5%; transform: rotate(9deg); animation: bob 6s -2s ease-in-out infinite;
  box-shadow: 0 24px 50px -12px rgba(0,0,0,.4), 0 0 0 1px rgba(0,0,0,.08);
}
.stage .badge-icon img { width: 100%; height: 100%; border-radius: inherit; display: block; }
@keyframes bob { 0%,100% { translate: 0 0; } 50% { translate: 0 -12px; } }

.hero-x .mega.app { font-size: clamp(44px, min(8vw, 14.5vh), 160px); }
.meta-row { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 22px; font-size: 14px; font-weight: 600; color: #55554f; opacity: 0; animation: fade 1s .9s var(--ease) forwards; }
.btn.is-disabled { background: #111; opacity: .55; cursor: default; pointer-events: none; }
.btn.is-disabled + .btn { opacity: 1; }

/* ---------- Dark feature sections ---------- */
.dark-x { background: var(--night); color: #fff; padding: 130px 0 110px; position: relative; }
.dark-x + .dark-x { padding-top: 40px; }
.dark-x .sec-head { margin-bottom: 48px; }
.dark-x .sec-head p { color: #8d8d88; max-width: 34ch; font-size: 16px; }

.modes { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.mode {
  position: relative; background: var(--night-2); border: 1px solid var(--night-line); border-radius: 26px;
  padding: 28px 26px 30px; min-height: 280px; display: flex; flex-direction: column; overflow: hidden;
  transition: background .35s var(--ease), color .35s, transform .45s var(--ease), border-color .35s;
}
.mode:hover { background: var(--accent); color: #000; border-color: var(--accent); transform: translateY(-6px); }
.mode .n { font-family: var(--display); font-size: 14px; color: #6f6f6a; transition: color .3s; }
.mode:hover .n { color: #000; }
.mode svg { width: 54px; height: 54px; margin: 28px 0 auto; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; transition: transform .5s var(--ease); }
.mode:hover svg { transform: scale(1.12) rotate(-6deg); }
.mode h3 { font-family: var(--display); font-size: 28px; letter-spacing: -.03em; margin: 34px 0 8px; }
.mode p { color: #9b9b96; font-size: 15px; transition: color .3s; }
.mode:hover p { color: #1c1c1c; }

.feats { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--night-line); }
.feat { padding: 34px 32px 38px 0; border-bottom: 1px solid var(--night-line); }
.feat:not(:nth-child(3n+1)) { border-left: 1px solid var(--night-line); padding-left: 32px; }
.feat svg { width: 30px; height: 30px; fill: none; stroke: var(--accent); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.feat h3 { font-family: var(--display); font-size: 24px; letter-spacing: -.025em; margin: 22px 0 8px; }
.feat p { color: #9b9b96; font-size: 15px; max-width: 34ch; }

/* ---------- Screens ---------- */
.shots-x { padding: 130px 0 110px; overflow: hidden; }
.shots-x .sec-head { margin-bottom: 70px; }
.shots-x .sec-head h2 { color: var(--ink); }
.shots-x .sec-head p { color: #55554f; max-width: 34ch; }
.shot-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(16px, 3vw, 44px); align-items: start; }
.shot { display: flex; flex-direction: column; align-items: center; gap: 22px; }
.shot:nth-child(even) { margin-top: 70px; }
.shot .phone { height: auto; width: 100%; max-width: 250px; }
.shot figcaption { font-family: var(--display); font-weight: 700; font-size: 18px; letter-spacing: -.02em; text-align: center; }

/* ---------- Privacy callout ---------- */
.trust-x { padding: 40px 0 130px; }
.trust-box {
  background: var(--accent); color: #000; border-radius: 36px; padding: clamp(32px, 6vw, 80px);
  display: grid; grid-template-columns: 1.4fr 1fr; gap: 32px; align-items: end;
}
.trust-box h2 { font-family: var(--display); font-weight: 800; font-size: clamp(34px, 5vw, 72px); letter-spacing: -.04em; line-height: .98; margin: 0 0 22px; }
.trust-box p { font-size: clamp(16px, 1.5vw, 19px); max-width: 40ch; }
.trust-box .btn { background: #000; color: #fff; justify-self: end; margin: 0; }

/* ---------- Doc pages (privacy / support) ---------- */
.doc-page { padding: 140px 0 40px; }
.doc-head { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.doc-head img { width: 76px; height: 76px; border-radius: 22.5%; box-shadow: 0 14px 34px -10px rgba(0,0,0,.3), 0 0 0 1px rgba(0,0,0,.06); }
.doc-head .crumb { font-size: 14px; font-weight: 600; color: #6b6b66; }
.doc-head .crumb a { text-decoration: none; border-bottom: 1px solid rgba(0,0,0,.25); }
.doc-page h1 { font-family: var(--display); font-weight: 800; font-size: clamp(40px, 6vw, 80px); letter-spacing: -.04em; line-height: 1; margin-top: 6px; }
.doc-page .updated { color: #6b6b66; font-size: 14px; margin-top: 14px; }
.doc-page .prose { max-width: 760px; margin-top: 44px; }
.doc-page .prose h2 { font-family: var(--display); font-size: 26px; letter-spacing: -.025em; margin: 48px 0 12px; }
.doc-page .prose p, .doc-page .prose li { color: #2f2f2c; font-size: 16.5px; }
.doc-page .prose li { margin-bottom: 8px; }
.doc-page .prose code { background: rgba(0,0,0,.07); padding: 2px 7px; border-radius: 6px; font-size: .9em; }
.callout { background: var(--accent); color: #000; border-radius: 20px; padding: 20px 24px; margin: 8px 0 12px; }
.callout p, .callout { font-size: 16.5px; }
.callout a { text-decoration: underline; text-underline-offset: 3px; }

.doc-page details { border-bottom: 1px solid rgba(0,0,0,.14); }
.doc-page details:first-of-type { border-top: 1px solid rgba(0,0,0,.14); }
.doc-page summary { list-style: none; cursor: pointer; padding: 20px 40px 20px 0; font-weight: 600; font-size: 17px; position: relative; }
.doc-page summary::-webkit-details-marker { display: none; }
.doc-page summary::after { content: "+"; position: absolute; right: 4px; top: 50%; transform: translateY(-50%); font-size: 26px; font-weight: 400; transition: transform .3s var(--ease); }
.doc-page details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.doc-page details p { padding: 0 40px 22px 0; margin: 0; }

/* page footer on light pages */
footer.site.light { margin-top: 60px; }

@media (max-width: 960px) {
  .modes { grid-template-columns: repeat(2, 1fr); }
  .feats { grid-template-columns: repeat(2, 1fr); }
  .feat:not(:nth-child(3n+1)) { border-left: 0; padding-left: 0; }
  .feat:nth-child(even) { border-left: 1px solid var(--night-line); padding-left: 28px; }
  .shot-row { grid-template-columns: repeat(2, 1fr); row-gap: 50px; }
  .shot:nth-child(even) { margin-top: 40px; }
  .trust-box { grid-template-columns: 1fr; }
  .trust-box .btn { justify-self: start; }
}
@media (max-width: 640px) {
  .stage { height: 440px; }
  .modes, .feats { grid-template-columns: 1fr; }
  .feat:nth-child(even) { border-left: 0; padding-left: 0; }
  .mode { min-height: 220px; }
  .dark-x { padding: 90px 0 70px; }
  .shots-x { padding: 90px 0 70px; }
  .doc-page { padding-top: 112px; }
}
@media (prefers-reduced-motion: reduce) {
  .stage .phone.main, .stage .badge-icon { animation: none; }
  .stage .phone.back { animation: none; opacity: 1; transform: rotate(var(--r)); }
  .meta-row { animation: none; opacity: 1; }
}

.app-lockup { display: flex; align-items: center; gap: 14px; margin-bottom: clamp(22px, 4vh, 40px); opacity: 0; animation: fade 1s .1s var(--ease) forwards; }
.app-lockup img { width: 56px; height: 56px; border-radius: 22.5%; box-shadow: 0 10px 24px -8px rgba(0,0,0,.35), 0 0 0 1px rgba(0,0,0,.06); }
.app-lockup b { display: block; font-family: var(--display); font-size: 20px; letter-spacing: -.02em; line-height: 1.1; }
.app-lockup span { font-size: 14px; color: #6b6b66; }
@media (prefers-reduced-motion: reduce) { .app-lockup { animation: none; opacity: 1; } }

/* FAQ */
.faq-x { padding: 20px 0 60px; }
.faq-x .sec-head h2 { color: var(--ink); }
.faq-x .sec-head p { color: #55554f; max-width: 34ch; }
.faq { max-width: 820px; }
.faq details { border-bottom: 1px solid rgba(0,0,0,.14); }
.faq details:first-child { border-top: 1px solid rgba(0,0,0,.14); }
.faq summary { list-style: none; cursor: pointer; padding: 22px 44px 22px 0; font-weight: 600; font-size: clamp(17px, 1.8vw, 20px); position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 50%; transform: translateY(-50%); font-size: 28px; font-weight: 400; transition: transform .3s var(--ease); }
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details p { padding: 0 44px 24px 0; color: #3b3b37; }
