/* ============================================================
   twyk.me design system (Stripe-inspired)
   ============================================================ */

:root {
  --navy: #0a2540;
  --slate: #425466;
  --muted: #6b7c93;
  --faint: #8898aa;
  --purple: #2563eb; /* product blue (matches the editor's primary buttons) */
  --purple-deep: #1a4fd6;
  --cyan: #00d4ff;
  --pink: #ff5996;
  --amber: #ffcb57;
  --bg: #ffffff;
  --bg-soft: #f6f9fc;
  --border: #e6ebf1;
  --shadow-sm: 0 2px 5px -1px rgba(50, 50, 93, 0.12), 0 1px 3px -1px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 13px 27px -5px rgba(50, 50, 93, 0.18), 0 8px 16px -8px rgba(0, 0, 0, 0.15);
  --shadow-lg: 0 30px 60px -12px rgba(50, 50, 93, 0.22), 0 18px 36px -18px rgba(0, 0, 0, 0.25);
  --radius: 8px;
  --font: "Inter", -apple-system, "Segoe UI", sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--slate);
  background: var(--bg);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 { color: var(--navy); letter-spacing: -0.02em; line-height: 1.15; }

a { color: var(--purple); text-decoration: none; }
a:hover { color: var(--purple-deep); }

.container { max-width: 1160px; margin: 0 auto; padding: 0 24px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 18px;
  border-radius: 100px;
  font-weight: 600;
  font-size: 15px;
  border: none;
  cursor: pointer;
  transition: all 0.15s ease;
  white-space: nowrap;
  font-family: var(--font);
}
.btn .arrow { transition: transform 0.15s ease; display: inline-block; }
.btn:hover .arrow { transform: translateX(3px); }

