/* lessonleech.com/plans. Lite, Plus (turquoise) and Max (best value, coral → violet), each with everything it
   includes, the free trial and top-ups, a counter that finds the cheapest plan for your week, what a lesson-hour is, and
   a short FAQ. Built on site.css (colours, type, .eyebrow, .faq, .last, .btn-*). */


/* ---------------------------------------------------------------- top */

.plans-hero { position: relative; text-align: center; padding: 76px 0 10px; isolation: isolate; overflow-x: clip; }   /* the glow fades behind the cards */
.plans-hero::before, .plans-hero::after {
  content: ""; position: absolute; z-index: -1; border-radius: 50%; filter: blur(90px); opacity: .5; pointer-events: none;
}
.plans-hero::before { width: 520px; height: 380px; left: calc(50% - 600px); top: 70px; background: radial-gradient(circle, rgba(255, 82, 18, .55), transparent 65%); }
.plans-hero::after { width: 580px; height: 420px; left: calc(50% + 30px); top: 0; background: radial-gradient(circle, rgba(140, 92, 245, .6), transparent 65%); }
.plans-hero h1 { font-size: clamp(44px, 6.8vw, 88px); }
.plans-hero .lede { max-width: 660px; }

/* ---------------------------------------------------------------- Lite · Plus · Max */

