/* Hrava studio - pricing family: /pricing/ and /download/. Loads after core.css and page.css, uses only their tokens.
   Reference and reasons: docs/site-redesign/class-index.md */

/* page hero with a tall object (the plan panel, the download card). The crumbs keep a row of their own, so the h1 stands
   where it does on every page and the object starts level with it. Source order is the phone order: crumbs, words,
   object, then what hangs under the words */
.st-offer{display:grid;grid-template-columns:repeat(12,minmax(0,1fr));column-gap:var(--st-gap);row-gap:var(--st-stack);align-items:start}
.st-offer>*{grid-column:1/-1;min-width:0}
@media (min-width:1100px){
  .st-offer{grid-template-rows:auto auto 1fr}
  .st-offer>:is(.st-page-hero__in,.st-offer__more){grid-column:1/8}
  .st-offer>.st-offer__object{grid-column:8/13;grid-row:2/4}
  .st-offer>.st-offer__more{grid-row:3}
}
.st-offer__object[data-enter]>*{--i:2}
.st-offer__more[data-enter]>*{--i:3}

/* a pair with a note: the note stands under the words on desktop and after the evidence below 1100 */
@media (min-width:1100px){
  .st-proof{grid-template-rows:auto 1fr}
  .st-proof>.st-proof__list{grid-row:1/3}
  .st-proof>.st-proof__note{grid-column:1/7;grid-row:2;margin-top:calc(var(--st-stack) - var(--st-head))}
}

/* calculator: one panel, the dial on columns 1-5, the reading on 6-12, a hairline between */
.st-calc{display:grid;grid-template-columns:repeat(12,minmax(0,1fr));padding:0}
.st-calc>*{grid-column:1/-1;min-width:0;padding:var(--st-pad)}
.st-calc__dial{display:grid;grid-template-rows:auto auto auto 1fr;gap:var(--st-3)}
.st-calc__dial>.st-small{align-self:end;margin-top:var(--st-3)}
.st-calc__out{font-size:var(--st-fs-h2);line-height:1.08;font-weight:700;letter-spacing:-.03em}
.st-calc__read{display:grid;align-content:start;gap:var(--st-stack);border-top:1px solid var(--st-line)}
@media (min-width:1100px){
  .st-calc__dial{grid-column:1/6}
  .st-calc__read{grid-column:6/13;border-top:0;border-inline-start:1px solid var(--st-line)}
}
html:not(.js) .st-range{display:none}

/* range: a hairline track, the thumb is one gold voxel. --pr-fill is written by pricing.js */
.st-range{--pr-fill:20%;--thumb:var(--st-5);--face:linear-gradient(var(--vx-t) 0 0) 0 0/100% var(--st-1) no-repeat,linear-gradient(var(--vx-s) 0 0) 100% 0/var(--st-1) 100% no-repeat,var(--st-gold);margin-top:var(--st-3)}
.st-range input{display:block;width:100%;height:var(--st-7);margin:0;padding:0;background:none;cursor:pointer;appearance:none;-webkit-appearance:none}
.st-range input::-webkit-slider-runnable-track{height:var(--st-1);background:linear-gradient(90deg,var(--st-gold) var(--pr-fill),var(--st-line-2) 0)}
.st-range input::-moz-range-track{height:var(--st-1);background:linear-gradient(90deg,var(--st-gold) var(--pr-fill),var(--st-line-2) 0)}
.st-range input::-webkit-slider-thumb{width:var(--thumb);height:var(--thumb);margin-top:calc((var(--st-1) - var(--thumb))/2);border:0;border-radius:0;background:var(--face);appearance:none;-webkit-appearance:none}
.st-range input::-moz-range-thumb{width:var(--thumb);height:var(--thumb);border:0;border-radius:0;background:var(--face)}
/* ticks stand where the thumb's centre stands for 1, 12, 24 and 36 months, below the slider's focus ring */
.st-range__ticks{position:relative;height:var(--st-6);margin:var(--st-2) calc(var(--thumb)/2) 0}
.st-range__ticks>span{position:absolute;top:0;inset-inline-start:var(--at,0%);padding-top:var(--st-3);translate:-50% 0;white-space:nowrap}
.st-range__ticks>span::before{content:"";position:absolute;top:0;inset-inline-start:50%;width:1px;height:6px;background:var(--st-line-2)}
.st-range__ticks>span:nth-child(2){--at:31.43%}
.st-range__ticks>span:nth-child(3){--at:65.71%}
.st-range__ticks>span:first-child{translate:0 0}
.st-range__ticks>span:first-child::before{inset-inline-start:0}
.st-range__ticks>span:last-child{--at:100%;translate:-100% 0}
.st-range__ticks>span:last-child::before{inset-inline-start:100%}
/* on a phone 1 month and 1 year stand a thumb apart: the first tick keeps its mark and gives up its label, and every
   label ends on its mark, so the three that are left stand evenly */
@media (max-width:640px){
  .st-range__ticks>span:first-child{visibility:hidden}
  .st-range__ticks>span:first-child::before{visibility:visible}
  .st-range__ticks>span:nth-child(n+2){translate:-100% 0}
  .st-range__ticks>span:nth-child(n+2)::before{inset-inline-start:100%}
}

/* rtl: the dial stays left to right (as its arrow keys work); tick labels keep their own direction */
[dir=rtl] .st-range{direction:ltr}
[dir=rtl] .st-range__ticks>span{unicode-bidi:plaintext}

