:root {
  --bg: #fafaf7;
  --surface: #fffffc;
  --panel: #f4f3ed;
  --text: #1f2421;
  --muted: #6f766f;
  --line: #e3e0d8;
  --line-strong: #d6d1c7;
  --accent: #2f6b4f;
  --accent-dark: #25563f;
  --accent-text: #ffffff;
  --mark-bg: #eef4ee;
  --warning: #b86b32;
  --radius: 8px;
  --shadow: 0 18px 60px rgba(24, 27, 24, 0.08);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background: var(--bg);
}

* {
  box-sizing: border-box;
}

html {
  background: var(--bg);
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
}

body.menu-open {
  overflow: hidden;
}

body.modal-open {
  overflow: hidden;
}

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

button,
textarea,
input {
  font: inherit;
}

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

.site-header {
  min-height: 72px;
  display: grid;
  grid-template-columns: 220px 1fr 220px;
  align-items: center;
  gap: 18px;
  padding: 0 48px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 252, 0.92);
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(12px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 760;
  letter-spacing: 0;
  min-width: 0;
}

.brand-mark {
  width: 30px;
  height: 30px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  display: grid;
  place-items: center;
  color: var(--accent);
  background: var(--mark-bg);
  font-size: 15px;
  font-weight: 800;
  flex: 0 0 auto;
}

.primary-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  color: var(--muted);
  font-size: 14px;
  min-width: 0;
}

.primary-nav a {
  padding: 10px 0;
  font-weight: 560;
}

.primary-nav a.active {
  color: var(--text);
  font-weight: 740;
}

.header-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

.mobile-menu-btn {
  display: none;
}

.text-link {
  color: var(--muted);
  padding: 10px 12px;
  font-weight: 560;
}

.primary-btn,
.outline-btn,
.secondary-btn,
.icon-btn,
.segmented button,
.suggestion button {
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  white-space: nowrap;
}

.primary-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  background: var(--accent);
  border-color: var(--accent);
  color: var(--accent-text);
  font-weight: 760;
}

.primary-btn:hover {
  background: var(--accent-dark);
  border-color: var(--accent-dark);
}

.outline-btn,
.secondary-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 16px;
  background: var(--surface);
  border-color: var(--line-strong);
  color: var(--text);
  font-weight: 700;
}

.page {
  display: none;
  padding: 48px;
}

.page.active {
  display: block;
}

.hero-shell {
  max-width: 1244px;
  margin: 0 auto 34px;
  display: grid;
  grid-template-columns: minmax(360px, 0.86fr) minmax(420px, 1.14fr);
  gap: 56px;
  align-items: end;
}

.eyebrow {
  color: var(--accent);
  font-size: 13px;
  font-weight: 780;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin: 0 0 14px;
}

h1 {
  margin: 0;
  color: var(--text);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(38px, 5vw, 58px);
  line-height: 1.02;
  font-weight: 520;
  letter-spacing: 0;
}

.hero-note,
.body-copy {
  color: var(--muted);
  line-height: 1.65;
  font-size: 16px;
  margin: 0;
}

.tool-board {
  max-width: 1244px;
  margin: 0 auto;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 18px;
  min-width: 0;
}

.tool-board.compact {
  max-width: none;
  margin: 0;
}

.tool-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 16px;
  min-width: 0;
}

.segmented {
  display: flex;
  max-width: 100%;
  min-width: 0;
  overflow-x: auto;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #f2f1eb;
  gap: 3px;
  scrollbar-width: none;
}

.segmented::-webkit-scrollbar {
  display: none;
}

.segmented button {
  min-height: 34px;
  padding: 0 13px;
  background: transparent;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  flex: 0 0 auto;
  border-color: transparent;
  position: relative;
}

.segmented button.active {
  background: var(--surface);
  color: var(--text);
  box-shadow: 0 1px 0 rgba(20, 24, 20, 0.04);
}

.segmented button[data-locked="true"] {
  cursor: pointer;
}

.mode-tooltip {
  position: fixed;
  z-index: 80;
  width: min(520px, calc(100vw - 24px));
  padding: 16px 18px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 16px 44px rgba(24, 27, 24, 0.18);
  color: var(--text);
  font-size: 15px;
  line-height: 1.45;
  text-align: center;
  pointer-events: none;
  opacity: 0;
  transform: translateY(-4px);
  transition: opacity 140ms ease, transform 140ms ease;
}

