/* Gizmoza — "symbol workbench / gadget lab" design.
   Palette: ink #211d33 text, coral-magenta #e8355f primary, mint #17b890 secondary,
   amber #f2a007 small accent, white #ffffff / off-white #f7f7fb base.
   One CSS file, system fonts only, no external requests, no images. */
:root {
  --ink: #211d33;
  --ink-soft: #4c4763;
  --muted: #6f6a85;
  --paper: #ffffff;
  --wash: #f7f7fb;
  --wash2: #efedf7;
  --line: #211d33;
  --line-soft: #d9d6e8;
  --coral: #e8355f;
  --coral-deep: #b81f45;
  --coral-soft: #fdeef2;
  --mint: #17b890;
  --mint-soft: #e3f7f1;
  --amber: #f2a007;
  --amber-soft: #fdf3dd;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 2px 0 var(--line);
  --shadow-lg: 0 4px 0 var(--line);
  --font: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --font-display: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--wash); color: var(--ink);
  font-family: var(--font); font-size: 17px; line-height: 1.7;
  -webkit-text-size-adjust: 100%;
}
body::before {
  content: "✦ ★ ♥ ♪ ✧ ❀ ➤ ◆ ✩ ♫ ❖ ✿";
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  font-size: 120px; line-height: 1.4; letter-spacing: 60px; word-spacing: 80px;
  color: var(--ink); opacity: 0.03; overflow: hidden; white-space: normal;
}
body > * { position: relative; z-index: 1; }
h1, h2, h3 { font-family: var(--font-display); line-height: 1.25; color: var(--ink); }
h1 { font-size: 2rem; }
h2 { font-size: 1.45rem; margin: 2.2rem 0 0.7rem; }
h3 { font-size: 1.15rem; margin: 1.6rem 0 0.5rem; }
p { margin: 0 0 1rem; }
a { color: var(--coral-deep); text-decoration: underline; text-underline-offset: 3px; }
a:hover { color: var(--coral); }
img, svg { max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
input[type="text"], input[type="number"], select, textarea {
  width: 100%; padding: 0.7rem 0.85rem; border: 2px solid var(--line);
  border-radius: var(--radius-sm); background: var(--paper); font-size: 1rem;
}
input:focus, select:focus, textarea:focus, button:focus-visible, a:focus-visible, summary:focus-visible {
  outline: 3px solid var(--amber); outline-offset: 2px;
}
textarea { resize: vertical; min-height: 120px; }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 20px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- buttons / chips ---------- */
.btn {
  display: inline-block; padding: 0.75rem 1.4rem; border: 2px solid var(--line);
  border-radius: 999px; background: var(--coral); color: #fff; font-weight: 700;
  text-decoration: none; cursor: pointer; box-shadow: var(--shadow);
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
  min-height: 44px; line-height: 1.3; text-align: center;
}
.btn:hover { background: var(--coral-deep); color: #fff; transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.btn:active { transform: translateY(1px); box-shadow: none; }
.btn.ghost { background: var(--paper); color: var(--ink); }
.btn.ghost:hover { background: var(--wash2); color: var(--ink); }
.btn.sm { padding: 0.45rem 0.9rem; min-height: 40px; font-size: 0.92rem; }
.btn.big { font-size: 1.05rem; }
.chip {
  display: inline-block; padding: 0.25rem 0.85rem; border: 2px solid var(--line);
  border-radius: 999px; background: var(--mint-soft); color: var(--ink);
  font-size: 0.85rem; font-weight: 700; text-decoration: none; margin: 0 0.3rem 0.4rem 0;
}
.chip:hover { background: var(--mint); color: #fff; }
.row { display: flex; gap: 0.8rem; flex-wrap: wrap; align-items: center; }

/* ---------- header ---------- */
.progress { position: fixed; top: 0; left: 0; height: 4px; width: 0; background: linear-gradient(90deg, var(--coral), var(--amber), var(--mint)); z-index: 120; }
.site-header {
  position: sticky; top: 0; z-index: 100; background: rgba(255, 255, 255, 0.96);
  border-bottom: 2px solid var(--line); transition: transform 0.25s ease;
}
.site-header.hide { transform: translateY(-110%); }
.site-header.shrink .header-inner { padding-top: 0.45rem; padding-bottom: 0.45rem; }
.header-inner {
  max-width: 1180px; margin: 0 auto; padding: 0.8rem 20px;
  display: flex; align-items: center; gap: 1rem; transition: padding 0.25s ease;
}
.site-branding { display: flex; align-items: center; gap: 0.6rem; min-width: 0; }
.logo { display: inline-flex; align-items: center; gap: 0.5rem; font-size: 1.5rem; font-weight: 800; color: var(--ink); text-decoration: none; letter-spacing: -0.5px; }
.logo-mark {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border: 2px solid var(--line); border-radius: 12px;
  background: var(--coral); color: #fff; font-size: 1.3rem; line-height: 1;
  box-shadow: var(--shadow); transition: transform 0.25s ease;
}
.logo:hover .logo-mark { transform: rotate(-8deg) scale(1.06); }
.tagline { font-size: 0.85rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.main-navigation { margin-left: auto; }
.main-navigation ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 0.2rem; align-items: center; }
.main-navigation a, .main-navigation .navlink {
  display: inline-block; padding: 0.55rem 0.85rem; border-radius: 999px;
  color: var(--ink); text-decoration: none; font-weight: 600; background: none;
  border: 2px solid transparent; cursor: pointer; font-size: 0.98rem;
}
.main-navigation a:hover, .main-navigation .navlink:hover { background: var(--wash2); border-color: var(--line-soft); }
.has-drop { position: relative; }
.drop {
  position: absolute; top: calc(100% + 10px); left: 50%; transform: translateX(-50%) translateY(8px);
  width: 560px; max-width: 90vw; background: var(--paper); border: 2px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow-lg); padding: 0.7rem;
  display: grid; grid-template-columns: 1fr 1fr; gap: 0.3rem;
  opacity: 0; visibility: hidden; transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
  z-index: 110;
}
.has-drop.open .drop, .has-drop:focus-within .drop { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }
.drop a { display: flex; gap: 0.7rem; align-items: flex-start; padding: 0.6rem 0.7rem; border-radius: var(--radius-sm); }
.drop a:hover { background: var(--coral-soft); border-color: transparent; }
.drop a b { display: block; font-size: 0.98rem; }
.drop a span { display: block; font-size: 0.84rem; color: var(--muted); font-weight: 400; line-height: 1.45; }
.tool-ic {
  flex: 0 0 auto; width: 34px; height: 34px; border: 2px solid var(--line); border-radius: 10px;
  background: var(--mint-soft); display: inline-flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 0.9rem;
}
.header-actions { display: flex; gap: 0.5rem; align-items: center; margin-left: 0.4rem; }
.icon-btn {
  width: 44px; height: 44px; border: 2px solid var(--line); border-radius: 50%;
  background: var(--paper); cursor: pointer; font-size: 1.15rem; line-height: 1;
  display: inline-flex; align-items: center; justify-content: center; box-shadow: var(--shadow);
  transition: transform 0.18s ease;
}
.icon-btn:hover { transform: translateY(-2px); background: var(--amber-soft); }
.cta-btn { white-space: nowrap; }
.menu-btn { display: none; }

/* ---------- mobile menu + search ---------- */
.menu-backdrop { position: fixed; inset: 0; background: rgba(33, 29, 51, 0.45); z-index: 130; opacity: 0; visibility: hidden; transition: opacity 0.25s ease, visibility 0.25s; }
.menu-backdrop.open { opacity: 1; visibility: visible; }
.mobile-menu {
  position: fixed; top: 0; right: 0; bottom: 0; width: min(340px, 88vw); z-index: 140;
  background: var(--paper); border-left: 2px solid var(--line); padding: 1rem 1.2rem 2rem;
  transform: translateX(105%); transition: transform 0.3s ease; overflow-y: auto;
}
.mobile-menu.open { transform: translateX(0); }
.mobile-menu .mhead { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1rem; }
.mobile-menu .mlink {
  display: block; padding: 0.7rem 0.4rem; border-bottom: 1px solid var(--line-soft);
  color: var(--ink); text-decoration: none; font-weight: 600; font-size: 1.05rem;
  opacity: 0; transform: translateX(12px); transition: opacity 0.25s ease, transform 0.25s ease;
}
.mobile-menu.open .mlink { opacity: 1; transform: translateX(0); }
.search-overlay {
  position: fixed; inset: 0; z-index: 150; background: rgba(33, 29, 51, 0.55);
  display: flex; align-items: flex-start; justify-content: center; padding: 12vh 16px 16px;
  opacity: 0; visibility: hidden; transition: opacity 0.2s ease, visibility 0.2s;
}
.search-overlay.open { opacity: 1; visibility: visible; }
.search-box {
  width: min(620px, 100%); background: var(--paper); border: 2px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow-lg); padding: 1.2rem 1.3rem;
  transform: translateY(-10px); transition: transform 0.2s ease; max-height: 70vh; overflow-y: auto;
}
.search-overlay.open .search-box { transform: translateY(0); }
.search-results { list-style: none; margin: 1rem 0 0; padding: 0; }
.search-results li { border-bottom: 1px solid var(--line-soft); }
.search-results a { display: block; padding: 0.6rem 0.2rem; color: var(--ink); text-decoration: none; }
.search-results a:hover b { color: var(--coral-deep); }
.search-note { color: var(--muted); font-size: 0.92rem; }
.mini { border: 2px solid var(--line); background: var(--paper); border-radius: 999px; padding: 0.3rem 0.9rem; cursor: pointer; font-weight: 600; }

/* ---------- layout ---------- */
.site-content { padding: 1.6rem 0 3rem; }
.layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 1.6rem; align-items: start; }
.layout.no-rail { grid-template-columns: minmax(0, 1fr); }
.content-area { min-width: 0; }
.site-main { min-width: 0; }
.breadcrumbs { font-size: 0.9rem; color: var(--muted); margin-bottom: 0.9rem; }
.breadcrumbs a { color: var(--muted); }
.entry-header { margin-bottom: 1rem; }
.entry-title { margin: 0.2rem 0 0.6rem; font-size: 2.1rem; letter-spacing: -0.5px; }
.entry-meta { display: flex; flex-wrap: wrap; gap: 0.4rem 1rem; color: var(--muted); font-size: 0.92rem; margin: 0; }
.entry-content { max-width: 760px; }
.layout.no-rail .entry-content { max-width: 760px; }
.lead { font-size: 1.12rem; color: var(--ink-soft); }
.block-title { font-weight: 800; font-size: 1.15rem; margin: 2rem 0 0.8rem; }

