/* =========================================================================
   Kingdom Name Generator - "Heraldry" design system
   IDENTICAL layout to the elf generator (cloned from the dragon styles.css);
   only the palette is changed - royal sapphire and antique gold on a deep
   midnight navy, with per-kind tones. First tool in the Places category;
   the engine builds place names (a stem plus a place suffix, wrapped in a
   realm form) rather than a single creature name.
   Display: Fraunces · UI/body: Hanken Grotesk
   ========================================================================= */

:root {
  --bg:           #0b0e16;
  --bg-2:         #11151f;
  --surface:      rgba(255,255,255,.04);
  --surface-2:    rgba(255,255,255,.06);
  --solid:        #1a1f2d;
  --border:       rgba(170,190,232,.13);
  --border-2:     rgba(170,190,232,.26);

  --text:         #e9edf7;
  --muted:        #a3acc4;
  --faint:        #6f7891;

  --accent:       #4caf6e;
  --accent-2:     #3a8f5e;
  --accent-ink:   #07200f;
  --grad:         linear-gradient(118deg, var(--accent), var(--accent-2));

  --ancient:      #6f9e5e;
  --enchanted:    #8ad6a0;
  --gloomy:       #5e8f8a;
  --haunted:      #9ab0a0;
  --wild:         #a8b85e;
  --any:          #9fd8a8;

  --r:            14px;
  --r-sm:         10px;
  --ease:         cubic-bezier(.22,.7,.3,1);
  --shadow:       0 24px 60px -24px rgba(0,0,0,.7);
  --glow:         0 0 0 1px rgba(76,175,110,.4), 0 10px 40px -10px rgba(76,175,110,.35);

  --font-display: "Fraunces", Georgia, serif;
  --font:         "Hanken Grotesk", ui-sans-serif, system-ui, sans-serif;
  --maxw:         1180px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }

body {
  margin: 0; min-height: 100vh; color: var(--text);
  font-family: var(--font); font-size: 16.5px; line-height: 1.6; letter-spacing: .002em;
  background: var(--bg); overflow-x: hidden;
}
/* Atmosphere: aurora glows + grain */
body::before {
  content: ""; position: fixed; inset: 0; z-index: -2; pointer-events: none;
  background:
    radial-gradient(60% 50% at 12% 0%, rgba(76,175,110,.16), transparent 60%),
    radial-gradient(55% 45% at 92% 8%, rgba(58,143,94,.13), transparent 60%),
    radial-gradient(70% 60% at 50% 110%, rgba(76,175,110,.08), transparent 60%),
    var(--bg);
}
body::after {
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none; opacity: .045;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

a { color: var(--accent); text-decoration: none; }
a:hover { color: #74d690; }
button, select, input { font: inherit; color: inherit; }
button { background: none; border: none; cursor: pointer; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 6px; }

h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 500; line-height: 1.03; margin: 0; font-optical-sizing: auto; }

.container { width: min(var(--maxw), calc(100% - 44px)); margin-inline: auto; }
.eyebrow { margin: 0; font-size: 12px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--accent); }
.muted { color: var(--muted); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.skip-link { position: absolute; left: 12px; top: -60px; z-index: 200; background: var(--accent); color: var(--accent-ink); padding: 10px 16px; border-radius: 8px; font-weight: 700; transition: top .2s var(--ease); }
.skip-link:focus { top: 12px; }

.gradient-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* glass surface */
.glass { background: rgba(255,255,255,.045); border: 1px solid var(--border); border-radius: var(--r); }

/* =========================================================================
   Header
   ========================================================================= */
.site-header { position: sticky; top: 0; z-index: 90; background: rgba(17,21,31,.94); border-bottom: 1px solid var(--border); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; height: 66px; }
.logo { display: inline-flex; align-items: center; gap: 10px; color: var(--text); }
.logo:hover { color: var(--text); }
.logo-mark { color: var(--accent); flex: none; filter: drop-shadow(0 0 6px rgba(76,175,110,.5)); }
.logo-text { font-family: var(--font-display); font-weight: 600; font-size: 21px; letter-spacing: .01em; }

.nav { display: flex; align-items: center; gap: 4px; }
.nav a { padding: 8px 13px; border-radius: 9px; font-size: 14.5px; font-weight: 600; color: var(--muted); transition: .15s var(--ease); }
.nav a:hover { color: var(--text); background: var(--surface-2); }
.nav a.cta { background: var(--grad); color: var(--accent-ink); font-weight: 700; }
.nav a.cta:hover { color: var(--accent-ink); box-shadow: var(--glow); }

/* dropdowns + mega menu */
.nav-item { position: relative; }
.nav-link {
  display: inline-flex; align-items: center; gap: 6px; padding: 8px 13px; border-radius: 9px;
  font-size: 14.5px; font-weight: 600; color: var(--muted); transition: .15s var(--ease);
}
.nav-link:hover { color: var(--text); background: var(--surface-2); }
.nav-link svg { transition: transform .2s var(--ease); }
.nav-dropdown.is-open .nav-link { color: var(--text); background: var(--surface-2); }
.nav-dropdown.is-open .nav-link svg { transform: rotate(180deg); }
.dropdown-panel {
  position: absolute; top: calc(100% + 10px); left: 0; min-width: 230px;
  background: var(--solid); border: 1px solid var(--border-2); border-radius: 14px;
  box-shadow: var(--shadow); padding: 10px; z-index: 95;
  opacity: 0; visibility: hidden; transform: translateY(8px); transition: opacity .18s var(--ease), transform .18s var(--ease), visibility .18s;
}
.nav-dropdown.is-open .dropdown-panel { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown-panel.mega { display: grid; grid-template-columns: repeat(4, minmax(150px, 1fr)); gap: 6px 14px; width: min(820px, 90vw); padding: 18px; }
/* keep the wide menu from spilling off the right edge */
.nav-item:first-child .dropdown-panel.mega { left: -8px; }
.mega-col { display: flex; flex-direction: column; }
.mega-head { margin: 4px 10px 8px; font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--faint); }
.dropdown-link {
  display: flex; align-items: baseline; justify-content: space-between; gap: 12px;
  padding: 8px 10px; border-radius: 9px; font-size: 14px; font-weight: 600; color: var(--muted); transition: .14s var(--ease);
}
.dropdown-link:hover { background: var(--surface-2); color: var(--text); }
.dropdown-link.active { color: var(--accent); }
.dropdown-link em { font-style: normal; font-size: 10.5px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--faint); }
.dropdown-link.active em { color: var(--accent); }

