:root {
  color-scheme: light;
  --bg: #f6f8fb;
  --surface: #ffffff;
  --surface-soft: #f9fafc;
  --ink: #101828;
  --muted: #667085;
  --muted-strong: #475467;
  --line: #e4e7ec;
  --line-strong: #d0d5dd;
  --accent: #2563eb;
  --accent-dark: #1d4ed8;
  --accent-soft: #eff6ff;
  --danger: #c2410c;
  --shadow-sm: 0 1px 2px rgb(16 24 40 / 5%);
  --shadow-md: 0 18px 48px rgb(16 24 40 / 10%);
  --radius: 8px;
  --container: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  scroll-behavior: smooth;
  background: var(--bg);
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  background: linear-gradient(180deg, #fff 0, var(--bg) 620px);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body.is-generating {
  overflow: hidden;
}

button,
input,
select,
textarea {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

h1,
h2,
h3,
p,
dl,
ol,
ul {
  margin: 0;
}

a {
  color: inherit;
}

.container {
  width: min(var(--container), calc(100vw - 40px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid rgb(228 231 236 / 80%);
  background: rgb(255 255 255 / 88%);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 74px;
}

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  text-decoration: none;
}

.brand-logo {
  display: block;
  width: clamp(150px, 15vw, 184px);
  height: auto;
}

.footer-brand-logo {
  display: block;
  width: 174px;
  height: auto;
  filter: brightness(0) invert(1);
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: var(--radius);
  color: #fff;
  background: var(--accent);
  font-size: 13px;
  font-weight: 850;
  letter-spacing: 0;
}

.brand-copy {
  display: grid;
  gap: 1px;
}

.brand-copy strong,
.footer-brand {
  font-size: 17px;
  font-weight: 850;
  letter-spacing: 0;
}

.brand-copy small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 650;
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
  flex-wrap: wrap;
}

.nav-link,
.page-tab,
.nav-cta,
.card-link,
.primary-button,
.secondary-button,
.small-copy-button {
  text-decoration: none;
}

.nav-link,
.page-tab {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  border-radius: var(--radius);
  padding: 0 8px;
  color: var(--muted-strong);
  font-size: 13px;
  font-weight: 650;
}

.nav-link:hover,
.page-tab:hover,
.page-tab.active {
  color: var(--ink);
  background: var(--surface-soft);
}

.nav-cta,
.primary-button,
.secondary-button,
.small-copy-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  border-radius: var(--radius);
  padding: 0 16px;
  border: 1px solid transparent;
  font-size: 14px;
  font-weight: 750;
  cursor: pointer;
  transition:
    transform 140ms ease,
    border-color 140ms ease,
    background 140ms ease,
    box-shadow 140ms ease;
}

.nav-cta,
.primary-button {
  color: #fff;
  background: var(--accent);
  box-shadow: var(--shadow-sm);
}

.nav-cta:hover,
.primary-button:hover {
  transform: translateY(-1px);
  background: var(--accent-dark);
}

.secondary-button,
.small-copy-button {
  color: var(--ink);
  background: #fff;
  border-color: var(--line);
}

.secondary-button:hover,
.small-copy-button:hover {
  border-color: var(--line-strong);
  background: var(--surface-soft);
}

.full-button {
  width: 100%;
  min-height: 52px;
}

.primary-button:disabled,
.secondary-button:disabled,
.small-copy-button:disabled {
  cursor: not-allowed;
  opacity: 0.68;
  transform: none;
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 19px;
  height: 2px;
  margin: 5px auto;
  border-radius: 999px;
  background: var(--ink);
}

.view-panel[hidden] {
  display: none;
}

.hero-section {
  padding: 70px 0 28px;
}

.home-hero {
  padding: 76px 0 30px;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
  gap: 42px;
  align-items: center;
}

.hero-copy {
  display: grid;
  gap: 20px;
  max-width: 940px;
}

.section-kicker {
  width: fit-content;
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1 {
  max-width: 840px;
  font-size: 46px;
  line-height: 1.04;
  letter-spacing: 0;
}

h2 {
  font-size: 30px;
  line-height: 1.14;
  letter-spacing: 0;
}

h3 {
  font-size: 16px;
  line-height: 1.25;
  letter-spacing: 0;
}

.hero-copy p:not(.section-kicker),
.section-header p,
.tool-hero p,
.tool-content p,
.article-header p,
.article-body p,
.reading-layout p,
.final-cta p,
.site-footer p {
  color: var(--muted-strong);
  font-size: 16px;
  line-height: 1.65;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.product-nav-strip {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  margin-top: 34px;
}

.product-nav-strip a {
  display: grid;
  gap: 6px;
  min-height: 94px;
  border: 1px solid rgb(228 231 236 / 88%);
  border-radius: var(--radius);
  padding: 14px;
  color: var(--ink);
  background: rgb(255 255 255 / 76%);
  box-shadow: var(--shadow-sm);
}

.product-nav-strip a:hover,
.product-nav-strip a.active {
  border-color: rgb(37 99 235 / 28%);
  background: var(--accent-soft);
}

.product-nav-strip strong {
  font-size: 15px;
  line-height: 1.2;
}

.product-nav-strip span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
  text-transform: uppercase;
}

.hero-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
  background: rgb(255 255 255 / 76%);
  box-shadow: var(--shadow-md);
}

.preview-toolbar {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
}

.preview-list {
  display: grid;
  gap: 10px;
  padding: 0;
  list-style: none;
}

.preview-list li {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 4px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 12px;
  background: #fff;
}

.preview-list span {
  grid-row: span 2;
  color: var(--accent);
  font-size: 12px;
  font-weight: 850;
}

.preview-list strong {
  font-size: 14px;
}

.preview-list small {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.4;
}

.section-block {
  padding: 70px 0;
}

.section-header {
  display: grid;
  gap: 12px;
  max-width: 720px;
  margin-bottom: 26px;
}

.tool-discovery-grid,
.home-product-grid,
.value-grid,
.example-grid,
.faq-grid,
.tip-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.tool-discovery-card,
.home-product-card,
.example-card,
.value-grid article,
.faq-grid article,
.workflow-grid article,
.tool-panel,
.tool-content,
.side-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow-sm);
}

