/* ==========================================================================
   MPV Basecamp
   Palette pulled from the product shots: the MPV violet and lavender trim,
   ink tinted toward the violet, and one warm accent — the stove flame — used
   only to mark places where the plugin is doing something on the page.
   ========================================================================== */

@font-face {
    font-family: "National Park";
    src: url("../fonts/national-park.woff2") format("woff2");
    font-weight: 400 800;
    font-display: swap;
}
@font-face {
    font-family: "Public Sans";
    src: url("../fonts/public-sans.woff2") format("woff2");
    font-weight: 300 800;
    font-display: swap;
}
@font-face {
    font-family: "Martian Mono";
    src: url("../fonts/martian-mono.woff2") format("woff2");
    font-weight: 300 600;
    font-stretch: 75% 112.5%;
    font-display: swap;
}

:root {
    --paper: #f5f4f8;
    --surface: #ffffff;
    --tile: #ecebf0;
    --ink: #1c1626;
    --ink-2: #5e5670;
    --line: #dedae6;
    --violet: #5a2db3;
    --violet-deep: #43208a;
    --lavender: #dccdf8;
    --lavender-soft: #efe8fc;
    --flame: #ff6b2c;
    --mpv-brand: #8045f4; /* the plugin's logo colour */

    --f-display: "National Park", "Avenir Next", "Segoe UI", sans-serif;
    --f-body: "Public Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
    --f-mono: "Martian Mono", ui-monospace, "SF Mono", Menlo, monospace;

    --gutter: clamp(16px, 4vw, 56px);
    --max: 1360px;
    --r-tile: 18px;
    --r-small: 10px;
    --ease: cubic-bezier(.2, .7, .2, 1);
}

/* ---------- Base ---------- */

*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font-family: var(--f-body);
    font-size: 17px;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

img, video { max-width: 100%; height: auto; display: block; }

