/* ==========================================================================
   Spark Audio — site.css
   Shared tokens and components for every page. Page-only styles belong in
   product.css / pages.css. Class reference: see FOUNDATION_NOTES.md.

   Contents
   01  Fonts
   02  Tokens
   03  Reset and base
   04  Accessibility helpers (skip link, focus, visually-hidden)
   05  Layout (container, section, section head, hairline)
   06  Typography
   07  Buttons and text links
   08  Header and navigation (+ mobile menu)
   09  Hero (+ pitch line art)
   10  Facts strip
   11  Feature columns + link list
   12  Stats row
   13  Tile grid (masonry)
   14  Statement + dot pager
   15  Latest (featured card + post list)
   16  Price grid (collapsed borders)
   17  FAQ
   18  CTA band
   19  Footer + newsletter pill form
   20  Cart drawer
   21  Toast
   22  Window frame (real screenshots)
   23  Plugin window mockup (.pui)
   24  Reveal on scroll
   25  Reduced motion
   26  Touch targets
   ========================================================================== */


/* 01  Fonts ---------------------------------------------------------------- */

@font-face {
  font-family: "Inter";
  src: url("../fonts/Inter-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("../fonts/Inter-Medium.ttf") format("truetype");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("../fonts/Inter-SemiBold.ttf") format("truetype");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
/* Metric-matched fallback so the swap to Inter does not shift the layout. */
@font-face {
  font-family: "Inter Fallback";
  src: local("Segoe UI"), local("Arial");
  size-adjust: 107%;
  ascent-override: 90%;
  descent-override: 22.4%;
  line-gap-override: 0%;
}


/* 02  Tokens --------------------------------------------------------------- */

:root {
  color-scheme: dark;

  /* colour */
  --bg: #141618;
  --surface: #17191c;
  --surface-2: #1c1f23;
  --line: rgba(230, 232, 236, 0.10);
  --line-strong: rgba(230, 232, 236, 0.18);
  --text: #F4F1EA;
  --text-soft: #CFCBC3;
  --muted: #8B929C;
  /* The logo's amber. Tints use --accent-rgb, so changing the accent means
     changing these two lines and nothing else. */
  --accent: #FBB21C;
  --accent-rgb: 251 178 28;
  --accent-hover: #FFC45A;
  --accent-soft: rgb(var(--accent-rgb) / 0.10);
  --on-accent: #141618;

  /* plugin accents (use only inside that plugin's tile, page or mockup) */
  --autopitch: #FBB21C;   --autopitch-deep: #2A1D08;
  --compressor: #FF6B4A;  --compressor-deep: #2E1510;
  --eq: #34D399;          --eq-deep: #0E2620;
  --delay: #A78BFA;       --delay-deep: #1D1734;
  --reverb: #F472B6;      --reverb-deep: #2E1226;
  --complete-deep: #261C0A;
  /* Spark Complete is the one light tile in the grid. */
  --complete-light: #F4F1EA;
  --ink: #141618;
  --ink-muted: #555B63;   /* 5.6:1 on --complete-light */

  /* type */
  --font: "Inter", "Inter Fallback", "Segoe UI", system-ui, sans-serif;
  --fs-display: clamp(48px, 4.2vw + 12px, 72px);
  --fs-h2: clamp(36px, 1.7vw + 23px, 48px);
  --fs-h3: 24px;
  --fs-lead: 18px;
  --fs-body: 16px;
  --fs-small: 14px;
  --fs-xsmall: 13px;

  /* space */
  --gutter: 16px;
  --container: 1240px;
  --section-y: clamp(88px, 7vw + 28px, 128px);
  --header-h: 72px;

  /* shape and motion */
  --radius-card: 16px;
  --radius-sm: 10px;
  --radius-pill: 999px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --dur: 300ms;
}

@media (min-width: 768px) {
  :root { --gutter: 32px; }
}
@media (min-width: 960px) {
  :root { --header-h: 80px; }
}


/* 03  Reset and base ------------------------------------------------------- */

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: var(--fs-body);
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4, h5, h6 {
  margin: 0;
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

p, ul, ol, dl, figure, blockquote { margin: 0; }
p { text-wrap: pretty; }
:where(ul[class], ol[class]) { list-style: none; padding: 0; }

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

a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }

button, input, select, textarea { font: inherit; color: inherit; letter-spacing: inherit; }
button { cursor: pointer; }

::selection { background: var(--accent); color: var(--on-accent); }

[hidden] { display: none !important; }

/* Drawer or menu open. site.js sets --lock-gutter to the scrollbar's width so
   the page doesn't jump sideways when the scrollbar disappears. */
html.is-locked { overflow: hidden; padding-right: var(--lock-gutter, 0px); }


/* 04  Accessibility helpers ------------------------------------------------ */

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 200;
  padding: 12px 20px;
  border-radius: var(--radius-pill);
  background: var(--accent);
  color: var(--on-accent);
  font-size: var(--fs-small);
  font-weight: 500;
  text-decoration: none;
  transform: translateY(-160%);
  transition: transform var(--dur) var(--ease);
}
.skip-link:focus { transform: none; }

:focus { outline: none; }
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}
/* On amber backgrounds the ring turns dark. */
.on-accent :focus-visible { outline-color: var(--on-accent); }

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}


/* 05  Layout --------------------------------------------------------------- */