.mode-tooltip::before {
  content: "";
  position: absolute;
  top: -7px;
  left: var(--arrow-left, 50%);
  width: 12px;
  height: 12px;
  background: var(--surface);
  border-left: 1px solid var(--line-strong);
  border-top: 1px solid var(--line-strong);
  transform: translateX(-50%) rotate(45deg);
}

.mode-tooltip.visible {
  opacity: 1;
  transform: translateY(0);
}

.signup-modal {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.signup-modal.open {
  display: flex;
}

.signup-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(31, 36, 33, 0.46);
  backdrop-filter: blur(8px);
}

.signup-modal__panel {
  position: relative;
  width: min(680px, 100%);
  border: 1px solid var(--line-strong);
  border-radius: 16px;
  background: var(--surface);
  box-shadow: 0 28px 90px rgba(24, 27, 24, 0.22);
  padding: 54px 58px 44px;
}

.signup-modal__close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--text);
}

.signup-modal__close::before,
.signup-modal__close::after {
  content: "";
  position: absolute;
  top: 18px;
  left: 9px;
  width: 20px;
  height: 2px;
  border-radius: 99px;
  background: currentColor;
}

.signup-modal__close::before {
  transform: rotate(45deg);
}

.signup-modal__close::after {
  transform: rotate(-45deg);
}

.signup-modal h2 {
  margin: 0 0 26px;
  color: var(--text);
  font-size: clamp(28px, 4vw, 40px);
  line-height: 1.12;
  text-align: center;
  font-weight: 760;
  letter-spacing: 0;
}

.signup-modal ul {
  list-style: none;
  margin: 0 auto 28px;
  padding: 0;
  max-width: 420px;
  display: grid;
  gap: 14px;
}

.signup-modal li {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 20px;
  color: var(--text);
}

.signup-modal li::before {
  content: "";
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--mark-bg);
  border: 1px solid #c9dccf;
  box-shadow: inset 0 0 0 6px var(--mark-bg);
  flex: 0 0 auto;
}

.signup-modal__primary,
.signup-modal__google {
  width: min(430px, 100%);
  min-height: 54px;
  margin: 0 auto 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border-radius: var(--radius);
  font-size: 17px;
  font-weight: 740;
}

.signup-modal__primary {
  background: var(--accent);
  color: var(--accent-text);
}

.signup-modal__primary span {
  font-size: 26px;
  line-height: 1;
}

.signup-modal__google {
  border: 1px solid var(--text);
  background: var(--surface);
  color: var(--text);
}

.signup-modal__google span {
  display: inline-grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  color: #1a73e8;
  font-weight: 800;
}

.signup-modal p {
  margin: 20px 0 0;
  text-align: center;
  color: var(--muted);
  font-size: 15px;
}

.signup-modal p a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.badge-row {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 8px;
  min-width: 0;
}

.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0 10px;
  background: #f4f3ed;
  color: #465047;
  font-size: 12px;
  font-weight: 720;
  white-space: nowrap;
}

.split-editor {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 16px;
}

.split-editor.narrow {
  gap: 18px;
}

.editor-pane,
.suggestions {
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--surface);
  overflow: hidden;
  min-height: 340px;
  display: flex;
  flex-direction: column;
}

.editor-pane.single {
  min-height: 280px;
}

