/* /pricing/: the tariffs are the first screen. Five orbits around a planet, every orbit is a tariff card: the drawing and the cards of the landing,
   without its scroll film. Loaded only by the pages that have the block (hero_style: tariffs). */
.tariffs-top { padding: calc(env(safe-area-inset-top, 0px) + 92px) 0 clamp(36px, 7vh, 80px); }
.tariffs-top .crumbs ol { margin-bottom: clamp(.5rem, 1.8vh, 1.2rem); }
.tariffs-top h1 { max-width: 44rem; margin: 0 auto; text-align: center; font-size: clamp(1.75rem, 1.1rem + 2.1vw, 2.7rem); }
.tariffs-top .orbit-box { position: relative; width: min(100%, 50vh, 600px); aspect-ratio: 1280 / 600; margin: 0 auto; }

/* the billing period: one segmented switch, the selected period is white */
.period { display: flex; width: min(100%, 40rem); margin: clamp(.9rem, 2.4vh, 1.5rem) auto clamp(.2rem, 1vh, .6rem); border: 1px solid var(--line-2); border-radius: 2px; }
.period[hidden] { display: none; }
.period button { flex: 1 1 0; display: grid; justify-items: center; gap: .05rem; min-width: 0; padding: .55rem .4rem .5rem; border: 0; border-left: 1px solid var(--line); background: transparent; color: #fff; font: inherit; cursor: pointer; transition: background .2s, color .2s; }
.period button:first-child { border-left: 0; }
.period button:hover { background: rgb(255 255 255 / .1); }
.period button[aria-checked="true"] { background: var(--paper); color: var(--on-paper); }
.period .lab { font-weight: 600; font-size: 1rem; line-height: 1.2; }
.period .short { display: none; }
.period small { font-size: .74rem; line-height: 1.2; color: var(--dim); white-space: nowrap; }
.period button[aria-checked="true"] small { color: #3a3a3a; }
.tariffs-top #orbits { display: block; width: 100%; height: 100%; overflow: visible; }
#orbits .ring { fill: none; stroke: #fff; stroke-width: 1.5; opacity: .5; transition: opacity .3s, stroke-width .3s; vector-effect: non-scaling-stroke; }
#orbits .hit { fill: none; stroke: transparent; stroke-width: 30; pointer-events: stroke; cursor: pointer; }
#orbits .o.is-hot .ring { opacity: .85; }
#orbits .o.is-on .ring { opacity: 1; stroke-width: 2.2; filter: drop-shadow(0 0 5px rgb(255 255 255 / .9)) drop-shadow(0 0 16px rgb(255 255 255 / .5)); }
#orbits .body { cursor: pointer; }
#orbits .body circle { fill: #000; stroke: #fff; stroke-width: 1.5; vector-effect: non-scaling-stroke; transition: fill .25s; }
#orbits .body .gl { fill: none; stroke: #fff; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: stroke .25s; }
#orbits .o.is-on .body circle { fill: #fff; }
#orbits .o.is-on .body .gl { stroke: #000; }
#orbits .body text { fill: #fff; font-stretch: 86%; font-weight: 500; font-size: 19px; letter-spacing: .02em; opacity: .7; transition: opacity .25s; }
#orbits .o.is-on .body text, #orbits .o.is-hot .body text { opacity: 1; }

.plans { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; margin: clamp(2.1rem, 4.4vh, 2.6rem) auto 0; padding: 0; list-style: none; }   /* the room above is for the flag of the popular card */
.plan { display: flex; flex-direction: column; gap: .9rem; min-width: 0; padding: 1.25rem 1.15rem 1.15rem; border: 1px solid var(--line); border-radius: 2px; background: var(--card); cursor: pointer; transition: border-color .25s, background .25s; }
.plan:hover { border-color: var(--line-2); }
.plan.is-on { border-color: #fff; background: #111; }
.plan-top { display: flex; align-items: center; gap: .7rem; }
.plan-ic { display: grid; place-items: center; flex: none; width: 42px; height: 42px; border: 1px solid var(--line-2); border-radius: 50%; transition: background .25s, color .25s, border-color .25s; }
.plan-ic .ic { width: 22px; height: 22px; vertical-align: 0; }
.plan.is-on .plan-ic { background: #fff; color: #000; border-color: #fff; }
.plan h3 { margin: 0; font-stretch: 125%; font-weight: 300; font-size: 1.28rem; letter-spacing: -.005em; line-height: 1.1; }
.plan-price { display: flex; align-items: baseline; gap: .1rem .3rem; margin: 0; font-stretch: 100%; font-size: .95rem; color: var(--dim); white-space: nowrap; font-variant-numeric: tabular-nums; }
.plan-price b { margin: 0 .08em; font-stretch: 118%; font-weight: 250; font-size: 2rem; letter-spacing: -.01em; color: #fff; }
.plan-price .per { font-size: .95rem; }
.plan-save { flex: none; margin-left: auto; padding: .08rem .42rem; border: 1px solid var(--line-2); border-radius: 999px; background: rgb(255 255 255 / .1); font-size: .72rem; font-weight: 500; line-height: 1.3; color: #fff; }
.plan-save[hidden] { display: none; }
.plan-bill { display: grid; gap: .15rem; font-size: .86rem; line-height: 1.4; color: var(--dim); }
.plan-bill p { margin: 0; }
.plan-bill .plan-term { display: flex; align-items: center; flex-wrap: wrap; gap: .25rem .4rem; font-size: .98rem; font-weight: 450; color: #fff; }
.plan-bill [data-renew] { min-height: 2.8em; }
.plan-bill [data-total] { color: var(--soft); }
.plan-bill s { opacity: .65; }
.plan.is-popular { position: relative; border-color: var(--line-2); }
.plan.is-on.is-popular { border-color: #fff; }
.plan-flag { position: absolute; left: -1px; right: -1px; bottom: 100%; margin: 0; padding: .38rem .5rem; border: 1px solid #fff; border-bottom: 0; border-radius: 2px 2px 0 0; background: #fff; color: #000; text-align: center; font-stretch: 86%; font-weight: 600; font-size: .74rem; letter-spacing: .1em; text-transform: uppercase; line-height: 1.2; }
.plan-feat { display: grid; align-content: start; gap: .55rem; flex: 1; margin: 0; padding: .9rem 0 0; list-style: none; border-top: 1px solid var(--line); font-size: .98rem; }
.plan-feat li { display: flex; align-items: flex-start; gap: .6em; line-height: 1.35; }
.plan-feat .ic { width: 1.3em; height: 1.3em; margin-top: .02em; color: var(--dim); }
.plan-feat .inf, .inf { width: 1.35em; height: 1.35em; stroke-width: 1.8; vertical-align: -.36em; color: inherit; }
.plan .btn { width: 100%; }
.plan.is-on .btn { background: var(--paper); color: var(--on-paper); border-color: var(--paper); }
.plan.is-on .btn:hover { background: transparent; color: #fff; }
.tariffs-note { max-width: 46rem; margin: clamp(1.2rem, 3vh, 2rem) auto 0; text-align: center; text-wrap: balance; font-size: clamp(1rem, .4vw + .92rem, 1.15rem); line-height: 1.5; color: var(--soft); }

@media (min-width: 1161px) {
  .plans { margin-inline: calc(50% - min(640px, 50vw - 24px)); }      /* a little wider than the text column, so the savings badge fits the card */
}
@media (min-width: 1161px) and (max-width: 1290px) {      /* the cards get narrower here: keep the term and the savings badge on one line */
  .plan { padding-inline: 1rem; }
  .plan-bill .plan-term { font-size: .92rem; }
  .plan-save { padding: .06rem .34rem; font-size: .68rem; }
}
@media (max-width: 1160px) {
  .plans { grid-template-columns: repeat(6, minmax(0, 1fr)); row-gap: 2.2rem; }
  .plan { grid-column: span 2; }
  .plan:nth-child(n + 4) { grid-column: span 3; }
}
@media (min-width: 641px) and (max-width: 860px) {     /* too narrow for three cards in a row */
  .plans { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .plan, .plan:nth-child(n + 4) { grid-column: auto; }
  .plan:nth-child(5) { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  .tariffs-top { padding-top: calc(env(safe-area-inset-top, 0px) + 84px); }
  .plans { grid-template-columns: 1fr; gap: 10px; }
  .plan, .plan:nth-child(n + 4) { grid-column: auto; gap: .7rem; padding: 1rem 1rem 1rem; }
  .plan.is-popular { margin-top: 1.9rem; }
  .period .long { display: none; }
  .period .short { display: inline; }
  .period .lab { font-size: .95rem; }
  .plan-feat { padding-top: .7rem; }
}
@media (prefers-reduced-motion: reduce) { .plan, .plan-ic, #orbits .ring, #orbits .body circle, #orbits .body .gl, #orbits .body text { transition: none; } }
