/* FarmFlyer public website — theme vars set in theme-vars.blade.php */

body.ff-public {
    font-family: 'DM Sans', system-ui, sans-serif;
    color: var(--ff-dark);
    background-color: var(--ff-page-bg);
    background-image:
        radial-gradient(ellipse 90% 55% at 0% 0%, color-mix(in srgb, var(--ff-primary) 9%, transparent), transparent 52%),
        radial-gradient(ellipse 75% 50% at 100% 8%, color-mix(in srgb, var(--ff-surface-alt) 55%, transparent), transparent 48%),
        radial-gradient(ellipse 80% 40% at 50% 100%, color-mix(in srgb, var(--ff-muted) 8%, transparent), transparent 55%);
    background-attachment: fixed;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

.ff-public .text-muted {
    color: var(--ff-muted) !important;
}

.ff-public .text-primary {
    color: var(--ff-primary) !important;
}

.ff-public .bg-white {
    background-color: var(--ff-card) !important;
}

body.ff-public main {
    padding-left: env(safe-area-inset-left, 0);
    padding-right: env(safe-area-inset-right, 0);
}

body.ff-public--hi {
    font-family: 'Noto Sans Devanagari', 'DM Sans', system-ui, sans-serif;
}

body.ff-public--gu {
    font-family: 'Noto Sans Gujarati', 'DM Sans', system-ui, sans-serif;
}

.ff-lang-switcher {
    min-width: 7.5rem;
}

.ff-lang-select {
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: #fff;
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
}

.ff-lang-select:focus {
    background: rgba(255, 255, 255, 0.18);
    border-color: rgba(255, 255, 255, 0.45);
    color: #fff;
    box-shadow: none;
}

.ff-lang-select option {
    color: #0f172a;
    background: #fff;
}

/* —— Brand / logo (auto-sized per placement) —— */
.ff-logo {
    display: block;
    width: auto;
    object-fit: contain;
    object-position: left center;
    background: transparent;
}

.ff-logo--nav {
    height: var(--ff-logo-nav-height, 42px);
    max-width: var(--ff-logo-nav-max-width, 200px);
}

.ff-logo--footer {
    height: var(--ff-logo-footer-height, 34px);
    max-width: var(--ff-logo-footer-max-width, 180px);
}

.ff-logo--large {
    height: var(--ff-logo-large-height, 64px);
    max-width: var(--ff-logo-large-max-width, 280px);
}

.ff-logo--favicon {
    height: var(--ff-logo-favicon-height, 32px);
    width: var(--ff-logo-favicon-max-width, 32px);
    max-width: var(--ff-logo-favicon-max-width, 32px);
}

.ff-brand-text {
    line-height: 1.15;
    white-space: nowrap;
}

.ff-brand-icon {
    color: var(--ff-accent);
}

/* —— Navbar —— */
.ff-navbar {
    background: color-mix(in srgb, var(--ff-dark) 92%, transparent) !important;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    padding-top: calc(0.55rem + env(safe-area-inset-top, 0px));
    padding-bottom: 0.55rem;
}

.ff-navbar .nav-link {
    font-weight: 500;
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.82) !important;
    padding: 0.5rem 0.85rem !important;
    border-radius: 0.5rem;
    transition: color 0.2s, background 0.2s;
}

.ff-navbar .nav-link:hover,
.ff-navbar .nav-link.active {
    color: #fff !important;
    background: rgba(255, 255, 255, 0.08);
}

.ff-btn-primary {
    background: var(--ff-accent);
    border: none;
    color: #fff;
    font-weight: 600;
    padding: 0.55rem 1.35rem;
    border-radius: 999px;
    box-shadow: 0 4px 14px color-mix(in srgb, var(--ff-accent) 40%, transparent);
    transition: transform 0.15s, box-shadow 0.15s, background 0.15s;
}

.ff-btn-primary:hover {
    background: var(--ff-accent-hover);
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 8px 20px color-mix(in srgb, var(--ff-accent) 45%, transparent);
}

