/* =============================================================================
   Offers · coupons · subscription card · 90-day notice  (loaded globally after forest.css)
   Palette only: forest, sage, ivory, blush, antique gold.  Animations: transform / opacity only.
   ============================================================================= */

/* ---- template cards: offer ribbon + struck list price ---- */
.t-card .was { margin-left: 6px; font-weight: 500; opacity: .6; font-size: .92em; }
.t-offer { position: absolute; left: 12px; bottom: 12px; z-index: 4; padding: 5px 12px 5px 10px; border-radius: 999px; font-size: .68rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  color: #faf6ec; background: linear-gradient(120deg, #1f3f30, #2d5a42); box-shadow: 0 8px 18px -8px rgba(31, 63, 48, .75), inset 0 0 0 1px rgba(217, 189, 134, .7); }
.t-offer b { font-family: var(--display); font-size: 1.05rem; letter-spacing: 0; color: #f0d9a0; margin-right: 2px; }
.t-card:hover .t-offer { transform: translateY(-4px); }
.t-offer { transition: transform .4s cubic-bezier(.2, .8, .2, 1); }

/* ---- pricing: three plans ---- */
.pricing-stage .plans--three, .pricing-stage .cards-relaxed { max-width: 1220px; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); align-items: stretch; }
.pricing-stage .cards-relaxed { gap: clamp(18px, 3vw, 34px); }
.pricing-stage .plans--three .plan { width: 100%; }
.pricing-stage .plans--three .plan, .pricing-stage .cards-relaxed .plan { width: 100%; }
@media (min-width: 1120px) { .pricing-stage .plans--three { grid-template-columns: repeat(3, minmax(280px, 1fr)); gap: 26px; } }
.pricing-stage .plans--three { gap: 26px; }
.plan { position: relative; display: flex; flex-direction: column; }
.plan > .badge { align-self: flex-start; }
.plan ul { flex: 1; }
.plan-ribbon { position: absolute; top: -13px; right: 20px; z-index: 2; padding: 5px 12px; border-radius: 999px; font-size: max(12px, .75rem); font-weight: 600; letter-spacing: .16em; color: #faf6ec; background: var(--forest-2, #2d5a42); box-shadow: inset 0 0 0 1px rgba(217, 189, 134, .6); }
.plan-ribbon--gold { color: #2b2110; background: linear-gradient(120deg, #e8d3a0, #c9a45c); box-shadow: none; }
.was-line { margin: -2px 0 8px; font-size: .9rem; color: var(--muted); }
.was-line s { opacity: .8; } .was-line span { margin-left: 4px; font-size: .74rem; letter-spacing: .12em; text-transform: uppercase; }

/* subscription card: deep forest, gold hairline, gift coupons as tickets */
.pricing-stage .plan.sub { color: #e8eee4; border: 1px solid rgba(217, 189, 134, .55);
  background: radial-gradient(120% 80% at 100% 0%, #3f7054 0%, transparent 55%), linear-gradient(160deg, #1f3f30, #12241a); box-shadow: 0 2px 4px rgba(18, 36, 26, .2), 0 30px 60px -28px rgba(18, 36, 26, .75); padding: 34px 30px; }
.plan.sub .price, .plan.sub h3 { color: #faf6ec; }
.plan.sub .badge-premium { background: linear-gradient(120deg, #e8d3a0, #c9a45c); color: #2b2110; }
.sub-lead { color: #c9d6c5; margin: 4px 0 14px; }
.plan.sub li { color: #dfe8da; } .plan.sub li b { color: #f0d9a0; }
.plan.sub li::before { background: rgba(217, 189, 134, .2); color: #f0d9a0; }
.gift-stack { display: grid; gap: 10px; margin: 0 0 18px; }
.gift-chip { position: relative; display: flex; align-items: center; gap: 14px; padding: 10px 14px; border-radius: 14px; background: rgba(250, 246, 236, .08); border: 1px dashed rgba(217, 189, 134, .6); }
.gift-chip::before, .gift-chip::after { content: ''; position: absolute; top: 50%; width: 12px; height: 12px; border-radius: 50%; background: #17301f; translate: 0 -50%; border: 1px solid rgba(217, 189, 134, .45); }
.gift-chip::before { left: -7px; } .gift-chip::after { right: -7px; }
.gift-chip__pct { font-family: var(--display); font-size: 2rem; font-weight: 600; line-height: 1; color: #f0d9a0; } .gift-chip__pct small { font-size: 1rem; }
.gift-chip__txt { display: grid; line-height: 1.25; } .gift-chip__txt b { color: #faf6ec; font-weight: 500; letter-spacing: .08em; font-size: .85rem; } .gift-chip__txt em { font-style: normal; color: #b9c7b6; font-size: .8rem; }
.sub-owned { margin: 0 0 10px; color: #f0d9a0; font-weight: 500; }
.plan.sub .btn-gold { margin-top: auto; }

/* ---- the 90-day notice (replaces the plain ℹ️ box) ---- */
.window-note { position: relative; overflow: hidden; isolation: isolate; padding: clamp(22px, 3vw, 34px); border-radius: 26px; border: 1px solid rgba(184, 149, 90, .55);
  background: linear-gradient(135deg, rgba(255, 253, 248, .92), rgba(238, 243, 231, .9)); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 1px 0 #fff inset, 0 2px 4px rgba(31, 63, 48, .05), 0 26px 50px -30px rgba(31, 63, 48, .45); margin-top: 40px; }
.window-note::before { content: ''; position: absolute; left: 0; top: 18px; bottom: 18px; width: 4px; border-radius: 0 4px 4px 0; background: linear-gradient(180deg, #2d5a42, #b8955a); }
.window-note::after { content: ''; position: absolute; right: -60px; top: -60px; width: 220px; height: 220px; z-index: -1; border-radius: 50%; background: radial-gradient(closest-side, rgba(217, 189, 134, .28), transparent); }
.wn-head { display: flex; gap: 18px; align-items: flex-start; }
.wn-badge { flex: none; display: grid; place-items: center; width: 52px; height: 52px; border-radius: 16px; color: #faf6ec; background: linear-gradient(140deg, #3f7054, #1f3f30); box-shadow: 0 10px 20px -10px rgba(31, 63, 48, .8), inset 0 0 0 1px rgba(217, 189, 134, .65); }
.wn-title { margin: 2px 0 6px; font-family: var(--display); font-size: clamp(1.35rem, 1.1rem + 1vw, 1.75rem); font-weight: 600; color: var(--forest, #1f3f30); letter-spacing: -.005em; }
.wn-text { margin: 0; color: var(--ink-2); line-height: 1.65; text-wrap: pretty; }
.wn-track { container-type: inline-size; position: relative; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 28px 0 0; padding: 22px 0 0; list-style: none; }
.wn-track::before { content: ''; position: absolute; left: 6px; right: 6px; top: 6px; height: 4px; border-radius: 4px; background: linear-gradient(90deg, #2d5a42, #9db8a1 45%, #c9a45c 75%, #b4566b); opacity: .85; }
.wn-step { position: relative; display: grid; gap: 2px; padding-top: 4px; font-size: .9rem; color: var(--ink-2); }
.wn-step::before { content: ''; position: absolute; top: -22px; left: 0; width: 16px; height: 16px; border-radius: 50%; background: #fffdf8; border: 3px solid #2d5a42; box-shadow: 0 0 0 4px rgba(45, 90, 66, .12); }
.wn-step b { font-family: var(--display); font-size: 1.15rem; color: var(--forest, #1f3f30); }
.wn-step--mid { text-align: center; } .wn-step--mid::before { left: 50%; translate: -50% 0; border-color: #9db8a1; }
.wn-step--end { text-align: right; } .wn-step--end::before { left: auto; right: 0; border-color: #b4566b; box-shadow: 0 0 0 4px rgba(180, 86, 107, .14); }
.wn-dot { position: absolute; top: 2px; left: 6px; width: 12px; height: 12px; border-radius: 50%; background: #f0d9a0; box-shadow: 0 0 0 4px rgba(240, 217, 160, .45), 0 0 14px rgba(201, 164, 92, .8); animation: wnTravel 9s ease-in-out infinite; will-change: transform; }
@keyframes wnTravel { 0%, 8% { transform: translateX(0); opacity: 0; } 14% { opacity: 1; } 86% { opacity: 1; } 94%, 100% { transform: translateX(calc(100cqw - 18px)); opacity: 0; } }
@media (max-width: 560px) {
  .wn-head { flex-direction: column; gap: 12px; }
  .wn-track { grid-template-columns: 1fr; gap: 20px; padding: 0 0 0 30px; }
  .wn-track::before { left: 6px; right: auto; top: 6px; bottom: 6px; width: 4px; height: auto; background: linear-gradient(180deg, #2d5a42, #9db8a1 45%, #c9a45c 75%, #b4566b); }
  .wn-step, .wn-step--mid, .wn-step--end { text-align: left; }
  .wn-step::before, .wn-step--mid::before, .wn-step--end::before { top: 4px; left: -30px; right: auto; translate: none; }
  .wn-dot { display: none; }
}

/* public/css/pricing-coupon.css — scoped to .plan.sub, safe to load after your main stylesheet.
   Tokens fall back to sensible values if your theme doesn't define them. */

   .sr-only{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0}

   .price__to{font-size:1rem;opacity:.75}
   .plan__fine{margin:12px 0 0;font-size:.82rem;line-height:1.4;opacity:.75;text-align:center}
   .pricing-compare__note{margin-top:10px}
   .narrow--spaced{margin-top:48px}
   
   /* ---- Coupon card: the one emphasised element ---- */
   .plan.sub{
     --c-gold:var(--gold,#e8a317);
     --c-gold-deep:var(--gold-deep,#b97a00);
     --c-ink:var(--ink,#1c1a17);
     position:relative;
     border:2px solid var(--c-gold);
     border-radius:26px 6px 26px 6px;
     box-shadow:0 22px 40px -22px rgba(184,122,0,.55);
   }
   .plan.sub .plan-ribbon{font-weight:700;letter-spacing:.01em}
   .plan.sub .sub-lead{line-height:1.55;max-width:44ch}
   .plan.sub .sub-lead b{color:var(--c-gold-deep)}
   .plan.sub .sub-lead s{opacity:.55;text-decoration-thickness:2px}
   
   /* ---- Coupon ticket ---- */
   .gift-stack{margin:18px 0 20px}
   .gift-chip{
     position:relative;display:flex;align-items:center;gap:14px;
     padding:14px 14px 14px 18px;
     background:rgba(232,163,23,.12);
     border:2px dashed var(--c-gold);
     border-radius:14px 4px 14px 4px;
   }
   .gift-chip__pct{font-weight:800;font-size:1.6rem;line-height:1;white-space:nowrap}
   .gift-chip__txt{display:grid;gap:2px;min-width:0;flex:1}
   .gift-chip__txt b{font-size:1.05rem;letter-spacing:.06em;word-break:break-all}
   .gift-chip__txt em{font-style:normal;font-size:.8rem;opacity:.75}
   .gift-chip__copy{
     appearance:none;border:0;cursor:pointer;
     padding:9px 16px;border-radius:999px;
     background:var(--c-ink);color:#fff;font:600 .82rem/1 inherit;
     transition:background .15s,transform .15s;
   }
   .gift-chip__copy:hover{transform:translateY(-1px)}
   .gift-chip__copy:focus-visible,
   .table-scroll:focus-visible{outline:3px solid var(--c-gold);outline-offset:3px}
   .gift-chip__copy.is-copied{background:#1f7a4d}
   
   /* ---- Subtle attention: one pulse on the ribbon dot only ---- */
   .plan.sub .plan-ribbon::before{
     content:"";display:inline-block;width:8px;height:8px;margin-right:8px;border-radius:50%;
     background:#1f7a4d;animation:cp-pulse 2s infinite;vertical-align:middle;
   }
   @keyframes cp-pulse{0%{box-shadow:0 0 0 0 rgba(31,122,77,.5)}100%{box-shadow:0 0 0 10px rgba(31,122,77,0)}}
   
   /* ---- Comparison table: scroll on small screens ---- */
   .table-scroll{overflow-x:auto;-webkit-overflow-scrolling:touch}
   .table-scroll .plan-compare{min-width:560px}
   
   /* ---- Stack cards sensibly; coupon first on mobile (highest intent) ---- */
   @media (max-width:860px){
     .plans--three .plan.sub{order:-1}
     .gift-chip{flex-wrap:wrap}
     .gift-chip__copy{width:100%;padding:12px}
   }
   
   @media (prefers-reduced-motion:reduce){
     .plan.sub .plan-ribbon::before{animation:none}
     .gift-chip__copy{transition:none}
   }
   
   /* =====================================================================
      Comparison table — compact, high-contrast, easy to read
      ===================================================================== */
   .pricing-compare{
     --t-ink:#14241b;--t-body:#2b3d33;--t-mute:#4f6258;--t-green:#1f4a35;--t-gold:#8f5d00;
     --t-line:rgba(20,36,27,.14);
     max-width:880px;margin:56px auto 0;
   }
   
   .pricing-compare .table-scroll{
     background:#fff;
     border:1px solid var(--t-line);
     border-radius:22px 6px 22px 6px;
     padding:8px clamp(14px,3vw,32px) 12px;
     box-shadow:0 18px 40px -26px rgba(20,36,27,.35);
   }
   
   .plan-compare{width:100%;border-collapse:separate;border-spacing:0;text-align:left;color:var(--t-body);font-size:1rem;table-layout:fixed}
   .plan-compare caption{caption-side:top;text-align:left;padding:16px 0 8px;font-size:.92rem;line-height:1.45;color:var(--t-mute)}
   
   .plan-compare .compare-th{width:46%}
   .plan-compare .compare-col--free{width:20%}
   .plan-compare .compare-col--premium{width:34%}
   
   .plan-compare thead th{
     padding:14px 16px;text-align:left;font-size:1rem;font-weight:700;color:var(--t-ink);
     border-bottom:2px solid var(--t-ink);
   }
   .plan-compare thead .compare-th{padding-left:0;color:var(--t-mute);font-weight:600;font-size:.92rem}
   .plan-compare thead .compare-col--premium{color:var(--t-green)}
   
   .plan-compare tbody th,
   .plan-compare tbody td{padding:16px;border-bottom:1px solid var(--t-line);vertical-align:middle;line-height:1.4;text-align:left}
   .plan-compare tbody th{padding-left:0;padding-right:16px;font-weight:600;font-size:1rem;color:var(--t-ink)}
   .plan-compare tbody tr:last-child th,
   .plan-compare tbody tr:last-child td{border-bottom:0}
   
   /* premium column: light green tint, same height as the table */
   .plan-compare thead th:last-child,
   .plan-compare tbody td:last-child{background:#eef4ef}
   .plan-compare thead th:last-child{border-top-left-radius:12px 6px;border-top-right-radius:12px 6px}
   .plan-compare tbody tr:last-child td:last-child{border-bottom-left-radius:12px 6px;border-bottom-right-radius:12px 6px}
   
   /* marks */
   .plan-compare .check,.plan-compare .cross{display:inline-block;line-height:1}
   .plan-compare .check{color:var(--t-green);font-size:1.2rem;font-weight:800}
   .plan-compare .cross{color:#8a9a91;font-size:1.1rem}
   .plan-compare .cell-note{margin-left:10px;color:var(--t-body);font-size:.95rem;font-weight:600;white-space:nowrap}
   
   /* price row */
   .plan-compare .price{display:block;font-weight:700;color:var(--t-ink)}
   .plan-compare .price--zero{font-size:1.3rem}
   .plan-compare .price__was{display:block;font-size:.8rem;font-weight:600;color:var(--t-mute)}
   .plan-compare .price--range{font-size:.95rem;font-weight:600;color:var(--t-mute);text-decoration:line-through;text-decoration-thickness:1.5px;text-decoration-color:rgba(20,36,27,.6)}
   .plan-compare .price--coupon{margin-top:8px;font-size:1.3rem;line-height:1.1}
   .plan-compare .price__with{display:block;margin-top:3px;font-size:.82rem;font-weight:700;color:var(--t-gold)}
   .plan-compare .price__fine{display:block;margin-top:6px;font-size:.82rem;color:var(--t-mute)}
   
   /* footnote sits on a readable pill, clear of the background art */
   .pricing-compare__note{
     display:block;width:fit-content;max-width:100%;margin:18px auto 0;padding:9px 18px;
     background:rgba(255,255,255,.92);border-radius:999px;
     text-align:center;font-size:.9rem;line-height:1.4;color:var(--t-body)
   }
   
   @media (max-width:640px){
     .plan-compare{table-layout:auto;min-width:520px}
     .plan-compare tbody th{position:sticky;left:0;z-index:1;background:#fff;padding-right:12px}
     .plan-compare tbody th,.plan-compare tbody td{padding-top:14px;padding-bottom:14px}
     .plan-compare .compare-th{width:auto}
   }
/* ---- checkout: coupon box ---- */
.coupon-box { margin: 0 0 22px; padding: 16px; border-radius: 16px; background: var(--sage-wash, #eef3e7); border: 1px dashed rgba(45, 90, 66, .45); }
.coupon-label { display: block; font-weight: 500; margin-bottom: 8px; color: var(--forest, #1f3f30); }
.coupon-row { display: flex; gap: 8px; } .coupon-row .input { flex: 1; min-width: 0; text-transform: uppercase; letter-spacing: .08em; }
.coupon-msg { margin: 10px 0 0; font-size: .9rem; } .coupon-msg--err { color: #9c3d52; } .coupon-msg--ok { color: #1f4a32; }
.coupon-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.coupon-chip { padding: 6px 12px; border-radius: 999px; font-size: .85rem; background: #fffdf8; border: 1px solid rgba(184, 149, 90, .6); color: var(--forest, #1f3f30); transition: transform .25s, background .25s; }
.coupon-chip:hover { transform: translateY(-2px); background: #fbf3df; } .coupon-chip b { color: var(--brand); }

@media (prefers-reduced-motion: reduce) { .wn-dot { animation: none; display: none; } .t-offer, .coupon-chip { transition: none; } }

/* Welcome gift already used (signed-in visitor): greyed ticket, code struck through */
.gift-chip.is-used { opacity: .6; filter: grayscale(.6); }
.gift-chip.is-used .gift-chip__txt b { text-decoration: line-through; }
