/* =========================================================================
   EVA Docs - typography and layout aligned with EVA Converter.
   ========================================================================= */

:root {
  color-scheme: light;
  --font-sans: "Inter", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --bg-page: #ffffff;
  --bg-panel: #ffffff;
  --bg-panel-2: #fafafa;
  --bg-card: #ffffff;
  --bg-card-2: #fafafa;
  --bg-input: #ffffff;
  --bg-glass: rgba(255, 255, 255, 0.9);
  --border: #dfdfdf;
  --border-strong: #c7c7c7;
  --border-soft: rgba(23, 23, 23, 0.08);
  --text-primary: #171717;
  --text-secondary: #212121;
  --text-muted: #707070;
  --text-faint: #b2b2b2;
  --brand: #3ecf8e;
  --brand-soft: rgba(62, 207, 142, 0.16);
  --brand-soft-2: rgba(62, 207, 142, 0.08);
  --brand-strong: #24b47e;
  --accent: #4ade80;
  --info: #054cff;
  --info-soft: rgba(5, 76, 255, 0.09);
  --warning: #8a6700;
  --warning-soft: rgba(255, 219, 19, 0.18);
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.1);
  --ring-focus: 0 0 0 3px rgba(62, 207, 142, 0.28);
  --r-sm: 6px;
  --r-md: 8px;
  --r-lg: 8px;
  --r-xl: 12px;
  --r-pill: 999px;
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --sidebar-width: 17.5rem;
}

