@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: auto;
    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%;
}

/* Calendar/date picker icons are dark by default; make them white on dark backgrounds */
input[type="date"]::-webkit-calendar-picker-indicator,
input[type="datetime-local"]::-webkit-calendar-picker-indicator {
  filter: invert(1);
  opacity: 0.7;
  cursor: pointer;
}
/* Blog page typography and layout helpers — scoped to public blog pages only */
.blog-page .prose {
  color: #374151;
  line-height: 1.75;
}

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

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

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

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

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

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

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

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

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

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

.blog-page .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;
}

/* Coach preview/live site styles. Scoped to the coach-site layout so the
   shared application.css bundle does not leak these rules into other apps. */
.coach-site {
  margin: 0;
  min-height: 100vh;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #f7f4ed;
  color: #171717;
  --coach-accent: var(--coach-brand, var(--primary));
}

.coach-site a {
  color: inherit;
}

.coach-site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid rgba(31, 77, 58, 0.12);
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(16px);
}

.coach-site-header__inner {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 72px;
}

.coach-site-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #173b2c;
  text-decoration: none;
  font-weight: 800;
}

.coach-site-brand img {
  display: block;
  max-width: 140px;
  max-height: 56px;
  object-fit: contain;
}

.coach-site-phone {
  color: var(--coach-accent);
  font-weight: 700;
  text-decoration: none;
}

.coach-site-nav,
.coach-site-header__actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.coach-site-nav {
  flex-wrap: wrap;
  justify-content: center;
  color: #4d4d4d;
  font-size: 14px;
  font-weight: 700;
}

.coach-site-nav a,
.coach-site-footer__nav a,
.coach-site-text-link {
  text-decoration: none;
}

.coach-site-nav a:hover,
.coach-site-footer__nav a:hover,
.coach-site-text-link:hover {
  color: var(--coach-accent);
}

.coach-site-header__actions {
  justify-content: flex-end;
}

.coach-site-banner {
  padding: 10px 16px;
  background: #fff3cd;
  color: #6b4f00;
  text-align: center;
  font-size: 13px;
}

.coach-site-main {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 48px 0 72px;
}

.coach-site-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 32px;
  align-items: center;
  min-height: 520px;
  padding: 40px 0;
}

.coach-site-hero__content {
  max-width: 680px;
}

.coach-site-eyebrow {
  margin: 0 0 14px;
  color: var(--coach-accent);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.coach-site-hero h1,
.coach-site-section h1,
.coach-site-section h2,
.coach-site-article h1,
.coach-site-article h2 {
  font-family: Georgia, "Times New Roman", serif;
  letter-spacing: -0.03em;
  color: #171717;
}

.coach-site-hero h1 {
  margin: 0 0 18px;
  font-size: clamp(42px, 9vw, 78px);
  line-height: 0.98;
}

.coach-site-headline {
  margin: 0 0 28px;
  max-width: 42rem;
  color: #5b5b5b;
  font-size: clamp(18px, 2.4vw, 22px);
  line-height: 1.55;
}

.coach-site-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.coach-site-cta,
.coach-site-btn,
.coach-site input[type="submit"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px 20px;
  border: 1px solid var(--coach-button-bg);
  border-radius: 999px;
  background: var(--coach-button-bg);
  color: var(--coach-button-text);
  font-weight: 800;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 12px 30px rgba(31, 77, 58, 0.18);
}

.coach-site-btn--sm {
  min-height: 38px;
  padding: 10px 14px;
  font-size: 14px;
}

.coach-site-btn--outline {
  background: transparent;
  color: var(--coach-button-bg);
  box-shadow: none;
}

.coach-site-hero__media {
  min-width: 0;
}

.coach-site-hero-photo {
  display: block;
  width: 100%;
  max-height: 560px;
  border-radius: 32px;
  object-fit: cover;
  box-shadow: 0 24px 70px rgba(23, 23, 23, 0.14);
}

.coach-site-hero-photo--portrait {
  aspect-ratio: 1;
  max-width: 520px;
}

.coach-site-section,
.coach-site-article {
  margin-top: 40px;
  padding: 32px;
  border: 1px solid color-mix(in srgb, var(--coach-accent) 18%, transparent);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 18px 50px rgba(23, 23, 23, 0.06);
}

.coach-site-section--intro {
  display: grid;
  gap: 24px;
}

.coach-site-section--center {
  text-align: center;
}

.coach-site-section__heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 22px;
}

.coach-site-rich-text > *:last-child {
  margin-bottom: 0;
}

.coach-site-section p,
.coach-site-article p,
.coach-site-article li {
  color: #555;
  line-height: 1.7;
}

.coach-site-section ul {
  margin: 16px 0 0;
  padding-left: 20px;
}

.coach-site-section li + li {
  margin-top: 10px;
}

.coach-site-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
  margin-top: 22px;
}

.coach-site-card-grid--list {
  grid-template-columns: 1fr;
}

.coach-site-mini-card,
.coach-site-faq-item,
.coach-site-testimonial,
.coach-site-article-card,
.coach-site-review {
  padding: 20px;
  border: 1px solid rgba(23, 23, 23, 0.08);
  border-radius: 22px;
  background: #fff;
}

.coach-site-mini-card p,
.coach-site-testimonial p,
.coach-site-review p {
  margin: 0;
}

.coach-site-faq-list {
  display: grid;
  gap: 14px;
  margin-top: 22px;
}

.coach-site-faq-item h3,
.coach-site-article-card h2,
.coach-site-article-card h3 {
  margin: 0 0 10px;
  font-family: Georgia, "Times New Roman", serif;
}

.coach-site-faq-item p,
.coach-site-article-card p {
  margin-bottom: 0;
}

.coach-site-testimonial {
  border-left: 4px solid var(--coach-accent);
}

.coach-site-testimonial footer,
.coach-site-card-meta {
  margin-top: 12px;
  color: #747474;
  font-size: 13px;
  font-weight: 700;
}

.coach-site-lead-card,
.coach-site-guide-hero {
  display: grid;
  gap: 24px;
  align-items: center;
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--coach-accent) 10%, #fff) 0%, rgba(255, 255, 255, 0.88) 60%);
}

.coach-site-article-card a {
  text-decoration: none;
}

.coach-site-article-card a:hover {
  color: var(--coach-accent);
}

.coach-site-empty-state {
  margin-top: 22px;
  padding: 24px;
  border-radius: 22px;
  background: color-mix(in srgb, var(--coach-accent) 8%, #fff);
}

.coach-site-stars {
  margin-bottom: 12px;
  color: #a8843a;
  letter-spacing: 0.08em;
}

.coach-site-guide-cta {
  margin: 32px 0;
  padding: 24px;
  border: 1px solid color-mix(in srgb, var(--coach-accent) 20%, transparent);
  border-radius: 22px;
  background: color-mix(in srgb, var(--coach-accent) 9%, #fff);
  text-align: center;
}

.coach-site-guide-cta h2 {
  margin: 0 0 16px;
  font-size: 1.35rem;
}

.coach-site-final-cta {
  margin-top: 48px;
  padding: 42px 32px;
  border-radius: 32px;
  border: 1px solid color-mix(in srgb, var(--coach-accent) 18%, transparent);
  background: color-mix(in srgb, var(--coach-accent) 9%, #fff);
  color: #171717;
  text-align: center;
}

.coach-site-final-cta h2,
.coach-site-final-cta p {
  color: inherit;
}

.coach-site-final-cta .coach-site-eyebrow {
  color: var(--coach-accent);
}

.coach-site-form {
  margin-top: 24px;
  display: grid;
  gap: 12px;
  max-width: 420px;
}

.coach-site-form label {
  font-weight: 800;
}

.coach-site-form input,
.coach-site-input {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid rgba(31, 77, 58, 0.18);
  border-radius: 14px;
  background: #fff;
  color: #171717;
  font: inherit;
  padding: 12px 14px;
}

.coach-site-footer {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 28px 0 40px;
  border-top: 1px solid rgba(31, 77, 58, 0.12);
  color: #686868;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  justify-content: space-between;
  font-size: 14px;
}

.coach-site-footer span {
  display: block;
  margin-top: 4px;
}

.coach-site-footer__nav,
.coach-site-footer__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
}

@media (min-width: 840px) {
  .coach-site-hero {
    grid-template-columns: minmax(0, 0.95fr) minmax(320px, 0.85fr);
  }

  .coach-site-section--intro,
  .coach-site-lead-card,
  .coach-site-guide-hero {
    grid-template-columns: minmax(0, 0.9fr) minmax(300px, 1fr);
  }
}

@media (max-width: 640px) {
  .coach-site-main {
    padding-top: 28px;
  }

  .coach-site-header__inner {
    min-height: 64px;
    align-items: flex-start;
    flex-direction: column;
    padding: 12px 0;
  }

  .coach-site-nav,
  .coach-site-header__actions {
    justify-content: flex-start;
  }

  .coach-site-section,
  .coach-site-article {
    padding: 22px;
    border-radius: 22px;
  }

  .coach-site-footer {
    display: block;
  }
}

/* :root stays global (variable definitions only — harmless outside FMLS).
   Typography and html rules must stay under .fmls-body so fmls.css does not leak
   into CM, SAI, etc. via application.css require_tree. */

.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;
  scroll-behavior: smooth;
  overflow-x: hidden;
}

.fmls-body *,
.fmls-body *::before,
.fmls-body *::after {
  box-sizing: border-box;
}

.fmls-main {
  width: 100%;
}

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

.fmls-body 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;
}

