/* Invoice follow-up by HiveMind AI - product page, v5 (2026-10-12).
   Same tokens and fonts as the company home (hivemind_home/src/home.css): ink + honey on cool paper,
   Schibsted Grotesk for words, JetBrains Mono for anything the software itself says.
   The legal / QuickBooks pages use style.css and are NOT styled from here. */

:root {
  --bg: #f5f6f8; --bg-2: #ffffff; --bg-3: #eceef2; --bg-4: #e3e6eb;
  --text: #0e1319; --text-2: #46515e; --text-3: #5f6a77;
  --line: rgba(14, 19, 25, .1); --line-2: rgba(14, 19, 25, .18);
  --honey: #f0ae2e; --honey-ink: #8f5800; --honey-soft: rgba(240, 174, 46, .16);
  --ok: #178a66; --ok-soft: rgba(23, 138, 102, .12); --fail: #c4442e; --fail-soft: rgba(212, 81, 58, .11);
  --person: #3d6fd8; --person-soft: rgba(61, 111, 216, .11);
  --ink-band: #0e1319; --on-ink: #eef1f4; --on-ink-2: #a9b4c0;
  --shadow: 0 1px 0 rgba(255, 255, 255, .7) inset, 0 24px 60px -32px rgba(14, 19, 25, .32), 0 0 0 1px var(--line);
  --sans: "Schibsted Grotesk", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", Consolas, monospace;
  --wrap: 1160px; --r: 14px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #090c11; --bg-2: #10151c; --bg-3: #161c25; --bg-4: #1c2430;
    --text: #eef1f4; --text-2: #a5b0bc; --text-3: #8b97a4;
    --line: rgba(255, 255, 255, .09); --line-2: rgba(255, 255, 255, .16);
    --honey-ink: #ffc552; --honey-soft: rgba(240, 174, 46, .14);
    --ok: #4fd1a1; --ok-soft: rgba(79, 209, 161, .12); --fail: #ff7a66; --fail-soft: rgba(255, 122, 102, .13);
    --person: #8fb4ff; --person-soft: rgba(143, 180, 255, .13);
    --ink-band: #10151c;
    --shadow: 0 1px 0 rgba(255, 255, 255, .05) inset, 0 30px 80px -30px rgba(0, 0, 0, .8), 0 0 0 1px var(--line);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #090c11; --bg-2: #10151c; --bg-3: #161c25; --bg-4: #1c2430;
  --text: #eef1f4; --text-2: #a5b0bc; --text-3: #8b97a4;
  --line: rgba(255, 255, 255, .09); --line-2: rgba(255, 255, 255, .16);
  --honey-ink: #ffc552; --honey-soft: rgba(240, 174, 46, .14);
  --ok: #4fd1a1; --ok-soft: rgba(79, 209, 161, .12); --fail: #ff7a66; --fail-soft: rgba(255, 122, 102, .13);
  --person: #8fb4ff; --person-soft: rgba(143, 180, 255, .13);
  --ink-band: #10151c;
  --shadow: 0 1px 0 rgba(255, 255, 255, .05) inset, 0 30px 80px -30px rgba(0, 0, 0, .8), 0 0 0 1px var(--line);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; background: var(--bg); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body { margin: 0; background: var(--bg); color: var(--text); overflow-x: hidden; font: 400 17px/1.6 var(--sans); -webkit-font-smoothing: antialiased; }
img, svg { display: block; }
a { color: inherit; text-underline-offset: 3px; }
h1, h2, h3 { margin: 0; letter-spacing: -.025em; line-height: 1.1; text-wrap: balance; }
p { margin: 0; }
ul, ol, dl, dd { margin: 0; padding: 0; list-style: none; }
.wrap { width: min(var(--wrap), 100% - 32px); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 50; background: var(--honey); color: #1a1203; padding: 10px 16px; border-radius: 8px; font-weight: 600; text-decoration: none; }
.skip:focus { top: 12px; }
:focus-visible { outline: 2px solid var(--honey); outline-offset: 3px; border-radius: 6px; }
section[id] { scroll-margin-top: 72px; }

/* ---- top bar ---- */
.bar { position: sticky; top: 0; z-index: 20; background: var(--bg); background: color-mix(in srgb, var(--bg) 86%, transparent); backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid transparent; transition: border-color .2s; }
.bar.scrolled { border-bottom-color: var(--line); }
.bar .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 700; font-size: 17px; letter-spacing: -.01em; white-space: nowrap; }
.brand svg { width: 24px; height: 24px; flex: none; }
.brand small { font: 500 12px/1 var(--mono); color: var(--text-2); padding: 4px 7px; border: 1px solid var(--line-2); border-radius: 6px; letter-spacing: 0; }
.bar nav { display: flex; align-items: center; gap: 2px; }
.bar nav a { text-decoration: none; color: var(--text-2); font-size: 15px; font-weight: 500; padding: 8px 10px; border-radius: 8px; }
.bar nav a:hover { color: var(--text); background: var(--bg-3); }
.bar nav a.pill { color: var(--text); border: 1px solid var(--line-2); margin-left: 6px; }
@media (max-width: 880px) { .bar nav .hide-sm { display: none; } }
@media (max-width: 400px) { .brand small { display: none; } }

/* ---- buttons ---- */
.btn { display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 12px 22px; border-radius: 11px; background: var(--honey); color: #1a1203; font-weight: 700; font-size: 16px; text-decoration: none; box-shadow: 0 1px 0 rgba(255,255,255,.45) inset, 0 10px 24px -12px rgba(240, 174, 46, .9); transition: transform .15s, box-shadow .15s; }
.btn:hover { transform: translateY(-1px); box-shadow: 0 1px 0 rgba(255,255,255,.45) inset, 0 14px 28px -12px rgba(240, 174, 46, 1); }
.btn svg { width: 18px; height: 18px; flex: none; }
.ghost { display: inline-flex; align-items: center; gap: 8px; min-height: 48px; padding: 12px 16px; border-radius: 11px; color: var(--text); font-weight: 600; text-decoration: none; }
.ghost:hover { background: var(--bg-3); }

/* ---- hero ---- */
.hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.02fr); gap: 56px; align-items: center; padding: 56px 0 80px; }
.eyebrow { display: inline-flex; align-items: center; gap: 9px; font: 500 12.5px/1.2 var(--mono); color: var(--text-2); text-transform: uppercase; letter-spacing: .06em; margin-bottom: 22px; }
.eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--honey); box-shadow: 0 0 0 4px var(--honey-soft); flex: none; }
.hero h1 { font-size: clamp(36px, 4.7vw, 58px); font-weight: 800; letter-spacing: -.035em; line-height: 1.02; margin-bottom: 22px; }
.hero h1 em { font-style: normal; color: var(--honey-ink); }
.lede { font-size: 19px; color: var(--text-2); max-width: 33em; margin-bottom: 30px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 28px; }
.cta-row + .risk { margin: -16px 0 22px; font-size: 14.5px; color: var(--text-2); }
.trust { display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: 14.5px; color: var(--text-2); }
.trust li { display: inline-flex; align-items: center; gap: 7px; }
.trust svg { width: 16px; height: 16px; color: var(--ok); flex: none; }

