:root {
  --mkt-bg: #171410;
  --mkt-raised: #211c15;
  --mkt-raised-2: #1d1813;
  --mkt-ink: #ece5d8;
  --mkt-muted: rgba(236, 229, 216, .64);
  --mkt-accent: #c9a86a;
  --mkt-accent-hover: #dbbf8a;
  --mkt-paper: #f5f1e8;
  --mkt-paper-ink: #26211a;
  --mkt-paper-muted: rgba(38, 33, 26, .68);
  --mkt-paper-accent: #8a6d3b;
  --mkt-success: #9dbb8f;
  --mkt-border: rgba(236, 229, 216, .14);
  --mkt-paper-border: rgba(38, 33, 26, .14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body.marketing-v2 {
  margin: 0;
  min-width: 320px;
  background: var(--mkt-bg);
  color: var(--mkt-ink);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

.marketing-v2 h1,
.marketing-v2 h2,
.marketing-v2 h3,
.marketing-v2 p {
  margin-top: 0;
}

.marketing-v2 h1,
.marketing-v2 h2 {
  text-wrap: balance;
}

.marketing-v2 a {
  color: var(--mkt-accent);
  transition: color .15s ease, background-color .15s ease, border-color .15s ease, transform .14s var(--ease-out);
}

.marketing-v2 a:hover {
  color: var(--mkt-accent-hover);
}

.marketing-v2 a:active {
  transform: translateY(1px);
}

.marketing-v2 :focus-visible {
  outline: 2px solid var(--mkt-accent);
  outline-offset: 3px;
}

.marketing-v2 button,
.marketing-v2 input {
  font: inherit;
}

.marketing-v2 button {
  color: inherit;
}

.marketing-v2 :where(button:not(:disabled)) {
  transition: transform .14s var(--ease-out);
}

.marketing-v2 button:not(:disabled):active,
.marketing-v2 .mkt-button:active {
  transform: scale(.97);
}

.marketing-v2 .skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 1000;
  padding: 10px 14px;
  border-radius: 3px;
  background: var(--mkt-paper);
  color: var(--mkt-paper-ink);
  transform: translateY(-160%);
}

.marketing-v2 .skip-link:focus {
  transform: none;
}

.mkt-wrap {
  width: min(100% - 96px, 1080px);
  margin-inline: auto;
}

.mkt-eyebrow {
  margin: 0;
  color: var(--mkt-accent);
  font-size: 11px;
  letter-spacing: .22em;
  text-transform: uppercase;
}

.mkt-heading {
  margin: 0;
  font-family: "Newsreader", Georgia, serif;
  font-size: clamp(34px, 5vw, 44px);
  font-weight: 400;
  line-height: 1.14;
  letter-spacing: -.005em;
}

.mkt-heading em {
  font-weight: 300;
}

.marketing-v2 .mkt-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 13px 28px;
  border: 1px solid var(--mkt-accent);
  border-radius: 3px;
  background: var(--mkt-accent);
  color: var(--mkt-bg);
  font-size: 14px;
  font-weight: 650;
  line-height: 1;
  text-decoration: none;
  transition: color .15s ease, background-color .15s ease, border-color .15s ease, transform .14s var(--ease-out);
}

.marketing-v2 .mkt-button-secondary {
  border-color: rgba(236, 229, 216, .3);
  background: transparent;
  color: var(--mkt-ink);
}

@media (hover: hover) and (pointer: fine) {
  .marketing-v2 .mkt-button:hover {
    border-color: var(--mkt-accent-hover);
    background: var(--mkt-accent-hover);
    color: var(--mkt-bg);
    transform: scale(1.04);
  }

  .marketing-v2 .mkt-button-secondary:hover {
    border-color: rgba(236, 229, 216, .6);
    background: rgba(236, 229, 216, .04);
    color: var(--mkt-ink);
  }
}

.mkt-nav {
  position: sticky;
  top: 0;
  z-index: 30;
  width: 100%;
  border-bottom: 1px solid rgba(236, 229, 216, .12);
  background: rgba(23, 20, 16, .88);
  backdrop-filter: blur(10px);
}

/* Scroll edge effect: the hairline and material only materialise once content
   actually scrolls under the nav. Progressive — browsers without scroll-driven
   animations keep the static bar above. */
@supports (animation-timeline: scroll()) {
  @media (prefers-reduced-motion: no-preference) {
    .mkt-nav {
      border-bottom-color: transparent;
      background: transparent;
      backdrop-filter: none;
      animation: mktNavEdge linear both;
      animation-timeline: scroll();
      animation-range: 0 72px;
    }

    @keyframes mktNavEdge {
      to {
        border-bottom-color: rgba(236, 229, 216, .12);
        background: rgba(23, 20, 16, .88);
        backdrop-filter: blur(10px);
      }
    }
  }
}

.mkt-nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 67px;
  padding: 14px 48px;
}

.mkt-brand {
  color: var(--mkt-ink);
  font-family: "Newsreader", Georgia, serif;
  font-size: 22px;
  font-weight: 500;
  line-height: 1;
  text-decoration: none;
}

.mkt-brand:hover {
  color: var(--mkt-ink);
}

.mkt-nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}