.ff-btn-ghost {
    background: transparent;
    border: 1.5px solid rgba(255, 255, 255, 0.5);
    color: #fff;
    font-weight: 600;
    padding: 0.55rem 1.35rem;
    border-radius: 999px;
}

.ff-btn-ghost:hover {
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    border-color: #fff;
}

/* —— Hero —— */
.ff-hero {
    color: #fff;
    padding-top: clamp(2rem, 5vw, 2.75rem);
    padding-bottom: clamp(2.5rem, 6vw, 3.75rem);
    position: relative;
    overflow: hidden;
}

.ff-hero .row {
    --bs-gutter-y: 1.25rem;
}

.ff-hero-lead {
    margin-top: 0.85rem !important;
}

.ff-hero-body {
    margin-top: 0.5rem !important;
}

.ff-hero-actions {
    margin-top: 1.25rem !important;
}

/* Tighter gap between hero and first content block */
.ff-hero + .ff-section,
.ff-hero + .ff-section-alt,
.ff-hero + .ff-section-tint,
.ff-hero + .ff-image-text-stack,
.ff-hero + .ff-ecosystem-section {
    padding-top: clamp(1.75rem, 4vw, 2.5rem);
}

.ff-hero--mesh {
    background: var(--ff-dark);
}

.ff-hero--mesh::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 80% 60% at 10% 20%, var(--ff-mesh-1), transparent 55%),
        radial-gradient(ellipse 70% 50% at 90% 10%, var(--ff-mesh-2), transparent 50%),
        radial-gradient(ellipse 60% 80% at 50% 100%, color-mix(in srgb, var(--ff-primary) 35%, transparent), transparent 60%),
        var(--ff-gradient);
    opacity: 0.95;
}

.ff-hero--gradient {
    background: var(--ff-gradient);
}

.ff-hero--solid {
    background: var(--ff-primary-dark);
}

.ff-hero .container {
    position: relative;
    z-index: 1;
}

.ff-hero h1 {
    font-family: 'Plus Jakarta Sans', 'DM Sans', sans-serif;
    font-size: clamp(2.1rem, 5.5vw, 3.5rem);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.03em;
}

.ff-hero .lead {
    font-size: 1.125rem;
    line-height: 1.65;
    opacity: 0.92;
    max-width: 34rem;
    color: rgba(255, 255, 255, 0.9);
}

.ff-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.35rem 0.85rem;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 0.85rem;
}

/* —— Sections —— */
.ff-section {
    padding: clamp(2.25rem, 5.5vw, 3.75rem) 0;
    background: transparent;
}

.ff-section-alt {
    background: var(--ff-surface-alt);
}

.ff-section-tint {
    background: var(--ff-surface);
}

.ff-ecosystem-section.ff-section {
    background: color-mix(in srgb, var(--ff-surface) 55%, var(--ff-page-bg));
}

.ff-section-title {
    font-family: 'Plus Jakarta Sans', 'DM Sans', sans-serif;
    font-weight: 800;
    font-size: clamp(1.75rem, 3.5vw, 2.35rem);
    margin-bottom: 0.75rem;
    letter-spacing: -0.02em;
    color: var(--ff-dark);
}

.ff-section-sub {
    color: var(--ff-muted);
    font-size: 1.05rem;
    line-height: 1.6;
    max-width: 38rem;
    margin: 0 auto clamp(1.5rem, 3vw, 2.25rem);
}

/* —— Cards —— */
.ff-stat-card {
    text-align: center;
    padding: 2rem 1.25rem;
    border-radius: 1.25rem;
    background: var(--ff-card);
    border: 1px solid var(--ff-border);
    height: 100%;
    box-shadow: 0 2px 10px var(--ff-shadow);
    transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.25s;
}

.ff-stat-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 40px color-mix(in srgb, var(--ff-primary) 18%, transparent);
}

