/* Objectiv — professional brand layer (v4). Loaded after site.css + landing.css. */
@import url("./objectiv-brand.css");

:root {
  --po-ink: #f4f6f9;
  --po-line: rgba(15, 23, 42, 0.08);
  --po-line-strong: rgba(15, 23, 42, 0.14);
  /* AZO brand: #0a8083 (icon, accent, CTAs) */
  --po-accent: #0a8083;
  --po-accent-dim: #087074;
  --po-accent-glow: rgba(10, 128, 131, 0.12);
  --po-btn-primary-bg: #0a8083;
  --po-btn-primary-bg-hover: #087074;
  --po-btn-primary-fg: #ffffff;
  --po-shadow: 0 12px 40px rgba(15, 23, 42, 0.06);
  --po-radius: 10px;
  --po-radius-lg: 14px;
}

html.po-brand-v4 {
  scroll-behavior: smooth;
}

body.po-brand-v4 {
  background: #f4f6f9;
  color: #1e293b;
}

.po-brand-v4 .po-bg {
  background:
    radial-gradient(ellipse 70% 50% at 50% -15%, rgba(10, 128, 131, 0.08), transparent 55%),
    #f4f6f9;
}

.po-brand-v4 .po-bg-grid {
  opacity: 0.035;
  background-size: 48px 48px;
}

/* Header */
.po-brand-v4 .po-home-v2-header {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--po-line);
}

.po-brand-v4 .po-home-v2-header.is-scrolled {
  box-shadow: 0 1px 0 var(--po-line), 0 8px 30px rgba(15, 23, 42, 0.04);
}

.po-brand-v4 .po-logo {
  /* Wordmark ink; ring uses #0a8083 in SVG */
  color: var(--po-fg);
}

.po-brand-v4 .po-logo span {
  font-weight: 700;
  letter-spacing: -0.03em;
  color: inherit;
}

.po-logo-mark {
  flex-shrink: 0;
  display: block;
  background: none;
  border: none;
  box-shadow: none;
}

.po-brand-v4 .po-home-v2-nav-link.is-active,
.po-brand-v4 .po-nav-flyout.is-active-group .po-nav-flyout-hub {
  color: var(--po-fg);
  font-weight: 600;
}

.po-brand-v4 .po-home-v2-nav-link.is-active {
  box-shadow: inset 0 -2px 0 var(--po-accent);
}

.po-brand-v4 .po-btn {
  border-radius: var(--po-radius);
  font-weight: 600;
  letter-spacing: -0.01em;
}

.po-brand-v4 .po-btn-primary {
  background: var(--po-btn-primary-bg);
  background-image: none;
  color: var(--po-btn-primary-fg);
  border-color: transparent;
  box-shadow: 0 1px 2px rgba(10, 128, 131, 0.18);
}

.po-brand-v4 .po-btn-primary:hover {
  background: var(--po-btn-primary-bg-hover);
  background-image: none;
  color: var(--po-btn-primary-fg);
}

/* Tables */
.po-brand-v4 .po-doc-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  border: 1px solid var(--po-line-strong);
  border-radius: var(--po-radius-lg);
  overflow: hidden;
  background: #fff;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
}

.po-brand-v4 .po-doc-table thead th {
  background: #f1f5f9;
  color: #334155;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-align: left;
  border-bottom: 1px solid var(--po-line-strong);
}

.po-brand-v4 .po-doc-table th,
.po-brand-v4 .po-doc-table td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--po-line);
  vertical-align: top;
}

.po-brand-v4 .po-doc-table tbody tr:last-child td {
  border-bottom: none;
}

.po-brand-v4 .po-doc-table tbody tr:hover td {
  background: rgba(14, 116, 144, 0.03);
}

/* Learn / doc articles */
.po-brand-v4 .po-doc-grid {
  grid-template-columns: minmax(240px, 280px) minmax(0, 1fr);
  gap: clamp(32px, 5vw, 56px);
  padding: clamp(32px, 5vw, 48px) 0 72px;
  max-width: 1200px;
  margin: 0 auto;
}