[data-theme="dark"] {
  color-scheme: dark;
  --bg-page: #0f1115;
  --bg-panel: #15181d;
  --bg-panel-2: #111418;
  --bg-card: #171b20;
  --bg-card-2: #111418;
  --bg-input: #101317;
  --bg-glass: rgba(21, 24, 29, 0.88);
  --border: #2a3037;
  --border-strong: #39414b;
  --border-soft: rgba(255, 255, 255, 0.08);
  --text-primary: #f5f5f5;
  --text-secondary: #e5e5e5;
  --text-muted: #a3a3a3;
  --text-faint: #737373;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.26);
  --shadow-lg: 0 18px 52px rgba(0, 0, 0, 0.34);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

html,
body {
  margin: 0;
  min-height: 100%;
  overflow-x: hidden;
  background: var(--bg-page);
  color: var(--text-primary);
}

body {
  min-height: 100vh;
  font-family: var(--font-sans);
  font-feature-settings: "cv11", "ss01";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  line-height: 1.45;
  background:
    radial-gradient(circle at 18% -8%, rgba(93, 187, 154, 0.18), transparent 34rem),
    radial-gradient(circle at 92% 4%, rgba(122, 216, 180, 0.16), transparent 30rem),
    linear-gradient(180deg, #ffffff 0%, var(--bg-page) 18rem),
    var(--bg-page);
}

[data-theme="dark"] body {
  background:
    radial-gradient(circle at 16% -8%, rgba(62, 207, 142, 0.14), transparent 34rem),
    radial-gradient(circle at 92% 4%, rgba(74, 222, 128, 0.1), transparent 30rem),
    linear-gradient(180deg, #111418 0%, var(--bg-page) 18rem),
    var(--bg-page);
}

a {
  color: inherit;
}

button,
input {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
summary:focus-visible {
  outline: none;
  box-shadow: var(--ring-focus);
  border-radius: var(--r-md);
}

.mobile-toggle {
  display: none;
}

.overlay {
  position: fixed;
  inset: 0;
  z-index: 30;
  background: rgba(9, 16, 28, 0.46);
}

.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 40;
  width: var(--sidebar-width);
  display: flex;
  flex-direction: column;
  border-right: 1px solid var(--border);
  background: var(--bg-glass);
  backdrop-filter: blur(18px) saturate(140%);
}

.brand {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  min-height: 4.85rem;
  padding: 1rem;
  border-bottom: 1px solid var(--border);
  color: var(--text-primary);
  text-decoration: none;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 3.15rem;
  height: 3.15rem;
  flex: 0 0 auto;
  border: 1px solid rgba(62, 207, 142, 0.36);
  border-radius: var(--r-lg);
  background: linear-gradient(135deg, var(--brand), var(--accent));
  color: #083127;
  font-size: 1rem;
  font-weight: 800;
  box-shadow: 0 10px 24px rgba(93, 187, 154, 0.2);
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-size: 0.96rem;
  font-weight: 800;
  letter-spacing: 0;
}

.brand small {
  margin-top: 0.12rem;
  color: var(--text-muted);
  font-size: 0.74rem;
  font-weight: 500;
}

.doc-search {
  display: grid;
  gap: 0.45rem;
  padding: 0.9rem 1rem;
  border-bottom: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.66rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.doc-search input {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  background: var(--bg-input);
  color: var(--text-primary);
  padding: 0.6rem 0.78rem;
  font-size: 0.82rem;
  font-weight: 500;
  outline: none;
  transition: border-color 160ms var(--ease), box-shadow 160ms var(--ease);
}

.doc-search input::placeholder {
  color: var(--text-muted);
}

.doc-search input:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(93, 187, 154, 0.16);
}

.sidebar-nav {
  flex: 1;
  overflow: auto;
  padding: 0.7rem 0;
  scrollbar-color: rgba(93, 187, 154, 0.38) transparent;
  scrollbar-width: thin;
}

.sidebar-nav p {
  margin: 0.85rem 1rem 0.35rem;
  color: var(--text-muted);
  font-size: 0.64rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.sidebar-nav a {
  display: flex;
  align-items: center;
  min-height: 2.15rem;
  margin: 0 0.5rem;
  border: 1px solid transparent;
  border-radius: var(--r-md);
  color: var(--text-muted);
  padding: 0.5rem 0.65rem;
  text-decoration: none;
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1.2;
  transition: border-color 160ms var(--ease), background-color 160ms var(--ease), color 160ms var(--ease);
}

.sidebar-nav a:hover,
.sidebar-nav a.active {
  border-color: rgba(93, 187, 154, 0.28);
  background: var(--brand-soft-2);
  color: var(--text-primary);
}

.sidebar-footer {
  display: flex;
  gap: 0.5rem;
  padding: 0.85rem 1rem;
  border-top: 1px solid var(--border);
}

.app-link,
.theme-toggle,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.4rem;
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  background: var(--bg-card);
  color: var(--text-secondary);
  padding: 0.62rem 0.86rem;
  text-decoration: none;
  cursor: pointer;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.005em;
  transition: background-color 160ms var(--ease), border-color 160ms var(--ease), transform 160ms var(--ease), box-shadow 160ms var(--ease);
}

.app-link {
  flex: 1;
}

.theme-toggle {
  min-width: 4rem;
}

.app-link:hover,
.theme-toggle:hover,
.button.ghost:hover {
  border-color: rgba(93, 187, 154, 0.35);
  background: var(--brand-soft-2);
  color: var(--text-primary);
}

.content {
  width: min(100vw - var(--sidebar-width), 1500px);
  margin-left: var(--sidebar-width);
  padding: 1.25rem clamp(1rem, 2.2vw, 1.5rem) 4.5rem;
}

.hero,
.doc-section {
  scroll-margin-top: 1.25rem;
  width: 100%;
  margin: 0 auto 1rem;
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  background: var(--bg-panel);
  box-shadow: var(--shadow-md);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(19rem, 0.42fr);
  gap: 1rem;
  align-items: stretch;
  padding: 1.15rem;
}

.hero-copy {
  min-width: 0;
  padding: 0.2rem 0.1rem;
}

.hero h1 {
  max-width: 42rem;
  margin: 0;
  color: var(--text-primary);
  font-size: clamp(1.45rem, 3vw, 2.35rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: 0;
}

.hero p {
  max-width: 58rem;
  margin: 0.7rem 0 0;
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 500;
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.58rem;
  margin-top: 1rem;
}

.button.primary {
  border-color: transparent;
  background: var(--brand);
  color: #083127;
  box-shadow: 0 10px 22px rgba(93, 187, 154, 0.24);
}

.button.primary:hover {
  background: var(--accent);
  transform: translateY(-1px);
  box-shadow: 0 14px 30px rgba(93, 187, 154, 0.3);
}

.button.ghost {
  background: var(--bg-card);
}

.status-board {
  display: grid;
  gap: 0.65rem;
}

.status-board div,
.steps article,
.cards article,
.tool-list article,
.info-panel,
.callout,
.timeline div,
.faq-list details {
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  background: var(--bg-card);
  box-shadow: var(--shadow-sm);
}

.status-board div {
  padding: 0.78rem 0.82rem;
}

.status-board span {
  display: block;
  color: var(--text-muted);
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  line-height: 1.2;
  text-transform: uppercase;
}

.status-board strong {
  display: block;
  margin-top: 0.24rem;
  color: var(--text-primary);
  font-size: 0.86rem;
  font-weight: 800;
  line-height: 1.25;
}

.doc-section {
  padding: 1.1rem;
}

.section-heading {
  display: grid;
  gap: 0.22rem;
  margin-bottom: 0.9rem;
}

.section-heading h2 {
  margin: 0;
  color: var(--text-primary);
  font-size: 1.08rem;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: 0;
}

.section-heading p {
  max-width: 56rem;
  margin: 0;
  color: var(--text-muted);
  font-size: 0.8rem;
  font-weight: 500;
  line-height: 1.5;
}

.steps,
.cards,
.tool-list,
.timeline {
  display: grid;
  gap: 0.75rem;
}

.steps {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.cards {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.steps article,
.cards article,
.tool-list article,
.timeline div {
  padding: 0.9rem;
}

.steps span {
  display: inline-grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  border-radius: var(--r-pill);
  background: var(--brand-soft);
  color: var(--brand-strong);
  font-size: 0.72rem;
  font-weight: 800;
}

h3 {
  margin: 0.7rem 0 0.28rem;
  color: var(--text-primary);
  font-size: 0.88rem;
  font-weight: 800;
  line-height: 1.25;
}

p,
li,
td {
  color: var(--text-muted);
  font-size: 0.82rem;
  line-height: 1.55;
}

ul {
  padding-left: 1.15rem;
}

li + li {
  margin-top: 0.32rem;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 0.94fr) minmax(18rem, 1.06fr);
  gap: 0.8rem;
}

.split .section-heading {
  grid-column: 1 / -1;
}

.accent {
  border-color: rgba(138, 103, 0, 0.2);
  background:
    linear-gradient(135deg, rgba(255, 219, 19, 0.1), rgba(52, 211, 153, 0.06)),
    var(--bg-panel);
}

.info-panel,
.callout {
  padding: 0.9rem;
}

.info-panel ul,
.callout p {
  margin-bottom: 0;
}

.callout {
  border-left: 3px solid var(--brand);
  background: var(--bg-card-2);
}

.callout strong {
  color: var(--text-primary);
  font-size: 0.82rem;
  font-weight: 800;
}

.accent .callout {
  border-left-color: #f6c343;
}

.tool-list article {
  display: grid;
  grid-template-columns: 9.5rem 1fr;
  gap: 0.75rem;
  align-items: baseline;
}

.tool-list strong {
  color: var(--text-primary);
  font-size: 0.82rem;
  font-weight: 800;
}

.tool-list span,
.timeline span {
  color: var(--text-muted);
  font-size: 0.78rem;
  line-height: 1.5;
}

.timeline {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.timeline strong {
  display: block;
  margin-bottom: 0.24rem;
  color: var(--text-primary);
  font-size: 0.84rem;
  font-weight: 800;
}

.screenshot-feature {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
  margin-bottom: 0.85rem;
}

.screenshot-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
}

.screenshot-feature figure,
.screenshot-grid figure {
  min-width: 0;
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  background: var(--bg-card);
  box-shadow: var(--shadow-sm);
}

.screenshot-feature img,
.screenshot-grid img {
  display: block;
  width: 100%;
  height: auto;
  padding: 0.65rem;
  background:
    linear-gradient(180deg, rgba(62, 207, 142, 0.04), transparent),
    var(--bg-card-2);
  cursor: zoom-in;
}

.screenshot-feature img {
  aspect-ratio: 16 / 9;
  object-fit: contain;
  object-position: center;
}

.screenshot-grid img {
  aspect-ratio: 16 / 10;
  object-fit: contain;
  object-position: center;
}

.screenshot-feature figcaption,
.screenshot-grid figcaption {
  border-top: 1px solid var(--border);
  color: var(--text-secondary);
  padding: 0.55rem 0.65rem;
  font-size: 0.74rem;
  font-weight: 700;
  line-height: 1.3;
}

body.modal-open {
  overflow: hidden;
}

.screenshot-modal[hidden] {
  display: none;
}

.screenshot-modal {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: grid;
  place-items: center;
  padding: 1.25rem;
}

.screenshot-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 17, 21, 0.74);
  backdrop-filter: blur(8px);
}

.screenshot-modal-panel {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  width: min(1180px, calc(100vw - 2rem));
  height: min(760px, calc(100vh - 2rem));
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--r-lg);
  background: var(--bg-panel);
  box-shadow: 0 26px 90px rgba(0, 0, 0, 0.34);
}

.screenshot-modal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  border-bottom: 1px solid var(--border);
  padding: 0.85rem 1rem;
  background: var(--bg-glass);
}

.screenshot-modal-header h2,
.screenshot-modal-header p {
  margin: 0;
}

.screenshot-modal-header h2 {
  color: var(--text-primary);
  font-size: 0.98rem;
  font-weight: 800;
}

.screenshot-modal-header p {
  margin-top: 0.16rem;
  color: var(--text-muted);
  font-size: 0.74rem;
  font-weight: 700;
}

.screenshot-modal-close {
  display: inline-grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  background: var(--bg-card);
  color: var(--text-secondary);
  font-size: 0.75rem;
  font-weight: 900;
}

.screenshot-modal-body {
  position: relative;
  min-height: 0;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.75rem;
  padding: 0.9rem;
  background: var(--bg-card-2);
}

.screenshot-modal-body figure {
  min-width: 0;
  max-height: 100%;
  margin: 0;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  background: var(--bg-card);
}

.screenshot-modal-body img {
  width: 100%;
  height: 100%;
  max-height: calc(100vh - 13rem);
  object-fit: contain;
  background:
    linear-gradient(180deg, rgba(62, 207, 142, 0.04), transparent),
    var(--bg-card-2);
}

.screenshot-modal-body figcaption {
  border-top: 1px solid var(--border);
  color: var(--text-secondary);
  padding: 0.6rem 0.75rem;
  font-size: 0.78rem;
  font-weight: 800;
}

.screenshot-modal-nav {
  display: inline-grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  border: 1px solid var(--border);
  border-radius: var(--r-pill);
  background: var(--bg-panel);
  color: var(--text-primary);
  font-size: 1.5rem;
  font-weight: 800;
}

.screenshot-modal-thumbs {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 5.25rem;
  gap: 0.45rem;
  overflow-x: auto;
  border-top: 1px solid var(--border);
  padding: 0.65rem;
  background: var(--bg-panel);
}

.screenshot-modal-thumbs button {
  overflow: hidden;
  border: 2px solid transparent;
  border-radius: var(--r-sm);
  background: var(--bg-card-2);
  padding: 0;
  opacity: 0.72;
}

.screenshot-modal-thumbs button.active {
  border-color: var(--brand);
  opacity: 1;
}

.screenshot-modal-thumbs img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: top left;
}

