/* ============================================
   styles.mobile.css
   Mobile-only overrides (<= 768px)
   ============================================ */

/* Base layout & typography */
html, body {
    font-size: 15px;
    line-height: 1.7;
    margin: 0;
    padding: 0;
  }

  /* Use dark navy background behind sections */
  body {
    background-color: #020617;
    color: #e5e7eb;
  }

  /* Generic container: full-width with safe padding */
  .container {
    max-width: 100%;
    width: 100%;
    padding-left: 1.25rem;
    padding-right: 1.25rem;
    box-sizing: border-box;
  }

  /* Main card wrapper (dashboard / forms etc.) */
  main {
    width: 100%;
    margin: 1.25rem 0;
    padding: 1.5rem 1.25rem;
    border-radius: 0;
    box-shadow: none;
  }

  /* Section titles a bit smaller on mobile */
  .section-title {
    font-size: 1.55rem;
    line-height: 1.3;
    margin-bottom: 0.85rem;
  }

  /* --------------------------------------------
     NAVBAR
     Stack nicely, no horizontal overflow
     -------------------------------------------- */

  .navbar,
  .navbar.container {
    background: #020617bc;
    padding: 0.75rem 1rem;
    flex-direction: column;
    align-items: stretch;
    gap: 0.6rem;
  }

  /* Logo centered */
  .navbar .logo {
    margin: 0;
    display: flex;
    justify-content: center;
  }

  .navbar .logo a {
    font-size: 1.4rem;
  }

  .navbar .navbar-logo {
    height: 42px;
    margin-left: 6px;
  }

  /* Main links: wrap, center, pill-style buttons */
  .main-links,
  .nav-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.6rem;
    margin: 0;
    padding: 0;
  }

  .main-links li a,
  .nav-links li a {
    padding: 0.4rem 0.9rem;
    font-size: 0.9rem;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,0.16);
    background: rgba(15,23,42,0.9);
  }

  /* Right-side user links: compact grid */
  .user-links-grid {
    margin-top: 0.25rem;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 0.75rem;
    row-gap: 0.35rem;
    justify-items: center;
    font-size: 0.85rem;
  }

  @media (max-width: 480px) {
    .user-links-grid {
      grid-template-columns: 1fr;
    }
  }

  /* Smaller logout button */
  .logout-btn {
    padding: 0.25rem 0.75rem;
    font-size: 0.82rem;
  }

  /* --------------------------------------------
     HERO
     Keep the drama, tighten spacing & text size
     -------------------------------------------- */

  .hero {
    padding: 4.25rem 1.25rem 3rem;
    text-align: center;
  }

  /* Constrain text width to device width */
  .hero-text {
    max-width: 100%;
  }

  /* Hero title smaller and more readable on phone */
  #hero-title {
    font-size: 1.45rem;
    line-height: 1.35;
  }

  /* Paragraphs in hero: tighter margins */
  .hero-text p {
    max-width: 100%;
    margin: 0.65rem auto 0;
  }

  /* CTA buttons: full-width-ish and touch-friendly */
  .cta-button {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    min-width: 46%;
    padding: 0.6rem 0.9rem;
    font-size: 0.95rem;
    margin: 0.35rem 0.25rem;
  }

  @media (max-width: 480px) {
    .cta-button {
      width: 100%;
    }
  }

  /* Optional: slightly tone down drips on mobile */
  .color-drip-bg .drop {
    opacity: 0.75;
  }

  /* --------------------------------------------
     FEATURES & CARDS
     -------------------------------------------- */

  .features {
    grid-template-columns: 1fr;
    gap: 0.9rem;
    margin: 2rem 0 1.5rem;
  }

  .feature {
    padding: 0.9rem 0.95rem;
    text-align: left;
  }

  /* Generic card-style things (dataset-card, etc.) */
  .dataset-list {
    flex-direction: column;
    gap: 1rem;
  }

  .dataset-card {
    width: 100%;
    box-sizing: border-box;
    margin: 0;
  }

  /* Metrics strip (5,000+ etc.): 2 columns, then 1 */
  section.container div[style*="grid-template-columns:repeat(auto-fit,minmax(180px,1fr))"] {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
  }

  @media (max-width: 520px) {
    section.container div[style*="grid-template-columns:repeat(auto-fit,minmax(180px,1fr))"] {
      grid-template-columns: 1fr;
    }
  }

  /* --------------------------------------------
     BENTO "HOW WE DELIVER" GRID
     -------------------------------------------- */

  .bento-grid {
    grid-template-columns: 1fr;
  }

  /* Make sure all spans collapse to single column */
  .bento-span-3,
  .bento-span-4,
  .bento-span-6 {
    grid-column: auto !important;
  }

  .bento-card {
    padding: 1rem;
  }

  /* Step labels a bit clearer on small screens */
  .eyebrow {
    font-size: 0.78rem;
  }

  /* --------------------------------------------
     TIMELINE (SVG SECTION)
     -------------------------------------------- */

  /* Let the SVG scroll horizontally if needed */
  #delivery-timeline .tlg-wrap {
    padding: 0.75rem;
  }

  /* Slightly smaller text inside the SVG */
  #delivery-timeline svg text.tl-title {
    font-size: 12px;
  }

  #delivery-timeline svg text.tl-meta {
    font-size: 11px;
  }

  /* CTA under the timeline: full-width button on small screens */
  #delivery-timeline .btn {
    width: 100%;
    max-width: 360px;
  }

  /* --------------------------------------------
     TABLES / COMPARISON
     -------------------------------------------- */

  section.container table {
    font-size: 0.9rem;
  }

  section.container table th,
  section.container table td {
    padding: 0.45rem 0.35rem !important;
  }

  /* Make tables scrollable horizontally */
  section.container > div[style*="overflow:auto"] {
    -webkit-overflow-scrolling: touch;
  }

  /* --------------------------------------------
     FAQ <details> tweaks
     -------------------------------------------- */

  details {
    border-radius: 6px;
    padding: 0.6rem 0.75rem;
  }

  details + details {
    margin-top: 0.35rem;
  }

  details summary {
    font-size: 0.96rem;
  }

  /* --------------------------------------------
     FOOTER
     -------------------------------------------- */

  .site-footer {
    padding: 2.25rem 0 1.25rem;
  }

  /* Footer container: narrower padding on mobile */
  .site-footer .container {
    padding: 0 1.5rem;
  }

  /* Stack columns more aggressively */
  .footer-top {
    grid-template-columns: 1fr;
    gap: 1.75rem;
  }

  /* 3 columns -> 2 -> 1 as screen shrinks */
  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.25rem;
  }

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

  /* Newsletter: single-column layout */
  .footer-newsletter-row {
    flex-direction: column;
  }

  .footer-newsletter-row button {
    width: 100%;
  }

  /* Bottom bar: stacked */
  .footer-bottom-inner {
    padding: 0 1.5rem;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.35rem;
  }

  .footer-bottom-secondary {
    text-align: left;
  }

  /* --------------------------------------------
     MISC BUTTONS
     -------------------------------------------- */

  .btn,
  .buy-btn {
    width: 100%;
    max-width: 360px;
    box-sizing: border-box;
    text-align: center;
  }

  /* Danger button small tweak */
  .btn-danger {
    width: 100%;
    max-width: 360px;
    box-sizing: border-box;
  }

  /* --------------------------------------------
     GPU-status bar (if visible)
     -------------------------------------------- */

  .gpu-status-bar {
    padding: 0 0.75rem;
    font-size: 0.8rem;
  }



  /* =========================================
   MAIN CONTENT TYPOGRAPHY (SAFE SCOPE)
   Only inside <main class="container">,
   does NOT affect navbar or footer
========================================= */