/* Prevent double horizontal padding when narrow/form containers are nested inside
   a container that already provides horizontal padding. */
.fmls-container .fmls-container-narrow,
.fmls-container .fmls-container-form {
  padding-left: 0;
  padding-right: 0;
}

.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: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 48px;
  align-items: center;
}

.fmls-hero-grid > * {
  min-width: 0;
}

.fmls-hero-title {
  font-size: clamp(28px, 5vw, 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;
  min-height: 48px;
  padding: 0 24px;
  border-radius: 10px;
  background: #111;
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid #111;
  box-sizing: border-box;
  transition: background 0.15s ease, border-color 0.15s ease;
  cursor: pointer;
}

.fmls-button:hover {
  background: #333;
  border-color: #333;
  color: #fff;
  transform: none;
}

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

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

/* Hero mockup card */
.fmls-mock {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  box-shadow: 0 28px 80px rgba(23, 23, 23, 0.1), 0 2px 8px rgba(23, 23, 23, 0.04);
  overflow: hidden;
  font-size: 16px;
  min-width: 0;
  width: 100%;
}

.fmls-mock-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
  background: var(--bg);
}

.fmls-mock-live {
  flex-shrink: 0;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.22);
  animation: fmls-live-pulse 2.4s ease-in-out infinite;
}

@keyframes fmls-live-pulse {
  0%, 100% { box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.22); }
  50%       { box-shadow: 0 0 0 6px rgba(34, 197, 94, 0.06); }
}

.fmls-mock-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
}

.fmls-mock-week {
  margin-left: auto;
  font-size: 13px;
  color: var(--text-muted);
}

.fmls-mock-feed {
  display: grid;
}

.fmls-inquiry {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 20px;
  border-bottom: 1px solid var(--border);
}

.fmls-inquiry--new {
  background: rgba(31, 77, 58, 0.03);
}

.fmls-inquiry-avi {
  flex-shrink: 0;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(31, 77, 58, 0.1);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 800;
}

.fmls-inquiry-avi--b {
  background: rgba(168, 132, 58, 0.1);
  color: var(--accent);
}

.fmls-inquiry-avi--c {
  background: rgba(23, 23, 23, 0.06);
  color: var(--text-muted);
}

.fmls-inquiry-info {
  flex: 1;
  min-width: 0;
}

.fmls-inquiry-info strong {
  display: block;
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
}

.fmls-inquiry-info span {
  display: block;
  font-size: 13px;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.fmls-inquiry-badge {
  flex-shrink: 0;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--primary);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.fmls-inquiry-time {
  flex-shrink: 0;
  font-size: 12px;
  color: var(--text-muted);
}

.fmls-mock-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-bottom: 1px solid var(--border);
}

.fmls-mock-stat {
  padding: 16px 20px;
  display: grid;
  gap: 3px;
}

.fmls-mock-stat + .fmls-mock-stat {
  border-left: 1px solid var(--border);
}

.fmls-mock-stat strong {
  display: block;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 30px;
  font-weight: 700;
  color: var(--text);
  line-height: 1;
}

.fmls-mock-stat span {
  font-size: 12px;
  color: var(--text-muted);
}

.fmls-mock-footer {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  padding: 14px 20px;
}

.fmls-mock-footer-label {
  font-size: 12px;
  color: var(--text-muted);
  margin-right: 2px;
}

.fmls-source-chip {
  padding: 4px 11px;
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text);
  background: var(--bg);
}

.fmls-section-title {
  font-size: clamp(22px, 3.5vw, 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;
  width: 100%;
}

.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-offer-cta {
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  text-align: center;
}

.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 {
  width: 100%;
  box-sizing: border-box;
  display: block;
  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: #111;
  box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.08);
}

.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: minmax(0, 1fr);
    gap: 32px;
  }
  .fmls-steps-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .fmls-mock-stat strong {
    font-size: 24px;
  }

  .fmls-inquiry-info span {
    display: none;
  }
}

@media (max-width: 480px) {
  .fmls-container,
  .fmls-container-narrow,
  .fmls-container-form {
    padding: 0 16px;
  }
  .fmls-container .fmls-container-narrow,
  .fmls-container .fmls-container-form {
    padding-left: 0;
    padding-right: 0;
  }
  .fmls-header-inner {
    gap: 8px;
  }
  .fmls-nav {
    gap: 6px;
  }
  .fmls-nav-link {
    font-size: 13px;
  }
  .fmls-nav-cta {
    height: 34px;
    padding: 0 12px;
    font-size: 12px;
  }
  .fmls-section {
    padding: 44px 0;
  }
  .fmls-section--hero {
    padding-top: 40px;
    padding-bottom: 36px;
  }
  .fmls-hero-title {
    font-size: clamp(24px, 8vw, 32px);
  }
  .fmls-hero-subtitle {
    font-size: 16px;
  }
  .fmls-offer-panel {
    padding: 20px 16px;
  }
  .fmls-offer-panel--final {
    padding: 20px 16px;
  }
  .fmls-step-card {
    padding: 18px 16px;
  }
  .fmls-card {
    padding: 18px 16px;
  }
  /* Hide the mock inquiry card on very small screens to save vertical space */
  .fmls-mock {
    display: none;
  }
  .fmls-bullets {
    width: 100%;
    text-align: left;
  }
}

/* Form errors */
.fmls-form-errors {
  background: #fef2f2;
  border: 1px solid #fecaca;
  border-radius: var(--radius-sm);
  padding: 16px;
  margin-bottom: 20px;
  color: #991b1b;
  font-size: 15px;
}

.fmls-form-errors ul {
  margin: 8px 0 0;
  padding-left: 20px;
}

.fmls-form-errors li {
  margin-bottom: 4px;
}

/* Audit processing spinner */
.fmls-audit-spinner {
  width: 56px;
  height: 56px;
  border: 4px solid var(--border);
  border-top-color: var(--primary);
  border-radius: 50%;
  margin: 0 auto;
  animation: fmls-spin 0.8s linear infinite;
}

@keyframes fmls-spin {
  to { transform: rotate(360deg); }
}

.fmls-progress-steps {
  margin-top: 28px;
  display: grid;
  gap: 12px;
  text-align: left;
  max-width: 360px;
  margin-left: auto;
  margin-right: auto;
}

.fmls-progress-step {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 15px;
  color: var(--text-muted);
}

.fmls-progress-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--border);
  flex-shrink: 0;
}

