/* Prices: page parts only. Shared top bar, footer, buttons, cards, checks, band and tokens live in sales.css.
   Sizes follow final6/prices-390.png (784 wide, so half) and final6/prices-1440.png (1536 wide, so 0.9375). */

.pr {
  position: relative;
  background: var(--ground);
  overflow: hidden;
}

.pr picture,
.pr picture img {
  display: block;
}

/* ---------- Hero: the words sit on the painted picture ---------- */
.pr-hero {
  position: relative;
  container-type: inline-size;
  background: var(--ground);
}

.pr-hero-text {
  position: absolute;
  inset: 0 0 auto;
  z-index: 1;
  padding-top: 0;
  text-align: center;
}

.pr-hero h1 {
  font-size: 9.75cqw;
  line-height: 1.12;
}

.pr-mark {
  padding-bottom: 0.08em;
}

@media (min-width: 900px) {
  .pr-mark {
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 240 24' preserveAspectRatio='none'%3E%3Cpath d='M4 17C50 9 120 7 236 9' fill='none' stroke='%23f6c33b' stroke-width='9' stroke-linecap='round'/%3E%3C/svg%3E") 0 100% / 100% 0.3em no-repeat;
  }
}

.pr-lead {
  margin-top: 0.4cqw;
  font-size: 3.9cqw;
  font-weight: 800;
  line-height: 1.25;
}

.pr-hero-art {
  position: relative;
  margin: 0;
}

.pr-hero-art img {
  width: 100%;
  height: auto;
  mix-blend-mode: multiply;
}

