/* IRIVI pricing · Persuade.
   One price sheet instead of a control box above three separate cards: period and volume form the
   sheet's header and the plans are its columns, so every setting sits directly above the prices it
   changes. Notes sit under the control or line they qualify. Recommended plan: tinted column, forest
   cap, a visible text label (also in its heading for screen readers) and the only filled action.
   Comparison: four columns on wide screens; at 760px and below each row reflows into
   criterion → three aligned values under a sticky plan row, so 320px needs no horizontal scroll.
   Loaded only by subscriptions/public/pricing.html; selectors are scoped under .pr. Tokens and shared
   primitives (.page-width, .button, .visually-hidden) come from marketing.css.
   marketing.js contract kept: [data-pricing-controls] (GET form, auto-submit on change),
   [data-plan] buttons with aria-pressed, [data-price-plan] plans toggled with [hidden],
   html.pricing-enhanced and the same 760px breakpoint. */

.pr{--pr-pick:#f2f6ea;--pr-pick-seam:#d6e2c7;--pr-accent:#2f6b55;--pr-radius:18px;--pr-ease:cubic-bezier(.16,1,.3,1)}
.pr .button svg{width:20px;height:20px;stroke-width:2;transition:transform .2s var(--pr-ease)}
.pr .button:hover svg{transform:translateX(3px)}

/* First screen: the page's name and the billing rule */
.pr-hero{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.15fr);gap:16px 64px;align-items:end;padding-block:52px 36px}
.pr-hero h1{color:var(--forest);font-size:clamp(42px,5vw,72px);line-height:1;letter-spacing:-.035em}
.pr-rule{max-width:58ch}
.pr-lead{font-size:clamp(17px,1.4vw,20px);line-height:1.5}
.pr-lead strong{color:var(--forest);font-weight:800}
.pr-pay{margin-top:12px;color:var(--muted);font-size:15px}
.pr-pay a{font-weight:750;white-space:nowrap}
.pr-pay svg{width:16px;height:16px;margin-left:4px;vertical-align:-3px;stroke-width:2.2}

/* The sheet. No overflow clipping: the recommended label straddles the header seam
   and the comparison row header is sticky on phones. */
.pr-sheet{position:relative;border-radius:var(--pr-radius);background:var(--white);box-shadow:0 1px 3px rgb(9 46 39 / .1),0 28px 56px -36px rgb(6 30 25 / .42)}

/* Header: the two settings that change the prices */
.pr-controls{display:flex;flex-wrap:wrap;align-items:flex-start;gap:18px 56px;padding:22px 28px;border-bottom:1px solid var(--line-soft);border-radius:var(--pr-radius) var(--pr-radius) 0 0;background:var(--paper)}
.pr-field{min-width:0;margin:0;padding:0;border:0}
.pr-field legend{margin-bottom:8px;padding:0;color:var(--ink);font-size:14px;font-weight:750}
.pr-seg{display:flex;width:max-content;max-width:100%;padding:3px;border-radius:12px;background:var(--sage)}
.pr-seg label{position:relative;display:flex;flex:1 1 auto;min-width:0;cursor:pointer}
.pr-seg input{position:absolute;inset:0;width:100%;height:100%;margin:0;opacity:0;cursor:pointer}
.pr-seg label>span{display:flex;align-items:center;justify-content:center;gap:8px;width:100%;min-width:64px;min-height:44px;padding:0 14px;border-radius:9px;font-size:15px;font-weight:700;white-space:nowrap;transition:background-color .15s ease-out,color .15s ease-out}
.pr-seg label:hover>span{background:#e0e8d9}
.pr-seg input:checked+span{background:var(--forest);color:#fff}
.pr-seg input:focus-visible+span{outline:3px solid var(--focus);outline-offset:2px}
.pr-seg small{padding:2px 8px;border-radius:999px;background:var(--lime);color:var(--forest);font-size:12px;font-weight:800;line-height:1.4}
/* The note takes the width of its control instead of widening it. */
.pr-note{width:0;min-width:100%;margin-top:8px;color:var(--muted);font-size:14px;line-height:1.45}
.pr-note a{font-weight:700;white-space:nowrap}
.pr-apply{align-self:center;margin-left:auto}
.pricing-enhanced .pr-apply{display:none}

/* Plan switch for phones (marketing.js shows one plan at a time below 761px) */
.pr-tabs{display:none}

/* Plans: three columns of one sheet; rows line up through subgrid */
.pr-plans{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));grid-template-rows:repeat(6,auto)}
.pr-plan{position:relative;display:grid;grid-row:span 6;grid-template-rows:subgrid;align-content:start;min-width:0;padding:30px 28px 26px}
.pr-plan+.pr-plan{border-left:1px solid var(--line-soft)}
.pr-plan[hidden]{display:none}
.pr-plan.is-pick{background:var(--pr-pick);box-shadow:inset 0 4px var(--forest)}
.pr-pick-label{position:absolute;top:0;left:28px;z-index:1;padding:4px 12px;border-radius:999px;background:var(--forest);color:var(--lime);font-size:12.5px;font-weight:800;line-height:1.3;white-space:nowrap;transform:translateY(-50%)}
.pr-plan h2{color:var(--ink);font-size:clamp(22px,2vw,27px);letter-spacing:-.025em}
.pr-desc{margin-top:6px;color:var(--muted);font-size:15px;line-height:1.45}

