/*
 * Merchant pricing: the one-time registration, three monthly plans, what
 * every plan includes and what happens when a month ends unpaid.
 *
 * Loaded after refresh.css and uses its palette. Motion is hover and a slow
 * glow on the recommended plan; all of it stops for prefers-reduced-motion.
 */

/* The merchant section's way in to prices. */
.merchant-ctas {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 22px;
}
.merchant-ask {
  color: #e4f1ec;
  font-size: 14px;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.pricing-section {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(45% 40% at 0% 0%, #e5f5d0 0%, transparent 70%),
    radial-gradient(40% 35% at 100% 18%, var(--amber-soft) 0%, transparent 70%),
    radial-gradient(40% 40% at 50% 100%, #e3f3ee 0%, transparent 70%),
    var(--paper);
}
.pricing-section h3 {
  margin: 0;
}

/* Small label that numbers the steps: registration, then a plan. */
.step-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--teal-soft);
  color: var(--teal);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.step-chip::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--mint);
  box-shadow: 0 0 0 4px rgb(47 184 148 / 22%);
}

/* Prices: the old one struck through, the new one large. */
.price-was {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  font-weight: 600;
}
.price-was s {
  text-decoration-color: var(--coral);
  text-decoration-thickness: 2px;
}
.price-now {
  display: flex;
  align-items: baseline;
  gap: 4px;
  margin: 2px 0 0;
  color: var(--ink);
  font-size: clamp(40px, 5vw, 50px);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}
.price-now .cur {
  font-size: 0.42em;
  font-weight: 700;
  letter-spacing: 0;
}
.price-now .per {
  margin-left: 2px;
  color: var(--muted);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0;
}
.save-pill {
  position: relative;
  overflow: hidden;
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  background: linear-gradient(96deg, var(--amber) 0%, var(--coral) 100%);
  color: #2a1204;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}
/* A glint across the discount, now and then. */
.save-pill::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, transparent 30%, rgb(255 255 255 / 65%) 50%, transparent 70%);
  transform: translateX(-120%);
  animation: pill-glint 3.6s var(--ease) infinite;
}
@keyframes pill-glint {
  0%,
  55% {
    transform: translateX(-120%);
  }
  100% {
    transform: translateX(120%);
  }
}

/* ---- Step 1: registration ------------------------------------------- */

.join-fee {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  align-items: center;
  gap: 40px;
  margin-bottom: 72px;
  padding: clamp(28px, 4vw, 48px);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(60% 90% at 100% 0%, rgb(214 239 127 / 22%) 0%, transparent 60%),
    linear-gradient(140deg, #0a3d38 0%, var(--teal-deep) 100%);
  color: #eaf5f0;
  box-shadow: var(--shadow-lg);
}
.join-fee .step-chip {
  background: rgb(255 255 255 / 10%);
  color: var(--lime);
}
.join-fee h3 {
  color: #fff;
  font-size: clamp(28px, 3.4vw, 38px);
  line-height: 1.1;
}
.join-copy > p {
  max-width: 460px;
  margin: 12px 0 20px;
  color: #c9ddd6;
}
.join-copy ul,
.plan-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.join-copy li,
.plan-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 15px;
  line-height: 1.45;
}
.li-icon {
  flex: none;
  width: 20px;
  height: 20px;
  margin-top: 1px;
  padding: 3px;
  border-radius: 50%;
  background: var(--lime);
  fill: none;
  stroke: var(--teal-deep);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.li-icon.li-no {
  background: #ece9e1;
  stroke: #8b948f;
}
.join-price {
  justify-self: end;
  width: min(100%, 320px);
  padding: 28px;
  border: 1px solid rgb(255 255 255 / 14%);
  border-radius: 22px;
  background: rgb(255 255 255 / 6%);
  backdrop-filter: blur(6px);
  text-align: left;
}
.join-price .price-was {
  margin-top: 14px;
  color: #a9c3bb;
}
.join-price .price-now {
  color: var(--lime);
  font-size: clamp(52px, 6vw, 64px);
}
.join-note {
  margin: 4px 0 20px;
  color: #b7cec7;
  font-size: 14px;
}
.join-price .button {
  width: 100%;
  gap: 14px;
}
.save-pill-big {
  padding: 5px 14px;
  font-size: 13px;
}

/* ---- Step 2: plans -------------------------------------------------- */

.plans-head {
  max-width: 620px;
  margin: 0 auto 34px;
  text-align: center;
}
.plans-head h3 {
  font-size: clamp(28px, 3.4vw, 38px);
  line-height: 1.1;
}
.plans-head p {
  margin: 10px 0 0;
  color: var(--muted);
}
.plan-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: stretch;
  gap: 24px;
}
.plan-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 22px;
  padding: 30px 26px 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: #fff;
  box-shadow: var(--shadow-md);
  transition:
    transform 0.35s var(--ease),
    box-shadow 0.35s var(--ease),
    border-color 0.35s var(--ease);
}
.plan-card:hover {
  transform: translateY(-8px);
  border-color: #c9d9cf;
  box-shadow: var(--shadow-lg);
}
.plan-top h4 {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  font-size: 26px;
  line-height: 1.1;
  letter-spacing: -0.01em;
}
.plan-top p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 14px;
}
.plan-price {
  padding-bottom: 20px;
  border-bottom: 1px dashed var(--line);
}
.plan-quota {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.plan-quota div {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 14px;
  border-radius: 14px;
  background: var(--sand);
}
.plan-quota strong {
  font-size: 30px;
  line-height: 1;
  letter-spacing: -0.02em;
}
.plan-quota span {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.3;
}
.plan-body {
  flex: 1;
}
/* "Your shop" and "Support": two short lists per card. */
.plan-sub {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 12px;
  color: var(--teal);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.plan-sub::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line);
}
.plan-list + .plan-sub {
  margin-top: 20px;
}
.plan-featured .plan-sub {
  color: var(--lime);
}
.plan-featured .plan-sub::after {
  background: rgb(255 255 255 / 16%);
}
.plan-premium .plan-sub {
  color: #15803d;
}
.plan-list .is-no {
  color: #7b8580;
}
.plan-cta {
  gap: 12px;
  width: 100%;
}