.data-table {
  width: 100%;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  border-collapse: separate;
  border-spacing: 0;
  background: var(--bg-card);
  box-shadow: var(--shadow-sm);
}

.data-table th,
.data-table td {
  padding: 0.68rem 0.74rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

.data-table th {
  color: var(--text-muted);
  background: var(--bg-card-2);
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.data-table td:first-child {
  color: var(--text-primary);
  font-weight: 700;
}

.data-table tr:last-child td {
  border-bottom: 0;
}

.faq-list {
  display: grid;
  gap: 0.65rem;
}

.faq-list details {
  padding: 0.78rem 0.9rem;
}

.faq-list summary {
  cursor: pointer;
  color: var(--text-primary);
  font-size: 0.86rem;
  font-weight: 800;
  line-height: 1.3;
}

.faq-list p {
  margin: 0.5rem 0 0;
}

mark.search-hit {
  border-radius: 4px;
  background: var(--warning-soft);
  color: inherit;
  padding: 0.05rem 0.16rem;
}

.eva-docs-assistant {
  position: fixed;
  right: 1.15rem;
  bottom: 1.15rem;
  z-index: 80;
  color: var(--text-primary);
  font-family: var(--font-sans);
}

.eva-docs-assistant-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 3rem;
  border: 1px solid rgba(93, 187, 154, 0.65);
  border-radius: var(--r-pill);
  background: linear-gradient(135deg, var(--brand), #6ee7c8);
  color: #08231a;
  box-shadow: 0 18px 44px rgba(16, 55, 45, 0.3);
  cursor: pointer;
  padding: 0.55rem 0.85rem;
  font-size: 0.82rem;
  font-weight: 800;
}

.eva-docs-assistant-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 22px 54px rgba(16, 55, 45, 0.36);
}

.eva-docs-assistant-btn svg {
  width: 1.25rem;
  height: 1.25rem;
}

.eva-docs-assistant-panel {
  position: absolute;
  right: 0;
  bottom: 3.85rem;
  display: grid;
  grid-template-rows: auto minmax(12rem, 1fr) auto auto;
  width: min(24rem, calc(100vw - 2rem));
  height: min(34rem, calc(100vh - 6rem));
  overflow: hidden;
  border: 1px solid rgba(93, 187, 154, 0.45);
  border-radius: 0.9rem;
  background: var(--bg-panel);
  box-shadow: 0 28px 80px rgba(6, 22, 18, 0.28);
}

.eva-docs-assistant-panel[hidden] {
  display: none;
}

.eva-docs-assistant-header,
.eva-docs-assistant-quick,
.eva-docs-assistant-input {
  padding: 0.75rem;
}

.eva-docs-assistant-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  border-bottom: 1px solid var(--border-soft);
  background: linear-gradient(180deg, var(--bg-panel), var(--bg-panel-2));
}

