/* Base rules used by the approved demo document and its interactive catalog. */
:root {
  color-scheme: only light;
  --bg: #f5f7f8;
  --surface: #ffffff;
  --surface-2: #eef3f1;
  --line: #d9e1dd;
  --ink: #17211d;
  --muted: #65736d;
  --accent: #0f766e;
  --accent-strong: #115e59;
  --accent-soft: #d9f2ee;
  --warning: #b45309;
  --danger: #b42318;
  --shadow: 0 18px 55px rgba(21, 38, 31, 0.1);
  --landing-max: 1120px;
  --landing-gutter: clamp(20px, 5vw, 56px);
  --promo-height: 44px;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

@keyframes signup-attention-pulse {
  0%,
  100% {
    border-color: rgba(255, 255, 255, 0.14);
    box-shadow: 0 30px 90px rgba(0, 0, 0, 0.42);
  }

  38% {
    border-color: rgba(255, 247, 168, 0.78);
    box-shadow:
      0 0 0 6px rgba(255, 247, 168, 0.1),
      0 30px 90px rgba(0, 0, 0, 0.42),
      0 0 44px rgba(255, 247, 168, 0.18);
  }
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand h1,
.brand p {
  margin: 0;
}

.brand h1 {
  font-size: 17px;
  line-height: 1.2;
}

.brand p,
label span {
  color: var(--muted);
  font-size: 12px;
}

.brand a {
  color: inherit;
  font-weight: 700;
  text-decoration: none;
}

.brand a:hover {
  color: var(--accent);
  text-decoration: underline;
}

.main {
  min-width: 0;
  padding: 32px;
}

.signed-out .main {
  padding: 0;
}

.landing-page {
  display: block;
  min-height: 100vh;
  background: #f3f6f5;
}

.landing-nav {
  position: fixed;
  z-index: 3;
  top: 0;
  left: 0;
  width: 100%;
  border-bottom: 1px solid rgba(217, 225, 221, 0.78);
  background: rgba(251, 252, 252, 0.92);
  padding: 0 var(--landing-gutter);
}

.landing-nav-inner {
  display: flex;
  width: min(var(--landing-max), 100%);
  min-height: 72px;
  margin: 0 auto;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.landing-nav .brand strong {
  margin: 0;
}

.landing-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.landing-actions a {
  text-decoration: none;
}

.stack {
  display: grid;
  gap: 16px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

label {
  display: grid;
  gap: 7px;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  color: var(--ink);
  padding: 11px 12px;
  outline: none;
}

textarea {
  min-height: 160px;
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.button {
  min-height: 42px;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 10px 14px;
  font-weight: 700;
}

.button.primary {
  background: var(--accent);
  color: white;
}

.button.primary:hover {
  background: var(--accent-strong);
}

.button.secondary {
  border-color: var(--line);
  background: white;
  color: var(--ink);
}

.provider-lockup-link {
  min-width: 0;
  color: inherit;
  text-decoration: none;
}

.provider-lockup-link {
  display: block;
}

.provider-lockup-link:hover .model-name {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.list {
  display: grid;
  gap: 10px;
}

.model-name {
  overflow-wrap: anywhere;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 13px;
}

.provider-lockup {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 11px;
  align-items: center;
  min-width: 0;
}

.provider-lockup small {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
}

.provider-logo {
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  object-fit: contain;
  padding: 7px;
}

.provider-logo.fallback {
  display: grid;
  place-items: center;
  background: #111827;
  color: white;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0;
}

.price-current,
.reference-price {
  display: block;
}

.reference-price {
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
  margin-top: 3px;
  text-decoration-thickness: 2px;
  text-decoration-color: currentColor;
}

.muted-value {
  color: var(--muted);
  font-size: 13px;
}

.discount-badge {
  width: fit-content;
  border-radius: 999px;
  background: #dcfce7;
  color: #166534;
  padding: 5px 9px;
  font-size: 12px;
  font-weight: 800;
}

.landing-page {
  background: #080a09;
  color: #f7f7ef;
}

.landing-page .landing-nav {
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(8, 10, 9, 0.88);
  backdrop-filter: blur(16px);
}

.landing-wordmark,
.landing-wordmark-home {
  display: flex;
  min-width: 0;
  align-items: center;
}

.landing-wordmark {
  gap: 14px;
}

.landing-wordmark-home {
  gap: 10px;
  color: #ffffff;
  text-decoration: none;
}

.landing-wordmark-icon {
  display: grid;
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  overflow: hidden;
  border: 1px solid rgba(255, 247, 168, 0.14);
  border-radius: 10px;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.03),
    0 8px 22px rgba(0, 0, 0, 0.3);
}

.landing-wordmark-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.08);
}

.landing-wordmark-home strong {
  overflow: hidden;
  font-size: 15px;
  line-height: 1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.landing-wordmark-parent {
  color: rgba(247, 247, 239, 0.5);
  font-size: 12px;
  font-weight: 650;
  text-decoration: none;
  white-space: nowrap;
}

.landing-wordmark-parent:hover {
  color: #fff7a8;
}

.landing-page .landing-actions {
  align-items: center;
  flex-wrap: nowrap;
  gap: 24px;
}

.landing-mobile-menu-toggle {
  position: relative;
  display: none;
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  color: #f7f7ef;
  padding: 0;
}

.landing-mobile-menu-toggle:hover {
  border-color: rgba(255, 247, 168, 0.4);
  background: rgba(255, 247, 168, 0.08);
}

.landing-mobile-menu-icon,
.landing-mobile-menu-icon::before,
.landing-mobile-menu-icon::after {
  position: absolute;
  width: 18px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  content: "";
  transition: transform 160ms ease, opacity 160ms ease;
}

.landing-mobile-menu-icon {
  position: relative;
}

.landing-mobile-menu-icon::before {
  top: 0;
  left: 0;
  transform: translateY(-6px);
}

.landing-mobile-menu-icon::after {
  top: 0;
  left: 0;
  transform: translateY(6px);
}

.landing-nav.mobile-menu-open .landing-mobile-menu-icon {
  background: transparent;
}

.landing-nav.mobile-menu-open .landing-mobile-menu-icon::before {
  transform: rotate(45deg);
}

.landing-nav.mobile-menu-open .landing-mobile-menu-icon::after {
  transform: rotate(-45deg);
}

.landing-nav-link {
  color: rgba(247, 247, 239, 0.68);
  font-size: 13px;
  font-weight: 700;
  transition: color 140ms ease;
}

.landing-nav-link:hover {
  color: #ffffff;
}

.landing-page button.landing-nav-link {
  appearance: none;
  min-height: auto;
  border: 0;
  background: transparent !important;
  box-shadow: none;
  color: rgba(247, 247, 239, 0.68) !important;
  padding: 0;
}

.landing-page button.landing-nav-link:hover {
  color: #ffffff !important;
}

.landing-page .landing-nav-cta {
  min-height: 40px;
  padding: 9px 15px;
  font-size: 13px;
}

.landing-page .brand strong,
.landing-page .brand h1 {
  color: #ffffff;
}

.landing-page .brand p,
.landing-page .brand a {
  color: rgba(247, 247, 239, 0.68);
}

.landing-page .brand a:hover {
  color: #fff7a8;
}

.landing-page .button.primary {
  border-color: #fff7a8;
  background: #fff7a8;
  color: #10120f;
}

.landing-page .button.primary:hover {
  border-color: #f8eda0;
  background: #f8eda0;
}

.landing-page .button.secondary {
  border-color: rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.03);
  color: rgba(247, 247, 239, 0.86);
}

.landing-page .button.secondary:hover {
  border-color: rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.07);
}

@keyframes live-pricing-pulse {
  0% {
    opacity: 0.9;
    transform: scale(0.55);
  }

  70%,
  100% {
    opacity: 0;
    transform: scale(1.35);
  }
}

.landing-page .discount-badge {
  background: #d9ffe7;
  color: #0d6b39;
}

.landing-page label span {
  color: #ffffff;
}

.landing-page input,
.landing-page textarea,
.landing-page select {
  border-color: rgba(255, 255, 255, 0.16);
  background: rgba(0, 0, 0, 0.2);
  color: #ffffff;
}

.landing-page input:focus,
.landing-page textarea:focus,
.landing-page select:focus {
  border-color: #fff7a8;
  box-shadow: 0 0 0 3px rgba(255, 247, 168, 0.16);
}

@keyframes admin-mapping-attention {
  0%, 100% {
    border-color: var(--line);
  }
  20%, 70% {
    border-color: var(--warning, #ffd66b);
    box-shadow: 0 0 0 2px color-mix(in srgb, var(--warning, #ffd66b) 25%, transparent);
  }
}

.hidden {
  display: none !important;
}

@media (max-width: 900px) {

  .main {
    padding: 20px;
  }

  .landing-nav {
    position: relative;
    top: auto;
  }

  .landing-nav-inner {
    min-height: 64px;
  }

  .landing-wordmark-icon {
    width: 36px;
    height: 36px;
    flex-basis: 36px;
  }

  .landing-wordmark-home strong {
    font-size: 15px;
  }

  .landing-wordmark-parent {
    display: none;
  }

  .landing-actions {
    display: none;
  }
}

@media (max-width: 560px) {

  :root {
    --landing-gutter: 16px;
  }

  .landing-actions {
    flex-direction: column;
  }
}

@media (max-width: 1100px) {
  .landing-page .landing-nav {
    z-index: 30;
  }

  .landing-page .landing-nav-inner {
    position: relative;
  }

  .landing-mobile-menu-toggle {
    display: grid;
  }

  .landing-page .landing-actions {
    position: absolute;
    z-index: 31;
    top: calc(100% - 1px);
    right: 0;
    display: none;
    width: min(300px, calc(100vw - 32px));
    align-items: stretch;
    grid-template-columns: 1fr;
    gap: 3px;
    border: 1px solid rgba(255, 255, 255, 0.13);
    border-radius: 8px;
    background: #111412;
    box-shadow: 0 22px 60px rgba(0, 0, 0, 0.45);
    padding: 8px;
  }

  .landing-page .landing-nav.mobile-menu-open .landing-actions {
    display: grid;
  }

  .landing-page .landing-actions > a {
    display: flex;
    width: 100%;
    min-height: 43px;
    align-items: center;
    justify-content: flex-start;
    border-radius: 6px;
    padding: 10px 12px;
  }

  .landing-page .landing-actions .landing-nav-link:hover {
    background: rgba(255, 255, 255, 0.06);
  }

  .landing-page .landing-actions .landing-nav-cta {
    justify-content: center;
    margin-top: 3px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .landing-mobile-menu-icon,
  .landing-mobile-menu-icon::before,
  .landing-mobile-menu-icon::after {
    transition: none;
  }
}
