/* Volume Manager - compare page (light / spec-sheet) */

:root {
  --bg: #faf8f4;
  --bg-warm: #fff9ef;
  --surface: #ffffff;
  --border: #e8dcc8;
  --border-strong: #c9b896;
  --text: #2c2824;
  --text-muted: #6b6358;
  --accent: #d97706;
  --accent-soft: #fef3c7;
  --table-bg: #fdf8a5;
  --table-header: #f7e56a;
  --table-section: #f3d768;
  --table-hover: #fff4b0;
  --check-green: #34a853;
  --check-green-top: #5bd067;
  --legacy: #6b7280;
  --pro: #2563eb;
  --proplus: #7c3aed;
  --enterprise: #c2410c;
  --radius: 12px;
  --font: "IBM Plex Sans", system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
  --shadow: 0 8px 32px rgba(44, 40, 36, 0.08);
  --personal: #0d9488;
  --table-min: 0;
}

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

html,
html.no-blue-background {
  scroll-behavior: smooth;
  background: var(--bg) !important;
  background-color: var(--bg) !important;
}

body,
body.no-blue-background {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.55;
  color: var(--text);
  background: var(--bg) !important;
  background-color: var(--bg) !important;
  background-image:
    radial-gradient(ellipse 90% 60% at 100% 0%, rgba(255, 200, 100, 0.18), transparent 50%),
    radial-gradient(ellipse 70% 50% at 0% 100%, rgba(180, 220, 255, 0.2), transparent 45%) !important;
}

body.no-blue-background main {
  background: transparent !important;
}