.tiers-sec { padding: 56px 0 40px; }
.tiers { display: grid; grid-template-columns: 1fr 1fr 1.1fr; gap: 18px; align-items: stretch; }
.tier {
  position: relative; display: flex; flex-direction: column; gap: 20px; padding: 30px 26px 24px; border-radius: 28px;
  background: linear-gradient(180deg, var(--ink-3), var(--ink-2)); box-shadow: inset 0 0 0 1px var(--line);
}
.tier header { display: grid; gap: 12px; }
.tier .tier-name {
  display: flex; align-items: center; gap: 10px; max-width: none;
  font: 800 13px/1 var(--display); letter-spacing: .16em; text-transform: uppercase; color: var(--muted);
}
.t-lite .tier-name { color: #d9d5e3; }
.best {
  padding: 5px 9px; border-radius: 999px; background: var(--accent); color: #fff;
  font: 800 10.5px/1 var(--display); letter-spacing: .1em; box-shadow: 0 8px 20px -10px rgba(255, 82, 18, .9);
}
.price { display: flex; align-items: baseline; margin: 0; font-family: var(--display); letter-spacing: -.045em; }
.price b { font-size: 60px; font-weight: 800; line-height: .95; }
.price .cur { align-self: flex-start; margin: 5px 2px 0 0; font-size: 28px; font-weight: 700; color: #d9d5e3; }
.price .per { margin-left: 9px; font: 700 15px/1 var(--body); letter-spacing: 0; color: var(--muted); }
.tier-hours { margin: 0; color: #cfcbd9; font: 600 16px/1.4 var(--body); }
.tier-hours b { color: #fff; font: 800 17px/1 var(--display); letter-spacing: -.01em; }
.tier-for { margin: -4px 0 0; color: var(--faint); font: 700 14.5px/1.4 var(--body); }

.ticks {
  flex: 1; display: grid; align-content: start; gap: 11px; margin: 0; padding: 20px 0 0; list-style: none;
  border-top: 1px solid var(--line);
}
.ticks li { position: relative; padding-left: 30px; color: #d6d2de; font: 600 15.5px/1.45 var(--body); }
.ticks li b { color: #fff; font-weight: 800; }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: 2px; width: 20px; height: 20px; border-radius: 7px;
  background: var(--tick-bg) var(--tick) center / 12px no-repeat;
}
/* the answer function: in Plus and Max, a box of the plan's colour right under the price; in Lite, said plainly */
.answer-box { position: relative; margin: 2px 0 -4px; padding: 14px 16px 14px 52px; border-radius: 16px; }
.answer-box::before {
  content: ""; position: absolute; left: 14px; top: 14px; width: 26px; height: 26px; border-radius: 9px;
  background: var(--ab-icon) center / 14px no-repeat, var(--ab-icon-bg);        /* icon over a colour or a gradient */
}
.answer-box b { display: block; font: 800 16.5px/1.25 var(--display); letter-spacing: -.01em; color: var(--ab-title); }
.answer-box p { margin: 4px 0 0; font: 600 14px/1.45 var(--body); color: var(--ab-text); }
.answer-box.yes { background: var(--ab-bg); box-shadow: inset 0 0 0 1px var(--ab-line); }
.answer-box.no {
  --ab-title: #a6a3b5; --ab-text: #8b889b; --ab-icon-bg: rgba(255, 255, 255, .06);
  --ab-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M3 3l6 6M9 3l-6 6' fill='none' stroke='%238b889b' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
  box-shadow: inset 0 0 0 1px var(--line-2); background: rgba(255, 255, 255, .02);
}
.answer-box.no b { text-decoration: line-through; text-decoration-color: rgba(166, 163, 181, .5); }
.t-plus .answer-box.yes {
  --ab-bg: rgba(26, 230, 199, .1); --ab-line: rgba(26, 230, 199, .45); --ab-title: #fff; --ab-text: #c5efe8;
  --ab-icon-bg: linear-gradient(135deg, var(--turq), var(--sky));
  --ab-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2.4 6.3l2.3 2.3 4.9-5.1' fill='none' stroke='%23062520' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}
.featured .answer-box.yes {
  --ab-bg: rgba(255, 107, 181, .1); --ab-line: rgba(255, 107, 181, .5); --ab-title: #fff; --ab-text: #f1cde0;
  --ab-icon-bg: var(--accent);
  --ab-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2.4 6.3l2.3 2.3 4.9-5.1' fill='none' stroke='%23ffffff' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}
.t-lite { --tick-bg: rgba(255, 255, 255, .08); --tick: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2.4 6.3l2.3 2.3 4.9-5.1' fill='none' stroke='%23e7e4ee' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
.t-plus { --tick-bg: rgba(26, 230, 199, .14); --tick: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2.4 6.3l2.3 2.3 4.9-5.1' fill='none' stroke='%231ae6c7' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
.featured { --tick-bg: rgba(255, 107, 181, .15); --tick: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2.4 6.3l2.3 2.3 4.9-5.1' fill='none' stroke='%23ff6bb5' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }

.tier-cta { display: flex; justify-content: center; align-items: center; gap: 10px; width: 100%; }
.soon {
  display: inline-flex; justify-content: center; align-items: center; gap: 10px;
  padding: 15px 18px; border-radius: 16px; font: 700 16px/1 var(--display); color: var(--muted); cursor: default;
  background: rgba(255, 255, 255, .03); box-shadow: inset 0 0 0 1px var(--line-2); white-space: nowrap;
}
.soon-tag {
  padding: 4px 8px; border-radius: 999px; background: rgba(255, 255, 255, .1); color: #fff;
  font: 800 11px/1 var(--display); letter-spacing: .08em; text-transform: uppercase;
}
.tier-fine { margin: -6px 0 0; text-align: center; color: var(--faint); font: 700 13px/1.4 var(--body); }

/* Plus: turquoise, Leechy's own colour: a rim, a soft glow and the price */
.t-plus {
  background: radial-gradient(110% 60% at 50% 0, rgba(26, 230, 199, .12), transparent 62%), linear-gradient(180deg, #172228, var(--ink-2));
  box-shadow: 0 40px 90px -60px rgba(26, 230, 199, .5);
}
.t-plus::before, .featured::before {
  content: ""; position: absolute; inset: 0; padding: 1.5px; border-radius: inherit; pointer-events: none;
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
}
.t-plus::before { background: linear-gradient(160deg, var(--turq), var(--sky)); }
.t-plus .tier-name { color: var(--turq); }
.t-plus .price b { background: linear-gradient(90deg, var(--turq), var(--sky)); -webkit-background-clip: text; background-clip: text; color: transparent; padding-right: 2px; }
.t-plus .soon { color: #e6fbf7; box-shadow: inset 0 0 0 1px rgba(26, 230, 199, .38); background: rgba(26, 230, 199, .06); }
.t-plus .soon-tag { background: linear-gradient(90deg, var(--turq), var(--sky)); color: #062520; }
.t-plus .tier-fine { color: #8fd9cc; }

/* Max: taller, a coral → violet rim, and the notch with Leechy hanging out of it */
.featured {
  margin: -14px 0; padding: 50px 30px 30px;
  background: radial-gradient(110% 60% at 50% 0, rgba(255, 107, 181, .15), transparent 62%), linear-gradient(180deg, #1f1d2b, var(--ink-2));
  box-shadow: 0 50px 100px -60px rgba(255, 82, 18, .6), 0 30px 80px -50px rgba(140, 92, 245, .7);
}
.featured::before { background: linear-gradient(160deg, var(--coral), var(--pink) 45%, var(--violet)); }
.featured .tier-name { color: #fff; }
.featured .price b { background: var(--accent); -webkit-background-clip: text; background-clip: text; color: transparent; padding-right: 2px; }
.featured .soon { color: #e9e6f0; box-shadow: inset 0 0 0 1px rgba(255, 107, 181, .35); background: rgba(255, 107, 181, .06); }
.featured .soon-tag { background: var(--accent); }
.featured .tier-fine { color: #d59bbd; }
.tier-notch {
  position: absolute; top: 0; left: 50%; width: 118px; height: 26px; transform: translateX(-50%);
  background: #000; border-radius: 0 0 15px 15px; z-index: 1;
}
.tier-notch::before, .tier-notch::after {                        /* the soft shoulders of the real notch */
  content: ""; position: absolute; top: 0; width: 10px; height: 10px;
  background: radial-gradient(circle at 0 100%, transparent 9.5px, #000 10px);
}
.tier-notch::before { left: -10px; }
.tier-notch::after { right: -10px; transform: scaleX(-1); }
.peek {
  position: absolute; left: 50%; top: 13px; width: 56px; height: 60px; margin-left: -28px;
  transform-origin: 50% 0; animation: dangle 5.5s ease-in-out infinite;
}
@keyframes dangle { 0%, 100% { transform: rotate(0); } 45% { transform: rotate(7deg); } 70% { transform: rotate(-4deg); } }

/* ---------------------------------------------------------------- the free trial and top-ups */

.extras { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 46px; }
.extra {
  display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 22px 24px; border-radius: 22px;
  background: linear-gradient(180deg, var(--ink-3), var(--ink-2)); box-shadow: inset 0 0 0 1px var(--line);
}
.extra h3 { display: flex; align-items: baseline; gap: 10px; font-size: 20px; letter-spacing: -.02em; }
.extra p { margin: 6px 0 0; color: #bdb9ca; font: 600 14.5px/1.5 var(--body); }
.extra p b { color: #fff; font-weight: 800; }
.x-trial h3 { color: var(--mint); }
.x-topup h3 { color: var(--amber); }
.x-price { color: #fff; font: 800 20px/1 var(--display); }
.extra .btn-ghost { flex: none; gap: 10px; padding: 13px 16px; font-size: 15.5px; }
.extra .btn-ghost svg { width: 19px; height: 19px; }
.extra .soon { flex: none; padding: 13px 16px; font-size: 15px; }

.plans-now {
  max-width: 880px; margin: 40px auto 0; padding: 14px 20px; border-radius: 16px; text-align: center;
  background: rgba(61, 207, 143, .07); box-shadow: inset 0 0 0 1px rgba(61, 207, 143, .22);
  color: #cfe7db; font: 600 14.5px/1.55 var(--body);
}
.plans-now b { margin-right: 6px; color: #fff; font-weight: 800; }
.plans-now b::before {
  content: ""; display: inline-block; width: 8px; height: 8px; margin: 0 8px 1px 0; border-radius: 50%;
  background: var(--mint); box-shadow: 0 0 0 4px rgba(61, 207, 143, .15);
}

/* ---------------------------------------------------------------- count your week */

.calc-sec { background: radial-gradient(50% 60% at 75% 50%, rgba(140, 92, 245, .09), transparent 70%); }
.calc { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.calc h2 { max-width: 12ch; }
.calc-controls { display: grid; gap: 28px; margin-top: 36px; max-width: 480px; }
.calc-row { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 14px 12px; }
.calc-row > label, .calc-label { font: 700 16px/1 var(--display); color: #e7e4ee; }
.calc-row output { font: 800 26px/1 var(--display); letter-spacing: -.03em; min-width: 2ch; text-align: right; }
.calc-row input[type="range"], .calc-row .seg { grid-column: 1 / -1; }
.calc input[type="range"] {
  --fill: 20.7%;
  -webkit-appearance: none; appearance: none; width: 100%; height: 8px; margin: 6px 0; border-radius: 999px; cursor: pointer;
  background: linear-gradient(90deg, var(--coral), var(--pink) var(--fill), rgba(255, 255, 255, .1) var(--fill));
}
.calc input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none; width: 26px; height: 26px; border-radius: 50%; background: #fff; cursor: grab;
  box-shadow: 0 4px 14px rgba(0, 0, 0, .55), 0 0 0 5px rgba(255, 107, 181, .28);
}
.calc input[type="range"]::-moz-range-thumb {
  width: 26px; height: 26px; border: 0; border-radius: 50%; background: #fff; cursor: grab;
  box-shadow: 0 4px 14px rgba(0, 0, 0, .55), 0 0 0 5px rgba(255, 107, 181, .28);
}
.seg { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.seg label { position: relative; cursor: pointer; }
.seg input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.seg label span {
  display: grid; place-items: center; min-width: 54px; padding: 11px 14px; border-radius: 13px;
  font: 800 16px/1 var(--display); color: var(--muted);
  background: rgba(255, 255, 255, .04); box-shadow: inset 0 0 0 1px var(--line-2);
  transition: background .2s, color .2s, transform .2s var(--spring);
}
.seg label:hover span { color: #fff; }
.seg input:checked + span { color: #fff; background: var(--accent); box-shadow: 0 10px 24px -12px rgba(255, 82, 18, .8); transform: translateY(-1px); }
.seg input:focus-visible + span { outline: 2px solid var(--pink); outline-offset: 3px; }
.seg-unit { margin-left: 4px; color: var(--faint); font: 700 14px/1 var(--body); }

.switch { position: relative; display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 14px; cursor: pointer; }
.switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.switch .knob {
  position: relative; width: 50px; height: 30px; border-radius: 999px; background: rgba(255, 255, 255, .1);
  box-shadow: inset 0 0 0 1px var(--line-2); transition: background .25s;
}
.switch .knob::after {
  content: ""; position: absolute; left: 3px; top: 3px; width: 24px; height: 24px; border-radius: 50%; background: #fff;
  box-shadow: 0 3px 8px rgba(0, 0, 0, .45); transition: transform .3s var(--spring);
}
.switch input:checked + .knob { background: linear-gradient(90deg, var(--turq), var(--sky)); box-shadow: none; }
.switch input:checked + .knob::after { transform: translateX(20px); }
.switch input:focus-visible + .knob { outline: 2px solid var(--pink); outline-offset: 3px; }
.switch-text { color: var(--muted); font: 600 14px/1.35 var(--body); }
.switch-text b { display: block; color: #e7e4ee; font: 700 16px/1.3 var(--display); }

.calc-card {
  padding: 30px 30px 26px; border-radius: 30px;
  background: radial-gradient(90% 120% at 100% 0, rgba(140, 92, 245, .2), transparent 55%), linear-gradient(180deg, var(--ink-3), var(--ink-2));
  box-shadow: inset 0 0 0 1px var(--line-2), 0 40px 90px -60px rgba(0, 0, 0, .9);
}
.calc-week { margin: 0; color: var(--muted); font: 700 14.5px/1.3 var(--body); }
.calc-big { display: flex; align-items: flex-end; gap: 14px; margin: 10px 0 0; }
.calc-big b { font: 800 clamp(72px, 9vw, 112px)/.85 var(--display); letter-spacing: -.06em; font-variant-numeric: tabular-nums; }
.calc-big span { padding-bottom: 6px; color: #d9d5e3; font: 700 17px/1.2 var(--display); }

.gauge { display: flex; gap: 5px; margin-top: 24px; }
.g {
  --f: 0; position: relative; flex: 1 1 0; min-width: 34px; height: 30px; border-radius: 9px; overflow: hidden;
  background: rgba(255, 255, 255, .05); box-shadow: inset 0 0 0 1px var(--line);
}
.g::before {
  content: ""; position: absolute; inset: 0; transform-origin: 0 50%; transform: scaleX(var(--f));
  transition: transform .45s var(--spring);
}
.g-plan { --f: .84; }                                            /* the default week (25 of Plus's 30 h), before the script runs */
.g-plan::before { background: var(--accent); }
.g-top::before { background: linear-gradient(90deg, #f5b84a, #ff9b3d); }
.g i {
  position: relative; display: grid; place-items: center; height: 100%; padding: 0 6px; white-space: nowrap;
  font: 800 12px/1 var(--display); font-style: normal; letter-spacing: .04em; color: rgba(255, 255, 255, .9);
}
.calc-options { display: grid; gap: 7px; margin: 18px 0 0; padding: 0; list-style: none; }
.calc-options li {
  display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 11px 14px; border-radius: 13px;
  color: var(--muted); font: 700 15px/1 var(--display); background: rgba(255, 255, 255, .03); box-shadow: inset 0 0 0 1px var(--line);
  transition: background .2s, box-shadow .2s, color .2s;
}
.calc-options li b { color: #cfcbd9; font-weight: 800; font-variant-numeric: tabular-nums; }
.calc-options li.best { color: #fff; background: rgba(255, 107, 181, .09); box-shadow: inset 0 0 0 1.5px rgba(255, 107, 181, .6); }
.calc-options li.best b { color: #fff; }
.calc-options li.off { opacity: .55; }
.calc-options li.off span::after {
  content: "No answers"; margin-left: 10px; padding: 4px 8px; border-radius: 999px; background: rgba(255, 255, 255, .08); color: #d9d5e3;
  font: 800 10.5px/1 var(--display); letter-spacing: .08em; text-transform: uppercase; vertical-align: 1px;
}
.calc-options li.best span::after {
  content: "Best fit"; margin-left: 10px; padding: 4px 8px; border-radius: 999px; background: var(--accent); color: #fff;
  font: 800 10.5px/1 var(--display); letter-spacing: .08em; text-transform: uppercase; vertical-align: 1px;
}
.calc-verdict { margin: 16px 0 0; color: #d9d5e3; font: 600 16.5px/1.45 var(--body); }
.calc-verdict b { color: #fff; font-family: var(--display); font-weight: 800; }

/* ---------------------------------------------------------------- what's a lesson-hour */

.lh-sec { padding-top: 40px; }
.lh-sec h2 { max-width: 18ch; }
.lh-tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 40px; }
.lh {
  padding: 24px 22px 22px; border-radius: 22px;
  background: linear-gradient(180deg, var(--ink-3), var(--ink-2)); box-shadow: inset 0 0 0 1px var(--line);
}
.lh .ic { display: grid; place-items: center; width: 46px; height: 46px; margin-bottom: 16px; border-radius: 14px; }
.lh .ic svg { width: 22px; height: 22px; }
.lh b { display: block; font: 800 19px/1.25 var(--display); letter-spacing: -.02em; }
.lh p { margin: 8px 0 0; color: #bdb9ca; font: 600 15px/1.5 var(--body); }
.lh-listen .ic { color: var(--pink); background: rgba(255, 107, 181, .14); }
.lh-revise .ic { color: #b7a0ff; background: rgba(140, 92, 245, .17); }
.lh-safe .ic { color: var(--mint); background: rgba(61, 207, 143, .14); }

.faq-sec { padding-top: 40px; }
.plans .last h2 { font-size: clamp(30px, 3.6vw, 46px); }

/* ---------------------------------------------------------------- smaller screens */

@media (max-width: 1000px) {
  .tiers { grid-template-columns: 1fr; max-width: 540px; margin-inline: auto; gap: 22px; }
  .featured { margin: 0; }
  .extras { grid-template-columns: 1fr; }
  .calc { grid-template-columns: 1fr; gap: 36px; }
  .lh-tiles { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .extra { flex-direction: column; align-items: stretch; }
  .extra .btn-ghost, .extra .soon { justify-content: center; }
}
@media (max-width: 620px) {
  .plans-hero { padding-top: 52px; }
  .tier { padding: 26px 20px 20px; }
  .featured { padding: 46px 22px 24px; }
  .price b { font-size: 52px; }
  .calc-card { padding: 24px 20px 20px; }
  .g i { font-size: 10.5px; }
}
@media (prefers-reduced-motion: reduce) { .peek { animation: none; } }
