/* Sheet landing v4 (DEV-W170 round 2, inc/partials/sheet-landing-v4.php).
 * Built from scratch on the locked system: tokens from theme.css, buttons
 * var(--radius), chips var(--radius-sm), only dots round. Loaded after
 * sheet-landing.css and sheet-landing-v3.css (the table + dialog rules reused).
 * Every animation stops under prefers-reduced-motion.
 */

.sl4 {
  --sl4-gold: #C9A646;
  --sl4-gold-hi: #D9B860;
  --sl4-gold-soft: rgba(217, 184, 96, .18);
  --sl4-ink: #1F1E1A;
  --sl4-paper: #FDFCFA;
  --sl4-cream: #F3EFE6;
  --sl4-muted: #B9B4A6;
  --sl4-shadow: 0 1px 2px rgba(31, 30, 26, .06), 0 24px 60px -24px rgba(31, 30, 26, .34);
}

/* ---- 8. hero: the workbook itself ---- */
.sl4-hero { padding-top: var(--page-top); }
.sl4-hero-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 52px; align-items: center; }
.sl4 .sl4-hero-copy h1 { font-size: clamp(34px, 3.6vw, 54px); letter-spacing: -0.02em; line-height: 1.04; margin: 14px 0 0; }
.sl4-sub { margin: 18px 0 0; color: var(--ink-muted); font-size: 16px; line-height: 1.6; max-width: 44ch; }
.sl4-fmt { margin: 16px 0 0; font-family: var(--sl-ui); font-size: 13px; color: var(--ink-muted); }
.sl4-buy-wrap { margin-top: 22px; }
.sl4-buy { margin-top: 12px; }
.sl4-buy-wrap .sl-fine a { color: inherit; }

