/* 
 * Marketing Page Styles
 * 
 * This stylesheet provides shared styles for all marketing pages including:
 * - Main landing page
 * - Industry pages (healthcare, insurance, RCM workflows, etc.)
 * - Feature pages (universal intelligence, conversational power, etc.)
 * - Blog pages
 * 
 * Applied via the 'marketing-page' class in the static layout.
 * Forces light mode for consistent branding.
 */

:root {
  color-scheme: light;
}

html {
  color-scheme: light;
}

/* Base marketing page styles - applies to all pages using the static layout */
body.marketing-page {
  font-size: 16px;
  background-color: white;
  color: black;
  color-scheme: light;

  main {
    padding: 0;
    margin: 0;
    background-color: white;
    color: black;
  }

  a {
    color: inherit;
  }

  html {
    scroll-behavior: smooth;
    cursor: default;
  }

  .box {
    color: black;
    border: 1px solid rgba(0,0,0,0.1);
    background: white;
  }

  .button {
    transition: all 0.1s ease-in-out !important;

    &.is-link {
      color: black;
    }

    &.is-primary {
      background: #000;
      color: white;

      i, svg {
        color: white;
      }

      &:hover,
      &:focus {
        background: #000;
        color: white;
      }
    }
  }

  nav { 
    padding: 1rem;
    padding-bottom:2rem;

    a { color: black;}
  }

  header {
    text-align: center;
    min-height: calc(100vh - 200px);
    padding: 1rem;
  }

  h1 { 
    font-size: 48px; 
    color: black;
  }

  h2 {
    font-size: 24px !important;
    font-family: var(--font-stack-monospace);
    background: linear-gradient(
      170deg,
      rgba(0, 0, 0, 0.8),
      rgba(0, 0, 0, 0.2),
      rgba(0, 0, 0, 0.5),
      rgba(0, 0, 0, 0.9)
    );
    background-size: 400% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent !important;
    animation: wave 28s linear infinite;
    font-weight: 400;
  }

  h3, h4 {
    font-size: 20px;
    color: black;
  }

  h5, h6 {
    color: black;
  }

  p {
    color: black;
  }

  @media (min-width: 768px) {
    h1 { font-size: 80px; }
    h2 { font-size: 28px; }
    h3, h4 { font-size: 24px; }
  }

  @keyframes wave {
    0% { background-position: 0% 50%; }
    100% { background-position: 400% 50%; }
  }

  header p { 
    font-size: 1rem; 
    margin-bottom: 2rem; 
  }

  @media (min-width: 768px) {
    header p { 
      font-size: 1.5rem; 
    }
  }

  /* Sections */
  section {
    padding: 2rem 1rem;

    h1, h2, h3, h4, h5, h6, p {
      color: black !important;
    }
  }

  @media (min-width: 768px) {
    section {
      padding: 4rem 1rem;
    }
  }

  /* Features grid */
  .features {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 2rem;
  }

  @media (min-width: 768px) {
    .features {
      gap: 2rem;
    }
  }

  .feature {
    transition: all 0.15s ease-in-out;
    position: relative;
    flex: 1 1 300px;
    padding: 1.5rem;
    border: 1px solid rgba(0,0,0,0.1);
    background: rgba(0,0,0,0.05);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    cursor: default;

    &:focus,
    &:hover {
      border: 1px solid rgba(0,0,0,0.15);
      .bubble {
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.8);
      }
    }

    .button:hover,
    .button:focus {
      background: #000;
      color: #fff;
    }

    .bubble {
      transition: all 0.15s ease-in-out;
      pointer-events: none;
      position: absolute;
      top: -10px;
      left: -10px;
      background: black;
      color: rgba(255,255,255,0.8);
      border-radius: 100%;
      box-shadow: 0 0 10px rgba(0,0,0,0.1);
      border: 1px solid rgba(0,0,0,0.1);
      width: 40px;
      height: 40px;
      min-width: 40px;
      min-height: 40px;
      flex-shrink: 0;
      line-height: 40px;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 20px;
      font-weight: 600;
      aspect-ratio: 1;

      i {
        color: rgba(255,255,255,0.8);
      }
    }
  }

  @media (min-width: 768px) {
    .feature {
      padding: 2rem;
    }
  }

  .feature h3 { 
    margin-bottom: 1rem; 
    font-size: 1.5rem; 
    font-weight: 600; 
  }

  @media (min-width: 768px) {
    .feature h3 { 
      font-size: 2rem; 
    }
  }

  /* Gradient section - explicit colors for visibility */
  .gradient-bg,
  section.gradient-bg {
    background: linear-gradient(
      170deg,
      rgba(0, 0, 0, 0.05),
      rgba(0, 0, 0, 0.02),
      rgba(0, 0, 0, 0.01),
      rgba(0, 0, 0, 0)
    );
    border-radius: 8px;
  }

  .gradient-bg h1,
  .gradient-bg h2,
  .gradient-bg h3,
  .gradient-bg h4,
  .gradient-bg h5,
  .gradient-bg h6,
  .gradient-bg p,
  section.gradient-bg h1,
  section.gradient-bg h2,
  section.gradient-bg h3,
  section.gradient-bg h4,
  section.gradient-bg h5,
  section.gradient-bg h6,
  section.gradient-bg p {
    color: black !important;
  }

  /* Dark section - force white text to override any inline styles */
  .dark-section,
  section.dark-section {
    background: #000 !important;
    color: #fff !important;
  }

  .dark-section h1,
  .dark-section h2,
  .dark-section h3,
  .dark-section h4,
  .dark-section h5,
  .dark-section h6,
  .dark-section p,
  .dark-section a,
  .dark-section span,
  .dark-section div,
  .dark-section li,
  .dark-section strong,
  section.dark-section h1,
  section.dark-section h2,
  section.dark-section h3,
  section.dark-section h4,
  section.dark-section h5,
  section.dark-section h6,
  section.dark-section p,
  section.dark-section a,
  section.dark-section span,
  section.dark-section div,
  section.dark-section li,
  section.dark-section strong {
    color: white !important;
  }

  .dark-section h2,
  section.dark-section h2 {
    background: none !important;
    -webkit-background-clip: unset !important;
    background-clip: unset !important;
    animation: none !important;
    margin-bottom: 2.5rem !important;
  }

  .dark-section .button.is-primary {
    background: white !important;
    color: black !important;

    i, svg {
      color: black !important;
    }

    &:hover,
    &:focus {
      background: white !important;
      color: black !important;
    }
  }

  /* Dark mode code viewer sections (intentionally dark for code display) */
  .data-viewer,
  .data-viewer * {
    color: #d4d4d4;
  }

  .user-message .message-content,
  .user-message .message-content * {
    color: white;
  }

  footer {
    color: black;
    font-weight: 600;
    font-size: 12px;
    border-top: 2px solid rgba(0, 0, 0, 1);
    padding: 1rem;
    background-color: white;

    a { color: black; }

    section {
      text-align: left;
    }
  }

  .content-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1rem;
  }

  .page-header {
    text-align: center;
    margin-bottom: 4rem;
  }

  .page-header h1 {
    margin-bottom: 1rem;
    letter-spacing: -1px;
  }

  .page-header p {
    font-size: 1.2rem;
    color: #666;
    max-width: 650px;
    text-align: center;
    margin: 0 auto;
    font-family: var(--font-stack-monospace);
  }

  .section {
    margin-bottom: 5rem;
    padding: 3rem 0;
  }

  .section-title {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    font-weight: 600;
  }

  .feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
  }

  .feature-card {
    padding: 2rem;
    border: 1px solid rgba(0,0,0,0.1);
    background: rgba(0,0,0,0.05);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: all 0.15s ease-in-out;
    &:hover {
      transform: translateY(-4px);
      border: 1px solid rgba(0,0,0,0.15);
      box-shadow: 0 12px 24px rgba(0,0,0,0.1);
    }
  }

  .feature-icon {
    font-size: 2rem;
    margin-bottom: 1rem;
  }

  .feature-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
  }

  .feature-description {
    font-size: 1rem;
    line-height: 1.5;
    color: #666;
  }

  .cta-section {
    text-align: center;
    margin-top: 4rem;
    padding: 4rem 2rem;
    background: rgba(0, 0, 0, 0.05);
    border-radius: 8px;
  }

  .cta-button {
    display: inline-block;
    padding: 1rem 2rem;
    background: #000;
    color: white;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.15s ease-in-out;
    &:hover {
      transform: translateY(-2px);
      box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    }
  }

  .dark-bg {
    background: rgba(0, 0, 0, 0.03);
    border-radius: 8px;
  }

  .capability-list {
    max-width: 800px;
    margin: 2rem auto;
  }

  /* Fixed CTA Button (Request Demo) */
  .fixed-cta {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 100;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3), 0 0 20px rgba(255, 255, 255, 0.3);
    transition: all 0.2s ease-in-out;

    &:hover {
      transform: translateY(-2px);
      box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4), 0 0 30px rgba(255, 255, 255, 0.5);
    }
  }

  @media (max-width: 768px) {
    .fixed-cta {
      bottom: 1rem;
      right: 1rem;
    }
  }

  .capability-item {
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem;
    padding: 1.5rem;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: all 0.15s ease-in-out;
    &:hover {
      transform: translateY(-2px);
      box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
    }
  }

  .capability-icon {
    font-size: 1.5rem;
    margin-right: 1.5rem;
    color: #000;
    background: rgba(0, 0, 0, 0.05);
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    flex-shrink: 0;
  }

  .capability-content {
    flex: 1;
  }

  .capability-title {
    font-weight: 600;
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    text-align: left;
  }

  .capability-description {
    color: rgba(0, 0, 0, 0.7);
    line-height: 1.5;
    font-family: var(--font-stack-monospace);
    text-align: left;
  }

  /* Use case grid - for displaying multiple use cases */
  .use-case-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    max-width: 1000px;
    margin: 3rem auto 0;
  }

  @media (min-width: 768px) {
    .use-case-grid {
      grid-template-columns: repeat(2, 1fr);
    }
  }

  .use-case-card {
    padding: 2rem;
    background: white;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: all 0.15s ease-in-out;
    text-align: left;

    &:hover {
      transform: translateY(-2px);
      box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
      border: 1px solid rgba(0, 0, 0, 0.15);
    }
  }

  .use-case-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: #000;
  }

  .use-case-card h4 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 1rem;
  }

  .use-case-card p {
    color: rgba(0, 0, 0, 0.7);
    line-height: 1.6;
    font-family: var(--font-stack-monospace);
  }

  /* Integration features list */
  .integration-features {
    max-width: 800px;
    margin: 2rem auto;
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  @media (min-width: 768px) {
    .integration-features {
      grid-template-columns: repeat(2, 1fr);
      gap: 1.5rem;
    }
  }

  .integration-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: all 0.15s ease-in-out;

    &:hover {
      transform: translateY(-2px);
      box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    }

    i {
      font-size: 1.5rem;
      color: #000;
      flex-shrink: 0;
    }

    span {
      font-family: var(--font-stack-monospace);
      color: rgba(0, 0, 0, 0.8);
      line-height: 1.5;
    }
  }

  /* Stats grid - for displaying metrics */
  .stats-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    max-width: 900px;
    margin: 3rem auto 0;
  }

  @media (min-width: 768px) {
    .stats-grid {
      grid-template-columns: repeat(3, 1fr);
    }
  }

  .stat {
    text-align: center;
  }

  .stat-number {
    font-size: 3rem;
    line-height: 1;
    margin-bottom: 0.5rem;
    font-family: var(--font-stack-monospace);
  }

  .stat-label {
    font-size: 1rem;
    opacity: 0.7;
  }

  /* Feature header - for inline bubble + title layout */
  .feature-header {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
  }

  /* Feature with inline bubble (overrides default absolute positioning) */
  .feature .bubble {
    position: relative;
    top: 0;
    left: 0;
    margin-right: 1rem;
  }

  .feature {
    text-align: left;
  }

  /* Scribe images */
  .scribe-image {
    max-width: 100%;
    max-height: 300px;
    width: auto;
    height: auto;
    object-fit: contain;
  }

  @media (min-width: 768px) {
    .scribe-image {
      max-height: 400px;
    }
  }

  /* Animation utilities */
  .float-fast {
    animation: float 2s ease-in-out infinite;
  }

  @keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
  }

  /* Mobile-specific styles */
  @media (max-width: 768px) {
    .stage1 {
      min-height: auto;
      padding: 1rem;
    }

    .stage2 {
      height: auto;
      min-height: auto !important;
      padding: 1rem;
      height: 700px !important;
    }

    .stage3 {
      padding: 1rem;
    }

    h1 {
      font-size: 48px !important;
      line-height: 1.15;
    }

    h2 {
      font-size: 24px !important;
      line-height: 1.3;
    }

    .flex.justify-around {
      flex-direction: column;
      gap: 2rem;
    }

    .img.receipt {
      width: 100%;
      max-width: 300px;
      margin: 0 auto;
    }

    #go-button {
      width: 100%;
      max-width: 300px;
      padding: 10px 20px;
    }

    nav.tr {
      display: flex;
      padding: 0.5rem;
      gap: 0.5rem;
    }

    nav.tr .button {
      flex: 1;
      width: 100%;
      justify-content: center;
      font-size: 1rem;
      padding: 0.75rem;
    }

    .signup-follower {
      position: fixed;
      bottom: 0;
      left: 0;
      right: 0;
      width: 100%;
      border-radius: 0;
      padding: 0.75rem;
      background: rgba(227, 231, 229, 0.95);
      backdrop-filter: blur(10px);
    }

    .signup-group {
      width: 100%;
      max-width: 100%;
    }

    .integration-logo {
      min-width: 60px;
      width: 60px;
      height: 60px;
      margin: 0 15px;
    }

    .box {
      padding: 1rem;
      &.is-narrow {
        padding: 0.75rem;
      }
    }

    .stage-transition {
      display: none;
    }

    .pen .shift-right {
      transform: rotate(90deg);
      margin: 2rem 0;
    }

    .upload-sample.receipt {
      margin-bottom: 3rem;
    }

    .image-container {
      height: 400px;
      background-size: cover;
      margin: 0 -1rem;
      width: calc(100% + 2rem);
    }

    .stage1 {
      min-height: 3000px !important;
      padding: 1rem !important;
    }

    .stage2 {
      padding: 2rem !important;
      height: auto;
      min-height: auto;
    }

    article.pen {
      margin: 2rem 0;
      width: 100%;
      display: flex;
      justify-content: center;
    }

    .ph-arrow-right {
      display: none !important;
    }

    .ph-arrow-down {
      display: block !important;
    }

    .upload-sample.receipt {
      margin-bottom: 3rem;
    }

    .stage1 {
      padding-bottom: 4rem;
    }

    .stage2 {
      padding-top: 4rem;
    }
  }

  /* Tablet-specific adjustments */
  @media (min-width: 769px) and (max-width: 1024px) {
    .stage2 {
      padding: 0 2rem;
    }

    h1 {
      font-size: 72px;
    }

    h2 {
      font-size: 32px;
    }

    .content {
      width: 90%;
    }
  }

  /* Blog-specific styles */
  .blog-post {
    line-height: 1.7;
    text-align: left;
    max-width: 700px;
    margin: 0 auto;
  }

  .blog-post h1 {
    text-align: left;
    margin-bottom: 2rem;
    font-size: 4rem;
  }

  .blog-post h2 {
    font-family: var(--font-stack-sans-serif);
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    font-weight: 600;
    font-size: 1.75rem;
    text-align: left;
  }

  .blog-post h3 {
    margin-top: 2rem;
    margin-bottom: 0.75rem;
    font-weight: 600;
    font-size: 1.25rem;
    text-align: left;
  }

  .blog-post p {
    margin-bottom: 1.25rem;
    line-height: 1.7;
    text-align: left;
  }

  .blog-post ul {
    margin: 1.25rem 0;
    padding-left: 2rem;
    text-align: left;
  }

  .blog-post li {
    margin-bottom: 0.75rem;
    line-height: 1.6;
    text-align: left;
  }

  .blog-post blockquote {
    border-left: 4px solid rgba(0,0,0,0.2);
    padding-left: 1.5rem;
    margin: 2rem 0;
    opacity: 0.85;
    font-style: italic;
    text-align: left;
  }

  .author-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid rgba(0,0,0,0.1);
  }

  .author-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    font-weight: 600;
    flex-shrink: 0;
  }

  .author-info {
    display: flex;
    flex-direction: column;
    gap: 0.20rem;
    text-align: left;
  }

  .author-name {
    font-weight: 600;
    font-size: 1.1rem;
  }

  .author-title {
    opacity: 0.7;
    font-size: 0.9rem;
  }

  .post-date {
    opacity: 0.6;
    font-size: 0.85rem;
  }

  .citation {
    background: rgba(0,0,0,0.03);
    border: 1px solid rgba(0,0,0,0.1);
    padding: 1rem 1.5rem;
    border-radius: 4px;
    font-size: 0.9rem;
    margin: 1.5rem 0;
    line-height: 1.6;
    text-align: left;
  }

  .citation strong {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
  }

  .citation a {
    color: black;
    text-decoration: underline;
  }

  .highlight-box {
    background: rgba(0,0,0,0.03);
    border-left: 4px solid #000;
    padding: 1.5rem;
    margin: 2rem 0;
    border-radius: 4px;
    text-align: left;
  }

  .highlight-box h3 {
    margin-top: 0;
    font-size: 1.3rem;
    font-weight: 600;
  }

  .highlight-box p:last-child {
    margin-bottom: 0;
  }

  /* Blog index page styles */
  body.static.blog_index .page-header h1 {
    text-align: center;
  }

  body.static.blog_index .page-header p {
    text-align: center;
  }

  body.static.blog_index article {
    text-align: left;
  }

  body.static.blog_index article h2 {
    text-align: left;
  }

  body.static.blog_index article p {
    text-align: left;
  }
}
.latest-insights-row {
  display: flex;
  gap: 1.5rem;
  overflow-x: auto;
  padding-bottom: 1rem;
  -webkit-overflow-scrolling: touch;
}

.latest-insights-row::-webkit-scrollbar {
  height: 6px;
}

.latest-insights-row::-webkit-scrollbar-thumb {
  background: rgba(0,0,0,0.2);
  border-radius: 3px;
}

.latest-insights-card {
  min-width: 260px;
  flex: 1 0 260px;
  padding-right: 1.5rem;
  border-right: 1px solid rgba(0,0,0,0.1);
}

.latest-insights-card:last-child {
  border-right: none;
  padding-right: 0;
}

@media (min-width: 960px) {
  .latest-insights-row {
    overflow-x: visible;
  }

  .latest-insights-card {
    min-width: 0;
    flex: 1 1 0;
  }
}
