/* ==============================================
   Fieldfare Ghost Theme — screen.css
   ============================================== */

/* --- Variables --- */
:root {
  --navy: #0F1B2D;
  --navy-dark: #0a1321;
  --grey: #7D868E;
  --tan: #C7965A;
  --tan-dark: #96703E;
  --cream: #F7F4ED;
  --text: #374151;
  --text-light: #6B7280;
  --border: #E5E7EB;
  --white: #FFFFFF;
  --mono: 'IBM Plex Mono', monospace;
}

/* --- Reset --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
body {
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  color: var(--text);
  line-height: 1.6;
  background: var(--cream);
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}
main { flex: 1; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
ul, ol { list-style: none; }
h1, h2, h3, h4 { color: var(--navy); line-height: 1.2; }

/* --- Layout --- */
.ff-wrap { max-width: 1100px; margin: 0 auto; padding: 0 24px; }
.ff-narrow { max-width: 680px; margin: 0 auto; padding: 0 24px; }

/* --- Shared section heading --- */
.ff-section-heading {
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 700;
  color: var(--navy);
  text-align: center;
  margin-bottom: 48px;
  letter-spacing: -0.02em;
}
.ff-section-intro {
  max-width: 620px;
  margin: -32px auto 48px;
  font-size: 20px;
  color: var(--text);
  line-height: 1.7;
  text-align: center;
}
.ff-section-divider {
  border: none;
  height: 1px;
  background: var(--border);
  max-width: 80px;
  margin: 0 auto;
}

/* --- Buttons --- */
.ff-btn-primary {
  display: inline-block;
  background: var(--navy);
  color: var(--white);
  font-family: inherit;
  font-weight: 600;
  font-size: 14px;
  padding: 10px 24px;
  border-radius: 6px;
  transition: background 0.2s;
  border: none;
  cursor: pointer;
}
.ff-btn-primary:hover { background: #1a2940; color: var(--white); }
.ff-btn-lg { font-size: 16px; padding: 14px 32px; }

.ff-btn-primary--outline {
  background: transparent;
  color: var(--navy);
  border: 2px solid var(--navy);
}
.ff-btn-primary--outline:hover { background: var(--navy); color: var(--white); }

.ff-btn-primary--white {
  background: var(--white);
  color: var(--navy);
}
.ff-btn-primary--white:hover { background: #F3F4F6; color: var(--navy); }

.ff-btn-secondary {
  display: inline-block;
  border: 1px solid var(--border);
  color: var(--text);
  font-family: inherit;
  font-weight: 500;
  font-size: 14px;
  padding: 10px 24px;
  border-radius: 6px;
  background: var(--white);
  transition: all 0.2s;
}
.ff-btn-secondary:hover { background: #F9FAFB; border-color: #D1D5DB; }

/* ==============================================
   NAVIGATION
   ============================================== */
.ff-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  height: 64px;
  background: rgba(247, 244, 237, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}
.ff-nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}
.ff-nav-brand {
  display: inline-flex;
  align-items: center;
  color: var(--navy);
  text-decoration: none;
}
.ff-nav-wordmark {
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
  font-size: 18px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0.7em;
  padding-right: 0.7em;
  text-transform: uppercase;
  color: var(--navy);
}
.ff-nav-brand:hover .ff-nav-wordmark { color: var(--navy); }
.ff-nav-links {
  display: flex;
  gap: 32px;
}
.ff-nav-link {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-light);
  transition: color 0.2s;
}
.ff-nav-link:hover { color: var(--navy); }
.ff-nav-link.active { color: var(--navy); font-weight: 600; }

/* Dropdown menu (e.g. Tools > Invoice Generator). Hover/focus-within
   driven so it works without JS; mobile hides the whole nav so there
   is no separate mobile branch. */
.ff-nav-dropdown {
  position: relative;
  display: inline-flex;
  align-items: center;
}
.ff-nav-dropdown-trigger {
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-light);
  background: none;
  border: none;
  padding: 0;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  cursor: pointer;
  transition: color 0.2s;
}
.ff-nav-dropdown-trigger:hover { color: var(--navy); }
.ff-nav-dropdown-caret { transition: transform 0.2s; }
.ff-nav-dropdown:hover .ff-nav-dropdown-caret,
.ff-nav-dropdown:focus-within .ff-nav-dropdown-caret {
  transform: rotate(180deg);
}
.ff-nav-dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 200px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 8px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
  padding: 6px 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-4px);
  transition: opacity 0.15s ease, transform 0.15s ease, visibility 0s linear 0.15s;
}
.ff-nav-dropdown:hover .ff-nav-dropdown-menu,
.ff-nav-dropdown:focus-within .ff-nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  transition: opacity 0.15s ease, transform 0.15s ease, visibility 0s linear 0s;
}
.ff-nav-dropdown-item {
  display: block;
  padding: 8px 16px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-light);
  text-decoration: none;
  transition: background 0.15s, color 0.15s;
}
.ff-nav-dropdown-item:hover {
  background: rgba(15, 27, 45, 0.04);
  color: var(--navy);
}
.ff-nav-dropdown-trigger.active,
.ff-nav-dropdown.active .ff-nav-dropdown-trigger {
  color: var(--navy);
  font-weight: 600;
}

