/* Shared visual language for every route. Keep the legacy token names until
   the individual page stylesheets have been consolidated. */
:root {
  --paper: #fbfdff;
  --paper-strong: #fff;
  --surface-soft: #f3f8fb;
  --ink: #101b32;
  --muted: #52677e;
  --line: #dce6ee;
  --line-strong: #cbd8e3;
  /* Brand tokens come from the MediaDNA Library icon gradient so the site,
     the desktop app and the logo share one palette. */
  --brand-teal: #0e9178;
  --brand-blue: #165f94;
  --brand-navy: #172554;
  --signal: #f5a623;
  --mode-team: #3b5bdb;
  --brand-gradient: linear-gradient(135deg, #0e9178 0%, #165f94 100%);
  --brand-glow: 0 10px 26px rgba(14, 145, 120, .26);
  --radius-card: 20px;
  --page-width: min(1200px, calc(100% - 64px));
  --header-inline: max(32px, calc((100vw - 1200px) / 2));
  --mono: ui-monospace, "SF Mono", "JetBrains Mono", Menlo, Consolas, monospace;
  /* Legacy names kept until page stylesheets are consolidated. */
  --teal: #165f94;
  --teal-dark: #124d78;
  --teal-soft: #e3f1f5;
  --deep: #101b32;
  --deep-strong: #101b32;
  --shadow: 0 18px 48px rgba(19, 81, 132, .12);
}

body { background: var(--paper); color: var(--ink); }
.button { border-radius: 11px; }
.button-primary { border-color: transparent; background: var(--brand-gradient); color: #fff; box-shadow: var(--brand-glow); }
.button-primary:hover { background: linear-gradient(135deg, #0b7c66 0%, #124d78 100%); }
.button[data-download-cta] { inline-size: auto; min-inline-size: 11rem; min-block-size: 3.2rem; padding-inline: 1.4rem; }
.button-secondary { border-color: #d2e2f0; background: #fff; color: #152b48; }
.button-secondary:hover { background: #eef7fd; }
.section-kicker { color: #5f7185; }
.text-link-light { color: #d4eaff; }

/* The marketing shell follows the acquisition homepage instead of the old
   dark navigation and footer. */
.site-header {
  border-bottom: 1px solid #e4ebf1;
  background: rgba(251, 253, 255, .96);
  color: #101b32;
  backdrop-filter: blur(12px);
}
.primary-nav { color: #43576c; }
.primary-nav a:hover, .primary-nav a[aria-current="page"] { color: #101b32; }
.header-icon-link, .language-trigger, .menu-toggle {
  border-color: #d6e1eb;
  background: #fff;
  color: #253d56;
}
.header-icon-link img, .language-trigger img, .menu-toggle img { filter: none; }
.header-icon-link:hover, .language-trigger:hover,
.language-trigger[aria-expanded="true"], .menu-toggle:hover {
  border-color: #a7c4da;
  background: #f3f7fa;
}
.language-options { border-color: #dce6ee; background: #fff; }
.language-options a { color: #42566e; }
.language-options a:hover, .language-options a[aria-current="true"] {
  background: #f3f8fb;
  color: #101b32;
}
.mobile-nav {
  border-bottom-color: #e4ebf1;
  background: #fff;
  color: #253d56;
}
.mobile-nav a { border-bottom-color: #e4ebf1; color: #43576c; }
.mobile-nav a:hover, .mobile-nav a[aria-current="page"] { color: #101b32; }
.mobile-language-options a { border-color: #dce6ee; color: #52677e; }
.mobile-language-options a[aria-current="true"] {
  border-color: #a7c4da;
  background: #e3f1f5;
  color: #124d78;
}
.mobile-sign-out { border-color: #dce6ee; color: #253d56; }
.site-footer {
  border-top-color: #e4ebf1;
  background: #f6f9fb;
  color: #52677e;
}
.footer-brand, .site-footer a:hover, .site-footer a[aria-current="page"] { color: #101b32; }
.footer-intro p, .footer-navigation nav > span { color: #71859a; }

/* Product details retain their content and video, with the same light page
   surfaces and restrained accent used on the homepage. */
.mediadna-page { background: #fbfdff; }
.mediadna-hero { background: #fbfdff; }
.mediadna-text-link, .mediadna-demo-transcript summary,
.mediadna-product-details summary, .mediadna-billing-disclosure > summary,
.mediadna-guides a, .mediadna-billing-links { color: #344c64; }
.mediadna-page .product-trust { color: #52677e; }
.mediadna-demo-preview { display: block; color: #344c64; }
.mediadna-demo-window {
  display: block;
  overflow: hidden;
  border: 1px solid #d4e6f5;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 22px 65px rgba(19, 81, 132, .14);
}
.mediadna-demo-preview picture { display: block; margin: 12px; }
.mediadna-demo-preview img,
.mediadna-hero-visual-img { display: block; width: 100%; height: auto; }
.mediadna-search-copy .story-card { margin-top: 16px; }
.mediadna-demo-preview-label {
  display: inline-block;
  margin-top: 12px;
  font-size: .86rem;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 4px;
}
.mediadna-demo-preview:hover .mediadna-demo-preview-label { color: #124d78; }
.mediadna-workflow-steps li { border-top-color: #cbd8e3; }
.mediadna-pricing { background: #f3f8fb; }
.mediadna-plan { border-color: #dce6ee; border-radius: 14px; }
.mediadna-trial, .mediadna-price-announcement { color: #101b32; }
.mediadna-access { background: #f3faff; color: #101b32; }
.mediadna-access .section-kicker { color: #5f7185; }
.mediadna-access .access-form { border-color: #d4e8f4; border-radius: 13px; }
.mediadna-access .access-form input, .mediadna-access .access-form textarea {
  border-color: #cbd8e3;
  background: #fff;
}
.mediadna-access .access-form input:focus, .mediadna-access .access-form textarea:focus {
  border-color: #165f94;
  box-shadow: 0 0 0 3px rgba(22, 95, 148, .13);
}
.mediadna-access .access-form .button { border-color: #165f94; background: #165f94; }
.mediadna-access .access-form .button:hover { background: #0e4468; }
.mediadna-access .trial-process li::marker, .mediadna-access .form-contact { color: #124d78; }
.mediadna-page a:focus-visible, .mediadna-page summary:focus-visible { outline-color: #165f94; }

/* Editorial, support, and legal pages share the same neutral surfaces. */
.guide-ui-sidebar { background: #152b48; color: #e0ebf5; }
.guide-ui-sidebar .is-active { background: #165f94; }
.guide-scope, .legal-operator { border-left-color: #165f94; }
.contact-form { box-shadow: 0 16px 40px rgba(19, 81, 132, .06); }
.contact-preview { border-left-color: #165f94; background: #e3f1f5; }
.contact-form input:focus-visible, .contact-form textarea:focus-visible,
.contact-form a:focus-visible, .contact-form button:focus-visible { outline-color: #165f94; }

/* Account, subscription, and authorization screens use the same brand
   colors without changing their task-oriented layouts. */
.account-page {
  --ink: #101b32;
  --muted: #52677e;
  --line: #dce6ee;
  --teal: #165f94;
  --teal-dark: #124d78;
  --teal-soft: #e3f1f5;
  background: #fbfdff;
}
.console-sidebar { background: #f4f9fd; }
.console-nav a:hover { background: #e3f1f5; }
.console-nav a[aria-current="page"] { background: #d6edf1; color: #124d78; }
.console-avatar { color: #124d78; }
.console-button, .account-outline-action, .account-secondary-action {
  border-color: #165f94;
  border-radius: 8px;
  background: #165f94;
}
.console-button:hover, .account-secondary-action:hover { background: #0e4468; }
.console-outline, .account-outline-action { background: #fff; color: #124d78; }
.console-outline:hover, .account-outline-action:hover { background: #e3f1f5; }
.account-page :is(a, button, input, summary):focus-visible { outline-color: #165f94; }
.console-badge[data-tone="success"] { background: #e3f1f5; color: #124d78; }
.console-notice { background: #f3f8fb; border-color: #dce6ee; }
.subscribe-status { background: #f3f8fb; border-color: #dce6ee; }
.payment-method-option:has(input:checked) { background: #e3f1f5; }
.app-login-page { background: #f3f8fb; }
.app-login-card { box-shadow: 0 12px 40px rgba(19, 81, 132, .06); }
.app-login-identity { background: #f8fbfe; }
.app-login-primary-action { background: #165f94; }
.app-login-primary-action:hover { background: #0e4468; }
@media (max-width: 760px) {
  .mediadna-hero-content > .product-trust { order: 5; }
}

/* ---------- Unified header (every marketing page) ---------- */
@media (min-width: 1041px) {
  .site-header { display: flex; gap: 12px; }
  .site-header .brand { margin-right: auto; }
  .site-header .header-controls { justify-self: auto; }
}
.brand { font-size: 1.12rem; font-weight: 760; letter-spacing: -.02em; }
.primary-nav { gap: 4px; font-size: .92rem; font-weight: 600; }
.primary-nav a { padding: 8px 14px; border-radius: 10px; }
.primary-nav a:hover { background: #eef5f8; }
.primary-nav a[aria-current="page"] { background: #e6f1f5; color: var(--ink); font-weight: 700; }
.primary-nav a.nav-cta,
.primary-nav a.nav-cta[aria-current="page"] {
  display: inline-flex; align-items: center; margin-left: 10px; padding: 0 20px; min-height: 42px;
  background: var(--brand-gradient); color: #fff; font-weight: 700; box-shadow: var(--brand-glow);
}
.primary-nav a.nav-cta:hover,
.primary-nav a.nav-cta[aria-current="page"]:hover { background: linear-gradient(135deg, #0b7c66 0%, #124d78 100%); color: #fff; }
.mobile-nav a.nav-cta,
.mobile-nav a.nav-cta[aria-current="page"] { margin-top: 12px; justify-content: center; border: 0; border-radius: 11px; background: var(--brand-gradient); color: #fff; font-weight: 700; }

/* ---------- Unified footer ---------- */
.site-footer {
  display: grid; grid-template-columns: minmax(220px, 1fr) minmax(0, 3fr); gap: 56px;
  padding: 56px var(--header-inline) 44px; border-top: 1px solid #e4ebf1; background: #f3f8fa; color: #52677e;
}
.footer-navigation { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.footer-navigation nav > span { font-family: var(--mono); color: var(--brand-teal); font-size: .72rem; letter-spacing: .08em; }
.footer-navigation a { color: #43576c; }
.footer-brand { font-size: 1.1rem; letter-spacing: -.02em; }
@media (max-width: 900px) { .site-footer { grid-template-columns: 1fr; gap: 32px; padding-block: 40px; } }

/* ---------- Shared shell alignment & polished surfaces ---------- */
.page-shell, .mediadna-inner, .downloads-shell, .guide-shell, .contact-shell {
  width: var(--page-width);
}
@media (max-width: 550px) {
  :root { --page-width: calc(100% - 32px); --header-inline: 16px; }
}

.section-kicker {
  font-family: var(--mono);
  color: var(--brand-teal);
  font-size: .74rem;
  font-weight: 700;
  letter-spacing: .09em;
}

.guides-section { padding: clamp(64px, 8vw, 96px) 0; background: var(--paper); }
.guides-section h2 { letter-spacing: -.03em; line-height: 1.15; }
.guides-grid article {
  border-radius: var(--radius-card);
  border-color: var(--line);
  box-shadow: 0 10px 28px rgba(16, 27, 50, .035);
  transition: transform .18s ease, box-shadow .18s ease;
}
.guides-grid article:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 38px rgba(16, 44, 72, .08);
}

/* ---------- Clean story previews (no overlap with bottom baked captions) ---------- */
.story-preview {
  border-radius: 14px;
  border: 1px solid #d5e2eb;
  background: #0d1b3e;
}
.story-play {
  inset: 0;
  margin: auto;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .95);
  color: var(--ink);
  font-size: 16px;
  padding-left: 3px;
  text-shadow: none;
  box-shadow: 0 10px 26px rgba(8, 18, 43, .34);
  transition: transform .18s ease, background .18s ease;
}
.story-preview:hover .story-play {
  transform: scale(1.07);
  background: #ffffff;
}
.story-preview-label {
  top: 10px;
  right: 10px;
  left: auto;
  bottom: auto;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(8, 18, 43, .78);
  backdrop-filter: blur(6px);
  color: #fff;
  font-family: var(--mono);
  font-size: .72rem;
  font-weight: 600;
  text-shadow: none;
}

/* Downloads & product primary actions share the unified brand gradient */
.downloads-beta .access-form .button,
.downloads-page .download-artifact .button-primary,
.mediadna-access .access-form .button {
  border-color: transparent;
  background: var(--brand-gradient);
  box-shadow: var(--brand-glow);
}
.downloads-beta .access-form .button:hover,
.downloads-page .download-artifact .button-primary:hover,
.mediadna-access .access-form .button:hover {
  background: linear-gradient(135deg, #0b7c66 0%, #124d78 100%);
}
.downloads-beta {
  border-color: #cce2ea;
  border-radius: 24px;
  background: linear-gradient(135deg, #eef8f5 0%, #ffffff 58%, #f0f5ff 100%);
}
.downloads-beta-kicker {
  background: #dff4ef;
  color: #0b6e5c;
  font-family: var(--mono);
  letter-spacing: .08em;
}
.downloads-v5-preview {
  border-color: #cce2ea;
  border-radius: 20px;
  background: linear-gradient(135deg, #edf8f5 0%, #ffffff 55%, #eff4ff 100%);
}
.story-dialog-frame video {
  display: block;
  width: 100%;
  height: 100%;
  background: #08122b;
}
@media (max-width: 550px) {
  .site-header { height: 62px; }
  .mobile-nav { top: 62px; }
}
