/* Roohlyn product shell. Scoped to the build-applied .theme-dark-glass class. */
.theme-dark-glass {
  color-scheme: light;
  --app-bg: #07111f;
  --app-bg-soft: #0d1a2b;
  --shell: #101a2a;
  --surface: #fbfcf8;
  --surface-muted: #f1f5ee;
  --surface-strong: #ffffff;
  --surface-ink: #111827;
  --text: #17202e;
  --text-muted: #5b6777;
  --text-soft: #738094;
  --text-inverse: #f8fafc;
  --accent: #12939a;
  --accent-strong: #08737c;
  --accent-soft: #dff3f2;
  --warning: #b65b2d;
  --warning-soft: #fff0e7;
  --danger: #a33a2c;
  --danger-soft: #fee7e2;
  --success: #1e7a55;
  --success-soft: #e4f5ed;
  --border: rgba(17, 24, 39, 0.12);
  --border-strong: rgba(17, 24, 39, 0.22);
  --shadow-sm: 0 1px 2px rgba(7, 17, 31, 0.08);
  --shadow-md: 0 18px 44px rgba(7, 17, 31, 0.14);
  --shadow-lg: 0 28px 80px rgba(7, 17, 31, 0.2);
  --radius-sm: 6px;
  --radius: 8px;
  --radius-lg: 12px;
  --container: min(1120px, calc(100% - 40px));
  --container-wide: min(1240px, calc(100% - 40px));
  --section: clamp(48px, 8vw, 88px);
  min-height: 100vh;
  color: var(--text);
  background: #e9efe9;
  font-family: Inter, "Segoe UI", ui-sans-serif, system-ui, -apple-system, sans-serif;
}

html:has(.theme-dark-glass) {
  scroll-padding-top: 88px;
}

.theme-dark-glass *,
.theme-dark-glass *::before,
.theme-dark-glass *::after {
  letter-spacing: 0;
}

.theme-dark-glass h1,
.theme-dark-glass h2,
.theme-dark-glass h3,
.theme-dark-glass h4 {
  color: var(--text);
  font-family: Inter, "Segoe UI", ui-sans-serif, system-ui, -apple-system, sans-serif;
  letter-spacing: 0;
}

.theme-dark-glass h1 {
  font-size: clamp(2.3rem, 5vw, 4.9rem);
  line-height: 0.98;
  font-weight: 850;
}

.theme-dark-glass h2 {
  font-size: clamp(1.7rem, 3.5vw, 3rem);
  line-height: 1.05;
  font-weight: 820;
}

.theme-dark-glass h3 {
  font-size: 1.08rem;
  line-height: 1.25;
  font-weight: 800;
}

.theme-dark-glass p,
.theme-dark-glass li {
  color: var(--text-muted);
}

.theme-dark-glass a {
  color: inherit;
}

.theme-dark-glass a:focus-visible,
.theme-dark-glass button:focus-visible,
.theme-dark-glass input:focus-visible,
.theme-dark-glass textarea:focus-visible,
.theme-dark-glass select:focus-visible,
.theme-dark-glass summary:focus-visible,
.theme-dark-glass [tabindex]:focus-visible {
  outline: 3px solid rgba(18, 147, 154, 0.35);
  outline-offset: 3px;
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(18, 147, 154, 0.16);
}

.theme-dark-glass .skip-link:focus {
  background: var(--accent);
  color: #fff;
}

/* Shell */
.theme-dark-glass .nav {
  width: var(--container-wide);
  min-height: 74px;
  position: sticky;
  top: 0;
  z-index: 50;
  padding: 0;
  color: var(--text-inverse);
  background: rgba(7, 17, 31, 0.86);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 0 0 100vmax rgba(7, 17, 31, 0.86);
  clip-path: inset(0 -100vmax);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.theme-dark-glass .brand {
  min-height: 40px;
  color: var(--text-inverse);
  font-size: 1rem;
  font-weight: 850;
}

.theme-dark-glass .brand-mark {
  width: 28px;
  height: 28px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.36);
  background:
    linear-gradient(135deg, #0f8791 0%, #60c2b7 58%, #c85b3e 100%);
  box-shadow: none;
}

.theme-dark-glass .nav-links {
  gap: 8px;
  color: rgba(248, 250, 252, 0.78);
  font-size: 0.9rem;
  font-weight: 760;
}

.theme-dark-glass .nav-links a {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  border-radius: var(--radius-sm);
  padding: 0 10px;
  color: inherit;
  text-decoration: none;
}

.theme-dark-glass .nav-links a:hover,
.theme-dark-glass .nav-links a:focus-visible,
.theme-dark-glass .nav-links a[aria-current="page"] {
  color: var(--text-inverse);
  background: rgba(255, 255, 255, 0.08);
}

.theme-dark-glass .nav-links .nav-cta {
  min-height: 42px;
  margin-left: 6px;
  padding: 0 16px;
  color: #fff;
  background: var(--accent);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: none;
}

.theme-dark-glass .nav-links .nav-cta:hover,
.theme-dark-glass .nav-links .nav-cta:focus-visible {
  background: var(--accent-strong);
}

.theme-dark-glass .nav-toggle {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.18);
}