.container {
  width: 100%;
  max-width: calc(var(--container) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* A section is separated from the one above by a full-width hairline. */
.section {
  padding-block: var(--section-y);
  border-top: 1px solid var(--line);
}
.section--tight { padding-block: clamp(64px, 5vw + 24px, 96px); }
.section--flush { padding-block: 0; }
.section--surface { background: var(--surface); }

.hairline { height: 1px; border: 0; margin: 0; background: var(--line); }

/* Section heading row: title left, optional intro/action right. */
/* Baseline-aligned, so the title always sits the same distance below the
   section's hairline however long the intro beside it runs. */
.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px 48px;
  margin-bottom: clamp(48px, 4vw + 16px, 72px);
}
.section-head__title { max-width: 14em; }
.section-head__intro {
  max-width: 30rem;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.65;
}
.section-head__intro a { color: var(--text); text-decoration-color: var(--line-strong); transition: color var(--dur) var(--ease); }
.section-head__intro a:hover { color: var(--accent); text-decoration-color: currentColor; }
.section-head--stack { flex-direction: column; align-items: flex-start; }


/* 06  Typography ----------------------------------------------------------- */

.display {
  font-size: var(--fs-display);
  font-weight: 500;
  line-height: 1.04;
  letter-spacing: -0.035em;
}
.h2 {
  font-size: var(--fs-h2);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -0.03em;
}
.h3 {
  font-size: var(--fs-h3);
  font-weight: 500;
  line-height: 1.25;
  letter-spacing: -0.02em;
}
.h4 {
  font-size: 18px;
  font-weight: 500;
  line-height: 1.35;
  letter-spacing: -0.01em;
}
.lead {
  font-size: var(--fs-lead);
  line-height: 1.65;
  color: var(--muted);
}
.small { font-size: var(--fs-small); }
.xsmall { font-size: var(--fs-xsmall); }
.muted { color: var(--muted); }
.accent { color: var(--accent); }
.num { font-variant-numeric: tabular-nums; }

/* Small sentence-case label with a dot. Never uppercase. */
.label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: var(--fs-small);
  font-weight: 500;
  color: var(--muted);
}
.label::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--dot, var(--accent));
}

/* Running text for long-form pages. */
.prose { max-width: 40rem; color: var(--text-soft); font-size: 17px; line-height: 1.7; }
.prose > * + * { margin-top: 1.1em; }
.prose a { color: var(--accent); }


/* 07  Buttons and text links ----------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 28px;
  border: 1px solid transparent;
  border-radius: var(--radius-pill);
  background: transparent;
  color: var(--text);
  font-size: 15px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.005em;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color var(--dur) var(--ease), color var(--dur) var(--ease),
              border-color var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.btn svg { width: 16px; height: 16px; flex: none; transition: transform var(--dur) var(--ease); }
.btn:hover svg { transform: translateX(3px); }
.btn:active { transform: translateY(1px); }

.btn--accent { background: var(--accent); color: var(--on-accent); }
.btn--accent:hover { background: var(--accent-hover); }

.btn--dark { background: var(--on-accent); color: var(--text); }
.btn--dark:hover { background: #000; }

.btn--outline { border-color: var(--line-strong); }
.btn--outline:hover { border-color: var(--accent); color: var(--accent); }

.btn--sm { min-height: 40px; padding: 0 20px; font-size: 14px; }
.btn--lg { min-height: 56px; padding: 0 34px; font-size: 16px; }
.btn--block { width: 100%; }

/* Cart state set by site.js on [data-add-to-cart] buttons. */
.btn.is-in-cart { background: transparent; color: var(--text); border-color: var(--line-strong); }
.btn.is-in-cart:hover { border-color: var(--accent); color: var(--accent); }
.on-accent .btn.is-in-cart { background: transparent; color: var(--on-accent); border-color: rgba(20, 22, 24, 0.4); }

/* Quiet link with an arrow that nudges on hover. */
.text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text);
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  transition: color var(--dur) var(--ease);
}
.text-link svg { width: 16px; height: 16px; color: var(--accent); transition: transform var(--dur) var(--ease); }
.text-link:hover { color: var(--accent); }
.text-link:hover svg { transform: translateX(3px); }

.btn-row { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; }


/* 08  Header and navigation ------------------------------------------------ */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-h);
  background: rgba(20, 22, 24, 0.8);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid var(--line);
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .site-header { background: rgba(20, 22, 24, 0.97); }
}

.site-header__inner {
  height: 100%;
  display: flex;
  align-items: center;
  gap: 24px;
}

/* The supplied logo file (mark + wordmark), never redrawn. */
.logo {
  display: inline-flex;
  align-items: center;
  flex: none;
  border-radius: 4px;
  text-decoration: none;
}
.logo img { width: auto; height: 28px; transition: opacity var(--dur) var(--ease); }
.logo:hover img { opacity: 0.82; }
.logo:focus-visible { outline-offset: 6px; }
.site-footer .logo img { height: 32px; }

.site-nav__list { display: flex; gap: 36px; margin: 0; }
.site-nav__link {
  position: relative;
  color: var(--text-soft);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  transition: color var(--dur) var(--ease);
}
.site-nav__link:hover { color: var(--accent); }
.site-nav__link[aria-current] { color: var(--text); }
.site-nav__link[aria-current]::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -10px;
  width: 4px;
  height: 4px;
  margin-left: -2px;
  border-radius: 50%;
  background: var(--accent);
}
.site-nav__extra { display: none; }

.site-header__actions {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-left: auto;
}

.icon-button,
.cart-button,
.menu-button {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: transparent;
  color: var(--text);
  transition: border-color var(--dur) var(--ease), color var(--dur) var(--ease);
}
.icon-button:hover,
.cart-button:hover,
.menu-button:hover { border-color: var(--accent); color: var(--accent); }
.icon-button svg,
.cart-button svg,
.menu-button svg { width: 20px; height: 20px; }

.cart-button__count {
  position: absolute;
  top: -5px;
  right: -5px;
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  border-radius: 10px;
  background: var(--accent);
  color: var(--on-accent);
  font-size: 11px;
  font-weight: 600;
  line-height: 20px;
  text-align: center;
  font-variant-numeric: tabular-nums;
}
.cart-button__count.is-bumped { animation: badge-bump 450ms var(--ease-out); }
@keyframes badge-bump {
  0% { transform: scale(1); }
  40% { transform: scale(1.35); }
  100% { transform: scale(1); }
}

