/* Entreprises à reprendre : home page, free result, offer forms and public pages.
   The mix (fiche, part 3): the structure of Ramp, the matter of Clay, the motion of
   Linear, in the colours of our list (aubergine, warm paper, a touch of brass).
   Fonts served by the site (OFL): Schibsted Grotesk for titles and text, Spline Sans
   Mono for labels, figures and sources. Rules are scoped to .rp, or to a page holding
   .rp-home or .rp-res. */

@font-face {
  font-family: "Schibsted RP";
  src: url("fonts/schibsted-latin.woff2") format("woff2");
  font-weight: 400 700;
  font-display: swap;
}
@font-face {
  font-family: "Spline Mono RP";
  src: url("fonts/splinemono-latin.woff2") format("woff2");
  font-weight: 400 500;
  font-display: swap;
}

.rp {
  --rp-paper: #f6f3ef;
  --rp-paper-2: #ece6de;
  --rp-card: #fffdfa;
  --rp-ink: #1d1720;
  --rp-ink-2: #4a414d;
  --rp-ink-3: #635a66;
  --rp-rule: rgba(29, 23, 32, 0.12);
  --rp-ring: rgba(29, 23, 32, 0.1);
  --rp-plum: #3b1d38;
  --rp-plum-2: #24112a;
  --rp-plum-soft: #b79bb2;
  --rp-brass: #8c5f1c;
  --rp-brass-soft: #e2c99f;
  --rp-dot: rgba(59, 29, 56, 0.13);
  --rp-sans: "Schibsted RP", "Helvetica Neue", Arial, sans-serif;
  --rp-mono-font: "Spline Mono RP", ui-monospace, "SFMono-Regular", Menlo, monospace;
  --rp-ease: cubic-bezier(0.25, 0.46, 0.45, 0.94);
  color: var(--rp-ink);
  font-family: var(--rp-sans);
  font-size: 1.0625rem;
  line-height: 1.55;
  font-variant-numeric: lining-nums;
}
/* Tabular figures only where numbers line up: in this face, tabular figures also widen
   the comma and the full stop. */
