/* ==========================================================================
   HelpGent — "Pricing A" template styles (loaded after common.css)
   Uses the homepage's type, tokens and components; only the price size is pricing-only.
   ========================================================================== */

:root{  /* pricing-only token (the shared ones live in common.css) */
  --fs-price:   clamp(2.29rem, 2.29rem + 1.63vw, 4rem);
}


/* ══ PRICING ════════════════════════════════════════════════════════════ */
/* hero — the shared dark title band (.phero, common.css), taller here: the plan cards below pull up over its edge */
.phero{padding:150px 0 190px}
/* billing toggle — Yearly | Lifetime segmented control */
.bill{display:flex;flex-direction:column;align-items:center;gap:12px;margin-top:34px}
.bswitch{position:relative;display:inline-flex;background:#fff;
  border:0;border-radius:999px;padding:6px;box-shadow:0 10px 30px rgba(0,0,0,.18)}
.bswitch button{position:relative;z-index:2;flex:1 1 0;min-width:190px;
  display:inline-flex;align-items:center;justify-content:center;gap:0;
  font-family:var(--font);font-size:16px;font-weight:500;
  color:var(--text-2);background:none;border:0;cursor:pointer;
  padding:13px 24px;border-radius:999px;transition:color .2s ease}
.bswitch button[aria-selected="true"]{color:#fff}
.bswitch__thumb{position:absolute;top:6px;left:6px;height:calc(100% - 12px);width:calc(50% - 6px);
  background:var(--accent);border-radius:999px;
  box-shadow:0 6px 18px rgb(var(--accent-rgb) / .35);
  transition:transform .28s cubic-bezier(.65,0,.35,1)}
.bswitch.is-life .bswitch__thumb{transform:translateX(100%)}
/* plan grid — pulled up so the top of the cards overlaps the dark hero */
.pricing-stage{background:linear-gradient(var(--dark) 0 88px, var(--tint) 88px 100%)}
.plans-wrap{position:relative;z-index:3;margin-top:-150px;padding-bottom:8px}
.plans{display:grid;grid-template-columns:repeat(3,1fr);gap:24px;align-items:stretch;max-width:1140px;margin-inline:auto}
.plans[hidden]{display:none}
.plan{background:#fff;border:1px solid var(--line);border-radius:var(--radius-lg);box-shadow:var(--shadow-card);
  overflow:hidden;display:flex;flex-direction:column}
.plan__in{padding:30px;display:flex;flex-direction:column;flex:1}
/* header row — name as a filled pill, discount as a quiet chip */
.plan__top{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}
.plan__nm{display:inline-block;margin:0;padding:9px 18px;border-radius:var(--radius);
  background:var(--accent);color:#fff;font-size:var(--fs-h3-lg);font-weight:600;line-height:1.2;letter-spacing:normal}
.plan__save{font-family:var(--font);font-size:13px;font-weight:600;color:#7A4E12;background:#FDF1E3;
  border-radius:999px;padding:5px 12px;white-space:nowrap}
.plan__blurb{font-size:16px;line-height:1.6;color:var(--text-2);margin-top:22px;min-height:52px}
.plan__strike{margin-top:34px;font-size:14px;color:var(--text-3);text-decoration:line-through;min-height:20px}
.plan__price{font-size:var(--fs-price);font-weight:600;letter-spacing:var(--ls-h2);
  line-height:1;color:var(--text);display:flex;align-items:baseline;gap:8px;margin-top:6px}
.plan__per{font-family:var(--font);font-size:17px;font-weight:400;letter-spacing:normal;color:var(--text-2)}
.plan__rule{border:0;border-top:1px solid var(--line);margin:26px 0 22px}
.plan__rule--foot{margin:auto 0 0;padding-top:0}
.plan ul{margin:0 0 30px}
.plan ul li{position:relative;padding-left:32px;font-size:16.5px;line-height:1.5;color:var(--text);margin-bottom:16px}
.plan ul li:last-child{margin-bottom:0}
.plan ul li::before{content:"";position:absolute;left:2px;top:4px;width:18px;height:18px;background:currentColor;
  -webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 12.5 9.5 18 20 6.5'/%3E%3C/svg%3E") center/contain no-repeat;
          mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 12.5 9.5 18 20 6.5'/%3E%3C/svg%3E") center/contain no-repeat}
.plan ul li b{font-weight:600}
.plan .btn{width:100%;margin-top:30px}
/* best-value card — solid brand purple (--accent), white type, white name pill and button */
.plan{border-radius:20px;position:relative;transition:transform var(--t-ui),box-shadow var(--t-ui)}
.plan:hover{transform:translateY(-4px);box-shadow:0 24px 44px -20px rgb(var(--dark-rgb) / .28)}
.plan--best{background:var(--accent);border-color:var(--accent);color:#fff;box-shadow:0 28px 60px -24px rgb(var(--accent-rgb) / .55)}
.plan--best:hover{box-shadow:0 32px 64px -24px rgb(var(--accent-rgb) / .65)}
.plan--best .plan__nm{background:#fff;color:var(--accent)}
.plan--best .plan__save{background:rgb(255 255 255 / .18);color:#fff}
.plan--best .plan__blurb,.plan--best .plan__per{color:rgb(255 255 255 / .8)}
.plan--best .plan__strike{color:rgb(255 255 255 / .6)}
.plan--best .plan__price,.plan--best ul li{color:#fff}
.plan--best .plan__rule{border-top-color:rgb(255 255 255 / .22)}
/* white button on the purple card — its own class, so the palette's .btn--fill variants can't turn it purple-on-purple */
.btn--on-accent{background:#fff;border-color:#fff;color:var(--dark)}
.btn--on-accent:hover{background:var(--accent-soft);border-color:var(--accent-soft)}
@media (prefers-reduced-motion:reduce){ .plan{transition:none} }
/* trust strip — award badges */
.trust__in{display:flex;flex-direction:column;align-items:center;gap:22px;text-align:center}
.trust__by{font-size:14px;color:var(--text-3)}
.trust__awards{display:flex;flex-wrap:wrap;align-items:center;justify-content:center;gap:28px 48px;margin-top:-6px}
.trust__awards img{width:auto;max-width:100%}
/* "what's in the box" — Directorist-style feature bento, solid (no gradients):
   split header · wide focus tile in solid dark (2 cols) + tall tile · compact tiles (label, title, big image) · text-only row */
/* header — heading left, intro right */
.box__head{display:grid;grid-template-columns:1.1fr 1fr;gap:48px;align-items:end}
.box__head h2 em{font-style:normal;color:var(--accent)}
.box__head .lead{color:var(--text-2);max-width:520px}
/* grid */
.box{display:grid;grid-template-columns:repeat(3,1fr);gap:20px}
.box__more{display:contents}   /* the image tiles; a swipe row on phones (.swipe-m) */
/* tile */
.tile{position:relative;overflow:hidden;display:flex;flex-direction:column;border-radius:20px;
  background:#fff;border:1px solid var(--line);box-shadow:var(--shadow-card);
  transition:opacity .55s ease,transform .28s cubic-bezier(.22,1,.36,1),box-shadow .28s ease}
.tile.rv{transform:translateY(18px)}
.tile.rv.in{transform:none}
.tile:hover{transform:translateY(-4px);box-shadow:0 24px 44px -20px rgb(var(--dark-rgb) / .28)}
.tile__body{padding:28px 28px 24px}
.tile__label{display:block;font-size:14px;font-weight:600;color:var(--accent);margin-bottom:10px}
.tile h3{font-size:var(--fs-h3);line-height:1.3}
.tile p{margin-top:12px;font-size:var(--fs-body-sm);line-height:1.65;color:var(--text-2)}
/* media — big, sharp image anchored to the bottom of the tile; zooms on hover */
.tile__media{margin:auto 18px 0;border-radius:14px 14px 0 0;overflow:hidden;aspect-ratio:7/5;border:1px solid var(--line);border-bottom:0}
.tile__media img{width:100%;height:100%;object-fit:cover;object-position:top center;transition:transform .6s cubic-bezier(.22,1,.36,1)}
.tile:hover .tile__media img{transform:scale(1.05)}
/* focus tile — solid dark, the one thing that stands out; text left, image right */
.tile--wide{grid-column:span 2;display:grid;grid-template-columns:1fr 1.15fr;background:var(--dark);border-color:var(--dark);box-shadow:var(--shadow-raise)}
.tile--wide .tile__body{padding:40px;display:flex;flex-direction:column}
.tile--wide .tile__label{color:var(--accent-tint)}
.tile--wide h3{color:#fff}
.tile--wide p{color:rgba(255,255,255,.72)}
.tile--wide h3,.tile--lead h3{font-size:var(--fs-h3-lg);line-height:var(--lh-heading)}
.tile--wide .tile__media{margin:36px 0 0;border-radius:14px 0 0 0;aspect-ratio:auto;border:0}
.tile--wide .tile__media img{object-position:right top}
.tile--lead .tile__body{padding:40px 32px 28px}
/* answer-mode chips */
.box__modes{display:flex;flex-wrap:wrap;gap:8px;margin-top:auto;padding-top:28px}
.box__modes li{display:inline-flex;align-items:center;gap:8px;padding:6px 12px 6px 6px;border-radius:999px;
  background:rgba(255,255,255,.08);border:1px solid rgba(255,255,255,.16);color:#fff;font-size:14px;font-weight:600;line-height:1}
.box__modes img{width:28px;height:28px;transition:transform .3s ease}
.box__modes li:hover img{transform:translateY(-2px) rotate(-8deg) scale(1.1)}
/* text-only row */
.box__notes{display:grid;grid-template-columns:repeat(3,1fr);gap:20px;margin-top:36px}
.box__notes li{border-top:1px solid var(--line-2);padding-top:18px}
.box__notes h3{font-size:var(--fs-h3)}
.box__notes p{margin-top:6px;font-size:var(--fs-body-sm);line-height:1.6;color:var(--text-2)}
@media (prefers-reduced-motion:reduce){
  .tile,.tile__media img,.box__modes img{transition:none}
}
@media (max-width:1000px){
  .box__head{grid-template-columns:1fr;gap:16px}
  .box{grid-template-columns:repeat(2,1fr)}
  .tile--wide{grid-template-columns:1fr}
  .tile--wide .tile__media{margin:0 18px;border-radius:14px 14px 0 0;aspect-ratio:16/9}
  .tile--wide .tile__media img{object-position:right top}
}
@media (max-width:640px){
  .box,.box__notes{grid-template-columns:1fr}
  .tile--wide{grid-column:auto}
  .tile--wide .tile__body,.tile--lead .tile__body{padding:26px 24px 22px}
  .box__notes{gap:4px}
}

/* 100% no-risk money back — founder-backed card (layout from formgent.com/pricing, in HelpGent purple) */
.refund__card{position:relative;overflow:hidden;display:grid;grid-template-columns:1fr auto;align-items:center;gap:32px;
  max-width:980px;margin-inline:auto;padding:48px;border-radius:24px;background:var(--accent-soft);border:1px solid var(--line-accent)}
.refund__card::before{content:"";position:absolute;right:0;bottom:0;width:820px;height:159px;pointer-events:none;
  background:url("../img/guarantee/lines.svg") no-repeat right bottom/contain}
.refund__copy{position:relative;z-index:1;max-width:560px}
.refund__badge{display:inline-flex;align-items:center;gap:7px;padding:7px 14px;border-radius:999px;
  background:var(--accent);color:#fff;font-size:14px;font-weight:600;line-height:1}
.refund h2{margin-top:18px}
.refund__lead{margin-top:14px;color:var(--text-2)}
.refund__lead b{color:var(--text);font-weight:600}
.refund__author{display:flex;align-items:center;gap:18px;margin-top:30px}
.refund__author img{width:72px;height:72px;border-radius:50%;flex:none;box-shadow:0 0 0 4px #fff}
.refund__name{font-size:var(--fs-h3);font-weight:600;color:var(--text);line-height:1.3}
.refund__role{font-size:15px;color:var(--text-2);line-height:1.5;margin-top:2px}
.refund__role a{color:var(--accent);text-decoration:underline;text-underline-offset:2px}
.refund__note{display:flex;align-items:center;gap:6px;margin-top:6px;font-size:13.5px;color:var(--text-3)}
.refund__note svg{color:var(--accent)}
.refund__seal{position:relative;z-index:1;width:260px;height:auto;margin-right:-72px;
  filter:drop-shadow(0 12px 24px rgba(28,11,56,.16));transition:transform .6s cubic-bezier(.22,1,.36,1)}
.refund__card:hover .refund__seal{transform:rotate(-8deg) scale(1.03)}
.refund__foot{margin-top:24px;text-align:center;color:var(--text-2)}
.refund__foot a{color:var(--accent);font-weight:600;text-decoration:underline;text-underline-offset:3px}
@media (max-width:800px){
  .refund__card{grid-template-columns:1fr;padding:32px 24px 40px}
  .refund__seal{order:-1;width:150px;margin:0}
}
@media (prefers-reduced-motion:reduce){ .refund__seal{transition:none} }

/* ── responsive ─────────────────────────────────────────────────────────── */
@media (max-width:1100px){
  .plans{grid-template-columns:1fr;max-width:460px}
  .plan--best{order:-1}
  .plans-wrap{margin-top:-150px}
}
@media (max-width:680px){
  .phero{padding:128px 0 170px}
  .bswitch button{padding:11px 18px;min-width:130px}
}
