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

@layer base {
  :root {
    --background: 0 0% 100%;
    --foreground: 222.2 84% 4.9%;
    --card: 0 0% 100%;
    --card-foreground: 222.2 84% 4.9%;
    --popover: 0 0% 100%;
    --popover-foreground: 222.2 84% 4.9%;
    --primary: 221.2 83.2% 53.3%;
    --primary-foreground: 210 40% 98%;
    --secondary: 210 40% 96.1%;
    --secondary-foreground: 222.2 47.4% 11.2%;
    --muted: 210 40% 96.1%;
    --muted-foreground: 215.4 16.3% 46.9%;
    --accent: 210 40% 96.1%;
    --accent-foreground: 222.2 47.4% 11.2%;
    --destructive: 0 84.2% 60.2%;
    --destructive-foreground: 210 40% 98%;
    --border: 214.3 31.8% 91.4%;
    --input: 214.3 31.8% 91.4%;
    --ring: 221.2 83.2% 53.3%;
    --radius: 0.5rem;
  }

  .dark {
    --background: 222.2 84% 4.9%;
    --foreground: 210 40% 98%;
    --card: 222.2 84% 4.9%;
    --card-foreground: 210 40% 98%;
    --popover: 222.2 84% 4.9%;
    --popover-foreground: 210 40% 98%;
    --primary: 217.2 91.2% 59.8%;
    --primary-foreground: 222.2 47.4% 11.2%;
    --secondary: 217.2 32.6% 17.5%;
    --secondary-foreground: 210 40% 98%;
    --muted: 217.2 32.6% 17.5%;
    --muted-foreground: 215 20.2% 65.1%;
    --accent: 217.2 32.6% 17.5%;
    --accent-foreground: 210 40% 98%;
    --destructive: 0 62.8% 30.6%;
    --destructive-foreground: 210 40% 98%;
    --border: 217.2 32.6% 17.5%;
    --input: 217.2 32.6% 17.5%;
    --ring: 224.3 76.3% 48%;
  }

  html, body {
    overflow-x: hidden;
    overflow-y: scroll;
    background-color: hsl(var(--background));
    min-height: 100vh;
  }
}

@layer utilities {
  .animate-blink {
    animation: blink 0.8s step-start infinite;
  }
}

.cursor {
  border-right: 2px solid black;
  animation: blink 1s infinite;
}

@keyframes blink {
  50% {
    border-color: transparent;
  }
}

:root {
  --background: 214 27% 14%;
  --primary: 222.2 47.4% 11.2%;
  --primary-foreground: 210 40% 98%;
  --muted-foreground: 215.4 16.3% 46.9%;
  --border: 214.3 31.8% 91.4%;
  --sai-yellow: 47 83% 62%;
  --background-primary: 214 27% 14%;
}
/* Blog page typography and layout helpers */
.prose {
  color: #374151;
  line-height: 1.75;
}

.prose h1,
.prose h2,
.prose h3,
.prose h4,
.prose h5,
.prose h6 {
  color: #111827;
  font-weight: 700;
  margin-top: 2rem;
  margin-bottom: 1rem;
}

.prose h1 { font-size: 2.25rem; }
.prose h2 { font-size: 1.875rem; }
.prose h3 { font-size: 1.5rem; }
.prose h4 { font-size: 1.25rem; }

.prose p {
  margin-bottom: 1.5rem;
}

.prose ul,
.prose ol {
  margin-bottom: 1.5rem;
  padding-left: 1.5rem;
}

.prose li {
  margin-bottom: 0.5rem;
}

.prose blockquote {
  border-left: 4px solid #e5e7eb;
  padding-left: 1rem;
  margin: 1.5rem 0;
  font-style: italic;
  color: #6b7280;
}

.prose code {
  background-color: #f3f4f6;
  padding: 0.25rem 0.5rem;
  border-radius: 0.375rem;
  font-size: 0.875rem;
  color: #dc2626;
}

.prose pre {
  background-color: #1f2937;
  color: #f9fafb;
  padding: 1rem;
  border-radius: 0.5rem;
  overflow-x: auto;
  margin: 1.5rem 0;
}

.prose pre code {
  background-color: transparent;
  color: inherit;
  padding: 0;
}

.prose a {
  color: #2563eb;
  text-decoration: none;
}

.prose a:hover {
  color: #1d4ed8;
  text-decoration: underline;
}

.line-clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.line-clamp-3 {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
:root {
  --bg: #F8F7F3;
  --surface: #FFFFFF;
  --text: #161616;
  --text-muted: #555555;
  --border: #E6E2D8;
  --primary: #1F4D3A;
  --primary-hover: #173B2C;
  --accent: #A8843A;

  --radius-sm: 12px;
  --radius-md: 18px;
  --radius-lg: 24px;

  --shadow-sm: 0 4px 16px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 8px 28px rgba(0, 0, 0, 0.06);

  --container: 1120px;
  --container-narrow: 760px;
  --container-form: 640px;
}

html {
  scroll-behavior: smooth;
}

.fmls-body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 18px;
  line-height: 1.6;
}

