/* ============================================================
   Solon — the sales pages: home, pricing, about, the edition homes,
   the forthcoming placeholders and the practice-area pages.
   Loaded AFTER site.css / course.css and solon-v2.css. Colours come
   only from the tokens both of those define (--paper, --card, --ink,
   --line, --accent …), so light and dark themes follow by themselves.

   Written after the September 2026 funnel review, which found that on a
   390x660 phone the home page spent its first screen on a 175px sticky
   header and a 90-word lede, and never said who the library is for,
   what is free, or showed a single screen of the product.
   ============================================================ */

/* ---------- the header on a phone ----------
   Two short rows instead of three tall ones: the seal, the name and
   "Sign in" on the first; Library · Pricing · About on the second.
   About 76px instead of 175px. The tagline is hidden on phones only. */
@media (max-width: 640px) {
  .wrap { padding-left: 18px; padding-right: 18px; }
  .site-head { padding: 8px 0 6px; margin-bottom: 0; gap: 2px 10px; }
  .site-head .logo { gap: 9px; }
  .site-head .logo svg { width: 30px; height: 30px; }
  .site-head .logo .wordmark { font-size: 16px !important; letter-spacing: .18em; }
  .site-head .logo .tag { display: none; }
  .site-head .auth-wrap { order: 2; margin-left: auto; }
  .site-head .head-links { order: 3; flex: 1 0 100%; gap: 20px; font-size: 13.5px; padding: 2px 0 0; }
  .nav-panel { width: calc(100vw - 36px); max-height: calc(100vh - 96px); max-height: calc(100dvh - 96px); }
  /* Sign in as a quiet text link on a phone, not the loudest control on the screen */
  .site-head button.auth-toggle {
    padding: 4px 0; border: none; background: none; border-radius: 0;
    font-size: 13px; color: var(--accent-2); text-decoration: underline; text-underline-offset: 3px;
  }
  .site-head button.auth-toggle.signed { color: var(--ink-2); text-decoration: none; }
  #library, #forthcoming, h2[id] { scroll-margin-top: 84px; }
}

/* ---------- the home hero ---------- */
.hero-home { padding: 34px 0 10px; }
.hero-home .kicker { margin-bottom: 8px; }
.hero-home h1 { margin: 0 auto .35em; max-width: 15em; }
.hero-home .lede { max-width: 36em; margin: 0 auto 18px; }
.hero-home .hero-cta { align-items: center; gap: 12px 22px; margin: 18px 0 8px; }
.btn.btn-lead { display: inline-flex; flex-direction: column; align-items: center; line-height: 1.25; padding: 12px 28px 11px; }
.btn.btn-lead small { font-weight: 600; font-size: 12.5px; opacity: .88; letter-spacing: .01em; margin-top: 2px; }
.hero-link { font-family: var(--sans); font-size: 14.5px; font-weight: 700; text-decoration: none; }
.hero-link:hover { text-decoration: underline; }
.hero-home .chips { margin-top: 14px; }
.chip.chip-key { color: var(--accent-2); background: var(--accent-soft); border-color: color-mix(in srgb, var(--accent) 35%, transparent); }
.trust {
  max-width: 44em; margin: 16px auto 0; font-family: var(--sans); font-size: 13.5px; line-height: 1.55;
  color: var(--ink-2); text-wrap: balance;
}
.trust a { font-weight: 700; text-decoration: none; white-space: nowrap; }
.trust a:hover { text-decoration: underline; }

@media (max-width: 640px) {
  .hero-home { padding: 16px 0 4px; }
  .hero-home .kicker { font-size: 11px; letter-spacing: .14em; }
  .hero-home h1 { font-size: 1.78rem; line-height: 1.14; }
  .hero-home .lede { font-size: 1.02rem; line-height: 1.5; margin-bottom: 12px; }
  .hero-home .hero-cta { flex-direction: column; gap: 10px; margin: 12px 0 4px; }
  .hero-home .btn.btn-lead { width: 100%; }
  .hero-home .chips { gap: 6px; margin-top: 10px; }
  .trust { font-size: 12.5px; margin-top: 12px; }
}

