/* BookCoverGen — Archival Ink, Warm Linen Paper, Antique Gilt Brass.
   Editorial book-design studio visual system. */

:root {
  --font-ui: "Plus Jakarta Sans", Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-display: "Fraunces", "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --ink-navy: #0f1b2d;
  --ink-deep: #09111e;
  --ink-soft: #16263d;
  --ink-line: rgba(255, 255, 255, .11);
  --paper: #f7f3ea;
  --paper-2: #efe8d8;
  --paper-3: #e5dac3;
  --paper-line: #d8cdb8;
  --brass: #c9a227;
  --brass-bright: #e8c65a;
  --brass-deep: #86650d;
  --text: #16202e;
  --text-muted: #505b6b;
  --line: rgba(255, 255, 255, .11);
  --line-dark: #d9ceba;
  --radius-control: 11px;
  --radius-card: 20px;
  --space-section: clamp(64px, 7.5vw, 108px);
  /* legacy token aliases still referenced by page components */
  --ink: #f7f3ea;
  --muted: #b4c0d0;
  --dark: var(--ink-navy);
  --dark-2: var(--ink-deep);
  --violet: var(--brass);
  --violet-2: var(--brass-bright);
}
[data-theme="ink"],
[data-theme="violet"],
[data-theme="coral"],
[data-theme="ocean"] { --violet: var(--brass); --violet-2: var(--brass-bright); }

* { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: clip; background: var(--ink-deep); }
body { margin: 0; overflow-x: clip; background: var(--ink-deep); color: var(--ink); font-family: var(--font-ui); font-size: 15px; line-height: 1.65; font-synthesis: none; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
main { overflow-x: clip; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button, summary { -webkit-tap-highlight-color: transparent; }
img { display: block; max-width: 100%; }
::selection { background: var(--brass); color: #121a26; }
:focus-visible { outline: 2px solid var(--brass-bright); outline-offset: 3px; }
.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; }
.section-shell { width: min(1200px, calc(100% - 40px)); margin-inline: auto; }

/* ---------- Header & Dropdown (crisp single-line nav, zero native triangle) ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: 72px;
  border-bottom: 1px solid rgba(255, 255, 255, .09);
  background: rgba(11, 19, 34, .92);
  backdrop-filter: blur(18px);
}
.nav-shell {
  width: min(1240px, calc(100% - 36px));
  height: 100%;
  margin: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 650;
  letter-spacing: -.02em;
  color: var(--ink);
  white-space: nowrap;
  flex-shrink: 0;
}
.brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  display: grid;
  place-items: center;
  color: #0e1623;
  background: linear-gradient(140deg, var(--brass-bright), var(--brass) 62%, #a9851c);
  box-shadow: 0 8px 22px rgba(201, 162, 39, .26), inset 0 0 0 1px rgba(255, 255, 255, .22);
}
.desktop-nav {
  display: flex;
  align-items: center;
  gap: 22px;
  color: #cfd8e6;
  font-size: 13.5px;
  font-weight: 500;
}
.desktop-nav > a {
  white-space: nowrap;
  flex-shrink: 0;
  transition: color .18s ease;
}
.desktop-nav > a:hover { color: var(--brass-bright); }

/* Dropdown menu ("Cover tools") — completely suppress native triangle marker & line breaks */
.nav-dropdown { position: relative; flex-shrink: 0; }
.nav-dropdown > summary {
  list-style: none;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 2px;
  color: #cfd8e6;
  font-size: 13.5px;
  font-weight: 500;
  white-space: nowrap;
  cursor: pointer;
  user-select: none;
  transition: color .18s ease;
}
.nav-dropdown > summary::-webkit-details-marker { display: none; }
.nav-dropdown > summary::marker { content: ""; display: none; }
.nav-dropdown > summary:hover,
.nav-dropdown[open] > summary { color: var(--brass-bright); }
.nav-dropdown .nav-chevron { flex-shrink: 0; transition: transform .2s ease; }
.nav-dropdown[open] .nav-chevron { transform: rotate(180deg); }
.mega-menu {
  position: absolute;
  top: calc(100% + 14px);
  left: -16px;
  z-index: 90;
  width: 480px;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 18px;
  background: #0f1b2e;
  box-shadow: 0 26px 70px rgba(0, 0, 0, .55);
}
.mega-label {
  margin: 0 0 12px;
  padding: 0 6px;
  color: var(--brass-bright);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.mega-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.mega-grid a {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 11px 12px;
  border-radius: 12px;
  border: 1px solid transparent;
  transition: background .16s ease, border-color .16s ease;
}
.mega-grid a:hover { background: rgba(255, 255, 255, .05); border-color: rgba(232, 198, 90, .22); }
.mega-dot { width: 8px; height: 8px; border-radius: 50%; margin-top: 6px; flex-shrink: 0; }
.mega-grid strong { display: block; color: #f7f3ea; font-size: 13.5px; font-weight: 650; }
.mega-grid small { display: block; margin-top: 2px; color: #9eb0c8; font-size: 11.5px; line-height: 1.45; }
.mega-all {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 12px;
  padding: 10px 12px;
  border-top: 1px solid rgba(255, 255, 255, .09);
  color: var(--brass-bright);
  font-size: 12.5px;
  font-weight: 650;
}
.mega-all:hover { text-decoration: underline; text-underline-offset: 3px; }

.nav-actions { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.nav-actions [data-google-login] { display: flex; align-items: center; min-height: 38px; }
.nav-actions .gl-btn--sm {
  height: 38px !important;
  padding: 0 13px !important;
  border-radius: 10px !important;
  border-color: rgba(255, 255, 255, .18) !important;
  background: rgba(255, 255, 255, .06) !important;
  color: #f3f6fa !important;
  font-size: 13px !important;
  font-weight: 600 !important;
}
.nav-actions .gl-btn--sm:hover {
  background: rgba(255, 255, 255, .12) !important;
  border-color: rgba(232, 198, 90, .45) !important;
}
.nav-actions .gl-bar-trigger {
  height: 38px !important;
  padding: 0 10px 0 4px !important;
  border: 1px solid rgba(255, 255, 255, .16) !important;
  background: rgba(255, 255, 255, .06) !important;
  color: #f7f3ea !important;
}

/* ---------- Buttons ---------- */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 0 22px;
  border: 0;
  border-radius: var(--radius-control);
  background: linear-gradient(135deg, #efd06b, var(--brass) 68%, #b38c1c);
  color: #101824;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: -.005em;
  white-space: nowrap;
  box-shadow: 0 10px 26px rgba(201, 162, 39, .24);
  transition: transform .18s ease, box-shadow .18s ease, filter .18s ease;
  cursor: pointer;
}
.button:hover { transform: translateY(-2px); box-shadow: 0 16px 34px rgba(201, 162, 39, .32); filter: brightness(1.03); }
.button:disabled { opacity: .68; cursor: wait; transform: none; }
.button-small { min-height: 38px; padding: 0 16px; border-radius: 10px; font-size: 13px; }
.button-light { background: var(--paper); color: #121b28; box-shadow: 0 12px 30px rgba(0, 0, 0, .24); }
.button-dark { background: var(--ink-navy); color: #f8f4ec; box-shadow: 0 10px 24px rgba(15, 27, 45, .18); }
.button-dark:hover { background: #182b47; box-shadow: 0 14px 30px rgba(15, 27, 45, .26); }
.button-outline {
  background: transparent;
  color: var(--brass-bright);
  border: 1.5px solid rgba(232, 198, 90, .48);
  box-shadow: none;
}
.button-outline:hover { background: rgba(232, 198, 90, .12); box-shadow: none; }
.button-outline-dark {
  background: transparent;
  color: var(--ink-navy);
  border: 1.5px solid rgba(15, 27, 45, .32);
  box-shadow: none;
}
.button-outline-dark:hover { background: rgba(15, 27, 45, .06); border-color: var(--ink-navy); box-shadow: none; }

/* Inline links (NEVER break arrows onto next line) */
.inline-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  flex-shrink: 0;
  color: var(--ink-navy);
  font-size: 14px;
  font-weight: 700;
  border-bottom: 1.5px solid rgba(15, 27, 45, .22);
  padding-bottom: 2px;
  transition: color .16s ease, border-color .16s ease;
}
.inline-link svg { flex-shrink: 0; transition: transform .18s ease; }
.inline-link:hover { color: var(--brass-deep); border-color: var(--brass-deep); }
.inline-link:hover svg { transform: translateX(3px); }
.inline-links-row { display: flex; flex-wrap: nowrap; gap: 22px; align-items: center; flex-shrink: 0; }

.mobile-menu { display: none; position: relative; }
.mobile-menu summary { list-style: none; width: 40px; height: 38px; border: 1px solid var(--ink-line); border-radius: 10px; display: grid; place-content: center; gap: 5px; cursor: pointer; }
.mobile-menu summary::-webkit-details-marker { display: none; }
.mobile-menu summary span { width: 16px; height: 1.5px; background: var(--ink); }
.mobile-menu > div { position: absolute; top: 48px; right: 0; z-index: 80; width: 240px; padding: 10px; border: 1px solid rgba(255, 255, 255, .14); border-radius: 15px; background: #0f1b2e; box-shadow: 0 22px 60px rgba(0, 0, 0, .55); }
.mobile-menu a { display: block; padding: 11px 12px; border-radius: 9px; font-size: 14px; color: #e8eef7; }
.mobile-menu a:hover { background: rgba(255, 255, 255, .07); }

/* ---------- Hero + Live Studio Showcase ---------- */
.hero { position: relative; padding: 0 0 80px; overflow: hidden; background: radial-gradient(ellipse 80% 60% at 72% 28%, rgba(201, 162, 39, .14), transparent 65%), var(--ink-deep); }
.hero-glow { position: absolute; z-index: 0; top: -240px; left: 20%; width: min(880px, 100vw); height: 620px; transform: translateX(-50%); background: radial-gradient(circle, rgba(201, 162, 39, .14), rgba(201, 162, 39, .03) 46%, transparent 72%); filter: blur(22px); pointer-events: none; }
.hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1.02fr) minmax(0, .98fr); gap: clamp(28px, 4vw, 56px); align-items: stretch; padding: 44px 0 0; }
.hero-copy-block { max-width: 600px; }
.eyebrow, .kicker { display: inline-flex; align-items: center; gap: 7px; color: var(--brass-bright); font-family: var(--font-ui); font-size: 11.5px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.eyebrow { padding: 7px 12px; border: 1px solid rgba(232, 198, 90, .28); border-radius: 999px; background: rgba(201, 162, 39, .1); }
.hero h1 { margin: 18px 0 14px; font-family: var(--font-display); font-size: clamp(40px, 4.6vw, 60px); line-height: 1.03; letter-spacing: -.03em; font-weight: 600; color: #faf6ee; }
.hero-copy { max-width: 550px; margin: 0 0 22px; color: #c4cedd; font-size: 16px; line-height: 1.7; }

.hero-showcase-col {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  padding-top: 6px;
  min-width: 0;
}
.hero-stage-frame {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 18px;
  width: 100%;
  height: auto;
  padding: 22px 22px 20px;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 26px;
  background:
    radial-gradient(ellipse 85% 58% at 50% 20%, rgba(232, 198, 90, .15), rgba(22, 37, 60, .42) 56%, rgba(10, 18, 32, .94) 100%),
    #0d182a;
  box-shadow: 0 34px 90px rgba(0, 0, 0, .48), inset 0 1px rgba(255, 255, 255, .09);
  overflow: hidden;
}
.hero-shelf {
  position: relative;
  flex: 0 0 auto;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 14px;
  padding: 16px 8px 28px;
  width: 100%;
}
.hero-shelf-slot {
  position: relative;
  flex: 0 0 auto;
  padding: 0;
  border: 0;
  background: transparent;
  transition: transform .36s cubic-bezier(.22, 1, .36, 1), filter .3s ease;
}
.hero-shelf-side { cursor: pointer; z-index: 1; filter: brightness(.88); }
.hero-shelf-slot:first-child { transform: rotate(-5.5deg) translateY(16px); }
.hero-shelf-slot:last-child { transform: rotate(5.5deg) translateY(16px); }
.hero-shelf-side .cover-mock { --cover-w: 144px; }
.hero-shelf-slot:first-child:hover { transform: rotate(-2deg) translateY(4px) scale(1.03); z-index: 4; filter: brightness(1); }
.hero-shelf-slot:last-child:hover { transform: rotate(2deg) translateY(4px) scale(1.03); z-index: 4; filter: brightness(1); }
.hero-shelf-center { z-index: 3; transform: translateY(-6px); }
.hero-shelf-center .cover-mock {
  --cover-w: 206px;
  box-shadow: 0 34px 72px rgba(0, 0, 0, .66), 0 6px 16px rgba(0, 0, 0, .4), inset 0 0 0 1px rgba(255, 255, 255, .18);
}
.hero-shelf-center:hover { transform: translateY(-12px); }
.hero-shelf::after {
  content: "";
  position: absolute;
  left: 6%;
  right: 6%;
  bottom: 8px;
  height: 26px;
  border-radius: 50%;
  background: radial-gradient(ellipse at center, rgba(0, 0, 0, .7), transparent 72%);
  filter: blur(9px);
  pointer-events: none;
}

.hero-spotlight-bar {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 20px;
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 18px;
  background: rgba(9, 16, 28, .72);
  backdrop-filter: blur(12px);
}
.hero-spotlight-copy { min-width: 0; flex: 1; }
.hero-spotlight-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; margin-bottom: 6px; }
.hero-spotlight-meta span {
  color: var(--brass-bright);
  font-size: 11px;
  font-weight: 750;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.hero-spotlight-meta em {
  font-style: normal;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 999px;
}
.hero-spotlight-meta em.tier-free,
.lightbox-badges em.tier-free {
  background: rgba(91, 227, 165, .14);
  color: #82e8b8;
  border: 1px solid rgba(91, 227, 165, .28);
}
.hero-spotlight-meta em.tier-studio,
.lightbox-badges em.tier-studio {
  background: rgba(232, 198, 90, .14);
  color: var(--brass-bright);
  border: 1px solid rgba(232, 198, 90, .3);
}
.hero-spotlight-copy strong {
  display: block;
  color: #faf6ee;
  font-family: var(--font-display);
  font-size: 22px;
  line-height: 1.15;
  font-weight: 600;
}
.hero-spotlight-copy p {
  margin: 6px 0 0;
  color: #b4c2d5;
  font-size: 12.5px;
  line-height: 1.55;
}
.hero-spotlight-cta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
  flex-shrink: 0;
}
.hero-spotlight-cta .checkout-control { margin-top: 0; }
.hero-spotlight-cta .button { min-height: 40px; padding: 0 16px; font-size: 13px; }
.hero-gallery-jump {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: #d6e0ee;
  font-size: 12px;
  font-weight: 650;
  white-space: nowrap;
  transition: color .16s ease;
}
.hero-gallery-jump:hover { color: var(--brass-bright); }

.hero-edition-tray {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
}
.hero-tray-thumb {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 6px;
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 12px;
  background: rgba(255, 255, 255, .03);
  cursor: pointer;
  transition: transform .2s ease, border-color .2s ease, background .2s ease;
}
.hero-tray-thumb img {
  width: 100%;
  aspect-ratio: 2 / 3;
  height: auto;
  border-radius: 6px;
  object-fit: cover;
  box-shadow: 0 6px 14px rgba(0, 0, 0, .4);
}
.hero-tray-thumb span {
  color: #a9b9cf;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: .02em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}
.hero-tray-thumb:hover {
  transform: translateY(-2px);
  border-color: rgba(232, 198, 90, .45);
  background: rgba(255, 255, 255, .06);
}
.hero-tray-thumb.active {
  border-color: var(--brass-bright);
  background: rgba(232, 198, 90, .14);
  box-shadow: 0 0 0 1px rgba(232, 198, 90, .35);
}
.hero-tray-thumb.active span { color: var(--brass-bright); }

.hero-proof-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 14px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, .09);
  color: #9cb0c9;
  font-size: 11.5px;
  font-weight: 550;
}
.hero-proof-strip span { display: inline-flex; align-items: center; gap: 5px; }
.hero-proof-strip svg { color: var(--brass-bright); flex-shrink: 0; }

.trust-row { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 20px; color: #b5c1d2; font-size: 12.5px; }
.trust-row span { display: inline-flex; align-items: center; gap: 6px; }
.trust-row svg { color: var(--brass-bright); flex-shrink: 0; }

/* Creator quick-start card inside Hero */
.creator { position: relative; z-index: 3; width: 100%; max-width: 600px; padding: 18px 20px; text-align: left; border: 1px solid rgba(255, 255, 255, .14); border-radius: 20px; background: linear-gradient(155deg, rgba(22, 36, 58, .96), rgba(12, 21, 36, .98)); box-shadow: 0 30px 80px rgba(0, 0, 0, .4), inset 0 1px rgba(255, 255, 255, .07); }
.creator-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 14px; }
.creator-title { color: #faf6ee; font-family: var(--font-display); font-size: 18px; font-weight: 600; }
.creator-title small { display: block; margin-top: 2px; color: #a7b6ca; font-family: var(--font-ui); font-size: 12px; font-weight: 400; }
.creator-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 11px; }
.creator-field { min-width: 0; display: flex; flex-direction: column; gap: 5px; }
.creator-field > span { color: #dce4f0; font-size: 12px; font-weight: 600; }
.creator-field > span small { color: #94a5bc; font-size: 11px; font-weight: 400; }
.creator-field input, .creator-field select, .creator-field textarea { width: 100%; min-width: 0; height: 42px; padding: 0 12px; border: 1px solid #384c6b; border-radius: 10px; background: #0e1a2d; color: #ffffff; font-size: 13.5px; outline: 0; }
.creator-field input::placeholder, .creator-field textarea::placeholder { color: #8495ad; }
.creator-field input:focus, .creator-field select:focus, .creator-field textarea:focus { border-color: var(--brass-bright); box-shadow: 0 0 0 3px rgba(232, 198, 90, .16); }
.creator-field-wide { grid-column: 1 / -1; }
.creator-field textarea.creator-brief { height: 64px; padding: 9px 12px; line-height: 1.5; resize: vertical; }
.creator-preview { display: flex; align-items: center; gap: 16px; margin-top: 14px; padding-top: 14px; border-top: 1px solid rgba(255, 255, 255, .1); }
.creator-preview .cover-mock { --cover-w: 78px; flex: 0 0 auto; margin: 0; }
.creator-preview > div { min-width: 0; }
.creator-preview strong { display: block; color: var(--brass-bright); font-size: 13px; letter-spacing: .02em; }
.creator-preview p { margin: 4px 0 0; color: #b5c1d2; font-size: 12.5px; line-height: 1.55; }
.creator-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 14px; }
.creator-toolbar > div { display: flex; flex-wrap: wrap; gap: 8px; }
.tool-button { display: inline-flex; align-items: center; gap: 6px; height: 38px; padding: 0 12px; border: 1px solid #3a4f6e; border-radius: 10px; background: transparent; color: #d5dfed; font-size: 12.5px; font-weight: 550; cursor: pointer; transition: border-color .16s ease, color .16s ease; }
.tool-button:hover { border-color: var(--brass-bright); color: var(--brass-bright); }
.generate-button { display: inline-flex; align-items: center; gap: 8px; height: 42px; padding: 0 18px; border: 0; border-radius: 10px; background: linear-gradient(135deg, #efd06b, var(--brass)); color: #101824; font-size: 13.5px; font-weight: 750; cursor: pointer; white-space: nowrap; transition: transform .16s ease, filter .16s ease; }
.generate-button:hover { transform: translateY(-1px); filter: brightness(1.05); }
.creator-output { display: block; margin: 12px 0 0; padding-top: 10px; border-top: 1px solid rgba(255, 255, 255, .09); color: #a7b6ca; font-size: 12px; line-height: 1.5; }
.spin { animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Curated Museum Cover Exhibition & Interactive Lightbox ---------- */
.home-section-portfolio {
  background: linear-gradient(180deg, #0b1424 0%, #0e1a2e 100%);
  color: var(--ink);
  border-top: 1px solid rgba(255, 255, 255, .07);
  border-bottom: 1px solid rgba(255, 255, 255, .07);
}
.portfolio-wrap { width: 100%; }
.portfolio-header {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px 32px;
  margin-bottom: 24px;
}
.portfolio-header h2 {
  margin: 10px 0 10px;
  font-family: var(--font-display);
  font-size: clamp(32px, 3.8vw, 48px);
  line-height: 1.07;
  letter-spacing: -.03em;
  font-weight: 600;
}
.portfolio-header p {
  margin: 0;
  max-width: 650px;
  font-size: 15px;
  line-height: 1.75;
  color: var(--text-muted);
}
.portfolio-dark .portfolio-header h2 { color: #faf6ee; }
.portfolio-dark .portfolio-header p { color: #b7c4d8; }
.portfolio-light .kicker { color: var(--brass-deep); }

.portfolio-tier-switch {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px;
  border-radius: 999px;
  border: 1px solid var(--paper-line);
  background: rgba(15, 27, 45, .04);
}
.portfolio-dark .portfolio-tier-switch {
  border-color: rgba(255, 255, 255, .14);
  background: rgba(255, 255, 255, .04);
}
.portfolio-tier-switch button {
  min-height: 36px;
  padding: 0 14px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--text-muted);
  font-size: 12.5px;
  font-weight: 650;
  white-space: nowrap;
  cursor: pointer;
  transition: background .18s ease, color .18s ease;
}
.portfolio-dark .portfolio-tier-switch button { color: #b7c5d8; }
.portfolio-tier-switch button:hover { color: var(--text); }
.portfolio-dark .portfolio-tier-switch button:hover { color: #ffffff; }
.portfolio-tier-switch button.active {
  background: var(--ink-navy);
  color: #faf6ee;
}
.portfolio-dark .portfolio-tier-switch button.active {
  background: var(--brass);
  color: #101824;
}

.portfolio-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 34px;
}
.portfolio-filters button {
  display: inline-flex;
  align-items: center;
  padding: 9px 16px;
  border-radius: 999px;
  border: 1px solid var(--paper-line);
  background: #fffdf8;
  color: var(--text);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all .16s ease;
}
.portfolio-filters button:hover { border-color: var(--brass-deep); }
.portfolio-filters button.active { background: var(--ink-navy); border-color: var(--ink-navy); color: #faf6ee; }

.portfolio-dark .portfolio-filters button {
  border-color: rgba(255, 255, 255, .13);
  background: rgba(255, 255, 255, .04);
  color: #d4deec;
}
.portfolio-dark .portfolio-filters button:hover { border-color: rgba(232, 198, 90, .5); color: #ffffff; }
.portfolio-dark .portfolio-filters button.active {
  background: var(--brass);
  border-color: var(--brass);
  color: #101824;
}

.exhibition-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 32px 24px;
}
.gallery-piece {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  text-align: left;
  cursor: pointer;
  outline: 0;
}
.gallery-piece:focus-visible .gallery-plinth {
  box-shadow: 0 0 0 2.5px var(--brass-bright);
}
.gallery-plinth {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  aspect-ratio: 4 / 5;
  padding: 26px 20px;
  border-radius: 18px;
  overflow: hidden;
  transition: border-color .28s ease, box-shadow .32s ease, background .28s ease;
}
.portfolio-dark .gallery-plinth {
  background: radial-gradient(circle at 50% 34%, rgba(36, 56, 86, .68) 0%, rgba(12, 21, 36, .95) 84%);
  border: 1px solid rgba(255, 255, 255, .08);
}
.portfolio-dark .gallery-piece:hover .gallery-plinth {
  border-color: rgba(232, 198, 90, .42);
  box-shadow: 0 24px 54px rgba(0, 0, 0, .48);
}
.portfolio-light .gallery-plinth {
  background: linear-gradient(180deg, #ede5d4 0%, #e4d9c3 100%);
  border: 1px solid rgba(22, 33, 50, .08);
}
.portfolio-light .gallery-piece:hover .gallery-plinth {
  border-color: rgba(154, 121, 16, .45);
  box-shadow: 0 22px 46px rgba(24, 19, 10, .14);
}
.gallery-book-lift {
  display: block;
  width: min(172px, 76%);
  transition: transform .38s cubic-bezier(.22, 1, .36, 1), filter .32s ease;
}
.gallery-book-lift .cover-mock {
  --cover-w: 100%;
  box-shadow: 0 24px 44px rgba(4, 9, 18, .48), 0 6px 14px rgba(4, 9, 18, .28), inset 0 0 0 1px rgba(255, 255, 255, .14);
}
.gallery-piece:hover .gallery-book-lift {
  transform: translateY(-9px) scale(1.035);
}
.gallery-hover-cue {
  position: absolute;
  left: 50%;
  bottom: 14px;
  transform: translate(-50%, 8px);
  opacity: 0;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(9, 17, 30, .86);
  border: 1px solid rgba(232, 198, 90, .4);
  color: #faf6ee;
  font-size: 11.5px;
  font-weight: 650;
  letter-spacing: .02em;
  white-space: nowrap;
  backdrop-filter: blur(8px);
  pointer-events: none;
  transition: opacity .24s ease, transform .28s cubic-bezier(.22, 1, .36, 1);
}
.gallery-piece:hover .gallery-hover-cue,
.gallery-piece:focus-visible .gallery-hover-cue {
  opacity: 1;
  transform: translate(-50%, 0);
}

.gallery-caption {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 13px 4px 0;
}
.gallery-caption strong {
  font-family: var(--font-display);
  font-size: 17.5px;
  line-height: 1.2;
  font-weight: 600;
  color: var(--text);
  transition: color .18s ease;
}
.portfolio-dark .gallery-caption strong { color: #f7f3ea; }
.gallery-piece:hover .gallery-caption strong { color: var(--brass-deep); }
.portfolio-dark .gallery-piece:hover .gallery-caption strong { color: var(--brass-bright); }

.gallery-subline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 12px;
  color: var(--text-muted);
}
.portfolio-dark .gallery-subline { color: #95a7c0; }
.gallery-subline em {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-style: normal;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.gallery-subline em::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
}
.tier-dot-free { color: #197a4f; }
.tier-dot-free::before { background: #22a86b; }
.portfolio-dark .tier-dot-free { color: #7ee3b4; }
.portfolio-dark .tier-dot-free::before { background: #5be3a5; }
.tier-dot-studio { color: var(--brass-deep); }
.tier-dot-studio::before { background: var(--brass); }
.portfolio-dark .tier-dot-studio { color: var(--brass-bright); }
.portfolio-dark .tier-dot-studio::before { background: var(--brass-bright); }

.exhibition-more {
  display: flex;
  justify-content: center;
  margin-top: 40px;
}
.portfolio-light .exhibition-more .button-outline {
  color: var(--ink-navy);
  border-color: rgba(15, 27, 45, .3);
}
.portfolio-light .exhibition-more .button-outline:hover {
  background: rgba(15, 27, 45, .06);
  border-color: var(--ink-navy);
}

/* ---------- Full-Screen Interactive Museum Lightbox ---------- */
.lightbox-backdrop {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(5, 10, 19, .82);
  backdrop-filter: blur(14px);
}
.lightbox-shell {
  position: relative;
  display: grid;
  grid-template-columns: 1.04fr .96fr;
  width: min(1080px, 100%);
  max-height: min(88vh, 780px);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 26px;
  background: #0e1a2c;
  color: #f4f7fb;
  box-shadow: 0 42px 110px rgba(0, 0, 0, .7);
}
.lightbox-close {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 5;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 50%;
  background: rgba(9, 17, 30, .82);
  color: #e6edf7;
  cursor: pointer;
  transition: border-color .16s ease, color .16s ease;
}
.lightbox-close:hover { border-color: var(--brass-bright); color: var(--brass-bright); }

.lightbox-stage {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 26px 28px 22px;
  background: radial-gradient(circle at 50% 42%, rgba(34, 54, 84, .88) 0%, #091322 76%);
  border-right: 1px solid rgba(255, 255, 255, .09);
}
.lightbox-stage-modes {
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, .13);
  background: rgba(255, 255, 255, .04);
}
.lightbox-stage-modes button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 34px;
  padding: 0 13px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #b7c5d8;
  font-size: 12px;
  font-weight: 650;
  cursor: pointer;
  transition: all .16s ease;
}
.lightbox-stage-modes button:hover { color: #ffffff; }
.lightbox-stage-modes button.active {
  background: var(--brass);
  color: #101824;
}

.lightbox-book-stage {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 410px;
  perspective: 1200px;
}
.lightbox-3d-book {
  position: relative;
  transform-style: preserve-3d;
  transition: transform .5s cubic-bezier(.22, 1, .36, 1);
}
.lightbox-book-stage.view-editorial .cover-mock {
  --cover-w: 266px;
  box-shadow: 0 34px 72px rgba(0, 0, 0, .65), inset 0 0 0 1px rgba(255, 255, 255, .15);
}
.lightbox-book-stage.view-3d .lightbox-3d-book {
  transform: rotateY(-25deg) rotateX(5deg) translateX(-8px);
}
.lightbox-book-stage.view-3d .cover-mock {
  --cover-w: 254px;
  border-radius: 3px 5px 5px 3px;
  box-shadow: -18px 34px 60px rgba(0, 0, 0, .68), inset 0 0 0 1px rgba(255, 255, 255, .16);
}
.book-3d-pages {
  position: absolute;
  top: 4px;
  bottom: 4px;
  right: -22px;
  width: 24px;
  transform-origin: left center;
  transform: rotateY(76deg);
  border-radius: 0 3px 3px 0;
  background:
    repeating-linear-gradient(90deg, #ede5d4 0 2px, #dfd5c0 2px 4px);
  box-shadow: inset -4px 0 10px rgba(0, 0, 0, .28), 6px 14px 26px rgba(0, 0, 0, .45);
}
.lightbox-thumb-caption {
  max-width: 320px;
  margin: 20px 0 0;
  color: #a9b9cf;
  font-size: 12.5px;
  line-height: 1.55;
  text-align: center;
}

.lightbox-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, .08);
}
.lightbox-nav button {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 13px;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 9px;
  background: rgba(255, 255, 255, .04);
  color: #dce5f2;
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  transition: border-color .16s ease, color .16s ease;
}
.lightbox-nav button:hover { border-color: var(--brass-bright); color: var(--brass-bright); }

.lightbox-inspector {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 32px 32px 26px;
  overflow-y: auto;
  text-align: left;
}
.lightbox-badges {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding-right: 36px;
}
.lightbox-badges span {
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .07);
  border: 1px solid rgba(255, 255, 255, .1);
  color: #dce5f2;
  font-size: 11px;
  font-weight: 650;
}
.lightbox-badges em {
  font-style: normal;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
}
.lightbox-inspector h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 30px;
  line-height: 1.1;
  letter-spacing: -.02em;
  color: #faf6ee;
}
.lightbox-craft-note {
  margin: 0;
  color: #b7c5d8;
  font-size: 14px;
  line-height: 1.65;
}
.lightbox-live-try {
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, .11);
  border-radius: 16px;
  background: rgba(255, 255, 255, .035);
}
.lightbox-live-try > span {
  display: block;
  margin-bottom: 11px;
  color: var(--brass-bright);
  font-size: 11.5px;
  font-weight: 750;
  letter-spacing: .09em;
  text-transform: uppercase;
}
.lightbox-inputs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.lightbox-inputs label { display: flex; flex-direction: column; gap: 5px; }
.lightbox-inputs label span { color: #c7d4e5; font-size: 12px; font-weight: 600; }
.lightbox-inputs input {
  width: 100%;
  height: 40px;
  padding: 0 12px;
  border: 1.5px solid #384e6f;
  border-radius: 9px;
  background: #0b1525;
  color: #ffffff;
  font-size: 13.5px;
}
.lightbox-inputs input:focus { border-color: var(--brass-bright); outline: 0; }

.lightbox-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.lightbox-actions .checkout-control { margin-top: 0; }
.lightbox-actions .button { width: 100%; }
.lightbox-paid-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.lightbox-paid-split .button { padding: 0 12px; font-size: 13px; }
.lightbox-secondary-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 10px;
  background: transparent;
  color: #dce5f2;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: border-color .16s ease, color .16s ease;
}
.lightbox-secondary-btn:hover { border-color: var(--brass-bright); color: var(--brass-bright); }
.lightbox-foot-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 20px;
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, .09);
}
.lightbox-foot-links a {
  color: #9eb0c9;
  font-size: 12.5px;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.lightbox-foot-links a:hover { color: var(--brass-bright); }

/* ---------- Clean Art-Gallery Blueprints (Homepage & /templates) ---------- */
.blueprint-gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 30px 24px;
}
.blueprint-gallery-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.blueprint-piece {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
}
.blueprint-plinth {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 4 / 5;
  padding: 26px 20px;
  border-radius: 18px;
  background: linear-gradient(180deg, #ede5d4 0%, #e3d8c1 100%);
  border: 1px solid rgba(15, 27, 45, .08);
  transition: border-color .24s ease, box-shadow .28s ease;
}
.blueprint-plinth .cover-mock {
  --cover-w: min(168px, 74%);
  transition: transform .36s cubic-bezier(.22, 1, .36, 1), box-shadow .36s ease;
  box-shadow: 0 22px 42px rgba(15, 27, 45, .28), 0 4px 10px rgba(15, 27, 45, .16);
}
.blueprint-piece:hover .blueprint-plinth {
  border-color: rgba(154, 121, 16, .48);
  box-shadow: 0 20px 44px rgba(31, 23, 8, .12);
}
.blueprint-piece:hover .blueprint-plinth .cover-mock {
  transform: translateY(-8px) scale(1.03);
}
.blueprint-caption {
  padding: 13px 4px 0;
}
.blueprint-caption h2,
.blueprint-caption h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 18px;
  line-height: 1.22;
  font-weight: 600;
  color: var(--text);
  transition: color .18s ease;
}
.blueprint-piece:hover .blueprint-caption h2,
.blueprint-piece:hover .blueprint-caption h3 {
  color: var(--brass-deep);
}
.blueprint-caption p {
  margin: 4px 0 0;
  color: var(--text-muted);
  font-size: 12.5px;
  line-height: 1.45;
}

/* ---------- Start Free Studio Login & Upgrade Modal ---------- */
.studio-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 210;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(5, 10, 19, .8);
  backdrop-filter: blur(12px);
}
.studio-modal {
  position: relative;
  width: min(490px, 100%);
  max-height: 92vh;
  overflow-y: auto;
  padding: 34px 32px 28px;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 24px;
  background: linear-gradient(160deg, #132238 0%, #0b1525 100%);
  color: #f4f7fb;
  box-shadow: 0 40px 100px rgba(0, 0, 0, .68);
  text-align: left;
}
.studio-modal-wide {
  width: min(860px, 100%);
}
.studio-modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, .15);
  border-radius: 50%;
  background: rgba(255, 255, 255, .04);
  color: #dce5f2;
  cursor: pointer;
}
.studio-modal-close:hover { border-color: var(--brass-bright); color: var(--brass-bright); }
.studio-modal h2 {
  margin: 12px 0 10px;
  font-family: var(--font-display);
  font-size: clamp(24px, 3vw, 32px);
  line-height: 1.12;
  color: #faf6ee;
}
.studio-modal-login > p,
.studio-modal-head > p {
  margin: 0 0 18px;
  color: #b7c5d8;
  font-size: 14px;
  line-height: 1.65;
}
.studio-modal-bullets {
  list-style: none;
  margin: 0 0 22px;
  padding: 0;
  display: grid;
  gap: 10px;
}
.studio-modal-bullets li {
  display: flex;
  align-items: center;
  gap: 9px;
  color: #e4ecf7;
  font-size: 13.5px;
}
.studio-modal-bullets svg { color: var(--brass-bright); flex-shrink: 0; }
.studio-google-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 11px;
  width: 100%;
  min-height: 50px;
  padding: 0 20px;
  border-radius: 12px;
  background: #ffffff;
  color: #101824;
  font-size: 14.5px;
  font-weight: 700;
  box-shadow: 0 14px 32px rgba(0, 0, 0, .32);
  transition: transform .16s ease, box-shadow .16s ease;
}
.studio-google-cta:hover { transform: translateY(-1px); box-shadow: 0 18px 36px rgba(0, 0, 0, .4); }
.studio-modal-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  margin-top: 12px;
  padding: 10px 14px;
  border: 0;
  background: transparent;
  color: #b5c4d8;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}
.studio-modal-ghost:hover { color: var(--brass-bright); }

.studio-upgrade-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 20px;
}
.studio-upgrade-card {
  display: flex;
  flex-direction: column;
  padding: 20px;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 18px;
  background: rgba(255, 255, 255, .04);
}
.studio-upgrade-card.featured {
  border-color: rgba(232, 198, 90, .55);
  background: linear-gradient(180deg, rgba(201, 162, 39, .14), rgba(255, 255, 255, .04));
}
.studio-upgrade-card small {
  color: var(--brass-bright);
  font-size: 11px;
  font-weight: 750;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.studio-upgrade-card h3 {
  margin: 10px 0 4px;
  font-family: var(--font-display);
  font-size: 34px;
  color: #faf6ee;
}
.studio-upgrade-card strong {
  display: block;
  margin-bottom: 8px;
  color: #f0f4fa;
  font-size: 14.5px;
}
.studio-upgrade-card p {
  margin: 0 0 18px;
  color: #aebed4;
  font-size: 12.5px;
  line-height: 1.55;
  flex: 1;
}
.studio-upgrade-card .button { width: 100%; min-height: 42px; font-size: 13px; }
.studio-modal-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, .1);
}
.studio-modal-footer .studio-modal-ghost { width: auto; margin-top: 0; padding: 6px 0; }
.studio-modal-footer a { color: var(--brass-bright); font-size: 13px; font-weight: 650; text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Home sections ---------- */
.home-section { padding: var(--space-section) 0; }
.home-section-dark { background: var(--ink-deep); color: var(--ink); }
.home-section-light { background: var(--paper); color: var(--text); }
.home-section-paper { background: var(--paper-2); color: var(--text); }
.home-section-light .kicker, .home-section-paper .kicker, .home-section-light .eyebrow, .home-section-paper .eyebrow { color: var(--brass-deep); }
.section-heading { margin-bottom: 42px; }
.section-heading h2, .faq-layout h2 { margin: 8px 0 0; font-family: var(--font-display); font-size: clamp(30px, 3.6vw, 46px); line-height: 1.1; letter-spacing: -.03em; font-weight: 600; }
.section-heading > p { max-width: 560px; margin: 12px 0 0; color: var(--text-muted); font-size: 15px; line-height: 1.75; }
.split-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 36px; }
.split-heading > p { max-width: 460px; margin: 0; color: var(--text-muted); font-size: 14.5px; line-height: 1.8; }
.split-heading > p a { color: var(--ink-navy); font-weight: 650; text-decoration: underline; text-underline-offset: 3px; }
.centered-heading { max-width: 700px; margin: 0 auto 52px; text-align: center; }
.centered-heading p { color: var(--text-muted); line-height: 1.75; }

.value-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.value-card { display: flex; flex-direction: column; min-height: 278px; padding: 30px; border: 1px solid var(--paper-line); border-radius: var(--radius-card); background: #fffdf9; }
.value-card small { color: var(--brass-deep); font-size: 11px; font-weight: 750; letter-spacing: .15em; text-transform: uppercase; }
.value-card h3 { margin: 22px 0 10px; font-family: var(--font-display); font-size: 25px; letter-spacing: -.02em; font-weight: 600; }
.value-card p { margin: 0; color: var(--text-muted); font-size: 14px; line-height: 1.75; }
.value-card a { display: inline-flex; align-items: center; gap: 6px; margin-top: auto; padding-top: 22px; color: var(--brass-deep); font-size: 13.5px; font-weight: 700; white-space: nowrap; }
.value-card a:hover { color: var(--text); }
.value-icon { width: 46px; height: 46px; display: grid; place-items: center; margin-bottom: 18px; border-radius: 13px; background: var(--ink-navy); color: var(--brass-bright); }

.tools-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; }
.tool-tile { position: relative; display: flex; flex-direction: column; min-height: 240px; padding: 22px; border: 1px solid var(--paper-line); border-radius: 18px; background: #fffdf9; transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
.tool-tile:hover { transform: translateY(-4px); border-color: var(--brass); box-shadow: 0 20px 44px rgba(31, 23, 13, .1); }
.tool-tile .eyebrow { padding: 0; border: 0; background: none; font-size: 10.5px; letter-spacing: .12em; }
.tool-tile h3 { margin: 14px 0 8px; font-family: var(--font-display); font-size: 20px; line-height: 1.2; letter-spacing: -.02em; }
.tool-tile p { margin: 0; color: var(--text-muted); font-size: 13px; line-height: 1.6; }
.tool-tile .tool-tags { margin-top: auto; padding-top: 16px; color: var(--brass-deep); font-size: 11.5px; font-weight: 650; }
.tool-tile > svg { position: absolute; right: 18px; bottom: 18px; color: var(--brass-deep); }

.calc-band { padding: 38px 42px; border-radius: 26px; border: 1px solid rgba(255, 255, 255, .1); background: linear-gradient(135deg, #101e33, #152842 60%, #102032); color: var(--ink); }
.calc-panel { display: grid; grid-template-columns: 1.08fr .92fr; gap: clamp(28px, 4.5vw, 64px); align-items: center; }
.calc-panel h2 { margin: 10px 0 14px; font-family: var(--font-display); font-size: clamp(30px, 3.6vw, 44px); line-height: 1.08; letter-spacing: -.03em; font-weight: 600; color: #faf6ee; }
.calc-panel > div > p { max-width: 530px; margin: 0 0 24px; color: #c0cce0; font-size: 15px; line-height: 1.8; }
.calc-panel > div > p a { color: var(--brass-bright); text-decoration: underline; text-underline-offset: 3px; }
.calc-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.calc-sheet { padding: 24px; border: 1px solid rgba(232, 198, 90, .28); border-radius: 18px; background: rgba(9, 17, 30, .72); }
.calc-sheet h3 { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 0 0 14px; color: var(--ink); font-family: var(--font-display); font-size: 19px; font-weight: 600; }
.calc-sheet h3 span { color: var(--brass-bright); font-family: var(--font-ui); font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.calc-sheet dl { display: grid; grid-template-columns: 1fr auto; gap: 0; margin: 0; }
.calc-sheet dt, .calc-sheet dd { margin: 0; padding: 11px 0; border-top: 1px solid rgba(255, 255, 255, .09); font-size: 13.5px; }
.calc-sheet dt { color: #a7b6ca; }
.calc-sheet dd { color: #faf6ee; font-weight: 600; font-variant-numeric: tabular-nums; }
.calc-sheet footer { margin-top: 14px; color: #95a5bc; font-size: 12px; line-height: 1.6; }

.template-showcase { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.showcase-card { display: flex; flex-direction: column; padding: 20px; border: 1px solid var(--paper-line); border-radius: 20px; background: #fffdf9; transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
.showcase-card:hover { transform: translateY(-4px); border-color: var(--brass); box-shadow: 0 24px 48px rgba(31, 23, 13, .12); }
.showcase-card .cover-mock { margin: 4px auto 18px; transition: transform .3s ease; }
.showcase-card:hover .cover-mock { transform: translateY(-4px) rotate(-1deg); }
.showcase-card small { color: var(--brass-deep); font-size: 10.5px; font-weight: 750; letter-spacing: .14em; text-transform: uppercase; }
.showcase-card h3 { margin: 8px 0 6px; font-family: var(--font-display); font-size: 19px; line-height: 1.25; letter-spacing: -.02em; }
.showcase-card p { margin: 0; color: var(--text-muted); font-size: 13px; line-height: 1.6; }
.showcase-card em { display: inline-flex; align-items: center; gap: 5px; margin-top: auto; padding-top: 14px; color: var(--brass-deep); font-size: 12.5px; font-style: normal; font-weight: 700; }

/* Fixed 2-column Services Panel (ZERO empty left void!) */
.services-panel {
  display: grid;
  grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr);
  gap: clamp(32px, 5vw, 68px);
  align-items: center;
  padding: clamp(28px, 4vw, 48px);
  border: 1px solid var(--paper-line);
  border-radius: 26px;
  background: var(--paper-2);
}
.services-intro h2 { margin: 10px 0 14px; font-family: var(--font-display); font-size: clamp(32px, 3.6vw, 46px); line-height: 1.08; letter-spacing: -.03em; font-weight: 600; color: var(--text); }
.services-intro > p { margin: 0 0 18px; color: var(--text-muted); font-size: 15px; line-height: 1.8; }
.services-checks { list-style: none; padding: 0; margin: 0 0 24px; display: grid; gap: 9px; }
.services-checks li { display: flex; align-items: center; gap: 9px; color: var(--text); font-size: 14px; font-weight: 550; }
.services-checks svg { color: var(--brass-deep); flex-shrink: 0; }
.services-note { margin: 18px 0 0 !important; color: var(--text-muted); font-size: 13px !important; line-height: 1.65 !important; }
.services-note a { color: var(--ink-navy); font-weight: 650; text-decoration: underline; text-underline-offset: 3px; }

.price-strip { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.price-item {
  display: flex;
  flex-direction: column;
  padding: 22px;
  border: 1px solid var(--paper-line);
  border-radius: 18px;
  background: #fffdf9;
}
.price-item small { display: block; color: var(--brass-deep); font-size: 11px; font-weight: 750; letter-spacing: .09em; text-transform: uppercase; }
.price-item strong { display: block; margin: 10px 0 6px; font-family: var(--font-display); font-size: 32px; font-weight: 650; letter-spacing: -.025em; color: var(--text); }
.price-item > span { color: var(--text-muted); font-size: 13px; line-height: 1.6; margin-bottom: 16px; }
.price-item .checkout-control { margin-top: auto; }
.price-item .button { min-height: 40px; font-size: 13px; padding: 0 14px; width: 100%; }
.price-item-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: auto;
  min-height: 40px;
  padding: 0 14px;
  border-radius: 10px;
  border: 1.5px solid rgba(15, 27, 45, .24);
  color: var(--ink-navy);
  font-size: 13px;
  font-weight: 700;
  transition: all .16s ease;
}
.price-item-link:hover { background: var(--ink-navy); color: #faf6ee; border-color: var(--ink-navy); }
.price-item.featured {
  border-color: var(--brass);
  background: var(--ink-navy);
  color: #faf6ee;
  box-shadow: 0 20px 44px rgba(15, 27, 45, .22);
}
.price-item.featured small { color: var(--brass-bright); }
.price-item.featured strong { color: #faf6ee; }
.price-item.featured > span { color: #c4cfdf; }

.faq-section { padding: calc(var(--space-section) * .85) 0 var(--space-section); color: var(--text); }
.faq-layout { display: grid; grid-template-columns: .82fr 1.18fr; gap: clamp(32px, 6vw, 90px); }
.faq-layout > div:first-child > p { color: var(--text-muted); font-size: 15px; line-height: 1.8; margin: 14px 0 24px; }
.faq-layout > div:first-child > p a { color: var(--ink-navy); font-weight: 650; text-decoration: underline; }
.faq-layout details { border-top: 1px solid var(--paper-line); }
.faq-layout details:last-child { border-bottom: 1px solid var(--paper-line); }
.faq-layout summary { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 20px 0; list-style: none; cursor: pointer; font-size: 15.5px; font-weight: 650; color: var(--text); }
.faq-layout summary::-webkit-details-marker { display: none; }
.faq-layout summary span { color: var(--brass-deep); font-size: 20px; font-weight: 400; transition: transform .2s ease; }
.faq-layout details[open] summary span { transform: rotate(45deg); }
.faq-layout details p { margin: -4px 40px 20px 0; color: var(--text-muted); font-size: 14px; line-height: 1.8; }

.disclaimer-bar { display: flex; align-items: flex-start; gap: 12px; padding: 18px 22px; border-radius: 14px; background: var(--ink-navy); color: #b7c3d4; font-size: 13px; line-height: 1.7; }
.disclaimer-bar p { margin: 0; }
.disclaimer-bar svg { flex: 0 0 auto; margin-top: 2px; color: var(--brass-bright); }
.disclaimer-bar a { color: var(--brass-bright); text-decoration: underline; text-underline-offset: 2px; }

.cta-card { min-height: 220px; padding: 48px 54px; display: flex; align-items: center; justify-content: space-between; gap: 32px; border: 1px solid rgba(232, 198, 90, .28); border-radius: 26px; background: radial-gradient(circle at 15% 0%, rgba(201, 162, 39, .14), transparent 44%), linear-gradient(125deg, #13253e, #1a3252 60%, #13263e); }
.cta-card h2 { max-width: 600px; margin: 12px 0 10px; font-family: var(--font-display); font-size: clamp(30px, 3.4vw, 44px); line-height: 1.08; letter-spacing: -.03em; font-weight: 600; color: #faf6ee; }
.cta-card p { margin: 0; color: #c0cce0; font-size: 15px; line-height: 1.7; }

/* Directory / listing / content pages */
.directory-page, .templates-page, .studio-page, .guides-page, .faq-page, .pricing-page, .content-page, .blog-index, .article-page, .template-detail { min-height: 100vh; background: var(--paper); color: var(--text); }
.directory-page .kicker, .templates-page .kicker, .studio-page .kicker, .guides-page .kicker, .faq-page .kicker, .pricing-page .kicker, .content-page .kicker, .blog-index .kicker, .article-page .kicker, .template-detail .kicker { color: var(--brass-deep); }
.directory-hero { padding: 76px 0 46px; text-align: center; }
.directory-hero h1, .studio-page h1, .guides-page h1, .faq-page h1, .pricing-page h1 { max-width: 850px; margin: 14px auto 18px; font-family: var(--font-display); font-size: clamp(40px, 5.2vw, 62px); line-height: 1.04; letter-spacing: -.035em; font-weight: 600; }
.directory-hero > p, .guides-page > .section-shell > p, .faq-page > .section-shell > p, .pricing-page > .section-shell > p { max-width: 680px; margin: 0 auto; color: var(--text-muted); font-size: 16px; line-height: 1.8; }
.directory-stats { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 28px; }
.directory-stats span { padding: 9px 14px; border: 1px solid var(--paper-line); border-radius: 99px; color: var(--text-muted); font-size: 12px; background: #fffdf9; }
.directory-stats strong { color: var(--brass-deep); }
.directory-body { padding-bottom: 100px; }
.directory-controls { display: flex; align-items: center; gap: 12px; }
.search-field { height: 52px; flex: 1; display: flex; align-items: center; gap: 10px; padding: 0 18px; border: 1px solid var(--paper-line); border-radius: 15px; background: #fffdf9; color: #4b5563; box-shadow: 0 10px 30px rgba(34, 24, 8, .05); }
.search-field input { width: 100%; border: 0; outline: 0; background: transparent; color: var(--text); font-size: 14.5px; }
.sort-field { height: 52px; display: flex; align-items: center; gap: 8px; padding: 0 14px; border: 1px solid var(--paper-line); border-radius: 15px; background: #fffdf9; color: var(--text-muted); }
.sort-field select { border: 0; outline: 0; background: transparent; color: inherit; }
.category-pills { display: flex; flex-wrap: wrap; gap: 8px; margin: 20px 0 16px; }
.category-pills button, .template-sort button { padding: 9px 15px; border: 1px solid var(--paper-line); border-radius: 99px; background: #fffdf9; color: var(--text-muted); font-size: 13px; font-weight: 600; cursor: pointer; }
.category-pills button span { color: #8c8475; }
.category-pills button.active, .template-sort button.active { border-color: var(--ink-navy); background: var(--ink-navy); color: var(--paper); }
.result-count { margin: 20px 0 16px; color: var(--text-muted); font-size: 13px; }
.directory-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.directory-card { overflow: hidden; border: 1px solid var(--paper-line); border-radius: 20px; background: #fffdf9; transition: transform .2s ease, box-shadow .2s ease; }
.directory-card:hover { transform: translateY(-4px); box-shadow: 0 22px 50px rgba(31, 23, 8, .12); }
.directory-image { position: relative; display: grid; place-items: center; padding: 24px; overflow: hidden; background: radial-gradient(circle at 50% 30%, #21344e, #0d1726 78%); }
.directory-image .cover-mock { --cover-w: 132px; transition: transform .35s ease; }
.directory-card:hover .directory-image .cover-mock { transform: translateY(-4px) rotate(-1.5deg); }
.directory-image > span { position: absolute; top: 12px; left: 12px; padding: 5px 9px; border: 1px solid rgba(255, 255, 255, .16); border-radius: 99px; background: rgba(8, 15, 26, .66); color: #f2ecdd; font-size: 10px; font-weight: 700; letter-spacing: .08em; backdrop-filter: blur(10px); }
.directory-card-body { display: grid; grid-template-columns: 1fr auto; padding: 22px; }
.directory-card-body small { color: var(--brass-deep); font-size: 10.5px; font-weight: 750; letter-spacing: .12em; text-transform: uppercase; }
.directory-card-body h2 { margin: 5px 0 0; font-family: var(--font-display); font-size: 22px; letter-spacing: -.02em; }
.directory-card-body > svg { margin-top: 10px; color: var(--brass-deep); }
.directory-card-body > p { grid-column: 1 / -1; min-height: 44px; margin: 12px 0; color: var(--text-muted); font-size: 13.5px; line-height: 1.65; }
.directory-card-body > div:last-child { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 6px; }
.directory-card-body em, .template-tags span { padding: 5px 9px; border-radius: 7px; background: #ece5d6; color: #544d41; font-size: 11px; font-style: normal; font-weight: 550; }
.empty-state { min-height: 300px; padding: 28px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; border: 1px dashed var(--paper-line); border-radius: 22px; background: #fffdf9; }
.empty-state > div:first-child { width: 58px; height: 58px; display: grid; place-items: center; border-radius: 18px; background: #ece5d6; color: #5c4306; }
.empty-state h2 { margin: 16px 0 6px; font-family: var(--font-display); font-size: 22px; }
.empty-state p { margin: 0 0 18px; color: var(--text-muted); font-size: 14px; }
.empty-state > button { padding: 10px 16px; border: 0; border-radius: 9px; background: var(--ink-navy); color: var(--paper); font-size: 13.5px; font-weight: 600; cursor: pointer; }
.category-seo { padding: 84px 0; background: var(--ink-deep); color: var(--ink); }
.category-seo h2 { max-width: 720px; margin: 10px 0 38px; font-family: var(--font-display); font-size: 40px; letter-spacing: -.03em; font-weight: 600; }
.category-seo .section-shell > div { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; border: 1px solid var(--ink-line); background: var(--ink-line); }
.category-seo article { min-height: 180px; padding: 24px; background: var(--ink-deep); }
.category-seo h3 { margin: 0 0 8px; font-family: var(--font-display); font-size: 19px; }
.category-seo p { color: #aebcd0; font-size: 13.5px; line-height: 1.7; }

/* ---------- Tool detail (/free, /kindle-cover-generator, /3d-book-cover-creator, etc.) ---------- */
.tool-detail { min-height: 100vh; background: var(--ink-deep); color: var(--ink); }
.detail-hero { padding: 38px 0 56px; }
.breadcrumbs { display: flex; align-items: center; gap: 7px; margin-bottom: 36px; color: #90a0b8; font-size: 12.5px; }
.breadcrumbs a:hover { color: var(--brass-bright); }
.content-page .breadcrumbs, .template-detail .breadcrumbs, .article-page .breadcrumbs { color: var(--text-muted); }
.content-page .breadcrumbs a:hover, .template-detail .breadcrumbs a:hover { color: var(--brass-deep); }
.detail-hero-grid { display: grid; grid-template-columns: 1.08fr .92fr; gap: clamp(32px, 5vw, 64px); align-items: center; }
.detail-hero h1 { max-width: 700px; margin: 16px 0; font-family: var(--font-display); font-size: clamp(38px, 4.8vw, 58px); line-height: 1.04; letter-spacing: -.035em; font-weight: 600; color: #faf6ee; }
.detail-hero-grid > div:first-child > p { max-width: 600px; color: #c2cde0; font-size: 16px; line-height: 1.75; }
.detail-hero ul { display: flex; flex-wrap: wrap; gap: 10px 18px; padding: 0; margin: 22px 0 26px; list-style: none; }
.detail-hero li { display: flex; align-items: center; gap: 7px; color: #d5dfed; font-size: 13.5px; }
.detail-hero li svg { color: var(--brass-bright); flex-shrink: 0; }
.detail-visual { position: relative; display: grid; place-items: center; min-height: 400px; padding: 30px; overflow: hidden; border: 1px solid rgba(255, 255, 255, .12); border-radius: 26px; background: radial-gradient(circle at 50% 24%, #223855, #0c1726 74%); }
.detail-visual-stage { display: grid; place-items: center; }
.detail-visual .cover-mock { --cover-w: 214px; }
.detail-visual > span { position: absolute; left: 18px; bottom: 18px; padding: 7px 12px; border-radius: 99px; background: rgba(8, 14, 24, .76); border: 1px solid rgba(255, 255, 255, .12); color: #e9e2d2; font-size: 11.5px; backdrop-filter: blur(10px); }

.workbench-anchor-wrap { scroll-margin-top: 88px; }
.detail-content { margin-top: 84px; padding: 92px 0; background: var(--paper); color: var(--text); }
.detail-content .kicker { color: var(--brass-deep); }
.detail-intro { max-width: 800px; }
.detail-intro h2, .use-case-block h2, .related-section h2, .detail-faq h2 { margin: 10px 0 18px; font-family: var(--font-display); font-size: clamp(28px, 3.2vw, 40px); letter-spacing: -.03em; font-weight: 600; }
.detail-intro p { color: var(--text-muted); font-size: 16px; line-height: 1.85; }
.steps-grid { display: grid; grid-template-columns: repeat(3, 1fr); margin: 48px 0 72px; border: 1px solid var(--paper-line); border-radius: 20px; overflow: hidden; background: #fffdf9; }
.steps-grid article { min-height: 210px; padding: 28px; border-right: 1px solid var(--paper-line); }
.steps-grid article:last-child { border: 0; }
.steps-grid span { color: var(--brass-deep); font-size: 12px; font-weight: 750; letter-spacing: .08em; }
.steps-grid h3 { margin: 38px 0 10px; font-family: var(--font-display); font-size: 21px; }
.steps-grid p { margin: 0; color: var(--text-muted); font-size: 14px; line-height: 1.75; }
.use-case-block { display: grid; grid-template-columns: .8fr 1.2fr; gap: 68px; margin-bottom: 76px; }
.use-case-block > div:last-child { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.use-case-block article { padding: 24px; border: 1px solid var(--paper-line); border-radius: 16px; background: #fffdf9; }
.use-case-block h3 { margin: 0 0 8px; font-family: var(--font-display); font-size: 18px; }
.use-case-block p { margin: 0; color: var(--text-muted); font-size: 13.5px; line-height: 1.7; }
.related-section { margin: 72px 0; padding-top: 56px; border-top: 1px solid var(--paper-line); }
.template-mini-grid, .related-tool-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.template-mini-grid a { overflow: hidden; border: 1px solid var(--paper-line); border-radius: 17px; background: #fffdf9; transition: transform .2s ease, box-shadow .2s ease; }
.template-mini-grid a:hover { transform: translateY(-3px); box-shadow: 0 18px 40px rgba(15, 27, 45, .1); }
.template-mini-mock { display: grid; place-items: center; height: 244px; padding: 18px; background: radial-gradient(circle at 50% 35%, #21344e, #0d1726 78%); }
.template-mini-mock .cover-mock { --cover-w: 124px; }
.template-mini-grid span, .template-mini-grid p { display: block; padding-inline: 18px; }
.template-mini-grid span { margin-top: 16px; font-weight: 700; font-size: 15px; }
.template-mini-grid p { margin: 7px 0 18px; color: var(--text-muted); font-size: 13px; line-height: 1.6; }
.related-tool-grid a { position: relative; min-height: 180px; padding: 24px; border: 1px solid var(--paper-line); border-radius: 16px; background: #fffdf9; transition: border-color .16s ease; }
.related-tool-grid a:hover { border-color: var(--brass); }
.related-tool-grid a > span { color: var(--brass-deep); font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.related-tool-grid strong { display: block; margin: 12px 0 7px; font-family: var(--font-display); font-size: 20px; }
.related-tool-grid p { color: var(--text-muted); font-size: 13px; line-height: 1.65; }
.related-tool-grid svg { position: absolute; right: 20px; bottom: 20px; color: var(--brass-deep); }
.detail-faq { display: grid; grid-template-columns: .8fr 1.2fr; gap: 68px; padding-top: 56px; border-top: 1px solid var(--paper-line); }
.detail-faq details, .faq-list details { border-top: 1px solid var(--paper-line); }
.detail-faq details:last-child, .faq-list details:last-child { border-bottom: 1px solid var(--paper-line); }
.detail-faq summary, .faq-list summary { display: flex; justify-content: space-between; align-items: center; gap: 18px; padding: 20px 0; list-style: none; font-size: 15.5px; font-weight: 650; cursor: pointer; }
.detail-faq summary::-webkit-details-marker, .faq-list summary::-webkit-details-marker { display: none; }
.detail-faq details p, .faq-list details p { margin: -4px 30px 20px 0; color: var(--text-muted); font-size: 14px; line-height: 1.8; }
.faq-list { max-width: 820px; margin: 46px auto 0; }
.seo-copy { max-width: 820px; margin-top: 72px; padding-top: 44px; border-top: 1px solid var(--paper-line); }
.seo-copy h2 { font-family: var(--font-display); font-size: 30px; letter-spacing: -.02em; }
.seo-copy p { color: var(--text-muted); font-size: 15px; line-height: 1.85; }
.seo-copy a { color: var(--ink-navy); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.prose-grid { display: grid; grid-template-columns: 1fr 330px; gap: 80px; }
.prose-grid article { max-width: 680px; }
.prose-grid h2 { margin: 10px 0 26px; font-family: var(--font-display); font-size: 38px; line-height: 1.15; letter-spacing: -.03em; }
.prose-grid h3 { margin: 34px 0 8px; font-family: var(--font-display); font-size: 21px; }
.prose-grid p { color: var(--text-muted); font-size: 15.5px; line-height: 1.9; }
.prose-grid aside { align-self: start; padding: 26px; border: 1px solid var(--paper-line); border-radius: 18px; background: #fffdf9; }
.prose-grid aside h2 { margin: 0 0 18px; font-family: var(--font-display); font-size: 20px; }
.prose-grid ol { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.prose-grid li { display: grid; grid-template-columns: 60px 1fr; gap: 12px; padding-top: 14px; border-top: 1px solid var(--paper-line); font-size: 13px; }
.prose-grid li strong { color: var(--brass-deep); }
.prose-grid li span { color: var(--text-muted); }

/* ---------- Workbench (/free & tool studios — CRISP HIGH-CONTRAST READABLE TYPOGRAPHY) ---------- */
.workbench {
  display: grid;
  grid-template-columns: 472px minmax(0, 1fr);
  min-height: 760px;
  scroll-margin-top: 88px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 26px;
  background: #0e1a2c;
  box-shadow: 0 36px 90px rgba(0, 0, 0, .42);
  transition: box-shadow .35s ease, border-color .35s ease;
}
.workbench.workbench-focus-pulse {
  border-color: var(--brass-bright);
  box-shadow: 0 0 0 3px rgba(232, 198, 90, .38), 0 36px 90px rgba(0, 0, 0, .5);
}
.workbench-panel {
  padding: 26px 26px 28px;
  border-right: 1px solid rgba(255, 255, 255, .1);
  background: #0c1626;
}
.workbench-title { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; padding-bottom: 14px; border-bottom: 1px solid rgba(255, 255, 255, .09); }
.workbench-title > div { display: flex; align-items: center; gap: 9px; }
.workbench-title strong { font-size: 16px; font-weight: 700; color: #faf6ee; }
.workbench-title > span { color: #a7b8cf; font-size: 12px; font-weight: 500; }
.status-dot { width: 8px; height: 8px; border-radius: 50%; background: #5be3a5; box-shadow: 0 0 10px rgba(91, 227, 165, .85); flex-shrink: 0; }

.upload-zone { position: relative; min-height: 94px; display: flex; align-items: center; gap: 14px; padding: 16px; margin-bottom: 18px; border: 1.5px dashed #435775; border-radius: 14px; background: #122136; transition: border-color .2s ease, background .2s ease; }
.upload-zone.dragging { border-color: var(--brass-bright); background: rgba(201, 162, 39, .12); }
.upload-zone > input { position: absolute; opacity: 0; pointer-events: none; }
.upload-zone > svg { color: var(--brass-bright); flex: 0 0 auto; }
.upload-zone > div { flex: 1; min-width: 0; }
.upload-zone strong, .upload-zone span { display: block; }
.upload-zone strong { font-size: 13.5px; color: #f4f7fb; }
.upload-zone span { margin-top: 4px; color: #b4c3d7; font-size: 12px; line-height: 1.45; }
.upload-zone button { padding: 8px 13px; border: 1px solid #485e7d; border-radius: 9px; background: #1a2d47; color: #ffffff; font-size: 12.5px; font-weight: 600; cursor: pointer; white-space: nowrap; }
.upload-previews { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; margin-bottom: 16px; }
.upload-previews figure { position: relative; display: grid; grid-template-columns: 44px 1fr; gap: 8px; align-items: center; margin: 0; padding: 7px; border: 1px solid #384d6c; border-radius: 10px; background: #122136; overflow: hidden; }
.upload-previews img { width: 44px; height: 44px; border-radius: 7px; object-fit: cover; }
.upload-previews figcaption { overflow: hidden; color: #dbe4f2; font-size: 11.5px; white-space: nowrap; text-overflow: ellipsis; }
.upload-previews figcaption small { display: block; margin-top: 2px; color: #9eb0c9; font-size: 11px; }
.upload-previews button { position: absolute; top: 4px; right: 4px; border: 0; background: transparent; color: #aebed4; cursor: pointer; }
.file-preview { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 7px; background: #1d2f49; color: var(--brass-bright); }

.prompt-field { margin-top: 4px; }
.prompt-field > label { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 6px; color: #f4f7fb; font-size: 14px; font-weight: 700; }
.prompt-field > label span { color: #a7b8cf; font-size: 12px; font-weight: 500; }
.field-hint { margin: 0 0 10px; color: #b8c6da; font-size: 13px; line-height: 1.55; }
.prompt-field textarea {
  width: 100%;
  min-height: 118px;
  padding: 13px 14px;
  resize: vertical;
  border: 1.5px solid #3c5273;
  border-radius: 12px;
  outline: 0;
  background: #132238;
  color: #ffffff;
  font-size: 14.5px;
  line-height: 1.6;
}
.prompt-field textarea::placeholder { color: #8c9eb7; }
.prompt-field textarea:focus { border-color: var(--brass-bright); box-shadow: 0 0 0 3px rgba(232, 198, 90, .18); }

.prompt-toolbar { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.prompt-toolbar button, .advanced-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 34px;
  padding: 6px 11px;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 8px;
  background: rgba(255, 255, 255, .04);
  color: #d6e1f0;
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  transition: background .16s ease, border-color .16s ease, color .16s ease;
}
.prompt-toolbar button:hover { background: #1a2d47; border-color: rgba(232, 198, 90, .4); color: #ffffff; }
.prompt-toolbar button:disabled { opacity: .4; cursor: not-allowed; }

.prompt-examples { margin: 16px 0 20px; }
.prompt-examples > span { display: block; margin-bottom: 8px; color: #aebed4; font-size: 12px; font-weight: 650; text-transform: uppercase; letter-spacing: .07em; }
.prompt-example-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.prompt-example-chips button {
  padding: 7px 12px;
  border: 1px solid #384e6f;
  border-radius: 9px;
  background: #122035;
  color: #e2eaf6;
  font-size: 12.5px;
  font-weight: 500;
  line-height: 1.35;
  text-align: left;
  cursor: pointer;
  transition: border-color .16s ease, background .16s ease;
}
.prompt-example-chips button:hover { border-color: var(--brass-bright); background: #192b46; color: #ffffff; }

.parameter-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 14px; }
.parameter-grid label { min-width: 0; display: flex; flex-direction: column; }
.parameter-grid label > span { display: flex; flex-direction: column; gap: 3px; margin-bottom: 7px; color: #f0f4fa; font-size: 13px; font-weight: 650; }
.parameter-grid label small { color: #a7b8cf; font-size: 12px; font-weight: 400; line-height: 1.45; }
.parameter-grid select,
.parameter-grid input[type="text"],
.parameter-grid input[type="number"] {
  width: 100%;
  height: 44px;
  margin-top: auto;
  padding: 0 12px;
  border: 1.5px solid #3c5273;
  border-radius: 10px;
  background: #132238;
  color: #ffffff;
  font-size: 14px;
  font-weight: 500;
}
.parameter-grid select:focus,
.parameter-grid input:focus { border-color: var(--brass-bright); outline: 0; box-shadow: 0 0 0 3px rgba(232, 198, 90, .16); }
.toggle-field { min-height: 54px; flex-direction: row !important; justify-content: space-between; align-items: center; grid-column: 1 / -1; padding: 12px 14px; border: 1.5px solid #3c5273; border-radius: 11px; background: #132238; }
.toggle-field > span { margin: 0 !important; }
.toggle-field input { width: 22px; height: 22px; accent-color: var(--brass); }
.advanced-toggle { margin: 12px auto 4px; color: var(--brass-bright); }
.form-message { display: flex; align-items: center; gap: 8px; margin: 14px 0 0; padding: 11px 13px; border-radius: 10px; font-size: 13px; line-height: 1.5; }
.form-message.error { background: rgba(255, 94, 110, .14); color: #ffb4bc; border: 1px solid rgba(255, 94, 110, .3); }
.form-message.success { background: rgba(80, 210, 150, .14); color: #a3edd0; border: 1px solid rgba(80, 210, 150, .28); }
.workbench-submit {
  width: 100%;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  margin-top: 18px;
  border: 0;
  border-radius: 12px;
  background: linear-gradient(135deg, #efd06b, var(--brass));
  color: #101824;
  font-size: 15px;
  font-weight: 750;
  cursor: pointer;
  box-shadow: 0 12px 28px rgba(201, 162, 39, .28);
  transition: transform .16s ease, filter .16s ease;
}
.workbench-submit:hover { transform: translateY(-1px); filter: brightness(1.04); }
.workbench-submit:disabled { opacity: .65; cursor: wait; transform: none; }

/* Right Live Stage & Result Panel */
.result-panel {
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px;
  background: radial-gradient(circle at 50% 34%, rgba(201, 162, 39, .1), transparent 52%), #091220;
}
.result-live-stage { width: 100%; max-width: 560px; text-align: center; }
.result-live-head h2 { margin: 8px 0 8px; font-family: var(--font-display); font-size: 28px; line-height: 1.15; color: #faf6ee; }
.result-live-head p { margin: 0 auto 24px; max-width: 460px; color: #b7c5d8; font-size: 14px; line-height: 1.65; }
.result-live-book { display: flex; justify-content: center; padding: 12px 0 26px; }
.result-live-book .cover-mock { --cover-w: 220px; box-shadow: 0 28px 64px rgba(0, 0, 0, .6); }
.result-presets { margin-top: 6px; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, .1); text-align: left; }
.result-presets > span { display: block; margin-bottom: 11px; color: #aebed4; font-size: 12px; font-weight: 650; text-transform: uppercase; letter-spacing: .08em; }
.result-preset-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.result-preset-btn {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 9px 11px;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 12px;
  background: rgba(255, 255, 255, .04);
  text-align: left;
  cursor: pointer;
  transition: border-color .16s ease, background .16s ease;
}
.result-preset-btn:hover { border-color: var(--brass-bright); background: rgba(232, 198, 90, .09); }
.result-preset-btn img { width: 34px; height: 51px; border-radius: 4px; object-fit: cover; flex-shrink: 0; }
.result-preset-btn strong { display: block; color: #f6f2e8; font-size: 12.5px; font-weight: 650; }
.result-preset-btn small { display: block; margin-top: 2px; color: #9eb0c9; font-size: 11.5px; }

.result-empty, .result-progress { max-width: 440px; text-align: center; }
.result-empty > div:first-child { width: 58px; height: 58px; display: grid; place-items: center; margin: auto; border-radius: 18px; background: #1a2a40; color: var(--brass-bright); }
.result-empty h2, .result-progress h2 { margin: 18px 0 8px; font-family: var(--font-display); font-size: 26px; color: #faf6ee; }
.result-empty p, .result-progress p { color: #b4c2d5; font-size: 14px; line-height: 1.7; }
.result-empty > button, .result-progress > button { padding: 10px 16px; border: 1px solid #3c5273; border-radius: 9px; background: #132238; color: #e2eaf6; font-size: 13px; font-weight: 600; cursor: pointer; }
.result-progress > svg { color: var(--brass-bright); }
.result-progress > span { display: block; margin-top: 16px; color: var(--brass-bright); font-size: 11px; font-weight: 750; letter-spacing: .13em; text-transform: uppercase; }
.progress-track { height: 6px; margin: 20px 0 12px; overflow: hidden; border-radius: 99px; background: #1e2e46; }
.progress-track span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--brass), var(--brass-bright)); transition: width .4s ease; }

.result-success { width: 100%; }
.result-toolbar { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.result-toolbar > div { display: flex; align-items: center; gap: 9px; font-size: 13px; color: #e6edf7; font-weight: 600; }
.result-toolbar button { display: inline-flex; align-items: center; gap: 6px; padding: 7px 11px; border: 1px solid rgba(255, 255, 255, .14); border-radius: 8px; background: rgba(255, 255, 255, .04); color: #d5dfed; font-size: 12px; cursor: pointer; }
.result-toolbar button:hover { border-color: var(--brass-bright); color: #ffffff; }
.result-image { position: relative; min-height: 440px; padding: 28px; display: grid; place-items: center; overflow: hidden; border: 1px solid #2b3e5a; border-radius: 18px; background: radial-gradient(circle at 50% 35%, #1c304b, #0c1626 78%); }
.result-image-composed .cover-mock { --cover-w: 254px; box-shadow: 0 30px 64px rgba(0, 0, 0, .6); }
.result-watermark-pill { position: absolute; top: 14px; left: 14px; padding: 5px 10px; border-radius: 999px; background: rgba(9, 17, 30, .78); border: 1px solid rgba(232, 198, 90, .35); color: var(--brass-bright); font-size: 10.5px; font-weight: 700; letter-spacing: .12em; }
.result-image a { position: absolute; right: 14px; bottom: 14px; display: inline-flex; align-items: center; gap: 6px; padding: 8px 12px; border-radius: 9px; background: rgba(8, 14, 24, .78); border: 1px solid rgba(255, 255, 255, .16); color: var(--ink); font-size: 12px; font-weight: 600; backdrop-filter: blur(10px); }
.result-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 10px; margin-top: 14px; }
.result-actions .button { min-height: 42px; font-size: 13px; }
.result-actions > button { padding: 0 15px; min-height: 42px; border: 1px solid #3c5273; border-radius: 10px; background: transparent; color: #d5dfed; font-size: 13px; font-weight: 600; cursor: pointer; }
.preview-disclaimer { margin: 14px 0 0; color: #9db0c9; font-size: 12px; line-height: 1.65; }
.result-reality { display: flex; align-items: center; gap: 18px; margin-top: 16px; padding: 16px; border: 1px solid #2b3e5a; border-radius: 16px; background: #101e31; }
.result-reality .result-thumb { flex: 0 0 auto; display: flex; flex-direction: column; align-items: center; gap: 7px; }
.result-reality .result-thumb .cover-mock { --cover-w: 100px; }
.result-reality .result-thumb span { color: #a7b8cf; font-size: 11px; text-align: center; }
.result-reality strong { display: block; color: #f4f7fb; font-size: 14px; }
.result-reality p { margin: 6px 0 0; color: #b7c5d8; font-size: 13px; line-height: 1.6; }

/* ---------- Template gallery / detail ---------- */
.template-gallery { min-height: 500px; }
.template-sort { display: flex; gap: 6px; }
.template-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.template-grid > .template-card { position: relative; display: flex; flex-direction: column; padding: 18px 18px 22px; overflow: hidden; border: 1px solid var(--paper-line); border-radius: 20px; background: #fffdf9; transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
.template-grid > .template-card:hover { transform: translateY(-4px); border-color: var(--brass); box-shadow: 0 22px 48px rgba(31, 23, 8, .12); }
.template-cover { position: relative; display: grid; place-items: center; height: 268px; margin-bottom: 16px; border-radius: 13px; background: radial-gradient(circle at 50% 32%, #223753, #0d1726 78%); }
.template-cover .cover-mock { --cover-w: 138px; transition: transform .3s ease; }
.template-grid > .template-card:hover .template-cover .cover-mock { transform: translateY(-4px) rotate(-1deg); }
.template-cover > span { position: absolute; top: 10px; left: 10px; padding: 5px 9px; border-radius: 99px; background: var(--brass); color: #101824; font-size: 10px; font-weight: 750; }
.template-grid h2 { margin: 6px 0 8px; font-family: var(--font-display); font-size: 20px; line-height: 1.25; letter-spacing: -.015em; }
.template-grid h2 .template-card-link { display: inline; margin: 0; color: inherit; font-size: inherit; font-weight: inherit; line-height: inherit; letter-spacing: inherit; }
.template-grid h2 .template-card-link:hover { color: var(--brass-deep); text-decoration: underline; text-underline-offset: 2px; }
.template-card-trim { color: var(--text-muted); font-family: var(--font-ui); font-size: 12.5px; font-weight: 550; }
.template-grid p { min-height: 44px; margin: 0 0 14px; color: var(--text-muted); font-size: 13.5px; line-height: 1.6; }
.template-grid em { display: inline-flex; align-items: center; gap: 5px; margin-top: auto; color: var(--brass-deep); font-size: 12.5px; font-style: normal; font-weight: 700; }

.template-detail { padding: 40px 0 100px; }
.template-detail-grid { display: grid; grid-template-columns: .95fr 1.05fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.template-detail-image { display: grid; place-items: center; min-height: 540px; padding: 36px; border-radius: 28px; background: radial-gradient(circle at 50% 30%, #233855, #0c1726 76%); }
.template-detail-image .cover-mock { --cover-w: 280px; }
.template-detail h1 { margin: 16px 0; font-family: var(--font-display); font-size: clamp(36px, 4.6vw, 52px); line-height: 1.06; letter-spacing: -.035em; font-weight: 600; }
.template-detail-grid > div:last-child > p { color: var(--text-muted); font-size: 15.5px; line-height: 1.8; }
.template-tags { display: flex; flex-wrap: wrap; gap: 7px; margin: 18px 0; }
.template-prompt { margin: 22px 0; padding: 16px 18px; border: 1px solid var(--paper-line); border-radius: 14px; background: var(--paper-2); }
.template-prompt small { color: var(--brass-deep); font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.template-prompt p { margin: 6px 0 0 !important; color: var(--text) !important; font-size: 13.5px !important; line-height: 1.7; }
.template-note { display: block; margin-top: 12px; color: var(--text-muted); font-size: 12.5px; }

/* ---------- Blog / guides / studio / pricing ---------- */
.blog-index { padding: 76px 0 110px; }
.blog-index h1 { max-width: 760px; margin: 12px 0 18px; font-family: var(--font-display); font-size: clamp(40px, 5.2vw, 62px); line-height: 1.04; letter-spacing: -.035em; font-weight: 600; }
.lead { max-width: 640px; color: var(--text-muted); font-size: 17px; line-height: 1.8; }
.blog-feature { display: grid; grid-template-columns: .9fr 1.1fr; margin-top: 48px; overflow: hidden; border-radius: 24px; background: var(--ink-navy); color: var(--ink); }
.blog-feature > div { padding: 44px; }
.blog-feature span { color: var(--brass-bright); font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.blog-feature h2 { margin: 18px 0 14px; font-family: var(--font-display); font-size: 34px; line-height: 1.18; letter-spacing: -.03em; font-weight: 600; }
.blog-feature p { color: #c0cce0; font-size: 15px; line-height: 1.8; }
.blog-feature .button { margin-top: 24px; }
.blog-feature-visual { display: grid; place-items: center; min-height: 380px; padding: 32px; background: radial-gradient(circle at 50% 30%, #223855, #0c1726 76%); }
.blog-feature-visual .cover-mock { --cover-w: 196px; }
.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 44px; }
.blog-card { display: flex; flex-direction: column; padding: 22px; border: 1px solid var(--paper-line); border-radius: 18px; background: #fffdf9; transition: transform .2s ease, box-shadow .2s ease; }
.blog-card:hover { transform: translateY(-4px); box-shadow: 0 20px 44px rgba(31, 23, 8, .12); }
.blog-card small { color: var(--brass-deep); font-size: 10.5px; font-weight: 750; letter-spacing: .12em; text-transform: uppercase; }
.blog-card h2 { margin: 10px 0 8px; font-family: var(--font-display); font-size: 21px; line-height: 1.25; letter-spacing: -.02em; }
.blog-card p { margin: 0; color: var(--text-muted); font-size: 13.5px; line-height: 1.65; }
.blog-card em { margin-top: auto; padding-top: 16px; color: #7a7365; font-size: 12px; font-style: normal; }

.article-page { padding: 44px 0 110px; }
.article-shell { width: min(820px, calc(100% - 40px)); margin: auto; }
.article-shell h1 { margin: 16px 0 18px; font-family: var(--font-display); font-size: clamp(36px, 5vw, 54px); line-height: 1.06; letter-spacing: -.035em; font-weight: 600; }
.article-dek { color: var(--text-muted); font-size: 17.5px; line-height: 1.75; }
.article-meta { margin: 20px 0 34px; color: #7d776a; font-size: 12.5px; }
.article-hero-image { width: 100%; height: auto; border-radius: 20px; }
.article-figure { display: grid; place-items: center; margin: 34px 0 8px; padding: 34px; border-radius: 22px; background: radial-gradient(circle at 50% 30%, #223855, #0d1726 76%); }
.article-figure .cover-mock { --cover-w: 220px; }
.article-figure figcaption { margin-top: 16px; color: #a7b8cf; font-size: 12px; }
.article-body { max-width: 700px; margin: 46px auto 0; }
.article-body p { color: #364150; font-size: 16px; line-height: 1.95; }
.article-body h2 { margin: 44px 0 10px; font-family: var(--font-display); font-size: 29px; letter-spacing: -.025em; }
.article-body a { color: var(--brass-deep); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.article-body code { padding: 2px 6px; border-radius: 5px; background: #e9e0ce; color: #6b520e; font-size: 14px; }
.answer-block { padding: 20px 24px; border-left: 3.5px solid var(--brass); border-radius: 0 14px 14px 0; background: var(--paper-2); color: #1e2836 !important; font-size: 15px; line-height: 1.75; font-weight: 500; }

.guides-page, .faq-page, .studio-page, .pricing-page { padding: 72px 0 110px; }
.guide-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 48px; }
.guide-grid a { min-height: 256px; display: flex; flex-direction: column; padding: 28px; border: 1px solid var(--paper-line); border-radius: 20px; background: #fffdf9; transition: transform .2s ease, box-shadow .2s ease; }
.guide-grid a:hover { transform: translateY(-3px); box-shadow: 0 20px 44px rgba(31, 23, 8, .1); }
.guide-grid small { color: var(--brass-deep); font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.guide-grid h2 { margin: 28px 0 12px; font-family: var(--font-display); font-size: 25px; letter-spacing: -.02em; }
.guide-grid p { margin: 0; color: var(--text-muted); font-size: 14.5px; line-height: 1.7; }
.guide-grid span { display: flex; align-items: center; gap: 5px; margin-top: auto; padding-top: 18px; color: var(--brass-deep); font-size: 13px; font-weight: 700; }

.content-page { padding: 44px 0 110px; }
.content-page-shell { width: min(860px, calc(100% - 40px)); margin: auto; }
.content-page-wide { width: min(1160px, calc(100% - 40px)); }
.content-page h1 { margin: 14px 0 18px; font-family: var(--font-display); font-size: clamp(36px, 5vw, 56px); line-height: 1.05; letter-spacing: -.035em; font-weight: 600; }
.content-lead { color: var(--text-muted); font-size: 17.5px; line-height: 1.8; }
.audience-note { margin: 24px 0 46px; padding: 15px 18px; border-radius: 12px; background: var(--paper-2); color: #464035; font-size: 13.5px; }
.content-sections { margin-top: 46px; }
.content-sections section { margin: 42px 0; }
.content-sections small { color: var(--brass-deep); font-size: 11px; font-weight: 700; }
.content-sections h2 { margin: 8px 0; font-family: var(--font-display); font-size: 30px; letter-spacing: -.025em; }
.content-sections p { color: #3a4554; font-size: 16px; line-height: 1.9; }

/* ---------- /studio (Google account card + Paid Orders + Saved Drafts) ---------- */
.studio-hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 40px; align-items: center; }
.studio-hero-grid h1 { margin: 12px 0 14px; text-align: left; }
.studio-hero-grid p { margin: 0; color: var(--text-muted); font-size: 16px; line-height: 1.8; max-width: 560px; }
.studio-signin { max-width: 420px; width: 100%; justify-self: end; }
.studio-dashboard { margin-top: 46px; }
.studio-orders-panel { margin-bottom: 34px; padding: 26px; border: 1px solid var(--paper-line); border-radius: 22px; background: #fffdf9; }
.studio-orders-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.studio-orders-head h2 { margin: 6px 0 0; font-family: var(--font-display); font-size: 24px; }
.orders-list { display: grid; gap: 12px; }
.order-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; padding: 16px 18px; border: 1px solid var(--paper-line); border-radius: 14px; background: var(--paper); }
.order-row strong { display: block; font-size: 15px; color: var(--text); }
.order-row p { margin: 4px 0; font-size: 13.5px; color: var(--text-muted); }
.order-row small { color: #756e61; font-size: 12px; }
.order-badge { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; background: #ece5d6; color: #544d41; font-size: 12px; font-weight: 700; }
.order-badge.verified { background: #dff4e8; color: #126137; }
.studio-orders-empty { margin: 0; color: var(--text-muted); font-size: 14px; line-height: 1.7; }
.studio-orders-empty a { color: var(--ink-navy); font-weight: 650; text-decoration: underline; }

.studio-toolbar { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-bottom: 20px; }
.studio-toolbar > div { display: flex; gap: 8px; }
.studio-toolbar button { display: inline-flex; align-items: center; gap: 6px; padding: 9px 14px; border: 1px solid var(--paper-line); border-radius: 10px; background: #fffdf9; color: var(--text-muted); font-size: 13px; font-weight: 600; cursor: pointer; }
.studio-toolbar button.active { background: var(--ink-navy); color: var(--paper); border-color: var(--ink-navy); }
.task-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.task-grid > a { min-width: 0; padding: 12px 12px 18px; border: 1px solid var(--paper-line); border-radius: 18px; background: #fffdf9; }
.directory-grid > *, .template-grid > *, .blog-grid > *, .task-grid > *, .pricing-grid > *, .guide-grid > * { min-width: 0; }
.task-preview { position: relative; height: 220px; display: grid; place-items: center; overflow: hidden; border-radius: 12px; background: radial-gradient(circle at 50% 35%, #21344e, #0d1726 78%); color: var(--brass-bright); }
.task-preview img { width: 100%; height: 100%; object-fit: cover; }
.task-preview span { position: absolute; right: 8px; bottom: 8px; padding: 5px 8px; border-radius: 99px; background: rgba(0, 0, 0, .68); color: #f2ecdd; font-size: 10.5px; }
.task-grid small, .task-grid h2, .task-grid p { display: block; margin-inline: 8px; overflow-wrap: anywhere; }
.task-grid small { margin-top: 12px; color: #7e7769; font-size: 11px; }
.task-grid h2 { overflow: hidden; margin-top: 6px; margin-bottom: 6px; font-size: 14.5px; white-space: nowrap; text-overflow: ellipsis; }
.task-grid p { margin-bottom: 0; color: #8c8476; font-size: 11px; }

/* ---------- Pricing Cards (4 balanced columns, crisp contrast, live checkout buttons) ---------- */
.pricing-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-top: 40px; }
.pricing-grid article { display: flex; flex-direction: column; min-height: 410px; padding: 26px 24px; border: 1px solid var(--paper-line); border-radius: 22px; background: #fffdf9; }
.pricing-grid article.featured { background: var(--ink-navy); color: var(--ink); transform: translateY(-6px); border-color: rgba(232, 198, 90, .45); box-shadow: 0 26px 58px rgba(10, 18, 32, .24); }
.pricing-grid article > span { color: var(--brass-deep); font-size: 11px; font-weight: 750; letter-spacing: .12em; text-transform: uppercase; }
.pricing-grid article.featured > span { color: var(--brass-bright); }
.pricing-grid h2 { margin: 14px 0 10px; font-family: var(--font-display); font-size: 38px; line-height: 1.05; letter-spacing: -.03em; font-weight: 650; }
.pricing-card-for { margin: 0 0 18px; font-size: 13.5px; line-height: 1.6; color: var(--text-muted); }
.pricing-grid article.featured .pricing-card-for { color: #c4d0e0; }
.pricing-grid ul { flex: 1; padding: 0; margin: 0 0 22px; list-style: none; }
.pricing-grid li { display: flex; gap: 9px; margin: 11px 0; color: #364150; font-size: 13.5px; line-height: 1.5; }
.pricing-grid li svg { flex: 0 0 auto; margin-top: 2px; color: var(--brass-deep); }
.pricing-grid article.featured li { color: #dce4f0; }
.pricing-grid article.featured li svg { color: var(--brass-bright); }
.pricing-grid .button, .pricing-grid .checkout-control { width: 100%; }
.checkout-control { display: flex; flex-direction: column; gap: 8px; margin-top: auto; }
.checkout-control .button { width: 100%; }
.checkout-control small { color: #d94646; font-size: 12px; line-height: 1.45; }
.pricing-card-note { margin: 12px 0 0; font-size: 12px; line-height: 1.5; color: #6c7482; }
.pricing-grid article.featured .pricing-card-note { color: #9eb0c9; }

/* ---------- Footer ---------- */
.site-footer { padding: 64px max(20px, calc((100vw - 1200px)/2)) 26px; background: var(--ink-deep); border-top: 1px solid rgba(255, 255, 255, .08); }
.footer-grid { display: grid; grid-template-columns: 1.6fr repeat(4, 1fr); gap: 40px; padding-bottom: 44px; }
.footer-brand p { max-width: 280px; color: #9cb0c9; font-size: 13px; line-height: 1.7; }
.footer-brand .brand { margin-bottom: 14px; }
.footer-grid h2 { margin: 0 0 16px; color: #8c9eb7; font-family: var(--font-ui); font-size: 11px; letter-spacing: .13em; text-transform: uppercase; font-weight: 700; }
.footer-grid > div:not(:first-child) a { display: block; margin: 10px 0; color: #c0cde0; font-size: 13.5px; }
.footer-grid a:hover { color: var(--brass-bright); }
.footer-disclaimer { padding: 20px 0; border-top: 1px solid var(--ink-line); color: #8e9fb6; font-size: 12px; line-height: 1.7; }
.footer-disclaimer a { color: var(--brass-bright); text-decoration: underline; text-underline-offset: 2px; }
.footer-bottom { display: flex; justify-content: space-between; gap: 20px; padding-top: 18px; border-top: 1px solid rgba(255, 255, 255, .06); color: #7d8ea6; font-size: 12px; }

/* ---------- CoverMock (Real High-Resolution Art + Physical Book Hinge + Editorial Type) ---------- */
.cover-mock {
  container-type: inline-size;
  position: relative;
  width: var(--cover-w, 176px);
  max-width: 100%;
  aspect-ratio: 2 / 3;
  margin: 0 auto;
  overflow: hidden;
  border-radius: 3px 8px 8px 3px;
  background: linear-gradient(160deg, var(--cover-bg), var(--cover-bg-2));
  color: var(--cover-ink);
  font-family: var(--font-display);
  box-shadow:
    0 22px 46px rgba(4, 9, 18, .44),
    0 4px 10px rgba(4, 9, 18, .28),
    inset 0 0 0 1px rgba(255, 255, 255, .12);
  isolation: isolate;
}
.cover-size-xs { --cover-w: 76px; }
.cover-size-sm { --cover-w: 104px; }
.cover-size-md { --cover-w: 162px; }
.cover-size-lg { --cover-w: 214px; }
.cover-size-xl { --cover-w: 274px; }
.cover-size-fill { --cover-w: 100%; }

.cover-art { position: absolute; inset: 0; z-index: 0; }
.cover-art img { width: 100%; height: 100%; object-fit: cover; object-position: center; }

/* Soft directional scrim preserves full artwork brilliance while ensuring razor-sharp title contrast */
.cover-tone-dark .cover-scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(180deg, rgba(7, 12, 22, .74) 0%, rgba(7, 12, 22, .34) 30%, rgba(7, 12, 22, 0) 52%, rgba(7, 12, 22, .18) 78%, rgba(7, 12, 22, .72) 100%);
}
.cover-tone-light .cover-scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(180deg, rgba(248, 243, 232, .82) 0%, rgba(248, 243, 232, .42) 30%, rgba(248, 243, 232, 0) 50%, rgba(248, 243, 232, .12) 78%, rgba(248, 243, 232, .72) 100%);
}
.cover-frame { position: absolute; inset: 4.5cqw; z-index: 2; border: 1px solid rgba(235, 208, 122, .45); opacity: .42; pointer-events: none; }
.cover-style-minimal .cover-frame, .cover-style-typographic .cover-frame { opacity: .82; }

.cover-content {
  position: relative;
  z-index: 3;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 9cqw 9cqw 8.5cqw;
  text-align: center;
}
.cover-head { display: flex; flex-direction: column; align-items: center; }
.cover-series {
  margin-bottom: 2.8cqw;
  font-family: var(--font-ui);
  font-size: 3.6cqw;
  font-weight: 700;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--cover-accent);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}
.cover-title {
  font-size: 13.2cqw;
  line-height: 1.03;
  font-weight: 650;
  letter-spacing: -.015em;
  text-wrap: balance;
  overflow-wrap: anywhere;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.cover-tone-dark .cover-title { text-shadow: 0 2px 18px rgba(0, 0, 0, .65); }
.cover-tone-light .cover-title { text-shadow: 0 1px 10px rgba(255, 252, 245, .6); }

/* Genre-specific typographic flavor */
.cover-genre-thriller .cover-title { font-family: var(--font-ui); font-weight: 800; letter-spacing: .04em; text-transform: uppercase; font-size: 12.2cqw; }
.cover-genre-science-fiction .cover-title { font-family: var(--font-ui); font-weight: 700; letter-spacing: .12em; text-transform: uppercase; font-size: 11cqw; }
.cover-genre-nonfiction .cover-title { font-family: var(--font-ui); font-weight: 800; letter-spacing: -.025em; font-size: 12.8cqw; }
.cover-genre-fantasy .cover-title { font-weight: 600; letter-spacing: .02em; }

.cover-subtitle {
  margin-top: 2.6cqw;
  font-size: 4.4cqw;
  line-height: 1.3;
  font-style: italic;
  opacity: .88;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.cover-rule { width: 22%; height: 1px; margin: 3.8cqw auto 0; background: var(--cover-accent); opacity: .88; }
.cover-author {
  font-family: var(--font-ui);
  font-size: 4.5cqw;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.cover-tone-dark .cover-author { text-shadow: 0 1px 12px rgba(0, 0, 0, .8); }

/* Authentic physical book spine groove & edge highlight */
.cover-edge {
  position: absolute;
  inset: 0;
  z-index: 4;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, .42) 0, rgba(255, 255, 255, .2) 2.2%, rgba(0, 0, 0, .28) 4%, rgba(255, 255, 255, .1) 5.2%, transparent 8.5%, transparent 96.5%, rgba(0, 0, 0, .22) 100%),
    linear-gradient(180deg, rgba(255, 255, 255, .14), transparent 7%);
}

/* ---------- Workbench Clean File CTA & Quote Forms ---------- */
.login-notice { position: relative; z-index: 60; display: flex; gap: 12px; align-items: center; justify-content: center; padding: 10px 16px; background: var(--brass); color: #101824; font-size: 13px; font-weight: 600; line-height: 1.4; text-align: center; }
.login-notice button { display: inline-flex; align-items: center; justify-content: center; border: 0; background: rgba(16, 24, 36, .14); color: #101824; border-radius: 999px; padding: 4px; cursor: pointer; }

.preview-size-note { margin-top: 16px; padding: 16px 18px; border: 1px solid #2b3e5a; border-radius: 14px; background: #0d192b; }
.preview-size-note strong { display: block; color: #f0f4fa; font-size: 13.5px; }
.preview-size-note ul { margin: 8px 0 0; padding-left: 18px; }
.preview-size-note li { color: #b7c5d8; font-size: 13px; line-height: 1.7; }
.preview-size-note p { margin: 8px 0 0; color: #9eb0c9; font-size: 12.5px; line-height: 1.65; }
.preview-size-note a { color: var(--brass-bright); text-decoration: underline; }

.clean-file-cta { margin-top: 16px; padding: 18px 20px; border: 1px solid rgba(232, 198, 90, .42); border-radius: 16px; background: linear-gradient(180deg, rgba(201, 162, 39, .14), rgba(201, 162, 39, .04)); }
.clean-file-cta strong { display: block; color: #faf6ee; font-size: 15px; }
.clean-file-cta p { margin: 6px 0 14px; color: #c4d0e0; font-size: 13.5px; line-height: 1.65; }
.clean-file-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; }
.clean-file-secondary { padding: 9px 13px; border: 1px solid rgba(255, 255, 255, .2); border-radius: 9px; background: transparent; color: #e4ecf7; font-size: 12.5px; font-weight: 600; cursor: pointer; }
.clean-file-secondary:hover { border-color: var(--brass-bright); color: var(--brass-bright); }
.clean-file-link { display: inline-flex; align-items: center; gap: 5px; color: var(--brass-bright); font-size: 13px; font-weight: 600; text-decoration: underline; white-space: nowrap; }
.clean-file-cta small { display: block; margin-top: 10px; color: #f6cd7b; font-size: 12.5px; line-height: 1.55; }

.quote-form { margin-top: 14px; padding: 22px 24px; border: 1px solid rgba(232, 198, 90, .32); border-radius: 18px; background: #0f1c30; color: #f4f7fb; }
.quote-form > strong { display: block; color: #faf6ee; font-family: var(--font-display); font-size: 19px; }
.quote-form-note { margin: 6px 0 16px; color: #b7c5d8; font-size: 13.5px; line-height: 1.7; }
.quote-form-grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }
.quote-form label { display: block; color: #d5e0ee; font-size: 12.5px; font-weight: 600; }
.quote-form input, .quote-form select, .quote-form textarea { display: block; width: 100%; margin-top: 6px; padding: 10px 12px; border-radius: 10px; border: 1.5px solid #3c5273; background: #0b1525; color: #ffffff; font-size: 14px; }
.quote-form-wide { display: block; margin-top: 14px; }
.quote-form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-top: 16px; }
.quote-form-actions small { color: #a7b8cf; font-size: 12.5px; line-height: 1.55; }
.quote-form-sent { display: flex; gap: 14px; align-items: flex-start; border-color: rgba(112, 221, 177, .5); background: #0d261f; }
.quote-form-sent strong { color: #e2faee; font-size: 15px; }
.quote-form-sent p { margin: 6px 0 8px; color: #b7dcc9; font-size: 13.5px; line-height: 1.7; }
.quote-form-sent a { display: inline-flex; align-items: center; gap: 5px; color: var(--brass-bright); font-size: 13.5px; font-weight: 650; text-decoration: underline; }

/* Template guide blocks */
.template-guide-blocks { display: grid; gap: 22px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); margin-top: 8px; }
.template-guide-blocks h2 { margin: 0 0 8px; font-size: 14px; letter-spacing: .04em; text-transform: uppercase; color: var(--brass-deep); }
.template-guide-blocks p, .template-guide-blocks ul { margin: 0; color: var(--text); font-size: 14.5px; line-height: 1.85; }
.template-guide-blocks ul { padding-left: 18px; }
.template-guide-blocks li { margin-bottom: 6px; }
.template-original-name { margin: 6px 0 0; color: var(--text-muted); font-size: 13px; letter-spacing: .05em; text-transform: uppercase; }
.template-card-link::after { content: ""; position: absolute; inset: 0; border-radius: 19px; }

/* ---------- 3D book mockup studio (/3d-book-cover-creator) ---------- */
.mockup-studio { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(320px, .9fr); gap: 24px; margin: 18px 0 6px; align-items: start; }
.mockup-stage { border: 1px solid var(--ink-line); border-radius: var(--radius-card); background: #0a111c; overflow: hidden; }
.mockup-canvas-wrap { position: relative; aspect-ratio: 4 / 5; background: #0a111c; }
.mockup-canvas { display: block; width: 100%; height: 100%; }
.mockup-canvas-wrap.dragging { outline: 2px dashed var(--brass); outline-offset: -10px; }
.mockup-placeholder, .mockup-drop-hint { position: absolute; inset: 0; display: grid; place-items: center; color: #b7c5d8; font-size: 13px; letter-spacing: .04em; text-transform: uppercase; background: rgba(8, 14, 24, .6); pointer-events: none; }
.mockup-caption { margin: 0; padding: 14px 18px; border-top: 1px solid var(--ink-line); color: #a7b8cf; font-size: 13px; line-height: 1.6; }
.mockup-controls { display: grid; gap: 18px; padding: 24px; border: 1px solid var(--ink-line); border-radius: var(--radius-card); background: #0d1727; }
.mockup-group { display: grid; gap: 9px; }
.mockup-label { color: var(--brass-bright); font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.mockup-row { display: flex; flex-wrap: wrap; gap: 8px; }
.mockup-file-input { display: none; }
.mockup-note { margin: 0; color: #a7b8cf; font-size: 12.5px; line-height: 1.65; }
.mockup-error { margin: 0; padding: 11px 13px; border: 1px solid rgba(230, 116, 96, .45); border-radius: 10px; background: rgba(64, 20, 18, .55); color: #f0c2b8; font-size: 13px; line-height: 1.6; }
.mockup-ghost { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 14px; border: 1px solid rgba(180, 200, 226, .35); border-radius: 10px; background: transparent; color: #dce6f3; font-size: 13px; font-weight: 600; cursor: pointer; }
.mockup-ghost:hover { border-color: var(--brass-bright); color: var(--brass-bright); }
.mockup-segmented { display: flex; flex-wrap: wrap; gap: 7px; }
.mockup-segmented button { min-height: 44px; padding: 0 14px; border: 1px solid rgba(180, 200, 226, .28); border-radius: 9px; background: #0a121f; color: #c7d4e5; font-size: 13px; font-weight: 600; cursor: pointer; }
.mockup-segmented button.active { border-color: var(--brass-bright); background: rgba(201, 162, 39, .16); color: var(--brass-bright); }
.mockup-range { width: 100%; accent-color: var(--brass); }
.mockup-inline { display: flex; flex-wrap: wrap; gap: 14px; }
.mockup-check { display: inline-flex; align-items: center; gap: 8px; color: #d5dfed; font-size: 13px; cursor: pointer; }
.mockup-check input { accent-color: var(--brass); }
.mockup-controls .button { width: 100%; }

/* ---------- SEO & AEO Tables & Resource Grids ---------- */
.seo-table-wrap { overflow-x: auto; margin: 18px 0 22px; border: 1px solid var(--paper-line); border-radius: 16px; background: #fffdf9; }
.seo-table { width: 100%; border-collapse: collapse; font-size: 14px; line-height: 1.65; }
.seo-table th { text-align: left; padding: 13px 16px; border-bottom: 1px solid var(--paper-line); color: var(--brass-deep); font-size: 11.5px; font-weight: 750; letter-spacing: .06em; text-transform: uppercase; background: rgba(201, 162, 39, .07); }
.seo-table td { padding: 13px 16px; border-bottom: 1px solid rgba(15, 27, 45, .08); color: #364150; vertical-align: top; }
.seo-table tbody tr:last-child td { border-bottom: 0; }
.aeo-dark-box { margin: 16px 0 12px; padding: 16px 20px; max-width: 720px; border-left: 3px solid var(--brass); border-radius: 0 12px 12px 0; background: rgba(201, 162, 39, .12); color: #ece7de; font-size: 14.5px; line-height: 1.75; }
.aeo-dark-box strong { color: #f6e7bd; }
.genre-strip { margin-top: 22px; padding: 16px 20px; border: 1px solid var(--paper-line); border-radius: 15px; background: #fffdf9; display: flex; flex-wrap: wrap; gap: 10px 18px; align-items: center; font-size: 13.5px; color: var(--text-muted); }
.genre-strip a { color: var(--text); font-weight: 650; text-decoration: underline; text-underline-offset: 3px; }
.resource-columns { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; margin-top: 24px; }
.resource-columns > div { padding: 24px; border: 1px solid var(--paper-line); border-radius: 18px; background: #fffdf9; }
.resource-columns h3 { margin: 0 0 16px; font-family: var(--font-display); font-size: 21px; letter-spacing: -.02em; }
.compact-link-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.compact-link-list li { display: flex; flex-direction: column; gap: 3px; padding-bottom: 11px; border-bottom: 1px solid rgba(15, 27, 45, .08); }
.compact-link-list li:last-child { padding-bottom: 0; border-bottom: 0; }
.compact-link-list a { font-size: 14.5px; font-weight: 650; color: var(--text); text-decoration: none; }
.compact-link-list a:hover { color: var(--brass-deep); text-decoration: underline; text-underline-offset: 2px; }
.compact-link-list span { font-size: 12.5px; color: var(--text-muted); line-height: 1.5; }

/* ---------- Misc ---------- */
.not-found { min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; background: radial-gradient(circle at center, rgba(201, 162, 39, .16), transparent 45%), var(--ink-deep); color: var(--ink); }
.not-found > span { color: var(--brass-bright); font-size: 13px; font-weight: 750; letter-spacing: .2em; }
.not-found h1 { margin: 12px 0; font-family: var(--font-display); font-size: 52px; letter-spacing: -.04em; }
.not-found p { color: #a7b8cf; }
.not-found > div { display: flex; align-items: center; gap: 18px; margin-top: 20px; }

/* ---------- Responsive ---------- */
@media (max-width: 1140px) {
  .exhibition-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .blueprint-gallery-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tools-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .template-showcase { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pricing-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pricing-grid article.featured { transform: none; }
  .workbench { grid-template-columns: 420px minmax(0, 1fr); }
  .directory-grid, .template-grid, .task-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1.4fr repeat(2, 1fr); }
}
@media (max-width: 980px) {
  .desktop-nav { display: none; }
  .mobile-menu { display: block; }
  .hero-grid, .value-grid, .calc-panel, .services-panel, .studio-hero-grid, .detail-hero-grid, .template-detail-grid, .blog-feature, .prose-grid, .use-case-block, .detail-faq, .faq-layout, .mockup-studio { grid-template-columns: 1fr; }
  .value-card { min-height: 0; }
  .hero-showcase-col { padding-top: 4px; }
  .hero-stage-frame { height: auto; }
  .studio-signin { justify-self: start; }
  .resource-columns { grid-template-columns: 1fr; }
  .exhibition-grid, .blueprint-gallery-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 18px; }
  .lightbox-shell { grid-template-columns: 1fr; max-height: 92vh; overflow-y: auto; }
  .lightbox-stage { border-right: 0; border-bottom: 1px solid rgba(255, 255, 255, .09); }
  .lightbox-book-stage { min-height: 310px; }
  .studio-upgrade-grid { grid-template-columns: 1fr; }
  .workbench { grid-template-columns: 1fr; border-radius: 20px; }
  .workbench-panel { border-right: 0; border-bottom: 1px solid var(--ink-line); }
  .split-heading { flex-direction: column; align-items: flex-start; gap: 16px; }
  .cta-card { flex-direction: column; align-items: flex-start; padding: 36px 28px; }
  .steps-grid { grid-template-columns: 1fr; }
  .steps-grid article { border-right: 0; border-bottom: 1px solid var(--paper-line); min-height: 0; }
  .steps-grid article:last-child { border-bottom: 0; }
  .hero-shelf { min-height: 0; padding: 18px 0 28px; }
  .hero-shelf-side .cover-mock { --cover-w: 124px; }
  .hero-shelf-center .cover-mock { --cover-w: 170px; }
}
@media (max-width: 720px) {
  .site-header { height: 64px; }
  .nav-shell { width: calc(100% - 24px); gap: 8px; }
  .brand { font-size: 16.5px; gap: 7px; }
  .brand-mark { width: 28px; height: 28px; border-radius: 7px; }
  .nav-actions { gap: 6px; }
  .nav-actions .button-small { min-height: 36px; padding: 0 11px; font-size: 12px; }
  .nav-actions .gl-btn--sm { height: 36px !important; padding: 0 9px !important; font-size: 12px !important; gap: 6px !important; }
  .nav-actions .gl-bar-trigger { height: 36px !important; padding: 0 6px 0 3px !important; }
  .mobile-menu summary { width: 36px; height: 36px; }
  .price-strip, .pricing-grid, .tools-grid, .template-showcase, .directory-grid, .template-grid, .blog-grid, .guide-grid, .task-grid, .template-mini-grid, .related-tool-grid, .use-case-block > div:last-child { grid-template-columns: 1fr; }
  .exhibition-grid, .blueprint-gallery-grid, .blueprint-gallery-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 14px; }
  .gallery-plinth, .blueprint-plinth { padding: 16px 12px; border-radius: 14px; }
  .gallery-book-lift { width: 78%; }
  .gallery-caption strong, .blueprint-caption h2, .blueprint-caption h3 { font-size: 15px; }
  .gallery-subline { font-size: 11px; }
  .creator-grid, .parameter-grid, .result-preset-row, .lightbox-inputs, .lightbox-paid-split { grid-template-columns: 1fr; }
  .hero-stage-frame { padding: 20px 16px 18px; }
  .hero-shelf-side { display: none; }
  .hero-shelf-center .cover-mock { --cover-w: 184px; }
  .hero-spotlight-bar { flex-direction: column; align-items: stretch; padding: 15px; }
  .hero-spotlight-cta { align-items: stretch; }
  .hero-spotlight-cta .button { width: 100%; }
  .hero-edition-tray { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .lightbox-backdrop { padding: 12px; }
  .lightbox-stage { padding: 18px 16px; }
  .lightbox-inspector { padding: 20px 18px; }
  .lightbox-book-stage.view-editorial .cover-mock,
  .lightbox-book-stage.view-3d .cover-mock { --cover-w: 196px; }
  .studio-modal { padding: 24px 20px 22px; }
  .calc-band { padding: 26px 20px; }
  .workbench-panel { padding: 20px 18px; }
  .result-panel { padding: 22px 18px; }
  .inline-links-row { flex-wrap: wrap; gap: 12px 18px; }
  .footer-grid { grid-template-columns: 1fr; }
  .seo-table { font-size: 12.5px; }
  .seo-table th, .seo-table td { padding: 10px 10px; }
}
@media (max-width: 480px) {
  .nav-actions .gl-btn--sm { width: 36px !important; padding: 0 !important; justify-content: center !important; }
  .nav-actions .gl-btn--sm .gl-btn-label { display: none !important; }
  .nav-actions .gl-bar-name { display: none !important; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}


/* ---------- Book Title Generator Page ---------- */
.title-page .title-gen{margin:26px 0 8px;padding:22px;border:1px solid var(--paper-line);border-radius:18px;background:#fffdf8}
.title-page .title-gen-controls{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;align-items:end}
.title-page .title-gen-controls label{display:flex;flex-direction:column;gap:6px;font-size:11px;font-weight:700;letter-spacing:.06em;text-transform:uppercase;color:#7d8ba0}
.title-page .title-gen-controls select,.title-page .title-gen-controls input{font:inherit;font-size:14px;text-transform:none;letter-spacing:0;font-weight:400;padding:10px 12px;border:1px solid var(--paper-line);border-radius:10px;background:#fff;color:#1d2733}
.title-page .title-gen-controls .button{grid-column:1/-1;justify-self:start}
.title-page .title-gen-note{margin:18px 0 6px;color:#46505e;font-size:13px;line-height:1.7}
.title-page .title-gen-list{list-style:none;margin:14px 0 0;padding:0}
.title-page .title-gen-list li{display:flex;flex-wrap:wrap;gap:10px 18px;align-items:center;justify-content:space-between;padding:12px 0;border-top:1px solid var(--paper-line)}
.title-page .title-gen-list li.is-picked{background:#f5efdf}
.title-page .title-gen-copy{min-width:0}
.title-page .title-gen-title{margin:0;font-family:var(--font-display);font-size:19px;letter-spacing:-.01em;color:#1d2733}
.title-page .title-gen-title span{color:var(--brass-deep);font-family:var(--font-ui);font-size:10px;letter-spacing:.1em;margin-right:6px}
.title-page .title-gen-title em{font-style:normal;color:#7d8ba0}
.title-page .title-gen-meta{margin:4px 0 0;color:#7d8ba0;font-size:11.5px}
.title-page .tag{display:inline-block;padding:2px 8px;border-radius:999px;font-size:10px;font-weight:700;letter-spacing:.04em}
.title-page .tag-good{background:#e6f2e9;color:#1f6b3a}
.title-page .tag-warn{background:#f7ebd8;color:#8a5b00}
.title-page .title-gen-footnote{margin:14px 0 0;color:#7d8ba0;font-size:11.5px;line-height:1.7}
.title-page .table-scroll{overflow-x:auto;margin:8px 0 18px}
.title-page .stat-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin:18px 0}
.title-page .stat-grid div{padding:14px;border:1px solid var(--paper-line);border-radius:12px;background:#fffdf8}
.title-page .stat-grid strong{display:block;font-family:var(--font-display);font-size:26px;color:#1d2733}
.title-page .stat-grid span{display:block;margin-top:4px;color:#7d8ba0;font-size:11.5px;line-height:1.5}
.title-page .source-list{font-size:11.5px;color:#7d8ba0;line-height:1.8}
.title-page .source-list a{color:inherit}
@media(max-width:760px){
  .title-page .title-gen-controls{grid-template-columns:1fr}
  .title-page .stat-grid{grid-template-columns:1fr}
  .title-page .title-gen-list li{flex-direction:column;align-items:flex-start}
}

/* ---------- Migration layout refinements ---------- */
[hidden] { display: none !important; }
.footer-grid { grid-template-columns: 1.6fr repeat(3, 1fr); }
.brief-form-card { margin-top: 20px; padding: 26px; border: 1px solid var(--paper-line); border-radius: 20px; background: #fffdf9; }
.brief-form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.brief-form-card label { display: flex; flex-direction: column; gap: 6px; font-size: 13px; font-weight: 600; color: var(--text); }
.brief-form-card input, .brief-form-card select, .brief-form-card textarea { width: 100%; padding: 10px 12px; border: 1px solid var(--paper-line); border-radius: 10px; background: #ffffff; color: var(--text); font-size: 14px; }
.brief-form-card .brief-wide { grid-column: 1 / -1; }
@media (max-width: 720px) { .brief-form-grid { grid-template-columns: 1fr; } }