main.container {
    color: #111827; /* dark slate text */
  }

  /* All section titles in main content */
  main.container .section-title {
    color: #0b1120;       /* deep navy */
    font-weight: 700;
  }

  /* General body text in main sections */
  main.container p,
  main.container li,
  main.container summary {
    color: #111827;
    line-height: 1.7;
    font-size: 0.97rem;
  }
/* HERO OVERRIDE – keep text light on dark gradient */
main.container .hero,
main.container .hero h1,
main.container .hero p,
main.container .hero li {
  color: #f9fafb;
}
/* Override light inline colors INSIDE content sections only */
main.container section.container p[style*="color"],
main.container section.container li[style*="color"],
main.container section.container span[style*="color"] {
  color: #111827 !important;  /* strong, readable dark text */
}
/* ==============================
   #what-we-do SECTION
============================== */

#what-we-do .section-title {
    color: #0b1120;
  }

  #what-we-do p,
  #what-we-do li {
    color: #111827;
  }
/* ==============================
   WHAT WE DO DIFFERENTLY (features)
============================== */

.features.container {
    margin-top: 3rem;
  }

  .features .section-title {
    color: #0b1120;
  }

  .features .feature h3 {
    color: #0b1120;
    margin-bottom: 0.4rem;
  }

  .features .feature p {
    color: #111827;
  }
