/* ==========================================================================
   Veyo Product Personalizer — site stylesheet
   Palette: near-black base + CMYK-inspired accents (cyan → magenta, yellow)
   Type: Bricolage Grotesque (display) · Instrument Sans (body) · IBM Plex Mono (labels)
   ========================================================================== */

:root {
  --bg: #0b0b10;
  --bg-raise: #14141b;
  --bg-card: rgba(255, 255, 255, 0.028);
  --ink: #f2f1ee;
  --muted: #a2a1ab;
  --faint: #6d6c78;
  --line: rgba(255, 255, 255, 0.09);
  --line-soft: rgba(255, 255, 255, 0.055);

  --cyan: #35d6ff;
  --magenta: #ff4fa3;
  --yellow: #ffd84d;
  --green: #4ade80;

  --grad: linear-gradient(93deg, var(--cyan), var(--magenta));
  --grad-soft: linear-gradient(93deg, rgba(53, 214, 255, 0.16), rgba(255, 79, 163, 0.16));

  --font-display: "Bricolage Grotesque", "Instrument Sans", sans-serif;
  --font-body: "Instrument Sans", system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, monospace;

  --radius: 14px;
  --radius-sm: 8px;
  --wrap: 1140px;
  --nav-h: 64px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 16px); }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16.5px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

::selection { background: rgba(255, 79, 163, 0.35); }

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

a { color: var(--cyan); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
.commerce-pending { opacity: .62; pointer-events: none; cursor: not-allowed; }

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

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }

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

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.015em;
  text-wrap: balance;
}

h1 { font-size: clamp(2.5rem, 6.2vw, 4.3rem); font-weight: 700; }
h2 { font-size: clamp(1.75rem, 3.4vw, 2.5rem); }
h3 { font-size: 1.16rem; }

.lede { font-size: clamp(1.05rem, 1.8vw, 1.25rem); color: var(--muted); max-width: 40em; }

.grad-text {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* Job-ticket eyebrow: mono label with crop-mark corners */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 6px 12px;
  position: relative;
  margin-bottom: 18px;
}
.eyebrow::before, .eyebrow::after {
  content: "";
  position: absolute;
  width: 9px; height: 9px;
  border-color: var(--faint);
  border-style: solid;
}
.eyebrow::before { top: 0; left: 0; border-width: 1px 0 0 1px; }
.eyebrow::after { bottom: 0; right: 0; border-width: 0 1px 1px 0; }
.eyebrow .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--grad); }

/* ---------- Nav ---------- */

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--nav-h);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  background: rgba(11, 11, 16, 0.72);
  border-bottom: 1px solid var(--line-soft);
}
.nav-inner {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 28px;
}
.logo {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.22rem;
  letter-spacing: -0.02em;
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: 9px;
}
.logo:hover { text-decoration: none; }
.logo-mark {
  width: 24px; height: 24px;
  background: url("../img/logo-mark.svg") center / contain no-repeat;
  flex: none;
}
.nav-links {
  display: flex;
  gap: 24px;
  margin-left: auto;
  align-items: center;
}
.nav-links a {
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 500;
}
.nav-links a:hover { color: var(--ink); text-decoration: none; }
.nav-links a.btn-primary, .nav-links a.btn-primary:hover { color: #0b0b10; }
.nav-cta { margin-left: 4px; }

.nav-toggle {
  display: none;
  margin-left: auto;
  background: none;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  color: var(--ink);
  width: 40px; height: 40px;
  font-size: 1.1rem;
  cursor: pointer;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 12px 22px;
  border-radius: 10px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
  white-space: nowrap;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: var(--grad);
  color: #0b0b10;
}
.btn-primary:hover { box-shadow: 0 6px 28px rgba(255, 79, 163, 0.35); }

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}
.btn-ghost:hover { border-color: rgba(255, 255, 255, 0.25); }

.btn-sm { padding: 8px 14px; font-size: 0.85rem; border-radius: 8px; }

/* ---------- Sections ---------- */

.section { padding: 96px 0; }
.section + .section { border-top: 1px solid var(--line-soft); }
.section-head { max-width: 620px; margin-bottom: 52px; }
.section-head p { margin-top: 14px; color: var(--muted); }

/* Scroll reveal */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; }
}

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

