/* ezship.dev. Tokens first (light, then dark), then layout, then each section. */
*,
*::before,
*::after {
  box-sizing: border-box;
}

:root {
  color-scheme: light;
  --font-sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-display: "Fraunces", Georgia, serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  --bg: #faf7f2;
  --bg-alt: #f2ece2;
  --surface: #ffffff;
  --border: #e6ddd0;
  --border-strong: #d3c6b3;
  --text: #211a14;
  --text-muted: #5f5448;
  --text-dim: #8d8172;

  --brand: #8b5a2b;
  --brand-strong: #6f4520;
  --brand-soft: rgba(139, 90, 43, 0.1);
  --on-brand: #ffffff;
  --ok: #2f7d52;
  --ok-soft: rgba(47, 125, 82, 0.12);
  --warn: #a5560f;
  --warn-soft: rgba(196, 110, 20, 0.14);

  --code-bg: #1d1814;
  --code-bar: #2a231d;
  --code-text: #eee4d6;
  --code-dim: #8f8272;
  --syn-k: #e0a36a;

  --dark-bg: #1d1814;
  --dark-text: #eee4d6;
  --dark-muted: #b3a593;
  --dark-border: #3a3129;

  --radius: 12px;
  --shadow: 0 1px 2px rgba(33, 26, 20, 0.06), 0 12px 32px rgba(33, 26, 20, 0.08);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #15110e;
    --bg-alt: #1c1713;
    --surface: #221c17;
    --border: #342b23;
    --border-strong: #4a3e33;
    --text: #f1e8dc;
    --text-muted: #bcae9c;
    --text-dim: #8a7d6d;
    --brand: #d4935a;
    --brand-strong: #e6a870;
    --brand-soft: rgba(212, 147, 90, 0.14);
    --on-brand: #1a120b;
    --ok: #6cc893;
    --ok-soft: rgba(108, 200, 147, 0.14);
    --warn: #f0a75a;
    --warn-soft: rgba(240, 167, 90, 0.16);
    --code-bg: #0f0c0a;
    --code-bar: #1a1511;
    --dark-bg: #0f0c0a;
    --dark-border: #2c241d;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 12px 32px rgba(0, 0, 0, 0.35);
  }
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #15110e;
  --bg-alt: #1c1713;
  --surface: #221c17;
  --border: #342b23;
  --border-strong: #4a3e33;
  --text: #f1e8dc;
  --text-muted: #bcae9c;
  --text-dim: #8a7d6d;
  --brand: #d4935a;
  --brand-strong: #e6a870;
  --brand-soft: rgba(212, 147, 90, 0.14);
  --on-brand: #1a120b;
  --ok: #6cc893;
  --ok-soft: rgba(108, 200, 147, 0.14);
  --warn: #f0a75a;
  --warn-soft: rgba(240, 167, 90, 0.16);
  --code-bg: #0f0c0a;
  --code-bar: #1a1511;
  --dark-bg: #0f0c0a;
  --dark-border: #2c241d;
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 12px 32px rgba(0, 0, 0, 0.35);
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 72px;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a {
  color: var(--brand);
  text-decoration: none;
}
a:hover {
  color: var(--brand-strong);
}

code {
  font-family: var(--font-mono);
  font-size: 0.86em;
  background: var(--brand-soft);
  color: var(--text);
  padding: 0.1em 0.35em;
  border-radius: 5px;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.12;
  letter-spacing: -0.02em;
}
h1,
h2 {
  font-family: var(--font-display);
  font-weight: 650;
}
h3 {
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.wrap {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
}

.eyebrow {
  margin: 0 0 14px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brand);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 999px;
  background: var(--brand);
  color: var(--on-brand);
  font: inherit;
  font-weight: 600;
  font-size: 0.96rem;
  border: 1px solid var(--brand);
  cursor: pointer;
  transition:
    background 0.15s,
    transform 0.15s;
}
.btn:hover {
  background: var(--brand-strong);
  color: var(--on-brand);
  transform: translateY(-1px);
}
.btn:disabled {
  cursor: not-allowed;
  opacity: 0.5;
  transform: none;
  background: var(--brand);
}
.btn-sm {
  padding: 8px 16px;
  font-size: 0.88rem;
}
.btn-block {
  width: 100%;
}
.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--border-strong);
}
.btn-ghost:hover {
  background: var(--surface);
  color: var(--text);
}