.theme-dark-glass .nav-toggle span {
  background: var(--text-inverse);
}

/* Shared layout */
.theme-dark-glass .hero,
.theme-dark-glass .workflow-band,
.theme-dark-glass .tool-feature,
.theme-dark-glass .social-proof,
.theme-dark-glass .seo-section,
.theme-dark-glass .related-tools,
.theme-dark-glass .cta,
.theme-dark-glass .site-footer {
  width: var(--container-wide);
}

.theme-dark-glass .hero {
  min-height: auto;
  grid-template-columns: minmax(0, 0.86fr) minmax(380px, 0.72fr);
  gap: clamp(28px, 5vw, 70px);
  padding: clamp(52px, 8vw, 92px) 0 44px;
}

.theme-dark-glass .home-hero {
  background: var(--app-bg);
  box-shadow: 0 0 0 100vmax var(--app-bg);
  clip-path: inset(0 -100vmax);
}

.theme-dark-glass .home-hero h1 {
  max-width: 700px;
  color: var(--text-inverse);
  font-size: clamp(2.5rem, 6.5vw, 5.6rem);
  line-height: 0.98;
  font-weight: 880;
}

.theme-dark-glass .home-hero .lede,
.theme-dark-glass .home-hero .hero-copy p {
  color: rgba(226, 232, 240, 0.78);
}

.theme-dark-glass .eyebrow,
.theme-dark-glass .preview-label,
.theme-dark-glass .output-label,
.theme-dark-glass .example-group p,
.theme-dark-glass .sample-label,
.theme-dark-glass .related-grid span {
  margin-bottom: 10px;
  color: var(--accent-strong);
  font-size: 0.76rem;
  font-weight: 850;
  text-transform: uppercase;
}

.theme-dark-glass .home-hero .eyebrow {
  color: #86d7d2;
}

.theme-dark-glass .hero-actions {
  gap: 10px;
  margin-top: 28px;
}

.theme-dark-glass .button,
.theme-dark-glass .tool-button,
.theme-dark-glass .secondary-button,
.theme-dark-glass .text-tool-actions button,
.theme-dark-glass .example-chips button,
.theme-dark-glass .home-samples button {
  min-height: 44px;
  border-radius: var(--radius);
  font-weight: 820;
  text-decoration: none;
  transition:
    background 160ms ease,
    border-color 160ms ease,
    color 160ms ease,
    transform 160ms ease,
    box-shadow 160ms ease;
}

.theme-dark-glass .button,
.theme-dark-glass .tool-button {
  color: #fff;
  background: var(--accent);
  border: 1px solid var(--accent);
  box-shadow: none;
}

.theme-dark-glass .button:hover,
.theme-dark-glass .tool-button:hover,
.theme-dark-glass .button:focus-visible,
.theme-dark-glass .tool-button:focus-visible {
  color: #fff;
  background: var(--accent-strong);
  border-color: var(--accent-strong);
  transform: translateY(-1px);
}

.theme-dark-glass .button-soft,
.theme-dark-glass .secondary-button,
.theme-dark-glass .text-tool-actions button,
.theme-dark-glass .example-chips button,
.theme-dark-glass .home-samples button {
  color: var(--text);
  background: var(--surface-strong);
  border: 1px solid var(--border);
  box-shadow: none;
}