/* hero banner image */
/* hero full-bleed background */
.hero-bg { position: absolute; inset: 0; z-index: 0; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hero-bg::after { content: ""; position: absolute; inset: 0; background:
  radial-gradient(58% 68% at 50% 50%, rgba(11,14,22,.52), transparent 72%),
  linear-gradient(180deg, rgba(11,14,22,.72) 0%, rgba(11,14,22,.30) 32%, rgba(11,14,22,.5) 66%, rgba(11,14,22,.95) 100%); }

.nav-toggle { display: none; width: 44px; height: 44px; border: 1px solid var(--border-2); border-radius: 10px; align-items: center; justify-content: center; color: var(--text); }
.nav-toggle .bar, .nav-toggle .bar::before, .nav-toggle .bar::after { display: block; width: 20px; height: 2px; background: currentColor; transition: .2s var(--ease); }
.nav-toggle .bar { position: relative; }
.nav-toggle .bar::before, .nav-toggle .bar::after { content: ""; position: absolute; left: 0; }
.nav-toggle .bar::before { top: -6px; } .nav-toggle .bar::after { top: 6px; }
.nav-toggle[aria-expanded="true"] .bar { background: transparent; }
.nav-toggle[aria-expanded="true"] .bar::before { top: 0; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] .bar::after { top: 0; transform: rotate(-45deg); }

/* =========================================================================
   Hero (compact - flows straight into the tool)
   ========================================================================= */
.hero { position: relative; overflow: hidden; display: grid; align-items: center; min-height: clamp(420px, 56vh, 560px); text-align: center; }
.hero-inner { position: relative; z-index: 1; padding: 48px 0; }
.hero-inner .eyebrow { margin-bottom: 16px; }
.hero h1 { font-size: clamp(46px, 7.5vw, 88px); letter-spacing: -.02em; text-shadow: 0 2px 30px rgba(0,0,0,.5); }
.hero h1 em { font-style: italic; }
.hero-lead { margin: 20px auto 0; max-width: 54ch; font-size: 19px; color: #d6deef; text-shadow: 0 1px 16px rgba(0,0,0,.5); }
.hero-stat-big { display: inline-flex; align-items: center; gap: 20px; margin: 32px auto 0; }
.hero-stat-big b { font-family: var(--font-display); font-weight: 600; font-size: clamp(38px, 5.5vw, 58px); line-height: 1; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(0 2px 18px rgba(0,0,0,.45)); }
.hero-stat-big span { position: relative; padding-left: 20px; text-align: left; font-size: 12.5px; font-weight: 700; letter-spacing: .17em; line-height: 1.35; text-transform: uppercase; color: #c7d0e4; text-shadow: 0 1px 10px rgba(0,0,0,.5); }
.hero-stat-big span::before { content: ""; position: absolute; left: 0; top: 50%; transform: translateY(-50%); width: 1px; height: 38px; background: linear-gradient(180deg, transparent, var(--accent), transparent); opacity: .65; }

/* =========================================================================
   Studio (the generator)
   ========================================================================= */
.studio { padding: 64px 0; scroll-margin-top: 80px; }
.studio-grid { display: grid; grid-template-columns: minmax(0,1fr) 340px; gap: 22px; align-items: start; }
.studio-main { padding: 26px 26px 24px; box-shadow: var(--shadow); }
.studio-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 18px; }
.studio-head h2 { font-size: 30px; }
.studio-head .eyebrow { margin-bottom: 6px; }

/* type chips */
.type-chips { display: flex; flex-wrap: wrap; gap: 9px; margin-bottom: 16px; }
.chip-btn {
  padding: 9px 16px; border-radius: 999px; font-size: 14px; font-weight: 600; color: var(--muted);
  border: 1px solid var(--border-2); background: var(--surface); transition: .16s var(--ease);
}
.chip-btn:hover { color: var(--text); border-color: var(--accent); }
.chip-btn.active { background: var(--grad); border-color: transparent; color: var(--accent-ink); font-weight: 700; }

/* generate row */
.gen-row { display: flex; gap: 11px; margin-bottom: 8px; }
.btn {
  --bbg: var(--surface); --bfg: var(--text); --bbd: var(--border-2);
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; white-space: nowrap;
  min-height: 46px; padding: 0 20px; border-radius: 11px; border: 1px solid var(--bbd);
  background: var(--bbg); color: var(--bfg); font-size: 14.5px; font-weight: 700; letter-spacing: .01em;
  transition: .16s var(--ease);
}
.btn:hover { border-color: var(--accent); color: var(--text); }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .4; cursor: not-allowed; }
.btn.primary { --bbg: transparent; background: var(--grad); --bfg: var(--accent-ink); --bbd: transparent; }
.btn.primary:hover { box-shadow: var(--glow); --bfg: var(--accent-ink); }
.btn.big { flex: 1; min-height: 54px; font-size: 16.5px; }
.btn.small { min-height: 38px; padding: 0 13px; font-size: 13px; border-radius: 9px; }
.btn.ghost { --bbg: transparent; }
.btn.active-toggle { border-color: var(--accent); color: var(--accent); }
.btn.saved-state { color: var(--accent); border-color: var(--accent); }

.meta-line { margin: 12px 2px 18px; font-size: 14.5px; color: var(--muted); }

/* options panel */
.options { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; padding: 18px; margin-bottom: 8px; border: 1px solid var(--border); border-radius: var(--r-sm); background: var(--surface); }
.options[hidden] { display: none; }
.field-label { display: block; margin-bottom: 6px; font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--faint); }
.select {
  width: 100%; height: 44px; padding: 0 38px 0 13px; appearance: none; cursor: pointer; color: var(--text);
  border: 1px solid var(--border-2); border-radius: 10px; background-color: var(--solid);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath fill='%234caf6e' d='M1.4.6 6 5.2 10.6.6 12 2 6 8 0 2z'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 13px center; background-size: 11px; font-size: 14.5px; font-weight: 600;
}
.select:focus { outline: none; border-color: var(--accent); }
.check { display: flex; align-items: center; justify-content: space-between; gap: 10px; height: 44px; padding: 0 13px; cursor: pointer; font-weight: 600; font-size: 14px; border: 1px solid var(--border-2); border-radius: 10px; background: var(--solid); }
.check input { width: 19px; height: 19px; accent-color: var(--accent); cursor: pointer; }
.options .full { grid-column: 1 / -1; }