.mkt-nav-links a,
.mkt-signin {
  color: rgba(236, 229, 216, .68);
  font-size: 13.5px;
  text-decoration: none;
}

.mkt-nav-links a:hover,
.mkt-signin:hover {
  color: var(--mkt-ink);
}

.mkt-nav-links a[aria-current="page"] {
  color: var(--mkt-accent);
}

.mkt-nav-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

/* Must out-rank .marketing-v2 .mkt-button, which also sets display/sizing. */
.marketing-v2 .mkt-nav-trial,
.marketing-v2 .mkt-nav-demo {
  min-height: 38px;
  padding: 9px 18px;
  font-size: 13.5px;
  white-space: nowrap;
}

.mkt-nav .nav-burger {
  display: none;
  width: 38px;
  height: 38px;
  padding: 9px;
  border: 1px solid var(--mkt-border);
  border-radius: 3px;
  background: transparent;
  cursor: pointer;
}

.mkt-nav .nav-burger svg {
  display: block;
  width: 18px;
  height: 18px;
}

.mkt-footer {
  padding: 44px 48px 36px;
  border-top: 1px solid rgba(236, 229, 216, .12);
}

.mkt-footer-grid {
  display: grid;
  grid-template-columns: 1fr auto auto auto;
  gap: 72px;
  align-items: start;
}

.mkt-footer-brand {
  display: flex;
  max-width: 300px;
  flex-direction: column;
  gap: 8px;
}

.mkt-footer-tagline {
  margin: 0;
  color: rgba(236, 229, 216, .62);
  font-family: "Newsreader", Georgia, serif;
  font-size: 13.5px;
  font-style: italic;
}

.mkt-footer-description {
  margin: 0;
  color: rgba(236, 229, 216, .62);
  font-size: 13px;
  line-height: 1.55;
}

.mkt-footer-column {
  display: flex;
  flex-direction: column;
  gap: 9px;
  min-width: 104px;
}

.mkt-footer-column h2 {
  margin: 0 0 3px;
  color: rgba(236, 229, 216, .55);
  font-family: inherit;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.mkt-footer-column a {
  color: rgba(236, 229, 216, .68);
  font-size: 13px;
  text-decoration: none;
}

.mkt-footer-column a:hover {
  color: var(--mkt-ink);
}

.mkt-footer-bottom {
  margin-top: 28px;
  color: rgba(236, 229, 216, .5);
  font-size: 12.5px;
}

@keyframes mktFadeUp {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@media (prefers-reduced-motion: no-preference) {
  html[data-anim] [data-reveal] {
    transition: opacity .7s var(--ease-out), transform .7s var(--ease-out);
  }

  html[data-anim] [data-reveal]:not([data-revealed]) {
    opacity: 0;
    transform: translateY(24px);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto !important;
  }

  .marketing-v2 [data-reveal],
  .marketing-v2 button,
  .marketing-v2 .mkt-button,
  .marketing-v2 .nav-sheet {
    transform: none !important;
  }

  .marketing-v2 .nav-sheet {
    transition-property: opacity, visibility;
    transition-duration: 200ms, 0s;
    transition-timing-function: var(--ease-out), linear;
  }
}

/* Users who ask for less transparency get a solid bar; users who ask for more
   contrast also get a firmer hairline. Both switch off the scroll edge effect. */
@media (prefers-reduced-transparency: reduce) {
  .mkt-nav {
    border-bottom-color: rgba(236, 229, 216, .12);
    background: var(--mkt-bg);
    backdrop-filter: none;
    animation: none;
  }
}

@media (prefers-contrast: more) {
  .mkt-nav {
    border-bottom-color: rgba(236, 229, 216, .45);
    background: var(--mkt-bg);
    backdrop-filter: none;
    animation: none;
  }
}

@media (max-width: 900px) {
  .mkt-nav-links,
  .marketing-v2 .mkt-nav-demo {
    display: none;
  }

  .mkt-nav .nav-burger {
    display: inline-grid;
    place-items: center;
  }

  .marketing-v2.nav-open {
    overflow: hidden;
  }

  .mkt-nav .nav-sheet {
    position: absolute;
    top: 100%;
    right: 20px;
    left: 20px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 14px;
    border: 1px solid var(--mkt-border);
    border-radius: 4px;
    background: var(--mkt-raised);
    box-shadow: 0 18px 50px rgba(0, 0, 0, .32);
  }

  .mkt-nav .nav-sheet > a {
    padding: 11px 10px;
    color: var(--mkt-ink);
    text-decoration: none;
  }
}

@media (max-width: 760px) {
  .mkt-wrap {
    width: min(100% - 40px, 1080px);
  }

  .mkt-nav-inner {
    min-height: 62px;
    padding: 12px 20px;
  }

  .mkt-nav-actions {
    gap: 10px;
  }

  .mkt-signin {
    font-size: 13px;
  }

  .marketing-v2 .mkt-nav-trial {
    min-height: 36px;
    padding: 8px 12px;
    font-size: 12px;
  }

  .mkt-nav .nav-burger {
    width: 36px;
    height: 36px;
  }

  .mkt-footer {
    padding: 40px 20px 32px;
  }

  .mkt-footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 36px 26px;
  }

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

@media (max-width: 520px) {
  .mkt-signin {
    display: none;
  }
}
