/* =============================================================================
   Figtree Systems — Global Styles
   Applies to all pages. Header, skip link, base resets.
   Design system: Raleway / Open Sans / #44803C palette
   ============================================================================= */

/* -----------------------------------------------------------------------------
   Root design tokens (available globally across all templates)
   ----------------------------------------------------------------------------- */
:root {
    --fg-green:        #44803C;
    --fg-green-dark:   #2d5a27;
    --fg-green-deeper: #1e3d1a;
    --fg-green-light:  #eef6ec;
    --fg-green-pale:   #f5faf4;
    --fg-green-mid:    #5a9e51;
    --fg-off-white:    #f8f8f6;
    --fg-text:         #222220;
    --fg-radius:       3px;
    --fg-max-w:        1200px;
    --fg-header-h:     96px;

    /* Extended palette — home page and future dark-panel sections */
    --fg-green-900: #0d2f24;
    --fg-green-800: #164637;
    --fg-green-700: #216a4f;
    --fg-green-600: #2ca85c;
    --fg-green-500: #39c568;
    --fg-lime:      #c9f36f;
    --fg-surface:   rgba(255,255,255,.82);
    --fg-surface-strong: #ffffff;
    --fg-border:    rgba(13,47,36,.1);
    --fg-shadow:    0 20px 60px rgba(13,47,36,.12);
    --fg-shadow-soft: 0 12px 28px rgba(13,47,36,.08);
    --fg-radius-xl: 28px;
    --fg-radius-lg: 20px;
    --fg-radius-md: 16px;
}

/* -----------------------------------------------------------------------------
   Skip to content link (accessibility)
   ----------------------------------------------------------------------------- */
.fg-skip-link {
    position: absolute;
    top: -100%;
    left: 1rem;
    z-index: 9999;
    background: var(--fg-green);
    color: #fff;
    font-family: 'Raleway', sans-serif;
    font-weight: 700;
    font-size: 0.9rem;
    padding: 0.6em 1.2em;
    border-radius: 0 0 var(--fg-radius) var(--fg-radius);
    text-decoration: none;
    transition: top 0.2s;
}

.fg-skip-link:focus {
    top: 0;
}

/* -----------------------------------------------------------------------------
   HEADER
   ----------------------------------------------------------------------------- */
.fg-header {
    position: sticky;
    top: 0;
    z-index: 500;
    background: #fff;
    border-bottom: 1px solid #e4ede3;
    transition: box-shadow 0.25s;
}

/* Elevated shadow once user scrolls */
.fg-header--scrolled {
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.10);
}

/* Admin bar offset */
.admin-bar .fg-header {
    top: 32px;
}

@media screen and (max-width: 782px) {
    .admin-bar .fg-header {
        top: 46px;
    }
}

/* Inner layout ---------------------------------------------------------------- */
.fg-header__inner {
    max-width: var(--fg-max-w);
    margin-inline: auto;
    padding-inline: clamp(1rem, 5vw, 2rem);
    height: var(--fg-header-h);
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

/* Logo ----------------------------------------------------------------------- */
.fg-header__logo-link {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    text-decoration: none;
}

.fg-header__logo {
    height: 88px;
    width: auto;
    display: block;
}

/* Navigation ----------------------------------------------------------------- */
.fg-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1 1 auto;
}

.fg-nav__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    gap: 0.1rem;
}

.fg-nav__list li {
    position: relative;
}

.fg-nav__list li a {
    display: block;
    padding: 0.5em 0.9em;
    font-family: 'Raleway', sans-serif;
    font-weight: 600;
    font-size: 0.92rem;
    color: var(--fg-text);
    text-decoration: none;
    border-radius: var(--fg-radius);
    transition: color 0.15s, background 0.15s;
    white-space: nowrap;
}

.fg-nav__list li a:hover,
.fg-nav__list li.current-menu-item > a,
.fg-nav__list li.current-page-ancestor > a {
    color: var(--fg-green);
    background: var(--fg-green-pale);
}

/* Dropdown arrow indicator on parent items */
.fg-nav__list li.menu-item-has-children > a::after {
    content: '';
    display: inline-block;
    width: 0.45em;
    height: 0.45em;
    margin-left: 0.4em;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg) translateY(-2px);
    vertical-align: middle;
}