.ff-stat-card .value {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: clamp(2rem, 4vw, 2.75rem);
    font-weight: 800;
    background: var(--ff-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.1;
}

.ff-icon-card {
    padding: 2rem;
    border-radius: 1.25rem;
    background: var(--ff-card);
    border: 1px solid var(--ff-border);
    height: 100%;
    box-shadow: 0 2px 10px var(--ff-shadow);
    transition: border-color 0.2s, box-shadow 0.25s, transform 0.25s;
}

.ff-icon-card:hover {
    border-color: color-mix(in srgb, var(--ff-primary) 35%, transparent);
    box-shadow: 0 16px 40px var(--ff-shadow);
    transform: translateY(-4px);
}

.ff-icon-card .icon-wrap {
    width: 3.25rem;
    height: 3.25rem;
    border-radius: 1rem;
    background: color-mix(in srgb, var(--ff-primary) 14%, var(--ff-card));
    color: var(--ff-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    margin-bottom: 1.15rem;
}

.ff-icon-card h3 {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 700;
}

/* —— Ecosystem —— */
.ff-ecosystem-hub {
    width: 148px;
    height: 148px;
    border-radius: 50%;
    background: var(--ff-gradient);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 0.8rem;
    text-align: center;
    margin: 1.25rem auto;
    box-shadow: 0 0 0 14px color-mix(in srgb, var(--ff-primary) 18%, transparent);
}

.ff-flow-step {
    padding: 0.75rem 1.35rem;
    background: var(--ff-card);
    border: 1px solid var(--ff-border);
    border-radius: 999px;
    font-weight: 600;
    font-size: 0.9rem;
    box-shadow: 0 2px 8px var(--ff-shadow);
    color: var(--ff-dark);
}

/* —— CTA —— */
.ff-cta {
    background: var(--ff-dark);
    color: #fff;
    padding: clamp(2.25rem, 5.5vw, 3.75rem) 0;
    padding-bottom: calc(clamp(2.25rem, 5.5vw, 3.75rem) + env(safe-area-inset-bottom, 0px));
    text-align: center;
    position: relative;
    overflow: hidden;
}

.ff-cta::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 30% 50%, color-mix(in srgb, var(--ff-primary) 25%, transparent), transparent 55%);
    pointer-events: none;
}

.ff-cta .container {
    position: relative;
    z-index: 1;
}

.ff-cta h2 {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 800;
    font-size: clamp(1.75rem, 4vw, 2.5rem);
}

/* —— Footer —— */
.ff-footer {
    background: var(--ff-dark);
    color: #94a3b8;
    padding: 2.75rem 0 calc(1.5rem + env(safe-area-inset-bottom, 0px));
}

.ff-footer a {
    color: #cbd5e1;
    text-decoration: none;
    transition: color 0.2s;
}

.ff-footer a:hover {
    color: var(--ff-accent);
}

.ff-footer-brand p {
    line-height: 1.65;
}

/* —— Tables & FAQ —— */
.ff-comparison th {
    background: var(--ff-primary-dark);
    color: #fff;
    font-weight: 600;
}

.ff-comparison .ff-check {
    color: var(--ff-primary);
    font-weight: 700;
}

.ff-faq .accordion-item {
    border: none;
    margin-bottom: 0.65rem;
    border-radius: 0.75rem !important;
    overflow: hidden;
    box-shadow: 0 2px 8px var(--ff-shadow);
    background: var(--ff-card);
}

.ff-faq .accordion-button {
    font-weight: 600;
    border-radius: 0.75rem !important;
    background: var(--ff-card);
    color: var(--ff-dark);
}

.ff-faq .accordion-button:not(.collapsed) {
    background: color-mix(in srgb, var(--ff-primary) 12%, var(--ff-card));
    color: var(--ff-primary-dark);
    box-shadow: none;
}

.ff-faq .accordion-body {
    background: var(--ff-card-muted);
}

.ff-contact-card {
    border-radius: 1.25rem;
    border: 1px solid var(--ff-border);
    padding: 1.75rem;
    height: 100%;
    background: var(--ff-card);
    transition: box-shadow 0.2s;
}