/* ---------- "What a chapter looks like": three real screens ---------- */
.shots { margin: 38px 0 0; }
.shots-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; max-width: 880px; margin: 0 auto; padding: 0; list-style: none; }
.shots figure { margin: 0; }
.shots img {
  display: block; width: 100%; height: auto; border-radius: 18px;
  border: 1px solid var(--line-2); box-shadow: var(--shadow); background: var(--card);
}
.shots figcaption { margin: 10px 2px 0; font-family: var(--sans); font-size: 13.5px; line-height: 1.5; color: var(--ink-2); }
.shots figcaption b { color: var(--ink); font-weight: 700; }
.shots-note { margin: 12px 0 0; font-family: var(--sans); font-size: 12.5px; color: var(--ink-3); }
@media (max-width: 760px) {
  /* a row you swipe, not three screens of scrolling; the row scrolls, the page does not */
  .shots-grid {
    grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: min(66%, 260px);
    overflow-x: auto; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch;
    margin: 0 -18px; padding: 2px 18px 10px; gap: 14px; scrollbar-width: none;
  }
  .shots-grid::-webkit-scrollbar { display: none; }
  .shots-grid > li { scroll-snap-align: start; }
}
/* inside an edition home the column is 760px; the strip keeps to it */
.content .shots { max-width: 760px; }
.content .shots h2 { margin-top: 2em; }

/* ---------- the launch band on the home page ---------- */
.launch-band {
  max-width: 820px; margin: 40px auto 0; padding: 22px 26px 18px;
  background: var(--card); border: 1px solid var(--line-2); border-left: 3px solid var(--accent);
  border-radius: 0 16px 16px 0; box-shadow: var(--shadow);
}
.launch-band .box-tag { margin-bottom: .4em; }
.launch-band h2 { margin: 0 0 .35em; font-size: clamp(1.2rem, 1.1rem + .4vw, 1.4rem); }
.launch-band p { margin: 0 0 .7em; color: var(--ink-2); }
.launch-band .launch-fine { font-family: var(--sans); font-size: 13px; color: var(--ink-3); margin: .6em 0 0; }
.launch-account:empty { display: none; }
@media (max-width: 640px) { .launch-band { padding: 18px 18px 14px; } }

/* ---------- "New editions as they come out" ---------- */
.notify { max-width: 640px; margin: 40px auto 48px; }
.notify .ss { margin: 0; }

/* ---------- prices and the small print beside them ---------- */
.buy-terms {
  font-family: var(--sans); font-size: 13px; line-height: 1.5; color: var(--ink-3);
  text-align: center; margin: 4px auto 10px; max-width: 36em;
}
.buy-terms a { color: var(--ink-2); }
.launch-note { text-wrap: pretty; }
.launch-note strong { color: var(--accent-2); }

/* ---------- the forthcoming placeholders ---------- */
.notify-soon { margin: 1.6em 0; }
.notify-soon .ss { margin: 0; }

/* ---------- the pricing page ---------- */
.launch-box { border-left-color: var(--accent); }
.launch-box h2 { margin: .1em 0 .4em; font-size: 1.3rem; }
.launch-steps { margin: .4em 0 .6em; padding-left: 1.25em; }
.launch-steps li { margin-bottom: .45em; }
.launch-steps li::marker { color: var(--accent); font-family: var(--sans); font-weight: 700; }

/* ---------- the catalogue cards (tools/build_catalogue.py) ---------- */
.course-card .card-terms { font-family: var(--sans); font-size: 12px; line-height: 1.45; color: var(--ink-3); margin-top: -4px; }
.course-card .card-terms[hidden] { display: none; }

/* The seal, the deal line and the "New · 8 October" mark on a card (roadmap
   1.1 and 1.7), and the "pick up where you left off" strip (1.2), are styled
   in shared/site.css: the account page builds the same cards at run time and
   loads site.css alone, and shared/site.js draws the strip on every page
   kind. One place, so the three cannot disagree. */