/* the illustration: one drafted reminder waiting for a yes, and two replies sorted */
.scene { position: relative; margin: 0; }
.draft { background: var(--bg-2); border-radius: 16px; box-shadow: var(--shadow); overflow: hidden; font-size: 15px; margin-right: 36px; }
.draft-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 10px; padding: 12px 16px; border-bottom: 1px solid var(--line); background: var(--bg-3); }
.draft-head .who { display: flex; align-items: center; gap: 10px; min-width: 0; }
.avatar { width: 30px; height: 30px; border-radius: 50%; background: var(--person-soft); color: var(--person); display: grid; place-items: center; font-weight: 700; font-size: 13px; flex: none; }
.draft-head b { font-size: 15px; }
.draft-head .meta { display: block; font: 400 12px/1.3 var(--mono); color: var(--text-3); }
.chip { display: inline-flex; align-items: center; gap: 6px; font: 500 11.5px/1 var(--mono); padding: 6px 8px; border-radius: 99px; white-space: nowrap; }
.chip.wait { background: var(--honey-soft); color: var(--honey-ink); }
.chip.ok { background: var(--ok-soft); color: var(--ok); }
.chip.person { background: var(--person-soft); color: var(--person); }
.draft-body { padding: 16px 18px 6px; }
.draft-body .subj { font-weight: 700; font-size: 16.5px; margin-bottom: 12px; letter-spacing: -.01em; }
.draft-body p { margin-bottom: 11px; color: var(--text-2); }
.fact { font-family: var(--mono); font-size: .88em; font-weight: 500; color: var(--text); background: var(--honey-soft); box-shadow: inset 0 -2px 0 var(--honey); padding: 1px 5px; border-radius: 4px; white-space: nowrap; }
.legend { display: flex; align-items: center; gap: 8px; padding: 2px 18px 14px; font: 400 12px/1.4 var(--mono); color: var(--text-3); }
.legend i { width: 14px; height: 10px; border-radius: 2px; background: var(--honey-soft); box-shadow: inset 0 -2px 0 var(--honey); flex: none; }
.draft-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; padding: 12px 16px; border-top: 1px solid var(--line); }
.draft-actions span { font-weight: 600; font-size: 14px; padding: 8px 14px; border-radius: 9px; border: 1px solid var(--line-2); }
.draft-actions .yes { background: var(--ok); border-color: var(--ok); color: #fff; }
.replies { position: relative; z-index: 1; margin: 12px 0 0 44px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.reply { background: var(--bg-2); border-radius: 12px; box-shadow: var(--shadow); padding: 12px 14px; font-size: 14px; }
.reply q { display: block; color: var(--text); margin-bottom: 8px; quotes: "\201C" "\201D"; }
.reply .row { display: flex; align-items: center; justify-content: space-between; gap: 8px; font: 400 11.5px/1.3 var(--mono); color: var(--text-3); }
.caption { margin-top: 14px; font: 400 12px/1.4 var(--mono); color: var(--text-3); }

/* ---- generic section ---- */
.sec { padding: 88px 0; }
.sec.tint { background: var(--bg-3); }
.kicker { font: 500 12.5px/1.2 var(--mono); text-transform: uppercase; letter-spacing: .07em; color: var(--honey-ink); margin-bottom: 14px; }
.sec h2 { font-size: clamp(30px, 3.8vw, 44px); font-weight: 800; letter-spacing: -.03em; margin-bottom: 16px; max-width: 20em; }
.intro { font-size: 18px; color: var(--text-2); max-width: 40em; }
.head { margin-bottom: 44px; }

/* how it works */
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; counter-reset: s; }
.step { background: var(--bg-2); border-radius: var(--r); box-shadow: var(--shadow); padding: 26px 24px 24px; }
.step::before { counter-increment: s; content: "0" counter(s); display: block; font: 500 13px/1 var(--mono); color: var(--honey-ink); margin-bottom: 18px; }
.step h3 { font-size: 21px; font-weight: 700; margin-bottom: 10px; }
.step p { color: var(--text-2); font-size: 16px; }
.step p + p { margin-top: 10px; }

.ladder { margin-top: 16px; background: var(--bg-2); border-radius: var(--r); box-shadow: var(--shadow); padding: 22px 24px 24px; }
.ladder h3 { font-size: 17px; font-weight: 700; margin-bottom: 4px; }
.ladder > p { color: var(--text-2); font-size: 15px; margin-bottom: 18px; }
.rungs { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; }
.rung { border-radius: 10px; padding: 14px 12px 13px; background: var(--bg-3); position: relative; overflow: hidden; }
.rung::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px; background: var(--honey); opacity: var(--o, .3); }
.rung b { display: block; font-size: 15px; margin-bottom: 2px; }
.rung span { display: block; font: 400 12px/1.35 var(--mono); color: var(--text-3); }
.rung:nth-child(2) { --o: .5; } .rung:nth-child(3) { --o: .75; } .rung:nth-child(4) { --o: 1; } .rung:nth-child(5) { --o: .35; }