/* Sub-menu dropdown panel */
.fg-nav__list .sub-menu {
    list-style: none;
    margin: 0;
    padding: 0.4rem;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 240px;
    background: #fff;
    border-radius: var(--fg-radius);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    display: none;
    z-index: 500;
}

.fg-nav__list li.menu-item-has-children:hover > .sub-menu,
.fg-nav__list li.menu-item-has-children:focus-within > .sub-menu {
    display: block;
}

.fg-nav__list .sub-menu li {
    position: static;
}

.fg-nav__list .sub-menu li a {
    color: var(--fg-text);
    white-space: normal;
    font-weight: 500;
}

.fg-nav__list .sub-menu li a:hover {
    color: var(--fg-green);
    background: var(--fg-green-pale);
}

/* Hide mobile-only CTA block in desktop nav */
.fg-nav__mobile-cta {
    display: none;
}

/* Actions (desktop CTA + hamburger) ----------------------------------------- */
.fg-header__actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-shrink: 0;
}

/* CTA button ----------------------------------------------------------------- */
.fg-btn {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    border-radius: var(--fg-radius);
    font-family: 'Raleway', sans-serif;
    font-weight: 700;
    transition: background 0.2s, color 0.2s;
    line-height: 1.2;
}

.fg-btn--cta {
    padding: 0.6em 1.4em;
    background: var(--fg-green);
    color: #fff;
    font-size: 0.9rem;
    white-space: nowrap;
}

.fg-btn--cta:hover,
.fg-btn--cta:focus-visible {
    background: var(--fg-green-dark);
    color: #fff;
}

/* Hamburger button ----------------------------------------------------------- */
.fg-hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 40px;
    height: 40px;
    padding: 0.5rem;
    background: none;
    border: none;
    cursor: pointer;
    border-radius: var(--fg-radius);
    transition: background 0.15s;
}

.fg-hamburger:hover {
    background: var(--fg-green-pale);
}

.fg-hamburger__bar {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--fg-text);
    border-radius: 2px;
    transition: transform 0.25s ease, opacity 0.2s ease;
    transform-origin: center;
}

/* Hamburger → X animation */
.fg-hamburger--open .fg-hamburger__bar:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.fg-hamburger--open .fg-hamburger__bar:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

.fg-hamburger--open .fg-hamburger__bar:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* =============================================================================
   RESPONSIVE — mobile nav
   ============================================================================= */
@media (max-width: 860px) {

    .fg-hamburger {
        display: flex;
    }

    /* Desktop CTA hidden — shown in the mobile nav panel instead */
    .fg-header__actions .fg-btn--cta {
        display: none;
    }

    .fg-header__actions {
        margin-left: auto;
    }

    /* Full-screen slide-in nav panel */
    .fg-nav {
        position: fixed;
        top: var(--fg-header-h);
        left: 0;
        right: 0;
        bottom: 0;
        background: #fff;
        flex-direction: column;
        align-items: stretch;
        overflow-y: auto;
        border-top: 2px solid var(--fg-green-light);
        transform: translateX(100%);
        transition: transform 0.3s ease;
        z-index: 499;
        justify-content: flex-start;
    }

    /* Admin bar offset for mobile nav panel */
    .admin-bar .fg-nav {
        top: calc(var(--fg-header-h) + 46px);
    }

    @media screen and (min-width: 601px) {
        .admin-bar .fg-nav {
            top: calc(var(--fg-header-h) + 32px);
        }
    }

    .fg-nav--open {
        transform: translateX(0);
    }

    .fg-nav__list {
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 1rem 1.25rem;
    }

    .fg-nav__list li a {
        padding: 0.85em 0.75em;
        font-size: 1rem;
        border-radius: var(--fg-radius);
    }

    /* Sub-menus expand inline in the mobile slide-in panel */
    .fg-nav__list .sub-menu {
        position: static;
        display: none;
        box-shadow: none;
        padding: 0 0 0 1rem;
        min-width: 0;
    }

    .fg-nav__list li.menu-item-has-children:hover > .sub-menu,
    .fg-nav__list li.menu-item-has-children:focus-within > .sub-menu,
    .fg-nav__list li.menu-item-has-children.fg-submenu-open > .sub-menu {
        display: block;
    }

    /* Mobile CTA block at bottom of nav panel */
    .fg-nav__mobile-cta {
        display: flex;
        padding: 1.25rem;
        border-top: 1px solid var(--fg-green-light);
        margin-top: auto;
    }

    .fg-nav__mobile-cta .fg-btn--cta {
        width: 100%;
        justify-content: center;
        padding: 0.85em 1.5em;
        font-size: 1rem;
    }
}