.po-brand-v4 .po-doc-nav-learn {
  position: sticky;
  top: 80px;
  padding: 16px 14px;
  border-radius: var(--po-radius-lg);
  border: 1px solid var(--po-line-strong);
  background: #fff;
  box-shadow: var(--po-shadow);
}

.po-brand-v4 .po-doc-nav-learn a {
  display: block;
  padding: 8px 12px;
  margin: 2px 0;
  border-radius: 8px;
  font-size: 0.875rem;
  font-weight: 500;
  color: #64748b;
  text-decoration: none;
}

.po-brand-v4 .po-doc-nav-learn a:hover {
  color: var(--po-fg);
  background: rgba(15, 23, 42, 0.04);
}

.po-brand-v4 .po-doc-nav-learn a.po-active {
  color: var(--po-fg);
  font-weight: 600;
  background: var(--po-accent-glow);
  box-shadow: inset 0 0 0 1px rgba(14, 116, 144, 0.15);
}

.po-brand-v4 .po-doc h1 {
  font-family: var(--po-display);
  font-size: clamp(2rem, 4vw, 2.5rem);
  letter-spacing: -0.03em;
  margin: 0 0 16px;
}

.po-brand-v4 .po-doc h2 {
  font-family: var(--po-display);
  font-size: 1.25rem;
  font-weight: 600;
  margin: 40px 0 14px;
  padding-top: 8px;
  scroll-margin-top: 96px;
}

.po-brand-v4 .po-doc > p,
.po-brand-v4 .po-doc li {
  color: #475569;
  line-height: 1.65;
}

.po-brand-v4 .po-doc code {
  font-size: 0.875em;
  padding: 2px 6px;
  border-radius: 6px;
  background: #f1f5f9;
  border: 1px solid var(--po-line);
}

/* Pro marketing sections (integrations, etc.) */
.po-pro-wrap {
  position: relative;
  z-index: 1;
}

.po-pro-section {
  padding: var(--po-v2-section, 4rem) 0;
}

.po-pro-section.is-alt {
  background: #eef1f6;
  border-top: 1px solid var(--po-line);
  border-bottom: 1px solid var(--po-line);
}

.po-pro-section-head {
  max-width: 42rem;
  margin-bottom: 28px;
}

.po-pro-section-head h2 {
  margin: 0 0 10px;
  font-family: var(--po-display);
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.03em;
}

.po-pro-section-head p {
  margin: 0;
  color: var(--po-muted);
  font-size: 1rem;
  line-height: 1.55;
}

.po-pro-panel {
  padding: clamp(20px, 3vw, 28px);
  border-radius: var(--po-radius-lg);
  border: 1px solid var(--po-line-strong);
  background: #fff;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
}

.po-pro-panel + .po-pro-panel {
  margin-top: 20px;
}

.po-pro-toc-rail {
  position: sticky;
  top: 88px;
  align-self: start;
  padding: 16px 14px;
  border-radius: var(--po-radius-lg);
  border: 1px solid var(--po-line-strong);
  background: #fff;
}

.po-pro-toc-rail a {
  display: block;
  padding: 6px 10px;
  font-size: 0.8125rem;
  color: #64748b;
  text-decoration: none;
  border-radius: 6px;
}

.po-pro-toc-rail a:hover {
  color: var(--po-fg);
  background: rgba(15, 23, 42, 0.04);
}

.po-pro-layout {
  display: grid;
  grid-template-columns: minmax(200px, 220px) minmax(0, 1fr);
  gap: clamp(28px, 4vw, 48px);
  align-items: start;
}

@media (max-width: 900px) {
  .po-pro-layout {
    grid-template-columns: 1fr;
  }
  .po-pro-toc-rail {
    position: static;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
  }
  .po-pro-toc-rail a {
    display: inline-block;
  }
}