.theme-dark-glass .button-soft:hover,
.theme-dark-glass .secondary-button:hover:not(:disabled),
.theme-dark-glass .text-tool-actions button:hover,
.theme-dark-glass .example-chips button:hover,
.theme-dark-glass .home-samples button:hover {
  color: var(--accent-strong);
  border-color: rgba(18, 147, 154, 0.46);
  background: var(--accent-soft);
}

.theme-dark-glass button:disabled,
.theme-dark-glass .secondary-button:disabled,
.theme-dark-glass .button:disabled {
  cursor: not-allowed;
  opacity: 0.52;
  transform: none;
}

/* Composer and work surfaces */
.theme-dark-glass .home-composer,
.theme-dark-glass .tool-card,
.theme-dark-glass .generator-shell,
.theme-dark-glass .caption-form,
.theme-dark-glass .utility-form,
.theme-dark-glass .output-panel,
.theme-dark-glass .text-workbench,
.theme-dark-glass .text-tool-results,
.theme-dark-glass .utility-panel,
.theme-dark-glass .calculator-card,
.theme-dark-glass .company-card {
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

.theme-dark-glass .home-composer {
  gap: 12px;
  padding: clamp(18px, 3vw, 28px);
}

.theme-dark-glass .home-composer label,
.theme-dark-glass .caption-form label,
.theme-dark-glass .tone-group legend,
.theme-dark-glass .calculator-card label,
.theme-dark-glass .selector-label {
  color: var(--text);
  font-size: 0.86rem;
  font-weight: 820;
}

.theme-dark-glass textarea,
.theme-dark-glass input,
.theme-dark-glass select,
.theme-dark-glass .result-output {
  color: var(--text);
  background: var(--surface-strong);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: none;
}

.theme-dark-glass textarea::placeholder,
.theme-dark-glass input::placeholder {
  color: var(--text-soft);
  opacity: 1;
}

.theme-dark-glass .home-composer textarea,
.theme-dark-glass .caption-form textarea,
.theme-dark-glass .text-workbench textarea {
  min-height: 158px;
  line-height: 1.55;
}

.theme-dark-glass .home-privacy-note,
.theme-dark-glass .form-note,
.theme-dark-glass .metric-line,
.theme-dark-glass .copy-status,
.theme-dark-glass .cta-note {
  color: var(--text-muted);
  background: var(--surface-muted);
  border-radius: var(--radius);
}

.theme-dark-glass .home-privacy-note {
  padding: 10px 12px;
}

.theme-dark-glass .signal-row {
  gap: 8px;
  margin-top: 22px;
}

.theme-dark-glass .signal-row span,
.theme-dark-glass .trust-indicators span {
  min-height: 32px;
  padding: 0 11px;
  color: var(--text-muted);
  background: var(--surface-muted);
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 780;
}

.theme-dark-glass .home-hero .signal-row span {
  color: rgba(226, 232, 240, 0.8);
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.14);
}

.theme-dark-glass .home-hero .signal-row .signal-new {
  color: #113f44;
  background: #c9f2ef;
}

.theme-dark-glass .hero-demo {
  max-width: 610px;
  min-height: 92px;
  margin-top: 28px;
  display: grid;
  grid-template-areas: "stack";
  padding: 16px 18px;
  color: rgba(226, 232, 240, 0.88);
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-lg);
}

.theme-dark-glass .hero-demo-pair {
  grid-area: stack;
  display: grid;
  gap: 8px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 300ms ease;
}

.theme-dark-glass .hero-demo-pair.is-active {
  opacity: 1;
  pointer-events: auto;
}

.theme-dark-glass .hero-demo-before,
.theme-dark-glass .hero-demo-after {
  margin: 0;
}

.theme-dark-glass .hero-demo-before {
  color: rgba(226, 232, 240, 0.62);
  text-decoration: line-through;
}

.theme-dark-glass .hero-demo-after {
  color: var(--text-inverse);
}

.theme-dark-glass .hero-demo-tag {
  min-width: 54px;
  display: inline-block;
  margin-right: 8px;
  color: #86d7d2;
  font-size: 0.7rem;
  font-weight: 850;
  text-transform: uppercase;
}

.theme-dark-glass .home-preview {
  border-color: rgba(18, 147, 154, 0.34);
  background: var(--accent-soft);
}

.theme-dark-glass .preview-col {
  background: var(--surface-strong);
  border: 1px solid var(--border);
}