/* =============================================================================
   Footer
   ============================================================================= */

/* -----------------------------------------------------------------------------
   Outer shell
   ----------------------------------------------------------------------------- */
.fg-footer {
    background: var(--fg-green-dark);
    color: #fff;
    font-family: 'Open Sans', sans-serif;
    font-size: 0.88rem;
}

/* Inner centred column */
.fg-footer__inner {
    max-width: var(--fg-max-w);
    margin-inline: auto;
    padding: 3rem clamp(1rem, 5vw, 2rem) 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.25rem;
    text-align: center;
}

/* -----------------------------------------------------------------------------
   Phone numbers
   ----------------------------------------------------------------------------- */
.fg-footer__phones {
    margin: 0;
    line-height: 1.6;
    opacity: 0.9;
    letter-spacing: 0.01em;
}

/* -----------------------------------------------------------------------------
   Address
   ----------------------------------------------------------------------------- */
.fg-footer__address {
    margin: 0;
    opacity: 0.75;
}

/* -----------------------------------------------------------------------------
   Bottom row — LinkedIn icon · privacy link · copyright
   ----------------------------------------------------------------------------- */
.fg-footer__bottom {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    flex-wrap: wrap;
    justify-content: center;
    padding-top: 0.75rem;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    width: 100%;
}

/* LinkedIn icon link */
.fg-footer__linkedin {
    display: inline-flex;
    align-items: center;
    color: #fff;
    text-decoration: none;
    opacity: 0.85;
    transition: opacity 0.2s;
}

.fg-footer__linkedin:hover,
.fg-footer__linkedin:focus-visible {
    opacity: 1;
}

.fg-footer__linkedin svg {
    width: 24px;
    height: 24px;
}

/* Privacy link */
.fg-footer__privacy {
    color: #fff;
    text-decoration: none;
    opacity: 0.75;
    transition: opacity 0.2s;
}

.fg-footer__privacy:hover,
.fg-footer__privacy:focus-visible {
    opacity: 1;
    text-decoration: underline;
}

/* Copyright */
.fg-footer__copy {
    opacity: 0.65;
}

/* =============================================================================
   Footer — responsive
   ============================================================================= */
@media (max-width: 600px) {

    .fg-footer__phones {
        font-size: 0.82rem;
    }

    .fg-footer__bottom {
        gap: 0.9rem;
    }
}

/* =============================================================================
   Download Guide Modal  (site-wide reusable component)
   Triggered by any [data-modal="download-guide"] button.
   ============================================================================= */

/* Overlay backdrop */
.fg-modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 1000;
    background: rgba(0, 0, 0, 0.55);
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.fg-modal-overlay--open {
    display: flex;
}

/* Dialog box */
.fg-modal {
    position: relative;
    background: var(--fg-surface-strong);
    border-radius: var(--fg-radius-md);
    box-shadow: var(--fg-shadow);
    width: 100%;
    max-width: 860px;
    max-height: 90vh;
    overflow-y: auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
}

/* Close button */
.fg-modal__close {
    position: absolute;
    top: 0.9rem;
    right: 0.9rem;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: none;
    border: none;
    cursor: pointer;
    border-radius: var(--fg-radius);
    color: var(--fg-text);
    font-size: 1.4rem;
    line-height: 1;
    opacity: 0.55;
    transition: opacity 0.15s, background 0.15s;
    z-index: 1;
}

.fg-modal__close:hover,
.fg-modal__close:focus-visible {
    opacity: 1;
    background: var(--fg-green-pale);
}