/* name grid */
.name-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 6px; }
.name-card {
  position: relative; display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 16px 16px 16px 18px; border: 1px solid var(--border); border-radius: var(--r-sm);
  background: var(--surface); cursor: pointer; overflow: hidden; transition: .16s var(--ease);
}
/* per-type colour is shown via a small dot on the meta label, not a side stripe */
.name-card:hover { border-color: var(--border-2); background: var(--surface-2); transform: translateY(-1px); }
.name-card.selected { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.name-info { min-width: 0; }
.name-text { font-family: var(--font-display); font-weight: 500; font-size: clamp(22px, 2.4vw, 27px); line-height: 1.1; }
.name-meta { display: block; margin-top: 5px; font-size: 11.5px; font-weight: 700; letter-spacing: .1em; color: var(--tone, var(--muted)); text-transform: uppercase; }
.name-tools { display: inline-flex; gap: 4px; flex: none; }
.icon-btn { width: 36px; height: 36px; display: inline-flex; align-items: center; justify-content: center; border-radius: 9px; border: 1px solid transparent; color: var(--muted); font-size: 13px; font-weight: 700; transition: .14s var(--ease); }
.icon-btn:hover { border-color: var(--border-2); color: var(--text); background: var(--surface-2); }
.icon-btn.copy { width: auto; padding: 0 11px; font-size: 11.5px; letter-spacing: .04em; text-transform: uppercase; }
.icon-btn.star { font-size: 18px; }
.icon-btn.star.active { color: var(--accent); }
.icon-btn.is-copied { color: var(--accent); border-color: var(--accent); }

.studio-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 9px; margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--border); }
.studio-foot #side-status { margin-left: auto; font-size: 12.5px; color: var(--faint); }

