@tailwind base;
@tailwind components;
@tailwind utilities;

/*
Blog Featured Snippet / Info Box Component
This styling creates a Google Featured Snippet-style information box
Optimized for SEO and readability with proper semantic HTML
*/
@layer components {
  /* Marketing site (landing layout): shared layout primitives for the redesigned pages.
     Never name a wrapper "marketing-container": Liste FR (AdBlock Plus default for French browsers)
     hides that class on every site, which blanked every page. See docs/marketing-site.md. */
  .site-container {
    @apply mx-auto w-full max-w-[1376px] px-4 sm:px-6 lg:px-8;
  }
  .grid-overlay-dark {
    background-image: linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
      linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
    background-size: 48px 48px;
  }
  .grid-overlay-light {
    background-image: linear-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px),
      linear-gradient(90deg, rgba(255, 255, 255, 0.08) 1px, transparent 1px);
    background-size: 48px 48px;
  }
  .glow-brand {
    background: radial-gradient(circle, rgba(234, 88, 12, 0.28) 0%, rgba(234, 88, 12, 0) 62%);
  }
  /* The wordmark SVG carries hard-coded fills; recolour it from the current text colour. */
  .logo-current path {
    fill: currentColor !important;
  }
  .marquee-mask {
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
    mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  }
  @media (prefers-reduced-motion: reduce) {
    .animate-marquee {
      animation: none;
    }
  }

  /* Shared style for feature navigation tabs (Leads, Accounts, etc.) */
  .nav-tab {
    @apply pb-4 text-base font-bold whitespace-nowrap border-b-2 transition-colors;
  }
  /* Main container for the featured snippet box */
  .featured-snippet-box {
    background-color: #f9fbfd; /* Very light blue/grey background */
    border: 1px solid #d1d5db; /* Subtle border (Tailwind gray-300) */
    border-left: 5px solid #0077b5; /* LinkedIn Blue accent line */
    border-radius: 8px;
    padding: 24px;
    margin-bottom: 32px;
    margin-top: 24px;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06); /* Subtle shadow */
  }

  /* Mobile responsive padding */
  @media (max-width: 640px) {
    .featured-snippet-box {
      padding: 16px;
      margin-bottom: 24px;
      margin-top: 16px;
    }
  }

  /* Title styling */
  .snippet-title {
    margin-top: 0;
    margin-bottom: 16px;
    font-size: 1.25rem; /* 20px */
    font-weight: 600;
    color: #111827; /* Tailwind gray-900 */
    line-height: 1.5;
    display: flex;
    align-items: center;
  }

  /* Mobile title adjustments */
  @media (max-width: 640px) {
    .snippet-title {
      font-size: 1.125rem; /* 18px */
      margin-bottom: 12px;
    }
  }

  /* Content area styling */
  .snippet-content {
    color: #374151; /* Tailwind gray-700 */
    line-height: 1.7;
  }

  /* Paragraph spacing inside snippet */
  .snippet-content p {
    margin-bottom: 12px;
  }

  .snippet-content p:last-child {
    margin-bottom: 0;
  }

  /* List styling for clean, scannable content */
  .snippet-content ul,
  .snippet-content ol {
    margin: 12px 0;
    padding-left: 24px;
  }

  .snippet-content ul {
    list-style-type: disc;
  }

  .snippet-content ol {
    list-style-type: decimal;
  }

  .snippet-content li {
    margin-bottom: 8px;
    line-height: 1.7;
  }

  .snippet-content li:last-child {
    margin-bottom: 0;
  }

  /* Nested lists */
  .snippet-content ul ul,
  .snippet-content ol ol,
  .snippet-content ul ol,
  .snippet-content ol ul {
    margin-top: 8px;
    margin-bottom: 8px;
  }

  /* Link styling inside snippet */
  .snippet-content a {
    color: #0077b5; /* LinkedIn Blue */
    text-decoration: underline;
    transition: color 0.2s;
  }

  .snippet-content a:hover {
    color: #005885; /* Darker blue on hover */
  }

  /* Bold and emphasis text */
  .snippet-content strong {
    font-weight: 600;
    color: #111827;
  }

  .snippet-content em {
    font-style: italic;
  }

  /* Code blocks inside snippet */
  .snippet-content code {
    background-color: #e5e7eb; /* Tailwind gray-200 */
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 0.9em;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  }

  /* Blockquotes inside snippet */
  .snippet-content blockquote {
    border-left: 3px solid #d1d5db;
    padding-left: 16px;
    margin: 16px 0;
    font-style: italic;
    color: #6b7280; /* Tailwind gray-500 */
  }

  /* Ensure proper spacing with prose content when snippet is in a blog post */
  .prose .featured-snippet-box {
    max-width: none; /* Override prose max-width */
  }

  /*
  Contentful Rich Text Table Styling
  Mobile-responsive tables with horizontal scrolling for SEO
  Includes sticky headers for improved long-table readability
  */
  .table-container {
    width: 100%;
    overflow-x: auto; /* Critical for mobile usability & SEO */
    margin: 24px 0;
    -webkit-overflow-scrolling: touch; /* Smooth scrolling on iOS */
    border-radius: 8px;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
  }

  /* Ensure tables in prose content get full width */
  .prose .table-container {
    max-width: none;
  }

  .table-container table {
    width: 100%;
    border-collapse: collapse;
    min-width: 600px; /* Forces horizontal scroll on small screens */
    background-color: #ffffff;
  }

  /* Table caption styling */
  .table-container caption {
    padding: 12px 16px;
    text-align: left;
    font-weight: 600;
    font-size: 1rem;
    color: #111827; /* Tailwind gray-900 */
    background-color: #f9fafb; /* Tailwind gray-50 */
    border-bottom: 2px solid #d1d5db;
  }

  .table-container th,
  .table-container td {
    border: 1px solid #d1d5db; /* Tailwind gray-300 */
    padding: 12px 16px;
    text-align: left;
    vertical-align: top;
  }

  .table-container th {
    background-color: #f3f4f6; /* Tailwind gray-100 */
    font-weight: 600;
    color: #111827; /* Tailwind gray-900 */
    font-size: 0.95rem;
    /* Sticky header for long tables */
    position: sticky;
    top: 0;
    z-index: 10;
    box-shadow: 0 1px 0 0 #d1d5db; /* Subtle shadow when scrolling */
  }

  .table-container td {
    color: #374151; /* Tailwind gray-700 */
    line-height: 1.6;
  }

  /* Handle empty cells */
  .table-container td:empty::before {
    content: '\00a0'; /* Non-breaking space for empty cells */
    visibility: hidden;
  }

  /* Striped rows for better readability */
  .table-container tbody tr:nth-child(even) {
    background-color: #f9fafb; /* Tailwind gray-50 */
  }

  /* Hover effect for better UX (desktop only) */
  @media (hover: hover) {
    .table-container tbody tr:hover {
      background-color: #f3f4f6; /* Tailwind gray-100 */
    }
  }

  /* Mobile adjustments */
  @media (max-width: 640px) {
    .table-container {
      margin: 16px -16px; /* Extend to edge on mobile for full width */
      border-radius: 0; /* Remove border radius on mobile */
    }

    .table-container th,
    .table-container td {
      padding: 10px 12px;
      font-size: 0.9rem;
    }

    .table-container caption {
      padding: 10px 12px;
      font-size: 0.9rem;
    }
  }

  /* Responsive text wrapping for narrow cells */
  .table-container td,
  .table-container th {
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
  }

  /* Links inside table cells */
  .table-container a {
    color: #0077b5; /* LinkedIn Blue */
    text-decoration: underline;
    transition: color 0.2s;
  }

  .table-container a:hover {
    color: #005885; /* Darker blue on hover */
  }

  /* Code blocks inside table cells */
  .table-container code {
    background-color: #e5e7eb; /* Tailwind gray-200 */
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 0.875em;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  }

  /* Bold and emphasis text inside tables */
  .table-container strong {
    font-weight: 600;
    color: #111827;
  }

  .table-container em {
    font-style: italic;
  }
}

