/* /ime/ v2 (website overhaul, Nov 2026). Builds on /css/v2.css tokens and /css/traced.css components.
   Mobile first. No animation. One spacing scale: 8, 16, 24, 40, 64, 96. */

.draft-band { background: var(--warm); color: #6B3F12; font-size: 0.85rem; font-weight: 600; text-align: center; padding: 6px 16px; }

/* ---- page rhythm ---- */
.pg section { padding: var(--space-5) 0; }
.pg section[id] { scroll-margin-top: calc(80px - var(--space-5)); }  /* first line 24 px below the header (v2.css) */
@media (min-width: 980px) { .pg section { padding: var(--space-6) 0; } .pg section[id] { scroll-margin-top: calc(80px - var(--space-6)); } }
.pg section + section { border-top: 1px solid var(--line); }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 38em; }
.wrap.narrow { max-width: 1120px; }   /* a narrow page keeps the shell's edges; its text column is narrow */
.wrap.narrow > * { max-width: 38em; }
/* Two block widths on a page (audit A-02, 12 Nov 2026): the text measure, 38em of body text (722 px at 1440),
   for prose, lists and question rows; the full shell for cards and two-column blocks. */
.pg h2 { margin-bottom: var(--space-2); }
.pg .lead { color: var(--ink-mute); margin: 0 0 var(--space-3); }
.pg .eyebrow { display: block; margin-bottom: var(--space-1); }
.pg p { margin: 0 0 var(--space-2); }
.pg ul.plain { list-style: none; padding: 0; margin: 0; }
.pg .tbd { color: #6B3F12; background: var(--warm); border-radius: 6px; padding: 0 6px; font-size: 0.85em; font-weight: 600; }

/* ---- hero ---- */
.hero2 { background: linear-gradient(180deg, var(--card) 0%, var(--ground) 100%); }
.hero2 .wrap { display: grid; gap: var(--space-4); }
@media (min-width: 980px) { .hero2 .wrap { grid-template-columns: 0.85fr 1.15fr; align-items: center; gap: var(--space-5); } }
/* the eyebrow runs across the whole hero, so it stays on one line at desktop (audit A-41) */
.hero2 .wrap { row-gap: 0; }
.hero2 .wrap > .eyebrow { grid-column: 1 / -1; justify-self: start; text-wrap: balance; }
.hero2 .wrap > div:last-child { margin-top: var(--space-4); }
@media (min-width: 980px) { .hero2 .wrap > div:last-child { margin-top: 0; } }
.hero2 h1 { font-size: 2.4rem; }
@media (min-width: 980px) { .hero2 h1 { font-size: 2.8rem; } }
.hero2 .btns { display: flex; flex-wrap: wrap; gap: var(--space-2); margin: var(--space-3) 0; }
.facts { display: grid; gap: 6px; margin: 0; padding: 0; list-style: none; font-size: 0.95em; color: var(--ink-mute); }
.facts li { padding-left: 14px; position: relative; }
.facts li::before { content: ""; position: absolute; left: 0; top: 0.6em; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.hero2 .cf { box-shadow: var(--shadow-sm); }
.hero2 .cf-label { border-radius: 12px 12px 0 0; }
.hero2 .cf { border-radius: 0 0 12px 12px; }

/* ---- the full sample ---- */
.matter-facts { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--space-2); margin: 0 0 var(--space-3); padding: 0; list-style: none; }
@media (min-width: 820px) { .matter-facts { grid-template-columns: repeat(4, 1fr); } }
.matter-facts li { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-tile); padding: 12px 14px; }
/* the counts in the display serif, as in the brochure and as the prices are (Jordan, 13 Nov 2026) */
.matter-facts b { display: block; font-family: var(--font-display); font-size: 1.45em; font-weight: 500; line-height: 1.2; color: var(--accent-deep); }
.matter-facts span { font-size: 0.85em; color: var(--ink-mute); }
.verify { display: grid; gap: 6px; margin: 0 0 var(--space-3); padding: 0; list-style: none; font-size: 0.95em; }
.verify li { display: flex; gap: 10px; align-items: baseline; }
.verify b { font-family: var(--font-mono); min-width: 3ch; text-align: right; color: var(--accent-deep); }
/* the quote counts and the note on scanned pages side by side under the figure tiles, the width of the tiles
   (Jordan, 13 Nov 2026) */