a { color: var(--violet); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { color: var(--violet-deep); }

:focus-visible {
    outline: 2px solid var(--violet);
    outline-offset: 3px;
    border-radius: 4px;
}

h1, h2, h3 {
    font-family: var(--f-display);
    font-weight: 700;
    line-height: 1;
    letter-spacing: -.01em;
    margin: 0;
    text-wrap: balance;
}

p { margin: 0; }

.skip-link {
    position: absolute;
    left: 12px;
    top: -60px;
    z-index: 100;
    padding: 10px 14px;
    background: var(--ink);
    color: var(--paper);
    border-radius: var(--r-small);
}
.skip-link:focus { top: 12px; }

.screen-reader-text {
    position: absolute !important;
    width: 1px; height: 1px;
    overflow: hidden;
    clip: rect(1px, 1px, 1px, 1px);
    white-space: nowrap;
}

/* Mono utility voice: prices, labels, annotations */
.card__eyebrow,
.summary__eyebrow,
.section-head__meta,
.plugin-note,
.crumbs,
.specs dt,
.card__clip,
.demo-bar {
    font-family: var(--f-mono);
    font-stretch: 87.5%;
    letter-spacing: .01em;
}

/* ---------- Demo bar ---------- */

.demo-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 6px 20px;
    padding: 10px var(--gutter);
    background: var(--ink);
    color: #d8d3e3;
    font-size: 12px;
}
.demo-bar strong { color: #fff; font-weight: 500; }
.demo-bar__text { display: flex; align-items: center; gap: 10px; }
.demo-bar__link { color: var(--lavender); text-decoration: none; white-space: nowrap; }
.demo-bar__link:hover { color: #fff; }

/* The flame dot marks the plugin, wherever it shows up. */
.demo-bar__dot,
.plugin-note__dot {
    flex: none;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--flame);
    box-shadow: 0 0 0 0 rgba(255, 107, 44, .55);
    animation: flame-pulse 2.4s var(--ease) infinite;
}
@keyframes flame-pulse {
    0%   { box-shadow: 0 0 0 0 rgba(255, 107, 44, .55); }
    70%  { box-shadow: 0 0 0 7px rgba(255, 107, 44, 0); }
    100% { box-shadow: 0 0 0 0 rgba(255, 107, 44, 0); }
}

/* ---------- Header ---------- */

.site-header {
    max-width: var(--max);
    margin: 0 auto;
    padding: 22px var(--gutter);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.wordmark {
    display: inline-flex;
    align-items: center;
    gap: .34em;
    color: var(--ink);
    text-decoration: none;
    font-family: var(--f-display);
    font-size: 26px;
    line-height: 1;
}
.wordmark:hover { color: var(--ink); }
.wordmark__mpv {
    flex: none;
    width: auto;
    height: .8em;
    color: var(--mpv-brand);
}
.wordmark__name { font-weight: 500; }
.wordmark--small { font-size: 22px; }

.site-nav { display: flex; align-items: center; gap: 6px; }
.site-nav a {
    padding: 8px 14px;
    border-radius: 999px;
    color: var(--ink);
    text-decoration: none;
    font-weight: 500;
    font-size: 15px;
    transition: background .2s var(--ease);
}
.site-nav a:hover { background: var(--lavender-soft); }
.site-nav a[aria-current="page"] { background: var(--lavender-soft); color: var(--violet-deep); }
.cart-link { display: inline-flex; align-items: center; gap: 8px; }
.cart-link__count {
    min-width: 22px;
    height: 22px;
    padding: 0 6px;
    display: inline-grid;
    place-items: center;
    border-radius: 999px;
    background: var(--ink);
    color: var(--paper);
    font-family: var(--f-mono);
    font-size: 11px;
}

/* ---------- Layout shells ---------- */

.site-main {
    max-width: var(--max);
    margin: 0 auto;
    padding: 0 var(--gutter);
}

/* ---------- Buttons ---------- */

.button,
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce a.button.alt,
.woocommerce button.button.alt,
.woocommerce input.button.alt,
.wc-block-components-button:not(.is-link) {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .5em;
    padding: .95em 1.6em;
    border: 0;
    border-radius: 999px;
    background: var(--violet);
    color: #fff;
    font-family: var(--f-body);
    font-size: 16px;
    font-weight: 600;
    line-height: 1.1;
    text-decoration: none;
    cursor: pointer;
    transition: background .2s var(--ease), transform .2s var(--ease);
}
.button:hover,
.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce input.button:hover,
.woocommerce a.button.alt:hover,
.woocommerce button.button.alt:hover,
.woocommerce input.button.alt:hover,
.wc-block-components-button:not(.is-link):hover {
    background: var(--violet-deep);
    color: #fff;
}
.button:active { transform: translateY(1px); }

.button--quiet,
.button--quiet:hover {
    background: transparent;
    color: var(--ink);
    box-shadow: inset 0 0 0 1.5px var(--line);
}
.button--quiet:hover { box-shadow: inset 0 0 0 1.5px var(--ink); }

/* ---------- Plugin annotation ---------- */

.plugin-note {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    font-size: 11.5px;
    color: var(--ink-2);
}
.plugin-note code {
    font-family: inherit;
    color: var(--ink);
    background: var(--lavender-soft);
    padding: 2px 6px;
    border-radius: 6px;
}

/* ==========================================================================
   Home
   ========================================================================== */

.hero {
    padding: clamp(28px, 6vw, 88px) 0 clamp(56px, 8vw, 120px);
}

.hero__title {
    max-width: 11.6em;
    font-size: clamp(3rem, 8.6vw, 8.5rem);
    font-weight: 800;
    line-height: .94;
    letter-spacing: -.025em;
}

/* Signature: the clip runs inside the headline, where a word would be. */
.hero__clip {
    position: relative;
    display: inline-block;
    width: 2.15em;
    height: .8em;
    margin: 0 -.04em;
    vertical-align: -.04em;
    border-radius: 999px;
    overflow: hidden;
    background: var(--tile);
    box-shadow: 0 .06em .18em rgba(28, 22, 38, .14);
    isolation: isolate;
}
.hero__clip .mpvw-video-inline,
.hero__clip .video-js {
    position: absolute !important;
    inset: 0;
    width: 100% !important;
    height: 100% !important;
    padding: 0 !important;
}
.hero__clip .vjs-tech,
.hero__clip .vjs-poster img {
    object-fit: cover !important;
}
.hero__clip .vjs-big-play-button,
.hero__clip .vjs-loading-spinner,
.hero__clip .vjs-control-bar,
.hero__clip .vjs-text-track-display { display: none !important; }

.hero__aside {
    margin-top: clamp(28px, 4vw, 48px);
    display: grid;
    grid-template-columns: minmax(0, 30rem) auto;
    align-items: end;
    gap: 20px 48px;
}
.hero__lede {
    font-size: clamp(1.05rem, 1.4vw, 1.2rem);
    color: var(--ink-2);
    max-width: 44ch;
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 10px; }
.hero__aside .plugin-note { grid-column: 1 / -1; }

/* ---------- Section head ---------- */

.section-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 28px;
}
.section-head__title { font-size: clamp(2rem, 4vw, 3.25rem); }
.section-head__meta { font-size: 12px; color: var(--ink-2); text-transform: uppercase; }

.kit { padding-bottom: clamp(64px, 9vw, 128px); }

/* ==========================================================================
   Product grid (home, shop, related)
   ========================================================================== */

.woocommerce ul.products {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: clamp(28px, 3vw, 44px) clamp(14px, 2vw, 28px);
    margin: 0;
    padding: 0;
}
.woocommerce ul.products.columns-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.woocommerce ul.products::before,
.woocommerce ul.products::after { display: none !important; }

.woocommerce ul.products li.product {
    float: none !important;
    width: auto !important;
    margin: 0 !important;
    clear: none !important;
    padding: 0;
}

.woocommerce ul.products li.product a.woocommerce-LoopProduct-link {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    column-gap: 10px;
    color: var(--ink);
    text-decoration: none;
}
:where(.woocommerce-LoopProduct-link) > :where(*) { grid-column: 1 / -1; }

.woocommerce ul.products li.product a img {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    margin: 0 0 16px;
    border-radius: var(--r-tile);
    background: var(--tile);
    /* Photos arrive on white to light-grey sweeps; a hairline keeps every tile edge visible. */
    outline: 1px solid rgba(28, 22, 38, .07);
    outline-offset: -1px;
    transition: transform .45s var(--ease), box-shadow .45s var(--ease);
}
.woocommerce ul.products li.product a:hover img {
    transform: translateY(-4px);
    box-shadow: 0 18px 30px -18px rgba(28, 22, 38, .35);
}

/* When the plugin's "video in product list" is on, keep its box in our frame. */
.woocommerce ul.products li.product .mpvw-loop-video {
    aspect-ratio: 3 / 4;
    margin: 0 0 16px;
    border-radius: var(--r-tile);
}
.woocommerce ul.products li.product .mpvw-loop-video img { margin: 0; border-radius: 0; }

.card__eyebrow {
    font-size: 11px;
    text-transform: uppercase;
    color: var(--ink-2);
    margin-bottom: 6px;
}

.woocommerce ul.products li.product .woocommerce-loop-product__title {
    font-family: var(--f-display);
    font-size: clamp(1.2rem, 1.7vw, 1.55rem);
    font-weight: 700;
    line-height: 1.05;
    padding: 0;
    margin: 0 0 10px;
}
.woocommerce ul.products li.product a:hover .woocommerce-loop-product__title {
    text-decoration: underline;
    text-decoration-thickness: 2px;
    text-underline-offset: .14em;
}

.woocommerce ul.products li.product .price {
    grid-column: 1;
    margin: 0;
    color: var(--ink);
    font-family: var(--f-mono);
    font-stretch: 87.5%;
    font-size: 14px;
    font-weight: 500;
}

.card__clip {
    grid-column: 2;
    justify-self: end;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 5px 10px 5px 9px;
    border-radius: 999px;
    background: var(--lavender-soft);
    color: var(--violet-deep);
    font-size: 11px;
    white-space: nowrap;
}
.card__clip-icon {
    width: 0;
    height: 0;
    border-left: 7px solid currentColor;
    border-top: 4.5px solid transparent;
    border-bottom: 4.5px solid transparent;
}

/* ---------- Walkthrough band ---------- */

.walkthrough {
    margin: 0 calc(50% - 50vw);
    padding: clamp(56px, 8vw, 104px) max(var(--gutter), calc(50vw - var(--max) / 2 + var(--gutter)));
    background: var(--ink);
    color: #e9e5f1;
}
.walkthrough__title {
    max-width: 14em;
    font-size: clamp(1.9rem, 3.6vw, 3rem);
    color: #fff;
    margin-bottom: clamp(32px, 5vw, 56px);
}
.walkthrough__steps {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 36px clamp(24px, 4vw, 64px);
    counter-reset: step;
}
.walkthrough__steps li {
    counter-increment: step;
    padding-top: 18px;
    border-top: 1px solid rgba(220, 205, 248, .25);
}
.walkthrough__steps li::before {
    content: counter(step);
    display: block;
    font-family: var(--f-display);
    font-weight: 800;
    font-size: 2.4rem;
    line-height: 1;
    color: var(--lavender);
    margin-bottom: 14px;
}
.walkthrough__steps h3 {
    font-size: 1.35rem;
    color: #fff;
    margin-bottom: 8px;
}
.walkthrough__steps p { color: #bdb5cc; max-width: 34ch; }

/* ==========================================================================
   Shop archive
   ========================================================================== */

.shop-main { padding-top: clamp(12px, 3vw, 32px); padding-bottom: clamp(64px, 9vw, 128px); }

.crumbs {
    font-size: 12px;
    color: var(--ink-2);
    margin-bottom: 18px;
}
.crumbs a { color: var(--ink-2); text-decoration: none; }
.crumbs a:hover { color: var(--violet); }
.crumbs__sep { margin: 0 .6em; opacity: .5; }

.woocommerce-products-header { margin-bottom: 36px; }
.woocommerce-products-header__title.page-title {
    font-size: clamp(2.6rem, 6vw, 5rem);
    font-weight: 800;
    letter-spacing: -.02em;
}
.term-description { color: var(--ink-2); max-width: 52ch; margin-top: 10px; }

/* ==========================================================================
   Single product
   ========================================================================== */

.single-product div.product {
    display: grid;
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    gap: 0 clamp(32px, 5vw, 80px);
    align-items: start;
}
.single-product div.product .woocommerce-product-gallery,
.single-product div.product .summary {
    float: none !important;
    width: auto !important;
    margin: 0 !important;
}
.single-product div.product .woocommerce-tabs,
.single-product div.product .related,
.single-product div.product .upsells { grid-column: 1 / -1; }

/* Gallery */
.woocommerce div.product div.images .flex-viewport,
.woocommerce div.product div.images .woocommerce-product-gallery__wrapper {
    border-radius: var(--r-tile);
    background: var(--tile);
}
.woocommerce div.product div.images .flex-viewport { overflow: hidden; }
.woocommerce div.product div.images img { border-radius: 0; }

/* The plugin's video slide ships square; match the 3:4 photos. */
.woocommerce-product-gallery .woocommerce-product-gallery-video { padding-bottom: 133.333%; }
.woocommerce-product-gallery .woocommerce-product-gallery-video .video-js { width: 100%; height: 100%; }

.woocommerce div.product div.images .flex-control-thumbs {
    display: flex;
    gap: 10px;
    margin-top: 8px;
    padding: 4px;
    overflow: visible;
}
.woocommerce div.product div.images .flex-control-thumbs li {
    width: 72px !important;
    float: none;
    margin: 0;
    flex: none;
}
.woocommerce div.product div.images .flex-control-thumbs li img {
    border-radius: var(--r-small);
    opacity: .55;
    transition: opacity .2s var(--ease), box-shadow .2s var(--ease);
}
.woocommerce div.product div.images .flex-control-thumbs li img:hover { opacity: .9; }
.woocommerce div.product div.images .flex-control-thumbs li img.flex-active {
    opacity: 1;
    box-shadow: 0 0 0 2px var(--paper), 0 0 0 4px var(--violet);
}
.flex-control-thumbs li.mpvw-video-thumb::before {
    border-left-width: .8rem !important;
    border-top-width: .55rem !important;
    border-bottom-width: .55rem !important;
    filter: drop-shadow(0 1px 3px rgba(0, 0, 0, .45));
}

.woocommerce div.product div.images .woocommerce-product-gallery__trigger {
    top: 14px;
    right: 14px;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, .92);
    border-radius: 50%;
    box-shadow: 0 2px 10px rgba(28, 22, 38, .12);
}

/* Summary */
.single-product div.product .summary {
    position: sticky;
    top: 24px;
    padding-top: 4px;
}
.summary__eyebrow {
    font-size: 12px;
    text-transform: uppercase;
    color: var(--violet);
    margin-bottom: 12px !important;
}
.woocommerce div.product .product_title {
    font-size: clamp(2.4rem, 4.2vw, 3.75rem);
    font-weight: 800;
    line-height: .95;
    letter-spacing: -.02em;
    margin-bottom: 18px;
}
.woocommerce div.product .summary p.price {
    font-family: var(--f-mono);
    font-stretch: 87.5%;
    font-size: 22px;
    font-weight: 500;
    color: var(--ink);
    margin-bottom: 20px;
}
.woocommerce div.product .woocommerce-product-details__short-description {
    color: var(--ink-2);
    font-size: 1.06rem;
    margin-bottom: 26px;
}

.specs {
    margin: 0 0 28px;
    border-top: 1px solid var(--line);
}
.specs__row {
    display: grid;
    grid-template-columns: 10.5rem 1fr;
    gap: 12px;
    padding: 11px 0;
    border-bottom: 1px solid var(--line);
}
.specs dt {
    font-size: 11px;
    text-transform: uppercase;
    color: var(--ink-2);
    padding-top: 3px;
}
.specs dd { margin: 0; font-size: 15px; }

.woocommerce div.product form.cart {
    display: flex;
    gap: 10px;
    margin-bottom: 24px;
}
.woocommerce div.product form.cart div.quantity { float: none; margin: 0; }
.woocommerce .quantity .qty {
    width: 4.2em;
    height: 100%;
    min-height: 50px;
    border: 1.5px solid var(--line);
    border-radius: 999px;
    background: var(--surface);
    font-family: var(--f-mono);
    font-size: 15px;
    color: var(--ink);
}
.woocommerce div.product form.cart .button { flex: 1; float: none; }

.demo-card {
    padding: 16px 18px;
    border-radius: 14px;
    background: var(--lavender-soft);
}
.demo-card .plugin-note { margin-bottom: 8px; color: var(--violet-deep); }
.demo-card p:not(.plugin-note) { font-size: 14.5px; color: var(--ink-2); }

/* Description */
.woocommerce div.product .woocommerce-tabs {
    margin-top: clamp(48px, 7vw, 96px);
    padding-top: 36px;
    border-top: 1px solid var(--line);
}
.woocommerce div.product .woocommerce-tabs ul.tabs { display: none; }
.woocommerce div.product .woocommerce-tabs .panel {
    max-width: 64ch;
    margin: 0;
    padding: 0;
}
.woocommerce div.product .woocommerce-tabs .panel h2 {
    font-size: clamp(1.6rem, 2.6vw, 2.2rem);
    margin-bottom: 16px;
}
.woocommerce div.product .woocommerce-tabs .panel p { margin-bottom: 1em; color: var(--ink-2); }

.related.products {
    margin-top: clamp(56px, 8vw, 112px);
}
.related.products > h2 {
    font-size: clamp(1.8rem, 3.4vw, 2.75rem);
    margin-bottom: 28px;
}

/* ==========================================================================
   WooCommerce notices, pages, forms
   ========================================================================== */

.woocommerce-message,
.woocommerce-info,
.woocommerce-error,
.wc-block-components-notice-banner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: 0 0 28px !important;
    padding: 14px 18px !important;
    border: 0 !important;
    border-radius: 14px;
    background: var(--lavender-soft) !important;
    color: var(--ink) !important;
    font-size: 15px;
}
/* WooCommerce moves focus to notices for screen readers; they aren't controls. */
.woocommerce-notices-wrapper [tabindex="-1"]:focus,
.woocommerce-message[tabindex="-1"]:focus { outline: none; }
.woocommerce-message::before,
.woocommerce-info::before,
.woocommerce-error::before { display: none; }
.woocommerce-message::after,
.woocommerce-info::after { display: none; }
.woocommerce-message .button { order: 2; padding: .7em 1.2em; font-size: 14px; }