/*
Video Embed Container
Responsive 16:9 aspect ratio container for YouTube/Vimeo embeds
*/
.video-embed-container {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 aspect ratio */
  height: 0;
  overflow: hidden;
  margin: 24px 0;
  border-radius: 8px;
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
}

.video-embed-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 8px;
}

/* Ensure video embeds in prose content get full width */
.prose .video-embed-container {
  max-width: none;
}

/* Mobile adjustments */
@media (max-width: 640px) {
  .video-embed-container {
    margin: 16px -16px; /* Extend to edge on mobile */
    border-radius: 0;
  }

  .video-embed-container iframe {
    border-radius: 0;
  }
}
/* This CSS file is used for stimulus-scroll-reveal controller */

.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: 1s cubic-bezier(0.5, 0, 0, 1);
  transition-property: opacity, transform;
}

.reveal.in {
  opacity: 1;
  transform: none;
}
/* Self-hosted marketing typefaces (SIL Open Font License): Bricolage Grotesque, DM Sans and
   JetBrains Mono as variable woff2 subsets, the same files Google Fonts serves. Loaded by the
   landing and auth layouts only; the app layouts keep Inter. */

/* Bricolage Grotesque, vietnamese */
@font-face {
  font-family: 'Bricolage Grotesque';
  font-style: normal;
  font-weight: 500 700;
  font-display: swap;
  src: url(/assets/marketing/bricolage-grotesque-vietnamese-9e16466108696393c773d6b9a9f66939a1e2e0d84c6c1354e32281707fbff42d.woff2) format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}

