/* axtrabase.com. Colours match the dashboard tokens (apps/dashboard/app/globals.css). */
@font-face {
  font-family: "Geist";
  src: url("/fonts/Geist-Variable.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: "Geist Mono";
  src: url("/fonts/GeistMono-Variable.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --bg: #0b0b0d;
  --bg-alt: #0e0e10;
  --surface: #131316;
  --raised: #1e1e22;
  --border: #2c2c31;
  --hairline: #1e1e22;
  --text: #ececee;
  --text-2: #a1a1a8;
  --accent: #e8a33d;
  --accent-hover: #f2b552;
  --accent-fg: #2a1a06;
  --string: #9fd3a8;
  --danger: #f08a7e;
  --sans: "Geist", ui-sans-serif, system-ui, sans-serif;
  --mono: "Geist Mono", ui-monospace, "SF Mono", monospace;
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
a {
  color: var(--accent);
}
a:hover {
  color: var(--accent-hover);
}
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
::selection {
  background: rgba(232, 163, 61, 0.3);
}
h1,
h2,
h3,
p {
  margin: 0;
}

.wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding-inline: 24px;
}
.skip {
  position: absolute;
  left: -9999px;
}
.skip:focus {
  left: 16px;
  top: 16px;
  z-index: 10;
  background: var(--surface);
  padding: 10px 14px;
  border-radius: 8px;
}

/* Header */
.site-header {
  border-bottom: 1px solid var(--hairline);
}
.site-header .wrap {
  padding-block: 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
  font-size: 18px;
}
.brand:hover {
  color: var(--text);
}
.nav {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
}
.nav a {
  color: var(--text-2);
  text-decoration: none;
  font-size: 15px;
  padding: 12px;
}
.nav a:hover {
  color: var(--text);
}

/* Buttons and fields */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 48px;
  padding: 0 22px;
  font: inherit;
  font-size: 16px;
  font-weight: 600;
  color: var(--accent-fg);
  background: var(--accent);
  border: 0;
  border-radius: 8px;
  cursor: pointer;
  text-decoration: none;
}
.btn:hover {
  background: var(--accent-hover);
  color: var(--accent-fg);
}
.btn[disabled] {
  opacity: 0.7;
  cursor: progress;
}
.nav .btn {
  height: 44px;
  padding: 0 18px;
  font-size: 15px;
  color: var(--accent-fg);
  margin-left: 8px;
}
.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
label {
  font-size: 14px;
  color: var(--text-2);
}
input,
select {
  height: 48px;
  width: 100%;
  min-width: 0;
  padding: 0 14px;
  font: inherit;
  font-size: 16px;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
}
input::placeholder {
  color: #7c7c84;
}
.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.form-status {
  font-size: 15px;
  min-height: 1.5em;
}
.form-status.ok {
  color: var(--string);
}
.form-status.err {
  color: var(--danger);
}

/* Hero */
.hero {
  padding-block: 96px 88px;
  display: flex;
  flex-wrap: wrap;
  gap: 56px;
  align-items: center;
}
.hero-copy {
  flex: 1 1 460px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.pill {
  display: inline-flex;
  align-self: flex-start;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 500;
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: 999px;
  padding: 6px 12px;
}
.dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
}
h1 {
  font-size: clamp(40px, 6vw, 60px);
  line-height: 1.04;
  letter-spacing: -0.035em;
  font-weight: 700;
}
.lede {
  font-size: 19px;
  line-height: 1.55;
  color: var(--text-2);
  max-width: 540px;
}
.hero-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 520px;
}
.row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.row input {
  flex: 1 1 240px;
  width: auto;
}
.small {
  font-size: 14px;
  color: var(--text-2);
}

