/* ============================================================
   TrueFlo v8 · v8.css
   Loaded after v7.css (and v7-pages.css on subpages). Only the
   pieces v8 adds, on the v7 tokens. Change list: V8-NOTES.md (v8) and V8.2-NOTES.md (v8.2).

   Order: hero · three desks · where it sits · rules card ·
   one-order page · use-case facts · about portrait · responsive.
   ============================================================ */

/* ============ hero: the H1 breaks into three lines like the live site, and the hero keeps its original height ============ */
.hero h1{max-width:11.2em}
.hero{padding-bottom:calc(var(--overlap) + clamp(56px,5vw,72px) + 38px)}
.hero-seg{max-width:min(100%,46em)}

/* ============ the river logo (Oct 22): the mark is an image inside the old 48 x 48 svg slots, and the wordmark is one colour ============ */
.logo svg{width:28px;height:28px}
.logo .flo{font-weight:inherit;color:inherit}
.cdemo .cd-word span{font-weight:inherit;color:inherit}

/* ============ solutions page heads: Book a demo, Send one order and the example link stay on one row ============ */
@media (min-width:901px){
  .phead--split .phead-actions{flex-wrap:nowrap;column-gap:10px}
  .phead--split .phead-actions .btn{padding:0 18px}
  .phead--split .phead-actions .tlink{margin-left:12px;white-space:nowrap}
}

/* ============ the demo panel: one tab per desk ============ */
.desk-tabs{display:flex;gap:4px;width:max-content;max-width:100%;margin:0 auto 16px;padding:4px;background:rgba(255,255,255,.72);border:1px solid var(--line);border-radius:var(--pill);box-shadow:var(--shadow-xs);overflow-x:auto;scrollbar-width:none}
.desk-tabs::-webkit-scrollbar{display:none}
.desk-tab{display:inline-flex;align-items:center;gap:8px;flex:none;height:38px;padding:0 16px 0 6px;border-radius:var(--pill);font:500 14.5px/1 var(--sans);letter-spacing:-.006em;color:var(--muted);transition:background-color var(--dur) var(--ease),color var(--dur) var(--ease)}
.desk-tab:hover{color:var(--ink)}
.desk-tab[aria-selected="true"]{background:var(--surface);color:var(--ink);box-shadow:0 0 0 1px var(--line),var(--shadow-xs)}
.desk-tab:focus-visible{outline-offset:2px;border-radius:var(--pill)}
.dt-ico{display:grid;place-items:center;width:28px;height:28px;border-radius:var(--pill);opacity:.7;transition:opacity var(--dur) var(--ease)}
.desk-tab[aria-selected="true"] .dt-ico,.desk-tab:hover .dt-ico{opacity:1}
.dt-ico svg{width:15px;height:15px}
.dt-ico--ship{background:var(--t-ship-bg);color:var(--t-ship)}
.dt-ico--order{background:var(--t-order-bg);color:var(--t-order)}
.dt-ico--fin{background:var(--t-fin-bg);color:var(--t-fin)}
.demo-slot[hidden]{display:none}