.page-main { padding-top: clamp(12px, 3vw, 32px); padding-bottom: clamp(64px, 9vw, 128px); }
.entry__title {
    font-size: clamp(2.4rem, 5vw, 4rem);
    font-weight: 800;
    letter-spacing: -.02em;
    margin-bottom: 32px;
}
.entry__content > * + * { margin-top: 1em; }

/* ---------- Footer ---------- */

.site-footer {
    max-width: var(--max);
    margin: 0 auto;
    padding: 40px var(--gutter) 48px;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 24px 48px;
    font-size: 14.5px;
    color: var(--ink-2);
}
.site-footer__brand { display: grid; gap: 12px; max-width: 44ch; }
.site-footer__links {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 8px 24px;
    align-self: end;
}
.site-footer__links a { color: var(--ink); }

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 1000px) {
    .woocommerce ul.products,
    .woocommerce ul.products.columns-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }

    .single-product div.product { grid-template-columns: minmax(0, 1fr); }
    .single-product div.product .summary { position: static; margin-top: 28px !important; }

    .walkthrough__steps { grid-template-columns: minmax(0, 1fr); }

    /* Two columns: keep the related row even. */
    .related.products ul.products li.product:nth-child(n + 3) { display: none; }
}

@media (max-width: 720px) {
    body { font-size: 16px; }
    .demo-bar { font-size: 11px; }
    .site-header { padding-top: 16px; padding-bottom: 16px; }
    .wordmark { font-size: 22px; }
    .site-nav a { padding: 8px 10px; }

    .hero__aside { grid-template-columns: minmax(0, 1fr); }
    .hero__clip { width: 1.9em; }

    .card__clip { grid-column: 1 / -1; justify-self: start; margin-top: 8px; }
    .specs__row { grid-template-columns: 8.5rem 1fr; }
    .woocommerce div.product div.images .flex-control-thumbs li { width: 60px !important; }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation: none !important;
        transition: none !important;
    }
}
