/* The "add it to your phone" card and the install page at /app/. Its own colours, so it looks the same
   on pages built on book.css and on the account page. No class here is used by another stylesheet. */
.pwa-card { display: grid; grid-template-columns: 48px 1fr; gap: 12px 14px; align-items: center; max-width: 620px; margin: 20px auto 0; padding: 16px; border: 1px solid #dfe5df; border-radius: 18px; background: #fff; color: #17211b; text-align: left; font-family: 'Manrope', system-ui, -apple-system, sans-serif; }
.pwa-card__icon { display: block; width: 48px; height: 48px; border-radius: 12px; }
.pwa-card__words { display: grid; gap: 2px; min-width: 0; }
.pwa-card__words strong { font-size: 1rem; font-weight: 800; color: #0d2e22; }
.pwa-card__words span { font-size: 0.906rem; font-weight: 500; color: #5d6a62; }
.pwa-card__actions { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 8px; }
.pwa-card__go, .pwa-card__close { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 10px 18px; border: 0; border-radius: 999px; font: inherit; font-size: 0.938rem; font-weight: 800; text-decoration: none; cursor: pointer; }
.pwa-card__go { background: #143d2d; color: #fff; }
.pwa-card__go:hover { background: #0d2e22; color: #fff; }
.pwa-card__close { background: transparent; color: #143d2d; box-shadow: inset 0 0 0 1.5px #cbd5cc; }
.pwa-card__go:focus-visible, .pwa-card__close:focus-visible { outline: 3px solid #bd8c32; outline-offset: 2px; }
.pwa-card [hidden] { display: none !important; }

/* ---- /app/ ---- */
.apppage { max-width: 680px; display: grid; gap: 20px; }
.apppage h1 { margin: 8px 0 6px; font-size: clamp(1.8rem, 6.4vw, 2.6rem); line-height: 1.08; color: var(--green-deep); }
.apppage .lead { margin: 0; color: var(--ink-soft); font-size: 1.062rem; }
.apppage .appmark { display: flex; align-items: center; gap: 14px; }
.apppage .appmark img { width: 64px; height: 64px; border-radius: 16px; box-shadow: 0 6px 18px rgba(13, 46, 34, .18); }
.apppage .appmark b { display: block; font-family: var(--display); font-size: 1.125rem; color: var(--green-deep); }
.apppage .appmark small { color: var(--ink-soft); font-size: 0.906rem; font-weight: 600; }
.apppage h2 { font-size: 1.25rem; color: var(--green-deep); margin-bottom: 4px; }
.apppage .how > p { margin: 0 0 14px; color: var(--ink-soft); }
.apppage ol.steps { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; counter-reset: step; }
.apppage ol.steps li { counter-increment: step; display: grid; grid-template-columns: 36px 1fr; gap: 12px; align-items: center; min-height: 56px; padding: 10px 14px; border-radius: 14px; background: #f1f6f1; font-weight: 600; }
.apppage ol.steps li::before { content: counter(step); display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--green); color: #fff; font-weight: 800; }
.apppage .key { display: inline-flex; align-items: center; gap: 6px; padding: 2px 8px; border-radius: 8px; background: #fff; box-shadow: inset 0 0 0 1px #cbd5cc; font-weight: 800; color: var(--green-deep); white-space: nowrap; }
.apppage .key svg { width: 18px; height: 18px; flex: 0 0 auto; }
.apppage .fine { margin: 12px 0 0; color: var(--ink-soft); }
.apppage .howvideo { max-width: 280px; margin: 18px auto 0; display: grid; gap: 8px; }
.apppage .howvideo video { display: block; width: 100%; height: auto; aspect-ratio: 720 / 1560; border-radius: 22px; background: #0d0b09; box-shadow: 0 0 0 6px #17211b; }
.apppage .howvideo figcaption { color: var(--ink-soft); font-size: 0.906rem; font-weight: 600; text-align: center; }
.apppage .note { padding: 14px 16px; border-radius: 14px; background: #fbf3e0; color: #5a4310; font-weight: 600; }
.apppage .btn--wide { width: 100%; }
.apppage .qr { display: grid; grid-template-columns: 168px 1fr; gap: 18px; align-items: center; }
.apppage .qr img { display: block; width: 168px; height: 168px; padding: 10px; border-radius: 16px; background: #fff; box-shadow: inset 0 0 0 1px var(--line); }
.apppage .qr p { margin: 0; color: var(--ink-soft); }
.apppage .perks { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.apppage .perks li { padding-left: 26px; position: relative; color: var(--ink-soft); }
.apppage .perks li::before { content: ''; position: absolute; left: 4px; top: .55em; width: 10px; height: 10px; border-radius: 50%; background: var(--gold); }
.apppage .perks strong { color: var(--ink); }
.apppage .linkbutton { justify-self: start; min-height: 44px; padding: 0; border: 0; background: none; color: var(--green); font: inherit; font-weight: 800; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.apppage .linkbutton:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
@media (max-width: 480px) { .apppage .qr { grid-template-columns: 1fr; justify-items: start; } }