/* ==============================
   LEGAL EXPERTISE
============================== */

.legal-expertise h2 {
    color: #0b1120;
  }

  .legal-expertise p,
  .legal-expertise li {
    color: #111827;
  }
/* ==============================
   HOW WE DELIVER (BENTO GRID)
============================== */

.how-it-works .section-title {
    color: #0b1120;
  }

  .bento-card h3 {
    color: #0b1120;
  }

  .bento-card p,
  .bento-card li {
    color: #111827;
  }
/* ==============================
   DELIVERY TIMELINE
============================== */

#delivery-timeline .section-title {
    color: #0b1120;
  }

  /* Intro + outro copy under the SVG */
  #delivery-timeline > p {
    color: #111827 !important;
  }
/* ==============================
   TESTIMONIALS
============================== */

.testimonials .section-title {
    color: #0b1120;
  }

  .testimonials blockquote {
    background: #f9fafb;
    color: #111827;
    border-left: 4px solid #1D2951;
    padding: 1rem 1.25rem;
    margin: 1rem 0;
  }

  .testimonials blockquote footer {
    margin-top: 0.5rem;
    color: #4b5563;
    font-size: 0.9rem;
  }
/* ==============================
   WHAT THIS ACTUALLY CHANGES
============================== */

section.container h2.section-title {
    /* This will also nicely hit other H2s in containers */
    color: #0b1120;
  }

  section.container h2.section-title + p {
    /* The short intro paragraph under that H2 */
    color: #111827 !important;
  }
/* ==============================
   METRICS STRIP
============================== */

section.container.animate__fadeInUp h3 {
    color: #1D2951;
  }

  section.container.animate__fadeInUp p {
    color: #111827;
  }
/* ==============================
   COVERAGE SECTION
============================== */

section.container.animate__fadeIn .section-title {
    color: #0b1120;
  }

  section.container.animate__fadeIn p {
    color: #111827 !important;
  }
/* ==============================
   PRICING & MINIMUMS
============================== */

#pricing .section-title {
    color: #0b1120;
  }

  #pricing p {
    color: #111827;
  }
/* ==============================
   DATA ETHICS & PROVENANCE
============================== */

section.container.animate__fadeInUp .section-title {
    color: #0b1120;
  }

  section.container.animate__fadeInUp .feature h3 {
    color: #0b1120;
  }

  section.container.animate__fadeInUp .feature p {
    color: #111827;
  }
/* ==============================
   FROM BRIEF TO DELIVERY
============================== */

section.container.animate__fadeIn ol {
    color: #111827;
  }
/* ==============================
   SAMPLE JSONL ROW
============================== */

section.container.animate__fadeInUp pre {
    background: #0f172a;
    color: #f9fafb;
  }
/* ==============================
   CASE STUDIES
============================== */