@media (min-width: 980px) {
  .sample-check { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--space-4); margin: 0 0 var(--space-3); }
  .sample-check > .verify, .sample-check > p { margin: 0; }
}
.sample-panel { max-height: 70vh; overflow: auto; border: 1px solid var(--line); border-radius: 0 0 var(--r-tile) var(--r-tile); background: var(--card); padding: 0 12px; }
.sample-panel .sc-rows { margin: 0; }
.sample-cap { font-size: 0.9em; color: var(--ink-mute); margin-top: var(--space-2); }

/* ---- dated rule (how it works, sign-up steps) ---- */
.steps { list-style: none; margin: 0; padding: 0 0 0 24px; position: relative; max-width: 38em; }
.steps::before { content: ""; position: absolute; left: 7px; top: 8px; bottom: 8px; width: 1px; background: var(--accent-soft); }
.steps li { position: relative; margin: 0 0 var(--space-3); }
.steps li::before { content: ""; position: absolute; left: -21px; top: 0.5em; width: 9px; height: 9px; border-radius: 50%; background: var(--accent); }
.steps .t { font-family: var(--font-mono); font-weight: 600; color: var(--accent-deep); margin-right: 8px; }
.steps details { margin-top: 4px; }
.steps summary { cursor: pointer; color: var(--accent-deep); font-weight: 600; font-size: 0.95em; }
.steps summary:hover { color: var(--accent); }
/* the labels share one column, so every item's text starts at one x and wraps back to it (audit A-06);
   on a phone the label sits on its own line above the text */
.steps { display: grid; grid-template-columns: max-content minmax(0, 1fr); column-gap: 14px; }
.steps > li { grid-column: 1 / -1; display: grid; grid-template-columns: subgrid; align-items: baseline; }
.steps > li > .t { margin-right: 0; }
.steps > li > details { grid-column: 2; }
@media (max-width: 559px) {
  .steps:not(.cta-steps .steps), .steps:not(.cta-steps .steps) > li { display: block; }
  .steps:not(.cta-steps .steps) > li > .t { display: block; }
}
.steps details p { margin: var(--space-1) 0 0; color: var(--ink-mute); }

/* ---- never list ---- */
.never { list-style: none; margin: 0; padding: 0; max-width: 38em; }
.never li { padding: 12px 0 12px 28px; border-top: 1px solid var(--line); position: relative; }
.never li:last-child { border-bottom: 1px solid var(--line); }
.never li::before { content: ""; position: absolute; left: 6px; top: calc(12px + 0.8em); width: 10px; height: 2px; background: var(--flag); }   /* on the first line's x-height (audit A-07) */

/* ---- two columns ---- */
.cols2 { display: grid; gap: var(--space-4); }
@media (min-width: 820px) { .cols2 { grid-template-columns: 1fr 1fr; } }

/* ---- pricing ----
   Three priced plans in one row, each card in four parts (name, price, allowance line, detail) on shared rows so
   the parts start on the same lines; Practice and agencies is one full-width strip under the row (Jordan, 12 Nov
   2026). One column on a phone, the strip then a fourth card. */
.plans { display: grid; gap: var(--space-2); margin: 0 0 var(--space-3); padding: 0; list-style: none; }
.plan { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-tile); padding: var(--space-3); display: grid; gap: 6px; align-content: start; }
@media (min-width: 820px) {
  .plans { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 0; }
  .plan { grid-row: span 4; grid-template-rows: subgrid; }
  .plan--quote { grid-column: 1 / -1; grid-row: auto; grid-template-columns: subgrid; grid-template-rows: auto auto; gap: 6px var(--space-2); align-items: center; margin-top: var(--space-2); }
  .plan--quote h3, .plan--quote h2 { grid-column: 1; grid-row: 1; }
  .plan--quote .price { grid-column: 1; grid-row: 2; }
  .plan--quote p { grid-row: 1 / span 2; }
  /* the sentence starts on the same line as the Solo card's text and takes the free space up to the link,
     which sits at the right edge (audit A-08: the sentence was squeezed into one column) */
  .plan--quote p:not(:last-child) { grid-column: 2 / 4; padding-left: calc(var(--space-3) + 1px); padding-right: 10em; max-width: none; }
  .plan--quote p:last-child { grid-column: 3; justify-self: end; }
}
@media (min-width: 820px) and (max-width: 979px) { .plan { padding: var(--space-2); } .plan--quote p:not(:last-child) { padding-left: calc(var(--space-2) + 1px); }
  /* too narrow for the sentence and the link on one row: the link goes under the sentence, which takes both columns
     (Jordan, 13 Nov 2026: card text uses the card's width) */
  .plan--quote p:not(:last-child) { grid-row: 1; padding-right: 0; }
  .plan--quote p:last-child { grid-column: 2 / -1; grid-row: 2; justify-self: start; padding-left: calc(var(--space-2) + 1px); } }
