:root {
  --bg: #f7f7f5;
  --card: #ffffff;
  --ink: #131316;
  --muted: #6f7280;
  --line: #e7e7e3;
  --line-dark: #131316;
  --accent: #2b6bff;
  --accent-hover: #1f56d6;
  --radius: 18px;
  --shadow: 0 1px 2px rgba(16, 16, 20, 0.06);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

#faq { scroll-margin-top: 90px; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

main.wrap {
  flex: 1;
  width: 100%;
}

.wrap {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
}

.hidden { display: none !important; }

/* topbar - floating glass */
.topbar {
  position: sticky;
  top: 12px;
  z-index: 20;
  max-width: 720px;
  width: calc(100% - 32px);
  margin: 12px auto 0;
  background: rgba(255, 255, 255, 0.65);
  backdrop-filter: blur(14px) saturate(1.4);
  -webkit-backdrop-filter: blur(14px) saturate(1.4);
  border: 1px solid rgba(19, 19, 22, 0.08);
  border-radius: 18px;
  box-shadow: 0 8px 24px rgba(16, 16, 20, 0.07);
}
.topbar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 60px;
  padding: 0 18px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  background: none;
  border: none;
  font: inherit;
}
.brand-mark {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  display: block;
  object-fit: cover;
  transform-origin: center;
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.45s ease;
}
.brand:hover .brand-mark,
.brand:focus-visible .brand-mark {
  animation: logoPop 0.5s cubic-bezier(0.22, 1, 0.36, 1);
  transform: scale(1.08);
  box-shadow: 0 4px 10px rgba(16, 16, 20, 0.14);
}
@keyframes logoPop {
  0% { transform: scale(1) rotate(0deg); }
  40% { transform: scale(1.14) rotate(-8deg); }
  70% { transform: scale(1.04) rotate(3deg); }
  100% { transform: scale(1.08) rotate(0deg); }
}
.brand-name { font-weight: 800; font-size: 17px; letter-spacing: -0.02em; }
.topnav { display: flex; align-items: center; gap: 18px; }
.topnav a { text-decoration: none; color: var(--ink); font-weight: 600; font-size: 14.5px; }
.topnav a:hover { text-decoration: underline; }

/* hero */
.hero { text-align: center; padding: 56px 0 28px; }
.hero h1 { font-size: 44px; margin: 0; letter-spacing: -0.04em; font-weight: 800; }
.hero p { color: var(--muted); font-size: 16px; line-height: 1.6; margin: 12px 0 0; }

/* home grid */
.grid {
  display: grid;
  grid-template-columns: repeat(3, 210px);
  justify-content: center;
  gap: 14px;
  padding-bottom: 60px;
}
.card {
  position: relative;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow);
  padding: 20px 18px;
  min-height: 0;
  height: 120px;
  width: 210px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  text-align: center;
  cursor: pointer;
  font: inherit;
  color: inherit;
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}
.card.active:hover {
  border-color: var(--ink);
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(16, 16, 20, 0.08);
}
.card.active:active { transform: translateY(-1px) scale(0.99); }
.card-title { font-weight: 700; font-size: 16px; letter-spacing: -0.01em; line-height: 1.3; }
.card-sub { color: var(--muted); font-size: 13.5px; line-height: 1.5; }
.card-cta { display: none; }
.card.disabled { opacity: 0.65; cursor: not-allowed; }
.soon {
  position: absolute;
  top: 14px;
  right: 14px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  background: var(--bg);
  border: 1px solid var(--line);
  color: var(--muted);
  padding: 4px 9px;
  border-radius: 999px;
}