.ff-nav-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}
.ff-btn-nav {
  display: inline-block;
  background: var(--navy);
  color: var(--white);
  font-family: inherit;
  font-weight: 600;
  font-size: 14px;
  padding: 8px 20px;
  border-radius: 6px;
  transition: all 0.2s;
}
.ff-btn-nav:hover { background: #1a2940; color: var(--white); }
.ff-btn-nav--outline {
  background: transparent;
  color: var(--navy);
  border: 1px solid var(--border);
}
.ff-btn-nav--outline:hover {
  background: #F9FAFB;
  color: var(--navy);
  border-color: #D1D5DB;
}

/* ==============================================
   FOOTER
   ============================================== */
.ff-footer {
  background: var(--navy);
  padding: 24px 0 36px;
}
.ff-footer-links {
  display: flex;
  gap: 24px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 12px;
}
.ff-footer-links a {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.4);
  transition: color 0.2s;
}
.ff-footer-links a:hover { color: rgba(255, 255, 255, 0.7); }
.ff-footer-attr {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.25);
  text-align: center;
}
.ff-footer-link {
  color: rgba(255, 255, 255, 0.4);
  transition: color 0.2s;
}
.ff-footer-link:hover { color: rgba(255, 255, 255, 0.7); }

/* ==============================================
   CTA BANNER (blog posts, doc articles)
   ============================================== */
.ff-cta-banner {
  background: var(--navy);
  padding: 96px 24px 48px;
  text-align: center;
}
.ff-cta-banner-inner { max-width: 600px; margin: 0 auto; }
.ff-cta-banner h2 {
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 700;
  color: var(--white);
  margin-bottom: 28px;
  letter-spacing: -0.02em;
}
.ff-cta-banner .ff-btn-primary {
  background: var(--white);
  color: var(--navy);
}
.ff-cta-banner .ff-btn-primary:hover {
  background: #F3F4F6;
  color: var(--navy);
}
.ff-cta-sub {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.5);
  margin-top: 16px;
}

/* ==============================================
   HOMEPAGE — Hero
   ============================================== */
.ff-hero {
  padding: 100px 0 80px;
  text-align: center;
}
.ff-hero-headline {
  font-size: clamp(3rem, 10vw, 6.5rem);
  font-weight: 700;
  color: var(--navy);
  letter-spacing: -0.03em;
  line-height: 1.08;
  margin: 0 auto 36px;
  max-width: 900px;
}
.ff-hero-sub {
  font-size: 20px;
  color: var(--text);
  line-height: 1.7;
  margin: 0 auto 44px;
  max-width: 560px;
}
.ff-hero-cta-row {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
}
.ff-hero-small {
  font-size: 14px;
  color: var(--text-light);
  margin-top: 12px;
}

