@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&family=Inter:wght@400;500;600;700&display=swap');

:root {
  --accent: #c6ff33;
  --accent-dark: #6f8a00;
  --accent-light: #ddff70;
  --accent-soft: #f3ffdd;
  --accent-rgb: 198,255,51;
  --navy: #0a0a0d;
  --bg: #f6f7fb;
  --card: #ffffff;
  --text: #12141c;
  --muted: #5b6270;
  --muted-soft: #9298a8;
  --border: #e8eaf1;
  --success: #15803d;
  --success-soft: #ecfdf3;
  --error: #c0362c;
  --error-soft: #fdecec;
  --radius-lg: 18px;
  --radius-md: 13px;
  --radius-sm: 10px;
  --shadow-xs: 0 1px 2px rgba(17,20,33,0.04);
  --shadow-sm: 0 1px 2px rgba(17,20,33,0.05), 0 2px 6px rgba(17,20,33,0.05);
  --shadow-md: 0 6px 20px rgba(17,20,33,0.08);
  --shadow-lg: 0 20px 48px -12px rgba(17,20,33,0.20);
  --shadow-accent: 0 10px 24px -8px rgba(var(--accent-rgb), 0.45);
  --ease: cubic-bezier(.22,1,.36,1);
  --ease-out: cubic-bezier(.16,1,.3,1);
  --ease-spring: cubic-bezier(.34,1.56,.64,1);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Plus Jakarta Sans', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background:
    radial-gradient(1200px 480px at 50% -180px, rgba(var(--accent-rgb),0.06), transparent 60%),
    var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  letter-spacing: -0.005em;
}
a { color: inherit; }
svg { display: block; }
h1, h2, h3 { font-family: 'Plus Jakarta Sans', 'Inter', sans-serif; }

/* ---------- Scrollbar ---------- */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #d7dae5; border-radius: 20px; border: 2px solid var(--bg); }
::-webkit-scrollbar-thumb:hover { background: #b9bdcc; }

/* ---------- Selection ---------- */
::selection { background: rgba(var(--accent-rgb), 0.18); color: var(--text); }

/* ---------- Focus ---------- */
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* ---------- Header ---------- */
.site-header {
  background: linear-gradient(180deg, #131316 0%, #0a0a0d 100%);
  color: #fff;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  padding: 15px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 40;
  box-shadow: 0 1px 0 rgba(255,255,255,0.06), 0 8px 24px -12px rgba(0,0,0,0.5);
}
.site-header::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, transparent, var(--accent) 25%, var(--accent-light) 50%, var(--accent) 75%, transparent);
}
.logo {
  font-size: 20px;
  font-weight: 800;
  text-decoration: none;
  color: #fff;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  letter-spacing: -0.02em;
  transition: transform .25s var(--ease-spring);
}
.logo:hover { transform: translateY(-1px); }
.logo span { color: var(--accent-light); }
.tagline { font-size: 12px; color: #8a92a8; margin-top: 3px; font-weight: 500; }

/* ---------- Layout ---------- */
main { max-width: 720px; margin: 0 auto; padding: 24px 16px 64px; }
.page-layout { display: flex; justify-content: center; gap: 16px; max-width: 1100px; margin: 0 auto; }
@media (min-width: 1440px) {
  main { max-width: 820px; }
  .page-layout { max-width: 1240px; }
  body { font-size: 16.5px; }
  .hero h1 { font-size: 34px; }
}
.ad-rail { width: 160px; flex-shrink: 0; position: sticky; top: 76px; align-self: flex-start; height: 600px; }
.ad-rail .ad-slot { height: 100%; margin: 0; display: flex; align-items: center; justify-content: center; }
.page-layout > main { flex: 1; min-width: 0; max-width: 720px; }
@media (max-width: 980px) { .ad-rail { display: none; } }

.ad-slot {
  position: relative;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  text-align: center;
  padding: 16px;
  color: var(--muted-soft);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  margin: 16px 0;
  overflow: hidden;
}
.ad-slot::before {
  content: "Advertisement";
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.ad-slot::after {
  content: "";
  position: absolute; inset: 0;
  background: repeating-linear-gradient(135deg, transparent, transparent 11px, rgba(17,20,33,0.025) 11px, rgba(17,20,33,0.025) 12px);
  pointer-events: none;
}

/* ---------- Hero ---------- */
.hero { text-align: center; padding: 14px 0 8px; animation: fadeUp .6s var(--ease-out) both; }
.hero h1 { font-size: 30px; margin: 0 0 9px; letter-spacing: -.03em; font-weight: 800; }
.hero p { color: var(--muted); margin: 0; font-size: 15.5px; line-height: 1.5; }

/* ---------- Search bar (homepage) ---------- */
.search-wrap { position: relative; max-width: 480px; margin: 22px auto 0; animation: fadeUp .6s var(--ease-out) .06s both; }
.search-wrap svg { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); color: var(--muted-soft); width: 18px; height: 18px; transition: color .2s var(--ease); pointer-events: none; }
.search-wrap input[type="text"] {
  width: 100%; padding: 14px 44px 14px 46px; border-radius: 999px; border: 1px solid var(--border);
  background: var(--card); font-size: 14.5px; font-family: inherit; box-shadow: var(--shadow-sm);
  transition: box-shadow .25s var(--ease), border-color .25s var(--ease);
}
.search-wrap input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.search-wrap:focus-within svg { color: var(--accent); }
.search-wrap .clear-search {
  position: absolute; right: 8px; top: 50%; transform: translateY(-50%);
  width: 28px; height: 28px; border-radius: 50%; border: none; background: transparent;
  color: var(--muted-soft); cursor: pointer; display: none; align-items: center; justify-content: center;
  transition: background .2s var(--ease), color .2s var(--ease); margin: 0; padding: 0;
}
.search-wrap .clear-search svg { position: static; width: 14px; height: 14px; }
.search-wrap .clear-search:hover { background: var(--accent-soft); color: var(--accent-dark); }
.search-wrap.has-value .clear-search { display: flex; }

/* ---------- Tool grid ---------- */
.tool-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 14px;
  margin-top: 22px;
}
.tool-grid .tool-card {
  animation: cardIn .5s var(--ease-out) both;
}
.tool-grid .tool-card:nth-child(1) { animation-delay: .02s; }
.tool-grid .tool-card:nth-child(2) { animation-delay: .05s; }
.tool-grid .tool-card:nth-child(3) { animation-delay: .08s; }
.tool-grid .tool-card:nth-child(4) { animation-delay: .11s; }
.tool-grid .tool-card:nth-child(5) { animation-delay: .14s; }
.tool-grid .tool-card:nth-child(6) { animation-delay: .17s; }
.tool-grid .tool-card:nth-child(n+7) { animation-delay: .19s; }

