/* ==========================================================================
   CASA FAISAL — MINIMALIST COMPONENT SYSTEM (components.css)
   v3.1 — Google-Style Tonal Section Bands, Borderless Nav & Flush Cards
   ========================================================================== */

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg-canvas);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.6;
  letter-spacing: -0.011em;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition: background-color 0.3s var(--ease-smooth), color 0.3s var(--ease-smooth);
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

button, input, select, textarea {
  font: inherit;
  color: inherit;
}

.fl-atmo {
  display: none; /* Pure clean daylight canvas like about.google */
}

.fl-page {
  position: relative;
  z-index: 1;
}

.fl-wrap {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--pad-x);
}

/* ── Typography Helpers (Main Sans-Serif Only) ── */
.fl-eyebrow {
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: -0.008em;
  color: var(--ink-muted);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.fl-eyebrow .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

.fl-eyebrow .dot.lime {
  background: var(--lime-dot);
}

.fl-h1 {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: clamp(42px, 5.6vw, 68px);
  line-height: 1.06;
  letter-spacing: -0.04em;
  color: var(--ink);
}

.fl-h1 span.muted,
.fl-h2 span.muted {
  color: var(--ink-muted);
  font-weight: 500;
}

.fl-h2 {
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: clamp(28px, 3.4vw, 42px);
  line-height: 1.14;
  letter-spacing: -0.03em;
  color: var(--ink);
}

.fl-mono {
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: -0.008em;
  color: var(--ink-muted);
  font-variant-numeric: tabular-nums;
}

/* ── Google-Style Clean Header Bar (No Menu Borders, Bottom Active Indicator) ── */
.fl-nav {
  position: sticky;
  top: 0;
  z-index: 80;
  height: var(--nav-h);
  background: var(--bg-glass);
  box-shadow: 0 1px 0 var(--line);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  backdrop-filter: blur(20px) saturate(180%);
}

.fl-nav-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.fl-nav-left {
  height: 100%;
  display: flex;
  align-items: center;
  gap: 40px;
}

.fl-brand-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.fl-brand-mark {
  width: 28px;
  height: 28px;
  display: block;
  flex: none;
}

.fl-brand-word {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 18px;
  letter-spacing: -0.03em;
  color: var(--ink);
}

.fl-nav-links {
  height: 100%;
  display: flex;
  align-items: center;
  gap: 28px;
}

.fl-nav-link {
  position: relative;
  height: 100%;
  display: inline-flex;
  align-items: center;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-muted);
  transition: color 0.2s;
}

.fl-nav-link:hover {
  color: var(--ink);
}

.fl-nav-link.active {
  color: var(--ink);
}

/* Google-style bottom active underline bar */
.fl-nav-link.active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  border-radius: 3px 3px 0 0;
  background: var(--accent);
}

/* ── Borderless Tonal Mode Switcher (No Box Border) ── */
.fl-palette-bar {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: transparent;
  border: none;
}

.fl-palette-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: var(--r-pill);
  border: none;
  background: transparent;
  cursor: pointer;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--ink-muted);
  transition: background-color 0.2s, color 0.2s;
}

.fl-palette-btn:hover {
  color: var(--ink);
  background: var(--bg-band);
}

.fl-palette-btn.active {
  background: var(--bg-band);
  color: var(--ink);
}

.fl-swatch-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex: none;
}

/* ── Clean Pill Buttons (Solid, Tonal & Soft Well — No Harsh Outlines) ── */
.fl-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 42px;
  padding: 0 22px;
  border-radius: var(--r-pill);
  border: none;
  background: var(--bg-band);
  color: var(--ink);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.01em;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s var(--ease-out);
}

.fl-btn:hover {
  background: var(--bg-well-hover);
}

.fl-btn:active {
  transform: scale(0.98);
}

.fl-btn.primary {
  background: var(--accent);
  color: var(--accent-fg);
}

.fl-btn.primary:hover {
  background: var(--accent-hover);
  box-shadow: 0 6px 18px -4px var(--accent-glow);
}

/* Google-style soft tinted pill button (like "Explore" in Screenshot 3) */
.fl-btn.tonal {
  background: var(--accent-soft);
  color: var(--accent);
}

.fl-btn.tonal:hover {
  filter: brightness(0.96);
}

.fl-btn.ink {
  background: var(--ink);
  color: var(--bg-canvas);
}

.fl-btn.ink:hover {
  opacity: 0.88;
}

.fl-btn.lime {
  background: var(--lime);
  color: #0A0A0E;
  font-weight: 600;
}

.fl-btn.sm {
  height: 34px;
  padding: 0 15px;
  font-size: 12.5px;
}

