/* Pricing 01 (R5 simplification, 9 Nov 2026): one row of four cards, a month / year switch, one line for Nila, two small
   links, the coupon, and the policies line. The prices come from products.json through the build; nothing here sets a price. */
.pr { padding-top: clamp(40px, 5vw, 76px); }
.pr__head { text-align: center; max-width: 44rem; margin-inline: auto; }
.pr__h { font-size: clamp(40px, 5.4vw, 76px); }
.pr__lead { margin-top: 14px; font: 600 var(--t-lead)/1.5 var(--font-body); color: var(--ink-2); }

/* month / year */
.pr__toggle { margin: 26px auto 0; display: inline-flex; gap: 4px; padding: 5px; border-radius: 999px; background: var(--card); box-shadow: var(--sh-paper); }
.pr__tg { display: inline-flex; align-items: center; gap: 8px; min-height: 46px; padding: 0 22px; border: 0; border-radius: 999px; background: transparent; color: var(--ink); font: 800 17px/1 var(--font-body); }
.pr__tg span { padding: 3px 9px; border-radius: 999px; background: var(--mint); color: #1F6B3A; font: 800 13px/1.2 var(--font-body); }
.pr__tg.is-on { background: var(--blue); color: #fff; box-shadow: var(--sh-blue); }
.pr__tg.is-on span { background: #fff; }
.pr__tg:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }
/* the switch shows one period at a time */
.pr[data-per="month"] .per-year, .pr[data-per="year"] .per-month { display: none !important; }

/* four cards in one row */
.pr__cards { margin-top: clamp(26px, 3vw, 44px); display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(14px, 1.8vw, 24px); align-items: stretch; }
.pr__card { position: relative; display: flex; flex-direction: column; gap: 10px; padding: 22px 20px 22px; border-radius: var(--r-lg); background: var(--card); box-shadow: var(--sh-paper); }
.pr__card--best { background: linear-gradient(180deg, #FFF6D6 0, var(--card) 62%); box-shadow: 0 0 0 3px var(--sun), var(--sh-paper-lift); }
.pr__best { position: absolute; top: -14px; left: 50%; translate: -50% 0; padding: 6px 16px; border-radius: 999px; background: var(--sun); color: var(--ink); font: 800 14.5px/1 var(--font-body); box-shadow: var(--sh-paper); white-space: nowrap; }
.pr__av { display: flex; justify-content: center; height: 76px; }
.pr__av img { width: 76px; height: 76px; object-fit: cover; object-position: 50% 24%; border-radius: 50%; background: #FFF6DD; box-shadow: inset 0 0 0 2px #fff, 0 0 0 1.5px rgba(30, 42, 90, .14); }
.pr__trio { display: flex; }
.pr__trio img { width: 64px; height: 64px; margin-inline: -9px; position: relative; }
.pr__trio img:nth-child(2) { z-index: 2; width: 72px; height: 72px; translate: 0 -4px; }
.pr__name { text-align: center; font-size: clamp(22px, 1.9vw, 27px); }
.pr__for { text-align: center; color: var(--ink-2); font-size: 15.5px; line-height: 1.35; min-height: 2.7em; }
.pr__price { display: flex; align-items: baseline; justify-content: center; gap: 8px; min-height: 64px; }
.pr__big { font: 800 clamp(38px, 3.4vw, 50px)/1 var(--font-display); color: var(--ink); letter-spacing: -.02em; }
.pr__unit { color: var(--ink-2); font: 700 16px/1 var(--font-body); }
.pr__price--free, .pr__card--diary .pr__price { align-items: center; }
.pr__inc { display: grid; gap: .55em; font-size: 16px; line-height: 1.4; flex: 1; }
.pr__inc li { padding-left: 1.9em; }
.pr__btn { width: 100%; margin-top: 4px; text-align: center; padding-inline: 14px; min-height: 52px; font-size: 16px; line-height: 1.2; }

/* Nila, one line */
.pr__nila { margin: clamp(26px, 3vw, 40px) auto 0; max-width: 46rem; display: flex; align-items: center; justify-content: center; gap: 14px; text-align: left; font: 650 18px/1.45 var(--font-body); color: var(--ink); }
.pr__moon { flex: none; width: 54px; height: 54px; object-fit: cover; object-position: 50% 22%; border-radius: 50%; background: #E9E6FA; box-shadow: inset 0 0 0 2px #fff; -webkit-mask-image: none; mask-image: none; }
.pr__nila a { font-weight: 800; }
.pr__more { margin: 16px auto 0; text-align: center; font: 650 16.5px/1.9 var(--font-body); color: var(--ink-2); }
.pr__more a { margin-inline: 6px; font-weight: 800; }

/* the coupon, once, under the cards */
.pr__coupon { margin: clamp(30px, 4vw, 52px) auto 0; max-width: 520px; }
.pr__coupon-h { margin-bottom: 14px; text-align: center; font: 800 20px/1.25 var(--font-display); color: var(--ink); }

/* the policies line */
.pr__fine { margin: clamp(34px, 4vw, 56px) auto 0; max-width: 56rem; padding-top: 22px; border-top: 2px dashed rgba(30, 42, 90, .18); color: var(--ink-2); font-size: 15.5px; line-height: 1.55; }
.pr__fine p + p { margin-top: 8px; }

@media (max-width: 1099.98px) { .pr__cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } .pr__for { min-height: 0; } }
@media (max-width: 599.98px) {
  .pr__cards { grid-template-columns: minmax(0, 1fr); }
  .pr__nila { text-align: left; align-items: flex-start; }
  .pr__tg { padding: 0 16px; font-size: 16px; }
  .pr__card--best { margin-top: 12px; }
}

/* R6 (9 Nov): the felt family stands on the cards, full body, no cropped busts */
.pr__av { height: 132px; align-items: flex-end; }
.pr__av img { width: auto; height: 132px; object-fit: contain; object-position: 50% 100%; border-radius: 0; background: none; box-shadow: none; filter: drop-shadow(0 10px 10px rgba(90, 42, 0, .18)); -webkit-mask-image: none; mask-image: none; }
.pr__trio { align-items: flex-end; }
.pr__trio img { height: 104px; width: auto; margin-inline: -16px; translate: 0 0; }
.pr__trio img:nth-child(2) { height: 124px; width: auto; }
.pr__moon { width: auto; height: 72px; object-fit: contain; border-radius: 0; background: none; box-shadow: none; }

/* R6 (9 Nov): five cards, one row, from 1200 px; the Family Pack keeps its "best value" ring */
@media (min-width: 1200px) {
  .pr__cards { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; }
  .pr__card { padding-inline: 18px; }
  .pr__inc li { font-size: 15px; }
  .pr__name { font-size: 22px; }
  .pr__av { height: 118px; } .pr__av img { height: 118px; } .pr__trio img { height: 92px; } .pr__trio img:nth-child(2) { height: 110px; }
}


/* ---------- R6 launch offer: a slate under chalk dust. The duster (felt eraser) rubs it off; the code sits in chalk. */
.offer { max-width: 560px; margin: 30px auto 0; text-align: center; }
.offer__board { position: relative; width: 100%; }
.offer__frame { position: relative; padding: 18px 18px 14px; border-radius: 18px; background: #B9803F;
  box-shadow: inset 0 0 0 4px #A06A2E, 0 10px 0 #8E5B27, 0 26px 40px -22px rgba(60, 30, 0, .45); }
.offer__kick { margin: 0; font: 800 12px/1 var(--font-display); letter-spacing: .14em; text-transform: uppercase; color: #FFE7B8; }
.offer__h { margin: 8px 0 12px; font: 800 clamp(22px, 2.4vw, 30px)/1.1 var(--font-display); color: #FFF7E8; }
.offer__slate { position: relative; height: 150px; border-radius: 10px; overflow: hidden; touch-action: none; cursor: grab;
  background: radial-gradient(120% 90% at 50% 20%, #3C6B4E, #2B5140 70%); box-shadow: inset 0 0 0 2px rgba(0, 0, 0, .18), inset 0 10px 30px rgba(0, 0, 0, .25); }
.offer__slate:focus-visible { outline: 3px solid var(--sun); outline-offset: 3px; }
.offer__code { position: absolute; inset: 0; display: grid; place-items: center; font: 800 clamp(40px, 6vw, 60px)/1 var(--font-display); letter-spacing: .08em; color: #FFF8E6;
  text-shadow: 0 0 2px rgba(255, 255, 255, .55), 0 0 16px rgba(255, 255, 255, .22); user-select: all; }
.offer__dust { position: absolute; inset: 0; width: 100%; height: 100%; transition: opacity .6s ease; }
.offer__duster { position: absolute; right: 10px; bottom: 6px; width: 132px; height: auto; pointer-events: none; will-change: transform;
  filter: drop-shadow(0 8px 8px rgba(0, 0, 0, .35)); transition: transform 220ms var(--ease-settle, ease-out), opacity .4s ease; }
.offer.is-dragging .offer__duster { transition: none; }
.offer.is-dragging .offer__slate { cursor: grabbing; }
.offer__puff { position: absolute; width: 8px; height: 8px; border-radius: 50%; background: rgba(255, 255, 255, .8); pointer-events: none; animation: offer-puff 700ms ease-out forwards; }
@keyframes offer-puff { to { transform: translate(var(--dx), var(--dy)) scale(.2); opacity: 0; } }
.offer__hint { margin: 12px 0 0; font: 700 14.5px/1.4 var(--font-body); color: #FFF1D6; }
.offer__act { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 12px; }
.offer__act[hidden] { display: none; }
/* the keyboard/no-scratch fallback: a readable wooden pill (cream on dark brown, 9:1) with a 44px tap target (a11y fix) */
.offer__reveal { margin-top: 10px; min-height: 44px; padding: 10px 18px; background: #5A3A1C; border: 0; border-radius: 999px; color: #FFF4E2; font: 700 14px/1 var(--font-body); text-decoration: underline; cursor: pointer; }
.offer.is-done .offer__reveal { display: none; }
.offer.is-done .offer__dust { opacity: 0; pointer-events: none; }
.offer.is-done .offer__duster { opacity: 0; transform: translateY(26px) rotate(12deg); }
.offer.is-done .offer__slate { cursor: default; }
.offer.is-done .offer__code { animation: offer-pop 620ms var(--ease-settle, ease-out); }
@keyframes offer-pop { 0% { transform: scale(.88); } 55% { transform: scale(1.08); } 100% { transform: scale(1); } }
.offer__tray { position: absolute; left: 8%; right: 8%; bottom: -16px; height: 16px; border-radius: 0 0 10px 10px; background: #8E5B27; box-shadow: 0 6px 0 #6F4519; }
.offer__line { margin: 30px 0 0; font: 600 15px/1.5 var(--font-body); color: var(--ink-2); }
.offer__note { display: block; font-size: 13.5px; }
@media (prefers-reduced-motion: reduce) { .offer__duster, .offer__dust, .offer__hint, .offer__reveal, .offer__puff { display: none !important; } .offer__act[hidden] { display: flex; } .offer.is-done .offer__code { animation: none; } }
@media (max-width: 520px) { .offer__slate { height: 124px; } .offer__duster { width: 104px; } }

/* the price: the list price struck through, the launch price big, the deal line under it */
.pr__was { font: 700 17px/1 var(--font-body); color: var(--ink-2); text-decoration: line-through 2px var(--coral, #E5483D); opacity: .85; }
.pr__deal { margin: -6px 0 10px; text-align: center; font: 700 14px/1.4 var(--font-body); color: var(--ink-2); }
.pr__deal b { color: var(--ink); letter-spacing: .06em; }
/* dark ink on the soft coral sticker reads clearly (6:1); white on coral failed contrast (a11y fix, 15 Nov 2026) */
.pr__tag { display: inline-block; padding: 3px 9px; margin-right: 4px; border-radius: 999px; background: #FF8A80; color: var(--ink); font: 800 12px/1 var(--font-display); letter-spacing: .04em; rotate: -3deg; }
.pr__packline { margin: 2px 0 10px; font: 700 14px/1.4 var(--font-body); color: #1F7A3A; }

/* the two small cards and the school card */
.pr__minis { list-style: none; margin: 28px auto 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: 14px; max-width: 760px; }
.pr__mini { display: grid; gap: 6px; justify-items: start; padding: 18px 20px; border-radius: 18px; background: var(--card); box-shadow: var(--sh-paper); }
.pr__mini-n { font: 800 19px/1.2 var(--font-display); color: var(--ink); }
.pr__mini-n small { display: block; margin-top: 2px; font: 600 13.5px/1.3 var(--font-body); color: var(--ink-2); }
.pr__mini-p { font: 700 15px/1.3 var(--font-body); color: var(--ink-2); }
.pr__mini-p b { font: 800 24px/1 var(--font-display); color: var(--ink); }
.pr__mini-p s { text-decoration: line-through 2px var(--coral, #E5483D); }
.pr__mini-d { font: 700 13px/1.3 var(--font-body); color: #1F7A3A; }
.pr__mini .btn { margin-top: 6px; }
.pr__school { display: flex; align-items: center; gap: 22px; max-width: 760px; margin: 30px auto 0; padding: 22px 26px; border-radius: 22px; background: #1E2A5A; color: #E4ECFF; box-shadow: var(--sh-paper-lift); }
.pr__school .pr__moon { width: 118px; height: auto; flex: none; filter: drop-shadow(0 10px 14px rgba(0, 0, 0, .35)); }
.pr__school-k { margin: 0; font: 800 12px/1 var(--font-display); letter-spacing: .14em; text-transform: uppercase; color: #BFD3FF; }
.pr__school-h { margin: 6px 0 8px; font: 800 24px/1.1 var(--font-display); color: #fff; }
.pr__school-t p { margin: 0 0 12px; }
.pr__school-b { display: flex; flex-wrap: wrap; gap: 10px; }
.pr__school-see { color: #fff; border-color: rgba(255, 255, 255, .55); }
@media (max-width: 640px) { .pr__school { flex-direction: column; text-align: center; } .pr__school-b { justify-content: center; } }

/* was / now: the struck list price on its own line above the launch price */
.pr__price { flex-wrap: wrap; row-gap: 2px; }
.pr__was { flex-basis: 100%; text-align: center; line-height: 1.1; }
.pr__unit { white-space: nowrap; }
.pr__deal .pr__save { display: block; margin-top: 2px; font-weight: 600; }
.pr__school-see { background: transparent; color: #fff; border: 2px solid rgba(255, 255, 255, .6); box-shadow: none; }
.pr__school-see:hover { background: rgba(255, 255, 255, .12); color: #fff; }

/* locked until the slate is rubbed: list prices only, then the numbers roll down to the launch prices */
.pr.is-locked .pr__was, .pr.is-locked .pr__s, .pr.is-locked .pr__deal-open, .pr.is-locked .pr__packline { display: none !important; }
.pr:not(.is-locked) .pr__deal-locked { display: none; }
.pr__deal-locked { color: #8E5B27; }
.pr__num { display: inline-block; }
.pr__num.is-roll { animation: pr-drop 720ms var(--ease-settle, cubic-bezier(.2, .9, .3, 1.15)); }
.pr__num.is-new { color: #1F7A3A; }
@keyframes pr-drop { 0% { transform: translateY(-16px) scale(1.1); } 55% { transform: translateY(4px) scale(.97); } 100% { transform: none; } }
@media (prefers-reduced-motion: reduce) { .pr__num.is-roll { animation: none; } }

/* the yearly saving card (the tear-open slip is gone, owner 9 Nov) */
.ys { max-width: 560px; margin: clamp(30px, 4vw, 52px) auto 0; text-align: center; }
.ys__h { margin: 0 0 14px; font: 800 20px/1.25 var(--font-display); color: var(--ink); }
.ys__card { position: relative; padding: 26px 24px 22px; border-radius: 22px; background: var(--card); box-shadow: var(--sh-paper-lift); }
.ys__stamp { position: absolute; right: 18px; top: -18px; rotate: 8deg; opacity: 0; } /* the 2.2x start lives in the keyframes only, so the hidden stamp never widens a phone page */
.ys.is-in .ys__stamp { animation: ys-press .62s cubic-bezier(.2, 1.4, .3, 1) .35s both; }
@keyframes ys-press { 0% { transform: scale(2.2); opacity: 0; } 60% { transform: scale(.94); opacity: 1; } 100% { transform: scale(1); opacity: 1; } }
.ys__big { margin: 0 0 8px; padding-right: 110px; text-align: left; font: 800 clamp(22px, 2.4vw, 30px)/1.15 var(--font-display); color: var(--ink); }
.ys__math { margin: 0 0 16px; text-align: left; font: 600 15px/1.5 var(--font-body); color: var(--ink-2); }
.ys__math b { color: var(--ink); }
@media (prefers-reduced-motion: reduce) { .ys__stamp { transform: none; opacity: 1; } .ys.is-in .ys__stamp { animation: none; } }
@media (max-width: 520px) { .ys__big { padding-right: 0; padding-top: 34px; } .ys__stamp { right: 12px; top: -14px; } }