.menu-button { display: none; }
.menu-button__lines { position: relative; width: 16px; height: 10px; }
.menu-button__lines::before,
.menu-button__lines::after {
  content: "";
  position: absolute;
  left: 0;
  width: 16px;
  height: 1.5px;
  border-radius: 2px;
  background: currentColor;
  transition: transform var(--dur) var(--ease), top var(--dur) var(--ease);
}
.menu-button__lines::before { top: 0; }
.menu-button__lines::after { top: 8.5px; }
.menu-button[aria-expanded="true"] .menu-button__lines::before { top: 4.25px; transform: rotate(45deg); }
.menu-button[aria-expanded="true"] .menu-button__lines::after { top: 4.25px; transform: rotate(-45deg); }

/* Desktop: links centred between logo and actions. */
@media (min-width: 960px) {
  .site-header__inner {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
  }
  .site-nav { justify-self: center; }
  .site-header__actions { justify-self: end; }
}

/* Mobile: links move into a drawer under the header. */
@media (max-width: 959.98px) {
  .site-header__cta { display: none; }
  .js .menu-button { display: inline-grid; }

  .js .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    /* top: 100% lands on the header's 1px border, hence the extra pixel. */
    height: calc(100vh - var(--header-h) + 1px);
    height: calc(100dvh - var(--header-h) + 1px);
    display: flex;
    flex-direction: column;
    padding: 8px var(--gutter) 32px;
    background: var(--bg);
    overflow-y: auto;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease), visibility 0s linear var(--dur);
  }
  .js .site-header.is-menu-open .site-nav {
    opacity: 1;
    visibility: visible;
    transform: none;
    transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease), visibility 0s;
  }
  .js .site-nav__list { flex-direction: column; gap: 0; }
  .js .site-nav__link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 0;
    border-bottom: 1px solid var(--line);
    color: var(--text);
    font-size: 28px;
    letter-spacing: -0.025em;
  }
  .js .site-nav__link[aria-current]::after { position: static; margin: 0; width: 8px; height: 8px; }
  .js .site-nav__extra {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: auto;
    padding-top: 40px;
  }
  .site-nav__note { color: var(--muted); font-size: var(--fs-small); }

  /* Without JavaScript the links simply sit in the header. */
  html:not(.js) .site-nav__list { gap: 18px; }
  html:not(.js) .site-header__inner { overflow-x: auto; }
}


/* 09  Hero ----------------------------------------------------------------- */

.hero { position: relative; overflow: hidden; }
.hero__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 56px;
  align-items: center;
  padding-block: 56px 72px;
}
.hero__title { margin-bottom: 28px; }
.hero__lead { max-width: 30rem; }
.hero__actions { margin-top: 40px; }

@media (min-width: 1024px) {
  .hero__inner {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    gap: 64px;
    min-height: min(calc(86vh - var(--header-h)), 760px);
    padding-block: 64px 88px;
  }
}

/* Pitch line art: grid of note lanes, the sung pitch (muted) and the corrected
   pitch (amber) scrolling past a playhead. */
.pitch-art { position: relative; width: 100%; max-width: 620px; margin-inline: auto; }
.pitch-art::before {
  content: "";
  position: absolute;
  inset: 8% 4% 14% 14%;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgb(var(--accent-rgb) / 0.14), rgb(var(--accent-rgb) / 0));
  filter: blur(24px);
  pointer-events: none;
}
.pitch-art svg { position: relative; width: 100%; height: auto; overflow: hidden; }
.pitch-art__lane { stroke: rgba(244, 241, 234, 0.07); stroke-width: 1; }
.pitch-art__lane--root { stroke: rgba(244, 241, 234, 0.14); }
.pitch-art__note { fill: var(--muted); font-size: 12px; font-family: var(--font); }
@media (max-width: 640px) { .pitch-art__note { font-size: 17px; } }
.pitch-art__raw { fill: none; stroke: #8B929C; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; opacity: 0.75; }
.pitch-art__fixed { fill: none; stroke: var(--accent); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.pitch-art__glow { fill: none; stroke: var(--accent); stroke-width: 7; opacity: 0.35; }
.pitch-art__playhead { stroke: var(--accent); stroke-width: 1; opacity: 0.45; }
.pitch-art__head { fill: var(--accent); }
/* Three passes, then it rests (the loop is seamless, so it stops cleanly).
   Hovering the art pauses it. */
.pitch-art__scroll { animation: pitch-scroll 28s linear 3; }
.pitch-art:hover .pitch-art__scroll { animation-play-state: paused; }
@keyframes pitch-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-560px); }
}
.pitch-art__legend {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 28px;
  margin-top: 20px;
  padding-left: 7.5%;
  color: var(--muted);
  font-size: var(--fs-xsmall);
}
.pitch-art__key { display: inline-flex; align-items: center; gap: 10px; }
.pitch-art__key::before {
  content: "";
  width: 20px;
  height: 0;
  border-top: 1.5px solid #8B929C;
}
.pitch-art__key--fixed::before { border-top: 2px solid var(--accent); }


/* 10  Facts strip ---------------------------------------------------------- */

.facts { border-top: 1px solid var(--line); }
.facts__list {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 28px;
  padding-block: 28px;
}
.facts__item {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--muted);
  font-size: var(--fs-small);
  font-weight: 500;
  line-height: 1.35;
}
.facts__item svg { width: 20px; height: 20px; flex: none; color: var(--text-soft); opacity: 0.7; }
/* Phones: one fact per line, so two short ones never pair up on a row. */
@media (max-width: 599px) {
  .facts__list { flex-direction: column; }
}
@media (min-width: 1024px) {
  .facts__list { padding-block: 32px; }
}
@media (min-width: 1200px) {
  .facts__list { justify-content: space-between; }
}


/* 11  Feature columns + link list ------------------------------------------ */

.columns {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 64px;
}
@media (min-width: 900px) {
  .columns { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 48px; }
}
.column { display: flex; flex-direction: column; }
.column__icon { width: 40px; height: 40px; color: var(--accent); margin-bottom: 28px; }
.column__title { margin-bottom: 14px; }
.column__text {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.7;
  margin-bottom: 32px;
  max-width: 34rem;
}
.column .link-list { margin-top: auto; }

