/* Dark/glass design system — scoped to .theme-dark-glass. Loaded AFTER style.css. */
.theme-dark-glass {
  --bg-1: #0b1220;
  --bg-2: #0f1729;
  --surface-1: rgba(255, 255, 255, 0.04);
  --surface-1-border: rgba(255, 255, 255, 0.08);
  --surface-elevated: #131c2e;
  --text-1: #f1f5f9;
  --text-2: #94a3b8;
  --text-3: #7a879c;
  --brand-gradient: linear-gradient(135deg, #087f8c, #4db6ac 55%, #d6583c);
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.4);
  --shadow-glow: 0 0 40px rgba(8, 127, 140, 0.25);
  --radius: 14px;
  color-scheme: dark;
}

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

/* The demo container reserves fixed height (no CLS) and stacks pairs in a
   single grid cell so they occupy the same space. */
.theme-dark-glass .hero-demo {
  min-height: 96px;
  margin: 1.5rem 0 0;
  padding: 1rem 1.25rem;
  background: var(--surface-1);
  border: 1px solid var(--surface-1-border);
  border-radius: var(--radius);
  display: grid;
  grid-template-areas: "stack";
}

/* All pairs share the same grid area -> they overlap. Crossfade is a pure
   opacity transition (no height change, no layout shift). Only the .is-active
   pair is opaque + interactive; others are transparent + non-interactive but
   still occupy the grid cell (so the container sizes to the tallest pair). */
.theme-dark-glass .hero-demo-pair {
  grid-area: stack;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  opacity: 0;
  transition: opacity 0.6s ease;
  pointer-events: none;
}

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

.theme-dark-glass .hero-demo-before {
  margin: 0;
  color: var(--text-3);
  text-decoration: line-through;
  text-decoration-color: rgba(255, 255, 255, 0.2);
}

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

.theme-dark-glass .hero-demo-tag {
  display: inline-block;
  min-width: 3.5rem;
  margin-right: 0.5rem;
  font-family: ui-monospace, "Cascadia Code", monospace;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-2);
}

/* Scroll-reveal: elements default to VISIBLE. JS adds .reveal-pending only
   when it's running AND motion is allowed, so without JS or under
   reduced-motion nothing is ever hidden. */
.theme-dark-glass .reveal-pending {
  opacity: 0;
  transform: translateY(20px);
}

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

/* ============================================================ */
/* Base layout — background, sticky nav, scroll-padding          */
/* ============================================================ */

.theme-dark-glass {
  background: linear-gradient(180deg, var(--bg-1), var(--bg-2));
  color: var(--text-1);
  min-height: 100vh;
}

/* Sticky glass nav + scroll offset so anchors aren't hidden under it. */
html:has(.theme-dark-glass) {
  scroll-padding-top: 72px;
}

.theme-dark-glass .nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(11, 18, 32, 0.72);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--surface-1-border);
}

.theme-dark-glass .nav a,
.theme-dark-glass .brand {
  color: var(--text-1);
}

/* GRADIENT RESTRAINT (spec §3.2): the brand gradient goes ONLY on the
   primary CTA (.nav-cta and the hero composer's primary submit), NOT on every
   .button — applying it to all 5 homepage .button instances would flood the
   page and contradict the "gradient as accent, not flood" rule. */
.theme-dark-glass .nav-cta {
  background: var(--brand-gradient);
  color: #fff;
  border: none;
  box-shadow: var(--shadow-sm);
}

.theme-dark-glass .nav-cta:hover {
  box-shadow: var(--shadow-glow);
  transform: translateY(-1px);
}

/* The hero composer's primary submit gets the gradient (it's the page's main
   CTA). Target it by ID to avoid catching every .button. */
.theme-dark-glass .home-hero [type="submit"].button,
.theme-dark-glass .home-hero button.button {
  background: var(--brand-gradient);
  color: #fff;
  border: none;
}

/* Generic .button (tool-card "Open ..." links, secondary actions): solid
   elevated surface, NOT gradient. Keeps the gradient rare and meaningful. */
