:root {
  --page: #f3fbf7;
  --surface: #ffffff;
  --surface-soft: #f8fcfa;
  --ink: #151f1b;
  --muted: #64726d;
  --line: #dfece7;
  --accent: #19c878;
  --accent-deep: #0a9b58;
  --mint: #e8fff4;
  --shadow: 0 18px 55px rgba(36, 77, 60, 0.13);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: linear-gradient(180deg, #f6fff9 0%, var(--page) 42%, #ffffff 100%);
  color: var(--ink);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  line-height: 1.5;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
textarea {
  font: inherit;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  width: min(1200px, calc(100% - 36px));
  height: 70px;
  margin: 0 auto;
}

.brand,
.nav-links,
.tool-tabs,
.mode-tabs,
.tool-footer,
.stats-row,
.site-footer {
  display: flex;
  align-items: center;
}

.brand {
  gap: 10px;
  font-size: 18px;
  font-weight: 800;
}

.brand-logo {
  width: 34px;
  height: 34px;
  display: block;
  border-radius: 11px;
  object-fit: cover;
  box-shadow: 0 10px 22px rgba(16, 112, 58, 0.2);
}

.nav-links {
  gap: 4px;
  max-width: min(820px, 100%);
  padding: 6px;
  overflow-x: auto;
  border: 1px solid rgba(10, 155, 88, 0.14);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 12px 32px rgba(36, 77, 60, 0.08);
  color: #2a3833;
  font-size: 13px;
  font-weight: 800;
  scrollbar-width: none;
  white-space: nowrap;
}

.nav-links::-webkit-scrollbar {
  display: none;
}

.nav-links a {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 13px;
  border-radius: 999px;
  color: #2d3b36;
  transition:
    background-color 160ms ease,
    color 160ms ease,
    box-shadow 160ms ease,
    transform 160ms ease;
}

.nav-links a:hover {
  background: #eefbf5;
  color: #06351f;
  transform: translateY(-1px);
}

.nav-links a:focus-visible {
  outline: 2px solid rgba(25, 200, 120, 0.55);
  outline-offset: 2px;
}

.nav-links .nav-featured {
  background: linear-gradient(180deg, #eafff4 0%, #d8ffe9 100%);
  color: #06351f;
  box-shadow: inset 0 0 0 1px rgba(25, 200, 120, 0.24);
}

.hero {
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
  padding: 54px 0 58px;
}

.hero-title {
  max-width: 880px;
  margin: 0 auto 34px;
  text-align: center;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 10px;
  font-size: clamp(56px, 10vw, 96px);
  line-height: 0.95;
  letter-spacing: 0;
}

.hero-title p {
  margin-bottom: 0;
  color: #25332e;
  font-size: clamp(22px, 3.4vw, 38px);
  font-weight: 800;
  line-height: 1.18;
}

h2 {
  margin-bottom: 18px;
  font-size: clamp(32px, 5vw, 52px);
  line-height: 1.08;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 10px;
  font-size: 20px;
}

.tool-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 26px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.tool-tabs {
  height: 58px;
  padding: 0 22px;
  border-bottom: 1px solid var(--line);
}

.tab-button,
.mode,
.main-button {
  border: 0;
  cursor: pointer;
}

.tab-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 58px;
  padding: 0 18px;
  border-bottom: 3px solid transparent;
  background: transparent;
  color: var(--muted);
  font-weight: 800;
}

.tab-button.active {
  border-color: var(--accent);
  color: var(--ink);
}

.tab-button.featured {
  height: 42px;
  margin-left: 8px;
  border: 1px solid rgba(25, 200, 120, 0.36);
  border-bottom-width: 1px;
  border-radius: 999px;
  background: linear-gradient(180deg, #eafff4 0%, #d8ffe9 100%);
  color: #06351f;
  box-shadow: 0 10px 22px rgba(25, 200, 120, 0.18);
}

.tab-button.featured:hover {
  background: var(--accent);
  color: #042b19;
}

.tab-button span {
  padding: 3px 7px;
  border-radius: 999px;
  background: #ffefc2;
  color: #8b5d00;
  font-size: 11px;
}

.tab-button.featured span {
  background: #123326;
  color: white;
}

.mode-tabs {
  gap: 10px;
  padding: 16px 22px;
  border-bottom: 1px solid var(--line);
  background: var(--surface-soft);
}

.mode,
.mode-tabs a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 16px;
  border-radius: 999px;
  color: var(--muted);
  font-weight: 800;
}

.mode {
  background: white;
  border: 1px solid var(--line);
}

.mode.active {
  background: var(--mint);
  border-color: rgba(25, 200, 120, 0.35);
  color: var(--accent-deep);
}

.mode-tabs a {
  margin-left: auto;
  background: #eef5f2;
}

.tool-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  min-height: 360px;
}

.text-panel {
  display: flex;
  flex-direction: column;
  min-width: 0;
  border-right: 1px solid var(--line);
}

.text-panel:last-child {
  border-right: 0;
}

.panel-heading > span:first-child {
  padding: 18px 22px 0;
  color: var(--ink);
  font-size: 18px;
  font-weight: 900;
}

textarea {
  width: 100%;
  min-height: 305px;
  flex: 1;
  resize: vertical;
  border: 0;
  outline: 0;
  padding: 14px 22px 22px;
  background: transparent;
  color: #273530;
  font-size: 16px;
}

.output-panel {
  background: #fbfefd;
}

.tool-footer {
  justify-content: space-between;
  gap: 18px;
  padding: 18px 22px 22px;
  border-top: 1px solid var(--line);
}

.panel-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 18px 22px 0;
}

