* { box-sizing: border-box; }

:root {
  --sticky-nav-offset: 110px;
  --page-width: 1280px;
  --page-gutter: 36px;
  --ground: #fbfaf7;
  --panel: #ffffff;
  --panel-2: #edf6f1;
  --ink: #25392b;
  --muted: #354b3d;
  --faint: #43584a;
  --accent: #007653;
  --action: #00c88c;
  --on-action: #0e2515;
  --light-mint: #abe7d2;
  --light-electric: #eaf8b6;
  --lime: #c4f135;
  --accent-bar: #00845d;
  --blue-bar: #3c6db3;
  --hairline: #c4d4ca;
  --good: #007653;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --sans: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
  --display: "Manrope", "Inter", "Segoe UI", system-ui, sans-serif;
}

html { color-scheme: light; scroll-padding-top: var(--sticky-nav-offset); }
body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16.5px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* Align the page and primary navigation at every viewport width. */
.shell, .site-header .site-nav-wrap {
  max-width: var(--page-width);
  margin-inline: auto;
  padding-inline: var(--page-gutter);
}

@media (max-width: 950px) { :root { --page-gutter: 28px; } }
@media (max-width: 480px) { :root { --page-gutter: 20px; } }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
a:focus-visible,
button:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 2px;
}
::selection { background: var(--light-mint); color: var(--ink); }

nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--ground);
  display: flex;
  align-items: center;
  gap: 26px;
  padding: 24px 0 20px;
  border-bottom: 1px solid var(--hairline);
}
.wordmark {
  line-height: 1;
  display: inline-flex;
  align-items: center;
  color: var(--ink);
  font-family: var(--mono);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.5px;
}
.wordmark:hover { text-decoration: none; }
.wordmark .by {
  line-height: 1;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-left: 8px;
  color: var(--faint);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 1px;
}
nav .wordmark .momento-logo { display: block; width: 102px; height: auto; }
nav .links {
  align-items: center;
  display: flex;
  gap: 20px;
  margin-left: auto;
  font-size: 13.5px;
  flex-wrap: wrap;
}
nav .links a { color: var(--muted); }
nav .links a:hover,
nav .links a.current { color: var(--accent); }
nav .links a.current,
nav .links a.cta { font-weight: 600; }
nav .links a.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 16px;
  border-radius: 6px;
  background: var(--action);
  color: var(--on-action);
}
nav .links a.cta:hover {
  background: var(--light-mint);
  color: var(--on-action);
  text-decoration: none;
}

/* Resources menu.

   Progressive enhancement, and deliberately in that direction: the markup ships
   with the submenu links sitting inline in the nav and the trigger hidden, so every
   destination is reachable with no script at all. site.js then hides the links,
   reveals the trigger and turns the submenu into a dropdown. Only four of the
   pages set the "js" class on <html>, so this cannot rely on it. */
nav .menu {
  position: relative;
  display: inline-flex;
  align-items: baseline;
  gap: 20px;
}
nav .menu-panel {
  display: inline-flex;
  align-items: baseline;
  gap: 20px;
}
/* The UA rule for [hidden] loses to any class selector above, so the panel has
   to be told to stay hidden explicitly or it reopens itself. */
nav .menu-panel[hidden] { display: none; }
nav .menu-trigger {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 0;
  color: var(--muted);
  background: none;
  border: 0;
  font: inherit;
  font-size: 13.5px;
  cursor: pointer;
}
nav .menu-trigger[hidden] { display: none; }
nav .menu-trigger:hover,
nav .menu-trigger[aria-expanded="true"],
nav .menu-trigger.current { color: var(--accent); }
nav .menu-trigger.current { font-weight: 600; }
nav .menu-trigger::after {
  content: "";
  width: 5px;
  height: 5px;
  border-right: 1.5px solid var(--accent);
  border-bottom: 1.5px solid var(--accent);
  transform: translateY(-2px) rotate(45deg);
  transition: transform 140ms ease;
}
nav .menu-trigger[aria-expanded="true"]::after {
  transform: translateY(1px) rotate(-135deg);
}