.hero {
  position: relative;
  padding: 96px 0 80px;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  top: -220px; left: 50%;
  transform: translateX(-50%);
  width: 900px; height: 520px;
  background:
    radial-gradient(420px 260px at 38% 50%, rgba(53, 214, 255, 0.13), transparent 70%),
    radial-gradient(420px 260px at 62% 50%, rgba(255, 79, 163, 0.12), transparent 70%);
  pointer-events: none;
}
.hero-inner { position: relative; text-align: center; }
.hero h1 { max-width: 15em; margin: 0 auto 22px; }
.hero .lede { margin: 0 auto 34px; }
.hero-ctas { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.hero-note {
  margin-top: 16px;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  color: var(--faint);
  letter-spacing: 0.06em;
}

/* Hero canvas mock: a print area with crop marks, safe zone, layers */
.hero-canvas {
  position: relative;
  margin: 64px auto 0;
  max-width: 860px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(rgba(255,255,255,0.022), rgba(255,255,255,0.022)),
    repeating-linear-gradient(0deg, transparent, transparent 23px, rgba(255,255,255,0.03) 23px, rgba(255,255,255,0.03) 24px),
    repeating-linear-gradient(90deg, transparent, transparent 23px, rgba(255,255,255,0.03) 23px, rgba(255,255,255,0.03) 24px);
  padding: 44px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
}
.print-area {
  position: relative;
  border: 1.5px dashed rgba(53, 214, 255, 0.55);
  border-radius: 4px;
  min-height: 340px;
  display: grid;
  place-items: center;
}
.print-area .area-label {
  position: absolute;
  top: -11px; left: 14px;
  background: var(--bg);
  padding: 0 8px;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--cyan);
  letter-spacing: 0.1em;
}
/* Crop marks on the canvas corners */
.crop { position: absolute; width: 18px; height: 18px; pointer-events: none; }
.crop::before, .crop::after { content: ""; position: absolute; background: var(--faint); }
.crop::before { width: 18px; height: 1px; }
.crop::after { width: 1px; height: 18px; }
.crop.tl { top: 14px; left: 14px; }
.crop.tr { top: 14px; right: 14px; transform: scaleX(-1); }
.crop.bl { bottom: 14px; left: 14px; transform: scaleY(-1); }
.crop.br { bottom: 14px; right: 14px; transform: scale(-1); }
.crop.tl::before, .crop.tr::before, .crop.bl::before, .crop.br::before { top: 0; left: 0; }
.crop.tl::after, .crop.tr::after, .crop.bl::after, .crop.br::after { top: 0; left: 0; }

.hero-video {
  width: 100%;
  height: 100%;
  min-height: 340px;
  object-fit: cover;
  border-radius: 4px;
  display: block;
}

/* Floating swatch chips on hero canvas */
.swatch-row {
  position: absolute;
  bottom: 18px; right: 18px;
  display: flex;
  gap: 6px;
}
.swatch {
  width: 26px; height: 34px;
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  position: relative;
}
.swatch::after {
  content: "";
  position: absolute;
  left: 3px; right: 3px; bottom: 3px;
  height: 7px;
  background: rgba(11, 11, 16, 0.55);
  border-radius: 2px;
}
.swatch.c { background: var(--cyan); }
.swatch.m { background: var(--magenta); }
.swatch.y { background: var(--yellow); }
.swatch.k { background: #26262e; }

/* ---------- Platforms ---------- */

.platforms {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 44px;
}
.platform {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 9px 20px;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--muted);
  background: var(--bg-card);
}
.platform strong { color: var(--ink); font-weight: 600; }
.badge {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 999px;
  white-space: nowrap;
}
.badge-live { background: rgba(74, 222, 128, 0.13); color: var(--green); }
.platform .demo-link {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--cyan);
  border-left: 1px solid var(--line);
  padding-left: 10px;
}
.badge-soon { background: rgba(255, 216, 77, 0.1); color: var(--yellow); }
.badge-free { background: rgba(74, 222, 128, 0.13); color: var(--green); }
.badge-price { background: rgba(53, 214, 255, 0.1); color: var(--cyan); }

/* ---------- Feature grid ---------- */

.grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(3, 1fr);
}
.card {
  background: var(--bg-card);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  padding: 26px;
  transition: border-color 0.2s ease, background 0.2s ease;
}
.card:hover { border-color: var(--line); background: rgba(255, 255, 255, 0.04); }
.card h3 { margin: 14px 0 8px; }
.card p { color: var(--muted); font-size: 0.93rem; }
.card-icon {
  width: 42px; height: 42px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: var(--grad-soft);
  border: 1px solid var(--line);
  font-size: 1.15rem;
}
.card-icon:has(img) {
  background: transparent;
  border: none;
  overflow: hidden;
  padding: 0;
}
.card-icon img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

/* ---------- Addons ---------- */

.addon-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 30px;
}
.tab {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  letter-spacing: 0.05em;
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  transition: all 0.15s ease;
}
.tab:hover { color: var(--ink); }
.tab.active { background: var(--ink); color: var(--bg); border-color: var(--ink); }

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

/* Addon card behaves like a selectable layer in the designer:
   hover shows selection handles at the corners */
.addon {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.addon .handles { position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity 0.18s ease; }
.addon:hover .handles { opacity: 1; }
.addon .handles i {
  position: absolute;
  width: 8px; height: 8px;
  background: var(--bg);
  border: 1.5px solid var(--cyan);
  border-radius: 2px;
}
.addon .handles i:nth-child(1) { top: -4px; left: -4px; }
.addon .handles i:nth-child(2) { top: -4px; right: -4px; }
.addon .handles i:nth-child(3) { bottom: -4px; left: -4px; }
.addon .handles i:nth-child(4) { bottom: -4px; right: -4px; }
.addon:hover { border-color: rgba(53, 214, 255, 0.5); }

.addon-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.addon h3 { margin: 4px 0 0; font-size: 1.02rem; }
.addon p { flex: 1; }
.addon-buy {
  margin-top: 6px;
  font-size: 0.85rem;
  font-weight: 600;
}
.addon.soon { opacity: 0.62; }
.addon.soon:hover { border-color: var(--line); }
.addon.soon .handles { display: none; }

/* ---------- Pricing ---------- */

.pricing-grid { grid-template-columns: repeat(3, 1fr); align-items: stretch; }
.price-card { display: flex; flex-direction: column; padding: 32px 28px; }
.price-card .plan-name { font-family: var(--font-mono); font-size: 0.76rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.price-card .price {
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 700;
  margin: 14px 0 4px;
  letter-spacing: -0.02em;
}
.price-card .price span { font-size: 1rem; font-weight: 500; color: var(--muted); font-family: var(--font-body); }
.price-card .per { color: var(--faint); font-size: 0.85rem; margin-bottom: 20px; }
.price-card ul { list-style: none; margin: 0 0 26px; display: grid; gap: 10px; }
.price-card li { padding-left: 24px; position: relative; font-size: 0.92rem; color: var(--muted); }
.price-card li::before { content: "✓"; position: absolute; left: 0; color: var(--cyan); font-weight: 700; }
.price-card li.no::before { content: "—"; color: var(--faint); }
.price-card .btn { margin-top: auto; }

.price-card.featured {
  border: 1px solid transparent;
  background:
    linear-gradient(var(--bg-raise), var(--bg-raise)) padding-box,
    var(--grad) border-box;
  position: relative;
}
.price-card.featured .flag {
  position: absolute;
  top: -12px; left: 28px;
  background: var(--grad);
  color: #0b0b10;
  font-family: var(--font-mono);
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 999px;
}

.pricing-note {
  margin-top: 28px;
  text-align: center;
  color: var(--faint);
  font-size: 0.88rem;
}

/* ---------- How it works ---------- */

.steps { grid-template-columns: repeat(3, 1fr); counter-reset: step; }
.step { position: relative; }
.step::before {
  counter-increment: step;
  content: "0" counter(step);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--magenta);
  letter-spacing: 0.1em;
}
.step h3 { margin: 10px 0 8px; }
.step p { color: var(--muted); font-size: 0.93rem; }

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

.faq { max-width: 760px; }
.faq-item { border-bottom: 1px solid var(--line-soft); }
.faq-q {
  width: 100%;
  background: none;
  border: none;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.02rem;
  font-weight: 600;
  text-align: left;
  padding: 22px 44px 22px 0;
  cursor: pointer;
  position: relative;
}
.faq-q::after {
  content: "+";
  position: absolute;
  right: 4px; top: 50%;
  transform: translateY(-50%);
  font-family: var(--font-mono);
  font-size: 1.3rem;
  color: var(--muted);
  transition: transform 0.2s ease;
}
.faq-item.open .faq-q::after { transform: translateY(-50%) rotate(45deg); color: var(--magenta); }
.faq-a { display: none; padding: 0 0 22px; color: var(--muted); max-width: 62ch; }
.faq-item.open .faq-a { display: block; }

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

.cta-band {
  text-align: center;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 72px 32px;
  position: relative;
  overflow: hidden;
  background: var(--bg-raise);
}
.cta-band::before {
  content: "";
  position: absolute;
  inset: -40%;
  background:
    radial-gradient(360px 200px at 26% 60%, rgba(53, 214, 255, 0.12), transparent 70%),
    radial-gradient(360px 200px at 74% 40%, rgba(255, 79, 163, 0.12), transparent 70%);
  pointer-events: none;
}
.cta-band > * { position: relative; }
.cta-band h2 { margin-bottom: 14px; }
.cta-band p { color: var(--muted); margin-bottom: 30px; }

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

.footer {
  border-top: 1px solid var(--line-soft);
  padding: 56px 0 40px;
  color: var(--muted);
  font-size: 0.9rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 40px;
}
.footer h4 { font-size: 0.82rem; font-family: var(--font-mono); font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase; color: var(--faint); margin-bottom: 14px; }
.footer ul { list-style: none; display: grid; gap: 9px; }
.footer a { color: var(--muted); }
.footer a:hover { color: var(--ink); }
.footer-bottom {
  border-top: 1px solid var(--line-soft);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 0.82rem;
  color: var(--faint);
}

/* Social icons + company address */
.social-row { display: flex; gap: 10px; }
.social-row a {
  width: 36px; height: 36px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 9px;
  color: var(--muted);
  transition: color 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}
.social-row a:hover { color: var(--ink); border-color: rgba(255, 255, 255, 0.28); transform: translateY(-1px); }
.social-row svg { width: 17px; height: 17px; fill: currentColor; }
.footer-address { color: var(--faint); font-size: 0.84rem; font-style: normal; }
.footer-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
  padding-bottom: 24px;
}

