/* Why Capnix product widgets, home page tab showcase.
   Design: Figma Website page, "Home · Why Capnix · redesign (06-Oct-2026)": one warm brand
   plate for every tab, a larger white card (480px, 14px rows), clear done / next / later
   states, and the hover hint shown inside its row instead of a tooltip over the row above.

   Markup: each .jtabs__visual.has-plate holds a .wg-plate[data-widget] with one white .wg card.
   assets/js/why-widgets.js plays each widget's story with a macOS cursor when its tab opens;
   steps are the [data-cursor] elements. Every state is a class on the plate (.wg-armed, .is-in,
   .is-out, plus whatever a step names in data-state), so this file owns all motion. Without the
   script, or with reduced motion, a widget renders its first state. Loaded by Pages/Index.cshtml only. */

/* ---- Stage: the visual hands its frame to the plate ---- */
.jtabs__visual.has-plate { padding: 0; border: 0; background: none; display: block; }
/* This sheet loads before site.css (which arrives late, after the critical CSS). The plate is
   absolute and full-size, so the stage and its visuals must be its frame from the first paint:
   without these two rules the plate measured against the whole page and covered the hero. */
.jtabs__stage { position: relative; overflow: hidden; }
.jtabs__visual.has-plate { position: absolute; inset: 0; }