/* replies */
.sort { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; }
.col { background: var(--bg-2); border-radius: var(--r); box-shadow: var(--shadow); padding: 24px; }
.col h3 { display: flex; align-items: center; gap: 10px; font-size: 19px; font-weight: 700; margin-bottom: 8px; }
.col h3 .ic { width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center; flex: none; }
.col h3 .ic svg { width: 17px; height: 17px; }
.col.auto h3 .ic { background: var(--ok-soft); color: var(--ok); }
.col.held h3 .ic { background: var(--person-soft); color: var(--person); }
.col > p { color: var(--text-2); font-size: 15px; margin-bottom: 14px; }
.col li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 12px; align-items: baseline; padding: 12px 0; border-top: 1px solid var(--line); font-size: 15.5px; }
.col li q { color: var(--text); quotes: "\201C" "\201D"; }
.col li span { font: 400 12px/1.3 var(--mono); color: var(--text-3); text-align: right; }
.after { margin-top: 18px; color: var(--text-2); font-size: 15px; max-width: 52em; }

/* the never list - dark band */
.never { background: var(--ink-band); color: var(--on-ink); }
.never .kicker { color: var(--honey); }
.never .intro { color: var(--on-ink-2); }
.rules { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: rgba(255, 255, 255, .1); border-radius: var(--r); overflow: hidden; border: 1px solid rgba(255, 255, 255, .1); }
.rules > div { background: var(--ink-band); padding: 24px 24px 26px; }
.rules dt { display: flex; align-items: flex-start; gap: 11px; font-weight: 700; font-size: 17.5px; line-height: 1.3; margin-bottom: 8px; color: var(--on-ink); }
.rules dt svg { width: 20px; height: 20px; color: var(--honey); flex: none; margin-top: 1px; }
.rules dd { color: var(--on-ink-2); font-size: 15.5px; padding-left: 31px; }
.never .fine { margin-top: 22px; color: var(--on-ink-2); font-size: 14.5px; max-width: 52em; }

