/* ==========================================================================
   FireTagLog — Industrial Hardware / Field-Service Design System
   Inspired by ScrewFast: matte concrete neutral canvas (#e5e5e5), warm glass
   floating pill navbar, safety-orange & yellow highlights, borderless grids,
   offset tabbed showcase, hairline 2x2 metrics, and joined contrast pricing.
   ========================================================================== */

:root {
  /* Core Neutral Palette (Tailwind v4 Neutral matte scale) */
  --bg: #e5e5e5;
  --surface: #fafafa;
  --surface-panel: #f5f5f5;
  --surface-alt: #d4d4d4;
  --surface-hover: #ebebeb;

  /* Ink */
  --ink: #262626;
  --ink-soft: #404040;
  --muted: #525252;
  --subtle: #737373;

  /* Borders */
  --border: #d4d4d4;
  --border-strong: #a3a3a3;

  /* Industrial Safety Accents */
  --accent: #fa5a15;
  --accent-hover: #e14c0c;
  --accent-soft: rgba(250, 90, 21, 0.12);
  --yellow: #ca8a04;
  --yellow-bright: #facc15;
  --yellow-hover: #eab308;

  /* Semantic Compliance Tokens (preserved for /app/ & funnel-tools.mjs) */
  --crimson: #dc2626;
  --crimson-dark: #b91c1c;
  --crimson-soft: #fee2e2;
  --emerald: #059669;
  --emerald-soft: #d1fae5;
  --amber: #d97706;
  --amber-soft: #fef3c7;
  --slate-dark: #1f2937;

  /* Warm Glass Floating Navbar */
  --nav-bg: rgba(254, 252, 232, 0.72);
  --nav-border: rgba(254, 240, 138, 0.55);

  /* Radii & Elevation */
  --radius: 12px;
  --radius-sm: 8px;
  --radius-lg: 16px;
  --shadow-sm: 0 1px 2px rgba(23, 23, 23, 0.06);
  --shadow-md: 0 10px 28px -6px rgba(23, 23, 23, 0.12), 0 4px 10px -4px rgba(23, 23, 23, 0.06);
  --shadow-xl: 0 24px 48px -12px rgba(23, 23, 23, 0.22);

  /* Typography */
  --font-sans: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

[data-theme="dark"] {
  --bg: #171717;
  --surface: #262626;
  --surface-panel: #1f1f1f;
  --surface-alt: #2e2e2e;
  --surface-hover: #333333;

  --ink: #f5f5f5;
  --ink-soft: #e5e5e5;
  --muted: #a3a3a3;
  --subtle: #737373;

  --border: #333333;
  --border-strong: #525252;

  --yellow: #facc15;
  --crimson-soft: rgba(220, 38, 38, 0.22);
  --emerald-soft: rgba(5, 150, 105, 0.22);
  --amber-soft: rgba(217, 119, 6, 0.22);
  --accent-soft: rgba(250, 90, 21, 0.2);

  --nav-bg: rgba(38, 38, 38, 0.78);
  --nav-border: rgba(64, 64, 64, 0.7);
  --shadow-md: 0 12px 30px -6px rgba(0, 0, 0, 0.45);
  --shadow-xl: 0 24px 50px -12px rgba(0, 0, 0, 0.6);
}

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

::selection {
  background: var(--yellow-bright);
  color: #171717;
}

html {
  font-family: var(--font-sans);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--ink);
  transition: background-color 0.2s ease, color 0.2s ease;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.container {
  width: 100%;
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 24px;
}

.container-narrow {
  width: 100%;
  max-width: 920px;
  margin: 0 auto;
  padding: 0 24px;
}

.tabular {
  font-variant-numeric: tabular-nums;
}

.mono {
  font-family: var(--font-mono);
}

.muted {
  color: var(--muted);
}

.hidden {
  display: none !important;
}

/* ==========================================================================
   Floating Warm Glass Pill Navbar (ScrewFast Signature)
   ========================================================================== */
.site-header {
  position: sticky;
  top: 16px;
  z-index: 50;
  width: 100%;
  padding: 0 16px;
  pointer-events: none;
}

.nav-pill {
  pointer-events: auto;
  max-width: 1320px;
  margin: 0 auto;
  background: var(--nav-bg);
  border: 1px solid var(--nav-border);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-radius: 36px;
  padding: 10px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  box-shadow: 0 4px 20px rgba(23, 23, 23, 0.06);
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: -0.03em;
  flex-shrink: 0;
}

.brand-mark:hover {
  text-decoration: none;
}

.brand-wordmark {
  display: inline-flex;
  align-items: center;
  gap: 9px;
}

.brand-text-stack {
  display: flex;
  flex-direction: column;
  line-height: 0.94;
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: -0.04em;
}

.brand-text-accent {
  color: var(--accent);
}

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

.nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
  font-size: 0.92rem;
  font-weight: 600;
}

