:root {
  color-scheme: light;
  --bg: #ffffff;
  --panel: #f8fafc;
  --panel-2: #f1f5f9;
  --ink: #0f172a;
  --muted: #51607a;
  --line: #e3e8f0;
  --accent: #4f46e5;
  --accent-2: #6366f1;
  --accent-soft: #eef0ff;
  --accent-tint: #f6f7ff;
  --amber: #f59e0b;
  --red: #ef4444;
  --ink-band: #111827;
  --ink-band-soft: #1e2536;
}

html,
body {
  max-width: 100%;
  overflow-x: hidden;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at 12% 0%, rgba(79,70,229,.06), transparent 26rem),
    radial-gradient(circle at 88% 4%, rgba(99,102,241,.07), transparent 30rem),
    var(--bg);
  color: var(--ink);
  letter-spacing: 0;
}

a { color: inherit; text-decoration: none; }
p { color: var(--muted); font-size: 18px; line-height: 1.7; margin: 0; }

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 76px;
  padding: 0 clamp(20px, 5vw, 72px);
  background: rgba(255,255,255,.85);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  font-weight: 900;
  font-size: 20px;
  white-space: nowrap;
  color: var(--ink);
}

.nav { display: flex; align-items: center; gap: 4px; }
.nav a {
  color: #44506a;
  font-weight: 700;
  font-size: 15px;
  padding: 10px 12px;
  border-radius: 10px;
}
.nav a:hover { background: var(--accent-soft); color: var(--accent); }
.nav a[aria-current="page"] { color: var(--accent); background: var(--accent-soft); }

.language-menu { position: relative; color: #44506a; font-weight: 800; }
.language-menu summary {
  list-style: none;
  cursor: pointer;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--panel);
}
.language-menu summary::-webkit-details-marker { display: none; }
.language-list {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  display: grid;
  min-width: 180px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 24px 70px rgba(15,23,42,.14);
}
.language-list a { border-radius: 12px; padding: 10px 12px; }
.language-list a[aria-current="page"] { background: var(--accent-soft); color: var(--accent); }

.menu-button {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--panel);
}
.menu-button span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  background: var(--ink);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(340px, .72fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
  min-height: calc(100vh - 76px);
  padding: clamp(48px, 7vw, 96px) clamp(20px, 7vw, 110px) clamp(44px, 6vw, 80px);
}

.tool-hero {
  grid-template-columns: minmax(0, 1fr);
  align-content: center;
  gap: clamp(28px, 4vw, 46px);
  padding-top: clamp(48px, 6vw, 76px);
  padding-bottom: clamp(48px, 6vw, 76px);
  background:
    radial-gradient(circle at 18% 0%, rgba(79,70,229,.08), transparent 30rem),
    radial-gradient(circle at 85% 8%, rgba(99,102,241,.10), transparent 34rem),
    var(--bg);
  color: var(--ink);
}

.tool-hero-copy {
  max-width: 1180px;
  margin: 0 auto;
  width: 100%;
}

.tool-hero-copy h1 {
  max-width: 980px;
  color: var(--ink);
  font-size: clamp(58px, 7vw, 116px);
  letter-spacing: 0;
}

.tool-hero-copy .lead {
  max-width: 760px;
  color: #475069;
}

.tool-hero .eyebrow { color: var(--accent); }

.hero-copy h1 {
  max-width: 940px;
  margin: 14px 0 24px;
  font-size: clamp(48px, 6.4vw, 92px);
  line-height: .96;
  letter-spacing: -.01em;
  color: var(--ink);
}

.lead {
  max-width: 780px;
  color: #475069;
  font-size: clamp(19px, 1.8vw, 24px);
}

