/* ---------- Hero: two columns. Left: statement, four steps, the one filled button, the trust lines. Right: the keyed screen. ---------- */
.hero{display:grid;grid-template-columns:minmax(590px,1fr) minmax(480px,640px);grid-template-areas:"head shot" "steps shot" "act shot" "trust shot";grid-template-rows:auto auto auto 1fr;column-gap:36px;padding-top:16px}
.hero .shot{margin-top:-10px}
.hero-head{grid-area:head}
.steps{grid-area:steps;margin-top:18px}
/* The button lines up with the step keys' left edge; the trust rule below it has the same space above and under. */
.act{grid-area:act;margin-top:22px;margin-bottom:22px;align-self:start}
.trust-wrap{grid-area:trust;align-self:start;margin-top:0}
.shot{grid-area:shot}
.statement span{display:block}
.lead{font-size:20px;line-height:1.42;max-width:28em}
/* Steps: one line each, keyed to the same numbers on the screen. */
.step{display:grid;grid-template-columns:38px minmax(0,1fr);align-items:baseline;padding:8px 0 9px}
.step+.step{box-shadow:inset 0 1px 0 var(--rs-lip),inset 0 2px 0 var(--rs-raised)}
.step p{font-size:17px;line-height:1.35}
.step b{font-family:var(--rs-f-display);font-weight:500;font-size:18px;font-variation-settings:"SOFT" 0,"WONK" 0}
.more{margin-top:6px;padding-left:38px;font-size:17px}
/* The key: a numeral struck in a small brass box. Same object beside the step and in the screen's gutter.
   Named figure exception: the single numeral is centred in its 24px box (a figure, not a text block). */
.key{display:inline-grid;place-items:center;width:24px;height:24px;font-family:var(--rs-f-mono);font-weight:500;font-size:14px;line-height:1;color:var(--rs-brass);background:var(--rs-raised);box-shadow:inset 0 0 0 1.5px var(--rs-brass);transition:background-color 90ms linear,color 90ms linear}
.step .key{transform:translateY(-1px)}
.act .small{margin-top:8px;max-width:27em}
/* Trust: three one-line statements, link inline, set like the steps (07: one line each, cut into the same face). */
.trust{padding-top:21px}
.trust li{font-size:17px;line-height:1.4;padding:3px 0}
.trust a{white-space:nowrap;margin-left:4px}
/* ---------- The screen: Ratio's logged-in results view, product skin, set into a recessed plate ---------- */
/* The gutter: all four keys hang in one column left of the plate. Each leader runs from the place it marks back to
   that column. Pure CSS: every pin sits inside its target and takes the target's static position, so the leaders
   follow the screen at every width; the figure clips them at its left edge, where the key covers their end. */
.shot{position:relative;overflow:hidden;padding-left:var(--rs-gut)}
.shot figcaption{margin-top:8px;font-size:17px;line-height:1.4;color:var(--rs-ink-2)}
.plate{border:1px solid var(--rs-lip);box-shadow:inset 2px 2px 0 var(--rs-lip),inset -1px -1px 0 var(--rs-raised);padding:3px 1px 1px 3px;background:var(--rs-paper)}
/* It is a picture of the screen, not the screen: no pointer, no caret, no hover. */
.plate .ratio-search{pointer-events:none;user-select:none;cursor:default}
.k{position:absolute;left:0;z-index:4;align-self:flex-start}
.pin{position:absolute;width:0;height:0;z-index:3;align-self:flex-start}
.ll{position:absolute;right:0;top:-1px;height:2px;width:900px;background:var(--rs-brass);transform-origin:100% 50%}
.lv{position:absolute;left:0;bottom:0;width:2px;background:var(--rs-brass);transform-origin:50% 100%}
/* Per pin: where the leader meets its target, and where the key sits on the leader. */
.pin--1{align-self:center}
.k--1{align-self:center}
.pin--2{margin-top:17px}
.k--2{margin-top:5px}
.pin--3{margin-top:13px}
.k--3{margin-top:1px}
/* 4 runs along the actions row's own rule, then drops onto "Lees uitspraak". At -5px it covers the rule and is level
   with the top edge of the hover ring (outline 2px, offset 3px), so leader and ring meet in one line. */
