:root {
  color-scheme: light;
  --site-bg: #f7f8fc;
  --surface: #ffffff;
  --surface-muted: #f0f3fa;
  --ink: #182033;
  --muted: #5f687d;
  --line: #d8ddec;
  --line-strong: #26324d;
  --accent: #5b5cf0;
  --accent-strong: #3c3ed2;
  --accent-soft: #eeefff;
  --cyan: #0fb8c9;
  --cyan-soft: #e0f9fb;
  --violet: #8b5cf6;
  --coral: #f16464;
  --gold: #f3a712;
  --green: #16a579;
  --hero-start: #f9fbff;
  --hero-end: #eef1ff;
  --code-bg: #151827;
  --code-ink: #eef2ff;
  --shadow: 0 22px 60px rgb(36 42 78 / 13%);
  --card-radius: .72rem;
  --card-shadow: 0 12px 34px rgb(36 42 78 / 10%);
  --card-shadow-hover: 0 20px 46px color-mix(in srgb, var(--accent) 19%, transparent);
  --header-offset: 100px;
  --section-space: clamp(1.75rem, 3vw, 2.5rem);
  --section-space-compact: clamp(1.25rem, 2vw, 1.75rem);
}

[data-theme="dark"] {
  color-scheme: dark;
  --site-bg: #111318;
  --surface: #181b29;
  --surface-muted: #23283a;
  --ink: #f4f6fa;
  --muted: #afb6c2;
  --line: #3c424e;
  --line-strong: #f4f6fa;
  --accent: #9294ff;
  --accent-strong: #b7b8ff;
  --accent-soft: #2a2c52;
  --cyan: #40d9e6;
  --cyan-soft: #16363d;
  --violet: #aa87ff;
  --coral: #ff8585;
  --gold: #ffc658;
  --green: #46d1a7;
  --hero-start: #1b2034;
  --hero-end: #11131c;
  --code-bg: #0c0e13;
  --code-ink: #f3f6ff;
  --shadow: 0 18px 50px rgb(0 0 0 / 32%);
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-offset);
  max-width: 100%;
  overflow-x: clip;
}

body {
  min-height: 100vh;
  margin: 0;
  padding: var(--header-offset) 0 0;
  overflow-x: hidden;
  background: var(--site-bg);
  color: var(--ink);
  font-family: "Inter", "Segoe UI", system-ui, sans-serif;
  font-size: 15px;
  transition: background-color 180ms ease, color 180ms ease;
}

img,
picture,
video,
canvas {
  display: block;
  max-inline-size: 100%;
  max-width: 100%;
  height: auto;
}

figure,
picture {
  max-inline-size: 100%;
  max-width: 100%;
}

picture > img,
.banner-visual img,
.docs-tool-visual img,
.example-tool-visual img,
.content-panel img,
.demo-panel img,
.editra-editor img {
  max-inline-size: 100%;
  max-width: 100%;
  height: auto;
  object-fit: contain;
}

figure,
picture,
.container,
.row,
.row > *,
[class*="-visual"],
[class*="-image"] {
  min-width: 0;
}

main {
  display: flow-root;
  min-width: 0;
}

h1,
h2,
h3,
h4,
h5,
h6,
.display-title,
.section-title {
  font-family: "Inter", "Segoe UI", system-ui, sans-serif;
}

::selection {
  background: #2b78d4;
  color: #fff;
}

* {
  scrollbar-width: thin;
  scrollbar-color: color-mix(in srgb, var(--accent) 50%, var(--line-strong)) var(--surface-muted);
}

*::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

*::-webkit-scrollbar-track {
  border-radius: 999px;
  background: var(--surface-muted);
}

*::-webkit-scrollbar-thumb {
  border: 2px solid var(--surface-muted);
  border-radius: 999px;
  background: linear-gradient(180deg, var(--accent), var(--cyan));
}

*::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, var(--accent-strong), var(--violet));
}

a {
  color: var(--accent-strong);
}

[data-site-header] {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 1040;
  display: block;
  width: 100%;
  background: var(--surface);
  box-shadow: 0 8px 24px rgb(25 31 53 / 10%);
}