.po-brand-v4 .po-docs-v3 .po-bg {
  background: linear-gradient(180deg, #eef1f6 0%, #f4f6f9 40%, #f4f6f9 100%);
}

.po-brand-v4 .po-docs-rail--nav .po-docs-nav {
  border-color: var(--po-line-strong);
  box-shadow: var(--po-shadow);
}

/* Legal & policy documents */
.po-legal-doc {
  max-width: none;
}

.po-legal-doc h2 {
  font-family: var(--po-display);
  font-size: 1.125rem;
  font-weight: 600;
  margin: 32px 0 12px;
  letter-spacing: -0.02em;
}

.po-legal-doc h2:first-of-type {
  margin-top: 0;
}

.po-legal-doc p,
.po-legal-doc li {
  color: #475569;
  line-height: 1.65;
  font-size: 0.9375rem;
}

.po-legal-doc ul,
.po-legal-doc ol {
  padding-left: 1.25rem;
  margin: 12px 0;
}

.po-legal-meta {
  margin: 0 0 20px;
  font-size: 0.8125rem;
  color: #64748b;
}

.po-legal-callout {
  margin: 20px 0;
  padding: 14px 16px;
  border-radius: var(--po-radius);
  border: 1px solid rgba(14, 116, 144, 0.2);
  background: var(--po-accent-glow);
  font-size: 0.875rem;
  color: #334155;
}

.po-pro-toc-rail a.po-active {
  color: var(--po-fg);
  font-weight: 600;
  background: var(--po-accent-glow);
}

/* Support ticketing */
.po-support-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
  margin: 24px 0;
}

.po-support-card {
  padding: 20px;
  border-radius: var(--po-radius-lg);
  border: 1px solid var(--po-line-strong);
  background: #fff;
}

.po-support-card h3 {
  margin: 0 0 8px;
  font-size: 1rem;
  font-weight: 600;
}

.po-support-card p {
  margin: 0;
  font-size: 0.875rem;
  color: var(--po-muted);
}

.po-support-form {
  display: grid;
  gap: 14px;
  margin-top: 8px;
}

.po-support-form label {
  display: grid;
  gap: 6px;
  font-size: 0.8125rem;
  font-weight: 600;
  color: #334155;
}

.po-support-form input,
.po-support-form select,
.po-support-form textarea {
  font: inherit;
  padding: 10px 12px;
  border-radius: var(--po-radius);
  border: 1px solid var(--po-line-strong);
  background: #fff;
}

.po-support-form textarea {
  min-height: 140px;
  resize: vertical;
}

.po-support-status {
  margin-top: 12px;
  padding: 12px 14px;
  border-radius: var(--po-radius);
  font-size: 0.875rem;
}

.po-support-status.is-pending {
  background: #f1f5f9;
  color: #475569;
}

.po-support-status.is-success {
  background: #ecfdf5;
  color: #065f46;
  border: 1px solid #a7f3d0;
}

.po-support-status.is-error {
  background: #fef2f2;
  color: #991b1b;
  border: 1px solid #fecaca;
}

.po-brand-v4 .po-doc-nav-learn a.po-active {
  color: var(--po-fg);
  font-weight: 600;
  background: var(--po-accent-glow);
}

.po-brand-v4 body.po-docs-shell .po-wrap {
  position: relative;
  z-index: 1;
}

.po-brand-v4 .po-page-hero .lede {
  max-width: 42rem;
}

/* Download page */
.po-dl-page {
  scroll-behavior: auto;
}

html.po-brand-v4:has(.po-dl-page) {
  scroll-behavior: auto;
}

.po-dl-page main {
  padding-bottom: 4rem;
}

.po-dl-mast {
  text-align: center;
  padding: clamp(2.5rem, 6vw, 3.5rem) 0 2rem;
  max-width: 36rem;
  margin: 0 auto;
}