.tool-discovery-card,
.home-product-card,
.example-card,
.value-grid article,
.faq-grid article,
.workflow-grid article,
.tip-grid article,
.tool-content,
.side-card {
  padding: 18px;
}

.tool-discovery-card {
  display: grid;
  gap: 12px;
  min-height: 230px;
}

.home-product-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.home-product-card {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 18px;
  min-height: 0;
  padding: 16px;
}

.home-product-card.feature-card {
  grid-row: auto;
}

.home-product-card > div:last-child {
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr) auto;
  gap: 10px;
  min-height: 210px;
}

.home-product-card > div:last-child > span {
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.tool-visual,
.seo-visual {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.tool-visual {
  position: relative;
  min-height: 0;
  aspect-ratio: 16 / 9;
  padding: 16px;
}

.visual-thumbnail {
  display: grid;
  align-content: end;
  gap: 8px;
  color: #fff;
  background:
    linear-gradient(115deg, rgb(16 24 40 / 92) 0 58%, rgb(20 184 166 / 82) 58% 100%),
    linear-gradient(90deg, rgb(255 255 255 / 12) 1px, transparent 1px),
    linear-gradient(0deg, rgb(255 255 255 / 12) 1px, transparent 1px);
  background-size: auto, 24px 24px, 24px 24px;
}

.visual-thumbnail span {
  width: 54px;
  height: 54px;
  border: 8px solid #fff;
  border-radius: 50%;
  background: #fb7185;
}

.visual-thumbnail strong,
.visual-thumb-large strong {
  font-size: 22px;
  line-height: 0.95;
  font-weight: 900;
}

.visual-thumbnail small,
.visual-hook small,
.visual-idea small,
.visual-title small {
  color: rgb(255 255 255 / 78%);
  font-size: 13px;
  font-weight: 750;
}

.visual-description,
.visual-title,
.visual-hook,
.visual-idea {
  display: grid;
  gap: 8px;
  align-content: center;
}

.visual-description {
  background: #f8fafc;
}

.visual-description span,
.visual-scoreboard span,
.visual-doc span,
.visual-timeline span,
.visual-idea-board span {
  display: block;
  border-radius: 6px;
  padding: 8px 10px;
  color: var(--muted-strong);
  background: #fff;
  border: 1px solid var(--line);
  font-size: 13px;
  font-weight: 750;
}

.visual-title {
  color: #fff;
  background: linear-gradient(135deg, #0f172a, #2563eb);
}

.visual-title strong {
  font-size: 34px;
  line-height: 1;
}

.visual-title span,
.visual-hook span,
.visual-idea span {
  color: rgb(255 255 255 / 82%);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

.visual-hook {
  color: #fff;
  background: linear-gradient(135deg, #111827, #be123c);
}

.visual-hook strong {
  font-size: 20px;
  line-height: 1.05;
}

.visual-idea {
  color: #102018;
  background: linear-gradient(135deg, #ecfdf5, #fef3c7);
}

.visual-idea strong {
  font-size: 24px;
  line-height: 1;
}

.visual-idea span,
.visual-idea small {
  color: #475467;
}

.tool-discovery-card span,
.example-card small,
.workflow-grid span {
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.tool-discovery-card p,
.example-card p,
.value-grid p,
.faq-grid p,
.workflow-grid p,
.tip-grid p,
.side-card p {
  color: var(--muted-strong);
  font-size: 14px;
  line-height: 1.6;
}

.card-link {
  align-self: end;
  margin-top: 8px;
  color: var(--accent);
  font-size: 14px;
  font-weight: 800;
}

.workflow-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}

.workflow-grid article {
  display: grid;
  gap: 10px;
  min-height: 190px;
}

.reading-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 22px;
  align-items: start;
}

.reading-layout > div {
  display: grid;
  gap: 14px;
}

.resource-links {
  display: grid;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 12px;
  background: #fff;
}

.final-cta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  margin: 20px 0 70px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(22px, 4vw, 34px);
  background: #fff;
  box-shadow: var(--shadow-sm);
}

.tool-page-wrap {
  padding: 42px 0 76px;
}

.tool-page {
  min-width: 0;
}

.tool-hero {
  display: grid;
  gap: 12px;
  max-width: 780px;
  margin-bottom: 24px;
}

.tool-hero h1 {
  font-size: 40px;
}

.tool-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 22px;
  align-items: start;
}

.tool-main {
  min-width: 0;
}

.tool-panel {
  padding: clamp(18px, 3vw, 26px);
}

.job-form,
.description-form {
  display: grid;
  gap: 18px;
}

.field-stack {
  display: grid;
  gap: 8px;
}

.field-label,
.subject-control legend {
  color: var(--muted-strong);
  font-size: 13px;
  font-weight: 750;
}

.field-help {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

input[type="url"],
input[type="text"],
textarea,
.theme-select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--ink);
  background: #fff;
  outline: none;
}

input[type="url"],
input[type="text"],
.theme-select {
  min-height: 52px;
  padding: 0 14px;
  font-size: 16px;
  font-weight: 650;
}

input[type="url"]:focus,
input[type="text"]:focus,
.theme-select:focus,
textarea:focus,
.color-control:focus-within,
.subject-control label:has(input:focus-visible) {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgb(37 99 235 / 12%);
}

.control-row {
  display: grid;
  grid-template-columns: minmax(220px, 0.7fr) minmax(300px, 1fr);
  gap: 14px;
  align-items: end;
}

.color-control {
  display: grid;
  grid-template-columns: 64px minmax(100px, 1fr);
  gap: 8px;
  min-height: 52px;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-soft);
}

input[type="color"] {
  width: 100%;
  height: 40px;
  border: 0;
  border-radius: 6px;
  padding: 0;
  background: transparent;
  cursor: pointer;
}

.color-control input[type="text"] {
  min-height: 40px;
  padding: 0 10px;
  font-size: 15px;
}

.subject-control {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin: 0;
  padding: 0;
  border: 0;
}

.subject-control legend {
  grid-column: 1 / -1;
}

.subject-control input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.subject-control span {
  display: grid;
  place-items: center;
  min-height: 50px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  color: var(--muted-strong);
  font-size: 14px;
  font-weight: 750;
  text-align: center;
  cursor: pointer;
}

.subject-control input:checked + span {
  color: var(--accent-dark);
  border-color: rgb(37 99 235 / 36%);
  background: var(--accent-soft);
}

.section-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.section-heading h2 {
  font-size: 19px;
}

.section-heading span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.theme-select {
  cursor: pointer;
}

.theme-select:disabled {
  cursor: not-allowed;
  opacity: 0.72;
}

.font-preview-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}

