/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: var(--space-2);
  padding: 0.8rem 1.35rem; border-radius: var(--radius-pill);
  font-family: var(--font-body); font-size: var(--text-sm); font-weight: 600; line-height: 1.2;
  text-decoration: none; border: 1px solid transparent; cursor: pointer; white-space: nowrap;
}
.btn-sm { padding: 0.55rem 1rem; font-size: var(--text-xs); }
.btn-block { width: 100%; justify-content: center; }
.btn-primary { background: var(--brand-gradient); color: var(--on-brand); box-shadow: 0 10px 30px -8px rgba(123, 47, 191, 0.45); }
.btn-primary:hover { background: var(--brand-dark); color: var(--on-brand); }
.btn-dark { background: var(--brand-dark); color: var(--on-brand); }
.btn-dark:hover { background: var(--brand); color: var(--on-brand); }
.btn-ghost { border-color: var(--brand); color: var(--brand); background: transparent; }
.btn-ghost:hover { background: var(--brand); color: var(--on-brand); }
.btn-light { background: var(--paper); color: var(--ink); }
.btn-light:hover { background: var(--sand); color: var(--ink); }
.btn .icon { width: 16px; height: 16px; }
.btn-row { display: flex; flex-wrap: wrap; gap: var(--space-3); align-items: center; }

/* Hero */
.hero { padding-block: var(--space-8) var(--space-8); background: linear-gradient(180deg, var(--brand-tint) 0%, var(--paper) 100%); }
.hero h1 { font-style: italic; max-width: 14ch; }
.hero .lead { margin-bottom: var(--space-6); }
.hero-trust { display: flex; align-items: center; flex-wrap: wrap; gap: var(--space-2) var(--space-4); margin-top: var(--space-5); font-size: var(--text-sm); color: var(--muted); }
.hero-trust strong { color: var(--ink); }
.page-hero { padding-block: var(--space-8) var(--space-7); }
.page-hero h1 { max-width: 18ch; }

/* Storefront grid */
.product-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-3); position: relative; }
.tile {
  position: relative; aspect-ratio: 4 / 5; border-radius: var(--radius-sm);
  background: var(--sand); padding: var(--space-3);
  display: flex; flex-direction: column; justify-content: flex-end; gap: 2px;
  font-size: var(--text-xs); color: var(--ink-soft); overflow: hidden;
}
.tile-shape {
  position: absolute; inset: 12% 18% 30%; width: 64%; height: 58%;
  fill: rgba(255, 255, 255, 0.62); stroke: rgba(17, 24, 39, 0.24); stroke-width: 1.6; stroke-linejoin: round;
}
.tile.is-muted .tile-shape { fill: rgba(255, 255, 255, 0.5); }
.product-grid-wide { grid-template-columns: repeat(3, 1fr); }
@media (min-width: 900px) { .product-grid-wide { grid-template-columns: repeat(6, 1fr); } }
.tile-name { position: relative; font-weight: 600; }
.tile-price { position: relative; color: var(--muted); }
.tile-handle { position: absolute; top: 8px; left: 8px; opacity: 0.5; color: var(--ink-soft); }
.tile-tag {
  position: absolute; top: 8px; right: 8px; background: var(--ink); color: var(--paper);
  font-size: 10px; font-weight: 600; padding: 2px 8px; border-radius: var(--radius-pill);
}
.tone-0 { background: var(--sand); }
.tone-1 { background: var(--clay); }
.tone-2 { background: var(--brand-tint); }
.tone-3 { background: var(--brand-soft); }
.tone-4 { background: var(--paper-deep); }
.tone-accent { background: var(--amber); color: var(--ink); }

/* Trust bar */
.trust-bar { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr)); gap: var(--space-5); text-align: center; }
.trust-stat strong { display: block; font-family: var(--font-display); font-size: var(--text-3xl); font-weight: 400; line-height: 1; margin-bottom: var(--space-2); }
.trust-stat span { font-size: var(--text-sm); color: var(--muted); }

/* Cards */
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: var(--space-5);
}
.card h3 { margin-bottom: var(--space-2); }
.card p:last-child { margin-bottom: 0; }
.card-icon {
  display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
  background: var(--paper-deep); color: var(--accent); margin-bottom: var(--space-4);
}
.card-link { text-decoration: none; display: block; color: inherit; }
.card-link:hover { color: inherit; }
.card-link .more { display: inline-flex; gap: var(--space-1); align-items: center; font-size: var(--text-sm); font-weight: 600; margin-top: var(--space-3); color: var(--accent); }
.pill {
  display: inline-block; font-size: 11px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase;
  padding: 3px 10px; border-radius: var(--radius-pill); background: var(--paper-deep); color: var(--muted);
}
.pill-pro { background: var(--ink); color: var(--paper); }
.pill-free { background: var(--brand-soft); color: var(--ink); }