.language-select {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--muted);
  font-weight: 800;
}

.language-select span {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: #eef5f2;
  color: var(--accent-deep);
}

.main-button,
.section-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 28px;
  border-radius: 999px;
  background: var(--accent);
  color: #042b19;
  font-weight: 900;
  box-shadow: 0 14px 26px rgba(25, 200, 120, 0.25);
}

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

.clear-button {
  min-height: 50px;
  padding: 0 22px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: white;
  color: var(--muted);
  cursor: pointer;
  font-weight: 900;
}

.clear-button:disabled,
.main-button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

.main-button:disabled {
  box-shadow: none;
}

.panel-link {
  border: 0;
  background: transparent;
  color: var(--accent-deep);
  cursor: pointer;
  font-weight: 900;
}

.input-meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding: 0 22px 18px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.highlight-view {
  min-height: 305px;
  max-height: 420px;
  overflow-y: auto;
  padding: 14px 22px 22px;
  color: #273530;
  font-size: 16px;
  white-space: pre-wrap;
}

.highlight-token {
  border-radius: 5px;
  background: rgba(244, 183, 64, 0.42);
  box-shadow: 0 0 0 2px rgba(244, 183, 64, 0.18);
  cursor: pointer;
  transition: background 150ms ease, box-shadow 150ms ease;
}

.highlight-token.is-active,
.highlight-token:hover {
  background: rgba(244, 183, 64, 0.78);
  box-shadow: 0 0 0 2px rgba(244, 183, 64, 0.42);
}

.suggestion-count {
  align-self: center;
  padding: 6px 10px;
  border-radius: 999px;
  background: var(--mint);
  color: var(--accent-deep);
  font-size: 12px;
  font-weight: 900;
}

.suggestions-list {
  min-height: 305px;
  max-height: 420px;
  overflow-y: auto;
  padding: 14px 22px 22px;
}

.empty-state {
  display: grid;
  min-height: 260px;
  place-items: center;
  color: var(--muted);
  text-align: center;
}

.suggestion-card {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.84);
  transition: border-color 150ms ease, box-shadow 150ms ease, transform 150ms ease;
}

.suggestion-card + .suggestion-card {
  margin-top: 12px;
}

.suggestion-card.is-active,
.suggestion-card:hover {
  border-color: rgba(244, 183, 64, 0.92);
  box-shadow: 0 12px 28px rgba(244, 183, 64, 0.16);
  transform: translateY(-1px);
}

.suggestion-label,
.reason-toggle {
  color: var(--ink);
  font-size: 13px;
  font-weight: 900;
}

.sentence-change {
  margin: 7px 0 12px;
  color: #33413c;
  font-size: 14px;
}

.sentence-change del {
  color: #8a9692;
}

.sentence-change ins {
  color: var(--accent-deep);
  font-weight: 800;
  text-decoration: none;
}