/* --- Split-flap ticker --- */
.ff-ticker {
  display: inline-flex;
  align-items: center;
  vertical-align: baseline;
  position: relative;
  margin: 0 2px;
  padding: 2px 3px;
  background: rgba(15, 27, 45, 0.06);
  border-radius: 5px;
  gap: 2px;
}
.sf-char {
  display: inline-block;
  position: relative;
  font-family: var(--mono);
  font-weight: 600;
  font-size: inherit;
  line-height: 1.2;
  background: var(--navy);
  color: transparent;
  padding: 0.05em 0.12em;
  border-radius: 3px;
  margin: 0 1px;
  overflow: hidden;
  perspective: 400px;
}
.sf-char::after {
  content: '';
  position: absolute;
  left: 2px;
  right: 2px;
  top: 50%;
  height: 1px;
  background: rgba(0, 0, 0, 0.2);
  z-index: 20;
  pointer-events: none;
}
.sf-top,
.sf-bottom {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--cream);
  font-family: var(--mono);
  font-weight: 600;
  font-size: inherit;
  padding: 0.05em 0.12em;
}
.sf-top {
  clip-path: inset(0 0 50% 0);
  z-index: 2;
  background: var(--navy);
}
.sf-bottom {
  clip-path: inset(50% 0 0 0);
  z-index: 1;
  background: var(--navy-dark);
}
.sf-flap {
  position: absolute;
  inset: 0;
  transform-origin: center 50%;
  transform-style: preserve-3d;
  z-index: 10;
  pointer-events: none;
}
.sf-flap-front,
.sf-flap-back {
  position: absolute;
  inset: 0;
  backface-visibility: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--cream);
  font-family: var(--mono);
  font-weight: 600;
  font-size: inherit;
  padding: 0.05em 0.12em;
}
.sf-flap-front {
  clip-path: inset(0 0 50% 0);
  background: var(--navy);
}
.sf-flap-back {
  clip-path: inset(50% 0 0 0);
  transform: rotateX(180deg);
  background: var(--navy-dark);
}
@keyframes flapDown {
  0%   { transform: rotateX(0deg); }
  60%  { transform: rotateX(-180deg); }
  75%  { transform: rotateX(-170deg); }
  100% { transform: rotateX(-180deg); }
}

/* ==============================================
   HOMEPAGE — Problem
   ============================================== */
.ff-problem {
  padding: 96px 0;
  text-align: center;
}
.ff-problem-text {
  max-width: 620px;
  margin: -32px auto 56px;
  font-size: 20px;
  color: var(--text);
  line-height: 1.7;
  text-align: center;
}

/* --- Persona cards --- */
.ff-persona-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: 960px;
  margin: 0 auto;
}
.ff-persona-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  text-align: left;
}
.ff-persona-header {
  padding: 20px;
  border-bottom: 1px solid var(--border);
  text-align: center;
}
.ff-persona-sentence {
  font-size: 15px;
  font-weight: 500;
  color: var(--navy);
  line-height: 1.5;
}
.ff-persona-details {
  padding: 16px 20px 20px;
}
.ff-persona-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 5px 0;
}
.ff-persona-label {
  font-size: 13px;
  color: var(--text-light);
}
.ff-persona-value {
  font-size: 14px;
  font-weight: 600;
  color: var(--navy);
}
.ff-persona-mono {
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
}
.ff-persona-gain { color: #16A34A; }
.ff-persona-loss { color: #DC2626; }

/* Persona dots (mobile only) */
.ff-persona-dots {
  display: none;
  justify-content: center;
  gap: 8px;
  margin-top: 16px;
}
.ff-persona-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--border);
  cursor: pointer;
  transition: background 0.2s;
}
.ff-persona-dot.active { background: var(--tan); }

/* ==============================================
   HOMEPAGE — Features
   ============================================== */
.ff-features {
  padding: 96px 0;
}