.theme-dark-glass .button {
  background: var(--surface-elevated);
  color: var(--text-1);
  border: 1px solid var(--surface-1-border);
  box-shadow: var(--shadow-sm);
}

.theme-dark-glass .button:hover {
  border-color: rgba(255, 255, 255, 0.16);
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
}

/* ============================================================ */
/* Hero + composer surfaces (solid elevated, NOT glass)          */
/* ============================================================ */

.theme-dark-glass .home-hero {
  padding: 3rem 0 2rem;
}

.theme-dark-glass .home-hero h1 {
  color: var(--text-1);
  font-weight: 800;
  font-size: clamp(2.25rem, 5vw, 3rem);
  letter-spacing: 0;
}

.theme-dark-glass .home-hero p {
  color: var(--text-2);
}

/* The composer textarea and the tool I/O use SOLID elevated surfaces
   (readable), NOT glass. Glass is for decorative cards only. */
.theme-dark-glass #home-draft,
.theme-dark-glass textarea,
.theme-dark-glass input[type="text"],
.theme-dark-glass select {
  background: var(--surface-elevated);
  color: var(--text-1);
  border: 1px solid var(--surface-1-border);
  border-radius: var(--radius);
}

.theme-dark-glass .trust-row {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 0.75rem;
  color: var(--text-3);
  font-size: 0.9rem;
}

/* ============================================================ */
/* Tool directory — glass cards, categorized                     */
/* ============================================================ */

.theme-dark-glass .tool-directory {
  padding: 2rem 0;
}

.theme-dark-glass .tool-category {
  margin-bottom: 2.5rem;
}

.theme-dark-glass .tool-category-heading {
  color: var(--text-1);
  font-weight: 800;
  font-size: 1.5rem;
  margin: 0 0 1rem;
}

.theme-dark-glass .tool-category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1rem;
}

.theme-dark-glass .tool-card-link {
  background: var(--surface-1);
  border: 1px solid var(--surface-1-border);
  border-radius: var(--radius);
  padding: 1.25rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.theme-dark-glass .tool-card-link:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: rgba(255, 255, 255, 0.16);
}

.theme-dark-glass .tool-card-link h3 {
  color: var(--text-1);
}

.theme-dark-glass .tool-card-link p {
  color: var(--text-2);
}

/* ============================================================ */
/* Message Fixer — side-by-side layout (desktop) + tab styling   */
/* ============================================================ */

/* Side-by-side input/output on desktop. The wrapper is .generator-layout
   (verified in src/message-fixer.html). */
.theme-dark-glass .generator-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

@media (max-width: 768px) {
  .theme-dark-glass .generator-layout {
    grid-template-columns: 1fr;
  }
}

/* Contrast fix: the base style.css gives the tool shell, form, and output
   panel LIGHT backgrounds. Without overriding them, text computed at
   1.10–1.48:1 fails WCAG on the dark theme. Force these surfaces dark so
   titles, headings, and labels are readable. */
.theme-dark-glass .generator-shell,
.theme-dark-glass .caption-form,
.theme-dark-glass .output-panel,
.theme-dark-glass .tool-card.generator-shell {
  background: var(--surface-elevated);
  color: var(--text-1);
  border: 1px solid var(--surface-1-border);
}

.theme-dark-glass .generator-shell h1,
.theme-dark-glass .generator-shell h2,
.theme-dark-glass .generator-shell h3,
.theme-dark-glass .output-panel h2,
.theme-dark-glass .output-panel h3,
.theme-dark-glass .result-card-header h3 {
  color: var(--text-1);
}

.theme-dark-glass .generator-shell label,
.theme-dark-glass .caption-form label,
.theme-dark-glass .field-label {
  color: var(--text-2);
}

/* Result-card headers within panels must also read on the dark surface. */
.theme-dark-glass .result-card-header {
  color: var(--text-1);
}