.vm-compare {
  width: 100%;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

a {
  color: var(--pro);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.container {
  width: min(1100px, calc(100% - 40px));
  margin-inline: auto;
}

/* -- Icon halo (menu-bar friendly) -- */
.icon-halo {
  filter:
    drop-shadow(0 0 1px #ffffff)
    drop-shadow(0 0 2px #ffffff)
    drop-shadow(0 0 4px rgba(255, 255, 255, 0.95))
    drop-shadow(0 0 8px rgba(255, 255, 255, 0.7));
}

/* -- Nav -- */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  width: 100%;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
  backdrop-filter: blur(12px) saturate(1.2);
  background: rgba(250, 248, 244, 0.92);
  border-bottom: 1px solid var(--border);
}

.site-nav .inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  font-weight: 700;
  font-size: 17px;
  color: var(--text);
  text-decoration: none;
}

.brand:hover {
  text-decoration: none;
}

.brand-icon {
  width: 40px;
  height: 40px;
  object-fit: contain;
  flex-shrink: 0;
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
}

.nav-links a:hover {
  color: var(--accent);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 14px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.btn:hover {
  text-decoration: none;
  transform: translateY(-1px);
}

a.btn.btn-primary,
.btn-primary {
  background: linear-gradient(180deg, #facc15 0%, #eab308 42%, #b45309 100%);
  color: #2563eb !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 248, 200, 0.55),
    0 8px 22px rgba(161, 98, 7, 0.48);
  border: 1px solid #ca8a04;
}

a.btn.btn-primary:hover,
.btn-primary:hover {
  background: linear-gradient(180deg, #fde047 0%, #f59e0b 42%, #92400e 100%);
  color: #1d4ed8 !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 248, 200, 0.65),
    0 10px 26px rgba(146, 64, 14, 0.52);
}

.btn-ghost {
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border-strong);
}

.btn-shop,
.btn-download {
  font-size: 12px;
  font-weight: 700;
  padding: 8px 14px;
  white-space: nowrap;
}

.btn-dl {
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  padding: 12px 14px;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.01em;
  line-height: 1.25;
  white-space: normal;
  border: 1px solid transparent;
}

.btn-dl-silicon {
  background: linear-gradient(180deg, #3f4a5a 0%, #1b2230 100%);
  color: #f8fafc;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    0 6px 16px rgba(28, 35, 48, 0.28);
}

.btn-dl-silicon:hover {
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.22),
    0 8px 20px rgba(28, 35, 48, 0.38);
}

a.btn.btn-dl-universal,
.btn-dl-universal {
  background: linear-gradient(180deg, #facc15 0%, #eab308 42%, #b45309 100%);
  color: #2563eb !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 248, 200, 0.55),
    0 8px 22px rgba(161, 98, 7, 0.48);
  border: 1px solid #ca8a04;
}

a.btn.btn-dl-universal:hover,
.btn-dl-universal:hover {
  background: linear-gradient(180deg, #fde047 0%, #f59e0b 42%, #92400e 100%);
  color: #1d4ed8 !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 248, 200, 0.65),
    0 10px 26px rgba(146, 64, 14, 0.52);
}

.dl-pair {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px 12px;
  padding: 6px 0;
}

.dl-or {
  font-size: 12px;
  font-style: italic;
  color: var(--text-muted);
  font-weight: 600;
}

.dl-coming {
  margin: 0 0 6px;
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 500;
  text-align: center;
}

table.spec-download {
  min-width: 0;
}

table.spec-download thead th {
  font-size: 24px;
  letter-spacing: 0.02em;
  padding: 18px 14px;
}

table.spec-download th:first-child,
table.spec-download td:first-child {
  min-width: 0;
  max-width: none;
  width: 42%;
  text-align: left;
}

table.spec-download td.app-name {
  font-size: 13px;
  line-height: 1.45;
  font-weight: 500;
}

table.spec-download tr.spacer-row td {
  height: 22px;
  padding: 0;
  background: var(--table-bg);
  border-left: 1px solid var(--border-strong);
  border-right: 1px solid var(--border-strong);
}

table.spec-buy thead th {
  font-size: 15px;
  padding: 14px 12px;
}

.dl-notes {
  margin: 12px 2px 8px;
  padding: 0 0 0 0;
  list-style: none;
  color: var(--text-muted);
  font-size: 13px;
  line-height: 1.5;
  max-width: 92ch;
}

.dl-notes li {
  margin: 0 0 8px;
  padding-left: 1.4em;
  text-indent: -1.4em;
}

.dl-notes .star {
  font-weight: 700;
  color: var(--text);
  margin-right: 4px;
}

.btn-download {
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border-strong);
}

.btn-shop-personal {
  background: linear-gradient(180deg, #f0fdfa 0%, #99f6e4 100%);
  color: #115e59;
  border: 1px solid #2dd4bf;
}

.btn-shop-pro {
  background: linear-gradient(180deg, #fffdf5 0%, #fde68a 100%);
  color: #92400e;
  border: 1px solid #f59e0b;
}

.btn-shop-proplus {
  background: linear-gradient(180deg, #f0fdf4 0%, #bbf7d0 100%);
  color: #065f46;
  border: 1px solid #34d399;
}

.btn-shop-enterprise {
  background: linear-gradient(180deg, #fff7ed 0%, #fdba74 100%);
  color: #9a3412;
  border: 1px solid #f97316;
}

.btn-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
}

.action-panel {
  margin-top: 16px;
}

.get-app {
  margin-top: 22px;
}

table.spec-actions {
  min-width: 0;
}

table.spec-actions th:first-child,
table.spec-actions td:first-child {
  min-width: 0;
  max-width: none;
}

table.spec .muted {
  color: var(--text-muted);
  font-weight: 400;
}

/* -- Hero -- */
.hero {
  padding: 40px 0 36px;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 400px;
  gap: 16px 28px;
  align-items: start;
}

.hero-icon-wrap {
  position: relative;
  width: 400px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 0;
}

.hero-family-label {
  position: absolute;
  top: 10%;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  margin: 0;
  width: 100%;
  font-size: clamp(1.7rem, 2.8vw, 2.35rem);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.035em;
  text-align: center;
  color: #1a1612;
  text-shadow:
    0 0 20px #faf8f4,
    0 0 12px #faf8f4,
    0 1px 0 #ffffff,
    0 3px 16px rgba(250, 248, 244, 1);
  pointer-events: none;
}

.app-icon-large {
  width: 400px;
  height: 400px;
  object-fit: contain;
  display: block;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.28rem;
  margin: 8px 0 0;
  width: 100%;
  max-width: 100%;
}

.hero-meta span,
.hero-meta a {
  background: rgba(255, 255, 255, 0.72);
  padding: 0.22rem 0.48rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.72rem;
  line-height: 1.25;
  color: #1e293b;
  white-space: nowrap;
  border: 1px solid rgba(234, 179, 8, 0.2);
  box-shadow: 0 4px 10px rgba(180, 83, 9, 0.06);
  text-decoration: none;
}

.hero-meta a:hover,
.hero-meta a:focus-visible {
  text-decoration: none;
  background: #fff;
  border-color: rgba(217, 119, 6, 0.55);
}

.hero-langs {
  margin: 8px 0 0;
  text-align: center;
  font-size: 12px;
  line-height: 1.45;
  color: var(--text-muted);
  font-weight: 500;
  max-width: 400px;
}

.hero-langs span {
  display: block;
}

.hero-eyebrow {
  font-family: var(--mono);
  font-size: 12px;
  line-height: 1.75;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 10px;
  white-space: pre-line;
}

.hero h1 {
  font-size: clamp(2rem, 4.5vw, 2.75rem);
  line-height: 1.15;
  font-weight: 700;
  margin: 0 0 14px;
  max-width: 20ch;
  color: #1a1612;
}

.hero-lead {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 52ch;
  margin: 0 0 10px;
}

.hero-cta-banner {
  margin: 0 0 8px;
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: #1a1612;
  max-width: none;
  white-space: nowrap;
}

.hero-actions {
  display: grid;
  grid-template-columns: auto auto auto;
  justify-content: start;
  align-items: start;
  column-gap: 14px;
  row-gap: 8px;
  margin: 0;
}

.hero-cta {
  display: flex;
  flex-direction: column;
  align-items: center;
}

a.btn.btn-fat {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  min-width: 168px;
  min-height: 56px;
  padding: 16px 32px;
  border-radius: 999px;
  text-align: center;
  line-height: 1.2;
  white-space: nowrap;
  font-size: 16px;
  font-weight: 700;
}

.btn-download-blue {
  background: linear-gradient(180deg, #60a5fa, #2563eb);
  color: #fff;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.28);
}

.btn-download-blue:hover {
  box-shadow: 0 6px 18px rgba(37, 99, 235, 0.38);
}

.hero-cta-note {
  margin: 8px 0 16px;
  padding: 0;
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 500;
  line-height: 1.45;
  text-align: center;
}

.hero-shots {
  grid-column: 1 / -1;
}

.hero-shots .gallery-item img,
.hero-shots .gallery-item svg {
  height: 200px;
}

.ps-pull-raves {
  display: grid;
  grid-template-columns: minmax(240px, 0.78fr) minmax(280px, 1.22fr);
  align-items: center;
  gap: 28px 48px;
  padding: 20px 0 8px;
}

.ps-pull-raves__lead {
  min-width: 0;
}

.pull-line {
  text-align: center;
  font-size: clamp(1.2rem, 2.2vw, 1.5rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  color: #1a1612;
  margin: 4px 0 0;
  padding: 20px 24px 12px;
}

.ps-pull-raves .pull-line {
  text-align: left;
  margin: 0;
  padding: 0;
  font-size: clamp(1.45rem, 2.6vw, 2.05rem);
  line-height: 1.2;
}

.ps-videos-link {
  margin: 14px 0 0;
}

.ps-videos-link a {
  color: #2568ad;
  font-size: 1.02rem;
  font-weight: 600;
  text-decoration: none;
}

.ps-videos-link a:hover,
.ps-videos-link a:focus-visible {
  text-decoration: underline;
  text-underline-offset: 3px;
}

#story {
  padding: 4px 0 28px;
}

.story-lead {
  font-size: 1.15rem;
  line-height: 1.55;
  max-width: 58ch;
  margin: 0 auto 22px;
  color: #1a1612;
}

.audience-panel {
  max-width: 1040px;
  margin: 8px auto 0;
  padding: 18px 20px 20px;
  border: 1px solid rgba(217, 119, 6, 0.26);
  border-radius: 20px;
  background:
    radial-gradient(circle at top left, rgba(253, 230, 138, 0.32), transparent 38%),
    rgba(255, 255, 255, 0.72);
  box-shadow: 0 16px 38px rgba(120, 53, 15, 0.07);
}

.audience-panel h2 {
  margin: 0 0 12px;
  color: #1a1612;
  font-size: 0.78rem;
  font-family: var(--mono);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.audience-panel ul {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.audience-panel li {
  padding: 4px 8px;
  border: 1px solid rgba(180, 83, 9, 0.16);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.82);
  color: #57534e;
  font-size: 0.7rem;
  font-weight: 600;
  line-height: 1.2;
  white-space: nowrap;
}

.story-points {
  max-width: 58ch;
  margin: 0 auto 18px;
}

.story-points p {
  margin: 0 0 12px;
  color: var(--text-muted);
}

.story-points strong {
  color: #1a1612;
}

.story-extras {
  max-width: 58ch;
  margin: 0 auto;
  padding: 0;
  list-style: none;
}

.story-extras li {
  padding: 8px 0;
  border-top: 1px solid var(--border);
  color: var(--text);
  font-size: 0.98rem;
}

.story-extras li:last-child {
  border-bottom: 1px solid var(--border);
}

.mu-raves {
  padding: 12px 0 36px;
}

.ps-pull-raves .mu-raves {
  padding: 0;
}

.mu-raves__heading {
  margin: 0;
  text-align: center;
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.mu-raves__heading a {
  color: #1a1612;
  text-decoration: none;
}

.mu-raves__heading a:hover,
.mu-raves__heading a:focus-visible {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.mu-raves__stars {
  margin: 8px 0 14px;
  text-align: center;
  color: var(--accent);
  font-size: 1.05rem;
  letter-spacing: 0.18em;
}

.mu-raves__stage {
  position: relative;
  max-width: 58ch;
  min-height: 15.5rem;
  margin: 0 auto;
}

.mu-raves__item {
  position: absolute;
  inset: 0;
  margin: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.85s ease;
}

.mu-raves__item.is-active {
  opacity: 1;
  pointer-events: auto;
}

.mu-raves__item p {
  margin: 0;
  color: #1a1612;
  font-size: 1.08rem;
  line-height: 1.55;
  text-align: center;
}

.mu-raves__item footer {
  margin-top: 14px;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.82rem;
  font-weight: 500;
}

.mu-raves__item cite {
  font-style: normal;
  color: #1a1612;
}

.mu-raves__item cite::after {
  content: " · ";
  color: var(--text-muted);
  font-weight: 400;
}

@media (prefers-reduced-motion: reduce) {
  .mu-raves__item {
    transition: none;
  }
}

@media (max-width: 800px) {
  .ps-pull-raves {
    grid-template-columns: 1fr;
    gap: 18px;
    padding: 16px 0 4px;
  }

  .ps-pull-raves .pull-line {
    font-size: clamp(1.25rem, 5vw, 1.7rem);
  }

  .ps-pull-raves .mu-raves__heading,
  .ps-pull-raves .mu-raves__stars,
  .ps-pull-raves .mu-raves__item p,
  .ps-pull-raves .mu-raves__item footer {
    text-align: left;
  }
}

.rave {
  width: min(640px, calc(100% - 48px));
  margin: 12px auto 28px;
  padding: 22px 26px 18px;
  background: var(--bg);
  border-radius: var(--radius);
  box-shadow: none;
  border: 1px solid var(--border);
  border-left: 5px solid var(--accent);
}

.rave blockquote {
  margin: 0;
}

.rave blockquote p {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.5;
  color: #1a1612;
}

.rave figcaption {
  margin-top: 14px;
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 500;
}

.rave-gold { border-left-color: var(--accent); }
.rave-blue { border-left-color: var(--pro); }
.rave-teal { border-left-color: var(--personal); }
.rave-plum { border-left-color: var(--proplus); }

.rave-left {
  margin-left: max(24px, calc((100% - 1100px) / 2 + 24px));
  margin-right: auto;
}

.rave-right {
  margin-right: max(24px, calc((100% - 1100px) / 2 + 24px));
  margin-left: auto;
}

.slogan {
  text-align: center;
  font-size: clamp(1.35rem, 2.8vw, 1.9rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.25;
  padding: 28px 24px 20px;
  margin: 0;
  color: #1a1612;
}

.slogan-after-details {
  padding: 4px 24px 48px;
}

#details {
  padding-bottom: 16px;
}

.slogan em {
  font-style: italic;
}

.hero-quiet {
  margin: 10px 0 0;
  text-align: center;
  font-size: 13px;
  color: var(--text-muted);
}

.hero-quiet a {
  color: var(--text-muted);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.hero-quiet a:hover {
  color: var(--pro);
}

.idea-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.idea-card .idea-icon {
  width: 32px;
  height: 32px;
  margin-bottom: 10px;
  color: var(--accent);
}

.extras-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.mid-cta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  padding: 8px 0 12px;
}

.original-block {
  background: var(--surface);
  border: 1px dashed rgba(0, 0, 0, 0.18);
  border-radius: var(--radius);
  padding: 28px 28px 24px;
  box-shadow: var(--shadow);
  max-width: 720px;
  margin: 0 auto;
}

.original-block h2 {
  font-size: 1.35rem;
}

.original-block .os-line {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--text-muted);
  margin: 0 0 12px;
}

.nav-links .nav-quiet a {
  color: var(--text-muted);
  font-weight: 500;
}

#family h2 {
  line-height: 1.25;
}

.flavor-copy {
  margin: 16px 0 0;
  font-size: 1.08rem;
  line-height: 1.5;
  color: var(--text-muted);
}

.flavor-copy p {
  margin: 0 0 6px;
}
section {
  padding: 40px 0;
}

.section-label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 6px;
}

section h2 {
  font-size: clamp(1.4rem, 2.5vw, 1.85rem);
  margin: 0 0 8px;
  color: #1a1612;
}

.matrix-outro {
  margin: 28px 0 8px;
  text-align: center;
}

.matrix-outro p {
  margin: 0 0 10px;
  font-size: 1.2rem;
  font-weight: 500;
  line-height: 1.45;
  color: #1a1612;
}

.matrix-outro .matrix-equation {
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 18px;
}

.matrix-outro-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin-bottom: 8px;
}

.section-intro {
  color: var(--text-muted);
  max-width: 62ch;
  margin: 0 0 20px;
  font-size: 15px;
}

/* -- Unified table panel (same width, yellow sheet) -- */
.table-panel {
  width: 100%;
  max-width: 100%;
  border: 1px solid var(--border-strong);
  border-radius: 10px;
  overflow-x: auto;
  box-shadow: var(--shadow);
  background: var(--table-bg);
}

.table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  max-width: 100%;
}

table.spec {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  min-width: 0;
  table-layout: auto;
  background: var(--table-bg);
}

table.spec th,
table.spec td {
  padding: 8px 8px;
  border: 1px solid var(--border-strong);
  text-align: center;
  vertical-align: middle;
  color: var(--text);
}

table.spec th:first-child,
table.spec td:first-child {
  text-align: left;
  width: 34%;
  min-width: 20rem;
  max-width: none;
  white-space: normal;
}

table.spec td.feat-tryout {
  white-space: nowrap;
}

table.spec td.cta-cell {
  padding: 8px 10px;
}

.btn-table-eq {
  width: 12.25rem;
  min-width: 12.25rem;
  max-width: 12.25rem;
  box-sizing: border-box;
  padding-left: 12px;
  padding-right: 12px;
  white-space: nowrap;
}

a.btn.btn-buy-gold,
.btn-buy-gold {
  background: linear-gradient(180deg, #facc15 0%, #eab308 42%, #b45309 100%);
  color: #fff !important;
  box-shadow: inset 0 1px 0 rgba(255, 248, 200, 0.45);
  border: 1px solid #ca8a04;
}

a.btn.btn-buy-gold:hover,
.btn-buy-gold:hover {
  background: linear-gradient(180deg, #fde047 0%, #f59e0b 42%, #92400e 100%);
  color: #fff !important;
  box-shadow: inset 0 1px 0 rgba(255, 248, 200, 0.55);
}

table.spec thead th {
  background: var(--table-header);
  font-size: 12px;
  font-weight: 700;
  padding-top: 12px;
  padding-bottom: 12px;
}

table.spec thead th.col-legacy { color: var(--legacy); }
table.spec thead th.col-personal { color: var(--personal); }
table.spec thead th.col-pro { color: var(--pro); }
table.spec thead th.col-proplus { color: var(--proplus); }
table.spec thead th.col-enterprise { color: var(--enterprise); }

table.spec thead th .th-note {
  display: block;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  opacity: 0.75;
  margin-top: 2px;
}

table.spec tbody tr:hover td {
  background: var(--table-hover);
}

table.spec tr.section-row td {
  background: var(--table-section) !important;
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #92400e;
  text-align: left;
}

table.spec tr.section-row td:first-child {
  text-align: left;
}

/* Green spreadsheet-style check */
table.spec .check {
  padding: 6px;
}

table.spec .check-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: 3px;
  background: linear-gradient(180deg, var(--check-green-top) 0%, var(--check-green) 100%);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.35),
    0 1px 2px rgba(0, 0, 0, 0.22);
}

table.spec .lang {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--text-muted);
  white-space: nowrap;
}

table.spec .license-cell {
  padding: 6px 6px;
  vertical-align: middle;
}

table.spec .license-btns {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 4px;
}

table.spec .btn-license {
  display: block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.02em;
  padding: 5px 8px;
  border-radius: 7px;
  line-height: 1.2;
  white-space: nowrap;
  text-align: center;
  text-decoration: none;
  color: #fff;
  background: linear-gradient(180deg, #d97706 0%, #b45309 100%);
  border: 1px solid rgba(146, 64, 14, 0.45);
  box-shadow: inset 0 1px 0 rgba(255, 248, 200, 0.28);
}

table.spec .btn-license:hover,
table.spec .btn-license:focus-visible {
  color: #fff;
  filter: brightness(1.06);
}

table.spec .empty {
  color: #c4b896;
}

table.spec code {
  font-family: var(--mono);
  font-size: 11px;
  background: rgba(255, 255, 255, 0.6);
  padding: 1px 4px;
  border-radius: 3px;
}

.footnote {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 10px;
  padding: 0 2px;
}

/* Sticky first column on wide matrix only */
#feature-matrix th:first-child,
#feature-matrix td:first-child {
  position: sticky;
  left: 0;
  z-index: 2;
  background: var(--table-bg);
  box-shadow: 2px 0 4px rgba(0, 0, 0, 0.06);
}

#feature-matrix thead th:first-child {
  z-index: 4;
  background: var(--table-header);
}

#feature-matrix tr.section-row td:first-child {
  background: var(--table-section) !important;
}

#feature-matrix tbody tr:hover td:first-child {
  background: var(--table-hover);
}

/* -- Pricing cards -- */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-top: 20px;
}

.pricing-grid--solo {
  grid-template-columns: minmax(280px, 400px);
  justify-content: start;
}

.price-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  box-shadow: var(--shadow);
  transition: transform 0.2s;
}

.price-card:hover {
  transform: translateY(-2px);
}

.price-card.muted {
  opacity: 0.82;
}

.price-card.featured {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(217, 119, 6, 0.15), var(--shadow);
}

.price-card h3 {
  margin: 0;
  font-size: 17px;
}

.price-card .tier-tag {
  font-family: var(--mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
}

.price-card .price-row {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin: 6px 0;
}

.price-card .amount {
  font-size: 26px;
  font-weight: 700;
  color: var(--accent);
}

.price-card .period {
  color: var(--text-muted);
  font-size: 13px;
}

.price-card .os-line {
  margin: 4px 0 2px;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--text-muted);
}

.price-card ul {
  margin: 6px 0 14px;
  padding-left: 18px;
  color: var(--text-muted);
  font-size: 13px;
}

.price-card .btn {
  margin-top: auto;
  width: 100%;
}

/* -- Screenshots -- */
.gallery-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.gallery-strip figure {
  margin: 0;
}

.gallery-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  cursor: pointer;
  padding: 0;
  text-align: left;
  color: inherit;
  width: 100%;
  transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}

