/* The feature pages (pages/features/*.html; docs/mocks/site/invoices.html), after outer/bands.css: the night they open
   on (fragments/feature-page.html), then the page's chapters as bands in its part of the work (data-m on
   .feature-editorial): light bands tinted with it, one twilight band for the chapter worth a pause, the words set as
   the home page sets them and the small things on cards. */

/* ---------- the page and its bands ---------- */
.feature-editorial { --chapter-pad: clamp(72px, 9vw, 120px); }
.feature-editorial > section:not(.night-hero) { padding-block: var(--chapter-pad); }
.feature-editorial [id] { scroll-margin-top: 96px; }
.feature-editorial [data-tone="dark"] :is(.section-title, .scene h2) { color: var(--band-on-dark); }
.feature-editorial [data-tone="dark"] :is(.credit-note, .scene > div > p:not(.kicker), .scene-copy > p:not(.kicker)) { color: var(--band-on-dark-soft); }
.feature-editorial [data-tone="dark"] :is(.credit-note, .scene) a:not(.btn) { color: var(--band-on-dark); text-decoration-color: color-mix(in srgb, var(--inv-strong) 40%, transparent); }
.feature-editorial [data-tone="dark"] :is(.credit-note, .scene > div > p, .scene-copy > p) strong { color: var(--band-on-dark); }

/* ---------- a chapter's head: its kicker, its title in the display serif, one line ---------- */
.feature-editorial :is(.section-title, .scene h2) { margin-top: var(--space-4); font-family: var(--font-display); font-weight: var(--font-display-weight); font-size: clamp(36px, 4.2vw, 58px); line-height: 1.04; letter-spacing: -.035em; color: var(--ink); text-wrap: balance; }
.feature-editorial .credit-note { max-width: 62ch; margin-top: var(--space-5); font-size: var(--fs-md); line-height: 1.65; color: var(--text); }
.feature-editorial a { text-underline-offset: 4px; }
.feature-editorial :is(.credit-note, .guide-link) a, .feature-editorial .guide-link { display: inline-flex; align-items: center; gap: var(--icon-gap-sm); }
.feature-editorial .feature-spot { margin-top: clamp(32px, 4vw, 52px); }

/* ---------- the screens ---------- */
.feature-editorial figure { margin: 0; }
.feature-editorial :where(figure) :where(img, video) { display: block; width: 100%; height: auto; max-width: 100%; object-fit: contain; }
.feature-editorial :where(figure) figcaption { padding: 12px 16px; font-size: var(--fs-sm); color: var(--caption); }
/* a stage on a light chapter is glass over its bloom; the screen stands off it */
.feature-editorial .spotlight { box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--ink) 6%, transparent), 0 40px 80px -60px rgba(var(--shadow-rgb), .45); }
.feature-editorial .spotlight .spotlight__shot { border-radius: var(--r-lg); }
.feature-editorial .screen-focus > .site-image-link { position: absolute; inset: 0; }
.feature-editorial .screen-focus > .site-image-link:focus-visible { outline-offset: calc(-1 * var(--space-1)); }

/* ---------- the way it goes: three steps on cards, each numbered in the page's color ---------- */
.feature-editorial .sequence { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-4); margin: 0; padding: 0; list-style: none; }
.feature-editorial :is(.sequence li, .details article, .billing-option, .handoff-flow) {
  border-radius: var(--r-xl); background: var(--bg-panel); box-shadow: 0 0 0 1px var(--line), 0 24px 50px -36px rgba(var(--shadow-rgb), .32);
}
.feature-editorial .sequence li { padding: var(--space-7) var(--space-7) var(--space-8); }
.feature-editorial .num { font-size: var(--fs-xs); font-weight: 600; letter-spacing: .1em; color: var(--m); }
.feature-editorial .sequence :is(h2, h3) { margin-top: var(--space-3); font-family: var(--font-display); font-weight: var(--font-display-weight); font-size: clamp(24px, 2.2vw, 30px); line-height: 1.12; letter-spacing: -.025em; color: var(--ink); }
.feature-editorial .sequence p:not(.num) { margin-top: var(--space-3); font-size: var(--fs-body); line-height: 1.65; color: var(--text); }