/* ============ three desks: what each desk protects, and who it is for ============ */
.dprot{display:flex;flex-direction:column;gap:14px;height:100%}
.dprot-box{flex:1}
.dprot--ship{--dp-bg:#eef4fd;--dp-line:#dbe6f8;--dp-ink:var(--t-ship)}
.dprot--order{--dp-bg:#fdf3ec;--dp-line:#f6e0d0;--dp-ink:var(--t-order)}
.dprot--fin{--dp-bg:#eef8f1;--dp-line:#d6ecdd;--dp-ink:var(--t-fin)}
.dprot-box{padding:14px 16px 15px;background:var(--dp-bg);border:1px solid var(--dp-line);border-radius:12px}
.dprot-k{display:flex;align-items:center;gap:7px;font:var(--label);letter-spacing:.06em;text-transform:uppercase;color:var(--dp-ink)}
.dprot-k svg{width:15px;height:15px;flex:none}
.dprot-list{display:flex;flex-direction:column;gap:7px;margin-top:11px}
.dprot-list li{position:relative;padding-left:16px;font-size:14.5px;line-height:1.4;font-weight:500;letter-spacing:-.005em;color:var(--ink)}
.dprot-list li::before{content:"";position:absolute;left:1px;top:.5em;width:6px;height:6px;border-radius:50%;background:var(--dp-ink)}
.dfor{display:flex;flex-wrap:wrap;align-items:center;gap:6px}
.dfor-k{margin-right:6px;font:var(--label);letter-spacing:.06em;text-transform:uppercase;color:var(--muted)}
.dfor-chip{display:inline-flex;align-items:center;height:26px;padding:0 10px;background:var(--surface);border:1px solid var(--line-strong);border-radius:var(--pill);font-size:13px;line-height:1;color:var(--ink-2);white-space:nowrap}

/* ============ where it sits (Home #tools): arrives -> TrueFlo, ending in a person's approval -> your system ============ */
.ws{display:grid;grid-template-columns:minmax(0,1fr) 44px minmax(0,1fr) 44px minmax(0,1fr);align-items:stretch;padding:clamp(16px,2vw,28px);background:radial-gradient(60% 70% at 50% 0%,rgba(120,146,236,.12) 0%,rgba(120,146,236,0) 75%),linear-gradient(180deg,var(--inset) 0%,#eef2fa 100%);border:1px solid var(--line);border-radius:var(--r-panel)}
.ws-col{display:flex;flex-direction:column;min-width:0;background:var(--surface);border:1px solid var(--line);border-radius:var(--r-card);box-shadow:var(--shadow-xs);overflow:hidden}
.ws-hd{padding:18px 20px 14px;border-bottom:1px solid var(--line)}
.ws-k{display:block;font:var(--label);letter-spacing:.06em;text-transform:uppercase;color:var(--muted)}
.ws-t{display:block;margin-top:4px;font-size:16px;line-height:22px;font-weight:600;letter-spacing:-.01em;color:var(--ink)}
.ws-chips{flex:1;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));grid-auto-rows:1fr;gap:1px;background:var(--line)}
.ws-chips li{display:flex;align-items:center;gap:10px;min-width:0;padding:10px 14px;background:var(--surface);font-size:13.5px;line-height:18px;color:var(--ink-2)}
.ws-chips li span:last-child{min-width:0;overflow-wrap:anywhere}
.ws-mk{display:grid;place-items:center;flex:none;width:30px;height:30px;border:1px solid var(--line);border-radius:8px;background:var(--surface)}
.ws-mk img{width:auto;height:18px;max-width:22px;object-fit:contain}
.ws-mk--wide img{width:24px;max-width:24px;height:auto}
.ws-mk--ico{border-color:transparent;background:var(--t-ship-bg);color:var(--t-ship)}
.ws-mk svg{width:16px;height:16px}
.ws-mk--scan svg{width:20px;height:20px}
.ws-mk--word{border-color:transparent;background:linear-gradient(180deg,#2a3a66 0%,#161f3d 100%);box-shadow:inset 0 0 0 1px rgba(255,255,255,.08);font:700 9.5px/1 var(--sans);letter-spacing:.03em;color:#fff}
.ws-foot{margin-top:auto;padding:12px 16px;border-top:1px solid var(--line);background:var(--inset);font-size:12.5px;line-height:18px;color:var(--muted)}

/* the middle: TrueFlo's four steps spread evenly, then the person, as the fifth row */
.ws-mid{border-color:rgba(37,99,235,.28);box-shadow:0 0 0 4px rgba(37,99,235,.06),var(--shadow-xs)}
.ws-brand{display:flex;align-items:center;gap:8px;margin-top:4px}
.ws-brand svg{width:20px;height:20px;color:var(--signal)}
.ws-brand b{font-size:16px;line-height:22px;font-weight:600;letter-spacing:-.01em;color:var(--ink)}
.ws-steps{flex:1;display:flex;flex-direction:column}
.ws-steps li{flex:1;display:flex;align-items:center;gap:12px;padding:10px 20px}
.ws-steps li + li{border-top:1px solid var(--line)}
.ws-n{flex:none;width:28px;font:500 12px/16px var(--mono);color:var(--muted)}
.ws-steps b,.ws-gate b{display:block;font-size:14.5px;line-height:20px;font-weight:600;color:var(--ink)}
.ws-steps small,.ws-gate small{display:block;font-size:13px;line-height:18px;color:var(--muted)}
.ws-gate{display:flex;align-items:center;gap:12px;padding:12px 20px;background:var(--accent-tint);border-top:1px solid rgba(37,99,235,.22)}
.ws-gate small{color:var(--ink-2)}
.ws-gate-i{display:grid;place-items:center;flex:none;width:28px;height:28px;border-radius:8px;background:var(--surface);border:1px solid rgba(37,99,235,.25);color:var(--accent)}
.ws-gate-i svg{width:16px;height:16px}

/* the arrows between the columns */
.ws-link{position:relative}
.ws-link::before{content:"";position:absolute;left:8px;right:10px;top:50%;height:1px;background:var(--line-strong)}
.ws-link::after{content:"";position:absolute;right:8px;top:calc(50% - 4px);width:8px;height:8px;border-top:1px solid rgba(22,26,43,.4);border-right:1px solid rgba(22,26,43,.4);transform:rotate(45deg)}
#tools .ws + .cap{margin-top:24px}

/* ============ the rules card (Home trust head) ============ */
.trust-head{align-items:end}
.rules{justify-self:end;width:min(100%,480px);background:var(--surface);border:1px solid var(--line);border-radius:var(--r-card);box-shadow:var(--shadow-float);overflow:hidden}
.rules-hd{display:flex;align-items:center;justify-content:space-between;gap:12px;height:48px;padding:0 16px;border-bottom:1px solid var(--line)}
.rules-hd b{font-size:15px;line-height:20px;font-weight:600;color:var(--ink)}
.rules-hd span{font-size:12.5px;line-height:16px;color:var(--muted)}
.rules li{display:flex;align-items:flex-start;gap:12px;padding:12px 16px;font-size:14.5px;line-height:21px;color:var(--ink)}
.rules li + li{border-top:1px solid var(--line)}
.rules-dot{flex:none;width:8px;height:8px;margin-top:7px;border-radius:50%}
.rules-dot--ship{background:var(--t-ship)}
.rules-dot--order{background:var(--t-order)}
.rules-dot--fin{background:var(--t-fin)}
.rules-ft{padding:11px 16px;border-top:1px solid var(--line);background:var(--inset);font-size:12.5px;line-height:18px;color:var(--muted)}

/* ============ one-order page ============ */
.oo-nda{margin-top:16px;font-size:14px;line-height:20px;color:var(--muted)}
.oo-acts{display:flex;flex-wrap:wrap;align-items:center;gap:16px 28px;margin-top:36px}
.send3{grid-template-columns:repeat(3,minmax(0,1fr))}
.send3 > li{display:flex;flex-direction:column;padding:32px 28px}
.send3 h3{margin-top:12px}
.send3 p{margin-top:8px;font-size:15px;line-height:1.6;color:var(--ink-2)}

/* the sample write-up, drawn as one page */
.wu-stage{padding:clamp(16px,3vw,48px);background:linear-gradient(180deg,var(--inset) 0%,#e8eefb 100%);border:1px solid var(--line);border-radius:var(--r-panel)}
.wu{max-width:780px;margin:0 auto;background:var(--surface);border:1px solid var(--line);border-radius:12px;box-shadow:var(--shadow-float)}
.wu-top{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;padding:28px 36px 22px;border-bottom:1px solid var(--line)}
.wu-brand{display:flex;align-items:center;gap:8px;font-size:13px;line-height:18px;font-weight:600;color:var(--ink)}
.wu-brand svg{width:18px;height:18px;color:var(--signal)}
.wu-top h3{margin-top:14px;font-size:22px;line-height:28px;font-weight:600;letter-spacing:-.015em}
.wu-meta{margin-top:6px;font-size:13.5px;line-height:20px;color:var(--muted)}
.wu-meta .m,.wu .m{font-family:var(--mono);font-size:.92em}
.wu-tag{flex:none;display:inline-flex;align-items:center;height:24px;padding:0 9px;border-radius:var(--r-sm);background:var(--tint-2);font-size:12px;font-weight:600;color:var(--ink-2)}
.wu-sec{display:grid;grid-template-columns:180px minmax(0,1fr);gap:8px 28px;padding:20px 36px}
.wu-sec + .wu-sec{border-top:1px solid var(--line)}
.wu-k{font:var(--label);letter-spacing:.06em;text-transform:uppercase;color:var(--muted);padding-top:3px}
.wu-sec p{font-size:15px;line-height:1.6;color:var(--ink-2)}
.wu-sec p + p{margin-top:8px}
.wu-cmp{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:1px;margin-top:12px;background:var(--line);border:1px solid var(--line);border-radius:10px;overflow:hidden}
.wu-cmp > div{display:flex;flex-direction:column;gap:2px;padding:10px 12px;background:var(--surface)}
.wu-cmp small{font-size:12px;line-height:16px;color:var(--muted)}
.wu-cmp b{font:600 16px/22px var(--mono);color:var(--ink)}
.wu-cmp .is-stop{background:var(--stop-bg)}
.wu-cmp .is-stop b{color:var(--stop)}
.wu-src{margin-top:8px;font-size:12.5px;line-height:18px;color:var(--muted)}
.wu-end{padding:16px 36px;border-top:1px solid var(--line);background:var(--inset);border-radius:0 0 12px 12px;font-size:12.5px;line-height:18px;color:var(--muted)}
.wu-note{margin-top:14px;text-align:center;font-size:13px;line-height:18px;color:var(--muted)}

/* ============ use cases: the fact line under each example's name ============ */
.facts{display:flex;flex-wrap:wrap;gap:8px}
.facts li{display:inline-flex;align-items:baseline;gap:6px;height:auto;padding:5px 10px;border:1px solid var(--line);border-radius:var(--r-sm);background:var(--surface);font-size:13px;line-height:18px;color:var(--ink-2)}
.facts li b{font-weight:500;color:var(--muted)}

/* ============ about: the founder's photo ============ */
.founder{display:flex;align-items:center;gap:16px;margin-top:36px}
.founder img{width:96px;height:96px;border-radius:20px;object-fit:cover;object-position:50% 20%;border:1px solid var(--line);box-shadow:var(--shadow-xs)}
.founder figcaption{font-size:14px;line-height:20px;color:var(--muted)}
.founder figcaption b{display:block;font-size:15px;color:var(--ink)}
.sig-face{flex:none;width:40px;height:40px;border-radius:50%;object-fit:cover;border:1px solid var(--line)}

/* ============ links inside running text ============ */
.sec-head .lead a,.booking-lead a,.faq .ans a{color:var(--accent);font-weight:500;text-decoration:none;text-underline-offset:3px}
.sec-head .lead a:hover,.booking-lead a:hover,.faq .ans a:hover{text-decoration:underline}
.booking .oo-acts{justify-content:center;margin-top:28px}

/* ============ responsive ============ */
@media (max-width:1100px){
  .ws{grid-template-columns:minmax(0,1fr) 32px minmax(0,1fr) 32px minmax(0,1fr)}
  .ws-chips{grid-template-columns:minmax(0,1fr)}
}
@media (max-width:900px){
  .ws{grid-template-columns:minmax(0,1fr);gap:0}
  .ws-chips{grid-template-columns:repeat(2,minmax(0,1fr))}
  .ws-link{height:40px}
  .ws-link::before{left:50%;right:auto;top:4px;bottom:10px;width:1px;height:auto}
  .ws-link::after{right:auto;left:calc(50% - 4px);top:auto;bottom:4px;transform:rotate(135deg)}
  .rules{justify-self:start}
  .send3{grid-template-columns:minmax(0,1fr)}
  .wu-sec{grid-template-columns:minmax(0,1fr);gap:6px}
}
@media (max-width:700px){
  .wu-top,.wu-sec,.wu-end{padding-left:20px;padding-right:20px}
  .wu-cmp{grid-template-columns:minmax(0,1fr)}
  .send3 > li{padding:28px 24px}
}
@media (max-width:420px){
  .desk-tab{padding:0 12px 0 4px;font-size:13.5px;gap:6px}
  .dt-ico{width:24px;height:24px}
  .ws-chips{grid-template-columns:minmax(0,1fr)}
}

/* ============ demurrage calculator (first "what one miss costs" tile) ============ */
.stat--calc .days,.stat--calc .days-lab{grid-template-columns:repeat(var(--n),minmax(0,1fr))}
.stat--calc .dl--free{grid-column:1/6}
.stat--calc .dl--hi{justify-self:start}
.calc{display:flex;flex-direction:column;gap:14px}
.calc-row{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:baseline;row-gap:8px;column-gap:12px;font-size:14px;line-height:20px;color:var(--ink-2)}
.calc-v{font:600 14px/20px var(--mono);font-variant-numeric:tabular-nums;color:var(--ink)}
.calc-row input{grid-column:1/-1;--p:16%;width:100%;height:24px;margin:0;background:transparent;-webkit-appearance:none;appearance:none;cursor:pointer}
.calc-row input::-webkit-slider-runnable-track{height:6px;border-radius:3px;background:linear-gradient(to right,var(--attn-dot) var(--p),var(--tint-2) var(--p))}
.calc-row input::-moz-range-track{height:6px;border-radius:3px;background:linear-gradient(to right,var(--attn-dot) var(--p),var(--tint-2) var(--p))}
.calc-row input::-webkit-slider-thumb{-webkit-appearance:none;width:20px;height:20px;margin-top:-7px;border-radius:50%;background:var(--surface);border:2px solid var(--attn-dot);box-shadow:0 1px 3px rgba(22,26,43,.18);transition:transform var(--dur) var(--ease)}
.calc-row input::-moz-range-thumb{width:16px;height:16px;border-radius:50%;background:var(--surface);border:2px solid var(--attn-dot);box-shadow:0 1px 3px rgba(22,26,43,.18)}
.calc-row input:hover::-webkit-slider-thumb{transform:scale(1.1)}
.calc-row input:focus-visible{outline:2px solid var(--accent);outline-offset:4px;border-radius:4px}
.stat--calc .big{font-variant-numeric:tabular-nums}

/* v10 · Use cases: four worked examples sit two by two */
.cs--4{grid-template-columns:repeat(2,minmax(0,1fr))}
@media (max-width:760px){.cs--4{grid-template-columns:minmax(0,1fr)}}
/* v10.3 · six jobs: two rows of three, then two by two, then one per row */
.isyou--6 > li,.isyou--6 > li:nth-child(n+4){grid-column:span 2}
@media (max-width:1100px){.isyou--6 > li,.isyou--6 > li:nth-child(n+4),.isyou--6 > li:last-child{grid-column:span 3}}
@media (max-width:640px){.isyou--6 > li,.isyou--6 > li:nth-child(n+4),.isyou--6 > li:last-child{grid-column:1/-1}}