/* Nav */
.nav {
  position: sticky;
  top: 0;
  z-index: 10;
  background: color-mix(in srgb, var(--bg) 85%, transparent);
  backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  display: flex;
  align-items: center;
  gap: 32px;
  height: 64px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-family: var(--font-display);
  font-weight: 650;
  font-size: 1.3rem;
  letter-spacing: -0.02em;
}
.brand:hover {
  color: var(--text);
}
.nav-links {
  display: flex;
  gap: 26px;
}
.nav-links a,
.link-quiet {
  color: var(--text-muted);
  font-size: 0.93rem;
  font-weight: 500;
}
.nav-links a:hover,
.link-quiet:hover,
.link-quiet[aria-current="page"] {
  color: var(--text);
}
.nav-cta {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 18px;
}

/* Hero */
.hero {
  padding: 88px 0 80px;
  background:
    radial-gradient(900px 420px at 85% 10%, var(--brand-soft), transparent 70%),
    radial-gradient(700px 380px at 0% 100%, var(--brand-soft), transparent 70%);
}
.hero-short {
  padding: 80px 0 24px;
}
.hero-stack {
  display: grid;
  gap: 64px;
}
.hero-copy.center {
  max-width: 820px;
  margin: 0 auto;
  text-align: center;
}
.hero h1 {
  font-size: clamp(2.3rem, 5.4vw, 4rem);
  margin-bottom: 22px;
}
.lede {
  font-size: 1.16rem;
  color: var(--text-muted);
  margin: 0 0 30px;
  max-width: 38em;
}
.center .lede {
  margin-left: auto;
  margin-right: auto;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.hero-actions.center {
  justify-content: center;
}
.fineprint {
  margin: 18px 0 0;
  font-size: 0.86rem;
  color: var(--text-dim);
}

/* Studio mock (hero) and the shared bits of app mocks */
.studio,
.datagrid {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  font-size: 0.86rem;
}
.studio {
  max-width: 1040px;
  width: 100%;
  margin: 0 auto;
}
.studio-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
  font-size: 0.8rem;
}
.studio-org {
  color: var(--text-dim);
}
.studio-sep {
  color: var(--border-strong);
}
.studio-app {
  font-weight: 600;
}
.studio-spacer {
  flex: 1;
}
.seg {
  display: inline-flex;
  padding: 2px;
  border-radius: 7px;
  background: var(--bg-alt);
}
.seg b,
.seg i {
  padding: 2px 10px;
  border-radius: 5px;
  font-style: normal;
  font-weight: 500;
  color: var(--text-dim);
}
.seg b {
  background: var(--surface);
  color: var(--text);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
}
.pill,
.pill-ghost {
  padding: 3px 12px;
  border-radius: 999px;
  font-weight: 600;
}
.pill {
  background: var(--brand);
  color: var(--on-brand);
}
.pill-ghost {
  border: 1px solid var(--border-strong);
  color: var(--text-muted);
}
.studio-body {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  min-height: 380px;
}
.studio-body > * {
  min-width: 0;
}
.chat {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 18px;
  border-right: 1px solid var(--border);
  line-height: 1.5;
}
.chat p {
  margin: 0;
  padding: 10px 12px;
  border-radius: 10px;
}
.chat .me {
  align-self: flex-end;
  max-width: 92%;
  background: var(--bg-alt);
}
.chat .bot {
  color: var(--text-muted);
  padding-left: 0;
}
.chat .bot b {
  color: var(--text);
  font-weight: 600;
}
.chat .ask {
  display: block;
  margin-top: 8px;
  color: var(--brand);
  font-weight: 600;
}
.chat-input {
  margin-top: auto;
  padding: 9px 12px;
  border: 1px solid var(--border-strong);
  border-radius: 10px;
  color: var(--text-dim);
}
.app {
  padding: 18px;
  background: var(--bg);
  display: grid;
  align-content: start;
  gap: 14px;
}
.app-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.app-head strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 650;
}
.app-head span {
  color: var(--text-dim);
  font-size: 0.8rem;
}
.app-head .app-btn {
  padding: 6px 12px;
  border-radius: 8px;
  background: var(--brand);
  color: var(--on-brand);
  font-weight: 600;
  white-space: nowrap;
}
.tiles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.tiles div {
  padding: 10px 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 9px;
}
.tiles span {
  display: block;
  color: var(--text-dim);
  font-size: 0.74rem;
}
.tiles b {
  font-size: 1.3rem;
  font-weight: 600;
}
.tiles b.warn {
  color: var(--warn);
}
.app-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--surface);
  font-size: 0.8rem;
  font-variant-numeric: tabular-nums;
}
.app .app-table {
  border: 1px solid var(--border);
  border-radius: 9px;
  border-style: hidden;
  box-shadow: 0 0 0 1px var(--border);
}
.app-table th,
.app-table td {
  padding: 8px 10px;
  text-align: left;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}