.pr-money{margin-top:22px}
.pr-price{display:flex;flex-wrap:wrap;align-items:baseline;column-gap:8px;color:var(--forest)}
.pr-price strong{font-size:clamp(34px,3.2vw,46px);font-weight:800;line-height:1.05;letter-spacing:-.035em;white-space:nowrap}
.pr-approx{margin-right:-3px;font-size:clamp(22px,2vw,28px);font-weight:700;line-height:1}
.pr-unit{color:var(--muted);font-size:15px;font-weight:650;white-space:nowrap}
.pr-request{font-size:clamp(28px,2.6vw,36px);font-weight:800;line-height:1.1;letter-spacing:-.03em}
.pr-cond{margin-top:6px;color:var(--muted);font-size:14px}
.pr-total{margin-top:2px;font-size:15px;font-weight:750}
.pr-setup{margin-top:14px;padding-top:12px;border-top:1px solid var(--line-soft);font-size:14px}
.is-pick .pr-setup,.is-pick .pr-incl{border-top-color:var(--pr-pick-seam)}
.pr-nowrap{white-space:nowrap}

.pr-label{color:var(--muted);font-size:13px;font-weight:750;line-height:1.4}
.pr-fit{margin-top:20px}
.pr-fit p+p{margin-top:4px;font-size:15px;line-height:1.5}

