/* The front page: direction A, conversation first (docs/design/mockups/sales-agent-a.html).
   House style: IM Fell for headings only, Atkinson Hyperlegible Next for everything else, one surface
   tone for panels, no uppercase or letterspacing, no shadows at rest, flat fills. */
:root {
  --bg: #f8f6f4; --surface: #fdfcfb; --ink: #181513; --ink-2: #45403c; --ink-3: #66625f; --rule: #dedcd9; --grid: #ebe8e5;
  --c1: #0072B2; --c2: #D55E00; --c3: #65294f; --cn: #8f8a85; --note: #9a5173;
  --f-display: "IM Fell English", Georgia, serif;
  --f-body: "Atkinson Hyperlegible Next", system-ui, -apple-system, "Segoe UI", sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) { color-scheme: dark;
    --bg: #1b1917; --surface: #262321; --ink: #f1ece8; --ink-2: #cfc7c1; --ink-3: #a39b94; --rule: #3d3835; --grid: #322e2b;
    --c1: #56B4E9; --c2: #E69F00; --c3: #915b8f; --cn: #8a827c; --note: #c279a6; }
}
:root[data-theme="dark"] { color-scheme: dark;
  --bg: #1b1917; --surface: #262321; --ink: #f1ece8; --ink-2: #cfc7c1; --ink-3: #a39b94; --rule: #3d3835; --grid: #322e2b;
  --c1: #56B4E9; --c2: #E69F00; --c3: #915b8f; --cn: #8a827c; --note: #c279a6; }

* { box-sizing: border-box; }
html { scroll-padding-top: 16px; }
body { margin: 0; background: var(--bg); color: var(--ink);
  font: clamp(1.0625rem, 1rem + .25vw, 1.125rem)/1.6 var(--f-body); font-variant-numeric: lining-nums;
  -webkit-font-smoothing: antialiased; padding-inline: var(--space-gutter, 16px); padding-block: 20px 0; }
a { color: inherit; }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible { outline: 2px solid var(--color-mark); outline-offset: 3px; }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
[hidden] { display: none !important; }

.wrap { max-width: 1120px; margin: 0 auto; display: grid; grid-template-columns: minmax(0, 1fr); gap: 0; }
.wrap > *, main > * { min-width: 0; }

/* Navigation: wordmark, three plain links, the phone number. */
.bar { display: flex; align-items: center; gap: 6px 22px; font: 500 15px/1.4 var(--f-body); color: var(--ink-2); flex-wrap: wrap; padding-bottom: 8px; }
.bar a { text-decoration: none; }
.bar a:hover { text-decoration: underline; }
.bar .home { display: inline-flex; align-items: center; gap: 12px; color: var(--ink); }
.bar .mark { display: block; flex: none; width: 44px; height: 44px; background-color: var(--color-mark);
  -webkit-mask: url(/dives/assets/mark-04c.png) center/contain no-repeat; mask: url(/dives/assets/mark-04c.png) center/contain no-repeat; }
.bar .sp { flex: 1; }
.bar .pages { display: flex; flex-wrap: wrap; gap: 6px 22px; }

/* The first screen: the title, then the conversation. */
/* The first screen is the conversation and nothing else: the footer starts below it. */
.agent { align-content: start; } /* turns take the height of their words; a screen-tall turn pushed the earlier exchange off a phone (24 Oct) */
.agent { padding-top: clamp(16px, 4vw, 48px); display: grid; grid-template-columns: minmax(0, 1fr); gap: 0 56px; }
.agent > * { min-width: 0; }
.convo { max-width: 780px; }
.lede { max-width: 900px; }
@media (min-width: 1080px) {
  .agent { grid-template-columns: minmax(0, 760px) minmax(280px, 1fr); }
  .lede { grid-column: 1 / -1; }
  .sheet { position: sticky; top: 20px; align-self: start; }
}
/* The live sheet: the spec's parts, filled as the agent records them. */
.sheet { background: var(--surface); border-radius: 6px; padding: 20px 22px 22px; }
.sheet h2 { font-size: 1.75rem; margin: 0 0 4px; }
.sheet .small { margin: 0 0 14px; }
.parts { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; counter-reset: none; }
.parts li { display: grid; grid-template-columns: 18px minmax(0, 1fr); gap: 0 10px; font-size: 15px; line-height: 1.4; }
.parts li::before { content: ""; width: 12px; height: 12px; margin-top: 4px; border-radius: 50%; border: 1.5px solid var(--ink-3); grid-row: 1 / span 2; }
.parts li.done::before { background: var(--color-mark); border-color: var(--color-mark); }
.parts .part { color: var(--ink); font-weight: 500; }
.parts .val { color: var(--ink-2); font-size: 13px; grid-column: 2; overflow-wrap: anywhere; }
.parts .val:empty { display: none; }
h1 { font: 400 clamp(2.5rem, 1.6rem + 3.6vw, 4.6rem)/1 var(--f-display); margin: 0; text-wrap: balance; letter-spacing: 0; }
.lede { margin-bottom: clamp(20px, 3vw, 32px); }
.lede .service { margin: 14px 0 0; max-width: 48ch; color: var(--ink-2); }
h2 { font: 400 clamp(2rem, 1.4rem + 2vw, 3rem)/1.05 var(--f-display); margin: 0 0 12px; text-wrap: balance; }
h3 { font: 600 18px/1.35 var(--f-body); margin: 0 0 6px; }
h4 { font: 400 1.75rem/1.15 var(--f-display); margin: 0 0 8px; text-wrap: balance; }
h4 a, h3 a { text-decoration: none; }
h4 a:hover, h3 a:hover { text-decoration: underline; }
.small { font-size: 15px; line-height: 1.5; color: var(--ink-2); }
.muted { color: var(--ink-3); }
.fine { font: 13px/1.45 var(--f-body); color: var(--ink-3); margin: 6px 0 0; max-width: 80ch; }

/* The transcript: an interview, not chat bubbles. */
.transcript { display: grid; gap: 0; margin: 0; padding: 0; list-style: none; }
.turn { display: grid; grid-template-columns: 5rem minmax(0, 1fr); gap: 4px 20px; padding: 16px 0; }
.turn.you { background: var(--surface); border-radius: 6px; padding: 14px 18px; margin-block: 6px; }
.turn > * { min-width: 0; }
.who { font: 500 15px/1.6 var(--f-body); color: var(--ink-3); }
.turn.you .say { color: var(--ink); font-weight: 500; white-space: pre-wrap; }
.say p { margin: 0 0 10px; max-width: 64ch; }
.say p:last-child { margin-bottom: 0; }
.say .ask { font-weight: 500; color: var(--ink); }
.say > * + * { margin-top: 14px; }
.meta { font: 13px/1.5 var(--f-body); color: var(--ink-3); font-variant-numeric: tabular-nums lining-nums; display: flex; flex-wrap: wrap; gap: 2px 14px; margin-top: 10px; }
.working { color: var(--ink-3); font-size: 15px; }
.say .streaming { white-space: pre-wrap; }
.working::after { content: ""; display: inline-block; width: 1.2em; text-align: left; animation: dots 1.4s steps(4) infinite; }
@keyframes dots { 0% { content: ""; } 25% { content: "."; } 50% { content: ".."; } 75% { content: "..."; } }
@media (prefers-reduced-motion: reduce) { .working::after { animation: none; content: "..."; } }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.chip { font: 500 15px/1.3 var(--f-body); background: none; border: 1px solid var(--ink-3); /* taste-skill-ignore: a pill control, not a box */ border-radius: var(--radius-control, 999px);
  color: var(--ink); padding: 9px 15px; min-height: 42px; cursor: pointer; text-align: left; transition: background-color .15s ease-out, color .15s ease-out; }
.chip:hover { background: var(--surface); }
.chip[aria-pressed="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.resting { background: var(--surface); border-radius: 6px; padding: 14px 18px; color: var(--ink-2); max-width: 64ch; }

/* Blocks the agent renders. One frame: surface tone. */
.block { margin: 0; background: var(--surface); border-radius: 6px; padding: 18px; }
.block > h3:first-child { margin-top: 0; }
.kind { font: 500 13px/1.4 var(--f-body); color: var(--note); margin: 0 0 6px; }
figcaption, .cap { font-size: 15px; line-height: 1.5; color: var(--ink-2); margin-top: 12px; max-width: 80ch; }
.block img { display: block; width: 100%; height: auto; border-radius: 3px; }
.chart svg { display: block; width: 100%; max-width: 560px; height: auto; overflow: visible; }
.chart svg text { font: 13px var(--f-body); fill: var(--ink-2); font-variant-numeric: tabular-nums lining-nums; }
.chart svg text.lab { font: 500 13.5px var(--f-body); }
.legend { display: flex; flex-wrap: wrap; gap: 4px 16px; font-size: 15px; color: var(--ink-2); margin: 4px 0 8px; }
.legend i { display: inline-block; width: 18px; height: 0; border-top: 2.5px solid; vertical-align: middle; margin-right: 6px; }
.tblwrap { overflow-x: auto; margin-top: 10px; }
table { border-collapse: collapse; font: 15px/1.4 var(--f-body); font-variant-numeric: tabular-nums lining-nums; width: 100%; }
th, td { padding: 6px 8px; text-align: left; border-bottom: 1px solid var(--grid); vertical-align: top; }
thead th { font-weight: 600; color: var(--ink-2); }

/* Tier card and the pricing section share these. */
.tiers { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); gap: 12px; margin: 14px 0; }
.price .tiers { grid-template-columns: repeat(auto-fit, minmax(min(100%, 190px), 1fr)); }
.price .tier dl { grid-template-columns: 1fr; gap: 0; }
.price .tier dd { text-align: left; margin-bottom: 4px; }
.tier { background: var(--bg); border-radius: 6px; padding: 14px 16px; }
.section .tier { background: var(--surface); }
.tier.rec { outline: 2px solid var(--color-mark); outline-offset: -2px; }
.tier h3 { margin: 0; }
.tier .fits { margin: 2px 0 10px; font-size: 15px; color: var(--ink-2); line-height: 1.45; }
.tier dl { display: grid; grid-template-columns: auto 1fr; gap: 2px 12px; margin: 0 0 10px; font-size: 15px; font-variant-numeric: tabular-nums; }
.tier dt { color: var(--ink-3); }
.tier dd { margin: 0; text-align: right; font-weight: 600; color: var(--ink); }
.tier ul, .incl ul { margin: 0; padding-left: 18px; font-size: 15px; color: var(--ink-2); display: grid; gap: 3px; }
.incl { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 12px 28px; margin: 6px 0 12px; }
.incl h3 { font-size: 15px; }
.terms { display: grid; grid-template-columns: minmax(0, 11rem) minmax(0, 1fr); gap: 6px 16px; margin: 12px 0 0; font-size: 15px; }
.terms dt { color: var(--ink); font-weight: 600; }
.terms dd { margin: 0; color: var(--ink-2); }
.lead-price b { color: var(--ink); font-weight: 600; font-variant-numeric: tabular-nums; }
.pilot { background: var(--bg); border-radius: 6px; padding: 12px 16px; margin-top: 12px; }

/* Spec card: the one page the visitor leaves with. */
.spec h3 { font: 400 1.75rem/1.2 var(--f-display); margin: 0 0 4px; }
.spec .draft { font-size: 15px; color: var(--note); margin: 0 0 12px; }
.spec dl { display: grid; grid-template-columns: minmax(0, 12rem) minmax(0, 1fr); gap: 8px 16px; margin: 0; font-size: 15px; }
.spec dt { color: var(--ink-3); }
.spec dd { margin: 0; color: var(--ink); }
.spec dd ul { margin: 0; padding-left: 18px; display: grid; gap: 2px; }
.spec .quote { margin-top: 14px; background: var(--bg); border-radius: 4px; padding: 10px 12px; font-size: 15px; }
.spec textarea { width: 100%; min-height: 22rem; font: 15px/1.5 var(--f-body); color: var(--ink); background: var(--bg); border: 1px solid var(--ink-3); border-radius: 4px; padding: 10px; }
.spec .edited { white-space: pre-wrap; overflow-wrap: anywhere; font-size: 15px; line-height: 1.55; color: var(--ink); }
.spec .terms { margin-top: 14px; }
.contact .recipient { margin: 12px 0 0; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; align-items: center; }

/* Buttons: flat, one fill, fully round. */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 10px 20px; border-radius: var(--radius-control, 999px);
  background: var(--color-mark); color: var(--bg); font: 600 15px/1.3 var(--f-body); text-decoration: none; border: 0; cursor: pointer;
  transition: transform .15s ease-out, opacity .15s ease-out; }
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(1px); }
.btn[disabled] { opacity: .55; cursor: default; transform: none; }
.btn.ghost { background: none; color: var(--ink); border: 1px solid var(--ink-3); }
.cta-note { font-size: 13px; color: var(--ink-3); flex-basis: 100%; margin: 0; }