/* ---------- hero + bento ---------- */
.hero {
  display: grid; grid-template-columns: 1.15fr 1fr; gap: 1.2rem; margin-bottom: 1.6rem;
}
.hero-copy {
  background: var(--paper); border: 2px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-lg); padding: 1.8rem 1.8rem 1.6rem;
}
.hero-copy h1 { font-size: 2.3rem; margin: 0 0 0.8rem; letter-spacing: -0.8px; }
.hero-copy h1 .accent { color: var(--coral); }
.hero-demo {
  background: var(--ink); color: #fff; border: 2px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-lg); padding: 1.5rem 1.5rem 1.3rem;
}
.hero-demo-title { font-weight: 800; margin: 0 0 0.7rem; font-size: 1.05rem; }
.hero-demo label { color: #fff; }
.hero-demo textarea { background: #2e2947; border-color: #fff; color: #fff; }
.hero-demo .result-chip { background: #2e2947; border-color: #fff; }
.hero-demo .result-text { color: #fff; }
.hero-demo a { color: var(--amber); }
.hero-demo-out { margin-top: 0.6rem; }
.bento-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 1.1rem; margin-bottom: 1.6rem; }
.bento-grid .card:nth-child(1) { grid-column: span 3; }
.bento-grid .card:nth-child(2) { grid-column: span 3; }
.bento-grid .card:nth-child(n+3) { grid-column: span 2; }
.card {
  background: var(--paper); border: 2px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 1.2rem 1.25rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.card.wide { grid-column: span 6; }
.card .card-ic {
  width: 46px; height: 46px; border: 2px solid var(--line); border-radius: 12px;
  background: var(--coral-soft); display: inline-flex; align-items: center; justify-content: center;
  font-size: 1.4rem; margin-bottom: 0.6rem;
}
.card:nth-child(3n+2) .card-ic { background: var(--mint-soft); }
.card:nth-child(3n) .card-ic { background: var(--amber-soft); }
.card-title { font-size: 1.15rem; font-weight: 800; margin: 0 0 0.4rem; }
.card-title a { color: var(--ink); text-decoration: none; }
.card-title a:hover { color: var(--coral-deep); }
.card p { margin-bottom: 0.6rem; }
.card .meta { color: var(--muted); font-size: 0.88rem; }
.grid { display: grid; gap: 1.1rem; }
.grid-2 { grid-template-columns: 1fr 1fr; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.how-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; margin-bottom: 1.6rem; }
.how-step {
  background: var(--mint-soft); border: 2px solid var(--line); border-radius: var(--radius);
  padding: 1rem 1.1rem; box-shadow: var(--shadow);
}
.how-step:nth-child(2) { background: var(--coral-soft); }
.how-step:nth-child(3) { background: var(--amber-soft); }
.how-step:nth-child(4) { background: var(--wash2); }
.how-step .step-n {
  display: inline-flex; width: 34px; height: 34px; border: 2px solid var(--line);
  border-radius: 50%; background: var(--paper); align-items: center; justify-content: center;
  font-weight: 800; margin-bottom: 0.5rem;
}
.how-step p { margin: 0; font-size: 0.95rem; }

/* ---------- tool panel ---------- */
.gen-card {
  background: var(--paper); border: 2px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-lg); padding: 1.3rem 1.4rem; margin: 1.2rem 0 1.6rem;
}
.gen-form { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.gen-field { display: flex; flex-direction: column; gap: 0.4rem; }
.gen-field.wide { grid-column: span 2; }
.gen-field label, .gen-field legend { font-weight: 700; font-size: 0.98rem; }
.gen-field .hint { font-weight: 400; color: var(--muted); font-size: 0.88rem; }
.gen-field fieldset { border: 2px solid var(--line-soft); border-radius: var(--radius-sm); padding: 0.8rem 1rem; margin: 0; }
.gen-field fieldset label { display: flex; gap: 0.5rem; align-items: center; font-weight: 400; padding: 0.25rem 0; }
.gen-actions { display: flex; gap: 0.7rem; flex-wrap: wrap; margin: 1.1rem 0 0.9rem; }
.gen-note { font-size: 0.88rem; color: var(--muted); margin: 0.8rem 0 0; }
.results { display: flex; flex-direction: column; gap: 0.6rem; margin-top: 0.4rem; }
.result-chip {
  display: flex; align-items: center; gap: 0.8rem; background: var(--wash);
  border: 2px solid var(--line); border-radius: var(--radius-sm); padding: 0.6rem 0.8rem;
  animation: pop 0.25s ease;
}
@keyframes pop { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: translateY(0); } }
.result-label { font-size: 0.82rem; font-weight: 800; color: var(--coral-deep); text-transform: uppercase; letter-spacing: 0.4px; flex: 0 0 auto; }
.result-text { flex: 1 1 auto; min-width: 0; overflow-wrap: anywhere; font-size: 1.08rem; }
.copy-one { flex: 0 0 auto; }
.result-empty { color: var(--muted); margin: 0; }
.char-counter { font-size: 0.85rem; color: var(--muted); margin: 0.3rem 0 0; }
.sym-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(52px, 1fr)); gap: 0.5rem; margin-top: 0.9rem; }
.sym-cell {
  height: 52px; border: 2px solid var(--line); border-radius: var(--radius-sm);
  background: var(--paper); font-size: 1.5rem; cursor: pointer; line-height: 1;
  transition: transform 0.15s ease, background 0.15s ease;
}
.sym-cell:hover { background: var(--amber-soft); transform: translateY(-2px); }
.cat-chips { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 0.8rem; }
.cat-chips .chip { cursor: pointer; background: var(--paper); margin: 0; }
.cat-chips .chip.active { background: var(--coral); color: #fff; }
.toast {
  position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%) translateY(20px);
  background: var(--ink); color: #fff; padding: 0.7rem 1.3rem; border-radius: 999px;
  font-weight: 700; z-index: 200; opacity: 0; visibility: hidden;
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s; pointer-events: none;
}
.toast.show { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }

/* ---------- article chrome ---------- */
.takeaways {
  background: var(--mint-soft); border: 2px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 1.1rem 1.3rem; margin: 1.4rem 0;
}
.takeaways ul { margin: 0.4rem 0 0; padding-left: 1.2rem; }
.takeaways li { margin-bottom: 0.35rem; }
.table-wrap { overflow-x: auto; margin: 1rem 0 1.4rem; border: 2px solid var(--line); border-radius: var(--radius-sm); }
table { border-collapse: collapse; width: 100%; min-width: 520px; background: var(--paper); font-size: 0.95rem; }
th, td { padding: 0.6rem 0.8rem; text-align: left; border-bottom: 1px solid var(--line-soft); vertical-align: top; }
th { background: var(--ink); color: #fff; font-weight: 700; }
tr:last-child td { border-bottom: none; }
.faq-list { margin: 0.8rem 0 1.4rem; display: flex; flex-direction: column; gap: 0.6rem; }
.faq { background: var(--paper); border: 2px solid var(--line); border-radius: var(--radius-sm); overflow: hidden; }
.faq summary {
  padding: 0.85rem 1.1rem; font-weight: 700; cursor: pointer; list-style: none;
  display: flex; justify-content: space-between; gap: 1rem; align-items: center;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.3rem; color: var(--coral); font-weight: 800; flex: 0 0 auto; }
.faq[open ] summary::after { content: "−"; }
.faq-a { padding: 0 1.1rem 1rem; }
.faq-a p { margin: 0; }
.author-box {
  display: flex; gap: 1rem; background: var(--paper); border: 2px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow); padding: 1.2rem 1.3rem; margin: 1.8rem 0;
}
.author-avatar {
  flex: 0 0 auto; width: 64px; height: 64px; border: 2px solid var(--line); border-radius: 50%;
  background: var(--coral); color: #fff; display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 1.3rem;
}
.author-name { font-weight: 800; margin: 0 0 0.2rem; }
.author-role { color: var(--muted); font-size: 0.9rem; margin: 0 0 0.5rem; }
.author-box p:last-child { margin: 0; }
.related { margin-top: 2rem; }
.rel-list { display: grid; grid-template-columns: 1fr 1fr; gap: 0.8rem; }
.rel-list a {
  display: block; background: var(--paper); border: 2px solid var(--line); border-radius: var(--radius-sm);
  padding: 0.8rem 1rem; color: var(--ink); text-decoration: none; font-weight: 700; box-shadow: var(--shadow);
  transition: transform 0.18s ease;
}
.rel-list a:hover { transform: translateY(-2px); color: var(--coral-deep); }
.rel-list a span { display: block; font-weight: 400; font-size: 0.88rem; color: var(--muted); margin-top: 0.2rem; }
.post-nav { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin: 1.6rem 0; }
.post-nav a { font-weight: 700; }
.notfound { text-align: center; padding: 3rem 0; }
.notfound .big { font-size: 4rem; font-weight: 800; color: var(--coral); margin: 0; }

/* ---------- right rail ---------- */
.widget-area { position: sticky; top: 96px; display: flex; flex-direction: column; gap: 1rem; }
.widget {
  background: var(--paper); border: 2px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 1.1rem 1.2rem;
}
.widget-title { font-weight: 800; margin: 0 0 0.6rem; font-size: 1.02rem; }
.widget ul { list-style: none; margin: 0; padding: 0; }
.widget li { padding: 0.35rem 0; border-bottom: 1px solid var(--line-soft); }
.widget li:last-child { border-bottom: none; }
.widget p { margin: 0 0 0.6rem; }
.widget p:last-child { margin: 0; }
.avatar-sm {
  width: 48px; height: 48px; border: 2px solid var(--line); border-radius: 50%;
  background: var(--mint); color: #fff; display: inline-flex; align-items: center; justify-content: center;
  font-weight: 800; margin-bottom: 0.5rem;
}
.toc-list a { display: block; padding: 0.3rem 0; color: var(--ink-soft); text-decoration: none; font-size: 0.93rem; }
.toc-list a.active { color: var(--coral-deep); font-weight: 800; }
.disclaimer-box { background: var(--amber-soft); }

/* ---------- footer ---------- */
.site-footer { background: var(--ink); color: #e9e6f5; margin-top: 1rem; }
.footer-top { height: 6px; background: linear-gradient(90deg, var(--coral), var(--amber), var(--mint), var(--coral)); background-size: 200% 100%; animation: slide 8s linear infinite; }
@keyframes slide { from { background-position: 0 0; } to { background-position: 200% 0; } }
.footer-wordmark {
  font-size: clamp(3rem, 10vw, 7rem); font-weight: 800; line-height: 1; color: rgba(255, 255, 255, 0.07);
  text-align: center; padding: 1.6rem 0 0; letter-spacing: -2px; user-select: none;
}
.footer-widgets { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 1.6rem; padding: 1.6rem 0 1.8rem; }
.footer-widgets .logo { color: #fff; }
.footer-title { font-weight: 800; color: #fff; margin: 0 0 0.7rem; }
.footer-widgets a { color: #cfc9e8; display: block; padding: 0.25rem 0; text-decoration: none; font-size: 0.95rem; }
.footer-widgets a:hover { color: #fff; }
.footer-widgets p { color: #b9b2d6; font-size: 0.95rem; }
.site-info { border-top: 1px solid #3a3454; padding: 1rem 0 1.4rem; }
.site-info .wrap { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; font-size: 0.9rem; color: #b9b2d6; }
.back-top {
  position: fixed; right: 18px; bottom: 18px; z-index: 90; width: 48px; height: 48px;
  border: 2px solid var(--line); border-radius: 50%; background: var(--amber); color: var(--ink);
  font-size: 1.3rem; cursor: pointer; box-shadow: var(--shadow);
  opacity: 0; visibility: hidden; transition: opacity 0.25s ease, visibility 0.25s, transform 0.2s ease;
}
.back-top.show { opacity: 1; visibility: visible; }
.back-top:hover { transform: translateY(-3px); }

/* ---------- reveal ---------- */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity 0.4s ease, transform 0.4s ease; }
.reveal.in { opacity: 1; transform: translateY(0); }
.page-fade { animation: fadein 0.35s ease; }
@keyframes fadein { from { opacity: 0; } to { opacity: 1; } }

/* ---------- responsive ---------- */
@media (max-width: 1024px) {
  .hero { grid-template-columns: 1fr; }
  .bento-grid .card:nth-child(n) { grid-column: span 3; }
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .how-strip { grid-template-columns: 1fr 1fr; }
  .footer-widgets { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  .layout { grid-template-columns: minmax(0, 1fr); }
  .widget-area { position: static; }
  .main-navigation { display: none; }
  .menu-btn { display: inline-flex; }
  .cta-btn { display: none; }
  .tagline { display: none; }
}
@media (max-width: 640px) {
  body { font-size: 17px; }
  h1 { font-size: 1.7rem; }
  .entry-title { font-size: 1.7rem; }
  .hero-copy h1 { font-size: 1.85rem; }
  .hero-copy, .hero-demo { padding: 1.2rem; }
  .bento-grid .card:nth-child(n) { grid-column: span 6; }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .how-strip { grid-template-columns: 1fr; }
  .gen-form { grid-template-columns: 1fr; }
  .gen-field.wide { grid-column: span 1; }
  .rel-list { grid-template-columns: 1fr; }
  .footer-widgets { grid-template-columns: 1fr; }
  .author-box { flex-direction: column; }
  .gen-actions .btn { flex: 1 1 auto; }
  .result-chip { flex-wrap: wrap; }
  .result-text { flex: 1 1 100%; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  .reveal { opacity: 1; transform: none; }
  body::before { display: none; }
  .footer-top { animation: none; }
}