.app-table th {
  color: var(--text-dim);
  font-weight: 500;
  font-size: 0.74rem;
}
.app-table tr:last-child td {
  border-bottom: 0;
}
.chip {
  display: inline-block;
  padding: 1px 8px;
  border-radius: 999px;
  font-style: normal;
  font-size: 0.74rem;
  font-weight: 600;
  background: var(--bg-alt);
  color: var(--text-muted);
}
.chip.ok {
  background: var(--ok-soft);
  color: var(--ok);
}
.chip.hold {
  background: var(--warn-soft);
  color: var(--warn);
}

/* Sections */
.section {
  padding: 104px 0;
}
.section-alt {
  background: var(--bg-alt);
}
.section-head {
  max-width: 660px;
  margin-bottom: 48px;
}
.section-head.center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}
.section-head.wide {
  max-width: 780px;
}
.section-head h2 {
  font-size: clamp(2rem, 3.6vw, 2.75rem);
  margin-bottom: 18px;
}
.section-head p:not(.eyebrow) {
  color: var(--text-muted);
  margin: 0;
  font-size: 1.06rem;
}
.split {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 56px;
  align-items: center;
}
.split-even {
  grid-template-columns: 1fr 1fr;
  align-items: start;
}
.split > * {
  min-width: 0;
}
.split .section-head {
  margin-bottom: 0;
}

/* Use cases */
.industries {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.industry {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
}
.industry-icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-bottom: 18px;
  border-radius: 11px;
  background: var(--brand-soft);
}
.industry-icon svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: var(--brand);
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.industry h3 {
  margin-bottom: 14px;
}
.industry ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}
.industry li {
  position: relative;
  padding-left: 16px;
  color: var(--text-muted);
  font-size: 0.94rem;
  line-height: 1.45;
}
.industry li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--border-strong);
}
.uses-more {
  margin: 32px 0 0;
  color: var(--text-muted);
}

/* Cards */
.cards {
  display: grid;
  gap: 20px;
}
.cards-3 {
  grid-template-columns: repeat(3, 1fr);
}
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
}
.card h3 {
  margin-bottom: 10px;
}
.card p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.97rem;
}
.bridge {
  max-width: 640px;
  margin: 48px auto 0;
  text-align: center;
  font-family: var(--font-display);
  font-size: 1.35rem;
  line-height: 1.4;
}

/* How it works */
.flow {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
  counter-reset: none;
}
.flow li {
  position: relative;
}
.flow li:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 20px;
  left: 56px;
  right: -16px;
  height: 1px;
  background: var(--border-strong);
}
.step-n {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  margin-bottom: 18px;
  border-radius: 50%;
  background: var(--brand-soft);
  color: var(--brand);
  font-weight: 600;
  font-family: var(--font-display);
}
.flow h3 {
  font-size: 1.15rem;
  margin-bottom: 8px;
}
.flow p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.97rem;
}