.gallery-item:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.gallery-item img,
.gallery-item svg {
  display: block;
  width: 100%;
  height: 210px;
  object-fit: contain;
  background: var(--bg-warm);
}

.gallery-item figcaption {
  padding: 8px 10px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  background: var(--surface);
}

.gallery-hint {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 12px;
}

/* -- Lightbox -- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(30, 25, 20, 0.82);
  backdrop-filter: blur(6px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.lightbox.open {
  display: flex;
}

.lightbox img,
.lightbox svg {
  max-width: min(1280px, 96vw);
  max-height: 90vh;
  border-radius: 8px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 24px;
  background: rgba(255, 255, 255, 0.15);
  border: none;
  color: white;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-size: 22px;
  cursor: pointer;
}

.lightbox-caption {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255, 255, 255, 0.85);
  font-size: 14px;
}

/* -- Details -- */
.details-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.details-grid.idea-grid {
  grid-template-columns: repeat(3, 1fr);
}

.details-grid.extras-grid {
  grid-template-columns: repeat(4, 1fr);
}

.detail-block {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow);
}

.detail-block h3 {
  margin: 0 0 8px;
  font-size: 15px;
  color: #1a1612;
}

.detail-block p {
  color: var(--text-muted);
  font-size: 14px;
  margin: 0;
}