.fmls-progress-dot--active {
  background: var(--primary);
  animation: fmls-pulse 1.2s ease-in-out infinite;
}

@keyframes fmls-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

/* Audit score ring */
.fmls-audit-score-ring {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  border: 8px solid var(--border);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  position: relative;
}

.fmls-audit-score-ring[data-score]::before {
  content: "";
  position: absolute;
  inset: -8px;
  border-radius: 50%;
  border: 8px solid transparent;
  border-top-color: var(--primary);
  border-right-color: var(--primary);
  transform: rotate(-45deg);
}

.fmls-audit-score-number {
  font-size: 48px;
  font-weight: 700;
  font-family: Georgia, "Times New Roman", serif;
  color: var(--text);
  line-height: 1;
}

.fmls-audit-score-label {
  font-size: 14px;
  color: var(--text-muted);
  margin-top: 4px;
}

/* Audit category cards */
.fmls-audit-categories {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

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

.fmls-audit-category-card:last-child:nth-child(odd) {
  grid-column: 1 / -1;
  max-width: 50%;
  justify-self: center;
}

.fmls-audit-category-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
}

.fmls-audit-category-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(31, 77, 58, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 14px;
  color: var(--primary);
  flex-shrink: 0;
}

.fmls-audit-category-title {
  font-size: 18px;
  margin-bottom: 2px;
}

.fmls-audit-category-score {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-muted);
}

.fmls-audit-bar-track {
  height: 8px;
  background: var(--border);
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 16px;
}

.fmls-audit-bar-fill {
  height: 100%;
  border-radius: 4px;
  transition: width 0.6s ease;
}