/* ---------- try one question (roadmap 1.5; shared/taster.js draws it) ----------
   The chapter test's own classes, styled here so the home page, which has no
   course.css, shows the same card an edition does. Tokens only; --ok-soft,
   --bad and --bad-soft exist only in the editions, so each has a fallback. */
.taster { max-width: 640px; margin: 26px auto 0; text-align: left; }
.taster:empty { display: none; }
.taster .quiz-card {
  background: var(--card); border: 1px solid var(--line); border-radius: 16px;
  padding: 24px 26px; box-shadow: var(--shadow); font-family: var(--sans);
}
.taster .q-meta {
  display: flex; justify-content: space-between; align-items: baseline; gap: 6px 14px; flex-wrap: wrap;
  font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-2); margin: 0 0 10px;
}
.taster .q-meta .q-ed { color: var(--accent-2); }
.taster .quiz-q { font-family: var(--serif); font-size: 1.12rem; line-height: 1.5; font-weight: 600; color: var(--ink); margin: 0 0 16px; }
.taster .quiz-q:focus { outline: none; }
.taster .q-cast { font-size: 14px; line-height: 1.5; color: var(--ink-2); margin: 0 0 6px; }
.taster .quiz-opts { display: grid; gap: 10px; }
.taster button.quiz-opt {
  display: flex; gap: 12px; align-items: baseline; text-align: left; width: 100%;
  background: var(--paper); border: 1.5px solid var(--line-2); border-radius: 12px;
  padding: 11px 14px; font: inherit; font-size: 14.5px; line-height: 1.5; color: var(--ink); cursor: pointer;
}
.taster button.quiz-opt:hover:not([aria-disabled="true"]) { border-color: var(--accent); }
.taster button.quiz-opt:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.taster button.quiz-opt .l {
  font-family: var(--mono); font-size: 12px; font-weight: 700; color: var(--ink-3);
  border: 1px solid var(--line); border-radius: 6px; padding: 1px 6px; flex-shrink: 0;
}
.taster button.quiz-opt[aria-disabled="true"] { cursor: default; opacity: .75; }
.taster button.quiz-opt.correct { background: var(--ok-soft, color-mix(in srgb, var(--ok) 12%, transparent)); border-color: var(--ok); opacity: 1; }
.taster button.quiz-opt.correct .l { color: var(--ok); border-color: var(--ok); }
.taster button.quiz-opt.wrong { background: var(--bad-soft, color-mix(in srgb, var(--accent-2) 12%, transparent)); border-color: var(--bad, var(--accent-2)); opacity: 1; }
.taster button.quiz-opt.wrong .l { color: var(--bad, var(--accent-2)); border-color: var(--bad, var(--accent-2)); }
.taster .quiz-explain {
  margin-top: 14px; padding: 12px 15px; border-radius: 10px;
  background: var(--paper-2); border: 1px solid var(--line-2);
  font-size: 14px; line-height: 1.55; color: var(--ink-2);
}
.taster .quiz-explain b.verdict { display: block; margin-bottom: 4px; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; }
.taster .quiz-explain b.verdict.ok { color: var(--ok); }
.taster .quiz-explain b.verdict.no { color: var(--bad, var(--accent-2)); }
.taster .taster-next { margin: 14px 0 0; font-size: 14.5px; line-height: 1.5; color: var(--ink-2); }
.taster .taster-next a { font-weight: 700; text-decoration: none; white-space: nowrap; }
.taster .taster-next a:hover { text-decoration: underline; }
.taster .taster-clause { margin: 12px 0 0; padding: 2px 0 2px 14px; border-left: 3px solid var(--accent); }
.taster .taster-clause figcaption {
  font-family: var(--sans); font-size: 12px; font-weight: 700; letter-spacing: .06em; color: var(--accent-2); margin: 0 0 4px;
}
.taster .taster-clause blockquote { margin: 0; font-family: var(--serif); font-style: italic; font-size: 15px; line-height: 1.5; color: var(--ink); }
.taster .taster-foot { margin: 12px 0 0; font-size: 13px; color: var(--ink-2); text-align: right; }
.taster .taster-another {
  font: inherit; background: none; border: none; padding: 0; color: var(--ink-2);
  text-decoration: underline; text-underline-offset: 3px; cursor: pointer;
}
.taster .taster-another:hover { color: var(--accent-2); }
.taster .taster-another:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
@media (max-width: 640px) {
  .taster { margin-top: 20px; }
  .taster .quiz-card { padding: 20px 16px; }
}
/* inside an edition home the card sits between the hero and the chapter list */
.content > .taster { max-width: 760px; margin: 28px auto 34px; }
@media (max-width: 640px) { .content > .taster { margin-top: 22px; } }