.plan h3, .plan h2 { margin: 0; font-size: 1.2rem; }
/* prices as in the brochure: the display serif, with the unit in the body face (Jordan, 13 Nov 2026) */
.plan .price { font-family: var(--font-display); font-size: 1.75rem; font-weight: 500; line-height: 1.2; color: var(--accent-deep); white-space: nowrap; }
.plan .price small { font-family: var(--font-body); font-size: 0.54em; color: var(--ink-mute); font-weight: 400; }
.plan p { color: var(--ink-mute); font-size: 0.92em; margin: 0; }
.plan .plan-allow { color: var(--ink); font-weight: 600; }
.plan ul { margin: 0; padding-left: 1.1em; font-size: 0.92em; color: var(--ink-mute); }
.pricing-notes { font-size: 0.92em; color: var(--ink-mute); max-width: calc(38em / 0.92); }   /* the text measure of body text */
.pricing-notes p { max-width: none; }
/* the notes under the plans fill the width of the plan cards in two columns, as in the brochure; each line stays
   under the 38em measure (Jordan, 13 Nov 2026) */
/* Each paragraph stays whole in one column, and a single paragraph is never set in columns: the one under "How are
   pages counted?" keeps the measure (Jordan, 13 Nov 2026). */
@media (min-width: 980px) {
  div.pricing-notes { max-width: none; column-count: 2; column-gap: var(--space-4); margin-bottom: var(--space-4); }
  div.pricing-notes p { margin: 0; padding-bottom: 1em; break-inside: avoid; -webkit-column-break-inside: avoid; page-break-inside: avoid; }
  div.pricing-notes p:last-child { padding-bottom: 0; }   /* padding, not margin: WebKit carries a margin over the column break */
}
.calc ~ h2 { margin-top: var(--space-5); }   /* "How are pages counted?" opens with the gap of a section, not 24 px under the calculator (audit A-10) */

/* ---- trust facts ---- */
.tfacts { list-style: none; margin: 0 0 var(--space-3); padding: 0; display: grid; gap: var(--space-2); }
@media (min-width: 820px) { .tfacts { grid-template-columns: 1fr 1fr; } }
.tfacts li { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-tile); padding: var(--space-3); font-size: 0.92em; max-width: none; }   /* one card padding and body size with the plan cards (audit A-09) */
@media (min-width: 820px) and (max-width: 979px) { .tfacts li { padding: var(--space-2); } }
.tfacts li a { color: var(--accent-deep); }

/* ---- founder ---- */
.founder { display: grid; gap: var(--space-3); align-items: start; max-width: 76ch; }
@media (min-width: 820px) { .founder { grid-template-columns: 160px 1fr; } }
.founder-photo { width: 160px; height: 160px; border-radius: 16px; background: var(--accent-soft); display: grid; place-items: center; color: var(--ink-mute); font-size: 0.8rem; text-align: center; padding: 8px; }
.founder-sign { font-family: var(--font-display); font-size: 1.2rem; margin-top: var(--space-2); }
.founder-sign small { display: block; font-family: var(--font-body); font-size: 0.85rem; color: var(--ink-mute); }