/* chips (status) */
.chips { display: flex; flex-wrap: wrap; gap: 7px; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px; border-radius: 999px; font-size: 11.5px; font-weight: 700; border: 1px solid var(--border); color: var(--muted); }
.badge { display: inline-flex; align-items: center; gap: 7px; padding: 5px 12px 5px 9px; border-radius: 999px; font-size: 11.5px; font-weight: 700; border: 1px solid var(--border-2); }
.badge .dot { width: 8px; height: 8px; border-radius: 50%; background: currentColor; box-shadow: 0 0 8px currentColor; }
.badge.tag-ancient { color: var(--ancient); } .badge.tag-enchanted { color: var(--enchanted); }
.badge.tag-gloomy { color: var(--gloomy); } .badge.tag-haunted { color: var(--haunted); }
.badge.tag-wild { color: var(--wild); } .badge.tag-any { color: var(--any); }

/* side cards */
.studio-side { display: grid; gap: 18px; position: sticky; top: 84px; }
.card { padding: 20px; }
.card[hidden] { display: none; }
.card-head { margin-bottom: 12px; }
.card-head .field-label { margin: 0; }
.card-head p { margin: 5px 0 0; font-size: 13px; color: var(--muted); }
.card-head-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }

.selected-empty { text-align: center; padding: 30px 14px; display: flex; flex-direction: column; justify-content: center; min-height: 196px; }
.selected-empty .sigil { color: var(--accent); opacity: .6; margin: 0 auto 12px; }
.selected-empty strong { display: block; font-family: var(--font-display); font-size: 22px; margin-bottom: 6px; }
.selected-empty span { font-size: 13.5px; color: var(--muted); max-width: 30ch; margin: 0 auto; }
.saved-empty { font-size: 13.5px; color: var(--muted); margin: 2px 0 0; }
.selected-name { font-family: var(--font-display); font-size: clamp(28px, 4vw, 36px); line-height: 1.05; margin: 2px 0 12px; }
.selected-tags { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 14px; }
.btn-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 8px; }
.btn-pair .btn { width: 100%; }
.lock-row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 12px; }
.lock-row .btn { width: 100%; }
.mini-row { display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 8px; padding: 9px 0; border-bottom: 1px solid var(--border); }
.mini-row:last-child { border-bottom: none; }
.mini-row p { margin: 0; font-family: var(--font-display); font-size: 19px; line-height: 1.1; min-width: 0; }
.mini-row .vname { text-align: left; padding: 0; min-width: 0; font-family: var(--font-display); font-size: 19px; line-height: 1.1; color: var(--text); transition: color .14s var(--ease); }
.mini-row .vname:hover { color: var(--accent); }
.mini-row .vname.current { color: var(--accent); }
.empty-message { font-size: 13px; color: var(--muted); margin: 4px 0 0; }
.remove-saved { width: 30px; height: 30px; border-radius: 8px; color: var(--faint); font-size: 17px; }
.remove-saved:hover { color: var(--accent); background: rgba(76,175,110,.12); }