/* ---------- the small things: a card each, marked in the page's color ---------- */
.feature-editorial .details { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-4); margin-top: clamp(32px, 4vw, 48px); }
/* two or four run two abreast, never three and one */
.feature-editorial .details:is(:has(> :nth-child(2):last-child), :has(> :nth-child(4):last-child)) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.feature-editorial .details article { padding: var(--space-6) var(--space-6) var(--space-7); }
.feature-editorial .details article::before { content: ""; display: block; width: 28px; height: 3px; margin-bottom: var(--space-5); border-radius: var(--r-hair); background: var(--m); }
.feature-editorial :is(.details, .billing-option, .scene, .handoff-flow) h3 { font-size: var(--fs-md); font-weight: 600; line-height: 1.3; letter-spacing: -.015em; color: var(--ink); }
.feature-editorial .details p { margin-top: var(--space-2); font-size: var(--fs-sm); line-height: 1.65; color: var(--text); }

/* ---------- a scene: the words beside the screen ---------- */
.feature-editorial .scene { display: grid; grid-template-columns: minmax(0, .75fr) minmax(0, 1.25fr); align-items: center; gap: clamp(32px, 5vw, 72px); }
.feature-editorial .scene--flip { grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); }
/* beside its screen, a scene's title one step down from a chapter's; across the page (--wide), a chapter's own */
.feature-editorial .scene:not(.scene--wide) h2 { font-size: clamp(30px, 3vw, 44px); line-height: 1.08; }
.feature-editorial .scene > div > p:not(.kicker), .feature-editorial .scene-copy > p:not(.kicker) { margin-top: var(--space-5); font-size: var(--fs-md); line-height: 1.65; color: var(--text); }
.feature-editorial .scene > div > p:not(.kicker) + p { margin-top: var(--space-3); }
.feature-editorial .scene figure:not(.spotlight) { padding: var(--space-3); border-radius: var(--r-xl); background: var(--paper); }
.feature-editorial .scene img:not(.spotlight__shot) { max-width: var(--capture-width, 100%); margin-inline: auto; }
.feature-editorial .reminder-invoice-story { align-items: start; }
/* a screen that needs the whole width: the words above it */
.feature-editorial .scene--wide { grid-template-columns: minmax(0, 1fr); gap: var(--space-8); }
.feature-editorial .scene--wide > div:first-child { max-width: 760px; }

/* ---------- choices side by side ---------- */
.feature-editorial .billing-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-4); margin-top: clamp(32px, 4vw, 48px); }
.feature-editorial .billing-options--three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.feature-editorial .billing-option { padding: var(--space-8); }
.feature-editorial .billing-option h3 { font-family: var(--font-display); font-weight: var(--font-display-weight); font-size: clamp(24px, 2.2vw, 30px); line-height: 1.12; letter-spacing: -.025em; }
.feature-editorial .billing-option > p { margin-top: var(--space-4); line-height: 1.7; color: var(--text); }
.feature-editorial .agreement-example { margin-top: var(--space-5); padding: var(--space-5); border-radius: var(--r-lg); background: color-mix(in srgb, var(--m) 6%, var(--paper)); }
.feature-editorial .agreement-example > span { font-size: var(--fs-xs); color: var(--caption); }
.feature-editorial .agreement-example strong { display: block; margin-top: var(--space-2); font-size: var(--fs-md); font-weight: 500; }
.feature-editorial .agreement-example p { margin-top: var(--space-2); font-size: var(--fs-sm); color: var(--text-muted); }
.feature-editorial .billing-comparison { margin-top: var(--space-6); }
.feature-editorial .billing-comparison table { width: 100%; border-collapse: collapse; table-layout: fixed; text-align: left; font-size: var(--fs-sm); }
.feature-editorial .billing-comparison tbody tr { display: grid; grid-template-columns: 1fr 1fr; column-gap: 48px; padding-block: 14px; border-top: 1px solid var(--line); }
.feature-editorial .billing-comparison tbody th { grid-column: 1 / -1; padding-bottom: 6px; font-size: var(--fs-xs); font-weight: 400; color: var(--caption); }
.feature-editorial .billing-comparison td { line-height: 1.65; color: var(--text-muted); }
.feature-editorial .comparison-links { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; padding-top: 22px; border-top: 1px solid var(--line); }
.feature-editorial .comparison-links a { display: inline-flex; align-items: center; gap: var(--icon-gap-sm); justify-self: start; white-space: nowrap; font-size: var(--fs-sm); }
/* a worked example on a card */
.feature-editorial .handoff-flow { margin-top: var(--space-6); padding: var(--space-7); }