.pr-action{margin-top:22px}
.pr-cta{width:100%;min-height:50px;padding:12px 16px;border-color:var(--forest);background:transparent;color:var(--forest)}
.pr-cta:hover{background:var(--sage);color:var(--forest)}
.is-pick .pr-cta{border-color:transparent;background:var(--forest);color:#fff}
.is-pick .pr-cta:hover{background:var(--forest-hover);color:#fff}

.pr-incl{margin-top:26px;padding-top:20px;border-top:1px solid var(--line-soft)}
.pr-incl:empty{margin:0;padding:0;border:0}
.pr-incl ul{display:grid;gap:9px;margin-top:10px;list-style:none}
.pr-incl li{display:flex;gap:10px;font-size:15px;line-height:1.45}
.pr-incl svg{width:18px;height:18px;margin-top:2px;color:var(--pr-accent);stroke-width:2.2}
.pr-rev{margin-top:18px;color:var(--muted);font-size:13px}

.pr-foot{padding:16px 28px;border-top:1px solid var(--line-soft);color:var(--muted);font-size:14px;line-height:1.5}

/* Comparison */
.pr-compare{border-top:1px solid var(--line-soft)}
.pr-compare>summary{display:flex;align-items:center;justify-content:space-between;gap:16px;min-height:60px;padding:0 28px;border-radius:0 0 var(--pr-radius) var(--pr-radius);color:var(--forest);font-size:16px;font-weight:750;list-style:none;transition:background-color .15s ease-out}
.pr-compare>summary::-webkit-details-marker,.pr-faq summary::-webkit-details-marker{display:none}
.pr-compare>summary:hover{background:var(--paper)}
.pr-compare>summary:focus-visible{outline-offset:-3px}
.pr-compare[open]>summary{border-radius:0}
.pr-compare>summary svg,.pr-faq summary svg{width:20px;height:20px;stroke-width:2;transition:transform .2s var(--pr-ease)}
.pr-compare[open]>summary svg,.pr-faq details[open]>summary svg{transform:rotate(180deg)}
.pr-table-wrap{padding:0 28px 26px}
.pr-table{width:100%;border-collapse:collapse;table-layout:fixed;font-size:15px;line-height:1.45}
.pr-table th,.pr-table td{padding:12px 16px;border-bottom:1px solid var(--line-soft);text-align:left;vertical-align:top;overflow-wrap:break-word}
.pr-table thead th{border-bottom-color:var(--line);color:var(--ink);font-size:14px;font-weight:800}
.pr-table thead th:first-child{width:32%;color:var(--muted);font-weight:700}
.pr-table tbody th{font-weight:650}
.pr-table tbody tr:last-child>*{border-bottom:0}
.pr-table .is-pick{background:var(--pr-pick)}

/* Questions */
.pr-faq{display:grid;grid-template-columns:minmax(220px,1fr) minmax(0,2fr);gap:20px 40px;align-items:start;padding-block:88px 24px}
.pr-faq h2{font-size:clamp(30px,3vw,40px)}
.pr-faq-list{display:grid;gap:8px}
.pr-faq details{border:1px solid var(--line-soft);border-radius:12px;background:var(--white)}
.pr-faq details[open]{border-color:var(--sage);background:var(--sage)}
.pr-faq summary{display:flex;align-items:center;justify-content:space-between;gap:16px;min-height:60px;padding:14px 20px;border-radius:12px;font-size:17px;font-weight:750;line-height:1.35;list-style:none}
.pr-faq summary svg{color:var(--forest)}
.pr-faq p{max-width:72ch;padding:0 20px 20px;font-size:15px;line-height:1.65}

/* Close: how connection works, next to the only action it needs */
.pr-connect{padding-block:48px 56px}
.pr-connect-banner{display:grid;grid-template-columns:minmax(0,1fr);justify-items:start;gap:28px;padding:40px 44px;border-radius:18px;background:var(--lime);color:var(--forest)}
.pr-connect-banner :focus-visible{outline-color:var(--forest)}
.pr-connect h2{font-size:clamp(30px,3vw,42px)}
.pr-steps{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));justify-self:stretch;list-style:none}
.pr-steps li{padding-right:32px}
.pr-step-head{display:flex;align-items:center;gap:12px}
.pr-step-head>span{display:grid;place-items:center;flex-shrink:0;width:36px;height:36px;border-radius:50%;background:var(--forest);color:var(--lime);font-size:16px;font-weight:800}
.pr-step-head h3{font-size:20px}
.pr-steps li:not(:last-child) .pr-step-head::after{content:'';flex:1 1 24px;height:2px;margin-right:-32px;background:color-mix(in srgb,var(--forest) 30%,transparent)}
.pr-steps p{max-width:34ch;margin:8px 0 0 48px;font-size:15px;line-height:1.5}

@supports not (grid-template-rows:subgrid){
  .pr-plan{display:flex;flex-direction:column}
  .pr-incl{flex:1}
}
@media (forced-colors:active){
  .pr-seg input:checked+span{outline:2px solid CanvasText;outline-offset:-2px}
  .pr-seg input:focus-visible+span{outline:3px solid Highlight}
  .pr-plan.is-pick{outline:2px solid CanvasText;outline-offset:-2px}
  .pr-tabs button[aria-pressed=true]{border-bottom-color:Highlight}
}