/* builder (inline app block: fixed height, options scroll inside, actions always visible) */
#view-builder {
  display: flex;
  flex-direction: column;
  height: calc(100dvh - 96px);
  min-height: 480px;
  scroll-margin-top: 84px;
  margin-bottom: 6px;
}
#view-builder.hidden { display: none !important; }
#view-result { scroll-margin-top: 84px; }
.back {
  background: none;
  border: none;
  font: inherit;
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  padding: 0;
  color: var(--ink);
  transition: transform 0.18s ease, opacity 0.18s ease;
  display: inline-block;
  flex-shrink: 0;
}
.back:hover { text-decoration: underline; transform: translateX(-3px); }
.back:active { transform: translateX(-1px) scale(0.98); }
.view-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 0 8px;
  flex-shrink: 0;
}
.cancel {
  background: none;
  border: 1px solid var(--line);
  border-radius: 999px;
  font: inherit;
  font-weight: 600;
  font-size: 13.5px;
  color: var(--muted);
  padding: 7px 16px;
  cursor: pointer;
  transition: color 0.18s ease, border-color 0.18s ease, background 0.18s ease, transform 0.15s ease;
}
.cancel:hover { color: var(--ink); border-color: var(--ink); background: var(--card); }
.cancel:active { transform: scale(0.96); }

.step-top {
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: 560px;
  width: 100%;
  margin: 14px auto 0;
  flex-shrink: 0;
}
.progress {
  display: flex;
  gap: 6px;
  flex: 1;
  min-width: 0;
}
.progress span {
  height: 3px;
  flex: 1;
  border-radius: 999px;
  background: #e4e4e0;
  transition: background 0.35s ease, transform 0.35s ease;
  transform-origin: left center;
}
.progress span.done { background: var(--ink); }
.progress span.done.pop { animation: progPop 0.35s ease; }
.step-meta { color: var(--muted); font-size: 11px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; white-space: nowrap; flex-shrink: 0; }

.step-box {
  max-width: 560px;
  width: 100%;
  margin: 0 auto;
  text-align: center;
  padding-bottom: 0;
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
}
.step-head { flex-shrink: 0; }
.step-box h2 { font-size: 24px; margin: 6px 0 4px; letter-spacing: -0.02em; }
.step-box p { color: var(--muted); margin: 0 0 14px; font-size: 14px; }