/* Homepage sections */
.theme-dark-glass .social-proof {
  margin-top: 18px;
  padding-bottom: 30px;
}

.theme-dark-glass .proof-scroll,
.theme-dark-glass .workflow-grid,
.theme-dark-glass .seo-grid,
.theme-dark-glass .related-grid,
.theme-dark-glass .tool-directory {
  gap: 14px;
}

.theme-dark-glass .proof-card,
.theme-dark-glass .workflow-grid article,
.theme-dark-glass .seo-grid article,
.theme-dark-glass .related-grid a,
.theme-dark-glass .article-example,
.theme-dark-glass .article-template,
.theme-dark-glass .article-cta,
.theme-dark-glass .article-related,
.theme-dark-glass .faq-list details,
.theme-dark-glass .result-card,
.theme-dark-glass .sample-output-card,
.theme-dark-glass .stat-grid article,
.theme-dark-glass .score-card,
.theme-dark-glass .inbox-preview {
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

.theme-dark-glass .sample-outputs {
  display: none;
}

.theme-dark-glass .proof-card p {
  color: var(--text);
  font-style: normal;
}

.theme-dark-glass .workflow-band,
.theme-dark-glass .tool-feature {
  padding: var(--section) 0;
}

.theme-dark-glass .workflow-grid article {
  border-top: 3px solid var(--accent);
}

.theme-dark-glass .tool-directory {
  display: grid;
}

.theme-dark-glass .tool-category {
  display: grid;
  gap: 12px;
}

.theme-dark-glass .tool-category + .tool-category {
  margin-top: 22px;
}

.theme-dark-glass .tool-category-heading {
  margin: 0;
  font-size: 1.15rem;
}

.theme-dark-glass .tool-category-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.theme-dark-glass .tool-card-link {
  min-height: 236px;
  display: grid;
  gap: 10px;
  align-content: start;
  padding: 18px;
  color: var(--text);
  text-decoration: none;
}

.theme-dark-glass .tool-card-link .button {
  align-self: end;
  width: fit-content;
  min-height: 40px;
  margin-top: auto;
  padding: 0 14px;
}

.theme-dark-glass .tool-mini-demo {
  margin-top: 0;
  color: var(--text-muted);
  background: var(--surface-muted);
  border: 1px solid var(--border);
}

/* Tool pages */
.theme-dark-glass .tool-page,
.theme-dark-glass .company-page {
  min-height: calc(100vh - 74px);
  padding: clamp(28px, 5vw, 56px) 20px clamp(56px, 8vw, 92px);
}

.theme-dark-glass .tool-page {
  background: var(--app-bg);
  box-shadow: 0 0 0 100vmax var(--app-bg);
  clip-path: inset(0 -100vmax);
}

.theme-dark-glass .company-page {
  background: #e9efe9;
}

.theme-dark-glass .tool-card,
.theme-dark-glass .company-card {
  width: min(1120px, 100%);
  padding: clamp(22px, 4vw, 40px);
}

.theme-dark-glass .utility-shell {
  width: min(1180px, 100%);
}

.theme-dark-glass .tool-intro {
  max-width: 760px;
  margin-bottom: 24px;
}

.theme-dark-glass .tool-intro h1,
.theme-dark-glass .tool-card h1,
.theme-dark-glass .company-card h1 {
  max-width: 760px;
  margin-bottom: 12px;
  color: var(--text);
  font-size: clamp(2rem, 4.2vw, 3.4rem);
}

.theme-dark-glass .tool-lede,
.theme-dark-glass .section-heading p,
.theme-dark-glass .site-footer p,
.theme-dark-glass .article-lede {
  color: var(--text-muted);
}

.theme-dark-glass .generator-layout,
.theme-dark-glass .text-tools-layout,
.theme-dark-glass .utility-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(360px, 1.05fr);
  gap: 18px;
  align-items: start;
  max-width: 100%;
}

.theme-dark-glass .caption-form,
.theme-dark-glass .utility-form,
.theme-dark-glass .text-workbench,
.theme-dark-glass .output-panel,
.theme-dark-glass .text-tool-results,
.theme-dark-glass .utility-panel {
  padding: clamp(18px, 2.5vw, 24px);
}

.theme-dark-glass .control-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.theme-dark-glass .improve-control-grid {
  grid-template-columns: 1fr 1fr;
}