/* ---------- Sticky support widget (email-only) ---------- */

.support-widget {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 60;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 12px;
}
.support-fab {
  width: 54px; height: 54px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  background: var(--grad);
  color: #0b0b10;
  display: grid;
  place-items: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), 0 2px 12px rgba(255, 79, 163, 0.35);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.support-fab:hover { transform: translateY(-2px); box-shadow: 0 14px 34px rgba(0, 0, 0, 0.55), 0 4px 18px rgba(255, 79, 163, 0.45); }
.support-fab svg { width: 24px; height: 24px; }
.support-pop {
  width: min(320px, calc(100vw - 44px));
  background: var(--bg-raise);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 22px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(14px);
}
.support-pop[hidden] { display: none; }
.support-pop .sp-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.05rem;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.support-pop .sp-title .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); }
.support-pop .sp-body { color: var(--muted); font-size: 0.88rem; margin-bottom: 16px; }
.support-pop .btn { width: 100%; }
.support-pop .sp-faq {
  display: block;
  margin-top: 12px;
  text-align: center;
  font-size: 0.84rem;
}

@media (max-width: 720px) {
  .support-widget { right: 14px; bottom: 14px; }
  .footer-meta { flex-direction: column; align-items: flex-start; }
}

/* ---------- Addon details modal ---------- */

body.modal-open { overflow: hidden; }