/* Result tabs */
.theme-dark-glass .result-tabs {
  display: flex;
  gap: 0.25rem;
  border-bottom: 1px solid var(--surface-1-border);
}

.theme-dark-glass .result-tab {
  background: none;
  border: none;
  color: var(--text-2);
  padding: 0.6rem 1rem;
  font-weight: 600;
  cursor: pointer;
  border-bottom: 2px solid transparent;
}

.theme-dark-glass .result-tab[aria-selected="true"] {
  color: var(--text-1);
  border-bottom: 2px solid #4db6ac; /* teal accent underline (from the gradient) */
}

.theme-dark-glass .result-panel {
  background: var(--surface-elevated);
  border: 1px solid var(--surface-1-border);
  border-radius: var(--radius);
  padding: 1.25rem;
  margin-top: 0.75rem;
  color: var(--text-1);
}

.theme-dark-glass .result-why summary {
  color: var(--text-2);
  cursor: pointer;
  padding: 0.75rem 0;
}

.theme-dark-glass .result-panel-actions {
  margin-top: 0.75rem;
}

.theme-dark-glass .secondary-button {
  background: var(--surface-elevated);
  color: var(--text-1);
  border: 1px solid var(--surface-1-border);
}

.theme-dark-glass .copy-status {
  color: var(--text-2);
}

/* ============================================================ */
/* Shared page families                                         */
/* ============================================================ */

.theme-dark-glass h1,
.theme-dark-glass h2,
.theme-dark-glass h3,
.theme-dark-glass h4,
.theme-dark-glass strong,
.theme-dark-glass summary {
  color: var(--text-1);
}

.theme-dark-glass p,
.theme-dark-glass li,
.theme-dark-glass td,
.theme-dark-glass th,
.theme-dark-glass .lede,
.theme-dark-glass .tool-lede,
.theme-dark-glass .article-lede,
.theme-dark-glass .metric-line,
.theme-dark-glass .form-note,
.theme-dark-glass .utility-list,
.theme-dark-glass .cta-note {
  color: var(--text-2);
}

.theme-dark-glass a {
  color: #4db6ac;
}

.theme-dark-glass .eyebrow,
.theme-dark-glass .preview-label,
.theme-dark-glass .sample-label,
.theme-dark-glass .related-grid span {
  color: #4db6ac;
}

/* Tool shells and I/O stay solid for dependable text contrast. */
.theme-dark-glass .tool-page {
  background: transparent;
}

.theme-dark-glass .tool-card,
.theme-dark-glass .generator-shell {
  background: var(--surface-elevated);
  color: var(--text-1);
  border: 1px solid var(--surface-1-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
}

/* Company pages keep the established content width without borrowing tool semantics. */
.theme-dark-glass .company-page {
  min-height: calc(100vh - 76px);
  display: block;
  padding: 36px 20px 72px;
  background: transparent;
}

.theme-dark-glass .company-card {
  width: min(960px, 100%);
  margin: 0 auto;
  padding: clamp(22px, 4vw, 38px);
  background: var(--surface-elevated);
  color: var(--text-1);
  border: 1px solid var(--surface-1-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
}

.theme-dark-glass .company-card h1 {
  max-width: 720px;
  margin-right: auto;
  margin-bottom: 14px;
  margin-left: auto;
  font-size: clamp(2.15rem, 5vw, 3.35rem);
  line-height: 1.05;
}

.theme-dark-glass .caption-form,
.theme-dark-glass .output-panel,
.theme-dark-glass .utility-form,
.theme-dark-glass .utility-panel,
.theme-dark-glass .text-workbench,
.theme-dark-glass .text-tool-results,
.theme-dark-glass .calculator-card,
.theme-dark-glass .result-card,
.theme-dark-glass .text-output-card,
.theme-dark-glass .inbox-preview {
  background: var(--surface-elevated);
  color: var(--text-1);
  border-color: var(--surface-1-border);
  border-radius: var(--radius);
}

.theme-dark-glass input,
.theme-dark-glass textarea,
.theme-dark-glass select {
  background: #0f1729;
  color: var(--text-1);
  border-color: rgba(255, 255, 255, 0.14);
}

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

.theme-dark-glass input:focus,
.theme-dark-glass textarea:focus,
.theme-dark-glass select:focus,
.theme-dark-glass button:focus-visible,
.theme-dark-glass a:focus-visible,
.theme-dark-glass summary:focus-visible {
  outline: 2px solid #4db6ac;
  outline-offset: 3px;
  border-color: #4db6ac;
  box-shadow: 0 0 0 4px rgba(77, 182, 172, 0.18);
}

.theme-dark-glass button,
.theme-dark-glass .secondary-button,
.theme-dark-glass .example-chips button,
.theme-dark-glass .text-tool-actions button {
  background: var(--surface-elevated);
  color: var(--text-1);
  border-color: rgba(255, 255, 255, 0.14);
}

.theme-dark-glass button:hover,
.theme-dark-glass .secondary-button:hover:not(:disabled),
.theme-dark-glass .example-chips button:hover,
.theme-dark-glass .text-tool-actions button:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-1);
  border-color: rgba(125, 211, 199, 0.5);
}