/* -- Footer -- */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 28px 0 40px;
  margin-top: 16px;
  color: var(--text-muted);
  font-size: 13px;
  background: var(--bg-warm);
}

.site-footer a {
  color: var(--pro);
}

/* -- Responsive -- */
@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }

  .hero-cta-banner {
    white-space: normal;
  }

  .rave-left,
  .rave-right {
    margin-left: 24px;
    margin-right: 24px;
    width: calc(100% - 48px);
  }

  .hero-icon-wrap {
    width: min(320px, 78vw);
    align-items: center;
    text-align: center;
    order: -1;
    margin-inline: auto;
  }

  .hero-family-label {
    font-size: 1.35rem;
    max-width: 100%;
  }

  .app-icon-large {
    width: min(320px, 78vw);
    height: auto;
  }

  .hero-actions {
    grid-template-columns: auto auto auto;
    justify-content: center;
  }

  .hero-shots,
  .gallery-strip {
    grid-template-columns: repeat(2, 1fr);
  }

  .pricing-grid:not(.pricing-grid--solo) {
    grid-template-columns: repeat(2, 1fr);
  }

  .details-grid,
  .details-grid.idea-grid {
    grid-template-columns: 1fr;
  }

  .details-grid.extras-grid {
    grid-template-columns: 1fr 1fr;
  }

  .hero-meta,
  .hero-langs {
    max-width: 100%;
  }

  .hero-meta {
    flex-wrap: wrap;
  }
}