/* Bricolage Grotesque, latin-ext */
@font-face {
  font-family: 'Bricolage Grotesque';
  font-style: normal;
  font-weight: 500 700;
  font-display: swap;
  src: url(/assets/marketing/bricolage-grotesque-latin-ext-7a45418ae14040bef39be3318d7246764a8e07d1a22f6ea2fd921b61583a7b34.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* Bricolage Grotesque, latin */
@font-face {
  font-family: 'Bricolage Grotesque';
  font-style: normal;
  font-weight: 500 700;
  font-display: swap;
  src: url(/assets/marketing/bricolage-grotesque-latin-857cd54623d18c8c5022050b01feefb8c9308339f11c3f92255c62eb6cdce24d.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* DM Sans, latin-ext */
@font-face {
  font-family: 'DM Sans';
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url(/assets/marketing/dm-sans-latin-ext-74d99693fc3bed2dddfcac6088886db5349a32d97a647e1920b68e82d8656ffa.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* DM Sans, latin */
@font-face {
  font-family: 'DM Sans';
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url(/assets/marketing/dm-sans-latin-cce1d7cc16a3c7082a80b9e0741c06fc8e1a0d484d0d8515fdd846239f3c9570.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* JetBrains Mono, cyrillic-ext */
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 400 500;
  font-display: swap;
  src: url(/assets/marketing/jetbrains-mono-cyrillic-ext-dccb88ee5330dddc054ed4590c332f0f9fbe1925159be667d03a2a51b0ba909e.woff2) format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}

/* JetBrains Mono, cyrillic */
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 400 500;
  font-display: swap;
  src: url(/assets/marketing/jetbrains-mono-cyrillic-67a2b6ed1f6c2409a8061e35cff0d2fc43168e446c3259e38c95a1b428838a84.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

/* JetBrains Mono, greek */
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 400 500;
  font-display: swap;
  src: url(/assets/marketing/jetbrains-mono-greek-cf7156eaab61c9cff7336d946b0ffd3d5292ca5b9a42296bcffba81336e52ab0.woff2) format('woff2');
  unicode-range: U+0370-0377, U+037A-037F, U+0384-038A, U+038C, U+038E-03A1, U+03A3-03FF;
}

/* JetBrains Mono, vietnamese */
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 400 500;
  font-display: swap;
  src: url(/assets/marketing/jetbrains-mono-vietnamese-2a584a755d8b1323489890c5625312b334190e5db6ee56f456cd59f96613b11d.woff2) format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}

/* JetBrains Mono, latin-ext */
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 400 500;
  font-display: swap;
  src: url(/assets/marketing/jetbrains-mono-latin-ext-2425cbeefd681ee9e320e81893dd5e5a4bc5cf5ae5312163c2aba665b2e0b9cc.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* JetBrains Mono, latin */
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 400 500;
  font-display: swap;
  src: url(/assets/marketing/jetbrains-mono-latin-7a113942f43a6eb1abb7988a222b61e703427d38a00c8acca19d9b19eeccea57.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
input:checked~.toggle-bg {
  background-color: #EA580C;
}

input:checked~.toggle-dot {
  transform: translateX(100%);
}
/*
 * This is a manifest file that'll be compiled into application.css, which will include all the files
 * listed below.
 *
 * Any CSS (and SCSS, if configured) file within this directory, lib/assets/stylesheets, or any plugin's
 * vendor/assets/stylesheets directory can be referenced here using a relative path.
 *
 * You're free to add application-wide styles to this file and they'll appear at the bottom of the
 * compiled file so the styles you add here take precedence over styles defined in any other CSS
 * files in this directory. Styles in this file should be added after the last require_* statement.
 * It is generally better to create a new file per style scope.
 *


 */

@import "javascript/reveal.css";
@import "toggle.css";
