/* Diary 05 Naalai Plus: a sun-yellow ticket on mint paper. The stub on the left holds the price (₹39 a month, or ₹349 a
   year); a perforated fold separates it from the four things Plus adds, Kuru maths among them. Laid down on twos.
   Round 3 phase 2: under the yearly price, the saving is a coupon to tear open (_shared/coupon.css). */

#plus.dp { overflow-x: clip; } /* a torn coupon cover may fly past the edge: never a sideways scroll */
.dp__ticket { position: relative; isolation: isolate; display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); max-width: 1040px; margin-inline: auto;
  border-radius: 22px 28px 26px 20px / 24px 20px 28px 26px; background: var(--card); color: var(--ink); rotate: -.4deg;
  box-shadow: var(--pk-edge-light), 0 1px 1.5px rgba(31, 107, 58, .3), 0 28px 46px -24px rgba(31, 107, 58, .55); }
.dp__ticket::after { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; pointer-events: none;
  background: url(/assets/art/textures/grain-tile.webp) 0 0 / 256px 256px; mix-blend-mode: multiply; opacity: .4; }
.dp__stub { position: relative; display: grid; align-content: center; gap: 6px; padding: clamp(28px, 3.4vw, 48px); border-radius: inherit;
  border-top-right-radius: 0; border-bottom-right-radius: 0; background: var(--sun) url(/assets/art/textures/grain-soft-tile.webp) 0 0 / 256px 256px; background-blend-mode: multiply; }
/* the perforated fold between the stub and the ticket */
.dp__stub::after { content: ""; position: absolute; top: 14px; bottom: 14px; right: -1.5px; width: 3px;
  background: repeating-linear-gradient(transparent 0 6px, rgba(90, 42, 0, .35) 6px 12px); }
.dp__h { font-size: clamp(30px, 3vw, 44px); }
.dp__for { font: 800 17px/1.3 var(--font-body); color: #5A3A06; }
.dp__price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; margin-top: 10px; }
.dp__big { font: 800 clamp(56px, 5.6vw, 80px)/.9 var(--font-display); letter-spacing: -.02em; }
.dp__unit { font: 800 20px/1.2 var(--font-body); }
.dp__year { margin-top: 4px; font: 700 17px/1.4 var(--font-body); color: #5A3A06; }
.dp__year b { color: var(--ink); font-weight: 800; }
.dp__stub .cp { margin-top: 10px; max-width: 340px; }
.dp__body { display: grid; align-content: center; padding: clamp(26px, 3vw, 44px) clamp(24px, 3.4vw, 52px); }
.dp__intro { font: 700 var(--t-lead)/1.4 var(--font-body); color: var(--ink); }
.dp__list { margin-top: 18px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 28px; }
.dp__list li { display: grid; grid-template-columns: 52px minmax(0, 1fr); gap: 14px; align-items: start; }
.dp__list li > img, .dp__kuru { width: 52px; height: 52px; }
.dp__list span:last-child { font-size: 16.5px; line-height: 1.45; color: var(--ink-2); }
.dp__list b { display: block; font: 800 19px/1.25 var(--font-display); color: var(--ink); }
.dp__list a { font-weight: 800; color: var(--blue-deep); }
/* Kuru's still is drawn on cream paper: a cream paper badge */
.dp__kuru { position: relative; display: block; border-radius: 50%; overflow: hidden; background: #FFF4E4; box-shadow: inset 0 0 0 2px rgba(30, 42, 90, .1), 0 1px 1px rgba(90, 42, 0, .2); }
.dp__kuru img { position: absolute; left: 50%; top: 50%; width: 92%; max-width: none; height: auto; translate: -50% -45%; } /* the portrait is cut tight: a little smaller, so his cap stays inside the circle */
.dp__links { display: flex; flex-wrap: wrap; gap: 4px 32px; margin-top: 22px; }
.dp__more { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; font: 800 18px/1 var(--font-body); color: var(--blue-deep); }

@media (max-width: 859.98px) {
  .dp__ticket { grid-template-columns: minmax(0, 1fr); }
  .dp__stub { border-radius: 22px 28px 0 0 / 24px 20px 0 0; }
  .dp__stub::after { top: auto; bottom: -1.5px; left: 14px; right: 14px; width: auto; height: 3px; background: repeating-linear-gradient(90deg, transparent 0 6px, rgba(90, 42, 0, .35) 6px 12px); }
}
@media (max-width: 559.98px) {
  .dp__list { grid-template-columns: minmax(0, 1fr); }
}
@media (prefers-reduced-motion: no-preference) {
  html.js:not(.rm) .dp [data-b].b-wait:not(.b-in) { opacity: 0; }
  .dp [data-b="ticket"].b-in { animation: dp-deal 580ms steps(1, end) var(--b-at, 0ms) both; }
}
@keyframes dp-deal {
  0% { opacity: 0; transform: translate(-2%, -30px) rotate(-2.6deg) scale(1.03); }
  14.3% { opacity: 1; transform: translate(-1.2%, -17px) rotate(-1.6deg) scale(1.02); }
  28.6% { transform: translate(-.5%, -7px) rotate(-.7deg) scale(1.008); }
  42.9% { transform: translate(-.1%, -2px) rotate(-.2deg); }
  57.1%, 100% { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) { .dp [data-b] { animation: none !important; opacity: 1 !important; } }
@media (forced-colors: active) { .dp__ticket { border: 2px solid CanvasText; } }

.dp__was { align-self: center; margin-right: 8px; font: 700 18px/1 var(--font-body); color: var(--ink-2); text-decoration: line-through 2px #E5483D; }

/* the yearly saving card (shared look with Pricing) */
.ys--inline { margin: 18px 0 0; max-width: 520px; text-align: left; }
.ys__card { position: relative; padding: 22px 22px 20px; border-radius: 20px; background: var(--card); box-shadow: var(--sh-paper-lift); }
.ys__stamp { position: absolute; right: 16px; top: -16px; 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: 96px; font: 800 19px/1.2 var(--font-display); color: var(--ink); }
.ys__math { margin: 0 0 14px; font: 600 14.5px/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: 30px; } }
