/* Image Lantern website: the pages besides the home page (download, support, about, and the one for a missing page).
   They're built from the home page's parts (base.css and main.css: the type scale, the panes, the band, the points,
   the buttons); this adds the few layouts only they use. */

.page { padding-top: var(--nav); }

/* the head of a page: the icon, its title, a line under it, and what to do */
.page__head { display: grid; justify-items: center; gap: 18px; padding: var(--gap-band) 0 0; text-align: center; }  /* the room after it comes with what follows, as on the home page */
.page__icon { width: clamp(64px, 6vw, 88px); height: auto; margin-bottom: 4px; }
.page__head .h2 { max-width: 14em; }
.page__head .body { max-width: 30em; text-wrap: balance; }  /* in the same type as the band at the foot of the page */
.page__head .cta { flex-direction: column; align-items: center; gap: 12px; margin: 12px 0 0; }  /* the note in the flow, so the room after it is the band's alone */
.page__head .cta__note { position: static; translate: none; }

/* the page for an address that leads nowhere: its head alone, in the middle of the first screen */
.page--lost { display: grid; align-content: center; min-height: 100svh; padding-bottom: var(--nav); }
.page--lost .page__head { padding: 0; }

/* a part of a page, its title a step under the page's, spaced as the home page's chapters are */
.page__part { padding: var(--gap-chapter) 0 0; }
.page__part:last-child { padding-bottom: clamp(60px, 7vw, 100px); }  /* the last one ends as the questions do, above the footer */
.page__part > h2 { margin-bottom: clamp(24px, 3vw, 44px); font: 600 var(--t-sub)/1.12 var(--display); letter-spacing: -.02em; }
.page__more { margin-top: 22px; font-size: var(--t-small); color: var(--dim); }
.page__part > h2:has(+ .page__more) { margin-bottom: 14px; }  /* a line under a part's title sits close to it, as far from what follows as one after a list is from the list */
.page__part > h2 + .page__more { margin: 0 0 22px; }
.page__more a { color: var(--ink); text-decoration: underline; text-decoration-color: rgba(255, 255, 255, .3); text-underline-offset: 3px; }

/* two columns side by side */
.pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px clamp(24px, 4vw, 64px); }

/* two rules side by side, each its title, why, and what it means: each point with its picture, and for speed, the readings */
.rules { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; gap: 64px clamp(32px, 5vw, 96px); }
.rule h2 { margin-bottom: 14px; font: 600 var(--t-sub)/1.12 var(--display); letter-spacing: -.02em; text-wrap: balance; }
.rule .body { margin-bottom: clamp(24px, 3vw, 40px); }
.ticks { border-top: 1px solid var(--line); }
.ticks li { display: flex; align-items: center; gap: 14px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: var(--t-small); line-height: 1.4; color: var(--dim); }
.ticks .disc { width: 34px; height: 34px; box-shadow: inset 0 0 0 1.25px var(--a); }
.rule__stats { margin-bottom: clamp(24px, 3vw, 40px); }
.rule__stats dl { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 20px; }
.rule__stats dl > div { padding-top: 14px; border-top: 1px solid var(--line); }
.rule__stats dd { font: 600 clamp(30px, 3vw, 46px)/1 var(--display); letter-spacing: -.03em; white-space: nowrap; color: var(--a); }
.rule__stats dd i { font-style: normal; font-weight: 300; font-size: .42em; letter-spacing: 0; margin-left: .16em; color: var(--dim); }
.rule__stats dt { margin-top: 8px; font-size: var(--t-tiny); line-height: 1.4; color: var(--dim); }
.rule__stats p { margin-top: 14px; font-size: var(--t-tiny); color: var(--mute); }

/* a band of its own, spaced as pricing is, at the foot of the download and about pages */
.page__band { margin-top: var(--gap-band); padding: var(--gap-band) 0; background: var(--panel); }
.page__close { display: grid; justify-items: center; gap: 16px; text-align: center; }
.page__close h2 { font: 600 var(--t-title)/1.04 var(--display); letter-spacing: -.022em; text-wrap: balance; }
.page__close .body { max-width: 30em; text-wrap: balance; }
.page__close .btn { margin-top: 8px; }
/* the founders special over a heading rather than a 200 px price: three sizes that differ plainly (a small label, the
   heading, one line under it), and nothing more in words before the six tools */
.page__close .offer { font-size: var(--t-small); letter-spacing: .01em; }
.page__close .offer-after { font-size: var(--t-body); }
.page__close .minis + .body { max-width: none; }  /* under the six tools, one line wherever the line fits */

/* what the license holds: the six tools, small, each in its colour */
.minis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; width: 100%; max-width: 1080px; margin: clamp(18px, 2.4vw, 34px) 0 clamp(8px, 1vw, 14px); text-align: left; }
.mini { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; column-gap: 16px; row-gap: 2px; padding: 18px 20px; border-radius: 20px; background: #121317; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .07); }
.mini .disc { grid-row: span 2; width: 44px; height: 44px; }
.mini b { align-self: end; font: 600 var(--t-lead)/1.2 var(--display); letter-spacing: -.012em; color: var(--ink); }
.mini > span:last-child { align-self: start; font-size: var(--t-small); line-height: 1.45; color: var(--dim); }

@media (max-width: 1000px) {
  .minis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rules { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .minis { grid-template-columns: 1fr; }
  .pair { grid-template-columns: 1fr; }
  .pair:has(> .facts) { row-gap: 0; }
  .pair > .facts + .facts { border-top: 0; }  /* stacked, the two lists read as one */
}