/* Desktop tabs */
.ff-features-tabs {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 48px;
  max-width: 960px;
  margin: 0 auto;
  align-items: start;
}
.ff-features-left {
  display: flex;
  flex-direction: column;
}
.ff-features-right {
  display: flex;
  flex-direction: column;
}
.ff-features-nav {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.ff-features-tab {
  display: block;
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  border-left: 3px solid transparent;
  padding: 16px 20px;
  font-family: inherit;
  font-size: 16px;
  font-weight: 500;
  color: var(--text-light);
  cursor: pointer;
  transition: all 0.2s;
}
.ff-features-tab:hover { color: var(--navy); }
.ff-features-tab.active {
  color: var(--navy);
  font-weight: 700;
  border-left-color: var(--tan);
  background: rgba(199, 150, 90, 0.06);
}

/* Description area (desktop, below screenshot) */
.ff-features-desc-area {
  padding: 20px 0 0;
}
.ff-features-desc {
  display: none;
  font-size: 20px;
  color: var(--text);
  line-height: 1.7;
}
.ff-features-desc.active { display: block; }

/* Image panels (desktop) */
.ff-features-panels { position: relative; }
.ff-features-panel { display: none; }
.ff-features-panel.active { display: block; }
.ff-features-img {
  width: 100%;
  border-radius: 8px;
  border: 1px solid var(--border);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

/* Mobile accordion (hidden on desktop) */
.ff-features-accordion { display: none; }
.ff-accordion-item {
  border-bottom: 1px solid var(--border);
}
.ff-accordion-trigger {
  display: block;
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  padding: 20px 0;
  font-family: inherit;
  font-size: 16px;
  font-weight: 600;
  color: var(--navy);
  cursor: pointer;
  position: relative;
  padding-right: 32px;
}
.ff-accordion-trigger::after {
  content: '+';
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  font-size: 20px;
  font-weight: 400;
  color: var(--text-light);
  transition: transform 0.2s;
}
.ff-accordion-trigger.active::after {
  content: '\2212';
}
.ff-accordion-body {
  display: none;
  padding-bottom: 24px;
}
.ff-accordion-item.active .ff-accordion-body { display: block; }
.ff-accordion-body p {
  font-size: 18px;
  color: var(--text);
  line-height: 1.7;
  margin-bottom: 16px;
}
.ff-accordion-body img {
  width: 100%;
  border-radius: 8px;
  border: 1px solid var(--border);
}

/* ==============================================
   HOMEPAGE — Comparison + Pricing (merged)
   ============================================== */
.ff-pricing-section {
  padding: 96px 0;
}

/* Comparison table */
.ff-comparison-scroll {
  max-width: 760px;
  margin: 0 auto;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 8px;
}
.ff-comparison-table {
  width: 100%;
  min-width: 560px;
  border-collapse: collapse;
  font-size: 15px;
}
.ff-comparison-table thead th {
  padding: 16px 20px;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-light);
  text-align: center;
  border-bottom: 2px solid var(--border);
}
.ff-comparison-table thead th.ff-comparison-highlight {
  color: var(--navy);
  font-weight: 700;
}
.ff-comparison-feature {
  text-align: left !important;
  font-weight: 500;
  color: var(--navy);
}
.ff-comparison-table td {
  padding: 14px 20px;
  text-align: center;
  border-bottom: 1px solid #F3F4F6;
  color: var(--text);
}
.ff-comparison-highlight {
  background: rgba(199, 150, 90, 0.06);
}
.ff-comparison-yes { color: #16A34A; font-weight: 600; }
.ff-comparison-no { color: #D1D5DB; }
.ff-comparison-partial { color: var(--text-light); font-size: 13px; }
.ff-comparison-price-row td {
  font-weight: 600;
  color: var(--text-light);
  border-bottom: none;
  padding-top: 20px;
}
.ff-comparison-free {
  font-size: 18px;
  font-weight: 700;
  color: var(--navy) !important;
}

/* Currency selector (between table and cards) */
.ff-pricing-currency-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 48px 0 32px;
}
.ff-pricing-currency-row label {
  font-size: 14px;
  color: var(--text-light);
  font-weight: 500;
}
.ff-pricing-currency-row select {
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
  color: var(--navy);
  background: var(--cream);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 6px 12px;
  cursor: pointer;
}
.ff-pricing-section .ff-section-divider {
  margin: 72px auto;
}
.ff-pricing-section .ff-section-divider + .ff-pricing-subheading {
  margin-top: 0;
}
.ff-pricing-subheading {
  margin-top: 72px;
}

/* Pricing cards */
.ff-pricing-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  max-width: 720px;
  margin: 0 auto;
}
.ff-pricing-card {
  border-radius: 8px;
  padding: 36px 32px;
  text-align: center;
}
.ff-pricing-card--free {
  background: var(--white);
  border: 1px solid var(--border);
}
.ff-pricing-card--pro {
  background: var(--navy);
  color: var(--white);
}
.ff-pricing-tier {
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-light);
  margin-bottom: 8px;
}
.ff-pricing-card--pro .ff-pricing-tier { color: rgba(255, 255, 255, 0.5); }
.ff-pricing-amount {
  font-size: 40px;
  font-weight: 700;
  color: var(--navy);
  letter-spacing: -0.02em;
  margin-bottom: 4px;
  font-variant-numeric: tabular-nums;
}
.ff-pricing-card--pro .ff-pricing-amount { color: var(--white); }
.ff-pricing-period {
  font-size: 16px;
  font-weight: 500;
  opacity: 0.5;
}
.ff-pricing-card ul {
  text-align: left;
  margin: 24px 0 28px;
}
.ff-pricing-card li {
  font-size: 15px;
  padding: 6px 0;
  padding-left: 20px;
  position: relative;
}
.ff-pricing-card li::before {
  content: '\2713';
  position: absolute;
  left: 0;
  color: var(--tan);
  font-weight: 700;
}
.ff-pricing-card--pro li { color: rgba(255, 255, 255, 0.85); }
.ff-pricing-card--pro li::before { color: var(--tan); }
.ff-pricing-ppp {
  font-size: 13px;
  color: var(--text-light);
  text-align: center;
  margin-top: 16px;
}