.fmls-audit-bar--good { background: #16a34a; }
.fmls-audit-bar--medium { background: #ca8a04; }
.fmls-audit-bar--low { background: #dc2626; }

.fmls-audit-findings,
.fmls-audit-gaps {
  font-size: 15px;
  margin-top: 12px;
}

.fmls-audit-findings strong,
.fmls-audit-gaps strong {
  display: block;
  margin-bottom: 6px;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.fmls-audit-findings { color: #16a34a; }
.fmls-audit-gaps { color: #dc2626; }

.fmls-audit-findings ul,
.fmls-audit-gaps ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.fmls-audit-findings li,
.fmls-audit-gaps li {
  padding: 4px 0;
  color: var(--text-muted);
  font-size: 14px;
}

.fmls-audit-findings li::before {
  content: "\2713 ";
  color: #16a34a;
  font-weight: 700;
  margin-right: 6px;
}

.fmls-audit-gaps li::before {
  content: "\2717 ";
  color: #dc2626;
  font-weight: 700;
  margin-right: 6px;
}

/* Evidence trail */
.fmls-audit-evidence {
  margin-top: 16px;
  border-top: 1px solid var(--border);
  padding-top: 12px;
}

.fmls-audit-evidence details summary {
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-muted);
  cursor: pointer;
  user-select: none;
}

.fmls-audit-evidence details summary:hover {
  color: var(--primary);
}

.fmls-audit-evidence details[open] summary {
  margin-bottom: 12px;
}

.fmls-audit-evidence-section {
  margin-bottom: 12px;
}

.fmls-audit-evidence-section strong {
  display: block;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.fmls-audit-queries,
.fmls-audit-citations {
  list-style: none;
  padding: 0;
  margin: 0;
}

.fmls-audit-queries li {
  padding: 4px 0;
  font-size: 13px;
  color: var(--text);
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.fmls-audit-query-text {
  font-style: italic;
  color: var(--text-muted);
}

.fmls-audit-query-link {
  font-size: 11px;
  color: var(--primary);
  text-decoration: none;
  white-space: nowrap;
}

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

.fmls-audit-citations li {
  padding: 3px 0;
  font-size: 13px;
}

.fmls-audit-citations a {
  color: var(--primary);
  text-decoration: none;
  word-break: break-all;
}

.fmls-audit-citations a:hover {
  text-decoration: underline;
}

/* ── Post-audit sales sections ─────────────────────── */

.fmls-sales-section {
  padding: 48px 0;
}

.fmls-sales-copy {
  max-width: 620px;
  margin: 0 auto;
  text-align: left;
}

.fmls-sales-copy p {
  font-size: 17px;
  line-height: 1.7;
  margin-bottom: 18px;
}

.fmls-sales-highlight {
  font-size: 18px;
  font-weight: 600;
  color: var(--text);
  border-left: 3px solid var(--accent);
  padding-left: 20px;
  margin-top: 24px;
  font-style: italic;
}

/* Comparison grid: Marketplaces vs. Your Own Presence */
.fmls-comparison-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.fmls-comparison-col {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 28px;
}

.fmls-comparison-col h3 {
  font-size: 18px;
  margin-bottom: 16px;
}

.fmls-comparison-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.fmls-comparison-col li {
  padding: 6px 0;
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.5;
}

.fmls-comparison-col--negative {
  border-top: 3px solid #dc2626;
}

.fmls-comparison-col--negative li::before {
  content: "\2717 ";
  color: #dc2626;
  font-weight: 700;
  margin-right: 6px;
}

.fmls-comparison-col--positive {
  border-top: 3px solid #16a34a;
}

.fmls-comparison-col--positive li::before {
  content: "\2713 ";
  color: #16a34a;
  font-weight: 700;
  margin-right: 6px;
}

/* Mechanism cards */
.fmls-mechanism-grid {
  display: grid;
  gap: 20px;
}

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

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

.fmls-mechanism-card p {
  font-size: 15px;
  line-height: 1.65;
  margin: 0;
}

/* Final CTA panel */
.fmls-offer-panel--final {
  padding: 40px 36px;
  border-top-width: 4px;
}

.fmls-scarcity-note {
  font-size: 14px;
  color: var(--accent);
  font-weight: 600;
  margin-top: 12px;
  margin-bottom: 0;
}

@media (max-width: 768px) {
  .fmls-comparison-grid {
    grid-template-columns: 1fr;
  }
  .fmls-sales-section {
    padding: 32px 0;
  }
  .fmls-offer-panel--final {
    padding: 28px 20px;
  }
}

/* Founding member confirmation */
.fmls-founding-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-top: 3px solid var(--primary);
  border-radius: var(--radius-lg);
  padding: 32px;
  text-align: center;
  box-shadow: var(--shadow-sm);
}

.fmls-founding-perks {
  list-style: none;
  padding: 0;
  margin: 24px auto;
  max-width: 400px;
  text-align: left;
}

.fmls-founding-perks li {
  padding: 8px 0;
  color: var(--text-muted);
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.fmls-founding-perks li::before {
  content: "\2713";
  color: var(--primary);
  font-weight: 700;
  flex-shrink: 0;
}

@media (max-width: 768px) {
  .fmls-section {
    padding: 56px 0;
  }
  .fmls-section--hero {
    padding-top: 56px;
    padding-bottom: 48px;
  }
  .fmls-container,
  .fmls-container-narrow,
  .fmls-container-form {
    padding: 0 20px;
  }
  /* Nested containers don't get extra padding on mobile either */
  .fmls-container .fmls-container-narrow,
  .fmls-container .fmls-container-form {
    padding-left: 0;
    padding-right: 0;
  }
  .fmls-hero-title {
    font-size: clamp(26px, 7vw, 38px);
    line-height: 1.08;
  }
  .fmls-hero-subtitle {
    font-size: 18px;
  }
  .fmls-card-grid {
    grid-template-columns: 1fr;
  }
  .fmls-form-grid {
    grid-template-columns: 1fr;
  }
  .fmls-audit-categories {
    grid-template-columns: 1fr;
  }
  .fmls-audit-category-card:last-child:nth-child(odd) {
    max-width: 100%;
  }
  .fmls-offer-panel {
    padding: 24px 20px;
  }
  .fmls-step-card {
    padding: 20px;
  }
  .fmls-cta-row {
    align-items: stretch;
  }
  .fmls-button {
    text-align: center;
  }
  .fmls-mock {
    font-size: 15px;
  }
  .fmls-sales-section {
    padding: 28px 0;
  }
  .fmls-footer-inner {
    padding-top: 32px;
    padding-bottom: 24px;
    gap: 24px;
  }
  .fmls-footer-brand {
    max-width: 100%;
  }
  .fmls-sales-copy {
    text-align: left;
  }
  .fmls-sales-highlight {
    font-size: 16px;
  }
  .fmls-audit-score-ring {
    width: 140px;
    height: 140px;
  }
  .fmls-audit-score-number {
    font-size: 40px;
  }
}

/* ── Button system ────────────────────────── */

.fmls-btn,
button.fmls-btn,
input[type="submit"].fmls-btn,
input[type="button"].fmls-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 10px 20px;
  border-radius: 10px;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  text-align: center;
  cursor: pointer;
  border: 1px solid #111;
  box-sizing: border-box;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
  appearance: none;
  -webkit-appearance: none;
}

.fmls-btn--primary {
  background: #111;
  color: #fff;
  border-color: #111;
}

.fmls-btn--primary:hover {
  background: #333;
  border-color: #333;
  color: #fff;
}

.fmls-btn--outline {
  background: #fff;
  color: #111;
  border-color: #111;
}

.fmls-btn--outline:hover {
  background: #111;
  color: #fff;
}

.fmls-btn--danger {
  background: #fff;
  color: #111;
  border-color: #111;
}

.fmls-btn--danger:hover {
  background: #111;
  color: #fff;
}

.fmls-btn--google {
  background: #fff;
  color: #111;
  border-color: #ccc;
}

.fmls-btn--google:hover {
  background: #f5f5f5;
  border-color: #111;
  color: #111;
}

.fmls-btn--google svg {
  flex-shrink: 0;
}

.fmls-btn--sm {
  min-height: 34px;
  padding: 6px 14px;
  font-size: 0.8rem;
}

.fmls-btn--full {
  width: 100%;
}

form.fmls-btn-form,
.fmls-inline-btn-form {
  display: inline;
}

form.fmls-btn-form button,
.fmls-inline-btn-form button {
  vertical-align: middle;
}

/* ── Auth / Login Page ────────────────────── */

.fmls-auth-body {
  background: var(--bg);
}

.fmls-login-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.fmls-login-card {
  width: 100%;
  max-width: 420px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  padding: 40px 32px;
  box-sizing: border-box;
}

.fmls-login-header {
  text-align: center;
  margin-bottom: 32px;
}

.fmls-login-header h1 {
  font-size: 1.5rem;
  margin: 0 0 8px;
  color: var(--text);
}

.fmls-login-header p {
  color: var(--text-muted);
  margin: 0;
}

.fmls-login-options {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
}

.fmls-login-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text-muted);
  font-size: 0.85rem;
}

.fmls-login-divider::before,
.fmls-login-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

.fmls-magic-link-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
}

.fmls-magic-link-form .fmls-form-group {
  margin-bottom: 0;
  width: 100%;
}

.fmls-login-footer {
  text-align: center;
  margin-top: 24px;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.fmls-login-footer a {
  color: #111;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.fmls-login-footer a:hover {
  color: #333;
}

/* ── Flash Messages ───────────────────────── */

.fmls-flash {
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  margin-bottom: 16px;
}

.fmls-flash--notice {
  background: #E8F5E9;
  color: #2E7D32;
}

.fmls-flash--alert {
  background: #FFF3E0;
  color: #E65100;
}

.fmls-guide-banner__link {
  color: inherit;
  font-weight: 600;
  margin-left: 4px;
}

.fmls-guide-status {
  background: var(--surface, #f8f7f3);
  border: 1px solid var(--border, #e6e2d8);
  border-radius: var(--radius-sm, 8px);
  padding: 24px;
  margin-bottom: 24px;
}

.fmls-guide-status--live {
  border-color: #c8e6c9;
  background: #f1f8f4;
}

.fmls-guide-status--ready {
  border-color: #bbdefb;
  background: #f3f8ff;
}

.fmls-guide-status--failed {
  border-color: #ffcdd2;
  background: #fff5f5;
}

.fmls-guide-status h2 {
  margin: 0 0 12px;
  font-size: 1.25rem;
}

.fmls-guide-status__lead {
  margin: 0 0 20px;
  line-height: 1.5;
  max-width: 42rem;
}

.fmls-guide-status__hint {
  margin: 16px 0 0;
  font-size: 0.9rem;
  color: var(--text-muted, #666);
}

.fmls-guide-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
  max-width: 28rem;
}

.fmls-guide-steps__item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-radius: var(--radius-sm, 8px);
  background: #fff;
  border: 1px solid var(--border, #e6e2d8);
  color: var(--text-muted, #666);
}

.fmls-guide-steps__item--done {
  border-color: #c8e6c9;
  color: #2e7d32;
}

.fmls-guide-steps__item--active {
  border-color: #90caf9;
  color: #1565c0;
  font-weight: 600;
}

.fmls-guide-steps__item--failed {
  border-color: #ffcdd2;
  color: #c62828;
  font-weight: 600;
}

.fmls-guide-steps__item--done::before {
  content: "✓";
  font-weight: 700;
}

.fmls-guide-steps__item--active::before {
  content: "";
  width: 14px;
  height: 14px;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 999px;
  animation: fmls-guide-step-spin 0.75s linear infinite;
}

.fmls-guide-steps__item--failed::before {
  content: "!";
  font-weight: 700;
}

.fmls-guide-steps__item:not(.fmls-guide-steps__item--done):not(.fmls-guide-steps__item--active):not(.fmls-guide-steps__item--failed)::before {
  content: "○";
}

.fmls-guide-steps__time {
  margin-left: auto;
  font-size: 0.8rem;
  font-weight: 400;
  color: var(--text-muted, #666);
}

.fmls-guide-steps__job-id {
  margin: 12px 0 0;
  font-size: 0.75rem;
  color: var(--text-muted, #999);
}

.fmls-guide-steps__job-id code {
  word-break: break-all;
}

.fmls-guide-error {
  margin: 16px 0;
  padding: 12px 16px;
  border: 1px solid #ffcdd2;
  border-radius: var(--radius-sm, 8px);
  background: #fff5f5;
  color: #c62828;
  font-size: 0.92rem;
  max-width: 42rem;
}

@keyframes fmls-guide-step-spin {
  to {
    transform: rotate(360deg);
  }
}

.fmls-guide-url-box {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin-bottom: 24px;
}

.fmls-guide-url-box__input {
  flex: 1 1 240px;
  min-width: 0;
  font-size: 0.9rem;
}

.fmls-guide-next-steps h3 {
  margin: 0 0 8px;
  font-size: 1rem;
}

.fmls-guide-next-steps ul {
  margin: 0;
  padding-left: 1.25rem;
  line-height: 1.6;
  color: var(--text-muted, #555);
}

.fmls-guide-next-steps a {
  color: var(--primary, #1f4d3a);
  font-weight: 600;
}

.fmls-settings-site-list {
  margin: 0;
  display: grid;
  gap: 16px;
}

.fmls-settings-site-list dt {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-muted, #666);
  margin-bottom: 4px;
}

.fmls-settings-site-list dd {
  margin: 0;
  line-height: 1.5;
}

.fmls-brand-color-field {
  display: flex;
  align-items: center;
  gap: 12px;
}

.fmls-brand-color-field .fmls-input {
  max-width: 160px;
}

.fmls-brand-swatch {
  display: inline-block;
  width: 32px;
  height: 32px;
  border-radius: 6px;
  border: 1px solid var(--border, #e6e2d8);
  flex-shrink: 0;
}

/* ── Dashboard Layout ─────────────────────── */

.fmls-dashboard-layout {
  display: flex;
  min-height: 100vh;
}

.fmls-sidebar {
  width: 260px;
  background: var(--primary);
  color: #fff;
  padding: 24px 0;
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
}

.fmls-sidebar-brand {
  padding: 0 20px 24px;
  border-bottom: 1px solid rgba(255,255,255,0.15);
  margin-bottom: 8px;
}

.fmls-sidebar-brand a {
  color: #fff;
  text-decoration: none;
  font-size: 1.1rem;
  font-weight: 700;
}

.fmls-sidebar-nav {
  list-style: none;
  margin: 0;
  padding: 8px 0;
  flex: 1;
}

.fmls-sidebar-nav li a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 20px;
  color: rgba(255,255,255,0.7);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: all 0.15s;
}

.fmls-sidebar-nav li a:hover,
.fmls-sidebar-nav li a.active {
  color: #fff;
  background: rgba(255,255,255,0.1);
}

.fmls-sidebar-user {
  padding: 16px 20px;
  border-top: 1px solid rgba(255,255,255,0.15);
  display: flex;
  align-items: center;
  gap: 10px;
}

.fmls-sidebar-user img {
  width: 32px;
  height: 32px;
  border-radius: 50%;
}

.fmls-sidebar-user-info {
  flex: 1;
  min-width: 0;
}

.fmls-sidebar-user-name {
  font-size: 0.85rem;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.fmls-sidebar-user-email {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.5);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.fmls-dashboard-content {
  flex: 1;
  padding: 32px;
  background: var(--bg);
  min-width: 0;
}

.fmls-dashboard-header {
  margin-bottom: 32px;
}

.fmls-dashboard-header h1 {
  font-size: 1.5rem;
  margin: 0 0 4px;
}

.fmls-dashboard-header p {
  color: var(--text-muted);
  margin: 0;
}

/* Dashboard Stats Grid */
.fmls-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin-bottom: 32px;
}

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

.fmls-stat-card h3 {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  margin: 0 0 8px;
}

.fmls-stat-card .fmls-stat-value {
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary);
}

/* Dashboard Tables */
.fmls-table-wrapper {
  background: var(--surface);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
  overflow: auto;
}

.fmls-table {
  width: 100%;
  border-collapse: collapse;
}

.fmls-table th,
.fmls-table td {
  text-align: left;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  font-size: 0.9rem;
}

.fmls-table th {
  font-weight: 600;
  color: var(--text-muted);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.fmls-table tr:last-child td {
  border-bottom: none;
}

.fmls-table tr:hover td {
  background: rgba(0,0,0,0.01);
}

/* Badges / Status pills */
.fmls-badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: capitalize;
}

.fmls-badge--green {
  background: #E8F5E9;
  color: #2E7D32;
}

.fmls-badge--yellow {
  background: #FFF8E1;
  color: #F9A825;
}

.fmls-badge--red {
  background: #FFEBEE;
  color: #C62828;
}

.fmls-badge--blue {
  background: #E3F2FD;
  color: #1565C0;
}

.fmls-badge--gray {
  background: #F5F5F5;
  color: #616161;
}

/* Empty State */
.fmls-empty-state {
  text-align: center;
  padding: 48px 24px;
  color: var(--text-muted);
}

.fmls-empty-state h3 {
  font-size: 1.1rem;
  margin-bottom: 8px;
  color: var(--text);
}

/* Card layout for dashboard sections */
.fmls-card {
  background: var(--surface);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
  padding: 24px;
  margin-bottom: 20px;
}

.fmls-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.fmls-card-header h2 {
  font-size: 1.1rem;
  margin: 0;
}

/* Responsive dashboard */
@media (max-width: 768px) {
  .fmls-dashboard-layout {
    flex-direction: column;
  }

  .fmls-sidebar {
    width: 100%;
    padding: 12px 0;
  }

  .fmls-sidebar-nav li a {
    padding: 8px 16px;
  }

  .fmls-dashboard-content {
    padding: 20px 16px;
  }

  .fmls-stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ── Admin Dashboard ──────────────────────── */

.fmls-admin-header {
  background: #212121;
  color: #fff;
  padding: 12px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.fmls-admin-header h1 {
  font-size: 1rem;
  margin: 0;
}

.fmls-admin-nav {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.fmls-admin-nav a {
  color: rgba(255,255,255,0.7);
  text-decoration: none;
  font-size: 0.85rem;
  padding: 4px 10px;
  border-radius: 6px;
  transition: all 0.15s;
}

.fmls-admin-nav a:hover,
.fmls-admin-nav a.active {
  color: #fff;
  background: rgba(255,255,255,0.15);
}

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

/* ── Coach Profile (Public) ───────────────── */

.fmls-profile-hero {
  text-align: center;
  padding: 48px 24px;
  background: var(--primary);
  color: #fff;
}

.fmls-profile-avatar {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid rgba(255,255,255,0.3);
  margin-bottom: 16px;
}

.fmls-profile-hero h1 {
  margin: 0 0 4px;
  font-size: 1.75rem;
}

.fmls-profile-hero .fmls-profile-headline {
  font-size: 1rem;
  opacity: 0.85;
  margin: 0 0 12px;
}

.fmls-profile-hero .fmls-profile-location {
  font-size: 0.9rem;
  opacity: 0.65;
}

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

.fmls-profile-section {
  margin-bottom: 32px;
}

.fmls-profile-section h2 {
  font-size: 1.2rem;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--border);
}

/* Star ratings */
.fmls-stars {
  color: #F9A825;
  font-size: 1.1rem;
  letter-spacing: 2px;
}

.fmls-review-card {
  background: var(--surface);
  border-radius: var(--radius-sm);
  padding: 20px;
  margin-bottom: 16px;
  box-shadow: var(--shadow-sm);
}

.fmls-review-card .fmls-review-author {
  font-weight: 600;
  margin-bottom: 4px;
}

.fmls-review-card .fmls-review-body {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* ── Forms ─────────────────────────────────── */

.fmls-form-group {
  margin-bottom: 16px;
}

.fmls-form-group label {
  display: block;
  font-weight: 600;
  font-size: 0.85rem;
  margin-bottom: 6px;
  color: var(--text);
}

.fmls-form-hint {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 4px;
}

.fmls-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

@media (max-width: 640px) {
  .fmls-form-row {
    grid-template-columns: 1fr;
  }
}

textarea.fmls-input {
  min-height: 100px;
  resize: vertical;
}

/* ── Upload UI ─────────────────────────────── */

.fmls-upload-dropzone {
  border: 2px dashed var(--border);
  border-radius: var(--radius-sm);
  padding: 40px 24px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s;
  background: var(--surface);
}

.fmls-upload-dropzone:hover,
.fmls-upload-dropzone.dragover {
  border-color: var(--primary);
  background: rgba(31, 77, 58, 0.03);
}

.fmls-upload-dropzone p {
  margin: 8px 0 0;
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* ── Content Review Cards ──────────────────── */

.fmls-generation-card {
  background: var(--surface);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
  padding: 24px;
  margin-bottom: 20px;
}

.fmls-generation-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.fmls-generation-card-body {
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--text);
}

.fmls-generation-card-body--preview {
  color: var(--text-muted);
}

.fmls-generation-card-body--plain {
  white-space: pre-wrap;
}

.fmls-article-preview-card {
  padding: 28px 32px;
}

.fmls-dashboard .fmls-article-preview-card .fmls-article-body {
  max-width: 720px;
}

.fmls-dashboard .fmls-blog-article-body {
  font-size: 17px;
}

.fmls-dashboard .fmls-blog-article-body > * + * {
  margin-top: 1em;
}

.fmls-dashboard .fmls-blog-article-body h1,
.fmls-dashboard .fmls-blog-article-body h2,
.fmls-dashboard .fmls-blog-article-body h3,
.fmls-dashboard .fmls-blog-article-body h4 {
  margin: 1.4em 0 0.45em;
}

.fmls-dashboard .fmls-blog-article-body > :first-child {
  margin-top: 0;
}

.fmls-dashboard .fmls-blog-article-body p {
  margin: 0 0 1em;
}

.fmls-dashboard .fmls-blog-article-body ul,
.fmls-dashboard .fmls-blog-article-body ol {
  margin: 0 0 1em;
}

.fmls-dashboard .fmls-blog-article-body blockquote {
  margin: 1.2em 0;
}

.fmls-dashboard .fmls-blog-article-body li {
  margin-bottom: 0.35em;
}

.fmls-generation-actions {
  display: flex;
  gap: 8px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

/* =========================================
   Site header
   ========================================= */

.fmls-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(248, 247, 243, 0.92);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--border);
}

.fmls-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 72px;
}

.fmls-logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--text);
  text-decoration: none;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.fmls-logo:hover {
  color: var(--primary);
}

.fmls-logo-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 6px rgba(31, 77, 58, 0.18);
}

.fmls-logo-mark img {
  display: block;
  width: 100%;
  height: 100%;
}

.fmls-logo-wordmark {
  white-space: nowrap;
}

.fmls-nav {
  display: flex;
  align-items: center;
  gap: 20px;
}

.fmls-nav-link {
  color: var(--text);
  text-decoration: none;
  font-size: 15px;
  font-weight: 600;
  padding: 8px 4px;
  transition: color 0.2s ease;
}

.fmls-nav-link:hover {
  color: var(--primary);
}

form:has(> button.fmls-btn:only-child),
form:has(> input[type="submit"].fmls-btn:only-child) {
  display: inline;
}

.fmls-nav-cta {
  display: inline-flex;
  align-items: center;
  height: 40px;
  padding: 0 18px;
  border-radius: 999px;
  background: #111;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid #111;
  box-sizing: border-box;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.fmls-nav-cta:hover {
  background: #333;
  border-color: #333;
  color: #fff;
  transform: none;
}

@media (max-width: 640px) {
  .fmls-header-inner {
    height: 60px;
    gap: 12px;
  }
  .fmls-logo-wordmark {
    display: none;
  }
  .fmls-nav {
    gap: 10px;
  }
  .fmls-nav-link {
    font-size: 14px;
    padding: 6px 2px;
  }
  .fmls-nav-cta {
    height: 36px;
    padding: 0 14px;
    font-size: 13px;
  }
}

/* =========================================
   Site footer
   ========================================= */

.fmls-footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
  margin-top: 64px;
}

.fmls-footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  align-items: flex-start;
  justify-content: space-between;
  padding-top: 48px;
  padding-bottom: 32px;
}

.fmls-footer-brand {
  display: flex;
  align-items: center;
  gap: 14px;
  max-width: 360px;
}

.fmls-footer-title {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 700;
  color: var(--text);
  font-size: 16px;
}

.fmls-footer-tagline {
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.5;
  margin-top: 2px;
}

.fmls-footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 18px 28px;
}

.fmls-footer-link {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
}

.fmls-footer-link:hover {
  color: var(--primary);
}

.fmls-footer-meta {
  border-top: 1px solid var(--border);
}

.fmls-footer-meta-inner {
  padding-top: 18px;
  padding-bottom: 24px;
  font-size: 13px;
  color: var(--text-muted);
}

/* =========================================
   Blog index
   ========================================= */

.fmls-blog-hero {
  padding: 48px 0 16px;
}

.fmls-blog-masthead {
  max-width: 720px;
}

.fmls-blog-title {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(28px, 3.4vw, 40px);
  line-height: 1.12;
  letter-spacing: -0.02em;
  color: var(--text);
  margin-bottom: 14px;
}

.fmls-blog-subtitle {
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-muted);
  max-width: 620px;
  margin: 0;
}

.fmls-blog-list {
  padding: 32px 0 56px;
}

/* ----- Featured article ----- */

.fmls-blog-feature {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: 0;
  align-items: stretch;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  margin-bottom: 56px;
}

.fmls-blog-feature--no-image {
  grid-template-columns: minmax(0, 1fr);
}

.fmls-blog-feature-media {
  display: block;
  align-self: stretch;
  min-height: 280px;
  background: rgba(31, 77, 58, 0.06);
}

.fmls-blog-feature-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.fmls-blog-feature-body {
  padding: 32px 36px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.fmls-blog-feature--no-image .fmls-blog-feature-body {
  padding: 32px 36px;
  max-width: 760px;
}

.fmls-blog-feature-eyebrow {
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 12px;
}

.fmls-blog-feature-title {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(22px, 2.1vw, 28px);
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: var(--text);
  margin: 0 0 14px;
}

.fmls-blog-feature-title-link {
  color: inherit;
  text-decoration: none;
}

.fmls-blog-feature-title-link:hover {
  color: var(--primary);
}

.fmls-blog-feature-excerpt {
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.6;
  margin: 0 0 20px;
}

.fmls-blog-feature-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  color: var(--text-muted);
}

.fmls-blog-feature-divider {
  color: var(--border);
}

.fmls-blog-feature-cta {
  color: var(--primary);
  font-weight: 700;
  text-decoration: none;
}

.fmls-blog-feature-cta:hover {
  color: var(--primary-hover);
  text-decoration: underline;
}

@media (max-width: 880px) {
  .fmls-blog-feature {
    grid-template-columns: minmax(0, 1fr);
  }
  .fmls-blog-feature-media {
    min-height: 200px;
  }
  .fmls-blog-feature-body,
  .fmls-blog-feature--no-image .fmls-blog-feature-body {
    padding: 24px 22px 28px;
  }
}

/* ----- Card grid ----- */

.fmls-blog-section-heading {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 20px;
  letter-spacing: -0.01em;
  color: var(--text);
  margin: 0 0 20px;
}

.fmls-blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 32px;
}

@media (max-width: 640px) {
  .fmls-blog-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

.fmls-blog-card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}

.fmls-blog-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
  border-color: rgba(31, 77, 58, 0.25);
}

.fmls-blog-card-media {
  display: block;
  background: rgba(31, 77, 58, 0.06);
}

.fmls-blog-card-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}

.fmls-blog-card-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.fmls-blog-card-date {
  display: block;
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 10px;
}

.fmls-blog-card-title {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 18px;
  line-height: 1.3;
  letter-spacing: -0.01em;
  margin: 0 0 10px;
  color: var(--text);
}

.fmls-blog-card-title-link {
  color: inherit;
  text-decoration: none;
}

.fmls-blog-card-title-link:hover {
  color: var(--primary);
}

.fmls-blog-card-excerpt {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.55;
  margin-bottom: 16px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
}

.fmls-blog-card-read-more {
  align-self: flex-start;
  font-size: 14px;
  font-weight: 700;
  color: var(--primary);
  text-decoration: none;
}

.fmls-blog-card-read-more:hover {
  color: var(--primary-hover);
  text-decoration: underline;
}

.fmls-blog-pagination {
  margin-top: 48px;
  display: flex;
  justify-content: center;
}

/* ----- Empty state ----- */

.fmls-blog-empty {
  text-align: center;
  padding: 56px 24px 64px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.fmls-blog-empty-title {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 22px;
  letter-spacing: -0.01em;
  color: var(--text);
  margin: 6px 0 10px;
}

.fmls-blog-empty-copy {
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.6;
  max-width: 460px;
  margin: 0 auto 20px;
}

/* ----- Bottom CTA ----- */

.fmls-blog-cta {
  padding: 24px 0 72px;
}

.fmls-blog-cta-panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  box-shadow: var(--shadow-sm);
}

.fmls-blog-cta-title {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 22px;
  line-height: 1.2;
  letter-spacing: -0.015em;
  color: var(--text);
  margin: 4px 0 6px;
}

.fmls-blog-cta-copy {
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.55;
  max-width: 520px;
  margin: 0;
}

@media (max-width: 720px) {
  .fmls-blog-cta-panel {
    flex-direction: column;
    align-items: flex-start;
    padding: 28px 24px;
  }
}

/* =========================================
   Blog article (show page)
   ========================================= */

.fmls-blog-article-wrap {
  padding: 32px 0 64px;
}

.fmls-blog-article-container {
  max-width: 760px;
}

.fmls-blog-article-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  letter-spacing: 0.01em;
  padding: 6px 0;
  margin-bottom: 32px;
  transition: color 0.15s ease;
}

.fmls-blog-article-back:hover {
  color: var(--primary);
}

.fmls-blog-article {
  background: transparent;
}

.fmls-blog-article-header {
  margin-bottom: 36px;
}

.fmls-blog-article-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 18px;
}

.fmls-blog-article-meta-divider {
  color: var(--border);
}

.fmls-blog-article-title {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(30px, 4.2vw, 46px);
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--text);
  margin: 0 0 20px;
}