.ff-contact-card:hover {
    box-shadow: 0 12px 32px var(--ff-shadow);
}

.ff-panel-card {
    background: var(--ff-card);
    border: 1px solid var(--ff-border) !important;
    border-radius: 1.25rem !important;
    box-shadow: 0 8px 28px var(--ff-shadow) !important;
}

.ff-public .form-control,
.ff-public .form-select {
    background: var(--ff-card);
    border-color: var(--ff-border);
    color: var(--ff-dark);
}

.ff-public .form-control:focus,
.ff-public .form-select:focus {
    background: var(--ff-card);
    border-color: color-mix(in srgb, var(--ff-primary) 45%, transparent);
    box-shadow: 0 0 0 0.2rem color-mix(in srgb, var(--ff-primary) 18%, transparent);
}

.ff-public .form-label {
    color: var(--ff-dark);
    font-weight: 600;
}

.ff-comparison table {
    background: var(--ff-card);
}

.ff-comparison td,
.ff-comparison th {
    border-color: var(--ff-border) !important;
}

.ff-comparison tbody tr:nth-child(even) {
    background: color-mix(in srgb, var(--ff-surface-alt) 45%, var(--ff-card));
}

.ff-prose p {
    line-height: 1.75;
    color: var(--ff-muted);
}

.ff-prose strong {
    color: var(--ff-dark);
}

.ff-prose h3 {
    color: var(--ff-dark);
}

.ff-prose ul,
.ff-prose ol {
    color: var(--ff-muted);
    line-height: 1.7;
    padding-left: 1.25rem;
}

.ff-prose a {
    color: var(--ff-primary);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.ff-footer-legal a {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
}

.ff-footer-legal a:hover {
    color: #fff;
    text-decoration: underline;
}

.ff-hero-visual-wrap {
    position: relative;
    display: inline-block;
    max-width: 100%;
    animation: ff-float 6s ease-in-out infinite;
}

.ff-hero-visual-glow {
    position: absolute;
    inset: -12%;
    background: radial-gradient(circle, color-mix(in srgb, var(--ff-accent) 35%, transparent), transparent 70%);
    z-index: -1;
    pointer-events: none;
}

@keyframes ff-float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.ff-hero-visual {
    max-height: 420px;
    width: 100%;
    object-fit: cover;
    border: 3px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 28px 60px rgba(0, 0, 0, 0.35);
}

.ff-hero .btn-lg {
    font-size: 0.95rem;
    padding: 0.5rem 1.15rem;
}

@media (max-width: 575.98px) {
    .ff-hero .d-flex.flex-wrap.gap-3 {
        gap: 0.65rem !important;
    }

    .ff-hero .btn-lg {
        width: 100%;
        max-width: 280px;
    }
}

.ff-brand .ff-logo {
    background: transparent !important;
}

/* —— Media frames —— */
.ff-media-frame {
    border-radius: 1.25rem;
    overflow: hidden;
    box-shadow: 0 24px 48px var(--ff-shadow);
    border: 1px solid var(--ff-border);
}

.ff-media-frame--interactive {
    transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.ff-media-frame--interactive:hover {
    transform: scale(1.02);
    box-shadow: 0 32px 56px var(--ff-shadow);
}

.ff-media-frame--interactive .ff-media-cover {
    transition: transform 0.5s ease;
}

.ff-media-frame--interactive:hover .ff-media-cover {
    transform: scale(1.06);
}

.ff-media-cover {
    aspect-ratio: 4 / 3;
    object-fit: cover;
    display: block;
    width: 100%;
}

.ff-media-frame img[src$=".svg"] {
    object-fit: contain;
    background: var(--ff-surface-alt);
    padding: 1rem;
}

/* —— Gallery —— */
.ff-gallery-card {
    background: var(--ff-card);
    border-radius: 1.25rem;
    overflow: hidden;
    border: 1px solid var(--ff-border);
    box-shadow: 0 4px 16px var(--ff-shadow);
    height: 100%;
    transition: transform 0.25s, box-shadow 0.25s;
}

.ff-gallery-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 40px var(--ff-shadow);
}

.ff-gallery-img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    display: block;
}