.btn-primary { background: var(--purple); color: #fff; }
.btn-primary:hover { background: var(--navy); color: #fff; }

.btn-dark { background: var(--navy); color: #fff; }
.btn-dark:hover { background: var(--purple); color: #fff; }

.btn-ghost {
  background: transparent;
  color: var(--navy);
  border: 1px solid var(--border);
}
.btn-ghost:hover { border-color: var(--faint); color: var(--navy); }

.btn-lg { padding: 12px 26px; font-size: 16px; }
.btn-block { width: 100%; justify-content: center; }

/* ---------- header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s;
}
.site-header.scrolled { border-bottom-color: var(--border); }

.site-header .container {
  display: flex;
  align-items: center;
  height: 64px;
  gap: 32px;
  min-width: 0;
}

.logo {
  display: flex;
  align-items: center;
  gap: 9px;
  font-weight: 700;
  font-size: 19px;
  color: var(--navy);
  letter-spacing: -0.02em;
}
.logo:hover { color: var(--navy); }
.logo svg { flex-shrink: 0; }

.nav-links {
  display: flex;
  gap: 26px;
  flex: 1;
}
.nav-links a {
  color: var(--slate);
  font-weight: 500;
  font-size: 15px;
}
.nav-links a:hover, .nav-links a.active { color: var(--purple); }

.header-actions { display: flex; gap: 12px; align-items: center; }

/* mobile nav toggle (hamburger) */
.nav-toggle {
  display: none;
  width: 36px;
  height: 36px;
  border: none;
  background: transparent;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border-radius: 8px;
  order: -1;
}
.nav-toggle:hover { background: var(--bg-soft); }
.nav-toggle .bar {
  position: absolute;
  width: 20px;
  height: 2px;
  background: var(--navy);
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.nav-toggle .bar:nth-child(1) { transform: translateY(-6px); }
.nav-toggle .bar:nth-child(3) { transform: translateY(6px); }
.site-header.menu-open .nav-toggle .bar:nth-child(1) { transform: rotate(45deg); }
.site-header.menu-open .nav-toggle .bar:nth-child(2) { opacity: 0; }
.site-header.menu-open .nav-toggle .bar:nth-child(3) { transform: rotate(-45deg); }

/* nav dropdowns */
.nav-drop { position: relative; }
.nav-drop > a { display: inline-flex; align-items: center; gap: 5px; }
.nav-drop .caret { transition: transform 0.15s ease; }
.nav-drop:hover .caret, .nav-drop:focus-within .caret { transform: rotate(180deg); }
.drop-menu {
  position: absolute;
  top: 100%;
  left: -16px;
  padding-top: 14px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: opacity 0.16s ease, transform 0.16s ease, visibility 0.16s;
  z-index: 200;
}
.nav-drop:hover .drop-menu, .nav-drop:focus-within .drop-menu {
  opacity: 1;
  visibility: visible;
  transform: none;
}
.drop-card {
  background: #fff;
  border-radius: 12px;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
  padding: 10px;
  width: 310px;
}
.drop-item {
  display: flex;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 9px;
  align-items: flex-start;
}
.drop-item:hover { background: var(--bg-soft); }
.drop-item .di {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.drop-item b { display: block; color: var(--navy); font-size: 14px; font-weight: 600; }
.drop-item span { font-size: 12.5px; color: var(--muted); line-height: 1.45; display: block; }
.drop-foot {
  border-top: 1px solid var(--border);
  margin-top: 8px;
  padding: 11px 12px 5px;
  font-size: 12.5px;
  color: var(--muted);
}
.drop-foot a { font-weight: 500; margin-right: 2px; }

/* ---------- hero ---------- */
.hero {
  position: relative;
  padding: 96px 0 150px;
  overflow: visible;
}

.hero-canvas-wrap {
  position: absolute;
  inset: 0;
  bottom: 60px;
  overflow: hidden;
  transform: skewY(-6deg);
  transform-origin: top left;
  z-index: -2;
}
.hero-canvas-wrap .blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.45;
  animation: drift 16s ease-in-out infinite alternate;
}
.blob-1 { width: 640px; height: 640px; background: #6b9dff; top: -220px; left: -120px; }
.blob-2 { width: 560px; height: 560px; background: #90e0ff; top: -140px; left: 32%; animation-delay: -4s; }
.blob-3 { width: 540px; height: 540px; background: #ffcb57; top: -200px; right: 8%; animation-delay: -8s; }
.blob-4 { width: 480px; height: 480px; background: #ff5996; top: 40px; right: -140px; animation-delay: -12s; }
.hero-canvas-wrap::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(255,255,255,0) 30%, #fff 96%);
}

.hero-scene {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  -webkit-mask-image: linear-gradient(to bottom, #000 55%, transparent 96%);
  mask-image: linear-gradient(to bottom, #000 55%, transparent 96%);
}
.hero-scene canvas { display: block; width: 100%; height: 100%; }

@keyframes drift {
  from { transform: translate(0, 0) scale(1); }
  to { transform: translate(60px, 40px) scale(1.15); }
}

.hero h1 {
  font-size: clamp(40px, 6vw, 64px);
  font-weight: 800;
  max-width: 720px;
  margin-bottom: 22px;
}
.hero .tagline {
  font-size: 19px;
  max-width: 560px;
  margin-bottom: 34px;
  color: var(--slate);
}
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }

.hero-stats {
  display: flex;
  gap: 56px;
  margin-top: 72px;
  flex-wrap: wrap;
}
.hero-stats .stat b {
  display: block;
  font-size: 28px;
  font-weight: 700;
  color: var(--navy);
  letter-spacing: -0.02em;
}
.hero-stats .stat span { font-size: 14px; color: var(--muted); }

/* ---------- value props ---------- */
.value-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 48px;
  text-align: center;
}
.value .icon {
  height: 104px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}
.value h3 { font-size: 20px; margin-bottom: 10px; }
.value p { font-size: 15px; max-width: 300px; margin: 0 auto 14px; }
.value .learn {
  font-weight: 600;
  font-size: 15px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.value .learn .chev { transition: transform 0.15s ease; }
.value .learn:hover .chev { transform: translateX(3px); }

/* icon hover motion */
.value .icon-cube,
.value .icon-cursor,
.value .icon-cycle,
.value .icon-star {
  transform-box: fill-box;
  transform-origin: center;
  transition: transform 0.55s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.value:hover .icon-cube { transform: translateY(-6px); }
.value:hover .icon-cursor { transform: translate(-5px, -5px); }
.value:hover .icon-cycle { transform: rotate(360deg); transition-duration: 0.9s; }
.value:hover .icon-star { transform: rotate(74deg) scale(1.2); }
.value:hover .icon-nozzle { animation: nozzle-bob 0.55s ease-in-out infinite alternate; }
.value:hover .icon-fil { animation: fil-blink 0.55s linear infinite; }

@keyframes nozzle-bob {
  from { transform: translateY(0); }
  to { transform: translateY(4px); }
}
@keyframes fil-blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.25; }
}

@media (prefers-reduced-motion: reduce) {
  .value:hover .icon-cube,
  .value:hover .icon-cursor,
  .value:hover .icon-cycle,
  .value:hover .icon-star { transform: none; }
  .value:hover .icon-nozzle,
  .value:hover .icon-fil { animation: none; }
}

/* ---------- sections ---------- */
.section { padding: 84px 0; }
.section-soft { background: var(--bg-soft); }

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}
.section-head .eyebrow {
  color: var(--purple);
  font-weight: 700;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 10px;
}
.section-head h2 { font-size: clamp(28px, 4vw, 38px); font-weight: 700; }
.section-head p { max-width: 520px; margin-top: 12px; }

/* ---------- model cards ---------- */
.model-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(255px, 1fr));
  gap: 26px;
}

.model-card {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
  display: block;
  color: inherit;
}
.model-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  color: inherit;
}

.model-thumb {
  aspect-ratio: 4 / 3;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.model-thumb img, .model-thumb canvas {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.model-thumb .badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(10, 37, 64, 0.75);
  color: #fff;
  font-size: 11.5px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 100px;
  backdrop-filter: blur(4px);
}

.model-info { padding: 16px 18px 18px; }
.model-info h3 { font-size: 16.5px; font-weight: 600; margin-bottom: 3px; }
.model-info .author { font-size: 13.5px; color: var(--muted); }
.model-info .author b { color: var(--slate); font-weight: 500; }

.model-meta {
  display: flex;
  gap: 16px;
  margin-top: 12px;
  font-size: 13px;
  color: var(--faint);
}
.model-meta span { display: inline-flex; align-items: center; gap: 5px; }
.model-meta svg { opacity: 0.75; }

/* ---------- editor features ---------- */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 24px;
}
.feature {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 24px 22px;
  transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease;
}
.feature:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: transparent; }
.feature .fi {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 15px;
}
.feature h3 { font-size: 16.5px; margin-bottom: 7px; }
.feature p { font-size: 14px; color: var(--slate); }
.fi-blue   { background: #e7f0ff; color: #2563eb; }
.fi-pink   { background: #fde7f0; color: #e85c8f; }
.fi-teal   { background: #dcf6ef; color: #17a68a; }
.fi-amber  { background: #fff1d9; color: #d98a13; }
.fi-purple { background: #f1e9ff; color: #8b5cf6; }
.fi-green  { background: #e4f5e7; color: #3f9e52; }
.fi-cyan   { background: #dcf3fa; color: #0891b2; }
.fi-navy   { background: #e8edf3; color: #0a2540; }
.editor-cta { text-align: center; margin-top: 44px; }

/* ---------- how it works ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 32px;
}
.step {
  background: #fff;
  border-radius: var(--radius);
  padding: 34px 30px;
  box-shadow: var(--shadow-sm);
  position: relative;
}
.step .num {
  display: inline-flex;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: #fff;
  margin-bottom: 18px;
  font-size: 17px;
}
.step:nth-child(1) .num { background: linear-gradient(135deg, #2563eb, #6ba8ff); }
.step:nth-child(2) .num { background: linear-gradient(135deg, #00b8e0, #6fe0ff); }
.step:nth-child(3) .num { background: linear-gradient(135deg, #ff5996, #ff8fb8); }
.step h3 { font-size: 19px; margin-bottom: 10px; }
.step p { font-size: 15px; color: var(--slate); }

/* ---------- CTA band ---------- */
.cta-band {
  position: relative;
  padding: 96px 0;
  overflow: hidden;
  background: var(--navy);
}
.cta-band::before {
  content: "";
  position: absolute;
  inset: -40% -10%;
  background:
    radial-gradient(circle at 15% 30%, rgba(37, 99, 235, 0.55), transparent 45%),
    radial-gradient(circle at 85% 70%, rgba(0, 212, 255, 0.35), transparent 45%),
    radial-gradient(circle at 60% 10%, rgba(255, 89, 150, 0.3), transparent 40%);
}
.cta-band .container { position: relative; text-align: center; }
.cta-band h2 { color: #fff; font-size: clamp(28px, 4vw, 40px); margin-bottom: 16px; }
.cta-band p { color: rgba(255, 255, 255, 0.78); max-width: 520px; margin: 0 auto 32px; }

/* ---------- guide (how it works page) ---------- */
.guide-hero { position: relative; padding: 72px 0 56px; overflow: hidden; }
.guide-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  top: -50%;
  transform: skewY(-5deg);
  transform-origin: top left;
  background: linear-gradient(100deg, #e9f0ff 0%, #e8f7ff 55%, #fdf3e8 100%);
}
.guide-hero .container { position: relative; text-align: center; }
.guide-hero h1 { font-size: clamp(32px, 4.5vw, 46px); margin-bottom: 14px; }
.guide-hero p { max-width: 620px; margin: 0 auto; font-size: 17px; }

.editor-frame {
  max-width: 980px;
  margin: 48px auto 0;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
  background: #fff;
}
.editor-frame .frame-bar {
  display: flex;
  gap: 6px;
  padding: 10px 14px;
  background: var(--bg-soft);
  border-bottom: 1px solid var(--border);
}
.editor-frame .frame-bar span { width: 10px; height: 10px; border-radius: 50%; background: #d8dee9; }
.editor-frame .frame-bar span:first-child { background: #ffb3ad; }
.editor-frame .frame-bar span:nth-child(2) { background: #ffd67e; }
.editor-frame .frame-bar span:nth-child(3) { background: #9be1a8; }
.editor-frame img { display: block; width: 100%; }

/* homepage editor showcase */
.editor-showcase {
  position: relative;
  z-index: 2;
  margin-top: -64px;
  padding-bottom: 8px;
}
.editor-showcase .editor-frame {
  display: block;
  margin: 0 auto;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.editor-showcase a.editor-frame:hover {
  transform: translateY(-4px);
  box-shadow: 0 40px 70px -14px rgba(50, 50, 93, 0.28), 0 22px 40px -20px rgba(0, 0, 0, 0.3);
}
.showcase-caption {
  text-align: center;
  margin-top: 18px;
  font-size: 14.5px;
  color: var(--muted);
}

.guide-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
  padding: 56px 0;
}
.guide-row + .guide-row { border-top: 1px solid var(--border); }
.guide-row.flip .guide-shot { order: 2; }
.guide-num {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--purple);
  font-weight: 700;
  font-size: 13.5px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 12px;
}
.guide-num b {
  display: inline-flex;
  width: 30px;
  height: 30px;
  border-radius: 9px;
  background: var(--purple);
  color: #fff;
  align-items: center;
  justify-content: center;
  font-size: 14px;
}
.guide-copy h2 { font-size: 27px; margin-bottom: 14px; }
.guide-copy p { font-size: 15.5px; margin-bottom: 12px; }
.guide-copy ul { margin: 0 0 12px 18px; font-size: 15px; }
.guide-copy li { margin-bottom: 6px; }
.guide-shot {
  background: linear-gradient(135deg, #eef3fb, #f6f9fc);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 280px;
}
.guide-shot img {
  max-width: 100%;
  max-height: 420px;
  border-radius: 8px;
  box-shadow: var(--shadow-md);
}
.guide-shot.wide { grid-column: 1 / -1; min-height: 0; padding: 22px; }
.guide-shot.wide img { max-height: none; }

@media (max-width: 860px) {
  .guide-row { grid-template-columns: 1fr; gap: 28px; padding: 44px 0; }
  .guide-row.flip .guide-shot { order: 0; }
}

/* ---------- explore ---------- */
.explore-head { padding: 56px 0 32px; }
.explore-head h1 { font-size: clamp(30px, 4vw, 42px); margin-bottom: 10px; }

.toolbar {
  display: flex;
  gap: 14px;
  align-items: center;
  flex-wrap: wrap;
  margin: 26px 0 34px;
}
.search-box {
  flex: 1;
  min-width: 240px;
  position: relative;
}
.search-box input {
  width: 100%;
  padding: 11px 16px 11px 42px;
  border: 1px solid var(--border);
  border-radius: 100px;
  font-size: 15px;
  font-family: var(--font);
  color: var(--navy);
  background: #fff;
  outline: none;
  transition: box-shadow 0.15s, border-color 0.15s;
}
.search-box input:focus {
  border-color: var(--purple);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12);
}
.search-box svg {
  position: absolute;
  left: 15px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--faint);
}

.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip {
  padding: 7px 16px;
  border-radius: 100px;
  border: 1px solid var(--border);
  background: #fff;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--slate);
  cursor: pointer;
  transition: all 0.13s;
  font-family: var(--font);
}
.chip:hover { border-color: var(--purple); color: var(--purple); }
.chip.active { background: var(--purple); border-color: var(--purple); color: #fff; }

select.sort {
  padding: 9px 14px;
  border: 1px solid var(--border);
  border-radius: 100px;
  font-family: var(--font);
  font-size: 14px;
  color: var(--slate);
  background: #fff;
  cursor: pointer;
  outline: none;
}

.empty-state {
  text-align: center;
  padding: 80px 0;
  color: var(--muted);
}

/* ---------- project ideas ---------- */
.idea-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 26px;
}
.idea-card {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 26px 24px;
  display: flex;
  flex-direction: column;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.idea-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.idea-card .emoji { font-size: 30px; margin-bottom: 14px; }
.idea-card h3 { font-size: 18px; margin-bottom: 8px; }
.idea-card > p { font-size: 14px; color: var(--slate); margin-bottom: 14px; }
.idea-meta { display: flex; gap: 10px; align-items: center; margin-bottom: 14px; flex-wrap: wrap; }
.diff {
  font-size: 11.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 3px 11px;
  border-radius: 100px;
}
.diff-beginner { background: #e4f5e7; color: #2e7d3f; }
.diff-intermediate { background: #fff1d9; color: #b06f0a; }
.diff-advanced { background: #fde7f0; color: #c72e6b; }
.idea-meta .time { font-size: 13px; color: var(--muted); }
.uses { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 16px; }
.uses span {
  font-size: 12px;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  color: var(--slate);
  padding: 2px 10px;
  border-radius: 100px;
}
.idea-links { margin-top: auto; display: flex; gap: 16px; align-items: center; font-size: 14px; font-weight: 600; }

/* ---------- blog ---------- */
.post-featured {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 0;
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  margin-bottom: 48px;
  color: inherit;
}
.post-featured:hover { color: inherit; }
.post-featured .pf-cover { min-height: 280px; }
.post-featured .pf-text { padding: 40px 38px; display: flex; flex-direction: column; justify-content: center; }
.post-featured h2 { font-size: 26px; margin: 10px 0 12px; }
.post-featured p { font-size: 15px; }
@media (max-width: 760px) { .post-featured { grid-template-columns: 1fr; } }

.post-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 26px;
}
.post-card {
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  color: inherit;
  display: flex;
  flex-direction: column;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.post-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); color: inherit; }
.post-cover {
  aspect-ratio: 16 / 8.5;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 44px;
}
.post-body { padding: 20px 22px 22px; display: flex; flex-direction: column; flex: 1; }
.post-body h3 { font-size: 17px; margin: 8px 0 8px; }
.post-body .excerpt { font-size: 14px; color: var(--slate); margin-bottom: 14px; }
.post-meta { margin-top: auto; font-size: 12.5px; color: var(--faint); }
.cat-tag {
  align-self: flex-start;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 3px 10px;
  border-radius: 100px;
}
.cat-product { background: #e7f0ff; color: #2563eb; }
.cat-story { background: #fde7f0; color: #c72e6b; }
.cat-tips { background: #dcf6ef; color: #0f8a6d; }
.cat-community { background: #f1e9ff; color: #7c3aed; }

/* ---------- blog article ---------- */
.article-hero { padding: 48px 0 0; }
.article-hero .cover {
  max-width: 860px;
  margin: 26px auto 0;
  aspect-ratio: 16 / 5.5;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 64px;
  box-shadow: var(--shadow-sm);
}
.article-hero .container { text-align: center; }
.article-hero h1 { font-size: clamp(28px, 4vw, 42px); max-width: 760px; margin: 14px auto 12px; }
.article-hero .post-meta { font-size: 14px; }
.article-hero .cat-tag { align-self: center; }

.article {
  max-width: 720px;
  margin: 0 auto;
  padding: 48px 0 24px;
  font-size: 16.5px;
  color: var(--slate);
  line-height: 1.75;
}
.article p { margin-bottom: 20px; }
.article h2 {
  font-size: 22px;
  margin: 36px 0 14px;
}
.article h3 {
  font-size: 17px;
  color: var(--navy);
  margin: 22px 0 8px;
}
.article ul { margin: 0 0 20px 22px; }
.article li { margin-bottom: 10px; }
.article b { color: var(--navy); }
.article em { color: var(--muted); }

.article-foot {
  max-width: 720px;
  margin: 0 auto;
  padding: 20px 0 56px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 14.5px;
}

/* ---------- comparison table ---------- */
.compare-wrap { overflow-x: auto; margin: 40px 0; border: 1px solid var(--border); border-radius: 12px; }
.compare-table { width: 100%; border-collapse: collapse; min-width: 640px; background: #fff; }
.compare-table th, .compare-table td { padding: 14px 18px; text-align: left; font-size: 14.5px; border-bottom: 1px solid var(--border); }
.compare-table thead th {
  background: var(--bg-soft);
  font-size: 12.5px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
  font-weight: 700;
}
.compare-table thead th.col-twyk { color: var(--purple); }
.compare-table tbody th { font-weight: 600; color: var(--navy); white-space: nowrap; }
.compare-table td.col-twyk { background: rgba(37, 99, 235, 0.035); font-weight: 500; color: var(--navy); }
.compare-table tr:last-child td, .compare-table tr:last-child th { border-bottom: none; }
.compare-table .yes { color: #2e7d3f; font-weight: 700; }
.compare-table .no { color: var(--faint); }

.answer-lead {
  font-size: 18px;
  color: var(--navy);
  max-width: 760px;
  margin: 0 auto 8px;
  line-height: 1.6;
}

.fair-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  margin: 40px 0;
}
@media (max-width: 700px) { .fair-grid { grid-template-columns: 1fr; } }
.fair-card {
  border-radius: 12px;
  padding: 28px 26px;
  border: 1px solid var(--border);
}
.fair-card.twyk { border-color: rgba(37, 99, 235, 0.3); background: rgba(37, 99, 235, 0.03); }
.fair-card h3 { font-size: 17px; margin-bottom: 14px; display: flex; align-items: center; gap: 8px; }
.fair-card ul { margin: 0; padding-left: 20px; }
.fair-card li { font-size: 14.5px; margin-bottom: 10px; color: var(--slate); }

/* ---------- contact ---------- */
.contact-layout {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 44px;
  align-items: start;
}
@media (max-width: 800px) {
  .contact-layout { grid-template-columns: 1fr; }
}
.contact-form {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 32px;
  box-shadow: var(--shadow-sm);
}
.form-row { margin-bottom: 20px; }
.form-row label {
  display: block;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 7px;
}
.form-row input,
.form-row select,
.form-row textarea {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-family: var(--font);
  font-size: 15px;
  color: var(--navy);
  background: #fff;
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus {
  border-color: var(--purple);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12);
}
.form-row textarea { resize: vertical; min-height: 130px; }
.form-row-split { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 480px) { .form-row-split { grid-template-columns: 1fr; } }
.form-note { font-size: 12.5px; color: var(--muted); margin-top: 10px; }
.form-thanks {
  text-align: center;
  padding: 30px 10px;
}
.form-thanks .big-check {
  width: 52px; height: 52px;
  border-radius: 50%;
  background: #e4f5e7;
  color: #2e7d3f;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 16px;
  font-size: 26px;
}
.form-thanks h3 { font-size: 19px; margin-bottom: 8px; }
.form-thanks p { font-size: 14.5px; color: var(--slate); }

.contact-cards { display: flex; flex-direction: column; gap: 16px; }
.contact-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 22px 24px;
  display: flex;
  gap: 14px;
}
.contact-card .cc-icon {
  width: 40px; height: 40px;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.contact-card h3 { font-size: 15.5px; margin-bottom: 5px; }
.contact-card p { font-size: 13.5px; color: var(--slate); margin-bottom: 10px; }
.contact-card a.card-link { font-size: 13.5px; font-weight: 600; }

/* ---------- help center ---------- */
.help-search { max-width: 560px; margin: 0 auto; }
.topic-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 26px;
}
.topic-card {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 26px 24px;
}
.topic-card .th { display: flex; gap: 13px; align-items: center; margin-bottom: 14px; }
.topic-card .th .di { width: 40px; height: 40px; border-radius: 10px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.topic-card .th b { font-size: 16.5px; color: var(--navy); display: block; }
.topic-card .th span { font-size: 12.5px; color: var(--muted); }
.topic-card ul { list-style: none; margin: 0; }
.topic-card li { padding: 6px 0; border-top: 1px solid var(--bg-soft); font-size: 14px; }
.topic-card li a { color: var(--slate); }
.topic-card li a:hover { color: var(--purple); }

.faq { max-width: 760px; margin: 0 auto; }
.faq details {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 10px;
  margin-bottom: 12px;
  overflow: hidden;
}
.faq summary {
  cursor: pointer;
  padding: 16px 20px;
  font-weight: 600;
  color: var(--navy);
  font-size: 15px;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  font-size: 20px;
  color: var(--purple);
  font-weight: 500;
  transition: transform 0.15s ease;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 20px 18px; font-size: 14.5px; color: var(--slate); }

/* ---------- coming soon (challenges) ---------- */
.soon-hero { position: relative; padding: 96px 0 72px; overflow: hidden; text-align: center; }
.soon-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  top: -45%;
  transform: skewY(-5deg);
  transform-origin: top left;
  background: linear-gradient(100deg, #fff3e0 0%, #ffe9f1 45%, #e9f0ff 100%);
}
.soon-hero .container { position: relative; }
.soon-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--navy);
  color: #fff;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 7px 18px;
  border-radius: 100px;
  margin-bottom: 24px;
}
.soon-badge .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ffcb57;
  animation: pulse 1.6s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.5); opacity: 0.6; }
}
.soon-hero h1 { font-size: clamp(34px, 5vw, 52px); margin-bottom: 18px; }
.soon-hero > .container > p { max-width: 560px; margin: 0 auto 34px; font-size: 17px; }
.notify {
  display: flex;
  gap: 10px;
  justify-content: center;
  max-width: 440px;
  margin: 0 auto;
  flex-wrap: wrap;
}
.notify input {
  flex: 1;
  min-width: 220px;
  padding: 12px 18px;
  border: 1px solid var(--border);
  border-radius: 100px;
  font-family: var(--font);
  font-size: 15px;
  outline: none;
  background: #fff;
}
.notify input:focus { border-color: var(--purple); box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12); }
.notify .thanks { color: var(--navy); font-weight: 600; padding: 12px 0; }

.teaser-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 26px;
}
.teaser-card {
  position: relative;
  background: #fff;
  border: 1px dashed var(--border);
  border-radius: var(--radius);
  padding: 28px 26px;
  opacity: 0.85;
}
.teaser-card .soon-tag {
  position: absolute;
  top: 14px;
  right: 14px;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 3px 10px;
  border-radius: 100px;
}
.teaser-card .emoji { font-size: 30px; display: block; margin-bottom: 14px; }
.teaser-card h3 { font-size: 18px; margin-bottom: 8px; }
.teaser-card p { font-size: 14px; color: var(--slate); }

/* ---------- creators directory ---------- */
.creator-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
  gap: 26px;
}
@media (max-width: 480px) {
  .creator-grid { grid-template-columns: 1fr; }
}
.creator-card {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.creator-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.cc-head { display: flex; gap: 14px; align-items: center; }
.cc-head .who { flex: 1; min-width: 0; }
.cc-head .who b { display: block; font-size: 17px; color: var(--navy); }
.cc-head .who span { font-size: 13px; color: var(--muted); }
.cc-bio { font-size: 14px; color: var(--slate); margin: 0; }
.cc-stats {
  display: flex;
  gap: 22px;
  font-size: 13px;
  color: var(--muted);
  border-top: 1px solid var(--border);
  padding-top: 14px;
}
.cc-stats b { color: var(--navy); font-weight: 700; margin-right: 4px; }
.cc-models { display: flex; gap: 10px; flex-wrap: wrap; }
.cc-models a {
  width: 86px;
  height: 66px;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--bg-soft);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.cc-models a:hover { transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.cc-models .mini-thumb { width: 100%; height: 100%; display: block; }
.cc-models .mini-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* ---------- model detail ---------- */
.model-page { padding: 40px 0 80px; }
.breadcrumb { font-size: 14px; color: var(--muted); margin-bottom: 22px; }
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--purple); }

.model-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  gap: 40px;
  align-items: start;
}

.viewer-panel {
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  position: relative;
  aspect-ratio: 4 / 3;
}
.viewer-panel canvas { display: block; width: 100%; height: 100%; }
.viewer-hint {
  position: absolute;
  bottom: 14px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(10, 37, 64, 0.7);
  color: #fff;
  font-size: 12.5px;
  padding: 5px 14px;
  border-radius: 100px;
  pointer-events: none;
  backdrop-filter: blur(4px);
}

/* gallery thumbnails */
.gallery-thumbs { display: flex; gap: 10px; margin-top: 14px; flex-wrap: wrap; }
.gthumb {
  width: 82px;
  height: 64px;
  border-radius: 9px;
  border: 2px solid var(--border);
  overflow: hidden;
  cursor: pointer;
  padding: 0;
  background: var(--bg-soft);
  position: relative;
  transition: border-color 0.15s, transform 0.15s, box-shadow 0.15s;
}
.gthumb:hover { transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.gthumb.active { border-color: var(--purple); box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.16); }
.gthumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gthumb .live-tag {
  position: absolute;
  bottom: 4px;
  left: 4px;
  background: var(--purple);
  color: #fff;
  font-size: 9.5px;
  font-weight: 700;
  padding: 1px 7px;
  border-radius: 99px;
  letter-spacing: 0.04em;
}
.gallery-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: transparent;
}

/* stars */
.stars {
  position: relative;
  display: inline-block;
  line-height: 1;
  color: #dde4ee;
  letter-spacing: 1.5px;
  white-space: nowrap;
}
.stars .fill {
  position: absolute;
  inset: 0;
  overflow: hidden;
  color: #f5a623;
  white-space: nowrap;
}
.card-rating { color: #f5a623 !important; font-weight: 600; }
.rating-row { display: flex; align-items: center; gap: 10px; margin-bottom: 20px; }
.rating-row .score {
  font-size: 26px;
  font-weight: 800;
  background: linear-gradient(120deg, #f5a623, #ff7a45);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.rating-row .count { color: var(--muted); font-size: 13.5px; }

/* print files */
.print-files { margin-bottom: 24px; }
.print-files > h3 { font-size: 16px; margin-bottom: 12px; }
.print-files > h3 span { color: var(--muted); font-weight: 500; }
.pf-card {
  display: flex;
  gap: 12px;
  align-items: center;
  border: 1.5px solid var(--border);
  border-radius: 11px;
  padding: 10px 12px;
  margin-bottom: 10px;
  cursor: pointer;
  transition: border-color 0.15s, transform 0.15s, box-shadow 0.15s, background 0.15s;
  background: #fff;
}
.pf-card:hover { border-color: #b9cdf5; transform: translateY(-1px); box-shadow: var(--shadow-sm); }
.pf-card.active {
  border-color: var(--purple);
  background: rgba(37, 99, 235, 0.045);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.13);
}
.pf-thumb {
  width: 54px;
  height: 46px;
  border-radius: 8px;
  object-fit: cover;
  background: var(--bg-soft);
  flex-shrink: 0;
}
.pf-body { flex: 1; min-width: 0; }
.pf-name {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--navy);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.pf-meta {
  display: flex;
  gap: 10px;
  font-size: 12px;
  color: var(--muted);
  align-items: center;
  margin-top: 4px;
  flex-wrap: wrap;
}
.pf-meta .pf-rating { color: var(--slate); font-weight: 600; display: inline-flex; align-items: center; gap: 4px; }
.badge-designer {
  background: #e7f0ff;
  color: var(--purple);
  font-weight: 700;
  font-size: 10.5px;
  padding: 1.5px 8px;
  border-radius: 99px;
}

.model-sidebar h1 { font-size: 30px; margin-bottom: 6px; }
.byline { font-size: 15px; color: var(--muted); margin-bottom: 10px; }
.byline a { font-weight: 600; }

.action-stack { display: flex; flex-direction: column; gap: 10px; margin-bottom: 26px; }

.stat-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  padding: 18px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  margin-bottom: 24px;
  text-align: center;
}
.stat-row b { display: block; font-size: 19px; color: var(--navy); }
.stat-row span { font-size: 12.5px; color: var(--faint); }

.tag-list { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 26px; }
.tag {
  background: var(--bg-soft);
  border: 1px solid var(--border);
  color: var(--slate);
  font-size: 13px;
  padding: 4px 12px;
  border-radius: 100px;
}

.model-desc { margin-bottom: 30px; }
.model-desc h3, .lineage h3, .comments h3 { font-size: 17px; margin-bottom: 12px; }
.model-desc p { font-size: 15px; }

/* lineage */
.lineage { margin-bottom: 30px; }
.lineage-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 8px;
  font-size: 14px;
  background: #fff;
}
.lineage-item.current { border-color: var(--purple); background: rgba(37, 99, 235, 0.05); }
.lineage-item .dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--border);
  flex-shrink: 0;
}
.lineage-item.current .dot { background: var(--purple); }
.lineage-item .who { color: var(--muted); margin-left: auto; font-size: 13px; }

/* comments */
.comment { display: flex; gap: 13px; padding: 15px 0; border-top: 1px solid var(--border); }
.avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 700;
  font-size: 15px;
}
.comment .body { font-size: 14.5px; }
.comment .who { font-weight: 600; color: var(--navy); font-size: 14px; }
.comment .when { color: var(--faint); font-size: 12.5px; margin-left: 8px; font-weight: 400; }

.comment-box {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px 14px;
  font-family: var(--font);
  font-size: 14.5px;
  resize: vertical;
  min-height: 74px;
  outline: none;
  margin-bottom: 10px;
}
.comment-box:focus { border-color: var(--purple); box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12); }

.more-section { margin-top: 64px; }
.more-section h2 { font-size: 24px; margin-bottom: 26px; }

/* ---------- profile ---------- */
.profile-hero {
  position: relative;
  padding: 72px 0 56px;
  overflow: hidden;
}
.profile-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  transform: skewY(-5deg);
  transform-origin: top left;
  top: -60%;
  background: linear-gradient(100deg, #e9f0ff 0%, #e8f7ff 55%, #fff3f8 100%);
}
.profile-hero .container {
  position: relative;
  display: flex;
  gap: 28px;
  align-items: center;
  flex-wrap: wrap;
}
.profile-avatar {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 36px;
  font-weight: 700;
  box-shadow: var(--shadow-md);
}
.profile-hero h1 { font-size: 34px; margin-bottom: 4px; }
.profile-hero .bio { max-width: 480px; }
.profile-stats {
  display: flex;
  gap: 40px;
  margin-left: auto;
}
.profile-stats b { display: block; font-size: 24px; color: var(--navy); }
.profile-stats span { font-size: 13px; color: var(--muted); }

/* ---------- footer ---------- */
.site-footer {
  background: var(--bg-soft);
  border-top: 1px solid var(--border);
  padding: 56px 0 40px;
  margin-top: 40px;
  font-size: 14px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
  gap: 36px;
  margin-bottom: 40px;
}
.footer-grid h4 { font-size: 13.5px; text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 14px; color: var(--navy); }
.footer-grid ul { list-style: none; }
.footer-grid li { margin-bottom: 9px; }
.footer-grid a { color: var(--muted); }
.footer-grid a:hover { color: var(--purple); }
.footer-tagline { color: var(--muted); max-width: 280px; margin-top: 12px; }
.footer-bottom { color: var(--faint); font-size: 13px; border-top: 1px solid var(--border); padding-top: 24px; }

/* ---------- responsive ---------- */
@media (max-width: 920px) {
  .model-layout { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .profile-stats { margin-left: 0; }

  .site-header .container { gap: 14px; }
  .nav-toggle { display: inline-flex; position: relative; flex-shrink: 0; }
  .logo { flex-shrink: 0; }
  .header-actions { flex-shrink: 0; gap: 8px; }

  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: #fff;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-md);
    padding: 4px 24px 18px;
    max-height: calc(100vh - 64px);
    overflow-y: auto;
  }
  .nav-links.open { display: flex; }
  .nav-links > a {
    padding: 13px 0;
    border-bottom: 1px solid var(--bg-soft);
  }

  .nav-drop { width: 100%; }
  .nav-drop > a {
    width: 100%;
    padding: 13px 0;
    border-bottom: 1px solid var(--bg-soft);
    justify-content: space-between;
  }
  .drop-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    padding-top: 0;
    display: none;
  }
  .nav-drop.mobile-open .drop-menu { display: block; }
  .nav-drop.mobile-open > a .caret { transform: rotate(180deg); }
  .drop-card {
    width: 100%;
    box-shadow: none;
    border: none;
    border-radius: 0;
    padding: 0 0 10px 10px;
  }
  .drop-foot { padding-left: 10px; }
}
@media (max-width: 480px) {
  .header-actions .btn-ghost { display: none; }
  .header-actions .btn-primary {
    padding: 8px 14px;
    font-size: 13.5px;
    white-space: nowrap;
  }
  .header-actions .btn-primary .arrow { display: none; }
  .logo { font-size: 17px; gap: 6px; }
  .logo svg { width: 22px; height: 22px; flex-shrink: 0; }
}
@media (max-width: 560px) {
  .hero { padding: 64px 0 100px; }
  .hero-stats { gap: 32px; }
  .stat-row { grid-template-columns: repeat(2, 1fr); row-gap: 16px; }
}

/* reveal on scroll */
/* Only hide sections once js/app.js has loaded (it adds .js-ready), so content stays
   visible if scripts are blocked, e.g. when a page is opened straight from disk. */
.reveal { transition: opacity 0.5s ease, transform 0.5s ease; }
.js-ready .reveal:not(.visible) { opacity: 0; transform: translateY(18px); }

/* ============================================================
   make.html: AI-first homepage (gaming & setup lead)
   Blue = designing, filament orange = the physical object.
   ============================================================ */
:root {
  --filament: #f28c28;
  --filament-deep: #c4650a;
  --filament-soft: #fff3e6;
  --ok: #3f9e52;
  --mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
}
.mono { font-family: var(--mono); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* hero */
.hero.make-hero { padding: 84px 0 140px; text-align: center; }
/* centred copy sits over the floating shapes, so push the scene back */
.make-hero .hero-scene { opacity: 0.4; }
.make-hero h1 { max-width: none; margin: 0 auto 18px; font-size: clamp(40px, 6.6vw, 74px); }
.make-hero .tagline { margin: 0 auto 32px; max-width: 610px; }
.early-pill {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 5px 14px 5px 5px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 24px;
  backdrop-filter: blur(6px);
}
.early-pill .tag {
  background: var(--filament);
  color: #fff;
  border-radius: 100px;
  padding: 2px 9px;
  font-size: 11px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.prompt-box {
  max-width: 720px;
  margin: 0 auto;
  background: #fff;
  border-radius: 18px;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
  padding: 10px;
  text-align: left;
  transition: box-shadow 0.2s, border-color 0.2s;
}
.prompt-box:focus-within { border-color: rgba(37, 99, 235, 0.45); box-shadow: var(--shadow-lg), 0 0 0 4px rgba(37, 99, 235, 0.12); }
.prompt-box textarea {
  display: block;
  width: 100%;
  border: none;
  outline: none;
  resize: none;
  font: inherit;
  font-size: 18px;
  line-height: 1.45;
  color: var(--navy);
  padding: 12px 12px 8px;
  min-height: 74px;
  background: transparent;
}
.prompt-box textarea::placeholder { color: var(--faint); }
.prompt-bar { display: flex; align-items: center; gap: 8px; padding: 2px 2px 0; }
.prompt-bar .spacer { flex: 1; }
.attach {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 13px;
  border-radius: 100px;
  border: 1px solid var(--border);
  font-size: 14px;
  font-weight: 500;
  color: var(--slate);
  cursor: pointer;
  background: #fff;
  max-width: 240px;
  overflow: hidden;
}
.attach span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.attach:hover { border-color: var(--faint); color: var(--navy); }
.attach:focus-within { outline: 2px solid var(--purple); outline-offset: 2px; }
.attach input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.attach.has-file { border-color: rgba(242, 140, 40, 0.5); background: var(--filament-soft); color: var(--filament-deep); }
.prompt-box .btn-primary { padding: 10px 20px; }

.idea-chips { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; max-width: 840px; margin: 22px auto 0; }
.idea-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.88);
  border-radius: 100px;
  padding: 7px 14px;
  font: inherit;
  font-size: 14px;
  font-weight: 500;
  color: var(--navy);
  cursor: pointer;
  transition: border-color 0.15s, transform 0.15s;
}
.idea-chip:hover { border-color: var(--purple); transform: translateY(-1px); }
.seg-dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; flex-shrink: 0; }
.dot-game { background: var(--purple); }
.dot-creator { background: var(--pink); }
.dot-build { background: #17a68a; }
.hero-sub { margin-top: 22px; font-size: 14.5px; color: var(--muted); }
.hero-sub a { font-weight: 600; }
.slicers { margin-top: 8px; font-size: 13px; color: var(--faint); }

/* generate -> print flow */
.flow { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.flow-step {
  position: relative;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px 18px;
}
.flow-step .n { font-family: var(--mono); font-size: 12px; color: var(--faint); float: right; }
.flow-step .fi { width: 40px; height: 40px; border-radius: 10px; display: flex; align-items: center; justify-content: center; }
.flow-step h3 { font-size: 17px; margin: 14px 0 6px; }
.flow-step p { font-size: 14px; }
.flow-step:not(:last-child)::after {
  content: "";
  position: absolute;
  right: -12px;
  top: 50%;
  width: 8px;
  height: 8px;
  border-top: 2px solid #c9d3df;
  border-right: 2px solid #c9d3df;
  transform: translateY(-50%) rotate(45deg);
}
.flow-step.print { border-color: rgba(242, 140, 40, 0.45); background: linear-gradient(180deg, #fff, var(--filament-soft)); }
.fi-filament { background: var(--filament-soft); color: var(--filament-deep); }
.flow-step.print .fi-filament { background: #fff; }

/* prompt -> object cases */
.cases { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.case {
  background: #fff;
  border-radius: 14px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
a.case { color: inherit; text-decoration: none; }
.case:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.case-seg { display: flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--navy); padding: 18px 20px 0; }
.case-prompt {
  margin: 12px 20px 0;
  background: var(--bg-soft);
  border-radius: 14px 14px 14px 4px;
  padding: 12px 14px;
  font-size: 14.5px;
  line-height: 1.5;
  color: var(--navy);
}
.case-prompt .who { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); margin-bottom: 4px; font-weight: 600; }
.case-photo {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
  font-size: 12.5px;
  color: var(--filament-deep);
  background: var(--filament-soft);
  border-radius: 6px;
  padding: 3px 8px;
}
.case-render {
  position: relative;
  aspect-ratio: 4 / 3;
  margin: 12px 12px 0;
  border-radius: 10px;
  overflow: hidden;
  background:
    linear-gradient(rgba(37, 99, 235, 0.06) 1px, transparent 1px) 0 0 / 22px 22px,
    linear-gradient(90deg, rgba(37, 99, 235, 0.06) 1px, transparent 1px) 0 0 / 22px 22px,
    linear-gradient(180deg, #f6f9fc, #edf3fa);
}
.case-render .mini-thumb { position: absolute; inset: 0; display: block; }
.case-render .mini-thumb img { width: 100%; height: 100%; object-fit: contain; display: block; }
.dim {
  position: absolute;
  font-family: var(--mono);
  font-size: 11.5px;
  background: var(--navy);
  color: #fff;
  padding: 3px 8px;
  border-radius: 6px;
  white-space: nowrap;
  box-shadow: var(--shadow-sm);
}
.case-foot {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  margin-top: auto;
  padding: 14px 20px 18px;
  font-size: 13px;
  color: var(--slate);
}
.case-foot .ok { color: var(--ok); font-weight: 600; display: inline-flex; align-items: center; gap: 4px; }
.case-foot .pt { font-family: var(--mono); color: var(--filament-deep); }
.illustrative { font-size: 12.5px; color: var(--faint); text-align: center; margin-top: 22px; }

/* precision demo */
.precision { display: grid; grid-template-columns: 1fr 1.1fr; gap: 56px; align-items: center; }
.precision .eyebrow { color: var(--purple); font-weight: 700; font-size: 14px; text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 10px; }
.precision h2 { font-size: clamp(28px, 4vw, 40px); margin-bottom: 16px; }
.precision .lead { font-size: 17px; margin-bottom: 24px; }
.ticks { list-style: none; display: grid; gap: 12px; }
.ticks li { display: flex; gap: 10px; font-size: 15px; }
.ticks li svg { flex-shrink: 0; margin-top: 4px; color: var(--purple); }
.edit-demo { background: #fff; border-radius: 14px; box-shadow: var(--shadow-lg); border: 1px solid var(--border); overflow: hidden; }
.ed-bar { display: flex; align-items: center; gap: 6px; padding: 10px 14px; background: var(--bg-soft); border-bottom: 1px solid var(--border); font-size: 12.5px; color: var(--muted); }
.ed-bar i { width: 10px; height: 10px; border-radius: 50%; background: #d8dee9; }
.ed-bar i:nth-child(1) { background: #ffb3ad; }
.ed-bar i:nth-child(2) { background: #ffd67e; }
.ed-bar i:nth-child(3) { background: #9be1a8; margin-right: 8px; }
.ed-body { display: grid; grid-template-columns: 1.15fr 1fr; }
.ed-chat { padding: 18px; background: var(--bg-soft); border-right: 1px solid var(--border); display: flex; flex-direction: column; gap: 10px; }
.ed-msg {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px 12px 12px 4px;
  padding: 10px 12px;
  font-size: 14px;
  color: var(--navy);
  opacity: 0.5;
  transition: opacity 0.35s, border-color 0.35s, box-shadow 0.35s;
}
.ed-msg.on { opacity: 1; border-color: rgba(37, 99, 235, 0.45); box-shadow: var(--shadow-sm); }
.ed-op { display: block; font-family: var(--mono); font-size: 11.5px; color: var(--purple); margin-top: 6px; }
.ed-props { padding: 18px; }
.ed-props h4 { font-size: 12px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); margin-bottom: 8px; }
.prop { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 9px 0; border-bottom: 1px dashed var(--border); font-size: 13.5px; }
.prop:last-child { border-bottom: none; }
.prop .v { font-family: var(--mono); font-size: 13px; color: var(--navy); background: var(--bg-soft); padding: 3px 8px; border-radius: 6px; transition: background 0.3s, color 0.3s; white-space: nowrap; }
.prop .v.flash { background: #e7f0ff; color: var(--purple); }
.ed-note { padding: 12px 18px; border-top: 1px solid var(--border); font-size: 12.5px; color: var(--muted); }

/* who it's for */
.audiences { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 20px; }
.aud { border-radius: 14px; padding: 28px 26px; border: 1px solid var(--border); background: #fff; display: flex; flex-direction: column; }
.aud .k { font-size: 12px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; display: flex; align-items: center; gap: 8px; }
.aud h3 { font-size: 22px; margin: 10px 0 10px; }
.aud > p { font-size: 15px; }
.aud ul { list-style: none; margin: 16px 0 22px; display: grid; gap: 8px; font-size: 14.5px; }
.aud ul li { display: flex; gap: 9px; }
.aud ul li::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: currentColor; opacity: 0.4; margin-top: 10px; flex-shrink: 0; }
.aud .aud-cta { margin-top: auto; font-weight: 600; font-size: 15px; }
.aud.lead { background: var(--navy); border-color: var(--navy); color: rgba(255, 255, 255, 0.78); position: relative; overflow: hidden; }
.aud.lead::before {
  content: "";
  position: absolute;
  inset: -30% -30% auto auto;
  width: 320px;
  height: 320px;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.55), transparent 65%);
  pointer-events: none;
}
.aud.lead > * { position: relative; }
.aud.lead h3, .aud.lead .k { color: #fff; }
.aud.lead .aud-cta { color: #9cc0ff; }
.aud.lead .aud-cta:hover { color: #fff; }

/* remix explainer */
.remix-flow { display: grid; grid-template-columns: 1fr auto 1.1fr auto 1fr; gap: 18px; align-items: stretch; }
.rf-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: var(--shadow-sm);
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  color: var(--slate);
  font-size: 14px;
}
.rf-card b { color: var(--navy); font-size: 16px; }
.rf-label { font-size: 12px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.rf-render {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: 10px;
  overflow: hidden;
  margin: 4px 0 6px;
  background: linear-gradient(180deg, #f6f9fc, #edf3fa);
}
.rf-render .mini-thumb { position: absolute; inset: 0; display: block; }
.rf-render .mini-thumb img { width: 100%; height: 100%; object-fit: contain; display: block; }
/* same model, recoloured, so the remix reads as "yours" */
.rf-render-alt { background: linear-gradient(180deg, #fff8f0, var(--filament-soft)); }
.rf-render-alt .mini-thumb img { filter: hue-rotate(170deg) saturate(1.3); }
.rf-prompt { justify-content: center; background: var(--bg-soft); }
.rf-bubble {
  background: #fff;
  border: 1px solid rgba(37, 99, 235, 0.35);
  border-radius: 14px 14px 14px 4px;
  padding: 12px 14px;
  font-size: 15px;
  color: var(--navy);
  margin: 6px 0 4px;
}
.rf-arrow { align-self: center; color: var(--faint); font-size: 22px; }
.rf-sub { font-size: 13.5px; }

/* the example cards are buttons that fill the prompt */
button.case { font: inherit; text-align: left; cursor: pointer; padding: 0; color: inherit; }
button.case > span { display: block; }
button.case .case-seg { display: flex; }
button.case:focus-visible { outline: 3px solid var(--purple); outline-offset: 3px; }
.case-foot .try { font-weight: 600; color: var(--purple); font-size: 14px; }
.case:hover .try { color: var(--purple-deep); }

/* closing prompt */
.cta-prompt {
  display: flex;
  gap: 8px;
  max-width: 580px;
  margin: 0 auto;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 100px;
  padding: 6px;
}
.cta-prompt:focus-within { border-color: rgba(255, 255, 255, 0.5); }
.cta-prompt input { flex: 1; min-width: 0; background: transparent; border: none; outline: none; color: #fff; font: inherit; font-size: 16px; padding: 0 16px; }
.cta-prompt input::placeholder { color: rgba(255, 255, 255, 0.55); }
.cta-band .cta-alt { margin-top: 18px; font-size: 14.5px; color: rgba(255, 255, 255, 0.65); }
.cta-band .cta-alt a { color: #fff; font-weight: 600; }

/* long-form legal copy (privacy.html) */
.legal { max-width: 760px; }
.legal h2 { font-size: 22px; margin: 40px 0 12px; }
.legal p, .legal li { font-size: 16px; margin-bottom: 12px; }
.legal ul { padding-left: 22px; }
.legal-lead { font-size: 18px; color: var(--navy); font-weight: 500; }

/* analytics consent banner (js/track.js) */
.consent {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 300;
  max-width: 640px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 16px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: var(--shadow-lg);
  padding: 14px 16px 14px 20px;
  font-size: 14px;
}
.consent p { flex: 1; }
.consent-actions { display: flex; gap: 8px; flex-shrink: 0; }

@media (max-width: 960px) {
  .flow { grid-template-columns: repeat(3, 1fr); }
  .flow-step::after { display: none; }
  .cases { grid-template-columns: 1fr; max-width: 520px; margin: 0 auto; }
  .precision { grid-template-columns: 1fr; gap: 36px; }
  .audiences { grid-template-columns: 1fr; }
  .remix-flow { grid-template-columns: 1fr; max-width: 420px; margin: 0 auto; }
  .rf-arrow { transform: rotate(90deg); justify-self: center; }
}
@media (max-width: 640px) {
  .hero.make-hero { padding: 56px 0 96px; }
  .prompt-box textarea { font-size: 16px; }
  .flow { grid-template-columns: 1fr 1fr; }
  .ed-body { grid-template-columns: 1fr; }
  .ed-chat { border-right: none; border-bottom: 1px solid var(--border); }
  .consent { flex-direction: column; align-items: stretch; }
  .consent-actions .btn { flex: 1; justify-content: center; }
}
@media (max-width: 440px) {
  .flow { grid-template-columns: 1fr; }
  .prompt-box .btn-primary { padding: 10px 16px; }
  .attach { max-width: 170px; }
  .early-pill { font-size: 12px; gap: 7px; padding-right: 12px; max-width: 100%; border-radius: 16px; text-align: left; }
  .early-pill .tag { font-size: 10px; padding: 2px 7px; }
  .cta-prompt { flex-direction: column; border-radius: 16px; }
  .cta-prompt input { padding: 10px 12px; }
}

/* features.html */
.jump-nav { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 26px; }
.jump-nav a {
  border: 1px solid var(--border);
  background: #fff;
  border-radius: 100px;
  padding: 6px 14px;
  font-size: 14px;
  font-weight: 500;
  color: var(--navy);
}
.jump-nav a:hover { border-color: var(--purple); color: var(--purple); }
.feat-section { scroll-margin-top: 72px; }
.feat-section .feature { display: flex; flex-direction: column; }
.feat-more { margin-top: auto; padding-top: 12px; font-size: 14px; font-weight: 600; }
.tut-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 20px; }
.tut-grid .feature { color: inherit; }
.tut-grid .feature:hover h3 { color: var(--purple); }

/* compare.html: six-tool table */
.vs-table { min-width: 1080px; }
.vs-table th, .vs-table td { font-size: 13.5px; padding: 13px 14px; vertical-align: top; }
.vs-table tbody th { white-space: normal; width: 150px; position: sticky; left: 0; background: #fff; z-index: 1; }
.vs-table thead th:first-child { position: sticky; left: 0; z-index: 2; }
.vs-note { text-align: left; max-width: 900px; }
.vs-h2 { font-size: clamp(24px, 3vw, 30px); margin: 56px 0 20px; }
.vs-p { max-width: 760px; font-size: 16px; }
.vs-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 18px; }
.vs-cards .fair-card { border: 1px solid var(--border); }
.vs-sources ul { padding-left: 20px; }
.vs-sources li { font-size: 14.5px; margin-bottom: 6px; }

/* homepage: capabilities overview */
.cap-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.cap-col { background: #fff; border: 1px solid var(--border); border-radius: 12px; padding: 22px 20px; display: flex; flex-direction: column; }
.cap-col .fi { width: 40px; height: 40px; border-radius: 10px; display: flex; align-items: center; justify-content: center; }
.cap-col h3 { font-size: 18px; margin: 14px 0 10px; }
.cap-col ul { list-style: none; display: grid; gap: 8px; font-size: 14.5px; margin-bottom: 4px; }
.cap-col li { display: flex; gap: 9px; }
.cap-col li::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--purple); opacity: 0.5; margin-top: 9px; flex-shrink: 0; }
.cap-foot { margin-top: 24px; font-size: 14.5px; color: var(--muted); }
.cap-foot a { font-weight: 600; }
@media (max-width: 960px) { .cap-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .cap-grid { grid-template-columns: 1fr; } }

/* twyk-vs-*.html: two-column comparisons */
.vs-crumb { font-size: 14px; color: var(--muted); margin-bottom: 10px; }
.vs-pair { min-width: 560px; }
.vs-pair th, .vs-pair td { vertical-align: top; }
.vs-pair tbody th { white-space: normal; width: 30%; }
.vs-pair td { width: 35%; }
.vs-card-h { font-size: 17px; margin-bottom: 14px; }
.vs-list { padding-left: 20px; max-width: 820px; }
.vs-list li { font-size: 15.5px; margin-bottom: 10px; }
.vs-more { margin-top: 40px; font-size: 14.5px; color: var(--muted); line-height: 1.9; }

/* edit-stl-files.html */
.import-flow { grid-template-columns: repeat(4, 1fr); }
.site-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 16px; }
.site-card { background: #fff; border: 1px solid var(--border); border-radius: 12px; padding: 20px; display: flex; flex-direction: column; gap: 6px; }
.site-card h3 { font-size: 17px; }
.site-card h3 a { color: var(--navy); }
.site-card h3 a:hover { color: var(--purple); }
.site-card p { font-size: 14px; flex: 1; }
.site-fmt { align-self: flex-start; font-size: 12px; font-weight: 600; color: var(--muted); background: var(--bg-soft); border-radius: 100px; padding: 3px 10px; }
.licence-note { display: flex; gap: 14px; margin-top: 28px; padding: 18px 20px; border-radius: 12px; background: var(--filament-soft); border: 1px solid rgba(242, 140, 40, 0.3); max-width: 900px; }
.licence-note svg { flex-shrink: 0; color: var(--filament-deep); margin-top: 2px; }
.licence-note b { color: var(--navy); }
.licence-note p { font-size: 14.5px; margin-top: 4px; }

@media (max-width: 960px) { .import-flow { grid-template-columns: 1fr 1fr; } }
@media (max-width: 440px) { .import-flow { grid-template-columns: 1fr; } }

/* compare.html: links to the one-to-one pages */
.vs-table thead th a { color: inherit; text-decoration: underline; text-decoration-color: var(--border); text-underline-offset: 3px; }
.vs-table thead th a:hover { color: var(--purple); }
.vs-deep { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin-top: 28px; font-size: 14.5px; }
.vs-deep b { color: var(--navy); }
.vs-deep a { font-weight: 600; }

/* how-it-works: let step columns shrink so wide mockups can't push the page sideways */
.guide-row > * { min-width: 0; }
.guide-shot .edit-demo, .guide-shot .prompt-box { max-width: 100%; }

/* homepage: real-world photos */
.people-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.people-shot { position: relative; margin: 0; border-radius: 14px; overflow: hidden; background: var(--bg-soft); grid-column: span 2; height: 320px; }
.people-shot.people-wide { grid-column: span 3; }
.people-shot img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.6s ease; }
.people-shot:hover img { transform: scale(1.03); }
.people-shot figcaption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 36px 18px 14px;
  background: linear-gradient(to top, rgba(10, 37, 64, 0.78), rgba(10, 37, 64, 0));
  color: #fff;
  font-size: 15px;
  font-weight: 600;
}
.people-credit { font-size: 12.5px; color: var(--faint); margin-top: 14px; }
@media (max-width: 760px) {
  .people-grid { grid-template-columns: 1fr; }
  .people-shot, .people-shot.people-wide { grid-column: auto; height: auto; aspect-ratio: 3 / 2; }
}

/* homepage: bring models from other sites (tiles -> STL/3MF -> twyk) */
.src-section {
  position: relative;
  padding: 84px 0;
  overflow: hidden;
  background:
    radial-gradient(circle at 8% 20%, rgba(37, 99, 235, 0.10), transparent 40%),
    radial-gradient(circle at 92% 80%, rgba(242, 140, 40, 0.12), transparent 42%),
    var(--bg-soft);
}
.src-head { max-width: 640px; margin-bottom: 40px; }
.src-head .eyebrow { color: var(--purple); font-weight: 700; font-size: 14px; text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 10px; }
.src-head h2 { font-size: clamp(28px, 4vw, 40px); margin-bottom: 12px; }
.src-head p { font-size: 17px; }

.src-flow { display: grid; grid-template-columns: 1.25fr 120px 1fr; align-items: center; gap: 0; }
.src-tiles { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.src-tile {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px 16px;
  box-shadow: var(--shadow-sm);
  color: var(--brand, var(--navy));
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}
.src-tile b { font-size: 16.5px; font-weight: 700; letter-spacing: -0.01em; color: var(--navy); }
.src-tile svg { flex-shrink: 0; }
.src-tile:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: transparent; }
/* names without a mark get a matching letter badge so every tile reads the same */
.src-tile-word::before {
  content: attr(data-mark);
  width: 26px;
  height: 26px;
  border-radius: 7px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 800;
  color: var(--slate);
  background: linear-gradient(135deg, #eef2f7, #dde4ee);
}
.src-tiles .src-tile:last-child:nth-child(odd) { grid-column: span 2; justify-content: center; }

.src-pipe { position: relative; height: 100%; min-height: 120px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; }
.src-line {
  position: absolute;
  left: 6px;
  right: 6px;
  top: 50%;
  height: 3px;
  margin-top: -1.5px;
  border-radius: 3px;
  background: repeating-linear-gradient(90deg, var(--purple) 0 10px, transparent 10px 18px);
  background-size: 36px 3px;
  opacity: 0.5;
  animation: src-flow 1.2s linear infinite;
  z-index: 0;
}
.src-line::after {
  content: "";
  position: absolute;
  right: -2px;
  top: 50%;
  width: 9px;
  height: 9px;
  border-top: 3px solid var(--purple);
  border-right: 3px solid var(--purple);
  transform: translateY(-50%) rotate(45deg);
}
.src-file {
  position: relative;
  z-index: 1;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  color: #fff;
  background: var(--navy);
  border-radius: 6px;
  padding: 3px 9px;
  box-shadow: var(--shadow-sm);
}
@keyframes src-flow { to { background-position: 36px 0; } }

.src-twyk {
  background: #fff;
  border-radius: 16px;
  padding: 22px;
  border: 1px solid rgba(37, 99, 235, 0.25);
  box-shadow: var(--shadow-lg), 0 0 0 6px rgba(37, 99, 235, 0.06);
}
.src-twyk-top { display: flex; align-items: center; gap: 12px; padding-bottom: 14px; border-bottom: 1px solid var(--border); margin-bottom: 12px; }
.src-twyk-top b { display: block; color: var(--navy); font-size: 17px; }
.src-twyk-top span { font-size: 13.5px; color: var(--muted); }
.src-tweaks { list-style: none; display: grid; gap: 10px; }
.src-tweaks li { display: flex; align-items: center; gap: 10px; font-size: 14.5px; color: var(--slate); }
.src-tweaks .mono {
  min-width: 84px;
  text-align: center;
  font-size: 12px;
  color: var(--purple);
  background: #e7f0ff;
  border-radius: 6px;
  padding: 3px 8px;
}
.src-tweaks li:last-child .mono { color: var(--filament-deep); background: var(--filament-soft); }

.src-foot { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; margin-top: 36px; }
.src-note { font-size: 12.5px; color: var(--faint); }

@media (prefers-reduced-motion: reduce) { .src-line { animation: none; } }
@media (max-width: 960px) {
  .src-flow { grid-template-columns: 1fr; }
  .src-pipe { min-height: 96px; flex-direction: row; }
  .src-line { left: 50%; right: auto; top: 8px; bottom: 8px; width: 3px; height: auto; margin: 0 0 0 -1.5px;
    background: repeating-linear-gradient(180deg, var(--purple) 0 10px, transparent 10px 18px); background-size: 3px 36px; animation-name: src-flow-v; }
  .src-line::after { right: auto; left: 50%; top: auto; bottom: -2px; transform: translateX(-50%) rotate(135deg); }
}
@keyframes src-flow-v { to { background-position: 0 36px; } }
@media (max-width: 440px) {
  .src-tiles { grid-template-columns: 1fr; gap: 8px; }
  .src-tile { padding: 9px 14px; gap: 10px; }
  .src-tile b { font-size: 15px; }
  .src-tile svg, .src-tile-word::before { width: 22px; height: 22px; }
  .src-tiles .src-tile:last-child:nth-child(odd) { grid-column: auto; justify-content: flex-start; }
  .src-tweaks .mono { min-width: 72px; }
}

/* ---------- features.html: animated illustrations (markup from tools/feature_visuals.py) ---------- */
.fx-defs { position: absolute; width: 0; height: 0; overflow: hidden; }
.fx {
  position: relative;
  height: 150px;
  margin: -8px -6px 18px;
  border-radius: 8px;
  background: linear-gradient(135deg, #f3f7fd, #e7eef9);
  overflow: hidden;
}
.section-soft .fx { background: linear-gradient(135deg, #f1f6fd, #e4ecf8); }
.fx > svg { display: block; width: 100%; height: 100%; }
.fx text { font-family: var(--mono); font-size: 11px; fill: var(--navy); }
.fx .t { fill: var(--navy); }
.fx .tm { fill: var(--muted); font-size: 10.5px; }
.fx .tg { fill: #2f8a43; font-weight: 600; }
.fx .tr { fill: #d23c41; font-weight: 600; }
.fx .to { fill: var(--filament-deep); font-weight: 600; font-size: 13px; }
.fx .big { font-size: 26px; font-weight: 700; fill: var(--navy); }
.fx .face { font-family: var(--font); font-size: 7.5px; font-weight: 800; fill: #fff; letter-spacing: 0.04em; }
.fx .tile { font-family: var(--font); font-size: 15px; font-weight: 800; fill: #fff; }
.fx .nova { font-family: var(--font); font-size: 44px; font-weight: 800; fill: #5b8cf5; text-anchor: middle; }
.fx .nova.ex { fill: #1b46a8; }
.fx .nova.n2 { font-family: Georgia, "Times New Roman", serif; font-style: italic; font-weight: 700; }
.fx .nova.n3 { font-family: var(--mono); font-weight: 500; font-size: 40px; }
.fx .mini-thumb { position: absolute; display: block; }
.fx .mini-thumb img { width: 100%; height: 100%; object-fit: contain; display: block; }
.fx-split .mini-thumb { right: 2%; top: 4%; width: 56%; height: 92%; }
.fx-thumb .mini-thumb { inset: 0; }
.fx-chip {
  position: absolute; left: 10px; top: 10px;
  font: 500 11px var(--mono); color: var(--navy);
  background: #fff; border: 1px solid #d6e0ee; border-radius: 999px; padding: 3px 10px;
}
.fx-chip-r { left: auto; right: 10px; top: auto; bottom: 10px; color: var(--muted); }

/* properties panel */
.fx-panel {
  position: absolute; inset: 14px 16%;
  background: #fff; border: 1px solid #d6e0ee; border-radius: 10px; padding: 8px 12px;
  display: flex; flex-direction: column; justify-content: space-around;
  box-shadow: var(--shadow-sm);
}
.fx-row { display: flex; align-items: center; justify-content: space-between; font-size: 12px; color: var(--muted); }
.fx-row b { font: 500 12px var(--mono); color: var(--navy); background: var(--bg-soft); border-radius: 4px; padding: 1px 6px; }
.fx-row:first-child b { outline: 2px solid #9cc0f7; }
.fx-row em { display: flex; gap: 4px; }
.fx-row em i { width: 13px; height: 13px; border-radius: 3px; }
.fx-caret { display: inline-block; width: 1px; height: 12px; margin: 0 1px -2px; background: var(--navy); animation: fx-blink 1s steps(1) infinite; }

/* community cards */
.fx-card-wrap { display: flex; align-items: center; justify-content: center; }
.fx-card { position: relative; width: 150px; height: 124px; background: #fff; border-radius: 10px; box-shadow: var(--shadow-sm); overflow: hidden; }
.fx-card .mini-thumb { left: 0; right: 0; top: 0; height: 92px; }
.fx-card-foot { position: absolute; left: 8px; right: 8px; bottom: 6px; display: flex; justify-content: space-between; align-items: center; font: 500 11px var(--mono); }
.fx-trend { background: var(--filament-soft); color: var(--filament-deep); border-radius: 999px; padding: 1px 8px; }
.fx-like { color: #e85c8f; display: inline-flex; align-items: center; gap: 3px; }
.fx-like svg { animation: fx-beat 1.6s ease-in-out infinite; }
.fx-copy { display: flex; align-items: center; justify-content: center; gap: 10px; }
.fx-mini { position: relative; width: 104px; height: 118px; background: #fff; border-radius: 10px; box-shadow: var(--shadow-sm); }
.fx-mini .mini-thumb { left: 4px; right: 4px; top: 4px; height: 82px; }
.fx-mini small { position: absolute; left: 0; right: 0; bottom: 8px; text-align: center; font-size: 11.5px; font-weight: 600; color: var(--navy); }
.fx-mini b { position: absolute; top: 6px; right: 6px; font: 500 10px var(--mono); color: #fff; background: var(--purple); border-radius: 999px; padding: 1px 6px; }
.fx-mini.mine { animation: fx-lift 4s ease-in-out infinite; }
.fx-mini.mine .mini-thumb { transform: scaleX(1.08) rotate(-4deg); }
.fx-arrow { font-size: 20px; color: var(--purple); font-weight: 700; }

/* hero gallery of rendered models */
.fx-gallery { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; max-width: 1000px; margin: 40px auto 0; }
.gal-tile {
  margin: 0; position: relative; aspect-ratio: 4 / 4.4;
  background: linear-gradient(160deg, #fff, #eef3fb); border: 1px solid var(--border); border-radius: 14px;
  box-shadow: var(--shadow-sm); overflow: hidden;
  animation: fx-float 6s ease-in-out infinite;
}
.gal-tile:nth-child(2n) { animation-delay: -2s; }
.gal-tile:nth-child(3n) { animation-delay: -4s; }
.gal-tile .mini-thumb { position: absolute; left: 4%; right: 4%; top: 2%; bottom: 26%; display: block; }
.gal-tile .mini-thumb img { width: 100%; height: 100%; object-fit: contain; display: block; }
.gal-tile figcaption { position: absolute; left: 0; right: 0; bottom: 10px; font-size: 12.5px; font-weight: 600; color: var(--navy); line-height: 1.35; }
.gal-tile figcaption b { display: block; font: 500 11px var(--mono); color: var(--muted); }
@media (max-width: 860px) {
  .fx-gallery { grid-template-columns: repeat(3, 1fr); gap: 12px; }
  .gal-tile { aspect-ratio: 4 / 5.2; }
  .gal-tile .mini-thumb { bottom: 34%; }
  .gal-tile figcaption { font-size: 11.5px; bottom: 8px; }
  .gal-tile figcaption b { font-size: 10px; }
}

/* motion: only the animated pieces move about their own box (static pieces keep their own transforms) */
.fx svg [class^="fx-"] { transform-box: fill-box; transform-origin: center; }
.fx-type { transform-origin: left center !important; animation: fx-type 4.5s steps(5) infinite; }
.fx-sel { opacity: 0; animation: fx-sel 4.5s infinite; }
.fx-cyc3 { opacity: 0; animation: fx-cyc3 9s infinite; }
.fx-cyc3.c2 { animation-delay: -6s; }
.fx-cyc3.c3 { animation-delay: -3s; }
.fx-cyc2 { animation: fx-cyc2 6s infinite; }
.fx-cyc2.c2 { opacity: 0; animation-name: fx-cyc2b; }
.fx-pop { animation: fx-pop 4.5s ease-out infinite; }
.fx-pop.d1 { animation-delay: .35s; }
.fx-pop.d2 { animation-delay: .7s; }
.fx-bob { animation: fx-bob 3.2s ease-in-out infinite; }
.fx-drip { animation: fx-drip 2.4s ease-in infinite; }
.fx-draw { stroke-dasharray: 260; animation: fx-draw 5s ease-in-out infinite; }
.fx-spin { stroke-dasharray: 6 4; animation: fx-dash 1.2s linear infinite; }
.fx-goo { animation: fx-goo 4s ease-in-out infinite; }
.fx-ring { opacity: 0; animation: fx-ring 4.4s ease-out infinite; }
.fx-rim { animation: fx-glow 3s ease-in-out infinite; }
.fx-rim.d1 { animation-delay: 1s; }
.fx-rim.d2 { animation-delay: 2s; }
.fx-half.l { animation: fx-left 4s ease-in-out infinite; }
.fx-half.r { animation: fx-right 4s ease-in-out infinite; }
.fx-plane { animation: fx-plane 4s ease-in-out infinite; }
.fx-snap { animation: fx-snap 4s cubic-bezier(.3, 1.4, .5, 1) infinite; }
.fx-snap.s1 { --from: -22px; }
.fx-snap.s2 { --from: 16px; }
.fx-snap.s3 { --from: -30px; }
.fx-slide { animation: fx-slide 6s ease-in-out infinite; }
.fx-xray { animation: fx-xray 4s ease-in-out infinite; }
.fx-dot { animation: fx-xray-dot 4s ease-in-out infinite; }
.fx-reload { animation: fx-rot 2.5s linear infinite; }
.fx-float { animation: fx-float 5s ease-in-out infinite; }
.fx-fly { animation: fx-fly 3s ease-in infinite; }
.fx-flow { animation: fx-dash 1s linear infinite; }
.fx svg .fx-wave { transform-origin: 0 100%; animation: fx-wave 2.4s ease-in-out infinite; }

@keyframes fx-type { 0% { transform: scaleX(0); } 45%, 100% { transform: scaleX(1); } }
@keyframes fx-sel { 0%, 48% { opacity: 0; } 55%, 92% { opacity: 1; } 100% { opacity: 0; } }
@keyframes fx-cyc3 { 0% { opacity: 0; } 5%, 30% { opacity: 1; } 36%, 100% { opacity: 0; } }
@keyframes fx-cyc2 { 0%, 42% { opacity: 1; } 50%, 92% { opacity: 0; } 100% { opacity: 1; } }
@keyframes fx-cyc2b { 0%, 42% { opacity: 0; } 50%, 92% { opacity: 1; } 100% { opacity: 0; } }
@keyframes fx-pop { 0% { transform: scale(.4); opacity: 0; } 12%, 85% { transform: scale(1); opacity: 1; } 100% { transform: scale(1); opacity: 1; } }
@keyframes fx-bob { 0%, 100% { transform: translateY(-8px); } 50% { transform: translateY(6px); } }
@keyframes fx-drip { 0% { transform: translateY(0); opacity: 0; } 15% { opacity: 1; } 100% { transform: translateY(40px); opacity: 0; } }
@keyframes fx-draw { 0% { stroke-dashoffset: 260; } 45%, 85% { stroke-dashoffset: 0; } 100% { stroke-dashoffset: -260; } }
@keyframes fx-dash { to { stroke-dashoffset: -20; } }
@keyframes fx-goo { 0%, 100% { transform: translateX(0); } 45%, 60% { transform: translateX(-42px); } }
@keyframes fx-ring { 0% { opacity: 0; transform: scale(.3); } 6%, 80% { opacity: 1; transform: scale(1); } 92%, 100% { opacity: 0; transform: scale(1); } }
@keyframes fx-glow { 0%, 100% { opacity: .55; } 50% { opacity: 1; } }
@keyframes fx-left { 0%, 20%, 100% { transform: translateX(0); } 50%, 80% { transform: translateX(-12px); } }
@keyframes fx-right { 0%, 20%, 100% { transform: translateX(0); } 50%, 80% { transform: translateX(12px); } }
@keyframes fx-plane { 0%, 100% { opacity: 1; } 45%, 85% { opacity: 0; } }
@keyframes fx-snap { 0% { transform: translateY(var(--from)); } 40%, 85% { transform: translateY(0); } 100% { transform: translateY(var(--from)); } }
@keyframes fx-slide { 0%, 40% { transform: translateX(0); } 50%, 90% { transform: translateX(-24px); } 100% { transform: translateX(0); } }
@keyframes fx-xray { 0%, 25%, 100% { opacity: 1; } 45%, 80% { opacity: .22; } }
@keyframes fx-xray-dot { 0%, 25%, 100% { opacity: .2; } 45%, 80% { opacity: 1; } }
@keyframes fx-rot { to { transform: rotate(360deg); } }
@keyframes fx-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
@keyframes fx-fly { 0% { transform: translateX(0); opacity: 0; } 15% { opacity: 1; } 75% { opacity: 1; } 100% { transform: translateX(120px); opacity: 0; } }
@keyframes fx-wave { 0%, 100% { transform: rotate(0); } 50% { transform: rotate(-8deg); } }
@keyframes fx-blink { 50% { opacity: 0; } }
@keyframes fx-beat { 0%, 60%, 100% { transform: scale(1); } 30% { transform: scale(1.3); } }
@keyframes fx-lift { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-4px); } }

/* only animate cards on screen; stand still for reduced motion */
.reveal:not(.visible) .fx * { animation-play-state: paused; }
@media (prefers-reduced-motion: reduce) {
  .fx *, .gal-tile, .fx-mini { animation: none !important; }
  .fx-sel, .fx-ring, .fx-cyc3.c1, .fx-pop { opacity: 1 !important; }
}

/* ---------- how-it-works.html: walkthrough with real editor screenshots ---------- */
.hw-jump { justify-content: center; }
.hw-jump a b {
  display: inline-flex; align-items: center; justify-content: center;
  width: 18px; height: 18px; margin-right: 4px; border-radius: 5px;
  background: var(--purple); color: #fff; font-size: 11px;
}
.hw-tour { max-width: 1080px; margin-top: 40px; }
.hw-tour img { height: auto; }
.hw-legend {
  list-style: none; counter-reset: hw; text-align: left;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px 28px;
  max-width: 1080px; margin: 26px auto 0;
}
.hw-legend li { counter-increment: hw; position: relative; padding-left: 38px; font-size: 14px; color: var(--slate); }
.hw-legend li::before {
  content: counter(hw); position: absolute; left: 0; top: 0;
  width: 26px; height: 26px; border-radius: 50%; background: #e8742a; color: #fff;
  display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 13px;
  box-shadow: 0 2px 6px rgba(232, 116, 42, 0.35);
}
.hw-legend li b { display: block; color: var(--navy); font-size: 15px; }
.hw-stats {
  display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px;
  max-width: 1080px; margin: 40px auto 0;
}
.hw-stats div {
  background: #fff; border: 1px solid var(--border); border-radius: 12px; padding: 16px 10px;
  box-shadow: var(--shadow-sm);
}
.hw-stats b { display: block; font: 700 26px var(--mono); color: var(--purple); letter-spacing: -0.02em; }
.hw-stats span { display: block; font-size: 12.5px; color: var(--muted); line-height: 1.35; margin-top: 4px; }

.hw-step { scroll-margin-top: 80px; }
.hw-ticks { list-style: none; margin-left: 0 !important; }
.hw-ticks li { position: relative; padding-left: 26px; }
.hw-ticks li::before {
  content: ""; position: absolute; left: 0; top: 5px; width: 16px; height: 16px; border-radius: 50%;
  background: #e4f5e7 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%233f9e52' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12 4 4 8-9'/%3E%3C/svg%3E") center / 11px no-repeat;
}
.hw-ticks b { color: var(--navy); }
.hw-links { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 16px; font-size: 14px; font-weight: 600; }
.hw-links a::after { content: " \203A"; }

.hw-shot { padding: 22px; min-height: 0; }
.hw-shot img { max-height: none; }
.hw-browser { width: 100%; border-radius: 10px; overflow: hidden; background: #fff; box-shadow: var(--shadow-lg); border: 1px solid var(--border); }
.hw-browser .frame-bar { display: flex; gap: 6px; padding: 9px 12px; background: var(--bg-soft); border-bottom: 1px solid var(--border); }
.hw-browser .frame-bar span { width: 9px; height: 9px; border-radius: 50%; background: #d8dee9; }
.hw-browser .frame-bar span:first-child { background: #ffb3ad; }
.hw-browser .frame-bar span:nth-child(2) { background: #ffd67e; }
.hw-browser .frame-bar span:nth-child(3) { background: #9be1a8; }
.hw-browser img { display: block; width: 100%; height: auto; border-radius: 0; box-shadow: none; }
.hw-panels { gap: 14px; align-items: flex-start; }
.hw-panels img { width: calc((100% - 28px) / 3.2); height: auto; border-radius: 10px; }
.hw-panels img:nth-child(2) { margin-top: 36px; }
.hw-panels img:nth-child(3) { width: calc((100% - 28px) / 2.6); margin-top: 12px; }
.hw-layer { position: relative; padding: 22px 22px 22px; }
.hw-layer .hw-main { width: 100%; height: auto; border-radius: 10px; }
.hw-layer .hw-float {
  position: absolute; right: -14px; bottom: -22px; width: 34%; height: auto;
  border-radius: 10px; box-shadow: var(--shadow-lg); border: 1px solid var(--border);
}

/* merge before / after */
.hw-merge {
  margin: 8px 0 0; padding: 26px; border-radius: 16px;
  background: linear-gradient(135deg, #eef3fb, #f6f9fc); border: 1px solid var(--border);
  display: grid; grid-template-columns: 1fr auto 1fr; gap: 18px; align-items: center;
}
.hw-merge-pane { position: relative; border-radius: 10px; overflow: hidden; box-shadow: var(--shadow-md); background: #fff; }
.hw-merge-pane img { display: block; width: 100%; height: auto; }
.hw-tag {
  position: absolute; left: 12px; top: 12px; font: 600 12px var(--mono); padding: 3px 10px; border-radius: 999px;
  background: var(--navy); color: #fff;
}
.hw-tag.ok { background: var(--ok); }
.hw-merge-op { display: flex; flex-direction: column; align-items: center; gap: 4px; color: var(--purple); font-weight: 700; font-size: 14px; }
.hw-merge figcaption { grid-column: 1 / -1; text-align: center; font-size: 14.5px; color: var(--slate); }
.hw-merge figcaption a { font-weight: 600; }

/* tool explorer */
.hw-tools, #check { padding: 72px 0 24px; border-top: 1px solid var(--border); margin-top: 56px; }
.hw-tools-head { max-width: 680px; margin-bottom: 30px; }
.hw-tools-head h2 { font-size: clamp(26px, 3.4vw, 34px); margin-bottom: 12px; }
.hw-tools-head p { font-size: 16px; }
.hw-explorer {
  border: 1px solid var(--border); border-radius: 16px; overflow: hidden; background: #fff; box-shadow: var(--shadow-md);
}
.hw-tabs { display: flex; flex-wrap: wrap; gap: 6px; padding: 14px; border-bottom: 1px solid var(--border); background: var(--bg-soft); }
.hw-tabs button {
  font: 600 14px var(--font); color: var(--slate); background: #fff; border: 1px solid var(--border);
  border-radius: 999px; padding: 7px 15px; cursor: pointer; transition: all 0.15s ease;
}
.hw-tabs button:hover { color: var(--purple); border-color: #b9cdf5; }
.hw-tabs button[aria-selected="true"] { background: var(--purple); border-color: var(--purple); color: #fff; box-shadow: 0 4px 12px rgba(37, 99, 235, 0.28); }
.hw-stage { background: #eef3f9; aspect-ratio: 1190 / 640; display: flex; align-items: center; justify-content: center; }
.hw-stage img { width: 100%; height: 100%; object-fit: contain; display: block; transition: opacity 0.16s ease; }
.hw-stage img.swap { opacity: 0; }
.hw-caption { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 16px 20px; border-top: 1px solid var(--border); }
.hw-caption p { font-size: 15.5px; color: var(--navy); margin: 0; }
.hw-caption a { white-space: nowrap; font-weight: 600; font-size: 14px; }
.hw-presets { display: grid; grid-template-columns: 150px repeat(4, 1fr); gap: 14px; align-items: center; margin-top: 22px; }
.hw-presets p { font-size: 14px; color: var(--muted); }
.hw-presets p b { display: block; color: var(--navy); font-size: 15px; }
.hw-presets figure { margin: 0; border-radius: 10px; overflow: hidden; border: 1px solid var(--border); background: #fff; }
.hw-presets img { display: block; width: 100%; height: auto; transition: transform 0.3s ease; }
.hw-presets figure:hover img { transform: scale(1.05); }
.hw-presets figcaption { font-size: 12.5px; font-weight: 600; color: var(--navy); padding: 6px 10px; }
.hw-more-tools { margin-top: 18px; font-size: 14.5px; color: var(--slate); }

/* print checks */
.hw-checks { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.hw-check {
  display: flex; flex-direction: column; color: inherit; background: #fff; border: 1px solid var(--border);
  border-radius: 14px; overflow: hidden; transition: transform 0.16s ease, box-shadow 0.16s ease;
}
.hw-check:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); color: inherit; }
.hw-check img { display: block; width: 100%; height: 170px; object-fit: cover; background: #eef3f9; }
.hw-check img.hw-fit { object-fit: contain; padding: 10px; }
.hw-check h3 { font-size: 17px; margin: 16px 18px 6px; }
.hw-check p { font-size: 14px; margin: 0 18px 18px; }

/* export */
.hw-checklist { list-style: none; counter-reset: ck; margin: 0 0 16px !important; }
.hw-checklist li { counter-increment: ck; position: relative; padding-left: 34px; margin-bottom: 10px; }
.hw-checklist li::before {
  content: counter(ck); position: absolute; left: 0; top: 1px; width: 22px; height: 22px; border-radius: 6px;
  background: var(--filament-soft); color: var(--filament-deep); font: 700 12px var(--mono);
  display: flex; align-items: center; justify-content: center;
}
.hw-slicers { display: flex; flex-wrap: wrap; gap: 6px; }
.hw-slicers span { font: 500 12px var(--mono); color: var(--navy); background: var(--bg-soft); border: 1px solid var(--border); border-radius: 6px; padding: 3px 9px; }

/* speed tips */
.hw-keys { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.hw-keys > div { background: #fff; border: 1px solid var(--border); border-radius: 12px; padding: 18px 20px; font-size: 14.5px; color: var(--slate); }
.hw-keys > div > span { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; margin-bottom: 8px; font-weight: 600; color: var(--navy); font-size: 13.5px; }
.hw-keys kbd {
  font: 600 12px var(--mono); color: var(--navy); background: #fff; border: 1px solid #cfd8e5;
  border-bottom-width: 3px; border-radius: 6px; padding: 2px 7px; min-width: 24px; text-align: center; display: inline-block;
}

/* tutorials */
.hw-tuts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.hw-tut {
  display: flex; flex-direction: column; color: inherit; background: #fff; border: 1px solid var(--border);
  border-radius: 14px; overflow: hidden; transition: transform 0.16s ease, box-shadow 0.16s ease;
}
.hw-tut:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); color: inherit; }
.hw-tut img { display: block; width: 100%; height: 150px; object-fit: cover; background: #eef3f9; }
.hw-tut b { color: var(--navy); font-size: 15.5px; margin: 14px 16px 4px; }
.hw-tut span { font-size: 13.5px; color: var(--slate); margin: 0 16px 16px; }
.hw-tut:hover b { color: var(--purple); }

@media (max-width: 1000px) {
  .hw-stats { grid-template-columns: repeat(3, 1fr); }
  .hw-checks, .hw-tuts { grid-template-columns: repeat(2, 1fr); }
  .hw-keys { grid-template-columns: repeat(2, 1fr); }
  .hw-presets { grid-template-columns: repeat(4, 1fr); }
  .hw-presets p { grid-column: 1 / -1; }
}
@media (max-width: 720px) {
  .hw-legend { grid-template-columns: 1fr 1fr; }
  .hw-merge { grid-template-columns: 1fr; padding: 16px; }
  .hw-merge-op { flex-direction: row; }
  .hw-merge-op svg { transform: rotate(90deg); }
  .hw-caption { flex-direction: column; align-items: flex-start; }
  .hw-presets { grid-template-columns: repeat(2, 1fr); }
  .hw-keys { grid-template-columns: 1fr; }
  .hw-layer .hw-float { right: 8px; bottom: -14px; width: 40%; }
}
@media (max-width: 520px) {
  .hw-stats { grid-template-columns: repeat(2, 1fr); }
  .hw-legend { grid-template-columns: 1fr; }
  .hw-checks, .hw-tuts { grid-template-columns: 1fr; }
  .hw-tabs { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
  .hw-tabs button { flex: none; }
}