.fmls-blog-article-lede {
  font-size: 19px;
  line-height: 1.55;
  color: var(--text-muted);
  margin: 0 0 24px;
  max-width: 620px;
}

.fmls-blog-article-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}

.fmls-blog-article-tag {
  display: inline-flex;
  align-items: center;
  height: 28px;
  padding: 0 12px;
  background: rgba(31, 77, 58, 0.08);
  color: var(--primary);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.fmls-blog-article-figure {
  margin: 0 0 40px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: rgba(31, 77, 58, 0.06);
  box-shadow: var(--shadow-sm);
}

.fmls-blog-article-image {
  display: block;
  width: 100%;
  max-height: 520px;
  object-fit: cover;
}

/* Article body typography */
.fmls-blog-article-body {
  color: var(--text);
  font-size: 18px;
  line-height: 1.75;
}

.fmls-blog-article-body > * + * {
  margin-top: 1.2em;
}

.fmls-blog-article-body h1,
.fmls-blog-article-body h2,
.fmls-blog-article-body h3,
.fmls-blog-article-body h4 {
  font-family: Georgia, "Times New Roman", serif;
  color: var(--text);
  letter-spacing: -0.015em;
  line-height: 1.2;
  margin: 2em 0 0.6em;
}

.fmls-blog-article-body h1 { font-size: 32px; }
.fmls-blog-article-body h2 { font-size: 26px; }
.fmls-blog-article-body h3 { font-size: 21px; }
.fmls-blog-article-body h4 { font-size: 18px; }

.fmls-blog-article-body h2 {
  padding-top: 8px;
}

.fmls-blog-article-body p {
  color: var(--text);
  margin: 0 0 1.2em;
}

.fmls-blog-article-body a {
  color: var(--primary);
  text-decoration: underline;
  text-decoration-color: rgba(31, 77, 58, 0.35);
  text-underline-offset: 3px;
  font-weight: 600;
}

.fmls-blog-article-body a:hover {
  color: var(--primary-hover);
  text-decoration-color: var(--primary-hover);
}

.fmls-blog-article-body strong {
  color: var(--text);
  font-weight: 700;
}

.fmls-blog-article-body em {
  font-style: italic;
}

.fmls-blog-article-body ul,
.fmls-blog-article-body ol {
  margin: 0 0 1.2em;
  padding-left: 1.4em;
}

.fmls-blog-article-body ul { list-style: disc; }
.fmls-blog-article-body ol { list-style: decimal; }

.fmls-blog-article-body li {
  margin-bottom: 0.4em;
  color: var(--text);
}

.fmls-blog-article-body li > p {
  margin-bottom: 0.4em;
}

.fmls-blog-article-body blockquote {
  margin: 1.6em 0;
  padding: 4px 0 4px 20px;
  border-left: 3px solid var(--accent);
  font-style: italic;
  color: var(--text-muted);
  font-size: 18px;
  line-height: 1.6;
}

.fmls-blog-article-body code {
  background: rgba(31, 77, 58, 0.08);
  color: var(--primary);
  padding: 2px 6px;
  border-radius: 6px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.92em;
}

.fmls-blog-article-body pre {
  background: #1F2A24;
  color: #F8F7F3;
  padding: 18px 20px;
  border-radius: var(--radius-md);
  overflow-x: auto;
  margin: 1.6em 0;
  font-size: 14px;
  line-height: 1.6;
}

.fmls-blog-article-body pre code {
  background: transparent;
  color: inherit;
  padding: 0;
  border-radius: 0;
}

.fmls-blog-article-body hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: 2.4em 0;
}