.wg-plate {
  /* Capnix palette: Success for done, Warning for in progress, neutrals for text and lines */
  --wg-ok: #0E9F43; --wg-ok-bg: #EAFFF1; --wg-ok-bar: #17C653; --wg-ok-line: #BAEECC; --wg-ok-tint: #F3FCF6;
  --wg-mid: #C59A00; --wg-mid-bg: #FFF8DD; --wg-mid-bar: #F6B100;
  --wg-line: #EBEDF3; --wg-soft: #F5F6F9; --wg-note: #F9F9FB; --wg-border: #DBDFE9; --wg-track: #EBEDF3;
  --wg-head: #071437; --wg-text: #252F4A; --wg-sub: #4B5675; --wg-muted: #99A1B7; --wg-faint: #78829D;
  --wg-ink: #0A0A0F; --wg-ink-hot: #252F4A;
  --wg-accent: #FA4028; --wg-accent-bg: rgba(250, 64, 40, .08); --wg-accent-ink: #FA4028;
  --wg-well: rgba(75, 86, 117, .08);
  --wg-ease: cubic-bezier(.22,1,.36,1); --wg-spring: cubic-bezier(.34,1.56,.64,1);
  position: absolute; inset: 0; padding: 40px; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  /* One warm brand plate for every tab: vermilion tint with a soft white glow top right
     and a vermilion glow bottom left. */
  background:
    radial-gradient(60% 55% at 85% 0%, rgba(255, 255, 255, .7), transparent 70%),
    radial-gradient(55% 50% at 0% 100%, rgba(250, 64, 40, .16), transparent 70%),
    linear-gradient(135deg, #FFF4F1 0%, #FCD9CF 100%);
}

.wg { position: relative; z-index: 1; width: 100%; max-width: 480px; display: flex; flex-direction: column; gap: 16px;
  background: #fff; padding: 24px 24px 20px; border-radius: 16px;
  box-shadow: 0 24px 48px -8px rgba(10,10,15,.10), 0 2px 6px rgba(10,10,15,.06);
  color: var(--wg-text); font-size: 14px; line-height: 1.4; }

/* Corner shapes: squircle on every part with a partial radius; true round on the fully
   rounded ones (pills, chips, tracks and fills, avatars, dots, spinner). */
.wg-plate, .wg-plate * { -webkit-corner-shape: squircle; corner-shape: squircle; }
.wg-pill > span, .wg-pill > span::before, .wg-chip, .wg-tag, .wg-track, .wg-track > i, .wg-av, .wg-dot, .wg-btn,
.wg-btn .spin, .wg-cursor::after, .ap-chk, .lm-sent, .lm-fit, .wg-ai, .wg-chip__add, .wg-toast, .wg-av::after { -webkit-corner-shape: round; corner-shape: round; }

.wg .icx { width: 1em; height: 1em; display: block; flex: none; }

/* entrance: every .wg-in element rises in on its own --i step */
.wg-in { transition: opacity .55s var(--wg-ease), transform .55s var(--wg-ease); transition-delay: calc(var(--i, 0) * 90ms); }
.wg-armed:not(.is-in) .wg-in { opacity: 0; transform: translateY(10px); }
.is-out .wg-in { opacity: 0; transform: translateY(-6px); transition-duration: .35s; transition-delay: 0s; }

/* header */
.wg-head { display: flex; align-items: flex-start; gap: 12px; }
.wg-hic { width: 40px; height: 40px; border-radius: 12px; flex: none; display: flex; align-items: center; justify-content: center; background: var(--wg-accent-bg); color: var(--wg-accent-ink); font-size: 22px; }
.wg-htext { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1; }
.wg-title { font-size: 18px; font-weight: 600; color: var(--wg-head); letter-spacing: -.01em; line-height: 1.3; }
.wg-sub { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 8px; font-size: 14px; color: var(--wg-sub); line-height: 1.4; }
.wg-ai { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 600; color: #7239EA; background: #F3EBFF; border-radius: 999px; padding: 2px 8px 2px 6px; }
.wg-ai .icx { width: 12px; height: 12px; }
.wg-tag { flex: none; align-self: flex-start; font-size: 12px; font-weight: 600; font-variant-numeric: tabular-nums; color: var(--wg-accent-ink); background: var(--wg-accent-bg); padding: 4px 10px; border-radius: 999px; white-space: nowrap; }
.wg-label { font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--wg-faint); }
.wg-note { display: flex; align-items: center; gap: 8px; font-size: 12px; line-height: 1.4; color: var(--wg-faint); padding: 12px; border-radius: 10px; background: var(--wg-note); }
.wg-note .icx { width: 16px; height: 16px; color: var(--wg-faint); }

/* status pill that swaps its wording when the story applies a change */
.wg-pill { display: inline-grid; flex: none; font-size: 12px; font-weight: 600; white-space: nowrap; }
.wg-pill > span { grid-area: 1/1; display: inline-block; line-height: 1.4; padding: 4px 10px 4px 8px; border-radius: 999px; transition: opacity .4s var(--wg-ease), transform .5s var(--wg-spring); }
.wg-pill > span::before { content: ""; width: 6px; height: 6px; margin-right: 6px; border-radius: 50%; display: inline-block; vertical-align: 1px; }
.p-ok { color: var(--wg-ok); background: var(--wg-ok-bg); }
.p-ok::before { background: var(--wg-ok-bar); }
.p-mid { color: var(--wg-mid); background: var(--wg-mid-bg); }
.p-mid::before { background: var(--wg-mid-bar); }
.wg-pill .after { opacity: 0; transform: translateY(6px) scale(.9); }
.is-applied .wg-pill .before { opacity: 0; transform: translateY(-6px) scale(.9); }
.is-applied .wg-pill .after { opacity: 1; transform: none; }

/* text that swaps on .is-applied */
.wg-swap { display: inline-grid; }
.wg-swap > span { grid-area: 1/1; transition: opacity .3s, transform .45s var(--wg-spring); }
.wg-swap .after { opacity: 0; transform: translateY(6px); }
.is-applied .wg-swap .before { opacity: 0; transform: translateY(-6px); }
.is-applied .wg-swap .after { opacity: 1; transform: none; transition-delay: .35s; }

/* chips and buttons the cursor presses */
.wg-chip { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 500; color: var(--wg-text); background: #fff; border: 1px dashed var(--wg-border); border-radius: 999px; padding: 6px 8px 6px 8px; transition: background .25s, border-color .25s, color .25s, transform .12s var(--wg-ease); }
.wg-chip .icx { width: 16px; height: 16px; color: var(--wg-sub); transition: color .2s; }
.wg-chip .wg-chip__ok { display: none; color: var(--wg-ok-bar); }
.wg-chip__add { font-size: 12px; font-weight: 600; color: #fff; background: var(--wg-accent); border-radius: 999px; padding: 2px 8px; }
.wg-chip.is-hot { background: var(--wg-soft); border-color: var(--wg-accent); }
.wg-chip.is-on, .wg-chip.on { background: var(--wg-ok-bg); border: 1px solid #CFF5DC; color: var(--wg-ok); padding-right: 10px; }
.wg-chip.is-on .icx, .wg-chip.on .icx { color: var(--wg-ok); }
.wg-chip.is-on .wg-chip__ok, .wg-chip.on .wg-chip__ok { display: block; color: var(--wg-ok-bar); }
.wg-chip.is-on .wg-chip__ok { animation: wg-pop .35s var(--wg-spring); }
.wg-chip.is-on .wg-chip__add { display: none; }
.wg-btn { position: relative; display: inline-flex; align-items: center; gap: 8px; flex: none; height: 36px; font-size: 14px; font-weight: 600; color: #fff; background: var(--wg-ink); border-radius: 999px; padding: 0 16px 0 14px; white-space: nowrap; transition: background .2s, opacity .35s, transform .12s var(--wg-ease); }
.wg-btn .icx { width: 16px; height: 16px; }
.wg-btn.is-hot { background: var(--wg-ink-hot); }
.wg-btn .spin { display: none; position: absolute; left: 50%; top: 50%; margin: -7px 0 0 -7px; width: 14px; height: 14px; border-radius: 50%; border: 2px solid rgba(255,255,255,.4); border-top-color: #fff; animation: wg-spin .7s linear infinite; }
.wg-btn.is-busy { background: var(--wg-ink-hot); color: transparent; }
.wg-btn.is-busy .spin { display: inline-block; }
.wg-btn.is-busy .icx { visibility: hidden; }
.is-press { transform: scale(.95); }
@keyframes wg-spin { to { transform: rotate(360deg); } }
@keyframes wg-pop { 0% { transform: scale(.4); } 100% { transform: scale(1); } }

/* hint a hover step reveals inside its own row (never over the row above) */
.wg-tip { display: block; max-height: 0; overflow: hidden; opacity: 0; font-size: 12px; font-weight: 400; line-height: 1.4; color: var(--wg-sub); white-space: normal;
  transition: max-height .45s var(--wg-ease), opacity .3s, margin .45s var(--wg-ease); pointer-events: none; }
.is-hover [data-cursor="hover"] .wg-tip { max-height: 40px; opacity: 1; transition-delay: .2s; }

/* scripted cursor */
.wg-cursor { position: absolute; z-index: 5; top: 0; left: 0; width: 22px; height: 22px; margin: -3px 0 0 -5px; pointer-events: none; opacity: 0;
  transform: translate3d(110%, 80%, 0); transition: transform .9s cubic-bezier(.65,0,.25,1), opacity .35s; }
.wg-cursor.is-on { opacity: 1; }
.wg-cursor.no-tr { transition: none; }
.wg-cursor svg { width: 22px; height: 22px; display: block; position: absolute; top: 0; left: 0; }
.wg-cursor .c-hand { display: none; transform: translate(-3px, 1px); }
.wg-cursor.is-hand .c-arrow { display: none; }
.wg-cursor.is-hand .c-hand { display: block; }
.wg-cursor::after { content: ""; position: absolute; left: -6px; top: -8px; width: 22px; height: 22px; border-radius: 50%; border: 1.5px solid var(--wg-accent); opacity: 0; transform: scale(.3); }
.wg-cursor.is-click::after { animation: wg-ripple .5s var(--wg-ease); }
@keyframes wg-ripple { 0% { opacity: .6; transform: scale(.3); } 100% { opacity: 0; transform: scale(1.3); } }

/* progress track: --w is the first state, --w2 the state after the step that names .is-applied */
.wg-track { position: relative; height: 6px; border-radius: 999px; background: var(--wg-track); }
.wg-track > i { position: absolute; inset: 0 auto 0 0; width: var(--w); border-radius: 999px; background: var(--wg-accent); transition: width 1s var(--wg-ease), background-color .6s; transition-delay: calc(.3s + var(--c, 0) * 90ms); }
.wg-armed:not(.is-in) .wg-track > i { width: 0; }
.is-applied .wg-track > i { width: var(--w2, var(--w)); transition-delay: calc(.15s + var(--c, 0) * 120ms); }

.wg-av { position: relative; width: 36px; height: 36px; border-radius: 50%; flex: none; background: var(--wg-line); }
.wg-av.is-live::after { content: ""; position: absolute; right: -1px; bottom: -1px; width: 10px; height: 10px; border-radius: 50%; background: var(--wg-ok-bar); border: 2px solid #fff; }
.wg-av img, .wg-av picture { width: 100%; height: 100%; display: block; border-radius: 50%; object-fit: cover; }

/* toast that confirms the story's action, rising from the plate's foot */
.wg-toast { position: absolute; left: 50%; bottom: 16px; z-index: 4; display: inline-flex; align-items: center; gap: 8px; max-width: calc(100% - 40px); white-space: nowrap;
  font-size: 14px; font-weight: 600; color: #fff; background: var(--wg-ink); border-radius: 999px; padding: 8px 16px 8px 10px;
  box-shadow: 0 12px 28px -12px rgba(7,20,55,.5); opacity: 0; transform: translate(-50%, 14px) scale(.96); transition: opacity .35s, transform .5s var(--wg-spring); pointer-events: none; }
.wg-toast .icx { width: 18px; height: 18px; color: var(--wg-ok-bar); }
.is-applied .wg-toast { opacity: 1; transform: translate(-50%, 0) scale(1); transition-delay: 1.1s; }
.is-out .wg-toast { opacity: 0; transition-delay: 0s; }

/* shared row: icon well left, content, value right; hover highlights the row */
.st-ic, .fr-ic { width: 32px; height: 32px; border-radius: 10px; flex: none; display: flex; align-items: center; justify-content: center; background: var(--wg-well); color: var(--wg-sub); font-size: 18px; }

/* ---- 0 · Borrowing strength ---- */
.st-src { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.st-src .wg-label { flex-basis: 100%; margin-bottom: 2px; }
.st-rows { display: flex; flex-direction: column; gap: 4px; }
.st-row { position: relative; display: grid; grid-template-columns: 32px 1fr auto; grid-template-areas: "ic name val" "ic track track" "ic tip tip";
  align-items: center; column-gap: 12px; row-gap: 8px; padding: 10px; margin: 0 -2px; border-radius: 10px; transition: background .3s; }
.st-ic { grid-area: ic; align-self: start; }
.st-name { grid-area: name; font-weight: 500; color: var(--wg-head); }
.st-row .wg-track { grid-area: track; }
.st-row .wg-track > i { background: var(--wg-mid-bar); }
.is-applied .st-row .wg-track > i { background: var(--wg-ok-bar); }
.st-val { grid-area: val; justify-self: end; font-size: 12px; font-weight: 600; color: var(--wg-ok); white-space: nowrap; }
.st-val .before { color: var(--wg-mid); }
.st-row .wg-tip { grid-area: tip; }
.st-row .wg-tip { margin-top: -8px; } /* cancels the row gap while the hint is closed */
.is-hover .st-row[data-cursor="hover"] .wg-tip { margin-top: 0; }
.is-hover .st-row[data-cursor] { background: var(--wg-soft); }

/* ---- 1 · Application run by one team ---- */
.ap-steps { display: flex; flex-direction: column; gap: 0; }
.ap-step:not(:last-child)::after { content: ""; position: absolute; left: 18px; top: 34px; bottom: -8px; width: 2px; border-radius: 1px; background: var(--wg-line); transition: background .4s .3s; }
.ap-step.done::after, .is-applied .ap-step.next::after { background: var(--wg-ok-line); }
.ap-step { position: relative; display: grid; grid-template-columns: 22px 1fr auto; align-items: center; column-gap: 12px; padding: 10px 8px; margin: 0 -2px; border-radius: 10px; transition: background .3s; }
.ap-chk { position: relative; z-index: 1; width: 22px; height: 22px; border-radius: 50%; display: flex; align-items: center; justify-content: center; border: 1.5px solid #C4CADA; background: #fff; color: #fff;
  transition: background .35s, border-color .35s, transform .45s var(--wg-spring); transition-delay: calc(.4s + var(--c, 0) * 140ms); }
.ap-chk .icx { width: 14px; height: 14px; color: #fff; opacity: 0; transition: opacity .2s; transition-delay: inherit; }
.ap-step.done .ap-chk, .is-applied .ap-step.next .ap-chk { background: var(--wg-ok-bar); border-color: var(--wg-ok-bar); }
.ap-step.done .ap-chk .icx, .is-applied .ap-step.next .ap-chk .icx { opacity: 1; }
.wg-armed:not(.is-in) .ap-step.done .ap-chk { transform: scale(0); }
.is-applied .ap-step.next .ap-chk { transition-delay: .2s; animation: wg-pop .4s var(--wg-spring) .2s both; }
.ap-step.later:not(.now) .ap-chk { border-style: dashed; border-color: var(--wg-border); }
.ap-step.now .ap-chk { border-color: #C4CADA; }
.is-applied .ap-step.now .ap-chk { border-color: var(--wg-accent); box-shadow: 0 0 0 4px var(--wg-accent-bg); animation: ap-pulse 1.6s var(--wg-ease) .6s infinite; }
@keyframes ap-pulse { 50% { box-shadow: 0 0 0 7px transparent; } }
.ap-step.next .ap-chk { border-color: var(--wg-accent); }
.is-applied .ap-step.next .ap-chk { box-shadow: none; }
.ap-txt { font-weight: 500; color: var(--wg-head); }
.ap-step.later .ap-txt { font-weight: 400; color: var(--wg-muted); }
.is-applied .ap-step.now .ap-txt { color: var(--wg-head); font-weight: 500; }
.ap-day { font-size: 12px; font-weight: 600; color: var(--wg-faint); white-space: nowrap; }
.ap-step.next .ap-day { color: var(--wg-accent); }
.ap-step.later .ap-day { color: var(--wg-muted); }
.is-applied .ap-step.next .ap-day { color: var(--wg-faint); }
.is-applied .ap-step.now .ap-day { color: var(--wg-accent); }
.ap-step .wg-tip { grid-column: 2 / -1; }
.is-hover .ap-step[data-cursor] { background: var(--wg-soft); }
.ap-foot { display: flex; align-items: center; gap: 12px; padding-top: 16px; border-top: 1px solid var(--wg-line); }
.ap-who { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1; }
.ap-who b { font-size: 14px; font-weight: 600; color: var(--wg-head); }
.ap-who .wg-swap { font-size: 12px; color: var(--wg-sub); }
.ap-foot .wg-btn { max-width: 140px; overflow: hidden; transition: opacity .3s, transform .3s var(--wg-ease), max-width .45s var(--wg-ease), padding .45s, margin .45s; }
.is-applied .ap-foot .wg-btn { opacity: 0; transform: scale(.9); max-width: 0; padding-left: 0; padding-right: 0; margin-left: -12px; }

/* ---- 2 · Lender match ---- */
.lm-rows { display: flex; flex-direction: column; gap: 4px; }
.lm-row { position: relative; display: grid; grid-template-columns: 36px 1fr auto; align-items: center; column-gap: 12px; padding: 10px 10px 10px 8px; margin: 0 -2px; border-radius: 10px; transition: background .3s; }
.lm-logo { width: 36px; height: 36px; border-radius: 10px; display: flex; align-items: center; justify-content: center; background: #fff; border: 1px solid var(--wg-line); color: var(--wg-head); font-size: 20px; }
.lm-main { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.lm-name { font-weight: 500; color: var(--wg-head); white-space: nowrap; }
.lm-row .wg-track > i { background: var(--wg-ok-bar); }
.lm-row:nth-child(3) .wg-track > i { background: var(--wg-mid-bar); }
.lm-end { justify-self: end; display: inline-grid; justify-items: end; }
.lm-end > span { grid-area: 1/1; transition: opacity .3s, transform .45s var(--wg-spring); }
.lm-fit { font-size: 12px; font-weight: 600; color: var(--wg-ok); background: var(--wg-ok-bg); border-radius: 999px; padding: 4px 10px; white-space: nowrap; }
.lm-fit.soft { color: var(--wg-mid); background: var(--wg-mid-bg); }
.lm-sent { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 600; color: var(--wg-ok); background: var(--wg-ok-bg); border-radius: 999px; padding: 4px 10px 4px 6px; opacity: 0; transform: translateY(6px) scale(.9); }
.lm-sent .icx { width: 14px; height: 14px; color: var(--wg-ok-bar); }
.is-applied .lm-fit { opacity: 0; transform: translateY(-6px); transition-delay: calc(var(--c, 0) * 160ms); }
.is-applied .lm-sent { opacity: 1; transform: none; transition-delay: calc(.2s + var(--c, 0) * 160ms); }
.lm-row .wg-tip { grid-column: 2 / -1; }
.is-hover .lm-row[data-cursor] { background: var(--wg-soft); }
.lm-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 16px; border-top: 1px solid var(--wg-line); }
.lm-foot .wg-swap { font-size: 14px; font-weight: 500; color: var(--wg-head); }
.lm-foot .wg-btn { max-width: 160px; overflow: hidden; transition: opacity .3s, transform .3s var(--wg-ease), max-width .45s var(--wg-ease), padding .45s, margin .45s; }
.is-applied .lm-foot .wg-btn { opacity: 0; transform: scale(.9); max-width: 0; padding-left: 0; padding-right: 0; margin-left: -12px; }

/* ---- 3 · Getting funded is free ---- */
.fr-total { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 20px; border-radius: 12px; background: var(--wg-ok-bg); }
.fr-total__label { font-size: 16px; font-weight: 500; color: var(--wg-ok); }
.fr-total__amt { font-family: var(--font-display); font-size: 40px; font-weight: 400; line-height: 1; letter-spacing: -.02em; color: var(--wg-ok); font-variant-numeric: tabular-nums; }
.fr-rows { display: flex; flex-direction: column; }
.fr-row { position: relative; display: grid; grid-template-columns: 1fr auto; align-items: center; column-gap: 12px; padding: 10px 10px 10px 8px; margin: 0 -2px; border-radius: 10px; transition: background .3s; }
.fr-name { display: inline-flex; align-items: center; gap: 12px; font-weight: 500; color: var(--wg-head); }
.fr-amt { font-size: 16px; font-weight: 600; font-variant-numeric: tabular-nums; color: var(--wg-ok); }
.fr-row .wg-tip { grid-column: 1 / -1; padding-left: 44px; }
.is-hover .fr-row[data-cursor] { background: var(--wg-soft); }
.fr-qa { display: grid; }
.fr-qa > * { grid-area: 1/1; }
.fr-ask { display: flex; align-items: center; justify-content: flex-end; transition: opacity .3s, transform .4s var(--wg-ease); }
.fr-ask .wg-chip { border: 0; padding: 8px 14px 8px 10px; font-weight: 600; color: var(--wg-accent); background: var(--wg-accent-bg); }
.fr-ask .wg-chip .icx { color: var(--wg-accent); }
.fr-ask .wg-chip.is-hot { background: rgba(250, 64, 40, .14); }
.fr-ans { opacity: 0; transform: translateY(8px); transition: opacity .4s, transform .5s var(--wg-spring); }
.fr-ans-in { display: flex; align-items: center; gap: 12px; padding: 12px 14px 12px 12px; border-radius: 12px; background: var(--wg-soft); }
.fr-ans-ic { width: 32px; height: 32px; border-radius: 10px; flex: none; display: flex; align-items: center; justify-content: center; background: #fff; color: var(--wg-head); font-size: 18px; }
.fr-ans b { display: block; font-size: 14px; font-weight: 600; color: var(--wg-head); }
.fr-ans span { font-size: 12px; color: var(--wg-sub); }
.is-applied .fr-ask { opacity: 0; transform: translateY(-6px); pointer-events: none; }
.is-applied .fr-ans { opacity: 1; transform: none; transition-delay: .2s; }

@media (prefers-reduced-motion: reduce) {
  .wg-cursor { display: none; }
}

/* ===== About-tile style (matches "What working with Capnix gets you" on About) =====
   Flat #ECECE7 plate, square corners, no gradient; the card is frosted white with a 24px
   squircle and a soft warm shadow; icon wells are round primary tints; inner fills are warm. */
.jtabs__stage { border-radius: 0; }
.wg-plate {
  --wg-soft: rgba(236, 236, 231, .55); --wg-note: rgba(236, 236, 231, .45); --wg-well: rgba(250, 64, 40, .08);
  --wg-line: #E8E8E2; --wg-track: #E8E8E2;
  background: #ECECE7;
}
.wg { border-radius: 24px; background: rgba(255, 255, 255, .85); border: 1px solid rgba(255, 255, 255, .95);
  box-shadow: 0 30px 50px -30px rgba(40, 30, 25, .3); }
.wg-hic, .st-ic, .fr-ic, .lm-logo { border-radius: 999px; -webkit-corner-shape: round; corner-shape: round; border: 0;
  background: rgba(250, 64, 40, .08); color: var(--wg-accent); }
.fr-ans-ic { border-radius: 999px; -webkit-corner-shape: round; corner-shape: round; color: var(--wg-accent); }
.wg-note { border-radius: 12px; }

/* ===== Founder-first widgets: each answers one question in plain words ===== */
/* 0 · What a lender reads: a six-month sales chart, three plain findings, the consent line */
.sl-chart { display: flex; flex-direction: column; gap: 10px; padding: 14px 14px 12px; border-radius: 14px; background: var(--wg-soft); }
.sl-head { display: flex; align-items: center; justify-content: space-between; }
.sl-trend { font-size: 12px; font-weight: 500; color: var(--wg-faint); }
.sl-bars { display: grid; grid-template-columns: repeat(6, 1fr); align-items: end; gap: 8px; height: 64px; }
.sl-bars i { display: block; height: var(--h); border-radius: 6px 6px 2px 2px; background: rgba(250, 64, 40, .22);
  transform-origin: bottom; transition: transform .7s var(--wg-spring), background .4s; transition-delay: calc(.3s + var(--c, 0) * 80ms); }
.sl-bars i:last-child { background: var(--wg-accent); }
.wg-armed:not(.is-in) .sl-bars i { transform: scaleY(0); }
.sf-list { display: flex; flex-direction: column; gap: 2px; }
.sf-row { position: relative; display: grid; grid-template-columns: 10px 1fr; align-items: center; column-gap: 12px; padding: 8px 10px; margin: 0 -2px; border-radius: 10px; font-weight: 500; color: var(--wg-head); transition: background .3s; }
.sf-row .wg-tip { grid-column: 2; }
.sf-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--wg-mid-bar); transition: background .4s, transform .45s var(--wg-spring); transition-delay: calc(.2s + var(--c, 0) * 200ms); }
.sf-row.is-known .sf-dot, .is-applied .sf-dot { background: var(--wg-ok-bar); }
.is-applied .sf-row:not(.is-known) .sf-dot { animation: wg-pop .4s var(--wg-spring) both; animation-delay: calc(.2s + var(--c, 0) * 200ms); }
.sf-row:not(.is-known) .before { color: var(--wg-faint); font-weight: 400; }
.is-hover .sf-row[data-cursor] { background: var(--wg-soft); }
.sf-consent, .lm-file { display: flex; align-items: center; gap: 12px; padding-top: 14px; border-top: 1px dashed var(--wg-line); }
.sf-consent__txt, .lm-file__txt { display: flex; flex-direction: column; gap: 2px; }
.sf-consent__txt b, .lm-file__txt b { font-size: 14px; font-weight: 600; color: var(--wg-head); }
.sf-consent__txt span, .lm-file__txt span { font-size: 12px; color: var(--wg-sub); }
.sf-consent .st-ic, .lm-file .st-ic { width: 32px; height: 32px; font-size: 18px; }
.wg-plate[data-widget="strength"] .wg { gap: 14px; }

/* 1 · Who does what: an owner tag on every step */
.ap-own { font-size: 12px; font-weight: 600; white-space: nowrap; padding: 3px 10px; border-radius: 999px; -webkit-corner-shape: round; corner-shape: round;
  color: var(--wg-accent); background: var(--wg-accent-bg); }
.ap-own.is-you { color: var(--wg-head); background: rgba(7, 20, 55, .06); }
.ap-own.is-lender { color: var(--wg-faint); background: transparent; border: 1px dashed var(--wg-border); }
.ap-step.later .ap-own:not(.is-lender) { opacity: .6; }
.is-applied .ap-step.now .ap-own { opacity: 1; }

/* 2 · One file to matched lenders, against going alone */
.lm-file { padding: 12px 14px; border: 0; border-radius: 14px; background: var(--wg-soft); position: relative; }
.lm-file::after { content: ""; position: absolute; left: 30px; bottom: -14px; width: 2px; height: 14px; background: var(--wg-line); }
.lm-alone { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--wg-faint); text-decoration: line-through; text-decoration-color: rgba(120, 130, 157, .5); }
.lm-alone .icx { width: 14px; height: 14px; color: var(--wg-muted); flex: none; }

/* ===== Minimal pass: smaller card, fewer lines, lighter type, more air ===== */
.wg { max-width: 400px; gap: 14px; padding: 20px; }
.wg-head { align-items: center; gap: 10px; }
.wg-hic { width: 34px; height: 34px; font-size: 18px; }
.wg-title { font-size: 16px; font-weight: 600; }
.wg-sub { font-size: 12px; color: var(--wg-faint); }
.wg-pill { font-size: 12px; }
.wg-note { padding: 0; background: none; font-size: 12px; }
.wg-note .icx { width: 14px; height: 14px; }
.wg-chip { font-size: 12px; padding: 4px 8px; }
.wg-chip .icx { width: 14px; height: 14px; }
.st-src { gap: 6px; }
.sl-chart { padding: 12px; gap: 8px; }
.sl-bars { height: 48px; gap: 6px; }
.sf-row, .ap-step, .lm-row, .fr-row { padding: 7px 8px; font-size: 14px; }
.ap-step:not(:last-child)::after { top: 30px; bottom: -6px; left: 17px; }
.ap-chk { width: 20px; height: 20px; }
.ap-foot, .lm-foot { padding-top: 12px; }
.ap-who .wg-swap, .lm-said { font-size: 12px; color: var(--wg-sub); }
.wg-btn { height: 32px; font-size: 14px; padding: 0 14px 0 12px; }
.lm-row { grid-template-columns: 30px 1fr auto; }
.lm-logo { width: 30px; height: 30px; font-size: 16px; }
.lm-name { font-size: 14px; }
.fr-total { padding: 12px 16px; }
.fr-total__label { font-size: 14px; }
.fr-total__amt { font-size: 32px; }
.fr-ic { width: 28px; height: 28px; font-size: 16px; }
.fr-name { gap: 10px; }
.fr-amt { font-size: 14px; }
.fr-ans-in { padding: 10px 12px; }
.fr-ans b { font-size: 14px; }
.wg-toast { font-size: 14px; padding: 7px 14px 7px 9px; }

/* Liquid-glass pointer: 24-unit shapes drawn at 28px; the pane blurs what is under it. */
.wg-cursor { width: 28px; height: 28px; }
.wg-cursor .c-arrow, .wg-cursor .c-hand { position: absolute; top: 0; left: 0; width: 24px; height: 24px; scale: 1.1667; transform-origin: 0 0; }
.wg-cursor .c-arrow svg, .wg-cursor .c-hand svg { position: absolute; inset: 0; width: 24px; height: 24px; overflow: visible; filter: none; }
.wg-cursor .c-glass { position: absolute; inset: 0;
  background: linear-gradient(140deg, rgba(255, 255, 255, .78) 0%, rgba(233, 243, 255, .42) 45%, rgba(27, 132, 255, .32) 100%);
  -webkit-backdrop-filter: blur(3px) saturate(1.8); backdrop-filter: blur(3px) saturate(1.8); }

/* Toast lives inside the white card: it opens as the last row once the story applies. */
.wg .wg-toast { position: relative; left: auto; bottom: auto; align-self: center; max-width: 100%; max-height: 0; margin-top: -14px; padding-top: 0; padding-bottom: 0; overflow: hidden;
  box-shadow: none; transform: translateY(8px) scale(.96);
  transition: opacity .35s, transform .5s var(--wg-spring), max-height .45s var(--wg-ease), margin .45s var(--wg-ease), padding .45s var(--wg-ease); }
.is-applied .wg .wg-toast { max-height: 44px; margin-top: 0; padding-top: 7px; padding-bottom: 7px; transform: none; transition-delay: 1.1s; }
.is-out .wg .wg-toast { transition-delay: 0s; }

/* Photo plate: the warm paper-curve image fills every widget's stage behind the white card. */
.wg-plate { background: #F8C4B0; }
.wg-plate .wg-bg, .wg-plate .wg-bg img { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.wg-plate .wg-bg img { object-fit: cover; object-position: center top; }
.wg-plate .wg { box-shadow: 0 30px 60px -24px rgba(90, 20, 0, .45), 0 2px 6px rgba(90, 20, 0, .12); background: rgba(255, 255, 255, .94); }
.wg-plate > picture { position: absolute; inset: 0; display: block; }
.wg-plate img.wg-bg { object-fit: cover; object-position: center top; }
/* Square photo in a square stage: shown whole, no crop, no overlay, no blur. */
.wg-plate img.wg-bg { inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; }
/* The white card fills the image card, 50px in from every side; its rows spread to fill the height. */
.wg-plate { padding: 50px; align-items: stretch; justify-content: stretch; }
.wg-plate .wg { max-width: none; width: 100%; height: 100%; justify-content: space-between; overflow: hidden; }
.wg-plate .wg { border-radius: 0; }
.ap-chk .icx { width: 16px; height: 16px; }
.wg-plate .wg { box-shadow: none; }
.wg-plate .wg { background: #fff; border-color: #fff; }

.c-glass--arrow { clip-path: path('M5 3v16.6l3.9-3.7 2.8 6.3 2.9-1.25-2.75-6.2h5.45z'); }
.c-glass--hand { clip-path: path('M8.5 2.2c.8 0 1.5.7 1.5 1.5V10h.3V8.8c0-.8.7-1.4 1.5-1.4s1.5.6 1.5 1.4V10h.3V9.6c0-.8.7-1.4 1.5-1.4s1.5.6 1.5 1.4v1h.2c0-.8.7-1.3 1.4-1.3.8 0 1.4.6 1.4 1.4v5.1c0 3.3-2.4 6-5.7 6h-1.8c-1.8 0-3.2-.8-4.2-2.2L4 14.6c-.5-.7-.3-1.6.4-2 .6-.4 1.4-.3 1.9.2L7 13.9V3.7c0-.8.7-1.5 1.5-1.5z'); }
