/* ==========================================================================
   Blocs Templates — 2026 static rebuild
   Hand-written CSS. No frameworks.
   ========================================================================== */

/* ---------- Tokens ---------- */
:root {
  --bg: #0d0b12;
  --bg-soft: #15121c;
  --bg-card: #16131e;
  --ink: #f6f5f9;
  --ink-2: #d9d7e0;
  --muted: #a3a0af;
  --muted-2: #726f80;
  --line: #262230;
  --line-2: #332e40;
  --brand-a: #9900ff;
  --brand-b: #0088ff;
  --grad: linear-gradient(128deg, var(--brand-a) 0%, var(--brand-b) 100%);
  --grad-soft: linear-gradient(128deg, rgba(153, 0, 255, .08), rgba(0, 136, 255, .08));
  --green: #0a8f4c;
  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 24px;
  --r-pill: 999px;
  --shadow-1: 0 1px 2px rgba(0, 0, 0, .3), 0 4px 12px rgba(0, 0, 0, .25);
  --shadow-2: 0 2px 4px rgba(0, 0, 0, .3), 0 12px 32px rgba(0, 0, 0, .4);
  --shadow-3: 0 4px 8px rgba(0, 0, 0, .35), 0 24px 64px rgba(0, 0, 0, .55);
  --noise: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.72' numOctaves='4' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.6'/%3E%3C/svg%3E");
  --noise-dark: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.72' numOctaves='4' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.13'/%3E%3C/svg%3E");
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-accent: "Instrument Serif", Georgia, serif;
  --container: 1200px;
  --nav-h: 72px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: 88px; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.65;
  font-feature-settings: "liga", "calt", "kern";
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
h1, h2, h3, h4, p { margin: 0; }

::selection { background: rgba(153, 0, 255, .38); }

/* ---------- Type ---------- */
.display {
  font-size: clamp(2.5rem, 1.4rem + 4.6vw, 4.6rem);
  line-height: 1.03;
  font-weight: 700;
  letter-spacing: -0.042em;
  text-wrap: balance;
}
.h2 {
  font-size: clamp(1.9rem, 1.2rem + 2.6vw, 3rem);
  line-height: 1.08;
  font-weight: 650;
  letter-spacing: -0.035em;
  text-wrap: balance;
}
.h3 {
  font-size: clamp(1.4rem, 1.1rem + 1.2vw, 1.9rem);
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.h4 { font-size: 1.25rem; line-height: 1.3; font-weight: 650; letter-spacing: -0.015em; }
.lead {
  font-size: clamp(1.05rem, .95rem + .5vw, 1.28rem);
  line-height: 1.6;
  color: var(--muted);
  font-weight: 400;
  text-wrap: pretty;
}
.eyebrow {
  font-size: .78rem;
  font-weight: 650;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted-2);
}
.accent-serif {
  font-family: var(--font-accent);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.01em;
}
.grad-text {
  background: linear-gradient(128deg, #c07aff, #6cb8ff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------- Layout ---------- */
.container {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: clamp(20px, 4vw, 32px);
}
.section { padding-block: clamp(72px, 10vw, 140px); }
.section-sm { padding-block: clamp(48px, 6vw, 88px); }
.section-head { max-width: 720px; margin-inline: auto; text-align: center; margin-bottom: clamp(40px, 5vw, 72px); }
.section-head .lead { margin-top: 18px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--r-pill);
  font-weight: 600;
  font-size: .98rem;
  line-height: 1;
  border: 1px solid transparent;
  transition: transform .18s ease, box-shadow .18s ease, background-color .18s ease, border-color .18s ease;
  white-space: nowrap;
}
.btn.btn-loading { opacity: .75; cursor: progress; pointer-events: none; }
.btn:active { transform: translateY(1px) scale(.99); }
.btn-primary {
  background: #fff;
  color: #0d0b12;
  box-shadow: var(--shadow-1);
}
.btn-primary:hover { background: #e9e6f0; box-shadow: var(--shadow-2); transform: translateY(-1px); }
.btn-grad {
  background: var(--grad);
  color: #fff;
  border: none;
  box-shadow: 0 4px 16px rgba(80, 60, 255, .25);
}
.btn-grad:hover { box-shadow: 0 8px 28px rgba(80, 60, 255, .35); transform: translateY(-1px); filter: saturate(1.1); }
.btn-ghost {
  background: rgba(255, 255, 255, .04);
  color: var(--ink);
  border-color: var(--line-2);
}
.btn-ghost:hover { border-color: #8f8b9e; transform: translateY(-1px); }
.btn-lg { padding: 17px 34px; font-size: 1.05rem; }
.btn-block { width: 100%; }
.btn svg { flex: none; }

/* ---------- Nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(13, 11, 18, .72);
  -webkit-backdrop-filter: saturate(1.4) blur(16px);
  backdrop-filter: saturate(1.4) blur(16px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s ease, background-color .25s ease;
}
.nav.scrolled { border-bottom-color: var(--line); }
.nav-inner {
  height: var(--nav-h);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
}
.nav-inner .nav-logo { grid-column: 1; justify-self: start; }
.nav-inner .nav-links { grid-column: 2; }
.nav-inner .nav-cta { grid-column: 3; justify-self: end; }
.nav-logo { display: inline-flex; align-items: center; gap: 10px; }
.nav-logo img { height: 32px; width: auto; }
.nav-wordmark { font-weight: 700; font-size: 1.02rem; letter-spacing: -0.02em; }
@media (max-width: 480px) { .nav-wordmark { display: none; } }
.nav-links {
  display: flex;
  gap: 4px;
  align-items: center;
}
.nav-links a {
  padding: 9px 15px;
  border-radius: var(--r-pill);
  font-size: .94rem;
  font-weight: 550;
  color: var(--ink-2);
  transition: background-color .15s ease, color .15s ease;
}
.nav-links a:hover { background: var(--bg-soft); color: var(--ink); }
.nav-cta { display: flex; align-items: center; gap: 10px; }
.nav-cta .btn { padding: 11px 22px; font-size: .92rem; }
.nav-account {
  display: inline-flex;
  width: 40px; height: 40px;
  align-items: center; justify-content: center;
  border-radius: 50%;
  color: var(--ink-2);
  transition: background-color .15s ease;
}
.nav-account:hover { background: var(--bg-soft); }
.nav-burger {
  display: none;
  background: none;
  border: 0;
  padding: 8px;
  margin-left: auto;
  color: var(--ink);
}

.nav-links .only-mobile { display: none; }
@media (max-width: 860px) {
  .nav-inner { gap: 12px; }
  .nav-links {
    display: none;
    position: absolute;
    top: var(--nav-h);
    left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    background: #12101a;
    border-bottom: 1px solid var(--line);
    padding: 12px 20px 20px;
    gap: 2px;
    box-shadow: var(--shadow-2);
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 13px 15px; font-size: 1.05rem; }
  .nav-links .only-mobile { display: block; border-top: 1px solid var(--line); margin-top: 6px; padding-top: 15px; border-radius: 0; }
  .nav-burger { display: block; margin-left: 0; }
  .nav-cta { gap: 8px; }
  .nav-cta .btn { padding: 11px 18px; font-size: .9rem; }
}
@media (max-width: 420px) {
  .nav-account { display: none; }
}

/* ---------- Hero & page headers (shared textured background) ---------- */
.hero {
  padding-block: clamp(64px, 9vw, 128px) clamp(40px, 5vw, 64px);
  text-align: center;
}
.hero, .tpl-head {
  position: relative;
  overflow: clip;
  /* visible dot grid, dissolving fully to white before the section edge */
  background-image:
    linear-gradient(180deg, rgba(13, 11, 18, 0) 45%, rgba(13, 11, 18, .85) 82%, #0d0b12 94%),
    radial-gradient(rgba(255, 255, 255, .10) 1.2px, transparent 1.7px);
  background-size: auto, 22px 22px;
}
.hero::before, .tpl-head::before {
  content: "";
  position: absolute;
  inset: -60% -40% auto;
  height: 180%;
  background:
    radial-gradient(42% 55% at 30% 28%, rgba(153, 0, 255, .48), transparent 70%),
    radial-gradient(42% 55% at 70% 30%, rgba(0, 136, 255, .40), transparent 70%),
    radial-gradient(30% 40% at 50% 60%, rgba(153, 0, 255, .20), transparent 70%),
    conic-gradient(from 180deg at 50% -10%, rgba(153, 0, 255, .14), rgba(0, 136, 255, .14), rgba(153, 0, 255, .14));
  /* fade the glow out smoothly instead of clipping at the section edge */
  -webkit-mask-image: linear-gradient(180deg, #000 45%, transparent 92%);
  mask-image: linear-gradient(180deg, #000 45%, transparent 92%);
  pointer-events: none;
  will-change: transform;
  transform-origin: 50% 40%;
}
.hero::after, .tpl-head::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--noise) repeat;
  opacity: .08;
  -webkit-mask-image: linear-gradient(180deg, #000 40%, transparent 95%);
  mask-image: linear-gradient(180deg, #000 40%, transparent 95%);
  pointer-events: none;
}
.hero > .container, .tpl-head > .container { position: relative; }
.hero .display { max-width: 880px; margin-inline: auto; }
.hero .lead { max-width: 620px; margin: 22px auto 0; }
.hero-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 36px;
}

/* Trust row */
.trust {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 34px;
  padding: 8px 18px 8px 8px;
  border: 1px solid var(--line-2);
  border-radius: var(--r-pill);
  background: rgba(255, 255, 255, .05);
  box-shadow: var(--shadow-1);
}
.trust-avatars { display: flex; }
.trust-avatars img {
  width: 34px; height: 34px;
  border-radius: 50%;
  border: 2px solid #201c2a;
  object-fit: cover;
}
.trust-avatars img + img { margin-left: -10px; }
.trust-meta { text-align: left; }
.trust-stars { display: flex; gap: 2px; color: #f5a623; }
.trust-stars svg { width: 13px; height: 13px; fill: currentColor; }
.trust-meta p { font-size: .82rem; color: var(--muted); font-weight: 550; margin-top: 1px; }

/* ---------- Category filter ---------- */
.filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-bottom: clamp(36px, 4vw, 56px);
}
.chip {
  padding: 9px 18px;
  border-radius: var(--r-pill);
  border: 1px solid var(--line-2);
  background: rgba(255, 255, 255, .03);
  font-size: .9rem;
  font-weight: 550;
  color: var(--ink-2);
  transition: all .16s ease;
}
.chip:hover { border-color: #8f8b9e; color: var(--ink); }
.chip.active {
  background: #fff;
  border-color: #fff;
  color: #0d0b12;
}

/* ---------- Template grid ---------- */
.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(20px, 2.5vw, 32px);
}
@media (max-width: 980px) { .grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .grid { grid-template-columns: 1fr; } }

.card {
  position: relative;
  border-radius: var(--r-lg);
  border: 1px solid var(--line);
  background: var(--bg-card);
  overflow: hidden;
  transition: transform .25s cubic-bezier(.2, .7, .3, 1), box-shadow .25s ease, border-color .25s ease;
}
.card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-3);
  border-color: var(--line-2);
}
.card.hidden { display: none; }
.card-media {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--bg-soft);
}
.card-media img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: top;
  transition: transform .6s cubic-bezier(.2, .7, .3, 1);
}
.card:hover .card-media img { transform: scale(1.035); }
.card-body {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 20px;
}
.card-name { font-weight: 650; font-size: 1.06rem; letter-spacing: -0.01em; }
.card-sub { font-size: .8rem; color: var(--muted-2); margin-top: 2px; }
.card-price {
  font-feature-settings: "tnum";
  font-weight: 650;
  font-size: .92rem;
  padding: 6px 14px;
  border-radius: var(--r-pill);
  background: var(--bg-soft);
  color: var(--ink-2);
  flex: none;
}
.card-price.free {
  background: rgba(52, 199, 123, .14);
  color: #5fdf9e;
}
.grid-empty {
  text-align: center;
  color: var(--muted);
  padding: 64px 0;
  display: none;
}

/* ---------- Pricing ---------- */
.pricing-cards {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: clamp(20px, 2.5vw, 32px);
  align-items: stretch;
}
@media (max-width: 900px) { .pricing-cards { grid-template-columns: 1fr; } }
.price-card {
  border-radius: var(--r-lg);
  border: 1px solid var(--line);
  padding: clamp(28px, 3.5vw, 44px);
  display: flex;
  flex-direction: column;
  background: var(--bg-card);
  box-shadow: var(--shadow-1);
}
.price-card .eyebrow { margin-bottom: 14px; }
.price-card h3 { margin-bottom: 10px; }
.price-card .price-desc { color: var(--muted); font-size: .98rem; margin-bottom: 22px; }
.price-num {
  font-feature-settings: "tnum";
  font-size: 2.6rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1;
}
.price-num sup { font-size: 1.1rem; font-weight: 600; top: -1.1em; margin-right: 2px; }
.price-note { font-size: .85rem; color: var(--muted-2); margin: 8px 0 26px; }
.price-feats { list-style: none; margin: 0 0 30px; padding: 0; display: grid; gap: 11px; }
.price-feats li {
  display: flex;
  gap: 11px;
  align-items: flex-start;
  font-size: .95rem;
  color: var(--ink-2);
}
.price-feats svg { flex: none; width: 18px; height: 18px; margin-top: 3px; color: var(--brand-b); }
.price-card .btn { margin-top: auto; }
.price-foot { text-align: center; font-size: .82rem; color: var(--muted-2); margin-top: 14px; }

.price-card.dark {
  background:
    var(--noise-dark) repeat,
    radial-gradient(80% 60% at 85% -10%, rgba(153, 0, 255, .45), transparent 60%),
    radial-gradient(70% 55% at 10% 110%, rgba(0, 136, 255, .38), transparent 60%),
    #191521;
  border-color: rgba(190, 140, 255, .3);
  color: #fff;
  box-shadow: var(--shadow-3);
}
.price-card.dark .eyebrow { color: rgba(255, 255, 255, .55); }
.price-card.dark .price-desc { color: rgba(255, 255, 255, .68); }
.price-card.dark .price-note { color: rgba(255, 255, 255, .5); }
.price-card.dark .price-feats li { color: rgba(255, 255, 255, .85); }
.price-card.dark .price-feats svg { color: #7fc2ff; }
.price-card.dark .price-foot { color: rgba(255, 255, 255, .45); }
.value-table {
  border: 1px solid rgba(255, 255, 255, .14);
  background: rgba(255, 255, 255, .05);
  border-radius: var(--r-md);
  padding: 18px 20px;
  margin-bottom: 26px;
  font-size: .92rem;
}
.value-table .vrow {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 5px 0;
  color: rgba(255, 255, 255, .8);
}
.value-table .vrow .soon { color: #9be0a9; font-size: .82rem; }
.value-table .vtotal {
  display: flex;
  justify-content: space-between;
  padding-top: 12px;
  margin-top: 8px;
  border-top: 1px solid rgba(255, 255, 255, .14);
  font-weight: 650;
  color: #fff;
}

/* ---------- Feature grid ---------- */
.features {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(16px, 2vw, 24px);
}
@media (max-width: 1000px) { .features { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .features { grid-template-columns: 1fr; } }
.feature {
  border-radius: var(--r-md);
  border: 1px solid var(--line);
  background: var(--bg-card);
  padding: 28px 24px;
  transition: transform .22s ease, box-shadow .22s ease;
}
.feature:hover { transform: translateY(-3px); box-shadow: var(--shadow-2); }
.feature-icon {
  width: 44px; height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(128deg, rgba(153, 0, 255, .18), rgba(0, 136, 255, .18));
  margin-bottom: 18px;
}
.feature-icon svg { width: 20px; height: 20px; fill: url(#icon-grad); }
.feature h4 { font-size: 1.02rem; font-weight: 650; margin-bottom: 6px; letter-spacing: -0.01em; }
.feature p { font-size: .93rem; color: var(--muted); line-height: 1.6; }

/* ---------- Showcase (From template to live site) ---------- */
.showcase {
  border-block: 1px solid var(--line);
  background:
    var(--noise-dark) repeat,
    radial-gradient(60% 80% at 80% -10%, rgba(153, 0, 255, .22), transparent 60%),
    radial-gradient(60% 80% at 12% 105%, rgba(0, 136, 255, .18), transparent 60%),
    #0c0c0f;
  color: #fff;
  overflow: clip;
}
.showcase .section-head .lead { color: rgba(255, 255, 255, .62); }
.showcase .eyebrow { color: rgba(255, 255, 255, .45); }
.grad-text-light {
  background: linear-gradient(128deg, #c07aff, #6cb8ff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.showcase-shots {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: clamp(14px, 2.5vw, 32px);
  align-items: center;
  max-width: 1060px;
  margin-inline: auto;
}
.showcase-shot { margin: 0; }
.showcase-shot img {
  width: 100%;
  border-radius: var(--r-md);
  border: 1px solid rgba(255, 255, 255, .14);
  box-shadow: 0 24px 64px rgba(0, 0, 0, .5);
  transition: transform .35s cubic-bezier(.2, .7, .3, 1);
}
.showcase-shot:hover img { transform: translateY(-4px); }
.showcase-shot figcaption {
  font-size: .9rem;
  color: rgba(255, 255, 255, .55);
  margin-top: 14px;
  text-align: center;
}
.showcase-arrow {
  color: #8fc6ff;
  display: flex;
  align-items: center;
  justify-content: center;
}
@media (prefers-reduced-motion: no-preference) {
  .showcase-arrow svg { animation: nudge 1.8s ease-in-out infinite; }
  @keyframes nudge { 0%, 100% { transform: translateX(0); } 50% { transform: translateX(6px); } }
}
@media (max-width: 700px) {
  .showcase-shots { grid-template-columns: 1fr; }
  .showcase-arrow svg { transform: rotate(90deg); animation: none; }
}
.stat-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(12px, 2vw, 24px);
  max-width: 900px;
  margin: clamp(40px, 5vw, 64px) auto 0;
  text-align: center;
}
@media (max-width: 640px) { .stat-row { grid-template-columns: repeat(2, 1fr); } }
.stat {
  border: 1px solid rgba(255, 255, 255, .12);
  background: rgba(255, 255, 255, .04);
  border-radius: var(--r-md);
  padding: 22px 12px 18px;
}
.stat-num {
  font-size: clamp(1.6rem, 1.2rem + 1.4vw, 2.2rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  font-feature-settings: "tnum";
  background: linear-gradient(128deg, #d9b3ff, #9ed1ff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.stat-label { font-size: .85rem; color: rgba(255, 255, 255, .55); margin-top: 4px; }

/* ---------- How it works (interactive tabs) ---------- */
.howit {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: clamp(20px, 3vw, 40px);
  align-items: center;
}
@media (max-width: 860px) { .howit { grid-template-columns: 1fr; } }
.howit-tabs { display: grid; gap: 10px; }
.howit-tab {
  position: relative;
  display: flex;
  gap: 16px;
  text-align: left;
  padding: 20px 22px;
  border-radius: var(--r-md);
  border: 1px solid var(--line);
  background: var(--bg-card);
  overflow: hidden;
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}
.howit-tab:hover { transform: translateY(-1px); border-color: var(--line-2); }
.howit-tab.active { border-color: var(--line-2); box-shadow: var(--shadow-2); }
.howit-num {
  font-size: .82rem;
  font-weight: 650;
  letter-spacing: .08em;
  color: var(--muted-2);
  padding-top: 3px;
  transition: color .2s ease;
}
.howit-tab.active .howit-num {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.howit-body { display: grid; gap: 4px; }
.howit-body strong { font-size: 1.06rem; font-weight: 650; letter-spacing: -0.01em; }
.howit-body span { font-size: .92rem; color: var(--muted); line-height: 1.55; }
.howit-tab:not(.active) .howit-body span { display: none; }
@media (min-width: 861px) { .howit-tab:not(.active) .howit-body span { display: block; } }
.howit-progress {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 3px;
  background: var(--grad);
  transform: scaleX(0);
  transform-origin: left;
}
@media (prefers-reduced-motion: no-preference) {
  .howit-tab.active .howit-progress { animation: howitFill var(--howit-dur, 5s) linear forwards; }
  @keyframes howitFill { from { transform: scaleX(0); } to { transform: scaleX(1); } }
}
.howit-media {
  position: relative;
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--bg-soft);
  box-shadow: var(--shadow-2);
}
.howit-img { width: 100%; display: block; }
.howit-img:not(.active) { position: absolute; inset: 0; opacity: 0; }
.howit-img { transition: opacity .5s ease; }
.howit-img.active { opacity: 1; position: relative; }

/* ---------- Testimonials ---------- */
.testimonials {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(20px, 2.5vw, 28px);
}
@media (max-width: 800px) { .testimonials { grid-template-columns: 1fr; } }
.tcard {
  border-radius: var(--r-lg);
  border: 1px solid var(--line);
  background: linear-gradient(180deg, #1a1624, var(--bg-card) 55%);
  padding: clamp(26px, 3vw, 38px);
}
.tcard-stars { display: flex; gap: 3px; color: #f5a623; margin-bottom: 18px; }
.tcard-stars svg { width: 16px; height: 16px; fill: currentColor; }
.tcard blockquote {
  margin: 0 0 14px;
  font-size: 1.12rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.45;
}
.tcard .tbody { color: var(--muted); font-size: .97rem; line-height: 1.65; margin-bottom: 20px; }
.tcard .tname { font-weight: 650; font-size: .95rem; }

/* ---------- FAQ ---------- */
.faq-wrap {
  display: grid;
  grid-template-columns: 4fr 7fr;
  gap: clamp(32px, 4vw, 64px);
  align-items: start;
}
@media (max-width: 860px) { .faq-wrap { grid-template-columns: 1fr; } }
.faq-intro h2 { margin-bottom: 20px; }
.faq details {
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--bg-card);
  margin-bottom: 10px;
  overflow: hidden;
  transition: border-color .2s ease;
}
.faq details.expanded { border-color: var(--line-2); box-shadow: var(--shadow-1); }
.faq summary {
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 18px 22px;
  font-weight: 600;
  font-size: .98rem;
  cursor: pointer;
  letter-spacing: -0.01em;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "";
  flex: none;
  width: 10px; height: 10px;
  border-right: 2px solid var(--muted-2);
  border-bottom: 2px solid var(--muted-2);
  transform: rotate(45deg);
  transition: transform .25s ease;
  margin-top: -4px;
}
.faq details.expanded summary::after { transform: rotate(225deg); margin-top: 4px; }
.faq details p {
  color: var(--muted);
  font-size: .97rem;
  line-height: 1.7;
  max-width: 60ch;
}

/* ---------- Footer ---------- */
.footer {
  border-top: 1px solid var(--line);
  padding-top: clamp(48px, 6vw, 80px);
  background: linear-gradient(180deg, #0d0b12, #0a080f);
}
.footer-grid {
  display: grid;
  grid-template-columns: 4fr 2.6fr 2.6fr 2.8fr;
  gap: clamp(28px, 4vw, 56px);
  padding-bottom: clamp(40px, 5vw, 64px);
}
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-brand .nav-logo { margin-bottom: 16px; }
.footer-brand p { font-size: .92rem; color: var(--muted); max-width: 300px; margin-bottom: 20px; }
.footer-social {
  display: inline-flex;
  width: 40px; height: 40px;
  align-items: center; justify-content: center;
  border-radius: 50%;
  border: 1px solid var(--line-2);
  color: var(--ink-2);
  transition: all .16s ease;
}
.footer-social:hover { border-color: var(--ink); transform: translateY(-1px); }
.footer-col h4 {
  font-size: .82rem;
  font-weight: 650;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted-2);
  margin-bottom: 16px;
}
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer-col a { font-size: .93rem; color: var(--ink-2); font-weight: 500; transition: color .14s ease; }
.footer-col a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.footer-bottom {
  border-top: 1px solid var(--line);
  padding-block: 22px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  font-size: .85rem;
  color: var(--muted);
}
.footer-bottom a { color: var(--ink-2); font-weight: 550; }
.footer-bottom a:hover { text-decoration: underline; }

/* ---------- Template page (v2) ---------- */
.tpl-head { text-align: center; padding-top: clamp(32px, 4vw, 56px); }
/* the template header section is tall — pin its glow and dot fade to the top area */
.tpl-head::before {
  inset: -220px -10% auto;
  height: 860px;
  -webkit-mask-image: linear-gradient(180deg, #000 40%, transparent 96%);
  mask-image: linear-gradient(180deg, #000 40%, transparent 96%);
}
.tpl-head {
  background-image:
    linear-gradient(180deg, rgba(13, 11, 18, 0) 0px, rgba(13, 11, 18, 0) 280px, rgba(13, 11, 18, .85) 560px, #0d0b12 700px),
    radial-gradient(rgba(255, 255, 255, .10) 1.2px, transparent 1.7px);
  background-size: auto, 22px 22px;
}
.tpl-head::after {
  -webkit-mask-image: linear-gradient(180deg, #000 0, #000 300px, transparent 750px);
  mask-image: linear-gradient(180deg, #000 0, #000 300px, transparent 750px);
}
.tpl-head .eyebrow a { color: inherit; }
.tpl-head .eyebrow a:hover { color: var(--ink); }
.tpl-title-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 14px;
}
.tpl-head h1 {
  font-size: clamp(2.1rem, 1.2rem + 2.7vw, 3.2rem);
  letter-spacing: -0.03em;
  line-height: 1.05;
  font-weight: 700;
  text-wrap: balance;
  margin-top: 30px;   /* match the gap below the title (.tpl-summary) */
}
.tpl-price-badge {
  font-size: 1.05rem;
  font-weight: 650;
  padding: 8px 18px;
  border-radius: var(--r-pill);
  background: rgba(255, 255, 255, .05);
  border: 1px solid var(--line-2);
  align-self: center;
  position: relative;
  top: 2px;
}
.tpl-price-badge.free { background: rgba(52,199,123,.14); border-color: rgba(52,199,123,.3); color: #5fdf9e; }
.tpl-summary { max-width: 620px; margin: 30px auto 0; font-size: clamp(1.05rem, .95rem + .5vw, 1.22rem); line-height: 1.65; }
.tpl-head .hero-actions { margin-top: 30px; }
.tpl-meta {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 28px;
}
.meta-pill { /* dark */
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: .84rem;
  font-weight: 550;
  color: var(--muted);
  padding: 8px 15px;
  border: 1px solid var(--line-2);
  border-radius: var(--r-pill);
  background: rgba(255, 255, 255, .04);
}
.meta-pill strong { color: var(--ink); font-weight: 650; }
a.meta-pill { /* dark */ transition: all .15s ease; }
a.meta-pill:hover { border-color: var(--ink); color: var(--ink); }

/* framed screenshot */
.frame {
  max-width: 1080px;
  margin: clamp(36px, 5vw, 56px) auto 0;
  border-radius: var(--r-lg);
  border: 1px solid var(--line-2);
  background: var(--bg-card);
  box-shadow: var(--shadow-3);
  overflow: hidden;
  display: block;
  position: relative;
}
.frame-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  background: var(--bg-soft);
}
.frame-bar span { width: 10px; height: 10px; border-radius: 50%; background: var(--line-2); }
.frame-bar .addr {
  flex: none;
  width: auto; height: auto;
  margin-inline: auto;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  font-size: .74rem;
  color: var(--muted-2);
  padding: 3px 14px;
  font-weight: 500;
}
.frame img { width: 100%; }
.frame .shot-hint {
  position: absolute;
  right: 16px; bottom: 16px;
  background: rgba(10, 10, 11, .78);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  color: #fff;
  font-size: .82rem;
  font-weight: 550;
  padding: 8px 14px;
  border-radius: var(--r-pill);
  display: inline-flex;
  align-items: center;
  gap: 7px;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity .25s ease, transform .25s ease;
}
.frame:hover .shot-hint { opacity: 1; transform: none; }

/* info cards */
.info-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(16px, 2vw, 24px);
  margin-top: clamp(40px, 5vw, 64px);
}
@media (max-width: 860px) { .info-cards { grid-template-columns: 1fr; } }
.info-card {
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--bg-card);
  padding: 26px 26px 22px;
  text-align: left;
}
.info-card h3 { font-size: 1rem; font-weight: 650; margin-bottom: 16px; letter-spacing: -0.01em; }
.info-card .spec-row { font-size: .95rem; padding: 11px 0; display: flex; justify-content: space-between; gap: 16px; font-feature-settings: "tnum"; }
.info-card .spec-row + .spec-row { border-top: 1px solid var(--line); }
.info-card .spec-row .k { color: var(--muted); }
.info-card .spec-row .v { font-weight: 600; }
.info-card ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; font-size: .9rem; color: var(--ink-2); }
.info-card ul li { display: flex; gap: 10px; align-items: flex-start; }
.info-card ul svg { flex: none; width: 16px; height: 16px; margin-top: 2px; color: var(--brand-b); }
.info-card p { font-size: .9rem; color: var(--muted); line-height: 1.65; }
.info-card .tpl-desc-extra { display: grid; gap: 10px; }
.info-card .tpl-desc-extra p { margin: 0; }
.info-card .info-note { margin-top: 24px; padding-top: 18px; border-top: 1px solid var(--line); font-size: .88rem; display: grid; gap: 4px; }
.info-card .info-note span { display: block; }
.info-card p a, .info-card .foot-link { color: var(--ink-2); font-weight: 600; }
.info-card p a:hover { text-decoration: underline; }

/* mobile buy bar */
.buy-bar {
  display: none;
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 60;
  background: rgba(16, 13, 22, .92);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-top: 1px solid var(--line);
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
  align-items: center;
  gap: 12px;
}
.buy-bar .bb-name { font-weight: 650; font-size: .95rem; line-height: 1.2; }
.buy-bar .bb-price { font-size: .8rem; color: var(--muted); }
.buy-bar .btn { margin-left: auto; padding: 12px 22px; font-size: .92rem; }
@media (max-width: 700px) {
  .buy-bar { display: flex; }
  .tpl-page main { padding-bottom: 76px; }
}

/* ---------- Template detail page ---------- */
.tpl-hero { padding-block: clamp(36px, 5vw, 64px) clamp(56px, 7vw, 96px); }
.tpl-grid {
  display: grid;
  grid-template-columns: 8fr 4fr;
  gap: clamp(28px, 3.5vw, 48px);
  align-items: start;
}
@media (max-width: 900px) { .tpl-grid { grid-template-columns: 1fr; } }
.tpl-shot {
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-2);
  position: relative;
  display: block;
  background: var(--bg-soft);
}
.tpl-shot img { width: 100%; }
.tpl-shot .shot-hint {
  position: absolute;
  right: 16px; bottom: 16px;
  background: rgba(10, 10, 11, .78);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  color: #fff;
  font-size: .82rem;
  font-weight: 550;
  padding: 8px 14px;
  border-radius: var(--r-pill);
  display: inline-flex;
  align-items: center;
  gap: 7px;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity .25s ease, transform .25s ease;
}
.tpl-shot:hover .shot-hint { opacity: 1; transform: none; }
.tpl-side { position: sticky; top: calc(var(--nav-h) + 24px); }
.tpl-breadcrumb {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: .88rem;
  color: var(--muted);
  margin-bottom: 14px;
  font-weight: 550;
}
.tpl-breadcrumb:hover { color: var(--ink); }
.tpl-side h1 {
  font-size: clamp(2rem, 1.6rem + 1.6vw, 2.8rem);
  letter-spacing: -0.03em;
  line-height: 1.05;
  font-weight: 700;
  margin-bottom: 14px;
}
.tpl-desc { color: var(--muted); font-size: 1rem; line-height: 1.7; display: grid; gap: 10px; margin-bottom: 24px; }
.tpl-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 26px; }
.tpl-tag {
  font-size: .78rem;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: var(--r-pill);
  background: var(--bg-soft);
  color: var(--muted);
  text-transform: capitalize;
}
.tpl-tag:hover { color: var(--ink); background: var(--line); }
.tpl-actions { display: grid; gap: 10px; margin-bottom: 12px; }
.tpl-allaccess-note { font-size: .82rem; color: var(--muted-2); text-align: center; margin-bottom: 26px; }
.tpl-allaccess-note a { font-weight: 600; color: var(--ink-2); }
.tpl-allaccess-note a:hover { text-decoration: underline; }

.spec {
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  overflow: hidden;
  margin-bottom: 12px;
}
.spec-head {
  padding: 14px 18px;
  font-weight: 650;
  font-size: .92rem;
  background: rgba(255,255,255,.03);
  border-bottom: 1px solid var(--line);
}
.spec-rows { padding: 8px 18px; }
.spec-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 8px 0;
  font-size: .9rem;
}
.spec-row + .spec-row { border-top: 1px solid var(--line); }
.spec-row .k { color: var(--muted); }
.spec-row .v { font-weight: 600; }
.spec-list { padding: 14px 18px; font-size: .9rem; color: var(--muted); }
.spec-list ul { margin: 0; padding-left: 18px; display: grid; gap: 4px; }
.spec-list a { color: var(--ink-2); font-weight: 600; }
.spec-list a:hover { text-decoration: underline; }

/* Related */
.related-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: clamp(28px, 3vw, 44px);
}

/* ---------- CTA band ---------- */
.cta-band {
  border-radius: var(--r-lg);
  background:
    var(--noise-dark) repeat,
    radial-gradient(70% 90% at 80% 0%, rgba(153, 0, 255, .32), transparent 60%),
    radial-gradient(70% 90% at 15% 100%, rgba(0, 136, 255, .3), transparent 60%),
    #0d0d10;
  color: #fff;
  text-align: center;
  padding: clamp(48px, 6vw, 88px) clamp(24px, 4vw, 64px);
}
.cta-band .lead { color: rgba(255, 255, 255, .7); max-width: 560px; margin: 16px auto 32px; }

/* ---------- Motion system ---------- */
@media (prefers-reduced-motion: no-preference) {
  /* scroll reveal with per-element stagger (set via --d by JS) */
  .reveal {
    opacity: 0;
    transform: translateY(24px);
    transition:
      opacity .8s cubic-bezier(.2, .7, .3, 1) var(--d, 0s),
      transform .8s cubic-bezier(.2, .7, .3, 1) var(--d, 0s);
  }
  .reveal.in { opacity: 1; transform: none; }

  /* page-load entrance sequence */
  .hero-in {
    opacity: 0;
    transform: translateY(18px);
    animation: heroIn .9s cubic-bezier(.2, .7, .3, 1) forwards;
  }
  .hi-1 { animation-delay: .05s; }
  .hi-2 { animation-delay: .16s; }
  .hi-3 { animation-delay: .28s; }
  .hi-4 { animation-delay: .4s; }
  .hi-5 { animation-delay: .52s; }
  @keyframes heroIn { to { opacity: 1; transform: none; } }

  /* living hero glow — clearly visible drifting aurora. A 3-stop, non-linear
     loop (not a simple A↔B alternate) so the motion reads as organic and is
     easy to notice: the coloured blobs sweep across, grow, and rotate. */
  .hero::before, .tpl-head::before {
    animation: heroGlow 18s ease-in-out infinite;
  }
  @keyframes heroGlow {
    0%   { transform: translate3d(-11%, -5%, 0) scale(1.02) rotate(-7deg); }
    33%  { transform: translate3d(9%, 7%, 0)   scale(1.28) rotate(8deg); }
    66%  { transform: translate3d(-4%, 10%, 0) scale(1.14) rotate(-3deg); }
    100% { transform: translate3d(-11%, -5%, 0) scale(1.02) rotate(-7deg); }
  }

  /* filtering pop-in */
  .card.pop { animation: popIn .45s cubic-bezier(.2, .7, .3, 1) both; }
  @keyframes popIn {
    from { opacity: 0; transform: translateY(14px) scale(.98); }
    to   { opacity: 1; transform: none; }
  }

  /* buy bar entrance */
  .buy-bar { animation: barUp .5s cubic-bezier(.2, .7, .3, 1) .4s both; }
  @keyframes barUp { from { transform: translateY(100%); } to { transform: none; } }
}

/* smooth CTA transitions (no background-position shift — it exposed a blue edge seam) */
.btn-grad { transition: transform .18s ease, box-shadow .18s ease, filter .18s ease; }

/* sheen sweep on buttons */
.btn { position: relative; overflow: hidden; }
.btn::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 38%, rgba(255, 255, 255, .22) 50%, transparent 62%);
  transform: translateX(-120%);
  pointer-events: none;
}
@media (prefers-reduced-motion: no-preference) {
  .btn-grad:hover::after, .btn-primary:hover::after { transform: translateX(120%); transition: transform .7s ease; }
}

/* animated gradient text shimmer */
@media (prefers-reduced-motion: no-preference) {
  .grad-text {
    background-size: 200% 100%;
    animation: gradShift 6s ease-in-out infinite alternate;
  }
  @keyframes gradShift { from { background-position: 0% 0; } to { background-position: 100% 0; } }
}

/* smooth FAQ open/close (driven by .expanded via JS) */
.faq details p { padding: 0 22px 20px; margin: 0; }
.faq details .faq-a {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows .35s cubic-bezier(.2, .7, .3, 1);
}
.faq details.expanded .faq-a { grid-template-rows: 1fr; }
.faq details .faq-a > div { overflow: hidden; }

/* card price badge morph — gentle, not an abrupt flip to white */
.card-price { transition: background-color .4s ease, color .4s ease; }
.card:hover .card-price:not(.free) { background-color: rgba(255, 255, 255, .92); color: #0d0b12; }

/* frame lift */
@media (prefers-reduced-motion: no-preference) {
  .frame { transition: transform .35s cubic-bezier(.2, .7, .3, 1), box-shadow .35s ease; }
  .frame:hover { transform: translateY(-4px) scale(1.004); box-shadow: 0 6px 12px rgba(10,10,11,.07), 0 32px 80px rgba(10,10,11,.18); }
}

/* trust pill hover */
.trust { transition: transform .25s ease, box-shadow .25s ease; }
.trust:hover { transform: translateY(-2px); box-shadow: var(--shadow-2); }
.trust-avatars img { transition: transform .25s cubic-bezier(.2, .7, .3, 1); }
.trust:hover .trust-avatars img { transform: translateY(-2px); }
.trust:hover .trust-avatars img:nth-child(2) { transition-delay: .04s; }
.trust:hover .trust-avatars img:nth-child(3) { transition-delay: .08s; }
.trust:hover .trust-avatars img:nth-child(4) { transition-delay: .12s; }

/* chips micro-motion */
.chip { transition: all .18s cubic-bezier(.2, .7, .3, 1); }
.chip:hover { transform: translateY(-1px); }
.chip:active { transform: scale(.96); }

/* focus visibility */
:focus-visible {
  outline: 2px solid var(--brand-b);
  outline-offset: 3px;
  border-radius: 4px;
}
.btn:focus-visible, .chip:focus-visible { outline-offset: 2px; }

/* ---------- Reveal fallback ---------- */
@media (prefers-reduced-motion: reduce) {
  .reveal, .hero-in { opacity: 1 !important; transform: none !important; }
}

/* ---------- Utilities ---------- */
.center { text-align: center; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mt-4 { margin-top: 40px; }

/* ---------- Edge-to-edge template marquee ---------- */
.marquee-zone {
  padding-block: clamp(20px, 3vw, 40px) 0;
  display: grid;
  gap: clamp(14px, 1.6vw, 22px);
  overflow: clip;
}
.marquee {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
}
.marquee-track {
  display: flex;
  width: max-content;
  will-change: transform;
}
.mq-group {
  display: flex;
  flex: none;
  gap: clamp(14px, 1.6vw, 22px);
  padding-right: clamp(14px, 1.6vw, 22px);
}
@media (prefers-reduced-motion: no-preference) {
  .marquee-track { animation: marq 110s linear infinite; }
  .marquee-track.rev { animation-direction: reverse; }
  .marquee:hover .marquee-track, .marquee:focus-within .marquee-track { animation-play-state: paused; }
  @keyframes marq { to { transform: translateX(-50%); } }
}
@media (prefers-reduced-motion: reduce) {
  .marquee { overflow-x: auto; mask-image: none; -webkit-mask-image: none; }
}
.mq-item {
  position: relative;
  flex: none;
  width: clamp(230px, 24vw, 340px);
  border-radius: var(--r-md);
  overflow: hidden;
  border: 1px solid var(--line-2);
  background: var(--bg-card);
  transition: transform .3s cubic-bezier(.2, .7, .3, 1), border-color .3s ease, box-shadow .3s ease;
}
.mq-item:hover {
  transform: translateY(-5px);
  border-color: #4d4762;
  box-shadow: var(--shadow-2);
}
.mq-item img { width: 100%; height: auto; display: block; }
.mq-name {
  position: absolute;
  left: 10px; bottom: 10px;
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  padding: 6px 13px;
  border-radius: var(--r-pill);
  background: rgba(10, 8, 15, .78);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, .12);
  color: #fff;
  font-size: .82rem;
  font-weight: 600;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity .25s ease, transform .25s ease;
  pointer-events: none;
}
.mq-name em { font-style: normal; color: rgba(255, 255, 255, .6); font-weight: 500; }
.mq-item:hover .mq-name { opacity: 1; transform: none; }

/* ---------- SEO sections ---------- */
.uc-wrap {
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--bg-card);
  padding: clamp(28px, 3.5vw, 48px);
}
.uc-intro {
  color: var(--muted);
  max-width: 68ch;
  margin-top: 12px;
  line-height: 1.7;
}
.uc-pills {
  list-style: none;
  margin: 22px 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.uc-pill {
  padding: 9px 17px;
  border-radius: var(--r-pill);
  border: 1px solid var(--line-2);
  background: rgba(255, 255, 255, .03);
  font-size: .9rem;
  font-weight: 550;
  color: var(--ink-2);
  transition: border-color .2s ease, transform .2s ease;
}
.uc-pill:hover { border-color: #4d4762; transform: translateY(-1px); }

.tpl-features .feature h3.tplf-title {
  font-size: 1.02rem;
  font-weight: 650;
  letter-spacing: -0.01em;
  margin-bottom: 8px;
}
.tpl-features { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 1000px) { .tpl-features { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .tpl-features { grid-template-columns: 1fr; } }

.seo-prose {
  border-top: 1px solid var(--line);
  padding-top: clamp(36px, 4vw, 56px);
}
.seo-prose h2 { margin-bottom: 22px; }
.seo-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(20px, 3vw, 48px);
}
@media (max-width: 800px) { .seo-cols { grid-template-columns: 1fr; } }
.seo-cols p {
  font-size: .95rem;
  line-height: 1.75;
  color: var(--muted);
}
.seo-cols a {
  color: var(--ink-2);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: var(--line-2);
  text-underline-offset: 3px;
  transition: text-decoration-color .15s ease;
}
.seo-cols a:hover { text-decoration-color: var(--ink); }
.seo-cols strong { color: var(--ink-2); }

/* ---------- Pages Included grid ---------- */
.pg-head { align-items: flex-end; gap: 20px; }
.pg-sub {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: .98rem;
  line-height: 1.55;
  max-width: 62ch;
}
.pg-sub strong { color: var(--ink); font-weight: 650; }
.pages-grid {
  display: grid;
  grid-template-columns: repeat(var(--pg-cols, 4), 1fr);
  gap: 18px;
}
.pg-cell { margin: 0; }
.pg-shot {
  display: block;
  position: relative;
  border-radius: var(--r-md);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--bg-soft);
  box-shadow: var(--shadow-1);
  aspect-ratio: 760 / 409;               /* matches thumbnail so sides are never cropped */
  transition: transform .28s cubic-bezier(.2,.7,.2,1), box-shadow .28s ease, border-color .28s ease;
}
.pg-shot img {
  width: 100%; height: 100%;
  object-fit: cover;                     /* ratio matches, so this only pins to the top */
  object-position: top center;
  display: block;
}
.pg-shot::after {
  content: "";
  position: absolute; inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.05);
  pointer-events: none;
}
.pg-cell:hover .pg-shot {
  transform: translateY(-4px);
  box-shadow: var(--shadow-2);
  border-color: var(--line-2);
}
.pg-label {
  margin-top: 10px;
  text-align: center;
  font-size: .82rem;
  font-weight: 500;
  color: var(--muted);
  opacity: .8;
  letter-spacing: .01em;
}
@media (max-width: 820px) { .pages-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 440px) { .pages-grid { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .pg-head { flex-direction: column; align-items: flex-start; } }

/* ============================================================
   Premium polish — custom scrollbar, refined hover depth
   ============================================================ */

/* Slim, brand-tinted scrollbar (dark UI detail) */
html { scrollbar-width: thin; scrollbar-color: #3a3350 transparent; }
::-webkit-scrollbar { width: 12px; height: 12px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #443c5e, #322c44);
  border: 3px solid var(--bg);
  border-radius: 999px;
}
::-webkit-scrollbar-thumb:hover { background: linear-gradient(180deg, #5a4f7d, #423a5a); }

/* Template cards: add a soft brand-tinted glow + tinted hairline on hover so
   the lift reads as premium rather than a flat neutral shadow. */
.card:hover {
  box-shadow:
    var(--shadow-3),
    0 10px 40px -12px rgba(120, 60, 240, .38);
  border-color: rgba(150, 110, 220, .35);
}
.card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .05);
  opacity: 0;
  transition: opacity .25s ease;
}
.card:hover::after { opacity: 1; }

/* Pricing single-template card: gentle brand wash on hover so it doesn't feel
   inert next to the vivid membership card. */
.price-card:not(.dark) { transition: transform .25s cubic-bezier(.2,.7,.3,1), box-shadow .25s ease, border-color .25s ease; }
.price-card:not(.dark):hover {
  transform: translateY(-3px);
  border-color: var(--line-2);
  box-shadow: var(--shadow-2);
}