.rp-big b, .rp-hbars b, .rp-compare td, .rp-chip, .rp-price, .rp-band b { font-variant-numeric: tabular-nums lining-nums; }
.rp *, .rp *::before, .rp *::after { box-sizing: border-box; }
.rp h1, .rp h2, .rp h3 { font-family: var(--rp-sans); font-weight: 600; letter-spacing: -0.025em; text-wrap: balance; margin: 0; color: var(--rp-ink); }
.rp p { margin: 0 0 1rem; }
.rp a { color: var(--rp-plum); }
.rp-wrap { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.rp-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Page chrome, only on our pages */
body:has(.rp-home), body:has(.rp-res), body:has(.rp-guide), body:has(.rp-offer-form) { background: #f6f3ef; }
body:has(.rp-home) .topbar { max-width: 1200px; padding: 18px 20px; }
body:has(.rp-home) .brand, body:has(.rp-res) .brand { font-family: "Schibsted RP", Arial, sans-serif; font-weight: 700; font-size: 1.15rem; color: #1d1720; letter-spacing: -0.02em; }
body:has(.rp-home) .brand-emoji { font-size: 0; width: 26px; height: 26px; display: inline-block; vertical-align: -6px; margin-right: 8px; background: url("logo.svg") center / contain no-repeat; }
body:has(.rp-home) .topnav a { color: #4a414d; }
body:has(.rp-home) .footer { max-width: 1200px; color: #4a414d; }

/* Labels (Clay: a mono for labels, figures and sources) */
.rp .rp-mono { font-family: var(--rp-mono-font); font-size: 0.75rem; letter-spacing: 0.03em; text-transform: uppercase; color: var(--rp-ink-3); margin: 0 0 12px; display: block; }
.rp-note { font-size: 0.875rem; color: var(--rp-ink-3); }
.rp .rp-source { font-family: var(--rp-mono-font); font-size: 0.6875rem; letter-spacing: 0.01em; color: var(--rp-ink-3); margin: 16px 0 0; }
.rp-chip { font-family: var(--rp-mono-font); font-size: 0.6875rem; background: var(--rp-paper-2); border-radius: 6px; padding: 3px 8px; color: var(--rp-ink-2); white-space: nowrap; }
.rp-tag { display: inline-block; font-family: var(--rp-mono-font); font-size: 0.7rem; letter-spacing: 0.03em; text-transform: uppercase; color: var(--rp-brass); margin-bottom: 14px; }

/* Cards: no drop shadow, a fine inset ring (Clay), corners of 18 px */
.rp-card { background: var(--rp-card); border-radius: 18px; box-shadow: inset 0 0 0 1px var(--rp-ring); padding: 26px; }

/* Buttons (Ramp: 52 px high, 8 px corners) */
.rp-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 52px; padding: 0 24px; border: 0; border-radius: 8px;
  background: var(--rp-plum); color: #fff; font: 600 1rem/1 var(--rp-sans); letter-spacing: 0;
  text-decoration: none; cursor: pointer;
  transition: background-color 0.42s var(--rp-ease), transform 0.16s var(--rp-ease);
}
.rp a.rp-btn { color: #fff; }
.rp-btn:hover { background: var(--rp-plum-2); }
.rp-btn:active { transform: translateY(1px); }
.rp-btn:focus-visible { outline: 3px solid var(--rp-brass-soft); outline-offset: 2px; }
.rp-btn.ghost { background: transparent; color: var(--rp-plum); box-shadow: inset 0 0 0 1.5px var(--rp-plum); }
.rp a.rp-btn.ghost { color: var(--rp-plum); }
.rp-btn.ghost:hover { background: rgba(59, 29, 56, 0.06); }

/* Hero (Ramp: label with a chip, a 64 px headline, a short line, the tool inline) */
.rp-hero { padding: 44px 0 40px; }
.rp-eyebrow { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; font-family: var(--rp-mono-font); font-size: 0.75rem; letter-spacing: 0.03em; text-transform: uppercase; color: var(--rp-ink-3); }
.rp-hero h1 { font-size: clamp(2.5rem, 5.2vw, 4.25rem); line-height: 1; letter-spacing: -0.035em; max-width: 15ch; margin: 18px 0 18px; }
.rp-lead { font-size: 1.2rem; line-height: 1.5; color: var(--rp-ink-2); max-width: 46rem; margin-bottom: 26px; }

/* The free tool */
.rp-tool { max-width: 860px; padding: 18px; }
.rp-tool-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin: 4px 4px 14px; flex-wrap: wrap; }
.rp-tool-head h2 { font-size: 1.15rem; letter-spacing: -0.015em; }
.rp-tool-head .rp-mono { margin: 0; }
.rp-tool-fields { display: grid; grid-template-columns: 1fr 1fr auto; gap: 10px; align-items: end; }
.rp-field label, .rp-offer-form label { display: block; font-size: 0.8125rem; font-weight: 600; color: var(--rp-ink-2); margin: 0 0 6px 2px; }
.rp-select { position: relative; }
.rp-select::after { content: ""; position: absolute; right: 16px; top: 50%; width: 8px; height: 8px; border-right: 1.5px solid var(--rp-ink-2); border-bottom: 1.5px solid var(--rp-ink-2); transform: translateY(-70%) rotate(45deg); pointer-events: none; }
.rp select, .rp input[type="text"] {
  width: 100%; min-height: 52px; padding: 0 40px 0 14px; border: 0; border-radius: 10px;
  background: var(--rp-paper); box-shadow: inset 0 0 0 1px var(--rp-ring); color: var(--rp-ink);
  font: 500 1rem var(--rp-sans); appearance: none; -webkit-appearance: none;
  transition: box-shadow 0.16s var(--rp-ease);
}
.rp select:focus, .rp input:focus { outline: none; box-shadow: inset 0 0 0 2px var(--rp-plum); }
.rp-check { display: flex !important; gap: 10px; align-items: center; font-weight: 500 !important; margin-top: 14px !important; }
.rp-check input { width: 18px; height: 18px; accent-color: var(--rp-plum); }
.rp-embed { margin: 0 0 8px; }
.rp-embed .rp-note { margin: 10px 4px 0; }

/* The product frame (Ramp: a big panel on a dotted grid) */
.rp-frame-zone { padding: 8px 0 72px; }
.rp-frame {
  display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 28px; align-items: center;
  padding: 40px; border-radius: 24px; box-shadow: inset 0 0 0 1px var(--rp-ring);
  background-color: var(--rp-paper-2);
  background-image: radial-gradient(var(--rp-dot) 1px, transparent 1.2px);
  background-size: 16px 16px;
}
.rp-example-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 16px; flex-wrap: wrap; }
.rp-example-head .rp-mono { margin: 0; }
.rp-big { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; margin: 0 0 8px; }
.rp-big b { font-family: var(--rp-sans); font-weight: 700; font-size: clamp(3rem, 6vw, 4.5rem); line-height: 1; letter-spacing: -0.04em; color: var(--rp-plum); }
.rp-big-label { font-size: 1rem; color: var(--rp-ink-2); max-width: 16rem; line-height: 1.35; }
.rp-range { color: var(--rp-ink-2); margin-bottom: 18px; }
.rp-range strong { color: var(--rp-ink); }

/* Horizontal bars: our own detail, the age of the officer, in three bands */
.rp-hbars { margin: 0 0 14px; }
.rp-hbars figcaption { font-family: var(--rp-mono-font); font-size: 0.6875rem; letter-spacing: 0.03em; text-transform: uppercase; color: var(--rp-ink-3); margin-bottom: 10px; }
.rp-hbars ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.rp-hbars li { display: grid; grid-template-columns: 8.5rem 1fr 3.2rem; gap: 10px; align-items: center; font-size: 0.875rem; }
.rp-hbar-label { color: var(--rp-ink-2); }
.rp-hbar-track { height: 10px; border-radius: 5px; background: rgba(29, 23, 32, 0.07); overflow: hidden; }
.rp-hbar-track i { display: block; height: 100%; border-radius: 5px; background: var(--rp-ink-3); transform-origin: left; transition: transform 0.7s var(--rp-ease); }
.rp-hbars.plum .rp-hbar-track i { background: var(--rp-plum); }
.rp-hbars.brass .rp-hbar-track i { background: var(--rp-brass); }
.rp-hbars b { font-family: var(--rp-mono-font); font-weight: 500; text-align: right; }
.rp-js .rp-hbars:not(.rp-in) .rp-hbar-track i { transform: scaleX(0.02); }

/* The pages of a real list */
.rp-pages { display: flex; gap: 16px; flex-wrap: wrap; align-items: flex-start; justify-content: center; }
.rp-page { display: block; width: calc(50% - 8px); max-width: 300px; border-radius: 6px; overflow: hidden; background: #fff; box-shadow: 0 1px 2px rgba(29, 23, 32, 0.08), 0 8px 28px rgba(29, 23, 32, 0.12); transition: transform 0.42s var(--rp-ease), box-shadow 0.42s var(--rp-ease); }
.rp-page:hover { transform: translateY(-4px); box-shadow: 0 2px 4px rgba(29, 23, 32, 0.08), 0 16px 40px rgba(29, 23, 32, 0.16); }
.rp-page img { display: block; width: 100%; height: auto; }
.rp-pages-label { flex-basis: 100%; text-align: center; font-family: var(--rp-mono-font); font-size: 0.6875rem; color: var(--rp-ink-3); }

/* The band of key facts */
.rp-band { background: var(--rp-plum); color: #fff; padding: 30px 0; }
.rp-band ul { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; margin: 0 auto; }
.rp-band li { display: grid; gap: 4px; }
.rp-band b { font-size: 1.35rem; letter-spacing: -0.02em; }
.rp-band span { font-size: 0.9rem; color: #e6d9e3; }

/* How it works */
.rp-how { padding: 112px 20px 72px; }
.rp-how h2, .rp-compare-zone h2, .rp-intro h2 { font-size: clamp(2rem, 4.2vw, 3.25rem); line-height: 1.05; letter-spacing: -0.035em; max-width: 20ch; margin-bottom: 16px; }
.rp-sub { font-size: 1.15rem; color: var(--rp-ink-2); max-width: 44rem; margin-bottom: 44px; }
.rp-steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.rp-steps li { border-top: 1px solid var(--rp-rule); padding-top: 22px; }
.rp-step-n { display: block; font-family: var(--rp-mono-font); font-size: 0.8rem; color: var(--rp-brass); margin-bottom: 12px; }
.rp-steps h3 { font-size: 1.25rem; letter-spacing: -0.02em; margin-bottom: 10px; }
.rp-steps p { color: var(--rp-ink-2); }
.rp-intro { padding: 24px 20px 40px; }

/* Products */
.rp-product { padding: 72px 0; }
.rp-product.alt { background: var(--rp-paper-2); }
.rp-product-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.rp-copy-head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; margin-bottom: 14px; }
.rp-copy-head h3 { font-size: clamp(1.6rem, 2.6vw, 2.1rem); line-height: 1.1; letter-spacing: -0.03em; }
.rp-price { font-family: var(--rp-mono-font); font-weight: 500; font-size: 1.05rem; color: var(--rp-plum); white-space: nowrap; }
.rp-copy > p { color: var(--rp-ink-2); }
.rp-list { list-style: none; padding: 0; margin: 0 0 26px; display: grid; gap: 10px; }
.rp-list li { position: relative; padding-left: 26px; }
.rp-list li::before { content: ""; position: absolute; left: 2px; top: 0.6em; width: 10px; height: 6px; border-left: 2px solid var(--rp-brass); border-bottom: 2px solid var(--rp-brass); transform: rotate(-45deg); }
.rp-copy .rp-note { margin-top: 14px; }
.rp-company dl { margin: 0; display: grid; gap: 0; }
.rp-company dl div { display: grid; grid-template-columns: 8rem 1fr; gap: 14px; padding: 12px 0; border-top: 1px solid var(--rp-rule); }
.rp-company dt { font-weight: 600; }
.rp-company dd { margin: 0; color: var(--rp-ink-2); font-size: 0.95rem; }

/* Comparison */
.rp-compare-zone { padding: 96px 20px 64px; }
.rp-compare-card { padding: 8px 20px; overflow-x: auto; }
.rp-compare { width: 100%; border-collapse: collapse; font-size: 0.875rem; }
.rp-compare th, .rp-compare td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--rp-rule); vertical-align: top; }
.rp-compare tr:last-child td { border-bottom: 0; }
.rp-compare th { font-family: var(--rp-mono-font); font-weight: 500; font-size: 0.6875rem; letter-spacing: 0.03em; text-transform: uppercase; color: var(--rp-ink-3); }
.rp-compare td:first-child { font-weight: 600; }
.rp-compare td:last-child { color: var(--rp-plum); font-weight: 600; }
.rp-compare.big { font-size: 1rem; }
.rp-compare.big th, .rp-compare.big td { padding: 16px 12px; }

/* Method and trust */
.rp-trust { padding: 88px 0; }
.rp-trust-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 56px; }
.rp-trust h2 { font-size: 1.75rem; letter-spacing: -0.03em; margin-bottom: 16px; }
.rp-trust p { color: var(--rp-ink-2); }

/* Public pages links and FAQ */
.rp-guides { padding: 0 0 48px; }
.rp-guides ul { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.rp-guides a { display: inline-block; padding: 10px 16px; border-radius: 10px; background: var(--rp-card); box-shadow: inset 0 0 0 1px var(--rp-ring); text-decoration: none; font-weight: 600; font-size: 0.95rem; transition: box-shadow 0.16s var(--rp-ease); }
.rp-guides a:hover { box-shadow: inset 0 0 0 1.5px var(--rp-plum); }
.rp-faq { padding: 40px 0 96px; }
.rp-faq h2 { font-size: 2rem; letter-spacing: -0.03em; margin-bottom: 22px; }
.rp-faq details { border-top: 1px solid var(--rp-rule); padding: 18px 0; max-width: 52rem; }
.rp-faq summary { cursor: pointer; font-weight: 600; font-size: 1.05rem; list-style: none; position: relative; padding-right: 32px; }
.rp-faq summary::-webkit-details-marker { display: none; }
.rp-faq summary::after { content: "+"; position: absolute; right: 4px; top: -2px; font-family: var(--rp-mono-font); font-size: 1.2rem; color: var(--rp-brass); transition: transform 0.42s var(--rp-ease); }
.rp-faq details[open] summary::after { transform: rotate(45deg); }
.rp-faq details p { color: var(--rp-ink-2); margin: 12px 0 0; }

/* Free result */
.rp-result-zone { padding: 0 20px 40px; }
.rp-res { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 22px; align-items: start; }
.rp-res-grid { display: grid; gap: 6px; margin: 8px 0 6px; }
.rp-facts { list-style: none; padding: 0; margin: 10px 0 0; display: grid; gap: 6px; color: var(--rp-ink-2); font-size: 0.95rem; }
.rp-facts b { color: var(--rp-ink); }
.rp-res-side { display: grid; gap: 14px; }
.rp-res-offer h2 { font-size: 1.4rem; letter-spacing: -0.025em; margin-bottom: 16px; }
.rp-res-offer .rp-pages { margin-bottom: 14px; }
.rp-res-offer .rp-page { width: calc(50% - 8px); }
.rp-res-offer .rp-btn { width: 100%; margin: 16px 0 10px; }
.rp-res-facts { list-style: none; padding: 0; margin: 0; display: grid; gap: 4px; font-size: 0.85rem; color: var(--rp-ink-3); }
.rp-res-small { display: flex; justify-content: space-between; align-items: center; gap: 14px; text-decoration: none; color: var(--rp-ink); transition: box-shadow 0.16s var(--rp-ease); }
.rp-res-small:hover { box-shadow: inset 0 0 0 1.5px var(--rp-plum); }
.rp-res-small > span { display: grid; gap: 4px; }

/* Offer forms */
.rp-offer-form label { margin-top: 14px; }
.rp-offer-form .rp-select { margin-bottom: 4px; }

/* Motion (Linear: 0.42 s, a few pixels, once) */
.rp-js .rp-reveal { opacity: 0; transform: translateY(10px); transition: opacity 0.42s var(--rp-ease), transform 0.42s var(--rp-ease); }
.rp-js .rp-reveal.rp-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .rp-js .rp-reveal { opacity: 1; transform: none; transition: none; }
  .rp-js .rp-hbars:not(.rp-in) .rp-hbar-track i { transform: none; }
  .rp-btn, .rp-page, .rp-hbar-track i { transition: none; }
}

/* Phone */
@media (max-width: 900px) {
  .rp-frame { grid-template-columns: 1fr; padding: 20px; }
  .rp-product-grid, .rp-trust-grid, .rp-res { grid-template-columns: 1fr; gap: 28px; }
  .rp-steps { grid-template-columns: 1fr; gap: 8px; }
  .rp-band ul { grid-template-columns: 1fr 1fr; }
  .rp-how { padding: 72px 20px 40px; }
}
@media (max-width: 640px) {
  .rp-hero { padding: 18px 0 24px; }
  .rp-hero h1 { font-size: 2.35rem; margin: 12px 0 12px; }
  .rp-lead { font-size: 1.02rem; margin-bottom: 16px; }
  .rp-tool { padding: 14px; }
  .rp-tool-head { display: none; }
  .rp-tool-fields { grid-template-columns: 1fr; gap: 8px; }
  .rp-tool-fields .rp-btn { width: 100%; }
  .rp select { min-height: 48px; }
  .rp-hbars li { grid-template-columns: 6.8rem 1fr 2.6rem; font-size: 0.8125rem; }
  .rp-company dl div { grid-template-columns: 1fr; gap: 2px; }
  .rp-card { padding: 20px; }
}

/* Public pages and offer pages: the common layout, in our fonts and colours */
body:has(.rp-guide), body:has(.rp-offer-form), body:has(.rp-res) { font-family: "Schibsted RP", "Helvetica Neue", Arial, sans-serif; color: #1d1720; }
body:has(.rp-guide) h1, body:has(.rp-guide) h2, body:has(.rp-offer-form) h1, body:has(.rp-offer-form) h2 { font-family: "Schibsted RP", Arial, sans-serif; font-weight: 600; letter-spacing: -0.025em; }
body:has(.rp-guide) h1 { font-size: clamp(2rem, 5vw, 2.8rem); line-height: 1.05; }
body:has(.rp-guide) .brand, body:has(.rp-offer-form) .brand { font-family: "Schibsted RP", Arial, sans-serif; font-weight: 700; font-size: 1.15rem; color: #1d1720; letter-spacing: -0.02em; }
body:has(.rp-guide) .brand-emoji, body:has(.rp-offer-form) .brand-emoji, body:has(.rp-res) .brand-emoji { font-size: 0; width: 24px; height: 24px; display: inline-block; vertical-align: -5px; margin-right: 8px; background: url("logo.svg") center / contain no-repeat; }
body:has(.rp-guide) .card, body:has(.rp-offer-form) .card { border-radius: 18px; box-shadow: inset 0 0 0 1px rgba(29, 23, 32, 0.1); background: #fffdfa; }
body:has(.rp-guide) .guide-table th { font-family: "Spline Mono RP", ui-monospace, monospace; font-weight: 400; letter-spacing: 0.03em; color: #635a66; }
body:has(.rp-guide) .guide-table td { font-variant-numeric: tabular-nums; }
body:has(.rp-guide) .guide-table td a, body:has(.rp-guide) .link-list a { color: #3b1d38; }
body:has(.rp-guide) .btn, body:has(.rp-offer-form) .btn { background: #3b1d38; color: #fff; border-radius: 8px; box-shadow: none; }
body:has(.rp-guide) .btn.secondary, body:has(.rp-offer-form) .btn.secondary { background: #fff; color: #3b1d38; box-shadow: inset 0 0 0 1px rgba(59, 29, 56, 0.35); }
body:has(.rp-guide) .source { font-family: "Spline Mono RP", ui-monospace, monospace; font-size: 0.72rem; }
.rp-guide-chart { margin: 8px 0 24px; }