.ff-gallery-caption {
    padding: 1.15rem 1.25rem;
}

.ff-gallery-card__media {
    overflow: hidden;
}

.ff-gallery-card:hover .ff-gallery-img {
    transform: scale(1.08);
}

.ff-gallery-img {
    transition: transform 0.45s ease;
}

/* —— Photo feature cards —— */
.ff-feature-card--photo,
.ff-trust-card,
.ff-role-card {
    padding: 0;
    overflow: hidden;
}

.ff-feature-card__media,
.ff-trust-card__media,
.ff-role-card__media {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 10;
}

.ff-feature-card__img,
.ff-trust-card__img,
.ff-role-card__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.45s ease;
}

.ff-feature-card--photo:hover .ff-feature-card__img,
.ff-trust-card:hover .ff-trust-card__img,
.ff-role-card:hover .ff-role-card__img {
    transform: scale(1.07);
}

.ff-feature-card__badge,
.ff-trust-card__icon,
.ff-role-card__badge {
    position: absolute;
    bottom: 0.75rem;
    left: 0.75rem;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 0.75rem;
    background: color-mix(in srgb, var(--ff-card) 94%, transparent);
    color: var(--ff-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    box-shadow: 0 4px 14px var(--ff-shadow);
    border: 1px solid var(--ff-border);
}

.ff-trust-card__icon {
    bottom: auto;
    top: 0.75rem;
}

.ff-feature-card__body,
.ff-trust-card__body,
.ff-role-card__body {
    padding: 1.25rem 1.35rem 1.35rem;
}

.ff-trust-card__media {
    aspect-ratio: 4 / 3;
}

.ff-role-card {
    border-radius: 1.25rem;
    background: var(--ff-card);
    border: 1px solid var(--ff-border);
    box-shadow: 0 4px 16px var(--ff-shadow);
    height: 100%;
    transition: transform 0.25s, box-shadow 0.25s;
}

.ff-role-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 40px var(--ff-shadow);
}

.ff-role-card__media {
    aspect-ratio: 3 / 2;
}

.ff-role-card__title {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 800;
    font-size: 1.1rem;
    color: var(--ff-dark);
    margin-bottom: 0.35rem;
}

/* —— Bento gallery —— */
.ff-bento {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    grid-auto-rows: minmax(140px, auto);
    gap: 1rem;
}

.ff-bento__item {
    position: relative;
    border-radius: 1.25rem;
    overflow: hidden;
    min-height: 200px;
    box-shadow: 0 8px 28px var(--ff-shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.ff-bento__item:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 44px var(--ff-shadow);
}

.ff-bento__item--1 { grid-column: span 12; min-height: 280px; }
.ff-bento__item--2 { grid-column: span 6; }
.ff-bento__item--3 { grid-column: span 6; }

@media (min-width: 768px) {
    .ff-bento__item--1 { grid-column: span 7; grid-row: span 2; min-height: 360px; }
    .ff-bento__item--2 { grid-column: span 5; }
    .ff-bento__item--3 { grid-column: span 5; }
}

.ff-bento__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    min-height: 200px;
    transition: transform 0.5s ease;
}

.ff-bento__item:hover .ff-bento__img {
    transform: scale(1.05);
}

.ff-bento__overlay {
    position: absolute;
    inset: auto 0 0 0;
    padding: 1.5rem 1.35rem;
    background: linear-gradient(to top, rgba(15, 23, 42, 0.88), transparent);
    color: #fff;
}

.ff-bento__overlay p {
    opacity: 0.9;
}

/* —— Ecosystem with photo backdrop —— */
.ff-ecosystem-section {
    position: relative;
    overflow: hidden;
}