/* ==============================================
   HOMEPAGE — Maker story
   ============================================== */
.ff-maker { padding: 96px 0; }
.ff-maker-heading {
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 700;
  color: var(--navy);
  text-align: center;
  margin-bottom: 48px;
  letter-spacing: -0.02em;
}
.ff-maker-grid {
  display: grid;
  grid-template-columns: 45fr 55fr;
  gap: 32px;
  align-items: center;
  max-width: 860px;
  margin: 0 auto;
}
.ff-maker-img {
  width: 100%;
  height: auto;
  border-radius: 8px;
}
.ff-maker-text {
  text-align: left;
  position: relative;
}
.ff-maker-text::before {
  content: '\201C';
  position: absolute;
  top: -60px;
  left: -12px;
  font-size: 220px;
  line-height: 1;
  font-family: Georgia, serif;
  color: rgba(199, 150, 90, 0.06);
  pointer-events: none;
  z-index: 0;
}
.ff-maker-quote,
.ff-maker-text > p:not(.ff-maker-sig) {
  position: relative;
  z-index: 1;
  font-size: 20px;
  font-style: italic;
  font-weight: 400;
  color: #1F2937;
  line-height: 1.7;
}
.ff-maker-quote + .ff-maker-quote,
.ff-maker-text > p:not(.ff-maker-sig) + p:not(.ff-maker-sig) {
  margin-top: 12px;
}
.ff-maker-sig {
  margin-top: 20px;
  font-style: normal;
  font-weight: 500;
  color: var(--grey);
  font-size: 17px;
}

/* ==============================================
   HOMEPAGE — FAQ (Pages-driven, native <details>)
   ============================================== */
.ff-faq { padding: 96px 0; }
.ff-faq .ff-section-heading { text-align: center; }
.ff-faq .ff-section-intro {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 48px;
}
.ff-faq-list {
  max-width: 760px;
  margin: 0 auto;
  border-top: 1px solid rgba(15, 27, 45, 0.1);
}
.ff-faq-item {
  border-bottom: 1px solid rgba(15, 27, 45, 0.1);
}
.ff-faq-question {
  cursor: pointer;
  list-style: none;
  padding: 20px 40px 20px 0;
  font-size: 18px;
  font-weight: 600;
  color: var(--navy);
  position: relative;
  user-select: none;
}
.ff-faq-question::-webkit-details-marker { display: none; }
.ff-faq-question::after {
  content: "+";
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 24px;
  font-weight: 400;
  color: var(--grey);
  transition: transform 150ms ease;
}
.ff-faq-item[open] > .ff-faq-question::after {
  content: "−";
}
.ff-faq-answer {
  padding: 0 0 24px;
  color: var(--text);
  font-size: 16px;
  line-height: 1.6;
}
.ff-faq-answer p:first-child { margin-top: 0; }
.ff-faq-answer p:last-child { margin-bottom: 0; }
.ff-faq-answer a { color: var(--navy); text-decoration: underline; }