/* Left column: form content */
.fg-modal__body {
    padding: 2.25rem 2rem 2rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.fg-modal__title {
    font-family: 'Raleway', sans-serif;
    font-weight: 800;
    font-size: 1.25rem;
    line-height: 1.25;
    color: var(--fg-text);
    margin: 0;
    padding-right: 2rem; /* clear close button */
}

.fg-modal__intro {
    font-family: 'Open Sans', sans-serif;
    font-size: 0.875rem;
    line-height: 1.6;
    color: var(--fg-text);
    opacity: 0.85;
    margin: 0;
}

/* Form fields */
.fg-modal__form {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: 0.25rem;
}

.fg-modal__field {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.fg-modal__field label {
    font-family: 'Raleway', sans-serif;
    font-weight: 700;
    font-size: 0.82rem;
    color: var(--fg-text);
}

.fg-modal__field input:not(.fg-modal__phone-number) {
    padding: 0.6em 0.85em;
    border: 1px solid var(--fg-border);
    border-radius: var(--fg-radius);
    font-family: 'Open Sans', sans-serif;
    font-size: 0.9rem;
    color: var(--fg-text);
    background: #fff;
    transition: border-color 0.15s, box-shadow 0.15s;
    outline: none;
    width: 100%;
    box-sizing: border-box;
}

.fg-modal__field input:not(.fg-modal__phone-number):focus {
    border-color: var(--fg-green);
    box-shadow: 0 0 0 3px var(--fg-green-light);
}

.fg-modal__field input.fg-modal__field--error {
    border-color: #c0392b;
}

.fg-modal__error-msg {
    font-family: 'Open Sans', sans-serif;
    font-size: 0.78rem;
    color: #c0392b;
    display: none;
}

.fg-modal__field--has-error .fg-modal__error-msg {
    display: block;
}

/* Phone field: prefix dropdown + number input grouped in one visual border */
.fg-modal__phone-group {
    display: flex;
    align-items: stretch;
    border: 1px solid var(--fg-border);
    border-radius: var(--fg-radius);
    overflow: hidden;
    background: #fff;
    transition: border-color 0.15s, box-shadow 0.15s;
}

.fg-modal__phone-group:focus-within {
    border-color: var(--fg-green);
    box-shadow: 0 0 0 3px var(--fg-green-light);
}

.fg-modal__phone-prefix {
    flex-shrink: 0;
    width: auto;
    padding: 0.6em 0.65em;
    border: none;
    border-right: 1px solid var(--fg-border);
    border-radius: 0;
    background: var(--fg-green-pale);
    font-family: 'Open Sans', sans-serif;
    font-size: 0.9rem;
    color: var(--fg-text);
    cursor: pointer;
    outline: none;
    appearance: none;
    -webkit-appearance: none;
    /* simple caret */
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%23444'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.5em center;
    padding-right: 1.6em;
}

.fg-modal__phone-prefix:focus {
    outline: none;
}

.fg-modal__phone-number {
    flex: 1;
    width: auto;
    padding: 0.6em 0.85em;
    border: none;
    border-radius: 0;
    font-family: 'Open Sans', sans-serif;
    font-size: 0.9rem;
    color: var(--fg-text);
    background: #fff;
    outline: none;
    min-width: 0;
}


/* -----------------------------------------------------------------------------
   Searchable phone country-code combobox — progressive enhancement of the
   phone-prefix <select>s (js/phone-prefix-search.js). The native select
   stays in the DOM (visually hidden below) so posted values are unaffected.
   Structural/list styling here is shared by all 4 phone-prefix locations;
   the input's per-context look is matched to whichever flex container it
   sits inside — .fg-modal__phone-group here (Request a Demo page + brochure
   modal), .hm-phone-group in css/home.css (home page + Contact Us).
----------------------------------------------------------------------------- */
.fg-phone-combo {
    position: relative;
    flex-shrink: 0;
}

.fg-phone-combo__native-select {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.fg-modal__phone-group .fg-phone-combo__input {
    display: block;
    width: 130px;
    height: 100%;
    padding: 0.6em 1.6em 0.6em 0.65em;
    border: none;
    border-right: 1px solid var(--fg-border);
    border-radius: 0;
    background-color: var(--fg-green-pale);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%23444'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.5em center;
    font-family: 'Open Sans', sans-serif;
    font-size: 0.9rem;
    color: var(--fg-text);
    cursor: pointer;
    outline: none;
    box-sizing: border-box;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.fg-phone-combo__list {
    /* position:fixed (not absolute) + appended to <body> by the enhancer —
       .hm-phone-group / .fg-modal__phone-group both use overflow:hidden to
       clip their pill/grouped-border shape, which would otherwise clip an
       absolutely-positioned dropdown to invisibility. top/left are set
       inline by JS at open-time from the input's getBoundingClientRect(). */
    position: fixed;
    z-index: 1500; /* above .fg-modal-overlay (1000) so it works inside the brochure modal too */
    width: max-content;
    max-width: min(320px, 90vw);
    max-height: 16rem;
    overflow-y: auto;
    margin: 0;
    padding: 0.3rem 0;
    list-style: none;
    background: #fff;
    border: 1px solid var(--fg-border);
    border-radius: var(--fg-radius);
    box-shadow: var(--fg-shadow-soft);
}

.fg-phone-combo__list[hidden] {
    display: none;
}

.fg-phone-combo__list li {
    display: flex;
    align-items: center;
    min-height: 2.5em;
    padding: 0.55em 0.85em;
    font-family: 'Open Sans', sans-serif;
    font-size: 0.9rem;
    color: var(--fg-text);
    cursor: pointer;
    box-sizing: border-box;
}

.fg-phone-combo__option--active,
.fg-phone-combo__list li:hover {
    background: var(--fg-green-pale);
}

.fg-phone-combo__option--selected {
    font-weight: 600;
}

.fg-phone-combo__empty {
    color: rgba(34, 34, 32, 0.55);
    cursor: default;
}

@media (max-width: 600px) {
    .fg-phone-combo__list li {
        min-height: 2.75em;
        padding: 0.7em 0.85em;
    }
}

.fg-modal__field--has-error .fg-modal__phone-group {
    border-color: #c0392b;
}

/* Submit button */
.fg-modal__submit {
    width: 100%;
    padding: 0.8em 1.5em;
    background: var(--fg-green);
    color: #fff;
    border: none;
    border-radius: var(--fg-radius);
    font-family: 'Raleway', sans-serif;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.2s;
    margin-top: 0.25rem;
}

.fg-modal__submit:hover,
.fg-modal__submit:focus-visible {
    background: var(--fg-green-dark);
}

.fg-modal__submit:disabled {
    opacity: 0.65;
    cursor: not-allowed;
}

/* Inline success/error notice */
.fg-modal__notice {
    display: none;
    padding: 0.75em 1em;
    border-radius: var(--fg-radius);
    font-family: 'Open Sans', sans-serif;
    font-size: 0.875rem;
}

.fg-modal__notice--success {
    background: var(--fg-green-light);
    color: var(--fg-green-dark);
    border: 1px solid var(--fg-green-mid);
}

.fg-modal__notice--error {
    background: #fdf0ee;
    color: #922b21;
    border: 1px solid #e8b4ae;
}

.fg-modal__notice--visible {
    display: block;
}

/* Right column: brochure preview image */
.fg-modal__preview {
    border-radius: 0 var(--fg-radius-md) var(--fg-radius-md) 0;
    overflow: hidden;
    background: var(--fg-green-pale);
    display: flex;
    align-items: stretch;
}

.fg-modal__preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Responsive: stack on mobile */
@media (max-width: 900px) {
    .fg-modal {
        grid-template-columns: 1fr;
        max-width: 500px;
    }

    .fg-modal__preview {
        display: none;
    }
}

/* =============================================================================
   Feature Modal  (site-wide reusable component)
   Triggered by any [data-feature-modal="<key>"] element. Shows a "Features"
   heading, short bullet list, and (usually) a bare device-mockup image.
   Distinct from .fg-modal above (the lead-capture brochure-download modal) —
   this component has no form, just content, so it gets its own overlay/dialog
   classes rather than reusing that one.
   ============================================================================= */

.fg-feature-modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 1000;
    background: rgba(0, 0, 0, 0.55);
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.fg-feature-modal-overlay--open {
    display: flex;
}

/* Dialog box */
.fg-feature-modal {
    position: relative;
    background: var(--fg-surface-strong);
    border-radius: var(--fg-radius-md);
    box-shadow: var(--fg-shadow);
    width: 100%;
    max-width: 780px;
    max-height: 90vh;
    overflow-y: auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
}

/* APIs has no image — single-column, text only */
.fg-feature-modal--single {
    grid-template-columns: 1fr;
    max-width: 560px;
}

.fg-feature-modal__close {
    position: absolute;
    top: 0.9rem;
    right: 0.9rem;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: none;
    border: none;
    cursor: pointer;
    border-radius: var(--fg-radius);
    color: var(--fg-text);
    font-size: 1.4rem;
    line-height: 1;
    opacity: 0.55;
    transition: opacity 0.15s, background 0.15s;
    z-index: 1;
}

.fg-feature-modal__close:hover,
.fg-feature-modal__close:focus-visible {
    opacity: 1;
    background: var(--fg-green-pale);
}

/* Left column: heading + bullet list */
.fg-feature-modal__body {
    padding: 2.25rem 2rem 2rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.fg-feature-modal__title {
    font-family: 'Raleway', sans-serif;
    font-weight: 800;
    font-size: 1.25rem;
    line-height: 1.25;
    color: var(--fg-text);
    margin: 0;
    padding-right: 2rem; /* clear close button */
}

.fg-feature-modal__list {
    margin: 0;
    padding: 0 0 0 1.1rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.fg-feature-modal__list li {
    font-family: 'Open Sans', sans-serif;
    font-size: 0.9rem;
    line-height: 1.6;
    color: var(--fg-text);
    opacity: 0.85;
}

/* Right column: bare device-mockup image — no background panel */
.fg-feature-modal__image {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 2rem 2rem 0;
}

.fg-feature-modal__image img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    display: block;
}

/* Responsive: stack (image below text) rather than hide — the mockup is
   core content here, not a decorative preview. */
@media (max-width: 900px) {
    .fg-feature-modal {
        grid-template-columns: 1fr;
        max-width: 500px;
    }

    .fg-feature-modal__image {
        padding: 0 1.5rem 1.5rem;
    }
}

/* =============================================================================
   Cookie consent banner
   ============================================================================= */
.fg-cookie-banner {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10000; /* above header (9999) and modal overlays (1000) */
    background: #fff;
    border-top: 1px solid var(--fg-border, #e4ede3);
    box-shadow: 0 -8px 28px rgba(0,0,0,0.12);
    padding: 1.25rem 1.5rem;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.fg-cookie-banner--visible {
    transform: translateY(0);
}

.fg-cookie-banner__inner {
    max-width: var(--fg-max-w);
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.fg-cookie-banner__text {
    flex: 1;
    font-family: 'Open Sans', sans-serif;
    font-size: 0.9rem;
    line-height: 1.5;
    color: var(--fg-text);
    margin: 0;
}

.fg-cookie-banner__text a {
    color: var(--fg-green);
    text-decoration: underline;
}

.fg-cookie-banner__actions {
    display: flex;
    gap: 0.75rem;
    flex-shrink: 0;
}

/* Equal visual weight for both buttons — PECR requires reject to be as easy as accept */
.fg-cookie-banner__btn {
    font-family: 'Raleway', sans-serif;
    font-weight: 700;
    font-size: 0.9rem;
    padding: 0.7em 1.6em;
    border-radius: var(--fg-radius);
    cursor: pointer;
    border: 2px solid var(--fg-green);
    transition: background 0.2s, color 0.2s;
    white-space: nowrap;
}

.fg-cookie-banner__btn--accept {
    background: var(--fg-green);
    color: #fff;
}

.fg-cookie-banner__btn--accept:hover,
.fg-cookie-banner__btn--accept:focus-visible {
    background: var(--fg-green-dark);
    border-color: var(--fg-green-dark);
}

.fg-cookie-banner__btn--reject {
    background: #fff;
    color: var(--fg-green);
}

.fg-cookie-banner__btn--reject:hover,
.fg-cookie-banner__btn--reject:focus-visible {
    background: var(--fg-green-light);
}

@media (max-width: 700px) {
    .fg-cookie-banner__inner {
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
    }

    .fg-cookie-banner__actions {
        justify-content: stretch;
    }

    .fg-cookie-banner__btn {
        flex: 1;
    }
}

/* Footer "Cookie Settings" link — sits next to the existing Privacy link */
.fg-footer__cookie-settings {
    background: none;
    border: none;
    padding: 0;
    font: inherit;
    color: inherit;
    text-decoration: underline;
    cursor: pointer;
    opacity: 0.85;
}

.fg-footer__cookie-settings:hover,
.fg-footer__cookie-settings:focus-visible {
    opacity: 1;
}