/* phone: the picnic picture fades into the page at its foot, no hard line (final6/prices-390.png) */
@media (max-width: 899px) {
  .pr-hero-art img {
    -webkit-mask-image: linear-gradient(180deg, #000 0, #000 78%, transparent 100%);
    mask-image: linear-gradient(180deg, #000 0, #000 78%, transparent 100%);
  }
}

.pr-hero-art .chip {
  position: absolute;
  left: 6.4%;
  top: 88.6%;
  gap: 1.4cqw;
  padding: 0.9cqw 3.4cqw 0.9cqw 2.4cqw;
  font-size: 3.45cqw;
  line-height: 1.35;
}

.pr-hero-art .chip svg {
  width: 1.05em;
  height: 1.3em;
  flex: none;
}

/* fix round 4: the computer design's page is near white (final6/prices-1440.png reads #fefefe), the phone's stays cream */
@media (min-width: 900px) {
  .pr,
  .pr-hero,
  .pr-after {
    background: #fdfdfd;
  }
}

@media (min-width: 900px) {
  .pr-hero-text {
    inset: 0;
    margin: 0 auto;
    padding-top: calc(6.4cqw + 25px); /* fix round 5: the words 25 px lower on the picture, as painted */
    text-align: left;
  }

  .pr-hero h1 {
    font-size: 5.15cqw;
  }

  .pr-lead {
    margin-top: 2.4cqw;
    font-size: 2.2cqw;
    font-weight: 700;
  }

  /* computer: the picnic picture starts with a soft painted edge under the top bar, never cut flat (final6/prices-1440.png) */
  .pr-hero-art img {
    -webkit-mask-image: linear-gradient(180deg, transparent 0, rgba(0, 0, 0, 0.35) 3.5%, #000 8%);
    mask-image: linear-gradient(180deg, transparent 0, rgba(0, 0, 0, 0.35) 3.5%, #000 8%);
  }

  .pr-hero-art .chip {
    left: 79%;
    top: 75.6%;
    gap: 0.75cqw;
    padding: 0.85cqw 1.6cqw 0.85cqw 1.15cqw;
    font-size: 2.2cqw;
  }
}

/* ---------- The red route ---------- */
.pr-route {
  position: relative;
}

.pr-route > section {
  position: relative;
  z-index: 1;
}

.pr-path {
  display: none;
}

@media (max-width: 899px) {
  .pr-route::before {
    content: "";
    position: absolute;
    left: -3px;
    top: -4px;
    bottom: calc(-1 * var(--gap-head) - 14px); /* fix round 5: the route runs on past "Questions about prices?" into the band */
    width: 18px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 76'%3E%3Cpath d='M9 0C17 9.5 17 28.5 9 38C1 47.5 1 66.5 9 76' fill='none' stroke='%23e0503f' stroke-width='2' stroke-dasharray='5.5 3.5'/%3E%3C/svg%3E") 0 0 / 18px 76px repeat-y;
  }
}

@media (min-width: 900px) {
  .pr-path {
    display: block;
    position: absolute;
    left: calc(-1 * var(--edge));
    z-index: -1;
    width: calc(100% + 2 * var(--edge));
    max-width: none;
    overflow: visible;
    fill: none;
    stroke: #e0503f;
    stroke-width: 2.6;
    stroke-dasharray: 9 7;
    pointer-events: none;
  }

  .pr-path path {
    vector-effect: non-scaling-stroke;
  }

  .pr-path-1 {
    top: -110px;
    height: 260px;
  }

  .pr-path-2 {
    top: calc(100% - 28px);
    height: 264px;
  }

  .pr-path-3 {
    top: -52px;
    height: 210px;
  }
}

/* ---------- Month or year: two radio buttons, no script ---------- */
.pr-plans {
  margin-top: var(--gap-item);
}

/* the radios, the switch and the cards share one named group; the group itself draws nothing */
.pr-group {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.pr-legend {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.pr-pick {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.pr-switch {
  display: flex;
  width: max-content;
  margin: 0 auto var(--gap-item);
  padding: 3px;
  border-radius: 999px;
  background: var(--white);
  box-shadow: var(--shadow);
  border: 1.5px solid var(--line);
}

.pr-switch label {
  min-width: 100px;
  padding: 4px 20px;
  border-radius: 999px;
  text-align: center;
  font-weight: 900;
  font-size: 18px;
  line-height: 1.4;
  cursor: pointer;
}

#per-month:checked ~ .pr-switch label[for="per-month"],
#per-year:checked ~ .pr-switch label[for="per-year"] {
  background: var(--coral);
  color: var(--white);
}

#per-month:focus-visible ~ .pr-switch label[for="per-month"],
#per-year:focus-visible ~ .pr-switch label[for="per-year"] {
  outline: 3px solid var(--sky);
  outline-offset: 2px;
}

.pr-year {
  display: none;
}

#per-year:checked ~ .pr-cards .pr-year {
  display: block;
}

#per-year:checked ~ .pr-cards .pr-month {
  display: none;
}

/* ---------- The two plan cards ---------- */
.pr-cards {
  display: grid;
  gap: var(--gap-item);
}

/* phone: the cards sit tight as painted (final6/prices-390.png); buttons keep a full finger size, words stay 13 px or more;
   the year price under the month price shows on the computer only */
@media (max-width: 899px) {
  .pr-cards {
    gap: var(--gap-item); /* fix round 4: 16, the phone scale (was 8) */
  }

  .pr .pr-card {
    padding: 12px 16px;
  }

  .pr-card .pr-btn {
    margin-top: 10px;
  }

  .pr-month-alt {
    display: none;
  }
}

.pr-card h2 {
  font-size: 33px;
  line-height: 1.05;
}

.pr-price {
  font-size: 24px;
  font-weight: 900;
  line-height: 1.2;
}

.pr-free .pr-price {
  font-size: 17px;
}

/* plain green ticks, as painted */
.pr .pr-ticks {
  margin-top: 4px;
  gap: 2px;
  font-size: 13.5px;
  line-height: 1.3;
}

.pr .pr-ticks li {
  padding-left: 30px;
  font-weight: 800;
}

.pr .pr-ticks li::before {
  top: 0.05em;
  width: 20px;
  height: 16px;
  border-radius: 0;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 32'%3E%3Cpath d='M4 17l10 10L36 5' fill='none' stroke='%2346b83c' stroke-width='7' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
}

.pr .pr-ticks li::after {
  display: none;
}

.pr-btn {
  width: 100%;
  min-height: 40px;
  margin-top: var(--gap-item);
  font-size: 19px;
}

.pr-free {
  display: grid;
  grid-template-columns: 1fr 116px;
  align-items: start;
}

.pr-free-art {
  margin: -8px -6px 0 0;
}

.pr-free-art img {
  width: 116px;
  height: auto;
  mix-blend-mode: multiply;
}

.pr-free .pr-btn {
  grid-column: 1 / -1;
  margin-top: 8px;
}

.pr-family {
  border: 1.5px solid var(--coral);
}

.pr-trial {
  margin-top: 2px;
  color: var(--coral);
  font-weight: 900;
  font-size: 20.5px;
  line-height: 1.2;
}

.pr-suns {
  margin: 4px 0 2px;
}

.pr-suns img {
  width: 100%;
  height: auto;
  mix-blend-mode: multiply;
}

.pr-note {
  color: #5a6282;
  font-weight: 700;
  font-size: 14px;
}

.pr-kids-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 14px;
}

.pr-kids {
  display: inline-flex;
  gap: 4px;
}

.pr-kids img,
.pr-kids i {
  width: 22px;
  height: 22px;
  border-radius: 50%;
}

.pr-kids i {
  border: 1.5px solid var(--navy);
}

@media (min-width: 900px) {
  .pr-plans {
    margin-top: calc(var(--gap-sec) / 2);
  }

  .pr-switch {
    margin-bottom: var(--gap-head);
    padding: 4px;
  }

  .pr-switch label {
    min-width: min(196px, 13.6vw);
    padding: 5px 30px;
    font-size: min(34px, 2.361vw);
  }

  .pr-cards {
    grid-template-columns: 0.72fr 1fr;
    align-items: stretch;
    margin: 0;
  }

  .pr-card {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    padding: 22px 32px 22px 46px;
  }

  .pr-card h2 {
    font-size: min(64px, 4.444vw);
  }

  .pr-price {
    font-size: min(52px, 3.611vw);
  }

  .pr-free .pr-price {
    font-size: min(60px, 4.167vw);
    line-height: 1.1;
  }

  .pr .pr-ticks {
    margin-top: 8px;
    gap: 16px;
    font-size: min(29px, 2.014vw);
    line-height: 1.12;
  }

  .pr .pr-ticks li {
    padding-left: 58px;
  }

  .pr-free .pr-ticks {
    font-size: min(27.5px, 1.91vw);
  }

  .pr-family .pr-ticks li {
    padding-left: 74px;
  }

  .pr .pr-ticks li::before {
    left: 0;
    top: 0;
    width: 38px;
    height: 32px;
  }

  .pr-family .pr-ticks li::before {
    left: 4px;
    width: 42px;
  }

  .pr-free {
    display: flex;
  }

  .pr-free-art {
    margin: 2px auto 0;
  }

  .pr-free-art img {
    width: min(384px, 26.67vw);
  }

  .pr-btn {
    min-height: 66px;
    font-size: min(42px, 2.917vw);
    border-radius: 18px;
  }

  .pr-free .pr-btn {
    margin-top: 6px;
  }

  .pr-family .pr-btn {
    margin-top: auto;
  }

  .pr-family .pr-ticks {
    margin-bottom: var(--gap-head);
  }

  .pr-trial-row {
    display: flex;
    align-items: center;
    gap: 22px;
    margin-top: 12px;
  }

  .pr-trial {
    margin: 0;
    font-size: min(32px, 2.222vw);
    font-weight: 800;
    white-space: nowrap;
  }

  .pr-suns {
    flex: 1;
    margin: 0;
    max-width: 418px;
  }

  .pr-family .pr-price {
    margin-top: 14px;
  }

  .pr-note {
    font-size: min(27px, 1.875vw);
    line-height: 1.2;
  }

  .pr-kids-row {
    gap: 8px 30px;
  }

  .pr-kids {
    gap: 18px;
    margin: -12px 0;
  }

  .pr-kids i {
    border: 0;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 40'%3E%3Ccircle cx='20' cy='20' r='18' fill='%23fff' stroke='%2313235b' stroke-width='1.8' stroke-dasharray='4 3'/%3E%3Ccircle cx='14.5' cy='16' r='1.8' fill='%2313235b'/%3E%3Ccircle cx='25.5' cy='16' r='1.8' fill='%2313235b'/%3E%3Cpath d='M13 24c3.5 4 10.5 4 14 0' fill='none' stroke='%2313235b' stroke-width='1.8' stroke-linecap='round'/%3E%3C/svg%3E") center / contain no-repeat;
  }

  .pr .pr-ticks li {
    font-weight: 700;
  }

  .pr-kids img,
  .pr-kids i {
    width: min(52px, 3.6vw);
    height: min(52px, 3.6vw);
  }

}

/* ---------- After the 14 days: the words sit on the painted panel ---------- */
.pr-after {
  position: relative;
  margin: var(--gap-head) 0 0;
  container-type: inline-size;
  background: var(--ground);
}

/* phone: the panel stays inside the 20 px page edge and its picture is clipped to the rounded box */
@media (max-width: 899px) {
  .pr-after-art {
    border-radius: var(--radius);
    overflow: hidden;
  }
}

.pr-after-art img {
  width: 100%;
  height: auto;
  mix-blend-mode: multiply;
}

.pr-after-text {
  position: absolute;
  left: 4.4cqw;
  top: 2.2cqw;
  width: 41cqw;
}

.pr-after h2 {
  font-size: 4.85cqw;
  line-height: 1.2;
}

.pr-after p {
  margin-top: 3.4cqw;
  font-weight: 800;
  font-size: 3.15cqw;
  line-height: 1.12;
}

@media (min-width: 900px) {
  .pr-after {
    margin: var(--gap-sec) -32px 0;
    /* fix round 6: no cream fill behind the ragged mask, the green edge meets the white page */
    background: transparent;
  }

  /* fix round 4: on the near white page the cream panel fades out at its edges, no hard box;
     fix round 5: a soft, rounded and slightly ragged edge all round (top included), as the painted panel */
  .pr-after-art img {
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1000 300' preserveAspectRatio='none'%3E%3Cfilter id='f' x='-5%25' y='-5%25' width='110%25' height='110%25'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.035' numOctaves='2' seed='4'/%3E%3CfeDisplacementMap in='SourceGraphic' scale='14'/%3E%3CfeGaussianBlur stdDeviation='5'/%3E%3C/filter%3E%3Crect x='14' y='14' width='972' height='272' rx='34' filter='url%28%23f%29'/%3E%3C/svg%3E");
    -webkit-mask-size: 100% 100%;
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1000 300' preserveAspectRatio='none'%3E%3Cfilter id='f' x='-5%25' y='-5%25' width='110%25' height='110%25'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.035' numOctaves='2' seed='4'/%3E%3CfeDisplacementMap in='SourceGraphic' scale='14'/%3E%3CfeGaussianBlur stdDeviation='5'/%3E%3C/filter%3E%3Crect x='14' y='14' width='972' height='272' rx='34' filter='url%28%23f%29'/%3E%3C/svg%3E");
    mask-size: 100% 100%;
  }

  .pr-after-text {
    left: 4.6cqw;
    top: 3.6cqw;
    width: 44cqw;
  }

  .pr-after h2 {
    font-size: 4.1cqw;
  }

  .pr-after p {
    margin-top: 1.4cqw;
    font-weight: 700;
    font-size: 2.65cqw;
    line-height: 1.32;
  }
}

/* ---------- Questions about prices ---------- */
.pr-ask {
  margin-top: var(--gap-item);
  text-align: center;
}

.pr-ask h2 {
  font-size: 22px;
}

.pr-ask .link-more {
  margin-top: 2px;
  font-size: 16px;
}

@media (min-width: 900px) {
  .pr-ask {
    margin-top: 0;
  }

  .pr-ask h2 {
    font-size: min(57px, 3.958vw);
  }

  .pr-ask .link-more {
    margin-top: 4px;
    font-size: min(37px, 2.569vw);
    text-underline-offset: 8px;
    text-decoration-thickness: 3px;
  }
}

/* ---------- The last band: one flat coral, the picture whole on its right ---------- */
.pr-band {
  position: relative;
  margin-top: var(--gap-head);
  overflow: hidden;
}

.pr-band-in {
  position: relative;
  z-index: 1;
}

.pr-band-text {
  padding: var(--gap-item) 0;
  max-width: 50%;
}

.pr-band h2 {
  font-size: 22.5px;
}

.pr-band p {
  margin: 6px 0 12px;
  font-weight: 700;
  font-size: 14px;
  line-height: 1.25;
}

.pr-band .btn-wide {
  min-width: 0;
  min-height: 38px;
  width: 100%;
  max-width: 140px;
  font-size: 18px;
}

.pr-band-art {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 58%;
}

.pr-band-art img {
  width: 100%;
  height: auto;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 14%), linear-gradient(180deg, transparent 0, #000 16%);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(90deg, transparent 0, #000 14%), linear-gradient(180deg, transparent 0, #000 16%);
  mask-composite: intersect;
}

/* fix round 5, phone: the picture melts into the red at its top and left (long, eased fades), so no lighter box
   shows; its size stays, measured at the painted size (figures about 62 px tall in both at 390) */
@media (max-width: 899px) {
  .pr-band-art img {
    -webkit-mask-image: linear-gradient(90deg, transparent 0, rgba(0, 0, 0, 0.3) 14%, #000 32%), linear-gradient(180deg, transparent 0, rgba(0, 0, 0, 0.3) 20%, #000 44%);
    mask-image: linear-gradient(90deg, transparent 0, rgba(0, 0, 0, 0.3) 14%, #000 32%), linear-gradient(180deg, transparent 0, rgba(0, 0, 0, 0.3) 20%, #000 44%);
  }
}

@media (min-width: 900px) {
  .pr-band-text {
    padding: 28px 0 26px;
    max-width: 36%;
  }

  .pr-band h2 {
    font-size: min(58px, 4.028vw);
    letter-spacing: 0.045em;
  }

  .pr-band p {
    margin: 6px 0 12px;
    font-size: min(30px, 2.083vw);
    font-weight: 600;
    max-width: 14.5em;
  }

  .pr-band .btn-wide {
    max-width: none;
    width: min(304px, 21.1vw);
    min-height: 58px;
    font-size: min(34px, 2.361vw);
  }

  .pr-band-art {
    width: 61.8%;
  }
}