/* Tabs, samples, stats, and related links are decorative glass chrome. */
.theme-dark-glass .mode-tabs,
.theme-dark-glass .sample-output-card,
.theme-dark-glass .trust-indicators span,
.theme-dark-glass .related-grid a,
.theme-dark-glass .stat-grid article,
.theme-dark-glass .score-card {
  background: var(--surface-1);
  border-color: var(--surface-1-border);
  color: var(--text-2);
  box-shadow: var(--shadow-sm);
}

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

.theme-dark-glass .mode-tab.is-active,
.theme-dark-glass .mode-tab:hover,
.theme-dark-glass .mode-tab:focus-visible {
  background: var(--surface-elevated);
  color: var(--text-1);
}

.theme-dark-glass .workflow-grid article {
  background: var(--surface-1);
  border: 1px solid var(--surface-1-border);
  border-top-color: #4db6ac;
  box-shadow: var(--shadow-sm);
}

.theme-dark-glass .workflow-grid article h3,
.theme-dark-glass .workflow-grid article strong,
.theme-dark-glass .proof-card p {
  color: var(--text-1);
}

.theme-dark-glass .workflow-grid article p,
.theme-dark-glass .proof-card span {
  color: var(--text-2);
}

.theme-dark-glass .proof-card {
  background: var(--surface-1);
  border: 1px solid var(--surface-1-border);
  box-shadow: var(--shadow-sm);
}

.theme-dark-glass .tone-group legend {
  color: var(--text-1);
}

.theme-dark-glass .result-empty {
  color: var(--text-2);
}

.theme-dark-glass .result-sections {
  color: var(--text-1);
}

.theme-dark-glass .result-card-header span {
  color: var(--text-2);
}

.theme-dark-glass .tone-options span {
  background: var(--surface-elevated);
  color: var(--text-2);
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.theme-dark-glass .tone-options input:checked + span {
  background: rgba(77, 182, 172, 0.16);
  color: var(--text-1);
  border-color: #4db6ac;
}

.theme-dark-glass .tone-options input:focus-visible + span {
  outline: 2px solid #4db6ac;
  outline-offset: 3px;
}

.theme-dark-glass .focused-helper {
  color: var(--text-2);
}

.theme-dark-glass .loading-state {
  background: var(--surface-elevated);
  color: var(--text-1);
  border: 1px solid var(--surface-1-border);
  box-shadow: var(--shadow-sm);
}

.theme-dark-glass .loading-content strong {
  color: var(--text-1);
}

.theme-dark-glass .skeleton-stack span {
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0.05) 0%,
    rgba(255, 255, 255, 0.12) 48%,
    rgba(255, 255, 255, 0.05) 100%
  );
  background-size: 220% 100%;
}

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