.pane-head {
  min-height: 50px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 0 16px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.icon-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.icon-btn {
  width: 34px;
  height: 34px;
  display: inline-grid;
  place-items: center;
  border-color: var(--line);
  background: var(--surface);
  color: var(--muted);
  flex: 0 0 auto;
}

.icon {
  width: 16px;
  height: 16px;
  display: inline-block;
  position: relative;
}

.icon.copy::before,
.icon.copy::after {
  content: "";
  position: absolute;
  border: 1.5px solid currentColor;
  width: 10px;
  height: 12px;
  border-radius: 2px;
}

.icon.copy::before {
  left: 2px;
  top: 1px;
  opacity: 0.45;
}

.icon.copy::after {
  left: 5px;
  top: 4px;
  background: var(--surface);
}

.icon.clear::before,
.icon.clear::after {
  content: "";
  position: absolute;
  width: 15px;
  height: 1.5px;
  background: currentColor;
  top: 7px;
  left: 1px;
}

.icon.clear::before {
  transform: rotate(45deg);
}

.icon.clear::after {
  transform: rotate(-45deg);
}

.icon.history::before {
  content: "";
  position: absolute;
  inset: 2px;
  border: 1.5px solid currentColor;
  border-radius: 50%;
}

.icon.history::after {
  content: "";
  position: absolute;
  width: 5px;
  height: 5px;
  border-left: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  left: 7px;
  top: 4px;
}

.icon.download::before {
  content: "";
  position: absolute;
  width: 1.5px;
  height: 11px;
  background: currentColor;
  left: 7px;
  top: 1px;
}

.icon.download::after {
  content: "";
  position: absolute;
  width: 9px;
  height: 9px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg);
  left: 3px;
  top: 5px;
}

textarea,
.output-text {
  width: 100%;
  flex: 1;
  border: 0;
  outline: 0;
  resize: none;
  background: transparent;
  color: var(--text);
  line-height: 1.65;
  font-size: 15px;
  padding: 24px 20px;
}

textarea {
  min-height: 286px;
}

.output-text {
  white-space: pre-wrap;
}

mark {
  background: #dce8dd;
  color: var(--accent-dark);
  border-radius: 4px;
  padding: 1px 5px;
}

.tool-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
}

.trust-strip {
  max-width: 1244px;
  margin: 26px auto 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.trust-strip article {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 252, 0.72);
  padding: 16px;
  min-height: 88px;
}

.trust-strip strong,
.trust-strip span {
  display: block;
}

.trust-strip strong {
  margin-bottom: 7px;
  font-size: 14px;
}