.fl-btn.lg {
  height: 46px;
  padding: 0 26px;
  font-size: 14.5px;
}

/* ── Borderless Tonal Pills & Badges ── */
.fl-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: var(--r-pill);
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: -0.01em;
  background: var(--bg-band);
  color: var(--ink-secondary);
  border: none;
}

.fl-pill .led {
  width: 5.5px;
  height: 5.5px;
  border-radius: 50%;
  background: currentColor;
}

.fl-pill.free {
  background: var(--lime-soft);
  color: var(--ink);
}

.fl-pill.free .led {
  background: var(--lime-dot);
}

.fl-pill.pro {
  background: var(--accent-soft);
  color: var(--accent);
}

/* ── Google-Style Clean Card (.fl-card) ── */
.fl-card {
  position: relative;
  background: var(--bg-surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  box-shadow: var(--shadow-card);
  overflow: hidden;
  transition: transform 0.35s var(--ease-out), box-shadow 0.35s var(--ease-out);
}

.fl-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
}

.fl-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.fl-card-index {
  font-family: var(--font-sans);
  font-size: 12.5px;
  font-weight: 500;
  color: var(--ink-muted);
  letter-spacing: -0.01em;
}

/* Flush or Soft Stage inside Card */
.fl-stage {
  position: relative;
  height: 184px;
  border-radius: var(--r-md);
  background: var(--bg-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  overflow: hidden;
  transition: background 0.3s;
}

/* Flush top stage with centered Apple-style Squircle App Icon */
.fl-card.flush-card {
  padding: 0;
  gap: 0;
}

.fl-card.flush-card .fl-stage {
  height: 152px;
  border-radius: 0;
  background: var(--bg-subtle);
  border-bottom: 1px solid var(--line);
}

.fl-stage svg.apple-icon {
  width: 76px;
  height: 76px;
  display: block;
  filter: drop-shadow(0 8px 20px rgba(10, 10, 14, 0.06)) drop-shadow(0 1px 3px rgba(10, 10, 14, 0.04));
  transition: transform 0.35s var(--ease-out);
}

.fl-card:hover .fl-stage svg.apple-icon {
  transform: scale(1.05);
}

.fl-card.flush-card .fl-card-body {
  padding: 24px 28px 26px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  flex: 1;
}

.fl-card-title {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 20px;
  letter-spacing: -0.025em;
  color: var(--ink);
  line-height: 1.25;
}

.fl-card-sub {
  font-size: 13px;
  color: var(--ink-muted);
  margin-top: 2px;
}

.fl-card-desc {
  font-size: 14.5px;
  color: var(--ink-secondary);
  line-height: 1.6;
  flex: 1;
}

.fl-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 8px;
  font-family: var(--font-sans);
  font-size: 12.5px;
  font-weight: 500;
  color: var(--ink-muted);
}

.fl-card-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-top: 4px;
}

/* Google-style corner launch icon button */
.fl-corner-action {
  width: 36px;
  height: 36px;
  border-radius: var(--r-pill);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  background: transparent;
  border: none;
  cursor: pointer;
  font-size: 16px;
  transition: background-color 0.2s, transform 0.2s;
}

.fl-corner-action:hover {
  background: var(--accent-soft);
  transform: translate(1px, -1px);
}

/* ── Google-Style Section Dividers (Tonal Bands & Rounded Callouts — ZERO Border Lines) ── */
.fl-section {
  padding: 88px 0;
  background: var(--bg-canvas);
  border: none;
}

.fl-section.band {
  background: var(--bg-band);
}

.fl-section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 44px;
}

.fl-section-head.centered {
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-bottom: 48px;
}

/* Google-style rounded tonal banner (like "Get the latest news..." in Screenshot 3) */
.fl-callout-banner {
  background: var(--bg-band);
  border-radius: var(--r-xl);
  padding: 44px 52px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}

/* ── Clean Borderless Footer ── */
.fl-footer {
  padding: 64px 0 80px;
  background: var(--bg-canvas);
  border: none;
}

.fl-footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 40px;
}

.fl-footer-col h4 {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 14px;
}

.fl-footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.fl-footer-col a {
  font-size: 13.5px;
  color: var(--ink-muted);
  transition: color 0.2s;
}

.fl-footer-col a:hover {
  color: var(--ink);
}

@media (max-width: 960px) {
  .fl-footer-grid { grid-template-columns: 1fr 1fr; }
  .fl-callout-banner { padding: 32px; }
}

@media (max-width: 720px) {
  .fl-nav-links { display: none; }
  .fl-footer-grid { grid-template-columns: 1fr; }
  .fl-section { padding: 64px 0; }
}