/* Proof block. */
.proof { display: grid; grid-template-columns: minmax(0, 220px) minmax(0, 1fr); gap: 16px; align-items: start; }
.proof.noimg { grid-template-columns: minmax(0, 1fr); }
.proof img { aspect-ratio: 16 / 10; object-fit: cover; }
.proof ul { margin: 6px 0 0; padding-left: 18px; display: grid; gap: 3px; font-size: 15px; color: var(--ink-2); }
.proof p { margin: 0 0 6px; }

/* Contact form: an editable summary first, then a way to reply. */
.contact label { display: grid; gap: 4px; font-size: 15px; color: var(--ink-2); margin-top: 10px; }
.contact input, .contact textarea { font: 16px/1.4 var(--f-body); color: var(--ink); background: var(--bg); border: 1px solid var(--ink-3); border-radius: 4px; padding: 9px 10px; width: 100%; }
.contact textarea { min-height: 9rem; }
.contact .row2 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px; }
.formmsg { font-size: 15px; margin: 10px 0 0; }

/* Composer, pinned while the conversation is on screen (a real overlay). */
.dock { position: sticky; bottom: 0; z-index: 3; background: var(--bg); padding: 12px 0 14px; margin-top: 8px;
  box-shadow: 0 -10px 14px -12px rgba(0, 0, 0, .18); } /* taste-skill-ignore: the composer floats over the transcript */