@media (max-width: 720px) {
  .nav-links {
    display: none;
  }

  .hero-shots,
  .pricing-grid:not(.pricing-grid--solo) {
    grid-template-columns: 1fr;
  }

  .gallery-strip,
  .details-grid.extras-grid {
    grid-template-columns: 1fr 1fr;
  }
}

/* Dark theme - add class "theme-dark" to <body> to try the previous look */
body.theme-dark {
  --bg: #12141a;
  --text: #e8eaef;
  --text-muted: #9399a8;
  --table-bg: #161922;
  --table-header: #1e2330;
  --border-strong: rgba(255, 255, 255, 0.12);
}

/* PixelStick family hub extras (two products, wrap the CTA banner) */
.hero-cta-banner {
  white-space: normal;
}

.hero-actions.hero-actions-dual {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  max-width: 760px;
  column-gap: 28px;
}

.hero-product-cta h2 {
  margin: 0 0 10px;
  font-size: 1.05rem;
  font-weight: 700;
}

.hero-product-cta .hero-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: start;
}

.hero-product-cta .price-line {
  margin: 8px 0 0;
  font-size: 0.78rem;
  color: var(--text-muted);
  font-weight: 500;
  line-height: 1.4;
}

@media (max-width: 768px) {
  .hero-actions.hero-actions-dual {
    grid-template-columns: 1fr;
  }
}