/* ---------- good to know (fragments/site-feature-questions.html) ---------- */
.feature-editorial .questions { max-width: var(--site-max); }
.feature-editorial .questions-heading { display: flex; align-items: baseline; justify-content: space-between; gap: var(--space-6); margin-bottom: var(--space-6); }
.feature-editorial .questions .section-title { margin: 0; }
.feature-editorial .faq { max-width: none; border-top: 0; border-radius: var(--r-xl); background: var(--bg-panel); box-shadow: 0 0 0 1px var(--line); padding-inline: var(--space-7); }
.feature-editorial .faq summary { padding: 22px 0; gap: var(--space-6); font-size: var(--fs-md); font-weight: 600; }
.feature-editorial .faq details:last-child { border-bottom: 0; }
.feature-editorial .faq__answer { max-width: 70ch; padding-bottom: var(--space-6); line-height: 1.75; color: var(--text); }
.feature-editorial .guide-link { white-space: nowrap; font-size: var(--fs-sm); font-weight: 600; color: var(--ink); text-decoration-color: var(--line); }
.feature-editorial .guide-link:hover { text-decoration-color: var(--m); }
.feature-editorial .guide-link .bg-icon { color: var(--m); }

/* ---------- the close: on the pages that end on a way in, the opening's night again, its white button ---------- */
.feature-editorial .feature-close { text-align: center; }
.feature-editorial .feature-close .section-title { margin-inline: auto; max-width: 16em; font-size: clamp(40px, 4.8vw, 66px); }
.feature-editorial .feature-close .page-head__cta { justify-content: center; margin-top: var(--space-7); }
.feature-editorial [data-tone="dark"] .page-head__cta .btn--primary { background: var(--bg-panel); color: var(--ink); }
.feature-editorial [data-tone="dark"] .page-head__cta .btn--primary:hover { background: var(--site-accent-inv); }
.feature-editorial [data-tone="dark"] .page-head__link { color: var(--band-on-dark); }
.feature-editorial [data-tone="dark"] .page-head__link .bg-icon { color: var(--site-accent-inv); }
.feature-editorial [data-tone="dark"] :is(.page-head__meta, .page-head__meta a) { color: var(--band-on-dark-soft); }
/* the first chapter after the opening sits close under its screen */
.feature-editorial .night-hero + section { padding-top: clamp(48px, 6vw, 80px); }

