/* The reading pages: support, privacy, what Twizt sends where, terms, source
   code, screenshot credits and the 404. Their text is the existing site's, word
   for word (src/legal); only how it looks is new. */

.page { padding: clamp(130px, 16vw, 190px) 0 clamp(72px, 10vw, 128px); }
.page .container, .page .wrap { max-width: calc(1080px + 2 * var(--gutter)); }

.page__head { position: relative; padding-bottom: 40px; margin-bottom: 48px; border-bottom: 2px solid var(--ink); }
.page__head::after { content: ''; position: absolute; left: 0; bottom: -8px; width: 96px; height: 14px; background: var(--lemon); transform: skewX(var(--slant)); transform-origin: bottom left; }
.page__title { font-family: var(--display); text-transform: uppercase; font-weight: 900; font-size: clamp(54px, 10vw, 132px); line-height: 0.88; letter-spacing: 0; text-wrap: balance; }
.page__desc { margin-top: 22px; max-width: 46ch; font-size: clamp(19px, 2.1vw, 23px); line-height: 1.45; color: var(--ink-2); text-wrap: pretty; }
.page__meta { margin-top: 22px; font-family: var(--mono); font-size: 13px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-3); }

/* With a contents list beside it on wide screens (site.js builds the list). */
.page__body { display: grid; gap: 56px; }
@media (min-width: 1000px) {
  .page__body.has-toc { grid-template-columns: 220px minmax(0, 1fr); }
}
.toc { display: none; }
@media (min-width: 1000px) {
  .toc { display: block; position: sticky; top: 104px; align-self: start; font-size: 14px; }
  .toc p { font-family: var(--mono); font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 14px; }
  .toc li { border-left: 2px solid var(--paper-3); }
  .toc a { display: block; padding: 6px 0 6px 14px; margin-left: -2px; border-left: 2px solid transparent; text-decoration: none; color: var(--ink-3); line-height: 1.35; }
  .toc a:hover { color: var(--ink); }
  .toc a.is-here { color: var(--ink); border-left-color: var(--ink); font-weight: 600; }
}

.prose { max-width: 72ch; min-width: 0; font-size: 18px; line-height: 1.68; }
.prose > * + * { margin-top: 1.1em; }
.prose h2 { font-family: var(--display); text-transform: uppercase; font-weight: 900; font-size: clamp(27px, 3.2vw, 36px); line-height: 1.12; letter-spacing: 0; margin-top: 2em; scroll-margin-top: 110px; }
.prose a { text-decoration-color: var(--lemon-deep); text-decoration-thickness: 2px; }
.prose a:hover { background: var(--lemon); text-decoration-color: var(--ink); }
.prose strong { font-weight: 650; }
.prose ul { display: grid; gap: 0.6em; }
.prose ul li { position: relative; padding-left: 1.5em; }
.prose ul li::before { content: ''; position: absolute; left: 0.1em; top: 0.62em; width: 0.62em; height: 0.3em; background: var(--leaf-deep); transform: skewX(var(--slant)); }

/* Tables: a ledger. */
.scroll { overflow-x: auto; margin-inline: calc(-1 * var(--gutter)); padding-inline: var(--gutter); }
.prose table { width: 100%; min-width: 620px; border-collapse: collapse; font-size: 15.5px; line-height: 1.5; background: #fffdf6; border: 2px solid var(--ink); border-radius: 0; }
.prose th { text-align: left; font-family: var(--mono); font-weight: 500; font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; background: var(--ink); color: var(--paper); padding: 12px 16px; }
.prose td { vertical-align: top; padding: 14px 16px; border-top: 1px solid var(--paper-3); }
.prose td:first-child { font-weight: 650; }

/* Questions */
.prose details { border-top: 2px solid var(--ink); margin-top: 0; }
.prose details:last-of-type { border-bottom: 2px solid var(--ink); }
.prose h2 + details { margin-top: 1.2em; }
.prose summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 24px; align-items: baseline; padding: 18px 0; font-family: var(--display); text-transform: uppercase; font-weight: 900; font-size: 22px; line-height: 1.25; }
.prose summary::-webkit-details-marker { display: none; }
.prose summary::after { content: '+'; flex: none; font-family: var(--mono); font-weight: 400; font-size: 24px; line-height: 1; transition: transform 0.3s var(--ease); }
.prose details[open] summary::after { transform: rotate(45deg); }
.prose details p { padding: 0 0 22px; max-width: 60ch; color: var(--ink-2); }