.link-list { border-top: 1px solid var(--line); }
.link-list__link {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 17px 0;
  border-bottom: 1px solid var(--line);
  color: var(--text);
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  transition: color var(--dur) var(--ease);
}
.link-list__label { flex: 1; min-width: 0; }
.link-list__meta { color: var(--muted); font-weight: 400; font-variant-numeric: tabular-nums; transition: color var(--dur) var(--ease); }
.link-list__arrow {
  width: 16px;
  height: 16px;
  flex: none;
  color: var(--accent);
  opacity: 0;
  transform: translateX(-10px);
  transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.link-list__link:hover,
.link-list__link:focus-visible { color: var(--accent); }
.link-list__link:hover .link-list__arrow,
.link-list__link:focus-visible .link-list__arrow { opacity: 1; transform: none; }
@media (hover: none) {
  .link-list__arrow { opacity: 1; transform: none; color: var(--muted); }
}


/* 12  Stats row ------------------------------------------------------------ */

.stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 48px 24px;
}
.stats dd { margin: 0; }
/* Sized so the widest value, "$29.99" (about 3.1em), fits its column at
   every width. */
.stat__value {
  color: var(--accent);
  font-size: clamp(44px, 12vw, 72px);
  font-weight: 400;
  line-height: 1;
  letter-spacing: -0.045em;
}
.stats .stat__label {
  margin-top: 18px;
  max-width: 15rem;
  color: var(--muted);
  font-size: var(--fs-small);
  line-height: 1.5;
}
@media (min-width: 900px) {
  .stats { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; }
  .stat__value { font-size: clamp(52px, 5.2vw + 6px, 72px); }
}


/* 13  Tile grid (masonry) -------------------------------------------------- */
/* Zero-gap 4-col grid. Tiles take --tile-bg and --tile-accent. */

.tiles {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  border-block: 1px solid var(--line);
}
@media (min-width: 720px) {
  .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tile--2x2, .tile--2x1 { grid-column: span 2; }
}
@media (min-width: 1100px) {
  .tiles { grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: minmax(320px, auto); }
  .tile--2x2 { grid-row: span 2; }
}

.tile {
  --tile-bg: var(--surface);
  --tile-accent: var(--accent);
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  min-height: 320px;
  padding: 32px var(--gutter);
  overflow: hidden;
  background:
    radial-gradient(90% 80% at 100% 100%, color-mix(in srgb, var(--tile-accent) 9%, transparent), transparent 70%),
    var(--tile-bg);
  color: var(--text);
  text-decoration: none;
}
@media (min-width: 720px) { .tile { padding: 36px 40px; } }

.tile::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: #000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 400ms var(--ease);
}
.tile:hover::after { opacity: 0.14; }
.tile:focus-visible { outline-offset: -4px; }

.tile__head {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}
.tile__cat { color: var(--tile-accent); font-size: var(--fs-xsmall); font-weight: 500; margin-bottom: 10px; }
.tile__name { font-size: 24px; font-weight: 500; letter-spacing: -0.025em; line-height: 1.2; }
.tile__tagline { margin-top: 6px; color: rgba(244, 241, 234, 0.64); font-size: 15px; line-height: 1.5; }
.tile__price {
  flex: none;
  color: var(--tile-accent);
  font-size: 15px;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}
.tile__more {
  position: relative;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  padding-top: 24px;
  color: var(--text);
  font-size: var(--fs-small);
  font-weight: 500;
}
.tile__more svg { width: 16px; height: 16px; color: var(--tile-accent); transition: transform var(--dur) var(--ease); }
.tile:hover .tile__more svg { transform: translateX(4px); }

.tile__media {
  position: relative;
  z-index: 0;
  transition: transform 700ms var(--ease-out);
  transform-origin: 50% 100%;
}
.tile:hover .tile__media { transform: scale(1.04); }

/* Big tile: screenshot sits below the text. */
.tile--2x2 .tile__name { font-size: clamp(28px, 1.4vw + 14px, 34px); }
.tile--2x2 .tile__media { margin-top: 40px; width: 100%; max-width: 560px; align-self: center; }
@media (min-width: 1100px) {
  .tile--2x2 { min-height: 640px; }
  .tile--2x2 .tile__media { margin-top: auto; padding-top: 40px; }
}

/* Knob tile (1x1): one large knob in the bottom-right corner, "See the
   controls" bottom-left. The knob stays in the flow and the tile is a size
   container, so the two can't overlap: when the tile is too narrow for both
   on one line, the knob sits above the link instead of beside it.
   The selectors carry .tile--knob so they outrank .pui (section 23) when the
   knob is drawn by plugin-ui.js. Set --knob-max on a tile row to cap it. */
.tile--knob { container: knob-tile / inline-size; }
.tile--knob .tile__head { margin-bottom: 24px; }
.tile--knob .tile__knob {
  position: relative;
  z-index: 0;
  flex: none;
  width: min(136px, 100%);
  margin: auto 0 46px auto;
}
.tile--knob .tile__more { position: absolute; left: var(--gutter); bottom: 32px; padding-top: 0; }
@media (min-width: 720px) { .tile--knob .tile__more { left: 40px; bottom: 36px; } }
/* 260px of content: the link (about 132px), a 24px gap and a 104px knob. */
@container knob-tile (min-width: 260px) {
  .tile--knob .tile__knob {
    width: clamp(104px, calc(100% - 160px), var(--knob-max, 168px));
    margin-bottom: 0;
  }
}