/* The verified ticks, drawn like the app's: a filled badge, a white check. */
.tick {
  flex: none;
  width: 22px;
  height: 22px;
  fill: currentColor;
  stroke: currentColor;
  stroke-width: 1;
}
.tick .tick-check {
  fill: none;
  stroke: #fff;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.tick-blue {
  color: #1d9bf0;
}
.tick-green {
  color: #16a34a;
}
.plan-top .tick {
  width: 24px;
  height: 24px;
}

/* Echo, the recommended plan: dark, lit from behind, a ribbon on top. */
.plan-featured {
  z-index: 1;
  border-color: transparent;
  background:
    linear-gradient(160deg, #0b4a43 0%, var(--teal-deep) 100%) padding-box,
    conic-gradient(from var(--spin, 0deg), var(--lime), var(--mint), var(--amber), var(--lime)) border-box;
  border: 2px solid transparent;
  color: #eaf5f0;
  box-shadow: 0 40px 80px -36px rgb(6 52 47 / 70%);
  transform: translateY(-10px);
  animation: plan-spin 7s linear infinite;
}
.plan-featured:hover {
  transform: translateY(-16px);
}
@property --spin {
  syntax: "<angle>";
  inherits: false;
  initial-value: 0deg;
}
@keyframes plan-spin {
  to {
    --spin: 360deg;
  }
}
.plan-featured .plan-top p,
.plan-featured .price-was,
.plan-featured .price-now .per {
  color: #b7cec7;
}
.plan-featured .price-now {
  color: var(--lime);
}
.plan-featured .plan-price {
  border-bottom-color: rgb(255 255 255 / 16%);
}
.plan-featured .plan-quota div {
  background: rgb(255 255 255 / 8%);
}
.plan-featured .plan-quota span {
  color: #b7cec7;
}
.plan-featured .plan-cta {
  background: var(--lime);
  color: var(--ink);
}
.plan-featured .plan-cta:hover {
  background: #e4f6a6;
}
.plan-ribbon {
  position: absolute;
  top: 0;
  left: 50%;
  padding: 6px 16px;
  border-radius: 999px;
  background: var(--lime);
  color: var(--teal-deep);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
  transform: translate(-50%, -50%);
  box-shadow: 0 8px 20px -8px rgb(6 52 47 / 60%);
}

/* Roar: a green edge to match its tick. */
.plan-premium {
  border-top: 5px solid #16a34a;
}
.plan-premium:hover {
  border-color: #b8dcc4;
  border-top-color: #16a34a;
  box-shadow: 0 34px 70px -34px rgb(22 163 74 / 45%);
}
.plan-premium .plan-quota div {
  background: #eaf7ee;
}

/* ---- Every plan includes -------------------------------------------- */

.included {
  margin-top: 80px;
}
.included h3 {
  margin-bottom: 26px;
  font-size: clamp(24px, 2.8vw, 30px);
  text-align: center;
}
.included-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.included-grid li {
  display: flex;
  gap: 14px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgb(255 255 255 / 70%);
  transition:
    transform 0.3s var(--ease),
    background 0.3s var(--ease);
}
.included-grid li:hover {
  transform: translateY(-4px);
  background: #fff;
}
.inc-icon {
  display: grid;
  flex: none;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: linear-gradient(140deg, var(--teal-soft) 0%, #eaf6d2 100%);
  color: var(--teal);
}
.inc-icon svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.included-grid strong {
  display: block;
  font-size: 15px;
  line-height: 1.3;
}
.included-grid p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

/* ---- When a month ends unpaid --------------------------------------- */

.renew-rules {
  display: grid;
  grid-template-columns: 0.8fr 2fr;
  gap: 40px;
  margin-top: 72px;
  padding: clamp(26px, 4vw, 40px);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: #fff;
  box-shadow: var(--shadow-sm);
}
.renew-rules h3 {
  font-size: clamp(24px, 2.8vw, 30px);
  line-height: 1.15;
}
.renew-rules > div > p {
  margin: 10px 0 0;
  color: var(--muted);
}
.renew-steps {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  margin: 0;
  padding: 0;
  list-style: none;
}
/* The line the three steps sit on. */
.renew-steps::before {
  content: "";
  position: absolute;
  top: 17px;
  left: 18px;
  right: 18px;
  height: 2px;
  background: linear-gradient(90deg, var(--mint), var(--amber), var(--coral));
}
.renew-steps li {
  position: relative;
}
.renew-dot {
  position: relative;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  margin-bottom: 14px;
  border-radius: 50%;
  background: var(--mint);
  color: #fff;
  font-weight: 800;
  box-shadow: 0 0 0 6px #fff;
}
.renew-steps li:nth-child(2) .renew-dot {
  background: var(--amber);
}
.renew-dot-end {
  background: var(--coral) !important;
}
.renew-steps strong {
  display: block;
  font-size: 16px;
}
.renew-steps p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}
.pricing-note {
  max-width: 760px;
  margin: 26px auto 0;
  color: var(--muted);
  font-size: 13px;
  text-align: center;
}

/* ---- Launch offer countdown ------------------------------------------ */

.offer-banner {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px 40px;
  margin-bottom: 28px;
  padding: clamp(22px, 3vw, 30px) clamp(22px, 4vw, 40px);
  border: 2px solid transparent;
  border-radius: var(--radius-lg);
  background:
    linear-gradient(120deg, #1a1208 0%, #2b1a0a 45%, #10211e 100%) padding-box,
    conic-gradient(from var(--spin, 0deg), var(--amber), var(--coral), var(--lime), var(--amber)) border-box;
  color: #fff6ea;
  box-shadow: 0 30px 60px -34px rgb(245 165 36 / 55%);
  animation: plan-spin 6s linear infinite;
}
/* A warm light that drifts across the banner. */
.offer-banner::before {
  content: "";
  position: absolute;
  inset: -40% -10%;
  background: radial-gradient(30% 45% at 20% 50%, rgb(245 165 36 / 22%) 0%, transparent 70%);
  animation: offer-drift 9s ease-in-out infinite alternate;
  pointer-events: none;
}
@keyframes offer-drift {
  to {
    transform: translateX(55%);
  }
}
.offer-copy,
.offer-clock {
  position: relative;
}
.offer-live {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 12px;
  border-radius: 999px;
  background: rgb(245 165 36 / 16%);
  color: var(--amber);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.offer-pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ff5a3c;
  box-shadow: 0 0 0 0 rgb(255 90 60 / 70%);
  animation: offer-pulse 1.6s ease-out infinite;
}
@keyframes offer-pulse {
  to {
    box-shadow: 0 0 0 10px rgb(255 90 60 / 0%);
  }
}
.pricing-section .offer-title {
  margin: 12px 0 4px;
  color: #fff;
  font-size: clamp(22px, 2.6vw, 30px);
  line-height: 1.15;
  letter-spacing: -0.01em;
}
.offer-when {
  margin: 0;
  color: #f2d7b4;
  font-size: 14px;
}
.offer-when strong {
  color: #fff;
}
/* One tag per discount, so no price is left out. */
.offer-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0 14px;
  padding: 0;
  list-style: none;
}
.offer-tags li {
  padding: 5px 12px;
  border: 1px solid rgb(245 165 36 / 35%);
  border-radius: 999px;
  background: rgb(245 165 36 / 10%);
  color: #f7e3c6;
  font-size: 13px;
  transition:
    background 0.25s var(--ease),
    transform 0.25s var(--ease);
}
.offer-tags li:hover {
  background: rgb(245 165 36 / 22%);
  transform: translateY(-2px);
}
.offer-tags strong {
  color: var(--amber);
}
.offer-ended .offer-tags {
  display: none;
}
.offer-clock {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}
.offer-unit {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}
.offer-num {
  display: grid;
  place-items: center;
  min-width: 74px;
  height: 78px;
  padding: 0 10px;
  border: 1px solid rgb(255 255 255 / 14%);
  border-radius: 16px;
  background: linear-gradient(180deg, rgb(255 255 255 / 14%) 0%, rgb(255 255 255 / 4%) 100%);
  color: #fff;
  font-size: 40px;
  font-weight: 800;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
  box-shadow: inset 0 -18px 30px -24px rgb(0 0 0 / 60%);
}
/* Each digit drops in when it changes. */
.offer-num.offer-tick {
  animation: offer-drop 0.45s var(--ease);
}
@keyframes offer-drop {
  from {
    opacity: 0.2;
    transform: translateY(-28%) scale(0.96);
  }
}
.offer-unit:last-child .offer-num {
  color: var(--amber);
}
.offer-lab {
  color: #e9c99f;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.offer-colon {
  padding-top: 16px;
  color: rgb(255 255 255 / 40%);
  font-size: 32px;
  font-weight: 800;
  animation: offer-blink 1s steps(1) infinite;
}
@keyframes offer-blink {
  50% {
    opacity: 0.25;
  }
}

/* "Launch price" chip under each price. */
.offer-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin: 12px 0 0;
  padding: 5px 11px;
  border-radius: 999px;
  background: #fff3df;
  color: #9a4d00;
  font-size: 12.5px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.offer-chip[hidden] {
  display: none;
}
.offer-chip svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
}
.offer-chip.is-urgent {
  background: #ffe4dd;
  color: #b42318;
  animation: offer-nudge 2.4s ease-in-out infinite;
}
@keyframes offer-nudge {
  50% {
    transform: scale(1.04);
  }
}
.plan-featured .offer-chip,
.join-price .offer-chip {
  background: rgb(245 165 36 / 18%);
  color: #ffd79a;
}
.join-price .offer-chip {
  margin: -8px 0 18px;
}

