/* ==========================================================
   Custom Fonts (Thoughtful Lab brand)
   ========================================================== */

@font-face {
  font-family: "Edgar";
  src:
    url("../fonts/Edgar-Light.woff2") format("woff2"),
    url("../fonts/Edgar-Light.woff") format("woff");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Edgar";
  src:
    url("../fonts/Edgar-Regular.woff2") format("woff2"),
    url("../fonts/Edgar-Regular.woff") format("woff");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Edgar";
  src:
    url("../fonts/Edgar-Medium.woff2") format("woff2"),
    url("../fonts/Edgar-Medium.woff") format("woff");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Edgar";
  src:
    url("../fonts/Edgar-Italic.woff2") format("woff2"),
    url("../fonts/Edgar-Italic.woff") format("woff");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: "Die Grotesk";
  src: url("../fonts/die-grotesk-a-light.woff2") format("woff2");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Die Grotesk";
  src: url("../fonts/die-grotesk-a-regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "KMR Waldenburg";
  src:
    url("../fonts/KMR-Waldenburg-Buch.woff2") format("woff2"),
    url("../fonts/KMR-Waldenburg-Buch.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "KMR Waldenburg";
  src:
    url("../fonts/KMR-Waldenburg-Halbfett.woff2") format("woff2"),
    url("../fonts/KMR-Waldenburg-Halbfett.ttf") format("truetype");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

/* ==========================================================
   Design Tokens
   ========================================================== */
:root {
  --bg: #f9f9f6;
  --accent: #090909;
  --fg: #3b3b39;
  --fg-soft: #3b3b39;
  --fg-mute: #595856;
  --fg-faint: #969592;
  --on-dark: #dfdeda;
  --surface-muted: #efefeb;
  --surface-card: #efefeb;
  --border: rgba(0, 0, 0, 0.1);
  --ok: #2d6a4f;
  --ok-bg: rgba(45, 106, 79, 0.08);
  --err: #9b2335;
  --err-bg: rgba(155, 35, 53, 0.08);
  --info: #3b3b39;
  --info-bg: rgba(0, 0, 0, 0.04);

  --font-serif: "Edgar", Georgia, "Times New Roman", serif;
  --font-sans: "Die Grotesk", "Helvetica Neue", Arial, sans-serif;
}

/* ==========================================================
   Reset & Base
   ========================================================== */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  background: var(--bg);
  overflow-y: scroll;
  scrollbar-color: #bbb #f4f4f4;
  scrollbar-width: auto;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  font-kerning: normal;
  font-variant-ligatures: common-ligatures contextual;
  font-variant-numeric: oldstyle-nums proportional-nums;
  font-optical-sizing: auto;
  font-synthesis: none;
}

html::-webkit-scrollbar {
  width: 16px;
}
html::-webkit-scrollbar-track {
  background: #f4f4f4;
}
html::-webkit-scrollbar-thumb {
  background: #bbb;
  border-radius: 5px;
}

::selection {
  background: rgba(0, 0, 0, 0.08);
  color: inherit;
}

body {
  min-height: 100vh;
  min-height: 100svh;
  min-height: 100dvh;
  font-family: var(--font-serif);
  background: var(--bg);
  color: var(--accent);
  display: flex;
  flex-direction: column;
  text-wrap: pretty;
  overflow-x: hidden;
}

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

/* ==========================================================
   Layout
   ========================================================== */
.page-surface {
  background: var(--bg);
  display: flex;
  flex: 1 0 auto;
  flex-direction: column;
  width: 100%;
}

.main {
  flex: 1;
}

/* ==========================================================
   Header
   ========================================================== */
.perspectives-header {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  padding: 2rem 2.5rem;
  width: 100%;
}

.logo-centered {
  font-family: "KMR Waldenburg", Georgia, serif;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--fg-soft);
  text-decoration: none;
}

.contact-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 0.75rem;
  margin-right: -0.75rem;
  border-radius: 999px;
  color: var(--fg);
  transition: background 240ms cubic-bezier(0.4, 0, 0.2, 1);
}

.contact-link:hover,
.contact-link:focus-visible {
  background: var(--surface-muted);
}

.contact-link svg {
  display: block;
}

/* ==========================================================
   Article-style content (vendor portal)
   ========================================================== */
.benchmarks-content {
  max-width: 720px;
  margin: 0 auto;
  padding: 2rem 2rem 6rem;
}

.benchmarks-content h1 {
  font-size: 56px;
  font-weight: 300;
  line-height: 1.1;
  letter-spacing: -0.01em;
  color: var(--fg);
  margin-top: 72px;
}

.benchmarks-content .subtitle {
  font-size: 20px;
  font-weight: 300;
  line-height: 1.5;
  color: var(--fg);
  margin-top: 10px;
  margin-bottom: 0;
}

.benchmarks-content .subtitle code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.82em;
  background: rgba(0, 0, 0, 0.05);
  padding: 0.08em 0.3em;
  border-radius: 4px;
}

.vendor-portal-body {
  margin: 48px 0 0;
}

/* ==========================================================
   Inline links
   ========================================================== */
.inline-link {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px dotted var(--fg-faint);
  padding-bottom: 1px;
}

.inline-link:hover {
  border-bottom-color: var(--accent);
}

/* ==========================================================
   Sections & form
   ========================================================== */
.card {
  margin-bottom: 2.5rem;
}

.card h2 {
  font-size: 32px;
  font-weight: 300;
  color: var(--fg);
  margin: 0 0 1.25rem;
}

.docs-list {
  list-style: none;
  margin: 0 0 1.25rem;
  padding: 0;
}