/* Line art inside knob tiles (compressor curve, EQ response). */
.tile-graph { overflow: visible; }
.tile-graph__grid { fill: none; stroke: rgba(244, 241, 234, 0.06); stroke-width: 1; }
.tile-graph__axis { fill: none; stroke: rgba(244, 241, 234, 0.22); stroke-width: 1; }
.tile-graph__ref { fill: none; stroke: rgba(244, 241, 234, 0.2); stroke-width: 1; stroke-dasharray: 2 4; }
.tile-graph__guide { fill: none; stroke: var(--tile-accent); stroke-opacity: 0.4; stroke-width: 1; stroke-dasharray: 2 3; }
.tile-graph__line { fill: none; stroke: var(--tile-accent); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.tile-graph__dot { fill: var(--tile-bg); stroke: var(--tile-accent); stroke-width: 1.5; }
.tile-graph__label { fill: rgba(244, 241, 234, 0.6); font-family: var(--font); font-size: 9.5px; }

/* Wide tile (2x1): copy on the left, a plugin window on the right. */
.tile--window .tile__copy { position: relative; z-index: 2; display: flex; flex-direction: column; flex: 1; max-width: 19rem; }
.tile--window .tile__media { width: 100%; margin-top: 32px; }
.tile__price--inline { margin-top: 18px; }
/* Under a drawn mockup: says plainly that it isn't a screenshot. */
.tile__note { margin-top: 12px; color: rgba(244, 241, 234, 0.5); font-size: 12px; line-height: 1.4; text-align: right; }
@media (min-width: 720px) {
  .tile--window { flex-direction: row; align-items: stretch; gap: 40px; }
  .tile--window .tile__copy { flex: 1 1 0; }
  .tile--window .tile__media { flex: none; width: min(55%, 420px); margin: 0; align-self: center; }
}

/* Bundle tile: the light tile in the grid (markup: --tile-bg:var(--complete-light)).
   Warm white with dark text, so it stands apart from AutoPitch's amber-brown;
   the plugin dots keep their colours. */
.tile--bundle { color: var(--ink); }
.tile--bundle:hover::after { opacity: 0.06; }
.tile--bundle:focus-visible { outline-color: var(--ink); }
.tile--bundle .tile__cat,
.tile--bundle .tile__tagline,
.tile--bundle .tile__deal-note { color: var(--ink-muted); }
.tile--bundle .chip { border-color: rgba(20, 22, 24, 0.18); color: #2B2F34; }
.tile--bundle .chip::before { box-shadow: 0 0 0 1px rgba(20, 22, 24, 0.12); }
.tile--bundle .tile__deal-price,
.tile--bundle .tile__more,
.tile--bundle .tile__more svg { color: var(--ink); }
.tile--bundle .tile__copy { position: relative; z-index: 2; display: flex; flex-direction: column; flex: 1; }
.tile__plugins { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; }
.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 32px;
  padding: 0 14px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-pill);
  color: var(--text-soft);
  font-size: var(--fs-xsmall);
  font-weight: 500;
}
.chip::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--dot, var(--accent));
}
.tile__deal { display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px 14px; margin-top: auto; padding-top: 32px; }
.tile__deal-price { color: var(--accent); font-size: 40px; font-weight: 400; letter-spacing: -0.04em; line-height: 1; }
.tile__deal-note { color: var(--muted); font-size: var(--fs-small); }
.tile--bundle .tile__more { margin-top: 0; }

.tiles-cta { display: flex; justify-content: center; padding-top: 56px; }


/* 14  Statement + dot pager ------------------------------------------------ */

.statement { text-align: center; }
.statement__mark { width: 44px; height: 44px; margin: 0 auto; color: var(--accent); }
.statement__slides { display: grid; margin-top: 36px; }
.statement__slide {
  grid-area: 1 / 1;
  transition: opacity 600ms var(--ease), transform 600ms var(--ease);
}
.js .statement__slide:not(.is-active) {
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
}
html:not(.js) .statement__slide { grid-area: auto; }
html:not(.js) .statement__slide + .statement__slide { margin-top: 40px; }
.statement__text {
  max-width: 56rem;
  margin-inline: auto;
  font-size: clamp(26px, 1.4vw + 16px, 36px);
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: -0.025em;
  text-wrap: balance;
}
.statement__meta { margin-top: 32px; color: var(--muted); font-size: var(--fs-small); }

.pager { display: flex; justify-content: center; gap: 4px; margin-top: 28px; }
.pager__dot {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
}
.pager__dot::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 4px;
  background: rgba(230, 232, 236, 0.45); /* 3.6:1 on the page, like any control */
  transition: width var(--dur) var(--ease), background-color var(--dur) var(--ease);
}
.pager__dot:hover::before { background: var(--text-soft); }
.pager__dot[aria-current="true"]::before { width: 22px; background: var(--accent); }


/* 15  Latest (featured card + post list) ----------------------------------- */

.latest {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 56px;
}
@media (min-width: 1024px) {
  .latest { grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 48px; }
  .latest__featured { grid-column: span 7; }
  .latest__list { grid-column: span 5; }
}

.post-card { position: relative; }
.post-card__media {
  display: grid;
  place-items: center;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  background:
    radial-gradient(70% 70% at 50% 100%, var(--media-glow, rgb(var(--accent-rgb) / 0.08)), transparent 70%),
    var(--surface);
}
/* A 10:7 window centred in the 16:10 frame at ~82% of its height. */
.post-card__media img {
  width: 73%;
  border-radius: 8px;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.06), 0 24px 48px -16px rgba(0, 0, 0, 0.7);
  transition: transform 700ms var(--ease-out);
}
.post-card:hover .post-card__media img { transform: scale(1.025); }

.post-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: var(--fs-xsmall);
}
.post-meta > * + *::before {
  content: "";
  display: inline-block;
  width: 3px;
  height: 3px;
  margin-right: 10px;
  border-radius: 50%;
  background: currentColor;
  vertical-align: middle;
}
.post-card .post-meta { margin-top: 28px; }
.post-card__title {
  margin-top: 12px;
  font-size: clamp(24px, 1vw + 16px, 30px);
  line-height: 1.2;
  letter-spacing: -0.025em;
}
.post-card__excerpt { margin-top: 14px; max-width: 36rem; color: var(--muted); font-size: 15px; line-height: 1.7; }

/* Whole card / item clickable through the title link. */
.stretched-link { text-decoration: none; transition: color var(--dur) var(--ease); }
.stretched-link::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.post-card:hover .stretched-link,
.post-item:hover .stretched-link { color: var(--accent); }