/* ==============================================
   HOMEPAGE — Final CTA
   ============================================== */
.ff-final-cta {
  background: var(--navy);
  padding: 96px 24px 48px;
  text-align: center;
}
.ff-final-cta h2 {
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 700;
  color: var(--white);
  margin-bottom: 28px;
  letter-spacing: -0.02em;
}
.ff-final-cta .ff-btn-primary--white { margin-bottom: 16px; }
.ff-final-cta .ff-hero-small { color: rgba(255, 255, 255, 0.5); margin-top: 0; }

/* ==============================================
   BLOG LISTING
   ============================================== */
.ff-blog {
  padding: 48px 24px 80px;
  max-width: 780px;
  margin: 0 auto;
}
.ff-blog-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.ff-blog-card {
  display: flex;
  align-items: stretch;
  background: var(--white);
  border: 1px solid #E5E7EB;
  border-radius: 8px;
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
}
.ff-blog-card:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}
.ff-blog-card-img {
  flex-shrink: 0;
  width: 360px;
  aspect-ratio: 3 / 2;
  align-self: flex-start;
  overflow: hidden;
}
.ff-blog-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.ff-blog-card-text {
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
}
.ff-blog-card-text h2 {
  font-size: 18px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 8px;
  line-height: 1.35;
}
.ff-blog-card-text h2 a { color: inherit; }
.ff-blog-card-text h2 a:hover { color: var(--tan-dark); }
.ff-blog-card-excerpt {
  font-size: 14px;
  color: var(--text-light);
  line-height: 1.6;
  margin-bottom: 12px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.ff-blog-card-meta {
  font-size: 14px;
  color: var(--text-light);
}
.ff-blog-empty {
  text-align: center;
  padding: 80px 0;
  font-size: 14px;
  color: var(--text-light);
}
.ff-pagination {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-top: 48px;
}

/* ==============================================
   BLOG POST
   ============================================== */
.ff-post .ff-wrap { max-width: 680px; }
.ff-post-header {
  padding-top: 48px;
  margin-bottom: 40px;
}
.ff-post-header h1 {
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 700;
  color: var(--navy);
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin-bottom: 12px;
}
.ff-post-meta {
  font-size: 14px;
  color: var(--text-light);
}
.ff-post .ff-post-content {
  max-width: none;
  padding: 0 0 64px;
}
.ff-post-feature {
  margin: 0 0 40px;
}
.ff-post-feature img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  display: block;
}
.ff-post-feature figcaption {
  font-size: 14px;
  color: var(--text-light);
  text-align: center;
  margin-top: 12px;
}

/* --- Post content typography --- */
.ff-post-content {
  max-width: 680px;
  margin: 0 auto;
  padding: 0 24px 64px;
}
.ff-post-content p {
  font-size: 18px;
  line-height: 1.8;
  color: #374151;
  margin-bottom: 24px;
}
.ff-post-content h2 {
  font-size: 28px;
  font-weight: 700;
  color: var(--navy);
  margin-top: 48px;
  margin-bottom: 16px;
}
.ff-post-content h3 {
  font-size: 22px;
  font-weight: 600;
  color: var(--navy);
  margin-top: 36px;
  margin-bottom: 12px;
}
.ff-post-content h4 {
  font-size: 18px;
  font-weight: 600;
  color: var(--navy);
  margin-top: 28px;
  margin-bottom: 8px;
}
.ff-post-content a {
  color: var(--tan-dark);
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color 0.2s;
}
.ff-post-content a:hover { color: #7D5C32; }
.ff-post-content ul,
.ff-post-content ol {
  font-size: 18px;
  line-height: 1.8;
  color: #374151;
  margin-bottom: 24px;
  padding-left: 28px;
}
.ff-post-content ul { list-style: disc; }
.ff-post-content ol { list-style: decimal; }
.ff-post-content li { margin-bottom: 6px; }
.ff-post-content blockquote {
  border-left: 3px solid var(--tan);
  padding-left: 24px;
  font-style: italic;
  color: #374151;
  margin: 28px 0;
}
.ff-post-content blockquote p { margin-bottom: 0; }
.ff-post-content pre {
  background: var(--navy);
  color: #E5E7EB;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 14px;
  padding: 20px 24px;
  border-radius: 8px;
  overflow-x: auto;
  margin: 28px 0;
  line-height: 1.6;
}
.ff-post-content code {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.9em;
  background: #F3F4F6;
  padding: 2px 6px;
  border-radius: 4px;
}
.ff-post-content pre code {
  background: none;
  padding: 0;
  border-radius: 0;
  font-size: 14px;
}
.ff-post-content img,
.ff-post-content figure {
  border-radius: 8px;
  margin: 28px 0;
}
.ff-post-content figure img { margin: 0; }
.ff-post-content figcaption {
  font-size: 14px;
  color: var(--text-light);
  text-align: center;
  margin-top: 8px;
}
.ff-post-content hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: 48px 0;
}
.ff-post-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 28px 0;
  font-size: 16px;
}
.ff-post-content th {
  font-weight: 600;
  text-align: left;
  padding: 10px 12px;
  border-bottom: 2px solid var(--border);
}
.ff-post-content td {
  padding: 10px 12px;
  border-bottom: 1px solid #F3F4F6;
}