@media (max-width:1120px){
  .pr-controls{padding-inline:20px;column-gap:40px}
  .pr-plan{padding:28px 20px 22px}
  .pr-pick-label{left:20px}
  .pr-foot,.pr-compare>summary{padding-inline:20px}
  .pr-table-wrap{padding-inline:20px}
  .pr-cta{padding-inline:10px;font-size:15px}
  .pr-connect-banner{padding:32px}
}
@media (max-width:900px){
  .pr-hero{grid-template-columns:minmax(0,1fr);gap:16px;padding-block:40px 28px}
  .pr-faq{grid-template-columns:minmax(0,1fr);padding-block:64px 16px}
  .pr-connect-banner{gap:24px}
  .pr-steps{grid-template-columns:minmax(0,1fr);gap:18px}
  .pr-steps li{position:relative;padding:0 0 0 48px}
  .pr-step-head{margin-left:-48px}
  .pr-steps li:not(:last-child) .pr-step-head::after{display:none}
  .pr-steps li:not(:last-child)::before{content:'';position:absolute;left:17px;top:40px;bottom:-14px;width:2px;background:color-mix(in srgb,var(--forest) 30%,transparent)}
  .pr-steps p{margin:4px 0 0}
}
@media (max-width:760px){
  .pr{--pr-radius:16px}
  .pr-hero{gap:12px;padding-block:18px}
  .pr-hero h1{font-size:clamp(36px,10.5vw,46px)}
  .pr-lead{font-size:16.5px}
  .pr-pay{font-size:14.5px}
  .pr-controls{display:grid;grid-template-columns:minmax(0,1fr);gap:12px;padding:12px 14px}
  .pr-seg{width:auto}
  .pr-seg label>span{min-width:0;padding:0 6px}
  .pr-note{font-size:13.5px}
  .pr-apply{width:100%;margin-left:0}

  .pricing-enhanced .pr-tabs{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));padding:0 6px;border-bottom:1px solid var(--line)}
  .pr-tabs button{min-height:46px;margin-bottom:-1px;padding:6px 2px;border:0;border-bottom:3px solid transparent;background:none;color:var(--muted);font-size:15px;font-weight:750;line-height:1.2}
  .pr-tabs button:hover{color:var(--forest)}
  .pr-tabs button[aria-pressed=true]{border-bottom-color:var(--forest);color:var(--forest)}
  .pr-tabs button:focus-visible{outline-offset:-3px}

  .pr-plans{grid-template-columns:minmax(0,1fr);grid-template-rows:none}
  .pr-plan{display:block;grid-row:auto;padding:16px 16px 20px}
  .pr-plan+.pr-plan{border-left:0;border-top:1px solid var(--line-soft)}
  .pricing-enhanced .pr-plan+.pr-plan{border-top:0}
  .pr-plan.is-pick{box-shadow:none}
  .pr-pick-label{position:static;display:inline-block;margin-bottom:8px;transform:none}
  .pr-plan h2{font-size:26px}
  .pr-price strong{font-size:40px}
  .pr-money{margin-top:12px}
  .pr-incl{margin-top:22px;padding-top:16px}
  .pr-foot{padding:14px 16px}
  .pr-compare>summary{min-height:56px;padding-inline:16px}

  /* Comparison without horizontal scroll: plan names stay pinned as a three-column row,
     every criterion becomes a full-width label over its three values. Explicit table roles in
     the markup keep the cell ↔ column association after the display change. */
  .pr-table-wrap{padding:0 12px 14px}
  .pr-table,.pr-table thead,.pr-table tbody{display:block}
  .pr-table tr{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));column-gap:6px}
  .pr-table thead{position:sticky;top:0;z-index:2;background:var(--white)}
  .pr-table thead tr{border-bottom:1px solid var(--line)}
  .pr-table thead th{padding:12px 8px 10px;border:0;font-size:13px;line-height:1.3}
  .pr-table thead th:first-child{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
  .pr-table thead .is-pick{border-radius:8px 8px 0 0}
  .pr-table tbody tr{padding-block:12px 10px;border-bottom:1px solid var(--line-soft)}
  .pr-table tbody tr:last-child{border-bottom:0}
  .pr-table tbody th{grid-column:1/-1;padding:0 0 6px;border:0;font-size:14px;font-weight:700}
  .pr-table td{padding:6px 8px;border:0;border-radius:8px;font-size:14px}

  .pr-faq h2{font-size:30px}
  .pr-faq summary{min-height:56px;padding:12px 16px;font-size:16px}
  .pr-faq p{padding:0 16px 18px}
  .pr-connect{padding-block:40px 32px}
}
@media (max-width:600px){
  .pr .pr-calc{width:calc(100% - 20px)}
  .pr-connect-banner{padding:24px 20px;border-radius:14px}
  .pr-connect h2{font-size:28px}
  .pr-connect-cta{justify-self:stretch}
}
@media (max-width:400px){
  .pr-seg label>span{padding:0 4px;font-size:14px}
  .pr-seg small{padding:2px 6px;font-size:11.5px}
  .pr-tabs button{font-size:14px}
}