.ff-ecosystem-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.ff-ecosystem-bg__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.14;
}

.ff-ecosystem-content {
    position: relative;
    z-index: 1;
}

.ff-ecosystem-section .ff-flow-step {
    background: var(--ff-card);
}

/* —— Contact photo cards —— */
.ff-contact-card--photo {
    padding: 0;
    overflow: hidden;
    text-align: left;
}

.ff-contact-card__media {
    aspect-ratio: 16 / 9;
    overflow: hidden;
}

.ff-contact-card__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.ff-contact-card--photo:hover .ff-contact-card__img {
    transform: scale(1.06);
}

.ff-contact-card__body {
    padding: 1.25rem;
}

/* —— Scroll reveal —— */
.ff-reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.65s ease, transform 0.65s ease;
}

.ff-reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.ff-reveal--delay.is-visible {
    transition-delay: 0.12s;
}

/* —— Pricing —— */
.ff-pricing-card {
    position: relative;
    background: var(--ff-card);
    border: 1px solid var(--ff-border);
    border-radius: 1.35rem;
    padding: 2rem 1.75rem;
    height: 100%;
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 20px var(--ff-shadow);
    transition: transform 0.2s, box-shadow 0.2s;
}

.ff-pricing-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 40px var(--ff-shadow);
}

.ff-pricing-card--featured {
    border-color: var(--ff-primary);
    box-shadow: 0 12px 40px color-mix(in srgb, var(--ff-primary) 22%, transparent);
}

.ff-pricing-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--ff-gradient);
    color: #fff;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 0.35rem 0.85rem;
    border-radius: 999px;
}

.ff-pricing-price {
    margin: 1.25rem 0;
}

.ff-pricing-price .amount {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--ff-dark);
    line-height: 1;
}

.ff-pricing-price .period {
    font-size: 1rem;
    color: var(--ff-muted);
    font-weight: 500;
}

.ff-pricing-features {
    list-style: none;
    padding: 0;
    margin: 0 0 1.5rem;
    flex-grow: 1;
}

.ff-pricing-features li {
    padding: 0.45rem 0;
    font-size: 0.9rem;
    color: var(--ff-muted);
    display: flex;
    gap: 0.5rem;
    align-items: flex-start;
}

.ff-pricing-features li i {
    margin-top: 0.2rem;
}