.fmls-blog-article-body img {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 1.6em auto;
  border-radius: var(--radius-md);
}

.fmls-blog-article-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.6em 0;
  font-size: 15px;
}

.fmls-blog-article-body th,
.fmls-blog-article-body td {
  text-align: left;
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
}

.fmls-blog-article-body th {
  background: rgba(31, 77, 58, 0.04);
  font-weight: 700;
}

.fmls-blog-article-footer {
  margin-top: 56px;
  padding-top: 28px;
  border-top: 1px solid var(--border);
}

.fmls-blog-article-share {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
}

.fmls-blog-article-share-label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-right: 4px;
}

.fmls-blog-article-share-link {
  display: inline-flex;
  align-items: center;
  height: 34px;
  padding: 0 14px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.15s ease;
}

.fmls-blog-article-share-link:hover {
  border-color: rgba(31, 77, 58, 0.4);
  color: var(--primary);
}

.fmls-blog-related {
  margin-top: 72px;
  padding-top: 48px;
  border-top: 1px solid var(--border);
}

@media (max-width: 720px) {
  .fmls-blog-article-wrap {
    padding: 24px 0 48px;
  }
  .fmls-blog-article-header {
    margin-bottom: 28px;
  }
  .fmls-blog-article-lede {
    font-size: 17px;
  }
  .fmls-blog-article-body {
    font-size: 17px;
    line-height: 1.7;
  }
  .fmls-blog-article-body h1 { font-size: 26px; }
  .fmls-blog-article-body h2 { font-size: 22px; }
  .fmls-blog-article-body h3 { font-size: 19px; }
  .fmls-blog-article-figure {
    margin: 0 0 28px;
    border-radius: var(--radius-md);
  }
  .fmls-blog-article-image {
    max-height: 320px;
  }
  .fmls-blog-related {
    margin-top: 56px;
    padding-top: 36px;
  }
}