/* ---------- forthcoming: the next two on the home page, the full list on its own page ---------- */
.soon-intro { font-family: var(--sans); font-size: 14px; color: var(--ink-2); margin: -2px 0 14px; }
.soon-all { font-family: var(--sans); font-size: 14px; margin: 6px 0 0; }
.soon-all a { font-weight: 700; text-decoration: none; }
.soon-all a:hover { text-decoration: underline; }

/* a page that starts with a kicker straight under the header (pricing, about, the legal pages) */
.site-head + .kicker { margin-top: 18px; }

/* edition home v2 (tools/style/EDITION-HOME.md §5.2): 13, 16, 18, 24 px and the h1; serif for h1, h2, promise */
.eh { padding: 4px 0 0; }
/* the edition's cover (tools/covers/COVERS.md), inline so its classes take these tokens: above the title on a
   phone, beside it from 760 px; the seal is its stamp in the top-right corner, which every cover keeps empty (§1).
   In the markup the cover comes after .eh-title, so a screen reader says the edition's name before the long
   description of the drawing; the flex direction puts the cover first on the screen. */
.eh-top { display: flex; flex-direction: column-reverse; }
.eh-cover { position: relative; margin: 0 0 14px; line-height: 0; overflow: hidden; border-radius: 12px;
            background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow); }
