/* /check/ — Rectoly Check's page (2026-11-27; lib/pages/check.js). Loaded after rectoly.css on that page only
   (CHECK_CSS_VERSION in lib/pages/check.js: raise it with any change here), so the other pages and their
   CSS_VERSION are untouched. Everything else on the page is the site's own: the hero, the feature cards, the
   connect cards, the price cards, the family's tiles, the principles, the FAQ. Check's colour is its icon's teal
   (#0B6C6E), used only as a glow. */
.app-check { --app: #0b6c6e; }

/* The hero: the text, and the sample's sentences by result. */
.hero-check { grid-template-columns: 1fr 1.05fr; }
.hero-check .hero-content { max-width: 560px; }
.hero-check h1 { font-size: clamp(40px, 4.6vw, 56px); line-height: 1.08; }
.hero-check p { max-width: 500px; margin-bottom: 32px; }
.hero-check .hero-note { font-size: 14px; line-height: 1.6; margin: 24px 0 0; color: var(--text-dim); }
.check-app { display: flex; align-items: center; gap: 12px; margin: -8px 0 18px; font-size: 15px; font-weight: 600; color: #fff; }
.check-app img { width: 40px; height: 40px; border-radius: 9px; box-shadow: 0 0 0 1px rgba(255,255,255,0.08); }

/* A crop of an iPad screen, in a dark rim (the /latex/ page's, with Check's teal glow). */
.check-shot {
  border-radius: 20px;
  overflow: hidden;
  border: 8px solid #0d0f14;
  box-shadow: 0 0 0 1px var(--border-hover), 0 30px 80px rgba(0,0,0,0.5), 0 0 90px rgba(22,140,142,0.16);
  background: #f2f2f7;
}
.check-shot img { display: block; width: 100%; height: auto; }
.check-shot--hero { box-shadow: 0 0 0 1px var(--border-hover), 0 40px 100px rgba(0,0,0,0.55), 0 0 120px rgba(22,140,142,0.24); }
.check-shot--wide { max-width: 1000px; margin: 0 auto 48px; }

/* #finds: the conditions under the cards, then the reference check's screen. */
.check-note { max-width: 820px; margin: 32px auto 0; text-align: center; font-size: 14px; line-height: 1.7; color: var(--text-dim); }
.check-figure { max-width: 900px; margin: 64px auto 0; text-align: center; }
.check-figure figcaption { margin-top: 18px; font-size: 15px; font-weight: 600; color: var(--text); }

/* The section headings of the page: two short lines. */
#side .section-head h2,
#decisions .section-head h2,
#rectoly .section-head h2,
.check-cta .section-head h2 { line-height: 1.12; }

/* #decisions: the cards under the heading. */
.check-decisions .section-head { margin-bottom: 48px; }

/* #sample: the words, and the first screen. */
.check-sample { max-width: 1100px; margin: 0 auto; display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 64px; align-items: center; }
.check-sample-text h2 { font-size: clamp(30px, 4vw, 44px); font-weight: 700; line-height: 1.12; letter-spacing: -0.035em; color: #fff; margin-bottom: 20px; }
.check-sample-text p { font-size: 17px; line-height: 1.75; color: var(--text-muted); }
.check-sample-text .check-sample-own { margin-top: 16px; font-size: 15px; color: var(--text-dim); }
.check-shot--sample { max-width: 400px; margin: 0 auto; background: #fff; }

/* #pricing: Free and Pro side by side, then the family price. */
.check-pricing { border-top: 1px solid var(--border); }
.check-pricing .price-duo { margin-bottom: 28px; text-align: start; }
.check-pricing .price-features li { align-items: flex-start; line-height: 1.55; }
.check-pricing .price-features li::before { margin-top: 1px; }
.check-family { max-width: 640px; margin: 0 auto 28px; font-size: 15px; line-height: 1.7; color: var(--text-muted); }
.check-family a { color: var(--accent-bright); text-decoration: none; border-bottom: 1px solid rgba(125,146,176,0.35); white-space: nowrap; }
.check-family a:hover { color: #fff; }

/* #rectoly: the three reading apps, then what passes between them. */
.check-tiles { grid-template-columns: repeat(3, 1fr); max-width: 960px; margin: 0 auto 40px; }

/* #privacy: the principles' columns under the heading (three on the mainland page). */
#privacy .principles { margin-top: 64px; }
.principles--three { grid-template-columns: repeat(3, 1fr); max-width: 900px; }

/* The last word: the icon, a line, the App Store badge. */
.check-cta { padding: 110px 40px 120px; border-top: 1px solid var(--border); background: radial-gradient(ellipse at 50% 0%, rgba(22,140,142,0.16), transparent 60%); }
.check-cta .section-head { margin-bottom: 32px; }
.check-cta-icon { display: block; width: 72px; height: 72px; margin: 0 auto 24px; border-radius: 16px; box-shadow: 0 0 0 1px rgba(255,255,255,0.08), 0 12px 32px rgba(0,0,0,0.4); }
.check-cta .store-badges--block { margin-bottom: 0; }

@media (max-width: 1000px) {
  .check-tiles { grid-template-columns: repeat(3, 1fr); }
  .principles--three { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 900px) {
  .hero-check { grid-template-columns: 1fr; padding-bottom: 72px; }
  .check-sample { grid-template-columns: 1fr; gap: 40px; }
}
@media (max-width: 768px) {
  .hero-check h1 { font-size: 36px; }
  .hero-check .hero-note { margin-top: 20px; }
  .check-shot { border-width: 5px; border-radius: 14px; }
  .check-shot--wide { margin-bottom: 32px; }
  .check-figure { margin-top: 48px; }
  .check-cta { padding: 80px 20px; }
  #privacy .principles { margin-top: 40px; }
}
@media (max-width: 640px) {
  .check-tiles { grid-template-columns: 1fr; }
  .principles--three { grid-template-columns: 1fr; }
}