/* =========================================
   Blog lead-magnet (FMLS variants)
   ========================================= */

.fmls-lead-magnet {
  background: var(--surface);
  border: 1px solid var(--border);
  border-top: 3px solid var(--accent);
  border-radius: var(--radius-lg);
  padding: 28px;
  margin: 40px 0;
  box-shadow: var(--shadow-sm);
}

.fmls-lead-magnet--end {
  margin: 56px 0 8px;
  padding: 36px 32px;
  text-align: center;
}

.fmls-lead-magnet-eyebrow {
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--accent);
  margin: 0 0 10px;
}

.fmls-lead-magnet-title {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 22px;
  line-height: 1.25;
  letter-spacing: -0.015em;
  color: var(--text);
  margin: 0 0 8px;
}

.fmls-lead-magnet--end .fmls-lead-magnet-title {
  font-size: 26px;
  margin-bottom: 12px;
}

.fmls-lead-magnet-subtitle {
  font-size: 15px;
  line-height: 1.55;
  color: var(--text-muted);
  margin: 0 0 8px;
}

.fmls-lead-magnet-promise {
  font-size: 15px;
  line-height: 1.55;
  color: var(--text);
  margin: 10px 0 0;
}

.fmls-lead-magnet-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 28px;
  align-items: start;
}

.fmls-lead-magnet--end .fmls-lead-magnet-body {
  grid-template-columns: minmax(0, 1fr);
  max-width: 460px;
  margin: 0 auto;
  text-align: center;
}

.fmls-lead-magnet-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.fmls-lead-magnet-form .fmls-input {
  width: 100%;
  height: 48px;
  border: 1px solid #D8D4CA;
  border-radius: 12px;
  padding: 0 14px;
  font-size: 15px;
  font-family: inherit;
  background: #fff;
}

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

.fmls-lead-magnet-form .fmls-button {
  width: 100%;
  height: 48px;
  font-size: 15px;
}