/* Ticks */
.ticks {
  list-style: none;
  padding: 0;
  margin: 28px 0 0;
  display: grid;
  gap: 12px;
}
.ticks li {
  position: relative;
  padding-left: 28px;
  color: var(--text-muted);
}
.ticks strong {
  color: var(--text);
  font-weight: 600;
}
.ticks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.35em;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--brand-soft);
}
.ticks li::after {
  content: "";
  position: absolute;
  left: 5px;
  top: calc(0.35em + 5px);
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--brand);
}
.ticks-cards {
  margin: 0;
  gap: 16px;
}
.ticks-cards li {
  padding: 20px 22px 20px 50px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.ticks-cards li strong {
  display: block;
  margin-bottom: 4px;
}
.ticks-cards li::before {
  left: 20px;
  top: 24px;
}
.ticks-cards li::after {
  left: 25px;
  top: 29px;
}

/* Data view mock */
.datagrid .app-table {
  font-size: 0.8rem;
}
.history {
  padding: 14px 16px 16px;
  border-top: 1px solid var(--border);
  background: var(--bg);
}
.history-head {
  margin: 0 0 10px;
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.history ol {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}
.history li {
  display: grid;
  grid-template-columns: 44px 1fr auto;
  gap: 10px;
  align-items: baseline;
  font-size: 0.8rem;
}
.history time {
  color: var(--text-dim);
  font-variant-numeric: tabular-nums;
}
.history b {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 0.92em;
}
.history em {
  font-style: normal;
  color: var(--text-dim);
  white-space: nowrap;
}

/* Connected apps */
.system {
  display: grid;
  gap: 0;
}
.system-apps {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 14px;
}
.system-apps span {
  position: relative;
  padding: 16px 10px;
  text-align: center;
  font-weight: 600;
  font-size: 0.94rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  margin-bottom: 36px;
}
.system-apps span::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 100%;
  width: 2px;
  height: 37px;
  background: var(--border-strong);
}
.system-db {
  display: grid;
  gap: 4px;
  padding: 22px 26px;
  text-align: center;
  background: var(--brand);
  color: var(--on-brand);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.system-db strong {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 650;
}
.system-db span {
  font-size: 0.92rem;
  opacity: 0.85;
}

/* Terminal */
.terminal {
  margin: 0;
  background: var(--code-bg);
  color: var(--code-text);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.06);
}
.terminal-bar {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 11px 14px;
  background: var(--code-bar);
  font-family: var(--font-mono);
  font-size: 0.76rem;
  color: var(--code-dim);
}
.terminal-bar span {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #4a3f35;
}
.terminal-bar em {
  font-style: normal;
  margin-left: 10px;
}
.terminal pre {
  margin: 0;
  padding: 20px 22px;
  overflow-x: auto;
  font-family: var(--font-mono);
  font-size: 0.84rem;
  line-height: 1.7;
}
.terminal code {
  background: none;
  padding: 0;
  font-size: inherit;
  color: inherit;
}
.terminal .p {
  color: var(--syn-k);
}
.terminal .ok {
  color: #7fcf9a;
}
.cursor {
  display: inline-block;
  width: 8px;
  height: 1.05em;
  margin-left: 4px;
  vertical-align: text-bottom;
  background: var(--code-text);
  animation: blink 1.1s steps(1) infinite;
}
@keyframes blink {
  50% {
    opacity: 0;
  }
}

/* Trust */
.section-dark {
  background: var(--dark-bg);
  color: var(--dark-text);
}
.section-dark .section-head p:not(.eyebrow) {
  color: var(--dark-muted);
}
.section-dark .eyebrow {
  color: #d4935a;
}
.trust-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--dark-border);
  border: 1px solid var(--dark-border);
  border-radius: var(--radius);
  overflow: hidden;
}
.trust-list li {
  background: var(--dark-bg);
  padding: 28px;
  color: var(--dark-muted);
  font-size: 0.96rem;
}
.trust-list strong {
  display: block;
  color: var(--dark-text);
  margin-bottom: 8px;
  font-weight: 600;
}