section.container.animate__fadeIn .section-title {
    color: #0b1120;
  }

  section.container.animate__fadeIn > p {
    color: #111827 !important;
  }

  /* Cards themselves stay white-on-dark */
  section.container.animate__fadeIn .dataset-card h3,
  section.container.animate__fadeIn .dataset-card p {
    color: #ffffff;
  }
/* ==============================
   WHY CHOOSE US (COMPARISON TABLE)
============================== */

section.container.animate__zoomIn .section-title {
    color: #0b1120;
  }

  section.container.animate__zoomIn table {
    color: #111827;
  }
/* ==============================
   WHY THIS MATTERS LONG-TERM
============================== */

section.container:nth-of-type(n) .section-title {
    /* already caught above, but safe */
    color: #0b1120;
  }

  section.container:nth-of-type(n) p {
    color: #111827;
  }
/* ==============================
   FAQ
============================== */

section.container.animate__fadeInUp .section-title {
    color: #0b1120;
  }

  section.container.animate__fadeInUp details {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 0.6rem 0.75rem;
    color: #111827;
  }

  section.container.animate__fadeInUp details + details {
    margin-top: 0.5rem;
  }

  section.container.animate__fadeInUp summary {
    cursor: pointer;
    color: #0b1120;
  }
/* ==============================
   FINAL CTA
============================== */

section.container.animate__fadeInUp:last-of-type .section-title {
    color: #0b1120;
  }

  section.container.animate__fadeInUp:last-of-type p {
    color: #111827;
  }
/* ==============================
   FOOTER SAFETY
============================== */

.site-footer,
.site-footer p,
.site-footer li,
.site-footer a,
.site-footer .footer-note,
.site-footer .footer-logo,
.site-footer h4 {
  color: #e5e7eb !important;
}

.site-footer a:hover {
  color: #ffffff !important;
}
/* =========================================
   CASE STUDIES SECTION – FIX COLORS + FLIP
   (the block with the 3 dark cards)
========================================= */

/* Keep the section title + intro dark on white */
section.container.animate__animated.animate__fadeIn > h2.section-title {
    color: #0b1120;
  }

  section.container.animate__animated.animate__fadeIn > p {
    color: #111827 !important;
  }

  /* Inside the dark cards: force white text */
  section.container.animate__animated.animate__fadeIn .dataset-card {
    color: #f9fafb;
    border: none; /* ignore generic dataset-card border */
  }

  section.container.animate__animated.animate__fadeIn .dataset-card h3,
  section.container.animate__animated.animate__fadeIn .dataset-card p {
    color: #f9fafb !important;
  }

  /* Button: light on dark card, flip on hover */
  section.container.animate__animated.animate__fadeIn .dataset-card .btn {
    background: #f9fafb !important;
    color: #1D2951 !important;
    border: none;
    font-weight: 600;
  }

  section.container.animate__animated.animate__fadeIn .dataset-card .btn:hover {
    background: transparent !important;
    color: #f9fafb !important;
    border: 1px solid #f9fafb !important;
  }

  /* Stack case study cards vertically: text on top, button below */
section.container.animate__animated.animate__fadeIn .dataset-card {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 1rem;  /* space between text and button */
  }

  /* Make the button sit nicely under the text */
  section.container.animate__animated.animate__fadeIn .dataset-card .btn {
    align-self: flex-start;      /* left aligned; use center for centered button */
    margin-top: 0.5rem;
  }


  /* Mobile override for drip animation */
@keyframes dripFall {
    0%   { transform: translateY(-60px) scale(0.8); opacity: 1; }
    50%  { transform: translateY(960px) scale(1.1); opacity: 1; }  /* 770 + 100 */
    100% { transform: translateY(1900px) scale(0.9); opacity: 0; }  /* 890 + 100 */
  }
  .color-drip-bg .drop {
    position: absolute;
    top: -40px;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    opacity: 0.80;
    background: linear-gradient(135deg, #e879f9, #60a5fa, #5eead4);
    animation: dripFall 14s cubic-bezier(0.4, 0, 0.2, 1) infinite;

  }