/* Code panels */
.code {
  flex: 1 1 480px;
  min-width: 0;
  margin: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
}
.code-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 10px 12px;
  border-bottom: 1px solid var(--hairline);
}
.tabs {
  display: flex;
  gap: 4px;
}
.tab {
  font: inherit;
  font-size: 13px;
  color: var(--text-2);
  background: none;
  border: 0;
  border-radius: 6px;
  padding: 0 12px;
  height: 36px;
  cursor: pointer;
}
.tab[aria-selected="true"] {
  color: var(--text);
  background: var(--raised);
  font-weight: 500;
}
.status {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--text-2);
}
pre {
  margin: 0;
  font-family: var(--mono);
  font-size: 13.5px;
  line-height: 1.7;
  color: var(--text);
  overflow-x: auto;
  white-space: pre;
}
.code pre {
  padding: 18px 20px;
}
.code pre + pre {
  padding-top: 0;
}
.k {
  color: var(--text-2);
}
.s {
  color: var(--string);
}
.a {
  color: var(--accent);
}

/* Sections */
.band {
  border-top: 1px solid var(--hairline);
}
.band.alt {
  background: var(--bg-alt);
  border-bottom: 1px solid var(--hairline);
}
.section {
  padding-block: 96px;
  display: flex;
  flex-direction: column;
  gap: 40px;
}
.intro {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 680px;
}
h2 {
  font-size: clamp(30px, 4vw, 38px);
  letter-spacing: -0.025em;
  font-weight: 650;
  line-height: 1.15;
}
.intro p {
  font-size: 17px;
  line-height: 1.6;
  color: var(--text-2);
}

.compare {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
  gap: 20px;
}
.compare figure {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
}
.compare figcaption {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-2);
}
.compare figcaption.accent {
  color: var(--accent);
}
.compare pre {
  flex: 1;
  padding: 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  font-size: 13px;
}
.compare pre.dim {
  color: var(--text-2);
}
.compare pre.hl {
  border-color: #3a2e1c;
}

.steps {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
  gap: 16px;
}
.steps li {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: 10px;
}
.num {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--accent);
}
h3 {
  font-size: 18px;
  font-weight: 600;
}
.steps p,
.features p {
  font-size: 15px;
  line-height: 1.55;
  color: var(--text-2);
}

.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: 1px;
  background: var(--hairline);
  border: 1px solid var(--hairline);
  border-radius: 14px;
  overflow: hidden;
}
.features > div {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 28px;
  background: var(--bg);
}
.features h3 {
  font-size: 17px;
}

/* Fit: Power Platform vs AxtraBase */
.fit {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
  gap: 16px;
}
.fit-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 28px;
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: 12px;
}
.fit-ours {
  border-color: #3a2e1c;
}
.fit-label {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--text-2);
}
.fit-ours .fit-label {
  color: var(--accent);
}
.fit-card h3 {
  font-size: 17px;
}
.fit-card ul {
  margin: 4px 0 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.fit-card li {
  position: relative;
  padding-left: 22px;
  font-size: 15px;
  line-height: 1.55;
  color: var(--text-2);
}
.fit-card li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 0.6em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: 1.5px solid var(--text-2);
}
.fit-ours li::before {
  border-color: var(--accent);
}

/* Pricing */
.plans {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
  gap: 16px;
}
.plan {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 28px;
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: 14px;
  min-width: 0;
}
.plan-featured {
  border-color: #3a2e1c;
}
.plan-head {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.plan-price {
  font-size: 24px;
  font-weight: 650;
  letter-spacing: -0.02em;
}
.plan-featured .plan-price {
  color: var(--accent);
}
.plan-note,
.plans-fine {
  font-size: 15px;
  line-height: 1.55;
  color: var(--text-2);
}
.plan dl {
  margin: 0;
  display: flex;
  flex-direction: column;
}
.plan dl > div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding-block: 10px;
  border-top: 1px solid var(--hairline);
  font-size: 14.5px;
}
.plan dt {
  color: var(--text-2);
}
.plan dd {
  margin: 0;
  text-align: right;
  white-space: nowrap;
  font-family: var(--mono);
  font-size: 13.5px;
}
.plans-fine {
  max-width: 760px;
}
.plans-fine a {
  color: var(--accent);
}