/* bars: a row of 8px voxels, lit up to the plan's total (snapped to a whole voxel where round() exists). --w is written by
   pricing.js; the defaults are the 8 months of the markup */
.st-bars{display:grid;grid-template-columns:auto minmax(0,1fr) auto;column-gap:var(--st-5)}
.st-bar{grid-column:1/-1;display:grid;grid-template-columns:5em minmax(0,1fr) auto;grid-template-columns:subgrid;align-items:center;min-height:var(--st-8);border-top:1px solid var(--st-line)}
.st-bar:last-child{border-bottom:1px solid var(--st-line)}
.st-bar[data-tier=monthly]{--w:62.9%}
.st-bar[data-tier=yearly]{--w:39.3%}
.st-bar__name{font-weight:600;overflow-wrap:anywhere}
.st-bar__track{height:8px;overflow:clip;background:var(--st-line);-webkit-mask:repeating-linear-gradient(90deg,#000 0 7px,#0000 7px 8px);mask:repeating-linear-gradient(90deg,#000 0 7px,#0000 7px 8px)}
.st-bar__fill{display:block;height:100%;background:var(--st-text-3);translate:calc(var(--w,100%) - 100%) 0;transition:translate var(--st-t2) var(--st-ease),background-color var(--st-t2) var(--st-ease)}
@supports (translate:calc(round(nearest,50%,8px) - 100%) 0){.st-bar__track{width:round(down,100%,8px)}.st-bar__fill{translate:min(0px,round(nearest,var(--w,100%),8px) - 100%) 0}}
.st-bar__sum{display:grid;grid-template-columns:auto auto;align-items:baseline;justify-content:end;column-gap:var(--st-3)}
.st-bar__sum>b{min-width:3em;font-size:var(--st-fs-h3);line-height:1;font-weight:700;text-align:end}
.st-bar__sum>.st-tag{visibility:hidden}
.pr-bar--best .st-bar__fill{background:var(--st-gold)}
.pr-bar--best .st-tag{visibility:visible}
html:not([data-motion=off]) .will-reveal:not(.is-in) .st-bar__fill{translate:-100% 0}
/* rtl: the bar grows from the name's side; figures stay left to right */
[dir=rtl] .st-bar__fill{translate:calc(100% - var(--w,100%)) 0}
@supports (translate:calc(round(nearest,50%,8px) - 100%) 0){[dir=rtl] .st-bar__fill{translate:max(0px,100% - round(nearest,var(--w,100%),8px)) 0}}
html[dir=rtl]:not([data-motion=off]) .will-reveal:not(.is-in) .st-bar__fill{translate:100% 0}
[dir=rtl] :is(.st-bar__sum>b,:is(.st-costs,.st-terms) td>b){direction:ltr;unicode-bidi:isolate}
[dir=rtl] .st-bar__sum>b{text-align:left}
@media (max-width:640px){
  .st-bars{grid-template-columns:minmax(0,1fr) auto}
  .st-bar{grid-template-columns:minmax(0,1fr) auto;grid-template-columns:subgrid;row-gap:var(--st-3);padding-block:var(--st-4)}
  .st-bar__track{grid-area:2/1/auto/-1}
  .st-bar__sum>.st-tag{order:-1}
}

/* figures in the two tables: the amount, its unit, and a line under them */
:is(.st-costs,.st-terms) td>b{font-size:var(--st-fs-h3);line-height:1;font-weight:700;color:var(--st-text)}
:is(.st-costs,.st-terms) td>small{margin-inline-start:6px;font-size:var(--st-fs-small);color:var(--st-text-3)}
:is(.st-costs tbody th,.st-terms td)>span{display:block;max-width:34em;margin-top:var(--st-1);font-size:var(--st-fs-small);line-height:1.5;font-weight:400;color:var(--st-text-3);text-wrap:pretty}

/* price list: name and note in the row header, the figure in the last cell; our own rows carry gold figures */
.st-costs td{vertical-align:middle;white-space:nowrap}
.st-costs td>small{display:inline-block;min-width:3.75em;text-align:start}
.st-costs .is-own td>b{color:var(--st-gold)}

/* terms: the label column, then one equal column per plan; the last row holds each plan's link */
.st-terms{table-layout:fixed}
.st-terms thead th:first-child{width:16%}
.st-terms td{text-wrap:pretty}
.st-terms__go>*{padding-block:var(--st-2)}
@media (max-width:820px){.st-terms thead th:first-child{width:22%}.st-terms thead th{vertical-align:top}.st-terms thead .st-tag{display:block}}
@media (max-width:640px){.st-terms .st-terms__go>td{margin-top:0}.st-terms .st-terms__go>td::before{display:none}}

/* download card: the app's mark, name and status, then the words and actions the page script rewrites per state */
.st-gate{display:grid;grid-template-columns:minmax(0,1fr);justify-items:start;gap:var(--st-3)}
.st-gate>.st-btn{margin-top:var(--st-3)}
.st-gate>.st-link{margin-bottom:calc(-1*var(--st-3))}
.st-appid{display:grid;grid-template-columns:auto minmax(0,1fr);align-items:center;column-gap:var(--st-4);margin-bottom:var(--st-3)}
.st-appid>img{grid-row:1/3;width:var(--st-7);height:var(--st-7)}
.st-appid>b{align-self:end;line-height:1.3}
.st-appid>.st-tag{align-self:start}