.options {
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 4px 4px 12px;
  margin-bottom: 0;
  scrollbar-width: thin;
  scrollbar-color: #c9c9c4 transparent;
}
.options::-webkit-scrollbar { width: 8px; }
.options::-webkit-scrollbar-thumb { background: #c9c9c4; border-radius: 999px; }
.options::-webkit-scrollbar-track { background: transparent; }

.step-actions {
  flex-shrink: 0;
  position: sticky;
  bottom: 0;
  background: var(--bg);
  border-top: 1px solid var(--line);
  padding: 14px 4px calc(14px + env(safe-area-inset-bottom));
  margin-top: 8px;
}
.step-actions-row {
  display: flex;
  gap: 10px;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
}
.step-actions-row .btn-primary { min-width: 170px; }
#gotoEndBtn { min-width: 0; padding: 14px 24px; animation: riseIn 0.3s cubic-bezier(0.22, 1, 0.36, 1) both; }
.option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: var(--card);
  border: 1.5px solid var(--line);
  border-radius: 14px;
  padding: 17px 18px;
  font: inherit;
  font-size: 16px;
  font-weight: 550;
  cursor: pointer;
  text-align: left;
  transition: border-color 0.18s ease, background 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
  animation: riseIn 0.4s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.option:hover { border-color: #b9b9b4; transform: translateY(-1px); }
.option:active { transform: translateY(0) scale(0.985); }
.option small {
  display: block;
  font-weight: 400;
  color: var(--muted);
  font-size: 13px;
  margin-top: 3px;
}
.opt-left {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}
.swatches {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}
.swatch-dot {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 1.5px solid rgba(19, 19, 22, 0.15);
  box-shadow: 0 1px 2px rgba(16, 16, 20, 0.15);
  margin-left: -7px;
}
.swatch-dot:first-child { margin-left: 0; }
.option:hover { border-color: #b9b9b4; }
.option.selected {
  border-color: var(--ink);
  background: #fff8d6;
  box-shadow: 0 0 0 1px var(--ink) inset;
  animation: riseIn 0.4s cubic-bezier(0.22, 1, 0.36, 1) both, selectPulse 0.28s ease;
}
.option .check {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 1.5px solid #c9c9c4;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  font-size: 14px;
  background: #fff;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}
.option.selected .check {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
  animation: checkPop 0.28s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.text-wrap { animation: riseIn 0.4s cubic-bezier(0.22, 1, 0.36, 1) both; }
.text-input {
  width: 100%;
  min-height: 140px;
  resize: vertical;
  background: var(--card);
  border: 1.5px solid var(--line);
  border-radius: 14px;
  padding: 16px 18px;
  font: inherit;
  font-size: 15px;
  line-height: 1.6;
  color: var(--ink);
  outline: none;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}
.text-input::placeholder { color: #a3a3a0; }
.text-input:focus {
  border-color: var(--ink);
  box-shadow: 0 0 0 1px var(--ink) inset;
}
.text-meta {
  margin-top: 8px;
  font-size: 13px;
  color: var(--muted);
  text-align: left;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 12px;
  font: inherit;
  font-weight: 700;
  font-size: 16px;
  padding: 14px 42px;
  cursor: pointer;
  min-width: 190px;
  transition: background 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease, opacity 0.2s ease;
  box-shadow: 0 1px 2px rgba(43, 107, 255, 0.25);
}
.btn-primary:hover:not(:disabled) { background: var(--accent-hover); transform: translateY(-1px); box-shadow: 0 6px 16px rgba(43, 107, 255, 0.3); }
.btn-primary:active:not(:disabled) { transform: translateY(0) scale(0.97); box-shadow: 0 1px 2px rgba(43, 107, 255, 0.25); }
.btn-primary:disabled { opacity: 0.45; cursor: not-allowed; box-shadow: none; }
.btn-primary.ready { animation: btnReady 0.3s cubic-bezier(0.34, 1.56, 0.64, 1); }
.btn-primary.copied { background: #16a34a; }

.btn-secondary {
  background: var(--card);
  color: var(--ink);
  border: 1.5px solid var(--ink);
  border-radius: 12px;
  font: inherit;
  font-weight: 700;
  font-size: 16px;
  padding: 13px 30px;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.15s ease;
}
.btn-secondary:hover { background: #f0f0ec; transform: translateY(-1px); }
.btn-secondary:active { transform: scale(0.97); }

.btn-skip {
  background: none;
  border: none;
  font: inherit;
  font-weight: 600;
  font-size: 15px;
  color: var(--muted);
  padding: 14px 20px;
  cursor: pointer;
  border-radius: 12px;
  transition: color 0.18s ease, background 0.18s ease;
}
.btn-skip:hover { color: var(--ink); background: #ececea; }
.btn-skip:active { transform: scale(0.97); }

/* result */
.result-layout {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 0;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 20px;
  overflow: hidden;
  margin: 14px 0 30px;
}
.result-left { padding: 30px; }

.prompt-card {
  border: 1.5px solid var(--line);
  border-radius: 16px;
  background: #fbfbfa;
  min-height: 260px;
  padding: 22px;
}
.prompt-card pre {
  margin: 0;
  white-space: pre-wrap;
  word-wrap: break-word;
  font-family: "Inter", sans-serif;
  font-size: 15px;
  line-height: 1.7;
  color: #232329;
}
.result-actions { display: flex; gap: 12px; margin-top: 20px; flex-wrap: wrap; }
.result-actions .btn-primary, .result-actions .btn-secondary { min-width: 0; }
.copy-hint { font-size: 13px; color: #16a34a; min-height: 18px; font-weight: 600; opacity: 0; transform: translateY(4px); transition: opacity 0.25s ease, transform 0.25s ease; }
.copy-hint.show { opacity: 1; transform: translateY(0); }

.summary {
  border-left: 1px solid var(--line);
  padding: 30px 26px;
  background: #fcfcfa;
}
.summary h3 { margin: 0 0 16px; font-size: 16px; }
.sum-row {
  padding: 10px 0;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: flex-start;
}
.sum-row:first-of-type { border-top: none; }
.sum-label { font-weight: 700; font-size: 13.5px; flex-shrink: 0; }
.sum-value { color: var(--muted); font-size: 13.5px; text-align: right; min-width: 0; max-width: 65%; }
.sum-value b { color: var(--ink); font-weight: 600; display: block; overflow-wrap: break-word; word-break: break-word; }
.sum-edit {
  background: none; border: none; padding: 0;
  color: var(--accent); font: inherit; font-size: 12px; font-weight: 600;
  cursor: pointer; margin-top: 3px;
}

.footer {
  color: var(--muted);
  font-size: 13px;
  padding-bottom: 34px;
  text-align: center;
}

/* ---------- custom palette modal ---------- */
.modal {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(19, 19, 22, 0.45);
}
.modal-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: 0 24px 64px rgba(16, 16, 20, 0.25);
  max-width: 460px;
  width: 100%;
  max-height: calc(100dvh - 40px);
  overflow-y: auto;
  padding: 24px;
  text-align: left;
  animation: viewIn 0.25s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.modal-card h3 { margin: 0; font-size: 18px; letter-spacing: -0.02em; }
.modal-sub { margin: 4px 0 16px; font-size: 13.5px; color: var(--muted); }
.color-rows { display: flex; flex-direction: column; gap: 10px; margin-bottom: 16px; }
.color-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  padding: 10px 12px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
}
.color-info { display: flex; align-items: center; gap: 10px; }
.color-info code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 12.5px;
  font-weight: 600;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 2px 8px;
  text-transform: uppercase;
}
.color-row input[type="color"] {
  width: 44px;
  height: 32px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 2px;
  background: #fff;
  cursor: pointer;
}
.preview-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 8px;
}
.palette-preview {
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  margin-bottom: 18px;
  max-height: 320px;
  overflow-y: auto;
}
.pv-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 10px 14px;
  font-size: 11px;
  font-weight: 700;
}
.pv-links { font-weight: 500; opacity: 0.7; font-size: 10px; }
.pv-cta {
  font-size: 10px;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: 999px;
  white-space: nowrap;
}
.pv-hero { padding: 22px 16px 24px; text-align: center; }
.pv-badge {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
  margin-bottom: 10px;
  border: 1px solid currentColor;
  opacity: 0.85;
}
.pv-h1 { display: block; font-size: 18px; font-weight: 800; letter-spacing: -0.02em; }
.pv-sub { display: block; font-size: 11px; margin: 6px auto 12px; opacity: 0.75; max-width: 260px; }
.pv-cta-row { display: flex; gap: 8px; justify-content: center; align-items: center; }
.pv-hero .pv-cta { display: inline-block; font-size: 12px; padding: 9px 20px; }
.pv-secondary {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  padding: 8px 18px;
  border-radius: 999px;
  border: 1.5px solid currentColor;
}
.pv-logos {
  text-align: center;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.14em;
  opacity: 0.55;
  padding: 10px;
}
.pv-features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  padding: 0 12px 12px;
}
.pv-card {
  border: 1px solid currentColor;
  border-radius: 10px;
  padding: 10px 8px;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.pv-card b { font-size: 10px; }
.pv-card i { font-style: normal; font-size: 9px; opacity: 0.7; }
.pv-finale {
  margin: 0 12px 14px;
  border-radius: 12px;
  padding: 16px 12px;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: center;
}
.pv-finale b { font-size: 13px; }
.logo-preview {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 18px;
}
.lp-tile {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 18px 8px;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: center;
}
.lp-mark {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 16px;
}
.lp-name { font-size: 11px; font-weight: 700; }
.modal-actions { display: flex; gap: 10px; justify-content: flex-end; }
.modal-actions .btn-primary, .modal-actions .btn-secondary { min-width: 0; padding: 12px 22px; font-size: 14.5px; }

/* ---------- micro animations ---------- */

.hero h1, .hero p { animation: riseIn 0.5s cubic-bezier(0.22, 1, 0.36, 1) both; }
.hero p { animation-delay: 0.08s; }

.grid .card { animation: riseIn 0.5s cubic-bezier(0.22, 1, 0.36, 1) both; }
.grid .card:nth-child(2) { animation-delay: 0.05s; }
.grid .card:nth-child(3) { animation-delay: 0.1s; }
.grid .card:nth-child(4) { animation-delay: 0.15s; }
.grid .card:nth-child(5) { animation-delay: 0.2s; }
.grid .card:nth-child(6) { animation-delay: 0.25s; }

.view-anim { animation: viewIn 0.35s cubic-bezier(0.22, 1, 0.36, 1) both; }
.step-slide-next { animation: slideNext 0.3s cubic-bezier(0.22, 1, 0.36, 1) both; }
.step-slide-prev { animation: slidePrev 0.3s cubic-bezier(0.22, 1, 0.36, 1) both; }

.result-layout { animation: viewIn 0.4s cubic-bezier(0.22, 1, 0.36, 1) both; }
.prompt-card { transition: border-color 0.2s ease, box-shadow 0.2s ease; }
.prompt-card.flash { border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink) inset; }
.sum-row { animation: riseIn 0.35s cubic-bezier(0.22, 1, 0.36, 1) both; }

.step-box h2, .step-box > p, .step-meta { transition: opacity 0.2s ease; }

@keyframes riseIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes viewIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes slideNext {
  from { opacity: 0; transform: translateX(24px); }
  to { opacity: 1; transform: translateX(0); }
}
@keyframes slidePrev {
  from { opacity: 0; transform: translateX(-24px); }
  to { opacity: 1; transform: translateX(0); }
}
@keyframes checkPop {
  0% { transform: scale(0.4); }
  60% { transform: scale(1.25); }
  100% { transform: scale(1); }
}
@keyframes selectPulse {
  0% { transform: scale(1); }
  40% { transform: scale(1.012); }
  100% { transform: scale(1); }
}
@keyframes progPop {
  from { transform: scaleX(0.4); opacity: 0.4; }
  to { transform: scaleX(1); opacity: 1; }
}
@keyframes btnReady {
  0% { transform: scale(0.96); }
  60% { transform: scale(1.03); }
  100% { transform: scale(1); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ---------- homepage SEO sections ---------- */
.home-section { padding: 28px 0 8px; }
.home-section h2 { font-size: 28px; letter-spacing: -0.03em; margin: 0 0 10px; text-align: center; font-weight: 800; }
.section-sub { color: var(--muted); text-align: center; max-width: 680px; margin: 0 auto 22px; line-height: 1.65; font-size: 15.5px; }
.how-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.how-card { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 22px 20px; box-shadow: var(--shadow); }
.how-num { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--ink); color: #fff; font-weight: 800; font-size: 14px; margin-bottom: 10px; }
.how-card h3 { margin: 0 0 6px; font-size: 16px; }
.how-card p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.6; }
.seo-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.seo-grid article { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 20px; box-shadow: var(--shadow); }
.seo-grid h3 { margin: 0 0 8px; font-size: 15.5px; }
.seo-grid p { margin: 0; color: var(--muted); font-size: 13.8px; line-height: 1.65; }
.seo-wide { grid-column: 1 / -1; }
.home-section.split { display: grid; grid-template-columns: 1.4fr 1fr; gap: 20px; align-items: start; background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 30px; margin-top: 28px; }
.home-section.split h2 { text-align: left; }
.home-section.split p { color: var(--muted); line-height: 1.7; font-size: 15px; }
.check-list { list-style: none; padding: 0; margin: 16px 0 0; display: flex; flex-direction: column; gap: 8px; }
.check-list li { font-size: 14.5px; padding-left: 28px; position: relative; }
.check-list li::before { content: "✓"; position: absolute; left: 0; top: 0; width: 20px; height: 20px; border-radius: 50%; background: #16a34a; color: #fff; font-size: 12px; display: grid; place-items: center; font-weight: 800; }
.mini-card { background: #fbfbfa; border: 1.5px solid var(--line); border-radius: 16px; padding: 22px; }
.mini-card h3 { margin: 0 0 10px; font-size: 14px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); }
.mini-prompt { font-size: 14px; line-height: 1.7; color: #232329; font-style: italic; margin: 0 0 10px; }
.mini-note { font-size: 12.5px; font-weight: 700; color: #16a34a; }
.faq { max-width: 720px; margin: 0 auto; display: flex; flex-direction: column; gap: 10px; }
.faq details { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px; }
.faq summary { font-weight: 700; font-size: 15px; cursor: pointer; }
.faq p { color: var(--muted); font-size: 14px; line-height: 1.65; margin: 8px 0 0; }
.seo-article { max-width: 760px; margin: 0 auto; padding-bottom: 60px; }
.seo-article p { color: var(--muted); line-height: 1.75; font-size: 15px; }

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--line); background: #fff; margin-top: 10px; }
.site-footer a { color: var(--ink); text-decoration: none; font-weight: 500; }
.site-footer a:hover { text-decoration: underline; }
.footer-bottom { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; padding-top: 16px; padding-bottom: 22px; color: var(--muted); font-size: 13px; }

/* ---------- generator pages ---------- */
a.card { text-decoration: none; color: inherit; }
.crumbs { padding: 22px 0 0; font-size: 13.5px; color: var(--muted); }
.crumbs a { color: var(--ink); font-weight: 600; text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }
.gen-hero { text-align: center; padding: 26px 0 8px; }
.gen-hero h1 { font-size: 38px; margin: 0; letter-spacing: -0.035em; font-weight: 800; }
.gen-hero p { color: var(--muted); font-size: 16px; line-height: 1.65; margin: 12px auto 0; max-width: 640px; }
.gen-start { margin-top: 20px; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.gen-micro { font-size: 13px; color: var(--muted); font-weight: 500; }
.gen-chips { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; margin-top: 14px; }
.gen-chips span { font-size: 12.5px; font-weight: 700; background: var(--card); border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px; color: var(--ink); }
.steps-list { max-width: 620px; margin: 0 auto; background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 12px 12px 12px 44px; box-shadow: var(--shadow); color: var(--ink); font-size: 14.5px; line-height: 1.6; }
.steps-list li { padding: 7px 12px 7px 0; border-top: 1px solid var(--line); }
.steps-list li:first-child { border-top: none; }
.related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.related-grid a { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; text-decoration: none; color: inherit; display: flex; flex-direction: column; gap: 4px; }
.related-grid a:hover { border-color: var(--ink); }
.related-grid b { font-size: 14.5px; }
.related-grid span { color: var(--muted); font-size: 13px; line-height: 1.55; }
.guide-link { text-align: center; margin-top: 18px; font-size: 15px; font-weight: 600; }
.guide-link a { color: var(--accent); text-decoration: none; }
.guide-link a:hover { text-decoration: underline; }
.footer-links { display: flex; flex-wrap: wrap; gap: 6px 14px; padding-top: 18px; font-size: 13px; }
.footer-links a { color: var(--muted); text-decoration: none; }
.footer-links a:hover { color: var(--ink); text-decoration: underline; }

/* ---------- blog ---------- */
.blog-list { max-width: 720px; margin: 0 auto; display: flex; flex-direction: column; gap: 10px; padding-bottom: 60px; }
.blog-list a { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px; text-decoration: none; color: inherit; display: flex; flex-direction: column; gap: 4px; }
.blog-list a:hover { border-color: var(--ink); }
.blog-list b { font-size: 15.5px; }
.blog-list span { color: var(--muted); font-size: 14px; }
.blog-post h1 { font-size: 32px; letter-spacing: -0.03em; margin: 0 0 10px; text-align: center; }
.blog-post h2 { font-size: 20px; margin: 28px 0 8px; }
.blog-post p { color: var(--muted); line-height: 1.75; font-size: 15.5px; }
.blog-post ol { color: var(--muted); line-height: 1.75; font-size: 15.5px; padding-left: 22px; margin: 8px 0; }
.blog-post li { margin: 6px 0; }
.blog-post li b { color: var(--ink); }

@media (max-width: 860px) {
  .grid { grid-template-columns: repeat(3, 1fr); }
  .card { width: auto; height: 110px; }
  .result-layout { grid-template-columns: 1fr; }
  .summary { border-left: none; border-top: 1px solid var(--line); }
  .hero h1 { font-size: 34px; }
  .gen-hero h1 { font-size: 30px; }
  .how-grid, .seo-grid, .related-grid { grid-template-columns: 1fr 1fr; }
  .home-section.split { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .grid { grid-template-columns: repeat(2, 1fr); }
  .card { width: auto; height: 105px; }
  .result-left { padding: 20px; }
  .how-grid, .seo-grid, .related-grid { grid-template-columns: 1fr; }
  .home-section h2 { font-size: 22px; }
  .home-section.split { padding: 22px; }
  .footer-grid { grid-template-columns: 1fr; }
}