.post-list { border-top: 1px solid var(--line); }
.post-item { position: relative; padding: 28px 0; border-bottom: 1px solid var(--line); }
.post-item:first-child { padding-top: 24px; }
.post-item__title { margin-top: 10px; font-size: 20px; font-weight: 500; line-height: 1.3; letter-spacing: -0.02em; }
.post-item__excerpt { margin-top: 8px; max-width: 36rem; color: var(--muted); font-size: var(--fs-small); line-height: 1.65; }
@media (min-width: 1024px) {
  .post-list { border-top: 0; }
  .post-item:first-child { padding-top: 0; }
}


/* 16  Price grid (collapsed borders) --------------------------------------- */

.price-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}
@media (min-width: 680px) { .price-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .price-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

.price-cell {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 32px 24px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  transition: background-color var(--dur) var(--ease);
}
@media (min-width: 680px) { .price-cell { padding: 40px; } }
.price-cell:hover { background: var(--surface); }
.price-cell__top { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 26px; margin-bottom: 18px; }
.price-cell__name { transition: color var(--dur) var(--ease); }
.price-cell:hover .price-cell__name { color: var(--accent); }
.price-cell__desc { margin-top: 10px; color: var(--muted); font-size: 15px; line-height: 1.6; max-width: 26rem; }
.price-cell__price {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 10px;
  margin-top: auto;
  padding-top: 32px;
}
.price-cell__amount { font-size: 40px; font-weight: 400; letter-spacing: -0.04em; line-height: 1; font-variant-numeric: tabular-nums; }
.price-cell__once { color: var(--muted); font-size: var(--fs-xsmall); }
.release-status { color: var(--plugin-accent, var(--accent)); font-size: 15px; font-weight: 500; letter-spacing: 0; line-height: 1.4; }
.release-note { color: var(--muted); font-size: 15px; line-height: 1.5; }
.product-hero__copy > .release-status { margin-top: 28px; }
.tile__deal-price[data-release-status] { font-size: 28px; letter-spacing: -0.02em; }
.btn:disabled { cursor: default; opacity: 0.55; transform: none; }
.price-cell__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; margin-top: 24px; }

.price-cell--featured {
  background: linear-gradient(180deg, rgb(var(--accent-rgb) / 0.07), rgb(var(--accent-rgb) / 0.02));
  box-shadow: inset 0 0 0 1px rgb(var(--accent-rgb) / 0.55);
}
.price-cell--featured:hover { background: linear-gradient(180deg, rgb(var(--accent-rgb) / 0.1), rgb(var(--accent-rgb) / 0.03)); }
.price-cell--featured .price-cell__amount { color: var(--accent); }
.save-pill {
  display: inline-block;
  height: 26px;
  line-height: 26px;
  padding: 0 12px;
  border-radius: var(--radius-pill);
  background: var(--accent);
  color: var(--on-accent);
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}


/* 17  FAQ ------------------------------------------------------------------ */

.faq {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 40px;
}
@media (min-width: 1024px) {
  .faq { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 64px; }
}
.faq__intro p { margin-top: 20px; color: var(--muted); max-width: 24rem; }
.faq__intro .text-link { margin-top: 24px; }
.faq__list { border-top: 1px solid var(--line); }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 24px 0;
  font-size: 18px;
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.4;
  list-style: none;
  cursor: pointer;
  transition: color var(--dur) var(--ease);
}
.faq__q::-webkit-details-marker { display: none; }
.faq__q:hover { color: var(--accent); }
.faq__icon { position: relative; width: 14px; height: 14px; flex: none; color: var(--accent); }
.faq__icon::before,
.faq__icon::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  width: 14px;
  height: 1.5px;
  margin-top: -0.75px;
  border-radius: 2px;
  background: currentColor;
  transition: transform var(--dur) var(--ease);
}
.faq__icon::after { transform: rotate(90deg); }
.faq__item[open] .faq__icon::after { transform: rotate(0deg); }
.faq__a { padding: 0 48px 28px 0; color: var(--muted); max-width: 44rem; line-height: 1.7; }
.faq__a a { color: var(--text); }
.faq__a a:hover { color: var(--accent); }
.faq__a code { font-family: var(--font); color: var(--text-soft); }


/* 18  CTA band ------------------------------------------------------------- */

.cta-band {
  background: var(--accent);
  color: var(--on-accent);
  padding-block: clamp(88px, 8vw + 24px, 144px);
}
.cta-band__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 48px;
}
.cta-band__title {
  font-size: clamp(48px, 6.2vw + 8px, 96px);
  font-weight: 500;
  line-height: 0.98;
  letter-spacing: -0.045em;
}
.cta-band__side { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; max-width: 22rem; }
.cta-band__note { color: rgba(20, 22, 24, 0.78); font-size: 15px; line-height: 1.55; }


/* 19  Footer + newsletter pill form ---------------------------------------- */

.site-footer {
  background: var(--surface);
  border-top: 1px solid var(--line);
  padding-top: clamp(64px, 5vw + 24px, 96px);
}
.footer__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 48px 24px;
  padding-bottom: 64px;
}
.footer__brand,
.footer__news { grid-column: 1 / -1; }
@media (min-width: 1024px) {
  .footer__grid { grid-template-columns: minmax(0, 1.5fr) minmax(0, 0.8fr) minmax(0, 0.8fr) minmax(0, 1.7fr); gap: 48px; }
  .footer__brand, .footer__news { grid-column: auto; }
}
.footer__promise { margin-top: 20px; max-width: 18rem; color: var(--muted); font-size: 15px; line-height: 1.6; }
.footer__email { display: inline-block; margin-top: 16px; color: var(--text); font-size: 15px; text-decoration: none; }
.footer__email:hover { color: var(--accent); }
.footer__heading { margin-bottom: 18px; color: var(--text); font-size: var(--fs-small); font-weight: 500; letter-spacing: 0; }
.footer__links { display: grid; gap: 12px; }
.footer__links a { color: var(--muted); font-size: 15px; text-decoration: none; transition: color var(--dur) var(--ease); }
.footer__links a:hover { color: var(--accent); }
.footer__news p { color: var(--muted); font-size: 15px; line-height: 1.6; max-width: 26rem; }
.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  padding-block: 24px 32px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: var(--fs-xsmall);
}