.po-dl-kicker {
  margin: 0 0 12px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--po-accent-dim);
}

.po-dl-mast h1 {
  margin: 0 0 12px;
  font-family: var(--po-display);
  font-size: clamp(2rem, 4.5vw, 2.75rem);
  letter-spacing: -0.03em;
}

.po-dl-lede {
  margin: 0 auto 1.5rem;
  max-width: 32rem;
  font-size: 1.0625rem;
  line-height: 1.55;
  color: var(--po-muted);
}

.po-dl-hero-cta {
  min-width: min(100%, 280px);
}

.po-dl-hero-note {
  margin-top: 1rem;
  max-width: 28rem;
  margin-left: auto;
  margin-right: auto;
}

.po-dl-shell {
  max-width: 640px;
  margin: 0 auto;
}

.po-dl-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 16px;
}

.po-dl-tab {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px 16px;
  border-radius: var(--po-radius);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--po-muted);
  text-decoration: none;
  border: 1px solid var(--po-line-strong);
  background: #fff;
  transition: color 0.15s, background 0.15s, border-color 0.15s;
}

.po-dl-tab:hover {
  color: var(--po-fg);
  border-color: rgba(10, 128, 131, 0.25);
}

.po-dl-tab.is-active {
  color: var(--po-btn-primary-fg);
  background: var(--po-btn-primary-bg);
  background-image: none;
  border-color: transparent;
}

.po-dl-tab.is-active:hover {
  color: var(--po-btn-primary-fg);
  background: var(--po-btn-primary-bg-hover);
  background-image: none;
}

.po-dl-stage {
  margin-bottom: 1.5rem;
}

.po-dl-panel {
  padding: 0;
  border-radius: var(--po-radius-lg);
  border: 1px solid var(--po-line-strong);
  background: #fff;
  box-shadow: var(--po-shadow);
  overflow: hidden;
}

.po-dl-panel[hidden] {
  display: none !important;
}

.po-dl-panel-top {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px 16px;
  padding: 18px 20px;
  border-bottom: 1px solid var(--po-line);
  background: #f8fafc;
}

.po-dl-panel-top h2 {
  margin: 0;
  font-family: var(--po-display);
  font-size: 1.125rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.po-dl-panel-meta {
  font-size: 0.8125rem;
  color: var(--po-muted);
}

.po-dl-files {
  list-style: none;
  margin: 0;
  padding: 0;
}

.po-dl-file {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--po-line);
}

.po-dl-file:last-child {
  border-bottom: none;
}

.po-dl-file-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.po-dl-file-name {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--po-fg);
}

.po-dl-file-detail {
  font-size: 0.8125rem;
  color: var(--po-muted);
}

.po-dl-file-detail code {
  font-size: 0.8125rem;
}

.po-dl-file-action {
  flex-shrink: 0;
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 0.8125rem;
  font-weight: 600;
}

.po-dl-file-action--soon {
  color: var(--po-muted-soft, #64748b);
  background: #f1f5f9;
  border: 1px solid var(--po-line);
}

.po-dl-file-action--dl {
  color: var(--po-btn-primary-fg);
  background: var(--po-btn-primary-bg);
  text-decoration: none;
}

.po-dl-file-action--dl:hover {
  background: var(--po-btn-primary-bg-hover);
  color: var(--po-btn-primary-fg);
}

.po-dl-footnote {
  margin: 0;
  padding: 14px 20px;
  font-size: 0.8125rem;
  color: var(--po-muted);
  background: #fafbfc;
  border-top: 1px solid var(--po-line);
}

.po-dl-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 20px;
  padding-top: 8px;
  font-size: 0.875rem;
}

.po-dl-links a {
  color: var(--po-muted);
  font-weight: 500;
  text-decoration: none;
}

.po-dl-links a:hover {
  color: var(--po-accent);
}