.reason-toggle {
  display: flex;
  justify-content: space-between;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.reason-copy {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.promotion-card {
  margin: 0 22px 22px;
  padding: 15px;
  border: 1px solid rgba(244, 183, 64, 0.35);
  border-radius: 16px;
  background: linear-gradient(135deg, #fff8e6, #f0fff7);
}

.promotion-card p {
  margin-bottom: 3px;
  color: #5d3d00;
  font-weight: 900;
}

.promotion-card span {
  display: block;
  margin-bottom: 10px;
  color: #87620c;
  font-size: 13px;
}

.promotion-card a {
  color: var(--accent-deep);
  font-size: 13px;
  font-weight: 900;
}

.is-hidden {
  display: none;
}

.stats-row {
  justify-content: center;
  gap: 18px;
  flex-wrap: wrap;
  margin-top: 28px;
}

.stats-row div {
  min-width: 260px;
  padding: 18px 22px;
  border: 1px solid rgba(25, 200, 120, 0.2);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.78);
  text-align: center;
}

.content-section,
.steps-section,
.blog-section,
.detectors-section,
.faq-section {
  width: min(1120px, calc(100% - 36px));
  margin: 0 auto;
  padding: 72px 0;
}

.content-section {
  display: grid;
  grid-template-columns: 360px minmax(0, 1fr);
  gap: 54px;
  align-items: center;
}

.content-section p,
.detectors-section p,
.steps p,
.blog-card p,
.blog-heading p,
.faq-section p {
  color: var(--muted);
}

.section-art {
  display: grid;
  place-items: center;
  min-height: 270px;
  border-radius: 30px;
  background:
    linear-gradient(145deg, rgba(25, 200, 120, 0.16), rgba(255, 255, 255, 0.82)),
    var(--surface);
  border: 1px solid var(--line);
}

.section-art span {
  color: var(--accent-deep);
  font-size: 82px;
  font-weight: 950;
}

.steps-section {
  text-align: center;
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 28px;
  text-align: left;
}

.steps article {
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: white;
}

.steps span {
  display: inline-flex;
  margin-bottom: 22px;
  color: var(--accent-deep);
  font-weight: 900;
}

.detectors-section {
  text-align: center;
}

.blog-section {
  text-align: center;
}

.blog-heading {
  max-width: 720px;
  margin: 0 auto 30px;
}

.blog-heading > span {
  display: inline-flex;
  margin-bottom: 12px;
  color: var(--accent-deep);
  font-size: 14px;
  font-weight: 900;
}

.blog-heading p {
  margin-bottom: 0;
}

.view-all-link {
  display: inline-flex;
  margin-top: 18px;
  color: var(--accent-deep);
  font-weight: 900;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  text-align: left;
}

.blog-card {
  display: flex;
  flex-direction: column;
  min-height: 280px;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: white;
}

.blog-card > span {
  width: fit-content;
  margin-bottom: 20px;
  padding: 7px 11px;
  border-radius: 999px;
  background: var(--mint);
  color: var(--accent-deep);
  font-size: 13px;
  font-weight: 900;
}

.blog-card a {
  margin-top: auto;
  color: var(--accent-deep);
  font-weight: 900;
}

.featured-post {
  border-color: rgba(25, 200, 120, 0.34);
  background: linear-gradient(180deg, #ffffff 0%, #f0fff7 100%);
  box-shadow: 0 16px 38px rgba(25, 200, 120, 0.13);
}

.detector-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin: 30px 0;
}

.detector-grid span {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: white;
  font-weight: 900;
}

.faq-section {
  max-width: 880px;
}

.faq-section h2 {
  margin-bottom: 26px;
  text-align: center;
}

.faq-section details {
  margin-bottom: 14px;
  padding: 0;
  border: 1px solid rgba(36, 77, 60, 0.12);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 12px 28px rgba(36, 77, 60, 0.07);
  overflow: hidden;
}

.faq-section details[open] {
  border-color: rgba(25, 200, 120, 0.3);
  background: linear-gradient(180deg, #ffffff 0%, #f7fffb 100%);
}

.faq-section summary {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 64px;
  padding: 18px 58px 18px 22px;
  color: var(--ink);
  cursor: pointer;
  font-size: 17px;
  font-weight: 900;
  list-style: none;
}

.faq-section summary::-webkit-details-marker {
  display: none;
}

.faq-section summary::after {
  content: "+";
  position: absolute;
  right: 22px;
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border: 1px solid rgba(10, 155, 88, 0.18);
  border-radius: 50%;
  background: #f3fff9;
  color: var(--accent-deep);
  font-size: 18px;
  font-weight: 850;
  line-height: 1;
}

.faq-section details[open] summary::after {
  content: "-";
  background: var(--accent-deep);
  color: #ffffff;
}

.faq-section details p {
  margin: 0;
  padding: 0 58px 22px 22px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.75;
}

.site-footer {
  display: block;
  width: 100%;
  margin-top: 28px;
  padding: 0 0 42px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, #ffffff 36%);
}

.footer-shell {
  width: min(1120px, calc(100% - 36px));
  margin: 0 auto;
  padding: 30px;
  border: 1px solid rgba(36, 77, 60, 0.12);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 18px 45px rgba(36, 77, 60, 0.1);
}

.footer-brand-panel {
  display: grid;
  grid-template-columns: minmax(180px, 260px) minmax(0, 1fr);
  gap: 24px;
  align-items: start;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line);
}

.footer-brand {
  display: inline-flex;
  width: fit-content;
  color: var(--ink);
  font-size: 22px;
  font-weight: 900;
}

.footer-brand-panel p {
  max-width: 720px;
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.7;
}

.bottom-anchor-links {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px 18px;
  padding: 24px 0;
}

.bottom-anchor-links a {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 42px;
  padding: 0 0 0 14px;
  border-bottom: 1px solid rgba(36, 77, 60, 0.12);
  color: #35433e;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0;
  transition:
    border-color 160ms ease,
    color 160ms ease,
    padding-left 160ms ease;
}

.bottom-anchor-links a::before {
  content: "";
  position: absolute;
  left: 0;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: rgba(10, 155, 88, 0.42);
  transition:
    background-color 160ms ease,
    transform 160ms ease;
}

.bottom-anchor-links a::after {
  content: ">";
  color: rgba(10, 155, 88, 0.7);
  font-size: 13px;
  font-weight: 900;
  line-height: 1;
  transition:
    color 160ms ease,
    transform 160ms ease;
}

.bottom-anchor-links a:hover {
  border-color: rgba(10, 155, 88, 0.34);
  color: #06351f;
  padding-left: 18px;
}

.bottom-anchor-links a:hover::before {
  background: var(--accent-deep);
  transform: scale(1.35);
}

.bottom-anchor-links a:hover::after {
  color: var(--accent-deep);
  transform: translateX(2px);
}

.footer-meta {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
}

.footer-meta span:first-child {
  color: var(--ink);
  font-weight: 900;
}

.article-page {
  background: #ffffff;
}

.article-hero,
.article-detail {
  width: min(920px, calc(100% - 36px));
  margin: 0 auto;
}

.article-hero {
  padding: 58px 0 22px;
}

.article-hero a {
  display: inline-flex;
  margin-bottom: 28px;
  color: var(--accent-deep);
  font-weight: 900;
}

.article-hero h1 {
  margin-bottom: 18px;
  font-size: clamp(42px, 7vw, 70px);
  line-height: 1.02;
}

.article-hero p {
  color: var(--muted);
  font-size: 20px;
}

.article-meta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 22px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
}

.article-meta a {
  color: var(--accent-deep);
}

.article-detail {
  padding: 18px 0 76px;
}

.article-detail h2 {
  margin-top: 42px;
  font-size: clamp(28px, 4vw, 40px);
}

.article-detail p,
.article-detail li {
  color: #33413c;
  font-size: 18px;
}

.article-detail p {
  margin-bottom: 22px;
}

.article-detail ul {
  padding-left: 22px;
}

.article-detail a:not(.article-image-link) {
  color: var(--accent-deep);
  text-decoration-line: underline;
  text-decoration-color: currentColor;
  text-underline-offset: 3px;
  transition:
    color 160ms ease,
    text-decoration-color 160ms ease;
}

.article-detail a:not(.article-image-link):hover,
.article-detail a:not(.article-image-link):focus-visible {
  color: #06351f;
  text-decoration-color: currentColor;
}

.article-detail a:not(.article-image-link):focus-visible {
  outline: 2px solid rgba(25, 200, 120, 0.55);
  outline-offset: 3px;
  border-radius: 4px;
}

.blog-index-hero,
.blog-index-layout {
  width: min(1120px, calc(100% - 36px));
  margin: 0 auto;
}

.blog-index-hero {
  padding: 70px 0 42px;
  text-align: center;
}

.blog-kicker {
  margin-bottom: 10px;
  color: var(--accent-deep);
  font-size: 14px;
  font-weight: 900;
  text-transform: uppercase;
}

.blog-index-hero h1 {
  margin-bottom: 16px;
  font-size: clamp(54px, 9vw, 90px);
}

.blog-index-hero > p:not(.blog-kicker) {
  max-width: 780px;
  margin: 0 auto;
  color: var(--muted);
  font-size: 20px;
}

.category-tags {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 28px;
}

.category-tags a,
.blog-filter-panel a {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 16px;
  border: 1px solid rgba(25, 200, 120, 0.28);
  border-radius: 999px;
  background: var(--mint);
  color: var(--accent-deep);
  font-weight: 900;
}

.blog-index-layout {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  gap: 28px;
  padding: 20px 0 76px;
}

.blog-filter-panel {
  position: sticky;
  top: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-self: start;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: white;
}

.blog-filter-panel > span {
  margin-bottom: 4px;
  color: var(--ink);
  font-weight: 950;
}

.blog-list {
  display: grid;
  gap: 18px;
}

.blog-list-card {
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: white;
}

.blog-list-card h2 {
  margin-bottom: 12px;
  font-size: clamp(28px, 4vw, 42px);
}

.blog-list-card p {
  max-width: 760px;
  color: var(--muted);
  font-size: 18px;
}

.blog-list-card > a {
  color: var(--accent-deep);
  font-weight: 900;
}

.article-page main a:not(.article-image-link) {
  color: var(--accent-deep);
  font-weight: inherit;
  text-decoration-line: underline;
  text-decoration-color: currentColor;
  text-underline-offset: 3px;
  transition:
    color 160ms ease,
    text-decoration-color 160ms ease;
}

.article-page main a:not(.article-image-link):hover,
.article-page main a:not(.article-image-link):focus-visible {
  color: #06351f;
  text-decoration-color: currentColor;
}

.article-page main a:not(.article-image-link):focus-visible {
  outline: 2px solid rgba(25, 200, 120, 0.55);
  outline-offset: 3px;
  border-radius: 4px;
}

.post-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

.post-meta span {
  padding: 7px 11px;
  border-radius: 999px;
  background: var(--mint);
  color: var(--accent-deep);
  font-size: 13px;
  font-weight: 900;
}

.post-meta time {
  color: var(--muted);
  font-weight: 800;
}

@media (max-width: 900px) {
  .humanizer-workspace {
    grid-template-columns: 1fr;
  }

  .nav-links {
    flex: 1;
    max-width: calc(100vw - 190px);
  }

  .tool-grid,
  .content-section,
  .steps,
  .blog-grid,
  .blog-index-layout,
  .detector-grid {
    grid-template-columns: 1fr;
  }

  .blog-filter-panel {
    position: static;
    flex-direction: row;
    flex-wrap: wrap;
  }

  .text-panel {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .text-panel:last-child {
    border-bottom: 0;
  }
}

@media (max-width: 760px) {
  .site-header,
  .hero,
  .content-section,
  .blog-section,
  .blog-index-hero,
  .blog-index-layout,
  .steps-section,
  .detectors-section,
  .faq-section,
  .humanizer-hero,
  .humanizer-workspace,
  .humanizer-copy-section,
  .footer-shell {
    width: min(100% - 24px, 560px);
  }

  .site-header {
    height: auto;
    min-height: 82px;
    padding: 12px 0 10px;
    align-items: center;
    flex-wrap: wrap;
  }

  .nav-links {
    order: 2;
    width: 100%;
    max-width: 100%;
  }

  .hero {
    padding-top: 34px;
  }

  h1 {
    font-size: 58px;
  }

  .hero-title p {
    font-size: 25px;
  }

  .tool-tabs,
  .mode-tabs,
  .tool-footer,
  .footer-brand-panel,
  .footer-meta {
    align-items: stretch;
    flex-direction: column;
  }

  .tool-tabs {
    height: auto;
    padding: 10px 12px 0;
  }

  .tab-button {
    justify-content: center;
  }

  .mode-tabs a {
    margin-left: 0;
  }

  textarea {
    min-height: 230px;
  }

  .main-button,
  .section-button {
    width: 100%;
  }

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


.humanizer-page {
  background: linear-gradient(180deg, #f6fff9 0%, #ffffff 44%, #f3fbf7 100%);
}

.humanizer-hero,
.humanizer-workspace,
.humanizer-copy-section {
  width: min(1120px, calc(100% - 36px));
  margin: 0 auto;
}

.humanizer-hero {
  padding: 62px 0 34px;
  text-align: center;
}

.humanizer-hero h1 {
  margin-bottom: 16px;
  font-size: clamp(48px, 8vw, 84px);
}

.humanizer-hero > p:not(.blog-kicker) {
  max-width: 760px;
  margin: 0 auto;
  color: var(--muted);
  font-size: 20px;
}

.humanizer-workspace {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 18px;
  padding: 18px 0 70px;
}

.humanizer-panel {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 520px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--surface);
  box-shadow: 0 18px 45px rgba(36, 77, 60, 0.1);
}

.humanizer-panel-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 22px 22px 0;
}

.humanizer-panel-heading h2 {
  margin-bottom: 0;
  font-size: 20px;
}

.humanizer-panel textarea {
  min-height: 330px;
  max-height: 500px;
  margin-top: 8px;
  resize: vertical;
}

.humanizer-highlight-view,
.humanizer-suggestions-list {
  min-height: 330px;
  max-height: 500px;
}

.humanizer-meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding: 0 22px 16px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.humanizer-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
  padding: 0 22px 22px;
}

.humanizer-highlight-token {
  border-radius: 5px;
  background: rgba(244, 183, 64, 0.42);
  box-shadow: 0 0 0 2px rgba(244, 183, 64, 0.18);
  cursor: pointer;
  transition: background 150ms ease, box-shadow 150ms ease;
}

.humanizer-highlight-token.is-active,
.humanizer-highlight-token:hover {
  background: rgba(244, 183, 64, 0.78);
  box-shadow: 0 0 0 2px rgba(244, 183, 64, 0.42);
}

.humanizer-suggestion-card {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.88);
  transition: border-color 150ms ease, box-shadow 150ms ease, transform 150ms ease;
}

