/* Pricing page (precios/, T9784): linked from content/pages/precios.html.twig.
   It reads the site tokens of multilang/HEADER.html (ramp, type, radius, motion). The Scale card is the
   only dark block; the red dot (--signal) marks the plan that matters and nothing else. */
.wrp {
  --navy: var(--wr-navy, #0f3554); --navy-dark: var(--wr-navy-dark, #0a2740);
  --text: var(--wr-text, #0f3554); --text-2: var(--wr-text-2, #44596b); --text-3: var(--wr-text-3, #5b6d7e);
  --paper: var(--wr-paper, #fff); --surface: var(--wr-surface, #f6f8fa); --surface-2: var(--wr-surface-2, #eef2f5);
  --line: var(--wr-line, rgba(15,53,84,0.10)); --line-strong: var(--wr-line-strong, rgba(15,53,84,0.18));
  --signal: var(--wr-signal, #b8292f);
  --on-navy: #fff; --on-navy-2: #cad3d9; --on-navy-3: #a4b2be;
  --on-navy-line: rgba(255,255,255,0.14); --on-navy-fill: rgba(255,255,255,0.10);
  --sans: var(--wr-font-sans, "DM Sans", sans-serif); --mono: var(--wr-font-mono, ui-monospace, monospace);
  --space-1: var(--wr-space-1, 8px); --space-2: var(--wr-space-2, 16px); --space-3: var(--wr-space-3, 24px);
  --space-4: var(--wr-space-4, 32px); --space-6: var(--wr-space-6, 48px); --space-8: var(--wr-space-8, 64px);
  --radius-panel: var(--wr-radius-panel, 16px); --radius: var(--wr-radius-card, 12px);
  --radius-sm: var(--wr-radius, 8px); --radius-xs: var(--wr-radius-sm, 6px);
  --nav-offset: 66px; /* height of the shared fixed navbar */
  --body-offset: 48px; /* the shared layout already pads <body> by this much under the navbar */
  --focus: var(--navy);
  --shadow-sm: var(--wr-shadow-sm, 0 1px 2px rgba(15,53,84,0.06));
  --shadow-md: var(--wr-shadow-md, 0 8px 24px rgba(15,53,84,0.08));
  /* Motion: every movement reads these tokens, so reduced motion only has to redefine them. */
  --ease-out: var(--wr-ease, cubic-bezier(0.22, 1, 0.36, 1));
  --t-fast: 150ms; --t: 200ms; --t-slide: 220ms;
  --t-roll: 450ms; --roll-stagger: 40ms;
  --t-out: 160ms; --t-in: 200ms; --delay-in: 120ms; --delay-annual: 180ms; --t-size: 200ms;
  --nudge: 3px; --press: 0.98; --panel-shift: 6px; --dialog-from: 0.98;
  font-family: var(--sans);
  color: var(--text);
}
.wrp [hidden] { display: none !important; }
.wrp section { padding: var(--space-8) 0; }
.wrp .wrp-h2 { font-weight: 500; letter-spacing: -0.01em; color: var(--text); font-size: 2rem; line-height: 40px; margin-bottom: 8px; text-wrap: balance; }
.wrp .wrp-h2-sub { color: var(--text-2); font-size: 1rem; line-height: 24px; max-width: 660px; margin: 0 auto var(--space-4); }
.wrp a:focus-visible, .wrp button:focus-visible, .wrp input:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.wrp-wrap { max-width: 1312px; margin: 0 auto; padding: 0 var(--space-2); }

/* ---- Hero ---- */
.wrp section.wrp-hero-section { padding: calc(var(--nav-offset) - var(--body-offset) + var(--space-6)) 0 0; }
.wrp-hero { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: var(--space-6); }
.wrp-hero-title { font-weight: 500; font-size: 3rem; line-height: 1.08; letter-spacing: -0.02em; color: var(--text); margin-bottom: var(--space-2); }
.wrp-hl { color: inherit; }
.wrp-hero-sub { color: var(--text-2); font-size: 1.125rem; line-height: 28px; max-width: 640px; margin-bottom: var(--space-2); }
.wrp-hero-pill { display: inline-flex; align-items: center; margin: 0; padding: 4px 12px; border: 1px solid var(--line); border-radius: var(--radius-xs); background: var(--surface); color: var(--text-2); font-size: 0.875rem; line-height: 20px; font-weight: 500; }
.wrp-hero-feats { list-style: none; margin: 0; padding: var(--space-1) 0 var(--space-1) var(--space-6); border-left: 1px solid var(--line); display: flex; flex-direction: column; gap: 20px; }
.wrp-hero-feat { display: flex; align-items: flex-start; gap: 12px; }
.wrp-hero-feat-icon { flex: 0 0 auto; width: 20px; height: 24px; display: flex; align-items: center; justify-content: center; color: var(--text-3); font-size: 18px; line-height: 1; }
.wrp-hero-feat strong { display: block; font-size: 1rem; line-height: 24px; font-weight: 500; color: var(--text); }
.wrp-hero-feat-text > span { display: block; font-size: 0.875rem; line-height: 20px; color: var(--text-2); }

/* ---- Demo band ---- */
.wrp-demo-wrap { margin-top: var(--space-4); }
.wrp-demo { --thumb-w: 176px; display: flex; align-items: center; gap: var(--space-3); width: 100%; padding: 8px 20px 8px 8px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); color: var(--text); font: inherit; text-align: left; cursor: pointer; transition: border-color var(--t-fast) var(--ease-out), background-color var(--t-fast) var(--ease-out); }
.wrp-demo:hover { border-color: var(--line-strong); background: var(--paper); }
.wrp-demo-thumb { position: relative; flex: 0 0 var(--thumb-w); aspect-ratio: 16 / 9; border-radius: 4px; overflow: hidden; background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line); }
.wrp-demo-art { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.wrp-demo-play { position: absolute; inset: 0; margin: auto; width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; border-radius: 50%; background: var(--navy); color: #fff; box-shadow: 0 0 0 4px rgba(255,255,255,0.8); transition: background-color var(--t-fast) var(--ease-out); }
.wrp-demo-play svg { margin-left: 2px; }
.wrp-demo:hover .wrp-demo-play { background: var(--navy-dark); }
.wrp-demo-text { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.wrp-demo-eyebrow { font-size: 0.8125rem; line-height: 20px; font-weight: 500; color: var(--text-3); }
.wrp-demo-title { font-size: 1.125rem; font-weight: 500; line-height: 24px; color: var(--text); }
.wrp-demo-title > span { font-family: var(--mono); font-size: 0.9375rem; font-weight: 400; color: var(--text-3); }
.wrp-demo-desc { font-size: 0.875rem; line-height: 20px; color: var(--text-2); }
.wrp-demo-chevron { flex: 0 0 auto; width: 32px; height: 32px; display: flex; align-items: center; justify-content: center; color: var(--text-3); transition: transform var(--t-fast) var(--ease-out); }
.wrp-demo:hover .wrp-demo-chevron { transform: translateX(var(--nudge)); }

/* ---- Video dialog (the one overlay; dark like the video it frames) ---- */
.wrp-video-dialog { --focus: #fff; inset: 0; margin: auto; width: min(960px, calc(100vw - var(--space-4))); max-width: none; max-height: calc(100vh - var(--space-4)); padding: 0; border: 0; border-radius: var(--radius-panel); background: var(--navy-dark); color: #fff; overflow: hidden; }
.wrp-video-dialog[open] { animation: wrp-dialog-in var(--t) var(--ease-out); }
.wrp-video-dialog::backdrop { background: rgba(10,39,64,0.72); animation: wrp-fade-in var(--t) var(--ease-out); }
.wrp-video-head { display: flex; align-items: center; justify-content: space-between; gap: var(--space-2); padding: 8px 8px 8px 20px; }
.wrp-video-title { margin: 0; font-size: 1rem; font-weight: 500; color: #fff; }
.wrp-video-close { flex: 0 0 auto; width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; border: 0; border-radius: var(--radius-sm); background: var(--on-navy-fill); color: #fff; cursor: pointer; transition: background-color var(--t-fast) var(--ease-out); }
.wrp-video-close:hover { background: rgba(255,255,255,0.2); }
.wrp-video-foot { display: flex; justify-content: flex-end; padding: 8px; }
.wrp-video-more { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 16px; border-radius: var(--radius-sm); background: var(--on-navy-fill); color: #fff; font-size: 0.875rem; font-weight: 500; text-decoration: none; transition: background-color var(--t-fast) var(--ease-out); }
.wrp-video-more:hover { background: rgba(255,255,255,0.2); color: #fff; text-decoration: none; }
.wrp-video-frame { position: relative; aspect-ratio: 16 / 9; background: #000; }
.wrp-video-frame > iframe, .wrp-video-frame > video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.wrp-video-empty { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; margin: 0; padding: var(--space-3); text-align: center; color: var(--on-navy-2); }
@keyframes wrp-dialog-in { from { opacity: 0; transform: scale(var(--dialog-from)); } to { opacity: 1; transform: none; } }
@keyframes wrp-fade-in { from { opacity: 0; } to { opacity: 1; } }

/* ---- Billing toggle ---- */
.wrp section.wrp-plans-section { padding-top: var(--space-6); }
.wrp-billing { display: flex; flex-direction: column; align-items: center; gap: var(--space-1); margin-bottom: var(--space-4); }
.wrp-billing-row { display: flex; align-items: center; justify-content: center; gap: var(--space-2); }
.wrp-billing-label { font-weight: 500; font-size: 0.875rem; color: var(--text-2); }
.wrp-toggle { position: relative; display: inline-grid; grid-template-columns: 1fr 1fr; padding: 4px; border: 1px solid var(--line-strong); border-radius: 10px; background: var(--paper); }
.wrp-toggle-indicator { position: absolute; top: 4px; bottom: 4px; left: 4px; width: calc(50% - 4px); border-radius: var(--radius-xs); background: var(--navy); transition: transform var(--t-slide) var(--ease-out); }
.wrp-toggle[data-value="annual"] .wrp-toggle-indicator { transform: translateX(100%); }
.wrp-toggle-btn { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-width: 8.5rem; min-height: 36px; padding: 0 16px; border: 0; border-radius: var(--radius-xs); background: transparent; color: var(--text-2); font: inherit; font-size: 0.875rem; font-weight: 500; cursor: pointer; transition: color var(--t-slide) var(--ease-out), background-color var(--t-fast) var(--ease-out); }
.wrp-toggle-btn:hover { background: var(--surface); }
.wrp-toggle-btn[aria-checked="true"] { background: transparent; color: #fff; }
.wrp-save { font-family: var(--mono); color: var(--text-3); font-size: 0.75rem; font-weight: 500; transition: color var(--t-slide) var(--ease-out); }
.wrp-toggle-btn[aria-checked="true"] .wrp-save { color: var(--on-navy-2); }
.wrp-billing-note { margin: 0; font-size: 0.8125rem; color: var(--text-3); }

/* ---- Plans: cards share row tracks (subgrid) so prices, details, lists and CTAs line up ---- */
.wrp-plans { --card-pad: var(--space-3); }
.wrp-cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--space-2); }
.wrp-card { position: relative; grid-row: span 6; display: grid; grid-template-rows: subgrid; row-gap: 0; padding: var(--card-pad); background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); transition: border-color var(--t-fast) var(--ease-out); }
.wrp-card.is-featured { --focus: #fff; background: var(--navy); border-color: var(--navy); color: #fff; box-shadow: var(--shadow-md); }
.wrp-flag { position: absolute; top: var(--card-pad); right: var(--card-pad); display: inline-flex; align-items: center; gap: 8px; margin: 0; font-size: 0.8125rem; line-height: 28px; font-weight: 500; color: var(--on-navy-2); white-space: nowrap; }
.wrp-flag::before, .wrp-table-chip::before { content: ""; flex: 0 0 auto; width: 8px; height: 8px; border-radius: 50%; background: var(--signal); }
.wrp-card-title { font-size: 1.25rem; line-height: 28px; font-weight: 500; color: var(--text); margin-bottom: 4px; }
.wrp-card-desc { font-size: 0.875rem; line-height: 20px; color: var(--text-2); margin-bottom: var(--space-3); }
/* The price box is a size container (the card cannot be one: containment would cancel its subgrid).
   The price scales with its width so the widest line, "desde 3.500 € /mes", always fits on one line.
   Figures are DM Mono, so every digit has the same width and the odometer reels never change size. */
.wrp-price-box { container-type: inline-size; }
.wrp-price { margin: 0 0 var(--space-1); color: var(--text); font-family: var(--mono); font-size: clamp(1.75rem, calc((100cqi - 5.5rem) / 4.3), 2.5rem); font-weight: 500; line-height: 1; letter-spacing: 0; white-space: nowrap; }
.wrp-amount { font-kerning: none; } /* the odometer cannot kern, so plain text does not either */
.wrp-from, .wrp-per { font-family: var(--sans); font-size: 0.875rem; font-weight: 400; letter-spacing: 0; color: var(--text-3); }
.wrp-per { margin-left: 4px; }
.wrp-detail-slot { display: grid; margin-bottom: var(--space-3); font-size: 0.8125rem; line-height: 20px; }
.wrp-detail { grid-area: 1 / 1; display: flex; flex-direction: column; margin: 0; color: var(--text-2); transition: opacity var(--t-out) ease, visibility 0s linear var(--t-out); }
.wrp-detail-save { color: var(--text); font-weight: 500; }
.wrp-plans[data-billing="annual"] [data-detail="monthly"], .wrp-plans[data-billing="monthly"] [data-detail="annual"] { opacity: 0; visibility: hidden; }
.wrp-plans[data-billing="monthly"] [data-detail="monthly"] { transition: opacity var(--t-in) ease var(--delay-in), visibility 0s; }
.wrp-plans[data-billing="annual"] [data-detail="annual"] { transition: opacity var(--t-in) ease var(--delay-annual), visibility 0s; }
.wrp-feats { list-style: none; margin: 0 0 var(--space-3); padding: var(--space-2) 0 0; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 8px; font-size: 0.875rem; line-height: 20px; color: var(--text-2); }
.wrp-feats li { display: flex; align-items: flex-start; gap: 8px; }
.wrp-feats i { flex: 0 0 auto; width: 16px; height: 20px; display: flex; align-items: center; justify-content: center; color: var(--text-3); font-size: 16px; line-height: 1; }
.wrp-feats strong { color: var(--text); font-weight: 600; }
.is-featured .wrp-card-title, .is-featured .wrp-price, .is-featured .wrp-feats strong, .is-featured .wrp-detail-save { color: #fff; }
.is-featured .wrp-card-desc, .is-featured .wrp-detail, .is-featured .wrp-feats { color: var(--on-navy-2); }
.is-featured .wrp-per, .is-featured .wrp-from, .is-featured .wrp-feats i { color: var(--on-navy-3); }
.is-featured .wrp-feats { border-top-color: var(--on-navy-line); }
.wrp-cta { display: flex; align-items: center; justify-content: center; gap: var(--space-1); min-height: 44px; padding: 10px 16px; border: 1px solid var(--line-strong); border-radius: var(--radius-sm); background: var(--paper); color: var(--text); font-weight: 500; font-size: 0.9375rem; text-align: center; text-decoration: none; transition: background-color var(--t-fast) var(--ease-out), border-color var(--t-fast) var(--ease-out), color var(--t-fast) var(--ease-out), transform var(--t-fast) var(--ease-out); }
.wrp-cta:hover { border-color: var(--navy); background: var(--surface); color: var(--text); }
.wrp-cta:active { transform: scale(var(--press)); }
.wrp-cta-solid { background: #fff; border-color: #fff; color: var(--navy); }
.wrp-cta-solid:hover, .wrp-cta-solid:active { background: var(--surface-2); border-color: var(--surface-2); color: var(--navy); }
@media (hover: hover) {
  .wrp-card:not(.is-featured):hover { border-color: var(--line-strong); }
}

/* ---- Plan tabs + other-plan summaries (mobile, enabled by JS) ---- */
.wrp-tabs { margin: var(--space-2) 0; scroll-margin-top: calc(var(--nav-offset) + var(--space-4)); }
.wrp-tablist { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 2px; padding: 4px; border: 1px solid var(--line-strong); border-radius: 10px; background: var(--paper); }
.wrp-tab { position: relative; min-height: 40px; padding: 0 2px; border: 0; border-radius: var(--radius-xs); background: transparent; color: var(--text-2); font: inherit; font-size: 0.875rem; font-weight: 500; cursor: pointer; transition: background-color var(--t-fast) var(--ease-out), color var(--t-fast) var(--ease-out); }
.wrp-tab:hover { background: var(--surface); }
.wrp-tab[aria-selected="true"] { background: var(--navy); color: #fff; }
/* The featured plan's tab carries the signature dot; its name is in the visually hidden text. */
.wrp-tab-badge { position: absolute; top: 6px; right: 6px; width: 6px; height: 6px; overflow: hidden; border-radius: 50%; background: var(--signal); color: transparent; font-size: 0; }
/* Each panel keeps its natural height; JS sets the box to the active panel's height and it eases. */
.wrp-plans.is-tabs .wrp-cards { grid-template-columns: minmax(0, 1fr); align-items: start; transition: height var(--t-size) ease; }
.wrp-plans.is-tabs .wrp-card { grid-area: 1 / 1; opacity: 0; visibility: hidden; transform: translateY(var(--panel-shift)); transition: none; }
.wrp-plans.is-tabs .wrp-card.is-current { opacity: 1; visibility: visible; transform: none; transition: opacity var(--t) ease, transform var(--t) var(--ease-out); }
.wrp-alts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-1); margin-top: var(--space-2); }
.wrp-alt { container-type: inline-size; position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 4px; padding: 12px 8px 12px 12px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--paper); color: var(--text); font: inherit; text-align: left; cursor: pointer; transition: border-color var(--t-fast) var(--ease-out); }
.wrp-alt:hover { border-color: var(--line-strong); }
.wrp-alt-name { padding-right: 20px; font-size: 0.875rem; font-weight: 500; }
.wrp-alt-price { font-family: var(--mono); font-size: clamp(0.875rem, calc((100cqi - 2.25rem) / 4.3), 1.125rem); font-weight: 500; line-height: 1.1; white-space: nowrap; }
.wrp-alt-price .wrp-from, .wrp-alt-price .wrp-per { font-size: 0.75rem; }
.wrp-alt-price .wrp-from { display: block; }
.wrp-alt-limit { font-size: 0.75rem; line-height: 16px; color: var(--text-3); }
.wrp-alt-go { position: absolute; top: 12px; right: 8px; width: 16px; height: 16px; display: flex; align-items: center; justify-content: center; color: var(--text-3); font-size: 14px; line-height: 1; }

/* ---- Odometer, ported from events (T5272): each digit is a 0-9 reel moved by --value.
   No roll on load (the HTML already holds the final price); changing --value rolls the reel.
   JS sizes each window to the digit it shows (1ch is the fallback); in DM Mono they all match. ---- */
.wrp-odo { display: inline-flex; line-height: 1; }
.wrp-odo-digit { width: 1ch; height: 1em; overflow: hidden; overflow: clip; }
.wrp-plans.is-rolling .wrp-odo-digit { transition: width var(--t-roll) var(--ease-out) calc(var(--i, 0) * var(--roll-stagger)); } /* only while rolling, not on resize */
.wrp-odo-reel { display: flex; flex-direction: column; transform: translateY(calc(var(--value) * -1em)); transition: transform var(--t-roll) var(--ease-out); transition-delay: calc(var(--i, 0) * var(--roll-stagger)); }
.wrp-odo-reel > span { display: flex; align-items: center; justify-content: center; height: 1em; flex: 0 0 1em; white-space: nowrap; }

/* ---- Helper + legal ---- */
.wrp-helper { display: flex; align-items: center; justify-content: center; gap: 12px; margin-top: var(--space-3); padding: 16px var(--space-3); border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); color: var(--text-2); text-decoration: none; transition: border-color var(--t-fast) var(--ease-out), background-color var(--t-fast) var(--ease-out); }
.wrp-helper:hover { border-color: var(--line-strong); background: var(--surface); color: var(--text-2); }
.wrp-helper-text { font-size: 0.9375rem; }
.wrp-helper-cta { color: var(--text); font-weight: 500; text-decoration: underline; text-decoration-color: var(--line-strong); text-underline-offset: 4px; }
.wrp-helper:hover .wrp-helper-cta { text-decoration-color: currentColor; }
.wrp-helper-chevron { flex: 0 0 auto; display: flex; color: var(--text-3); transition: transform var(--t-fast) var(--ease-out); }
.wrp-helper:hover .wrp-helper-chevron { transform: translateX(var(--nudge)); }
.wrp-legal { text-align: center; font-size: 0.8125rem; color: var(--text-3); margin: var(--space-2) 0 0; }

/* ---- Social proof ---- */
.wrp section.wrp-social-section { padding: var(--space-3) 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.wrp-social { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: var(--space-2) var(--space-4); }
.wrp-social-label { font-size: 0.8125rem; line-height: 18px; color: var(--text-3); max-width: 160px; }
.wrp-social-logos { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px var(--space-3); }
.wrp-social-logos img { height: 48px; width: auto; display: block; filter: grayscale(1); opacity: 0.6; }
.wrp-social-stats { font-family: var(--mono); font-size: 0.8125rem; color: var(--text-2); white-space: nowrap; }

/* ---- What is a product ---- */
.wrp section.wrp-what-section { padding-bottom: var(--space-4); }
.wrp-what { display: grid; grid-template-columns: 40fr 60fr; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-panel); overflow: hidden; }
.wrp-what-def { padding: var(--space-3); }
.wrp-what-def h2 { font-size: 1.25rem; line-height: 28px; font-weight: 500; color: var(--text); margin-bottom: 8px; }
.wrp-what-def p { font-size: 0.875rem; line-height: 22px; color: var(--text-2); margin-bottom: 8px; }
.wrp-what-def .wrp-what-claim { color: var(--text); font-weight: 500; margin-bottom: 0; }
.wrp-what-items { display: grid; grid-template-columns: repeat(4, 1fr); background: var(--paper); border-left: 1px solid var(--line); }
.wrp-what-item { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; padding: var(--space-3) 8px; text-align: center; }
.wrp-what-item + .wrp-what-item { border-left: 1px solid var(--line); }
.wrp-what-item i { font-size: 20px; line-height: 1; color: var(--text-3); }
.wrp-what-item span { font-size: 0.875rem; font-weight: 500; color: var(--text); }

/* ---- All plans include ---- */
.wrp section.wrp-includes-section { padding-top: var(--space-6); }
.wrp-includes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.wrp-mini { display: flex; align-items: center; gap: 12px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: var(--space-2); font-size: 0.875rem; line-height: 20px; font-weight: 500; color: var(--text); }
.wrp-mini i { font-size: 18px; line-height: 1; color: var(--text-3); flex: 0 0 auto; }

/* ---- Data types ---- */
.wrp-types-section { background: var(--surface); }
.wrp-types { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-2); }
.wrp-type { display: flex; gap: 12px; align-items: flex-start; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: var(--space-3); }
.wrp-type-icon { flex: 0 0 auto; width: 20px; height: 24px; display: flex; align-items: center; justify-content: center; color: var(--text-3); font-size: 20px; line-height: 1; }
.wrp-type > div > strong { display: block; font-size: 1rem; line-height: 24px; font-weight: 500; color: var(--text); margin-bottom: 4px; }
.wrp-type > div > span { display: block; font-size: 0.875rem; line-height: 22px; color: var(--text-2); }
.wrp-note { text-align: center; font-size: 0.8125rem; color: var(--text-3); margin-top: var(--space-3); }

/* ---- Trust ---- */
.wrp-trust { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.wrp-trust .wrp-mini { background: var(--surface); }

/* ---- Calculator: the controls read like a form, the result like the line that matters on a statement ---- */
.wrp-calc { display: grid; grid-template-columns: 7fr 5fr; gap: var(--space-3); align-items: stretch; }
.wrp-calc-controls { display: flex; flex-direction: column; padding: 0 var(--space-3); background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-panel); }
.wrp-calc fieldset { border: 0; margin: 0; padding: 20px 0; }
.wrp-calc fieldset + fieldset { border-top: 1px solid var(--line); }
/* A floated legend leaves the fieldset border, so the hairline above runs the full width. */
.wrp-calc legend { float: left; width: 100%; padding: 0; font-size: 0.875rem; line-height: 20px; font-weight: 500; color: var(--text); margin: 0 0 12px; }
.wrp-seg { clear: left; display: flex; flex-wrap: wrap; gap: 8px; }
.wrp-seg-btn { min-height: 40px; border: 1px solid var(--line-strong); background: var(--paper); border-radius: var(--radius-sm); padding: 8px 14px; font-weight: 500; font-size: 0.875rem; line-height: 20px; color: var(--text-2); cursor: pointer; font-family: inherit; transition: background-color var(--t-fast) var(--ease-out), color var(--t-fast) var(--ease-out), border-color var(--t-fast) var(--ease-out); }
.wrp-seg-btn[data-volume]:not([data-volume="custom"]) { font-family: var(--mono); min-width: 64px; }
.wrp-seg-btn:hover { border-color: var(--navy); color: var(--text); }
.wrp-seg-btn.is-active { background: var(--navy); border-color: var(--navy); color: #fff; }
.wrp-custom { display: none; align-items: center; gap: 12px; margin-top: 12px; }
.wrp-custom.is-visible { display: flex; }
.wrp-custom label { font-size: 0.875rem; color: var(--text-2); font-weight: 500; }
.wrp-custom input { width: 160px; min-height: 40px; border: 1px solid var(--line-strong); border-radius: var(--radius-sm); padding: 8px 12px; font-family: var(--mono); font-size: 1rem; color: var(--text); }
.wrp-custom input:focus { border-color: var(--navy); outline: 0; box-shadow: 0 0 0 3px rgba(15,53,84,0.12); }
.wrp-calc-result { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-panel); padding: var(--space-4); }
.wrp-calc-result-label { font-size: 0.875rem; font-weight: 500; color: var(--text-3); margin-bottom: 8px; }
.wrp-calc-plan { display: flex; align-items: center; gap: 12px; font-size: 2rem; line-height: 40px; font-weight: 500; letter-spacing: -0.01em; color: var(--text); margin-bottom: 8px; }
.wrp-calc-plan::before { content: ""; flex: 0 0 auto; width: 8px; height: 8px; border-radius: 50%; background: var(--signal); }
.wrp-calc-plan:empty::before { content: none; }
.wrp-calc-price { font-size: 1.125rem; line-height: 28px; font-weight: 500; color: var(--text); margin-bottom: var(--space-2); padding-bottom: var(--space-2); border-bottom: 1px solid var(--line); }
.wrp-calc-reason { font-size: 0.875rem; line-height: 22px; color: var(--text-2); margin-bottom: 8px; }
.wrp-calc-extra { font-size: 0.875rem; line-height: 22px; color: var(--text-2); margin-bottom: var(--space-3); min-height: 22px; }
.wrp-calc-result .wrp-cta { margin-top: auto; }
/* From the featured plan up the script makes this button solid: on this light panel that is the navy fill. */
.wrp-calc-result .wrp-cta-solid { background: var(--navy); border-color: var(--navy); color: #fff; }
.wrp-calc-result .wrp-cta-solid:hover, .wrp-calc-result .wrp-cta-solid:active { background: var(--navy-dark); border-color: var(--navy-dark); color: #fff; }
.wrp-calc-disclaimer { font-size: 0.75rem; line-height: 18px; color: var(--text-3); margin-top: 12px; margin-bottom: 0; }

/* ---- Comparison ---- */
.wrp-compare-section { background: var(--surface); }
.wrp-table-wrap { overflow-x: auto; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); }
.wrp-table { width: 100%; border-collapse: collapse; font-size: 0.875rem; min-width: 760px; }
.wrp-table th, .wrp-table td { padding: 12px 16px; border-bottom: 1px solid var(--line); text-align: center; }
.wrp-table thead th { color: var(--text); font-weight: 500; font-size: 1rem; padding-top: 16px; vertical-align: bottom; }
.wrp-table tbody tr:last-child th, .wrp-table tbody tr:last-child td { border-bottom: 0; }
.wrp-table tbody th { text-align: left; font-weight: 500; color: var(--text); }
.wrp-table td { color: var(--text-2); }
.wrp-table .wrp-col-featured { background: var(--surface); }
.wrp-table-chip { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 4px; font-size: 0.75rem; line-height: 16px; font-weight: 400; color: var(--text-3); }
.wrp-table i.ri-check-line { color: var(--text); font-size: 18px; }
.wrp-table .wrp-dash { color: var(--text-3); }
.wrp-compare-mobile { display: none; }
.wrp-compare-mobile .accordion-item { border: 1px solid var(--line); border-radius: var(--radius-sm); overflow: hidden; margin-bottom: 8px; background: var(--paper); }
.wrp-compare-mobile .accordion-button { font-weight: 500; color: var(--text); background: var(--paper); box-shadow: none; }
.wrp-compare-mobile .accordion-button:not(.collapsed) { background: var(--paper); color: var(--text); box-shadow: none; }
.wrp-compare-mobile .wrp-table-chip { display: inline-flex; margin: 0 0 0 12px; }
.wrp-compare-mobile .wrp-compare-dl { display: flex; flex-direction: column; gap: 8px; margin: 0; }
.wrp-compare-mobile .wrp-compare-dl > div { display: flex; justify-content: space-between; gap: 12px; font-size: 0.875rem; }
.wrp-compare-mobile dt { color: var(--text-3); font-weight: 400; }
.wrp-compare-mobile dd { color: var(--text); font-weight: 500; margin: 0; text-align: right; }
.wrp-compare-mobile i.ri-check-line { color: var(--text); font-size: 18px; }

/* ---- FAQ ---- */
.wrp-faq-section { background: var(--surface); }
.wrp-faq { display: grid; grid-template-columns: 1fr 1fr; gap: 0 var(--space-2); align-items: start; }
.wrp-faq .accordion-item { border: 1px solid var(--line); border-radius: var(--radius-sm); overflow: hidden; margin-bottom: 8px; background: var(--paper); }
.wrp-faq .accordion-button { font-weight: 500; color: var(--text); background: var(--paper); font-size: 1rem; line-height: 24px; padding: 16px 20px; box-shadow: none; }
.wrp-faq .accordion-button:not(.collapsed) { background: var(--paper); color: var(--text); box-shadow: none; }
.wrp-faq .accordion-button:focus { box-shadow: none; }
.wrp-faq .accordion-body { font-size: 0.9375rem; line-height: 24px; color: var(--text-2); padding: 0 20px 20px; }

/* ---- Final CTA (light: the Scale card stays the only dark block) ---- */
.wrp-plate { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-panel); color: var(--text); }
.wrp-final { padding: var(--space-6) 56px; display: flex; align-items: center; justify-content: space-between; gap: var(--space-4); }
.wrp-final-content { max-width: 560px; }
.wrp-final h2 { font-weight: 500; letter-spacing: -0.01em; color: var(--text); font-size: 2rem; line-height: 40px; margin-bottom: 8px; text-wrap: balance; }
.wrp-final p { color: var(--text-2); font-size: 1rem; line-height: 24px; margin-bottom: 0; }
.wrp-final-actions { display: flex; flex-direction: column; gap: 12px; flex: 0 0 auto; }
.wrp-final-actions .wr-btn { justify-content: center; }

/* ---- Responsive ---- */
@media (max-width: 1199.98px) {
  .wrp-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .wrp-hero-title { font-size: 2.5rem; }
}
@media (max-width: 991.98px) {
  .wrp section.wrp-hero-section { padding-top: calc(var(--nav-offset) - var(--body-offset) + var(--space-4)); }
  .wrp-hero { grid-template-columns: minmax(0, 1fr); gap: var(--space-3); }
  .wrp-hero-feats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-2); padding: var(--space-3) 0 0; border-left: 0; border-top: 1px solid var(--line); }
  .wrp-what { grid-template-columns: 1fr; }
  .wrp-what-items { border-left: 0; border-top: 1px solid var(--line); }
  .wrp-types { grid-template-columns: 1fr; }
  .wrp-calc { grid-template-columns: 1fr; }
  .wrp-faq { grid-template-columns: 1fr; }
  .wrp-final { flex-direction: column; align-items: flex-start; padding: 40px 32px; }
  .wrp-final-actions { flex-direction: row; flex-wrap: wrap; }
}
@media (max-width: 767.98px) {
  .wrp { --nav-offset: 63px; }
  .wrp section { padding: var(--space-6) 0; }
  .wrp section.wrp-hero-section { padding-top: calc(var(--nav-offset) - var(--body-offset) + 20px); }
  .wrp .wrp-h2 { font-size: 1.5rem; line-height: 32px; }
  .wrp-hero-title { font-size: 2rem; line-height: 1.12; letter-spacing: -0.01em; margin-bottom: 12px; }
  .wrp-hero-sub { font-size: 1rem; line-height: 24px; margin-bottom: 12px; }
  .wrp-hero-feats { display: none; }
  .wrp-demo-wrap { margin-top: var(--space-2); }
  .wrp-demo { --thumb-w: 40%; gap: 12px; padding: 8px 12px 8px 8px; border-radius: var(--radius-sm); }
  .wrp-demo-play { width: 32px; height: 32px; box-shadow: 0 0 0 3px rgba(255,255,255,0.8); }
  .wrp-demo-play svg { width: 11px; height: 11px; }
  .wrp-demo-text { gap: 2px; }
  .wrp-demo-eyebrow { font-size: 0.75rem; line-height: 16px; }
  .wrp-demo-title { font-size: 0.9375rem; line-height: 20px; }
  .wrp-demo-title > span { font-size: 0.8125rem; }
  .wrp-demo-desc { font-size: 0.8125rem; line-height: 18px; }
  .wrp-demo-chevron { width: 20px; height: 20px; }
  .wrp-video-dialog { width: calc(100vw - var(--space-3)); }
  .wrp section.wrp-plans-section { padding-top: var(--space-2); }
  .wrp-billing { align-items: stretch; margin-bottom: 0; }
  .wrp-billing-row { justify-content: space-between; padding: 4px 4px 4px var(--space-2); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
  .wrp-toggle-btn { min-width: 0; padding: 0 12px; }
  .wrp-billing-note { text-align: center; font-size: 0.75rem; }
  .wrp-plans { --card-pad: 20px; }
  .wrp-cards { grid-template-columns: minmax(0, 1fr); }
  .wrp-card { display: flex; flex-direction: column; grid-row: auto; }
  .wrp-card.is-featured { order: -1; }
  .wrp-card-desc { margin-bottom: var(--space-2); }
  .wrp-helper { justify-content: flex-start; gap: 12px; padding: 12px var(--space-2); }
  .wrp-helper-text { flex: 1 1 auto; }
  .wrp-helper-text > span { display: block; }
  .wrp-compare-desktop { display: none; }
  .wrp-compare-mobile { display: block; }
  .wrp-includes { grid-template-columns: repeat(2, 1fr); }
  .wrp-trust { grid-template-columns: 1fr; }
  .wrp-social-logos img { height: 40px; }
  .wrp-social-stats { white-space: normal; text-align: center; }
  .wrp-calc-result { padding: var(--space-3); }
  .wrp-calc-plan { font-size: 1.5rem; line-height: 32px; }
}
@media (max-width: 575.98px) {
  .wrp-hero-pill { display: none; }
  .wrp-includes { grid-template-columns: 1fr; }
  .wrp-what-items { grid-template-columns: repeat(2, 1fr); }
  .wrp-what-item:nth-child(3) { border-left: 0; }
  .wrp-what-item:nth-child(n+3) { border-top: 1px solid var(--line); }
  .wrp-calc-controls { padding: 0 var(--space-2); }
  .wrp-final { padding: 32px 20px; }
  .wrp-final-actions { flex-direction: column; align-self: stretch; }
}
@media (max-width: 359.98px) {
  .wrp { --nav-offset: 100px; } /* the shared navbar wraps to two rows here */
  .wrp-demo { --thumb-w: 34%; }
  .wrp-demo-desc { display: none; }
  .wrp-billing-row { flex-direction: column; align-items: stretch; gap: 4px; padding: 8px; }
  .wrp-billing-label { padding-left: var(--space-1); }
  .wrp-tab { font-size: 0.8125rem; }
  .wrp-alts { grid-template-columns: minmax(0, 1fr); }
  .wrp-alt { flex-direction: row; flex-wrap: wrap; align-items: baseline; gap: 2px 8px; padding: 8px 40px 8px 12px; }
  .wrp-alt-name { padding-right: 0; }
  .wrp-alt-price .wrp-from { display: inline; }
  .wrp-alt-limit { flex-basis: 100%; }
  .wrp-alt-go { top: 0; bottom: 0; margin: auto 0; }
}
@media (prefers-reduced-motion: reduce) {
  .wrp {
    --t-slide: 0s; --t-roll: 0s; --roll-stagger: 0s;
    --t-out: 100ms; --t-in: 100ms; --delay-in: 0s; --delay-annual: 0s; --t-size: 0s;
    --nudge: 0px; --press: 1; --panel-shift: 0px; --dialog-from: 1;
  }
}