.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(6, 6, 9, 0.72);
  backdrop-filter: blur(6px);
}
.modal-overlay[hidden] { display: none; }
.modal-buy[hidden] { display: none; }
.modal-panel {
  width: min(560px, 100%);
  max-height: calc(100vh - 48px);
  overflow-y: auto;
  background: var(--bg-raise);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 32px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.6);
  position: relative;
}
.modal-close {
  position: absolute;
  top: 18px; right: 18px;
  width: 34px; height: 34px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--bg-card);
  color: var(--muted);
  font-size: 1.1rem;
  line-height: 1;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: color 0.15s ease, border-color 0.15s ease;
}
.modal-close:hover { color: var(--ink); border-color: var(--line); }
.modal-head { display: flex; align-items: center; gap: 14px; padding-right: 40px; }
.modal-head .card-icon { width: 48px; height: 48px; font-size: 1.3rem; flex-shrink: 0; }
.modal-head h2 { font-size: 1.35rem; margin-bottom: 6px; }
.modal-media {
  margin: 22px 0;
  border: 1.5px dashed var(--line);
  border-radius: var(--radius-sm);
  background: repeating-linear-gradient(45deg, transparent, transparent 14px, rgba(255,255,255,0.02) 14px, rgba(255,255,255,0.02) 28px);
  display: grid;
  place-items: center;
  min-height: 180px;
  text-align: center;
  padding: 20px;
}
.modal-media .ph-label { color: var(--faint); font-family: var(--font-mono); font-size: 0.78rem; max-width: 40ch; }
.modal-media.has-media {
  border: 1px solid var(--line);
  background: var(--bg-card);
  padding: 0;
  display: block;
}
.modal-media.has-media img, .modal-media.has-media video {
  display: block;
  width: 100%;
  height: auto;
}
.modal-desc { color: var(--muted); font-size: 0.95rem; margin: 18px 0; }
.modal-features { list-style: none; display: grid; gap: 8px; margin: 18px 0 24px; }
.modal-features li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 0.9rem;
  color: var(--muted);
}
.modal-features li::before { content: "✓"; color: var(--cyan); font-weight: 700; flex-shrink: 0; }
.modal-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.modal-actions .btn { flex: 1; text-align: center; min-width: 160px; }

@media (max-width: 560px) {
  .modal-panel { padding: 24px 20px; }
}

/* ---------- Prose pages (privacy / terms / refunds) ---------- */

.prose-hero { padding: 80px 0 40px; border-bottom: 1px solid var(--line-soft); }
.prose-hero .updated { font-family: var(--font-mono); font-size: 0.78rem; color: var(--faint); margin-top: 14px; }
.prose { max-width: 760px; padding: 56px 0 96px; }
.prose h2 { font-size: 1.5rem; margin: 44px 0 14px; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: 1.08rem; margin: 28px 0 10px; }
.prose p, .prose ul, .prose ol { margin-bottom: 14px; color: var(--muted); }
.prose ul, .prose ol { padding-left: 24px; }
.prose li { margin-bottom: 6px; }
.prose strong { color: var(--ink); }
.prose .callout {
  border: 1px solid var(--line);
  border-left: 3px solid var(--cyan);
  border-radius: var(--radius-sm);
  background: var(--bg-card);
  padding: 16px 20px;
  margin: 22px 0;
  font-size: 0.93rem;
}
.prose .callout.warn { border-left-color: var(--yellow); }
.prose .callout.danger { border-left-color: var(--magenta); }
.prose table { width: 100%; border-collapse: collapse; margin: 20px 0; font-size: 0.9rem; }
.prose th, .prose td { text-align: left; padding: 10px 14px; border: 1px solid var(--line-soft); color: var(--muted); }
.prose th { color: var(--ink); font-weight: 600; background: var(--bg-card); }

/* ---------- Docs layout ---------- */

.docs-layout {
  display: grid;
  grid-template-columns: 230px 1fr;
  gap: 56px;
  padding: 56px 0 96px;
  align-items: start;
}
.docs-nav {
  position: sticky;
  top: calc(var(--nav-h) + 32px);
  font-size: 0.9rem;
}
.docs-nav .group { margin-bottom: 26px; }
.docs-nav h4 {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--faint);
  margin-bottom: 10px;
}
.docs-nav ul { list-style: none; display: grid; gap: 2px; }
.docs-nav a {
  display: block;
  color: var(--muted);
  padding: 6px 12px;
  border-radius: 7px;
  border-left: 2px solid transparent;
}
.docs-nav a:hover { color: var(--ink); background: var(--bg-card); text-decoration: none; }
.docs-nav a.current {
  color: var(--ink);
  border-left-color: var(--magenta);
  border-radius: 0 7px 7px 0;
  background: var(--bg-card);
}