.check-list { list-style: none; padding: 0; margin: 0 0 var(--space-5); display: grid; gap: var(--space-2); align-content: start; font-size: var(--text-sm); }
.check-list li { display: flex; gap: var(--space-2); align-items: flex-start; }
.check-list .icon { flex: none; color: var(--success); margin-top: 1px; }

/* Media frame */
.media-frame {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: var(--space-3); box-shadow: var(--shadow);
}
.media-frame img, .media-frame iframe { border-radius: var(--radius); width: 100%; }
.video-embed { position: relative; aspect-ratio: 16 / 9; }
.video-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; border-radius: var(--radius); }
.placeholder {
  display: grid; place-items: center; text-align: center; aspect-ratio: 16 / 10;
  background: var(--paper-deep); border: 1px dashed var(--line-strong);
  border-radius: var(--radius); color: var(--muted); font-size: var(--text-sm); padding: var(--space-4);
}

/* Plans */
.plans-grid { display: grid; gap: var(--space-4); grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); align-items: stretch; }
.plan-card {
  position: relative; display: flex; flex-direction: column;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: var(--space-6) var(--space-5);
}
.plan-card.is-highlight { border-color: var(--brand); box-shadow: 0 10px 30px -8px rgba(123, 47, 191, 0.3); }
.plan-card .check-list { flex: 1; }
.plan-badge {
  position: absolute; top: -12px; left: var(--space-5); background: var(--accent); color: var(--accent-ink);
  font-size: 11px; font-weight: 600; padding: 3px 12px; border-radius: var(--radius-pill); letter-spacing: 0.04em;
}
.plan-name { font-size: var(--text-2xl); margin-bottom: var(--space-1); }
.plan-tagline { font-size: var(--text-sm); min-height: 2.6em; }
.plan-price { display: flex; align-items: baseline; gap: 2px; margin: var(--space-3) 0 var(--space-1); }
.price-currency { font-size: var(--text-lg); color: var(--muted); }
.price-amount { font-family: var(--font-display); font-size: 3rem; line-height: 1; }
.price-suffix { color: var(--muted); font-size: var(--text-sm); margin-left: 4px; }
.plan-note { font-size: var(--text-xs); color: var(--muted); margin-bottom: var(--space-4); min-height: 1.4em; }
.plan-annual-only { font-size: var(--text-xs); font-weight: 600; color: var(--amber-deep); margin: calc(var(--space-3) * -1) 0 var(--space-3); }

.billing-toggle {
  display: inline-flex; padding: 4px; border-radius: var(--radius-pill); background: var(--paper-deep); border: 1px solid var(--line);
  margin-bottom: var(--space-6);
}
.billing-toggle button {
  border: 0; background: none; padding: 0.55rem 1.1rem; border-radius: var(--radius-pill);
  font: 600 var(--text-sm) var(--font-body); color: var(--muted); cursor: pointer;
}
.billing-toggle button[aria-pressed="true"] { background: var(--brand); color: var(--on-brand); }
.billing-toggle .save { font-size: 11px; color: var(--amber-deep); margin-left: 4px; }
.billing-toggle button[aria-pressed="true"] .save { color: var(--amber-soft); }

.guarantee {
  display: grid; gap: var(--space-4); grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
  background: var(--surface); border: 1px dashed var(--line-strong); border-radius: var(--radius-lg); padding: var(--space-5);
}
.guarantee-item { display: flex; gap: var(--space-3); align-items: flex-start; font-size: var(--text-sm); }
.guarantee-item .icon { flex: none; color: var(--accent); }
.guarantee-item strong { display: block; }

/* Compare table */
.compare-table { width: 100%; border-collapse: collapse; background: var(--surface); border-radius: var(--radius); overflow: hidden; font-size: var(--text-sm); }
.compare-table th, .compare-table td { padding: var(--space-3) var(--space-4); border-bottom: 1px solid var(--line); text-align: left; }
.compare-table td { text-align: center; width: 90px; }
.compare-table thead th { font-size: var(--text-xs); text-transform: uppercase; letter-spacing: var(--tracking-label); color: var(--muted); background: var(--paper-deep); }
.compare-table thead th:not(:first-child) { text-align: center; }
.compare-table tbody th { font-weight: 500; }
.compare-table .yes { color: var(--success); display: inline-flex; }
.compare-table .no { color: var(--line-strong); display: inline-flex; }

