:root {
  --heading: #f3f6fa;
  --marketing-footer-height: 32px;
  /* 24px padding + 56px logo + 24px padding + 1px border */
  --marketing-header-height: 105px;
}

body.marketing-site {
  overflow-y: auto;
  overflow-x: hidden;
}

.marketing-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.marketing-shell > .marketing-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 30;
}

.marketing-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 24px;
  border-bottom: 1px solid var(--border);
  background: linear-gradient(180deg, var(--panel) 0%, var(--bg) 100%);
}

.marketing-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  font-weight: 600;
  font-size: 18px;
  color: var(--text);
  text-decoration: none;
}

.marketing-brand:hover,
.marketing-brand:focus {
  color: var(--text);
  text-decoration: none;
}

.marketing-brand-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.marketing-brand-name {
  font-weight: 600;
  font-size: 18px;
  line-height: 1.2;
  color: var(--text);
}

.marketing-brand-label {
  font-size: 13px;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: 0.04em;
  color: var(--muted);
}

.marketing-header-actions {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.marketing-sign-in {
  white-space: nowrap;
}

.marketing-brand img {
  width: 56px;
  object-fit: cover;
}

.marketing-footer {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 20;
  padding: 6px 24px 8px;
  text-align: center;
  border-top: 1px solid rgba(31, 42, 58, 0.35);
  background: var(--bg);
}

.marketing-footer-line {
  margin: 0;
  font-size: 11px;
  line-height: 1.4;
  color: #4f6070;
}

.marketing-footer-line a {
  color: inherit;
  text-decoration: none;
  opacity: 0.9;
}

.marketing-footer-line a:hover {
  color: #6b7c90;
  text-decoration: underline;
}

.marketing-footer-sep {
  margin: 0 0.3em;
  opacity: 0.45;
}

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

.marketing-page {
  flex: 1;
  width: 100%;
  padding: calc(32px + var(--marketing-header-height)) 24px
    calc(48px + var(--marketing-footer-height));
}

.marketing-page:not(.marketing-landing):not(.marketing-blog-post):not(.marketing-research-paper) {
  display: flex;
  justify-content: center;
}

.marketing-card {
  width: 100%;
  max-width: 560px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 36px 32px;
}

.marketing-eyebrow {
  margin: 0 0 12px;
  font-size: 13px;
  line-height: 1.5;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
}

.marketing-card h1 {
  margin: 0 0 16px;
  font-size: 28px;
  line-height: 1.25;
  font-weight: 700;
  color: var(--heading);
}

.marketing-card p {
  margin: 0;
  font-size: 16px;
  line-height: 1.6;
}

.marketing-card p + p {
  margin-top: 16px;
}

.marketing-success {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(52, 211, 153, 0.12);
  border: 1px solid rgba(52, 211, 153, 0.35);
  color: var(--success);
  font-size: 14px;
  font-weight: 600;
}

.marketing-success-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--success);
}

.marketing-muted {
  color: var(--muted);
  font-size: 15px;
}

.marketing-link {
  color: #5b9cb0;
  text-decoration: none;
}

.marketing-link:hover {
  text-decoration: underline;
}

.marketing-landing {
  max-width: 960px;
  margin: 0 auto;
}

.marketing-landing-header {
  margin-bottom: 28px;
}

.marketing-landing-header h1 {
  margin: 0 0 12px;
  font-size: clamp(2rem, 5vw, 2.75rem);
  line-height: 1.15;
  font-weight: 700;
  color: var(--heading);
}

.marketing-landing-subtext {
  margin: 0;
  font-size: 18px;
  line-height: 1.6;
  color: var(--muted);
  max-width: 42rem;
}

.marketing-subscribe {
  margin-bottom: 40px;
}

.marketing-post-list h2 {
  margin: 0 0 12px;
  font-size: 22px;
  line-height: 1.3;
  font-weight: 700;
  color: var(--heading);
}

.marketing-subscribe-form {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: stretch;
  max-width: 32rem;
}

.marketing-field {
  display: grid;
  gap: 8px;
  flex: 1 1 14rem;
  min-width: 0;
}

.marketing-field-label {
  font-size: 14px;
  font-weight: 600;
  color: var(--heading);
}

.marketing-optional {
  font-weight: 400;
  color: var(--muted);
}

.marketing-field input {
  width: 100%;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: #0a1019;
  color: var(--heading);
  font: inherit;
}

.marketing-field input:focus {
  outline: 2px solid rgba(91, 156, 176, 0.45);
  outline-offset: 1px;
}

.marketing-subscribe-button {
  flex: 0 0 auto;
  align-self: stretch;
  min-width: 7.5rem;
}

.marketing-subscribe-button.is-loading .btn-spinner {
  border-color: rgba(209, 216, 226, 0.35);
  border-top-color: rgba(209, 216, 226, 0.95);
}