/* =========================================================================
   Content
   ========================================================================= */
.band { padding: 64px 0; }
.band + .band { border-top: 1px solid var(--border); }
.band-head { max-width: 660px; margin: 0 auto 40px; text-align: center; }
.band-head h2 { font-size: clamp(30px, 4.4vw, 44px); margin-top: 10px; }
.band-head p { margin: 14px auto 0; max-width: 56ch; color: var(--muted); font-size: 17.5px; }

/* contrasting bands */
.band-soft { background: linear-gradient(180deg, rgba(76,175,110,.07), rgba(58,143,94,.03)); }
.band-contrast { background: linear-gradient(180deg, #1a1f2d, #11151f); }

/* steps */
.steps { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; list-style: none; margin: 0; padding: 0; }
.steps::before { content: ""; position: absolute; top: 34px; left: 16.6%; right: 16.6%; height: 2px; background: linear-gradient(90deg, transparent, var(--border-2) 16%, var(--border-2) 84%, transparent); z-index: 0; }
.step { position: relative; z-index: 1; text-align: center; padding: 0 10px; }
.step-badge { width: 68px; height: 68px; margin: 0 auto 16px; border-radius: 50%; display: grid; place-items: center; color: var(--accent); background: var(--solid); border: 1px solid var(--accent); box-shadow: 0 0 0 6px rgba(76,175,110,.05), 0 10px 30px -12px rgba(76,175,110,.4); }
.step-badge svg { width: 28px; height: 28px; }
.step-label { margin: 0 0 6px; font-size: 11px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--accent); }
.step h3 { font-size: 22px; margin-bottom: 7px; }
.step p { margin: 0 auto; max-width: 30ch; color: var(--muted); font-size: 14.5px; }

/* styles explained */
.style-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.style-card { padding: 0; overflow: hidden; }
.style-figure { aspect-ratio: 16 / 9; overflow: hidden; background: #11151f; }
.style-figure { display: flex; align-items: center; justify-content: center; }
.style-figure svg { width: auto; height: 56%; max-height: 88px; } /* line-art emblems sit centred inside the 16:9 box instead of overflowing it */
.style-figure img { width: 100%; height: 100%; object-fit: cover; }
.style-body { padding: 20px 24px 24px; }
.style-card h3 { font-size: 24px; margin-bottom: 4px; color: var(--tone, var(--text)); }
.style-card .ex { font-family: var(--font-display); font-style: italic; font-size: 16px; color: var(--muted); margin-bottom: 10px; }
.style-card p { margin: 0; font-size: 14.5px; color: var(--muted); }
.style-card.ancient { --tone: var(--ancient); } .style-card.enchanted { --tone: var(--enchanted); }
.style-card.gloomy { --tone: var(--gloomy); } .style-card.haunted { --tone: var(--haunted); }
.style-card.wild { --tone: var(--wild); }

/* tips */
.tips { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.tip { padding: 26px 24px; border: 1px solid var(--border); border-radius: var(--r); background: rgba(255,255,255,.035); }
.tip-ico { display: inline-grid; place-items: center; width: 48px; height: 48px; border-radius: 13px; color: var(--accent); background: rgba(76,175,110,.09); border: 1px solid var(--border-2); margin-bottom: 15px; }
.tip-ico svg { width: 24px; height: 24px; }
.guide-link { margin: 30px auto 0; text-align: center; font-size: 15.5px; color: var(--muted); }
.guide-link a { color: var(--accent); font-weight: 700; }
.guide-link a:hover { text-decoration: underline; }
.tip h3 { font-size: 19px; margin-bottom: 6px; }
.tip p { margin: 0; color: var(--muted); font-size: 14.5px; }

/* examples */
/* (examples section removed) */

/* faq */
.faq { max-width: 760px; margin: 0 auto; }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-q { width: 100%; text-align: left; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 4px; font-family: var(--font-display); font-size: 21px; font-weight: 500; color: var(--text); }
.faq-q:hover { color: var(--accent); }
.faq-icon { flex: none; width: 20px; height: 20px; position: relative; }
.faq-icon::before, .faq-icon::after { content: ""; position: absolute; background: var(--accent); transition: transform .22s var(--ease); }
.faq-icon::before { top: 9px; left: 0; width: 20px; height: 2px; }
.faq-icon::after { top: 0; left: 9px; width: 2px; height: 20px; }
.faq-item.is-open .faq-icon::after { transform: scaleY(0); }
.faq-answer { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .26s var(--ease); }
.faq-item.is-open .faq-answer { grid-template-rows: 1fr; }
.faq-answer-inner { overflow: hidden; }
.faq-answer-inner > div { padding: 0 4px 22px; color: var(--muted); font-size: 16px; line-height: 1.65; }

/* cta band */
.cta-band { position: relative; text-align: center; overflow: hidden; }
.cta-bg { position: absolute; inset: 0; z-index: 0; }
.cta-bg img { width: 100%; height: 100%; object-fit: cover; opacity: .5; }
.cta-bg::after { content: ""; position: absolute; inset: 0; background: radial-gradient(80% 120% at 50% 40%, rgba(11,14,22,.55), rgba(11,14,22,.92)); }
.cta-band .cta-inner { position: relative; z-index: 1; }
.cta-band h2 { font-size: clamp(28px, 4vw, 40px); }
.cta-band p { color: var(--muted); margin: 12px auto 22px; max-width: 48ch; }
.cta-band .btn { display: inline-flex; flex: none; padding: 0 30px; }

/* footer */
.site-footer { border-top: 1px solid var(--border); margin-top: 30px; padding: 34px 0 46px; }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.footer-brand { display: flex; align-items: center; gap: 9px; color: var(--muted); font-size: 14px; }
.footer-brand .logo-mark { color: var(--accent); }
.footer-links { display: flex; flex-wrap: wrap; gap: 18px; font-size: 14px; font-weight: 600; }
.footer-links a, .footer-links button { color: var(--muted); }
.footer-links a:hover, .footer-links button:hover { color: var(--accent); }

/* toast / cookie / mobile bar */
.toast { position: fixed; top: 18px; left: 50%; transform: translateX(-50%); z-index: 300; background: var(--solid); border: 1px solid var(--border-2); color: var(--text); border-radius: 12px; padding: 12px 18px; box-shadow: var(--shadow); max-width: min(440px, calc(100% - 32px)); }
.toast[hidden] { display: none; }
.toast p { margin: 0; font-family: var(--font-display); font-size: 16px; color: var(--accent); }
.toast span { font-size: 13px; color: var(--muted); }

.cookie-banner { position: fixed; left: 18px; bottom: 18px; z-index: 250; width: min(410px, calc(100% - 36px)); background: var(--solid); border: 1px solid var(--border-2); border-radius: 14px; box-shadow: var(--shadow); padding: 20px 22px; }
.cookie-banner .cookie-title { margin: 0 0 6px; font-family: var(--font-display); font-size: 20px; }
.cookie-banner p { margin: 0 0 14px; font-size: 13.5px; color: var(--muted); line-height: 1.5; }
.cookie-actions { display: flex; flex-wrap: wrap; gap: 8px; }

.mobile-bar { display: none; }

/* reveal
   Resting state is the FINAL state (visible, no transform) so that a later
   style recalc - e.g. when the Fraunces web font swaps in - has no armed
   forwards/both animation to replay, which previously made the hero text jump
   back to faded. The rise plays once, only while the JS adds .is-animating,
   then JS removes it on animationend leaving this plain visible state. */
.reveal { opacity: 1; transform: none; }
@media (prefers-reduced-motion: no-preference) {
  .reveal.is-animating { opacity: 0; transform: translateY(16px); animation: rise .6s var(--ease) forwards; }
  .name-grid.is-fresh .name-card { opacity: 0; transform: translateY(10px); animation: rise .42s var(--ease) forwards; }
  @keyframes rise { to { opacity: 1; transform: none; } }
}

/* =========================================================================
   Responsive
   ========================================================================= */
@media (max-width: 1000px) {
  .studio-grid { grid-template-columns: 1fr; }
  .studio-side { position: static; grid-template-columns: 1fr; }
  .steps, .tips { grid-template-columns: 1fr; }
  .steps { gap: 16px; }
  .steps::before { display: none; }
  .style-cards { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 720px) {
  .nav-item { width: 100%; }
  .nav-link { width: 100%; justify-content: space-between; padding: 13px; font-size: 16px; border-radius: 10px; }
  .dropdown-panel, .dropdown-panel.mega {
    position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none;
    width: auto; min-width: 0; display: none; grid-template-columns: 1fr;
    border: none; border-left: 2px solid var(--border-2); border-radius: 0;
    margin: 2px 0 6px 14px; padding: 2px 0;
  }
  .nav-dropdown.is-open .dropdown-panel { display: block; }
  .mega-head { margin-top: 10px; }
  body { font-size: 16px; }
  .style-cards { grid-template-columns: 1fr; }
  .container { width: calc(100% - 32px); }
  .nav { display: none; }
  .nav.is-open { display: flex; flex-direction: column; align-items: stretch; gap: 4px; position: absolute; top: 66px; left: 0; right: 0; background: var(--solid); border-bottom: 1px solid var(--border-2); padding: 14px 16px 18px; }
  .nav.is-open a { width: 100%; padding: 13px; font-size: 16px; }
  .nav-toggle { display: inline-flex; }
  .hero { padding: 34px 0 14px; }
  .studio-main { padding: 20px 18px; }
  .gen-row { flex-direction: column; }
  .options { grid-template-columns: 1fr; }
  .name-grid { grid-template-columns: 1fr; }
  .band { padding: 44px 0; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
  .mobile-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 120; display: block; padding: 10px 14px calc(10px + env(safe-area-inset-bottom)); background: rgba(17,21,31,.97); border-top: 1px solid var(--border-2); transform: translateY(120%); transition: transform .25s var(--ease); }
  body.show-mobile-bar .mobile-bar { transform: translateY(0); }
  body.show-mobile-bar { padding-bottom: 78px; }
  .mobile-bar .btn { width: 100%; min-height: 50px; }
}



/* ===== kept from later build: compact hero ===== */
.hero { position: relative; overflow: hidden; display: grid; align-items: center; min-height: clamp(380px, 50vh, 520px); text-align: center; }
.hero-inner { position: relative; z-index: 1; padding: 44px 0; }
.hero-inner .eyebrow { margin-bottom: 16px; }
.hero h1 { font-size: clamp(46px, 7.5vw, 84px); letter-spacing: -.02em; text-shadow: 0 2px 30px rgba(0,0,0,.5); }
.hero-lead { margin: 20px auto 0; max-width: 54ch; font-size: 19px; color: #d6deef; text-shadow: 0 1px 16px rgba(0,0,0,.5); }
.hero-trust { margin: 20px auto 0; font-size: 13.5px; font-weight: 600; letter-spacing: .04em; color: #aab4cc; text-shadow: 0 1px 12px rgba(0,0,0,.55); }
.hero-trust b { color: var(--accent); font-weight: 700; font-size: 30px; line-height: 1; vertical-align: -2px; }

/* ===== kept from later build: more generators grid ===== */
.gen-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.gen-card { display: flex; align-items: center; gap: 14px; padding: 15px 16px; border: 1px solid var(--border); border-radius: var(--r); background: var(--surface); transition: .16s var(--ease); color: var(--text); }
.gen-card:hover { border-color: var(--border-2); transform: translateY(-2px); background: var(--surface-2); color: var(--text); }
.gen-mark { flex: none; width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; font-family: var(--font-display); font-size: 22px; font-weight: 600; color: var(--gen-accent, var(--accent)); background: color-mix(in srgb, var(--gen-accent, var(--accent)) 14%, transparent); border: 1px solid color-mix(in srgb, var(--gen-accent, var(--accent)) 32%, transparent); }
.gen-info { min-width: 0; flex: 1; }
.gen-name { display: block; font-family: var(--font-display); font-size: 18px; line-height: 1.1; }
.gen-sub { display: block; font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--faint); margin-top: 3px; }
.gen-arrow { flex: none; color: var(--faint); transition: .16s var(--ease); }
.gen-card:hover .gen-arrow { color: var(--gen-accent, var(--accent)); transform: translateX(3px); }
@media (max-width: 1000px) { .gen-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .gen-grid { grid-template-columns: 1fr; } }