/* Reviews */
.reviews-grid { columns: 3 280px; column-gap: var(--space-4); }
.review-card {
  break-inside: avoid; margin: 0 0 var(--space-4); background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: var(--space-5);
}
.stars { color: var(--amber-deep); letter-spacing: 2px; margin-bottom: var(--space-3); }
.review-card blockquote { margin: 0 0 var(--space-4); font-family: var(--font-display); font-size: var(--text-lg); line-height: 1.45; }
.review-card blockquote p { margin: 0; }
.review-card blockquote p::before { content: "\201C"; } .review-card blockquote p::after { content: "\201D"; }
.review-card figcaption { display: flex; justify-content: space-between; gap: var(--space-3); font-size: var(--text-xs); flex-wrap: wrap; }
.review-name { font-weight: 600; }
.review-link { color: var(--muted); }

/* FAQ */
.faq-list { border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary {
  list-style: none; cursor: pointer; padding: var(--space-5) var(--space-6) var(--space-5) 0; position: relative;
  font-family: var(--font-display); font-size: var(--text-xl); line-height: var(--leading-snug);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+"; position: absolute; right: 0; top: 50%; transform: translateY(-50%);
  font-family: var(--font-body); font-size: 1.5rem; color: var(--accent); transition: transform var(--dur-fast) var(--ease);
}
.faq-item[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq-answer { padding-bottom: var(--space-5); color: var(--ink-soft); max-width: 62ch; }

/* CTA band */
.cta-band {
  display: grid; gap: var(--space-6); align-items: center;
  background: var(--brand-gradient-deep); color: var(--on-brand); border-radius: var(--radius-lg); padding: var(--space-7) var(--space-6);
}
.cta-band h2 { font-style: italic; }
.cta-band .lead { color: var(--on-brand-muted); margin: 0; }
.cta-actions { display: flex; flex-wrap: wrap; gap: var(--space-3); }
@media (min-width: 900px) { .cta-band { grid-template-columns: 1.6fr 1fr; padding: var(--space-8); } .cta-actions { justify-content: flex-end; } }

/* Steps */
.steps { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--space-4); counter-reset: step; }
.steps > li { counter-increment: step; display: grid; grid-template-columns: 44px 1fr; gap: var(--space-4); align-items: start; }
.steps > li::before {
  content: counter(step); display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
  background: var(--ink); color: var(--paper); font-family: var(--font-display); font-size: var(--text-lg);
}
.steps h3 { margin: 6px 0 var(--space-2); }
.steps p { margin: 0; color: var(--muted); }

/* Prose (legal, posts) */
.prose { max-width: 70ch; font-size: var(--text-lg); overflow-wrap: anywhere; }
.prose h2 { font-size: var(--text-2xl); margin-top: var(--space-7); }
.prose h3 { margin-top: var(--space-6); }
.prose li { margin-bottom: var(--space-2); }
.prose pre { background: var(--ink); color: var(--paper); padding: var(--space-4); border-radius: var(--radius); overflow-x: auto; font-size: var(--text-sm); }
.prose pre code { background: none; padding: 0; color: inherit; }
.prose blockquote { margin: var(--space-5) 0; padding-left: var(--space-5); border-left: 3px solid var(--accent); font-family: var(--font-display); font-style: italic; }
.prose table { width: 100%; border-collapse: collapse; font-size: var(--text-sm); }
.prose th, .prose td { border-bottom: 1px solid var(--line); padding: var(--space-2) var(--space-3); text-align: left; }
.notice {
  background: var(--brand-tint); color: var(--ink); border-radius: var(--radius); padding: var(--space-3) var(--space-4);
  font-size: var(--text-sm); margin-bottom: var(--space-6);
}

/* Forms */
.form { display: grid; gap: var(--space-4); }
.form-row { display: grid; gap: var(--space-4); grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); }
.field { display: grid; gap: var(--space-2); font-size: var(--text-sm); font-weight: 500; }
.field input, .field select, .field textarea {
  font: inherit; font-weight: 400; padding: 0.75rem 0.9rem; border: 1px solid var(--line-strong); border-radius: var(--radius);
  background: var(--surface); color: var(--ink); width: 100%;
}
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: transparent; }

/* Posts */
.post-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; }
.post-card a { text-decoration: none; }
.post-card-cover { display: block; aspect-ratio: 16 / 9; background: #fff; overflow: hidden; border-bottom: 1px solid var(--line); }
.post-card-cover img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform var(--dur) var(--ease); }
.post-card:hover .post-card-cover img { transform: scale(1.03); }
.post-card-cover-lead { border: 1px solid var(--line); border-radius: var(--radius-lg); }
.post-card-body { padding: var(--space-5); display: flex; flex-direction: column; gap: var(--space-2); flex: 1; }
.post-card-body h3 { margin: 0; }
.post-meta { font-size: var(--text-xs); color: var(--muted); display: flex; flex-wrap: wrap; gap: var(--space-2); }
.filter-row { display: flex; flex-wrap: wrap; gap: var(--space-2); margin-bottom: var(--space-6); }
.filter-row a { text-decoration: none; padding: 0.4rem 0.9rem; border: 1px solid var(--line-strong); border-radius: var(--radius-pill); font-size: var(--text-sm); }
.filter-row a[aria-current="page"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }


html:not(.js) .billing-toggle { display: none; }

/* Order summary */
.summary-list { margin: var(--space-4) 0 0; display: grid; gap: var(--space-2); }
.summary-list div { display: flex; justify-content: space-between; gap: var(--space-4); padding-bottom: var(--space-2); border-bottom: 1px solid var(--line); font-size: var(--text-sm); }
.summary-list dt { color: var(--muted); }
.summary-list dd { margin: 0; font-weight: 600; text-align: right; }


/* Hero hint and trust line */
.hero-hint { font-size: var(--text-sm); color: var(--muted); margin: var(--space-4) 0 0; max-width: 46ch; }
.hero-trust a { text-decoration: none; }
.hero-trust a:hover strong { color: var(--accent); }
@media (max-width: 720px) {
  .hero { padding-block: var(--space-6) var(--space-7); }
  .hero .split { gap: var(--space-6); }
  .scene-hero .tile { aspect-ratio: 1; }
}

/* Storefront scenes */
.scene { margin: 0; }
.scene-caption {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: var(--space-2) var(--space-4);
  margin-top: var(--space-3); font-size: var(--text-xs); color: var(--muted);
}
.motion-toggle {
  display: inline-flex; align-items: center; gap: var(--space-2); min-height: 32px; padding: 0 var(--space-3);
  border: 1px solid var(--line-strong); border-radius: var(--radius-pill); background: var(--surface);
  font: 500 var(--text-xs) var(--font-body); color: var(--ink-soft); cursor: pointer;
}
.motion-toggle:hover { border-color: var(--ink); color: var(--ink); }
.motion-toggle .motion-icon-play, .motion-toggle.is-paused .motion-icon-pause { display: none; }
.motion-toggle.is-paused .motion-icon-play { display: inline-flex; }
.motion-toggle span { display: inline-flex; }
.shelf-label { font-size: var(--text-sm); color: var(--muted); margin: 0 0 var(--space-3); }
.shelf-label strong { color: var(--ink); font-weight: 600; }
.compare-shelves { display: grid; gap: var(--space-6); }
@media (min-width: 900px) { .compare-shelves { grid-template-columns: 1fr 1fr; gap: var(--space-7); } .compare-shelves .scene-caption { grid-column: 1 / -1; } }
.category-shelves { display: grid; gap: var(--space-5); }
.category-shelves .tile { aspect-ratio: 1; }
.tile.is-muted { filter: saturate(0.4); opacity: 0.72; }
.tile.is-selected { outline: 2px solid var(--brand); outline-offset: 3px; }
.tile.is-selected::before {
  content: ""; position: absolute; top: 7px; right: 7px; width: 16px; height: 16px; border-radius: 50%;
  background: var(--brand) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.5l2.5 2.5L12 5.5' fill='none' stroke='%23fbf8f3' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 12px no-repeat;
}
.feature-scene .split { gap: var(--space-7); }
.feature-scene h2 { margin-top: var(--space-4); }
.sort-chips { display: flex; flex-wrap: wrap; gap: var(--space-2); margin-bottom: var(--space-4); }
.sort-chip {
  min-height: 36px; padding: 0 var(--space-4); border-radius: var(--radius-pill);
  border: 1px solid var(--line-strong); background: var(--surface); color: var(--ink-soft);
  font: 500 var(--text-sm) var(--font-body); cursor: pointer;
  transition: background-color var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease), border-color var(--dur-fast) var(--ease);
}
.sort-chip:hover { border-color: var(--ink); }
.sort-chip[aria-pressed="true"] { background: var(--brand); border-color: var(--brand); color: var(--paper); }
.sort-status { font-weight: 500; color: var(--ink-soft); }

/* Demo video poster */
/* 16:9 like the player it turns into, so the page doesn't jump on play. */
.video-poster-button {
  position: relative; display: grid; place-items: center; width: 100%; aspect-ratio: 16 / 9; padding: 0;
  border: 0; border-radius: var(--radius-lg); background: var(--brand); color: var(--paper); cursor: pointer; overflow: hidden;
  box-shadow: 0 18px 40px -18px rgba(17, 24, 39, 0.45);
}
.video-poster-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform var(--dur-fast) var(--ease); }
.video-poster-button:hover .video-poster-img { transform: scale(1.02); }
.video-poster-play {
  position: relative; display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%;
  background: var(--amber); color: var(--ink); box-shadow: 0 10px 24px rgba(0, 0, 0, 0.3);
  transition: transform var(--dur-fast) var(--ease);
}
.video-poster-button:hover .video-poster-play { transform: scale(1.06); }