@media (max-width: 900px) {
  .feature-editorial :is(.sequence, .billing-options--three) { grid-template-columns: minmax(0, 1fr); }
  .feature-editorial .details { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .feature-editorial :is(.scene, .scene--flip) { grid-template-columns: minmax(0, 1fr); gap: var(--space-7); }
}
@media (max-width: 760px) {
  .feature-editorial { --chapter-pad: 64px; }
  .feature-editorial :is(.section-title, .scene h2) { font-size: 36px; }
  .feature-editorial :is(.billing-option, .sequence li) { padding: var(--space-6); }
  .feature-editorial .billing-option h3 { font-size: 24px; }
  .feature-editorial .billing-comparison tbody tr { column-gap: var(--space-4); }
  .feature-editorial .handoff-flow { padding: var(--space-5); }
  .feature-editorial .agreement-example { padding: var(--space-3); }
  .feature-editorial .comparison-links a { font-size: var(--fs-xs); }
  .feature-editorial .faq { padding-inline: var(--space-5); }
  .feature-editorial .questions-heading { flex-direction: column; gap: var(--space-3); }
}
@media (max-width: 600px) {
}

/* ---------- Contracts (features/contracts): the agreement written, sent and signed ---------- */
.contracts-story .contracts-story__create { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: var(--space-8); }
.contracts-story__guide { display: flex; align-items: center; justify-content: space-between; gap: var(--space-8); }
.contracts-story__guide > div { max-width: 620px; }
.contracts-story__guide p:not(.kicker) { margin-top: var(--space-4); color: var(--text); line-height: 1.7; }
.contracts-story__guide > a { flex-shrink: 0; }
@media (max-width: 760px) {
    .contracts-story .contracts-story__create { grid-template-columns: minmax(0, 1fr); }
    .contracts-story__guide { flex-direction: column; align-items: flex-start; }
}

/* ---------- QuickBooks (features/quickbooks): one invoice, step by step ---------- */
.feature-editorial .qbo-example__steps {
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:var(--space-8);
    margin:var(--space-8) 0 0;
    padding:0;
    list-style:none;
}
.feature-editorial .qbo-example__steps > li {
    border-top:1px solid var(--line);
    padding-top:var(--space-6);
}
.feature-editorial .qbo-example__steps h3 {
    margin-top:var(--space-3);
    font-size:var(--fs-xl);
}
.feature-editorial .qbo-example__steps p {
    margin-top:var(--space-4);
    font-size:var(--fs-sm);
    color:var(--text-muted);
    line-height:1.75;
}
.feature-editorial .qbo-example__lines {
    margin:var(--space-5) 0 0;
}
.feature-editorial .qbo-example__lines > div {
    display:flex;
    align-items:baseline;
    justify-content:space-between;
    gap:var(--space-4);
    padding-block:var(--space-2);
}
.feature-editorial .qbo-example__lines dt {
    min-width:0;
    font-size:var(--fs-sm);
    font-weight:400;
}
.feature-editorial .qbo-example__lines small {
    display:block;
    margin-top:var(--space-1);
    color:var(--caption);
    font-size:var(--fs-xs);
}
.feature-editorial .qbo-example__lines dd {
    flex-shrink:0;
    margin:0;
    font-size:var(--fs-md);
    font-variant-numeric:tabular-nums;
}
.feature-editorial .qbo-example__total {
    border-top:1px solid var(--line);
    margin-top:var(--space-2);
}
.feature-editorial .qbo-example > .guide-link {
    margin-top:var(--space-4);
}
@media(max-width:760px) {
    .feature-editorial .qbo-example__steps {
        grid-template-columns:minmax(0,1fr);
    }
}

/* Add it to ChatGPT (features/ai-assistants): the steps beside real captures of ChatGPT's own screens. */
.addgpt { scroll-margin-top:88px; }
.addgpt__open { display:flex; flex-wrap:wrap; align-items:center; gap:12px 20px; margin-top:18px; }
.addgpt__steps { display:grid; gap:56px; margin:44px 0 0; padding:0; list-style:none; }
.addgpt__step { display:grid; grid-template-columns:minmax(0,5fr) minmax(0,7fr); gap:48px; align-items:center; }
.addgpt__step h3 { margin:0 0 8px; font-size:22px; }
.addgpt__step > div:first-child > p { margin:0; color:var(--text-muted); line-height:1.65; }
.addgpt__shot { margin:0; overflow:hidden; border:1px solid var(--border); border-radius:var(--r-lg); background:var(--bg-panel); box-shadow:var(--shadow-raise); }
.addgpt__shot img { display:block; width:100%; height:auto; }
@media (max-width:760px) {
    .addgpt__step { grid-template-columns:minmax(0,1fr); gap:16px; }
    .addgpt__steps { gap:40px; }
}

/* One real morning (pages/features/ai-assistants.html): the words beside the conversation (css/outer/agent-chat.css),
   staying put while it plays; above it on a phone. */
.morning { display:grid; grid-template-columns:minmax(0,.8fr) minmax(0,1.2fr); gap:48px; align-items:start; margin-top:56px; }
.morning__text { position:sticky; top:96px; }
.morning__text h2 { margin:0 0 14px; font-family:var(--font-display); font-weight:var(--font-display-weight); font-size:clamp(28px,3.4vw,40px); line-height:1.1; color:var(--ink); }
.morning__text p { color:var(--text-muted); }
.morning__steps { margin:22px 0 0; padding:0; list-style:none; }
.morning__steps li { padding:10px 0; border-top:1px solid var(--border-soft); color:var(--text); }
@media (max-width:900px) {
    .morning { grid-template-columns:minmax(0,1fr); gap:24px; }
    .morning__text { position:static; }
}

/* ---------- the way on (fragments/feature-page.html :: related): three related pages on cards, then the directory ---------- */
.feature-editorial .feature-next .detail-grid { margin-top: clamp(32px, 4vw, 48px); }
.feature-editorial .feature-next .guide-link { margin-top: var(--space-6); }