.license-banner {
  position: relative;
  z-index: 1040;
  width: 100%;
  height: 28px;
  min-height: 28px;
  display: grid;
  place-items: center;
  padding: .28rem .75rem;
  background: linear-gradient(90deg, #3435b8, #6840d8 48%, #0b9fac);
  color: #fff;
  font-size: .67rem;
  font-weight: 600;
  letter-spacing: .01em;
  text-align: center;
  text-decoration: none;
  transition: filter 180ms ease, letter-spacing 180ms ease;
}

.license-banner strong {
  margin-left: .18rem;
  color: #fff8c9;
  font-weight: 800;
}

.license-banner-full {
  white-space: nowrap;
}

.license-banner-short {
  display: none;
  white-space: nowrap;
}

.license-banner:hover,
.license-banner:focus-visible {
  color: #fff;
  filter: saturate(1.18) brightness(1.08);
  letter-spacing: .025em;
}

.site-navbar {
  position: relative;
  top: auto;
  z-index: 1035;
  width: 100%;
  height: 72px;
  min-height: 72px;
  padding-block: .55rem;
  border-bottom: 1px solid color-mix(in srgb, var(--accent) 22%, var(--line));
  background: color-mix(in srgb, var(--surface) 94%, transparent);
  backdrop-filter: blur(14px);
}

.site-navbar > .container {
  height: 54px;
  min-height: 54px;
  align-items: center;
}

.navbar-brand {
  height: 52px;
  min-height: 52px;
  margin-block: 0;
  border: 1px solid color-mix(in srgb, var(--accent) 32%, var(--line));
  border-radius: .72rem;
  padding: .4rem .68rem;
  background: linear-gradient(135deg, color-mix(in srgb, var(--accent-soft) 86%, var(--surface)), color-mix(in srgb, var(--cyan-soft) 68%, var(--surface)));
  color: var(--accent-strong) !important;
  font-weight: 800;
  letter-spacing: -.035em;
  white-space: nowrap;
  box-shadow: 0 8px 24px rgb(71 63 190 / 10%);
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.navbar-brand:hover,
.navbar-brand:focus-visible {
  border-color: var(--accent);
  box-shadow: 0 12px 28px rgb(71 63 190 / 18%);
  transform: translateY(-1px);
}

.brand-mark {
  position: relative;
  width: 39px;
  height: 39px;
  flex: 0 0 39px;
  display: inline-grid;
  place-items: center;
  overflow: hidden;
  border: 0;
  border-radius: .7rem;
  background: linear-gradient(145deg, #4f46e5 10%, #8b5cf6 55%, #0fb8c9);
  box-shadow: 0 8px 20px rgb(91 92 240 / 28%);
  color: #fff;
  font-size: 1.25rem;
  font-weight: 900;
  letter-spacing: -.08em;
  transform: rotate(-3deg);
}

.brand-mark::after {
  content: "";
  position: absolute;
  width: 1.15rem;
  height: .22rem;
  right: -.18rem;
  bottom: .42rem;
  border-radius: 999px;
  background: #ffd166;
  transform: rotate(-38deg);
}

.brand-copy {
  display: grid;
  font-size: 15px;
  line-height: 1.05;
}

.brand-copy small {
  color: var(--accent-strong);
  font-size: .57rem;
  font-weight: 650;
  letter-spacing: .09em;
  text-transform: uppercase;
  white-space: nowrap;
}

.site-navbar .nav-link,
.site-navbar .dropdown-item {
  color: color-mix(in srgb, var(--accent-strong) 82%, var(--ink));
  font-size: .82rem;
  font-weight: 600;
  white-space: nowrap;
}

.site-navbar .nav-link {
  display: inline-flex;
  align-items: center;
  gap: .38rem;
  height: 38px;
  min-height: 38px;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: .52rem .68rem !important;
  transition: color 180ms ease, background-color 180ms ease, border-color 180ms ease,
    box-shadow 180ms ease, transform 180ms ease;
}

.site-navbar .nav-link i {
  color: var(--accent);
  font-size: .78rem;
}

.site-navbar .nav-link:hover,
.site-navbar .nav-link:focus,
.site-navbar .dropdown-item:hover,
.site-navbar .dropdown-item:focus {
  color: var(--accent-strong);
}

.site-navbar .nav-link:hover,
.site-navbar .nav-link:focus-visible {
  border-color: color-mix(in srgb, var(--accent) 26%, transparent);
  background: color-mix(in srgb, var(--accent-soft) 72%, transparent);
  box-shadow: 0 8px 24px rgb(71 63 190 / 11%);
  transform: translateY(-1px);
}

.site-navbar .nav-link.active {
  border-color: color-mix(in srgb, var(--accent) 28%, transparent);
  background: linear-gradient(
    135deg,
    color-mix(in srgb, var(--accent-soft) 94%, transparent),
    color-mix(in srgb, var(--cyan-soft) 72%, transparent)
  );
  color: var(--accent-strong);
}

.dropdown-menu {
  width: max-content;
  min-width: max-content;
  max-height: min(70vh, 28rem);
  overflow-y: auto;
  border: 1px solid color-mix(in srgb, var(--accent) 16%, var(--line));
  border-radius: var(--card-radius);
  padding: .45rem;
  background: color-mix(in srgb, var(--surface) 97%, transparent);
  box-shadow: 0 18px 44px rgb(25 31 53 / 16%);
  backdrop-filter: blur(18px) saturate(135%);
  scrollbar-width: thin;
}

.site-navbar .dropdown-item {
  min-height: 2.45rem;
  display: flex;
  align-items: center;
  border-radius: .42rem;
  padding: .55rem .75rem;
  line-height: 1.2;
}

@media (min-width: 1200px) {
  .site-navbar .navbar-collapse,
  .site-navbar .navbar-nav,
  .site-navbar .nav-item {
    height: 54px;
  }

  .site-navbar .navbar-nav {
    flex-wrap: nowrap;
  }

  .site-navbar .nav-item {
    display: flex;
    align-items: center;
  }

  .site-navbar .dropdown:hover > .dropdown-menu,
  .site-navbar .dropdown:focus-within > .dropdown-menu {
    display: block;
    margin-top: 0;
    animation: menu-enter 180ms cubic-bezier(.2, .75, .25, 1) both;
  }
}

@keyframes menu-enter {
  from {
    opacity: 0;
    transform: translateY(.4rem) scale(.985);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.theme-toggle {
  width: 37px;
  height: 37px;
  min-width: 37px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent-strong);
  transition: background 180ms ease, color 180ms ease, transform 180ms ease;
}

.theme-toggle:hover,
.theme-toggle:focus-visible {
  background: var(--accent);
  color: #fff;
  transform: translateY(-1px) rotate(8deg);
}

.navbar-toggler {
  border-color: color-mix(in srgb, var(--accent) 42%, var(--line));
  background: color-mix(in srgb, var(--accent-soft) 72%, var(--surface));
}

.navbar-toggler:focus {
  box-shadow: 0 0 0 .2rem color-mix(in srgb, var(--accent) 24%, transparent);
}

.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(2.75rem, 6vw, 4.75rem) 0;
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(circle at 88% 6%, color-mix(in srgb, var(--cyan) 24%, transparent), transparent 28rem),
    radial-gradient(circle at 8% 90%, color-mix(in srgb, var(--violet) 16%, transparent), transparent 25rem),
    linear-gradient(145deg, var(--hero-start), var(--hero-end));
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: linear-gradient(rgb(100 110 130 / 7%) 1px, transparent 1px),
    linear-gradient(90deg, rgb(100 110 130 / 7%) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(to bottom, #000, transparent);
}

.hero::before {
  content: "";
  position: absolute;
  width: 34rem;
  height: 34rem;
  top: -18rem;
  right: -8rem;
  border-radius: 46% 54% 62% 38%;
  background: conic-gradient(
    from 35deg,
    color-mix(in srgb, var(--cyan) 24%, transparent),
    color-mix(in srgb, var(--violet) 22%, transparent),
    color-mix(in srgb, var(--gold) 13%, transparent),
    color-mix(in srgb, var(--cyan) 24%, transparent)
  );
  filter: blur(28px);
  opacity: .72;
  animation: cinematic-drift 18s ease-in-out infinite alternate;
}

.hero .container,
.section .container {
  position: relative;
  z-index: 1;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  margin-bottom: 1.15rem;
  color: var(--accent-strong);
  font-size: .76rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.display-title {
  max-width: 17ch;
  margin: 0;
  font-family: "Inter", "Segoe UI", sans-serif;
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -.045em;
  line-height: 1.12;
}

.hero-copy {
  max-width: 42rem;
  margin: 1.5rem 0 2rem;
  color: var(--muted);
  font-size: clamp(.94rem, 1.35vw, 1.04rem);
  line-height: 1.65;
}

.hero-quote {
  position: relative;
  max-width: 43rem;
  border-left: 3px solid transparent;
  border-image: linear-gradient(var(--accent), var(--cyan)) 1;
  padding-left: 1.15rem;
  color: color-mix(in srgb, var(--ink) 80%, var(--muted));
  font-family: "Inter", "Segoe UI", sans-serif;
  font-size: clamp(.94rem, 1.25vw, 1.04rem);
  font-style: normal;
  line-height: 1.65;
}

.btn-editra,
.btn-quiet,
.btn-light {
  min-height: 2.75rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .42rem;
  border-radius: .5rem;
  padding: .68rem 1.1rem;
  font-size: .84rem;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease, color 180ms ease, box-shadow 180ms ease;
}

.btn-editra {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border: 1px solid transparent;
  background: linear-gradient(135deg, var(--accent), var(--violet));
  color: #fff;
}

.btn-editra::after {
  content: "";
  position: absolute;
  z-index: -1;
  inset: -60% auto -60% -35%;
  width: 28%;
  background: linear-gradient(90deg, transparent, rgb(255 255 255 / 44%), transparent);
  transform: skewX(-20deg);
  transition: left 520ms cubic-bezier(.2, .75, .25, 1);
}

.btn-editra:hover,
.btn-editra:focus {
  border-color: var(--accent);
  background: var(--accent);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 12px 30px rgb(86 73 220 / 24%);
}

.btn-editra:hover::after,
.btn-editra:focus-visible::after {
  left: 120%;
}

.btn-quiet {
  border: 1px solid color-mix(in srgb, var(--accent) 38%, var(--line));
  background: color-mix(in srgb, var(--accent-soft) 68%, var(--surface));
  color: var(--accent-strong);
}

.btn-quiet:hover,
.btn-quiet:focus {
  transform: translateY(-1px);
  border-color: var(--accent);
  background: color-mix(in srgb, var(--accent) 16%, var(--surface));
  color: var(--accent-strong);
  box-shadow: 0 10px 24px rgb(86 73 220 / 16%);
}

.btn-light {
  border: 1px solid #d59b0b;
  background: linear-gradient(135deg, #ffe083, #f4bd36);
  color: #4c3100;
}

.btn-light:hover,
.btn-light:focus-visible {
  border-color: #b77900;
  background: linear-gradient(135deg, #f7c84f, #e7a918);
  color: #3d2800;
  transform: translateY(-1px);
  box-shadow: 0 12px 26px rgb(183 121 0 / 24%);
}

.section {
  padding: var(--section-space) 0;
}

main > .section + .section {
  padding-top: 0;
}

.section-stack {
  margin-block: var(--section-space-compact);
}

.section-stack-top {
  margin-top: var(--section-space-compact);
}

.section-stack-bottom {
  margin-bottom: var(--section-space-compact);
}

.feature-detail-row {
  padding-block: var(--section-space-compact);
}

.section-title {
  max-width: 22ch;
  margin-bottom: .8rem;
  font-size: clamp(1.42rem, 2.2vw, 2.05rem);
  font-weight: 700;
  letter-spacing: -.035em;
  line-height: 1.12;
}

.section-lead {
  max-width: 46rem;
  color: var(--muted);
  font-size: .94rem;
  line-height: 1.7;
}

.feature-card,
.quick-card,
.demo-panel,
.content-panel,
.download-option,
.comparison-wrap,
.feature-band {
  position: relative;
  border: 1px solid color-mix(in srgb, var(--accent) 14%, var(--line));
  border-radius: var(--card-radius);
  box-shadow:
    inset 0 3px 0 color-mix(in srgb, var(--cyan) 32%, #fff),
    var(--card-shadow);
}

.feature-card,
.quick-card {
  padding: 1.45rem;
}

.feature-card,
.quick-card,
.demo-panel,
.content-panel,
.download-option,
.comparison-wrap,
.feature-band {
  transition:
    transform 240ms cubic-bezier(.2, .75, .25, 1),
    border-color 240ms ease,
    box-shadow 240ms ease,
    background-color 240ms ease;
}

.feature-card:hover,
.quick-card:hover,
.download-option:hover,
.content-panel:hover,
.demo-panel:hover,
.feature-band:hover {
  transform: translateY(-3px) scale(1.01);
  border-color: var(--accent);
  box-shadow:
    inset 0 3px 0 color-mix(in srgb, var(--cyan) 52%, #fff),
    var(--card-shadow-hover);
}

.feature-icon {
  width: 2.3rem;
  height: 2.3rem;
  display: grid;
  place-items: center;
  margin-bottom: 1rem;
  border: 0;
  border-radius: .65rem;
  background: var(--accent-soft);
  color: var(--accent-strong);
  font-size: 1rem;
}

.feature-card h3,
.quick-card h3 {
  font-size: 1.05rem;
  font-weight: 750;
}

.feature-card p,
.quick-card p {
  color: var(--muted);
  line-height: 1.6;
}

/* Keep cards in the same responsive grid row visually aligned. */
.row > [class*="col-"] > :is(
  .feature-card,
  .quick-card,
  .audience-card,
  .use-case-card,
  .home-info-card,
  .home-theme-choice,
  .download-option,
  .host-demo-card,
  .home-capability-card
) {
  width: 100%;
  height: 100%;
}

.content-panel,
.demo-panel {
  padding: clamp(1.15rem, 3vw, 2rem);
}

.demo-panel {
  display: flow-root;
  height: auto;
  min-height: 0;
  max-width: 100%;
  margin-block: .75rem 0;
  overflow: clip;
  isolation: isolate;
  contain: layout;
  transform-origin: center top;
}

.demo-panel.mb-4 {
  margin-bottom: var(--section-space-compact) !important;
}

.docs-content > .demo-panel,
.docs-content > .demo-experience {
  width: 100%;
  margin-bottom: var(--section-space);
}

.demo-panel > .editra-card,
.demo-panel > .editra-editor,
.demo-panel > .editra-textarea-surface {
  max-width: 100%;
}

.editra-demo-host {
  max-height: none;
  overflow: visible;
}

.editra-demo-host.editra-editor,
.demo-panel .editra-editor,
.contact-form .editra-editor {
  max-width: var(--editra-page-width, 816px);
  overflow: visible !important;
}

.contact-form .editra-editor,
.demo-panel .editra-theme-classic .editra-editor {
  width: 100% !important;
  min-height: 0 !important;
  height: auto !important;
}

/* Classic examples grow with their document instead of reserving an empty canvas. */
.editra-theme-classic .editra-page-workspace,
.editra-theme-classic .editra-editor,
.editra-demo-host.editra-theme-classic {
  min-height: 0 !important;
  height: auto !important;
}

/* Word documents keep a paper-white page even when the surrounding editor chrome is dark. */
.editra-theme-dark:not(.editra-theme-classic) .editra-editor {
  border-color: #aeb4be !important;
  background: #fff !important;
  color: #1f2328 !important;
  caret-color: #2b78d4 !important;
}

.demo-panel .editra-theme-classic .editra-page-workspace,
.contact-form .editra-page-workspace {
  min-height: 0 !important;
  height: auto !important;
  overflow: visible !important;
}

.demo-panel .editra-theme-classic .editra-page-guides,
.contact-form .editra-page-guides {
  display: none !important;
}

/* Word examples retain real paper dimensions, visible Page 1/Page 2 tabs,
   and a workspace that responds to page-size and orientation commands. */
.demo-panel .editra-theme-word .editra-page-workspace {
  height: auto !important;
  min-height: calc(var(--editra-page-height, 1056px) + 56px) !important;
  overflow: auto !important;
  background: #e9ebef;
}

.demo-panel .editra-theme-word .editra-editor {
  width: var(--editra-page-width, 816px) !important;
  max-width: none;
  height: auto !important;
  margin-inline: auto;
  background: #fff !important;
}

.demo-panel .editra-theme-word .editra-page-guides {
  display: block !important;
}

.editra-theme-word .editra-pagination-enabled .editra-page-break {
  visibility: hidden;
  height: 0 !important;
  margin: 0 !important;
  border: 0 !important;
  background: none !important;
}

.editra-theme-word .editra-pagination-enabled .editra-page-break::after {
  display: none !important;
}

.code-shell {
  position: relative;
  overflow: hidden;
  border: 1px solid #343a46;
  border-radius: .45rem;
  background: var(--code-bg);
}

.import-demo-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .65rem;
  margin-bottom: 1rem;
  border: 1px solid color-mix(in srgb, var(--accent) 28%, var(--line));
  border-radius: var(--card-radius);
  padding: .85rem;
  background: linear-gradient(135deg, var(--surface), var(--accent-soft));
}

.import-demo-actions p {
  flex-basis: 100%;
  margin: 0;
  color: var(--muted);
  font-size: .8rem;
}

.code-shell pre {
  max-height: 31rem;
  margin: 0;
  overflow: auto;
  padding: 1.3rem;
  color: var(--code-ink);
  font: .84rem/1.65 "Cascadia Code", "Courier New", monospace;
  white-space: pre;
}

.copy-code {
  position: absolute;
  top: .55rem;
  right: .55rem;
  z-index: 2;
  border: 1px solid #566070;
  border-radius: .3rem;
  padding: .3rem .55rem;
  background: #252a34;
  color: #fff;
  font-size: .75rem;
}

.editor-loading {
  min-height: 16rem;
  display: grid;
  place-items: center;
  border: 1px solid var(--line-strong);
  background: var(--surface);
  color: var(--muted);
}

.editra-demo-host {
  min-height: 0;
}

.demo-status {
  display: none;
  margin-bottom: 1rem;
  border: 1px solid #e3a008;
  padding: .75rem 1rem;
  background: #fff5d8;
  color: #5f4300;
  font-size: .88rem;
}

.demo-status.is-visible {
  display: block;
}

[data-theme="dark"] .demo-status {
  border-color: #b98722;
  background: #392c12;
  color: #ffe3a6;
}

.docs-layout {
  display: grid;
  grid-template-columns: minmax(13rem, 17rem) minmax(0, 1fr);
  gap: 2rem;
  padding-block: var(--section-space-compact) var(--section-space);
}

.docs-sidebar {
  position: sticky;
  top: calc(var(--header-offset) + 1rem);
  align-self: start;
  max-height: calc(100vh - var(--header-offset) - 2rem);
  overflow-y: auto;
  border-right: 1px solid var(--line);
  padding-right: 1.2rem;
  scrollbar-gutter: stable;
}

.docs-sidebar a {
  display: flex;
  align-items: center;
  gap: .58rem;
  margin: .15rem 0;
  border-left: 2px solid transparent;
  padding: .47rem .72rem;
  color: var(--muted);
  font-size: .88rem;
  font-weight: 600;
  text-decoration: none;
}

.docs-sidebar a i {
  width: 1.1rem;
  flex: 0 0 1.1rem;
  color: var(--accent);
  font-size: .92rem;
  text-align: center;
}

.docs-sidebar a:hover,
.docs-sidebar a[aria-current="page"] {
  border-left-color: var(--accent);
  background: var(--accent-soft);
  color: var(--ink);
}

.docs-content {
  min-width: 0;
  max-width: 62rem;
}

.docs-content .feature-card,
.docs-content .content-panel {
  height: auto !important;
}

.premium-card-grid > [class*="col-"] {
  display: grid;
}

.premium-card-grid :is(.feature-card, .quick-card) {
  align-self: stretch;
}

.initialization-pattern-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1rem, 2.4vw, 1.5rem);
  margin: 1rem 0 1.5rem;
}

.docs-content .initialization-pattern-card {
  display: flex;
  flex-direction: column;
  width: 100%;
  min-width: 0;
  height: 100% !important;
}

.initialization-pattern-card .code-shell {
  width: 100%;
  margin-top: auto;
}

@media (max-width: 991.98px) {
  .initialization-pattern-grid {
    grid-template-columns: 1fr;
  }
}

.home-card-grid > [class*="col-"] {
  display: flex;
}

.home-card-grid .quick-card {
  display: flex !important;
  flex: 1 1 auto;
  flex-direction: column;
  width: 100%;
  min-height: 100%;
}

.home-card-grid .quick-card > .text-primary {
  margin-top: auto;
  padding-top: .8rem;
}

.docs-content h1 {
  margin-bottom: 1rem;
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 750;
  letter-spacing: -.04em;
}

.docs-content h2 {
  margin-top: var(--section-space);
  padding-top: .75rem;
  border-top: 1px solid var(--line);
  font-size: 1.4rem;
  font-weight: 700;
}

.docs-content h3 {
  margin-top: var(--section-space-compact);
  font-size: 1.15rem;
  font-weight: 750;
}

.docs-content p,
.docs-content li {
  color: var(--muted);
  line-height: 1.72;
}

.docs-content code:not(pre code) {
  border: 1px solid var(--line);
  border-radius: .25rem;
  padding: .08rem .3rem;
  background: var(--surface-muted);
  color: var(--ink);
}

.callout {
  margin: 1.25rem 0;
  border-left: 4px solid var(--accent);
  padding: 1rem 1.2rem;
  background: var(--accent-soft);
}

.page-footer {
  position: relative;
  z-index: 2;
  clear: both;
  margin-top: 0;
  border-top: 1px solid rgb(255 255 255 / 12%);
  padding: 3.5rem 0 1.5rem;
  background:
    radial-gradient(circle at 12% 0%, rgb(91 92 240 / 18%), transparent 24rem),
    radial-gradient(circle at 88% 12%, rgb(15 184 201 / 11%), transparent 22rem),
    #08090d;
  color: #aeb5c3;
  font-size: .88rem;
}

.error-page-main {
  min-height: clamp(34rem, 72vh, 48rem);
  display: grid;
  align-items: center;
  padding: var(--section-space) 0;
  background:
    radial-gradient(circle at 82% 18%, color-mix(in srgb, var(--cyan) 18%, transparent), transparent 23rem),
    radial-gradient(circle at 14% 78%, color-mix(in srgb, var(--violet) 13%, transparent), transparent 22rem),
    linear-gradient(145deg, var(--hero-start), var(--hero-end));
}

.error-page-card {
  position: relative;
  overflow: hidden;
  max-width: 58rem;
  margin-inline: auto;
  border: 1px solid color-mix(in srgb, var(--accent) 20%, var(--line));
  border-radius: var(--card-radius);
  padding: clamp(1.5rem, 5vw, 3.5rem);
  background: color-mix(in srgb, var(--surface) 96%, transparent);
  box-shadow: var(--shadow);
  text-align: center;
}

.error-page-card::before {
  content: "404";
  position: absolute;
  top: -.38em;
  right: -.05em;
  color: color-mix(in srgb, var(--accent) 7%, transparent);
  font-family: "Poppins", "Inter", sans-serif;
  font-size: clamp(8rem, 25vw, 16rem);
  font-weight: 800;
  line-height: 1;
  pointer-events: none;
}

.error-code {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  margin-bottom: 1rem;
  border: 1px solid color-mix(in srgb, var(--accent) 28%, var(--line));
  border-radius: 999px;
  padding: .42rem .78rem;
  background: var(--accent-soft);
  color: var(--accent-strong);
  font-size: .75rem;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.error-page-card .section-title,
.error-page-card .section-lead,
.error-page-actions,
.error-page-links {
  position: relative;
  margin-inline: auto;
}

.error-page-card .section-title {
  max-width: 18ch;
}

.error-page-card .section-lead {
  max-width: 39rem;
}

.error-page-actions,
.error-page-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .75rem;
}

.error-page-actions {
  margin-top: 1.5rem;
}

.error-page-links {
  margin-top: 1.35rem;
  color: var(--muted);
  font-size: .84rem;
}

.error-page-links a {
  color: var(--muted);
  font-weight: 650;
  text-underline-offset: .2em;
}

[data-site-footer] {
  position: relative;
  z-index: 2;
  display: flow-root;
  clear: both;
  isolation: isolate;
}

.page-footer a {
  color: #d9deea;
  font-weight: 600;
  text-decoration: none;
  transition: color 180ms ease, transform 180ms ease;
}

.page-footer a:hover,
.page-footer a:focus-visible {
  color: #ffffff;
  transform: translateX(2px);
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(15rem, 1.7fr) repeat(4, minmax(8rem, 1fr));
  gap: clamp(1.5rem, 4vw, 3rem);
}

.footer-grid h2 {
  margin-bottom: .85rem;
  color: #ffffff;
  font-size: .75rem;
  font-weight: 800;
  letter-spacing: .09em;
  text-transform: uppercase;
}

.footer-grid > div:not(.footer-brand) {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: .65rem;
}

.footer-brand p {
  max-width: 25rem;
  color: #aeb5c3;
  line-height: 1.7;
}

.footer-brand-lockup {
  display: flex;
  align-items: center;
  gap: .75rem;
  margin-bottom: 1rem;
}

.footer-brand-lockup > span:last-child {
  display: grid;
  gap: .16rem;
}

.footer-brand strong {
  color: #ffffff;
}

.brand-tagline {
  color: #aeb5c3;
  font-family: "Inter", "Source Sans 3", sans-serif;
  font-size: .68rem;
  font-weight: 600;
  letter-spacing: .09em;
  text-transform: uppercase;
  animation: tagline-enter 700ms cubic-bezier(.2, .75, .25, 1) both;
}

@keyframes tagline-enter {
  from {
    opacity: 0;
    transform: translateY(4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.footer-trust {
  display: flex;
  flex-wrap: wrap;
  gap: .45rem;
}

.footer-trust span {
  border: 1px solid rgb(255 255 255 / 16%);
  border-radius: .38rem;
  padding: .34rem .58rem;
  background: rgb(255 255 255 / 6%);
  color: #eef1f7;
  font-size: .68rem;
  font-weight: 750;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 2rem;
  border-top: 1px solid rgb(255 255 255 / 12%);
  padding-top: 1.25rem;
  color: #8991a1;
}

.shortcut-grid {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: .75rem 1rem;
  align-items: center;
}

.shortcut-grid kbd {
  border: 1px solid var(--line-strong);
  border-bottom-width: 3px;
  border-radius: .45rem;
  padding: .42rem .62rem;
  background: var(--surface-muted);
  color: var(--ink);
  box-shadow: none;
}

.demo-panel-featured {
  border-color: color-mix(in srgb, var(--accent) 35%, var(--line));
  box-shadow: 0 24px 70px rgb(61 54 165 / 14%);
}

.contact-form {
  overflow: visible;
  padding: clamp(1.35rem, 4vw, 2.5rem);
}

.contact-form-heading {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.75rem;
  border-bottom: 1px solid var(--line);
  padding-bottom: 1.35rem;
}

.contact-form-heading .feature-icon {
  flex: 0 0 auto;
  margin: 0;
}

.contact-form-heading h2 {
  margin: 0 0 .35rem;
  padding: 0;
  border: 0;
  font-size: 1.25rem;
}

.contact-form-heading p {
  margin: 0;
  color: var(--muted);
  font-size: .88rem;
}

.contact-form .row {
  align-items: stretch;
}

.contact-form .form-field {
  display: flex;
  flex-direction: column;
  align-items: stretch;
}

.contact-form .form-control,
.contact-form .form-select {
  width: 100%;
  min-height: 3rem;
  border: 1px solid var(--line);
  border-radius: .7rem;
  padding: .72rem .9rem;
  background: var(--surface);
  color: var(--ink);
  box-shadow: 0 5px 16px rgb(36 42 78 / 5%);
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.contact-form .form-control:focus,
.contact-form .form-select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 .22rem color-mix(in srgb, var(--accent) 18%, transparent);
  transform: translateY(-1px);
}

.contact-form .form-label {
  display: block;
  margin: 0 0 .48rem;
  color: var(--ink);
  font-size: .8rem;
  font-weight: 750;
  letter-spacing: .015em;
}

.contact-form .form-label i {
  margin-right: .35rem;
  color: var(--accent-strong);
}

.contact-form .field-note {
  display: block;
  margin-top: .42rem;
  color: var(--muted);
  font-size: .73rem;
}

.contact-form .feedback-field {
  margin-top: .35rem;
}

.contact-form #feedback-editor .editra-card,
.contact-form #feedback-editor.editra-card {
  width: 100%;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: .8rem;
  background: var(--surface);
  box-shadow: 0 14px 34px rgb(36 42 78 / 9%);
}

.contact-form .editra-menubar,
.contact-form .editra-toolbar {
  border-color: var(--line) !important;
  background: var(--surface-muted) !important;
}

.contact-form .editra-editor {
  width: 100% !important;
  max-width: 100% !important;
  min-height: 15rem !important;
  border: 0 !important;
  padding: 1.25rem !important;
  background: var(--surface) !important;
  box-shadow: none !important;
}

.contact-form-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border-top: 1px solid var(--line);
  padding-top: 1.25rem;
}

.contact-form-actions p {
  max-width: 34rem;
  margin: 0;
  color: var(--muted);
  font-size: .76rem;
}

@media (max-width: 575.98px) {
  :root {
    --header-offset: 102px;
  }

  .contact-form-actions,
  .contact-form-actions .btn {
    width: 100%;
  }

  .contact-form-actions .btn {
    justify-content: center;
  }
}

.demo-index-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border-bottom: 1px solid var(--line);
  padding: .85rem 0;
  color: var(--ink);
  font-weight: 650;
  text-decoration: none;
}

.demo-index-link:last-child {
  border-bottom: 0;
}

.demo-index-link:hover {
  color: var(--accent-strong);
}

.hero-logo-lockup {
  display: inline-flex;
  align-items: center;
  gap: .8rem;
  margin-bottom: 1.3rem;
  border: 1px solid color-mix(in srgb, var(--accent) 28%, var(--line));
  border-radius: var(--card-radius);
  padding: .55rem 1rem .55rem .6rem;
  background: color-mix(in srgb, var(--surface) 86%, transparent);
  box-shadow: 0 12px 32px rgb(58 64 130 / 9%);
  color: var(--ink);
}

.hero-brand-copy {
  display: grid;
  gap: .12rem;
}

.hero-brand-copy strong {
  font-size: .92rem;
  font-weight: 800;
  letter-spacing: -.02em;
}

.text-gradient {
  background: linear-gradient(105deg, var(--accent-strong), var(--violet), var(--cyan));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-product-frame {
  position: relative;
  padding: 1.1rem;
  border: 1px solid color-mix(in srgb, var(--accent) 22%, var(--line));
  border-radius: 1.4rem;
  background: color-mix(in srgb, var(--surface) 92%, transparent);
  box-shadow: 0 30px 80px rgb(50 55 110 / 20%);
  transform: rotate(1.2deg);
}

.hero-product-frame::before,
.hero-product-frame::after {
  content: "";
  position: absolute;
  z-index: -1;
  border-radius: 50%;
  filter: blur(1px);
}

.hero-product-frame::before {
  width: 7rem;
  height: 7rem;
  top: -2.5rem;
  right: -2rem;
  background: color-mix(in srgb, var(--gold) 62%, transparent);
}

.hero-product-frame::after {
  width: 5rem;
  height: 5rem;
  bottom: -1.5rem;
  left: -1.5rem;
  background: color-mix(in srgb, var(--cyan) 46%, transparent);
}

.product-window {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: .8rem;
  background: var(--surface);
}

.product-window-bar {
  display: flex;
  align-items: center;
  gap: .35rem;
  min-height: 2rem;
  padding: 0 .8rem;
  border-bottom: 1px solid var(--line);
  background: var(--surface-muted);
}

.product-window-bar span {
  width: .52rem;
  height: .52rem;
  border-radius: 50%;
}

.product-window-bar span:nth-child(1) { background: var(--coral); }
.product-window-bar span:nth-child(2) { background: var(--gold); }
.product-window-bar span:nth-child(3) { background: var(--green); }

.product-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: .38rem;
  padding: .7rem;
  border-bottom: 1px solid var(--line);
}

.product-tool {
  min-width: 1.7rem;
  height: 1.65rem;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: .3rem;
  background: var(--surface);
  color: var(--ink);
  font-size: .7rem;
  font-weight: 800;
}

.product-paper {
  min-height: 22rem;
  margin: 1.2rem;
  padding: 2.4rem;
  border: 1px solid var(--line);
  background: #fff;
  box-shadow: 0 10px 24px rgb(38 45 76 / 9%);
  color: #202533;
}

.product-paper h3 {
  font-weight: 800;
  letter-spacing: -.04em;
}

.product-paper .line {
  height: .5rem;
  margin-top: .7rem;
  border-radius: 999px;
  background: #e5e8f2;
}

.product-paper .line.short { width: 62%; }
.product-paper .line.accent { width: 34%; background: #cfd3ff; }

.trust-strip {
  border-block: 1px solid var(--line);
  background: var(--surface);
}

.trust-item {
  display: flex;
  align-items: center;
  gap: .7rem;
  color: var(--muted);
  font-size: .85rem;
  font-weight: 650;
}

.trust-item i {
  color: var(--accent);
  font-size: 1.1rem;
}

.metric {
  padding: 1.2rem;
  border-left: 3px solid var(--accent);
}

.metric strong {
  display: block;
  color: var(--ink);
  font-size: 1.75rem;
  font-weight: 800;
}

.metric span {
  color: var(--muted);
  font-size: .83rem;
}

.comparison-wrap {
  overflow-x: auto;
  background: var(--surface);
}

.comparison-table {
  min-width: 760px;
  margin: 0;
  color: var(--ink);
}

.comparison-table th {
  padding: 1rem;
  background: var(--surface-muted);
  font-size: .78rem;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.comparison-table td {
  padding: 1rem;
  border-color: var(--line);
  color: var(--muted);
  font-size: .88rem;
}

.comparison-table .editra-column {
  background: color-mix(in srgb, var(--accent-soft) 70%, transparent);
  color: var(--ink);
  font-weight: 650;
}

.palette-card:nth-child(4n + 1) .feature-icon { background: var(--accent-soft); color: var(--accent-strong); }
.palette-card:nth-child(4n + 2) .feature-icon { background: var(--cyan-soft); color: var(--cyan); }
.palette-card:nth-child(4n + 3) .feature-icon { background: #fff0e4; color: #d46519; }
.palette-card:nth-child(4n) .feature-icon { background: #e7f8ef; color: var(--green); }
[data-theme="dark"] .palette-card:nth-child(4n + 3) .feature-icon { background: #412718; color: #ff9c5a; }
[data-theme="dark"] .palette-card:nth-child(4n) .feature-icon { background: #173629; color: #62d8af; }

.feature-band {
  position: relative;
  overflow: hidden;
  border-radius: var(--card-radius);
  padding: clamp(1.5rem, 4vw, 3rem);
  background: linear-gradient(135deg, #272a76, #5b3cbc 55%, #078b99);
  color: #fff;
  box-shadow: 0 24px 60px rgb(45 44 126 / 24%);
}

.feature-band p,
.feature-band .section-lead {
  color: rgb(255 255 255 / 78%);
}

.feature-band .btn-quiet {
  border-color: #67d7e3;
  background: rgb(15 184 201 / 18%);
  color: #c9f8fc;
}

.feature-band .btn-quiet:hover {
  border-color: #8be7ef;
  background: rgb(15 184 201 / 30%);
  color: #fff;
}

.feature-band .btn-light:hover,
.feature-band .btn-light:focus-visible {
  transform: translateY(-1px);
  border-color: #ffd166;
  background: linear-gradient(135deg, #f7c84f, #e7a918);
  color: #3d2800;
  box-shadow: 0 12px 28px rgb(12 15 55 / 22%);
}

.feature-band-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: .65rem;
}

.feature-band-actions .btn {
  min-height: 2.85rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .45rem;
  margin: 0;
  white-space: nowrap;
}

.page-masthead {
  padding: clamp(2.25rem, 5vw, 4rem) 0 2.25rem;
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(circle at 85% 12%, color-mix(in srgb, var(--cyan) 19%, transparent), transparent 24rem),
    radial-gradient(circle at 12% 92%, color-mix(in srgb, var(--violet) 14%, transparent), transparent 22rem),
    linear-gradient(145deg, var(--hero-start), var(--hero-end));
}

.banner-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(280px, .95fr);
  gap: clamp(2rem, 6vw, 5rem);
  align-items: center;
}

.banner-script {
  margin: .2rem 0 .35rem;
  color: var(--accent-strong);
  font-family: "Caveat", cursive;
  font-size: clamp(1.45rem, 3vw, 2.2rem);
  font-weight: 600;
  line-height: 1;
  animation: banner-ink 700ms ease both;
}

.banner-visual {
  position: relative;
  min-width: 0;
  perspective: 900px;
}

.banner-editor {
  position: relative;
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--accent) 30%, var(--line));
  border-radius: var(--card-radius);
  background: var(--surface);
  box-shadow: 0 28px 70px rgb(41 45 100 / 22%);
  transform: rotateY(-5deg) rotateX(2deg);
  animation: banner-float 6s ease-in-out infinite;
}

.banner-editor.classic {
  border-color: color-mix(in srgb, var(--cyan) 36%, var(--line));
}

.banner-editor-bar,
.banner-editor-tools {
  display: flex;
  align-items: center;
  gap: .45rem;
  border-bottom: 1px solid var(--line);
  padding: .6rem .8rem;
  background: var(--surface-muted);
}

.banner-editor-bar span {
  width: .5rem;
  height: .5rem;
  border-radius: 50%;
  background: var(--coral);
}

.banner-editor-bar span:nth-child(2) { background: var(--gold); }
.banner-editor-bar span:nth-child(3) { background: var(--green); }
.banner-editor-bar small { margin-left: auto; color: var(--muted); font-size: .68rem; }

.banner-editor-tools b,
.banner-editor-tools em,
.banner-editor-tools u,
.banner-editor-tools i {
  width: 1.8rem;
  height: 1.65rem;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: .35rem;
  background: var(--surface);
  color: var(--ink);
  font-size: .72rem;
  text-decoration: none;
}

.banner-editor-canvas {
  display: grid;
  gap: .62rem;
  min-height: 13rem;
  margin: 1rem;
  border: 1px solid var(--line);
  padding: clamp(1.25rem, 4vw, 2.3rem);
  background: #fff;
  color: #202533;
  box-shadow: 0 10px 24px rgb(38 45 76 / 9%);
}

.banner-editor.classic .banner-editor-canvas {
  min-height: 10rem;
  margin: 0;
  border: 0;
  box-shadow: none;
}

.banner-editor-canvas > i { color: var(--accent); font-size: 1.8rem; }
.banner-editor-canvas > span { width: 100%; height: .46rem; border-radius: 99px; background: #e7e9f1; }
.banner-editor-canvas > span.short { width: 62%; }

.demo-gallery-canvas {
  display: grid;
  gap: .7rem;
  min-height: 15rem;
  padding: clamp(1rem, 3vw, 1.55rem);
  background: linear-gradient(145deg, #fff 55%, #eefbfc);
  color: #202533;
}

.demo-gallery-title,
.demo-gallery-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
}

.demo-gallery-title span,
.demo-gallery-footer > div { display: grid; gap: .2rem; }
.demo-gallery-title small { color: #058895; font-size: .52rem; font-weight: 800; letter-spacing: .12em; }
.demo-gallery-title strong { font-size: 1rem; }
.demo-gallery-title > i { color: #6558e8; font-size: 1.6rem; }

.demo-gallery-fields {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .45rem;
}

.demo-gallery-fields span {
  display: grid;
  gap: .18rem;
  border: 1px solid #dce2ef;
  border-radius: .45rem;
  padding: .48rem;
  background: #f7f9fd;
}

.demo-gallery-fields small,
.demo-gallery-table,
.demo-gallery-footer small { color: #697386; font-size: .5rem; }
.demo-gallery-fields b { color: #4b55d6; font-size: .58rem; }
.demo-gallery-table { display: grid; grid-template-columns: 1fr .55fr; overflow: hidden; border: 1px solid #dce2ef; border-radius: .45rem; }
.demo-gallery-table span { padding: .42rem .5rem; border-bottom: 1px solid #e7eaf0; }
.demo-gallery-table span:nth-child(-n + 2) { background: #edf0ff; color: #4b55d6; font-weight: 800; }
.demo-gallery-footer { border-left: 3px solid #df6249; padding: .5rem .65rem; background: #fff6f2; }
.demo-gallery-footer b { color: #7251b5; font-size: .55rem; }
.demo-gallery-footer > i { color: #16845b; font-size: 2rem; }

.purpose-banner-visual {
  position: relative;
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--purpose-accent, var(--accent)) 32%, var(--line));
  border-radius: var(--card-radius);
  background: var(--surface);
  box-shadow: 0 28px 70px rgb(41 45 100 / 22%);
  transform: rotateY(-4deg) rotateX(1deg);
  animation: banner-float 6s ease-in-out infinite;
}

.purpose-banner-visual--samples { --purpose-accent: #6558e8; }
.purpose-banner-visual--features { --purpose-accent: #4b55d6; }
.purpose-banner-visual--enterprise { --purpose-accent: #16845b; }
.purpose-banner-visual--download { --purpose-accent: #087f8a; }

.purpose-visual-bar,
.purpose-visual-tools {
  display: flex;
  align-items: center;
  gap: .42rem;
  border-bottom: 1px solid var(--line);
  padding: .58rem .75rem;
  background: var(--surface-muted);
}

.purpose-visual-bar > span {
  width: .48rem;
  height: .48rem;
  border-radius: 50%;
  background: var(--coral);
}

.purpose-visual-bar > span:nth-child(2) { background: var(--gold); }
.purpose-visual-bar > span:nth-child(3) { background: var(--green); }
.purpose-visual-bar small { margin-left: auto; color: var(--muted); font-size: .63rem; }
.purpose-visual-tools { flex-wrap: wrap; padding-block: .48rem; }

.purpose-visual-tools span {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  border: 1px solid var(--line);
  border-radius: .38rem;
  padding: .3rem .42rem;
  background: var(--surface);
  color: var(--ink);
  font-size: .54rem;
  font-weight: 750;
}

.purpose-visual-tools span:nth-child(1) i { color: #6558e8; }
.purpose-visual-tools span:nth-child(2) i { color: #058895; }
.purpose-visual-tools span:nth-child(3) i { color: #df6249; }
.purpose-visual-tools span:nth-child(4) i { color: #16845b; }

.samples-visual-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .62rem;
  padding: .85rem;
  background: linear-gradient(145deg, #f7f7ff, #eefbfc);
}

.samples-visual-grid article {
  display: grid;
  min-width: 0;
  gap: .2rem;
  border: 1px solid #dce2ef;
  border-radius: .58rem;
  padding: .7rem;
  background: #fff;
  color: #202533;
  box-shadow: 0 7px 18px rgb(44 52 90 / 8%);
}

.samples-visual-grid article i { margin-bottom: .28rem; color: #6558e8; font-size: 1.15rem; }
.samples-visual-grid article:nth-child(2) i { color: #16845b; }
.samples-visual-grid article:nth-child(3) i { color: #3566c7; }
.samples-visual-grid article:nth-child(4) i { color: #b64c72; }
.samples-visual-grid strong { font-size: .65rem; }
.samples-visual-grid small { color: #697386; font-size: .5rem; line-height: 1.4; }

.features-visual-stage {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(8rem, .7fr);
  gap: .65rem;
  padding: .85rem;
  background: linear-gradient(145deg, #f4f3ff, #eefbfc);
  color: #202533;
}

.features-visual-document,
.features-tool-matrix {
  min-width: 0;
  border: 1px solid #dce2ef;
  border-radius: .58rem;
  padding: .72rem;
  background: #fff;
}

.features-visual-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .6rem;
}

.features-visual-title > span { display: grid; gap: .15rem; }
.features-visual-title small { color: #4b55d6; font-size: .45rem; font-weight: 800; letter-spacing: .11em; }
.features-visual-title strong { font-size: .7rem; }
.features-visual-title > i { color: #df6249; font-size: 1.25rem; }
.features-visual-table { display: grid; grid-template-columns: minmax(0, 1fr) auto; overflow: hidden; margin-top: .6rem; border: 1px solid #e1e5ef; border-radius: .42rem; }
.features-visual-table :is(b, span, i) { padding: .3rem .4rem; border-bottom: 1px solid #e8ebf2; font-size: .46rem; }
.features-visual-table b { background: #eef0ff; color: #4b55d6; }
.features-visual-table i { color: #16845b; }
.features-visual-codes { display: flex; align-items: center; gap: .45rem; margin-top: .6rem; }
.features-visual-codes > i { color: #16845b; font-size: 1.45rem; }
.features-visual-codes .pdf-barcode { max-width: 7rem; height: 1.55rem; }
.features-visual-codes small { color: #697386; font-size: .44rem; white-space: nowrap; }
.features-tool-matrix { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .38rem; }
.features-tool-matrix span { display: grid; min-width: 0; place-items: center; gap: .18rem; border-radius: .42rem; padding: .42rem .25rem; background: #f7f8fc; color: #4b55d6; }
.features-tool-matrix span:nth-child(2n) { color: #058895; }
.features-tool-matrix span:nth-child(3n) { color: #b64c72; }
.features-tool-matrix i { font-size: .82rem; }
.features-tool-matrix small { color: #697386; font-size: .42rem; }

.enterprise-visual-stage,
.download-visual-stage {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(8rem, .75fr);
  gap: .65rem;
  padding: .85rem;
  background: linear-gradient(145deg, #f4fbf8, #f3f4ff);
  color: #202533;
}

.enterprise-visual-document,
.enterprise-visual-stage aside,
.download-command,
.download-release {
  min-width: 0;
  border: 1px solid #dce2e8;
  border-radius: .58rem;
  padding: .72rem;
  background: #fff;
}

.enterprise-visual-document > div:first-child { display: grid; gap: .18rem; }
.enterprise-visual-document small { color: #16845b; font-size: .46rem; font-weight: 800; letter-spacing: .1em; }
.enterprise-visual-document strong { font-size: .74rem; }
.enterprise-visual-document span { color: #697386; font-size: .5rem; line-height: 1.45; }
.enterprise-review-row { display: flex; flex-wrap: wrap; gap: .35rem; margin-top: .65rem; }
.enterprise-review-row span { border-radius: 999px; padding: .28rem .4rem; background: #edf8f2; color: #16845b; font-size: .46rem; font-weight: 750; }
.enterprise-document-lines { display: grid; gap: .3rem; margin-top: .7rem; }
.enterprise-document-lines span { width: 100%; height: .28rem; border-radius: 99px; background: #e3e8ef; }
.enterprise-document-lines span:last-child { width: 64%; }
.enterprise-visual-stage aside { display: grid; align-content: start; gap: .45rem; }
.enterprise-visual-stage aside strong { margin-bottom: .18rem; font-size: .62rem; }
.enterprise-visual-stage aside span { color: #526071; font-size: .48rem; }
.enterprise-visual-stage aside span i { color: #16845b; }
.enterprise-visual-stage aside small { margin-top: .3rem; border-radius: .35rem; padding: .35rem; background: #edf8f2; color: #16845b; font-size: .46rem; font-weight: 800; text-align: center; }

.download-visual-stage { background: linear-gradient(145deg, #eefbfc, #f4f2ff); }
.download-command { display: grid; gap: .48rem; background: #161a29; color: #f7f8ff; }
.download-command > small { color: #7dd3fc; font-size: .46rem; font-weight: 800; letter-spacing: .12em; }
.download-command code { overflow-wrap: anywhere; color: #e9ecff; font-size: .58rem; }
.download-command code span { color: #4ade80; }
.download-file-tree { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .28rem; border-top: 1px solid rgb(255 255 255 / 12%); padding-top: .48rem; }
.download-file-tree span { color: #cbd3e5; font-size: .45rem; }
.download-file-tree i { color: #f7bf4d; }
.download-release { display: grid; align-content: center; justify-items: center; gap: .3rem; text-align: center; }
.download-release > i { color: #058895; font-size: 1.65rem; }
.download-release strong { font-size: .68rem; }
.download-release span { color: #697386; font-size: .48rem; }
.download-release small { margin-top: .25rem; border-radius: 999px; padding: .28rem .45rem; background: #edf8f2; color: #16845b; font-size: .44rem; font-weight: 800; }

.theme-card,
.host-demo-card,
.ecosystem-intro,
.modular-monitor,
.docs-mini-banner {
  position: relative;
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--accent) 16%, var(--line));
  border-radius: var(--card-radius);
  background: var(--surface);
  box-shadow: var(--card-shadow);
}

.docs-section-heading {
  margin-bottom: var(--section-space-compact);
  border-bottom: 1px solid var(--line);
  padding: .2rem 0 1.15rem;
}

.docs-section-heading .eyebrow {
  margin-bottom: .55rem;
}

.docs-section-heading h1,
.example-page-heading h1 {
  margin: 0 0 .45rem;
  font-size: clamp(1.55rem, 2.4vw, 2.1rem);
  font-weight: 750;
  letter-spacing: -.04em;
  line-height: 1.08;
}

.docs-section-heading .section-lead,
.example-page-heading .section-lead {
  margin-bottom: 0;
  font-size: .94rem;
  line-height: 1.6;
}

.example-page-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1.5rem;
  margin-bottom: var(--section-space-compact);
  border-bottom: 1px solid var(--line);
  padding-bottom: 1.15rem;
}

.example-page-heading .eyebrow {
  margin-bottom: .55rem;
}

.example-page-heading .btn {
  flex: 0 0 auto;
}

.theme-card,
.host-demo-card,
.ecosystem-intro,
.modular-monitor {
  padding: clamp(1.2rem, 3vw, 1.8rem);
}

.theme-card {
  display: flex;
  flex: 1 1 auto;
  width: 100%;
  flex-direction: column;
  transition: transform 220ms ease, box-shadow 220ms ease;
}

.theme-card-grid > [class*="col-"] {
  display: flex;
}

.theme-card .demo-action {
  align-self: flex-start;
  margin-top: auto;
}

.theme-card:hover { transform: translateY(-4px); box-shadow: var(--card-shadow-hover); }
.theme-banner { margin: -1.8rem -1.8rem 1.4rem; aspect-ratio: 16 / 7; overflow: hidden; background: #080b22; }
.theme-banner img { width: 100%; height: 100%; object-fit: cover; }
.classic-theme-card { border-color: color-mix(in srgb, var(--cyan) 25%, var(--line)); }

.host-demo-heading {
  display: flex;
  align-items: center;
  gap: .8rem;
  margin-bottom: 1rem;
}

.host-demo-heading .feature-icon { margin: 0; }
.host-demo-heading h3 { margin: 0; font-size: 1rem; }
.host-demo-card {
  transition: transform 240ms cubic-bezier(.2, .75, .25, 1), border-color 240ms ease, box-shadow 240ms ease;
}

.host-demo-card:hover {
  transform: translateY(-4px);
  border-color: color-mix(in srgb, var(--accent) 55%, var(--line));
  box-shadow: var(--card-shadow-hover);
}

.host-demo-card .demo-panel { margin: 0; padding: .75rem; box-shadow: none; }
.host-demo-card .editra-card { width: 100%; }

.classic-host-grid > [class*="col-"] {
  display: flex;
}

.classic-host-grid .host-demo-card {
  display: flex;
  width: 100%;
  flex-direction: column;
}

.classic-host-grid .demo-panel {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
}

.classic-host-grid .editra-editor {
  min-height: 300px !important;
}

.word-a4-feature-card {
  max-width: 960px;
  margin-inline: auto;
}

.word-a4-feature-card .host-demo-heading {
  align-items: flex-start;
}

.word-a4-feature-card .host-demo-heading p {
  max-width: 72ch;
  margin: .35rem 0 0;
  color: var(--muted);
  font-size: .88rem;
  line-height: 1.55;
}

.word-a4-feature-card .demo-panel {
  background: #e9edf5;
}

.word-a4-feature-card .editra-card {
  max-width: 850px;
  margin-inline: auto;
}

.word-a4-feature-card .editra-page-workspace {
  display: flex;
  justify-content: center;
  min-height: calc(var(--editra-page-height, 1123px) + 56px) !important;
  height: auto !important;
  padding: 28px 12px !important;
  background: #e9edf5;
}

.word-a4-feature-card .editra-editor {
  width: min(100%, var(--editra-page-width, 794px)) !important;
  max-width: var(--editra-page-width, 794px) !important;
  min-height: var(--editra-page-height, 1123px) !important;
  height: var(--editra-page-height, 1123px) !important;
  border: 1px solid #b8bfcc !important;
  background: #fff !important;
  box-shadow: 0 18px 42px rgb(31 40 67 / 18%);
}

.word-a4-feature-card .editra-page-guides {
  display: block !important;
}

.feature-a4-form {
  color: #25304a;
  font: 12px/1.45 "Inter", "Segoe UI", sans-serif;
}

.feature-a4-form h2 {
  margin: 14px 0 6px;
  color: #3c3ed2;
  font-size: 13px;
  letter-spacing: .01em;
}

.feature-a4-title {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  border-bottom: 3px solid #5b5cf0;
  padding: 0 0 12px;
}

.feature-a4-title small { color: #0b8f9b; font-weight: 800; letter-spacing: .14em; }
.feature-a4-title h1 { margin: 4px 0 2px; color: #202853; font-size: 25px; }
.feature-a4-title p { margin: 0; color: #667087; }
.feature-a4-title > span { border-radius: 99px; padding: 6px 11px; background: #e3f8ef; color: #16845b; font-weight: 800; }

.feature-a4-meta {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 12px;
}

.feature-a4-meta > span {
  border: 1px solid #dce1ef;
  border-radius: 7px;
  padding: 8px 10px;
  background: linear-gradient(135deg, #f7f7ff, #f2fbfc);
}

.feature-a4-meta small,
.feature-a4-meta strong { display: block; }
.feature-a4-meta small { color: #7c8498; font-size: 8px; font-weight: 800; }

.feature-a4-table { width: 100%; border-collapse: collapse; }
.feature-a4-table th,
.feature-a4-table td { border: 1px solid #d9deeb; padding: 7px 8px; text-align: left; }
.feature-a4-table th { background: #eff0ff; color: #3c3ed2; font-weight: 750; }

.feature-a4-note { border-left: 4px solid #0fb8c9; border-radius: 5px; padding: 9px 11px; background: #edfbfc; }
.feature-a4-note p { margin: 2px 0 0; }

.feature-a4-split { display: grid; grid-template-columns: 1.08fr .92fr; gap: 12px; }
.feature-a4-split > div { border: 1px solid #e0e3ed; border-radius: 7px; padding: 0 10px 8px; background: #fafbfe; }
.feature-a4-split ul,
.feature-a4-split ol { margin: 5px 0 0; padding-left: 19px; }
.feature-a4-checks li::marker { color: #16a579; }

.feature-a4-codes {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 10px;
  align-items: center;
  margin-top: 12px;
  border-radius: 8px;
  padding: 10px;
  background: linear-gradient(120deg, #f0efff, #eafafa);
}

.feature-a4-codes > div { display: grid; justify-items: center; gap: 4px; text-align: center; }
.feature-a4-codes > div:nth-child(2) { justify-items: stretch; }
.feature-a4-codes .editra-media-frame { max-width: 112px; margin: 0 auto; }
.feature-a4-codes > div:nth-child(2) .editra-media-frame { max-width: 280px; }
.feature-a4-codes svg { max-width: 100%; height: auto; }
.feature-a4-codes small { color: #626c82; font-size: 8px; }
.feature-a4-codes blockquote { grid-column: 1 / -1; margin: 0; border-left: 3px solid #8b5cf6; padding: 7px 10px; background: #fff; color: #4a4678; font-style: italic; }

@media (max-width: 767.98px) {
  .word-a4-feature-card { padding-inline: .65rem; }
  .word-a4-feature-card .demo-panel { padding: .4rem; }
  .feature-a4-meta,
  .feature-a4-split { grid-template-columns: 1fr; }
}

.intro-value-grid {
  display: grid;
  gap: .85rem;
}

.intro-value-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 1rem;
  align-items: start;
  border: 1px solid color-mix(in srgb, var(--accent) 16%, var(--line));
  border-radius: var(--card-radius);
  padding: 1rem;
  background: linear-gradient(145deg, var(--surface), var(--surface-muted));
  box-shadow: var(--card-shadow);
  transition: transform 220ms ease, border-color 220ms ease, box-shadow 220ms ease;
}

.intro-value-card:hover {
  transform: translateX(5px);
  border-color: var(--accent);
  box-shadow: var(--card-shadow-hover);
}

.intro-value-card .feature-icon { margin: 0; }
.intro-value-card h3 { margin: 0 0 .3rem; font-size: .94rem; }
.intro-value-card p { margin: 0; color: var(--muted); font-size: .82rem; line-height: 1.55; }

.home-section-heading {
  max-width: 48rem;
  margin-bottom: var(--section-space-compact);
}

.home-section-heading .section-lead {
  max-width: 43rem;
}

.home-section-heading .section-title,
.home-introduction .section-title,
.home-live-editor .section-title {
  max-width: none;
}

.home-visual-card {
  position: relative;
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--accent) 18%, var(--line));
  border-radius: var(--card-radius);
  background: var(--surface);
  box-shadow: var(--card-shadow);
}

.home-visual-card img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 18rem;
  object-fit: cover;
}

.home-visual-caption {
  position: absolute;
  right: 1rem;
  bottom: 1rem;
  left: 1rem;
  display: flex;
  align-items: center;
  gap: .75rem;
  border: 1px solid rgb(255 255 255 / 38%);
  border-radius: .65rem;
  padding: .8rem 1rem;
  background: rgb(22 27 52 / 86%);
  box-shadow: 0 12px 30px rgb(12 16 36 / 28%);
  color: #fff;
  backdrop-filter: blur(12px);
}

.home-visual-caption i {
  color: #71e3ec;
  font-size: 1.35rem;
}

.terra-home-hero {
  padding: clamp(2rem, 4vw, 3.25rem) 0;
  text-align: left;
}

.terra-home-hero > .container {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(28rem, 1.1fr);
  gap: clamp(2rem, 4vw, 4rem);
  align-items: center;
}

.terra-home-hero-copy {
  width: 100%;
  max-width: 39rem;
}

.terra-home-hero .d-flex,
.terra-home-facts {
  justify-content: flex-start;
}

.terra-home-hero .eyebrow {
  margin: 0 0 .8rem;
}

.terra-home-hero .display-title {
  max-width: 18ch;
  font-size: clamp(1.85rem, 3vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -.045em;
  line-height: 1.08;
  white-space: normal;
}

.terra-home-hero .hero-copy {
  max-width: 38rem;
  margin: 1rem 0 1.35rem;
  font-size: clamp(.92rem, 1.2vw, 1rem);
  line-height: 1.6;
}

.terra-home-facts {
  display: flex;
  flex-wrap: wrap;
  gap: .65rem 1.25rem;
  margin-top: 1.35rem;
  color: var(--muted);
  font-size: .78rem;
  font-weight: 650;
}

.terra-home-facts span {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
}

.terra-home-facts i {
  color: var(--green);
}

.terra-product-preview {
  width: 100%;
  max-width: 42rem;
  margin: 0;
  text-align: left;
}

.terra-product-preview .product-window {
  border-color: color-mix(in srgb, var(--accent) 24%, var(--line));
  box-shadow: 0 18px 46px rgb(35 42 76 / 14%);
}

.terra-product-preview .product-paper {
  min-height: 13.75rem;
  padding: clamp(1.15rem, 2vw, 1.55rem);
}

.terra-product-preview .product-tool:nth-child(4n + 1) { color: var(--violet); background: color-mix(in srgb, var(--violet) 10%, var(--surface)); }
.terra-product-preview .product-tool:nth-child(4n + 2) { color: var(--cyan); background: color-mix(in srgb, var(--cyan) 10%, var(--surface)); }
.terra-product-preview .product-tool:nth-child(4n + 3) { color: var(--coral); background: color-mix(in srgb, var(--coral) 10%, var(--surface)); }
.terra-product-preview .product-tool:nth-child(4n) { color: var(--green); background: color-mix(in srgb, var(--green) 10%, var(--surface)); }

.terra-preview-features {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: .55rem;
  margin: 1rem 0 1.15rem;
}

.terra-preview-feature {
  display: grid;
  justify-items: center;
  gap: .38rem;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: .62rem;
  padding: .7rem .35rem;
  color: var(--accent-strong);
  background: color-mix(in srgb, var(--accent-soft) 58%, #fff);
  text-align: center;
}

.terra-preview-feature i {
  display: grid;
  width: 2rem;
  height: 2rem;
  place-items: center;
  border-radius: .5rem;
  background: linear-gradient(135deg, var(--accent), var(--violet));
  color: #fff;
  font-size: 1rem;
}

.terra-preview-feature small { font-size: .62rem; font-weight: 750; }
.terra-preview-feature--shape { color: #9a4b0d; background: #fff4df; }
.terra-preview-feature--shape i { clip-path: polygon(50% 0, 96% 34%, 78% 100%, 22% 100%, 4% 34%); border-radius: 0; background: linear-gradient(135deg, var(--coral), var(--gold)); }
.terra-preview-feature--media { color: #087f8a; background: #e8fbfd; }
.terra-preview-feature--media i { background: linear-gradient(135deg, var(--cyan), var(--green)); }
.terra-preview-feature--pages { color: #3c3ed2; background: #eef0ff; }
.terra-preview-feature--pages i { background: linear-gradient(135deg, var(--violet), var(--cyan)); }

.terra-section-heading {
  max-width: 46rem;
  margin-bottom: 1.6rem;
}

.terra-section-heading .eyebrow {
  margin-bottom: .55rem;
}

.terra-section-heading .section-title {
  max-width: none;
  margin-bottom: .6rem;
  font-size: clamp(1.55rem, 2.6vw, 2.15rem);
  font-weight: 700;
  letter-spacing: -.035em;
  line-height: 1.18;
}

.terra-feature-list,
.terra-use-case-list {
  border-top: 1px solid var(--line);
}

.terra-feature-list article {
  display: grid;
  grid-template-columns: 2.25rem minmax(0, 1fr);
  gap: .9rem;
  align-items: start;
  padding: 1.2rem 0;
  border-bottom: 1px solid var(--line);
}

.terra-feature-list article > i,
.terra-use-case-list article > i {
  color: var(--accent);
  font-size: 1.15rem;
}

.terra-feature-list h3,
.terra-feature-list p,
.terra-use-case-list h3,
.terra-use-case-list p {
  margin: 0;
}

.terra-feature-list h3,
.terra-use-case-list h3 {
  margin-bottom: .22rem;
  font-size: .95rem;
  font-weight: 700;
}

.terra-feature-list p,
.terra-use-case-list p {
  color: var(--muted);
  font-size: .84rem;
  line-height: 1.55;
}

.terra-definition-layout {
  display: grid;
  grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}

.terra-capability-list {
  border-top: 1px solid var(--line);
}

.terra-capability-list article {
  display: grid;
  grid-template-columns: 2.25rem minmax(0, 1fr);
  gap: .9rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--line);
}

.terra-capability-list article > i,
.terra-why-grid article > i,
.terra-benefits-grid article > i {
  display: grid;
  width: 2.1rem;
  height: 2.1rem;
  place-items: center;
  border-radius: .55rem;
  background: color-mix(in srgb, var(--accent) 10%, var(--surface));
  color: var(--accent);
  font-size: 1rem;
}

.terra-capability-list article:nth-child(2) > i,
.terra-why-grid article:nth-child(2) > i,
.terra-benefits-grid article:nth-child(2) > i { background: #e8fbfd; color: #087f8a; }
.terra-capability-list article:nth-child(3) > i,
.terra-why-grid article:nth-child(3) > i,
.terra-benefits-grid article:nth-child(3) > i { background: #fff4df; color: #9a4b0d; }
.terra-capability-list article:nth-child(4) > i,
.terra-why-grid article:nth-child(4) > i,
.terra-benefits-grid article:nth-child(4) > i { background: #fff0f5; color: #b64c72; }
.terra-capability-list article:nth-child(5) > i,
.terra-why-grid article:nth-child(5) > i,
.terra-benefits-grid article:nth-child(5) > i { background: #edf8f2; color: #16845b; }
.terra-why-grid article:nth-child(6) > i,
.terra-benefits-grid article:nth-child(6) > i { background: #f3edff; color: #7251b5; }

.terra-capability-list h3,
.terra-capability-list p,
.terra-why-grid h3,
.terra-why-grid p,
.terra-benefits-grid h3,
.terra-benefits-grid p { margin: 0; }
.terra-capability-list h3,
.terra-why-grid h3,
.terra-benefits-grid h3 { margin-bottom: .22rem; font-size: .9rem; font-weight: 700; }
.terra-capability-list p,
.terra-why-grid p,
.terra-benefits-grid p { color: var(--muted); font-size: .78rem; line-height: 1.55; }

.terra-home-why { background: var(--surface-muted); }
.terra-why-grid,
.terra-benefits-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .8rem;
}

.terra-why-grid article,
.terra-benefits-grid article {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: .7rem;
  padding: 1rem;
  background: var(--surface);
}

.terra-why-grid article > i,
.terra-benefits-grid article > i { margin-bottom: .75rem; }
.terra-benefits-grid article { border-top: 3px solid color-mix(in srgb, var(--accent) 65%, var(--line)); }
.terra-benefits-grid article:nth-child(2) { border-top-color: #058895; }
.terra-benefits-grid article:nth-child(3) { border-top-color: #ad7809; }
.terra-benefits-grid article:nth-child(4) { border-top-color: #b64c72; }
.terra-benefits-grid article:nth-child(5) { border-top-color: #16845b; }
.terra-benefits-grid article:nth-child(6) { border-top-color: #7251b5; }

.terra-unique-strength {
  display: flex;
  align-items: center;
  gap: .8rem;
  margin-top: .8rem;
  border-radius: .7rem;
  padding: 1rem 1.15rem;
  background: linear-gradient(100deg, #eef0ff, #e9fbf7, #fff7e8);
  color: #26304a;
}

.terra-unique-strength i { flex: 0 0 auto; color: #6558e8; font-size: 1.25rem; }
.terra-unique-strength p { margin: 0; font-size: .82rem; line-height: 1.55; }

.terra-home-editor {
  background: var(--surface-muted);
}

.terra-home-editor .editra-demo-host {
  min-width: 0;
}

.terra-editor-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .6rem;
  margin-top: 1rem;
}

.terra-use-case-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.terra-use-case-list article {
  display: grid;
  grid-template-columns: 1.8rem minmax(0, 1fr);
  gap: .65rem;
  padding: 1.1rem 1.1rem 1.1rem 0;
  border-bottom: 1px solid var(--line);
}

.terra-final-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  border-radius: .65rem;
  padding: clamp(1.4rem, 3vw, 2.2rem);
  background: #2636a8;
  color: #fff;
}

.terra-final-cta h2,
.terra-final-cta p {
  margin: 0;
}

.terra-final-cta h2 {
  margin-bottom: .3rem;
  font-size: clamp(1.3rem, 2vw, 1.75rem);
}

.terra-final-cta p {
  color: rgb(255 255 255 / 78%);
  font-size: .9rem;
}

.terra-final-cta > div:last-child {
  display: flex;
  flex: 0 0 auto;
  gap: .55rem;
}

.home-visual-caption strong,
.home-visual-caption small {
  display: block;
}

.home-visual-caption small {
  color: rgb(255 255 255 / 72%);
}

.home-info-card,
.audience-card,
.use-case-card {
  height: 100%;
  border: 1px solid color-mix(in srgb, var(--accent) 16%, var(--line));
  border-radius: var(--card-radius);
  padding: 1.15rem;
  background: linear-gradient(145deg, var(--surface), var(--surface-muted));
  box-shadow: var(--card-shadow);
}

.home-info-card h3,
.audience-card h3,
.use-case-card h3 {
  margin: .75rem 0 .35rem;
  font-size: 1rem;
}

.home-info-card p,
.audience-card p,
.use-case-card p {
  margin: 0;
  color: var(--muted);
  font-size: .84rem;
  line-height: 1.6;
}

.home-info-card:nth-child(4n + 1) .feature-icon,
.audience-card:nth-child(4n + 1) .feature-icon,
.use-case-card:nth-child(4n + 1) .feature-icon { background: #ede9ff; color: #5b3ed0; }
.home-info-card:nth-child(4n + 2) .feature-icon,
.audience-card:nth-child(4n + 2) .feature-icon,
.use-case-card:nth-child(4n + 2) .feature-icon { background: #dff8fb; color: #087f8a; }
.home-info-card:nth-child(4n + 3) .feature-icon,
.audience-card:nth-child(4n + 3) .feature-icon,
.use-case-card:nth-child(4n + 3) .feature-icon { background: #fff0dc; color: #b55f00; }
.home-info-card:nth-child(4n) .feature-icon,
.audience-card:nth-child(4n) .feature-icon,
.use-case-card:nth-child(4n) .feature-icon { background: #e0f6ea; color: #087a53; }

[data-theme="dark"] :is(.home-info-card, .audience-card, .use-case-card):nth-child(4n + 1) .feature-icon { background: #332a64; color: #c5b7ff; }
[data-theme="dark"] :is(.home-info-card, .audience-card, .use-case-card):nth-child(4n + 2) .feature-icon { background: #173e43; color: #71e3ec; }
[data-theme="dark"] :is(.home-info-card, .audience-card, .use-case-card):nth-child(4n + 3) .feature-icon { background: #49331b; color: #ffc06b; }
[data-theme="dark"] :is(.home-info-card, .audience-card, .use-case-card):nth-child(4n) .feature-icon { background: #17392b; color: #69dbad; }

.use-case-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: .85rem;
  align-items: start;
}

.use-case-card .feature-icon {
  margin: 0;
}

.use-case-card h3 {
  margin-top: 0;
}

.home-theme-compare-grid > [class*="col-"] { display: flex; }

.home-theme-choice {
  width: 100%;
  display: flex;
  overflow: hidden;
  flex-direction: column;
  border: 1px solid color-mix(in srgb, var(--theme-choice-accent) 25%, var(--line));
  border-radius: .72rem;
  background: var(--surface);
  box-shadow: var(--card-shadow);
  transition: transform 200ms ease, box-shadow 200ms ease;
}

.home-theme-choice--word { --theme-choice-accent: #5b5cf0; }
.home-theme-choice--classic { --theme-choice-accent: #0b98a5; }
.home-theme-choice:hover { transform: translateY(-3px); box-shadow: var(--card-shadow-hover); }

.theme-choice-visual {
  position: relative;
  aspect-ratio: 16 / 6.7;
  overflow: hidden;
  background: var(--surface-muted);
}

.theme-choice-visual::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 45%, rgb(16 21 45 / 38%));
  content: "";
}

.theme-choice-visual img { width: 100%; height: 100%; display: block; object-fit: cover; }
.theme-choice-visual > span { position: absolute; z-index: 1; right: .75rem; bottom: .65rem; display: inline-flex; align-items: center; gap: .35rem; border: 1px solid rgb(255 255 255 / 48%); border-radius: 999px; padding: .35rem .55rem; background: rgb(20 25 55 / 82%); color: #fff; font-size: .65rem; font-weight: 800; backdrop-filter: blur(10px); }

.theme-choice-body { display: flex; flex: 1; flex-direction: column; padding: 1.15rem; }
.theme-choice-title { display: flex; align-items: center; gap: .75rem; }
.theme-choice-title .feature-icon { flex: 0 0 auto; margin: 0; background: color-mix(in srgb, var(--theme-choice-accent) 12%, var(--surface)); color: var(--theme-choice-accent); }
.theme-choice-title h3 { margin: 0 0 .2rem; font-size: 1.08rem; }
.theme-choice-title p { margin: 0; color: var(--muted); font-size: .82rem; line-height: 1.5; }

.theme-fit-list { display: grid; gap: .5rem; margin: .95rem 0 1rem; padding: 0; color: var(--muted); font-size: .8rem; line-height: 1.5; list-style: none; }
.theme-fit-list li { display: flex; align-items: start; gap: .45rem; }
.theme-fit-list i { margin-top: .12rem; color: var(--theme-choice-accent); }
.home-theme-choice .demo-action { align-self: flex-start; margin-top: auto; }

.host-choice-band {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) minmax(15rem, .75fr);
  gap: 1rem;
  align-items: center;
  margin-top: 1rem;
  border: 1px solid color-mix(in srgb, var(--accent) 20%, var(--line));
  border-radius: .72rem;
  padding: 1rem 1.15rem;
  background:
    radial-gradient(circle at 92% 0, color-mix(in srgb, var(--cyan) 14%, transparent), transparent 13rem),
    linear-gradient(135deg, color-mix(in srgb, var(--accent-soft) 55%, var(--surface)), var(--surface));
  box-shadow: var(--card-shadow);
}

.host-choice-band > .feature-icon { margin: 0; background: linear-gradient(135deg, var(--accent), var(--cyan)); color: #fff; }
.host-choice-band h3 { margin: 0 0 .3rem; font-size: .98rem; }
.host-choice-band p { margin: 0; color: var(--muted); font-size: .8rem; line-height: 1.55; }
.host-choice-band code { color: var(--accent-strong); }
.host-choice-links { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .4rem; }
.host-choice-links a { border: 1px solid var(--line); border-radius: .42rem; padding: .48rem .55rem; background: var(--surface); color: var(--ink); font-size: .68rem; font-weight: 750; text-align: center; text-decoration: none; }
.host-choice-links a:hover,
.host-choice-links a:focus-visible { border-color: var(--accent); background: var(--accent-soft); color: var(--accent-strong); }

@media (max-width: 991.98px) {
  .terra-home-hero > .container {
    grid-template-columns: 1fr;
    gap: 1.75rem;
    justify-items: center;
  }

  .terra-home-hero-copy {
    max-width: 44rem;
    text-align: center;
  }

  .terra-home-hero .display-title,
  .terra-home-hero .hero-copy {
    margin-right: auto;
    margin-left: auto;
  }

  .terra-home-hero .d-flex,
  .terra-home-facts {
    justify-content: center;
  }

  .terra-product-preview {
    max-width: 44rem;
  }
}

@media (max-width: 767.98px) {
  .license-banner-full {
    display: none;
  }

  .license-banner-short {
    display: inline;
  }

  .home-visual-card img,
  .theme-banner img,
  .theme-choice-visual img,
  .industry-gallery-visual img,
  .docs-tool-visual-image > img {
    width: 100%;
    height: auto;
    min-height: 0;
    object-fit: contain;
  }

  .terra-home-hero .display-title {
    font-size: clamp(1.8rem, 8vw, 2.45rem);
    white-space: normal;
  }

  .terra-home-hero .eyebrow {
    justify-content: center;
    line-height: 1.45;
  }

  .terra-product-preview .product-paper {
    margin: .7rem;
    padding: 1rem;
  }

  .terra-preview-features {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .terra-use-case-list {
    grid-template-columns: 1fr;
  }

  .terra-final-cta,
  .terra-final-cta > div:last-child {
    align-items: stretch;
    flex-direction: column;
  }

  .host-choice-band { grid-template-columns: 1fr; align-items: start; }
  .host-choice-band > .feature-icon { width: 2.5rem; }
}

@media (max-width: 575.98px) {
  .host-choice-links { grid-template-columns: 1fr; }
  .theme-choice-visual { aspect-ratio: 16 / 8; }
}

.demo-page-intro {
  padding: var(--section-space) 0 var(--section-space-compact);
}

.industry-demo-layout {
  display: grid;
  grid-template-columns: minmax(12rem, 15rem) minmax(0, 1fr);
  gap: clamp(1.25rem, 3vw, 2.5rem);
  align-items: start;
}

.industry-demo-sidebar {
  position: sticky;
  top: calc(var(--header-offset) + 1rem);
  border: 1px solid color-mix(in srgb, var(--accent) 18%, var(--line));
  border-radius: .75rem;
  padding: 1rem;
  background: var(--surface);
  box-shadow: var(--card-shadow);
}

.industry-sidebar-heading {
  margin-bottom: .85rem;
  border-bottom: 1px solid var(--line);
  padding-bottom: .8rem;
}

.industry-sidebar-heading .eyebrow { margin-bottom: .35rem; }
.industry-sidebar-heading h2 { margin: 0; font-size: 1.05rem; }
.industry-sidebar-heading p { margin: .35rem 0 0; color: var(--muted); font-size: .74rem; line-height: 1.5; }
.industry-demo-main { min-width: 0; }

.industry-example-tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .65rem;
  width: min(100%, 56rem);
  margin: 0 auto 1rem;
  border-bottom: 1px solid var(--line);
  padding-bottom: .7rem;
}

.industry-example-tabs button {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: .7rem;
  border: 1px solid var(--line);
  border-radius: .7rem;
  padding: .72rem .8rem;
  background: var(--surface);
  color: var(--muted);
  text-align: left;
  box-shadow: 0 5px 16px rgb(35 42 78 / 6%);
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease, color 180ms ease, box-shadow 180ms ease;
}

.industry-example-tabs button:hover,
.industry-example-tabs button:focus-visible {
  transform: translateY(-2px);
  border-color: color-mix(in srgb, var(--accent) 46%, var(--line));
  color: var(--ink);
  box-shadow: 0 9px 22px rgb(35 42 78 / 10%);
}

.industry-example-tabs button.is-active {
  border-color: color-mix(in srgb, var(--tab-color, var(--accent)) 62%, var(--line));
  background: linear-gradient(135deg, color-mix(in srgb, var(--tab-color, var(--accent)) 12%, var(--surface)), var(--surface));
  color: var(--ink);
  box-shadow: inset 0 3px 0 var(--tab-color, var(--accent)), 0 9px 22px color-mix(in srgb, var(--tab-color, var(--accent)) 13%, transparent);
}

.industry-example-tabs button[data-industry-view="editor"] { --tab-color: #6558e8; }
.industry-example-tabs button[data-industry-view="output"] { --tab-color: #16845b; }
.industry-example-tabs button > span:last-child { display: grid; min-width: 0; gap: .12rem; }
.industry-example-tabs strong { font-size: .78rem; }
.industry-example-tabs small { color: var(--muted); font-size: .6rem; line-height: 1.35; }

.industry-tab-icon {
  display: grid;
  width: 2.15rem;
  height: 2.15rem;
  flex: 0 0 auto;
  place-items: center;
  border-radius: .58rem;
  background: color-mix(in srgb, var(--tab-color, var(--accent)) 12%, var(--surface));
  color: var(--tab-color, var(--accent));
  font-size: 1rem;
}

.industry-tab-stage { min-width: 0; }
.industry-tab-stage [role="tabpanel"][hidden] { display: none !important; }

.industry-example-flow {
  display: grid;
  gap: 0;
  margin-top: 0;
}

.industry-editor-column,
.industry-output-column {
  width: min(100%, 56rem);
  margin-inline: auto;
}

.industry-editor-column {
  padding: 0;
  background: transparent;
}

.industry-panel-heading,
.industry-output-heading {
  margin-bottom: .9rem;
  padding-bottom: .8rem;
  border-bottom: 1px solid var(--line);
}

.industry-panel-heading p,
.industry-output-heading p {
  margin: .35rem 0 0;
  color: var(--muted);
  font-size: .86rem;
  line-height: 1.55;
}

.industry-example-flow .editra-demo-host {
  min-width: 0;
  max-width: 100%;
}

.industry-example-flow .industry-output-column {
  max-width: 56rem;
}

.industry-example-flow .industry-pdf-preview,
.industry-example-flow .phone-output-preview {
  margin-top: 0;
}

.document-demo-shell {
  border: 1px solid color-mix(in srgb, var(--accent) 20%, var(--line));
  border-radius: var(--card-radius);
  padding: clamp(.5rem, 2vw, 1rem);
  background: linear-gradient(145deg, var(--surface-muted), color-mix(in srgb, var(--accent-soft) 42%, var(--surface)));
  box-shadow: var(--shadow);
}

.document-demo-shell .demo-panel {
  margin: 0;
  padding: 0;
  overflow: visible;
  border: 0;
  box-shadow: none;
}

.document-demo-shell .editra-card {
  width: 100%;
  max-width: 100%;
}

.document-demo-note {
  display: flex;
  flex-wrap: wrap;
  gap: .65rem 1.25rem;
  margin-bottom: .85rem;
  color: var(--muted);
  font-size: .8rem;
}

.document-demo-note span {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
}

.document-demo-note i {
  color: var(--accent);
}

.industry-gallery-visual {
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--accent) 20%, var(--line));
  border-radius: var(--card-radius);
  background: #fff;
  box-shadow: 0 24px 60px rgb(38 45 76 / 18%);
}

.industry-gallery-visual img {
  display: block;
  width: 100%;
  height: auto;
}

.industry-switcher {
  display: grid;
  grid-template-columns: 1fr;
  gap: .42rem;
  margin-bottom: .85rem;
}

.industry-switcher button {
  --industry-color: var(--accent);
  min-height: 3.15rem;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: .5rem;
  border: 1px solid color-mix(in srgb, var(--industry-color) 34%, var(--line));
  border-radius: .62rem;
  padding: .58rem .68rem;
  background: color-mix(in srgb, var(--industry-color) 7%, var(--surface));
  color: var(--ink);
  font-size: .78rem;
  font-weight: 750;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.industry-switcher button > span {
  min-width: 0;
  flex: 1 1 auto;
  text-align: left;
}

.industry-switcher .industry-menu-arrow {
  flex: 0 0 auto;
  color: color-mix(in srgb, var(--industry-color) 65%, var(--muted));
  font-size: .72rem;
  opacity: .58;
  transition: transform 180ms ease, opacity 180ms ease;
}

.industry-switcher button:hover .industry-menu-arrow,
.industry-switcher button:focus-visible .industry-menu-arrow,
.industry-switcher button.is-active .industry-menu-arrow {
  transform: translateX(2px);
  opacity: 1;
}

.industry-demo-sidebar .document-demo-note {
  display: grid;
  gap: .48rem;
  margin: 0;
  border-top: 1px solid var(--line);
  padding-top: .8rem;
  font-size: .7rem;
}

.industry-switcher button[data-industry-key="healthcare"] { --industry-color: #4b55d6; }
.industry-switcher button[data-industry-key="education"] { --industry-color: #058895; }
.industry-switcher button[data-industry-key="hr"] { --industry-color: #df6249; }
.industry-switcher button[data-industry-key="manufacturing"] { --industry-color: #ad7809; }
.industry-switcher button[data-industry-key="finance"] { --industry-color: #16845b; }
.industry-switcher button[data-industry-key="legal"] { --industry-color: #7251b5; }
.industry-switcher button[data-industry-key="payslip"] { --industry-color: #b64c72; }
.industry-switcher button[data-industry-key="sms"] { --industry-color: #3566c7; }
.industry-switcher button[data-industry-key="whatsapp"] { --industry-color: #16845b; }
.industry-switcher button[data-industry-key="retail"] { --industry-color: #c2571a; }
.industry-switcher button[data-industry-key="realestate"] { --industry-color: #2f7d62; }
.industry-switcher button[data-industry-key="travel"] { --industry-color: #3566c7; }

.industry-switcher button:not([data-industry-key="retail"]):not([data-industry-key="realestate"]):not([data-industry-key="travel"]) i { color: var(--industry-color); }

.industry-switcher button[data-industry-key="retail"] i,
.industry-switcher button[data-industry-key="realestate"] i,
.industry-switcher button[data-industry-key="travel"] i {
  color: transparent;
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 2px 4px rgb(48 55 108 / 16%));
}

.industry-switcher button[data-industry-key="retail"] i {
  background-image: linear-gradient(135deg, #c2571a 8%, #e83e8c 52%, #7c3aed 94%);
}

.industry-switcher button[data-industry-key="realestate"] i {
  background-image: linear-gradient(135deg, #2f7d62 8%, #0ea5e9 52%, #4f46e5 94%);
}

.industry-switcher button[data-industry-key="travel"] i {
  background-image: linear-gradient(135deg, #3566c7 8%, #06b6d4 52%, #22c55e 94%);
}

.industry-switcher button:hover,
.industry-switcher button:focus-visible,
.industry-switcher button.is-active {
  transform: translateY(-2px);
  border-color: color-mix(in srgb, var(--industry-color) 68%, var(--line));
  background: linear-gradient(145deg, color-mix(in srgb, var(--industry-color) 9%, var(--surface)), color-mix(in srgb, var(--industry-color) 17%, var(--surface)));
  color: color-mix(in srgb, var(--industry-color) 74%, var(--ink));
  box-shadow: 0 10px 25px rgb(50 55 110 / 11%);
}

.industry-switcher button i {
  font-size: 1.1rem;
}

.industry-demo-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1.25rem;
  align-items: start;
}

.industry-editor-column {
  scroll-margin-top: 6.5rem;
}

.industry-panel-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: .75rem;
}

.industry-panel-heading .eyebrow {
  margin-bottom: .35rem;
}

.industry-panel-heading h2,
.industry-output-column > h2 {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 750;
  letter-spacing: -.03em;
}

.industry-output-column {
  position: static;
  width: min(100%, 44rem);
  margin: .35rem auto 0;
}

.industry-output-column > .eyebrow {
  margin-bottom: .35rem;
}

.industry-pdf-preview {
  --pdf-accent: #4b55d6;
  overflow: hidden;
  margin: .75rem 0 0;
  border: 1px solid color-mix(in srgb, var(--pdf-accent) 22%, var(--line));
  border-radius: .7rem;
  background: #fff;
  box-shadow: 0 18px 42px rgb(37 42 72 / 16%);
  color: #1d2536;
}

.industry-pdf-preview:not(.d-none),
.phone-output-preview:not(.d-none) {
  animation: pdf-preview-enter 420ms cubic-bezier(.2, .75, .25, 1) both;
}

@keyframes pdf-preview-enter {
  from { opacity: 0; transform: translateY(10px) scale(.992); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.industry-pdf-preview--2 { --pdf-accent: #058895; }
.industry-pdf-preview--3 { --pdf-accent: #df6249; }
.industry-pdf-preview--4 { --pdf-accent: #ad7809; }
.industry-pdf-preview--5 { --pdf-accent: #16845b; }
.industry-pdf-preview--6 { --pdf-accent: #7251b5; }
.industry-pdf-preview--7 { --pdf-accent: #b64c72; }
.industry-pdf-preview--8 { --pdf-accent: #3566c7; }
.industry-pdf-preview--9 { --pdf-accent: #16845b; }
.industry-pdf-preview--10 { --pdf-accent: #c2571a; --pdf-accent-2: #e83e8c; --pdf-accent-3: #7c3aed; }
.industry-pdf-preview--11 { --pdf-accent: #2f7d62; --pdf-accent-2: #0ea5e9; --pdf-accent-3: #4f46e5; }
.industry-pdf-preview--12 { --pdf-accent: #3566c7; --pdf-accent-2: #06b6d4; --pdf-accent-3: #22c55e; }

.pdf-sheet-bar {
  min-height: 3rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .5rem;
  padding: .65rem .8rem;
  background: linear-gradient(135deg, var(--pdf-accent) 8%, var(--pdf-accent-2, color-mix(in srgb, var(--pdf-accent) 78%, #121936)) 52%, var(--pdf-accent-3, color-mix(in srgb, var(--pdf-accent) 58%, #121936)) 94%);
  color: #fff;
}

.pdf-sheet-bar span {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  font-size: .78rem;
  font-weight: 800;
}

.pdf-sheet-bar small {
  color: rgb(255 255 255 / 76%);
  font-size: .58rem;
  font-weight: 750;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.pdf-sheet-body {
  position: relative;
  min-height: 32rem;
  aspect-ratio: 210 / 297;
  padding: 1.05rem;
  background:
    radial-gradient(circle at 94% 5%, color-mix(in srgb, var(--pdf-accent-2, #0fb8c9) 12%, transparent), transparent 18%),
    radial-gradient(circle at 4% 96%, color-mix(in srgb, var(--pdf-accent-3, #f3a712) 10%, transparent), transparent 22%),
    linear-gradient(color-mix(in srgb, var(--pdf-accent) 4%, transparent) 1px, transparent 1px) 0 0 / 100% 1.8rem,
    #fff;
}

.pdf-sheet-title {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: .6rem;
  border-bottom: 2px solid color-mix(in srgb, var(--pdf-accent) 22%, #e8eaf0);
  padding-bottom: .75rem;
}

.pdf-sheet-title small { color: var(--pdf-accent); font-size: .58rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.pdf-sheet-title h3 { margin: .15rem 0; font-size: 1rem; }
.pdf-sheet-title p { margin: 0; color: #697386; font-size: .65rem; }
.pdf-status { display: inline-flex; align-items: center; gap: .2rem; border-radius: 999px; padding: .3rem .48rem; background: color-mix(in srgb, var(--pdf-accent) 10%, #fff); color: var(--pdf-accent); font-size: .55rem; font-weight: 800; white-space: nowrap; }

.pdf-data-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .45rem;
  margin: .8rem 0;
}

.pdf-data-grid span { border: 1px solid #e4e7ee; border-radius: .38rem; padding: .45rem; background: #f8f9fc; }
.pdf-data-grid small, .pdf-data-grid strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pdf-data-grid small { color: #7b8495; font-size: .5rem; text-transform: uppercase; }
.pdf-data-grid strong { font-size: .58rem; }

.pdf-chart {
  height: 6.3rem;
  display: flex;
  align-items: end;
  gap: .45rem;
  border: 1px solid #e4e7ee;
  border-radius: .4rem;
  padding: .65rem;
  background: #fbfcfe;
}

.pdf-chart span { width: 25%; height: var(--bar); border-radius: .24rem .24rem 0 0; background: linear-gradient(var(--pdf-accent), color-mix(in srgb, var(--pdf-accent) 45%, #fff)); }
.pdf-chart span:nth-child(2) { background: linear-gradient(#0fb8c9, #9deaf0); }
.pdf-chart span:nth-child(3) { background: linear-gradient(#f3a712, #ffe1a2); }
.pdf-chart span:nth-child(4) { background: linear-gradient(#16a579, #a4e6d2); }

.pdf-record-table {
  width: 100%;
  margin-top: .8rem;
  border-collapse: separate;
  border-spacing: 0;
  overflow: hidden;
  border: 1px solid #e1e5ed;
  border-radius: .45rem;
  font-size: .56rem;
}

.pdf-record-table :is(th, td) {
  border-bottom: 1px solid #e7eaf0;
  padding: .42rem .48rem;
  text-align: left;
}

.pdf-record-table tr:last-child :is(th, td) { border-bottom: 0; }
.pdf-record-table th { background: color-mix(in srgb, var(--pdf-accent) 9%, #fff); color: var(--pdf-accent); font-weight: 800; }

.pdf-note {
  display: grid;
  gap: .18rem;
  margin-top: .7rem;
  border-left: 3px solid var(--pdf-accent);
  border-radius: .28rem;
  padding: .55rem .65rem;
  background: color-mix(in srgb, var(--pdf-accent) 6%, #fff);
  font-size: .57rem;
  line-height: 1.45;
}

.pdf-note strong { color: var(--pdf-accent); font-size: .6rem; }
.pdf-note-emphasis { border-left-width: 5px; background: color-mix(in srgb, var(--pdf-accent) 12%, #fff); }
.pdf-note-emphasis span { color: #1d2536; font-size: .78rem; font-weight: 800; }

.editra-editor .industry-editor-output-match {
  width: 100%;
  box-sizing: border-box;
  font-family: Inter, ui-sans-serif, sans-serif;
  letter-spacing: normal;
}

/* Keep A4 proportions in the final preview, but fit the editable template to its content. */
.editra-editor .industry-editor-output-match .pdf-sheet-body {
  min-height: 0;
  aspect-ratio: auto;
}

.editra-editor .industry-editor-output-match .pdf-sheet-title h3 {
  margin: .15rem 0;
  font-size: 1rem;
  letter-spacing: normal;
}

.editra-editor .industry-editor-output-match .pdf-sheet-title p {
  margin: 0;
  font-size: .65rem;
}

.editra-editor .industry-editor-output-match .pdf-record-table {
  width: 100%;
  margin-top: .8rem;
  border-collapse: separate;
  border-spacing: 0;
  font-size: .56rem;
}

.editra-editor .industry-editor-output-match .pdf-record-table :is(th, td) {
  min-width: 0;
  border: 0;
  border-bottom: 1px solid #e7eaf0;
  padding: .42rem .48rem;
  vertical-align: top;
}

.editra-editor .industry-editor-output-match .pdf-record-table tr:last-child :is(th, td) {
  border-bottom: 0;
}

.pdf-message-card {
  display: grid;
  gap: .6rem;
  margin-top: .9rem;
  border: 1px solid color-mix(in srgb, var(--pdf-accent) 22%, #dfe4ec);
  border-radius: .8rem;
  padding: .9rem;
  background: linear-gradient(145deg, color-mix(in srgb, var(--pdf-accent) 7%, #fff), #fff);
  box-shadow: 0 10px 24px color-mix(in srgb, var(--pdf-accent) 10%, transparent);
  font-size: .68rem;
  line-height: 1.55;
}
.pdf-message-card--sms { border-radius: 1rem 1rem 1rem .3rem; }
.pdf-message-card--whatsapp { border-radius: 1rem 1rem .3rem 1rem; background: linear-gradient(145deg, #e9f8f0, #fff); }
.pdf-message-card p { margin: 0; }
.pdf-message-card > small { color: #697386; font-size: .56rem; }
.pdf-message-app { display: flex; align-items: center; gap: .4rem; color: var(--pdf-accent); font-size: .62rem; font-weight: 800; }
.pdf-message-app i { font-size: .9rem; }

.message-template-editor {
  display: grid;
  gap: .75rem;
  margin: 0;
  border: 1px solid #cfd8e8;
  border-radius: .85rem;
  padding: 1rem;
  background: #f6f8fc;
  color: #1d2738;
  font-size: .78rem;
  line-height: 1.6;
}

.message-template-editor--sms { border-left: 4px solid #3566c7; }
.message-template-editor--whatsapp { border-left: 4px solid #16845b; background: #f1faf5; }
.message-template-editor p { margin: 0; }

.phone-output-preview {
  --pdf-accent: #3566c7;
  overflow: hidden;
  margin: .75rem 0 0;
  border: 1px solid color-mix(in srgb, var(--pdf-accent) 24%, var(--line));
  border-radius: .9rem;
  background: var(--surface);
  box-shadow: 0 20px 48px rgb(25 31 58 / 18%);
}

.phone-output-heading {
  min-height: 3.3rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  padding: .7rem .9rem;
  background: linear-gradient(135deg, var(--pdf-accent), color-mix(in srgb, var(--pdf-accent) 58%, #11182d));
  color: #fff;
}
.phone-output-heading span { display: inline-flex; align-items: center; gap: .45rem; font-size: .78rem; font-weight: 800; }
.phone-output-heading small { color: rgb(255 255 255 / 78%); font-size: .58rem; font-weight: 750; }

.phone-output-stage {
  display: grid;
  min-height: 43rem;
  place-items: center;
  padding: clamp(1.5rem, 5vw, 3rem);
  background:
    radial-gradient(circle at 18% 10%, rgb(15 184 201 / 20%), transparent 28%),
    radial-gradient(circle at 82% 88%, rgb(243 167 18 / 16%), transparent 30%),
    linear-gradient(145deg, #edf0fb, #f9fafc 52%, #e7f7f6);
}

.iphone-device {
  position: relative;
  width: min(100%, 20rem);
  aspect-ratio: 9 / 19.5;
  border: .34rem solid #202227;
  border-radius: 2.8rem;
  padding: .34rem;
  background: linear-gradient(145deg, #62666f, #111318 24%, #383b43 78%, #121318);
  box-shadow: 0 30px 60px rgb(16 20 34 / 32%), inset 0 0 0 1px rgb(255 255 255 / 28%);
}
.iphone-side-button { position: absolute; top: 8rem; right: -.48rem; width: .18rem; height: 4.5rem; border-radius: 0 .2rem .2rem 0; background: #2b2d33; }
.iphone-screen { position: relative; height: 100%; overflow: hidden; border-radius: 2.15rem; background: #f7f7f8; color: #111318; font-family: "Inter", "Segoe UI", sans-serif; }
.iphone-island { position: absolute; z-index: 5; top: .55rem; left: 50%; width: 6.1rem; height: 1.55rem; transform: translateX(-50%); border-radius: 999px; background: #050506; }
.iphone-status { display: flex; align-items: center; justify-content: space-between; height: 2.8rem; padding: .7rem 1rem .25rem; font-size: .62rem; }
.iphone-status > span { display: inline-flex; align-items: center; gap: .28rem; font-size: .68rem; }
.iphone-home-indicator { position: absolute; z-index: 6; bottom: .32rem; left: 50%; width: 6.8rem; height: .26rem; transform: translateX(-50%); border-radius: 999px; background: #111318; }

.phone-app { display: grid; grid-template-rows: auto minmax(0, 1fr) auto; height: calc(100% - 2.8rem); }
.phone-app-header { display: grid; grid-template-columns: auto auto minmax(0, 1fr) auto; align-items: center; gap: .45rem; min-height: 3.55rem; border-bottom: 1px solid #dadde4; padding: .45rem .65rem; background: rgb(255 255 255 / 94%); }
.phone-app-header > i { color: #1779e6; font-size: .9rem; }
.phone-contact-avatar { display: grid; width: 2.15rem; height: 2.15rem; place-items: center; border-radius: 50%; background: linear-gradient(135deg, #3566c7, #1ab6c5); color: #fff; }
.phone-app--whatsapp .phone-contact-avatar { background: linear-gradient(135deg, #128c7e, #25d366); }
.phone-app-header strong,
.phone-app-header small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.phone-app-header strong { font-size: .68rem; }
.phone-app-header small { margin-top: .08rem; color: #747b88; font-size: .48rem; }

.phone-chat { display: flex; min-height: 0; flex-direction: column; padding: .8rem .55rem; background: linear-gradient(#f5f6f8, #eef0f4); }
.phone-app--whatsapp .phone-chat { background: linear-gradient(rgb(238 231 220 / 90%), rgb(229 220 208 / 92%)), radial-gradient(#c7b9a8 1px, transparent 1px) 0 0 / 12px 12px; }
.phone-chat-date { align-self: center; margin-bottom: .55rem; border-radius: 999px; padding: .22rem .48rem; background: rgb(80 84 94 / 10%); color: #717783; font-size: .46rem; font-weight: 700; }
.phone-encryption { align-self: center; max-width: 84%; margin-bottom: .65rem; border-radius: .35rem; padding: .28rem .45rem; background: #fff2c9; color: #7d6a27; font-size: .43rem; text-align: center; }
.phone-message-bubble { align-self: flex-end; max-width: 88%; border-radius: 1rem 1rem .25rem 1rem; padding: .68rem .72rem .42rem; background: #1684f8; color: #fff; box-shadow: 0 6px 16px rgb(32 74 132 / 16%); font-size: .61rem; line-height: 1.48; }
.phone-app--whatsapp .phone-message-bubble { background: #d9fdd3; color: #17221b; box-shadow: 0 5px 14px rgb(59 88 67 / 14%); }
.phone-message-bubble > span { display: block; margin-top: .35rem; color: rgb(255 255 255 / 72%); font-size: .43rem; text-align: right; }
.phone-app--whatsapp .phone-message-bubble > span { color: #758279; }
.phone-app--whatsapp .phone-message-bubble > span i { color: #1684c7; font-size: .58rem; }
.phone-composer { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: .45rem; min-height: 3rem; border-top: 1px solid #d8dbe1; padding: .45rem .6rem .7rem; background: #fafafa; color: #747b88; }
.phone-composer span { border: 1px solid #ccd0d7; border-radius: 999px; padding: .42rem .7rem; color: #9aa0aa; font-size: .5rem; }
.phone-output-preview figcaption { display: flex; align-items: center; gap: .35rem; border-top: 1px solid var(--line); padding: .7rem .9rem; background: var(--surface-muted); color: var(--muted); font-size: .62rem; }
.phone-output-preview figcaption i { color: var(--pdf-accent); font-size: .9rem; }

.pdf-certificate {
  display: grid;
  place-items: center;
  margin-top: .8rem;
  border: 3px double var(--pdf-accent);
  padding: .7rem;
  text-align: center;
}
.pdf-certificate i { color: #e8a10a; font-size: 1.45rem; }
.pdf-certificate strong, .pdf-certificate small { display: block; }
.pdf-certificate strong { color: var(--pdf-accent); font-family: "Poppins", sans-serif; font-size: .7rem; }
.pdf-certificate small { color: #697386; font-size: .52rem; }

.pdf-code-row { display: flex; align-items: center; gap: .8rem; margin-top: .8rem; }
.pdf-qr { width: 3.9rem; height: 3.9rem; border: .25rem solid #fff; outline: 1px solid #222; background: repeating-conic-gradient(#111 0 25%, #fff 0 50%) 0 0 / .72rem .72rem; }
.pdf-barcode { height: 3.1rem; flex: 1; border-block: .35rem solid #fff; background: repeating-linear-gradient(90deg, #111 0 2px, transparent 2px 4px, #111 4px 7px, transparent 7px 9px); }
.pdf-code-copy { display: grid; flex: 0 1 12rem; gap: .18rem; }
.pdf-code-copy strong { color: var(--pdf-accent); font-size: .62rem; }
.pdf-code-copy span { color: #242a38; font-size: .57rem; font-weight: 700; }
.pdf-code-copy small { color: #697386; font-size: .5rem; }
.pdf-note-multilingual { border-left-color: #7251b5; background: linear-gradient(90deg, #f5f1ff, #fff8ee); }

.pdf-summary-lines { display: grid; gap: .42rem; margin-top: 1rem; }
.pdf-summary-lines span { height: .32rem; border-radius: 99px; background: #e3e6ed; }
.pdf-summary-lines .short { width: 64%; }
.pdf-signature { display: flex; align-items: end; justify-content: space-between; margin-top: 2rem; border-top: 1px solid #c9ced8; padding-top: .35rem; color: #70798a; font-size: .52rem; }
.pdf-signature i { color: var(--pdf-accent); font-size: 1.15rem; }
.industry-pdf-preview figcaption { display: flex; align-items: center; gap: .35rem; border-top: 1px solid #e4e7ee; padding: .65rem .8rem; background: #f4f6fa; color: #687286; font-size: .58rem; line-height: 1.35; }
.industry-pdf-preview figcaption i { color: #d1463b; font-size: .9rem; }

.industry-demo-grid :is(.editra-toolbar) {
  min-height: 58px;
}

.industry-demo-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: .8rem;
}

.industry-demo-footer p {
  max-width: 52rem;
  margin: 0;
  color: var(--muted);
  font-size: .76rem;
  line-height: 1.55;
}

.industry-demo-footer > div {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
}

.demo-experience .editra-toolbar {
  min-height: 58px;
}

.variant-benefits {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .75rem;
  margin-bottom: 1rem;
}

.variant-benefits p {
  margin: 0;
  border: 1px solid var(--line);
  border-radius: var(--card-radius);
  padding: .85rem;
  background: var(--surface-muted);
  color: var(--muted);
  font-size: .78rem;
  line-height: 1.55;
}

.variant-benefits strong { display: block; margin-bottom: .2rem; color: var(--ink); }

.package-badge-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .65rem;
}

.package-badge-row img { display: block; width: auto; height: 20px; }

.variant-switcher {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .5rem;
  margin-bottom: 1rem;
  border: 1px solid var(--line);
  border-radius: var(--card-radius);
  padding: .7rem;
  background: var(--surface-muted);
}

.variant-switcher > span { margin-right: .25rem; color: var(--muted); font-size: .78rem; font-weight: 700; }
.variant-switcher button,
.modular-actions button {
  border: 1px solid color-mix(in srgb, var(--accent) 34%, var(--line));
  border-radius: .45rem;
  padding: .48rem .72rem;
  background: color-mix(in srgb, var(--accent-soft) 58%, var(--surface));
  color: var(--accent-strong);
  font-size: .75rem;
  font-weight: 700;
}

.variant-switcher button[aria-pressed="true"],
.modular-actions button.is-loaded {
  border-color: var(--accent);
  background: var(--accent);
  color: #fff;
}

.variant-switcher button:hover,
.variant-switcher button:focus-visible,
.modular-actions button:hover,
.modular-actions button:focus-visible {
  border-color: var(--accent);
  background: color-mix(in srgb, var(--accent) 16%, var(--surface));
  color: var(--accent-strong);
}

.ecosystem-orbit {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .8rem;
  padding: 1rem;
}

.ecosystem-core,
.ecosystem-node {
  display: grid;
  place-items: center;
  min-height: 7rem;
  border: 1px solid var(--line);
  border-radius: .7rem;
  padding: 1rem;
  background: var(--surface-muted);
  color: var(--ink);
  text-align: center;
}

.ecosystem-core { grid-column: 1 / -1; background: linear-gradient(135deg, var(--accent-soft), var(--cyan-soft)); }
.ecosystem-core i { color: var(--accent); font-size: 2rem; }
.ecosystem-node i { color: var(--accent-strong); font-size: 1.25rem; }
.ecosystem-node span { color: var(--muted); font-size: .76rem; font-weight: 700; }

.modular-actions { display: flex; flex-wrap: wrap; gap: .5rem; margin: 1rem 0; }
.modular-monitor ul { display: grid; gap: .5rem; margin: 0; padding: 0; list-style: none; }
.modular-monitor li { display: flex; align-items: center; gap: .5rem; color: var(--muted); font-size: .76rem; }
.modular-monitor li i { color: var(--green); }

.docs-mini-banner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(13rem, 15.5rem);
  gap: clamp(1.25rem, 3vw, 2rem);
  align-items: center;
  min-height: 17rem;
  margin-bottom: 2rem;
  border-radius: 12px !important;
  padding: clamp(1.75rem, 3.8vw, 2.75rem);
  background: linear-gradient(135deg, var(--surface), var(--surface-muted));
  color: var(--ink);
  text-decoration: none;
  transition: transform 200ms ease, border-color 200ms ease, box-shadow 200ms ease;
}

.home-live-editor-heading {
  display: flex;
  align-items: center;
  flex-direction: column;
  gap: 1rem;
  max-width: 62rem;
  margin: 0 auto 1.5rem;
  text-align: center;
}

.home-live-editor-heading > div {
  flex: 1;
}

.home-live-editor-heading .section-lead {
  margin-inline: auto;
}

.home-live-editor-heading .section-title {
  font-size: clamp(1.55rem, 2.15vw, 1.95rem);
  letter-spacing: -.03em;
}

.home-live-editor-icon {
  display: grid;
  flex: 0 0 3.25rem;
  width: 3.25rem;
  height: 3.25rem;
  place-items: center;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--accent), var(--cyan));
  color: #fff;
  box-shadow: 0 12px 28px rgb(80 78 210 / 24%);
  font-size: 1.35rem;
}

.home-live-editor-showcase {
  border: 1px solid color-mix(in srgb, var(--accent) 25%, var(--line));
  border-radius: 18px;
  padding: clamp(1.25rem, 3vw, 2.4rem);
  background: linear-gradient(145deg, var(--surface), color-mix(in srgb, var(--accent-soft) 34%, var(--surface)) 52%, color-mix(in srgb, var(--cyan-soft) 35%, var(--surface)));
  box-shadow: 0 28px 72px rgb(44 50 112 / 14%);
}

.home-live-editor-shell {
  max-width: 62rem;
  margin-inline: auto;
  border: 1px solid color-mix(in srgb, var(--accent) 28%, var(--line));
  border-radius: 12px;
  padding: clamp(.45rem, 1.2vw, .8rem);
  background: linear-gradient(135deg, color-mix(in srgb, var(--accent-soft) 65%, var(--surface)), color-mix(in srgb, var(--cyan-soft) 58%, var(--surface)));
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 72%);
}

.home-live-editor-shell .demo-panel {
  margin: 0;
  padding: clamp(.5rem, 1.5vw, 1rem);
  background: var(--surface);
}

.home-live-editor-shell .editra-editor {
  margin-inline: auto;
}

.home-live-editor-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 1.5rem;
  max-width: 62rem;
  margin: 1.25rem auto 0;
}

.home-live-editor-features,
.home-live-editor-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .65rem;
}

.home-live-editor-features span {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  color: var(--muted);
  font-size: .72rem;
  font-weight: 700;
}

.home-live-editor-features i { color: var(--green); }
.home-live-editor-actions { justify-content: flex-end; }

.home-capability-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .9rem;
}

.home-capability-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: .9rem;
  align-items: start;
  min-height: 8rem;
  border: 1px solid color-mix(in srgb, var(--capability-color) 26%, var(--line));
  border-radius: 12px;
  padding: 1.2rem;
  background: linear-gradient(135deg, var(--surface), color-mix(in srgb, var(--capability-color) 7%, var(--surface)));
  box-shadow: var(--card-shadow);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.home-capability-card--1 { --capability-color: #6558e8; }
.home-capability-card--2 { --capability-color: #0b98a5; }
.home-capability-card--3 { --capability-color: #d96b35; }
.home-capability-card--4 { --capability-color: #16845b; }

.home-capability-card:hover {
  transform: translateY(-2px);
  border-color: var(--capability-color);
  box-shadow: var(--card-shadow-hover);
}

.home-capability-icon {
  display: grid;
  width: 2.7rem;
  height: 2.7rem;
  place-items: center;
  border-radius: 10px;
  background: color-mix(in srgb, var(--capability-color) 13%, var(--surface));
  color: var(--capability-color);
  font-size: 1.05rem;
}

.home-capability-card h3 { margin: .05rem 0 .35rem; font-size: 1rem; }
.home-capability-card p { margin: 0; color: var(--muted); font-size: .82rem; line-height: 1.6; }

@media (min-width: 992px) {
  .home-live-editor-heading .section-title {
    white-space: nowrap;
  }
}

.docs-banner-copy {
  position: relative;
  padding: .2rem 0;
}

.docs-mini-banner:hover,
.docs-mini-banner:focus-visible {
  transform: translateY(-2px);
  border-color: color-mix(in srgb, var(--accent) 42%, var(--line));
  color: var(--ink);
  box-shadow: 0 20px 46px rgb(36 42 78 / 15%);
}

.docs-mini-banner:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--accent) 38%, transparent);
  outline-offset: 3px;
}

.docs-mini-banner .eyebrow { margin-bottom: .65rem; color: var(--accent-strong); }
.docs-mini-banner .eyebrow i { color: var(--violet); }
.docs-mini-banner .banner-script {
  width: fit-content;
  margin: .1rem 0 .45rem;
  color: var(--accent-strong);
  font-family: "Caveat", "Poppins", sans-serif;
  font-size: clamp(1.45rem, 3vw, 2.2rem);
  font-weight: 600;
  line-height: 1.05;
}
.docs-mini-banner h1 {
  margin: 0 0 .55rem;
  color: var(--ink);
  font-family: "Poppins", "Inter", sans-serif;
  font-size: clamp(1.75rem, 3vw, 2.55rem);
  font-weight: 800;
  letter-spacing: -.04em;
  line-height: 1.05;
}
.docs-mini-banner .section-lead { display: -webkit-box; margin: 0; overflow: hidden; font-size: .92rem; line-height: 1.6; -webkit-box-orient: vertical; -webkit-line-clamp: 3; }

.docs-banner-action {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  margin-top: .72rem;
  color: var(--accent-strong);
  font-size: .72rem;
  font-weight: 800;
}

.docs-mini-banner:hover .docs-banner-action i { transform: translate(2px, -2px); }
.docs-banner-action i { transition: transform 180ms ease; }

.docs-tool-visual {
  position: relative;
  display: grid;
  grid-template-rows: 1.6rem 2.65rem 1fr;
  align-self: stretch;
  width: 100%;
  min-height: 12.5rem;
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--accent) 20%, var(--line));
  border-radius: 10px;
  background: var(--surface);
  box-shadow: 0 14px 32px rgb(37 41 80 / 12%);
}

.docs-visual-window-bar,
.docs-visual-toolbar,
.docs-visual-topic { position: relative; z-index: 2; display: flex; align-items: center; }
.docs-visual-window-bar { gap: .3rem; padding: .38rem .55rem; border-bottom: 1px solid var(--line); background: var(--surface-muted); }
.docs-visual-window-bar > span { width: .4rem; height: .4rem; border-radius: 50%; background: var(--coral); }
.docs-visual-window-bar > span:nth-child(2) { background: var(--gold); }
.docs-visual-window-bar > span:nth-child(3) { background: var(--green); }
.docs-visual-window-bar small { margin-left: auto; color: var(--muted); font-size: .55rem; font-weight: 700; }
.docs-visual-toolbar { min-height: 2.65rem; gap: .36rem; border-bottom: 1px solid var(--line); padding: .42rem .55rem; background: color-mix(in srgb, var(--surface-muted) 90%, transparent); }
.docs-visual-tool { width: 1.85rem; height: 1.75rem; display: grid; flex: 0 0 1.85rem; place-items: center; border: 1px solid var(--line); border-radius: .38rem; background: color-mix(in srgb, var(--surface) 90%, transparent); color: var(--accent-strong); }
.docs-tool-visual .docs-visual-tool i { font-size: .76rem; }
.docs-visual-tool:nth-child(1) { color: var(--violet); background: color-mix(in srgb, var(--violet) 10%, var(--surface)); }
.docs-visual-tool:nth-child(2) { color: #087f8a; background: color-mix(in srgb, var(--cyan) 11%, var(--surface)); }
.docs-visual-tool:nth-child(3) { color: #c64f43; background: color-mix(in srgb, var(--coral) 10%, var(--surface)); }
.docs-visual-tool:nth-child(4) { color: #a56d00; background: color-mix(in srgb, var(--gold) 12%, var(--surface)); }
.docs-visual-canvas { position: relative; z-index: 1; display: grid; align-content: start; padding: .72rem; background: color-mix(in srgb, var(--surface) 97%, var(--accent-soft)); }
.docs-visual-topic { gap: .55rem; padding: 0 0 .55rem; }
.docs-visual-topic i { width: 1.65rem; height: 1.65rem; display: grid; flex: 0 0 1.65rem; place-items: center; border-radius: .4rem; background: linear-gradient(135deg, var(--accent), var(--cyan)); color: #fff; font-size: .76rem; }
.docs-visual-topic strong { color: var(--ink); font-family: "Poppins", sans-serif; font-size: .67rem; line-height: 1.25; }
.docs-visual-canvas h2 { margin: 0 0 .22rem; color: var(--ink); font-size: .72rem; font-weight: 750; }
.docs-visual-canvas p { margin: 0 0 .55rem; color: var(--muted); font-size: .57rem; line-height: 1.45; }
.docs-visual-lines { display: grid; gap: .28rem; }
.docs-visual-lines span { height: .28rem; border-radius: 99px; background: color-mix(in srgb, var(--accent) 16%, var(--line)); }
.docs-visual-lines .short { width: 58%; }

.docs-banner-features .docs-banner-copy .eyebrow i,
.docs-banner-content-types .docs-banner-copy .eyebrow i,
.docs-banner-examples .docs-banner-copy .eyebrow i,
.docs-banner-multilingual .docs-banner-copy .eyebrow i { color: #087f8a; }
.docs-banner-page-control .docs-banner-copy .eyebrow i,
.docs-banner-export-print .docs-banner-copy .eyebrow i,
.docs-banner-release-notes .docs-banner-copy .eyebrow i { color: #b77900; }
.docs-banner-help .docs-banner-copy .eyebrow i,
.docs-banner-contact .docs-banner-copy .eyebrow i { color: #d65249; }

.example-mini-banner {
  --example-accent: var(--violet);
  --example-accent-two: var(--cyan);
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(16rem, 22rem);
  gap: clamp(1.25rem, 3vw, 2.4rem);
  align-items: center;
  min-height: 15.5rem;
  margin-bottom: 1rem;
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--example-accent) 24%, var(--line));
  border-radius: 18px;
  padding: clamp(1.35rem, 3vw, 2.35rem);
  background:
    radial-gradient(circle at 92% 8%, color-mix(in srgb, var(--example-accent-two) 18%, transparent), transparent 36%),
    radial-gradient(circle at 2% 100%, color-mix(in srgb, var(--example-accent) 12%, transparent), transparent 34%),
    linear-gradient(135deg, var(--surface), color-mix(in srgb, var(--example-accent) 5%, var(--surface)));
  color: var(--ink);
  text-decoration: none;
  box-shadow: 0 28px 70px rgb(36 42 78 / 14%);
  transition: transform 200ms ease, border-color 200ms ease, box-shadow 200ms ease;
}

.example-mini-banner--1 { --example-accent: var(--violet); --example-accent-two: var(--cyan); }
.example-mini-banner--2 { --example-accent: var(--cyan); --example-accent-two: var(--coral); }
.example-mini-banner--3 { --example-accent: var(--coral); --example-accent-two: var(--gold); }
.example-mini-banner--4 { --example-accent: var(--gold); --example-accent-two: var(--violet); }

.example-mini-banner:hover,
.example-mini-banner:focus-visible {
  transform: translateY(-3px);
  border-color: color-mix(in srgb, var(--example-accent) 52%, var(--line));
  color: var(--ink);
  box-shadow: 0 34px 82px rgb(36 42 78 / 19%);
}

.example-mini-banner:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--example-accent) 38%, transparent);
  outline-offset: 4px;
}

.example-banner-copy { position: relative; z-index: 1; min-width: 0; }
.example-banner-copy .eyebrow { margin-bottom: .7rem; color: var(--example-accent); }
.example-banner-copy .eyebrow i { color: var(--example-accent-two); }
.example-banner-copy .banner-script {
  margin: 0 0 .45rem;
  color: var(--example-accent);
  font-family: "Caveat", "Poppins", sans-serif;
  font-size: clamp(1.3rem, 2.3vw, 1.85rem);
  font-weight: 600;
  line-height: 1;
}
.example-banner-copy h1 {
  margin: 0 0 .7rem;
  font-family: "Poppins", "Inter", sans-serif;
  font-size: clamp(1.65rem, 3.1vw, 2.45rem);
  font-weight: 800;
  letter-spacing: -.05em;
  line-height: 1.02;
}
.example-banner-copy .section-lead { max-width: 38rem; margin: 0; font-size: clamp(.92rem, 1.5vw, 1.05rem); line-height: 1.65; }
.example-banner-action { display: inline-flex; align-items: center; gap: .4rem; margin-top: 1rem; color: var(--example-accent); font-size: .78rem; font-weight: 800; }
.example-banner-action i { transition: transform 180ms ease; }
.example-mini-banner:hover .example-banner-action i { transform: translate(3px, 3px); }
.example-page-actions { display: flex; justify-content: flex-end; margin: 0 0 1.25rem; }
.example-page-section { padding-top: clamp(1.25rem, 3vw, 2.5rem); }
.demo-experience { scroll-margin-top: 6rem; }

.example-tool-visual {
  --example-accent: var(--violet);
  --example-accent-two: var(--cyan);
  display: grid;
  align-self: stretch;
  grid-template-rows: 1.75rem 2.5rem minmax(6.5rem, 1fr);
  align-content: stretch;
  gap: 0;
  min-width: 0;
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--example-accent) 28%, var(--line));
  border-radius: .75rem;
  padding: 0;
  background:
    radial-gradient(circle at 88% 5%, color-mix(in srgb, var(--example-accent-two) 22%, transparent), transparent 42%),
    linear-gradient(145deg, color-mix(in srgb, var(--example-accent) 9%, var(--surface)), var(--surface));
  box-shadow: inset 0 1px rgb(255 255 255 / 70%), 0 16px 36px rgb(37 41 80 / 8%);
}

.example-tool-visual--1 { --example-accent: var(--violet); --example-accent-two: var(--cyan); }
.example-tool-visual--2 { --example-accent: var(--cyan); --example-accent-two: var(--coral); }
.example-tool-visual--3 { --example-accent: var(--coral); --example-accent-two: var(--gold); }
.example-tool-visual--4 { --example-accent: var(--gold); --example-accent-two: var(--violet); }

.example-visual-window {
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--example-accent) 24%, var(--line));
  border-radius: .62rem;
  background: color-mix(in srgb, var(--surface) 94%, transparent);
  box-shadow: 0 13px 30px rgb(37 41 80 / 12%);
}

.example-visual-window-bar {
  display: flex;
  align-items: center;
  gap: .35rem;
  min-height: 1.75rem;
  border-bottom: 1px solid var(--line);
  padding: .4rem .65rem;
  background: color-mix(in srgb, var(--surface-muted) 92%, transparent);
}
.example-visual-window-bar > span { width: .42rem; height: .42rem; border-radius: 50%; background: var(--coral); }
.example-visual-window-bar > span:nth-child(2) { background: var(--gold); }
.example-visual-window-bar > span:nth-child(3) { background: var(--green); }
.example-visual-window-bar small { margin-left: auto; color: var(--muted); font-size: .58rem; font-weight: 700; }

.example-visual-toolbar {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: .35rem;
  align-items: center;
  min-height: 2.75rem;
  padding: .48rem .65rem;
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--surface-muted) 86%, transparent);
}

.example-visual-tool {
  display: grid;
  min-width: 0;
  height: 1.75rem;
  place-items: center;
  border: 1px solid color-mix(in srgb, var(--example-accent) 22%, var(--line));
  border-radius: .4rem;
  color: var(--example-accent);
  background: color-mix(in srgb, var(--example-accent) 10%, var(--surface));
  box-shadow: inset 0 1px rgb(255 255 255 / 76%);
}

.example-visual-tool:nth-child(2) { color: var(--example-accent-two); background: color-mix(in srgb, var(--example-accent-two) 11%, var(--surface)); }
.example-visual-tool:nth-child(3) { color: var(--coral); background: color-mix(in srgb, var(--coral) 10%, var(--surface)); }
.example-visual-tool:nth-child(4) { color: var(--gold); background: color-mix(in srgb, var(--gold) 12%, var(--surface)); }
.example-visual-tool i { font-size: .82rem; }

.example-visual-canvas {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: .48rem .6rem;
  min-height: 6.5rem;
  padding: .85rem;
  background: color-mix(in srgb, var(--surface) 97%, var(--example-accent));
}

.example-visual-canvas > i {
  display: grid;
  grid-row: 1 / 4;
  width: 2.7rem;
  height: 2.7rem;
  place-items: center;
  border-radius: .68rem;
  color: #fff;
  background: linear-gradient(135deg, var(--example-accent), var(--example-accent-two));
  box-shadow: 0 10px 22px color-mix(in srgb, var(--example-accent) 25%, transparent);
  font-size: 1.22rem;
}

.example-visual-canvas > div { min-width: 0; }
.example-visual-canvas strong,
.example-visual-canvas small { display: block; overflow: hidden; text-overflow: ellipsis; }
.example-visual-canvas strong { color: var(--ink); font: 700 .82rem/1.3 "Poppins", sans-serif; white-space: nowrap; }
.example-visual-canvas small { margin-top: .2rem; color: var(--muted); font-size: .62rem; line-height: 1.35; }
.example-visual-canvas > span { grid-column: 2; height: .42rem; border-radius: 99px; background: color-mix(in srgb, var(--example-accent) 18%, var(--line)); }
.example-visual-canvas > span:nth-of-type(2) { background: color-mix(in srgb, var(--example-accent-two) 20%, var(--line)); }
.example-visual-canvas > span.short { width: 58%; }
.example-tool-visual > strong { overflow: hidden; color: var(--ink); font: 700 .72rem/1.25 "Poppins", sans-serif; text-overflow: ellipsis; white-space: nowrap; }

.demo-experience,
.demo-panel,
.code-shell,
.editra-content {
  scrollbar-width: thin;
  scrollbar-color: color-mix(in srgb, var(--accent) 42%, var(--line)) transparent;
}

.demo-experience::-webkit-scrollbar,
.demo-panel::-webkit-scrollbar,
.code-shell::-webkit-scrollbar,
.editra-content::-webkit-scrollbar { width: 9px; height: 9px; }
.demo-experience::-webkit-scrollbar-thumb,
.demo-panel::-webkit-scrollbar-thumb,
.code-shell::-webkit-scrollbar-thumb,
.editra-content::-webkit-scrollbar-thumb { border: 2px solid transparent; border-radius: 999px; background: color-mix(in srgb, var(--accent) 38%, var(--line)); background-clip: padding-box; }

.docs-banner-features .docs-tool-visual,
.docs-banner-content-types .docs-tool-visual,
.docs-banner-examples .docs-tool-visual { border-top: 3px solid var(--cyan); }
.docs-banner-page-control .docs-tool-visual,
.docs-banner-export-print .docs-tool-visual,
.docs-banner-release-notes .docs-tool-visual { border-top: 3px solid var(--gold); }
.docs-banner-advanced .docs-tool-visual,
.docs-banner-api .docs-tool-visual { border-top: 3px solid var(--violet); }
.docs-banner-help .docs-tool-visual,
.docs-banner-contact .docs-tool-visual { border-top: 3px solid var(--coral); }

.docs-banner-plugin-developer-guide {
  grid-template-columns: minmax(0, 1fr) minmax(13rem, 15.5rem);
  min-height: 17rem;
  overflow: hidden;
  background: linear-gradient(135deg, var(--surface), var(--surface-muted));
}

.plugin-banner-visual {
  position: relative;
  display: grid;
  align-self: stretch;
  min-height: 17rem;
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--violet) 28%, var(--line));
  border-radius: .85rem;
  background:
    linear-gradient(rgb(104 113 150 / 8%) 1px, transparent 1px),
    linear-gradient(90deg, rgb(104 113 150 / 8%) 1px, transparent 1px),
    linear-gradient(145deg, color-mix(in srgb, var(--accent-soft) 75%, var(--surface)), color-mix(in srgb, var(--cyan-soft) 70%, var(--surface)));
  background-size: 24px 24px, 24px 24px, auto;
  box-shadow: inset 0 1px rgb(255 255 255 / 72%), 0 20px 48px rgb(36 42 78 / 14%);
}

.plugin-visual-toolbar {
  position: absolute;
  z-index: 4;
  top: .8rem;
  left: .8rem;
  right: .8rem;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: .45rem;
  border: 1px solid rgb(255 255 255 / 72%);
  border-radius: .65rem;
  padding: .48rem;
  background: color-mix(in srgb, var(--surface) 88%, transparent);
  box-shadow: 0 10px 25px rgb(36 42 78 / 12%);
  backdrop-filter: blur(12px);
}

.plugin-visual-toolbar .docs-visual-tool { width: auto; color: var(--violet); }
.plugin-visual-toolbar .docs-visual-tool:nth-child(2) { color: var(--cyan); }
.plugin-visual-toolbar .docs-visual-tool:nth-child(3) { color: var(--green); }
.plugin-visual-toolbar .docs-visual-tool:nth-child(4) { color: var(--coral); }

.plugin-visual-stage { position: relative; min-height: 17rem; }
.plugin-visual-stage::before,
.plugin-visual-stage::after { content: ""; position: absolute; z-index: 0; height: 1px; background: linear-gradient(90deg, transparent, var(--accent), var(--cyan), transparent); transform-origin: center; }
.plugin-visual-stage::before { width: 78%; top: 58%; left: 11%; transform: rotate(18deg); }
.plugin-visual-stage::after { width: 72%; top: 59%; left: 14%; transform: rotate(-24deg); }

.plugin-core-node,
.plugin-orbit-node {
  position: absolute;
  z-index: 2;
  display: grid;
  place-items: center;
  border: 1px solid color-mix(in srgb, var(--accent) 30%, var(--line));
  background: color-mix(in srgb, var(--surface) 93%, transparent);
  box-shadow: 0 12px 28px rgb(36 42 78 / 14%);
  backdrop-filter: blur(10px);
}

.plugin-core-node { width: 7.5rem; height: 7.5rem; top: 50%; left: 50%; border-radius: 1.15rem; transform: translate(-50%, -37%) rotate(-2deg); text-align: center; }
.plugin-core-node i { color: var(--accent); font-size: 1.8rem; }
.plugin-core-node strong { font: 700 .78rem/1.1 "Poppins", sans-serif; }
.plugin-core-node small { color: var(--muted); font-size: .6rem; }
.plugin-orbit-node { grid-template-columns: auto 1fr; gap: .35rem; border-radius: .6rem; padding: .55rem .65rem; font-size: .64rem; }
.plugin-orbit-node i { font-size: .9rem; }
.plugin-orbit-node--one { top: 35%; left: 4%; color: var(--violet); }
.plugin-orbit-node--two { right: 3%; bottom: 9%; color: var(--green); }
.plugin-orbit-node--three { left: 10%; bottom: 8%; color: var(--coral); }

.plugin-guide-nav {
  position: static;
  z-index: auto;
  display: flex;
  flex-wrap: wrap;
  gap: .45rem;
  margin: 0 0 2.3rem;
  border: 1px solid color-mix(in srgb, var(--accent) 20%, var(--line));
  border-radius: .7rem;
  padding: .65rem;
  background: color-mix(in srgb, var(--surface) 92%, transparent);
  box-shadow: 0 12px 30px rgb(36 42 78 / 9%);
  backdrop-filter: blur(14px);
}

.plugin-guide-nav a { display: inline-flex; align-items: center; gap: .38rem; border-radius: .42rem; padding: .48rem .62rem; color: var(--ink); font-size: .7rem; font-weight: 700; text-decoration: none; }
.plugin-guide-nav a i { color: var(--accent); }
.plugin-guide-nav a:hover,
.plugin-guide-nav a:focus-visible { background: var(--accent-soft); color: var(--accent-strong); }

.docs-banner-plugin-developer-guide + .plugin-guide-nav {
  isolation: isolate;
}

.plugin-guide-intro,
.plugin-api-panel,
.plugin-final-cta {
  border: 1px solid color-mix(in srgb, var(--accent) 17%, var(--line));
  border-radius: .8rem;
  padding: clamp(1.2rem, 3vw, 2rem);
  background: linear-gradient(135deg, var(--surface), color-mix(in srgb, var(--accent-soft) 42%, var(--surface)));
  box-shadow: var(--card-shadow);
}

.plugin-guide-intro { display: grid; grid-template-columns: minmax(0, 1fr) minmax(17rem, .8fr); gap: 2rem; align-items: center; margin-bottom: var(--section-space); }
.plugin-guide-intro h2 { margin-top: 0; }
.plugin-guide-intro p { color: var(--muted); line-height: 1.7; }
.plugin-step-track { display: grid; grid-template-columns: repeat(5, 1fr); margin: 0; padding: 0; list-style: none; }
.plugin-step-track li { position: relative; display: grid; justify-items: center; gap: .45rem; color: var(--muted); font-size: .62rem; }
.plugin-step-track li:not(:last-child)::after { content: ""; position: absolute; top: 1rem; left: 66%; width: 68%; height: 2px; background: linear-gradient(90deg, var(--violet), var(--cyan)); }
.plugin-step-track span { z-index: 1; width: 2rem; height: 2rem; display: grid; place-items: center; border-radius: 50%; background: linear-gradient(135deg, var(--violet), var(--cyan)); color: #fff; font-weight: 800; }

.plugin-model-grid,
.plugin-lifecycle-grid,
.plugin-host-grid { display: grid; gap: 1rem; margin: 1.2rem 0 1.5rem; }
.plugin-model-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.plugin-model-grid article,
.plugin-lifecycle-grid article,
.plugin-host-grid article { border: 1px solid color-mix(in srgb, var(--accent) 16%, var(--line)); border-radius: .72rem; padding: 1.25rem; background: var(--surface); box-shadow: var(--card-shadow); }
.plugin-model-grid article:nth-child(2) { background: linear-gradient(145deg, color-mix(in srgb, var(--cyan-soft) 55%, var(--surface)), var(--surface)); }
.plugin-model-grid article > span:last-child { display: block; margin-top: .25rem; color: var(--muted); font-size: .76rem; }
.plugin-model-kicker { color: var(--accent-strong); font-size: .65rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.plugin-guide-action { display: flex; flex-wrap: wrap; gap: .6rem; margin: 1.2rem 0 var(--section-space); }

.plugin-file-map { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .55rem; margin: 1.2rem 0 1.5rem; border: 1px solid var(--line); border-radius: .75rem; padding: 1rem; background: var(--surface-muted); }
.plugin-file-map > div { display: grid; grid-template-columns: auto 1fr; gap: .15rem .55rem; align-items: center; border: 1px solid var(--line); border-radius: .52rem; padding: .65rem; background: var(--surface); }
.plugin-file-map > div:first-child { grid-column: 1 / -1; border: 0; background: transparent; }
.plugin-file-map i { grid-row: 1 / 3; color: var(--accent); font-size: 1rem; }
.plugin-file-map small { color: var(--muted); font-size: .66rem; }

.plugin-lifecycle-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.plugin-lifecycle-grid article { position: relative; overflow: hidden; }
.plugin-lifecycle-grid article > span { position: absolute; top: .45rem; right: .65rem; color: color-mix(in srgb, var(--accent) 18%, transparent); font: 800 2rem/1 "Poppins", sans-serif; }
.plugin-lifecycle-grid article > i { display: block; margin-bottom: .8rem; color: var(--accent); font-size: 1.3rem; }
.plugin-lifecycle-grid h3 { font-size: .92rem; }
.plugin-lifecycle-grid p { margin: 0; color: var(--muted); font-size: .74rem; line-height: 1.55; }
.plugin-api-panel { display: grid; grid-template-columns: minmax(0, .75fr) minmax(0, 1.25fr); gap: 1.5rem; align-items: center; margin: 1.2rem 0 var(--section-space); }
.plugin-api-tags { display: flex; flex-wrap: wrap; gap: .45rem; }
.plugin-api-tags code { border: 1px solid color-mix(in srgb, var(--violet) 24%, var(--line)); border-radius: 999px; padding: .45rem .62rem; background: var(--surface); color: var(--accent-strong); font-size: .7rem; }

.plugin-host-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.plugin-host-grid article > i { color: var(--cyan); font-size: 1.35rem; }
.plugin-host-grid h3 { margin-top: .7rem; font-size: .95rem; }
.plugin-host-grid p { min-height: 3rem; color: var(--muted); font-size: .76rem; }
.plugin-host-grid a { font-size: .74rem; font-weight: 700; }

.plugin-security-flow { display: grid; grid-template-columns: 1fr auto 1fr auto 1fr; gap: .7rem; align-items: center; margin: 1.2rem 0 1.5rem; border: 1px solid color-mix(in srgb, var(--green) 23%, var(--line)); border-radius: .8rem; padding: 1rem; background: linear-gradient(135deg, color-mix(in srgb, var(--green) 8%, var(--surface)), var(--surface)); }
.plugin-security-flow > div { display: grid; justify-items: center; gap: .2rem; border: 1px solid var(--line); border-radius: .6rem; padding: .8rem; background: var(--surface); text-align: center; }
.plugin-security-flow > div i { color: var(--green); font-size: 1.25rem; }
.plugin-security-flow > div small,
.plugin-security-flow > span small { color: var(--muted); font-size: .62rem; }
.plugin-security-flow > span { display: grid; justify-items: center; color: var(--accent); }
.plugin-capability-table { margin: 1rem 0 1.5rem; border: 1px solid var(--line); border-radius: .7rem; }
.plugin-capability-table table { margin: 0; font-size: .78rem; }
.plugin-capability-table th { background: var(--surface-muted); color: var(--ink); }

.plugin-publish-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(19rem, .8fr); gap: 1.2rem; align-items: start; margin-bottom: 2rem; }
.plugin-checklist { display: grid; gap: .7rem; margin: 1.15rem 0 0; padding: 0; list-style: none; }
.plugin-checklist li { display: grid; grid-template-columns: 1rem minmax(0, 1fr); gap: .55rem; align-items: start; color: var(--muted); line-height: 1.55; }
.plugin-checklist i { margin-top: .22em; color: var(--green); font-size: .88rem; line-height: 1; }
.plugin-checklist li > span { min-width: 0; }
.plugin-checklist code { display: inline-block; max-width: 100%; padding: .12rem .32rem; white-space: nowrap; vertical-align: baseline; }
.plugin-manifest-card { border: 1px solid color-mix(in srgb, var(--violet) 22%, var(--line)); border-radius: .75rem; padding: 1.2rem; background: var(--surface); box-shadow: var(--card-shadow); }
.plugin-manifest-card .code-shell pre { font-size: .72rem; }
.plugin-final-cta { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 1.2rem; align-items: center; margin-top: var(--section-space); }
.plugin-final-cta .feature-icon { margin: 0; }
.plugin-final-cta h2 { margin: 0 0 .5rem; }
.plugin-final-cta p { margin: 0; color: var(--muted); }
.plugin-final-cta > div:last-child { display: flex; flex-wrap: wrap; gap: .55rem; }

.docs-banner-multilingual {
  grid-template-columns: minmax(18rem, .8fr) minmax(24rem, 1.2fr);
  min-height: 22rem;
}

.docs-tool-visual-image {
  position: relative;
  display: grid;
  grid-template-rows: none;
  align-content: end;
  align-self: center;
  min-height: 0;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border: 0;
  padding: .8rem;
  background: #eef0ff;
}

.docs-tool-visual-image > img {
  position: absolute;
  z-index: 0;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.docs-tool-visual-image .docs-visual-toolbar,
.docs-tool-visual-image .docs-visual-topic {
  position: relative;
  z-index: 1;
  width: fit-content;
  min-height: 0;
  border: 1px solid rgb(255 255 255 / 72%);
  border-radius: .55rem;
  padding: .45rem;
  background: rgb(255 255 255 / 88%);
  box-shadow: 0 8px 24px rgb(32 40 88 / 16%);
  backdrop-filter: blur(12px);
}

.docs-tool-visual-image .docs-visual-topic { margin-top: .5rem; }

.language-capability-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: .8rem;
  margin: 1.5rem 0 2.5rem;
}

.language-capability-grid article {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: .75rem;
  padding: 1rem;
  background: var(--surface);
  box-shadow: 0 10px 26px rgb(36 42 78 / 7%);
}

.language-capability-grid article::before {
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: var(--language-accent);
  content: "";
}

.language-capability-grid span { color: var(--muted); font-size: .62rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.language-capability-grid strong { display: block; margin-top: .35rem; font-family: "Poppins", sans-serif; font-size: .92rem; }
.language-capability-grid p {
  max-width: 100%;
  margin: .45rem 0 0;
  color: var(--language-accent);
  font-size: clamp(.66rem, 1vw, .8rem);
  font-weight: 550;
  letter-spacing: -.012em;
  line-height: 1.45;
  white-space: nowrap;
}

.compliance-visual {
  width: min(30rem, 100%);
  margin-inline: auto;
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--accent) 30%, var(--line));
  border-radius: .8rem;
  background: color-mix(in srgb, var(--surface) 94%, var(--accent-soft));
  box-shadow: 0 28px 70px rgb(38 43 82 / 18%);
  animation: banner-float 7s ease-in-out infinite;
}

.compliance-visual-bar {
  display: flex;
  align-items: center;
  gap: .38rem;
  min-height: 2.25rem;
  padding: .55rem .7rem;
  border-bottom: 1px solid var(--line);
  background: var(--surface-muted);
}

.compliance-visual-bar > span {
  width: .48rem;
  height: .48rem;
  border-radius: 50%;
  background: var(--coral);
}

.compliance-visual-bar > span:nth-child(2) { background: var(--gold); }
.compliance-visual-bar > span:nth-child(3) { background: var(--cyan); }
.compliance-visual-bar small { margin-left: auto; color: var(--muted); font-size: .64rem; font-weight: 750; }

.compliance-visual-tools {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: .45rem;
  padding: .8rem;
}

.compliance-visual-tools span {
  display: grid;
  place-items: center;
  gap: .25rem;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: .48rem;
  padding: .55rem .3rem;
  background: var(--surface);
  color: var(--accent);
}

.compliance-visual-tools i { font-size: 1rem; }
.compliance-visual-tools small { overflow: hidden; max-width: 100%; color: var(--muted); font-size: .55rem; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }

.compliance-visual-document {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 1rem;
  align-items: center;
  margin: 0 .8rem .8rem;
  border: 1px solid var(--line);
  border-radius: .65rem;
  padding: 1.15rem;
  background: linear-gradient(135deg, var(--surface), color-mix(in srgb, var(--surface) 86%, var(--cyan)));
}

.compliance-seal {
  display: grid;
  place-items: center;
  width: 3.25rem;
  height: 3.25rem;
  border-radius: .7rem;
  background: linear-gradient(135deg, var(--accent), #0fb8c9);
  color: #fff;
  box-shadow: 0 12px 30px rgb(91 92 240 / 24%);
  font-size: 1.35rem;
}

.compliance-visual-document > div:last-child { display: grid; gap: .42rem; }
.compliance-visual-document strong { color: var(--ink); font-family: "Poppins", sans-serif; font-size: .8rem; }
.compliance-visual-document span { display: block; width: 100%; height: .34rem; border-radius: 999px; background: var(--line); }
.compliance-visual-document span.short { width: 58%; }

.compliance-page { padding-top: var(--section-space); }

.compliance-summary {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 1.2rem;
  align-items: start;
  border: 1px solid color-mix(in srgb, var(--cyan) 35%, var(--line));
  border-radius: .8rem;
  padding: clamp(1.3rem, 3vw, 2rem);
  background: linear-gradient(135deg, color-mix(in srgb, var(--surface) 92%, var(--cyan)), var(--surface));
  box-shadow: var(--card-shadow);
}

.compliance-summary .feature-icon { margin: 0; }
.compliance-summary h2 { margin: .25rem 0 .6rem; font-size: clamp(1.35rem, 3vw, 2rem); }
.compliance-summary p { margin: 0; color: var(--muted); line-height: 1.75; }
.legal-summary { border-color: color-mix(in srgb, var(--gold) 42%, var(--line)); background: linear-gradient(135deg, color-mix(in srgb, var(--surface) 92%, var(--gold)), var(--surface)); }

.compliance-toc {
  display: flex;
  flex-wrap: wrap;
  gap: .55rem;
  margin: 1.2rem 0 2rem;
  border: 1px solid var(--line);
  border-radius: .65rem;
  padding: .7rem;
  background: var(--surface);
  box-shadow: 0 12px 32px rgb(35 42 84 / 7%);
}

.compliance-toc a {
  border: 1px solid var(--line);
  border-radius: .42rem;
  padding: .46rem .68rem;
  color: var(--muted);
  background: var(--surface-muted);
  font-size: .72rem;
  font-weight: 750;
  text-decoration: none;
  transition: color 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.compliance-toc a:hover,
.compliance-toc a:focus-visible { border-color: var(--accent); color: var(--accent); transform: translateY(-1px); }

.compliance-card-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.compliance-card {
  min-width: 0;
  border: 1px solid var(--line);
  border-top: 3px solid color-mix(in srgb, var(--accent) 70%, var(--cyan));
  border-radius: .72rem;
  padding: clamp(1.2rem, 2.5vw, 1.6rem);
  background: var(--surface);
  box-shadow: 0 14px 36px rgb(35 42 84 / 8%);
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.compliance-card:nth-child(3n + 2) { border-top-color: var(--cyan); }
.compliance-card:nth-child(3n) { border-top-color: var(--gold); }
.compliance-card:hover { border-color: color-mix(in srgb, var(--accent) 38%, var(--line)); box-shadow: 0 22px 48px rgb(35 42 84 / 13%); transform: translateY(-2px); }
.compliance-card .feature-icon { margin-bottom: .9rem; }
.compliance-card h2 { margin: 0 0 .65rem; font-size: 1.05rem; }
.compliance-card p,
.compliance-card li { color: var(--muted); font-size: .84rem; line-height: 1.72; }
.compliance-card p:last-child { margin-bottom: 0; }
.compliance-card ul { display: grid; gap: .55rem; margin: 0; padding-left: 1.15rem; }
.compliance-card a { overflow-wrap: anywhere; }
.compliance-card-wide { grid-column: 1 / -1; }

.compliance-notice {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: .8rem;
  align-items: start;
  margin-top: 1.2rem;
  border-left: 4px solid var(--cyan);
  padding: 1rem 1.15rem;
  background: color-mix(in srgb, var(--surface) 86%, var(--cyan));
}

.compliance-notice i { color: var(--cyan); font-size: 1.15rem; }
.compliance-notice p { margin: 0; color: var(--muted); line-height: 1.65; }
.legal-notice { border-left-color: var(--gold); background: color-mix(in srgb, var(--surface) 88%, var(--gold)); }
.legal-notice i { color: color-mix(in srgb, var(--gold) 75%, var(--ink)); }

@media (max-width: 767.98px) {
  .compliance-card-grid { grid-template-columns: 1fr; }
  .compliance-card-wide { grid-column: auto; }
}

@media (max-width: 420px) {
  .compliance-summary { grid-template-columns: 1fr; }
  .compliance-visual-tools { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .compliance-toc a { flex: 1 1 calc(50% - .55rem); text-align: center; }
}

@media (max-width: 380px) {
  .language-capability-grid {
    grid-template-columns: 1fr;
  }
}

@keyframes banner-ink {
  from { opacity: 0; transform: translateX(-1rem); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes banner-float {
  0%, 100% { transform: rotateY(-5deg) rotateX(2deg) translateY(0); }
  50% { transform: rotateY(-3deg) rotateX(1deg) translateY(-8px); }
}

.page-masthead h1 {
  max-width: none;
  margin-bottom: .75rem;
  font-family: "Inter", "Source Sans 3", sans-serif;
  font-size: clamp(1.75rem, 2.8vw, 2.55rem);
  font-weight: 700;
  letter-spacing: -.035em;
  line-height: 1.12;
  text-wrap: pretty;
}

.page-masthead .hero-copy {
  margin: .75rem 0 1.35rem;
  font-size: clamp(.9rem, 1.15vw, 1rem);
}

.page-masthead {
  padding: clamp(1.8rem, 4vw, 3rem) 0;
}

.page-masthead .banner-script {
  display: none;
}

.page-masthead .eyebrow {
  margin-bottom: .7rem;
  font-size: .7rem;
  letter-spacing: .09em;
}

.download-option {
  position: relative;
  overflow: hidden;
  padding: 1.7rem;
  background: var(--surface);
}

.download-option::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: .25rem;
  background: linear-gradient(90deg, var(--accent), var(--violet), var(--cyan));
}

.enterprise-use {
  border-top: 3px solid var(--accent);
}

.sample-filter {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin-bottom: 1.25rem;
}

.sample-filter .btn {
  border-color: var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: .78rem;
  font-weight: 650;
}

.sample-filter .btn.is-active {
  border-color: var(--accent);
  background: var(--accent);
  color: #fff;
}

.sample-card[hidden] {
  display: none !important;
}

.site-illustration {
  width: 100%;
  height: auto;
  border: 1px solid var(--line);
  border-radius: var(--card-radius);
  box-shadow: var(--shadow);
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  border-radius: 999px;
  padding: .36rem .65rem;
  background: #e7f8ef;
  color: #087352;
  font-size: .72rem;
  font-weight: 750;
}

[data-theme="dark"] .status-pill {
  background: #183b2d;
  color: #68dfba;
}

.feature-card,
.quick-card,
.content-panel,
.demo-panel,
.download-option,
.comparison-wrap {
  background:
    linear-gradient(
      145deg,
      color-mix(in srgb, var(--surface) 96%, transparent),
      color-mix(in srgb, var(--surface-muted) 72%, var(--surface))
    );
  backdrop-filter: blur(18px) saturate(125%);
}

.reveal-item {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 620ms ease, transform 620ms cubic-bezier(.2, .75, .25, 1);
}

.reveal-item.is-revealed {
  opacity: 1;
  transform: translateY(0);
}

.demo-action {
  display: inline-flex;
  align-items: center;
  gap: .48rem;
  margin-top: .35rem;
  border: 1px solid color-mix(in srgb, var(--accent) 32%, var(--line));
  border-radius: 999px;
  padding: .56rem .86rem;
  background:
    linear-gradient(var(--surface), var(--surface)) padding-box,
    linear-gradient(120deg, var(--accent), var(--violet), var(--cyan)) border-box;
  box-shadow: 0 8px 24px rgb(66 59 170 / 10%);
  color: var(--accent-strong);
  font-size: .78rem;
  font-weight: 750;
  text-decoration: none;
  transition: color 200ms ease, box-shadow 200ms ease, transform 200ms ease;
}

.demo-action:hover,
.demo-action:focus-visible {
  color: var(--ink);
  box-shadow: 0 14px 32px rgb(66 59 170 / 18%);
  transform: translateY(-2px);
}

.sample-card .text-primary {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  border-radius: 999px;
  padding: .42rem .7rem;
  background: color-mix(in srgb, var(--accent-soft) 82%, transparent);
  font-size: .75rem;
}

.feature-code-grid .code-shell {
  height: 100%;
  margin-bottom: 0;
}

.code-label {
  display: inline-flex;
  align-items: center;
  gap: .38rem;
  margin-bottom: .55rem;
  color: var(--muted);
  font-size: .7rem;
  font-weight: 800;
  letter-spacing: .11em;
  text-transform: uppercase;
}

@keyframes cinematic-drift {
  from {
    transform: translate3d(0, 0, 0) rotate(0deg) scale(1);
  }
  to {
    transform: translate3d(-3rem, 2rem, 0) rotate(18deg) scale(1.08);
  }
}

@media (max-width: 1199.98px) {
  :root {
    --header-offset: 100px;
  }

  .site-navbar > .container {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    column-gap: .75rem;
    height: auto;
  }

  .site-navbar .navbar-brand {
    grid-column: 1;
    justify-self: start;
  }

  .site-navbar .theme-toggle-mobile {
    grid-column: 2;
    justify-self: center;
  }

  .site-navbar .navbar-toggler {
    grid-column: 3;
    justify-self: end;
  }

  .site-navbar .navbar-collapse {
    grid-column: 1 / -1;
    width: 100%;
  }

  .site-navbar {
    background: var(--surface);
    box-shadow: 0 10px 28px rgb(25 31 53 / 12%);
    backdrop-filter: none;
  }

  .site-navbar .navbar-collapse {
    max-height: calc(100vh - var(--header-offset));
    overflow-y: auto;
    padding: .75rem 0 1rem;
    background: var(--surface);
  }

  .site-navbar:has(.navbar-collapse.show),
  .site-navbar:has(.navbar-collapse.collapsing) {
    height: auto;
  }

  .site-navbar .navbar-nav {
    align-items: stretch !important;
  }

  .site-navbar .nav-link {
    width: 100%;
    border-radius: .55rem;
    min-height: 2.75rem;
    justify-content: flex-start;
  }

  .site-navbar .dropdown-menu {
    width: 100%;
    min-width: 0;
    margin: .25rem 0 .5rem;
    border-radius: .55rem;
    box-shadow: 0 12px 28px rgb(25 31 53 / 12%);
  }

  .site-navbar .dropdown-item {
    min-height: 2.75rem;
  }

  .docs-layout {
    grid-template-columns: 1fr;
  }

  .docs-sidebar {
    position: static;
    max-height: none;
    border-right: 0;
    border-bottom: 1px solid var(--line);
    padding: 0 0 1rem;
  }

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

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

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

  .banner-visual {
    max-width: 42rem;
  }

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

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

  .industry-demo-layout {
    grid-template-columns: 1fr;
  }

  .industry-demo-sidebar {
    position: static;
    max-height: none;
    overflow: visible;
  }

  .industry-demo-sidebar .document-demo-note {
    display: flex;
  }

  .industry-demo-grid {
    grid-template-columns: 1fr;
  }

  .industry-output-column {
    position: static;
    max-width: 32rem;
  }

  .terra-use-case-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .terra-definition-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 767.98px) {
  .terra-why-grid,
  .terra-benefits-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .home-capability-grid {
    grid-template-columns: 1fr;
  }

  .home-live-editor-heading {
    align-items: center;
    flex-direction: column;
  }

  .home-live-editor-footer {
    align-items: stretch;
    flex-direction: column;
  }

  .home-live-editor-actions {
    justify-content: flex-start;
  }

  .docs-banner-plugin-developer-guide,
  .plugin-guide-intro,
  .plugin-model-grid,
  .plugin-api-panel,
  .plugin-host-grid,
  .plugin-publish-grid,
  .plugin-final-cta {
    grid-template-columns: 1fr;
  }

  .plugin-guide-nav {
    position: static;
  }

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

  .plugin-security-flow {
    grid-template-columns: 1fr;
  }

  .plugin-security-flow > span i {
    transform: rotate(90deg);
  }

  .plugin-host-grid p {
    min-height: 0;
  }

  .example-mini-banner {
    grid-template-columns: 1fr;
  }

  .example-tool-visual {
    min-height: 10rem;
  }

  .docs-banner-multilingual {
    grid-template-columns: 1fr;
    min-height: 0;
  }

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

  .feature-band-actions {
    justify-content: flex-start;
  }

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

  .industry-panel-heading,
  .industry-demo-footer,
  .example-page-heading {
    align-items: stretch;
    flex-direction: column;
  }

  .industry-panel-heading .btn,
  .example-page-heading .btn {
    align-self: flex-start;
  }
}

@media (max-width: 575.98px) {
  .features-visual-stage,
  .enterprise-visual-stage,
  .download-visual-stage {
    grid-template-columns: 1fr;
  }

  .download-file-tree {
    grid-template-columns: 1fr;
  }

  .terra-why-grid,
  .terra-benefits-grid {
    grid-template-columns: 1fr;
  }

  .terra-unique-strength {
    align-items: flex-start;
  }
  .license-banner {
    height: 30px;
    min-height: 30px;
    padding: .3rem .6rem;
    font-size: .62rem;
  }

  .display-title {
    max-width: 16ch;
    font-size: clamp(1.75rem, 7.5vw, 2.15rem);
  }

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

  .footer-brand {
    grid-column: auto;
  }

  .footer-bottom {
    flex-direction: column;
  }

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

  .docs-mini-banner {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .plugin-banner-visual {
    min-height: 15rem;
  }

  .plugin-visual-stage {
    min-height: 15rem;
  }

  .plugin-step-track {
    grid-template-columns: 1fr;
    gap: .55rem;
  }

  .plugin-step-track li {
    grid-template-columns: auto 1fr;
    justify-items: start;
    align-items: center;
  }

  .plugin-step-track li::after {
    display: none;
  }

  .plugin-file-map,
  .plugin-lifecycle-grid {
    grid-template-columns: 1fr;
  }

  .plugin-file-map > div:first-child {
    grid-column: auto;
  }

  .docs-tool-visual {
    display: grid;
    height: 9.25rem;
  }

  .docs-banner-multilingual .docs-tool-visual-image {
    display: grid;
    width: 100%;
    min-height: 9.25rem;
  }

  .ecosystem-orbit {
    grid-template-columns: 1fr;
  }

  .ecosystem-core {
    grid-column: auto;
  }

  .theme-banner {
    margin: -1.2rem -1.2rem 1.2rem;
  }

  .variant-benefits {
    grid-template-columns: 1fr;
  }

  .industry-switcher {
    grid-template-columns: 1fr;
  }

  .industry-switcher button {
    min-height: 3.25rem;
    justify-content: flex-start;
  }

  .pdf-data-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 420px) {
  .samples-visual-grid {
    grid-template-columns: 1fr;
  }
}

/* Android and other compact touch devices must use the viewport width instead
   of preserving the desktop paper and banner dimensions. */
@media (max-width: 767.98px), (pointer: coarse) and (max-width: 960px) {
  body {
    min-width: 0;
  }

  .docs-mini-banner,
  .docs-banner-plugin-developer-guide,
  .docs-banner-multilingual,
  .example-mini-banner {
    grid-template-columns: minmax(0, 1fr);
    min-width: 0;
    min-height: 0;
  }

  .docs-mini-banner,
  .example-mini-banner {
    gap: 1rem;
    padding: clamp(1rem, 4vw, 1.5rem);
  }

  .docs-banner-copy,
  .example-banner-copy,
  .docs-tool-visual,
  .example-tool-visual {
    width: 100%;
    min-width: 0;
    max-width: 100%;
  }

  .docs-mini-banner .section-lead {
    -webkit-line-clamp: unset;
  }

  .demo-panel,
  .home-live-editor-shell,
  .home-live-editor-showcase {
    width: 100%;
    min-width: 0;
    max-width: 100%;
  }

  .demo-panel {
    padding: clamp(.55rem, 2.8vw, 1rem);
    overflow: hidden;
    contain: none;
  }

  .demo-panel .editra-card,
  .demo-panel .editra-demo-host,
  .demo-panel .editra-page-workspace,
  .demo-panel .editra-editor,
  .demo-panel .editra-code-editor {
    box-sizing: border-box;
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
  }

  .demo-panel .editra-theme-word .editra-page-workspace {
    min-height: 0 !important;
    padding: clamp(.45rem, 2vw, .75rem) !important;
    overflow-x: hidden !important;
  }

  .demo-panel .editra-theme-word .editra-editor {
    min-height: 32rem !important;
    min-height: clamp(28rem, 72svh, 44rem) !important;
    margin-inline: 0;
    padding: clamp(1rem, 5vw, 1.75rem) !important;
  }

  .demo-panel .editra-theme-word .editra-page-guides {
    display: none !important;
  }

  .demo-panel .editra-menubar,
  .demo-panel .editra-toolbar {
    width: 100%;
    min-width: 0;
    max-width: 100%;
  }

  .demo-panel .editra-menubar {
    overflow-x: auto;
    overscroll-behavior-x: contain;
  }

  .demo-panel .editra-toolbar {
    flex-wrap: wrap;
  }

  .industry-demo-main,
  .industry-tab-stage,
  .industry-example-flow,
  .industry-editor-column,
  .industry-output-column {
    box-sizing: border-box;
    width: 100%;
    min-width: 0;
    max-width: 100%;
  }

  .industry-example-flow .editra-card,
  .industry-example-flow .editra-demo-host,
  .industry-example-flow .editra-page-workspace,
  .industry-example-flow .editra-editor,
  .industry-example-flow .editra-code-editor {
    box-sizing: border-box;
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
  }

  .industry-example-flow .editra-page-workspace {
    overflow-x: hidden !important;
  }

  .industry-example-flow .editra-menubar,
  .industry-example-flow .editra-toolbar {
    width: 100%;
    min-width: 0;
    max-width: 100%;
  }

  .industry-example-flow .editra-toolbar {
    flex-wrap: wrap;
  }

  .industry-example-flow .industry-editor-output-match,
  .industry-example-flow .pdf-sheet-body,
  .industry-example-flow .pdf-record-table {
    width: 100%;
    min-width: 0;
    max-width: 100%;
  }

  .editra-content table,
  .editra-content iframe,
  .editra-content video {
    max-width: 100%;
  }
}

@media (max-width: 420px) {
  .site-navbar > .container {
    column-gap: .35rem;
    padding-inline: 8px;
  }

  .site-navbar .navbar-brand {
    gap: .3rem !important;
    max-width: 100%;
    height: 46px;
    min-height: 46px;
    padding: .3rem .38rem;
    overflow: hidden;
  }

  .site-navbar .brand-mark {
    width: 29px;
    height: 29px;
    flex-basis: 29px;
    border-radius: .52rem;
    font-size: .92rem;
  }

  .site-navbar .brand-copy {
    min-width: 0;
    font-size: .72rem;
    line-height: 1;
  }

  .site-navbar .brand-copy small {
    display: block;
    margin-top: .16rem;
    font-size: .37rem;
    letter-spacing: .025em;
    line-height: 1.05;
  }

  .demo-page-intro > .container {
    width: 100%;
    max-width: 100%;
    padding-inline: 12px;
  }

  .industry-example-tabs {
    grid-template-columns: minmax(0, 1fr);
    width: 100%;
  }

  .industry-example-tabs button {
    width: 100%;
    max-width: 100%;
  }

  .industry-example-flow .editra-menu-trigger {
    padding-inline: 6px;
    font-size: .68rem;
  }

  .industry-example-flow .editra-toolbar {
    gap: 3px;
    padding: 6px;
  }

  .industry-example-flow .editra-toolbar-separator {
    margin-inline: 2px;
  }

  .industry-example-flow .editra-theme-classic .editra-editor {
    padding: clamp(.7rem, 4vw, 1rem) !important;
  }

  .industry-example-flow .pdf-sheet-body {
    padding: .75rem;
  }

  .industry-example-flow .pdf-sheet-title,
  .industry-example-flow .pdf-sheet-bar,
  .industry-example-flow .pdf-code-row {
    flex-wrap: wrap;
  }

  .industry-example-flow .pdf-record-table {
    table-layout: fixed;
  }

  .industry-example-flow .pdf-record-table :is(th, td) {
    min-width: 0;
    padding: .32rem .25rem;
    overflow-wrap: anywhere;
    word-break: break-word;
  }
}

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

  .reveal-item {
    opacity: 1;
    transform: none;
  }
}

/* Homepage live editor — one-page enterprise offer showcase. */
.home-editor-tool-map {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .48rem;
  max-width: 62rem;
  margin: -.35rem auto 1rem;
}

.home-editor-tool-map span {
  display: inline-flex;
  align-items: center;
  gap: .38rem;
  border: 1px solid color-mix(in srgb, var(--accent) 18%, var(--line));
  border-radius: 999px;
  padding: .42rem .68rem;
  background: color-mix(in srgb, var(--surface) 88%, var(--accent-soft));
  color: var(--muted);
  font-size: .68rem;
  font-weight: 750;
}

.home-editor-tool-map i { color: var(--accent-strong); }

.home-live-editor-shell {
  max-width: 72rem;
}

.home-live-editor-shell .editra-theme-word .editra-page-workspace {
  background: linear-gradient(145deg, #eef3fb, #f8f5ff) !important;
}

.home-offer-document {
  color: #28334a;
  font: 10.5px/1.38 "Inter", "Segoe UI", sans-serif;
}

.home-offer-document * { box-sizing: border-box; }

.home-offer-topline {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  border-bottom: 1px solid #dfe4ee;
  padding-bottom: 7px;
  color: #6f7890;
  font-size: 7px;
  font-weight: 800;
  letter-spacing: .13em;
}

.home-offer-topline span { color: #6558e8; }

.home-offer-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(180px, .65fr);
  gap: 18px;
  align-items: center;
  padding: 15px 0 12px;
}

.home-offer-hero small,
.home-offer-close > div > small {
  color: #0a8b97;
  font-size: 7.5px;
  font-weight: 850;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.home-offer-hero h1 {
  margin: 4px 0 6px;
  color: #1f2a4a;
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -.035em;
  line-height: 1.04;
}

.home-offer-hero h1 em {
  color: #6558e8;
  font-style: normal;
}

.home-offer-hero p { max-width: 48ch; margin: 0; color: #647087; }

.home-offer-hero img {
  width: 100%;
  max-height: 112px;
  border: 5px solid #fff;
  border-radius: 10px;
  object-fit: cover;
  box-shadow: 0 10px 25px rgb(54 65 111 / 18%);
}

.home-offer-tags { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 9px; }
.home-offer-tags span { border-radius: 99px; padding: 3px 7px; background: #eeefff; color: #5253c4; font-size: 7px; font-weight: 750; }
.home-offer-tags span:nth-child(2) { background: #e8f9fa; color: #087e89; }
.home-offer-tags span:nth-child(3) { background: #fff4e4; color: #a76308; }

.home-offer-reference {
  display: grid;
  grid-template-columns: minmax(100px, .7fr) minmax(210px, 1.4fr) minmax(90px, .6fr);
  gap: 10px;
  align-items: center;
  border: 1px solid #dfe4ef;
  border-radius: 8px;
  padding: 8px 10px;
  background: linear-gradient(105deg, #f8f8ff, #effbfb);
}

.home-offer-reference > div:last-child { text-align: right; }
.home-offer-reference small,
.home-offer-reference strong { display: block; }
.home-offer-reference small { color: #8790a3; font-size: 6.5px; font-weight: 800; letter-spacing: .08em; }
.home-offer-reference strong { margin-top: 2px; color: #283454; font-size: 8.5px; }
.home-offer-reference .editra-media-frame { width: 100% !important; max-width: 255px; margin: 0 auto; }
.home-offer-reference svg { width: 100%; max-height: 35px; }

.home-offer-intro {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  margin: 13px 0 10px;
}

.home-offer-intro > span { color: #d5d8ff; font-size: 23px; font-weight: 850; line-height: 1; }
.home-offer-intro h2,
.home-offer-close h2 { margin: 0 0 3px; color: #29355b; font-size: 14px; }
.home-offer-intro p { margin: 0; color: #657087; }

.home-offer-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 10px; }
.home-offer-grid > section { border: 1px solid #e0e4ee; border-radius: 8px; padding: 8px 10px; background: #fbfcff; }
.home-offer-grid h3 { margin: 0 0 5px; color: #6558e8; font-size: 9px; text-transform: uppercase; letter-spacing: .07em; }
.home-offer-grid ul { display: grid; gap: 4px; margin: 0; padding-left: 14px; }
.home-offer-grid li::marker { color: #10a58f; }
.home-offer-grid li small { color: #748096; }
.home-offer-outcomes { display: grid; grid-template-columns: repeat(2, 1fr); gap: 6px; background: linear-gradient(145deg, #f5f3ff, #f0fbfb) !important; }
.home-offer-outcomes h3,
.home-offer-outcomes blockquote { grid-column: 1 / -1; }
.home-offer-outcomes > div { border-radius: 6px; padding: 6px; background: #fff; }
.home-offer-outcomes > div strong { display: block; color: #0b949e; font-size: 16px; }
.home-offer-outcomes > div:nth-of-type(2) strong { color: #ee7d66; }
.home-offer-outcomes > div small { color: #6d7890; font-size: 6.8px; }
.home-offer-outcomes blockquote { margin: 0; border-left: 3px solid #8b5cf6; padding: 5px 7px; background: #fff; color: #514d75; font-size: 7.5px; font-style: italic; }

.home-offer-table { width: 100%; margin-top: 10px; border-collapse: separate; border-spacing: 0; overflow: hidden; border: 1px solid #dfe3ed; border-radius: 8px; }
.home-offer-table th { padding: 6px 8px; background: #343869; color: #fff; font-size: 7px; letter-spacing: .06em; text-align: left; text-transform: uppercase; }
.home-offer-table td { padding: 7px 8px; border: 0; background: #fff; color: #303b58; }
.home-offer-table td:nth-child(2) { color: #0b8e7b; font-weight: 750; }
.home-offer-table td:last-child strong { color: #6558e8; }
.home-offer-table small { color: #778197; }

.home-offer-close {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 92px;
  gap: 14px;
  align-items: center;
  margin-top: 10px;
  border-radius: 9px;
  padding: 10px 12px;
  background: linear-gradient(115deg, #eef0ff, #e9fafa 62%, #fff3e7);
}

.home-offer-close p { margin: 0 0 4px; color: #637087; }
.home-offer-close a { color: #4d4fc7; font-size: 8px; font-weight: 750; text-decoration: none; }
.home-offer-qr { display: grid; justify-items: center; gap: 3px; text-align: center; }
.home-offer-qr .editra-media-frame { width: 58px !important; height: 58px !important; margin: 0 auto; }
.home-offer-qr canvas,
.home-offer-qr img { width: 100% !important; height: 100% !important; }
.home-offer-qr small { color: #657087; font-size: 6.5px; }

@media (max-width: 767.98px) {
  .home-editor-tool-map { justify-content: flex-start; }
  .home-offer-hero { grid-template-columns: 1fr; }
  .home-offer-hero img { display: none; }
  .home-offer-reference { grid-template-columns: 1fr; }
  .home-offer-reference > div:last-child { text-align: left; }
  .home-offer-grid { grid-template-columns: 1fr; }
}

/* Simple, centred Classic editor on the homepage. */
.home-live-editor .terra-section-heading { margin-bottom: 1.4rem; }

.home-live-editor-stage {
  display: flex;
  justify-content: center;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  margin-inline: auto;
  overflow: hidden;
}

.home-live-editor-stage :is(
  .editra-demo-host,
  .editra-card,
  .editra-shell,
  .editra-theme-classic,
  .editra-menubar,
  .editra-toolbar,
  .editra-editor
) {
  box-sizing: border-box;
  min-width: 0 !important;
  max-width: 100% !important;
}

.home-live-editor-stage .editra-demo-host,
.home-live-editor-stage .editra-card,
.home-live-editor-stage .editra-shell {
  width: min(100%, 900px) !important;
  margin-inline: auto;
}

.home-live-editor-stage .editra-toolbar {
  flex-wrap: wrap;
}

.home-live-editor-stage .editra-menubar {
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scrollbar-width: thin;
}

.home-live-editor-stage .editra-editor {
  width: 100% !important;
  overflow-x: hidden !important;
}

.home-live-editor-stage .editra-editor table {
  width: 100% !important;
  max-width: 100% !important;
  table-layout: fixed;
}

.home-live-editor-stage .editra-editor :is(td, th) {
  min-width: 0;
  overflow-wrap: anywhere;
}

.home-live-editor-stage .editra-editor :is(img, video, iframe, canvas, svg, .editra-media-frame) {
  max-width: 100% !important;
}

.home-live-editor-stage .home-offer-document {
  max-width: 820px;
  margin-inline: auto;
  color: #28334a;
  font-size: 12.5px;
  line-height: 1.52;
}

.home-live-editor-stage .home-offer-hero h1 { font-size: 28px; line-height: 1.08; }
.home-live-editor-stage .home-offer-intro h2,
.home-live-editor-stage .home-offer-close h2 { font-size: 16px; }

@media (max-width: 767.98px) {
  .home-live-editor > .container {
    width: 100%;
    max-width: 100%;
    padding-inline: clamp(10px, 3.5vw, 18px);
  }

  .home-live-editor-stage .editra-toolbar { gap: 3px; padding: 6px; }
  .home-live-editor-stage .editra-menu-trigger { padding-inline: 6px; font-size: .68rem; }
  .home-live-editor-stage .editra-editor { padding: clamp(.75rem, 4vw, 1.2rem) !important; }
  .home-live-editor-stage .editra-editor :is(td, th) { padding: 6px 5px; }
  .home-live-editor-stage .home-offer-document { font-size: 12px; line-height: 1.48; }
  .home-live-editor-stage .home-offer-hero h1 { font-size: clamp(21px, 7vw, 27px); }
  .home-live-editor-stage .home-offer-close { grid-template-columns: minmax(0, 1fr) 72px; }
}

@media (max-width: 420px) {
  .home-live-editor-stage .home-offer-reference { grid-template-columns: 1fr; }
  .home-live-editor-stage .home-offer-close { grid-template-columns: 1fr; }
  .home-live-editor-stage .home-offer-qr { justify-self: start; }
}