.fmls-main {
  width: 100%;
}

h1, h2, h3 {
  font-family: Georgia, "Times New Roman", serif;
  color: var(--text);
  letter-spacing: -0.02em;
  margin: 0 0 12px;
}

p {
  margin: 0 0 16px;
  color: var(--text-muted);
}

.fmls-section {
  padding: 88px 0;
}

.fmls-section--hero {
  padding-top: 96px;
  padding-bottom: 72px;
}

.fmls-container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 32px;
}

.fmls-container-narrow {
  max-width: var(--container-narrow);
  margin: 0 auto;
  padding: 0 32px;
}

.fmls-container-form {
  max-width: var(--container-form);
  margin: 0 auto;
  padding: 0 24px;
}

.fmls-eyebrow {
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 16px;
}

.fmls-hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}

.fmls-hero-title {
  font-size: 56px;
  line-height: 1.05;
  font-weight: 700;
  margin-bottom: 20px;
}

.fmls-hero-subtitle {
  font-size: 20px;
  line-height: 1.5;
  color: var(--text-muted);
  max-width: 34rem;
}

.fmls-cta-row {
  margin-top: 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: flex-start;
}

.fmls-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 56px;
  padding: 0 28px;
  border-radius: 14px;
  background: var(--primary);
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  border: none;
  transition: all 0.2s ease;
  cursor: pointer;
}

.fmls-button:hover {
  background: var(--primary-hover);
  transform: translateY(-1px);
}

.fmls-link {
  color: var(--primary);
  text-decoration: none;
  font-weight: 600;
}

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

.fmls-process-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 28px;
  box-shadow: var(--shadow-sm);
}

.fmls-process-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 8px;
}

.fmls-process-step {
  display: grid;
  grid-template-columns: 32px 1fr;
  gap: 14px;
  align-items: center;
  position: relative;
  padding: 12px 0;
  font-weight: 600;
  color: var(--text);
}

.fmls-process-step:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 16px;
  top: 40px;
  width: 2px;
  height: calc(100% - 28px);
  background: rgba(31, 77, 58, 0.18);
}

.fmls-process-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(31, 77, 58, 0.14);
  border: 1px solid rgba(31, 77, 58, 0.3);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  color: var(--primary);
}

.fmls-section-title {
  font-size: 36px;
  line-height: 1.15;
  font-weight: 700;
  margin-bottom: 24px;
}

.fmls-card-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.fmls-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 24px;
}

.fmls-card h3 {
  font-size: 22px;
  margin-bottom: 8px;
}

.fmls-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: rgba(31, 77, 58, 0.1);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 12px;
}

.fmls-steps-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.fmls-step-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 28px;
}

.fmls-step-label {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 10px;
}

.fmls-offer-panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-top: 3px solid rgba(168, 132, 58, 0.6);
  border-radius: var(--radius-lg);
  padding: 32px;
  text-align: center;
  box-shadow: var(--shadow-sm);
}

.fmls-price {
  font-size: 32px;
  font-weight: 700;
  margin: 16px 0;
  color: var(--text);
}

.fmls-bullets {
  list-style: none;
  padding: 0;
  margin: 20px 0 28px;
  display: grid;
  gap: 10px;
}

.fmls-bullets li::before {
  content: "•";
  color: var(--accent);
  margin-right: 8px;
}

.fmls-form-panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-sm);
}

.fmls-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.fmls-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.fmls-label {
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
  color: var(--text-muted);
}

.fmls-input,
.fmls-select,
.fmls-textarea {
  height: 52px;
  border: 1px solid #D8D4CA;
  border-radius: 12px;
  padding: 0 16px;
  font-size: 16px;
  font-family: inherit;
  background: #fff;
}

.fmls-textarea {
  min-height: 120px;
  padding: 12px 16px;
  resize: vertical;
}

.fmls-input:focus,
.fmls-select:focus,
.fmls-textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(31, 77, 58, 0.12);
}

.fmls-single {
  grid-column: 1 / -1;
}

.fmls-reserve-card,
.fmls-thanks-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  text-align: center;
  box-shadow: var(--shadow-sm);
}

.fmls-check {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(31, 77, 58, 0.15);
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  margin-bottom: 20px;
}

.fmls-reserve-list {
  list-style: none;
  padding: 0;
  margin: 24px 0;
  display: grid;
  gap: 10px;
}

.fmls-reserve-list li {
  color: var(--text-muted);
}