.fmls-lead-magnet-disclaimer {
  font-size: 12px;
  line-height: 1.5;
  color: var(--text-muted);
  margin: 4px 0 0;
}

.fmls-lead-magnet-errors {
  font-size: 13px;
  color: #991b1b;
  background: #fef2f2;
  border: 1px solid #fecaca;
  border-radius: 10px;
  padding: 10px 12px;
  margin: 0;
  list-style: disc;
  padding-left: 28px;
}

.fmls-lead-magnet-success {
  background: rgba(31, 77, 58, 0.06);
  border: 1px solid rgba(31, 77, 58, 0.18);
  border-radius: var(--radius-md);
  padding: 20px 22px;
  margin: 40px 0;
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.fmls-lead-magnet-success-icon {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  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;
}

.fmls-lead-magnet-success-title {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 17px;
  color: var(--text);
  margin: 0 0 4px;
}

.fmls-lead-magnet-success-copy {
  font-size: 14px;
  line-height: 1.55;
  color: var(--text-muted);
  margin: 0;
}

@media (max-width: 720px) {
  .fmls-lead-magnet {
    padding: 22px 20px;
    margin: 32px 0;
  }
  .fmls-lead-magnet--end {
    padding: 28px 22px;
    margin: 40px 0 0;
  }
  .fmls-lead-magnet-body {
    grid-template-columns: minmax(0, 1fr);
    gap: 18px;
  }
  .fmls-lead-magnet-title {
    font-size: 20px;
  }
  .fmls-lead-magnet--end .fmls-lead-magnet-title {
    font-size: 22px;
  }
}

/* Sticky bottom-right CTA */
.fmls-sticky-cta {
  position: fixed;
  bottom: 16px;
  right: 16px;
  z-index: 40;
  width: calc(100% - 32px);
  max-width: 360px;
}

.fmls-sticky-cta.hidden {
  display: none !important;
}

.fmls-sticky-cta-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-top: 3px solid var(--accent);
  border-radius: var(--radius-md);
  padding: 18px 20px 16px;
  box-shadow: var(--shadow-md);
}

.fmls-sticky-cta-dismiss {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: none;
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 16px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.fmls-sticky-cta-dismiss:hover {
  background: rgba(0, 0, 0, 0.05);
  color: var(--text);
}

.fmls-sticky-cta-eyebrow {
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--accent);
  margin: 0 0 6px;
}

.fmls-sticky-cta-title {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 16px;
  line-height: 1.25;
  color: var(--text);
  margin: 0 0 6px;
  padding-right: 20px;
}

.fmls-sticky-cta-copy {
  font-size: 13px;
  line-height: 1.5;
  color: var(--text-muted);
  margin: 0 0 12px;
}

.fmls-sticky-cta-form {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.fmls-sticky-cta-form .fmls-input {
  width: 100%;
  height: 40px;
  border: 1px solid #D8D4CA;
  border-radius: 10px;
  padding: 0 12px;
  font-size: 14px;
  font-family: inherit;
  background: #fff;
}

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

.fmls-sticky-cta-form .fmls-button {
  width: 100%;
  height: 40px;
  font-size: 14px;
  border-radius: 10px;
}

/* =========================================
   Legal pages (Privacy Policy, Terms)
   ========================================= */

.fmls-legal-section {
  padding: 64px 0 96px;
}

.fmls-legal-header {
  margin-bottom: 40px;
  max-width: 760px;
}

.fmls-legal-title {
  margin-bottom: 16px;
}

.fmls-legal-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  font-size: 13px;
  color: var(--text-muted);
  align-items: center;
}

.fmls-legal-meta code {
  font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
  font-size: 0.9em;
  background: rgba(31, 77, 58, 0.08);
  border-radius: 4px;
  padding: 1px 6px;
  color: var(--primary);
}

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

.fmls-legal-meta-link:hover {
  color: var(--primary);
}

.fmls-legal-grid {
  display: grid;
  grid-template-columns: 14rem minmax(0, 1fr);
  gap: 48px;
  align-items: start;
}

@media (max-width: 900px) {
  .fmls-legal-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .fmls-legal-toc {
    position: static;
  }
}

.fmls-legal-toc {
  position: sticky;
  top: 96px;
  align-self: start;
  font-size: 13px;
}

.fmls-legal-toc-heading {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 12px;
  color: var(--text-muted);
  margin: 0 0 12px;
}

.fmls-legal-toc-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 6px;
}

.fmls-legal-toc-list a {
  display: flex;
  gap: 8px;
  color: var(--text-muted);
  text-decoration: none;
  border-left: 2px solid transparent;
  padding: 4px 0 4px 10px;
  margin-left: -12px;
  line-height: 1.35;
  transition: color 0.15s ease, border-color 0.15s ease;
}

.fmls-legal-toc-list a:hover {
  color: var(--primary);
  border-left-color: var(--primary);
}

.fmls-legal-toc-num {
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
  min-width: 22px;
  font-weight: 600;
}

.fmls-legal-prose {
  max-width: 760px;
  color: var(--text);
  font-size: 16px;
  line-height: 1.7;
}

.fmls-legal-prose .fmls-legal-lead {
  font-size: 17px;
  color: var(--text-muted);
  margin-bottom: 32px;
}

.fmls-legal-prose h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 24px;
  line-height: 1.25;
  color: var(--text);
  margin: 48px 0 12px;
  scroll-margin-top: 96px;
}

.fmls-legal-prose h2:first-child {
  margin-top: 0;
}

.fmls-legal-prose h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
  margin: 28px 0 8px;
}

.fmls-legal-prose p {
  margin: 0 0 16px;
  color: var(--text);
}

.fmls-legal-prose ul,
.fmls-legal-prose ol {
  margin: 0 0 16px;
  padding-left: 22px;
}

.fmls-legal-prose ul { list-style: disc; }
.fmls-legal-prose ol { list-style: decimal; }

.fmls-legal-prose li {
  margin-bottom: 8px;
}

.fmls-legal-prose strong {
  color: var(--text);
  font-weight: 700;
}

.fmls-legal-prose a {
  color: var(--primary);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.fmls-legal-prose a:hover {
  color: var(--primary-hover);
}

.fmls-legal-prose code {
  font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
  background: rgba(31, 77, 58, 0.08);
  border-radius: 4px;
  padding: 1px 6px;
  font-size: 0.92em;
  color: var(--primary);
}

.fmls-legal-prose table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  margin: 16px 0 24px;
}

.fmls-legal-prose th,
.fmls-legal-prose td {
  text-align: left;
  vertical-align: top;
  border: 1px solid var(--border);
  padding: 10px 12px;
}

.fmls-legal-prose th {
  background: rgba(31, 77, 58, 0.06);
  color: var(--text);
  font-weight: 700;
}

.fmls-legal-callout {
  border: 1px solid rgba(31, 77, 58, 0.18);
  background: rgba(31, 77, 58, 0.04);
  border-radius: var(--radius-md);
  padding: 20px 24px;
  margin: 24px 0;
}

.fmls-legal-callout h3 {
  margin-top: 0;
}

.fmls-legal-footer {
  margin-top: 56px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 14px;
}

@media print {
  .fmls-legal-toc,
  .fmls-header,
  .fmls-footer {
    display: none !important;
  }

  .fmls-legal-grid {
    grid-template-columns: 1fr;
  }

  .fmls-legal-prose {
    max-width: 100%;
    color: #000;
  }
}

/* ── Confirm Dialog ────────────────────────── */

.fmls-confirm-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
  align-items: center;
  justify-content: center;
}

.fmls-confirm-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  cursor: pointer;
}

.fmls-confirm-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  padding: 28px 24px;
  max-width: 400px;
  width: calc(100% - 32px);
  box-sizing: border-box;
}

.fmls-confirm-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 10px;
}

.fmls-confirm-message {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.5;
  margin: 0;
}

.fmls-confirm-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 20px;
}
.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);
}