.composer { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; align-items: end; }
.composer textarea { font: 16px/1.4 var(--f-body); color: var(--ink); background: var(--surface); border: 1px solid var(--ink-3); /* taste-skill-ignore: a form field */
  border-radius: 22px; padding: 11px 18px; min-height: 46px; max-height: 12rem; width: 100%; resize: none; }

/* Sections below the conversation (the data dives) and the pages for work, prices and assurance. */
.section { padding-top: clamp(56px, 8vw, 104px); }
.page > .pagehead { padding-top: clamp(16px, 4vw, 48px); }
.page > .pagehead + .section { padding-top: clamp(28px, 4vw, 48px); }
.prose { max-width: 62ch; color: var(--ink-2); margin: 0 0 14px; }
.bar a[aria-current="page"] { color: var(--ink); text-decoration: underline; text-underline-offset: 4px; }
.section > .sum { max-width: 62ch; color: var(--ink-2); margin: 0 0 24px; font-size: 20px; }
.feature { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 24px 36px; align-items: center; margin: 0 0 28px; }
.feature.plain { grid-template-columns: minmax(0, 1fr); background: var(--surface); border-radius: 6px; padding: 18px 22px; max-width: 760px; }
.feature img, .feature video { display: block; width: 100%; height: auto; border-radius: 6px; background: var(--surface); }
.feature p { margin: 0 0 10px; color: var(--ink-2); max-width: 58ch; }
.label { font-size: 15px; color: var(--note) !important; margin: 0 0 8px !important; }
.more { display: flex; flex-wrap: wrap; gap: 6px 22px; font-weight: 500; }
.dives { list-style: none; margin: 0; padding: 0; }
.dives li { display: grid; grid-template-columns: 8rem minmax(0, 1fr); gap: 8px 28px; padding-block: 36px; }
.dives li > * { min-width: 0; }
.dives .when { font-size: 15px; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.dives p { margin: 0 0 16px; color: var(--ink-2); max-width: 62ch; }
.dives figure { margin: 0; background: var(--surface); border-radius: 6px; padding: 16px; }
.dives figure img { display: block; width: 100%; height: auto; }
.assure { display: grid; grid-template-columns: minmax(0, 14rem) minmax(0, 1fr); gap: 14px 28px; margin: 0; max-width: 900px; }
.assure dt { font-weight: 600; }
.assure dd { margin: 0; color: var(--ink-2); }

/* The footer is a close, not a sitemap: the name returns at full size, then the plain lines. */
footer { margin-top: clamp(72px, 10vw, 128px); padding: 0 0 40px; font-size: 13px; color: var(--ink-3);
  display: flex; flex-wrap: wrap; gap: 6px 24px; justify-content: space-between; }
footer .close { flex-basis: 100%; margin: 0 0 18px; font: 400 clamp(2.5rem, 1.6rem + 3.6vw, 4.6rem)/1 var(--f-display); color: var(--ink); }
footer .close a { text-decoration: none; }
/* About us: who answers, one line each, from config/about.json. Agents first, the person last. */
.about { flex-basis: 100%; margin: 0 0 20px; }
.about-h { font: 600 15px/1.4 var(--f-body); color: var(--ink); margin: 0 0 8px; }
.about-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px 32px; }
.about-list li { display: grid; gap: 0; font-size: 15px; line-height: 1.45; }
.about-list .who-line { color: var(--ink); }
.about-list a { color: var(--ink-2); overflow-wrap: anywhere; }
footer .about-list li { font-size: 13px; }
footer .about-list .who-line { color: var(--ink-2); }
.about-page .about-h { font-size: 18px; }