/* Ghost image card widths */
.ff-post .kg-width-wide {
  max-width: 1040px;
  margin-left: calc(50% - min(520px, 50vw - 24px));
  margin-right: calc(50% - min(520px, 50vw - 24px));
}
.ff-post-content .kg-width-full {
  max-width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
}
.ff-post-content .kg-width-full img { border-radius: 0; }

/* Ghost bookmark card */
.ff-post-content .kg-bookmark-card {
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  margin: 28px 0;
}
.ff-post-content .kg-bookmark-container {
  display: flex;
  text-decoration: none;
  color: inherit;
}
.ff-post-content .kg-bookmark-content {
  flex: 1;
  padding: 16px 20px;
}
.ff-post-content .kg-bookmark-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 4px;
}
.ff-post-content .kg-bookmark-description {
  font-size: 14px;
  color: var(--text-light);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.ff-post-content .kg-bookmark-metadata {
  font-size: 12px;
  color: var(--text-light);
  margin-top: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.ff-post-content .kg-bookmark-icon { width: 16px; height: 16px; }
.ff-post-content .kg-bookmark-thumbnail {
  width: 180px;
  flex-shrink: 0;
}
.ff-post-content .kg-bookmark-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  margin: 0;
  border-radius: 0;
}

/* Ghost gallery */
.ff-post-content .kg-gallery-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 8px;
  margin: 28px 0;
}
.ff-post-content .kg-gallery-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 4px;
  margin: 0;
}

/* ==============================================
   DOCS INDEX
   ============================================== */
.ff-docs-index {
  max-width: 900px;
  margin: 0 auto;
  padding: 56px 24px 0;
}
.ff-docs-index-header { margin-bottom: 48px; }
.ff-docs-index-header h1 {
  font-size: clamp(28px, 3.5vw, 38px);
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 8px;
}
.ff-docs-index-header p {
  font-size: 18px;
  color: var(--text-light);
}
.ff-docs-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 80px;
}
.ff-docs-card {
  display: block;
  background: var(--white);
  border: 1px solid #E5E7EB;
  border-radius: 8px;
  padding: 28px 24px;
  transition: transform 0.2s, box-shadow 0.2s;
}
.ff-docs-card:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}
.ff-docs-card h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 8px;
}
.ff-docs-card p {
  font-size: 14px;
  color: var(--text-light);
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ==============================================
   DOCS ARTICLE
   ============================================== */
.ff-docs-inner {
  max-width: 1000px;
  margin: 0 auto;
  padding: 48px 24px 64px;
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 48px;
}
.ff-docs-sidebar {
  position: sticky;
  top: 96px;
  align-self: start;
}
.ff-docs-sidebar-heading {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #9CA3AF;
  margin-bottom: 16px;
}
.ff-docs-back {
  display: inline-block;
  font-size: 14px;
  color: var(--text-light);
  margin-bottom: 20px;
  transition: color 0.2s;
}
.ff-docs-back:hover { color: var(--navy); }
.ff-docs-sidebar-link {
  display: block;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-light);
  padding: 6px 0;
  transition: color 0.2s;
}
.ff-docs-sidebar-link:hover { color: var(--navy); }
.ff-docs-sidebar-link.active {
  color: var(--tan-dark);
  font-weight: 600;
}
.ff-docs-content { max-width: 680px; }
.ff-docs-content h1 {
  font-size: clamp(28px, 4vw, 38px);
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 32px;
  letter-spacing: -0.02em;
}
.ff-docs-content .ff-post-content {
  max-width: none;
  padding: 0;
}