.po-lang-support-section {
  padding: clamp(2.5rem, 5vw, 4rem) 0 clamp(3rem, 6vw, 5rem);
  border-top: 1px solid var(--po-line-strong);
}

.po-lang-support-head {
  max-width: 42rem;
  margin: 0 auto 2rem;
  text-align: center;
}

.po-lang-support-head h2 {
  font-family: var(--po-display);
  font-size: clamp(1.5rem, 3vw, 1.875rem);
  margin: 0 0 12px;
  letter-spacing: -0.03em;
}

.po-lang-support-head p {
  margin: 0;
  color: var(--po-muted);
  font-size: 1rem;
  line-height: 1.55;
}

.po-lang-support-tiers {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

@media (max-width: 720px) {
  .po-lang-support-tiers {
    grid-template-columns: 1fr;
  }
}

.po-lang-support-tier {
  padding: 20px 22px;
  border-radius: 12px;
  border: 1px solid var(--po-line);
  background: #fff;
}

.po-lang-support-tier h3 {
  margin: 0 0 6px;
  font-size: 1rem;
  font-weight: 600;
}

.po-lang-support-tier p {
  margin: 0 0 14px;
  font-size: 0.875rem;
  color: var(--po-muted);
  line-height: 1.45;
}

.po-lang-support-tier .po-lang-grid {
  margin: 0;
}

.po-lang-grid--compact span {
  font-size: 0.78rem;
  padding: 5px 10px;
}

.po-lang-support-foot {
  margin: 28px 0 0;
  text-align: center;
}

/* One primary CTA color sitewide (#0a8083) */
html.po-brand-v4 .po-btn-primary,
body.po-brand-v4 .po-btn-primary {
  background: var(--po-btn-primary-bg);
  background-image: none;
  color: var(--po-btn-primary-fg);
}

html.po-brand-v4 .po-btn-primary:hover,
body.po-brand-v4 .po-btn-primary:hover {
  background: var(--po-btn-primary-bg-hover);
  background-image: none;
  color: var(--po-btn-primary-fg);
}

/* Site footer (site-chrome.js) */
.po-brand-v4 .po-home-v2-footer {
  margin-top: auto;
  padding: clamp(2.5rem, 5vw, 3.5rem) 0 2rem;
  background: #fff;
  border-top: 1px solid var(--po-line-strong);
}

.po-site-footer-inner {
  display: flex;
  flex-direction: column;
  gap: clamp(28px, 4vw, 40px);
}

.po-footer-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 24px;
  padding-bottom: clamp(20px, 3vw, 28px);
  border-bottom: 1px solid var(--po-line);
}

.po-footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--po-display);
  font-weight: 700;
  font-size: 1.125rem;
  letter-spacing: -0.03em;
  color: var(--po-fg);
  text-decoration: none;
}

.po-footer-logo .po-logo-mark {
  width: 28px;
  height: 28px;
}

.po-footer-head-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.po-footer-cols {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(24px, 4vw, 48px);
}

@media (max-width: 768px) {
  .po-footer-cols {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 420px) {
  .po-footer-cols {
    grid-template-columns: 1fr;
  }
}

.po-footer-cols nav strong {
  display: block;
  margin-bottom: 12px;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #334155;
}

.po-footer-cols nav a {
  display: block;
  padding: 5px 0;
  font-size: 0.875rem;
  font-weight: 500;
  color: #64748b;
  text-decoration: none;
}

.po-footer-cols nav a:hover {
  color: var(--po-accent);
}

.po-footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 20px;
  padding-top: 20px;
  border-top: 1px solid var(--po-line);
  font-size: 0.8125rem;
  color: var(--po-muted-soft, #64748b);
}

.po-footer-copy {
  color: #64748b;
}

.po-footer-bottom-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
}

.po-footer-bottom-links a {
  color: #64748b;
  font-weight: 500;
  text-decoration: none;
}

.po-footer-bottom-links a:hover {
  color: var(--po-fg);
}