.eyebrow,
.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--accent);
  font-weight: 800;
  text-transform: uppercase;
  font-size: 13px;
  letter-spacing: .08em;
}
.eyebrow::before,
.section-kicker::before {
  content: "";
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: currentColor;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}
.primary,
.secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 24px;
  border-radius: 12px;
  font-weight: 800;
}
.primary { background: var(--accent); color: #fff; box-shadow: 0 12px 28px rgba(79,70,229,.28); }
.primary:hover { background: var(--accent-2); }
.secondary { border: 1px solid var(--line); color: var(--ink); background: #fff; }
.secondary:hover { border-color: var(--accent); color: var(--accent); }

.lab-panel {
  position: relative;
  min-height: 500px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background:
    linear-gradient(180deg, #fbfcff, #f4f6ff),
    repeating-linear-gradient(90deg, rgba(79,70,229,.04) 0 1px, transparent 1px 48px),
    repeating-linear-gradient(0deg, rgba(79,70,229,.04) 0 1px, transparent 1px 48px);
  overflow: hidden;
  box-shadow: 0 30px 70px rgba(15,23,42,.10);
}

.rewrite-tool {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 0;
  width: min(100%, 1180px);
  margin: 0 auto;
  min-height: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: #fff;
  box-shadow: 0 30px 90px rgba(15,23,42,.12);
}
.tool-editor {
  display: grid;
  gap: 20px;
  padding: clamp(26px, 3vw, 42px);
}
.tool-settings {
  display: grid;
  align-content: start;
  gap: 24px;
  padding: clamp(26px, 3vw, 42px);
  background: var(--accent-tint);
  border-left: 1px solid var(--line);
}
.tool-header {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 16px;
}
.tool-header h2 {
  margin: 8px 0 0;
  font-size: clamp(30px, 3.6vw, 52px);
  line-height: 1.02;
}
.tool-header > span {
  flex: 0 0 auto;
  padding: 9px 12px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 13px;
  font-weight: 900;
}
.tool-field {
  display: grid;
  gap: 8px;
  color: var(--ink);
  font-weight: 800;
}
.tool-field textarea {
  width: 100%;
  min-height: clamp(250px, 32vh, 390px);
  resize: vertical;
  border: 2px solid var(--accent);
  border-radius: 4px;
  padding: 18px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  line-height: 1.55;
}
.tool-field textarea:focus {
  outline: 3px solid rgba(79,70,229,.18);
  border-color: var(--accent-2);
  background: #fff;
}
.tool-footer-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(240px, 360px);
  align-items: center;
  gap: 18px;
}
.tool-footer-row > span {
  justify-self: end;
  color: #71717a;
  font-size: 18px;
  font-weight: 700;
}
.setting-block,
.setting-select {
  display: grid;
  gap: 10px;
}
.setting-label {
  color: #52525b;
  font-size: 18px;
  font-weight: 800;
}
.setting-select select {
  width: 100%;
  min-height: 54px;
  border: 1px solid #d4d4d8;
  border-radius: 4px;
  padding: 0 14px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-weight: 750;
}
.mode-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}
.mode-row label {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--panel);
  color: #354159;
  font-weight: 850;
  cursor: pointer;
}
.mode-row label:has(input:checked) {
  border-color: var(--accent);
  background: var(--accent-soft);
  color: var(--accent);
}
.mode-row input { accent-color: var(--accent); }
.tool-submit {
  min-height: 58px;
  border: 0;
  border-radius: 12px;
  background: var(--accent);
  color: #fff;
  font: inherit;
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 12px 28px rgba(79,70,229,.24);
}
.tool-submit:hover { background: var(--accent-2); }
.tool-result {
  display: grid;
  gap: 12px;
  padding: 16px;
  border: 1px solid #c7d2fe;
  border-radius: 14px;
  background: var(--accent-tint);
}
.tool-result[hidden] { display: none; }
.tool-result strong { color: var(--ink); }
.tool-result p {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  color: var(--ink);
  font-size: 16px;
  line-height: 1.55;
}
.tool-result a {
  color: var(--accent);
  font-weight: 900;
}
.generated-prompt {
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}
.generated-prompt summary {
  cursor: pointer;
  color: #475069;
  font-size: 14px;
  font-weight: 900;
}
.generated-prompt pre {
  max-height: 180px;
  overflow: auto;
  white-space: pre-wrap;
  margin: 10px 0 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  color: #334155;
  font: 13px/1.5 ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

.panel-top {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 18px 20px;
  border-bottom: 1px solid var(--line);
  color: #44506a;
}
.panel-top span { width: 10px; height: 10px; border-radius: 50%; background: var(--red); }
.panel-top span:nth-child(2) { background: var(--amber); }
.panel-top span:nth-child(3) { background: var(--accent); }
.panel-top strong { margin-left: auto; font-size: 13px; text-transform: uppercase; letter-spacing: .08em; color: var(--ink); }

.score-orbit {
  position: relative;
  display: grid;
  place-items: center;
  height: 300px;
}
.winner {
  position: relative;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 170px;
  height: 170px;
  text-align: center;
  color: #fff;
  font-weight: 900;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #818cf8, var(--accent) 70%);
  box-shadow: 0 18px 50px rgba(79,70,229,.4);
}
.winner b { font-size: 24px; }
.ring { position: absolute; border: 1px dashed rgba(79,70,229,.35); border-radius: 50%; }
.r1 { width: 248px; height: 248px; }
.r2 { width: 348px; height: 348px; border-color: rgba(99,102,241,.22); }

.mini-ranks {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  padding: 0 22px 22px;
}
.mini-ranks p {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  color: #38415a;
  background: #fff;
  font-weight: 600;
}
.mini-ranks b { color: var(--accent); }

.section {
  padding: clamp(52px, 7vw, 92px) clamp(20px, 7vw, 110px);
  color: var(--ink);
  background: var(--bg);
}
.section h2 {
  max-width: 920px;
  margin: 12px 0 20px;
  font-size: clamp(34px, 4.4vw, 60px);
  line-height: 1.02;
  letter-spacing: -.01em;
}
.section h3 { margin: 0 0 10px; font-size: 23px; line-height: 1.15; }
.section p { color: var(--muted); }
.section .eyebrow { color: var(--accent); }
.section-head { max-width: 880px; margin: 0 auto 34px; text-align: center; }
.section-head.left { margin-left: 0; text-align: left; }

/* Contrast band — now a soft indigo tint instead of near-black */
.dark-section {
  background: var(--accent-tint);
  color: var(--ink);
}
.dark-section h2, .dark-section h3 { color: var(--ink); }
.dark-section p { color: var(--muted); }
.dark-section .section-kicker { color: var(--accent); }

.category-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
  margin-top: 32px;
}
.category-grid article {
  min-height: 240px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 10px 30px rgba(15,23,42,.04);
}
.category-grid span { color: var(--accent); font-weight: 900; }
.category-grid h3 { margin-top: 26px; color: var(--ink); font-size: 21px; }