.nav-links a {
  color: var(--ink-soft);
  transition: color 0.15s ease;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--accent);
  text-decoration: none;
}

.nav-divider {
  width: 1px;
  height: 18px;
  background: var(--border-strong);
  opacity: 0.5;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.theme-toggle {
  width: 36px;
  height: 36px;
  border-radius: 999px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--ink-soft);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.theme-toggle:hover {
  background: rgba(115, 115, 115, 0.15);
  color: var(--accent);
}

.theme-toggle .icon-sun {
  display: none;
}

[data-theme="dark"] .theme-toggle .icon-moon {
  display: none;
}

[data-theme="dark"] .theme-toggle .icon-sun {
  display: block;
}

.nav-menu-toggle {
  display: none;
  width: 38px;
  height: 38px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--ink);
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 0.92rem;
  line-height: 1.2;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background-color 0.16s ease, color 0.16s ease, border-color 0.16s ease, transform 0.08s ease, box-shadow 0.16s ease;
  font-family: inherit;
  text-decoration: none;
  white-space: nowrap;
}

.btn:hover {
  text-decoration: none;
}

.btn:active {
  transform: translateY(1px);
}

.btn-primary {
  background: var(--accent);
  color: #ffffff;
}

.btn-primary:hover {
  background: var(--accent-hover);
  color: #ffffff;
}

.btn-secondary {
  background: var(--surface-alt);
  color: var(--ink);
  border-color: transparent;
}

.btn-secondary:hover {
  background: #c7c7c7;
  color: var(--ink);
}

[data-theme="dark"] .btn-secondary {
  background: #333333;
  color: #f5f5f5;
}

[data-theme="dark"] .btn-secondary:hover {
  background: #404040;
}

.btn-dark {
  background: #262626;
  color: #fafafa;
}

.btn-dark:hover {
  background: #171717;
  color: #ffffff;
}

[data-theme="dark"] .btn-dark {
  background: #f5f5f5;
  color: #171717;
}

[data-theme="dark"] .btn-dark:hover {
  background: #ffffff;
}

.btn-yellow {
  background: var(--yellow-bright);
  color: #171717;
}

.btn-yellow:hover {
  background: var(--yellow-hover);
  color: #171717;
}

.btn-light {
  background: #f5f5f5;
  color: #262626;
}

.btn-light:hover {
  background: #ffffff;
  color: #171717;
}

.btn-sm {
  padding: 7px 13px;
  font-size: 0.84rem;
}

.btn-pill {
  border-radius: 999px;
}

.btn-danger {
  background: var(--crimson-soft);
  color: var(--crimson);
  border-color: rgba(220, 38, 38, 0.25);
}

.btn-danger:hover {
  background: var(--crimson);
  color: #ffffff;
}

/* ==========================================================================
   Typography Hierarchy
   ========================================================================== */
h1, h2, h3, h4 {
  color: var(--ink);
  letter-spacing: -0.03em;
  margin-top: 0;
}

h1 {
  font-size: clamp(2.15rem, 4.4vw, 3.55rem);
  line-height: 1.08;
  font-weight: 800;
  margin-bottom: 18px;
}

h2 {
  font-size: clamp(1.6rem, 2.8vw, 2.35rem);
  line-height: 1.15;
  font-weight: 800;
  margin-bottom: 14px;
}

