/* Plumb Lucky: the Lucky Club care plan, Monthly / Yearly with rolling digits.
   Colours, faces, nav and pills from ~/Dev/showroom/demos/plumb-lucky/index.html */
@font-face { font-family: 'Hammer'; src: url(fonts/hammer-bold.woff2) format('woff2'); font-display: swap; }
@font-face { font-family: 'Cooper Nouveau'; src: url(fonts/cooper-nouveau.woff2) format('woff2'); font-display: swap; }
@font-face { font-family: 'Relative'; src: url(fonts/relative-book.woff2) format('woff2'); font-display: swap; }
:root {
  --lime: #A8F58E; --blue: #9EC3FF; --ink: #0A0A0A; --coral: #F4948A; --cream: #FFF1E6;
  --display: 'Hammer', 'Dela Gothic One', sans-serif; --accent: 'Cooper Nouveau', serif; --body: 'Relative', sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; display: flex; flex-direction: column; background: var(--lime); color: var(--ink); font: 400 16px/1.45 var(--body); -webkit-font-smoothing: antialiased; overflow-x: clip; }
a { color: inherit; }
img { display: block; max-width: 100%; height: auto; }

.display { font-family: var(--display); font-weight: 400; text-transform: uppercase; line-height: .9; margin: 0; text-align: center; }
.accent { font-family: var(--accent); font-weight: 400; margin: 0; line-height: 1.05; }

/* nav (site) */
.nav { height: 70px; padding: 0 24px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; border-bottom: 2.5px solid var(--ink); font-size: 19px; line-height: 1; }
.nav-side { display: flex; align-items: center; gap: 40px; }
.nav-side.r { justify-content: flex-end; }
.nav-side a:not(.pill) { padding: 6px 0; text-decoration: none; }
.logo img { height: 56px; width: auto; }
.pill { display: inline-flex; align-items: center; gap: .5em; background: var(--ink); color: var(--lime); border-radius: 10px; padding: .45em .8em .5em; font: 400 1em/1 var(--body); text-decoration: none; white-space: nowrap; transition: transform 160ms ease-out; }
.pill:hover, .pill.is-hover { transform: translateY(-2px) rotate(-2deg); }

/* section */
.club { position: relative; flex: 1; width: 100%; max-width: 1050px; margin: 0 auto; padding: 28px 48px 56px; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 34px; }
.cloud { position: absolute; pointer-events: none; }
.c1 { width: 170px; left: 34px; top: 46px; }
.c2 { width: 150px; right: 40px; top: 150px; }
.head { text-align: center; }
.head .accent { font-size: 40px; margin-bottom: -.12em; position: relative; z-index: 1; }
.head .display { font-size: 118px; line-height: .8; letter-spacing: -.035em; }
.head .display span { display: block; white-space: nowrap; }

/* the plan card: cream on ink, like the site's Lucky-fact card, scaled up */
.plan { position: relative; width: 100%; max-width: 780px; background: var(--cream); border: 2.5px solid var(--ink); border-radius: 26px; padding: 34px 44px 40px; box-shadow: 10px 10px 0 var(--ink); }
.lucky { position: absolute; width: 168px; right: -62px; bottom: -54px; transform: rotate(8deg); border-radius: 50%; border: 2.5px solid var(--ink); background: var(--coral); }
.plan-top { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.plan-name { display: flex; align-items: center; gap: 14px; }
.plan-name img { width: 58px; transform: rotate(-8deg); }
.plan-name h2 { font-size: 40px; }

.drt-toggle {
  --drt-track: var(--ink); --drt-knob: var(--lime); --drt-label: var(--cream); --drt-label-on: var(--ink);
  --drt-pad: 5px; --drt-radius: 12px; --drt-h: 46px;
  font: 400 19px/1 var(--body); min-width: 280px;
}
.drt-toggle button.is-hover:not([aria-selected="true"]) { color: var(--lime); }

.price { display: flex; align-items: flex-start; margin: 26px 0 0; font-family: var(--display); line-height: 1; }
.cur { font-size: 46px; margin: 18px 10px 0 0; letter-spacing: -.02em; }
.price .drt-num { font-size: 178px; letter-spacing: -.04em; }
.per { position: relative; align-self: flex-end; margin: 0 0 22px 14px; font: 400 30px/1 var(--accent); }
.per .y, .deal .y { position: absolute; left: 0; top: 0; }
.per span, .deal span { transition: opacity .35s ease, transform .45s cubic-bezier(.2, .8, .2, 1); white-space: nowrap; }
[data-drt="monthly"] .y, [data-drt="yearly"] .m { opacity: 0; transform: translateY(.5em); }
.deal { position: relative; margin: 10px 0 0; font-size: 20px; }
.deal .y { font-family: var(--accent); }

.perks { list-style: none; margin: 26px 0 0; padding: 22px 0 0; border-top: 2px dashed var(--ink); display: grid; grid-template-columns: 1fr 1fr; gap: 14px 32px; font-size: 18px; line-height: 1.35; }
.perks li { position: relative; padding-left: 32px; }
.perks li::before { content: ""; position: absolute; left: 0; top: .12em; width: 20px; height: 20px; border-radius: 50%; border: 2px solid var(--ink); background: var(--lime); }
.perks li::after { content: ""; position: absolute; left: 6px; top: calc(.12em + 5px); width: 8px; height: 5px; border-left: 2px solid var(--ink); border-bottom: 2px solid var(--ink); transform: rotate(-45deg); }
.join { margin-top: 30px; font-size: 22px; padding: .5em .9em .55em; border-radius: 12px; }

@media (prefers-reduced-motion: reduce) { .per span, .deal span { transition: none; } }

@media (max-width: 760px) {
  .nav { grid-template-columns: 1fr auto; height: 58px; padding: 0 16px; font-size: 17px; }
  .nav-side.l, .nav-side .wide { display: none; }
  .logo img { height: 40px; }
  .club { padding: 28px 16px 48px; gap: 28px; }
  .cloud { display: none; }
  .head .accent { font-size: 28px; }
  .head .display { font-size: clamp(44px, 15vw, 96px); }
  .plan { padding: 26px 20px 28px; border-radius: 20px; box-shadow: 6px 6px 0 var(--ink); }
  .lucky { width: 96px; right: -10px; bottom: -34px; }
  .plan-name h2 { font-size: 30px; }
  .plan-name img { width: 42px; }
  .drt-toggle { min-width: 0; width: 100%; font-size: 17px; }
  .cur { font-size: 30px; margin-top: 10px; }
  .price { flex-wrap: wrap; }
  .price .drt-num { font-size: clamp(60px, 20vw, 150px); }
  .per { flex-basis: 100%; height: 1.1em; margin: 4px 0 0; font-size: 22px; }
  .deal { font-size: 16px; }
  .deal span { white-space: normal; }
  .perks { grid-template-columns: 1fr; font-size: 16px; }
}