.humanizer-suggestion-card + .humanizer-suggestion-card {
  margin-top: 12px;
}

.humanizer-suggestion-card.is-active,
.humanizer-suggestion-card:hover {
  border-color: rgba(244, 183, 64, 0.92);
  box-shadow: 0 12px 28px rgba(244, 183, 64, 0.16);
  transform: translateY(-1px);
}

.error-state {
  color: #b42318;
}

.humanizer-copy-section {
  display: grid;
  gap: 34px;
  max-width: 920px;
  padding: 0 0 82px;
}

.humanizer-copy-section h2 {
  margin-bottom: 14px;
  font-size: clamp(28px, 4vw, 40px);
}

.humanizer-copy-section p,
.feature-list li {
  color: #33413c;
  font-size: 18px;
}

.feature-list {
  display: grid;
  gap: 13px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.feature-list li {
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: white;
}

.feature-list strong {
  display: block;
  margin-bottom: 3px;
  color: var(--ink);
}

@media (max-width: 760px) {
  .site-footer {
    padding-bottom: 28px;
  }

  .footer-shell {
    padding: 22px;
    border-radius: 14px;
  }

  .footer-brand-panel {
    grid-template-columns: 1fr;
  }

  .footer-meta {
    flex-direction: column;
  }

  .faq-section h2 {
    text-align: left;
  }

  .faq-section summary {
    min-height: 58px;
    padding: 16px 52px 16px 18px;
    font-size: 16px;
  }

  .faq-section summary::after {
    right: 18px;
  }

  .faq-section details p {
    padding: 0 52px 20px 18px;
  }

  .bottom-anchor-links {
    grid-template-columns: 1fr;
  }
}


.detection-result-card {
  border-color: rgba(25, 200, 120, 0.34);
  background: linear-gradient(180deg, #ffffff 0%, #f5fffa 100%);
}

.detection-highlights {
  display: grid;
  gap: 8px;
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
}

.detection-highlights li {
  position: relative;
  padding-left: 18px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

.detection-highlights li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.72em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-deep);
}


.article-image-link {
  display: block;
  width: min(720px, 100%);
  max-width: 100%;
  margin: 34px auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: var(--surface);
  box-shadow: var(--shadow-soft);
}

.article-image-link img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
}

.article-image-link:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--accent) 55%, transparent);
  outline-offset: 4px;
}