@media (max-width: 1079px) {
  .sheet { display: none; }
}
@media (max-width: 640px) {
  .bar { gap: 6px 16px; }
  .bar .sp { display: none; }
  .bar .home { margin-right: auto; }
  .bar .pages { flex-basis: 100%; gap: 6px 18px; padding-top: 4px; }
  .turn { grid-template-columns: 1fr; gap: 2px; padding-block: 14px; }
  .turn.you { padding: 12px 14px; }
  .block { padding: 14px; }
  .proof { grid-template-columns: 1fr; }
  .spec dl, .terms, .assure { grid-template-columns: 1fr; gap: 0 0; }
  .spec dd, .terms dd, .assure dd { margin-bottom: 10px; }
  .contact .row2 { grid-template-columns: 1fr; }
  .feature { grid-template-columns: 1fr; }
  .dives li { grid-template-columns: 1fr; padding-block: 22px; }
  h4 { font-size: 1.5rem; }
  th, td { padding: 6px 4px; font-size: 13px; }
}

@media print {
  .bar, .dock, .section, footer, .turn:not(.has-spec), .chips, .actions { display: none !important; }
  .turn.has-spec .say > :not(.spec) { display: none; }
  .turn.has-spec .say > .spec:not(.printing) { display: none; }
  body { background: #fff; color: #000; }
  .block { background: none; padding: 0; }
}

/* Deb as a person in the room (Pat picked option B, desk #122, 25 Oct 2026): an avatar beside every
   Deb turn, speech bubbles for both sides, no frame. Placed last so it wins over the narrow-screen
   rules above. */
.turn { grid-template-columns: 40px minmax(0, 1fr); gap: 4px 12px; }
.turn.agent .who { font-size: 0; width: 36px; height: 36px; position: relative; }
/* Deb's avatar is the globe mark in plum (Pat, 25 Oct 2026). Overlaid, not a grid item: the hidden
   "Deb" text takes a grid row of its own. */
.turn.agent .who::after { content: ""; position: absolute; inset: 0; background-color: var(--c3);
  -webkit-mask: url(/assets/deb-avatar.png) center / contain no-repeat; mask: url(/assets/deb-avatar.png) center / contain no-repeat; }
.turn.agent .say { background: var(--surface); border: 1px solid var(--rule); border-radius: 4px 18px 18px 18px; padding: 12px 16px; max-width: 44rem; }
.turn.agent[data-turn="0"] .say::before { content: "Deb, our AI agent"; display: block; font: 600 13px/1.4 var(--f-body); color: var(--c3); margin-bottom: 4px; }
.turn.you { background: none; grid-template-columns: minmax(0, 1fr); justify-items: end; padding: 6px 0; margin: 0; }
.turn.you .who { display: none; }
.turn.you .say { background: var(--c3); color: #fff; border-radius: 18px 4px 18px 18px; padding: 10px 16px; max-width: 34rem; font-weight: 400; }
@media print { .turn.agent .who, .turn.agent .say::before { display: none; } .turn.agent .say { border: 0; padding: 0; background: none; } }

/* Pricing and services type scale (Pat, 11 Nov 2026: "all over the shop when it comes to font size").
   Five steps only, and each role has one of them:
     display  h1 / h2 / the offering titles (IM Fell)
     lede     20px  the summary under a section title and the "For when..." line under an offering
     body     18px  running text, including the term lists, the driver lists and what every tier includes
     card     15px  the contents of a tier card
     fine     13px  the footer
   Every subhead below an offering title (What moves the price, a tier name, Every tier includes,
   Not sure which fits?) is one style: 600 18px body face. Tier names are h5 under the h4 subheads. */
#pricing .offering { margin-top: 48px; }
#pricing .offering-h { font: 400 2rem/1.15 var(--f-display); margin: 0 0 6px; }
#pricing .suits { margin: 0 0 14px; font-size: 20px; font-weight: 400; color: var(--ink); max-width: 62ch; }
#pricing .offering h4, #pricing .ask-deb > h3, #pricing h5 { font: 600 18px/1.35 var(--f-body); color: var(--ink); }
#pricing .offering h4, #pricing .ask-deb > h3 { margin: 32px 0 10px; }
#pricing h5 { margin: 0 0 6px; }
#pricing .tier h5 { margin: 0; }
#pricing .ask-deb { margin-top: 8px; }
#pricing .terms, #pricing .incl ul, .assure { font-size: inherit; }
#pricing .terms { gap: 8px 28px; max-width: 900px; }
@media (min-width: 641px) { #pricing .terms { grid-template-columns: minmax(0, 14rem) minmax(0, 1fr); } }
#pricing .drivers { margin-top: 0; }
#pricing .drivers + .prose { margin-top: 14px; }
#pricing .incl ul { gap: 4px; }
#pricing .tier .fits, #pricing .tier dl, #pricing .tier ul { font-size: 15px; }