.font-preview-card {
  display: grid;
  gap: 8px;
  min-width: 0;
  min-height: 96px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 12px;
  color: var(--ink);
  background: #fff;
  text-align: left;
  cursor: pointer;
  outline: none;
  transition:
    border-color 140ms ease,
    background 140ms ease,
    box-shadow 140ms ease,
    transform 140ms ease;
}

.font-preview-card:hover {
  transform: translateY(-1px);
  border-color: var(--line-strong);
  background: var(--surface-soft);
}

.font-preview-card:focus-visible {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgb(37 99 235 / 12%);
}

.font-preview-card.selected {
  border-color: rgb(37 99 235 / 40%);
  background: var(--accent-soft);
  box-shadow: inset 0 0 0 1px rgb(37 99 235 / 16%);
}

.font-preview-card:disabled {
  cursor: not-allowed;
  opacity: 0.68;
}

.font-preview-card strong {
  overflow: hidden;
  font-size: 22px;
  font-weight: 900;
  line-height: 0.95;
  letter-spacing: 0;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.font-preview-card span {
  color: var(--muted-strong);
  font-size: 12px;
  font-weight: 700;
}

.error-text {
  color: var(--danger);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.45;
}

.result-panel {
  margin-top: 18px;
}

.result-media {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #111827;
}

.result-media img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: contain;
}