nav .menu.is-enhanced { gap: 0; }
nav .menu.is-enhanced .menu-panel {
  position: absolute;
  z-index: 20;
  top: calc(100% + 14px);
  /* Anchored to its right edge: the trigger sits near the end of the nav, so a
     left-anchored panel runs off the viewport at some widths. */
  right: -12px;
  left: auto;
  max-width: calc(100vw - 32px);
  flex-direction: column;
  align-items: stretch;
  gap: 2px;
  min-width: 178px;
  padding: 7px;
  background: var(--panel-2);
  border: 1px solid var(--hairline);
  border-radius: 10px;
  box-shadow: 0 20px 48px -22px rgba(37, 57, 43, 0.22);
}
nav .menu.is-enhanced .menu-panel a {
  padding: 7px 10px;
  border-radius: 6px;
  white-space: nowrap;
}
nav .menu.is-enhanced .menu-panel a:hover {
  background: rgba(0, 200, 140, 0.1);
  text-decoration: none;
}
@media (prefers-reduced-motion: reduce) {
  nav .menu-trigger::after { transition: none; }
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--accent);
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2.2px;
  text-transform: uppercase;
}
h1,
h2,
h3 {
  margin: 0;
  text-wrap: balance;
}
h1,
h1, h2, h3 { font-family: var(--display); font-weight: 800; }
h4, h5, h6 { font-family: var(--display); font-weight: 600; }

footer {
  padding: 30px 0 52px;
  border-top: 1px solid var(--hairline);
  color: var(--muted);
  font-size: 13px;
}
footer .cols {
  display: flex;
  gap: 36px;
  flex-wrap: wrap;
  justify-content: space-between;
}
footer .footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  line-height: 1;
}
footer .footer-brand strong {
  font-family: var(--mono);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.5px;
}
footer .footer-brand .by {
  margin-left: 2px;
  color: var(--faint);
  font-family: var(--mono);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 1px;
  line-height: 1;
}
footer .momento-logo-link {
  display: inline-flex;
  align-items: center;
}
footer .momento-logo {
  display: block;
  width: 102px;
  height: auto;
}
footer .footer-policies {
  display: flex;
  justify-content: flex-end;
  gap: 16px;
  margin-top: 14px;
  font-size: 13px;
  font-weight: 600;
}
footer .fine {
  max-width: 90ch;
  margin-top: 24px;
  color: var(--faint);
  font-size: 12px;
  line-height: 1.6;
}

@media (max-width: 560px) {
  :root { --sticky-nav-offset: 180px; }
  nav { flex-wrap: wrap; row-gap: 10px; align-items: flex-start; }
  nav .links { margin-left: 0; flex-basis: 100%; }
}

  /* Free demo announcement */
  .demo-banner {
    display: block;
    padding: 12px 26px;
    background: var(--lime);
    color: var(--on-action);
    font-size: 14px;
    line-height: 1.5;
    text-align: center;
  }
  .demo-banner:hover { text-decoration: none; }
  .demo-banner-cta {
    display: inline-block;
    margin-left: 8px;
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 3px;
  }
  .demo-banner:focus-visible {
    outline: 3px solid var(--ground);
    outline-offset: -6px;
  }


footer .cols { align-items: center; }
footer .footer-contact { display: inline-flex; align-items: center; justify-content: center; padding: 7px 14px; border-radius: 6px; background: var(--action); color: var(--on-action); font-size: 14px; font-weight: 600; line-height: 1.4; }
footer .footer-contact:hover { background: var(--light-mint); text-decoration: none; }

/* Shared navigation and model pricing. */
@media (min-width: 561px) and (max-width: 1050px) {
  nav { flex-wrap: wrap; gap: 14px; }
  nav .links { flex-basis: 100%; margin-left: 0; }
}
nav .links { column-gap: 16px; row-gap: 12px; }
.models-pricing { padding: 48px 0; }
.models-pricing > p { color: var(--muted); line-height: 1.65; }
.models-pricing h1 { font-size: clamp(30px, 4vw, 46px); line-height: 1.15; }
.models-pricing h2 { font-size: clamp(24px, 3vw, 32px); line-height: 1.25; }
.pricing-scroll { overflow-x: auto; margin: 24px 0; border: 1px solid var(--hairline); border-radius: 12px; }
.pricing-table { width: 100%; border-collapse: collapse; font-size: 14px; background: var(--panel); }
.pricing-table th, .pricing-table td { padding: 18px; text-align: left; border-bottom: 1px solid var(--hairline); white-space: nowrap; }
.pricing-table thead { color: var(--muted); background: var(--panel-2); }
.pricing-table tbody tr:last-child > * { border-bottom: 0; }
.pricing-table tbody th { color: var(--ink); }
.model-new { display: inline-block; margin-left: 6px; padding: 2px 6px; border-radius: 4px; font: 10px var(--mono); color: var(--accent); background: rgba(0,200,140,.1); }
.pricing-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 24px; }
.pricing-cta { display: inline-flex; padding: 12px 20px; border-radius: 7px; background: var(--action); color: var(--on-action); font-weight: 600; }
.pricing-cta:hover { background: var(--light-mint); text-decoration: none; }