h3 {
  font-size: 1.12rem;
  line-height: 1.3;
  font-weight: 700;
  margin-bottom: 8px;
}

.lead {
  font-size: 1.08rem;
  line-height: 1.65;
  color: var(--muted);
  margin: 0 0 26px;
  max-width: 58ch;
}

.accent-word {
  color: var(--yellow);
}

.accent-orange {
  color: var(--accent);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}

.eyebrow::before {
  content: "";
  width: 18px;
  height: 2px;
  background: var(--accent);
  display: inline-block;
}

/* ==========================================================================
   Homepage Section 1: Hero (ScrewFast Asymmetric 2-Column)
   ========================================================================== */
.sf-hero {
  padding: 52px 0 64px;
}

.sf-hero-grid {
  display: grid;
  grid-template-columns: 1.02fr 0.98fr;
  gap: 48px;
  align-items: center;
}

.cta-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.sf-proof-row {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}

.sf-proof-badges {
  display: inline-flex;
  align-items: center;
}

.sf-proof-chip {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background: var(--surface);
  border: 2px solid var(--bg);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 0.66rem;
  font-weight: 800;
  color: var(--ink);
  margin-left: -8px;
}

.sf-proof-chip:first-child {
  margin-left: 0;
  background: #262626;
  color: #facc15;
}

.sf-proof-chip.is-accent {
  background: var(--accent);
  color: #ffffff;
}

.sf-proof-meta {
  font-size: 0.86rem;
  color: var(--muted);
  line-height: 1.4;
}

.sf-proof-meta strong {
  color: var(--ink);
}

.sf-hero-visual {
  position: relative;
}

.sf-hero-frame {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  background: var(--surface-panel);
  box-shadow: var(--shadow-xl);
}

.sf-hero-frame img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.sf-hero-tag {
  background: #1c1c1e;
  color: #f5f5f5;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 13px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.sf-hero-tag-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.sf-status-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: #22c55e;
  box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.25);
  flex-shrink: 0;
}

.sf-hero-tag-title {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-weight: 700;
  color: #ffffff;
}

.sf-hero-tag-sub {
  font-size: 0.76rem;
  color: #d4d4d4;
}

.sf-hero-tag-clocks {
  display: flex;
  gap: 14px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: #e5e5e5;
}

.sf-hero-tag-clocks strong {
  color: #facc15;
}

/* ==========================================================================
   Homepage Section 2: Compliance Standards Bar (ScrewFast Monochrome Row)
   ========================================================================== */
.sf-trust {
  padding: 36px 0 56px;
  text-align: center;
}

.sf-trust-title {
  font-size: clamp(1.3rem, 2.2vw, 1.75rem);
  font-weight: 800;
  margin-bottom: 8px;
}

.sf-trust-sub {
  color: var(--muted);
  font-size: 0.96rem;
  margin: 0 auto 30px;
  max-width: 58ch;
}

.sf-standards-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 44px;
  flex-wrap: wrap;
}

.sf-standard-mark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--subtle);
  font-weight: 800;
  font-size: 0.96rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition: color 0.15s ease;
}

.sf-standard-mark:hover {
  color: var(--ink);
}

.sf-standard-mark svg {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
}

/* ==========================================================================
   Homepage Section 3: Wide Editorial Visual + 1/3 + 2/3 Borderless Grid
   ========================================================================== */
.sf-section {
  padding: 64px 0;
}

.sf-banner-media {
  border-radius: 18px;
  overflow: hidden;
  margin-bottom: 48px;
  box-shadow: var(--shadow-md);
  background: var(--surface-panel);
}

.sf-banner-media img {
  width: 100%;
  aspect-ratio: 21 / 9;
  object-fit: cover;
}

.sf-features-split {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 48px;
  align-items: start;
}

.sf-features-2x2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 36px 32px;
}

.sf-feature-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.sf-feature-icon {
  width: 34px;
  height: 34px;
  color: var(--accent);
  flex-shrink: 0;
  margin-top: 2px;
}

.sf-feature-item h3 {
  margin-bottom: 6px;
  font-size: 1.08rem;
}