/* Use case rows */
.use-case-rows { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--line); }
.use-case-row {
  position: relative; display: grid; gap: var(--space-2) var(--space-6); padding: var(--space-5) var(--space-7) var(--space-5) 0;
  border-bottom: 1px solid var(--line);
}
@media (min-width: 900px) { .use-case-row { grid-template-columns: 1.1fr 1fr 1fr; align-items: baseline; } }
.use-case-row h3 { margin: 0; font-size: var(--text-xl); }
.use-case-row h3 a { text-decoration: none; }
.use-case-row p { margin: 0; font-size: var(--text-sm); color: var(--ink-soft); display: flex; gap: var(--space-2); align-items: baseline; }
.use-case-row .pill { flex: none; }
.row-link { position: absolute; right: 0; top: var(--space-5); color: var(--muted); }
.use-case-row:hover .row-link { color: var(--accent); transform: translateX(3px); transition: transform var(--dur-fast) var(--ease); }

/* Free vs Pro decision */
.section-decision { background: var(--paper-deep); border-block: 1px solid var(--line); }
.decision { display: grid; gap: var(--space-5); max-width: 940px; margin-inline: auto; }
@media (min-width: 820px) { .decision { grid-template-columns: 1fr 1fr; } }
.decision-col { background: var(--surface); border-radius: var(--radius-lg); padding: var(--space-6); display: flex; flex-direction: column; }
.decision-col .check-list { flex: 1; }
.plan-pro { background: var(--ink); color: var(--paper); }
.plan-pro .check-list .icon { color: var(--amber); }
.plan-pro .decision-price span, .plan-pro .decision-note { color: var(--clay); }
.plan-pro .decision-note a { color: var(--paper); }
.decision-col h3 { font-size: var(--text-2xl); margin-bottom: var(--space-2); }
.decision-price { font-family: var(--font-display); font-size: var(--text-2xl); margin-bottom: var(--space-5); }
.decision-price span { display: block; font-family: var(--font-body); font-size: var(--text-sm); color: var(--muted); margin-top: var(--space-1); }
.decision-note { font-size: var(--text-xs); margin: var(--space-3) 0 0; }
.plan-pro .btn-primary { background: var(--amber); color: var(--ink); }
.plan-pro .btn-primary:hover { background: var(--paper); color: var(--ink); }
.reassurance {
  display: flex; gap: var(--space-3); align-items: flex-start; max-width: 720px; margin: var(--space-6) auto 0;
  font-size: var(--text-sm); color: var(--ink-soft);
}
.reassurance .icon { flex: none; color: var(--accent); margin-top: 2px; }

/* Blog list */
.post-list-title { font-size: var(--text-2xl); }
.post-list { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--line); }
.post-list li { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--space-1) var(--space-4); padding: var(--space-4) 0; border-bottom: 1px solid var(--line); }
.post-list a { font-family: var(--font-display); font-size: var(--text-lg); text-decoration: none; }
.post-list time { font-size: var(--text-xs); color: var(--muted); }
.faq-more { margin-top: var(--space-5); }

/* CTA band buttons on dark */
.cta-band .btn-primary { background: var(--amber); color: var(--ink); }
.cta-band .btn-primary:hover { background: var(--paper); color: var(--ink); }
.cta-note { flex-basis: 100%; margin: 0; font-size: var(--text-xs); color: var(--on-brand-muted); }
@media (min-width: 900px) { .cta-note { text-align: right; } }

/* Breadcrumbs and quiet headings */
.breadcrumb { font-size: var(--text-sm); color: var(--muted); margin: 0 0 var(--space-4); }
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--accent); }
.h-quiet { font-family: var(--font-body); font-size: var(--text-sm); font-weight: 600; color: var(--muted); margin-bottom: var(--space-4); }
.summary-plan { font-family: var(--font-display); font-size: var(--text-xl); margin: 0 0 var(--space-2); }
.stars { display: flex; gap: 2px; }

/* Smart Sort band */
.section-band { background: var(--brand-gradient-deep); color: var(--on-brand); }
.section-band .lead, .section-band .scene-caption, .section-band .sort-status { color: var(--on-brand-muted); }
.section-band .btn-ghost { border-color: var(--on-brand-muted); color: var(--on-brand); }
.section-band .btn-ghost:hover { background: var(--paper); color: var(--ink); }
.section-band .pill-pro { background: var(--amber); color: var(--ink); }
.section-band :focus-visible { outline-color: var(--amber); }
.band-head { display: grid; gap: var(--space-5); margin-bottom: var(--space-7); align-items: end; }
@media (min-width: 900px) { .band-head { grid-template-columns: 1fr 1fr; gap: var(--space-8); } }
.band-head h2 { margin: var(--space-4) 0 0; font-size: var(--text-4xl); }
.band-head .lead { margin-bottom: var(--space-4); }
.section-band .sort-chip { background: transparent; border-color: rgba(255, 255, 255, 0.35); color: var(--on-brand); }
.section-band .sort-chip:hover { border-color: var(--paper); color: var(--paper); }
.section-band .sort-chip[aria-pressed="true"] { background: var(--amber); border-color: var(--amber); color: var(--ink); }
.section-band .motion-toggle { background: transparent; border-color: rgba(255, 255, 255, 0.35); color: var(--on-brand); }
.section-band .tile-name { color: var(--ink); }
.does-none { color: var(--muted); font-style: italic; }
.menu-open .site-header .header-mobile-cta { visibility: hidden; }
@media (max-width: 720px) {
  .sort-chips { flex-wrap: nowrap; overflow-x: auto; margin-inline: calc(var(--gutter) * -1); padding: 0 var(--gutter) var(--space-2); scrollbar-width: none; }
  .sort-chip { flex: none; }
}