/* Waitlist */
.waitlist {
  max-width: 760px;
  margin: 0 auto;
  padding: 104px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  text-align: center;
}
.waitlist h2 {
  font-size: clamp(34px, 5vw, 44px);
  font-weight: 700;
}
.waitlist > p {
  font-size: 18px;
  line-height: 1.6;
  color: var(--text-2);
}
.waitlist form {
  width: 100%;
  max-width: 560px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  text-align: left;
  margin-top: 12px;
}
.waitlist .btn {
  height: 50px;
  margin-top: 6px;
}
.fine {
  font-size: 13px;
  line-height: 1.5;
  color: var(--text-2);
  text-align: center;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--hairline);
}
.site-footer .wrap {
  padding-block: 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.site-footer p {
  font-size: 14px;
  color: var(--text-2);
}
.site-footer nav {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
}
.site-footer nav a {
  color: var(--text-2);
  text-decoration: none;
  font-size: 14px;
  padding: 12px 10px;
}
.site-footer nav a:hover {
  color: var(--text);
}

/* Prose (privacy notice) */
.prose {
  max-width: 720px;
  padding-block: 72px 96px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  line-height: 1.65;
  color: var(--text-2);
  font-size: 16px;
}
.prose h1 {
  font-size: 40px;
  color: var(--text);
  margin-bottom: 8px;
}
.prose h2 {
  font-size: 22px;
  color: var(--text);
  margin-top: 18px;
}
.prose ul {
  margin: 0;
  padding-left: 22px;
}
.prose strong {
  color: var(--text);
}
.prose h3 {
  font-size: 17px;
  color: var(--text);
  margin-top: 6px;
}
.prose .note {
  padding: 14px 18px;
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: 8px;
  background: var(--surface);
  font-size: 15px;
}

@media (max-width: 560px) {
  .hero {
    padding-block: 56px 64px;
  }
  .section {
    padding-block: 64px;
  }
  .nav .btn {
    margin-left: 0;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

/* Try it (simulated) */
.try {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  align-items: stretch;
}
.try-controls {
  flex: 1 1 340px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
}
.try-controls select,
.try-controls input {
  height: 44px;
  font-size: 15px;
  background: var(--bg);
}
.try-controls fieldset {
  margin: 0;
  padding: 0;
  border: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}
.try-controls legend {
  font-size: 14px;
  color: var(--text-2);
  padding: 0;
  margin-bottom: 8px;
}
.mono {
  font-family: var(--mono);
  color: var(--text);
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
.try-filter {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.try-filter select {
  flex: 0 0 140px;
}
.try-filter input {
  flex: 1 1 140px;
  width: auto;
}
.try-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.try-row .field {
  flex: 1 1 110px;
}
.perm {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 10px;
}
.perm > div {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.perm strong {
  font-size: 15px;
  font-weight: 500;
}
.switch {
  flex: 0 0 auto;
  width: 52px;
  height: 30px;
  border-radius: 999px;
  border: 0;
  padding: 3px;
  cursor: pointer;
  display: flex;
  justify-content: flex-start;
  background: #3a3a40;
}
.switch span {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--text-2);
}
.switch[aria-checked="true"] {
  justify-content: flex-end;
  background: var(--accent);
}
.switch[aria-checked="true"] span {
  background: var(--accent-fg);
}
.eyebrow {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-2);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.checks {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.checks li {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  font-size: 14px;
  line-height: 1.45;
}
.checks .yes,
.checks .no {
  flex: 0 0 auto;
  font-weight: 600;
}
.checks .yes {
  color: var(--string);
}
.checks .no {
  color: var(--danger);
}
.try-output {
  flex: 1.5 1 480px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.try-output .code {
  flex: 0 0 auto;
}
.try-output .code.grow {
  flex: 1 1 auto;
}
.try-output pre {
  font-size: 13px;
}
.badge {
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 500;
  border-radius: 6px;
  padding: 4px 8px;
  color: var(--string);
  background: rgba(159, 211, 168, 0.1);
}
.badge.err {
  color: var(--danger);
  background: rgba(240, 138, 126, 0.1);
}

/* Docs quick reference */
.docs-head {
  padding-block: 72px 8px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 760px;
}
.docs-head p {
  font-size: 18px;
  line-height: 1.6;
  color: var(--text-2);
}
.docs-section {
  padding-block: 56px;
  display: flex;
  flex-direction: column;
  gap: 28px;
  border-bottom: 1px solid var(--hairline);
}
.docs-section:last-child {
  border-bottom: 0;
  padding-bottom: 96px;
}
.docs-section h2 {
  font-size: clamp(26px, 3.5vw, 30px);
}
.steps pre {
  font-size: 12.5px;
  padding: 12px 14px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
}
.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: 10px;
}
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
}
th,
td {
  text-align: left;
  padding: 12px 16px;
  border-bottom: 1px solid var(--hairline);
  white-space: nowrap;
}
th {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-2);
  background: var(--surface);
}
tr:last-child td {
  border-bottom: 0;
}
td:first-child {
  font-family: var(--mono);
  color: var(--accent);
  font-size: 13px;
}
td:nth-child(2) {
  font-family: var(--mono);
  font-size: 13.5px;
}
td:last-child {
  color: var(--text-2);
  white-space: normal;
}
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
  gap: 16px;
}
.cards > div {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 20px;
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: 10px;
  min-width: 0;
}
.cards p,
.err-list dd {
  font-size: 15px;
  line-height: 1.55;
  color: var(--text-2);
  margin: 0;
}
code {
  font-family: var(--mono);
  font-size: 0.9em;
}
.cards > div > code:first-child {
  color: var(--accent);
  font-size: 14px;
}
.cards > div > code:last-child {
  color: var(--string);
  font-size: 12.5px;
  overflow-wrap: anywhere;
}
.err-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.err-grid > * {
  flex: 1 1 360px;
  min-width: 0;
}
.err-grid > div {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.err-grid > div > p {
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-2);
}
.err-grid pre {
  padding: 18px 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
}
.err-list {
  margin: 0;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1px;
  background: var(--hairline);
  border: 1px solid var(--hairline);
  border-radius: 10px;
  overflow: hidden;
  align-self: flex-start;
}
.err-list dt,
.err-list dd {
  background: var(--bg);
  padding: 14px 18px;
}
.err-list dt {
  font-family: var(--mono);
  color: var(--accent);
  font-size: 14px;
}
.nav a[aria-current="page"] {
  color: var(--text);
}
.try-note {
  align-self: center;
}
.steps li,
.docs-section {
  min-width: 0;
}

/* Fixed-size panels: switching tabs or changing the Try it inputs never
   changes a box's size. Tab panels share one grid cell, so the box is as
   tall as its tallest panel; Try it outputs have fixed heights. */
.code.stack {
  display: grid;
  grid-template-rows: auto 1fr;
}
.code.stack > [role="tabpanel"] {
  grid-row: 2;
  grid-column: 1;
  min-width: 0;
}
.code.stack > [role="tabpanel"][hidden] {
  display: block;
  visibility: hidden;
}
.invisible {
  visibility: hidden;
}
#try-request {
  height: calc(5 * 1.7em + 36px);
}
#try-response {
  height: calc(10 * 1.7em + 36px);
  overflow: auto;
}
.checks {
  font-size: 14px;
  min-height: calc(5 * 1.45em + 24px);
}
@media (max-width: 760px) {
  /* Check lines wrap on narrow screens; reserve two lines each. */
  .checks {
    min-height: calc(10 * 1.45em + 24px);
  }
  .perm strong {
    min-height: calc(2 * 1.4em);
    line-height: 1.4;
  }
}
.code-bar > .badge {
  flex: none;
}
.code-bar > .status {
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
@media (max-width: 359px) {
  .checks {
    min-height: calc(14 * 1.45em + 24px);
  }
}
