/*
 * 4.4 launch components: server-rendered product pill, trial badges, video
 * guides, plan cards with filters and badges, FAQ lists, sticky call to
 * action, legal pages and the extension handoff card. Uses the showcase
 * palette from 08-showcase.css.
 */

/* Product pill: links now, current product marked with aria-current. */
.showcase-product-choice { text-decoration: none; }
.showcase-product-choice[aria-current="page"] { background: var(--showcase-navy); color: #fff; }
.showcase-product-choice[aria-current="page"] .showcase-soon { background: rgba(255, 255, 255, .16); color: #fff; }
.showcase-product-choice:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; }
.showcase-soon { margin-left: 2px; padding: 2px 7px; border-radius: 99px; background: var(--showcase-mint); color: #22603f; font: 600 10px/1.4 var(--showcase-body); text-transform: uppercase; letter-spacing: .04em; }
.showcase-nav-cta { display: inline-flex; align-items: center; min-height: 36px; padding: 0 14px; border-radius: 7px; background: var(--showcase-accent); color: #fff; font-size: 13px; font-weight: 650; text-decoration: none; white-space: nowrap; }
.showcase-nav-cta:hover { background: #368c5c; color: #fff; }
.showcase-button { text-decoration: none; }
.showcase-button-quiet { background: transparent; border-color: transparent; color: var(--showcase-fg); text-decoration: underline; text-underline-offset: 3px; }
.showcase-button-quiet:hover { background: var(--showcase-surface); border-color: var(--showcase-border); }

/* Trust row under hero actions. */
.wms-trust-row { display: flex; flex-wrap: wrap; gap: 8px 18px; margin: 22px 0 0; padding: 0; list-style: none; color: var(--showcase-muted); font-size: 14px; }
.wms-trust-row li { display: inline-flex; align-items: center; gap: 6px; }
.wms-pricing-hero .wms-trust-row { justify-content: center; }
.wms-lead { font-size: 1.2rem; color: var(--showcase-fg); }
.wms-center { text-align: center; margin-top: 8px; }

/* Video guides. */
.wms-video-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 22px; }
.wms-video { position: relative; border-radius: 14px; overflow: hidden; background: #0b1020; aspect-ratio: 16 / 9; box-shadow: var(--shadow-md); }
.wms-video-featured { grid-column: 1 / -1; }
.wms-video-play { all: unset; position: absolute; inset: 0; cursor: pointer; display: block; }
.wms-video-play img { width: 100%; height: 100%; object-fit: cover; opacity: .9; transition: opacity .2s, transform .3s; }
.wms-video-play:hover img, .wms-video-play:focus-visible img { opacity: 1; transform: scale(1.02); }
.wms-video-play:focus-visible { outline: 3px solid var(--color-focus); outline-offset: -3px; }
.wms-video-icon { position: absolute; left: 50%; top: 50%; width: 72px; height: 50px; margin: -25px 0 0 -36px; border-radius: 14px; background: rgba(15, 23, 42, .82); box-shadow: 0 6px 20px rgba(0, 0, 0, .35); }
.wms-video-icon::after { content: ""; position: absolute; left: 30px; top: 15px; border-left: 18px solid #fff; border-top: 10px solid transparent; border-bottom: 10px solid transparent; }
.wms-video-play:hover .wms-video-icon { background: #e02424; }
.wms-video-title { position: absolute; left: 0; right: 0; bottom: 0; padding: 26px 16px 12px; background: linear-gradient(transparent, rgba(0, 0, 0, .72)); color: #fff; font-weight: 600; font-size: 14px; }
.wms-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.wms-video-link { position: absolute; right: 10px; top: 10px; padding: 3px 8px; border-radius: 6px; background: rgba(0, 0, 0, .55); color: #fff; font-size: 12px; text-decoration: none; }
.wms-video.is-playing .wms-video-link { display: none; }
.wms-video-step { margin: 18px 0; max-width: 720px; }
.wms-product-visual { display: grid; place-items: center; min-height: 260px; background: var(--showcase-surface); }
.wms-product-visual .wms-video { width: 100%; }
.wms-product-visual-mark img { width: 120px; height: 120px; }
.wms-product-hero-icon { display: inline-flex; vertical-align: middle; margin-right: 8px; }
.wms-product-hero-icon img { width: 28px; height: 28px; }
.wms-coming-video { max-width: 640px; margin: 0 auto 26px; }

/* Plan cards. */
.wms-plan-filters { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 0 auto 30px; }
.wms-chip { display: inline-flex; align-items: center; gap: 7px; min-height: 40px; padding: 0 15px; border: 1px solid var(--showcase-border); border-radius: 99px; background: var(--showcase-surface); color: var(--showcase-fg); font: 600 14px var(--showcase-body); cursor: pointer; text-decoration: none; }
.wms-chip img { width: 18px; height: 18px; }
.wms-chip[aria-pressed="true"], .wms-chip[aria-current="page"] { background: var(--showcase-navy); border-color: var(--showcase-navy); color: #fff; }
.wms-chip:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; }
.wms-chip small { font-size: 10px; text-transform: uppercase; opacity: .75; }
.wms-price-card { display: flex; flex-direction: column; }
.wms-price-card[hidden] { display: none; }
.wms-price-card-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.wms-badge { padding: 5px 11px; border-radius: 99px; background: linear-gradient(135deg, var(--color-accent-primary), var(--color-accent-secondary)); color: #fff; font-size: 12px; font-weight: 700; letter-spacing: .02em; }
.wms-price-card.is-featured { border: 2px solid var(--color-accent-primary); box-shadow: 0 8px 32px var(--color-accent-glow), var(--shadow-md); }
.wms-price-card.is-selected { outline: 3px solid var(--showcase-accent); outline-offset: 4px; }
.wms-price-card .wms-price { flex-wrap: wrap; margin: 8px 0 6px; }
.wms-price-per { font-size: 17px; font-weight: 500; color: var(--color-text-tertiary); }
.wms-saving { margin: 0 0 10px !important; color: var(--color-success) !important; font-weight: 700; font-size: 14px !important; }
.wms-trial-line { margin: 4px 0 16px !important; padding: 10px 12px; border-radius: 10px; background: var(--showcase-mint); color: #22603f !important; font-weight: 600; font-size: 14px !important; }
.wms-trial-line small { font-weight: 500; color: #2f6f4d; }
.wms-price-includes li { align-items: center; }
.wms-price-includes li > img { flex: none; width: 22px; height: 22px; }
.wms-price-includes li strong { display: block; color: var(--color-text-primary); }
.wms-price-includes li small { display: block; color: var(--color-text-tertiary); }
.wms-price-card .wms-account-actions { margin-top: auto; }
.wms-price-card .wms-price-note { text-align: left; margin: 10px 0 0; }
.wms-plan-includes { max-width: 1100px; margin: 56px auto 0; }
.wms-plan-includes h2 { text-align: center; }
.wms-plan-includes ul { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); gap: 16px; padding: 0; list-style: none; }
.wms-plan-includes li { display: flex; gap: 12px; padding: 18px; border: 1px solid var(--color-border); border-radius: 14px; background: var(--color-surface-raised); }
.wms-plan-includes li strong { display: block; margin-bottom: 4px; }
.wms-plan-includes li span { color: var(--color-text-secondary); font-size: 14px; }

/* FAQ. */
.wms-faq-list { display: grid; gap: 10px; max-width: 820px; }
.wms-home-faq .wms-faq, .wms-faq-list .wms-faq { border: 1px solid var(--showcase-border); border-radius: 12px; background: var(--showcase-surface); padding: 4px 18px; }
.wms-faq summary { cursor: pointer; padding: 12px 0; font-weight: 650; }
.wms-faq summary:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; }

/* Guides. */
.wms-guide-products { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 22px; }
.wms-guide-videos { margin: 0 0 30px; }
.wms-guide-trial { margin: 0 0 26px; padding: 16px 18px; border-left: 4px solid var(--showcase-accent); border-radius: 10px; background: var(--showcase-mint); }
.wms-guide-trial strong { display: block; margin-bottom: 4px; color: #22603f; }
.wms-guide-trial p { margin: 0; }
.wms-guide-coming { padding: 28px; border: 1px dashed var(--showcase-border); border-radius: 14px; text-align: center; }

/* Sticky call to action (phones). */
.wms-sticky-cta { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; display: none; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: rgba(255, 255, 255, .96); border-top: 1px solid var(--showcase-border); box-shadow: 0 -6px 24px rgba(15, 23, 42, .08); transform: translateY(110%); transition: transform .25s; }
.wms-sticky-cta span { font-size: 13px; font-weight: 600; color: var(--showcase-muted); }
.wms-sticky-cta.is-visible { transform: none; }
@media (max-width: 760px) { .wms-sticky-cta { display: flex; } .showcase-nav-cta { display: none; } }

/* Account handoff, legal pages. */
.wms-handoff { max-width: 560px; margin: 40px auto; padding: 32px; border: 1px solid var(--color-border); border-radius: 18px; background: var(--color-surface-raised); box-shadow: var(--shadow-md); }
.wms-handoff h1 { font-size: 1.8rem; margin: 8px 0 12px; }
.wms-legal-updated { color: var(--color-text-tertiary); font-size: 14px; }

@media (prefers-reduced-motion: reduce) {
  .wms-video-play img, .wms-sticky-cta, .wms-price-card { transition: none !important; }
  .wms-price-card:hover { transform: none !important; }
}

/* Official brand marks: pick the variant that contrasts with the background. */
.wms-brand-on-dark{display:none!important}
[data-theme="dark"] .wms-brand-on-light,.showcase-product-choice[aria-current="page"] .wms-brand-on-light,.showcase-product-choice[aria-pressed="true"] .wms-brand-on-light,.wms-chip[aria-pressed="true"] .wms-brand-on-light,.wms-chip[aria-current="page"] .wms-brand-on-light{display:none!important}
[data-theme="dark"] .wms-brand-on-dark,.showcase-product-choice[aria-current="page"] .wms-brand-on-dark,.showcase-product-choice[aria-pressed="true"] .wms-brand-on-dark,.wms-chip[aria-pressed="true"] .wms-brand-on-dark,.wms-chip[aria-current="page"] .wms-brand-on-dark{display:inline-block!important}
.showcase-product-icon img,.showcase-brand-mark img,.wms-price-includes img,.wms-chip img{object-fit:contain;border-radius:22%}

/* Coming-soon panel: keep a side gutter and centre the buttons with the text. */
.showcase-coming-inner{width:100%;box-sizing:border-box;padding-inline:20px}
.showcase-coming .showcase-actions{display:flex;flex-wrap:wrap;justify-content:center;gap:12px;margin:0 auto 18px}
@media(max-width:560px){.showcase-coming .showcase-actions{flex-direction:column;align-items:stretch;max-width:340px}.showcase-coming .showcase-actions .showcase-button{justify-content:center;text-align:center}}