.scoreboard {
  display: grid;
  grid-template-columns: .8fr 1.2fr;
  gap: 34px;
  align-items: start;
}

.intent-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  padding-top: 20px;
  padding-bottom: 20px;
  background: var(--panel);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.intent-strip a {
  display: grid;
  gap: 8px;
  min-height: 150px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 10px 28px rgba(15,23,42,.04);
}
.intent-strip a:hover { border-color: var(--accent); transform: translateY(-1px); }
.intent-strip strong { color: var(--ink); font-size: 21px; }
.intent-strip span { color: var(--muted); line-height: 1.5; }

.free-tools-section {
  background: var(--panel);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.free-tool-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  border: 1px solid var(--line);
  background: #fff;
}
.free-tool-list a {
  display: grid;
  gap: 8px;
  min-height: 118px;
  padding: 22px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.free-tool-list a:nth-child(2n) { border-right: 0; }
.free-tool-list a:hover {
  background: var(--accent-tint);
}
.free-tool-list strong {
  color: var(--ink);
  font-size: 22px;
}
.free-tool-list span {
  color: var(--muted);
  line-height: 1.5;
}
.ranking-list { display: grid; gap: 14px; }
.ranking-list article {
  display: grid;
  grid-template-columns: 70px 1fr;
  gap: 18px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 14px 38px rgba(15,23,42,.05);
}
.rank {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  border-radius: 16px;
  background: var(--accent);
  color: #fff;
  font-size: 28px;
  font-weight: 900;
}
.ranking-list strong { color: var(--accent); }

.split-feature {
  display: grid;
  grid-template-columns: .84fr 1.16fr;
  gap: 34px;
  align-items: start;
}
.sticky-note {
  position: sticky;
  top: 100px;
  padding: 32px;
  border-radius: 26px;
  background: linear-gradient(165deg, var(--accent), #4338ca);
  color: #fff;
}
.sticky-note p { color: #dfe1fb; }
.sticky-note h2 { color: #fff; }
.sticky-note .eyebrow { color: #c7c9ff; }
.flow-list { display: grid; gap: 14px; }
.flow-list article,
.cards-four article {
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 10px 30px rgba(15,23,42,.04);
}
.cards-four h3 a:hover { color: var(--accent); }
.flow-list span {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-bottom: 20px;
  border-radius: 12px;
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 900;
}

.tool-table {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.tool-table a {
  display: grid;
  gap: 8px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: #fff;
  min-height: 168px;
  box-shadow: 0 10px 30px rgba(15,23,42,.04);
  transition: border-color .15s, transform .15s;
}
.tool-table a:hover { border-color: var(--accent); transform: translateY(-2px); }
.tool-table strong { font-size: 21px; color: var(--ink); }
.tool-table small { color: #8a93a6; font-weight: 700; }
.tool-table span { color: var(--muted); line-height: 1.5; }

.gptzero-section {
  background:
    linear-gradient(135deg, rgba(79,70,229,.05), transparent 40%),
    var(--panel);
}

.definition-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.definition-grid article,
.failure-grid article,
.consequence-list article,
.mechanics-stack article,
.detector-grid a {
  border: 1px solid var(--line);
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 10px 30px rgba(15,23,42,.04);
}
.definition-grid article { min-height: 240px; padding: 24px; }
.definition-grid span {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin-bottom: 22px;
  border-radius: 12px;
  background: var(--accent);
  color: #fff;
  font-weight: 900;
}

/* Mechanics band — soft tint, dark ink */
.detector-mechanics {
  display: grid;
  grid-template-columns: .92fr 1.08fr;
  gap: 34px;
  align-items: start;
  background: var(--accent-tint);
  color: var(--ink);
}
.detector-mechanics h2,
.detector-mechanics h3 { color: var(--ink); }
.detector-mechanics p { color: var(--muted); }
.detector-mechanics .eyebrow { color: var(--accent); }
.mechanics-copy { position: sticky; top: 100px; }
.mechanics-stack { display: grid; gap: 14px; }
.mechanics-stack article { padding: 26px; background: #fff; }

.failure-section {
  display: grid;
  grid-template-columns: .75fr 1.25fr;
  gap: 34px;
  align-items: start;
}
.failure-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.failure-grid article { padding: 24px; }

.detector-users { background: var(--accent-soft); }
.users-consequences {
  display: grid;
  grid-template-columns: .78fr 1.22fr;
  gap: 22px;
}
.user-list {
  padding: 28px;
  border-radius: 22px;
  background: linear-gradient(165deg, var(--accent), #4338ca);
  color: #fff;
}
.user-list h3 { color: #fff; }
.user-list ul {
  display: grid;
  gap: 12px;
  margin: 18px 0 0;
  padding-left: 20px;
  color: #e4e5fc;
  line-height: 1.55;
  font-size: 17px;
  font-weight: 600;
}
.consequence-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.consequence-list article { padding: 22px; }

.detector-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
.detector-grid a { display: grid; gap: 8px; min-height: 180px; padding: 20px; }
.detector-grid strong { font-size: 20px; color: var(--ink); }
.detector-grid small { color: #8a93a6; font-weight: 700; }
.detector-grid span { color: var(--muted); line-height: 1.48; }

/* Ethics band — soft indigo, dark ink */
.ethics-band {
  display: grid;
  grid-template-columns: 1fr .8fr;
  gap: 30px;
  align-items: center;
  background: var(--accent-soft);
  color: var(--ink);
}
.ethics-band p { color: var(--muted); }
.ethics-band h2 { color: var(--ink); }
.ethics-band a { color: var(--accent); font-weight: 700; }
.ethics-band ul { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }
.ethics-band li {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  color: var(--ink);
  font-weight: 700;
}

.comparison-matrix .matrix {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 10px 30px rgba(15,23,42,.04);
}
table { width: 100%; border-collapse: collapse; min-width: 760px; }
th, td { padding: 18px; text-align: left; border-bottom: 1px solid #eef1f6; vertical-align: top; }
th { color: var(--ink); background: var(--accent-soft); }
td { color: var(--muted); }
td:first-child { color: var(--ink); font-weight: 800; }

.cards-four { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.cards-four h3 a { color: var(--ink); }

.faq-list { display: grid; gap: 12px; max-width: 980px; margin: 0 auto; }
.faq-list details {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(15,23,42,.04);
}
.faq-list summary { cursor: pointer; padding: 20px 24px; font-size: 20px; font-weight: 800; color: var(--ink); }
.faq-list summary:hover { color: var(--accent); }
.faq-list details p { padding: 0 24px 22px; }
.faq-list details a { color: var(--accent); font-weight: 700; }

.footer {
  padding: 60px clamp(20px, 7vw, 110px) 30px;
  background: var(--ink-band);
  color: #f8fafc;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 28px;
}
.footer h2, .footer h3 { margin: 0 0 14px; color: #fff; }
.footer p { color: #aeb6c6; }
.footer a { display: block; color: #c3cad8; font-weight: 600; margin: 9px 0; }
.footer a:hover { color: #fff; }
.smallprint {
  margin-top: 38px;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,.12);
  font-size: 15px;
  color: #94a0b4;
}

@media (max-width: 1100px) {
  .hero,
  .scoreboard,
  .split-feature,
  .ethics-band,
  .detector-mechanics,
  .failure-section,
  .users-consequences { grid-template-columns: 1fr; }
  .lab-panel { min-height: 420px; }
  .category-grid { grid-template-columns: repeat(2, 1fr); }
  .tool-table,
  .intent-strip,
  .cards-four,
  .definition-grid,
  .detector-grid,
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .sticky-note { position: static; }
  .mechanics-copy { position: static; }
}

@media (max-width: 760px) {
  .topbar { min-height: 64px; padding-inline: 16px; }
  .brand { font-size: 18px; }
  .menu-button { display: block; }
  .nav {
    position: absolute;
    top: 64px;
    left: 12px;
    right: 12px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 24px 70px rgba(15,23,42,.16);
  }
  .topbar.nav-open .nav { display: flex; }
  .nav a { padding: 14px; }
  .language-menu summary { border-radius: 12px; }
  .language-list { position: static; margin-top: 8px; box-shadow: none; }
  .hero { padding-top: 40px; }
  .hero-copy h1 { font-size: clamp(40px, 12vw, 58px); }
  .tool-hero {
    padding: 34px 16px 42px;
  }
  .tool-hero-copy h1 {
    font-size: clamp(48px, 14vw, 72px);
  }
  .lead { font-size: 18px; }
  .hero-actions a { width: 100%; }
  .rewrite-tool {
    grid-template-columns: 1fr;
    min-height: 0;
  }
  .tool-header { display: grid; }
  .mode-row { grid-template-columns: 1fr; }
  .tool-settings {
    border-left: 0;
    border-top: 1px solid var(--line);
  }
  .tool-footer-row {
    grid-template-columns: 1fr;
  }
  .tool-footer-row > span {
    justify-self: start;
  }
  .category-grid,
  .tool-table,
  .intent-strip,
  .free-tool-list,
  .cards-four,
  .definition-grid,
  .failure-grid,
  .consequence-list,
  .detector-grid,
  .footer-grid { grid-template-columns: 1fr; }
  .ranking-list article { grid-template-columns: 1fr; }
  .section h2 { font-size: clamp(30px, 9vw, 44px); }
  .free-tool-list { grid-template-columns: 1fr; }
  .free-tool-list a { border-right: 0; }
}

.footer-submit {
  display: grid;
  grid-template-columns: minmax(0, .85fr) minmax(320px, 1.15fr);
  gap: 28px;
  margin-top: 42px;
  padding-top: 42px;
  border-top: 1px solid rgba(255,255,255,.12);
}
.footer-submit h2 { margin: 0 0 14px; font-size: clamp(30px, 3.6vw, 50px); line-height: 1.05; }
.submit-form { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.submit-form label { display: grid; gap: 8px; color: #d8dde8; font-weight: 700; }
.submit-form label:has(textarea) { grid-column: 1 / -1; }
.submit-form input,
.submit-form select,
.submit-form textarea {
  width: 100%;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 12px;
  padding: 13px 14px;
  background: #1b2333;
  color: #f8fbff;
  font: inherit;
}
.submit-form button {
  justify-self: start;
  border: 0;
  border-radius: 12px;
  padding: 14px 20px;
  background: var(--accent);
  color: #fff;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}
.submit-form button:hover { background: var(--accent-2); }
.submit-message { align-self: center; margin: 0; color: #a5b4fc; font-weight: 800; }

@media (max-width: 760px) {
  .footer-submit,
  .submit-form { grid-template-columns: 1fr; }
  .submit-form label:has(textarea) { grid-column: auto; }
}


/* ---- RTL support (Arabic) ---- */
[dir="rtl"] .language-list { right: auto; left: 0; }
[dir="rtl"] .tool-settings { border-left: 0; border-right: 1px solid var(--line); }
[dir="rtl"] .tool-footer-row > span { justify-self: start; }
[dir="rtl"] .section-head.left { text-align: right; }
[dir="rtl"] .user-list ul { padding-left: 0; padding-right: 20px; }


.example-section { background: var(--panel); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.example-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.example-grid article { padding: 26px; border: 1px solid var(--line); border-radius: 18px; background: #fff; }
.example-grid span { display: inline-flex; margin-bottom: 14px; color: var(--accent); font-weight: 900; text-transform: uppercase; font-size: 13px; letter-spacing: .08em; }
.try-links { display: grid; gap: 8px; margin-top: 10px; }
.try-links a { display: inline-flex; justify-content: center; padding: 10px 12px; border-radius: 10px; background: #fff; border: 1px solid var(--line); color: var(--accent); font-weight: 900; }
.cards-four { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.faq-list { display: grid; gap: 12px; max-width: 980px; }
.faq-list details { padding: 22px; border: 1px solid var(--line); border-radius: 16px; background: #fff; }
.faq-list summary { cursor: pointer; font-size: 21px; font-weight: 900; color: var(--ink); }
.faq-list p { margin-top: 12px; }
@media (max-width: 900px) {
  .example-grid, .cards-four { grid-template-columns: 1fr; }
}