/* assistant */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; align-items: center; }
.ticks { margin-top: 22px; }
.ticks li { display: flex; gap: 11px; padding: 8px 0; color: var(--text-2); font-size: 16px; }
.ticks li b { color: var(--text); }
.ticks svg { width: 18px; height: 18px; color: var(--ok); flex: none; margin-top: 4px; }
.chat { background: var(--bg-2); border-radius: 16px; box-shadow: var(--shadow); padding: 18px; display: grid; gap: 10px; font-size: 15px; }
.ask { justify-self: end; max-width: 85%; background: var(--honey-soft); padding: 10px 14px; border-radius: 14px 14px 4px 14px; }
.ans { max-width: 92%; background: var(--bg-3); padding: 12px 14px; border-radius: 14px 14px 14px 4px; color: var(--text); }
.ans small { display: block; margin-top: 8px; font: 400 11.5px/1.3 var(--mono); color: var(--text-3); }
.chat .caption { margin: 2px 2px 0; }

/* quickbooks */
.qb { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 16px; }
.card { background: var(--bg-2); border-radius: var(--r); box-shadow: var(--shadow); padding: 24px; }
.card h3 { font-size: 18px; font-weight: 700; margin-bottom: 12px; }
.card p { color: var(--text-2); font-size: 15.5px; }
.card p + p { margin-top: 10px; }
.reads li { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-top: 1px solid var(--line); font-size: 15.5px; }
.reads li span:last-child { font: 400 12.5px/1.7 var(--mono); color: var(--text-3); text-align: right; }
.card .links { margin-top: 16px; display: flex; flex-wrap: wrap; gap: 6px 18px; font-weight: 600; font-size: 15px; }