/* Pricing */
.pricing-section {
  padding-top: 40px;
}
.plans {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  align-items: start;
}
.plan {
  display: grid;
  gap: 16px;
  padding: 30px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.plan-featured {
  border-color: var(--brand);
  box-shadow:
    0 0 0 1px var(--brand),
    var(--shadow);
}
.plan-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.plan h2 {
  font-size: 1.6rem;
}
.badge {
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--brand-soft);
  color: var(--brand);
  font-size: 0.76rem;
  font-weight: 600;
  white-space: nowrap;
}
.badge-muted {
  background: var(--bg-alt);
  color: var(--text-muted);
}
.plan-price {
  margin: 0;
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 4px 10px;
}
.plan-price b {
  font-family: var(--font-display);
  font-size: 2.3rem;
  font-weight: 650;
  letter-spacing: -0.02em;
  line-height: 1.1;
}
.plan-price span {
  color: var(--text-dim);
  font-size: 0.92rem;
}
.plan-pitch {
  margin: 0;
  color: var(--text-muted);
  min-height: 3.2em;
}
.plan-note {
  margin: 0;
  font-size: 0.88rem;
  color: var(--text-dim);
}
.plan-list {
  list-style: none;
  margin: 0;
  padding: 16px 0 0;
  border-top: 1px solid var(--border);
  display: grid;
  gap: 10px;
}
.plan-list li {
  position: relative;
  padding-left: 26px;
  font-size: 0.94rem;
  line-height: 1.45;
}
.plan-list li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 0.3em;
  width: 10px;
  height: 6px;
  border-left: 2px solid var(--brand);
  border-bottom: 2px solid var(--brand);
  transform: rotate(-45deg);
}
.plan-list em {
  font-style: normal;
  font-family: var(--font-mono);
  font-size: 0.86em;
}
.plans-foot {
  max-width: 680px;
  margin: 36px auto 0;
  text-align: center;
  font-size: 0.92rem;
  color: var(--text-dim);
}
.faq-wrap {
  display: grid;
  grid-template-columns: 0.7fr 1.3fr;
  gap: 56px;
}
.faq-wrap .section-head {
  margin-bottom: 0;
}
.faq {
  display: grid;
  gap: 12px;
}
.faq details {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0 22px;
}
.faq summary {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  cursor: pointer;
  padding: 18px 0;
  font-weight: 600;
  list-style: none;
}
.faq summary::-webkit-details-marker {
  display: none;
}
.faq summary::after {
  content: "+";
  color: var(--brand);
  font-size: 1.3rem;
  line-height: 1;
}
.faq details[open] summary::after {
  content: "−";
}
.faq details p {
  margin: 0 0 18px;
  color: var(--text-muted);
}

/* CTA */
.cta {
  text-align: center;
  background:
    radial-gradient(700px 300px at 50% 0%, var(--brand-soft), transparent 70%),
    var(--bg);
}
.cta-inner {
  max-width: 720px;
}
.cta h2 {
  font-size: clamp(2rem, 4.2vw, 3rem);
  margin-bottom: 18px;
}
.cta p {
  color: var(--text-muted);
  font-size: 1.08rem;
  margin: 0 0 32px;
}

/* Footer */
.footer {
  border-top: 1px solid var(--border);
  padding: 32px 0;
  font-size: 0.88rem;
  color: var(--text-dim);
}
.footer-inner {
  display: flex;
  align-items: center;
  gap: 28px;
  flex-wrap: wrap;
}
.footer .brand {
  font-size: 1.1rem;
}
.footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 22px;
}
.footer nav a {
  color: var(--text-muted);
}
.footer p {
  margin: 0 0 0 auto;
}

/* Responsive */
@media (max-width: 1040px) {
  .industries {
    grid-template-columns: 1fr 1fr;
  }
  .flow {
    grid-template-columns: 1fr 1fr;
    gap: 40px 28px;
  }
  .flow li::after {
    display: none;
  }
  .plans {
    grid-template-columns: 1fr;
    max-width: 560px;
    margin: 0 auto;
  }
  .plan-pitch {
    min-height: 0;
  }
}