.theme-dark-glass .sample-section p,
.theme-dark-glass .related-grid strong,
.theme-dark-glass .stat-grid span,
.theme-dark-glass .score-card span,
.theme-dark-glass .inbox-preview strong {
  color: var(--text-1);
}

.theme-dark-glass .inbox-preview span {
  color: var(--text-2);
}

.theme-dark-glass .text-workbench textarea {
  background: #0f1729;
  color: var(--text-1);
  border-color: rgba(255, 255, 255, 0.14);
}

.theme-dark-glass .calculator-grid {
  align-items: stretch;
}

.theme-dark-glass .calculator-card label {
  color: var(--text-2);
}

.theme-dark-glass .calculator-result {
  background: rgba(77, 182, 172, 0.1);
  color: var(--text-1);
  border-color: var(--surface-1-border);
}

.theme-dark-glass .calculator-result.is-error {
  background: rgba(214, 88, 60, 0.14);
  color: var(--text-1);
}

/* Keep the search-result preview purpose-specific and familiar. */
.theme-dark-glass .serp-card {
  background: #fff;
}

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

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

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

/* Articles retain their narrow reading measure and distinct content rhythm. */
.theme-dark-glass .article-page {
  background: transparent;
}

.theme-dark-glass .article-header {
  max-width: 880px;
  margin-inline: auto;
}

.theme-dark-glass .article-content {
  width: min(100% - 40px, 68ch);
  padding-inline: 0;
}

.theme-dark-glass .article-content h2 {
  color: var(--text-1);
  border-color: var(--surface-1-border);
}

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

.theme-dark-glass .article-content em,
.theme-dark-glass .article-example .example-before p,
.theme-dark-glass .example-label,
.theme-dark-glass .article-privacy,
.theme-dark-glass .article-privacy a {
  color: var(--text-2);
}

.theme-dark-glass .article-example,
.theme-dark-glass .article-template,
.theme-dark-glass .article-cta,
.theme-dark-glass .article-related {
  background: var(--surface-1);
  border-color: var(--surface-1-border);
  border-radius: var(--radius);
}

.theme-dark-glass .article-example,
.theme-dark-glass .article-template {
  box-shadow: var(--shadow-sm);
}

.theme-dark-glass .article-template {
  border-left-color: #4db6ac;
}

.theme-dark-glass .example-before .example-tag {
  color: var(--text-1);
  background: rgba(214, 88, 60, 0.14);
  border: 1px solid rgba(214, 88, 60, 0.34);
}

.theme-dark-glass .example-after .example-tag {
  color: var(--text-1);
  background: rgba(77, 182, 172, 0.14);
  border: 1px solid rgba(77, 182, 172, 0.34);
}

.theme-dark-glass .article-cta,
.theme-dark-glass .article-related {
  padding: 1.5rem;
}

.theme-dark-glass .article-cta .button {
  background: var(--brand-gradient);
  color: #fff;
  border: 0;
}

/* About and Privacy use elevated content cards within the shared tool frame. */
.theme-dark-glass .focused-layout {
  display: grid;
  gap: 1rem;
  margin-top: 2rem;
}