.pin--4 .ll{top:-5px}
.pin--4 .lv{top:-5px;bottom:auto;height:5px}
.k--4{margin-top:-16px}
/* Hover on a step fills its key on the screen and rings the place it points to. Optional: the leaders already show it. */
.hero:has(.step[data-k="1"]:hover) .k--1,
.hero:has(.step[data-k="2"]:hover) .k--2,
.hero:has(.step[data-k="3"]:hover) .k--3,
.hero:has(.step[data-k="4"]:hover) .k--4,
.step:hover .key{background:var(--rs-brass);color:var(--rs-raised)}
.hero:has(.step[data-k="1"]:hover) [data-t="1"],
.hero:has(.step[data-k="2"]:hover) [data-t="2"],
.hero:has(.step[data-k="3"]:hover) [data-t="3"],
.hero:has(.step[data-k="4"]:hover) [data-t="4"]{outline:2px solid var(--rs-brass);outline-offset:3px}
/* A one-time draw-in on load: each leader runs out from its target to the gutter, once. Nothing under reduced motion. */
@media (prefers-reduced-motion:no-preference){
  .ll{animation:rs-draw 460ms cubic-bezier(.3,.6,.2,1) both;animation-delay:calc(250ms + var(--i) * 140ms)}
  .lv{animation:rs-drop 120ms linear both;animation-delay:calc(160ms + var(--i) * 140ms)}
  .k{animation:rs-key 160ms linear both;animation-delay:calc(450ms + var(--i) * 140ms)}
}
@keyframes rs-draw{from{transform:scaleX(0)}}
@keyframes rs-drop{from{transform:scaleY(0)}}
@keyframes rs-key{from{opacity:0}}
/* Product CSS, mirrored from products/ratio static/ratio/search.css in the product's own narrow (<760px) layout,
   which is what it shows at this width. The search sheet itself (bar, field, button) is ratio-search.css, shared with
   Privacy en beveiliging; the list, toolbar and preview follow here. Deviations, all logged in borrowings_v5_build.md:
   - --rs-soft is #676c6d (5.1:1), not #818584 (3.6:1); proposed as the product fix;
   - position:relative is dropped from the sheet, panel, sections and actions so the pins can find the figure;
   - the field wraps the full question over two lines (the product's input-lg is one line: [CHECK] product change);
   - spacing compressed to fit the 1366x768 first screen: sheet padding 20/18 -> 12/12, toolbar 26 -> 8,
     row padding 14 -> 9, preview gap 18 -> 10, head gap 6 -> 3, section gap 6 -> 4;
   - the preview is drawn under the list; in the product it opens over the list in a dialog;
   - the quote is not clamped: the passage (two sentences) runs 7 lines here, the product clamps at 6 with an ellipsis. */