.sl4-app { min-width: 0; background: var(--sl4-paper); border: 1px solid rgba(31, 30, 26, .1); border-radius: var(--radius); box-shadow: var(--sl4-shadow); overflow: hidden; color: #1F1E1A; }
.sl4-bar { display: flex; align-items: center; gap: 10px; height: 46px; padding: 0 10px 0 14px; border-bottom: 1px solid rgba(31, 30, 26, .1); background: #F6F4EF; font: 500 13px/1 var(--sl-ui); }
.sl4-file { display: flex; align-items: center; gap: 8px; min-width: 0; flex: 1; color: #3b3934; }
.sl4-file svg { flex: none; color: var(--sl4-gold); }
.sl4-file > span:not(.sl4-file-tab) { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sl4-file-tab { flex: none; padding: 4px 8px; border-radius: var(--radius-sm); background: #EAE6DD; color: #5d5a52; font-size: 12px; }
.sl4-ed { display: inline-flex; padding: 3px; gap: 2px; border-radius: var(--radius-sm); background: #EAE6DD; }
.sl4-ed[data-off] { visibility: hidden; }
.sl4-ed button { display: inline-flex; align-items: center; gap: 5px; border: 0; background: transparent; color: #5d5a52; font: 500 12.5px/1 var(--sl-ui); padding: 6px 9px; border-radius: 4px; cursor: pointer; min-height: 30px; }
.sl4-ed button[aria-pressed="true"] { background: #fff; color: #1F1E1A; box-shadow: 0 1px 2px rgba(0, 0, 0, .12); }
.sl4-ed button[data-sl4-mode="night"][aria-pressed="true"], .sl4-ed button[data-sl4-wipe="night"][aria-pressed="true"] { background: var(--sl4-ink); color: var(--sl4-gold-hi); }
.sl4-zoombtn { display: inline-flex; align-items: center; gap: 6px; border: 1px solid rgba(31, 30, 26, .14); background: #fff; color: #1F1E1A; font: 500 12.5px/1 var(--sl-ui); padding: 0 10px; height: 32px; border-radius: var(--radius-sm); cursor: zoom-in; }

.sl4-stage { position: relative; aspect-ratio: 5 / 4; overflow: hidden; background: var(--sl4-paper); }
.sl4-pane { position: absolute; inset: 0; }
.sl4-pane[hidden], .sl4-pic[hidden] { display: none; }
.sl4-pic { position: absolute; top: 0; cursor: zoom-in; }
.sl4-pic.is-wide { left: 0; width: 100%; }
.sl4-pic.is-tall { height: 100%; left: 50%; transform: translateX(-50%); }
.sl4-pic .sl4-shot { display: block; width: 100%; height: 100%; object-fit: fill; }
.sl4-night { background: var(--sl4-ink); }
.sl4-night .sl4-shot { object-fit: cover; object-position: top center; }
.sl4-pane, .sl4-pic { animation: sl4-in .45s ease both; }
@keyframes sl4-in { from { opacity: 0; } }

/* ---- 3. rings on the cells that matter ---- */
.sl4-ring {
  position: absolute; width: 40px; height: 40px; margin: -20px 0 0 -20px; padding: 0; border-radius: 50%;
  border: 2px solid var(--sl4-gold); background: transparent; cursor: pointer; z-index: 2;
}
/* Hollow on purpose: the ring marks a figure, it never covers it. */
.sl4-ring::before { content: ""; position: absolute; inset: -2px; border-radius: 50%; border: 2px solid var(--sl4-gold); animation: sl4-pulse 2.6s ease-out infinite; }
@keyframes sl4-pulse { from { transform: scale(1); opacity: .9; } to { transform: scale(1.9); opacity: 0; } }
.sl4-note {
  position: absolute; top: calc(100% + 10px); left: -6px; width: max-content; max-width: min(230px, 62vw);
  padding: 9px 12px; border-radius: var(--radius-sm); background: var(--sl4-ink); color: var(--sl4-cream);
  font: 500 13px/1.4 var(--sl-ui); text-align: left; box-shadow: 0 8px 24px rgba(0, 0, 0, .25);
  opacity: 0; transform: translateY(-4px); transition: opacity .2s ease, transform .2s ease; pointer-events: none;
}
.sl4-note.is-mid { left: 50%; transform: translate(-50%, -4px); }
.sl4-note.is-left { left: auto; right: -6px; }
.sl4-note.is-up { top: auto; bottom: calc(100% + 10px); }
.sl4-ring[aria-expanded="true"] .sl4-note, .sl4-ring:focus-visible .sl4-note { opacity: 1; transform: none; }
.sl4-ring[aria-expanded="true"] .sl4-note.is-mid, .sl4-ring:focus-visible .sl4-note.is-mid { transform: translateX(-50%); }
@media (hover: hover) { .sl4-ring:hover .sl4-note { opacity: 1; transform: none; } .sl4-ring:hover .sl4-note.is-mid { transform: translateX(-50%); } }

/* ---- 4. the tab bar, and the tour's progress line ---- */
.sl4-tabs { display: flex; gap: 2px; padding: 0 8px; background: #EDEAE3; border-top: 1px solid rgba(31, 30, 26, .12); overflow-x: auto; scrollbar-width: none; }
.sl4-tabs::-webkit-scrollbar { display: none; }
.sl4-tab { position: relative; flex: none; font: 500 13px/1 var(--sl-ui); color: #5d5a52; background: transparent; border: 0; padding: 13px 13px 12px; cursor: pointer; white-space: nowrap; }
.sl4-tab:hover { color: #1F1E1A; background: rgba(255, 255, 255, .55); }
.sl4-tab[aria-selected="true"] { background: #fff; color: #1F1E1A; }
.sl4-tab i { position: absolute; left: 0; top: 0; height: 2px; width: 100%; background: #8A6D1F; transform-origin: left; transform: scaleX(0); }
.sl4-tab[aria-selected="true"] i { transform: scaleX(1); }
.is-touring .sl4-tab[aria-selected="true"] i { animation: sl4-progress 3.6s linear both; }
@keyframes sl4-progress { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.sl4-cap { margin: 0; padding: 11px 14px 12px; font-size: 13.5px; color: #5d5a52; border-top: 1px solid rgba(31, 30, 26, .08); background: #fff; }
.sl4-cap [hidden] { display: none; }

/* ---- 6. numbers ---- */
.sl4-nums { list-style: none; margin: 56px 0 0; padding: 26px 0 0; border-top: 1px solid var(--rule); display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 18px 24px; }
.sl4-n { display: inline-block; font-family: var(--serif); font-size: clamp(32px, 3vw, 46px); line-height: 1; letter-spacing: -0.02em; color: var(--ink); font-variant-numeric: tabular-nums; }
.sl4-l { display: block; margin-top: 8px; font-size: 13px; line-height: 1.4; color: var(--ink-muted); max-width: 20ch; }

/* ---- 1. watch it work: the dark gold island ---- */
.sl4-work { padding-top: var(--sl-gap); }
.sl4-work-card { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: 52px; align-items: center; background: var(--sl4-ink); color: var(--sl4-cream); border-radius: var(--radius-lg, 20px); padding: 56px; }
.sl4-seal { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px 6px 10px; border: 1px solid var(--sl4-gold-hi); border-radius: var(--radius-sm); color: var(--sl4-gold-hi); background: var(--sl4-gold-soft); font-size: 12px; letter-spacing: .16em; text-transform: uppercase; }
.sl4 .sl4-work h2 { margin: 20px 0 12px; font-size: clamp(30px, 3.2vw, 46px); line-height: 1.06; letter-spacing: -0.018em; color: var(--sl4-gold-hi); max-width: 16ch; }
.sl4-work-p { margin: 0 0 22px; font-size: 15px; line-height: 1.6; color: var(--sl4-muted); max-width: 42ch; }
.sl4-steps { list-style: none; margin: 0; padding: 0; }
.sl4-steps button {
  position: relative; display: grid; gap: 4px; width: 100%; text-align: left; background: transparent; border: 0;
  border-top: 1px solid rgba(243, 239, 230, .12); padding: 14px 0 14px 2px; color: var(--sl4-muted); cursor: pointer; font: inherit;
}
.sl4-step-tab { font-family: var(--serif); font-style: italic; font-size: 17px; color: var(--sl4-cream); }
.sl4-step-a, .sl4-step-b { font-size: 14px; line-height: 1.45; }
.sl4-step-a b, .sl4-step-b b { font-weight: 500; color: var(--sl4-gold-hi); }
.sl4-steps button { transition: opacity .3s ease; }
/* Every step keeps its text open (an auto-advance that opened and closed lines
   shifted the page with no tap); the playing step is lit, the rest are dimmed. */
.sl4-steps button[aria-pressed="false"] { opacity: .5; }
.sl4-steps button[aria-pressed="true"] { color: var(--sl4-cream); }
.sl4-steps button i { position: absolute; left: 0; top: -1px; height: 1px; width: 100%; background: var(--sl4-gold-hi); transform-origin: left; transform: scaleX(0); }
.sl4-steps button[aria-pressed="true"] i { transform: scaleX(1); }
.sl4-work:not(.is-held) .sl4-work-card:not(.is-held):not(.is-still) .sl4-steps button[aria-pressed="true"] i { animation: sl4-progress 6.2s linear both; }
.sl4-work-frame { position: relative; aspect-ratio: 5 / 4; overflow: hidden; border-radius: var(--radius); background: var(--sl4-paper); }
.sl4-work-pic { cursor: zoom-in; }
.sl4-work-cap { margin: 12px 0 0; font-size: 12.5px; color: var(--sl4-muted); text-align: center; }
.sl4-link { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.sl4-link path { fill: none; stroke: var(--sl4-gold); stroke-width: 2.5; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 1; }
.sl4-dot { position: absolute; width: 40px; height: 40px; margin: -20px 0 0 -20px; border-radius: 50%; border: 2px solid var(--sl4-gold); background: transparent; opacity: 0; transform: scale(.4); }
.sl4-dot.is-b { border-width: 3px; box-shadow: 0 0 0 3px rgba(217, 184, 96, .35); }
.sl4-dot em { position: absolute; bottom: calc(100% + 8px); left: 50%; transform: translateX(-50%); white-space: nowrap; font: 600 11.5px/1 var(--sl-ui); font-style: normal; letter-spacing: .04em; padding: 6px 8px; border-radius: var(--radius-sm); background: var(--sl4-ink); color: var(--sl4-gold-hi); border: 1px solid var(--sl4-gold); }
.sl4-dot.is-b em { background: var(--sl4-gold); color: var(--sl4-ink); }
.is-run .sl4-dot.is-a { animation: sl4-pop .45s .25s ease-out both; }
.is-run .sl4-link path { animation: sl4-draw 1s 1s ease-in-out both; }
.is-run .sl4-dot.is-b { animation: sl4-pop .45s 2s ease-out both; }
.is-still .sl4-dot, .is-held .sl4-dot { opacity: 1; transform: none; animation: none; }
.is-still .sl4-link path { stroke-dashoffset: 0; animation: none; }
@keyframes sl4-pop { to { opacity: 1; transform: scale(1); } }
@keyframes sl4-draw { to { stroke-dashoffset: 0; } }

/* ---- 2. editions: the wipe ---- */
.sl4-eds { padding-top: var(--sl-gap); }
.sl4-eds-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr); gap: 52px; align-items: center; }
.sl4 .sl4-eds h2 { font-size: var(--sl-h2); line-height: 1.08; letter-spacing: -0.015em; margin: 12px 0 14px; }
.sl4-eds-copy p { margin: 0 0 22px; font-size: 15.5px; line-height: 1.6; color: var(--ink-muted); }
.sl4-ed-big button { font-size: 14px; padding: 9px 14px; min-height: 40px; }
.sl4-wipe { position: relative; border-radius: var(--radius); overflow: hidden; box-shadow: var(--sl4-shadow); border: 1px solid rgba(31, 30, 26, .1); background: var(--sl4-paper); }
.sl4-wipe img { display: block; width: 100%; height: auto; }
.sl4-wipe-over { position: absolute; inset: 0; clip-path: inset(0 calc(100% - var(--w)) 0 0); transition: clip-path 1.1s cubic-bezier(.6, 0, .25, 1); background: var(--sl4-ink); }
.sl4-wipe-over img { height: 100%; object-fit: cover; object-position: top center; }
.sl4-wipe-edge { position: absolute; top: 0; bottom: 0; left: 0; width: 100%; pointer-events: none; transform: translateX(var(--w)); transition: transform 1.1s cubic-bezier(.6, 0, .25, 1); }
.sl4-wipe-edge::before { content: ""; position: absolute; top: 0; bottom: 0; left: -1px; width: 2px; background: var(--sl4-gold-hi); box-shadow: 0 0 18px rgba(217, 184, 96, .8); }
.sl4-wipe[style*="--w:0%"] .sl4-wipe-edge { opacity: 0; }

/* ---- why this one ---- */
.sl4-why { padding-top: var(--sl-gap); }
.sl4-head { max-width: 700px; margin: 0 auto 36px; text-align: center; }
.sl4 .sl4-head h2 { font-size: var(--sl-h2); letter-spacing: -0.015em; line-height: 1.08; margin: 10px 0 0; }
.sl4-ba { margin-bottom: 0; }
.sl4-ba-cap { margin: 14px auto 40px; text-align: center; font-size: 13.5px; color: var(--ink-faint); }
.sl4-first { list-style: none; margin: 56px 0 0; padding: 28px 0 0; border-top: 1px solid var(--rule); display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
.sl4-first li { display: flex; gap: 14px; align-items: flex-start; }
.sl4-first-n { flex: none; width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--gold); color: var(--gold); font-size: 14px; line-height: 28px; text-align: center; }
.sl4 .sl4-first h3 { font-size: 20px; margin: 2px 0 6px; letter-spacing: -0.01em; }
.sl4-first p { margin: 0; font-size: 14.5px; line-height: 1.55; color: var(--ink-muted); }

/* ---- 7. Sheets / Excel flip ---- */
.sl4-flip { margin: 48px auto 0; max-width: 760px; text-align: center; perspective: 1600px; }
.sl4-flip-in { position: relative; transition: transform .9s cubic-bezier(.6, 0, .25, 1); transform-style: preserve-3d; }
.sl4-flip.is-flipped .sl4-flip-in { transform: rotateY(180deg); }
.sl4-flip-f, .sl4-flip-b { backface-visibility: hidden; border-radius: var(--radius); overflow: hidden; box-shadow: var(--sl4-shadow); background: var(--sl4-paper); }
.sl4-flip-b { position: absolute; inset: 0; transform: rotateY(180deg); }
.sl4-flip img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top; }
.sl4-flip span { position: absolute; left: 12px; top: 12px; padding: 6px 10px; border-radius: var(--radius-sm); background: var(--sl4-ink); color: #fff; font: 500 12px/1 var(--sl-ui); }
.sl4-flip .sl-ghost { margin-top: 18px; }

@media (prefers-reduced-motion: reduce) {
  .sl4-ring::before, .sl4-pane, .sl4-pic { animation: none; }
  .sl4-wipe-over, .sl4-wipe-edge, .sl4-flip-in, .sl4-steps button { transition: none; }
}

/* ---- tablets ---- */
@media (max-width: 960px) {
  .sl4-hero-grid, .sl4-work-card, .sl4-eds-grid { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .sl4-work-card { padding: 36px 24px; }
  .sl4-work-stage { order: -1; }
  .sl4-nums { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .sl4-first { grid-template-columns: minmax(0, 1fr); }
}

/* ---- phones: name, then the workbook, then the buy controls, all in the first screen ---- */
@media (max-width: 640px) {
  .sl4-hero-copy { display: contents; }
  .sl4-hero-grid { display: flex; flex-direction: column; align-items: stretch; gap: 0; }
  .sl4-app { width: 100%; }
  .sl4-hero-copy .eyebrow { order: 1; }
  .sl4 .sl4-hero-copy h1 { order: 2; font-size: 30px; margin: 8px 0 14px; }
  .sl4-app { order: 3; }
  .sl4-buy-wrap { order: 4; margin-top: 14px; }
  .sl4-fmt { order: 5; }
  .sl4-sub { order: 6; font-size: 15.5px; }
  .sl4-cap { display: none; }
  .sl4-bar { height: 42px; padding: 0 8px 0 10px; gap: 8px; }
  .sl4-file > span:not(.sl4-file-tab) { display: none; }
  .sl4-zoombtn span { display: none; }
  .sl4-zoombtn { width: 32px; justify-content: center; padding: 0; }
  .sl4-tab { padding: 12px 11px 11px; font-size: 12.5px; }
  .sl4-buy { margin-top: 10px; }
  .sl4-buy-wrap .sl-fine { margin-top: 8px; }
  .sl4-ring { width: 30px; height: 30px; margin: -15px 0 0 -15px; }
  .sl4-nums { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 40px; }
  .sl4-work-card { padding: 30px 18px; border-radius: var(--radius); }
  .sl4-dot { width: 28px; height: 28px; margin: -14px 0 0 -14px; }
  .sl4-dot em { font-size: 10.5px; padding: 5px 6px; }
}

/* ==== round 3 (founder 2026-11-21, "do 1 3 4 5 on budget") ==== */
.sl4-head p { margin: 14px auto 0; max-width: 58ch; font-size: 15.5px; line-height: 1.6; color: var(--ink-muted); }

/* ---- 1. try it: the debt race. A light island like the app, own colours. ---- */
.sl4-try { padding-top: var(--sl-gap); }
.sl4-race { --snow: #C98F9F; --aval: #2F7A5E; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 40px; padding: 32px; background: var(--sl4-paper); color: #1F1E1A; border: 1px solid rgba(31, 30, 26, .1); border-radius: var(--radius); box-shadow: var(--sl4-shadow); }
.sl4-race-row { display: grid; grid-template-columns: minmax(0, 1.45fr) repeat(3, minmax(0, 1fr)); gap: 8px; margin-bottom: 8px; }
.sl4-race-row[hidden] { display: none; }
.sl4-race-row.is-head { margin-bottom: 4px; font: 600 11px/1.2 var(--sl-ui); letter-spacing: .08em; text-transform: uppercase; color: #8a857a; }
.sl4-race input { width: 100%; height: 42px; padding: 0 10px; border: 1px solid rgba(31, 30, 26, .16); border-radius: var(--radius-sm); background: #fff; color: #1F1E1A; font: 400 15px/1 var(--sl-ui); font-variant-numeric: tabular-nums; }
.sl4-race input:focus { outline: 2px solid var(--sl4-gold); outline-offset: 1px; border-color: var(--sl4-gold); }
.sl4-race input[aria-invalid="true"] { border-color: #B3261E; background: #FDF3F2; }
.sl4-race-money, .sl4-race-pct { position: relative; display: block; }
.sl4-race-money > span, .sl4-race-pct > span { position: absolute; top: 50%; transform: translateY(-50%); color: #8a857a; font: 400 14px/1 var(--sl-ui); pointer-events: none; }
.sl4-race-money > span { left: 10px; }
.sl4-race-money input { padding-left: 22px; }
.sl4-race-pct > span { right: 10px; }
.sl4-race-pct input { padding-right: 24px; }
.sl4-race-add, .sl4-race-reset { border: 0; background: none; padding: 8px 0; color: #8A6D1F; font: 500 13.5px/1 var(--sl-ui); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.sl4-race-add[hidden] { display: none; }
.sl4-race-pay { display: grid; grid-template-columns: minmax(0, 1fr) 150px; align-items: center; gap: 6px 16px; margin-top: 18px; padding-top: 18px; border-top: 1px solid rgba(31, 30, 26, .1); }
.sl4-race-pay label { font: 500 14px/1.3 var(--sl-ui); }
.sl4-race-money.is-big input { height: 50px; font: 400 22px/1 var(--serif); padding-left: 24px; }
.sl4-race-reset { grid-column: 1 / -1; justify-self: start; }

.sl4-race-msg { margin: 0 0 14px; font: 400 clamp(22px, 2.2vw, 28px)/1.2 var(--serif); letter-spacing: -0.01em; min-height: 2.4em; }
.sl4-lane { padding: 14px 16px; margin-bottom: 10px; border: 1px solid rgba(31, 30, 26, .12); border-radius: var(--radius-sm); background: #fff; transition: border-color .3s ease, box-shadow .3s ease; }
.sl4-lane.is-best { border-color: var(--sl4-gold); box-shadow: 0 0 0 1px var(--sl4-gold); }
.sl4-lane-head { display: flex; align-items: baseline; gap: 8px; font: 400 13px/1.3 var(--sl-ui); color: #6b675e; }
.sl4-lane-head b { font-weight: 600; color: #1F1E1A; font-size: 14.5px; }
.sl4-lane-tag { margin-left: auto; padding: 4px 8px; border-radius: var(--radius-sm); background: var(--sl4-ink); color: var(--sl4-gold-hi); font: 600 11px/1 var(--sl-ui); font-style: normal; letter-spacing: .06em; text-transform: uppercase; opacity: 0; transition: opacity .3s ease; }
.sl4-lane.is-best .sl4-lane-tag { opacity: 1; }
.sl4-lane-track { height: 8px; margin: 12px 0; background: #EFEBE3; border-radius: 2px; overflow: hidden; }
.sl4-lane-track i { display: block; height: 100%; background: var(--snow); transform-origin: left; transform: scaleX(var(--k)); transition: transform 1.6s cubic-bezier(.3, .7, .2, 1); }
.sl4-lane[data-race-lane="aval"] .sl4-lane-track i { background: var(--aval); }
.sl4-race.is-ready:not(.is-on) .sl4-lane-track i { transform: scaleX(0); }
.sl4-lane-out { display: grid; grid-template-columns: 1.3fr .8fr 1.1fr; gap: 10px; margin: 0; }
.sl4-lane-out dt { font: 500 11px/1.2 var(--sl-ui); letter-spacing: .06em; text-transform: uppercase; color: #8a857a; }
.sl4-lane-out dd { margin: 4px 0 0; font: 400 19px/1.15 var(--serif); font-variant-numeric: tabular-nums; white-space: nowrap; }
.sl4-race-line { margin: 4px 0 16px; min-height: 2.9em; font-size: 14px; line-height: 1.45; color: #5d5a52; }
.sl4-race-chart { margin: 0; }
.sl4-race-chart figcaption { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 14px; margin-bottom: 8px; font: 500 12.5px/1.2 var(--sl-ui); color: #5d5a52; }
.sl4-race-chart figcaption > span:first-child { font-variant-numeric: tabular-nums; color: #1F1E1A; margin-right: auto; }
.sl4-key::before { content: ""; display: inline-block; width: 9px; height: 9px; margin-right: 6px; border-radius: 50%; background: var(--snow); vertical-align: -1px; }
.sl4-key.is-aval::before { background: var(--aval); }
.sl4-race-chart svg { display: block; width: 100%; height: 130px; overflow: visible; }
.sl4-race-chart .sl4-grid { stroke: rgba(31, 30, 26, .1); stroke-width: 1; fill: none; }
.sl4-race-chart polyline { fill: none; stroke-width: 2.5; stroke-linejoin: round; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 0; transition: stroke-dashoffset 1.8s ease-in-out; }
.sl4-race-chart polyline.is-snow { stroke: var(--snow); }
.sl4-race-chart polyline.is-aval { stroke: var(--aval); transition-delay: .3s; }
.sl4-race.is-ready:not(.is-on) polyline { stroke-dashoffset: 1; }
.sl4-race-axis { display: flex; justify-content: space-between; margin-top: 6px; font: 400 12px/1 var(--sl-ui); color: #8a857a; }
.sl4-race-note { margin: 14px auto 0; max-width: 70ch; text-align: center; font-size: 13px; line-height: 1.5; color: var(--ink-faint); }

/* ---- 3. under the hood: the build counts, a dark gold island ---- */
.sl4-hood { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 40px; align-items: center; margin-top: 40px; padding: 40px 44px; background: var(--sl4-ink); color: var(--sl4-cream); border-radius: var(--radius); }
.sl4 .sl4-hood h3 { margin: 16px 0 10px; font-size: clamp(24px, 2.4vw, 32px); line-height: 1.1; letter-spacing: -0.012em; color: var(--sl4-gold-hi); }
.sl4-hood p { margin: 0; font-size: 14.5px; line-height: 1.6; color: var(--sl4-muted); }
.sl4-hood-nums { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px 28px; }
.sl4-hood .sl4-n { color: var(--sl4-cream); }
.sl4-hood .sl4-l { color: var(--sl4-muted); max-width: 26ch; }

/* ---- 4. the system: the bundle as one routine ---- */
.sl4-sys { padding-top: var(--sl-gap); }
.sl4-sys-flow { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px; counter-reset: none; }
.sl4-sys-step { position: relative; display: flex; flex-direction: column; }
.sl4-sys-pic { position: relative; aspect-ratio: 4 / 3; overflow: hidden; border-radius: var(--radius-sm); border: 1px solid var(--rule); background: var(--sl4-paper); }
.sl4-sys-pic img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.sl4-sys-step.is-here .sl4-sys-pic { border-color: var(--sl4-gold); box-shadow: 0 0 0 1px var(--sl4-gold); }
.sl4-sys-here { position: absolute; left: 10px; top: 10px; padding: 5px 8px; border-radius: var(--radius-sm); background: var(--sl4-ink); color: var(--sl4-gold-hi); font: 600 11px/1 var(--sl-ui); letter-spacing: .06em; text-transform: uppercase; }
.sl4-sys-when { display: flex; align-items: center; gap: 10px; margin: 16px 0 0; padding-top: 14px; border-top: 1px solid var(--rule); font: 600 11.5px/1 var(--sl-ui); letter-spacing: .1em; text-transform: uppercase; color: var(--gold); }
.sl4-sys-step.is-here .sl4-sys-when { border-top-color: var(--gold); }
.sl4-sys-n { flex: none; width: 24px; height: 24px; border-radius: 50%; border: 1px solid var(--gold); line-height: 22px; text-align: center; letter-spacing: 0; }
.sl4 .sl4-sys-step h3 { margin: 10px 0 6px; font-size: 20px; line-height: 1.2; letter-spacing: -0.008em; }
.sl4-sys-step h3 a { color: inherit; text-decoration: none; }
.sl4-sys-step h3 a:hover { text-decoration: underline; text-underline-offset: 3px; }
.sl4-sys-step p { margin: 0 0 10px; font-size: 14px; line-height: 1.55; color: var(--ink-muted); }
.sl4-sys-price { margin-top: auto; font: 500 12.5px/1 var(--sl-ui); color: var(--ink-faint); }
.sl4-sys.is-ready:not(.is-on) .sl4-sys-step { opacity: 0; transform: translateY(14px); }
.sl4-sys-step { transition: opacity .6s ease, transform .6s ease; }
.sl4-sys-step:nth-child(2) { transition-delay: .15s; }
.sl4-sys-step:nth-child(3) { transition-delay: .3s; }
.sl4-sys-step:nth-child(4) { transition-delay: .45s; }
.sl4-sys-buy { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 10px 28px; margin-top: 32px; padding: 22px 26px; border: 1px solid var(--rule); border-radius: var(--radius); }
.sl4-sys-sum { display: flex; flex-direction: column; gap: 6px; }
.sl4-sys-name { font: 400 22px/1.2 var(--serif); }
.sl4-sys-math { font: 400 14px/1.3 var(--sl-ui); color: var(--ink-muted); }
.sl4-sys-math s { color: var(--ink-faint); }
.sl4-sys-math b { margin: 0 6px; font: 400 26px/1 var(--serif); color: var(--ink); vertical-align: -3px; }
.sl4-sys-math em { font-style: normal; color: var(--gold); font-weight: 500; }
.sl4-sys-ctas { display: flex; flex-wrap: wrap; gap: 10px; }
.sl4-sys-ctas .sl-btn { margin-top: 0; border: 0; cursor: pointer; background: var(--ink); color: var(--paper-soft); padding: 14px 26px; }
.sl4-sys-ctas .sl-btn:hover { background: var(--ink); opacity: .9; }
.sl4-sys-ctas .sl-ghost { padding: 14px 22px; justify-content: center; }
.sl4-sys-ctas .sl-btn.is-loading { opacity: .7; }
.sl4-sys-fine { grid-column: 1 / -1; margin: 0; font-size: 12.5px; color: var(--ink-faint); }

/* ---- 5. the reading: seo copy folded beside the FAQ accordion ---- */
.sl4-read { padding-top: var(--sl-gap); }
.sl4-read-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 56px; align-items: start; }
.sl4-read-grid.is-faq-only { grid-template-columns: minmax(0, 1fr); max-width: 760px; margin: 0 auto; }
.sl4-read .product-seo-copy .seo-copy { max-width: none; margin: 0; }
.sl4-read .product-seo-copy .seo-copy h2 { font-size: clamp(28px, 2.8vw, 38px); }
.sl4-read .product-seo-copy .seo-copy > p { font-size: 16px; }
.sl4 .sl4-faq h2 { font-size: clamp(26px, 2.6vw, 34px); letter-spacing: -0.01em; line-height: 1.1; margin: 10px 0 18px; }
.sl4-fold { border-top: 1px solid var(--rule-soft); }
.sl4-fold:last-child { border-bottom: 1px solid var(--rule-soft); }
.sl4-fold summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 0; cursor: pointer; list-style: none; }
.sl4-fold summary::-webkit-details-marker { display: none; }
.sl4-fold summary::after { content: ""; flex: none; width: 9px; height: 9px; margin-right: 4px; border-right: 1.5px solid var(--ink-muted); border-bottom: 1.5px solid var(--ink-muted); transform: rotate(45deg) translateY(-3px); transition: transform .2s ease; }
.sl4-fold[open] summary::after { transform: rotate(-135deg) translateY(-2px); }
.sl4 .sl4-fold summary h3, .sl4-read .product-seo-copy .seo-copy .sl4-fold summary h3 { margin: 0; font-family: var(--serif); font-weight: 400; font-size: 19px; line-height: 1.3; letter-spacing: -0.005em; }
.sl4-fold summary:hover h3 { text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }
.sl4-fold-body { padding: 0 0 18px; }
.sl4-fold-body > :first-child { margin-top: 0; }
.sl4-fold-body > :last-child { margin-bottom: 0; }
.sl4-fold-body p, .sl4-fold-body li, .sl4-read .product-seo-copy .seo-copy .sl4-fold-body p, .sl4-read .product-seo-copy .seo-copy .sl4-fold-body li { font-size: 15px; line-height: 1.65; color: var(--ink-muted); }
.sl4-faq .sl4-fold-body p { margin: 0; max-width: 64ch; }

@media (prefers-reduced-motion: reduce) {
  .sl4-lane-track i, .sl4-race-chart polyline, .sl4-sys-step { transition: none; }
}
@media (max-width: 960px) {
  .sl4-race, .sl4-hood, .sl4-read-grid { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .sl4-sys-flow { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 18px; }
  .sl4-sys-buy { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 640px) {
  .sl4-race { padding: 18px 14px; }
  .sl4-race-row { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; margin-bottom: 14px; }
  .sl4-race-row > input[data-f="name"] { grid-column: 1 / -1; height: 36px; font-weight: 500; }
  .sl4-race-row.is-head { display: none; }
  .sl4-race-row label::before { content: attr(data-l); display: block; margin-bottom: 4px; font: 600 10.5px/1.2 var(--sl-ui); letter-spacing: .08em; text-transform: uppercase; color: #8a857a; }
  .sl4-race-money > span, .sl4-race-pct > span { top: auto; bottom: 21px; transform: translateY(50%); }
  .sl4-race-pay { grid-template-columns: minmax(0, 1fr) 130px; }
  .sl4-lane-out dd { font-size: 16.5px; }
  .sl4-hood { padding: 30px 20px; }
  .sl4-hood-nums { gap: 22px 18px; }
  .sl4-sys-flow { gap: 24px 14px; }
  .sl4 .sl4-sys-step h3 { font-size: 17px; }
  .sl4-sys-step p { font-size: 13.5px; }
  .sl4-sys-buy { padding: 18px; }
  .sl4-sys-ctas .sl-btn, .sl4-sys-ctas .sl-ghost { flex: 1 1 100%; text-align: center; justify-content: center; }
}

/* ==== roll to every sheet (2026-11-21) ==== */
.sl4-sys-flow.is-five { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 18px; }
.sl4-split-cols { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 28px; }
.sl4 .sl4-split-cols h3 { margin: 0 0 12px; font-family: var(--serif); font-style: italic; font-weight: 400; font-size: 19px; color: var(--sl4-cream); }
.sl4-split-cols ul { list-style: none; margin: 0; padding: 0; }
.sl4-split-cols li { padding: 11px 0; border-top: 1px solid rgba(243, 239, 230, .12); font-size: 14.5px; line-height: 1.45; color: var(--sl4-muted); }
.sl4-split-cols > div:last-child li { color: var(--sl4-cream); }
.sl4-split-cols strong { font-weight: 500; color: var(--sl4-gold-hi); }
@media (max-width: 960px) { .sl4-sys-flow.is-five { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .sl4-split-cols { grid-template-columns: minmax(0, 1fr); gap: 18px; } }
.sl4-stage.is-auto .sl4-pic.is-wide { top: 50%; transform: translateY(-50%); }
.sl4-stage.is-auto .sl4-night.is-wide { top: 0; transform: none; }