.theme-dark-glass .focused-panel {
  padding: 1.35rem;
  background: var(--surface-elevated);
  border: 1px solid var(--surface-1-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

.theme-dark-glass .focused-panel p {
  margin-bottom: 0;
}

/* Supporting SEO, FAQ, tables, examples, and utility callouts. */
.theme-dark-glass .related-tools,
.theme-dark-glass .seo-section {
  color: var(--text-1);
}

.theme-dark-glass .seo-section {
  background: var(--surface-1);
  border-color: var(--surface-1-border);
  box-shadow: var(--shadow-md);
}

.theme-dark-glass .seo-grid article,
.theme-dark-glass .faq-list details {
  background: var(--surface-elevated);
  border-color: var(--surface-1-border);
}

.theme-dark-glass .faq-list,
.theme-dark-glass .faq-list details,
.theme-dark-glass table,
.theme-dark-glass th,
.theme-dark-glass td {
  border-color: var(--surface-1-border);
}

.theme-dark-glass table {
  width: 100%;
  overflow-wrap: anywhere;
  background: var(--surface-elevated);
  border-radius: var(--radius);
}

.theme-dark-glass th {
  color: var(--text-1);
  background: rgba(255, 255, 255, 0.04);
}

/* Shared footer columns use glass chrome and keep link contrast readable. */
.theme-dark-glass .site-footer {
  background: rgba(11, 18, 32, 0.78);
  color: var(--text-2);
  border-color: var(--surface-1-border);
}

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

.theme-dark-glass .site-footer .footer-column a,
.theme-dark-glass .footer-brand-panel p,
.theme-dark-glass .footer-bottom,
.theme-dark-glass .footer-bottom a {
  color: var(--text-2);
}

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

/* ============================================================ */
/* Mobile polish — prophylactic fixes for the 7 acceptance        */
/* criteria (spec §7). Verified-style: these prevent known        */
/* failure modes (iOS zoom, tab clipping) without needing a       */
/* headed browser to discover them.                              */
/* ============================================================ */

@media (max-width: 768px) {
  /* Prevent iOS auto-zoom on input focus (requires >=16px font). */
  .theme-dark-glass #home-draft,
  .theme-dark-glass textarea,
  .theme-dark-glass input[type="text"],
  .theme-dark-glass input[type="email"],
  .theme-dark-glass input[type="number"],
  .theme-dark-glass input[type="password"],
  .theme-dark-glass input[type="search"],
  .theme-dark-glass input[type="tel"],
  .theme-dark-glass input[type="url"],
  .theme-dark-glass select {
    font-size: 16px;
  }

  /* Result tabs scroll horizontally on narrow screens so the active-tab
     underline is never clipped. */
  .theme-dark-glass .result-tabs {
    overflow-x: auto;
    flex-wrap: nowrap;
    -webkit-overflow-scrolling: touch;
  }

  /* Hero headline scales down on small screens so headline + textarea + CTA
     stay above the fold (criterion 2). */
  .theme-dark-glass .home-hero h1 {
    font-size: clamp(1.75rem, 7vw, 2.25rem);
  }

  /* Tool cards single-column on mobile (criterion: usable tap targets). */
  .theme-dark-glass .tool-category-grid {
    grid-template-columns: 1fr;
  }

  /* Above-the-fold fix: the duplicate hero action buttons (Fix a Message /
     Generate a Caption) push the composer below the fold on mobile. On mobile
     the composer IS the action, so hide the redundant buttons — they remain on
     desktop where there's room. Keeps headline + textarea + submit in the
     first viewport. */
  .theme-dark-glass .hero-actions {
    display: none;
  }

  /* Compact the hero so the composer sits higher. */
  .theme-dark-glass .home-hero {
    padding: 1.5rem 0 1rem;
  }

  .theme-dark-glass .home-hero p {
    margin: 0.5rem 0 0.75rem;
  }

  /* Tighten the composer so the submit button lands above the fold. */
  .theme-dark-glass #home-draft {
    height: 120px;
    min-height: 120px;
  }

  /* Keep sample buttons in a single compact row — the base style.css
     collapses them to 1fr (vertical stack) at max-width:560px, which
     pushes the CTA below the fold. */
  .theme-dark-glass .home-samples {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
  }
}

@media (max-width: 560px) {
  .theme-dark-glass .company-page {
    padding: 24px 16px 48px;
  }

  .theme-dark-glass .company-card {
    max-width: 100%;
    padding: 20px;
    overflow: hidden;
  }

  .theme-dark-glass .company-card h1 {
    font-size: 2.28rem;
  }
}

@media (max-width: 380px) {
  .theme-dark-glass .company-page {
    padding-right: 14px;
    padding-left: 14px;
  }

  .theme-dark-glass .company-card {
    padding-right: 18px;
    padding-left: 18px;
  }

  .theme-dark-glass .company-card h1 {
    font-size: 2rem;
    line-height: 1.08;
  }
}