.ratio-search .rs-filters__summary{display:flex;align-items:center;justify-content:space-between;margin-top:8px;padding:6px 0;border-top:1px solid var(--rs-edge);border-bottom:1px solid var(--rs-edge);font-family:var(--rs-f-mono);font-size:12px;letter-spacing:1px;text-transform:uppercase;color:var(--rs-muted);line-height:1.3}
.ratio-search .rs-filters__summary::after{content:"";border-left:5px solid transparent;border-right:5px solid transparent;border-top:6px solid currentcolor}
.ratio-search .rs-toolbar{display:flex;align-items:baseline;margin:8px 0 0;padding-bottom:5px;border-bottom:1px solid var(--rs-edge)}
.ratio-search .rs-count{font-size:15px;color:var(--rs-muted)}
.ratio-search .rs-results{display:flex;flex-direction:column}
.ratio-search .rs-hit{display:grid;grid-template-columns:68px minmax(0,1fr);padding:9px 0;border-bottom:1px solid var(--rs-rule)}
.ratio-search .rs-hit--open{background:var(--rs-raised);box-shadow:-16px 0 0 var(--rs-raised),16px 0 0 var(--rs-raised)}
.ratio-search .rs-hit__gutter{display:flex;flex-direction:column;gap:1px;padding:3px 10px 0 0;font-family:var(--rs-f-mono);font-size:12px;line-height:130%;font-variant-numeric:tabular-nums}
.ratio-search .rs-hit__level{color:var(--rs-ink);font-weight:500}
.ratio-search .rs-hit__year{color:var(--rs-soft)}
.ratio-search .rs-hit__link{display:block;min-width:0;color:var(--rs-ink);font-family:var(--rs-f-display);font-weight:400;font-variation-settings:normal;font-size:15px;line-height:135%}
.ratio-search .rs-hit--open .rs-hit__link{text-decoration:underline;text-decoration-color:var(--rs-faint);text-underline-offset:2px}
/* The case preview (judgments/_preview.html) in heftdesk-ui's dialog panel. */
.ratio-search .modal__panel{margin:8px 0 8px;background:var(--rs-raised);border:1px solid var(--rs-edge);border-radius:8px;padding:12px 18px 10px;box-shadow:0 20px 25px -5px #22303d1f,0 8px 10px -6px #22303d1f}
.ratio-search .rs-pv{display:flex;flex-direction:column;gap:10px}
.ratio-search .rs-pv__head{position:relative;display:flex;flex-direction:column;align-items:flex-start;gap:3px;padding-right:36px}
.ratio-search .rs-pv__x{position:absolute;top:-6px;right:-8px;width:32px;height:32px;display:grid;place-items:center;color:var(--rs-ink)}
.ratio-search .rs-pv__x svg{width:16px;height:16px}
.ratio-search .rs-hit__meta{font-family:var(--rs-f-mono);font-size:12px;color:var(--rs-soft);line-height:1.5}
.ratio-search .rs-hit__court{color:var(--rs-muted);letter-spacing:1px}
.ratio-search .rs-pv__ecli{font-family:var(--rs-f-mono);font-weight:400;font-variation-settings:normal;font-size:14px;line-height:1.4;color:var(--rs-muted);margin:0;letter-spacing:0}
.ratio-search .rs-pv__sec{display:flex;flex-direction:column;gap:4px}
.ratio-search .rs-pv__label{font-family:var(--rs-f-mono);font-weight:400;font-variation-settings:normal;font-size:11px;letter-spacing:1px;text-transform:uppercase;color:var(--rs-soft);margin:0;line-height:1.4}
.ratio-search .rs-rvl{display:flex;flex-direction:column;gap:3px;margin:2px 0 0}
.ratio-search .rs-rv{padding:2px 0 2px 15px;color:var(--rs-muted);font-size:15px;line-height:1.45}
.ratio-search .rs-rv::before{content:"–";position:absolute;margin-left:-13px;color:var(--rs-faint)}
.ratio-search .rs-rv--match{color:var(--rs-ink);background:var(--rs-brass-tint);border-left:2px solid var(--rs-brass);border-radius:0 4px 4px 0;padding:3px 8px 3px 11px}
.ratio-search .rs-rv--match::before{content:none}
.ratio-search .rs-pv__quote{margin:0;padding:2px 0 2px 14px;border-left:2px solid var(--rs-edge);font-size:13px;line-height:155%;color:var(--rs-ink)}
.ratio-search .rs-pv__quote--clamp{display:-webkit-box;-webkit-line-clamp:6;-webkit-box-orient:vertical;overflow:hidden}
.ratio-search .rs-pv__more{align-self:flex-start;font-size:14px;line-height:1.3;color:var(--rs-muted);padding:2px 8px;margin:0 0 0 -8px}
.ratio-search .rs-pv__actions{display:flex;align-items:center;flex-wrap:wrap;gap:8px;padding-top:4px;border-top:1px solid var(--rs-rule)}
.ratio-search .rs-pv__spacer{flex:1 1 auto}
.ratio-search .ui-btn--sm{height:32px;padding:0 10px;font-size:14px;color:var(--rs-ink)}
.ratio-search .ui-btn--sm svg{width:16px;height:16px}
.ratio-search .ui-btn--primary{background:var(--rs-ink);color:var(--rs-raised)}
/* ---------- Price band: pressed lines on paper (left), founding price, year discount and the trial (right) ---------- */
.close{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);column-gap:64px;margin-top:24px;padding-top:20px}
.sec-head{font-size:28px;line-height:1.12}
.sec-head .fig{font-family:var(--rs-f-body);font-variant-numeric:tabular-nums;font-weight:500}
/* The rate card: no box, no fill. Each row is a line pressed into the page, wall above, catchlight below. */
.price-table{width:100%;max-width:470px;margin-top:10px;border-collapse:separate;border-spacing:0}
.price-table th,.price-table td{padding:4px 0 3px;font-size:17px;line-height:1.35;box-shadow:inset 0 1px 0 var(--rs-lip),inset 0 2px 0 var(--rs-raised)}
.price-table tr:first-child th,.price-table tr:first-child td{box-shadow:none}
.price-table th{font-weight:400;text-align:left;padding-right:16px}
/* Named exception to flush-left: the right-aligned column of tabular figures. */
.price-table td{text-align:right;font-family:var(--rs-f-body);font-variant-numeric:tabular-nums;font-size:17px;white-space:nowrap}
.price-table td.word{font-family:var(--rs-f-body)}
.price .note{margin-top:8px;font-size:17px;line-height:1.4;color:var(--rs-ink-2)}
.price .note a{color:var(--rs-ink)}
.offer h2{font-size:22px;line-height:1.2}
.offer p{font-size:18px;line-height:1.45;max-width:31em}
.offer h2+p{margin-top:6px}
.offer p+p{margin-top:10px}
.offer .go{font-weight:600;white-space:nowrap}
/* ---------- Narrower screens ---------- */
@media (max-width:1300px){
  .hero{column-gap:28px}
}
@media (max-width:1240px){
  .hero{grid-template-columns:minmax(0,1fr) minmax(0,560px);column-gap:32px}
  .step p{font-size:17px}
  .step b{font-size:18px}
}
@media (max-width:1100px){
  .hero{grid-template-columns:minmax(0,1fr) 480px;column-gap:40px;grid-template-areas:"head shot" "steps shot" "act shot" "trust trust";grid-template-rows:auto auto 1fr auto}
}
@media (max-width:900px){
  /* Phone stack: statement, then the keyed screen, then the steps that refer to it, then the button. */
  .hero{grid-template-columns:minmax(0,1fr);grid-template-areas:"head" "shot" "steps" "act" "trust";grid-template-rows:auto;padding-top:20px}
  .hero .shot{margin-top:18px;max-width:640px}
  .steps{margin-top:16px}
  .close{grid-template-columns:minmax(0,1fr);row-gap:24px;margin-top:24px}
}
@media (max-width:640px){
  .statement span{display:inline}
  .lead{font-size:18px}
  .step{grid-template-columns:34px minmax(0,1fr)}
  .step p{font-size:17px}
  .step b{font-size:18px}
  .more{padding-left:34px}
  .trust a{white-space:normal;margin-left:0}
  .ratio-search .rs-hit{grid-template-columns:50px minmax(0,1fr)}
  .ratio-search .rs-hit--open{box-shadow:-10px 0 0 var(--rs-raised),10px 0 0 var(--rs-raised)}
  .ratio-search .modal__panel{padding:12px 10px 10px;margin:8px -2px 8px}
  /* Keep the actions on one line, so leader 4 still runs along the row's rule onto "Lees uitspraak". */
  .ratio-search .rs-pv__actions{flex-wrap:nowrap;gap:4px}
  .ratio-search .ui-btn--sm{padding:0 5px;gap:4px;font-size:13px}
  .ratio-search .ui-btn--sm svg{width:14px;height:14px}
  .pin--2{margin-top:15px}
  .k--2{margin-top:3px}
  .sec-head{font-size:25px}
}