/* ---- FAQ ---- */
.faq { max-width: 38em; }
.faq + p { margin-top: var(--space-3); }   /* the link under the list keeps a gap from the last rule (audit A-12) */
.faq details { border-top: 1px solid var(--line); padding: 12px 0; }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; font-weight: 600; color: var(--ink); list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--font-mono); color: var(--accent); }
.faq summary:hover { color: var(--accent); }   /* a question row shows it can be opened (audit A-44) */
.faq details[open] summary::after { content: "\2013"; }
.faq details p { margin: var(--space-1) 0 0; color: var(--ink-mute); }

/* ---- final CTA ---- */
.cta2 { background: var(--accent-deep); color: #fff; border-radius: var(--r-card); padding: var(--space-4) var(--space-3); text-align: center; }
.cta2 h2 { color: #fff; }
.cta2 .btns { display: flex; flex-wrap: wrap; gap: var(--space-2); justify-content: center; margin-top: var(--space-3); }
.cta2 .btn--outline { color: #fff; border-color: rgba(255, 255, 255, 0.7); }
.cta2 .btn--outline:hover { background: rgba(255, 255, 255, 0.12); }
.cta2 .note { color: rgba(255, 255, 255, 0.8); font-size: 0.92em; margin-top: var(--space-2); }
/* the heading and the note share one centred measure (Jordan, 12 Nov 2026: the note sat left in a centred block) */
.cta2 h2, .cta2 .note { max-width: 48rem; margin-inline: auto; text-wrap: balance; }   /* no one-word last line */
/* the five sign-up steps, collapsed under the final trial button (Jordan, 11 Nov 2026) */
/* the steps open as a panel, centred under the summary, its list set left inside it (Jordan, 12 Nov 2026) */
.cta-steps { max-width: 40rem; margin: var(--space-3) auto 0; text-align: center; }
.cta-steps summary { cursor: pointer; text-align: center; font-weight: 600; color: #fff; }
.cta-steps summary:focus-visible { outline: 3px solid rgba(255, 255, 255, 0.7); outline-offset: 3px; border-radius: 4px; }
.cta-steps .steps { margin: var(--space-3) 0 0; padding: var(--space-3) var(--space-3) var(--space-1) calc(var(--space-3) + 24px); text-align: left;
  background: rgba(255, 255, 255, 0.07); border-radius: var(--r-tile); max-width: none; }
.cta-steps .steps::before { background: rgba(255, 255, 255, 0.35); left: calc(var(--space-3) + 7px); top: calc(var(--space-3) + 8px); bottom: calc(var(--space-3) + 8px); }
.cta-steps .steps li { color: rgba(255, 255, 255, 0.9); }
.cta-steps .steps li::before { background: #fff; }
.cta-steps .steps .t { color: #fff; }
.who-lines { margin: 0 0 var(--space-2); padding-left: 1.1em; }
.who-lines li { margin: 0 0 var(--space-1); }

/* the v2 footer keeps the colophon styles from v2.css */

/* claims register table: never wider than the screen */
.pg .table-wrap { overflow-x: auto; max-width: 100%; }
.claims { table-layout: fixed; width: 100%; }
.claims td, .claims th { overflow-wrap: anywhere; vertical-align: top; }
.claims th:first-child { width: 62%; }
.claims-note { color: var(--ink-mute); margin: 10px 0 0; max-width: 72ch; }
.claims code { font-family: var(--font-mono); font-size: 0.8em; white-space: normal; overflow-wrap: anywhere; color: var(--ink-mute); }
@media (max-width: 560px) { .claims, .claims tbody, .claims tr, .claims td { display: block; width: 100%; } .claims thead { display: none; } .claims tr { padding: 8px 0; border-bottom: 1px solid var(--line); } .claims td { border: 0; padding: 2px 0; } }

/* founder note without a photo (until the treated photo is added) */
@media (min-width: 820px) { .founder--text { grid-template-columns: 1fr; } }

/* FAQ page: space before each group heading */
.faq h2 { margin: var(--space-5) 0 var(--space-2); }   /* the first group too: a full section gap under the links above it (audit A-12) */
/* homepage trim (11 Nov 2026): no sample rows on the homepage; the full sample is on its own page */
.sample-btns { margin-top: var(--space-3); }
/* the founder note became one line without a name; the founder is named on the About page only */
.founder-line-sec { padding-block: var(--space-4); }
.founder-line { margin: 0; color: var(--ink-mute); }
