/* Public content pages (app pages, blog, legal) built by scripts/build-pages.mjs. They use the
   same shell as the home page (only-tools.css + landing.css); this file styles the article. */
.page-lang a { display: inline-block; text-decoration: none; color: var(--ot-mut); font: 800 var(--ot-t-sm)/1 var(--ot-font); padding: 7px 10px; border-radius: var(--ot-r-pill); }
.page-lang a[aria-current] { background: var(--ot-surface); color: var(--ot-ink); box-shadow: var(--ot-shadow-sm); }
.page-body {
  max-width: 760px; width: 100%; box-sizing: border-box;
  display: flex; flex-direction: column; gap: var(--ot-s-3); color: var(--ot-ink-2); font-weight: 600; line-height: 1.6;
}
.page-body p { margin: 0; }
.page-body a:not(.ot-btn) { color: var(--ot-accent-ink); }
.page-body .ot-h1 { color: var(--ot-ink); margin-top: var(--ot-s-2); }
.page-body .ot-h2 { color: var(--ot-ink); margin-top: var(--ot-s-4); }
.page-body .ot-h3 { color: var(--ot-ink); margin-top: var(--ot-s-2); }
.page-body .list, .page-body .steps { margin: 0; padding-left: 1.4em; display: flex; flex-direction: column; gap: 6px; }

/* app pages: the first heading and its paragraph are the hero */
.page--app .ot-h1 { font-size: clamp(2rem, 6vw, 3rem); }
.page--app .ot-h1 + p { font-size: 1.15rem; color: var(--ot-ink-2); }
.cta { display: flex; flex-wrap: wrap; gap: var(--ot-s-2); margin: var(--ot-s-2) 0 !important; }
.cta .ot-btn { text-decoration: none; }

.features { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--ot-s-3); grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.features li { background: var(--ot-surface); border-radius: var(--ot-r-lg, 20px); padding: var(--ot-s-4); box-shadow: var(--ot-shadow-sm); }
.features li b { display: block; color: var(--ot-ink); font-weight: 900; margin-bottom: 4px; }
.page--app .features li { border-top: 4px solid var(--ot-accent); }

.steps { counter-reset: step; list-style: none; padding-left: 0 !important; }
.page--app .steps li { counter-increment: step; display: flex; gap: 12px; align-items: baseline; }
.page--app .steps li::before { content: counter(step); flex: none; display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--ot-accent-soft); color: var(--ot-accent-ink); font-weight: 900; }
.page--post .steps, .page--legal .steps { list-style: decimal; padding-left: 1.4em !important; }

.page-foot {
  max-width: 760px; padding-top: var(--ot-s-4); margin-top: var(--ot-s-4);
  display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); border-top: 1px solid var(--ot-line);
}
.page-foot nav { display: flex; flex-direction: column; gap: 6px; font-size: var(--ot-t-sm); }
.page-foot nav b { color: var(--ot-ink); }
.page-foot a { color: var(--ot-mut); text-decoration: none; font-weight: 700; }
.page-foot a:hover { color: var(--ot-ink); }
.page-foot .ot-caption { grid-column: 1 / -1; margin: 0; }
.page--legal .features { display: flex; flex-direction: column; gap: 6px; list-style: disc; padding-left: 1.4em; }
.page--legal .features li { background: none; box-shadow: none; padding: 0; border: 0; }
.page--legal .features li b { display: inline; }
.page-body code { font: 700 0.9em ui-monospace, monospace; background: var(--ot-surface-2); padding: 1px 6px; border-radius: 6px; }

/* Screenshot galleries on app pages: phone shots in a row (scrolls sideways on narrow screens), desktop shots full width. */
.shots { display: flex; gap: var(--ot-s-3); overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px 2px var(--ot-s-2); margin: var(--ot-s-2) 0; -webkit-overflow-scrolling: touch; }
.shot { flex: 0 0 auto; width: min(68vw, 240px); margin: 0; scroll-snap-align: start; display: flex; flex-direction: column; gap: 8px; }
.shot img { width: 100%; height: auto; display: block; border-radius: 22px; background: var(--ot-surface); box-shadow: var(--ot-shadow); border: 1px solid var(--ot-line); }
.shot figcaption { font-size: 14px; color: var(--ot-ink-2); line-height: 1.35; }
.shots--one { overflow: visible; }
.shot--wide { width: 100%; }
.shot--wide img { border-radius: 14px; }
.shots--one .shot:not(.shot--wide) { width: min(80vw, 300px); }