.marketing-subscribe-status {
  margin: 16px 0 0;
  font-size: 15px;
  line-height: 1.5;
  color: var(--success);
}

.marketing-subscribe-status--error {
  color: #f87171;
}

.marketing-subscribe-modal .modal-card {
  position: relative;
  width: min(480px, 92vw);
  padding: 32px 28px 28px;
  gap: 24px;
}

.marketing-subscribe-modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  line-height: 1;
}

.marketing-subscribe-modal-hero {
  text-align: center;
  padding: 0 28px 4px;
}

.marketing-subscribe-modal-icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  margin: 0 auto 16px;
  border-radius: 999px;
  background: rgba(52, 211, 153, 0.12);
  border: 1px solid rgba(52, 211, 153, 0.35);
  color: var(--success);
  font-size: 24px;
  font-weight: 700;
  line-height: 1;
}

.marketing-subscribe-modal-hero .marketing-eyebrow {
  margin: 0 0 8px;
}

.marketing-subscribe-modal-hero h2 {
  margin: 0 0 10px;
  font-size: clamp(1.35rem, 4vw, 1.6rem);
  line-height: 1.25;
  font-weight: 700;
  color: var(--heading);
}

.marketing-subscribe-modal-lede {
  margin: 0;
  font-size: 15px;
  line-height: 1.5;
  color: var(--muted);
}

.marketing-subscribe-modal-body {
  display: grid;
  gap: 14px;
}

.marketing-subscribe-modal-step {
  padding: 0;
}

.marketing-subscribe-modal-step h3 {
  margin: 0 0 8px;
  font-size: 12px;
  line-height: 1.3;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--heading);
}

.marketing-subscribe-modal-step p {
  margin: 0;
  font-size: 15px;
  line-height: 1.6;
  color: var(--muted);
}

.marketing-subscribe-modal-step strong {
  color: var(--heading);
  font-weight: 600;
}

.marketing-subscribe-modal-email {
  font-weight: 700;
  word-break: break-word;
}

.marketing-subscribe-modal-step--tip {
  padding: 14px 16px;
  border-radius: 12px;
  background: rgba(10, 16, 25, 0.55);
  border: 1px solid var(--border);
}

.marketing-subscribe-modal-step--tip p {
  font-size: 14px;
  line-height: 1.55;
}

.marketing-subscribe-modal-highlight {
  color: #fcd34d;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.marketing-subscribe-modal-actions {
  justify-content: stretch;
  padding-top: 4px;
}

.marketing-subscribe-modal-actions .btn {
  width: 100%;
}

.marketing-post-list {
  width: 100%;
}

.marketing-post-grid {
  display: grid;
  gap: 20px;
}

@media (min-width: 720px) {
  .marketing-post-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.marketing-post-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
}

.marketing-post-card-link {
  display: block;
  color: inherit;
  text-decoration: none;
}

.marketing-post-card-link:hover h3 {
  color: #5b9cb0;
}

.marketing-post-card-image {
  width: 100%;
  aspect-ratio: 1200 / 630;
  object-fit: cover;
  display: block;
  background: #0a1019;
}

.marketing-post-card-body {
  padding: 20px;
}

.marketing-post-date {
  display: block;
  margin-bottom: 8px;
  font-size: 13px;
  line-height: 1.4;
  color: var(--muted);
}

.marketing-post-card-body h3 {
  margin: 0 0 10px;
  font-size: 20px;
  line-height: 1.3;
  font-weight: 700;
  color: var(--heading);
}

.marketing-post-card-body p {
  margin: 0;
  font-size: 15px;
  line-height: 1.6;
  color: var(--muted);
}

.marketing-blog-post {
  max-width: 960px;
  margin: 0 auto;
}

.marketing-research-paper {
  max-width: min(72rem, 100%);
  margin: 0 auto;
}

.marketing-research-paper-shell {
  width: 100%;
}

.marketing-research-paper .research-paper-body {
  width: 100%;
  margin: 0;
  padding: 0;
  background: transparent;
}

.marketing-blog-nav {
  margin-bottom: 24px;
}

.marketing-blog-back {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--muted);
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
}

.marketing-blog-back:hover {
  color: var(--heading);
}

.marketing-blog-article {
  width: 100%;
}

.marketing-blog-header {
  margin-bottom: 20px;
}

.marketing-blog-header h1 {
  margin: 0 0 12px;
  font-size: clamp(2rem, 5vw, 2.5rem);
  line-height: 1.2;
  font-weight: 700;
  color: var(--heading);
}

.marketing-blog-dek {
  margin: 0;
  font-size: 18px;
  line-height: 1.6;
  color: var(--muted);
  max-width: 42rem;
}

.marketing-blog-hero {
  width: 100%;
  aspect-ratio: 1200 / 630;
  object-fit: cover;
  border-radius: 16px;
  border: 1px solid var(--border);
  margin-bottom: 32px;
}