.eva-docs-assistant-header strong,
.eva-docs-assistant-header small {
  display: block;
}

.eva-docs-assistant-header strong {
  color: var(--brand-strong);
  font-size: 0.95rem;
  font-weight: 800;
}

.eva-docs-assistant-header small {
  color: var(--text-muted);
  font-size: 0.72rem;
}

.eva-docs-assistant-close {
  display: inline-grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  background: var(--bg-card);
  color: var(--text-secondary);
  cursor: pointer;
  font-size: 0.75rem;
  font-weight: 900;
}

.eva-docs-assistant-body {
  overflow: auto;
  padding: 0.85rem 0.9rem;
  background: var(--bg-panel-2);
}

.eva-docs-assistant-msg {
  width: fit-content;
  max-width: 88%;
  margin-bottom: 0.55rem;
  border: 1px solid var(--border-soft);
  border-radius: 0.8rem;
  padding: 0.58rem 0.68rem;
  background: var(--bg-card);
  color: var(--text-secondary);
  font-size: 0.8rem;
  line-height: 1.5;
}

.eva-docs-assistant-msg.user {
  margin-left: auto;
  border-color: rgba(93, 187, 154, 0.3);
  background: var(--brand);
  color: #083127;
  font-weight: 650;
}

.eva-docs-assistant-quick {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  border-top: 1px solid var(--border);
}