/* After the offer: full prices, no discount marks, a quiet banner. */
.offer-ended .price-was,
.offer-ended .save-pill,
.offer-ended .offer-clock,
.offer-ended .offer-pulse {
  display: none;
}
.offer-ended .offer-banner {
  animation: none;
  background: linear-gradient(120deg, #10211e 0%, #0b4a43 100%);
  box-shadow: none;
}
.offer-ended .offer-banner::before {
  display: none;
}
.offer-ended .offer-live {
  background: rgb(255 255 255 / 10%);
  color: #cfe3dc;
}

/* ---- Smaller screens ------------------------------------------------ */

@media (max-width: 1100px) {
  .plan-grid {
    grid-template-columns: 1fr;
    max-width: 520px;
    margin: 0 auto;
    gap: 34px;
  }
  .plan-featured,
  .plan-featured:hover {
    transform: none;
  }
  .included-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .renew-rules {
    grid-template-columns: 1fr;
    gap: 26px;
  }
}
@media (max-width: 760px) {
  .offer-banner {
    flex-direction: column;
    align-items: stretch;
  }
  .offer-clock {
    justify-content: space-between;
    gap: 6px;
  }
  .offer-unit {
    flex: 1;
  }
  .offer-num {
    width: 100%;
    min-width: 0;
    height: 64px;
    font-size: 30px;
  }
  .offer-colon {
    padding-top: 12px;
    font-size: 24px;
  }
  .join-fee {
    grid-template-columns: 1fr;
    gap: 26px;
    margin-bottom: 56px;
  }
  .join-price {
    justify-self: stretch;
    width: 100%;
  }
  .included {
    margin-top: 60px;
  }
  .included-grid {
    grid-template-columns: 1fr;
  }
  .renew-rules {
    margin-top: 56px;
  }
  .renew-steps {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  /* Down the side instead of across. */
  .renew-steps::before {
    top: 18px;
    bottom: 18px;
    left: 17px;
    right: auto;
    width: 2px;
    height: auto;
    background: linear-gradient(180deg, var(--mint), var(--amber), var(--coral));
  }
  .renew-steps li {
    padding-left: 52px;
  }
  .renew-dot {
    position: absolute;
    top: 0;
    left: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .save-pill::after,
  .plan-featured,
  .offer-banner,
  .offer-banner::before,
  .offer-pulse,
  .offer-colon,
  .offer-num.offer-tick,
  .offer-chip.is-urgent {
    animation: none;
  }
  .plan-card,
  .included-grid li {
    transition: none;
  }
  .plan-card:hover,
  .included-grid li:hover,
  .plan-featured,
  .plan-featured:hover {
    transform: none;
  }
}