.sf-feature-item p {
  margin: 0;
  font-size: 0.94rem;
  color: var(--muted);
  line-height: 1.6;
}

/* ==========================================================================
   Homepage Section 4: Offset-Backdrop Interactive Tabs (ScrewFast Iconic)
   ========================================================================== */
.sf-tabs-wrap {
  position: relative;
  padding: 48px 44px;
}

.sf-tabs-backdrop {
  position: absolute;
  top: 0;
  bottom: 0;
  right: 0;
  width: 60%;
  background: var(--surface-panel);
  border-radius: 18px;
  z-index: 0;
}

.sf-tabs-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.sf-tab-media-col {
  order: 1;
}

.sf-tab-controls-col {
  order: 2;
}

.sf-tab-panel {
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-xl);
  background: var(--surface);
}

.sf-tab-panel[hidden] {
  display: none;
}

.sf-tab-photo {
  position: relative;
  background: #171717;
}

.sf-tab-photo img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.sf-tab-photo-caption {
  padding: 16px 20px;
  background: var(--surface);
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  font-size: 0.86rem;
}

.sf-tab-photo-caption a {
  white-space: nowrap;
  flex-shrink: 0;
}

/* Live interactive-looking dark register preview inside Tab 1 */
.sf-live-mock {
  background: #18181b;
  color: #f4f4f5;
  padding: 22px;
  min-height: 390px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 16px;
}

.sf-mock-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #27272a;
  padding-bottom: 12px;
}

.sf-mock-dots {
  display: flex;
  gap: 6px;
}

.sf-mock-dots span {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: #3f3f46;
}

.sf-mock-dots span:first-child {
  background: #fa5a15;
}

.sf-mock-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.82rem;
}

.sf-mock-table th {
  background: transparent;
  color: #a1a1aa;
  border-bottom: 1px solid #27272a;
  padding: 8px 6px;
  font-size: 0.7rem;
}

.sf-mock-table td {
  border-bottom: 1px solid #27272a;
  padding: 11px 6px;
  color: #e4e4e7;
}

.sf-mock-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.78rem;
  color: #a1a1aa;
  padding-top: 8px;
}

.sf-tab-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 24px;
}