.result-toolbar {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 14px;
}

.input-summary {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.input-summary dl {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
}

.input-summary div,
.tool-card,
.description-grid article,
.tip-grid article {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 12px;
  background: var(--surface-soft);
}

.input-summary dt,
.tool-card dt {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.input-summary dd,
.tool-card dd {
  margin: 4px 0 0;
  color: var(--muted-strong);
  overflow-wrap: anywhere;
  font-size: 14px;
  font-weight: 650;
  line-height: 1.42;
}

.description-result textarea {
  display: block;
  min-height: 390px;
  resize: vertical;
  padding: 16px;
  font: 650 14px/1.58 ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

.description-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 18px;
}

.two-col-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.description-grid h3 {
  margin-bottom: 10px;
  font-size: 15px;
}

.description-grid ol,
.description-grid ul {
  display: grid;
  gap: 7px;
  margin: 0;
  padding-left: 20px;
  color: var(--muted-strong);
  font-size: 14px;
  font-weight: 650;
}

.hashtag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.hashtag-list span {
  border-radius: 999px;
  padding: 7px 10px;
  color: var(--accent-dark);
  background: var(--accent-soft);
  font-size: 13px;
  font-weight: 750;
}

.result-lead {
  margin-bottom: 16px;
  color: var(--muted-strong);
  font-size: 16px;
  font-weight: 650;
  line-height: 1.5;
}

.tool-card-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.ideas-list {
  grid-template-columns: 1fr;
}

.tool-card-head {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 10px;
  align-items: start;
}

.tool-card-head strong {
  min-width: 0;
  font-size: 16px;
  font-weight: 800;
  line-height: 1.25;
}

.rank,
.score,
.format {
  display: inline-grid;
  place-items: center;
  min-width: 30px;
  min-height: 28px;
  border-radius: 999px;
  color: var(--accent-dark);
  background: var(--accent-soft);
  font-size: 12px;
  font-weight: 800;
}

.format {
  border-radius: 7px;
  padding: 0 8px;
}

.tool-card dl {
  display: grid;
  gap: 9px;
  margin-top: 12px;
}

.score-panel {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  margin-bottom: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
  background: var(--surface-soft);
}

.score-panel strong {
  display: grid;
  place-items: center;
  width: 70px;
  height: 70px;
  border-radius: 50%;
  color: var(--accent-dark);
  background: var(--accent-soft);
  font-size: 28px;
  font-weight: 850;
}

.score-panel p,
#pinnedComment,
#hookOpeningLine {
  color: var(--muted-strong);
  font-size: 14px;
  font-weight: 650;
  line-height: 1.5;
}

.tool-content {
  display: grid;
  gap: 16px;
  margin-top: 18px;
}

.seo-article {
  border: 0;
  padding: 0;
  background: transparent;
  box-shadow: none;
}

.article-header {
  display: grid;
  gap: 12px;
  max-width: 820px;
}

.article-header h2 {
  max-width: 860px;
}

.article-body {
  display: grid;
  gap: 20px;
}

.article-body section:not(.ad-slot) {
  display: grid;
  gap: 10px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.article-body h3 {
  font-size: 19px;
}

.article-media-row {
  display: grid;
  grid-template-columns: minmax(280px, 0.85fr) minmax(0, 1.15fr);
  gap: 24px;
  align-items: start;
}

.seo-visual {
  margin: 0;
  min-height: 260px;
  padding: 18px;
  background: #fff;
  box-shadow: var(--shadow-sm);
}

.visual-window,
.visual-thumb-large,
.visual-doc,
.visual-scoreboard,
.visual-timeline,
.visual-idea-board {
  min-height: 250px;
  border-radius: var(--radius);
}

.visual-window {
  display: grid;
  gap: 10px;
  align-content: center;
  padding: 24px;
  background:
    linear-gradient(90deg, rgb(37 99 235 / 10) 1px, transparent 1px),
    linear-gradient(0deg, rgb(37 99 235 / 10) 1px, transparent 1px),
    #f8fafc;
  background-size: 24px 24px;
}

.visual-window span {
  width: 52px;
  height: 8px;
  border-radius: 999px;
  background: #22c55e;
}

.visual-window span:nth-child(2) {
  width: 86px;
  background: #facc15;
}

.visual-window span:nth-child(3) {
  width: 118px;
  background: #38bdf8;
}

.visual-window strong,
.visual-doc strong,
.visual-scoreboard strong,
.visual-timeline strong,
.visual-idea-board strong {
  margin-top: 18px;
  color: var(--ink);
  font-size: 24px;
  line-height: 1;
  font-weight: 900;
}

.visual-window em,
.visual-doc em {
  color: var(--muted-strong);
  font-size: 14px;
  font-style: normal;
  font-weight: 750;
}

.visual-thumb-large {
  display: grid;
  align-content: center;
  gap: 14px;
  padding: 30px;
  color: #fff;
  background:
    linear-gradient(115deg, rgb(15 23 42 / 94) 0 56%, rgb(15 118 110 / 82) 56% 100%),
    linear-gradient(90deg, rgb(255 255 255 / 14) 1px, transparent 1px),
    linear-gradient(0deg, rgb(255 255 255 / 14) 1px, transparent 1px);
  background-size: auto, 26px 26px, 26px 26px;
}

.visual-thumb-large span {
  width: fit-content;
  border-radius: 6px;
  padding: 8px 14px;
  color: #101828;
  background: #facc15;
  font-size: 13px;
  font-weight: 900;
}

.visual-thumb-large small {
  color: rgb(255 255 255 / 82%);
  font-size: 15px;
  font-weight: 750;
}

.visual-doc,
.visual-scoreboard,
.visual-timeline,
.visual-idea-board {
  display: grid;
  gap: 10px;
  align-content: center;
  padding: 24px;
  background: #f8fafc;
}

.visual-scoreboard {
  background: linear-gradient(135deg, #eff6ff, #ecfdf5);
}

.visual-timeline {
  background: linear-gradient(135deg, #fff7ed, #f8fafc);
}

.visual-idea-board {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  background: linear-gradient(135deg, #f8fafc, #fefce8);
}

.visual-idea-board strong {
  grid-column: 1 / -1;
}

.tip-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.tool-faq {
  margin-top: 18px;
}

.ad-slot {
  display: grid;
  place-items: center;
  min-height: 112px;
  border: 1px dashed #cbd5e1;
  border-radius: var(--radius);
  padding: 14px;
  color: var(--muted);
  background: rgb(255 255 255 / 70%);
  text-align: center;
}

.ad-slot span {
  color: #98a2b3;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.ad-slot strong {
  margin-top: 4px;
  font-size: 13px;
  font-weight: 750;
}

.ad-slot .adsbygoogle {
  width: 100%;
  min-height: inherit;
}

.ad-slot-wide {
  min-height: 96px;
  margin: 22px 0;
}

.ad-slot-inline {
  margin: 18px 0;
}

.ad-slot-card {
  min-height: 230px;
}

.tool-sidebar {
  display: grid;
  gap: 14px;
}

.ad-slot-sticky {
  position: sticky;
  top: 94px;
  min-height: 300px;
}

.site-footer {
  border-top: 1px solid #1f2937;
  color: #d0d5dd;
  background: #0b1220;
}

.footer-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(160px, 0.8fr) minmax(160px, 0.8fr) 260px;
  gap: 28px;
  padding: 34px 0;
  align-items: start;
}

.footer-brand {
  color: #fff;
  margin-bottom: 10px;
}

.site-footer p {
  color: #98a2b3;
  font-size: 14px;
}

.site-footer nav {
  display: grid;
  gap: 8px;
}

.site-footer a:not(.footer-brand) {
  color: #d0d5dd;
  font-size: 14px;
}

.footer-ad {
  min-height: 130px;
  color: #98a2b3;
  border-color: rgb(255 255 255 / 18%);
  background: rgb(255 255 255 / 4%);
}

.legal-page-wrap {
  padding: 42px 0 84px;
}

.legal-page {
  max-width: 880px;
}

.legal-page h1 {
  margin-top: 10px;
}

.legal-updated {
  margin-top: 12px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

.legal-content {
  display: grid;
  gap: 16px;
  margin-top: 28px;
}

.legal-content section {
  display: grid;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
  background: #fff;
  box-shadow: var(--shadow-sm);
}

.legal-content h2 {
  font-size: 22px;
}

.legal-content p {
  color: var(--muted-strong);
  font-size: 15px;
  line-height: 1.7;
}

.legal-content a {
  color: var(--accent);
  font-weight: 750;
}

.legal-action {
  width: fit-content;
  margin-top: 4px;
}

.cookie-banner {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 60;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  max-width: 1040px;
  margin: 0 auto;
  border: 1px solid rgb(37 99 235 / 18%);
  border-radius: var(--radius);
  padding: 16px;
  background: rgb(255 255 255 / 94%);
  box-shadow: var(--shadow-md);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.cookie-banner[hidden],
.cookie-modal[hidden] {
  display: none;
}

.cookie-banner strong,
.cookie-dialog strong {
  display: block;
  margin-bottom: 4px;
  color: var(--ink);
  font-size: 15px;
}

.cookie-banner p,
.cookie-dialog p {
  color: var(--muted-strong);
  font-size: 13px;
  line-height: 1.5;
}

.cookie-banner a {
  display: inline;
  min-height: 0;
  padding: 0;
  color: var(--accent);
  font-size: inherit;
  font-weight: 750;
  text-decoration: underline;
  background: transparent;
}

.cookie-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.cookie-modal {
  position: fixed;
  inset: 0;
  z-index: 70;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgb(16 24 40 / 42%);
}

.cookie-dialog {
  width: min(560px, 100%);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
  background: #fff;
  box-shadow: var(--shadow-md);
}

.cookie-dialog .section-heading {
  align-items: center;
}

.cookie-option {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  border-top: 1px solid var(--line);
  padding: 14px 0;
}

.cookie-option input {
  width: 22px;
  height: 22px;
  accent-color: var(--accent);
}

.cookie-option span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.loading-overlay {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: grid;
  grid-template-columns: minmax(280px, 520px) minmax(180px, 260px);
  place-content: center;
  align-items: center;
  gap: 18px;
  padding: 24px;
  background: rgb(246 248 251 / 84%);
  backdrop-filter: blur(18px) saturate(1.08);
  -webkit-backdrop-filter: blur(18px) saturate(1.08);
}

.loading-overlay[hidden] {
  display: none;
}

.loading-card {
  display: grid;
  gap: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(22px, 4vw, 34px);
  background: #fff;
  box-shadow: var(--shadow-md);
}

.loading-ad {
  min-height: 300px;
}

.render-orbit {
  position: relative;
  width: min(280px, 100%);
  aspect-ratio: 16 / 9;
  margin: 0 auto;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(120deg, #111827 0 52%, var(--accent) 52% 100%);
}

.render-orbit::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgb(255 255 255 / 12) 1px, transparent 1px),
    linear-gradient(0deg, rgb(255 255 255 / 12) 1px, transparent 1px);
  background-size: 22px 22px;
  animation: grid-drift 1.8s linear infinite;
}

.render-orbit span {
  position: absolute;
  border-radius: 4px;
  background: #fff;
  animation: pulse-card 1.2s ease-in-out infinite;
}

.render-orbit span:nth-child(1) {
  left: 11%;
  top: 18%;
  width: 32%;
  height: 12%;
  background: var(--accent);
}

.render-orbit span:nth-child(2) {
  left: 11%;
  top: 42%;
  width: 46%;
  height: 14%;
}

.render-orbit span:nth-child(3) {
  left: 11%;
  top: 62%;
  width: 30%;
  height: 10%;
  background: #dbeafe;
}

.render-orbit span:nth-child(4) {
  right: 10%;
  bottom: 12%;
  width: 32%;
  height: 62%;
  border-radius: 48% 42% 40% 46%;
  background: #dbeafe;
}

.loading-copy {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: baseline;
}

.loading-copy p {
  font-size: 28px;
  font-weight: 850;
  line-height: 1.1;
}

.loading-copy strong {
  color: var(--muted);
  font-size: 22px;
  font-weight: 850;
}

.overlay-track {
  height: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: rgb(16 24 40 / 9%);
}

.overlay-progress {
  width: 0%;
  height: 100%;
  border-radius: inherit;
  background: var(--accent);
  transition: width 180ms ease;
}

@keyframes grid-drift {
  to {
    background-position: 44px 22px;
  }
}

@keyframes pulse-card {
  50% {
    transform: translateY(-3px);
    opacity: 0.72;
  }
}

@media (max-width: 1020px) {
  .hero-grid,
  .tool-layout,
  .reading-layout,
  .footer-layout,
  .article-media-row {
    grid-template-columns: 1fr;
  }

  .product-nav-strip,
  .home-product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .home-product-card.feature-card {
    grid-row: auto;
  }

  .workflow-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .tool-sidebar {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .font-preview-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ad-slot-sticky {
    position: static;
    min-height: 180px;
  }

  .loading-overlay {
    grid-template-columns: minmax(280px, 520px);
  }

  .loading-ad {
    min-height: 120px;
  }
}

@media (max-width: 760px) {
  .container {
    width: min(100% - 24px, var(--container));
  }

  .header-inner {
    min-height: 66px;
  }

  .brand-logo {
    width: 148px;
  }

  .menu-toggle {
    display: block;
  }

  .site-nav {
    position: absolute;
    top: 66px;
    left: 12px;
    right: 12px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    max-height: calc(100vh - 82px);
    overflow: auto;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 10px;
    background: #fff;
    box-shadow: var(--shadow-md);
  }

  .site-nav.open {
    display: flex;
  }

  .nav-link,
  .page-tab,
  .nav-cta {
    justify-content: flex-start;
    width: 100%;
    min-height: 44px;
  }

  .hero-section {
    padding: 42px 0 18px;
  }

  h1 {
    font-size: 34px;
  }

  .tool-hero h1 {
    font-size: 32px;
  }

  .font-preview-card strong {
    font-size: 20px;
  }

  .loading-copy p {
    font-size: 22px;
  }

  h2 {
    font-size: 24px;
  }

  .section-block {
    padding: 46px 0;
  }

  .home-hero {
    padding: 46px 0 18px;
  }

  .home-product-card {
    padding: 14px;
  }

  .home-product-card > div:last-child {
    min-height: 0;
  }

  .tool-visual {
    padding: 14px;
  }

  .legal-content section {
    padding: 14px;
  }

  .legal-content h2 {
    font-size: 20px;
  }

  .tool-discovery-grid,
  .product-nav-strip,
  .home-product-grid,
  .value-grid,
  .example-grid,
  .faq-grid,
  .tip-grid,
  .description-grid,
  .two-col-grid,
  .tool-card-list,
  .ideas-list,
  .input-summary dl,
  .control-row,
  .subject-control,
  .font-preview-grid,
  .tool-sidebar,
  .article-media-row,
  .visual-idea-board {
    grid-template-columns: 1fr;
  }

  .workflow-grid {
    grid-template-columns: 1fr;
  }

  .final-cta {
    display: grid;
  }

  .result-toolbar {
    justify-content: stretch;
  }

  .result-toolbar > * {
    width: 100%;
  }

  .loading-overlay {
    padding: 14px;
  }

  .cookie-banner {
    grid-template-columns: 1fr;
    left: 10px;
    right: 10px;
    bottom: 10px;
    padding: 14px;
  }

  .cookie-actions {
    justify-content: stretch;
  }

  .cookie-actions > * {
    width: 100%;
  }

  .cookie-option {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .footer-layout {
    padding: 28px 0;
  }
}
