/* Agent65 products: the Products page and the HEVYN Plus row on the home page.
   The HEVYN Plus card keeps the product's own warm orange for the stamps; everything around it is the
   site's navy, blue and surface. Motion: stamps fill once, the seventh lands, the reward pill pops. */

:root { --hv-orange: #ef5f3c; --hv-orange-soft: #fff1ec; --hv-teal: #0f766e; --hv-yellow: #f6c143; }

/* ---------- the drawn product ---------- */
.hv-stage { position: relative; display: grid; place-items: center; min-height: 520px; padding: 32px 0; isolation: isolate; }
.hv-stage::before { content: ""; position: absolute; inset: 8% 6%; z-index: -1; border-radius: 32px; background: var(--p-surface, #f2f5f9); border: 1px solid var(--line, rgba(0, 37, 50, .08)); }
.hv-phone { width: 272px; padding: 10px; border-radius: 40px; background: #0c1b21; box-shadow: 0 40px 80px -40px rgba(0, 37, 50, .55); transform: rotate(-2deg); animation: hv-rise .9s cubic-bezier(.16, 1, .3, 1) both; }
.hv-phone__bar { display: grid; place-items: center; height: 22px; }
.hv-phone__bar span { width: 76px; height: 6px; border-radius: 999px; background: #22343b; }
.hv-card { display: grid; gap: 14px; padding: 18px 16px 16px; border-radius: 30px; background: #fffaf7; }
.hv-card__shop { display: flex; align-items: center; gap: 10px; }
.hv-card__shop b { display: block; font: 600 15px/1.2 var(--font-display, sans-serif); color: #10201d; }
.hv-card__shop small { display: block; font-size: 12px; color: #6b7a76; }
.hv-card__mark { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: var(--hv-orange); color: #fff; font: 600 16px/1 var(--font-display, sans-serif); }
.hv-card__body { padding: 16px; border-radius: 20px; background: var(--hv-orange); color: #fff; }
.hv-card__label { margin: 0; font: 600 11px/1 var(--font-text, sans-serif); letter-spacing: .08em; text-transform: uppercase; opacity: .85; }
.hv-card__count { margin: 8px 0 14px; font-size: 14px; }
.hv-card__count b { font: 600 34px/1 var(--font-display, sans-serif); letter-spacing: -.03em; }
.hv-stamps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
.hv-stamps i { aspect-ratio: 1; border-radius: 50%; border: 2px dashed rgba(255, 255, 255, .55); }
.hv-stamps i.is-on { border: 0; background: #fff; transform: scale(0); animation: hv-stamp .45s cubic-bezier(.34, 1.56, .64, 1) forwards; animation-delay: calc(.5s + var(--n) * 90ms); }
.hv-stamps i.is-new { border: 0; background: #fff; transform: scale(0); animation: hv-stamp .5s cubic-bezier(.34, 1.56, .64, 1) 2.2s forwards; }
.hv-card__hint { margin: 14px 0 0; font-size: 12.5px; opacity: .9; }
.hv-card__code { white-space: nowrap; display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 10px 12px; border-radius: 14px; background: #fff; border: 1px solid #f1e4dd; font-size: 11.5px; color: #6b7a76; }
.hv-card__code code { font: 500 12px/1 ui-monospace, "SF Mono", Menlo, monospace; color: #10201d; background: none; padding: 0; }

.hv-till { position: absolute; right: 2%; bottom: 14%; width: 196px; padding: 14px; border-radius: 18px; background: #fff; border: 1px solid var(--line, rgba(0, 37, 50, .1)); box-shadow: 0 24px 48px -28px rgba(0, 37, 50, .4); animation: hv-rise .9s cubic-bezier(.16, 1, .3, 1) .35s both; }
.hv-till p { margin: 0; }
.hv-till__head { display: flex; justify-content: space-between; font-size: 11.5px; color: var(--muted, #5b707a); }
.hv-till__head span:first-child { font-weight: 600; color: var(--ink, #002532); }
.hv-till__amount { margin-top: 10px !important; font: 500 28px/1 var(--font-display, sans-serif); letter-spacing: -.03em; color: var(--ink, #002532); font-variant-numeric: tabular-nums; }
.hv-till__earn { display: flex; justify-content: space-between; margin-top: 8px !important; padding: 7px 10px; border-radius: 10px; background: var(--hv-orange-soft); color: #b8401f; font: 600 12.5px/1 var(--font-text, sans-serif); opacity: 0; animation: hv-fade .4s ease 2.1s forwards; }
.hv-till__earn span { font-weight: 500; }
.hv-till__btn { display: block; margin-top: 10px; padding: 10px; border-radius: 10px; background: var(--hv-teal); color: #fff; text-align: center; font: 600 13px/1 var(--font-text, sans-serif); }

.hv-pill { position: absolute; left: 3%; bottom: 20%; padding: 10px 16px; border-radius: 999px; background: var(--hv-yellow); color: #10201d; font: 600 14px/1 var(--font-text, sans-serif); box-shadow: 0 16px 32px -18px rgba(0, 37, 50, .5); transform: rotate(-4deg) scale(0); animation: hv-pop .55s cubic-bezier(.34, 1.56, .64, 1) 2.8s forwards; }

.hv-stage--compact { min-height: 460px; }
.hv-stage--compact .hv-phone { width: 248px; }

@keyframes hv-rise { from { opacity: 0; transform: translateY(24px) rotate(-2deg); } }
@keyframes hv-stamp { to { transform: scale(1); } }
@keyframes hv-fade { to { opacity: 1; } }
@keyframes hv-pop { to { transform: rotate(-4deg) scale(1); } }

@media (max-width: 639px) {
  .hv-stage { min-height: 0; padding: 24px 0 120px; }
  .hv-stage::before { inset: 4% 0 10%; }
  .hv-phone, .hv-stage--compact .hv-phone { width: 236px; }
  .hv-till { right: 0; bottom: 8px; width: 176px; }
  .hv-pill { left: 0; bottom: 150px; font-size: 13px; }
}

/* ---------- the products page ---------- */
.pr-product { padding: clamp(56px, 6vw, 96px) 0; }
.pr-product__grid { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); gap: clamp(32px, 5vw, 80px); align-items: center; }
.pr-brand { display: inline-flex; align-items: center; gap: 10px; margin: 0 0 18px; font: 600 15px/1 var(--font-display); color: var(--ink); }
.pr-brand__mark { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 9px; background: var(--hv-teal); color: #fff; font-size: 17px; }
.pr-brand small { padding: 4px 9px; border-radius: 999px; background: var(--p-surface, #f2f5f9); font: 500 12px/1 var(--font-text); color: var(--muted); }
.pr-product h2 { margin: 0; font: 400 clamp(32px, 2.6vw + 14px, 52px)/1.04 var(--font-display); letter-spacing: -.035em; color: var(--ink); max-width: 18ch; }
.pr-product h2 em { font-style: normal; color: var(--brand-blue, #0348c6); }
.pr-lead { margin: 20px 0 0; max-width: 56ch; font-size: 17px; line-height: 1.6; color: var(--muted); }
.pr-tags { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 24px 0 0; padding: 0; }
.pr-tags li { padding: 7px 12px; border-radius: 999px; border: 1px solid var(--line-strong, rgba(0, 37, 50, .16)); font-size: 13.5px; color: var(--ink); }
.pr-facts { display: flex; flex-wrap: wrap; gap: 8px 24px; margin: 24px 0 0; padding: 0; list-style: none; font-size: 14px; color: var(--muted); }
.pr-facts li { display: flex; align-items: center; gap: 8px; }
.pr-facts li::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--hv-teal); }
.pr-product .btn-row { margin-top: 32px; }

.pr-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; counter-reset: step; }
.pr-steps li { position: relative; padding: 24px; border-radius: var(--r-lg, 20px); background: #fff; border: 1px solid var(--line); }
.pr-steps li::before { counter-increment: step; content: counter(step, decimal-leading-zero); display: block; margin-bottom: 28px; font: 500 13px/1 ui-monospace, "SF Mono", Menlo, monospace; color: var(--hv-teal); }
.pr-steps h3 { margin: 0 0 8px; font: 500 19px/1.25 var(--font-display); letter-spacing: -.015em; color: var(--ink); }
.pr-steps p { margin: 0; font-size: 15px; line-height: 1.55; color: var(--muted); }

.pr-who { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--line); }
.pr-who > div { padding: 28px 28px 8px 0; }
.pr-who > div + div { padding-left: 28px; border-left: 1px solid var(--line); }
.pr-who h3 { margin: 0 0 14px; font: 500 20px/1.25 var(--font-display); color: var(--ink); }
.pr-who ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.pr-who li { position: relative; padding-left: 22px; font-size: 15px; line-height: 1.5; color: var(--muted); }
.pr-who li::before { content: ""; position: absolute; left: 0; top: .5em; width: 10px; height: 6px; border-left: 2px solid var(--hv-teal); border-bottom: 2px solid var(--hv-teal); transform: rotate(-45deg); }

.pr-price { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px 48px; align-items: center; padding: clamp(28px, 3vw, 44px); border-radius: var(--r-lg, 20px); background: var(--brand-navy, #002532); color: #fff; }
.pr-price h3 { margin: 0; font: 400 clamp(26px, 1.6vw + 14px, 38px)/1.1 var(--font-display); letter-spacing: -.03em; color: #fff; }
.pr-price p { margin: 10px 0 0; max-width: 60ch; color: #b7c4c9; font-size: 15px; line-height: 1.55; }
.pr-price .btn--primary { background: #fff; color: var(--brand-navy, #002532); }

.pr-more { margin: 0; padding: 22px 24px; border-radius: var(--r-lg, 20px); border: 1px dashed var(--line-strong, rgba(0, 37, 50, .2)); color: var(--muted); font-size: 15px; }

@media (max-width: 1023px) {
  .pr-product__grid { grid-template-columns: minmax(0, 1fr); }
  .pr-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pr-who { grid-template-columns: minmax(0, 1fr); }
  .pr-who > div, .pr-who > div + div { padding: 24px 0 8px; border-left: 0; border-top: 1px solid var(--line); }
  .pr-price { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 639px) { .pr-steps { grid-template-columns: minmax(0, 1fr); } }

/* ---------- the home page row ---------- */
main > section.h-product { padding: clamp(72px, 7vw, 112px) 0; }
main > section.h-product > .h-product__in { display: grid !important; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.h-product h2 { margin: 0; font: 400 clamp(32px, 2.6vw + 14px, 52px)/1.04 var(--font-display); letter-spacing: -.035em; color: var(--ink); max-width: 17ch; }
@media (max-width: 1023px) { main > section.h-product > .h-product__in { grid-template-columns: minmax(0, 1fr); } }

@media (prefers-reduced-motion: reduce) {
  .hv-phone, .hv-till, .hv-till__earn, .hv-stamps i, .hv-pill { animation: none !important; opacity: 1; }
  .hv-stamps i.is-on, .hv-stamps i.is-new { transform: none; }
  .hv-pill { transform: rotate(-4deg); }
  .hv-phone { transform: rotate(-2deg); }
}

/* the card plays when it scrolls into view (site.js adds .is-in to [data-reveal]) */
html.h-js .hv-stage[data-reveal]:not(.is-in) * { animation-play-state: paused !important; }
.section--surface { background: var(--p-surface, #f2f5f9); }
/* the kit sizes every main > section to whole screens; the product block takes its content's height */
main > section.pr-product, main > section.h-product { height: auto !important; min-height: 0 !important; display: block; }
main > section.pr-product > .pr-product__grid { display: grid !important; height: auto; }
main > section.section.pr-sec { height: auto !important; min-height: 0 !important; display: block !important; padding: clamp(64px, 6vw, 104px) 0; }
main > section.section.pr-sec > .wrap { height: auto !important; display: block !important; }
main > section.section.pr-sec--last { padding-top: 0; }
.pr-sec .section-head { margin-bottom: clamp(32px, 3vw, 48px); }
.hv-card__code span { overflow: hidden; text-overflow: ellipsis; }