.pill-form {
  display: flex;
  align-items: center;
  gap: 8px;
  max-width: 28rem;
  margin-top: 20px;
  padding: 5px;
  /* The input has no outline of its own, so this edge has to read as a
     control boundary (3:1). */
  border: 1px solid rgba(230, 232, 236, 0.38);
  border-radius: var(--radius-pill);
  background: var(--bg);
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.pill-form:focus-within { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.pill-form__input {
  flex: 1;
  min-width: 0;
  height: 40px;
  padding: 0 16px;
  border: 0;
  background: transparent;
  color: var(--text);
  font-size: 15px;
}
.pill-form__input::placeholder { color: var(--muted); opacity: 1; }
.pill-form__input:focus-visible { outline: none; }
.pill-form .btn { flex: none; }
.form-msg { max-width: 28rem; margin-top: 12px; min-height: 1.5em; color: var(--muted); font-size: var(--fs-small); line-height: 1.55; }
.form-msg.is-success { color: var(--text-soft); }
.form-msg a { color: var(--text); text-decoration-color: var(--line-strong); }
.form-msg a:hover { color: var(--accent); }


/* 20  Cart drawer ---------------------------------------------------------- */

.cart-overlay {
  position: fixed;
  inset: 0;
  z-index: 80;
  background: rgba(8, 9, 10, 0.62);
  opacity: 0;
  visibility: hidden;
  transition: opacity 400ms var(--ease), visibility 0s linear 400ms;
}
.cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 90;
  display: flex;
  flex-direction: column;
  width: min(440px, 100%);
  background: var(--surface);
  border-left: 1px solid var(--line);
  box-shadow: -24px 0 64px -24px rgba(0, 0, 0, 0.6);
  transform: translateX(100%);
  visibility: hidden;
  transition: transform 450ms var(--ease-out), visibility 0s linear 450ms;
}
.cart-is-open .cart-overlay { opacity: 1; visibility: visible; transition: opacity 400ms var(--ease), visibility 0s; }
.cart-is-open .cart-drawer { transform: none; visibility: visible; transition: transform 450ms var(--ease-out), visibility 0s; }

.cart-drawer__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: var(--header-h);
  padding: 0 24px;
  border-bottom: 1px solid var(--line);
}
.cart-drawer__title { font-size: 20px; font-weight: 500; letter-spacing: -0.02em; }
.cart-drawer__title span { color: var(--muted); font-weight: 400; }
.cart-drawer__close svg { width: 18px; height: 18px; }
.cart-drawer__body { flex: 1; overflow-y: auto; padding: 8px 24px 24px; overscroll-behavior: contain; }
.cart-drawer__foot { padding: 24px; border-top: 1px solid var(--line); }

.cart-line {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 14px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}
.cart-line__dot { width: 10px; height: 10px; border-radius: 50%; background: var(--dot, var(--accent)); }
.cart-line__name { display: block; font-size: 15px; font-weight: 500; color: var(--text); text-decoration: none; }
.cart-line__name:hover { color: var(--accent); }
.cart-line__sub { display: block; margin-top: 2px; color: var(--muted); font-size: var(--fs-xsmall); line-height: 1.45; }
.cart-line__price { font-size: 15px; font-variant-numeric: tabular-nums; }
.cart-line__remove { width: 32px; height: 32px; }
.cart-line__remove svg { width: 14px; height: 14px; }

.cart-hint {
  margin-top: 20px;
  padding: 16px 18px;
  border: 1px solid rgb(var(--accent-rgb) / 0.35);
  border-radius: 12px;
  background: var(--accent-soft);
  font-size: var(--fs-small);
  line-height: 1.55;
}
.cart-hint strong { font-weight: 500; color: var(--accent); }
.cart-hint .btn { margin-top: 12px; }

.cart-empty { padding: 40px 0 8px; color: var(--muted); }
.cart-empty p + p { margin-top: 20px; }

.cart-total { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; }
.cart-total__label { color: var(--muted); font-size: 15px; }
.cart-total__value { font-size: 24px; font-weight: 500; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.cart-drawer__note { margin-top: 6px; color: var(--muted); font-size: var(--fs-xsmall); }
.cart-drawer__actions { display: grid; gap: 10px; margin-top: 20px; }


/* 21  Toast ---------------------------------------------------------------- */

.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  z-index: 120;
  width: max-content;
  max-width: calc(100vw - 32px);
  padding: 13px 22px;
  border-radius: var(--radius-pill);
  background: var(--text);
  color: var(--on-accent);
  font-size: var(--fs-small);
  font-weight: 500;
  line-height: 1.4;
  box-shadow: 0 16px 40px -12px rgba(0, 0, 0, 0.6);
  opacity: 0;
  visibility: hidden;
  transform: translate(-50%, 16px);
  transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease), visibility 0s linear var(--dur);
}
.toast.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
  transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease), visibility 0s;
}


/* 22  Window frame (real screenshots) -------------------------------------- */

.window-frame {
  overflow: hidden;
  border-radius: 12px;
  background: #141618;   /* the plugin's canvas, shown while the image loads */
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.08),
    0 40px 80px -24px rgba(0, 0, 0, 0.75),
    0 12px 24px -12px rgba(0, 0, 0, 0.5);
}
.window-frame img { width: 100%; }


/* 23  Plugin window mockup (.pui) ------------------------------------------ */
/* Rendered by plugin-ui.js in the layout of the real AutoPitch 0.1.18 window.
   Positions are in units of its 1200 x 840 design canvas (10:7), scaled with
   container query units: --u is 1/1200 of the window's width. --y on text is
   the baseline: with line-height 1, Inter's baseline sits 0.8633em below the
   top of the line box. */