.eva-docs-assistant-quick button {
  border: 1px solid var(--border);
  border-radius: var(--r-pill);
  background: var(--bg-card-2);
  color: var(--text-secondary);
  cursor: pointer;
  padding: 0.32rem 0.62rem;
  font-size: 0.7rem;
  font-weight: 700;
}

.eva-docs-assistant-quick button:hover {
  border-color: rgba(93, 187, 154, 0.35);
  background: var(--brand-soft-2);
  color: var(--text-primary);
}

.eva-docs-assistant-input {
  display: flex;
  gap: 0.45rem;
  border-top: 1px solid var(--border);
}

.eva-docs-assistant-input input {
  min-width: 0;
  flex: 1;
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  background: var(--bg-input);
  color: var(--text-primary);
  padding: 0.5rem 0.65rem;
  font-size: 0.8rem;
  outline: none;
}

.eva-docs-assistant-send {
  border: 0;
  border-radius: var(--r-md);
  background: var(--brand);
  color: #083127;
  cursor: pointer;
  padding: 0.5rem 0.75rem;
  font-size: 0.78rem;
  font-weight: 800;
}

@media (max-width: 1180px) {
  .content {
    width: calc(100vw - var(--sidebar-width));
  }

  .hero,
  .timeline {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .cards,
  .screenshot-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 980px) {
  .mobile-toggle {
    position: fixed;
    top: 0.8rem;
    left: 0.8rem;
    z-index: 70;
    display: inline-grid;
    gap: 0.25rem;
    width: 2.65rem;
    height: 2.65rem;
    border: 1px solid var(--border);
    border-radius: var(--r-md);
    background: var(--bg-panel);
    box-shadow: var(--shadow-md);
    place-content: center;
  }

  .mobile-toggle span {
    display: block;
    width: 1.1rem;
    height: 2px;
    background: var(--text-primary);
  }

  .sidebar {
    transform: translateX(-100%);
    transition: transform 180ms var(--ease);
  }

  .sidebar.open {
    transform: translateX(0);
  }

  .content {
    width: 100%;
    margin-left: 0;
    padding-top: 4.2rem;
  }

  .hero,
  .split,
  .steps,
  .cards,
  .timeline,
  .screenshot-feature,
  .screenshot-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 620px) {
  .content {
    padding-inline: 0.85rem;
  }

  .hero,
  .doc-section {
    padding: 0.9rem;
  }

  .hero h1 {
    font-size: 1.62rem;
  }

  .tool-list article {
    grid-template-columns: 1fr;
    gap: 0.22rem;
  }

  .data-table {
    display: block;
    overflow-x: auto;
  }

  .eva-docs-assistant {
    right: 0.75rem;
    bottom: 0.75rem;
  }

  .eva-docs-assistant-btn span {
    display: none;
  }

  .screenshot-modal {
    padding: 0.65rem;
  }

  .screenshot-modal-panel {
    width: calc(100vw - 1.3rem);
    height: calc(100vh - 1.3rem);
  }

  .screenshot-modal-body {
    grid-template-columns: 1fr;
    gap: 0.55rem;
  }

  .screenshot-modal-nav {
    position: absolute;
    top: 50%;
    z-index: 2;
    transform: translateY(-50%);
  }

  .screenshot-modal-nav.is-prev {
    left: 0.8rem;
  }

  .screenshot-modal-nav.is-next {
    right: 0.8rem;
  }
}