.sf-tab-btn {
  width: 100%;
  text-align: left;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 14px;
  padding: 18px 20px;
  display: flex;
  align-items: flex-start;
  gap: 16px;
  cursor: pointer;
  font-family: inherit;
  transition: background-color 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.sf-tab-btn:hover {
  background: rgba(255, 255, 255, 0.45);
}

[data-theme="dark"] .sf-tab-btn:hover {
  background: rgba(255, 255, 255, 0.04);
}

.sf-tab-btn.is-active {
  background: var(--surface);
  box-shadow: var(--shadow-md);
}

.sf-tab-btn svg {
  width: 26px;
  height: 26px;
  color: var(--ink);
  flex-shrink: 0;
  margin-top: 2px;
  transition: color 0.18s ease;
}

.sf-tab-btn.is-active svg {
  color: var(--accent);
}

.sf-tab-title {
  display: block;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 4px;
  transition: color 0.18s ease;
}

.sf-tab-btn.is-active .sf-tab-title {
  color: var(--accent);
}

.sf-tab-desc {
  display: block;
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.55;
}

/* ==========================================================================
   Homepage Section 5: Field Mandate + 2x2 Hairline Numeric Stats Grid
   ========================================================================== */
.sf-stats-grid {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: 56px;
  align-items: center;
}

.sf-quote-block {
  position: relative;
  margin: 28px 0 0;
  padding-top: 10px;
}

.sf-quote-mark {
  position: absolute;
  top: -14px;
  left: -10px;
  width: 54px;
  height: 54px;
  color: var(--border-strong);
  opacity: 0.35;
  pointer-events: none;
}

.sf-quote-text {
  position: relative;
  z-index: 1;
  font-size: 1.15rem;
  font-style: italic;
  color: var(--ink);
  line-height: 1.55;
  margin: 0 0 18px;
}

.sf-quote-meta {
  display: flex;
  align-items: center;
  gap: 12px;
}

.sf-quote-badge {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  background: #262626;
  color: #facc15;
  font-family: var(--font-mono);
  font-weight: 800;
  font-size: 0.78rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.sf-metrics-2x2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.sf-metric-cell {
  padding: 28px 28px;
  border-color: var(--border-strong);
}

.sf-metric-cell:nth-child(1) {
  border-right: 1px solid var(--border-strong);
  border-bottom: 1px solid var(--border-strong);
}

.sf-metric-cell:nth-child(2) {
  border-bottom: 1px solid var(--border-strong);
}

.sf-metric-cell:nth-child(3) {
  border-right: 1px solid var(--border-strong);
}

.sf-metric-num {
  display: flex;
  align-items: baseline;
  gap: 8px;
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.04em;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}

.sf-metric-arrow {
  color: var(--accent);
  font-size: 0.7em;
}

.sf-metric-desc {
  margin: 8px 0 0;
  font-size: 0.9rem;
  color: var(--muted);
}

/* ==========================================================================
   Homepage Section 6: Free Zero-Signup Tool Index (Industrial Numbered Grid)
   ========================================================================== */
.sf-tools-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin-top: 28px;
}

.sf-tool-tile {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 14px;
  background: var(--surface-panel);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 22px;
  color: inherit;
  text-decoration: none;
  transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease, background-color 0.16s ease;
}

.sf-tool-tile:hover {
  text-decoration: none;
  background: var(--surface);
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.sf-tool-num {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--accent);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.sf-tool-tile h3 {
  margin: 0 0 6px;
  font-size: 1.04rem;
}

.sf-tool-tile p {
  margin: 0;
  font-size: 0.87rem;
  color: var(--muted);
}

.sf-tool-link {
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--ink);
}

.sf-tool-tile:hover .sf-tool-link {
  color: var(--accent);
}

/* ==========================================================================
   Homepage Section 7: Joined 2-Card Contrast Pricing (ScrewFast Iconic)
   ========================================================================== */
.sf-pricing-head {
  text-align: center;
  max-width: 60ch;
  margin: 0 auto 44px;
}

.sf-pricing-row {
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: 960px;
  margin: 0 auto;
}

.sf-plan-dark {
  flex: 0 0 42%;
  background: var(--slate-dark);
  color: #e5e7eb;
  border-radius: 16px 0 0 16px;
  padding: 36px 32px;
  box-shadow: var(--shadow-md);
}

.sf-plan-dark h3 {
  color: #ffffff;
  font-size: 1.35rem;
  margin-bottom: 4px;
}

.sf-plan-dark .sf-plan-sub {
  color: #9ca3af;
  font-size: 0.92rem;
  margin: 0 0 20px;
}

.sf-plan-hot {
  flex: 0 0 54%;
  background: linear-gradient(45deg, #ff512f 0%, #f09819 100%);
  color: #ffffff;
  border-radius: 16px;
  padding: 44px 36px;
  box-shadow: var(--shadow-xl);
  position: relative;
  z-index: 2;
}

.sf-plan-hot h3 {
  color: #ffffff;
  font-size: 1.45rem;
  margin-bottom: 4px;
}

.sf-plan-hot .sf-plan-sub {
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.94rem;
  margin: 0 0 22px;
}

.sf-plan-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.sf-best-pill {
  display: inline-block;
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(255, 237, 213, 0.25);
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
}

.sf-price-line {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin-bottom: 6px;
}

.sf-price-big {
  font-size: 3.3rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
}

.sf-plan-dark .sf-price-big {
  color: #ffffff;
}

.sf-price-unit {
  font-size: 0.95rem;
  opacity: 0.85;
}

.sf-plan-annual {
  font-size: 0.84rem;
  opacity: 0.82;
  margin-bottom: 24px;
}

.sf-check-list {
  list-style: none;
  padding: 0;
  margin: 0 0 28px;
  display: flex;
  flex-direction: column;
  gap: 11px;
  font-size: 0.93rem;
}

.sf-check-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.sf-check-list li::before {
  content: "✓";
  font-weight: 800;
  flex-shrink: 0;
}

.sf-plan-dark .sf-check-list li::before {
  color: #facc15;
}

.sf-plan-hot .sf-check-list li::before {
  color: #ffffff;
}

.sf-pricing-foot {
  text-align: center;
  margin-top: 32px;
}

.sf-pricing-foot p {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 0.96rem;
}

/* ==========================================================================
   Homepage Section 8: FAQ Accordion (2 col + 3 col hairline)
   ========================================================================== */
.sf-faq-grid {
  display: grid;
  grid-template-columns: 2fr 3fr;
  gap: 48px;
  align-items: start;
}

.sf-faq-list {
  border-top: 1px solid var(--border-strong);
}

.sf-faq-item {
  border-bottom: 1px solid var(--border-strong);
}

.sf-faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 20px 0;
  font-size: 1.04rem;
  font-weight: 700;
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.sf-faq-item summary::-webkit-details-marker {
  display: none;
}

.sf-faq-item summary:hover {
  color: var(--accent);
}

.sf-faq-chevron {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  color: var(--muted);
  transition: transform 0.2s ease, color 0.2s ease;
}

.sf-faq-item[open] .sf-faq-chevron {
  transform: rotate(180deg);
  color: var(--accent);
}

.sf-faq-body {
  padding: 0 0 20px;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.65;
  margin: 0;
}

/* ==========================================================================
   Homepage Section 9: Bottom Display CTA
   ========================================================================== */
.sf-bottom-cta {
  padding: 72px 0 84px;
  text-align: center;
}

.sf-bottom-cta h2 {
  font-size: clamp(2.1rem, 4.5vw, 3.4rem);
  margin-bottom: 14px;
}

.sf-bottom-cta p {
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 54ch;
  margin: 0 auto 28px;
}

/* ==========================================================================
   Matte Industrial Footer (ScrewFast Neutral-300 Footer)
   ========================================================================== */
.site-footer {
  margin-top: auto;
  background: var(--surface-alt);
  color: var(--muted);
  padding: 52px 0 32px;
  font-size: 0.88rem;
  border-top: 1px solid var(--border);
}

.site-footer a {
  color: var(--ink-soft);
  transition: color 0.15s ease;
}

.site-footer a:hover {
  color: var(--accent);
  text-decoration: none;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.35fr 1fr 1fr 1.15fr;
  gap: 32px;
  margin-bottom: 32px;
}

.footer-heading {
  color: var(--ink);
  font-size: 0.92rem;
  font-weight: 800;
  margin-bottom: 12px;
  display: block;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-cta-box {
  background: var(--surface-panel);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 18px;
}

.disclaimer {
  border-top: 1px solid var(--border-strong);
  padding-top: 18px;
  font-size: 0.78rem;
  color: var(--subtle);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* ==========================================================================
   Inner Pages, Free Tools & Workspace (/app/) Shared Components
   ========================================================================== */
.page-hero {
  padding: 44px 0 32px;
  border-bottom: 1px solid var(--border);
}

.section {
  padding: 48px 0;
}

.section-alt {
  background: var(--surface-panel);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

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

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

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

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.grid-5 {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
}

/* Compliance Status Pills */
.pill {
  display: inline-flex;
  align-items: center;
  padding: 3px 9px;
  border-radius: 6px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.pill-compliant {
  background: var(--emerald-soft);
  color: var(--emerald);
}

.pill-due_soon {
  background: var(--amber-soft);
  color: var(--amber);
}

.pill-overdue,
.pill-deficient {
  background: var(--crimson-soft);
  color: var(--crimson);
}

.pill-neutral {
  background: var(--surface-alt);
  color: var(--ink-soft);
}

/* Forms & Inputs */
.form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(185px, 1fr));
  gap: 12px;
}

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

.field label {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--muted);
}

input[type="text"],
input[type="number"],
input[type="date"],
input[type="email"],
select,
textarea {
  width: 100%;
  padding: 9px 12px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  font-size: 0.92rem;
  font-family: inherit;
  background: var(--surface);
  color: var(--ink);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

/* Tables */
.table-wrap {
  width: 100%;
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
}

.table-wrap select {
  min-width: 152px;
  white-space: nowrap;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
}

th,
td {
  text-align: left;
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}

th {
  background: var(--surface-panel);
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 700;
}

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

/* Feature Checklist (used in guides & comparisons) */
.feature-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 0.92rem;
}

.feature-list li::before {
  content: "✓ ";
  color: var(--accent);
  font-weight: 800;
}

/* Workspace App Shell (/app/) */
.app-shell {
  padding: 40px 0 60px;
  flex: 1;
}

.app-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.tabs {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  border-bottom: 2px solid var(--border);
  margin-bottom: 22px;
}

.tab-btn {
  padding: 10px 16px;
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--muted);
  cursor: pointer;
  font-family: inherit;
  transition: color 0.15s ease, border-color 0.15s ease;
}

.tab-btn:hover {
  color: var(--ink);
}

.tab-btn.active {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

.kpi-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
}

.kpi-label {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.kpi-value {
  font-size: 1.95rem;
  font-weight: 800;
  margin-top: 6px;
  line-height: 1.05;
}

.check-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface-panel);
  margin-bottom: 8px;
}

.check-toggle {
  display: inline-flex;
  gap: 6px;
  flex-shrink: 0;
}

.check-toggle button {
  padding: 6px 12px;
  border-radius: 6px;
  border: 1px solid var(--border-strong);
  background: var(--surface);
  color: var(--ink);
  font-weight: 700;
  font-size: 0.8rem;
  cursor: pointer;
}

.check-toggle button.is-pass {
  background: var(--emerald);
  color: #ffffff;
  border-color: var(--emerald);
}

.check-toggle button.is-fail {
  background: var(--crimson);
  color: #ffffff;
  border-color: var(--crimson);
}

.sig-pad {
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius-sm);
  background: #ffffff;
  width: 100%;
  max-width: 420px;
  height: 120px;
  touch-action: none;
  cursor: crosshair;
}