.fmls-hidden {
  display: none;
}

@media (max-width: 1024px) {
  .fmls-hero-grid {
    grid-template-columns: 1fr;
  }
  .fmls-steps-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .fmls-section {
    padding: 56px 0;
  }
  .fmls-section--hero {
    padding-top: 64px;
    padding-bottom: 56px;
  }
  .fmls-container,
  .fmls-container-narrow {
    padding: 0 20px;
  }
  .fmls-hero-title {
    font-size: 38px;
    line-height: 1.08;
  }
  .fmls-card-grid {
    grid-template-columns: 1fr;
  }
  .fmls-form-grid {
    grid-template-columns: 1fr;
  }
}
.hero {
  background-image: url(/assets/logos/sai-43720b1a3aac25c145c035be053b36f76a9e175119509d1569155434653f388c.webp);
  background-size: cover;
  background-position: center center;
  color: #fff;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 80vh;
}

.slack_hero_video {
  width: 100%;
  height: auto;
  max-width: 100%;
  display: block;
  margin: 0 auto;
  border-radius: 8px;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.buttons {
  margin-top: 1rem;
}

.section {
  padding: 3rem 0;
}

.icon-text {
  display: flex;
  align-items: center;
}

.icon-text .icon {
  margin-right: 1rem;
}

.card {
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.card-image {
  flex-basis: 70%;
  overflow: hidden;
}

.card-content {
  flex-basis: 30%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.card-content .media {
  margin-bottom: 0.5rem;
}

.card-content .media-content {
  margin-left: 0.5rem;
}

@media screen and (max-width: 768px) {
  .hero {
    height: 60vh;
  }

  .icon-text {
    flex-direction: column;
    align-items: flex-start;
  }

  .card {
    margin-bottom: 1.5;
  }
  .card-image {
    flex-basis: 50%;
  }
  
  .card-content {
    flex-basis: 50%;
  }
}
/*
 * 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.
 *



 */

/* Animated Background Questions Styles */
.questions-container {
  position: relative;
  width: 300vw;
  height: 300vh;
  transform: rotate(-15deg);
}

.question-row {
  display: flex;
  white-space: nowrap;
  margin-bottom: 100px;
  animation: slideLeft 80s linear infinite;
}

.question-row:nth-child(even) {
  animation: slideRight 85s linear infinite;
}

.question-row:nth-child(3n) {
  animation-delay: -30s;
}

.question-row:nth-child(4n) {
  animation-delay: -15s;
}

.question {
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  padding: 18px 28px;
  margin: 0 25px;
  color: rgba(255, 255, 255, 0.95);
  font-size: 15px;
  font-weight: 500;
  min-width: 220px;
  max-width: 350px;
  text-align: left;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  transition: all 0.3s ease;
  line-height: 1.4;
  white-space: normal;
  word-wrap: break-word;
  flex-shrink: 0;
}

.question:hover {
  background: rgba(255, 255, 255, 0.12);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.question.urgent {
  background: rgba(239, 68, 68, 0.15);
  border-color: rgba(239, 68, 68, 0.3);
  color: #fecaca;
}

.question.meeting {
  background: rgba(34, 197, 94, 0.15);
  border-color: rgba(34, 197, 94, 0.3);
  color: #bbf7d0;
}

.question.code {
  background: rgba(59, 130, 246, 0.15);
  border-color: rgba(59, 130, 246, 0.3);
  color: #bfdbfe;
}

.question.info {
  background: rgba(168, 85, 247, 0.15);
  border-color: rgba(168, 85, 247, 0.3);
  color: #e9d5ff;
}

@keyframes slideLeft {
  0% {
    transform: translateX(100vw);
  }
  100% {
    transform: translateX(-200vw);
  }
}

@keyframes slideRight {
  0% {
    transform: translateX(-200vw);
  }
  100% {
    transform: translateX(100vw);
  }
}

/* PDF.js text layer styles */
.textLayer {
  position: absolute;
  left: 0;
  top: 0;
  right: 0;
  bottom: 0;
  pointer-events: auto;
  overflow: hidden;
}
.textLayer ::selection {
  background: rgba(180, 213, 255, 0.5);
}
.textLayer .endOfContent { display: none; }
/* Absolutely position each text span over the canvas */
.textLayer span {
  position: absolute;
  white-space: pre;
  transform-origin: 0 0;
  line-height: 1;
  /* Hide overlay text but keep it selectable */
  color: transparent;
}

/* Ensure the viewer container doesn't shift text layer */
.pdf-viewer-container {
  position: relative;
  overflow: hidden;
}

/* PDF.js regex preview */
.pdf-regex-hit {
  outline: 1px solid rgba(59,130,246,0.7);
  background: rgba(59,130,246,0.1);
}