/* Support's email, and the source link */
.contact { background: var(--ink); color: var(--paper); padding: 26px 30px; border-radius: 0; display: grid; gap: 4px; }
.contact__label { font-family: var(--mono); font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--bone-2); }
.contact__value { font-family: var(--display); text-transform: uppercase; font-weight: 900; font-size: clamp(24px, 4vw, 38px); letter-spacing: 0; overflow-wrap: anywhere; }
.prose .contact a { text-decoration-color: var(--lemon); }
.prose .contact a:hover { background: none; color: var(--lemon); }
.prose a.mail { display: inline-block; margin-top: 1.4em; padding: 16px 22px; background: var(--lemon); border: 2px solid var(--ink); font-family: var(--mono); font-size: 16px; font-weight: 500; text-decoration: none; box-shadow: 6px 6px 0 var(--ink); transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease); overflow-wrap: anywhere; }
.prose a.mail:hover { background: var(--lemon-2); transform: translate(-2px, -2px); box-shadow: 8px 8px 0 var(--ink); }

/* Screenshot credits */
.credits { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 0; border-top: 2px solid var(--ink); border-left: 2px solid var(--ink); }
.credit { padding: 24px 24px 28px; border-right: 2px solid var(--ink); border-bottom: 2px solid var(--ink); background: #fffdf6; font-size: 14.5px; line-height: 1.55; overflow-wrap: anywhere; }
.credit__title { font-family: var(--display); text-transform: uppercase; font-weight: 900; font-size: 23px; line-height: 1.15; letter-spacing: 0; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; }
.credit__year { font-family: var(--mono); font-weight: 400; font-size: 13px; color: var(--ink-3); letter-spacing: 0; }
.credit__licence { display: inline-block; margin: 12px 0 14px; padding: 3px 10px; background: var(--leaf); border-radius: 0; font-family: var(--mono); font-size: 12px; }
.credit__licence a { text-decoration: none; }
.credit__licence a:hover { text-decoration: underline; }
.credit__line { display: grid; gap: 6px; color: var(--ink-2); }

/* 404 */
.page--404 .page__head { border-bottom: 0; margin-bottom: 8px; }
.page--404 .page__head::after { display: none; }
.not-found__code { display: flex; align-items: center; gap: 0.06em; font-family: 'Big Shoulders Display', Impact, sans-serif; font-weight: 900; font-size: clamp(120px, 26vw, 300px); line-height: 0.85; margin-bottom: 28px; }
.not-found__code svg { height: 0.72em; width: auto; background: var(--ink); padding: 0.07em; border-radius: 0.08em; box-sizing: content-box; }
.not-found__links { display: flex; flex-wrap: wrap; gap: 12px; }
.not-found__links a { display: inline-block; padding: 12px 22px; border: 2px solid var(--ink); border-radius: 0; font-weight: 600; text-decoration: none; }
.not-found__links a:hover { background: var(--ink); color: var(--paper); }


/* Edge: the logo's lettering for headings, hard corners, hard shadows. */
.page__title { font-size: clamp(64px, 12vw, 176px); line-height: 0.84; }
.prose h2 { font-size: clamp(34px, 4vw, 48px); line-height: 0.95; letter-spacing: 0.01em; }
.prose summary { font-size: 28px; line-height: 1; letter-spacing: 0.01em; }
.contact { box-shadow: 8px 8px 0 var(--lemon); }
.contact__value { text-transform: none; font-family: var(--text); font-weight: 700; }
.credit__title { font-size: 30px; line-height: 0.95; }
.credit__licence { --cut: 6px; padding: 3px 14px; clip-path: var(--lean); }
.not-found__links a { --cut: 10px; border: 0; background: var(--ink); color: var(--paper); padding: 12px 28px; font-family: var(--display); font-weight: 900; font-size: 20px; letter-spacing: 0.06em; text-transform: uppercase; clip-path: var(--lean); }
.not-found__links a:hover { background: var(--lemon); color: var(--ink); }
.prose table { box-shadow: 8px 8px 0 var(--ink); }

/* Launch day: the buy and download buttons, numbered steps and the TV's code.
   Only /buy/ and /download/ use them, and only once site.config.mjs opens sales
   or downloads. */
.buy-row { display: flex; flex-wrap: wrap; gap: 14px 18px; }
.cta--buy, .cta--get { --cut: 14px; height: 58px; padding: 0 34px 0 28px; font-size: 23px; }
.cta--get { background: var(--ink); color: var(--paper); }
.cta--get .cta__icon { color: var(--lemon); }
.prose a.cta { text-decoration: none; }
.prose a.cta:hover { background: var(--lemon-2); }
.prose a.cta--get:hover { background: var(--night-3); }
.prose .small { font-size: 15.5px; color: var(--ink-2); }

/* /buy/ once sales open: the plans side by side above the text, yearly in the
   middle and picked to begin with (the ink card, its button the filled one).
   On a phone they stack, yearly first. */
.buy-plans { display: grid; gap: 28px; padding-top: 10px; }
.buy-note { margin: 30px 0 56px; max-width: 72ch; font-size: 15.5px; line-height: 1.55; color: var(--ink-3); }
.buy-note a { color: var(--ink); }
.buy-plan { position: relative; display: flex; flex-direction: column; gap: 12px; padding: 28px 24px 26px; background: #fffdf6; border: 2px solid var(--ink); box-shadow: 8px 8px 0 var(--ink); line-height: 1.45; }
.buy-plan .founders, .buy-plan .founders-after { display: flex; flex-direction: column; gap: 12px; flex: 1; }
.buy-plan .founders[hidden], .buy-plan .founders-after[hidden] { display: none; }
.buy-plan h3 { margin-bottom: 6px; font-family: var(--display); font-weight: 900; font-size: 34px; line-height: 0.95; text-transform: uppercase; }
.buy-plan__price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 12px; }
.buy-plan__price b { font-family: var(--display); font-weight: 900; font-size: clamp(56px, 7vw, 76px); line-height: 0.85; }
.buy-plan__price span { font-family: var(--display); font-weight: 900; font-size: 22px; letter-spacing: 0.04em; text-transform: uppercase; color: var(--ink-3); }
.buy-plan__price s { font-family: var(--display); font-weight: 900; font-size: 28px; color: var(--ink-3); text-decoration-thickness: 3px; }
.buy-plan__line { font-size: 16px; color: var(--ink-2); }
.buy-plan__line strong { color: var(--ink); font-weight: 650; }
.buy-plan__save { --cut: 6px; display: block; width: max-content; margin-top: 8px; padding: 1px 12px; background: var(--leaf); color: var(--ink); font-family: var(--display); font-weight: 900; font-size: 16px; letter-spacing: 0.06em; text-transform: uppercase; clip-path: var(--lean); }
.buy-plan .cta { margin-top: auto; align-self: flex-start; }
.buy-plan .founders .cta, .buy-plan .founders-after .cta { margin-top: auto; }
.buy-plan--best { background: var(--ink); color: var(--bone); box-shadow: 8px 8px 0 var(--lemon); }
.buy-plan--best .buy-plan__price b { color: var(--lemon); }
.buy-plan--best .buy-plan__price span, .buy-plan--best .buy-plan__line { color: var(--bone-2); }
.buy-plan--best .buy-plan__line strong { color: var(--bone); }
.buy-plan__flag { --cut: 8px; position: absolute; right: 18px; top: -16px; padding: 6px 18px 5px; background: var(--lemon); color: var(--ink); font-family: var(--display); font-weight: 900; font-size: 16px; letter-spacing: 0.08em; text-transform: uppercase; clip-path: var(--lean); }
.cta--pick { background: var(--lemon); color: var(--ink); }
.prose a.cta--pick:hover { background: var(--lemon-2); }
.buy-plan:not(.buy-plan--best) .cta--buy { background: var(--paper-2); }
.prose .buy-plan:not(.buy-plan--best) a.cta--buy:hover { background: var(--lemon-2); }
@media (max-width: 759px) {
  .buy-plan--best { order: -1; }
}
@media (min-width: 760px) {
  .buy-plans { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .buy-plans--three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .buy-plans--three .buy-plan--best { transform: translateY(-14px); }
}
.buy-free { --cut: 10px; display: inline-block; margin-top: 22px; padding: 8px 24px 7px; background: var(--lemon); color: var(--ink); font-family: var(--display); font-weight: 900; font-size: clamp(20px, 2.4vw, 26px); letter-spacing: 0.05em; text-transform: uppercase; clip-path: var(--lean); }
.prose code { font-family: var(--mono); font-size: 0.86em; overflow-wrap: anywhere; }
.prose ol.steps { counter-reset: step; display: grid; gap: 0.7em; }
.prose ol.steps > li { counter-increment: step; position: relative; padding-left: 2.7em; }
.prose ol.steps > li::before { content: counter(step); --cut: 6px; position: absolute; left: 0; top: 0.1em; width: 1.9em; height: 1.45em; display: grid; place-items: center; background: var(--lemon); font-family: var(--display); font-weight: 900; font-size: 1em; line-height: 1; clip-path: var(--lean); }
.tv-code { --cut: 10px; display: block; width: max-content; max-width: 100%; margin: 0.5em 0; padding: 6px 30px; background: var(--ink); color: var(--lemon); font-family: var(--mono); font-weight: 600; font-size: clamp(30px, 5vw, 44px); letter-spacing: 0.14em; line-height: 1.3; clip-path: var(--lean); }