.theme-dark-glass .tone-options,
.theme-dark-glass .example-chips,
.theme-dark-glass .focused-options {
  gap: 8px;
}

.theme-dark-glass .tone-options label,
.theme-dark-glass .chip-select {
  display: inline-flex;
}

.theme-dark-glass .tone-options input,
.theme-dark-glass .chip-select input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.theme-dark-glass .tone-options span,
.theme-dark-glass .chip-select span {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0 13px;
  color: var(--text-muted);
  background: var(--surface-strong);
  font-size: 0.86rem;
  font-weight: 780;
}

.theme-dark-glass .tone-options input:checked + span,
.theme-dark-glass .chip-select input:checked + span,
.theme-dark-glass .chip-select.selected span {
  color: var(--accent-strong);
  background: var(--accent-soft);
  border-color: rgba(18, 147, 154, 0.54);
}

.theme-dark-glass .tone-options input:focus-visible + span,
.theme-dark-glass .chip-select input:focus-visible + span {
  outline: 3px solid rgba(18, 147, 154, 0.34);
  outline-offset: 3px;
}

.theme-dark-glass .trust-indicators {
  margin-bottom: 20px;
}

.theme-dark-glass .mode-tabs {
  width: min(520px, 100%);
  margin-bottom: 20px;
  background: var(--surface-muted);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: none;
}

.theme-dark-glass .mode-tab {
  color: var(--text-muted);
}

.theme-dark-glass .mode-tab.is-active,
.theme-dark-glass .mode-tab[aria-pressed="true"] {
  color: var(--text);
  background: var(--surface-strong);
  box-shadow: var(--shadow-sm);
}

.theme-dark-glass .output-header {
  align-items: start;
  gap: 12px;
}

.theme-dark-glass .output-header h2 {
  margin-bottom: 0;
  font-size: clamp(1.25rem, 2.3vw, 1.8rem);
}

.theme-dark-glass .output-header > span,
.theme-dark-glass #message-purpose-badge,
.theme-dark-glass #tone-badge,
.theme-dark-glass #improve-style-badge {
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 0 10px;
  color: var(--accent-strong);
  background: var(--accent-soft);
  font-size: 0.82rem;
  font-weight: 800;
}

.theme-dark-glass .result-empty {
  color: var(--text-muted);
  line-height: 1.65;
}

.theme-dark-glass .result-card {
  padding: 16px;
}

.theme-dark-glass .result-card-header h3,
.theme-dark-glass .text-output-card h2 {
  color: var(--text);
  font-size: 0.9rem;
  text-transform: none;
}

.theme-dark-glass .result-card p,
.theme-dark-glass .text-output-card p {
  color: var(--text);
}

.theme-dark-glass .result-tabs {
  display: flex;
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface-muted);
}

.theme-dark-glass .result-tab {
  min-height: 38px;
  border: 0;
  border-radius: var(--radius-sm);
  padding: 0 12px;
  color: var(--text-muted);
  background: transparent;
  font-weight: 800;
}

.theme-dark-glass .result-tab[aria-selected="true"] {
  color: var(--text);
  background: var(--surface-strong);
  box-shadow: var(--shadow-sm);
}