/* Composition frames (hero, drag, categories): owner crops go in .comp-slot */
.shot-dots { display: inline-flex; gap: 5px; }
.shot-dots i { width: 8px; height: 8px; border-radius: 50%; background: var(--line-strong); }
.comp { position: relative; margin: 0; border-radius: 24px; padding: var(--space-6); }
.comp-hero, .comp-cats { background: var(--brand-soft); }
.comp-drag { background: var(--amber-soft); }
.comp-admin {
  display: grid; grid-template: "bar bar" 20px "side main" auto / 40px 1fr;
  background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden;
}
.wp-skel { display: contents; }
.wp-skel-bar { grid-area: bar; background: #1d2327; }
.wp-skel-side { grid-area: side; display: flex; flex-direction: column; gap: 9px; padding: 12px 9px; background: #2c3338; }
.wp-skel-side i { height: 5px; border-radius: 3px; background: rgba(255, 255, 255, 0.22); }
.wp-skel-side i:nth-child(2) { background: #2271b1; }
.comp-slot {
  grid-area: main; display: grid; place-items: center; margin: 12px; border-radius: var(--radius-sm);
  background: #f6f7f7; border: 1px dashed #c3c4c7; color: #50575e; text-align: center;
}
.comp-slot-hint { display: grid; justify-items: center; gap: var(--space-2); padding: var(--space-4); }
.comp-slot-label { font-weight: 600; font-size: var(--text-sm); color: #1d2327; max-width: 30ch; }
.comp-slot-size { font-size: var(--text-xs); }
.comp-slot img { width: 100%; height: 100%; object-fit: cover; border-radius: inherit; }
.comp-shop {
  position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-lift); padding: 8px 10px 10px;
}
.comp-shop-bar { display: flex; align-items: center; gap: 10px; margin: 0 0 8px; font-size: 11px; color: var(--muted); }
.comp-shop .product-grid { gap: 6px; }
.comp-shop .tile.has-img { padding-bottom: 6px; }
.comp-shop .tile-name, .comp-shop .tile-price { font-size: 10px; }
.comp-shop .tile-tag { font-size: 9px; }
.comp-pill {
  position: absolute; z-index: 3; padding: 8px 14px; border-radius: var(--radius-pill);
  background: var(--ink); color: var(--paper); font: 600 var(--text-sm) var(--font-body);
  box-shadow: 0 8px 20px rgba(17, 24, 39, 0.22); white-space: nowrap;
}

/* Hero: the recorded video fills the frame (its background matches --brand-soft) */
.comp-hero { padding: 0; overflow: hidden; }
.comp-hero video { display: block; width: 100%; height: auto; }
.comp-pill-hero { left: var(--space-6); bottom: var(--space-5); }

/* Drag: the recorded clip with two callouts */
.comp-pill-select { left: 36%; top: 9%; }
.comp-pill-drag { left: var(--space-3); bottom: var(--space-4); }

/* Categories: the category screenshot with two callouts */
.comp-pill-pick { right: var(--space-3); top: 22%; }
.comp-pill-own { left: var(--space-3); bottom: var(--space-4); }

@media (max-width: 720px) {
  .comp { padding: var(--space-4); }
  .comp-pill { position: static; display: inline-block; margin: var(--space-3) var(--space-2) 0 0; transform: none; white-space: normal; }
  .comp-hero { padding: 0 0 var(--space-4); }
  .comp-hero .comp-pill { margin-left: var(--space-4); }
}

/* Photo tiles: white product shot with name and price underneath, like a shop grid */
.tile.has-img { background: #fff; aspect-ratio: auto; padding: 0 0 var(--space-3); gap: 2px; justify-content: flex-start; border: 1px solid var(--line); }
.tile-img { display: block; width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: var(--radius-sm) var(--radius-sm) 0 0; }
.tile.has-img .tile-name { margin-top: var(--space-2); }
.tile.has-img .tile-name, .tile.has-img .tile-price { padding-inline: var(--space-3); }
.tile.has-img.is-muted { filter: grayscale(0.6); opacity: 0.6; }
.tile.has-img .tile-tag { z-index: 1; }
.tile.has-img .tile-handle { z-index: 1; }

/* Let grid columns shrink below the photos' intrinsic width */
.product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.tile { min-width: 0; }
.split > * { min-width: 0; }
@media (min-width: 900px) { .product-grid-wide { grid-template-columns: repeat(6, minmax(0, 1fr)); } }

/* Filled slots */
.comp-slot.has-img { background: #f0f0f1; border: 0; margin: 0; border-radius: 0; overflow: hidden; }
.comp-slot.has-img img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top left; }

/* Recorded plugin clips (animated WebP) on the features and use-case pages */
.clip-frame { margin: 0; overflow: hidden; background: #f0f0f1; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.clip-frame img { display: block; width: 100%; height: auto; }

/* Multilingual use case: the same shelf in two languages */
.lang-shelves { display: grid; gap: var(--space-4); justify-items: stretch; }
.lang-shop { padding: 10px 12px 12px; }
.lang-shop .product-grid { gap: var(--space-3); }
.lang-shop .tile-name, .lang-shop .tile-price { font-size: var(--text-sm); }
.lang-shop .tile-tag { font-size: var(--text-xs); }
.lang-pill { position: static; justify-self: center; }

/* Zoomable images and the lightbox they open */
.zoom {
  position: relative; display: block; width: 100%; padding: 0; border: 0; margin: 0;
  background: none; color: inherit; font: inherit; cursor: zoom-in; border-radius: inherit;
}
.comp-slot .zoom { height: 100%; }
.zoom:focus-visible { outline: 3px solid var(--brand); outline-offset: 3px; }
.zoom-hint {
  position: absolute; right: 10px; bottom: 10px; display: grid; place-items: center;
  width: 36px; height: 36px; border-radius: 50%; background: var(--ink); color: var(--paper);
  box-shadow: 0 4px 12px rgba(17, 24, 39, 0.25); opacity: 0; transform: scale(0.9);
  transition: opacity 0.2s ease, transform 0.2s ease;
}
.zoom:hover .zoom-hint, .zoom:focus-visible .zoom-hint { opacity: 1; transform: none; }
@media (hover: none) { .zoom-hint { opacity: 0.9; transform: none; } }

.lightbox {
  width: fit-content; height: fit-content; max-width: 96vw; max-height: 94vh; padding: 0; border: 0;
  border-radius: var(--radius); background: #f0f0f1; overflow: visible;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
}
.lightbox::backdrop { background: rgba(17, 24, 39, 0.82); }
.lightbox-media { display: block; max-width: none; border-radius: inherit; background: #f0f0f1; }
iframe.lightbox-media { border: 0; background: #000; }
.lightbox-close {
  position: absolute; top: -18px; right: -18px; display: grid; place-items: center;
  width: 40px; height: 40px; border: 0; border-radius: 50%; background: var(--paper); color: var(--ink);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3); cursor: pointer;
}
.lightbox-close:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; }
@media (max-width: 720px) { .lightbox-close { top: 8px; right: 8px; } }
html:has(.lightbox[open]) { overflow: hidden; }
@media (prefers-reduced-motion: no-preference) {
  .lightbox[open] { animation: lightbox-in 0.2s ease-out; }
  @keyframes lightbox-in { from { opacity: 0; transform: scale(0.97); } }
}

/* Bare photo tiles (cover art): just the photo */
.tile.has-img:not(:has(.tile-name)) { padding-bottom: 0; border-color: transparent; }

/* Use case hub: shelf fills the card */
.card-shelf { margin-bottom: var(--space-5); }
.card-shelf .product-grid { gap: var(--space-3); }

/* Two plan cards (agencies): centered pair */
.plans-grid-2 { max-width: 760px; margin-inline: auto; grid-template-columns: repeat(auto-fit, minmax(min(100%, max(280px, (100% - var(--space-4)) / 2)), 1fr)); }
.plans-note { font-size: var(--text-sm); margin-top: var(--space-5); }

/* Article featured image */
.post-feature { max-width: calc(980px + var(--gutter) * 2); margin: var(--space-5) auto var(--space-7); }
.post-feature img { display: block; width: 100%; height: auto; border-radius: var(--radius-lg); border: 1px solid var(--line); box-shadow: var(--shadow); }

/* Article CTA: compact card sized for the reading column */
.post-cta {
  display: grid; grid-template-columns: auto 1fr; gap: var(--space-5); align-items: start;
  margin-block: var(--space-7); padding: var(--space-6);
  background: var(--brand-tint); border: 1px solid var(--brand-soft); border-radius: var(--radius-lg);
}
.post-cta-mark { width: 44px; height: 44px; }
.post-cta h2 { font-size: var(--text-xl); font-style: normal; margin: 0 0 var(--space-2); }
.post-cta p { margin: 0 0 var(--space-4); color: var(--ink-soft); max-width: 56ch; }
.post-cta-actions { display: flex; flex-wrap: wrap; gap: var(--space-3); }
@media (max-width: 520px) {
  .post-cta { grid-template-columns: 1fr; gap: var(--space-3); padding: var(--space-5); }
  .post-cta-actions .btn { flex: 1 1 auto; justify-content: center; }
}

/* Sale page */
.sale-hero h1 { font-size: var(--text-4xl); }
.sale-code { display: inline-flex; align-items: center; gap: var(--space-2); background: var(--amber-soft); color: var(--ink); border-radius: 999px; padding: var(--space-2) var(--space-4); font-size: var(--text-sm); }
.sale-code .icon { color: var(--amber-deep); }
.sale-countdown { font-family: var(--font-display); font-size: var(--text-xl); margin: var(--space-5) 0; }
.sale-was { color: var(--muted); font-size: var(--text-lg); margin-right: var(--space-2); }
.sale-features { display: grid; gap: var(--space-5); grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); }
.sale-feature .icon { color: var(--accent); }
.sale-feature h3 { font-size: var(--text-lg); margin: var(--space-2) 0 var(--space-1); }
.sale-feature p { color: var(--muted); margin: 0; }
.sale-video { margin-top: var(--space-7); max-width: 860px; margin-inline: auto; }
.sale-shot { background: var(--brand-soft); }
/* The screenshot has empty space below the table, so show only the top of it. */
.sale-shot img { display: block; width: 100%; height: auto; aspect-ratio: 1800 / 720; object-fit: cover; object-position: top; border-radius: 12px; box-shadow: 0 18px 40px -16px rgba(17, 24, 39, 0.35); }
/* Before and after are a single message, so fill the screen and keep the footer at the bottom. */
.sale-hero[data-sale-state] { min-height: calc(100vh - 160px); display: flex; align-items: center; }
.sale-hero[data-sale-state][hidden] { display: none; }
/* The page is built in its sale state. With JS on, keep every state hidden until sale-page.js
   picks the right one, so visitors before the sale never glimpse the sale prices. If the script
   fails to load, the animation shows the built state after two seconds anyway. */
.js .sale-page [data-sale-state] { visibility: hidden; animation: sale-reveal 0s 2s forwards; }
.js .sale-page.sale-ready [data-sale-state] { visibility: visible; animation: none; }
@keyframes sale-reveal { to { visibility: visible; } }

/* Changelog */
.changelog-version { border: 1px solid var(--line); border-radius: var(--radius); padding: var(--space-5); margin-bottom: var(--space-4); background: var(--surface); scroll-margin-top: 96px; }
.changelog-head { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2) var(--space-3); }
.changelog-head h2 { font-size: var(--text-xl); margin: 0; }
.changelog-head h2 a { color: inherit; text-decoration: none; }
.changelog-head h2 a:hover { color: var(--accent); }
.changelog-head time { font-size: var(--text-sm); color: var(--muted); }
.changelog-latest { background: var(--brand); color: #fff; }
.changelog-group { font-family: var(--font-body); font-size: var(--text-xs); font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); margin: var(--space-4) 0 var(--space-2); }
.changelog-items { list-style: none; padding: 0; margin: var(--space-3) 0 0; display: grid; gap: var(--space-2); font-size: var(--text-sm); }
.changelog-group + .changelog-items { margin-top: 0; }
.changelog-items li { display: flex; gap: var(--space-3); align-items: baseline; }
.changelog-items li > span:last-child { min-width: 0; overflow-wrap: anywhere; }
.changelog-tag { flex: none; min-width: 72px; text-align: center; font-size: 11px; font-weight: 600; border-radius: var(--radius-sm); padding: 2px 6px; background: var(--paper-deep); color: var(--ink-soft); }
.changelog-tag-added { background: #dcfce7; color: #166534; }
.changelog-tag-improved { background: #dbeafe; color: #1e40af; }
.changelog-tag-fixed { background: #fee2e2; color: #991b1b; }
.changelog-pro { vertical-align: 1px; padding: 1px 8px; }
.changelog-more { margin-top: var(--space-3); }
.changelog-more summary, .changelog-older > summary { cursor: pointer; color: var(--accent); font-weight: 600; font-size: var(--text-sm); }
.changelog-older { margin-top: var(--space-5); }
.changelog-older > summary { margin-bottom: var(--space-4); }
@media (max-width: 560px) {
  .changelog-items li { flex-direction: column; gap: var(--space-1); }
  .changelog-tag { min-width: 0; }
}