.trust-strip span {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.page-layout {
  max-width: 1244px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}

.page-aside {
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 24px;
  box-shadow: 0 18px 54px rgba(24, 27, 24, 0.06);
  min-width: 0;
}

.page-aside h1 {
  font-size: 42px;
  margin-bottom: 18px;
}

.aside-list {
  display: grid;
  gap: 10px;
  margin-top: 28px;
}

.aside-list span {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 12px 14px;
  color: var(--muted);
  background: #fffefa;
  font-size: 13px;
  line-height: 1.45;
}

.result-panel {
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: #fffefa;
  padding: 18px;
  margin-top: 16px;
}

.score-block {
  display: flex;
  align-items: baseline;
  gap: 14px;
  margin-bottom: 12px;
}

.score-number {
  color: var(--accent);
  font-size: 54px;
  line-height: 1;
  font-weight: 800;
}

.score-label {
  color: var(--text);
  font-weight: 760;
}

.meter {
  height: 8px;
  background: #e6ebe5;
  border-radius: 999px;
  overflow: hidden;
}

.meter span {
  display: block;
  height: 100%;
  background: var(--accent);
  border-radius: inherit;
}

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

.signal-grid span {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 11px 12px;
  color: var(--muted);
  font-size: 13px;
  background: var(--surface);
}

.suggestions {
  min-height: 340px;
}

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

.suggestion strong {
  font-size: 13px;
}

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

.suggestion button {
  min-height: 34px;
  padding: 0 12px;
  border-color: var(--line-strong);
  background: var(--surface);
  font-weight: 700;
}

.pricing-head {
  max-width: 760px;
  margin: 0 auto 28px;
  text-align: center;
}

.pricing-head h1 {
  margin-bottom: 16px;
}

.pricing-grid {
  max-width: 1040px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.plan {
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 18px 54px rgba(24, 27, 24, 0.06);
  padding: 24px;
  display: flex;
  flex-direction: column;
  min-height: 442px;
}

.plan.featured {
  border-color: var(--accent);
}

.plan-name {
  color: var(--accent);
  font-size: 13px;
  font-weight: 780;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.plan strong {
  font-size: 46px;
  line-height: 1;
  margin: 18px 0 12px;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 520;
}

.plan p {
  color: var(--muted);
  line-height: 1.55;
  margin: 0 0 20px;
}

.plan ul {
  padding: 0;
  margin: 0 0 24px;
  list-style: none;
  display: grid;
  gap: 11px;
  color: var(--muted);
  font-size: 14px;
}

.plan li {
  display: flex;
  gap: 9px;
}

.plan li::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  margin-top: 7px;
  flex: 0 0 auto;
}

.plan .primary-btn,
.plan .outline-btn {
  margin-top: auto;
}

.auth-layout {
  max-width: 940px;
  margin: 28px auto 0;
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 28px;
  align-items: start;
}

.auth-copy {
  padding-top: 28px;
}

.auth-copy h1 {
  margin-bottom: 18px;
}

.auth-form {
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
  padding: 24px;
  display: grid;
  gap: 16px;
}

.auth-form label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.auth-form input {
  min-height: 46px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: #fffefa;
  padding: 0 14px;
  color: var(--text);
  min-width: 0;
}

.auth-form a {
  text-align: center;
  color: var(--accent);
  font-weight: 720;
  font-size: 14px;
}

.site-footer {
  max-width: 1244px;
  margin: 26px auto 0;
  padding: 28px 48px 34px;
  display: grid;
  grid-template-columns: 1.3fr repeat(5, minmax(130px, 1fr));
  gap: 22px;
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.footer-brand p,
.footer-links a,
.footer-bottom {
  font-size: 13px;
  line-height: 1.5;
}

.footer-brand p {
  margin: 12px 0 0;
}

.footer-links {
  display: grid;
  align-content: start;
  gap: 8px;
}

.footer-links strong {
  color: var(--text);
  font-size: 13px;
}

.footer-links a {
  color: var(--muted);
}

.footer-bottom {
  grid-column: 1 / -1;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.content-grid {
  max-width: 1244px;
  margin: 26px auto 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.content-grid article,
.article-card,
.review-grid article,
.feedback-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 252, 0.78);
  padding: 18px;
}

.content-grid h2,
.article-card h2,
.feedback-panel h2 {
  margin: 0 0 10px;
  color: var(--text);
  font-size: 18px;
  line-height: 1.25;
}

.content-grid p,
.article-card p,
.review-grid p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
  font-size: 14px;
}

.pricing-grid-four {
  max-width: 1244px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.essay-builder {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(260px, 0.8fr);
  gap: 16px;
}

.settings-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.settings-grid span {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px;
  background: #fffefa;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

.article-list {
  max-width: 1040px;
  margin: 28px auto 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.article-list.compact-list {
  max-width: none;
  grid-template-columns: 1fr;
}

.article-card {
  display: block;
}

.article-card span,
.article-meta,
.review-grid span {
  display: block;
  color: var(--accent);
  font-size: 12px;
  font-weight: 760;
  letter-spacing: 0.02em;
  margin-bottom: 10px;
}

.article-page {
  max-width: 880px;
  margin: 0 auto;
}

.article-page h1 {
  margin-bottom: 18px;
}

.article-body {
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 18px 54px rgba(24, 27, 24, 0.06);
  padding: 28px;
  margin-top: 24px;
  color: var(--muted);
  line-height: 1.68;
}

.article-body h2 {
  color: var(--text);
  margin: 24px 0 10px;
  font-size: 22px;
}

.article-body h2:first-child {
  margin-top: 0;
}

.article-body ul {
  margin: 12px 0 0;
  padding-left: 20px;
}

.review-grid {
  max-width: 1040px;
  margin: 28px auto 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.stars {
  color: var(--accent);
  font-size: 14px;
  letter-spacing: 0.12em;
  margin-bottom: 10px;
}

.feedback-panel {
  max-width: 1040px;
  margin-top: 14px;
}

.author-layout {
  max-width: 860px;
}

@media (max-width: 1180px) {
  .site-header {
    min-height: 64px;
    padding: 0 24px;
    grid-template-columns: 1fr auto;
  }

  .brand {
    font-size: 15px;
  }

  .primary-nav,
  .header-actions {
    display: none;
  }

  .mobile-menu-btn {
    display: inline-flex;
    width: 42px;
    height: 42px;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--line-strong);
    border-radius: var(--radius);
    background: var(--surface);
    color: var(--text);
    font-weight: 760;
  }

  .site-header.mobile-open .primary-nav,
  .site-header.mobile-open .header-actions {
    display: grid;
    position: fixed;
    left: 24px;
    right: 24px;
    background: var(--surface);
    border: 1px solid var(--line-strong);
    box-shadow: var(--shadow);
    border-radius: var(--radius);
    z-index: 30;
  }

  .site-header.mobile-open .primary-nav {
    top: 74px;
    padding: 10px;
    gap: 2px;
    justify-content: stretch;
  }

  .site-header.mobile-open .primary-nav a {
    min-height: 42px;
    display: flex;
    align-items: center;
    padding: 0 12px;
    border-radius: 6px;
  }

  .site-header.mobile-open .primary-nav a.active {
    background: var(--mark-bg);
  }

  .site-header.mobile-open .header-actions {
    top: 404px;
    padding: 10px;
    grid-template-columns: 1fr 1fr;
  }

  .page {
    padding: 36px 24px;
  }

  .hero-shell,
  .page-layout,
  .auth-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .page-aside h1 {
    font-size: 38px;
  }

  .site-footer {
    padding: 24px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-brand,
  .footer-bottom {
    grid-column: 1 / -1;
  }
}

@media (max-width: 760px) {
  .site-header {
    padding: 0 16px;
  }

  .site-header.mobile-open .primary-nav,
  .site-header.mobile-open .header-actions {
    left: 16px;
    right: 16px;
  }

  .site-header.mobile-open .primary-nav {
    max-height: calc(100vh - 154px);
    overflow-y: auto;
  }

  .site-header.mobile-open .header-actions {
    top: auto;
    bottom: 16px;
  }

  .page {
    padding: 28px 16px 96px;
  }

  .hero-shell {
    gap: 18px;
    margin-bottom: 22px;
  }

  h1 {
    font-size: 38px;
  }

  .hero-note,
  .body-copy {
    font-size: 15px;
  }

  .tool-board {
    padding: 12px;
  }

  .tool-toolbar {
    align-items: stretch;
    flex-direction: column;
    gap: 12px;
  }

  .badge-row {
    justify-content: flex-start;
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 2px;
    scrollbar-width: none;
  }

  .badge-row::-webkit-scrollbar {
    display: none;
  }

  .badge {
    flex: 0 0 auto;
  }

  .split-editor,
  .split-editor.narrow,
  .trust-strip,
  .signal-grid,
  .pricing-grid {
    grid-template-columns: 1fr;
  }

  .editor-pane,
  .suggestions {
    min-height: 278px;
  }

  textarea {
    min-height: 220px;
  }

  textarea,
  .output-text {
    padding: 18px 16px;
    font-size: 15px;
  }

  .tool-footer {
    align-items: stretch;
    flex-direction: column;
  }

  .tool-footer .primary-btn {
    width: 100%;
    min-height: 48px;
  }

  .page-aside {
    padding: 18px;
  }

  .page-aside h1 {
    font-size: 36px;
  }

  .suggestion {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .suggestion button {
    width: 100%;
  }

  .score-number {
    font-size: 46px;
  }

  .pricing-head {
    text-align: left;
  }

  .plan {
    min-height: 0;
  }

  .auth-layout {
    margin-top: 0;
    gap: 22px;
  }

  .auth-copy {
    padding-top: 0;
  }

  .auth-form {
    padding: 18px;
  }

  .mode-tooltip {
    font-size: 14px;
    text-align: left;
  }

  .signup-modal {
    padding: 16px;
  }

  .signup-modal__panel {
    padding: 48px 22px 28px;
    border-radius: 12px;
  }

  .signup-modal li {
    font-size: 16px;
  }

  .signup-modal__primary,
  .signup-modal__google {
    min-height: 50px;
    font-size: 15px;
  }

  .site-footer {
    padding: 24px 16px 90px;
    grid-template-columns: 1fr;
  }

  .content-grid,
  .pricing-grid-four,
  .essay-builder,
  .article-list,
  .review-grid {
    grid-template-columns: 1fr;
  }

  .article-body {
    padding: 20px;
  }

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

@media (max-width: 420px) {
  .brand span:last-child {
    max-width: 142px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  h1 {
    font-size: 34px;
  }

  .segmented button {
    padding: 0 11px;
  }

  .pane-head {
    padding: 0 12px;
  }
}
