/* Awaytap — inner pages (Install, Apple Watch). Builds on redesign.css tokens. */
.pg { position: relative; isolation: isolate; overflow-x: clip; padding: 84px 0 120px; }
.pg::after { content: ""; position: absolute; top: -160px; left: 50%; translate: -50% 0; width: 900px; height: 520px; z-index: -1; pointer-events: none;
  background: radial-gradient(closest-side, rgba(217,119,87,.15), transparent); }
.pg-h { max-width: 760px; margin: 0 auto; text-align: center; }
.pg-h h1 { margin-top: 22px; font: 400 clamp(44px, 6.4vw, 78px)/1 var(--serif); letter-spacing: -.034em; text-wrap: balance; }
.pg-h p { margin: 22px auto 0; max-width: 32em; font-size: 18.5px; line-height: 1.55; color: var(--ink-2); text-wrap: balance; }
.pg-h .soon { display: inline-flex; align-items: center; gap: 8px; margin-top: 22px; font-size: 13.5px; color: var(--mute); }
.pg-h .soon b { font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--clay-ink); background: var(--clay-50); padding: 4px 9px; border-radius: 999px; }

/* One-line command */
.cmdbox { display: flex; align-items: center; gap: 10px; max-width: 640px; margin: 40px auto 0; padding: 8px 8px 8px 22px; border-radius: 16px; background: #171716; color: #f5f5ee;
  box-shadow: 0 40px 80px -46px rgba(20,20,19,.6), 0 0 0 1px rgba(20,20,19,.1); }
.cmdbox code { flex: 1; min-width: 0; overflow-x: auto; background: none; padding: 10px 0; font: 14.5px/1.4 var(--mono); color: inherit; white-space: nowrap; scrollbar-width: none; }
.cmdbox code::-webkit-scrollbar { display: none; }
.cmdbox code::before { content: "$ "; color: var(--clay); }
.copy { flex: none; display: inline-flex; align-items: center; gap: 7px; height: 38px; padding: 0 14px; border-radius: 10px; border: 0; background: rgba(245,245,238,.1); color: #f5f5ee;
  font: 500 13.5px var(--sans); cursor: pointer; transition: background-color .2s ease, transform .14s var(--ease-out); }
.copy:hover { background: rgba(245,245,238,.18); }
.copy:active { transform: scale(.96); }
.copy.done { background: var(--clay); }
.copy svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.cmd-note { margin-top: 14px; text-align: center; font-size: 13.5px; color: var(--mute); }
.cmd-note code { font-size: 12.5px; }

/* Numbered steps */
.steps3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; max-width: 1080px; margin: 72px auto 0; list-style: none; counter-reset: s; }
.steps3 > li { position: relative; padding: 28px 26px 26px; border-radius: var(--r-lg); background: var(--paper); border: 1px solid var(--line); counter-increment: s; }
.steps3 > li::before { content: counter(s); display: block; font: italic 400 34px/1 var(--serif); color: var(--clay); }
.steps3 h3 { margin-top: 18px; font: 500 17px/1.35 var(--sans); }
.steps3 p { margin-top: 8px; font-size: 15px; line-height: 1.55; color: var(--ink-2); }
.steps3 code { font-size: 12.5px; }

/* Section blocks inside a page */
.blk { max-width: 1080px; margin: 96px auto 0; display: grid; grid-template-columns: 1fr 1.1fr; gap: 56px; align-items: center; }
.blk .s-h h2 { font-size: clamp(32px, 3.6vw, 46px); }
.blk .s-h p { font-size: 17px; }

/* Platform switch (iPhone / Android) */
.seg { display: inline-flex; padding: 4px; margin-top: 26px; border-radius: 999px; background: var(--bg-2); border: 1px solid var(--line); }
.seg button { height: 34px; padding: 0 16px; border: 0; border-radius: 999px; background: none; font: 500 14px var(--sans); color: var(--mute); cursor: pointer; transition: background-color .2s ease, color .2s ease; }
.seg button[aria-selected="true"] { background: var(--paper); color: var(--ink); box-shadow: 0 1px 3px rgba(20,20,19,.1); }
.how { list-style: none; margin-top: 22px; display: grid; gap: 12px; }
.how li { display: flex; gap: 14px; align-items: flex-start; font-size: 16px; color: var(--ink-2); }
.how li span { flex: none; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--clay-50); color: var(--clay-ink); font: 600 12.5px var(--sans); }
.how li b { color: var(--ink); font-weight: 600; }
.how svg { display: inline; width: 16px; height: 16px; vertical-align: -3px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }

/* Phone frame with home-screen preview */
.home { position: relative; width: 280px; margin: 0 auto; aspect-ratio: 9 / 18.5; border-radius: 46px; padding: 12px; background: #171716;
  box-shadow: 0 60px 110px -60px rgba(20,20,19,.6), inset 0 0 0 2px #2e2e2b; }
.home-in { position: relative; height: 100%; border-radius: 36px; overflow: hidden; padding: 64px 22px 0;
  background: radial-gradient(120% 70% at 80% 0%, rgba(217,119,87,.55), transparent 60%), radial-gradient(90% 60% at 0% 100%, rgba(217,119,87,.25), transparent 70%), #2a2a27; }
.home-in::before { content: ""; position: absolute; top: 12px; left: 50%; translate: -50% 0; width: 90px; height: 26px; border-radius: 999px; background: #000; }
.apps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px 12px; }
.app { display: grid; justify-items: center; gap: 6px; font: 500 10.5px var(--sans); color: rgba(245,245,238,.85); }
.app i { display: block; width: 48px; height: 48px; border-radius: 12px; background: rgba(245,245,238,.14); }
.app.me i { background: #f5f5ee url("../apple-touch-icon.png") center / cover; box-shadow: 0 0 0 2px rgba(217,119,87,.0); animation: pop .7s 1.1s var(--ease-out) both; }
@keyframes pop { from { transform: scale(.4); opacity: 0; } }

/* Apple Watch page */
.qr { display: flex; align-items: center; gap: 22px; max-width: 560px; margin: 40px auto 0; padding: 18px 26px 18px 18px; border-radius: var(--r-lg); background: var(--paper); border: 1px solid var(--line); text-align: left; }
.qr-code { flex: none; width: 112px; height: 112px; padding: 8px; border-radius: 12px; background: #fff; border: 1px solid var(--line); }
.qr-code svg { width: 100%; height: 100%; }
.qr b { display: block; font-weight: 600; }
.qr p { margin-top: 4px; font-size: 14.5px; color: var(--mute); }
.qr .link { font-size: 14.5px; }
@media (hover: none) and (max-width: 820px) { .qr { display: none; } }

.sc { display: grid; gap: 12px; max-width: 520px; }
.sc a { display: flex; align-items: center; gap: 16px; padding: 16px 18px; border-radius: 16px; background: var(--paper); border: 1px solid var(--line); text-decoration: none;
  transition: border-color .2s ease, transform .16s var(--ease-out), box-shadow .2s ease; }
.sc a:hover { border-color: var(--line-2); box-shadow: 0 16px 34px -24px rgba(20,20,19,.35); }
.sc a:active { transform: scale(.985); }
.sc i { flex: none; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; font-style: normal; }
.sc i svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.sc .ok i { background: var(--clay); color: #fff; }
.sc .no i { background: var(--ink); color: var(--bg); }
.sc .st i { background: var(--bg-2); color: var(--ink); }
.sc span { flex: 1; }
.sc b { display: block; font-weight: 600; font-size: 15.5px; }
.sc small { display: block; font-size: 13.5px; color: var(--mute); }
.sc em { font-style: normal; font: 500 13px var(--sans); color: var(--clay-ink); background: var(--clay-50); padding: 6px 12px; border-radius: 999px; }

.watch { position: relative; width: 230px; margin: 0 auto; aspect-ratio: 41 / 50; border-radius: 58px; padding: 14px; background: #171716;
  box-shadow: 0 60px 110px -60px rgba(20,20,19,.6), inset 0 0 0 2px #2e2e2b; }
.watch::before, .watch::after { content: ""; position: absolute; left: 50%; translate: -50% 0; width: 62%; height: 70px; background: #232321; z-index: -1; border-radius: 14px; }
.watch::before { top: -54px; } .watch::after { bottom: -54px; }
.watch-in { height: 100%; border-radius: 46px; background: #000; padding: 26px 18px; display: grid; align-content: center; gap: 10px; color: #f5f5ee; text-align: center; }
.watch-in small { font: 500 11px var(--sans); color: rgba(245,245,238,.6); }
.watch-in b { font: 500 15px/1.3 var(--sans); }
.watch-in code { justify-self: center; background: rgba(245,245,238,.12); color: #f5f5ee; font-size: 11px; }
.watch-in .row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 6px; }
.watch-in .row span { padding: 9px 0; border-radius: 999px; font: 600 12px var(--sans); background: rgba(245,245,238,.14); }
.watch-in .row span.go { background: var(--clay); animation: tap 2.4s 1.2s ease-in-out infinite; }
@keyframes tap { 0%, 70%, 100% { transform: scale(1); } 76% { transform: scale(.92); } 84% { transform: scale(1); } }

.faq-mini { max-width: 720px; margin: 96px auto 0; display: grid; gap: 0; }
.faq-mini div { padding: 20px 0; border-top: 1px solid var(--line); }
.faq-mini div:last-child { border-bottom: 1px solid var(--line); }
.faq-mini b { font: 400 19px/1.3 var(--serif); }
.faq-mini p { margin-top: 6px; font-size: 15px; color: var(--ink-2); }

@media (prefers-reduced-motion: reduce) { .app.me i, .watch-in .row span.go { animation: none; } }
@media (max-width: 900px) {
  .steps3 { grid-template-columns: 1fr; max-width: 560px; }
  .blk { grid-template-columns: 1fr; gap: 44px; }
  .pg { padding: 56px 0 88px; }
}
@media (max-width: 560px) {
  .cmdbox { padding-left: 16px; }
  .cmdbox code { font-size: 12.5px; }
  .copy span { display: none; }
}
.how[hidden] { display: none; }
.pg-h .cmd-note { max-width: none; font-size: 13.5px; }

/* Install demos (silent loops) */
.demo-mac { max-width: 860px; margin: 44px auto 0; border-radius: 16px; overflow: hidden; background: #f5f5ee;
  box-shadow: 0 50px 100px -60px rgba(20,20,19,.55), 0 0 0 1px var(--line); }
.demo-mac video, .demo-phone video { display: block; width: 100%; height: auto; }
.demo-phone { width: 290px; margin: 0 auto; padding: 10px; border-radius: 46px; background: #171716;
  box-shadow: 0 60px 110px -60px rgba(20,20,19,.6), inset 0 0 0 2px #2e2e2b; }
.demo-phone video { border-radius: 37px; aspect-ratio: 1080 / 2340; object-fit: cover; background: #f5f5ee; }
@media (max-width: 560px) { .demo-mac { display: none; } .demo-phone { width: 250px; } }