@media (max-width: 960px) {
  .split,
  .split-even,
  .faq-wrap {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .cards-3,
  .trust-list {
    grid-template-columns: 1fr 1fr;
  }
  .system-apps {
    grid-template-columns: repeat(3, 1fr);
  }
  .system-apps span:nth-child(-n + 3)::after {
    display: none;
  }
  .nav-links {
    display: none;
  }
}

@media (max-width: 760px) {
  .studio-body {
    grid-template-columns: 1fr;
  }
  .chat {
    border-right: 0;
    border-bottom: 1px solid var(--border);
  }
  .chat-input {
    margin-top: 4px;
  }
  .studio-bar .seg,
  .studio-bar .pill-ghost {
    display: none;
  }
  .app {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 640px) {
  body {
    font-size: 16px;
  }
  .wrap {
    padding: 0 16px;
  }
  .nav-inner {
    gap: 16px;
  }
  .nav-cta {
    gap: 14px;
  }
  .nav-cta .link-quiet:not(.keep) {
    display: none;
  }
  .hero {
    padding: 56px 0 56px;
  }
  .hero-short {
    padding: 56px 0 8px;
  }
  .hero-stack {
    gap: 44px;
  }
  .section {
    padding: 72px 0;
  }
  .industries,
  .flow,
  .cards-3,
  .trust-list {
    grid-template-columns: 1fr;
  }
  .system-apps {
    grid-template-columns: 1fr 1fr;
  }
  .system-apps span::after,
  .system-apps span:nth-child(-n + 3)::after {
    display: none;
  }
  .system-apps span {
    margin-bottom: 0;
  }
  .system {
    gap: 14px;
  }
  .datagrid .app-table th:nth-child(3),
  .datagrid .app-table td:nth-child(3),
  .datagrid .app-table th:nth-child(4),
  .datagrid .app-table td:nth-child(4) {
    display: none;
  }
  .history li {
    grid-template-columns: 40px 1fr;
  }
  .history em {
    grid-column: 2;
  }
  .tiles b {
    font-size: 1.1rem;
  }
  .app .app-table th:nth-child(-n + 3):not(:nth-child(2)),
  .app .app-table td:nth-child(-n + 3):not(:nth-child(2)) {
    display: none;
  }
  .app .app-table th,
  .app .app-table td {
    white-space: normal;
  }
  .plan {
    padding: 24px;
  }
  .terminal pre {
    font-size: 0.76rem;
    padding: 16px;
  }
  .footer p {
    margin-left: 0;
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .cursor {
    animation: none;
  }
  .btn:hover {
    transform: none;
  }
}

/* Free trial form (pricing) */
.trial-form {
  display: grid;
  gap: 12px;
}
.trial-field {
  display: grid;
  gap: 6px;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-muted);
}
.trial-field input {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--border-strong);
  border-radius: 10px;
  background: var(--surface);
  color: var(--text);
  font: inherit;
  font-size: 0.96rem;
}
.trial-field input:focus {
  outline: 2px solid var(--brand);
  outline-offset: 1px;
  border-color: var(--brand);
}
.plan-note.is-error {
  color: var(--warn);
}
.trial-sent {
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--ok-soft);
}
.trial-sent p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.92rem;
}
.trial-sent .trial-sent-title {
  margin-bottom: 4px;
  color: var(--ok);
  font-weight: 600;
  font-size: 1rem;
}

/* Support and legal pages */
.skip-link {
  position: absolute;
  left: 16px;
  top: -100px;
  z-index: 20;
  padding: 10px 16px;
  border-radius: 8px;
  background: var(--brand);
  color: var(--on-brand);
}
.skip-link:focus {
  top: 16px;
  outline: 2px solid var(--text);
  outline-offset: 3px;
}
.document-meta {
  color: var(--text-muted);
  font-size: 0.9rem;
}
.document-section {
  padding-top: 40px;
}
.document-layout {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 64px;
  align-items: start;
}
.document-toc {
  position: sticky;
  top: 104px;
  padding: 22px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
}
.document-toc nav {
  display: grid;
  gap: 12px;
}
.document-toc p {
  margin: 0 0 4px;
  color: var(--text);
  font-weight: 600;
}
.document-toc a {
  color: var(--text-muted);
  font-size: 0.88rem;
  line-height: 1.4;
}
.document-toc a:hover {
  color: var(--brand);
}
.document-body {
  max-width: 760px;
  min-width: 0;
}
.document-body section + section {
  margin-top: 40px;
}
.document-body h2 {
  margin-bottom: 16px;
  font-size: clamp(1.45rem, 2.5vw, 1.85rem);
}
.document-body p,
.document-body li {
  color: var(--text-muted);
}
.document-body p {
  margin: 0 0 16px;
}
.document-body ul {
  margin: 0 0 16px;
  padding-left: 24px;
}
.document-body li + li {
  margin-top: 12px;
}
.document-body strong {
  color: var(--text);
}
.document-body a:not(.btn) {
  text-decoration: underline;
  text-underline-offset: 0.2em;
  overflow-wrap: anywhere;
}
.document-body a:focus-visible,
.document-toc a:focus-visible,
.footer a:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 4px;
}
.support-contact {
  padding: 24px;
  margin-bottom: 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
}
@media (max-width: 960px) {
  .document-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 36px;
  }
  .document-toc {
    position: static;
  }
}
