/* =========================================================
   tattoodesigns.ai — studio layer (loaded last)
   Calm, editorial UI: Newsreader display serif with italic accents,
   Geist for UI text, pill controls, tinted rounded cards, soft shadows,
   generous spacing. Same palette as before: ink black, one tattoo-red
   accent; dark mode keeps the warm Claude-style greys.
   ========================================================= */

/* ---------- tokens ---------- */
:root, .scheme-light {
  --bg: #FAFAF9;
  --bg-elev: #FFFFFF;
  --bg-sunken: #F2F1EF;
  --paper: #F2F1EF;
  --fg: #3A3A3C;
  --fg-muted: #6B6B70;
  --border: rgba(17, 17, 16, .08);
  --border-strong: rgba(17, 17, 16, .16);
  --tint-0: #F3EFEC; --tint-1: #F1F0EA; --tint-2: #F2EDED; --tint-3: #EDF0EC; --tint-4: #ECEEF1; --tint-5: #EFEDF1;
  --grid-line: rgba(17, 17, 16, .045);
  --shadow-sm: 0 0 0 1px var(--border);
  --shadow-soft: 0 1px 2px rgba(17, 17, 16, .04), 0 4px 16px -6px rgba(17, 17, 16, .07);
  --shadow-md: 0 1px 2px rgba(17, 17, 16, .04), 0 18px 40px -18px rgba(17, 17, 16, .18);
  --shadow-lg: 0 1px 2px rgba(17, 17, 16, .05), 0 30px 70px -28px rgba(17, 17, 16, .28);
  --shadow-paper: 0 1px 1px rgba(17, 17, 16, .05), 0 12px 26px -12px rgba(17, 17, 16, .22);
}
.scheme-dark {
  --tint-0: #1B1B1D; --tint-1: #1B1B1D; --tint-2: #1B1B1D; --tint-3: #1B1B1D; --tint-4: #1B1B1D; --tint-5: #1B1B1D;
  --grid-line: rgba(255, 255, 255, .05);
  --shadow-soft: 0 0 0 1px var(--border);
  --shadow-paper: 0 14px 30px -12px rgba(0, 0, 0, .7);
}
:root[data-theme="dark"], :root[data-theme="dark"] .scheme-light, :root[data-theme="dark"] .scheme-dark {
  --tint-0: #34302D; --tint-1: #33322D; --tint-2: #352F2F; --tint-3: #2F332F; --tint-4: #2F3135; --tint-5: #322F35;
  --grid-line: rgba(240, 238, 230, .045);
  --shadow-soft: 0 0 0 1px var(--border);
  --shadow-md: 0 0 0 1px var(--border), 0 18px 40px -18px rgba(0, 0, 0, .55);
  --shadow-lg: 0 0 0 1px var(--border), 0 30px 70px -28px rgba(0, 0, 0, .65);
  --shadow-paper: 0 14px 30px -12px rgba(0, 0, 0, .6);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]), :root:not([data-theme="light"]) .scheme-light, :root:not([data-theme="light"]) .scheme-dark {
    --tint-0: #34302D; --tint-1: #33322D; --tint-2: #352F2F; --tint-3: #2F332F; --tint-4: #2F3135; --tint-5: #322F35;
    --grid-line: rgba(240, 238, 230, .045);
    --shadow-soft: 0 0 0 1px var(--border);
    --shadow-md: 0 0 0 1px var(--border), 0 18px 40px -18px rgba(0, 0, 0, .55);
    --shadow-lg: 0 0 0 1px var(--border), 0 30px 70px -28px rgba(0, 0, 0, .65);
    --shadow-paper: 0 14px 30px -12px rgba(0, 0, 0, .6);
  }
}
:root {
  --font-sans: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-serif: "Newsreader", ui-serif, Georgia, "Times New Roman", serif;
  --r-md: 14px; --r-lg: 20px; --r-xl: 28px; --r-2xl: 32px;
  --nav-h: 64px;
  --ease-out: cubic-bezier(.16, 1, .3, 1);
}

/* ---------- base type ---------- */
body { font: 400 15px/1.6 var(--font-sans); letter-spacing: -.005em; background: var(--bg); }
.display, .hero-h1, .coll-h1, .sec-title, .detail-h1, .tool-head h1, .cta-h2, .cz-name, .price-card .amt, .flow-n, .steps3 .n,
.promo-band h2, .az-block b, .faq summary, .logo-word {
  font-family: var(--font-serif); font-weight: 400; letter-spacing: -.022em; font-optical-sizing: auto;
}
.hero-h1 em, .coll-h1 em, .sec-title em, .tool-head h1 em, .cta-h2 em, .display em, .detail-h1 em { font-style: italic; color: inherit; }
.hero-h1 em { color: var(--accent); }
.sec-title { font-size: clamp(24px, 2.4vw, 32px); line-height: 1.1; text-wrap: balance; }
.sec-sub { font-size: 15px; line-height: 1.6; color: var(--fg-muted); text-wrap: pretty; }
.sec-head { margin-bottom: 20px; }
.sec-head .eyebrow + .sec-title { margin-top: 6px; }
.sec-head.center .sec-sub { margin-left: auto; margin-right: auto; }
.eyebrow { font-size: 11px; font-weight: 500; letter-spacing: .14em; color: var(--fg-muted); }
.section-sm { padding: 44px 0; }
.section { padding: 60px 0; }
h3 { text-wrap: balance; }
::selection { background: var(--accent-soft); color: var(--fg-strong); }