.docs-body { max-width: 720px; min-width: 0; }
.docs-body > h1 { font-size: 2.2rem; margin-bottom: 10px; }
.docs-body .doc-lede { color: var(--muted); font-size: 1.05rem; margin-bottom: 36px; }
.docs-body h2 { font-size: 1.45rem; margin: 48px 0 14px; padding-top: 8px; }
.docs-body h3 { font-size: 1.05rem; margin: 28px 0 10px; }
.docs-body p, .docs-body ul, .docs-body ol { margin-bottom: 14px; color: var(--muted); }
.docs-body ul, .docs-body ol { padding-left: 24px; }
.docs-body li { margin-bottom: 8px; }
.docs-body strong { color: var(--ink); }
.docs-body code {
  font-family: var(--font-mono);
  font-size: 0.84em;
  background: var(--bg-card);
  border: 1px solid var(--line-soft);
  border-radius: 5px;
  padding: 2px 6px;
  color: var(--ink);
}
.docs-body pre {
  background: var(--bg-raise);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-sm);
  padding: 16px 20px;
  overflow-x: auto;
  margin: 18px 0;
}
.docs-body pre code { background: none; border: none; padding: 0; font-size: 0.84rem; color: var(--muted); }
.docs-body .callout {
  border: 1px solid var(--line);
  border-left: 3px solid var(--cyan);
  border-radius: var(--radius-sm);
  background: var(--bg-card);
  padding: 14px 18px;
  margin: 20px 0;
  font-size: 0.92rem;
  color: var(--muted);
}
.docs-body .callout.warn { border-left-color: var(--yellow); }
.requirements-table-wrap { overflow-x: auto; margin: 20px 0; }
.requirements-table { width: 100%; min-width: 620px; border-collapse: collapse; font-size: .86rem; }
.requirements-table th, .requirements-table td { padding: 11px 12px; border: 1px solid var(--line-soft); text-align: left; vertical-align: top; }
.requirements-table th { color: var(--ink); background: var(--bg-raise); }
.requirements-table td { color: var(--muted); }

/* Screenshot / video placeholders styled like unplaced artwork frames */
.media-ph {
  margin: 24px 0;
  border: 1.5px dashed var(--line);
  border-radius: var(--radius-sm);
  background:
    repeating-linear-gradient(45deg, transparent, transparent 14px, rgba(255,255,255,0.02) 14px, rgba(255,255,255,0.02) 28px);
  display: grid;
  place-items: center;
  min-height: 220px;
  text-align: center;
  padding: 24px;
  position: relative;
}
.media-ph.video { aspect-ratio: 16 / 9; min-height: 0; }
.media-ph .ph-tag {
  position: absolute;
  top: 10px; left: 12px;
  font-family: var(--font-mono);
  font-size: 0.64rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--faint);
}
.media-ph figcaption, .media-ph .ph-label {
  color: var(--faint);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  max-width: 46ch;
}
.media-ph .play {
  width: 58px; height: 58px;
  border-radius: 50%;
  background: var(--grad);
  display: grid;
  place-items: center;
  margin: 0 auto 14px;
  color: #0b0b10;
  font-size: 1.2rem;
}

/* Real screenshots / clips replacing the placeholder frames */
.media-shot {
  margin: 24px 0;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--bg-raise);
}
.media-shot img, .media-shot video {
  display: block;
  width: 100%;
  height: auto;
}
.media-shot.video { aspect-ratio: 16 / 9; }
.media-shot.video iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}
.media-shot figcaption {
  color: var(--faint);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  padding: 12px 16px;
  border-top: 1px solid var(--line-soft);
}

.doc-steps { list-style: none; padding: 0; counter-reset: docstep; margin: 20px 0; }
.doc-steps > li {
  position: relative;
  padding: 0 0 26px 52px;
  margin: 0;
}
.doc-steps > li::before {
  counter-increment: docstep;
  content: counter(docstep);
  position: absolute;
  left: 0; top: -2px;
  width: 32px; height: 32px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--bg-card);
  display: grid;
  place-items: center;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--cyan);
}
.doc-steps > li::after {
  content: "";
  position: absolute;
  left: 16px; top: 34px; bottom: 4px;
  width: 1px;
  background: var(--line-soft);
}
.doc-steps > li:last-child::after { display: none; }
.doc-steps h3 { margin: 2px 0 8px; }