/* Logo and account links are distinct from product navigation. */
nav .wordmark { flex-shrink: 0; margin-right: 24px; }
nav .links { margin-left: 0; }
nav .nav-account { display: inline-flex; align-items: center; gap: 16px; margin-left: auto; flex-shrink: 0; font-size: 13.5px; }
nav .nav-account > a { color: var(--muted); white-space: nowrap; }
nav .nav-account > a:hover { color: var(--accent); }
nav .nav-account-divider { color: var(--hairline); }
nav .nav-account > .cta { padding: 8px 16px; border-radius: 6px; color: var(--on-action); background: var(--action); font-weight: 600; }
nav .nav-account > .cta:hover { background: var(--light-mint); color: var(--on-action); text-decoration: none; }
@media (min-width: 561px) and (max-width: 1050px) { nav .links { flex-basis: auto; } }
@media (max-width: 700px) {
  nav { flex-wrap: wrap; gap: 16px 20px; }
  nav .wordmark { margin-right: 0; }
  nav .links { order: 3; flex-basis: 100%; }
  nav .nav-account { margin-left: auto; gap: 10px; }
}

/* Shared shine for native buttons and button-style links. */
@media (prefers-reduced-motion: no-preference) {
  :is(button, input[type="button"], input[type="submit"], input[type="reset"], a.btn, a.cta, a.pricing-cta, a.footer-contact, a.eval-cta, a.eval-scroll-cta-link, a.get, a.download-btn, a.survey-link):not(.menu-trigger):not(:disabled):not([aria-disabled="true"]):is(:hover, :focus-visible) {
    background-image: linear-gradient(110deg, transparent 42%, rgba(0,200,140,.12) 47%, rgba(233,245,238,.42) 50%, rgba(0,200,140,.12) 53%, transparent 58%) !important;
    background-size: 300% 100% !important;
    background-repeat: no-repeat !important;
    animation: site-button-shine 800ms ease-out;
  }
}
@keyframes site-button-shine {
  from { background-position: 100% 0; }
  to { background-position: 0% 0; }
}
@media (prefers-reduced-motion: reduce) {
  :is(button, input[type="button"], input[type="submit"], input[type="reset"], a.btn, a.cta, a.pricing-cta, a.footer-contact, a.eval-cta, a.eval-scroll-cta-link, a.get, a.download-btn, a.survey-link):not(.menu-trigger):not(:disabled):not([aria-disabled="true"]):is(:hover, :focus-visible) {
    box-shadow: 0 0 12px rgba(0,200,140,.22);
  }
}

.pricing-table .featured-model > * { background: rgba(0,200,140,.1); color: var(--ink); font-weight: 600; border-top: 1px solid rgba(0,200,140,.35); border-bottom: 1px solid rgba(0,200,140,.35); }
.pricing-table .featured-model > :first-child { box-shadow: inset 3px 0 var(--accent); color: var(--accent); }
.pricing-table .featured-model .model-new { background: var(--action); color: var(--on-action); font-weight: 700; }

.footer-main-links { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 12px 20px; max-width: 740px; font-size: 14px; font-weight: 600; }
@media (max-width: 700px) { .footer-main-links { justify-content: flex-start; } }

/* Platform menu descriptions share the navigation's active-page state. */
nav .menu.is-enhanced .platform-panel { min-width: 300px; }
nav .menu.is-enhanced .platform-panel a { padding: 11px 12px; white-space: normal; }
nav .platform-name { display: block; color: inherit; font-weight: 600; font-size: 13px; line-height: 1.4; }
nav .platform-description { display: block; margin-top: 4px; color: var(--faint); font-size: 11px; line-height: 1.5; }