.eh-cover svg.cover { display: block; width: 100%; height: auto; }
.eh-cover .eh-seal { position: absolute; top: 3.2%; right: 2.4%; width: 11.5%; aspect-ratio: 1; }
.eh-cover .eh-seal svg { display: block; width: 100%; height: 100%; }
.eh .kicker { font-size: 13px; letter-spacing: .08em; margin: 0; text-wrap: balance; }
.eh h1 { font-size: 34px; line-height: 1.15; margin: 6px 0 6px; }
.eh .eh-deal {
  font-family: var(--serif); font-style: italic; font-size: 17px; line-height: 1.45;
  color: var(--ink-2); max-width: 30em; margin: 0 auto 10px; text-wrap: balance;
}
.eh .lede { font-size: 18px; line-height: 1.5; max-width: 26em; margin: 0 auto 18px; }
.eh-lead, .eh-outcomes, .eh-facts, .eh-doc, .eh-links { font-family: var(--sans); font-size: 16px; line-height: 1.5; }
.eh-lead, .eh-outcomes { max-width: 30em; margin-left: auto; margin-right: auto; text-align: left; }
.eh-lead { margin-top: 0; margin-bottom: 4px; font-weight: 600; }
.eh-outcomes { margin-top: 0; margin-bottom: 16px; padding-left: 1.25em; color: var(--ink-2); }
.eh-outcomes li { margin: 0 0 4px; }
.eh-facts { max-width: 30em; margin: 0 auto; color: var(--ink-2); text-wrap: balance; }
.eh .hero-cta { margin: 16px 0 4px; }
.eh .btn { font-size: 16px; text-wrap: balance; }
.eh ~ h2 { font-size: 24px; }
.eh-list .module-card { padding: 16px 12px 8px 16px; margin: 14px 0; }
.eh-list .module-card > div { flex: 1; min-width: 0; }
.eh-list .mc-emblem { display: block; }   /* the module mark on a phone too (roadmap 1.1) */
.eh-list .mc-kicker { font-size: 13px; margin: 0; }
.eh-list .module-card h3 { font-family: var(--sans); font-size: 18px; margin: 0 0 4px; }
.eh-list .module-card ul { font-size: 16px; margin: 6px 0 4px; }
.eh-list .module-card li a { display: grid; grid-template-columns: 22px 1fr; gap: 2px 8px; padding: 10px 6px; line-height: 1.45; }
.eh-list .module-card li a .n { font-family: var(--sans); font-size: 13px; padding-top: 2px; }
.eh-list .eh-ct { display: block; font-weight: 600; color: var(--ink); }
.eh-list .eh-s { display: block; color: var(--ink-2); }
.eh-list .eh-end { grid-column: 2; display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--ink-3); white-space: nowrap; }
.eh-list .eh-end .tick, .eh-list .eh-end .sf-lock { margin: 0; }
.eh-lock-note { margin: 4px 0 0; font-family: var(--sans); font-size: 13px; color: var(--ink-3); }
.eh-lock-note .sf-lock { display: inline-block; vertical-align: -1px; margin: 0 4px 0 0; }
.eh-doc { margin-top: 28px; margin-bottom: 8px; }
.eh-links { margin-top: 0; color: var(--ink-2); }
.eh ~ .site-foot { font-size: 13px; margin-top: 48px; }
@media (max-width: 759px) {
  .eh-list .mc-emblem svg { width: 48px; height: 48px; }
  /* the cover costs a quarter of a screen: held to 300 px wide (200 tall) and with tighter leading, the button sits
     on the first 390 x 844 screen on all 13 homes — measured bottoms 777-803 px with a one-line title, 842 px with a
     two-line title and a three-line deal line. A four-line deal line would push it under the fold, so a deal line
     sets in three lines at 390. The launch bar never covers it: site.js holds the notice back until the button is
     clear of the bar (EDITION-HOME.md §3.3) */
  /* half that since the conversion audit of 19 October 2026 (F12): 150 px wide, 100 tall, so the button
     sits well inside the first screen of a smaller phone too */
  .eh-cover { max-width: 150px; margin-left: auto; margin-right: auto; margin-bottom: 8px; border-radius: 10px; }
  .eh .kicker { line-height: 1.4; }
  .eh h1 { margin: 4px 0; }
  .eh .eh-deal { line-height: 1.38; margin-bottom: 8px; }
  .eh .lede { line-height: 1.4; margin-bottom: 12px; }
  .eh-lead, .eh-outcomes, .eh-facts { line-height: 1.4; }
  .eh-outcomes { margin-bottom: 12px; }
  .eh-outcomes li { margin-bottom: 2px; }
  .eh .hero-cta { margin-top: 12px; }
}
@media (min-width: 760px) {
  /* a title page: the words left, the cover right, the outcomes and the button under both */
  .eh { text-align: left; }
  .eh-top { flex-direction: row; align-items: center; gap: 32px; margin: 0 0 20px; }
  .eh-cover { flex: 0 0 47%; margin: 0; }
  .eh-title { flex: 1 1 auto; min-width: 0; }
  .eh .eh-deal, .eh .lede, .eh-lead, .eh-outcomes, .eh-facts { margin-left: 0; margin-right: 0; }
  .eh-facts { max-width: none; text-wrap: pretty; }
  .eh .lede { margin-bottom: 0; }
  .eh .hero-cta { justify-content: flex-start; }
  .eh h1 { font-size: 44px; }
  .eh-list .module-card { padding: 20px 24px 12px; }
  .eh-list .module-card li a { grid-template-columns: 22px 1fr 84px; gap: 0 10px; }
  .eh-list .eh-end { grid-column: 3; justify-content: flex-end; align-self: start; padding-top: 2px; }
}
/* the home page's phone header has a row of its own for the menu: the whole launch label fits
   (shared/site.css hides its tail on other pages) */
@media (max-width: 640px) { .head-links a .nav-long { display: inline; } .head-links a .nav-short { display: none; } }
