/* net-terms.css — styles used only by the Net Terms case study.
   Shared case-study styles live in /assets/css/case-study.css. This page swaps the site's yellow accent for Intuit blue. */

body.cs-nt {
  --accent: #236cff;
  --accent-soft: rgba(35, 108, 255, 0.14);
  --hl: rgba(35, 108, 255, 0.45);          /* arrival marker (site.js) */
  --accent-ink: #ffffff;
  --nt-hi: #8db4ff;         /* light blue for figures and icons on dark */
  --nt-warn: #ff8a80;
  --accent-text: #6b9dff;   /* the same blue, lifted for small text on the dark background */
  --qb-ink: #393a3d;        /* QuickBooks UI, used inside the recreated screens */
  --qb-muted: #6b6c72;
  --qb-line: #d4d7dc;
  --qb-link: #0077c5;
  --qb-green: #2ca01c;
}

/* small accent text stays legible on dark surfaces */
.cs-nt .cs-section > .label, .cs-nt .kicker, .cs-nt .label--accent, .cs-nt .overview__grid .label, .cs-nt .callout-q .label,
.cs-nt .screen__head .label, .cs-nt .toc a.is-active .n, .cs-nt .lessons li::before { color: var(--accent-text); }
.cs-nt a:hover, .cs-nt .brand:hover { color: var(--accent-text); }
.cs-nt .process li:not(:last-child)::after { color: var(--accent-text); }
.cs-nt .overview__grid a { color: var(--accent-text); text-decoration: none; }
.cs-nt .overview__grid a:hover { text-decoration: underline; }
.cs-nt ::selection { background: var(--accent); color: #fff; }
@keyframes up-in { from { opacity: 0; transform: translateY(12px); filter: blur(4px); } to { opacity: 1; transform: none; filter: none; } }

/* ---------- hero: Immediate first, then Net Terms steps through Net 30, 60 and 90 ---------- */
.terms {
  position: relative; margin-top: clamp(32px, 4.5vw, 52px); padding: clamp(26px, 4.4vw, 52px) clamp(18px, 4.4vw, 56px) clamp(26px, 3.6vw, 40px);
  border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden;
  background: radial-gradient(70% 100% at 50% 0%, rgba(35, 108, 255, 0.2), transparent 70%), var(--bg-2);
}
.terms__top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px 24px; }
.terms__switch { position: relative; display: inline-grid; grid-template-columns: 1fr 1fr; padding: 5px; border: 1px solid var(--line-strong); border-radius: 999px; background: var(--surface); }
.terms__opt { position: relative; z-index: 1; padding: 9px clamp(14px, 2vw, 22px); color: var(--muted); font-size: clamp(0.92rem, 0.85rem + 0.3vw, 1.05rem); text-align: center; white-space: nowrap; transition: color 0.45s var(--ease); }
.terms__pill { position: absolute; z-index: 0; top: 5px; bottom: 5px; left: 5px; width: calc(50% - 5px); border-radius: 999px; background: rgba(var(--fg), 0.12); box-shadow: inset 0 0 0 1px var(--line-strong); transition: transform 0.6s cubic-bezier(0.34, 1.2, 0.64, 1), background-color 0.45s var(--ease), box-shadow 0.45s var(--ease); }
.terms[data-mode="net"] .terms__pill { transform: translateX(100%); background: var(--accent); box-shadow: 0 6px 24px -6px rgba(35, 108, 255, 0.7); }
.terms[data-mode="imm"] [data-opt="imm"], .terms[data-mode="net"] [data-opt="net"] { color: var(--ink); }
.terms__count { display: flex; align-items: baseline; gap: 10px; }
.terms__count b { min-width: 2ch; font-size: clamp(2.6rem, 1.8rem + 3vw, 4.4rem); font-weight: 500; letter-spacing: -0.04em; line-height: 1; text-align: right; font-variant-numeric: tabular-nums; transition: color 0.45s var(--ease); }
.terms[data-mode="net"] .terms__count b { color: var(--nt-hi); }
.terms__count span { color: var(--muted); font-size: var(--fs-small); }
.terms__track { margin-top: clamp(28px, 3.6vw, 44px); }
.terms__rail { position: relative; height: 8px; border-radius: 8px; background: rgba(var(--fg), 0.07); }
.terms__fill { position: absolute; left: 0; top: 0; bottom: 0; width: var(--pos, 0%); border-radius: 8px; background: linear-gradient(90deg, rgba(35, 108, 255, 0.3), var(--accent)); transition: width 1.1s cubic-bezier(0.55, 0, 0.25, 1); }
.terms__tick { position: absolute; left: var(--at); top: -5px; bottom: -5px; width: 2px; translate: -50% 0; border-radius: 2px; background: rgba(var(--fg), 0.22); }
.terms__tick:last-of-type { translate: -100% 0; }
.terms__dot { position: absolute; z-index: 1; top: 50%; left: var(--pos, 0%); width: 22px; height: 22px; translate: -50% -50%; border-radius: 50%; background: #fff; box-shadow: 0 0 0 5px rgba(var(--fg), 0.12); transition: left 1.1s cubic-bezier(0.55, 0, 0.25, 1), background-color 0.45s var(--ease), box-shadow 0.45s var(--ease); }
.terms[data-mode="net"] .terms__dot { background: var(--accent); box-shadow: 0 0 0 6px rgba(35, 108, 255, 0.25), 0 0 26px rgba(35, 108, 255, 0.8); }
.terms[data-stop="0"] { --pos: 0%; } .terms[data-stop="1"] { --pos: 33.333%; } .terms[data-stop="2"] { --pos: 66.667%; } .terms[data-stop="3"] { --pos: 100%; }
.terms__marks { position: relative; height: 2.9em; margin-top: 14px; font-size: var(--fs-small); }
.terms__mark { position: absolute; left: var(--at); top: 0; display: grid; gap: 1px; translate: -50% 0; color: var(--muted); text-align: center; white-space: nowrap; transition: color 0.4s var(--ease), opacity 0.4s var(--ease); }
.terms__mark[data-s="0"] { translate: 0 0; text-align: left; }
.terms__mark[data-s="3"] { translate: -100% 0; text-align: right; }
.terms__mark b { color: var(--ink-2); font-weight: 500; transition: color 0.4s var(--ease); }
.terms__mark em { font-style: normal; }
.terms[data-mode="imm"] .terms__mark:not([data-s="0"]) { opacity: 0.35; }
.terms__mark.is-on b { color: var(--nt-hi); }
.terms__caption { position: relative; min-height: 3em; margin: clamp(14px, 2vw, 20px) auto 0; max-width: 36em; padding-inline: 44px; color: var(--ink-2); text-align: center; }
.terms__caption span { position: absolute; inset: 0 44px auto; transition: opacity 0.45s var(--ease), transform 0.45s var(--ease); }
.terms[data-mode="imm"] [data-cap="net"], .terms[data-mode="net"] [data-cap="imm"] { opacity: 0; transform: translateY(6px); }
.terms__replay {
  position: absolute; right: clamp(14px, 2vw, 22px); bottom: clamp(14px, 2vw, 22px); display: grid; place-items: center; width: 38px; height: 38px;
  border: 1px solid rgba(35, 108, 255, 0.55); border-radius: 50%; background: rgba(35, 108, 255, 0.08); color: #236cff; cursor: pointer;
  transition: background-color 0.25s var(--ease), color 0.25s var(--ease), transform 0.4s var(--ease);
}
.terms__replay svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.terms__replay:hover { background: #236cff; color: #fff; }
.terms__replay:hover svg { transform: rotate(-40deg); transition: transform 0.4s var(--ease); }
.terms__replay:focus-visible { outline: 2px solid #236cff; outline-offset: 3px; border-radius: 50%; }
.js .terms:not(.is-in) .terms__top, .js .terms:not(.is-in) .terms__track, .js .terms:not(.is-in) .terms__caption { opacity: 0; }
.terms.is-in .terms__top, .terms.is-in .terms__track, .terms.is-in .terms__caption { animation: up-in 0.7s var(--ease) both; }
.terms.is-in .terms__track { animation-delay: 0.15s; }
.terms.is-in .terms__caption { animation-delay: 0.3s; }
@media (max-width: 520px) { .terms__top { justify-content: center; } .terms__marks { font-size: 0.8rem; } }

/* ---------- overview: a picture for each of the three cards ---------- */
.ov-art {
  position: relative; display: grid; place-items: center; height: 148px; margin-bottom: 8px; padding: 14px; overflow: hidden;
  border: 1px solid var(--line); border-radius: var(--radius); background: radial-gradient(90% 90% at 50% 0%, rgba(35, 108, 255, 0.12), transparent 70%), var(--bg-2);
}
.ov-art--ies { grid-template-rows: auto 22px auto; place-items: center; align-content: center; gap: 0; }
.ies__parent { padding: 6px 14px; border: 1px solid color-mix(in srgb, var(--accent) 55%, transparent); border-radius: 8px; background: var(--accent-soft); color: var(--ink); font-size: 0.8rem; font-weight: 500; }
.ies__lines { width: 78%; height: 22px; fill: none; stroke: var(--line-strong); stroke-width: 1.5; vector-effect: non-scaling-stroke; }
.ies__lines path { vector-effect: non-scaling-stroke; }
.ies__kids { display: grid; grid-template-columns: repeat(3, 1fr); width: 78%; }
.ies__kids i { justify-self: center; padding: 5px 10px; border: 1px solid var(--line-strong); border-radius: 7px; background: var(--surface); color: var(--ink-2); font-size: 0.74rem; font-style: normal; }
.mini-inv { width: min(100%, 250px); padding: 12px 14px; border-radius: 8px; background: #fff; color: var(--qb-ink); font-size: 0.72rem; line-height: 1.3; box-shadow: 0 16px 30px -18px rgba(0, 0, 0, 0.8); }
.mini-inv__head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 6px; padding-bottom: 6px; border-bottom: 1px solid #e4e6ea; }
.mini-inv__head b { color: #236cff; font-size: 0.95rem; font-weight: 700; }
.mini-inv__head span { color: var(--qb-muted); }
.mini-inv__row { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 3px 0; }
.mini-inv__row em { color: var(--qb-muted); font-style: normal; }
.mini-inv__terms { display: inline-flex; gap: 4px; }
.mini-inv__terms i { padding: 1px 6px; border-radius: 4px; background: #eef1f5; color: var(--qb-muted); font-style: normal; font-weight: 600; }
.mini-inv__terms i:first-child { background: #236cff; color: #fff; }
.ov.is-live .mini-inv__terms i { animation: term-cycle 6s var(--ease) infinite; }
.ov.is-live .mini-inv__terms i:nth-child(2) { animation-delay: 2s; } .ov.is-live .mini-inv__terms i:nth-child(3) { animation-delay: 4s; }
.ov.is-live .mini-inv__terms i:first-child { background: #eef1f5; color: var(--qb-muted); }
@keyframes term-cycle { 0%, 30% { background: #236cff; color: #fff; } 36%, 100% { background: #eef1f5; color: var(--qb-muted); } }
.mini-ui { width: min(100%, 250px); padding: 12px 14px; border-radius: 8px; background: #fff; color: var(--qb-ink); font-family: "Avenir Next", Avenir, "Segoe UI", system-ui, sans-serif; font-size: 0.74rem; line-height: 1.3; box-shadow: 0 16px 30px -18px rgba(0, 0, 0, 0.8); }
.ov .mini-ui p { color: var(--qb-ink); }
.mini-ui__h { margin-bottom: 8px; font-size: 0.82rem; font-weight: 600; }
.mini-ui__toggle { display: flex; gap: 14px; padding: 8px 10px; border-radius: 4px; background: #f4f5f8; }
.mini-ui__toggle span { display: inline-flex; align-items: center; gap: 6px; }
.mini-ui__toggle i { position: relative; width: 12px; height: 12px; border: 1.3px solid #8d9096; border-radius: 50%; background: #fff; }
.mini-ui__toggle .is-on i { border-color: var(--qb-green); }
.mini-ui__toggle .is-on i::after { content: ""; position: absolute; inset: 2px; border-radius: 50%; background: var(--qb-green); }
.mini-ui__toggle b { display: inline-grid; place-items: center; width: 11px; height: 11px; border: 1px solid var(--qb-muted); border-radius: 50%; color: var(--qb-muted); font-size: 7px; }
.mini-ui__st { display: flex; align-items: center; gap: 6px; margin-top: 9px; font-weight: 600; }
.mini-ui__st i { flex: none; width: 11px; height: 11px; border-radius: 50%; background: #0077c5; }

/* launch targets: quiet, below the overview */
.targets { display: grid; gap: 1px; margin-top: 14px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
@media (min-width: 900px) { .targets { grid-template-columns: minmax(0, 1fr) minmax(0, 3fr); } }
.targets > * { background: var(--surface); padding: clamp(20px, 2.6vw, 28px); }
.targets__head { display: grid; gap: 8px; align-content: start; }
.targets__head .label { color: var(--accent-text); }
.targets__head p { color: var(--muted); font-size: var(--fs-small); }
.targets__list { list-style: none; display: grid; gap: 18px 28px; }
@media (min-width: 640px) { .targets__list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .targets__list { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.targets__list li { display: grid; gap: 4px; align-content: start; padding-left: 14px; border-left: 2px solid var(--accent); }
.targets__list b { color: var(--ink); font-size: clamp(1.5rem, 1.25rem + 0.9vw, 1.95rem); font-weight: 500; letter-spacing: -0.03em; line-height: 1.1; font-variant-numeric: tabular-nums; }
.targets__list span { color: var(--muted); font-size: var(--fs-small); line-height: 1.45; }
.tgt { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; margin-top: 16px; color: var(--ink-2); font-size: var(--fs-small); }
.tgt .label { color: var(--accent-text); }

/* ---------- 01: two ways of paying, side by side ---------- */
.gap { display: grid; gap: 12px; margin-top: clamp(24px, 3vw, 36px); }
@media (min-width: 760px) { .gap { grid-template-columns: 1fr 1fr; gap: 16px; } }
.gap__side { display: grid; gap: 14px; align-content: start; padding: clamp(18px, 2.4vw, 26px); border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.gap__side--intuit { border-color: color-mix(in srgb, var(--accent) 35%, transparent); }
.gap__steps { list-style: none; display: grid; gap: 0; }
.gap__steps li { position: relative; display: flex; align-items: center; gap: 12px; padding: 9px 0; color: var(--ink-2); }
.gap__steps li::before { content: ""; flex: none; width: 10px; height: 10px; border-radius: 50%; border: 2px solid var(--muted); background: var(--surface); }
.gap__steps li:not(:last-child)::after { content: ""; position: absolute; left: 5px; top: calc(50% + 7px); height: calc(100% - 14px); width: 1px; translate: -0.5px 0; background: var(--line-strong); }
.gap__side--intuit .gap__steps li::before { border-color: var(--accent-text); }
.gap__steps li.is-fail { color: var(--ink); }
.gap__steps li.is-fail::before { border-color: #ff6b5e; background: #ff6b5e; box-shadow: 0 0 12px rgba(255, 107, 94, 0.6); }
.js .gap:not(.is-in) .gap__steps li { opacity: 0; }
.gap.is-in .gap__steps li { animation: step-in 0.5s var(--ease) both; animation-delay: calc(var(--i) * 140ms); }
.gap.is-in .gap__side--intuit .gap__steps li { animation-delay: calc(0.35s + var(--i) * 160ms); }
@keyframes step-in { from { opacity: 0; transform: translateX(-10px); } to { opacity: 1; transform: none; } }

.fact { display: flex; align-items: center; gap: clamp(18px, 3vw, 32px); margin-top: 14px; padding: clamp(18px, 2.4vw, 26px); border: 1px solid rgba(255, 107, 94, 0.35); border-radius: var(--radius); background: linear-gradient(120deg, rgba(255, 107, 94, 0.1), transparent 60%), var(--surface); }
.fact__num { display: flex; align-items: baseline; gap: 2px; flex: none; color: var(--nt-warn); }
.fact__num span { font-size: 1.4rem; }
.fact__num b { font-size: clamp(2.6rem, 2rem + 2.4vw, 3.6rem); font-weight: 500; letter-spacing: -0.04em; line-height: 1; color: inherit; font-variant-numeric: tabular-nums; }
.fact p { color: var(--ink-2); max-width: 30em; }
.cs-section > .fact + .callout-q { margin-top: clamp(28px, 3.6vw, 40px); }
@media (max-width: 599px) { .fact { flex-direction: column; align-items: flex-start; } }

/* ---------- 02: where it started, audiences, lifecycle ---------- */
.origin { list-style: none; display: grid; gap: 14px; margin-top: clamp(24px, 3vw, 32px); }
@media (min-width: 760px) { .origin { grid-template-columns: repeat(3, 1fr); gap: 28px; } }
.origin li { position: relative; display: grid; gap: 4px; align-content: start; padding: 16px 18px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.origin li:last-child { border-color: color-mix(in srgb, var(--accent) 45%, transparent); background: linear-gradient(180deg, var(--accent-soft), transparent 75%), var(--surface); }
.origin__icon { display: grid; place-items: center; width: 34px; height: 34px; margin-bottom: 8px; border: 1px solid var(--line-strong); border-radius: var(--radius); background: var(--bg-2); }
.origin__icon svg { width: 18px; height: 18px; fill: none; stroke: var(--nt-hi); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.origin strong { font-weight: 500; }
.origin li > span:last-child { color: var(--muted); font-size: var(--fs-small); line-height: 1.45; }
.origin li:not(:last-child)::after { content: "↓"; position: absolute; left: 30px; bottom: -15px; color: var(--accent-text); font-size: 0.85rem; line-height: 1; }
@media (min-width: 760px) { .origin li:not(:last-child)::after { content: "→"; left: auto; right: -21px; bottom: auto; top: 30px; } }
.js .origin:not(.is-in) li { opacity: 0; }
.origin.is-in li { animation: up-in 0.6s var(--ease) both; animation-delay: calc(var(--i) * 200ms); }
.origin__note { display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: baseline; margin-top: 14px; color: var(--ink-2); font-size: var(--fs-small); }
.origin__note .label { color: var(--accent-text); }

.who { list-style: none; display: grid; gap: 12px; margin-top: clamp(18px, 2.4vw, 24px); }
@media (min-width: 760px) { .who { grid-template-columns: repeat(3, 1fr); gap: 14px; } }
.who li { display: grid; gap: 6px; align-content: start; padding: clamp(18px, 2.4vw, 24px); border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.who__icon { display: grid; place-items: center; width: 44px; height: 44px; margin-bottom: 8px; border: 1px solid color-mix(in srgb, var(--accent) 45%, transparent); border-radius: var(--radius); background: linear-gradient(160deg, rgba(35, 108, 255, 0.22), rgba(35, 108, 255, 0.04)); }
.who__icon svg { width: 22px; height: 22px; fill: none; stroke: var(--nt-hi); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.who .label { color: var(--accent-text); }
.who h3 { font-size: var(--fs-h3); }
.who p { color: var(--ink-2); font-size: 0.98rem; }

.life { list-style: none; position: relative; display: grid; gap: 0; margin-top: clamp(18px, 2.4vw, 24px); padding: clamp(18px, 2.4vw, 26px); border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.life li { position: relative; display: grid; grid-template-columns: 34px minmax(0, 1fr); column-gap: 14px; padding: 10px 0; }
.life li > :not(.life__n) { grid-column: 2; }
.life__n { grid-row: 1 / span 3; display: grid; place-items: center; width: 34px; height: 34px; border: 1px solid var(--line-strong); border-radius: 50%; background: var(--bg-2); color: var(--muted); font-size: 0.85rem; font-weight: 500; transition: background-color 0.5s var(--ease), color 0.5s var(--ease), border-color 0.5s var(--ease), box-shadow 0.5s var(--ease); }
.life strong { font-weight: 500; }
.life li > span:not(.life__n) { color: var(--ink-2); font-size: var(--fs-small); line-height: 1.4; }
.life em { color: var(--muted); font-style: normal; font-size: 0.78rem; letter-spacing: 0.04em; }
.life li:not(:last-child)::after { content: ""; position: absolute; left: 17px; top: 46px; bottom: -8px; width: 1px; background: var(--line-strong); }
.life__ext .life__n { border-style: dashed; }
.life li.is-on .life__n { border-color: var(--accent); background: var(--accent); color: #fff; box-shadow: 0 0 0 5px rgba(35, 108, 255, 0.2), 0 0 22px rgba(35, 108, 255, 0.6); }
.life li.is-done .life__n { border-color: color-mix(in srgb, var(--accent) 60%, transparent); color: var(--ink); }
@media (min-width: 900px) {
  .life { grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 10px; padding: 28px 22px 22px; }
  .life li { grid-template-columns: 1fr; justify-items: center; align-content: start; gap: 4px; padding: 0; text-align: center; }
  .life li > :not(.life__n) { grid-column: 1; }
  .life__n { grid-row: auto; margin-bottom: 10px; }
  .life li:not(:last-child)::after { left: calc(50% + 24px); right: calc(-50% + 19px); top: 17px; bottom: auto; width: auto; height: 1px; }
  .life li > span:not(.life__n) { font-size: 0.84rem; }
}
.life__note { display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: baseline; margin-top: 12px; color: var(--ink-2); font-size: var(--fs-small); }
.life__note .label { color: var(--nt-warn); }

/* ---------- 03: the shared-widget constraint, and the two modes ---------- */
.limit { display: flex; align-items: center; gap: clamp(18px, 3vw, 36px); margin-top: clamp(24px, 3vw, 32px); padding: clamp(18px, 2.6vw, 28px); border: 1px solid color-mix(in srgb, var(--accent) 40%, transparent); border-radius: var(--radius); background: linear-gradient(120deg, var(--accent-soft), transparent 60%), var(--surface); }
.limit__num { flex: none; min-width: 2.2ch; color: var(--nt-hi); }
.limit__num b { font-size: clamp(2.8rem, 2rem + 2.6vw, 4rem); font-weight: 500; letter-spacing: -0.04em; line-height: 1; color: inherit; font-variant-numeric: tabular-nums; }
.limit__text { display: grid; gap: 6px; }
.limit__text h3 { font-size: var(--fs-h3); }
.limit__text p { color: var(--ink-2); }
@media (max-width: 599px) { .limit { flex-direction: column; align-items: flex-start; } }

.modes { display: grid; gap: 12px; margin-top: clamp(18px, 2.4vw, 24px); }
@media (min-width: 760px) { .modes { grid-template-columns: 1fr 1fr; gap: 16px; } }
.mode { display: grid; gap: 10px; align-content: start; padding: clamp(18px, 2.4vw, 26px); border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.mode--manage { border-color: color-mix(in srgb, var(--accent) 45%, transparent); background: linear-gradient(180deg, var(--accent-soft), transparent 70%), var(--surface); }
.mode__tag { justify-self: start; padding: 3px 10px; border-radius: 999px; background: var(--surface-2); color: var(--ink-2); font-size: 0.72rem; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; }
.mode--manage .mode__tag { background: var(--accent); color: #fff; }
.mode h4 { margin: 0; font-size: var(--fs-h3); font-weight: 500; letter-spacing: -0.02em; line-height: 1.25; }
.mode ul { list-style: none; display: grid; gap: 8px; margin-top: 4px; }
.mode li { display: flex; align-items: baseline; gap: 10px; color: var(--ink-2); }
.mode li::before { flex: none; width: 1.1em; font-weight: 500; text-align: center; }
.mode li.ok::before { content: "✓"; color: var(--nt-hi); }
.mode li.no::before { content: "×"; color: var(--muted); font-size: 1.15em; }
.mode li.no { color: var(--muted); }
.js .modes:not(.is-in) .mode { opacity: 0; }
.modes.is-in .mode { animation: up-in 0.6s var(--ease) both; }
.modes.is-in .mode + .mode { animation-delay: 0.18s; }
.locks { list-style: none; display: grid; gap: 8px; margin-top: 12px; }
.locks li { display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: baseline; padding: 12px 16px; border: 1px dashed var(--line-strong); border-radius: var(--radius); color: var(--ink-2); font-size: var(--fs-small); }
.locks .label { color: var(--muted); }

/* ---------- 04: process icons ---------- */
.process__icon--line svg { fill: none; stroke: var(--nt-hi); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- applying: a stepper beside the real screens; all screens share one cell, so the height never changes ---------- */
.apply { display: grid; gap: 16px; margin-top: clamp(18px, 2.4vw, 24px); }
@media (min-width: 900px) { .apply { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 28px; align-items: start; } }
.apply__steps { list-style: none; display: grid; gap: 8px; }
.apply__steps button {
  position: relative; display: grid; grid-template-columns: 32px minmax(0, 1fr); gap: 14px; width: 100%; padding: 16px 18px; overflow: hidden;
  border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); color: var(--ink-2); font: inherit; text-align: left; cursor: pointer;
  transition: border-color 0.3s var(--ease), background-color 0.3s var(--ease);
}
.apply__steps button:hover { border-color: var(--line-strong); }
.apply__steps button[aria-selected="true"] { border-color: color-mix(in srgb, var(--accent) 55%, transparent); background: linear-gradient(120deg, var(--accent-soft), transparent 70%), var(--surface); }
.apply__n { display: grid; place-items: center; width: 32px; height: 32px; border: 1px solid var(--line-strong); border-radius: 50%; color: var(--muted); font-size: 0.85rem; font-weight: 500; transition: all 0.3s var(--ease); }
.apply__steps button[aria-selected="true"] .apply__n { border-color: var(--accent); background: var(--accent); color: #fff; }
.apply__txt { display: grid; gap: 4px; }
.apply__txt strong { color: var(--ink); font-weight: 500; }
.apply__txt span { color: var(--muted); font-size: var(--fs-small); line-height: 1.45; }
.apply__steps button[aria-selected="true"] .apply__txt span { color: var(--ink-2); }
.apply__bar { position: absolute; left: 0; bottom: 0; height: 2px; width: 0; background: var(--accent); }
.apply.is-playing .apply__steps button[aria-selected="true"] .apply__bar { animation: bar 5.2s linear forwards; }
.apply.is-paused .apply__bar { animation-play-state: paused !important; }
@keyframes bar { to { width: 100%; } }
.apply__view { display: grid; width: 100%; max-width: 440px; justify-self: center; }
.apply__panel { grid-area: 1 / 1; align-self: stretch; visibility: hidden; opacity: 0; transform: translateY(8px); transition: opacity 0.45s var(--ease), transform 0.45s var(--ease), visibility 0s linear 0.45s; }
.apply__panel.is-active { visibility: visible; opacity: 1; transform: none; transition: opacity 0.45s var(--ease), transform 0.45s var(--ease), visibility 0s; }
@media (max-width: 899px) {
  .apply__steps { grid-auto-flow: column; grid-auto-columns: minmax(240px, 82%); overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding-bottom: 2px; }
  .apply__steps::-webkit-scrollbar { display: none; }
  .apply__steps li { scroll-snap-align: start; }
}

/* ---------- status: the QuickBooks Online page and widget, drawn at true scale (1440 x 900) and scaled to fit ---------- */
.toc { transition: opacity 0.35s var(--ease); }
.toc-hidden .toc { opacity: 0; pointer-events: none; }
.nt-demo { position: relative; margin-top: clamp(18px, 2.4vw, 24px); }   /* width and offset set by net-terms.js so it spans the viewport */
.seg { display: inline-flex; flex-wrap: wrap; gap: 4px; padding: 4px; border: 1px solid var(--line); border-radius: 20px; background: var(--surface); }
.seg__btn {
  appearance: none; border: 0; border-radius: 999px; padding: 7px 14px; background: transparent; cursor: pointer;
  color: var(--muted); font: inherit; font-size: 0.88rem; transition: color 0.25s var(--ease), background-color 0.25s var(--ease);
}
.seg__btn:hover { color: var(--ink); }
.seg__btn[aria-selected="true"] { background: var(--accent); color: #fff; }
.nt-stage {
  position: relative; height: 560px; margin-top: 14px; overflow: hidden; border: 1px solid var(--line-strong); border-radius: var(--radius); background: #fff;
  color: var(--qb-ink); font-family: "Avenir Next", Avenir, "Segoe UI", system-ui, sans-serif; font-size: 14px; font-weight: 400; line-height: 1.4;
}
.nt-stage b, .nt-stage strong { color: inherit; }
.nt-canvas { position: absolute; left: 0; top: 0; width: 1440px; height: 900px; transform-origin: 0 0; transform: scale(var(--k, 1)); }
.nt-bg { position: absolute; inset: 0; width: 100%; height: 100%; }
.nt-bg--inv { opacity: 0; transition: opacity 0.5s var(--ease); }
.nt-stage.is-inv .nt-bg--inv { opacity: 1; }
.nt-scrim { position: absolute; inset: 0; background: rgba(0, 0, 0, 0.5); }
.nt-drawer { position: absolute; top: 0; right: 0; bottom: 0; display: flex; flex-direction: column; width: 576px; background: #fff; box-shadow: -20px 0 50px -24px rgba(0, 0, 0, 0.55); }
.nt-drawer__body { flex: 1; overflow-y: auto; padding: 44px 60px 20px; scrollbar-width: thin; }
.nt-drawer__x { position: absolute; top: 18px; right: 22px; width: 28px; height: 28px; display: grid; place-items: center; color: var(--qb-muted); font-size: 28px; font-weight: 300; line-height: 1; }
.nt-drawer__foot { display: flex; justify-content: flex-end; min-height: 72px; padding: 14px 22px; border-top: 1px solid #e4e6ea; background: #f4f5f8; }
.nt-btn { align-self: center; padding: 10px 20px; border-radius: 4px; background: var(--qb-green); color: #fff; font-size: 16px; font-weight: 600; }
.nt-h { margin: 0 0 18px; color: var(--qb-ink); font-size: 20px; font-weight: 500; letter-spacing: 0; }
.nt-toggle { display: flex; flex-wrap: wrap; gap: 8px 30px; padding: 20px 24px; margin-bottom: 24px; border-radius: 4px; background: #f4f5f8; }
.nt-radio { display: inline-flex; align-items: center; gap: 10px; font-size: 17px; }
.nt-radio i { position: relative; width: 21px; height: 21px; border: 1.5px solid #8d9096; border-radius: 50%; background: #fff; }
.nt-radio.is-on i { border-color: var(--qb-green); }
.nt-radio.is-on i::after { content: ""; position: absolute; inset: 3px; border-radius: 50%; background: var(--qb-green); }
.nt-radio .q { display: inline-grid; place-items: center; width: 16px; height: 16px; margin-left: -4px; border: 1.3px solid var(--qb-muted); border-radius: 50%; color: var(--qb-muted); font-size: 10px; font-weight: 600; }
.nt-sub { margin: 4px 0 14px; font-size: 19px; font-weight: 500; }
.nt-pm { display: grid; grid-template-columns: 21px 42px minmax(0, 1fr) 16px; align-items: start; gap: 14px; padding: 18px 20px; margin-bottom: 14px; border: 1px solid var(--qb-line); border-radius: 4px; }
.nt-pm .nt-radio { padding-top: 2px; }
.nt-pm__logo { display: grid; place-items: center; height: 26px; border: 1px solid #e4e6ea; border-radius: 3px; background: #fff; font-size: 9px; font-weight: 700; }
.nt-pm__logo--visa { color: #1a1f71; font-style: italic; font-size: 11px; }
.nt-pm__logo--disc { background: linear-gradient(90deg, #fff 55%, #f58220 55%); color: #222; font-size: 7px; }
.nt-pm__logo--apay { border-color: #222; color: #222; font-size: 10px; }
.nt-pm__logo--bank svg, .nt-pm__logo--inv svg { width: 18px; height: 18px; fill: none; stroke: #393a3d; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.nt-pm__logo--inv { border: 0; }
.nt-pm__t { min-width: 0; font-size: 15px; }
.nt-pm__t b { font-weight: 600; }
.nt-pm__t span { color: var(--qb-muted); }
.nt-pm__t small { display: block; margin-top: 6px; color: var(--qb-muted); font-size: 14px; }
.nt-pm__edit svg { width: 15px; height: 15px; fill: none; stroke: var(--qb-muted); stroke-width: 1.6; }
.nt-pm--inv { grid-template-columns: 21px 24px minmax(0, 1fr); align-items: center; padding: 24px 20px; }
.nt-add { display: flex; justify-content: flex-end; gap: 6px; margin-top: 10px; color: var(--qb-link); font-size: 16px; }
.nt-status { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 10px; font-size: 15px; }
.nt-status__ico { display: grid; place-items: center; width: 20px; height: 20px; margin-top: 1px; border-radius: 50%; color: #fff; font-size: 12px; font-weight: 700; }
.nt-status--wait .nt-status__ico { background: #ff8000; }
.nt-status--wait .nt-status__ico svg { width: 12px; height: 12px; fill: none; stroke: #fff; stroke-width: 2.2; stroke-linecap: round; }
.nt-status--wait h5 { color: #ff8000; }
.nt-status--stop .nt-status__ico { border-radius: 0; background: none; width: 22px; }
.nt-status--stop .nt-status__ico svg { width: 22px; height: 20px; }
.nt-status--stop h5 { color: #d52b1e; }
.nt-status h5 { margin: 0; font-size: 16px; font-weight: 600; letter-spacing: 0; line-height: 1.35; }
.nt-status ul { margin: 10px 0 0; padding-left: 18px; display: grid; gap: 8px; color: var(--qb-ink); }
.nt-status p { margin: 8px 0 0; color: var(--qb-ink); }
.nt-alert { position: relative; display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 10px; padding: 18px 44px 18px 18px; margin-bottom: 26px; border: 1.5px solid #d52b1e; border-radius: 4px; font-size: 15px; }
.nt-alert svg { width: 22px; height: 20px; margin-top: 1px; }
.nt-alert h5 { margin: 0 0 4px; color: #d52b1e; font-size: 16px; font-weight: 600; letter-spacing: 0; }
.nt-alert p { margin: 0; }
.nt-alert__x { position: absolute; top: 12px; right: 16px; color: var(--qb-muted); font-size: 20px; line-height: 1; }
/* motion: the drawer slides in on each new state and its content settles */
.nt-drawer__body > * { animation: nt-in 0.45s var(--ease) both; }
.nt-drawer__body > *:nth-child(2) { animation-delay: 0.06s; } .nt-drawer__body > *:nth-child(3) { animation-delay: 0.12s; } .nt-drawer__body > *:nth-child(n + 4) { animation-delay: 0.18s; }
.nt-pm.is-picked { animation: nt-pick 0.9s var(--ease) 0.5s both; }
@keyframes nt-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes nt-pick { 0% { box-shadow: 0 0 0 0 rgba(44, 160, 28, 0); } 40% { box-shadow: 0 0 0 4px rgba(44, 160, 28, 0.28); } 100% { box-shadow: 0 0 0 0 rgba(44, 160, 28, 0); } }
.nt-stage.is-entering .nt-drawer { animation: nt-slide 0.6s var(--ease) both; }
@keyframes nt-slide { from { transform: translateX(48px); opacity: 0; } to { transform: none; opacity: 1; } }
/* captions share one cell, so a longer one never pushes the page */
.nt-caps { display: grid; margin-top: 14px; }
.nt-caps p { grid-area: 1 / 1; opacity: 0; transition: opacity 0.3s var(--ease); color: var(--ink-2); }
.nt-caps p.is-on { opacity: 1; }
.nt-caps b { color: var(--ink); font-weight: 500; }
.nt-note { margin-top: 6px; color: var(--muted); font-size: var(--fs-small); }
.nt-demo + .decision { margin-top: clamp(36px, 4.5vw, 52px); }
@media (max-width: 699px) {
  .nt-stage { height: 560px; }
  .nt-canvas { position: static; width: auto; height: 100%; transform: none; }
  .nt-bg, .nt-scrim, .nt-drawer__x { display: none; }
  .nt-drawer { position: relative; width: 100%; height: 100%; box-shadow: none; }
  .nt-drawer__body { padding: 24px 18px 18px; }
  .nt-h { font-size: 18px; } .nt-radio { font-size: 15px; } .nt-sub { font-size: 16px; }
  .nt-toggle { padding: 14px 16px; gap: 8px 22px; } .nt-pm { padding: 14px; gap: 12px; } .nt-pm__t { font-size: 14px; }
  .nt-drawer__foot { min-height: 60px; }
  .seg__btn { padding: 6px 11px; font-size: 0.82rem; }
}

/* ---------- after approval: a ring settles on the updated payment method, a moment after the screen arrives ---------- */
.fig--wide { margin-top: clamp(18px, 2.4vw, 24px); }
.fig--tight { margin-top: 0; }
.spot { position: relative; }
.spot::after {
  content: ""; position: absolute; left: var(--x); top: var(--y); width: var(--w); height: var(--h); pointer-events: none;
  border: 2px solid var(--accent); border-radius: 8px; box-shadow: 0 0 0 4000px rgba(10, 12, 20, 0); opacity: 0;
}
.spot.is-in::after { animation: spot 2.6s var(--ease) 2s both; }
@keyframes spot {
  0% { opacity: 0; transform: scale(1.6); box-shadow: 0 0 0 4000px rgba(10, 12, 20, 0); }
  35% { opacity: 1; transform: none; box-shadow: 0 0 0 4000px rgba(10, 12, 20, 0.32); }
  75% { opacity: 1; box-shadow: 0 0 0 4000px rgba(10, 12, 20, 0.32); }
  100% { opacity: 1; box-shadow: 0 0 0 4000px rgba(10, 12, 20, 0), 0 0 18px rgba(35, 108, 255, 0.6); }
}

/* ---------- invoice ---------- */
.inv { display: grid; gap: 18px; margin-top: clamp(28px, 3.6vw, 40px); padding: clamp(18px, 2.6vw, 28px); border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
@media (min-width: 860px) { .inv { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 32px; align-items: center; } }
.inv__text { display: grid; gap: 8px; align-content: center; }
.inv__text h4 { margin: 0; font-size: var(--fs-h3); font-weight: 500; letter-spacing: -0.02em; }
.inv__text p { color: var(--ink-2); }
.inv__scroll, .mail__scroll {
  height: clamp(380px, 56vh, 520px); overflow-y: auto; border: 1px solid var(--line-strong); border-radius: var(--radius); background: #fff;
  scrollbar-width: thin; scrollbar-color: #c3c6cc #fff;
}
.inv__scroll img, .mail__scroll img { display: block; width: 100%; height: auto; }
.inv__scroll:focus-visible, .mail__scroll:focus-visible { outline-offset: 3px; }

/* ---------- emails: an inbox with a credit meter ---------- */
.mail { display: grid; gap: 14px; margin-top: clamp(18px, 2.4vw, 24px); }
@media (min-width: 860px) { .mail { grid-template-columns: minmax(0, 0.75fr) minmax(0, 1.25fr); gap: 24px; align-items: start; } }
.mail__list { display: grid; gap: 4px; align-content: start; padding: 12px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.mail__group { padding: 12px 10px 4px; color: var(--muted); }
.mail__group:first-child { padding-top: 2px; }
.mail__list button {
  display: flex; align-items: center; gap: 10px; width: 100%; padding: 9px 10px; border: 0; border-radius: 8px; background: transparent;
  color: var(--ink-2); font: inherit; font-size: 0.95rem; text-align: left; cursor: pointer; transition: background-color 0.25s var(--ease), color 0.25s var(--ease);
}
.mail__list button:hover { background: rgba(var(--fg), 0.04); color: var(--ink); }
.mail__list button[aria-selected="true"] { background: var(--accent-soft); color: var(--ink); box-shadow: inset 2px 0 0 var(--accent); }
.mail__ico { flex: none; width: 10px; height: 10px; border-radius: 50%; }
.mail__ico--info { background: #2d8be8; } .mail__ico--ok { background: #2ca01c; } .mail__ico--warn { background: #ff8000; } .mail__ico--stop { background: #d52b1e; }
.mail__view { display: grid; gap: 12px; }
.mail__meter { display: flex; align-items: center; gap: 14px; padding: 12px 16px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); color: var(--muted); font-size: 0.82rem; transition: opacity 0.35s var(--ease); }
.mail__meter.is-off { opacity: 0.4; }
.mail__rail { position: relative; flex: 1; height: 8px; border-radius: 8px; background: rgba(var(--fg), 0.08); }
.mail__rail i { position: absolute; inset: 0; border-radius: 8px; background: linear-gradient(90deg, #2d8be8 0%, #ff8000 82%, #d52b1e 100%); clip-path: inset(0 calc(100% - var(--fill, 0%)) 0 0 round 8px); transition: clip-path 0.9s var(--ease); }
.mail__rail u { position: absolute; left: var(--at); top: -4px; bottom: -4px; width: 1px; background: rgba(var(--fg), 0.35); }
.mail__pct { min-width: 3.4em; color: var(--ink); font-size: 0.95rem; font-weight: 500; text-align: right; font-variant-numeric: tabular-nums; }
.mail__scroll img { transition: opacity 0.25s var(--ease); }
.mail__scroll.is-swap img { opacity: 0; }
@media (max-width: 859px) {
  .mail__list { display: flex; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; gap: 6px; padding: 8px; }
  .mail__list::-webkit-scrollbar { display: none; }
  .mail__group { display: none; }
  .mail__list button { flex: none; width: auto; white-space: nowrap; }
}

@media (prefers-reduced-motion: reduce) {
  .terms *, .gap *, .modes *, .origin *, .nt-stage *, .spot::after, .apply *, .mini-inv * { animation: none !important; transition: none !important; }
  .js .terms:not(.is-in) .terms__top, .js .terms:not(.is-in) .terms__track, .js .terms:not(.is-in) .terms__caption,
  .js .gap:not(.is-in) .gap__steps li, .js .modes:not(.is-in) .mode, .js .origin:not(.is-in) li { opacity: 1; }
  .spot.is-in::after { opacity: 1; }
}

/* ---------- themes: light mode swaps the lifted blues and reds for deep ones ---------- */
:root[data-theme="light"] body.cs-nt { --accent-text: #1d5be6; --hl: rgba(35, 108, 255, 0.2); --nt-hi: #1d5be6; --nt-warn: #c4362a; --accent-soft: rgba(35, 108, 255, 0.1); }
:root[data-theme="light"] .fact { border-color: rgba(196, 54, 42, 0.3); background: linear-gradient(120deg, rgba(196, 54, 42, 0.06), transparent 60%), var(--surface); }
:root[data-theme="light"] .gap__steps li.is-fail::before { box-shadow: none; }
:root[data-theme="light"] .terms[data-mode="net"] .terms__dot { box-shadow: 0 0 0 6px rgba(35, 108, 255, 0.18); }