/* ---------- controls: pills everywhere ---------- */
.btn { border-radius: 999px; font-weight: 500; letter-spacing: -.005em; transition: background .2s, box-shadow .2s, transform .15s, color .2s; }
.btn-primary { background: var(--ink); color: var(--fg-on-ink); background-image: linear-gradient(180deg, rgba(255, 255, 255, .1), transparent 60%); box-shadow: 0 1px 2px rgba(0, 0, 0, .1), 0 8px 22px -10px rgba(0, 0, 0, .35); }
.btn-primary:hover { background-color: var(--ink-hover); }
.btn-secondary { background: var(--bg-elev); box-shadow: 0 0 0 1px var(--border-strong); }
.btn-secondary:hover { background: var(--bg-elev); box-shadow: 0 0 0 1px var(--fg-faint); }
.btn-lg { --h: 42px; padding: 0 20px; font-size: 14px; }
.btn .go { display: inline-grid; place-items: center; width: 28px; height: 28px; margin-right: -12px; margin-left: 4px; border-radius: 50%; background: rgba(255, 255, 255, .14); }
.btn .go .i { width: 14px; height: 14px; }
.btn-light { background: #FFFFFF; color: #111110; }
.btn-light:hover { background: #F2F1EF; }
.btn-glass { background: rgba(255, 255, 255, .08); color: #FFFFFF; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .14); }
.btn-glass:hover { background: rgba(255, 255, 255, .14); }
.btn .i + span, .btn span + .i { margin-left: 0; }
.chip { border-radius: 999px; background: var(--bg-elev); box-shadow: inset 0 0 0 1px var(--border); color: var(--fg); font-weight: 450; }
.chip:hover { background: var(--bg-elev); box-shadow: inset 0 0 0 1px var(--border-strong); color: var(--fg-strong); }
.chip.is-active { background: var(--ink); color: var(--fg-on-ink); box-shadow: none; }
.chip-sm { height: 30px; padding: 0 12px; font-size: 12.5px; }
.seg { border-radius: 999px; padding: 4px; background: var(--bg-elev); box-shadow: inset 0 0 0 1px var(--border); }
.seg button { border-radius: 999px; height: 30px; padding: 0 12px; }
.seg button.is-active { background: var(--ink); color: var(--fg-on-ink); box-shadow: none; }
.link-arrow { font-weight: 500; color: var(--fg-strong); text-decoration: underline; text-decoration-color: var(--border-strong); text-underline-offset: 5px; }
.link-arrow:hover { text-decoration-color: var(--fg-strong); }
.badge-accent { background: var(--accent); color: var(--on-accent); }
.credit-pill { background: var(--bg-elev); box-shadow: inset 0 0 0 1px var(--border); }

/* ---------- header ---------- */
.site-nav { height: var(--nav-h); background: color-mix(in srgb, var(--bg) 78%, transparent); -webkit-backdrop-filter: saturate(1.4) blur(14px); backdrop-filter: saturate(1.4) blur(14px); border-bottom: 1px solid transparent; }
.site-nav.is-scrolled { border-bottom-color: var(--border); }
.site-nav .container-wide { gap: 28px; }
.logo { gap: 10px; }
.logo-tile { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 9px; background: var(--ink); color: var(--fg-on-ink); background-image: linear-gradient(180deg, rgba(255, 255, 255, .12), transparent 60%); }
.logo-tile .logo-mark { width: 17px; height: 17px; }
.logo-word { font-size: 22px; letter-spacing: -.02em; }
.logo-word span { color: var(--accent); font-weight: 400; }
.nav-links { gap: 2px; }
.nav-links > a, .nav-drop summary { padding: 7px 12px; border-radius: 999px; font-size: 14px; font-weight: 450; color: var(--fg); }
.nav-links > a:hover, .nav-drop summary:hover, .nav-drop[open] summary { background: var(--bg-hover); color: var(--fg-strong); }
.nav-drop .drop { top: calc(100% + 10px); min-width: 280px; padding: 8px; border-radius: 18px; background: var(--bg-elev); box-shadow: 0 0 0 1px var(--border), 0 24px 60px -20px rgba(0, 0, 0, .25); animation: cz-pop .18s var(--ease-out) both; }
.nav-drop .drop.drop-2 { grid-template-columns: 1fr 1fr; min-width: 560px; gap: 2px; }
.drop-item { border-radius: 12px; padding: 10px 12px; }
.drop-item strong { font-weight: 500; font-size: 14px; }
.drop-tool { flex-direction: row; align-items: center; gap: 12px; }
.drop-tool > span:last-child { display: flex; flex-direction: column; min-width: 0; }
.drop-ic { flex: none; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; background: var(--bg-sunken); color: var(--fg-strong); }
.drop-ic .i { width: 17px; height: 17px; }
.nav-actions { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.site-nav .nav-search { flex: none; width: 210px; height: 36px; padding: 0 14px; background: var(--bg-elev); box-shadow: inset 0 0 0 1px var(--border); }
.site-nav .nav-search input { font-size: 13.5px; }
.nav-login { padding: 7px 12px; border-radius: 999px; font-size: 14px; font-weight: 450; color: var(--fg); }
.nav-login:hover { background: var(--bg-hover); color: var(--fg-strong); }
.nav-cta { --h: 36px; padding: 0 16px; font-size: 13.5px; }
.mobile-menu .btn { margin-top: 12px; }
@keyframes cz-pop { from { opacity: 0; transform: translateY(-4px) scale(.98); } to { opacity: 1; transform: none; } }
@media (max-width: 1180px) { .site-nav .nav-search { width: 160px; } }
@media (max-width: 1060px) { .site-nav .nav-search { display: none; } }
@media (max-width: 860px) { .nav-links, .nav-login, .credit-pill { display: none; } .nav-cta { --h: 34px; padding: 0 14px; } }

/* ---------- grid backdrop (hero, topic head, tool head) ---------- */
.cz-hero, .cz-head, .tool-zone { position: relative; isolation: isolate; }
.hero-grid, .cz-head::before, .tool-zone::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image: linear-gradient(to right, var(--grid-line) 1px, transparent 1px), linear-gradient(to bottom, var(--grid-line) 1px, transparent 1px);
  background-size: 48px 48px;
  -webkit-mask-image: radial-gradient(70% 70% at 50% 0%, #000 0%, transparent 75%); mask-image: radial-gradient(70% 70% at 50% 0%, #000 0%, transparent 75%);
}
.cz-hero::after { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; background: radial-gradient(55% 45% at 50% 0%, color-mix(in srgb, var(--bg-elev) 90%, transparent), transparent 70%); }

/* ---------- home hero ---------- */
.home-hero.hero-dual.cz-hero { padding: 32px 0 8px; border: 0; overflow: hidden; }
.cz-hero .hero-stage { background: none; border-radius: 0; padding: 0; overflow: visible; }
.cz-hero .hero-center { max-width: 820px; }
.hero-badge { display: inline-flex; align-items: center; gap: 10px; height: 34px; padding: 0 14px 0 4px; border-radius: 999px; background: var(--bg-elev); box-shadow: 0 0 0 1px var(--border), var(--shadow-soft); font-size: 13px; color: var(--fg); }
.hero-badge:hover { box-shadow: 0 0 0 1px var(--border-strong), var(--shadow-soft); }
.hero-badge .i { width: 14px; height: 14px; color: var(--fg-muted); }
.badge-new { display: inline-flex; align-items: center; height: 26px; padding: 0 10px; border-radius: 999px; background: var(--ink); color: var(--fg-on-ink); font-size: 11.5px; font-weight: 600; }
.cz-hero .hero-h1 { margin-top: 16px; font-size: clamp(34px, 4vw, 52px); line-height: 1.02; letter-spacing: -.03em; text-wrap: balance; }
.cz-hero .hero-sub { margin: 10px auto 0; max-width: 560px; font-size: 15.5px; line-height: 1.6; color: var(--fg-muted); text-wrap: pretty; }
.cz-hero .hero-modes { display: inline-flex; gap: 4px; max-width: none; margin: 20px auto 12px; padding: 5px; border-radius: 999px; background: var(--bg-elev); box-shadow: 0 0 0 1px var(--border), var(--shadow-soft); }
.cz-hero .hero-modes button { height: 34px; padding: 0 18px; font-size: 14px; font-weight: 500; }
.cz-hero .hero-panel { max-width: 680px; }
.cz-hero .hero-search.hero-search-lg, .cz-hero .hero-gen { padding: 6px; border-radius: 22px; background: var(--bg-elev); box-shadow: 0 0 0 1px var(--border), 0 0 0 5px color-mix(in srgb, var(--bg-elev) 55%, transparent), var(--shadow-md); }
.cz-hero .hero-search-lg { padding-left: 22px !important; }
.cz-hero .hero-search-lg input { height: 42px; font-size: 15px; }
.cz-hero .hero-search-lg .btn, .cz-hero .hero-gen .btn { --h: 40px; padding: 0 14px 0 18px; font-size: 14px; }
.cz-hero .hero-gen { text-align: left; padding: 12px 8px 8px 14px; }
.cz-hero .hero-gen textarea { min-height: 48px; font-size: 15px; padding: 2px 4px; }
.cz-hero .hero-chips { margin-top: 12px; gap: 6px; }
.cz-hero .hero-try { display: inline-flex; align-items: center; gap: 6px; margin: 0 4px 0 0; font-size: 13px; color: var(--fg-muted); }
.cz-hero .hero-try .i { width: 14px; height: 14px; }
.cz-hero .hero-chip { height: 32px; background: var(--bg-elev); box-shadow: inset 0 0 0 1px var(--border); font-size: 13.5px; font-weight: 450; color: var(--fg); }
.cz-hero .hero-chip:hover { box-shadow: inset 0 0 0 1px var(--border-strong); color: var(--fg-strong); }
.cz-hero .hero-chip .thumb { width: 24px; height: 24px; }
.hero-proof { list-style: none; display: flex; justify-content: center; flex-wrap: wrap; gap: 8px 22px; margin: 14px 0 0; padding: 0; font-size: 12.5px; color: var(--fg-muted); }
.hero-proof li + li::before { content: ""; display: inline-block; width: 1px; height: 14px; margin-right: 22px; vertical-align: -2px; background: var(--border-strong); }
.hero-proof b { color: var(--fg-strong); font-weight: 600; }
.cz-hero .hero-deco .hd { position: absolute; bottom: auto; height: auto; z-index: 0; width: 124px; padding: 7px; border-radius: 18px; background: var(--bg-elev); box-shadow: var(--shadow-paper), 0 0 0 1px var(--border); animation: cz-float 9s ease-in-out infinite; }
.cz-hero .hero-deco .hd img { position: static; width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 12px; box-shadow: none; transform: none; }
.cz-hero .hero-deco .hd1 { left: max(24px, calc(50% - 660px)); top: 40px; --r: -7deg; }
.cz-hero .hero-deco .hd2 { left: max(150px, calc(50% - 520px)); top: 210px; width: 100px; --r: 5deg; animation-duration: 11s; }
.cz-hero .hero-deco .hd3 { right: max(24px, calc(50% - 660px)); top: 36px; --r: 6deg; animation-duration: 10s; }
.cz-hero .hero-deco .hd4 { right: max(150px, calc(50% - 520px)); top: 206px; width: 100px; --r: -5deg; animation-duration: 12s; }
@keyframes cz-float { 0%, 100% { transform: translateY(0) rotate(var(--r, 0deg)); } 50% { transform: translateY(-12px) rotate(var(--r, 0deg)); } }
@media (max-width: 1280px) { .cz-hero .hero-deco .hd2, .cz-hero .hero-deco .hd4 { display: none; } }
@media (max-width: 1140px) { .cz-hero .hero-deco { display: none; } }
@media (max-width: 640px) {
  .home-hero.hero-dual.cz-hero { padding: 24px 0 4px; }
  .cz-hero .hero-h1 { font-size: 32px; margin-top: 14px; }
  .cz-hero .hero-sub { font-size: 16px; }
  .cz-hero .hero-modes { margin-top: 16px; }
  .cz-hero .hero-modes button { padding: 0 14px; font-size: 13px; }
  .cz-hero .hero-search-lg { padding-left: 16px !important; }
  .cz-hero .hero-search-lg input { height: 46px; font-size: 15px; }
  .cz-hero .hero-search-lg .btn { --h: 44px; padding: 0 14px; }
  .cz-hero .hero-search-lg .btn .go { display: none; }
  .hero-proof li + li::before { display: none; }
  .hero-proof { gap: 6px 12px; }
}

/* ---------- strip of tilted prints ---------- */
.strip { overflow: hidden; padding: 18px 0 6px; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.strip-track { display: flex; gap: 16px; width: max-content; animation: cz-marquee 70s linear infinite; }
.strip:hover .strip-track { animation-play-state: paused; }
.strip-dup { display: contents; }
.strip-card { flex: none; width: 128px; padding: 6px 6px 0; border-radius: 16px; background: var(--bg-elev); box-shadow: var(--shadow-paper), 0 0 0 1px var(--border); transform: rotate(var(--r, 0deg)); transition: transform .4s var(--ease-out); }
.strip-card:hover { transform: rotate(0deg) translateY(-4px); }
.strip-card .thumb { aspect-ratio: 4 / 5; border-radius: 10px; overflow: hidden; }
.strip-card span { display: block; padding: 6px 2px 8px; text-align: center; font-family: var(--font-serif); font-size: 14px; color: var(--fg-strong); }
@keyframes cz-marquee { to { transform: translateX(calc(-50% - 8px)); } }
@media (prefers-reduced-motion: reduce) { .strip-track, .cz-hero .hero-deco .hd { animation: none; } .strip { overflow-x: auto; } }

/* ---------- cards: tinted stage + serif name + round arrow ---------- */
.cz-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.cz-grid.cz-grid-3 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.cz-card { display: flex; flex-direction: column; overflow: hidden; border-radius: 18px; background: var(--bg-elev); box-shadow: 0 0 0 1px var(--border); transition: box-shadow .3s, transform .3s var(--ease-out); }
.cz-card:hover { box-shadow: 0 0 0 1px var(--border-strong), var(--shadow-md); transform: translateY(-2px); }
.cz-art { position: relative; aspect-ratio: 16 / 9; background: var(--tint-0); overflow: hidden; }
.cz-art.t1 { background: var(--tint-1); } .cz-art.t2 { background: var(--tint-2); } .cz-art.t3 { background: var(--tint-3); } .cz-art.t4 { background: var(--tint-4); } .cz-art.t5 { background: var(--tint-5); }
.pp { position: absolute; top: 13%; width: 32%; padding: 4px; border-radius: 10px; background: #FFFFFF; box-shadow: var(--shadow-paper); transition: transform .5s var(--ease-out); }
.pp .thumb { aspect-ratio: 3 / 4; border-radius: 8px; overflow: hidden; }
.pp .thumb > svg { width: 76%; height: 76%; }
.pp-a { left: 18%; transform: rotate(-6deg); z-index: 1; }
.pp-b { left: 48%; top: 9%; transform: rotate(5deg); z-index: 2; }
.cz-card:hover .pp-a { transform: rotate(-8deg) translate(-4px, -4px); }
.cz-card:hover .pp-b { transform: rotate(7deg) translate(4px, -6px); }
.cz-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 11px 14px 13px; }
.cz-foot > div { min-width: 0; }
.cz-name { display: block; font-size: 17px; line-height: 1.2; color: var(--fg-strong); }
.cz-desc { margin-top: 2px; font-size: 12.5px; line-height: 1.45; color: var(--fg-muted); display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
.cz-go { flex: none; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--bg-sunken); color: var(--fg-strong); transition: background .2s, color .2s; }
.cz-card:hover .cz-go { background: var(--ink); color: var(--fg-on-ink); }
@media (max-width: 1060px) { .cz-grid, .cz-grid.cz-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 860px) { .cz-grid, .cz-grid.cz-grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; } }
@media (max-width: 560px) {
  .cz-grid.cz-grid-3 .cz-foot { padding: 10px 12px 12px; }
  .cz-grid.cz-grid-3 .cz-name { font-size: 15px; }
  .cz-grid.cz-grid-3 .cz-go { display: none; }
  .cz-grid:not(.cz-grid-3) .cz-foot { padding: 12px 12px 14px; }
  .cz-grid:not(.cz-grid-3) .cz-name { font-size: 16px; }
  .cz-grid:not(.cz-grid-3) .cz-go { display: none; }
  .cz-grid:not(.cz-grid-3) .cz-desc { font-size: 12.5px; }
}

/* ---------- big panels ---------- */
.cz-panel { padding: 24px 26px 28px; border-radius: var(--r-2xl); background: var(--bg-sunken); }
.age-band.cz-split { gap: 32px; padding: 28px 32px; border-radius: var(--r-2xl); background: var(--bg-sunken); }
.age-band .sec-title { margin-top: 6px; }
.age-band .sec-sub { margin-top: 8px; }
.age-band .btn { margin-top: 16px; }
.age-stage { border-radius: 22px; box-shadow: var(--shadow-paper); }
.ticks { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 6px; font-size: 14px; color: var(--fg); }
.ticks li { display: flex; gap: 10px; align-items: center; }
.ticks li::before { content: ""; flex: none; width: 20px; height: 20px; border-radius: 50%; background: var(--ink) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 11px no-repeat; }
.handoff.cz-white { padding: 28px 32px; border-radius: var(--r-2xl); background: var(--bg-elev); box-shadow: 0 0 0 1px var(--border); }
.handoff .sec-title { margin-top: 6px; }
@media (max-width: 860px) { .cz-panel, .age-band.cz-split, .handoff.cz-white { padding: 24px 18px; border-radius: 24px; } .age-band.cz-split { gap: 28px; } }

/* ---------- steps, why, pricing ---------- */
.flow-step { padding: 18px 18px 20px; border-radius: 18px; background: var(--bg-elev); box-shadow: 0 0 0 1px var(--border); gap: 10px; }
.flow-n { position: static; font: 400 34px/1 var(--font-serif); color: var(--fg-strong); letter-spacing: -.02em; margin-bottom: 8px; }
.flow-step h3 { font-family: var(--font-serif); font-weight: 400; font-size: 18px; letter-spacing: -.015em; }
.flow-step p { font-size: 13.5px; }
.steps3 > div { padding: 18px 18px 20px; border-radius: 18px; box-shadow: 0 0 0 1px var(--border); }
.steps3 .n { font-size: 34px; color: var(--fg-strong); }
.steps3 h3 { font-family: var(--font-serif); font-weight: 400; font-size: 18px; margin: 10px 0 4px; }
.why-card { padding: 12px 12px 16px; border-radius: 18px; box-shadow: 0 0 0 1px var(--border); }
.why-card h3 { font-family: var(--font-serif); font-weight: 400; font-size: 18px; padding: 0 6px; margin-top: 4px; }
.why-card p { padding: 0 8px; }
.why-pair .thumb { border-radius: 14px; }
.price-card { padding: 22px; border-radius: 20px; box-shadow: 0 0 0 1px var(--border); }
.price-card .h3 { font-family: var(--font-serif); font-weight: 400; font-size: 22px; }
.price-card .amt { font-size: 40px; margin-top: 2px; }
.price-card.best { background: var(--ink); color: var(--fg-on-ink); box-shadow: var(--shadow-lg); }
.price-card.best .h3, .price-card.best .amt { color: var(--fg-on-ink); }
.price-card.best .muted, .price-card.best .amt small { color: color-mix(in srgb, var(--fg-on-ink) 65%, transparent); }
.price-card.best li .i { color: var(--fg-on-ink); }
.price-card.best .btn-primary { background: var(--bg-elev); color: var(--fg-strong); }
.price-card .badge { border-radius: 999px; }

/* ---------- FAQ: heading left, questions in a card right ---------- */
.faq-split { display: grid; grid-template-columns: minmax(0, .7fr) minmax(0, 1.3fr); gap: 40px; align-items: start; }
.faq-side { position: sticky; top: calc(var(--nav-h) + 24px); }
.faq-side .sec-title { margin-top: 6px; }
.faq-side .sec-sub { margin: 8px 0 12px; }
.faq.faq-card { border: 0; padding: 2px 20px; border-radius: 20px; background: var(--bg-elev); box-shadow: 0 0 0 1px var(--border); }
.faq-card details { border-bottom: 1px solid var(--border); }
.faq-card details:last-child { border-bottom: 0; }
.faq-card summary { padding: 14px 0; font-size: 16px; line-height: 1.35; color: var(--fg-strong); gap: 16px; }
.faq-card summary .i { flex: none; width: 26px; height: 26px; padding: 6px; border-radius: 50%; background: var(--bg-sunken); color: var(--fg-strong); }
.faq-card details[open] summary .i { background: var(--ink); color: var(--fg-on-ink); }
.faq-card details p { padding: 0 40px 16px 0; font-size: 14px; }
@media (max-width: 900px) { .faq-split { grid-template-columns: 1fr; gap: 24px; } .faq-side { position: static; } .faq.faq-card { padding: 2px 18px; } .faq-card summary { font-size: 16.5px; padding: 18px 0; } .faq-card details p { padding-right: 0; } }

/* ---------- closing band ---------- */
.cta-wrap { padding: 8px 0 48px; }
.cta-band { position: relative; overflow: hidden; isolation: isolate; padding: 52px 32px; border-radius: 24px; text-align: center;
  background: radial-gradient(70% 90% at 50% 0%, #2A2A2C, #111112 70%); color: #E8E6E1; }
.cta-band::before { content: ""; position: absolute; inset: 0; z-index: -1; background-image: linear-gradient(to right, rgba(255, 255, 255, .04) 1px, transparent 1px), linear-gradient(to bottom, rgba(255, 255, 255, .04) 1px, transparent 1px); background-size: 48px 48px; -webkit-mask-image: radial-gradient(60% 80% at 50% 50%, #000, transparent); mask-image: radial-gradient(60% 80% at 50% 50%, #000, transparent); }
.cta-h2 { max-width: 640px; margin: 0 auto; font-size: clamp(26px, 3vw, 38px); line-height: 1.04; color: #FFFFFF; text-wrap: balance; }
.cta-h2 em { color: #B8B5AE; }
.cta-copy p { max-width: 500px; margin: 10px auto 0; font-size: 14.5px; color: #A9A6A0; }
.cta-acts { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.cta-pic { position: absolute; z-index: -1; width: 104px; aspect-ratio: 3 / 4; object-fit: cover; padding: 6px; border-radius: 18px; background: #FFFFFF; box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .8); }
.cta-pic-1 { left: 7%; top: 16%; transform: rotate(-12deg); }
.cta-pic-2 { right: 7%; bottom: 12%; transform: rotate(10deg); }
@media (max-width: 1060px) { .cta-pic { width: 120px; opacity: .5; } }
@media (max-width: 760px) { .cta-pic { display: none; } .cta-band { padding: 36px 18px; border-radius: 20px; } .cta-wrap { padding-bottom: 32px; } }

/* ---------- footer ---------- */
.site-footer { border-top: 0; padding: 24px 0 40px; }
.footer-col h4, .footer-col .footer-h { font-size: 13px; font-weight: 500; color: var(--fg-strong); margin-bottom: 16px; }
.footer-col a { font-size: 13.5px; padding: 5px 0; }
.footer-blurb { margin-top: 16px; max-width: 280px; font-size: 13.5px; line-height: 1.6; color: var(--fg-muted); }
.footer-bottom { margin-top: 28px; }
.footer-legal { display: flex; flex-wrap: wrap; gap: 6px 20px; flex: 1; justify-content: center; }
.footer-legal a { color: var(--fg-muted); font-size: 13px; }
.footer-legal a:hover { color: var(--fg-strong); }
@media (max-width: 760px) { .footer-legal { flex: 0 0 100%; justify-content: flex-start; } }

/* ---------- topic pages ---------- */
.coll-head.cz-head { padding: 14px 0 2px; }
.cz-head::before { -webkit-mask-image: radial-gradient(80% 100% at 30% 0%, #000 0%, transparent 70%); mask-image: radial-gradient(80% 100% at 30% 0%, #000 0%, transparent 70%); }
.cz-head .coll-title-row { margin-top: 10px; align-items: flex-end; }
.cz-head .coll-h1 { margin-top: 4px; font-size: clamp(30px, 3.2vw, 42px); line-height: 1.02; letter-spacing: -.03em; }
.cz-head .coll-lead { margin-top: 6px; font-size: 14.5px; line-height: 1.6; max-width: 680px; }
.cz-head .coll-actions .btn { --h: 38px; padding: 0 16px; font-size: 13.5px; }
.breadcrumb { font-size: 13px; }
.sub-tab { border-radius: 999px; height: 34px; padding: 0 14px; font-weight: 450; background: var(--bg-elev); box-shadow: inset 0 0 0 1px var(--border); }
.sub-tab.is-active { background: var(--ink); color: var(--fg-on-ink); }
.lib-toolbar { border-top: 0; margin-top: 12px; padding-top: 0; }
.d-card .thumb, .masonry-grid .thumb { border-radius: 16px; }
.d-card:hover .thumb { filter: none; box-shadow: var(--shadow-md); transform: translateY(-2px); }
.d-card .thumb { transition: box-shadow .3s, transform .3s var(--ease-out); }
.d-title { padding: 9px 4px 0; font-size: 13px; font-weight: 450; color: var(--fg); }
.d-place { border-radius: 999px !important; -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.thumb-pending span { font-family: var(--font-serif); font-size: 18px; }
/* modules */
.sec-ideas .cz-panel .sec-head, .sec-ideas > .container-wide > .sec-head { margin-bottom: 26px; }
section.sec-ideas:not(:has(.cz-panel)) > .container-wide { padding-top: 24px; padding-bottom: 26px; border-radius: 24px; background: var(--bg-sunken); padding-left: 26px; padding-right: 26px; max-width: calc(var(--container-wide) + var(--gutter) * 2 - 2 * var(--gutter)); }
.idea { border-radius: 20px !important; background: var(--bg-elev) !important; box-shadow: 0 0 0 1px var(--border) !important; }
.idea h3, .mw-col h3, .st-card h3, .placement-card h3, .pg-card h3 { font-family: var(--font-serif); font-weight: 400; font-size: 17px; letter-spacing: -.015em; }
.idea-n { font-family: var(--font-serif) !important; font-size: 22px !important; color: var(--fg-faint) !important; }
.mw-col, .st-card, .tone-grid figure, .pg-more, .tool-strip, .glance, .specs, .license, .s-card, .lib-card, .trend, .tool-link, .show-card { border-radius: 20px; }
.var-list li b, .pt-list li b { color: var(--fg-strong); font-weight: 600; }
.container-prose h3 { font-family: var(--font-serif); font-weight: 400; font-size: 20px; letter-spacing: -.015em; }
.tool-strip a { border-radius: 999px !important; }
@media (max-width: 860px) { section.sec-ideas:not(:has(.cz-panel)) > .container-wide { padding: 24px 18px; border-radius: 24px; width: auto; margin: 0 var(--gutter); } }
/* inline generator band */
.gen-band { padding: 24px 26px; border-radius: 24px; background: var(--bg-sunken); }
.gen-band .sec-title { margin-top: 6px; }
.gen-card { border-radius: 22px; box-shadow: 0 0 0 1px var(--border), 0 0 0 5px color-mix(in srgb, var(--bg-elev) 55%, transparent), var(--shadow-lg); }
.gen-btn { --h: 40px; padding: 0 16px; }
@media (max-width: 640px) { .gen-band { padding: 24px 16px; border-radius: 24px; } }

/* ---------- tool pages ---------- */
.tool-zone { background: transparent; border-bottom: 0; padding-bottom: 36px; }
.tool-zone::before { -webkit-mask-image: radial-gradient(70% 60% at 50% 0%, #000 0%, transparent 75%); mask-image: radial-gradient(70% 60% at 50% 0%, #000 0%, transparent 75%); }
.tool-zone .gen-card, .tool-zone .tool-card, .tool-zone .font-tool-input { box-shadow: 0 0 0 1px var(--border), 0 0 0 7px color-mix(in srgb, var(--bg-elev) 55%, transparent), var(--shadow-lg); }
.tool-head { padding: 22px 0 18px; }
.tool-head h1 { font-size: clamp(30px, 3.4vw, 46px); line-height: 1.02; letter-spacing: -.03em; }
.tool-head p { font-size: 15px; line-height: 1.55; max-width: 600px; margin-top: 8px; }
.tool-card, .font-tool-input { border-radius: 26px; }
.font-row { border-radius: 20px; box-shadow: 0 0 0 1px var(--border); }
.trust-row { color: var(--fg-muted); }
.lib-card .thumb { border-radius: 14px; }
.lib-card .name { font-family: var(--font-serif); font-weight: 400; font-size: 17px; }
.conv-stage, .tryon-stage { border-radius: 22px; }

/* ---------- detail dialog / page ---------- */
.detail-h1 { font-size: clamp(26px, 2.8vw, 34px); line-height: 1.05; letter-spacing: -.025em; }
.detail-stage .thumb { border-radius: 22px; }
.specs { box-shadow: 0 0 0 1px var(--border); }
.viewer { border-radius: 26px; }

/* ---------- directory ---------- */
.dir-group .sec-title { font-size: clamp(26px, 3vw, 36px); }
.az-letters a { border-radius: 999px; }
.az-block b { color: var(--fg-strong); }

/* ---------- small screens ---------- */
@media (max-width: 640px) {
  .section-sm { padding: 32px 0; }
  .sec-head { margin-bottom: 16px; }
  .sec-title { font-size: 24px; }
  .cz-head .coll-h1 { font-size: 30px; }
  .tool-head h1 { font-size: 30px; }
  .flow-n, .steps3 .n { font-size: 28px; }
}
.why-pair .thumb { aspect-ratio: 4 / 3; }
.age-demo { max-width: 380px; }

/* ---------- ink colours + getting it done ---------- */
.ink-mod { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 20px; align-items: start; }
.ink-mod:not(:has(.ink-thumbs)) { grid-template-columns: 1fr; }
.ink-thumbs { display: grid; grid-template-columns: 1fr; gap: 10px; }
.ink-thumbs .thumb { aspect-ratio: 4 / 3; border-radius: 14px; }
.ink-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.ink-card { padding: 16px 18px; border-radius: 18px; background: var(--bg-elev); box-shadow: 0 0 0 1px var(--border); }
.ink-card h3 { display: flex; align-items: center; gap: 8px; font-family: var(--font-serif); font-weight: 400; font-size: 18px; color: var(--fg-strong); }
.ink-card h3::before { content: ""; width: 12px; height: 12px; border-radius: 50%; background: #111; box-shadow: 0 0 0 1px var(--border-strong); }
.ink-card:nth-child(2) h3::before { background: linear-gradient(135deg, #111 50%, #9A9A9A 50%); }
.ink-card:nth-child(3) h3::before { background: #FFF; }
.ink-card:nth-child(4) h3::before { background: #C8322A; }
.ink-card p { margin-top: 6px; font-size: 14px; line-height: 1.6; color: var(--fg-muted); }
.prose .lede { color: var(--fg-muted); margin-top: 4px; }
.get-faq summary { font-size: 16px; }
@media (max-width: 760px) { .ink-mod { grid-template-columns: 1fr; } .ink-thumbs { grid-template-columns: 1fr 1fr; } .ink-grid { grid-template-columns: 1fr; } }

/* ---------- Tattoo ideas mega menu (columns · hot row · themes · search) ---------- */
.site-nav .container-wide { position: relative; }
.nav-drop.nav-mega { position: static; }
.nav-drop .drop.drop-mega { left: 50%; transform: translateX(-50%); top: calc(100% - 6px); width: min(1120px, calc(100vw - 32px)); min-width: 0; padding: 18px 18px 14px; display: block; border-radius: 22px; animation: none; }
.mega-cols { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0 6px; }
.mega-col { display: flex; flex-direction: column; min-width: 0; }
.mega-h { margin: 0; padding: 2px 10px 6px; font-size: 11.5px; font-weight: 500; letter-spacing: .07em; text-transform: uppercase; color: var(--fg-muted); }
.mega-col > a { padding: 6px 10px; border-radius: 10px; font-size: 14.5px; font-weight: 450; color: var(--fg-strong); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mega-col > a:hover { background: var(--bg-hover); }
.mega-col > a.mega-all { display: inline-flex; align-items: center; gap: 4px; margin-top: 2px; font-size: 13.5px; font-weight: 600; color: var(--accent, var(--fg-strong)); }
.mega-all .i { width: 14px; height: 14px; }
.mega-hot { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 2px; margin-top: 12px; padding: 12px 4px 0; border-top: 1px solid var(--border); }
.mega-hot a { padding: 5px 11px; border-radius: 999px; font-size: 13.5px; font-weight: 500; color: var(--fg-strong); }
.mega-hot a:hover { background: var(--bg-hover); }
.hot-badge { display: inline-flex; align-items: center; gap: 4px; height: 24px; margin: 0 8px 0 6px; padding: 0 9px 0 7px; border-radius: 999px; background: linear-gradient(135deg, #F97316, #E5484D); color: #fff; font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.hot-badge .i { width: 12px; height: 12px; }
.mega-cats { display: flex; flex-wrap: wrap; gap: 4px 18px; padding: 10px 14px 4px; }
.mega-cats a { font-size: 13.5px; color: var(--fg-muted); }
.mega-cats a:hover { color: var(--fg-strong); }
.mega-search { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 10px; padding: 6px 8px 6px 18px; border-radius: 16px; background: var(--bg-sunken); }
.mega-search form { flex: 1; min-width: 0; display: flex; align-items: center; gap: 8px; color: var(--fg-muted); }
.mega-search input { flex: 1; min-width: 0; height: 36px; border: 0; background: transparent; font: inherit; font-size: 14px; color: var(--fg-strong); outline: none; }
.mega-search > a { flex: none; display: inline-flex; align-items: center; gap: 4px; padding: 6px 12px; font-size: 13.5px; font-weight: 600; color: var(--fg-strong); }
.mega-search .i { width: 15px; height: 15px; }
@media (max-width: 1100px) { .mega-cols { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px 6px; } }
/* mobile drawer: the same groups, collapsed */
.mobile-menu .m-group { border-bottom: 1px solid var(--border); }
.mobile-menu .m-group summary { list-style: none; display: flex; align-items: center; justify-content: space-between; padding: 13px 4px; font-size: 17px; cursor: pointer; color: var(--fg-strong); }
.mobile-menu .m-group summary::-webkit-details-marker { display: none; }
.mobile-menu .m-group[open] summary .i { transform: rotate(180deg); }
.mobile-menu .m-links { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 0 14px; }
.mobile-menu .m-links a { padding: 6px 12px; border: 0; border-radius: 999px; background: var(--bg-sunken); font-size: 14px; }
@media (max-width: 860px) { .mobile-menu.is-open { overflow-y: auto; } }
.dir-group[id] { scroll-margin-top: calc(var(--nav-h) + 16px); }

/* premium library designs (scored in the library admin): badge on the card */
.d-card .d-tier { position: absolute; top: 10px; left: 10px; z-index: 2; display: inline-flex; align-items: center; gap: 4px; height: 24px; padding: 0 9px 0 7px; border-radius: 999px; background: var(--ink, #1a1a1a); color: var(--fg-on-ink, #fff); font-size: 11px; font-weight: 600; letter-spacing: .02em; }
.d-card .d-tier .i { width: 12px; height: 12px; }