.banner {
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.banner-info {
  background: rgba(250, 90, 21, 0.1);
  border: 1px solid rgba(250, 90, 21, 0.3);
  color: var(--ink);
}

.banner-warn {
  background: var(--amber-soft);
  border: 1px solid rgba(217, 119, 6, 0.35);
  color: var(--ink);
}

.banner-ok {
  background: var(--emerald-soft);
  border: 1px solid rgba(5, 150, 105, 0.35);
  color: var(--ink);
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */
@media (max-width: 1040px) {
  .sf-hero-grid,
  .sf-features-split,
  .sf-tabs-grid,
  .sf-stats-grid,
  .sf-faq-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .sf-tabs-wrap {
    padding: 28px 20px;
  }

  .sf-tabs-backdrop {
    width: 100%;
    top: 80px;
  }

  .sf-tab-media-col {
    order: 2;
  }

  .sf-tab-controls-col {
    order: 1;
  }

  .sf-tools-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .sf-pricing-row {
    flex-direction: column;
    gap: 20px;
  }

  .sf-plan-dark,
  .sf-plan-hot {
    width: 100%;
    flex: auto;
    border-radius: 16px;
  }

  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .nav-pill {
    flex-wrap: wrap;
    border-radius: 24px;
    padding: 10px 16px;
  }

  .nav-menu-toggle {
    display: inline-flex;
  }

  .nav-right {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
    padding-top: 12px;
    border-top: 1px solid var(--border);
    gap: 14px;
  }

  .nav-right.is-open {
    display: flex;
  }

  .nav-links {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    width: 100%;
  }

  .nav-divider {
    display: none;
  }

  .grid-2,
  .grid-3,
  .grid-4,
  .grid-5,
  .sf-features-2x2,
  .sf-tools-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .sf-metric-cell:nth-child(n) {
    border-right: none;
    border-bottom: 1px solid var(--border-strong);
    padding: 20px 0;
  }

  .sf-metric-cell:last-child {
    border-bottom: none;
  }

  .sf-banner-media img {
    aspect-ratio: 16 / 10;
  }
}