/* ==============================================
   STATIC PAGES
   ============================================== */
.ff-page { padding: 56px 0 80px; }
.ff-page-header {
  max-width: 680px;
  margin: 0 auto 32px;
  padding: 0 24px;
}
.ff-page-title {
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 700;
  color: var(--navy);
  letter-spacing: -0.02em;
}
.ff-page-feature {
  max-width: 680px;
  margin: 0 auto 32px;
  padding: 0 24px;
}
.ff-page-feature img {
  width: 100%;
  border-radius: 8px;
}
.ff-page .ff-post-content { padding-bottom: 0; }

/* ==============================================
   404
   ============================================== */
.ff-404 {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: calc(100vh - 64px - 96px);
  text-align: center;
  padding: 48px 24px;
}
.ff-404 h1 {
  font-size: 72px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 8px;
}
.ff-404 p {
  font-size: 18px;
  color: var(--text-light);
  margin-bottom: 32px;
}

/* ==============================================
   TAG LISTING
   ============================================== */
.ff-tag-header {
  max-width: 780px;
  margin: 0 auto 32px;
  padding: 48px 24px 0;
}
.ff-tag-header h1 {
  font-size: 28px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 8px;
}
.ff-tag-header p {
  font-size: 18px;
  color: var(--text-light);
  max-width: 600px;
}

/* ==============================================
   RESPONSIVE
   ============================================== */
@media (max-width: 899px) {
  .ff-nav-links { display: none; }

  /* Persona: horizontal scroll carousel */
  .ff-persona-grid {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    gap: 16px;
    padding-bottom: 8px;
    scrollbar-width: none;
  }
  .ff-persona-grid::-webkit-scrollbar { display: none; }
  .ff-persona-card {
    flex: 0 0 calc(100% - 32px);
    scroll-snap-align: center;
  }
  .ff-persona-dots { display: flex; }

  /* Features: hide tabs, show accordion */
  .ff-features-tabs { display: none; }
  .ff-features-accordion { display: block; }

  /* Comparison: sticky feature column, Fieldfare naturally visible as col 2 */
  .ff-comparison-table { min-width: 520px; }
  .ff-comparison-table th:first-child,
  .ff-comparison-table td.ff-comparison-feature {
    position: sticky;
    left: 0;
    z-index: 2;
    background: var(--white);
    box-shadow: 2px 0 4px rgba(0, 0, 0, 0.03);
  }

  .ff-pricing-grid { grid-template-columns: 1fr; max-width: 400px; margin: 0 auto; }

  .ff-maker-grid {
    grid-template-columns: 1fr;
    gap: 24px;
    text-align: center;
  }
  .ff-maker-img { max-width: 480px; margin: 0 auto; }
  .ff-maker-text { text-align: center; }

  .ff-docs-grid { grid-template-columns: 1fr; }

  .ff-docs-inner {
    grid-template-columns: 1fr;
    padding-top: 32px;
  }
  .ff-docs-sidebar { display: none; }
}

@media (max-width: 767px) {
  .ff-blog-card { flex-direction: column; }
  .ff-blog-card-img { width: 100%; aspect-ratio: 3 / 2; }

  .ff-post .kg-width-wide {
    max-width: 100%;
    margin-left: 0;
    margin-right: 0;
  }

  .ff-post-content .kg-bookmark-container { flex-direction: column; }
  .ff-post-content .kg-bookmark-thumbnail {
    width: 100%;
    height: 160px;
  }
}

@media (max-width: 480px) {
  .ff-hero-headline { font-size: 2.5rem; }
  .ff-btn-lg { font-size: 15px; padding: 12px 24px; }
  .ff-final-cta h2 { font-size: 1.5rem; }
  .ff-btn-nav { padding: 6px 14px; font-size: 13px; }
}