.theme-dark-glass .result-panel {
  margin-top: 12px;
  padding: 18px;
  background: var(--surface-strong);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.theme-dark-glass .result-why {
  margin-top: 12px;
  border-top: 1px solid var(--border);
  padding-top: 12px;
}

.theme-dark-glass .result-why summary {
  color: var(--text);
  font-weight: 820;
  cursor: pointer;
}

.theme-dark-glass .loading-state {
  color: var(--text);
  background: var(--surface-muted);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.theme-dark-glass .spinner {
  border-color: rgba(18, 147, 154, 0.16);
  border-top-color: var(--accent);
}

.theme-dark-glass .skeleton-stack span {
  background: linear-gradient(90deg, rgba(17, 24, 39, 0.06), rgba(17, 24, 39, 0.13), rgba(17, 24, 39, 0.06));
  background-size: 220% 100%;
}

/* Utilities */
.theme-dark-glass .stat-grid {
  gap: 10px;
}

.theme-dark-glass .stat-grid span,
.theme-dark-glass .score-card span {
  color: var(--text);
  font-family: Inter, "Segoe UI", ui-sans-serif, system-ui, -apple-system, sans-serif;
}

.theme-dark-glass .text-tool-actions {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.theme-dark-glass .calculator-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: stretch;
}

.theme-dark-glass .calculator-result {
  color: var(--text);
  background: var(--surface-muted);
  border-color: var(--border);
}

.theme-dark-glass .calculator-result.is-error {
  color: var(--danger);
  background: var(--danger-soft);
}

.theme-dark-glass .serp-card {
  background: #fff;
  border-color: var(--border);
}

.theme-dark-glass .serp-card h2 {
  color: #1a0dab;
}

.theme-dark-glass .serp-url {
  color: #188038;
}

.theme-dark-glass .serp-card p:last-child {
  color: #4d5156;
}

/* Content pages */
.theme-dark-glass .article-page {
  min-height: calc(100vh - 74px);
  background: #eef3ee;
}

.theme-dark-glass .article-header {
  max-width: 920px;
  padding: clamp(42px, 7vw, 74px) 20px 28px;
}

.theme-dark-glass .article-header h1 {
  max-width: 800px;
  color: var(--text);
  font-size: clamp(2.1rem, 5vw, 4rem);
}

.theme-dark-glass .article-content {
  width: min(100% - 40px, 74ch);
  padding: 0 0 clamp(56px, 8vw, 92px);
}

.theme-dark-glass .article-content h2 {
  margin-top: 2.4rem;
  color: var(--text);
  border-color: var(--border);
}

.theme-dark-glass .article-content h3,
.theme-dark-glass .article-content p {
  color: var(--text);
}

.theme-dark-glass .article-content p,
.theme-dark-glass .article-content li {
  font-size: 1rem;
  line-height: 1.76;
}

.theme-dark-glass .article-example,
.theme-dark-glass .article-template,
.theme-dark-glass .article-cta,
.theme-dark-glass .article-related {
  padding: 1.25rem;
}

.theme-dark-glass .article-template {
  border-left: 3px solid var(--accent);
}

.theme-dark-glass .example-before .example-tag {
  color: var(--warning);
  background: var(--warning-soft);
}

.theme-dark-glass .example-after .example-tag {
  color: var(--success);
  background: var(--success-soft);
}

.theme-dark-glass .article-related ul {
  gap: 0.8rem;
}

.theme-dark-glass .article-related a,
.theme-dark-glass .seo-grid a {
  color: var(--accent-strong);
  font-weight: 800;
}

.theme-dark-glass .company-page {
  background: #eef3ee;
}

.theme-dark-glass .company-card {
  width: min(920px, 100%);
}

.theme-dark-glass .focused-layout {
  gap: 12px;
}

.theme-dark-glass .focused-panel {
  padding: 18px;
  color: var(--text);
  background: var(--surface-muted);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: none;
}

.theme-dark-glass .focused-panel p,
.theme-dark-glass .focused-helper {
  color: var(--text-muted);
}

/* SEO, FAQ, footer */
.theme-dark-glass .seo-section {
  margin-top: var(--section);
  padding: clamp(22px, 4vw, 34px);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

.theme-dark-glass .tool-seo {
  margin-top: 28px;
}

.theme-dark-glass .faq-list {
  border-color: var(--border);
}

.theme-dark-glass .faq-list summary {
  color: var(--text);
  font-weight: 820;
}

.theme-dark-glass .site-footer {
  grid-template-columns: minmax(260px, 1.1fr) repeat(3, minmax(170px, 0.7fr));
  margin-top: 0;
  padding: 28px;
  color: rgba(248, 250, 252, 0.76);
  background: var(--app-bg);
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.theme-dark-glass .footer-brand-panel,
.theme-dark-glass .footer-column {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius);
}

.theme-dark-glass .site-footer .brand,
.theme-dark-glass .site-footer .footer-column h2 {
  color: var(--text-inverse);
}

.theme-dark-glass .site-footer p,
.theme-dark-glass .site-footer .footer-column a,
.theme-dark-glass .footer-bottom,
.theme-dark-glass .footer-bottom a,
.theme-dark-glass .footer-bottom span {
  color: rgba(248, 250, 252, 0.72);
}

.theme-dark-glass .site-footer .footer-column a,
.theme-dark-glass .footer-bottom a {
  min-height: 36px;
}

.theme-dark-glass .footer-bottom {
  border-color: rgba(255, 255, 255, 0.12);
}

.theme-dark-glass .footer-bottom span {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.12);
}

.theme-dark-glass .site-footer a:hover,
.theme-dark-glass .site-footer a:focus-visible {
  color: var(--text-inverse);
}

/* Reveal and motion */
.theme-dark-glass .reveal-pending {
  opacity: 0;
  transform: translateY(18px);
}

.theme-dark-glass .reveal-visible {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 420ms ease, transform 420ms ease;
}

@media (prefers-reduced-motion: reduce) {
  .theme-dark-glass *,
  .theme-dark-glass *::before,
  .theme-dark-glass *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}

/* Responsive */
@media (max-width: 1100px) {
  .theme-dark-glass .tool-category-grid,
  .theme-dark-glass .seo-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .theme-dark-glass .nav,
  .theme-dark-glass .hero,
  .theme-dark-glass .workflow-band,
  .theme-dark-glass .tool-feature,
  .theme-dark-glass .social-proof,
  .theme-dark-glass .seo-section,
  .theme-dark-glass .related-tools,
  .theme-dark-glass .cta,
  .theme-dark-glass .site-footer {
    width: min(100% - 32px, 720px);
  }

  .theme-dark-glass .hero,
  .theme-dark-glass .generator-layout,
  .theme-dark-glass .text-tools-layout,
  .theme-dark-glass .utility-layout,
  .theme-dark-glass .calculator-grid,
  .theme-dark-glass .control-grid,
  .theme-dark-glass .improve-control-grid,
  .theme-dark-glass .proof-scroll,
  .theme-dark-glass .workflow-grid {
    grid-template-columns: 1fr;
  }

  .theme-dark-glass .home-hero h1 {
    font-size: clamp(2.25rem, 10vw, 4rem);
  }

  .theme-dark-glass .site-footer {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .theme-dark-glass .nav {
    min-height: 64px;
    flex-direction: row;
    align-items: center;
    padding: 0;
  }

  .theme-dark-glass .nav-toggle {
    display: flex;
    position: static;
    margin-left: auto;
  }

  .theme-dark-glass .nav-links {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    left: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 10px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--radius);
    background: rgba(7, 17, 31, 0.98);
  }

  .theme-dark-glass .nav-links.is-open {
    display: flex;
  }

  .theme-dark-glass .nav-links a {
    width: 100%;
    justify-content: flex-start;
  }

  .theme-dark-glass .nav-links .nav-cta {
    margin-left: 0;
    justify-content: center;
  }

  .theme-dark-glass .hero {
    padding: 34px 0 30px;
  }

  .theme-dark-glass .hero-actions {
    display: none;
  }

  .theme-dark-glass .home-composer textarea {
    min-height: 128px;
  }

  .theme-dark-glass .home-samples {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .theme-dark-glass .home-samples button {
    min-height: 38px;
    padding-inline: 8px;
    font-size: 0.84rem;
  }

  .theme-dark-glass .tool-page,
  .theme-dark-glass .company-page {
    padding: 24px 16px 48px;
  }

  .theme-dark-glass .tool-card,
  .theme-dark-glass .company-card {
    padding: 18px;
  }

  .theme-dark-glass .tool-intro {
    text-align: left;
  }

  .theme-dark-glass .trust-indicators {
    justify-content: flex-start;
  }

  .theme-dark-glass .tone-options span,
  .theme-dark-glass .chip-select span {
    min-height: 40px;
  }

  .theme-dark-glass .result-tabs {
    overflow-x: auto;
    flex-wrap: nowrap;
    -webkit-overflow-scrolling: touch;
  }

  .theme-dark-glass .result-tab {
    flex: 0 0 auto;
  }

  .theme-dark-glass textarea,
  .theme-dark-glass input,
  .theme-dark-glass select {
    font-size: 16px;
  }

  .theme-dark-glass .tool-category-grid,
  .theme-dark-glass .seo-grid,
  .theme-dark-glass .related-grid,
  .theme-dark-glass .stat-grid,
  .theme-dark-glass .text-tool-actions {
    grid-template-columns: 1fr;
  }

  .theme-dark-glass .article-content {
    width: min(100% - 32px, 74ch);
  }
}

@media (max-width: 390px) {
  .theme-dark-glass .home-samples {
    grid-template-columns: 1fr;
  }
}