/* faq */
.faq { max-width: 820px; }
.faq details { border-top: 1px solid var(--line-2); }
.faq details:last-child { border-bottom: 1px solid var(--line-2); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 20px 2px; font-weight: 600; font-size: 18px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; width: 9px; height: 9px; border-right: 2px solid var(--text-3); border-bottom: 2px solid var(--text-3); transform: rotate(45deg) translateY(-3px); transition: transform .2s; flex: none; margin-right: 6px; }
.faq details[open] summary::after { transform: rotate(-135deg) translateY(-2px); }
.faq details > div { padding: 0 2px 22px; color: var(--text-2); max-width: 44em; }
.faq details > div p + p { margin-top: 10px; }

/* closing cta */
.close { padding: 8px 0 96px; }
.close-card { position: relative; overflow: hidden; background: var(--ink-band); color: var(--on-ink); border-radius: 22px; padding: 52px 48px; display: grid; grid-template-columns: minmax(0, 1.3fr) auto; gap: 32px; align-items: center; border: 1px solid var(--line); }
.close-card::after { content: ""; position: absolute; right: -60px; top: -80px; width: 320px; height: 320px; background: radial-gradient(closest-side, rgba(240, 174, 46, .26), transparent); pointer-events: none; }
.close-card .kicker { color: var(--honey); }
.close-card h2 { font-size: clamp(28px, 3.4vw, 40px); font-weight: 800; letter-spacing: -.03em; margin-bottom: 14px; }
.close-card p { color: var(--on-ink-2); max-width: 36em; }
.close-card .go { position: relative; z-index: 1; text-align: center; }
.close-card .mailto { display: block; margin-top: 12px; font: 400 13px/1.4 var(--mono); color: var(--on-ink-2); }
.close-card .mailto a { color: var(--on-ink); }

/* footer */
.foot { border-top: 1px solid var(--line); padding: 28px 0 40px; font-size: 14.5px; color: var(--text-2); }
.foot .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 14px 28px; }
.foot nav { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.foot .data-row { flex-basis: 100%; font: 400 12.5px/1.6 var(--mono); color: var(--text-3); padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.foot a { text-decoration: none; }
.foot a:hover { color: var(--text); text-decoration: underline; }

/* ---- responsive ---- */
@media (max-width: 960px) {
  .hero { grid-template-columns: minmax(0, 1fr); gap: 40px; padding: 36px 0 64px; }
  .split, .qb { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .rules { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 720px) {
  body { font-size: 16px; }
  .sec { padding: 64px 0; }
  .head { margin-bottom: 30px; }
  .lede { font-size: 17.5px; }
  .intro { font-size: 16.5px; }
  .steps, .sort, .rules { grid-template-columns: minmax(0, 1fr); }
  .rungs { grid-template-columns: minmax(0, 1fr); }
  .rung { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 12px 14px 12px 18px; }
  .rung::before { bottom: 0; right: auto; width: 4px; height: auto; }
  .rung b { margin: 0; }
  .scene { padding-bottom: 0; }
  .draft { margin-right: 0; }
  .replies { margin: 12px 0 0; grid-template-columns: minmax(0, 1fr); }
  .close-card { grid-template-columns: minmax(0, 1fr); padding: 36px 22px; }
  .close-card .btn { width: 100%; justify-content: center; }
  .faq summary { font-size: 16.5px; }
  .col li { grid-template-columns: minmax(0, 1fr); }
  .col li span { text-align: left; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .draft-actions .yes { color: #06140f; } }
:root[data-theme="dark"] .draft-actions .yes { color: #06140f; }