/* —— Stat icons —— */
.ff-stat-icon {
    width: 2.75rem;
    height: 2.75rem;
    margin: 0 auto 1rem;
    border-radius: 0.85rem;
    background: color-mix(in srgb, var(--ff-primary) 14%, var(--ff-card));
    color: var(--ff-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

/* Primary buttons on light (earthy) sections */
.ff-section .ff-btn-primary,
.ff-section-alt .ff-btn-primary,
.ff-section-tint .ff-btn-primary,
.ff-image-text-stack .ff-btn-primary,
.ff-panel-card .ff-btn-primary {
    color: #fff;
}

.ff-public .alert-success {
    background: color-mix(in srgb, var(--ff-primary) 14%, var(--ff-card));
    border: 1px solid color-mix(in srgb, var(--ff-primary) 28%, transparent);
    color: var(--ff-primary-dark);
}

/* —— Lists in content blocks —— */
.ff-check-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.ff-check-list li {
    padding: 0.5rem 0 0.5rem 1.75rem;
    position: relative;
    color: var(--ff-muted);
    line-height: 1.55;
}

.ff-check-list li::before {
    content: '\f00c';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    left: 0;
    color: var(--ff-primary);
}

/* —— Site container —— */
.ff-site-container {
    width: 100%;
    max-width: 1140px;
    padding-left: clamp(1rem, 4vw, 1.5rem);
    padding-right: clamp(1rem, 4vw, 1.5rem);
}

.ff-public .container {
    padding-left: clamp(1rem, 4vw, 1.5rem);
    padding-right: clamp(1rem, 4vw, 1.5rem);
}

/* —— Tables scroll on small screens —— */
.ff-table-scroll {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border-radius: 0.75rem;
}

.ff-table-scroll table {
    min-width: 520px;
    margin-bottom: 0;
}

/* —— Ecosystem mobile —— */
.ff-ecosystem-flow {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
}

.ff-ecosystem-arrow {
    color: var(--ff-accent);
    font-size: 1.25rem;
    line-height: 1;
    width: 100%;
    text-align: center;
    margin: 0.25rem 0;
}

/* —— Interactive polish —— */
.ff-icon-card,
.ff-stat-card,
.ff-gallery-card,
.ff-pricing-card {
    cursor: default;
}

@media (hover: hover) {
    .ff-icon-card:active,
    .ff-stat-card:active {
        transform: translateY(-2px);
    }
}

/* —— Desktop / laptop spacing —— */
@media (min-width: 992px) {
    .ff-hero {
        padding-top: 2rem;
        padding-bottom: 3.25rem;
    }

    .ff-hero .row {
        --bs-gutter-y: 1.5rem;
    }

    .ff-hero h1 {
        font-size: clamp(2.35rem, 3.2vw, 3.1rem);
    }

    .ff-hero-visual {
        max-height: 380px;
    }

    .ff-section {
        padding: 3rem 0;
    }

    .ff-hero + .ff-section,
    .ff-hero + .ff-section-alt,
    .ff-hero + .ff-section-tint,
    .ff-hero + .ff-image-text-stack,
    .ff-hero + .ff-ecosystem-section {
        padding-top: 2.25rem;
    }

    .ff-cta {
        padding: 3rem 0;
        padding-bottom: calc(3rem + env(safe-area-inset-bottom, 0px));
    }
}

@media (min-width: 1200px) {
    .ff-hero {
        padding-top: 1.85rem;
        padding-bottom: 3rem;
    }
}

/* —— Responsive —— */
@media (max-width: 991.98px) {
    .ff-hero .lead {
        max-width: 100%;
    }

    .ff-ecosystem-hub {
        width: 120px;
        height: 120px;
        font-size: 0.72rem;
    }

    .ff-pricing-card--featured {
        margin-top: 1rem;
    }

    .ff-hero-visual-wrap {
        margin-top: 0.5rem;
    }
}

@media (max-width: 767.98px) {
    body.ff-public {
        background-attachment: scroll;
    }

    .ff-public .container,
    .ff-site-container {
        max-width: 100%;
    }

    .ff-navbar .navbar-collapse {
        background: color-mix(in srgb, var(--ff-dark) 98%, transparent);
        margin: 0.75rem -0.5rem 0;
        padding: 0.75rem 1rem 1rem;
        border-radius: 0.75rem;
        border: 1px solid rgba(255, 255, 255, 0.08);
    }

    .ff-navbar .nav-link {
        padding: 0.65rem 0.5rem !important;
    }

    .ff-navbar .ff-btn-primary {
        width: 100%;
        margin-top: 0.5rem;
    }

    .ff-brand-text {
        white-space: normal;
        max-width: min(100%, 200px);
    }

    .ff-hero {
        padding-top: 1.5rem;
        padding-bottom: clamp(2rem, 8vw, 2.75rem);
        text-align: center;
    }

    .ff-hero h1 {
        font-size: clamp(1.65rem, 7.5vw, 2.15rem);
        line-height: 1.15;
    }

    .ff-hero .lead {
        margin-left: auto;
        margin-right: auto;
        font-size: 1rem;
    }

    .ff-hero-badge {
        font-size: 0.72rem;
        margin-bottom: 0.65rem;
    }

    .ff-hero-visual-wrap {
        width: 100%;
        max-width: min(100%, 360px);
        margin-left: auto;
        margin-right: auto;
    }

    .ff-hero-visual,
    .ff-media-cover,
    .ff-feature-card__img,
    .ff-gallery-img,
    .ff-bento__img {
        max-height: 240px;
        width: 100%;
        background: var(--ff-surface-alt);
    }

    .ff-hero-actions {
        justify-content: center !important;
        width: 100%;
    }

    .ff-hero-actions .btn {
        flex: 1 1 calc(50% - 0.35rem);
        min-width: 0;
        max-width: 100%;
    }

    .ff-section {
        padding: clamp(1.75rem, 6vw, 2.5rem) 0;
    }

    .ff-hero + .ff-section,
    .ff-hero + .ff-section-alt,
    .ff-hero + .ff-section-tint,
    .ff-hero + .ff-image-text-stack,
    .ff-hero + .ff-ecosystem-section {
        padding-top: 1.5rem;
    }

    .ff-section-title {
        font-size: clamp(1.35rem, 5.5vw, 1.65rem);
        margin-bottom: 0.5rem;
    }

    .ff-section-sub {
        margin-bottom: 1.35rem;
        padding: 0 0.25rem;
        font-size: 0.95rem;
    }

    .ff-ecosystem-flow {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.5rem;
        width: 100%;
        max-width: 22rem;
        margin-left: auto;
        margin-right: auto;
    }

    .ff-flow-step {
        width: 100%;
        text-align: center;
        font-size: 0.75rem;
        padding: 0.5rem 0.65rem;
        border-radius: 0.75rem;
    }

    .ff-ecosystem-hub {
        width: 104px;
        height: 104px;
        margin: 0.75rem auto;
        font-size: 0.68rem;
    }

    .ff-bento {
        gap: 0.75rem;
    }

    .ff-bento__item {
        min-height: 180px;
    }

    .ff-bento__item--1 {
        min-height: 220px;
    }

    .ff-bento__overlay {
        padding: 1rem 1rem;
    }

    .ff-image-text-stack .ff-section-title {
        text-align: center;
    }

    .ff-image-text-stack .text-primary {
        text-align: center;
    }

    .ff-stat-card {
        padding: 1.35rem 0.85rem;
    }

    .ff-stat-card .value {
        font-size: clamp(1.5rem, 6vw, 2rem);
    }

    .ff-icon-card {
        padding: 1.35rem;
    }

    .ff-flow-step {
        font-size: 0.8rem;
        padding: 0.55rem 0.9rem;
    }

    .ff-cta .d-flex {
        flex-direction: column;
        align-items: stretch !important;
    }

    .ff-cta .btn {
        width: 100%;
    }

    .ff-pricing-price .amount {
        font-size: 2rem;
    }

    .ff-footer .row > div {
        text-align: center;
    }

    .ff-footer-brand {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .ff-image-text-stack .ff-media-frame {
        margin-bottom: 1.5rem;
    }
}

@media (max-width: 575.98px) {
    .ff-gallery-caption {
        padding: 0.85rem 1rem;
    }

    .ff-pricing-card {
        padding: 1.5rem 1.25rem;
    }

    .ff-contact-card {
        padding: 1.25rem;
    }

    .ff-hero-actions .btn {
        flex: 1 1 100%;
    }

    .ff-hero-actions .btn-lg {
        font-size: 0.9rem;
        padding: 0.55rem 1rem;
        width: 100%;
        max-width: 320px;
    }

    .ff-public .container,
    .ff-site-container {
        padding-left: max(0.875rem, env(safe-area-inset-left, 0.875rem));
        padding-right: max(0.875rem, env(safe-area-inset-right, 0.875rem));
    }

    .ff-icon-card,
    .ff-gallery-card,
    .ff-role-card {
        max-width: 100%;
    }

    .ff-section .row.g-4 > [class*='col-'] {
        padding-left: 0.75rem;
        padding-right: 0.75rem;
    }

    .ff-role-card__title {
        font-size: 1rem;
    }

    .ff-feature-card__body,
    .ff-trust-card__body,
    .ff-role-card__body {
        padding: 1rem 1.1rem 1.1rem;
    }
}

@media (min-width: 1200px) {
    .ff-site-container {
        max-width: 1200px;
    }
}