.doc-next {
  margin-top: 56px;
  display: flex;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}

.crumbs { font-size: 0.82rem; color: var(--faint); margin-bottom: 18px; }
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--ink); }

.doc-hero-head { display: flex; align-items: center; gap: 14px; margin-bottom: 4px; }
.doc-hero-head .card-icon { width: 46px; height: 46px; font-size: 1.25rem; flex-shrink: 0; }
.doc-hero-head h1 { margin-bottom: 0; }

/* ---------- Requirements, releases, and news ---------- */
.requirements-section { background: rgba(255,255,255,0.018); border-block: 1px solid var(--line-soft); }
.requirements-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.requirement-card ul { margin: 18px 0 12px; padding-left: 20px; color: var(--muted); }
.requirement-card li + li { margin-top: 7px; }
.requirement-level { display: inline-flex; padding: 5px 9px; border: 1px solid var(--line); border-radius: 999px; font-family: var(--font-mono); font-size: .68rem; letter-spacing: .05em; text-transform: uppercase; }
.requirement-level.required { color: var(--cyan); background: rgba(68,226,218,.08); }
.requirement-level.packages { color: #c4b5fd; background: rgba(139,92,246,.1); }
.requirement-level.optional { color: #fbbf24; background: rgba(251,191,36,.08); }
.requirements-more { margin: 24px 0 0; text-align: center; }
.requirements-more .btn { white-space: normal; max-width: 100%; text-align: center; }
.release-filters { display: flex; flex-wrap: wrap; gap: 9px; margin: 28px 0 34px; }
.release-filters .tab { cursor: pointer; }
.release-group { margin-top: 42px; }
.release-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 16px; }
.release-card, .news-card { scroll-margin-top: calc(var(--nav-h) + 20px); border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg-card); padding: 22px; }
.release-card + .release-card, .news-card + .news-card { margin-top: 16px; }
.release-grid .release-card + .release-card { margin-top: 0; }
.release-card:target, .release-version:target, .news-card:target { border-color: var(--cyan); box-shadow: 0 0 0 3px rgba(68,226,218,.08); }
.release-card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; }
.release-card h3, .news-card h2 { margin: 0 0 6px; }
.release-meta { color: var(--faint); font-family: var(--font-mono); font-size: .75rem; }
.release-version { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line-soft); scroll-margin-top: calc(var(--nav-h) + 20px); }
.release-version h4 { margin: 0 0 4px; font-size: 1rem; }
.release-version time { color: var(--faint); font-size: .78rem; }
.release-version ul { margin-bottom: 0; }
.news-list { margin-top: 34px; }
.news-card h2 { font-size: clamp(1.25rem, 3vw, 1.65rem); }
.news-card h2 a { color: var(--ink); }
.news-card h2 a:hover { color: var(--cyan); }

/* ---------- Responsive ---------- */

@media (max-width: 960px) {
  .grid, .addon-grid, .pricing-grid, .steps { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .docs-layout { grid-template-columns: 1fr; gap: 32px; }
  .docs-nav { position: static; display: flex; gap: 24px; flex-wrap: wrap; border: 1px solid var(--line-soft); border-radius: var(--radius); padding: 18px 20px; }
  .docs-nav .group { margin-bottom: 0; }
  .requirements-grid { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .section { padding: 64px 0; }
  .grid, .addon-grid, .pricing-grid, .steps { grid-template-columns: 1fr; }
  .hero { padding: 64px 0 56px; }
  .hero-canvas { padding: 24px; }
  .print-area { min-height: 240px; }
  .hero-video { min-height: 240px; }

  .nav-toggle { display: block; }
  .nav-links {
    display: none;
    position: absolute;
    top: var(--nav-h);
    left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    background: rgba(11, 11, 16, 0.97);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--line);
    padding: 16px 24px 24px;
    gap: 4px;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 10px 4px; font-size: 1rem; }
  .nav-cta { margin: 10px 0 0; text-align: center; }
  .footer-grid { grid-template-columns: 1fr; }
  .release-grid { grid-template-columns: 1fr; }
}