.pui {
  --pui-accent: var(--accent);
  --pui-bg: #141618;
  --pui-text: #F4F1EA;
  --pui-soft: #CFCBC3;
  --pui-muted: #8B929C;
  --pui-line: rgba(230, 232, 236, 0.10);
  --pui-tick: rgba(230, 232, 236, 0.11);
  --pui-tick-major: rgba(230, 232, 236, 0.28);
  container-type: inline-size;
  position: relative;
  width: 100%;
  aspect-ratio: 10 / 7;
  overflow: hidden;
  border-radius: 12px;
  background: var(--pui-bg);
  color: var(--pui-text);
  font-family: var(--font);
  font-weight: 400;
  line-height: 1;
  letter-spacing: 0;
  -webkit-user-select: none;
  user-select: none;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.08),
    0 40px 80px -24px rgba(0, 0, 0, 0.75),
    0 12px 24px -12px rgba(0, 0, 0, 0.5);
}
.pui--flat { box-shadow: none; border-radius: 0; }
.pui__win {
  --u: calc(100cqw / 1200);
  position: absolute;
  inset: 0;
}
.pui__t {
  position: absolute;
  left: calc(var(--x) * var(--u));
  top: calc((var(--y) - var(--fs) * 0.8633) * var(--u));
  font-size: calc(var(--fs) * var(--u));
  line-height: 1;
  white-space: nowrap;
}
.pui__t--c { transform: translateX(-50%); }
.pui__t--r { transform: translateX(-100%); }
.pui__soft { color: var(--pui-soft); }
.pui__muted { color: var(--pui-muted); }
.pui__title { font-weight: 400; }
.pui__value { letter-spacing: -0.01em; }
.pui__ver { margin-left: calc(7.4 * var(--u)); }

/* .pui in the selector so page rules like ".shot__frame img" can't resize it. */
.pui .pui__logo {
  position: absolute;
  left: calc(48.7 * var(--u));
  top: calc(27.8 * var(--u));
  width: auto;
  height: calc(36.4 * var(--u));
  max-width: none;
}

.pui__line {
  position: absolute;
  left: calc(var(--x) * var(--u));
  top: calc(var(--y) * var(--u));
  width: calc(var(--w) * var(--u));
  height: max(1px, calc(1 * var(--u)));
  background: var(--pui-line);
}
.pui__line--v { width: max(1px, calc(1 * var(--u))); height: calc(var(--h) * var(--u)); }

.pui__icon {
  position: absolute;
  left: calc(var(--x) * var(--u));
  top: calc(var(--y) * var(--u));
  width: calc(var(--w) * var(--u));
  height: calc(var(--h) * var(--u));
  overflow: visible;
}
.pui__icon--arrow { color: var(--pui-accent); }
.pui__icon--chev { color: var(--pui-soft); }

/* Footer status dot */
.pui__led {
  position: absolute;
  left: calc((var(--x) - 2.6) * var(--u));
  top: calc((var(--y) - 2.6) * var(--u));
  width: calc(5.2 * var(--u));
  height: calc(5.2 * var(--u));
  border-radius: 50%;
  background: var(--pui-accent);
}

/* Dials */
.pui__knob {
  position: absolute;
  left: calc((var(--x) - var(--r)) * var(--u));
  top: calc((var(--y) - var(--r)) * var(--u));
  width: calc(var(--r) * 2 * var(--u));
  height: calc(var(--r) * 2 * var(--u));
  border-radius: 50%;
}
.pui__knob svg { display: block; width: 100%; height: 100%; overflow: visible; }
.pui__knob[role="slider"] { cursor: ns-resize; touch-action: none; }
.pui__knob[role="slider"]:focus-visible { outline: 2px solid var(--pui-accent); outline-offset: 2px; }
.pui__knob .pui__t { pointer-events: none; }
.pui__tick { fill: none; stroke: var(--pui-tick); stroke-width: 1.5; }
.pui__tick--major { stroke: var(--pui-tick-major); }
.pui__track { fill: none; stroke: var(--pui-line); stroke-linecap: round; }
.pui__sweep { fill: none; stroke: var(--pui-accent); stroke-linecap: round; }
.pui__dot { fill: var(--pui-accent); }
.pui__rim { fill: none; stroke: rgba(230, 232, 236, 0.12); stroke-width: 1; }
.pui__rim--inner { stroke: rgba(0, 0, 0, 0.1); }
.pui__ptr { fill: none; stroke: var(--pui-text); }

/* Knob-only variant (data-part="knob"): one large dial in a 324 x 324 box. */
.pui--knob {
  aspect-ratio: 1;
  overflow: visible;
  border-radius: 0;
  background: none;
  box-shadow: none;
}
.pui--knob .pui__win { --u: calc(100cqw / 324); }


/* 24  Reveal on scroll ----------------------------------------------------- */
/* Only hides content when JS is running (html.js). A 3s CSS failsafe reveals
   everything if site.js never starts; site.js cancels it with .reveal-ready. */

@media (prefers-reduced-motion: no-preference) {
  .js .reveal {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 800ms var(--ease-out), transform 800ms var(--ease-out);
    transition-delay: var(--reveal-delay, 0ms);
    animation: reveal-failsafe 1ms linear 3s forwards;
  }
  .js.reveal-ready .reveal { animation: none; }
  .js .reveal.is-visible { opacity: 1; transform: none; }
}
@keyframes reveal-failsafe {
  to { opacity: 1; transform: none; }
}


/* 25  Reduced motion ------------------------------------------------------- */

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 1ms !important;
    scroll-behavior: auto !important;
  }
  .pitch-art__scroll { animation: none !important; }
  .tile:hover .tile__media,
  .post-card:hover .post-card__media img { transform: none; }
}


/* 26  Touch targets -------------------------------------------------------- */
/* On touch screens every control is at least 44 px tall. */

@media (pointer: coarse) {
  .btn--sm { min-height: 44px; }
  .text-link { min-height: 44px; }
  .cart-line__remove,
  .pager__dot { width: 44px; height: 44px; }
  .footer__links { gap: 0; }
  .footer__links a,
  .crumbs a { display: inline-flex; align-items: center; min-height: 44px; }
}