.docs-list li + li {
  margin-top: 0.75rem;
}

.docs-list a {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.4;
}

label {
  display: block;
  font-family: var(--font-sans);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--fg-faint);
  margin-bottom: 0.5rem;
}

.field {
  margin-bottom: 1.25rem;
}

input[type="text"],
input[type="email"],
select,
textarea {
  width: 100%;
  padding: 0.65rem 0.85rem;
  border: 1px solid var(--fg-faint);
  border-radius: 8px;
  background: #fff;
  color: var(--fg);
  font-family: var(--font-serif);
  font-size: 18px;
  font-weight: 300;
  line-height: 1.4;
  transition:
    border-color 150ms ease,
    background 150ms ease;
}

input[type="text"]:focus,
input[type="email"]:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--fg-mute);
  background: #fff;
}

select {
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 400;
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23969592' d='M2 4l4 4 4-4'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.85rem center;
  padding-right: 2rem;
}

input[type="file"] {
  width: 100%;
  font-family: var(--font-sans);
  font-size: 14px;
  color: var(--fg-mute);
}

textarea {
  min-height: 5rem;
  resize: vertical;
}

.hint {
  font-family: var(--font-sans);
  font-size: 13px;
  line-height: 1.45;
  color: var(--fg-mute);
  margin-top: 0.5rem;
}

.hint code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.9em;
  background: rgba(0, 0, 0, 0.05);
  padding: 0.08em 0.3em;
  border-radius: 4px;
  overflow-wrap: anywhere;
  word-break: break-word;
}

/* Primary CTA — outlined pill */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  width: 100%;
  margin-top: 0.5rem;
  padding: 0 1.25rem;
  border-radius: 999px;
  border: 1px solid var(--fg-faint);
  background: transparent;
  color: var(--fg);
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 500;
  line-height: 1;
  cursor: pointer;
  transition:
    background 240ms cubic-bezier(0.4, 0, 0.2, 1),
    color 240ms cubic-bezier(0.4, 0, 0.2, 1),
    border-color 240ms cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-primary:hover:not(:disabled),
.btn-primary:focus-visible:not(:disabled) {
  background: var(--surface-muted);
  color: var(--accent);
  border-color: var(--fg-mute);
}

.btn-primary:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.upload-progress {
  margin-top: 1rem;
}

.upload-progress-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.75rem;
  margin-bottom: 0.5rem;
}

.upload-progress-label {
  font-family: var(--font-sans);
  font-size: 13px;
  color: var(--fg-mute);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  flex: 1;
  min-width: 0;
}

.upload-progress-pct {
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 500;
  color: var(--fg);
  flex-shrink: 0;
}

.upload-progress-track {
  height: 6px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.08);
  overflow: hidden;
}

.upload-progress-bar {
  height: 100%;
  width: 0%;
  border-radius: 999px;
  background: var(--fg-mute);
  transition: width 120ms ease-out;
}

.upload-progress.is-active .upload-progress-bar {
  background: var(--accent);
}

.upload-progress.is-done .upload-progress-bar {
  background: var(--ok);
}

#status {
  margin-top: 1.25rem;
  padding: 0.85rem 1rem;
  border-radius: 8px;
  font-family: var(--font-sans);
  font-size: 14px;
  line-height: 1.45;
  display: none;
  white-space: pre-wrap;
}

#status.visible {
  display: block;
}

#status.ok {
  background: var(--ok-bg);
  border: 1px solid rgba(45, 106, 79, 0.25);
  color: var(--ok);
}

#status.err {
  background: var(--err-bg);
  border: 1px solid rgba(155, 35, 53, 0.25);
  color: var(--err);
}

#status.info {
  background: var(--info-bg);
  border: 1px solid var(--border);
  color: var(--info);
}

#status.ok code.submission-id {
  display: inline-block;
  margin-top: 0.35rem;
  padding: 0.35rem 0.55rem;
  font-size: 13px;
  word-break: break-all;
  background: rgba(45, 106, 79, 0.12);
  border-radius: 6px;
}

#status.ok code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 12px;
  word-break: break-all;
}

pre.cli {
  margin: 1rem 0 0;
  padding: 12px 16px;
  background: rgba(0, 0, 0, 0.05);
  border-radius: 8px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 13px;
  line-height: 1.45;
  overflow-x: auto;
  white-space: pre-wrap;
  word-break: break-word;
  color: var(--fg-soft);
}

.portal-footer {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}

.portal-footer p {
  font-family: var(--font-sans);
  font-size: 13px;
  line-height: 1.5;
  color: var(--fg-faint);
}

.portal-footer code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.9em;
  background: rgba(0, 0, 0, 0.05);
  padding: 0.08em 0.3em;
  border-radius: 4px;
}

/* ==========================================================
   Responsive
   ========================================================== */
@media (max-width: 768px) {
  .perspectives-header {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }

  .benchmarks-content {
    padding: 3rem 1.5rem 4rem;
  }

  .benchmarks-content h1 {
    font-size: 44px;
    margin-top: 48px;
  }
}

@media (max-width: 480px) {
  .perspectives-header {
    padding: 1.25rem;
  }

  .benchmarks-content {
    padding: 2rem 1.25rem 3rem;
  }

  .benchmarks-content h1 {
    font-size: 40px;
    margin-top: 32px;
  }

  .benchmarks-content .subtitle {
    font-size: 18px;
  }

  .card h2 {
    font-size: 24px;
  }

  input[type="text"],
  input[type="email"],
  textarea {
    font-size: 17px;
  }
}