.tool-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px 14px;
  text-align: center;
  text-decoration: none;
  color: var(--text);
  transition: transform .32s var(--ease-spring), box-shadow .3s var(--ease), border-color .3s var(--ease);
  position: relative;
  overflow: hidden;
  will-change: transform;
}
.tool-card::after {
  content: ""; position: absolute; inset: 0; opacity: 0; background: radial-gradient(120px 90px at 50% -10%, var(--accent-soft), transparent);
  transition: opacity .3s var(--ease);
}
.tool-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: rgba(var(--accent-rgb), 0.28); }
.tool-card:hover::after { opacity: 1; }
.tool-card:active { transform: translateY(-2px) scale(.99); transition-duration: .1s; }
.tool-card .icon {
  width: 44px; height: 44px; margin: 0 auto 11px; display: flex; align-items: center; justify-content: center;
  color: var(--accent-dark); background: var(--accent-soft); border-radius: 12px; position: relative; z-index: 1;
  transition: transform .3s var(--ease-spring), background .3s var(--ease);
}
.tool-card .icon svg { width: 23px; height: 23px; }
.tool-card:hover .icon { transform: scale(1.08) rotate(-4deg); background: var(--accent-soft); }
.tool-card .name { font-weight: 700; font-size: 14px; position: relative; z-index: 1; letter-spacing: -.01em; }
.tool-card .desc { color: var(--muted); font-size: 12px; margin-top: 4px; position: relative; z-index: 1; line-height: 1.4; }
.tool-card.hidden { display: none; }
.no-results { grid-column: 1/-1; text-align: center; color: var(--muted); font-size: 13px; padding: 34px 0; display: none; animation: fadeUp .3s var(--ease) both; }

.badge {
  display: inline-block; background: #fff4ee; color: #c2540f; font-size: 10px; font-weight: 800;
  padding: 3px 9px; border-radius: 20px; margin-top: 7px; position: relative; z-index: 1; letter-spacing: .02em;
}

/* ---------- Tool pages ---------- */
.tool-page { animation: fadeUp .5s var(--ease-out) both; }
.tool-page h1 { font-size: 25px; letter-spacing: -.02em; margin-bottom: 6px; font-weight: 800; }
.tool-page > p { color: var(--muted); margin-top: 0; font-size: 14.5px; line-height: 1.55; }
.tool-page .card {
  background: var(--card);
  border-radius: var(--radius-lg);
  padding: 22px 20px;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border);
  margin-top: 14px;
  transition: box-shadow .3s var(--ease);
}
.back-link {
  font-size: 13px; color: var(--muted); text-decoration: none; display: inline-flex; align-items: center; gap: 6px;
  margin-bottom: 14px; transition: color .2s var(--ease), transform .2s var(--ease); font-weight: 600;
}
.back-link svg { width: 14px; height: 14px; transition: transform .25s var(--ease-spring); }
.back-link:hover { color: var(--accent-dark); }
.back-link:hover svg { transform: translateX(-4px); }

/* ---------- Dropzone ---------- */
.dropzone {
  border: 2px dashed #d7dae5; border-radius: var(--radius-md); padding: 38px 16px; text-align: center; cursor: pointer;
  transition: border-color .25s var(--ease), background .25s var(--ease), transform .18s var(--ease);
  position: relative;
}
.dropzone:hover { border-color: var(--accent); background: var(--accent-soft); }
.dropzone:hover .icon { transform: translateY(-3px) scale(1.05); }
.dropzone:active { transform: scale(.995); }
.dropzone.dragover { border-color: var(--accent); background: var(--accent-soft); animation: pulse 1.1s var(--ease) infinite; }
.dropzone p { margin: 11px 0 0; color: var(--muted); font-size: 14px; line-height: 1.5; }
.dropzone .icon { width: 46px; height: 46px; margin: 0 auto; color: var(--accent); transition: transform .3s var(--ease-spring); }
.dropzone .icon svg { width: 100%; height: 100%; }
input[type=file] { display: none; }

/* ---------- Form controls ---------- */
select, input[type=text], input[type=number], input[type=url], textarea {
  width: 100%; border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 12px 13px;
  font-size: 15px; font-family: inherit; resize: vertical; transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
  background: #fff; color: var(--text);
}
select:focus, input:focus, textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
select:hover, input:hover, textarea:hover { border-color: #cfd3e0; }
input[type="color"] { cursor: pointer; }
label { font-weight: 600; }

/* ---------- Buttons ---------- */
button, .btn {
  width: 100%; padding: 13px; border-radius: var(--radius-sm); border: none; font-size: 15px; font-weight: 700;
  margin-top: 14px; background: linear-gradient(180deg, var(--accent-light), var(--accent)); color: #0a0a0d; cursor: pointer;
  text-align: center; display: block; text-decoration: none; letter-spacing: -.01em;
  transition: transform .18s var(--ease-spring), box-shadow .2s var(--ease), filter .2s var(--ease), opacity .15s var(--ease);
  box-shadow: var(--shadow-accent);
}
button:hover, .btn:hover { filter: brightness(1.06); box-shadow: 0 14px 30px -10px rgba(var(--accent-rgb), 0.5); transform: translateY(-1.5px); }
button:active, .btn:active { transform: translateY(0) scale(.985); box-shadow: 0 4px 12px -4px rgba(var(--accent-rgb), 0.4); }
button:disabled { opacity: 0.45; cursor: not-allowed; transform: none; box-shadow: none; filter: none; }

/* secondary / outline buttons — used where a page needs a non-primary action */
button.secondary, .btn.secondary {
  background: #fff; color: var(--text); border: 1px solid var(--border); box-shadow: var(--shadow-xs);
}
button.secondary:hover, .btn.secondary:hover { border-color: #cfd3e0; box-shadow: var(--shadow-sm); filter: none; }

/* ---------- Status / feedback ---------- */
.status {
  margin-top: 14px; font-size: 13.5px; color: var(--muted); text-align: center; min-height: 18px;
  transition: color .2s var(--ease), opacity .2s var(--ease); line-height: 1.5;
}
.status:not(:empty) { animation: fadeUp .25s var(--ease-out) both; }
.error { color: var(--error); font-weight: 600; }
img.preview { max-width: 100%; border-radius: var(--radius-md); margin-top: 14px; border: 1px solid var(--border); animation: fadeUp .4s var(--ease-out) both; }

.stats-row { display: flex; gap: 10px; margin-top: 14px; flex-wrap: wrap; }
.stat-box { flex: 1; min-width: 90px; background: #f3f4f8; border-radius: var(--radius-sm); padding: 13px 10px; text-align: center; transition: transform .25s var(--ease-spring), background .2s var(--ease); }
.stat-box:hover { transform: translateY(-2px); background: #eef0f7; }
.stat-box .num { font-size: 20px; font-weight: 800; color: var(--accent-dark); letter-spacing: -.02em; }
.stat-box .label { font-size: 11px; color: var(--muted); font-weight: 600; }

.site-footer { text-align: center; padding: 30px 16px; color: var(--muted-soft); font-size: 12px; }
.coming-soon { text-align: center; padding: 40px 20px; color: var(--muted); }

/* ---------- Spinner (for in-progress states) ---------- */
.spinner {
  display: inline-block; width: 16px; height: 16px; border-radius: 50%;
  border: 2px solid rgba(var(--accent-rgb),0.25); border-top-color: var(--accent);
  animation: spin .7s linear infinite; vertical-align: -3px; margin-right: 7px;
}

/* ---------- Animations ---------- */
@keyframes fadeUp { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
@keyframes cardIn { from { opacity: 0; transform: translateY(14px) scale(.97); } to { opacity: 1; transform: translateY(0) scale(1); } }
@keyframes pulse { 0%,100% { box-shadow: 0 0 0 0 rgba(var(--accent-rgb),0.22); } 50% { box-shadow: 0 0 0 10px rgba(var(--accent-rgb),0); } }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
}

/* ---------- Shared layer-editor (apparel/social/etsy resizers) ---------- */
.layer-stage {
  position: relative; width: 100%; max-width: 520px; margin: 14px auto 0;
  border-radius: var(--radius-md); overflow: hidden; touch-action: none;
  background-image: linear-gradient(45deg, #ddd 25%, transparent 25%), linear-gradient(-45deg, #ddd 25%, transparent 25%), linear-gradient(45deg, transparent 75%, #ddd 75%), linear-gradient(-45deg, transparent 75%, #ddd 75%);
  background-size: 20px 20px; background-position: 0 0, 0 10px, 10px -10px, -10px 0px; background-color: #f3f3f3;
  border: 1px solid var(--border);
}
.layer { position: absolute; cursor: move; touch-action: none; }
.layer.selected { box-shadow: 0 0 0 2px var(--accent); }
.resize-handle {
  display: none; position: absolute; right: -10px; bottom: -10px; width: 18px; height: 18px;
  background: var(--accent); border: 2px solid #fff; border-radius: 50%; cursor: nwse-resize;
  box-shadow: 0 1px 3px rgba(0,0,0,0.4); touch-action: none; transition: transform .15s var(--ease-spring);
}
.resize-handle:hover { transform: scale(1.15); }
.layer.selected .resize-handle { display: block; }
.preset-row { display: flex; gap: 10px; margin-top: 12px; }
.preset-row select { flex: 1; }
.caveat-note {
  background: #fffaf0; border: 1px solid #f2e0ad; color: #8a6d1c; border-radius: var(--radius-sm);
  padding: 11px 13px; font-size: 12.5px; margin-top: 12px; line-height: 1.5;
}
.char-counter { display: flex; justify-content: space-between; align-items: center; margin-top: 6px; font-size: 12px; color: var(--muted); font-weight: 600; }
.char-counter.over { color: var(--error); font-weight: 700; }
.char-bar { height: 6px; background: #eceef3; border-radius: 3px; margin-top: 4px; overflow: hidden; }
.char-bar-fill { height: 100%; background: var(--accent); transition: width .25s var(--ease), background .25s var(--ease); }
.char-bar-fill.over { background: var(--error); }
.result-box { background: #f6f7fb; border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 13px; margin-top: 12px; font-size: 14px; white-space: pre-wrap; word-break: break-word; line-height: 1.5; }
.copy-mini { font-size: 11px; font-weight: 700; color: var(--accent-dark); cursor: pointer; background: none; border: none; padding: 0; width: auto; margin: 0; box-shadow: none; transition: opacity .15s var(--ease); }
.copy-mini:hover { background: none; box-shadow: none; transform: none; text-decoration: underline; opacity: .8; }

/* ---------- Pin badges (Popular / New / Editor's Pick) ---------- */
.pin-badge {
  position: absolute; top: 10px; right: 10px; z-index: 2;
  font-size: 9px; font-weight: 800; letter-spacing: .03em; text-transform: uppercase;
  padding: 3.5px 8px; border-radius: 20px; display: flex; align-items: center; gap: 3px;
  box-shadow: 0 1px 2px rgba(17,20,33,0.06);
}
.pin-badge.popular { background: #dcfce7; color: #15803d; }
.pin-badge.new { background: #eceef3; color: #12141c; }
.pin-badge.editors-pick { background: #fef3c7; color: #92400e; }
.pin-badge.soon { background: #eceef3; color: #5b6270; }
.pin-badge svg { width: 10px; height: 10px; }

/* ---------- Most Popular section ---------- */
.popular-section {
  margin-top: 26px; padding: 22px 20px; border-radius: var(--radius-lg);
  background: linear-gradient(135deg, #fff8f3 0%, #f3ffdd 100%);
  border: 1px solid #ffe3cf;
  box-shadow: var(--shadow-xs);
}
.popular-section .category-heading { margin-top: 0 !important; display: flex; align-items: center; gap: 8px; }
.popular-section .tool-grid { margin-top: 16px; }
.popular-section .tool-card { background: #fff; }

/* ---------- Related Tools ---------- */
.related-tools { margin-top: 34px; }
.related-tools h3 { font-size: 15px; font-weight: 800; margin-bottom: 12px; letter-spacing: -.01em; }
.related-tools .tool-grid { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; margin-top: 0; }
.related-tools .tool-card { padding: 14px 10px; }
.related-tools .tool-card .icon { width: 36px; height: 36px; margin-bottom: 6px; }
.related-tools .tool-card .icon svg { width: 20px; height: 20px; }
.related-tools .tool-card .name { font-size: 12.5px; }

/* ---------- Header: logo mark + Recently Added ---------- */
.site-header { flex-wrap: wrap; gap: 10px 16px; }
.header-left { display: flex; flex-direction: column; gap: 3px; }
.logo { display: inline-flex; align-items: center; gap: 9px; }
.logo-mark { width: 34px; height: 34px; border-radius: 9px; box-shadow: 0 4px 12px -4px rgba(0,0,0,0.45); transition: transform .3s var(--ease-spring); }
.logo:hover .logo-mark { transform: rotate(-6deg) scale(1.05); }
.logo-text { font-size: 20px; font-weight: 800; letter-spacing: -.02em; }

.recent-wrap { position: relative; }
.recent-btn {
  display: inline-flex; align-items: center; gap: 7px;
  background: linear-gradient(135deg, var(--accent-light), var(--accent));
  color: #0a0a0d; border: none; border-radius: 999px; padding: 8px 15px 8px 12px;
  font-size: 12.5px; font-weight: 800; cursor: pointer; font-family: inherit;
  box-shadow: 0 4px 16px -6px rgba(var(--accent-rgb),0.55);
  transition: transform .2s var(--ease-spring), box-shadow .2s var(--ease), filter .2s var(--ease);
}
.recent-btn:hover { transform: translateY(-1.5px); box-shadow: 0 8px 22px -6px rgba(var(--accent-rgb),0.7); filter: brightness(1.04); }
.recent-btn .bolt { width: 13px; height: 13px; display: flex; animation: boltPulse 1.8s ease-in-out infinite; }
.recent-btn .bolt svg { width: 100%; height: 100%; }
.recent-btn svg.chev { width: 12px; height: 12px; transition: transform .25s var(--ease); }
.recent-btn.open svg.chev { transform: rotate(180deg); }
@keyframes boltPulse { 0%,100% { transform: scale(1); opacity: 1; } 50% { transform: scale(1.18); opacity: .7; } }

.recent-panel {
  position: absolute; top: calc(100% + 10px); right: 0; width: 250px; background: #fff; color: var(--text);
  border-radius: var(--radius-md); box-shadow: var(--shadow-lg); border: 1px solid var(--border);
  padding: 8px; opacity: 0; visibility: hidden; transform: translateY(-6px) scale(.98);
  transition: opacity .2s var(--ease), transform .2s var(--ease), visibility .2s;
  z-index: 50;
}
.recent-panel.open { opacity: 1; visibility: visible; transform: translateY(0) scale(1); }
.recent-panel-title { font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; color: var(--muted-soft); padding: 8px 10px 6px; }
.recent-panel a {
  display: flex; align-items: center; gap: 9px; padding: 9px 10px; border-radius: 9px; text-decoration: none;
  color: var(--text); font-size: 13.5px; font-weight: 600; transition: background .15s var(--ease);
}
.recent-panel a:hover { background: var(--accent-soft); }
.recent-panel a .emoji { font-size: 14px; }
.recent-panel .see-all { margin-top: 4px; border-top: 1px solid var(--border); padding-top: 10px; color: var(--accent-dark); font-size: 12.5px; font-weight: 700; justify-content: center; }

/* ---------- Category / nav strip ---------- */
.category-nav { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 18px; animation: fadeUp .6s var(--ease-out) .08s both; }
.category-nav a {
  font-size: 12.5px; font-weight: 700; padding: 7px 14px; border-radius: 999px; background: var(--card);
  border: 1px solid var(--border); color: var(--muted); text-decoration: none;
  transition: all .2s var(--ease);
}
.category-nav a:hover { color: var(--accent-dark); border-color: rgba(var(--accent-rgb),0.35); background: var(--accent-soft); transform: translateY(-1px); }

/* ---------- Category landing pages ---------- */
.category-hero { text-align: center; padding: 8px 0 4px; animation: fadeUp .6s var(--ease-out) both; }
.category-hero .kicker { font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; color: var(--accent-dark); }
.category-hero h1 { font-size: 27px; margin: 6px 0 8px; letter-spacing: -.02em; font-weight: 800; }
.category-hero p { color: var(--muted); font-size: 15px; max-width: 560px; margin: 0 auto; line-height: 1.6; }

/* ---------- Resource / guide pages ---------- */
.guide-page table { width: 100%; border-collapse: collapse; margin-top: 12px; font-size: 13.5px; }
.guide-page th, .guide-page td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--border); }
.guide-page th { font-size: 11px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted-soft); font-weight: 800; }
.guide-page td { color: var(--text); }
.guide-page tr:hover td { background: #f9fafc; }
.guide-page h2 { font-size: 17px; margin: 26px 0 6px; letter-spacing: -.01em; }
.guide-page h2:first-of-type { margin-top: 4px; }
.guide-page p { color: var(--muted); line-height: 1.65; font-size: 14.5px; }
.guide-page .toc { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 4px; }
.guide-page .toc a { font-size: 12.5px; font-weight: 700; padding: 6px 12px; border-radius: 999px; background: var(--accent-soft); color: var(--accent-dark); text-decoration: none; transition: background .2s var(--ease); }
.guide-page .toc a:hover { background: var(--accent-soft); }
.resource-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 14px; margin-top: 18px; }
.resource-card {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 18px 16px;
  text-decoration: none; color: var(--text); transition: transform .3s var(--ease-spring), box-shadow .3s var(--ease), border-color .3s var(--ease);
}
.resource-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); border-color: rgba(var(--accent-rgb),0.28); }
.resource-card .icon { width: 40px; height: 40px; border-radius: 11px; background: var(--accent-soft); color: var(--accent-dark); display: flex; align-items: center; justify-content: center; margin-bottom: 10px; }
.resource-card .icon svg { width: 22px; height: 22px; }
.resource-card .name { font-weight: 700; font-size: 14.5px; }
.resource-card .desc { color: var(--muted); font-size: 12.5px; margin-top: 4px; line-height: 1.4; }

/* ---------- Referral card (Stitch To Art) ---------- */
.referral-card {
  margin-top: 18px; padding: 16px 17px; border-radius: var(--radius-md);
  background: linear-gradient(160deg, #fbfbff 0%, #f3ffdd 100%);
  border: 1px solid #e4f5c2;
  display: none;
  animation: fadeUp .35s var(--ease-out) both;
}
.referral-card.show { display: block; }
.referral-card .rc-head { display: flex; align-items: center; gap: 8px; font-weight: 800; font-size: 13.5px; color: var(--text); }
.referral-card .rc-head svg { width: 16px; height: 16px; color: var(--accent-dark); flex-shrink: 0; }
.referral-card p { margin: 8px 0 0; font-size: 12.5px; color: var(--muted); line-height: 1.55; }
.referral-card .rc-btn {
  display: inline-flex; align-items: center; gap: 6px; margin-top: 12px; font-size: 12.5px; font-weight: 700;
  color: var(--accent-dark); text-decoration: none; padding: 8px 14px; border-radius: 999px;
  background: #fff; border: 1px solid #e4f5c2; transition: all .2s var(--ease); width: auto;
}
.referral-card .rc-btn:hover { background: var(--accent-soft); border-color: rgba(var(--accent-rgb),0.3); transform: translateX(2px); }
.referral-card .rc-btn svg { width: 13px; height: 13px; }
.referral-card.warning { background: linear-gradient(160deg, #fffaf0 0%, #fff5e0 100%); border-color: #f2ddac; }
.referral-card.warning .rc-head svg { color: #b5860f; }
.referral-card.warning .rc-head { color: #7a5c12; }

.referral-tip {
  margin-top: 22px; padding: 15px 16px; border-radius: var(--radius-md); background: #f6f7fb;
  border: 1px solid var(--border); display: flex; gap: 11px; align-items: flex-start;
}
.referral-tip .rt-icon { width: 30px; height: 30px; border-radius: 9px; background: var(--accent-soft); color: var(--accent-dark); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.referral-tip .rt-icon svg { width: 16px; height: 16px; }
.referral-tip .rt-body { font-size: 12.5px; color: var(--muted); line-height: 1.55; }
.referral-tip .rt-body strong { color: var(--text); display: block; font-size: 13.5px; margin-bottom: 2px; }
.referral-tip .rt-body a { color: var(--accent-dark); font-weight: 700; text-decoration: none; }
.referral-tip .rt-body a:hover { text-decoration: underline; }

/* ---------- Site nav bar (below header) ---------- */
.site-nav {
  background: #0a0a0d; border-bottom: 1px solid rgba(255,255,255,0.08);
  box-shadow: 0 10px 24px -18px rgba(0,0,0,0.6);
  position: sticky; top: 65px; z-index: 39;
  overflow-x: auto; white-space: nowrap; scrollbar-width: none;
}
.site-nav::-webkit-scrollbar { display: none; }
.site-nav-inner { display: flex; align-items: center; gap: 2px; padding: 0 16px; max-width: 1100px; margin: 0 auto; }
.site-nav a {
  display: inline-flex; align-items: center; gap: 6px; padding: 11px 12px; border-radius: 8px;
  font-size: 12.5px; font-weight: 700; color: #9199ad;
  text-decoration: none; transition: color .2s var(--ease), background .2s var(--ease), transform .15s var(--ease); flex-shrink: 0;
}
.site-nav a .nav-icon { display: flex; width: 14px; height: 14px; flex-shrink: 0; opacity: .7; transition: opacity .2s var(--ease), color .2s var(--ease); }
.site-nav a .nav-icon svg { width: 100%; height: 100%; }
.site-nav a:hover { color: #fff; background: rgba(255,255,255,0.05); transform: translateY(-1px); }
.site-nav a:hover .nav-icon { opacity: 1; color: var(--accent); }
.site-nav .nav-spacer { flex: 1; min-width: 8px; }
.site-nav .request-tool-btn {
  display: inline-flex; align-items: center; gap: 6px; margin: 8px 0; padding: 7px 14px;
  background: var(--accent); color: #0a0a0d !important; border-radius: 999px; font-weight: 800;
  transition: transform .2s var(--ease-spring), background .2s var(--ease);
}
.site-nav .request-tool-btn:hover { background: var(--accent-light); transform: translateY(-1px); color: #0a0a0d !important; }
.site-nav .request-tool-btn svg { width: 13px; height: 13px; }
.site-nav .gs-nav-btn {
  display: inline-flex; align-items: center; gap: 6px; margin: 8px 0; padding: 7px 14px;
  background: transparent; color: var(--accent) !important; border: 1.5px solid var(--accent); border-radius: 999px; font-weight: 800;
  transition: transform .2s var(--ease-spring), background .2s var(--ease), color .2s var(--ease);
}
.site-nav .gs-nav-btn:hover { background: var(--accent); color: #0a0a0d !important; transform: translateY(-1px); }
.site-nav .gs-nav-btn svg { width: 13px; height: 13px; }

/* ---------- Full footer ---------- */
.site-footer-full {
  background: #0a0a0d; color: #b7bdcc; margin-top: 48px; padding: 44px 20px 0;
}
.footer-inner { max-width: 1100px; margin: 0 auto; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; padding-bottom: 32px; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
.footer-col h4 { font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: #6b7690; margin: 0 0 14px; font-weight: 800; }
.footer-col a { display: flex; align-items: center; color: #cdd2e0; text-decoration: none; font-size: 13.5px; margin-bottom: 10px; transition: color .2s var(--ease), transform .2s var(--ease); }
.footer-col a:hover { color: var(--accent); transform: translateX(3px); }
.footer-col { position: relative; }
.footer-col + .footer-col::before { content: ""; position: absolute; left: -16px; top: 2px; bottom: 8px; width: 1px; background: rgba(255,255,255,0.08); }
@media (max-width: 760px) { .footer-col + .footer-col::before { display: none; } }
.footer-brand .logo-mark { width: 32px; height: 32px; border-radius: 8px; }
.footer-brand-row { display: flex; align-items: center; gap: 9px; margin-bottom: 12px; }
.footer-brand-row .logo-text { font-size: 18px; font-weight: 800; color: #fff; }
.footer-tagline { font-size: 13px; color: #8a92a8; line-height: 1.6; max-width: 280px; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08); padding: 20px 0; margin-top: 8px;
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px;
  font-size: 12px; color: #6b7690;
}
.footer-bottom a { color: #6b7690; text-decoration: none; }
.footer-bottom a:hover { color: #cdd2e0; }
.footer-privacy-note { display: flex; align-items: center; gap: 6px; }
.footer-privacy-note svg { width: 13px; height: 13px; color: #4ade80; }

/* ---------- Breadcrumbs ---------- */
.breadcrumb-nav { font-size: 12.5px; color: var(--muted-soft); margin-bottom: 10px; }
.breadcrumb-nav a { color: var(--muted-soft); text-decoration: none; transition: color .2s var(--ease); }
.breadcrumb-nav a:hover { color: var(--accent-dark); }
.breadcrumb-nav .sep { margin: 0 6px; color: var(--border); }
.breadcrumb-nav .current { color: var(--muted); font-weight: 600; }

/* ---------- Dynamic nav: active state + hover underline ---------- */
.site-nav a { position: relative; }
.site-nav a::after {
  content: ""; position: absolute; left: 12px; right: 12px; bottom: 4px; height: 2px;
  background: var(--accent-light); border-radius: 2px;
  transform: scaleX(0); transform-origin: left; transition: transform .28s var(--ease-spring);
}
.site-nav a:hover::after, .site-nav a.active::after { transform: scaleX(1); }
.site-nav a.active { color: #fff; background: rgba(198,255,51,0.08); }
.site-nav a.active::after { background: var(--accent); }
.site-nav a.active .nav-icon { opacity: 1; color: var(--accent); }

/* ---------- Footer wordmark banner ---------- */
.footer-wordmark {
  background: linear-gradient(120deg, var(--accent-light) 0%, var(--accent) 55%, var(--accent-dark) 100%);
  overflow: hidden;
  padding: 26px 0 14px;
  position: relative;
}
.footer-wordmark::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: radial-gradient(rgba(11,18,32,0.14) 1.5px, transparent 1.5px);
  background-size: 16px 16px;
  mask-image: linear-gradient(180deg, transparent, rgba(0,0,0,0.7));
}
.footer-wordmark-inner {
  display: flex; align-items: center; gap: clamp(10px, 2vw, 26px);
  max-width: 1300px; margin: 0 auto; padding: 0 20px;
  white-space: nowrap;
}
.footer-wordmark-mark {
  width: clamp(46px, 7vw, 92px); height: clamp(46px, 7vw, 92px); flex-shrink: 0;
  border-radius: 20%;
  background: #0a0a0d;
  display: flex; align-items: center; justify-content: center;
}
.footer-wordmark-mark svg { width: 55%; height: 55%; }
.footer-wordmark-text {
  font-size: clamp(52px, 11vw, 168px); font-weight: 900; letter-spacing: -0.04em;
  color: #0a0a0d; line-height: 1; user-select: none;
}
.footer-wordmark-text span { color: rgba(11,18,32,0.35); }
@media (max-width: 640px) { .footer-wordmark { padding: 18px 0 10px; } }


/* ---------- Stats strip (homepage) ---------- */
.stats-strip {
  display: flex; justify-content: center; flex-wrap: wrap; gap: 0;
  margin: 20px auto 0; max-width: 620px; animation: fadeUp .6s var(--ease-out) .1s both;
}
.stats-strip .stat {
  flex: 1; min-width: 120px; text-align: center; padding: 4px 18px; position: relative;
}
.stats-strip .stat + .stat::before {
  content: ""; position: absolute; left: 0; top: 6px; bottom: 6px; width: 1px; background: var(--border);
}
.stats-strip .stat .num { font-size: 22px; font-weight: 800; color: var(--accent-dark); letter-spacing: -.02em; }
.stats-strip .stat .label { font-size: 11px; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: .04em; margin-top: 2px; }

/* ---------- Animated hero background blobs ---------- */
.hero-blobs { position: absolute; inset: 0; overflow: hidden; z-index: -1; pointer-events: none; }
.hero-blobs svg { position: absolute; }
.hero-blobs .b1 { top: -60px; left: -80px; width: 340px; height: 340px; animation: blobFloat1 14s ease-in-out infinite; }
.hero-blobs .b2 { top: -40px; right: -100px; width: 300px; height: 300px; animation: blobFloat2 17s ease-in-out infinite; }
@keyframes blobFloat1 { 0%,100% { transform: translate(0,0) rotate(0deg); } 50% { transform: translate(18px,22px) rotate(8deg); } }
@keyframes blobFloat2 { 0%,100% { transform: translate(0,0) rotate(0deg); } 50% { transform: translate(-22px,16px) rotate(-6deg); } }
.hero { position: relative; }

/* ---------- DTF Gang Sheet Builder ---------- */
.gs-wrap { animation: fadeUp .5s var(--ease-out) both; }
.gs-toolbar {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px;
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-md);
  padding: 10px 12px; margin-top: 14px; position: sticky; top: 132px; z-index: 20;
  box-shadow: var(--shadow-xs);
}
.gs-toolbar-group { display: flex; align-items: center; gap: 6px; padding-right: 10px; border-right: 1px solid var(--border); }
.gs-toolbar-group:last-child { border-right: none; padding-right: 0; }
.gs-btn {
  display: inline-flex; align-items: center; gap: 5px; padding: 7px 10px; border-radius: 8px;
  background: #f3f4f8; border: 1px solid transparent; color: var(--text); font-size: 12.5px; font-weight: 700;
  cursor: pointer; font-family: inherit; width: auto; margin: 0; box-shadow: none; transition: background .15s var(--ease), color .15s var(--ease);
}
.gs-btn:hover { background: var(--accent-soft); }
.gs-btn.active { background: var(--accent); color: #0a0a0d; }
.gs-btn:disabled { opacity: .4; cursor: not-allowed; }
.gs-btn svg { width: 14px; height: 14px; }
.gs-btn.primary { background: linear-gradient(180deg, var(--accent-light), var(--accent)); color: #0a0a0d; }
.gs-select, .gs-num {
  padding: 7px 9px; border-radius: 8px; border: 1px solid var(--border); font-size: 12.5px; font-family: inherit;
  background: #fff; color: var(--text); width: auto;
}
.gs-num { width: 62px; }
.gs-label { font-size: 11px; color: var(--muted); font-weight: 700; text-transform: uppercase; letter-spacing: .03em; }

.gs-body { display: flex; gap: 14px; margin-top: 14px; align-items: flex-start; flex-wrap: wrap; }
.gs-canvas-col { flex: 1; min-width: 280px; }
.gs-stage-wrap {
  background: repeating-conic-gradient(#eef0f5 0% 25%, #fff 0% 50%) 0 0 / 20px 20px;
  border: 1px solid var(--border); border-radius: var(--radius-md); overflow: auto;
  max-height: 640px; padding: 24px; display: flex; justify-content: center;
}
.gs-stage {
  position: relative; background: #ffffff; box-shadow: 0 2px 20px rgba(17,20,33,0.12);
  flex-shrink: 0; touch-action: none;
}
.gs-safe-margin { position: absolute; pointer-events: none; box-shadow: 0 0 0 900px rgba(220,38,38,0.10); border: 1.5px dashed rgba(220,38,38,0.55); }
.gs-grid-on .gs-stage { background-image: linear-gradient(rgba(41,82,227,0.06) 1px, transparent 1px), linear-gradient(90deg, rgba(41,82,227,0.06) 1px, transparent 1px); }

.gs-layer { position: absolute; cursor: move; touch-action: none; }
.gs-layer img { width: 100%; height: 100%; display: block; pointer-events: none; user-select: none; }
.gs-layer.selected { outline: 2px solid var(--accent); outline-offset: 2px; z-index: 5; }
.gs-layer.locked { cursor: not-allowed; }
.gs-handle {
  display: none; position: absolute; width: 16px; height: 16px; background: var(--accent);
  border: 2px solid #fff; border-radius: 50%; box-shadow: 0 1px 3px rgba(0,0,0,.4); touch-action: none;
}
.gs-layer.selected .gs-handle { display: block; }
.gs-handle-resize { right: -8px; bottom: -8px; cursor: nwse-resize; }
.gs-handle-rotate { left: 50%; top: -28px; transform: translateX(-50%); cursor: grab; border-radius: 50%; }
.gs-handle-rotate::after { content: ""; position: absolute; left: 50%; top: 100%; width: 1px; height: 12px; background: var(--accent); transform: translateX(-50%); }

.gs-side { width: 250px; flex-shrink: 0; }
.gs-panel { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-md); padding: 14px; margin-bottom: 12px; }
.gs-panel h4 { font-size: 11px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted-soft); font-weight: 800; margin: 0 0 10px; }
.gs-panel-empty { font-size: 12.5px; color: var(--muted); text-align: center; padding: 8px 0; }
.gs-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 8px; }
.gs-row label { font-size: 12.5px; font-weight: 600; color: var(--text); }
.gs-row input[type=number] { width: 70px; padding: 7px 8px; font-size: 12.5px; }
.gs-check-row { display: flex; align-items: center; gap: 7px; font-size: 12.5px; font-weight: 600; margin-bottom: 8px; }
.gs-check-row input { width: auto; margin: 0; }
.gs-panel .gs-btn { width: 100%; justify-content: center; margin-bottom: 6px; }

.gs-info-bar {
  display: flex; flex-wrap: wrap; gap: 18px; margin-top: 14px; padding: 12px 16px;
  background: #0a0a0d; color: #fff; border-radius: var(--radius-md); font-size: 12.5px;
}
.gs-info-bar .gs-stat { display: flex; flex-direction: column; gap: 2px; }
.gs-info-bar .gs-stat .v { font-weight: 800; font-size: 15px; color: var(--accent); }
.gs-info-bar .gs-stat .k { color: #9199ad; font-size: 10.5px; text-transform: uppercase; letter-spacing: .04em; }
.gs-info-bar .gs-bar-wrap { flex: 1; min-width: 140px; display: flex; flex-direction: column; justify-content: center; gap: 4px; }
.gs-info-bar .gs-bar-track { height: 7px; background: rgba(255,255,255,0.12); border-radius: 4px; overflow: hidden; }
.gs-info-bar .gs-bar-fill { height: 100%; background: var(--accent); transition: width .3s var(--ease); }
.gs-info-bar .gs-bar-fill.good { background: #15803d; }
.gs-info-bar .gs-bar-fill.warn { background: #d99a1f; }
.gs-info-bar .gs-bar-fill.danger { background: var(--error); }
.gs-layer-warn { position: absolute; top: -7px; left: -7px; width: 18px; height: 18px; border-radius: 50%; background: var(--error); display: flex; align-items: center; justify-content: center; box-shadow: 0 0 0 2px #0a0a0d; z-index: 30; pointer-events: none; }

.gs-dropzone { padding: 22px 16px; margin-top: 14px; }
.gs-dropzone .icon { width: 34px; height: 34px; }
.gs-dropzone p { font-size: 13px; margin: 8px 0 0; }
.gs-warn { font-size: 12px; color: #8a6d1c; background: #fffaf0; border: 1px solid #f2e0ad; border-radius: var(--radius-sm); padding: 9px 11px; margin-top: 10px; line-height: 1.5; }

@media (max-width: 860px) {
  .gs-side { width: 100%; }
  .gs-toolbar { position: static; }
  .gs-stage-wrap { max-height: 460px; }
}

/* ---------- Gang Sheet Builder v2: live panel, quick actions, align, floating badge ---------- */
.gs-xy-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 8px; }
.gs-xy-field label { display: block; font-size: 10.5px; font-weight: 700; color: var(--muted-soft); text-transform: uppercase; letter-spacing: .03em; margin-bottom: 3px; }
.gs-xy-field input { width: 100%; padding: 7px 8px; font-size: 12.5px; }
.gs-dpi-hint { font-size: 11px; font-weight: 700; padding: 5px 8px; border-radius: 6px; margin-bottom: 8px; display: inline-block; }
.gs-dpi-hint.good { background: #dcfce7; color: #15803d; }
.gs-dpi-hint.ok { background: #fef3c7; color: #92400e; }
.gs-dpi-hint.bad { background: #fdecec; color: #c0362c; }
.gs-quick-actions { display: flex; gap: 5px; margin: 10px 0 4px; }
.gs-icon-btn {
  display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; flex-shrink: 0;
  border-radius: 8px; background: #f3f4f8; border: 1px solid transparent; color: var(--text); cursor: pointer;
  transition: background .15s var(--ease), color .15s var(--ease); padding: 0;
}
.gs-icon-btn svg { width: 15px; height: 15px; }
.gs-icon-btn:hover { background: var(--accent-soft); color: var(--accent-dark); }
.gs-icon-btn.active { background: var(--accent); color: #0a0a0d; }
.gs-icon-btn.danger:hover { background: #fdecec; color: var(--error); }
.gs-align-label { font-size: 10.5px; font-weight: 700; color: var(--muted-soft); text-transform: uppercase; letter-spacing: .03em; margin: 10px 0 6px; }
.gs-align-row { display: flex; gap: 5px; flex-wrap: wrap; }

.gs-dim-badge {
  position: absolute; background: var(--accent); color: #0a0a0d; font-size: 11px; font-weight: 800;
  padding: 3px 8px; border-radius: 6px; white-space: nowrap; pointer-events: none; z-index: 30;
  transform: translate(-50%, 0);
}

.gs-units-select { padding: 7px 9px; border-radius: 8px; border: 1px solid var(--border); font-size: 12.5px; font-family: inherit; background: #fff; }

/* ---------- Gang Sheet Builder: wide, app-like page layout ---------- */
.gs-page-layout { max-width: 1600px; }
.gs-tool-page { max-width: none !important; }
.gs-tool-page .gs-side { width: 280px; }
@media (max-width: 1500px) { .gs-page-layout { max-width: 96vw; } }

.gs-bg-swatch {
  width: 28px; height: 28px; border-radius: 7px; border: 2px solid var(--border); cursor: pointer; padding: 0;
  background-image: linear-gradient(45deg, #ccc 25%, transparent 25%), linear-gradient(-45deg, #ccc 25%, transparent 25%), linear-gradient(45deg, transparent 75%, #ccc 75%), linear-gradient(-45deg, transparent 75%, #ccc 75%);
  background-size: 8px 8px; background-position: 0 0, 0 4px, 4px -4px, -4px 0px;
}
.gs-bg-swatch.active { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent-soft); }
.gs-marquee { position: absolute; border: 1.5px dashed var(--accent); background: rgba(198,255,51,0.12); pointer-events: none; z-index: 25; }

/* ---------- Homepage flagship spotlight ---------- */
.flagship-spotlight {
  display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap;
  background: linear-gradient(120deg, #0a0a0d 0%, #131316 100%);
  border-radius: var(--radius-lg); padding: 26px 28px; margin-top: 24px;
  text-decoration: none; color: #fff; position: relative; overflow: hidden;
  animation: fadeUp .6s var(--ease-out) .12s both;
  transition: transform .3s var(--ease-spring), box-shadow .3s var(--ease);
  box-shadow: 0 10px 30px -14px rgba(0,0,0,0.5);
}
.flagship-spotlight::after {
  content: ""; position: absolute; top: -60%; right: -10%; width: 320px; height: 320px; border-radius: 50%;
  background: radial-gradient(circle, rgba(198,255,51,0.18), transparent 70%); pointer-events: none;
}
.flagship-spotlight:hover { transform: translateY(-3px); box-shadow: 0 16px 40px -14px rgba(0,0,0,0.6); }
.flagship-text { max-width: 560px; position: relative; z-index: 1; }
.flagship-kicker { display: inline-block; font-size: 11px; font-weight: 800; color: var(--accent); text-transform: uppercase; letter-spacing: .06em; margin-bottom: 8px; }
.flagship-text h2 { font-size: 22px; font-weight: 800; letter-spacing: -.02em; margin: 0 0 8px; color: #fff; }
.flagship-text p { font-size: 13.5px; color: #b7bdcc; line-height: 1.55; margin: 0 0 14px; }
.flagship-cta { display: inline-flex; align-items: center; gap: 6px; font-weight: 800; font-size: 13.5px; color: var(--accent); }
.flagship-cta svg { width: 15px; height: 15px; transition: transform .25s var(--ease-spring); }
.flagship-spotlight:hover .flagship-cta svg { transform: translateX(4px); }
.flagship-visual { display: flex; flex-direction: column; gap: 8px; position: relative; z-index: 1; flex-shrink: 0; }
.flagship-chip {
  background: rgba(198,255,51,0.1); border: 1px solid rgba(198,255,51,0.3); color: var(--accent);
  font-size: 11.5px; font-weight: 700; padding: 6px 12px; border-radius: 999px; text-align: center; white-space: nowrap;
}
@media (max-width: 640px) {
  .flagship-spotlight { padding: 18px; flex-direction: column; align-items: flex-start; }
  .flagship-text { max-width: 100%; }
  .flagship-visual { flex-direction: row; flex-wrap: wrap; width: 100%; flex-shrink: 1; gap: 6px; }
  .flagship-chip { font-size: 11px; padding: 6px 10px; white-space: nowrap; }
}

/* ---------- Gang Sheet Builder: rulers ---------- */
.gs-ruler-frame {
  display: grid; grid-template-columns: 22px 1fr; grid-template-rows: 20px 1fr;
  border: 1px solid var(--border); border-radius: var(--radius-md); overflow: hidden;
}
.gs-ruler-corner { grid-column: 1; grid-row: 1; background: #eef0f5; border-right: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.gs-ruler-h { grid-column: 2; grid-row: 1; position: relative; overflow: hidden; background: #eef0f5; border-bottom: 1px solid var(--border); }
.gs-ruler-v { grid-column: 1; grid-row: 2; position: relative; overflow: hidden; background: #eef0f5; border-right: 1px solid var(--border); }
.gs-ruler-frame .gs-stage-wrap { grid-column: 2; grid-row: 2; border: none; border-radius: 0; }
.gs-ruler-inner { position: absolute; top: 0; left: 0; }
.gs-tick-h { position: absolute; top: 0; bottom: 0; border-left: 1px solid #c7cad4; }
.gs-tick-h.major { border-left: 1px solid #9199ad; }
.gs-tick-h .lbl { position: absolute; left: 3px; top: 2px; font-size: 9.5px; color: var(--muted); font-weight: 700; }
.gs-tick-v { position: absolute; left: 0; right: 0; border-top: 1px solid #c7cad4; }
.gs-tick-v.major { border-top: 1px solid #9199ad; }
.gs-tick-v .lbl { position: absolute; left: 2px; top: 2px; font-size: 9.5px; color: var(--muted); font-weight: 700; writing-mode: vertical-rl; }
.gs-zoom-group { display: inline-flex; align-items: center; gap: 4px; }
.gs-zoom-group .gs-btn { padding: 6px 10px; font-weight: 700; min-width: 34px; justify-content: center; }
.gs-zoom-label { font-size: 12.5px; font-weight: 700; color: var(--text); min-width: 42px; text-align: center; }
.gs-shortcuts-panel { background: var(--panel, #14151a); border: 1px solid var(--border); border-radius: 10px; padding: 14px 16px; margin: 0 0 14px; font-size: 12.5px; color: var(--muted); }
.gs-shortcuts-panel strong { display: block; color: var(--text); font-size: 13px; margin-bottom: 8px; }
.gs-shortcuts-grid { display: grid; grid-template-columns: max-content 1fr; gap: 4px 16px; }
.gs-shortcuts-grid span:nth-child(odd) { color: var(--accent); font-weight: 700; white-space: nowrap; }

/* ---------- Why we built this ---------- */
.why-built {
  margin: 14px 0 22px; padding: 14px 16px; border-radius: var(--radius-md);
  background: var(--navy); border: 1px solid rgba(198,255,51,0.18); border-left: 3px solid var(--accent);
}
.why-built .wb-label { display: block; font-size: 10.5px; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; color: var(--accent); margin-bottom: 5px; }
.why-built p { margin: 0; font-size: 13px; line-height: 1.6; color: #cfd3e0; }

/* ---------- Why JustSolveIt trust section ---------- */
.trust-strip {
  margin: 34px 0; padding: 26px 24px; border-radius: var(--radius-lg);
  background: var(--navy); border: 1px solid rgba(198,255,51,0.15);
}
.trust-strip h2 { margin: 0 0 16px; font-size: 19px; color: #fff; text-align: center; }
.trust-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; max-width: 900px; margin: 0 auto; }
.trust-item { display: flex; align-items: center; gap: 9px; font-size: 13px; color: #cfd3e0; font-weight: 600; }
.trust-item svg { width: 17px; height: 17px; color: var(--accent); flex-shrink: 0; }

/* ---------- Homepage FAQ ---------- */
.faq-strip { margin: 20px 0 34px; }
.faq-strip h2 { margin: 0 0 14px; font-size: 19px; text-align: center; color: var(--text); }
.faq-list { max-width: 760px; margin: 0 auto; display: flex; flex-direction: column; gap: 8px; }
.faq-item {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius-md);
  padding: 4px 16px;
}
.faq-item summary {
  cursor: pointer; list-style: none; padding: 13px 0; font-size: 14px; font-weight: 700;
  color: var(--text); display: flex; align-items: center; justify-content: space-between; gap: 10px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+"; font-size: 18px; font-weight: 700; color: var(--accent-dark); flex-shrink: 0;
  transition: transform 0.15s ease;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p { margin: 0 0 14px; font-size: 13px; line-height: 1.6; color: var(--muted); }
.faq-item:hover { border-color: var(--accent); }

/* ---------- Gang Sheet Builder: Sticker Border ---------- */
.gs-sticker-panel { border: 1px solid rgba(198,255,51,0.35); }
.gs-sticker-btn {
  width: 100%; padding: 12px 14px; border-radius: 999px; border: none; cursor: pointer;
  background: linear-gradient(180deg, var(--accent-light), var(--accent)); color: #0a0a0d; font-weight: 800; font-size: 13.5px;
  display: flex; align-items: center; justify-content: center; gap: 7px;
  box-shadow: 0 4px 14px -4px rgba(198,255,51,0.6); transition: transform .2s var(--ease-spring), box-shadow .2s var(--ease);
}
.gs-sticker-btn svg { animation: boltPulse 1.8s ease-in-out infinite; }
.gs-sticker-btn:hover { transform: translateY(-2px); box-shadow: 0 8px 20px -6px rgba(198,255,51,0.7); }
.gs-sticker-btn.active { background: linear-gradient(180deg, #1a1c24, #0a0a0d); color: var(--accent); border: 1px solid var(--accent); box-shadow: none; }
.gs-sticker-btn.active svg { animation: none; }
.gs-sticker-warning { margin-top: 10px; padding: 12px; border-radius: 10px; background: #fff8e6; border: 1px solid #f2ddac; font-size: 12px; color: #7a5c12; line-height: 1.5; }
.gs-sticker-warning strong { display: block; margin-bottom: 4px; color: #5c4409; }
.gs-sticker-warning a { color: var(--accent-dark); font-weight: 700; }
.gs-sticker-warning .gs-btn { margin-top: 8px; width: 100%; }
.gs-sticker-color-row { display: flex; align-items: center; gap: 8px; }
.gs-color-swatch { width: 26px; height: 26px; border-radius: 50%; border: 2px solid var(--border); cursor: pointer; padding: 0; flex-shrink: 0; }
.gs-color-swatch.active { border-color: var(--accent); box-shadow: 0 0 0 2px rgba(198,255,51,0.4); }
.gs-sticker-color-row input[type="color"] { flex: 1; height: 30px; padding: 2px; cursor: pointer; }
.gs-slider-val { font-size: 11.5px; font-weight: 700; color: var(--text); margin-left: 6px; white-space: nowrap; }
.gs-fit-btn { width: 100%; margin-top: 10px; }
