/* =============================================================================
   Figtree Systems — Home Page
   Scoped to .hm-page. Uses --fg-* design tokens only.
   Class prefix: hm-  |  BEM: hm-block__element--modifier
   ============================================================================= */

/* Smooth scroll — scoped to home page only */
html:has(.hm-page) {
    scroll-behavior: smooth;
}

/* -----------------------------------------------------------------------------
   Page wrapper & background
   ----------------------------------------------------------------------------- */
.hm-page {
    font-family: Inter, system-ui, sans-serif;
    color: var(--fg-green-900);
    line-height: 1.6;
    overflow-x: clip;
    background:
        radial-gradient(circle at top left, color-mix(in srgb, var(--fg-lime) 45%, transparent), transparent 28%),
        radial-gradient(circle at 90% 10%, color-mix(in srgb, var(--fg-green-600) 15%, transparent), transparent 20%),
        linear-gradient(180deg, var(--fg-surface-strong) 0%, var(--fg-off-white) 50%, var(--fg-green-pale) 100%);
}

.hm-page img { max-width: 100%; display: block; }

/* Shared inner container ----------------------------------------------------- */
.hm-inner {
    max-width: var(--fg-max-w);
    margin-inline: auto;
    padding-inline: clamp(1rem, 5vw, 2rem);
}

/* Shared section spacing ----------------------------------------------------- */
.hm-page section { padding: 3rem 0; }

/* -----------------------------------------------------------------------------
   Typography utilities
   ----------------------------------------------------------------------------- */
.hm-section-title {
    font-family: Manrope, Inter, sans-serif;
    font-size: clamp(2rem, 4vw, 3.25rem);
    line-height: 1.05;
    letter-spacing: -0.04em;
    margin: 0.875rem 0 1rem;
    color: var(--fg-green-900);
}

.hm-section-title--light {
    color: var(--fg-surface-strong);
}

.hm-section-lead {
    color: var(--fg-green-800);
    font-size: 1.05rem;
    max-width: 760px;
    opacity: 0.78;
}

/* -----------------------------------------------------------------------------
   Eyebrow label
   ----------------------------------------------------------------------------- */
.hm-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--fg-green-700);
}

.hm-eyebrow::before {
    content: "";
    width: 10px;
    height: 10px;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--fg-lime), var(--fg-green-500));
    box-shadow: 0 0 0 5px color-mix(in srgb, var(--fg-green-500) 14%, transparent);
    flex-shrink: 0;
}

.hm-eyebrow--light {
    color: color-mix(in srgb, var(--fg-lime) 80%, var(--fg-surface-strong));
}

.hm-eyebrow--light::before {
    box-shadow: 0 0 0 5px color-mix(in srgb, var(--fg-lime) 20%, transparent);
}

/* -----------------------------------------------------------------------------
   Buttons
   ----------------------------------------------------------------------------- */
.hm-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.625rem;
    padding: 0.9375rem 1.25rem;
    border-radius: var(--fg-radius-md);
    text-decoration: none;
    font-family: Inter, system-ui, sans-serif;
    font-weight: 800;
    font-size: 0.95rem;
    border: 1px solid transparent;
    transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
    line-height: 1.2;
}

.hm-btn:hover { transform: translateY(-2px); }

.hm-btn--primary {
    background: linear-gradient(135deg, var(--fg-lime), color-mix(in srgb, var(--fg-lime) 60%, var(--fg-surface-strong)));
    color: var(--fg-green-900);
    box-shadow: 0 14px 32px color-mix(in srgb, var(--fg-lime) 25%, transparent);
}

.hm-btn--primary:hover {
    background: linear-gradient(135deg, color-mix(in srgb, var(--fg-lime) 85%, var(--fg-green-500)), var(--fg-lime));
    color: var(--fg-green-900);
}

.hm-btn--secondary {
    border-color: color-mix(in srgb, var(--fg-surface-strong) 18%, transparent);
    background: color-mix(in srgb, var(--fg-surface-strong) 8%, transparent);
    color: var(--fg-surface-strong);
}

.hm-btn--light {
    background: var(--fg-surface-strong);
    color: var(--fg-green-800);
    border-color: transparent;
}

.hm-btn--light:hover { background: var(--fg-surface); }

/* -----------------------------------------------------------------------------
   Glass surface (brand card, answer box)
   ----------------------------------------------------------------------------- */
.hm-glass {
    background: var(--fg-surface);
    border: 1px solid color-mix(in srgb, var(--fg-surface-strong) 62%, transparent);
    backdrop-filter: blur(14px);
    border-radius: var(--fg-radius-xl);
    box-shadow: var(--fg-shadow);
}

/* -----------------------------------------------------------------------------
   Hero section
   ----------------------------------------------------------------------------- */
.hm-hero {
    position: relative;
    overflow: clip;
    padding: 4.5rem 0 2.5rem;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.hm-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: color-mix(in srgb, var(--fg-green-900) 30%, transparent);
    pointer-events: none;
}

.hm-hero .hm-inner { position: relative; z-index: 1; }

.hm-hero__grid {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 1.75rem;
    align-items: stretch;
}

/* Hero panel — dark card ---------------------------------------------------- */
.hm-hero__panel {
    background: linear-gradient(145deg,
        color-mix(in srgb, var(--fg-green-900) 98%, transparent),
        color-mix(in srgb, var(--fg-green-800) 94%, transparent));
    color: var(--fg-surface-strong);
    border-radius: 34px;
    padding: 2.5rem;
    box-shadow: 0 26px 70px color-mix(in srgb, var(--fg-green-900) 28%, transparent);
    position: relative;
    overflow: hidden;
}

.hm-hero__panel::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(120deg, transparent 0%, color-mix(in srgb, var(--fg-surface-strong) 5%, transparent) 22%, transparent 22.5%),
        radial-gradient(circle at 85% 18%, color-mix(in srgb, var(--fg-lime) 18%, transparent), transparent 22%),
        radial-gradient(circle at 75% 75%, color-mix(in srgb, var(--fg-green-500) 18%, transparent), transparent 26%);
    pointer-events: none;
}

.hm-hero__copy { position: relative; z-index: 1; }

/* Hero heading */
.hm-hero__heading {
    font-family: Manrope, Inter, sans-serif;
    font-size: clamp(2.4rem, 4.5vw, 4.75rem);
    line-height: 0.96;
    letter-spacing: -0.055em;
    margin: 1.125rem 0;
    color: var(--fg-surface-strong);
}

.hm-hero__accent { color: var(--fg-lime); }

.hm-hero__lead {
    color: color-mix(in srgb, var(--fg-surface-strong) 82%, transparent);
    font-size: 1.08rem;
    max-width: 720px;
    margin: 0;
}

/* Pill (hero eyebrow) -------------------------------------------------------- */
.hm-pill {
    display: inline-flex;
    gap: 8px;
    align-items: center;
    padding: 0.625rem 0.875rem;
    border-radius: 999px;
    border: 1px solid color-mix(in srgb, var(--fg-surface-strong) 14%, transparent);
    background: color-mix(in srgb, var(--fg-surface-strong) 8%, transparent);
    color: color-mix(in srgb, var(--fg-surface-strong) 95%, var(--fg-lime));
    font-size: 0.84rem;
    font-weight: 700;
}

/* Hero CTA row */
.hm-hero__actions {
    display: flex;
    gap: 0.875rem;
    flex-wrap: wrap;
    margin-top: 1.75rem;
}

/* Hero side panel */
.hm-hero__side {
    padding: 1.75rem;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

/* Brand card elements inside hero side panel */
.hm-brand-card__heading {
    font-family: Manrope, Inter, sans-serif;
    font-size: 1.2rem;
    letter-spacing: -0.02em;
    margin: 0.75rem 0 0.5rem;
    color: var(--fg-green-900);
    line-height: 1.3;
}

.hm-brand-card__logo-band {
    background: var(--fg-surface-strong);
    border-radius: var(--fg-radius-md);
    padding: 1rem;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hm-brand-card__logo {
    width: min(100%, 240px);
    height: auto;
}

.hm-check-list {
    list-style: none;
    padding: 0;
    margin: 0.75rem 0 0;
    display: grid;
    gap: 0.625rem;
}

.hm-check-list li {
    display: grid;
    grid-template-columns: 20px 1fr;
    gap: 0.625rem;
    align-items: start;
    font-size: 0.9rem;
    color: var(--fg-green-800);
    opacity: 0.85;
}

.hm-check-list li::before {
    content: "✓";
    display: inline-grid;
    place-items: center;
    width: 20px;
    height: 20px;
    border-radius: 999px;
    color: var(--fg-surface-strong);
    font-size: 0.75rem;
    font-weight: 900;
    background: linear-gradient(135deg, var(--fg-green-700), var(--fg-green-500));
    margin-top: 1px;
    flex-shrink: 0;
}

/* Hero proof cards */
.hm-hero__proof {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.875rem;
    margin-top: 0.75rem;
}

.hm-proof-card {
    background: color-mix(in srgb, var(--fg-surface-strong) 70%, transparent);
    border: 1px solid var(--fg-border);
    border-radius: 18px;
    padding: 1.125rem;
}

.hm-proof-card strong {
    display: block;
    font-family: Manrope, Inter, sans-serif;
    font-size: 1.5rem;
    letter-spacing: -0.04em;
    color: var(--fg-green-900);
}

.hm-proof-card span {
    display: block;
    color: var(--fg-green-800);
    font-size: 0.88rem;
    opacity: 0.75;
}



/* -----------------------------------------------------------------------------
   Solutions grid
   ----------------------------------------------------------------------------- */
.hm-solutions__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.375rem;
    margin-top: 1.75rem;
}

.hm-card {
    background: color-mix(in srgb, var(--fg-surface-strong) 82%, transparent);
    border: 1px solid var(--fg-border);
    border-radius: 24px;
    padding: 1.5rem;
    box-shadow: var(--fg-shadow-soft);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.hm-card::before {
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    height: 6px;
    background: linear-gradient(90deg, var(--fg-green-700), var(--fg-lime));
}

.hm-card__heading {
    margin: 0.5rem 0;
    font-size: 1.15rem;
    font-family: Manrope, Inter, sans-serif;
    color: var(--fg-green-900);
}

.hm-card__image {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: var(--fg-radius-md);
    margin: 0.5rem 0 0.75rem;
}

.hm-card p {
    color: var(--fg-green-800);
    font-size: 0.95rem;
    margin: 0 0 0.5rem;
    opacity: 0.82;
}

.hm-tag-row {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin: 0.875rem 0 1rem;
}

.hm-tag {
    padding: 0.4375rem 0.625rem;
    border-radius: 999px;
    background: color-mix(in srgb, var(--fg-green-600) 8%, transparent);
    color: var(--fg-green-800);
    font-size: 0.77rem;
    font-weight: 800;
    letter-spacing: 0.03em;
}

.hm-card__link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: auto;
    padding-top: 1rem;
    padding: 0.625rem 1.125rem;
    border-radius: var(--fg-radius-md);
    background: linear-gradient(135deg, var(--fg-green-700), var(--fg-green-600));
    color: var(--fg-surface-strong);
    font-size: 0.88rem;
    font-weight: 700;
    text-decoration: none;
    align-self: flex-start;
    margin-top: auto;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
    box-shadow: 0 4px 14px color-mix(in srgb, var(--fg-green-700) 20%, transparent);
}

.hm-card__link:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px color-mix(in srgb, var(--fg-green-700) 28%, transparent);
    color: var(--fg-surface-strong);
}

/* -----------------------------------------------------------------------------
   Claims promo strip
   ----------------------------------------------------------------------------- */
.hm-claims-promo {
    padding: 2.5rem 0;
}

.hm-claims-promo__layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    background: var(--fg-surface-strong);
    border: 1px solid var(--fg-border);
    border-radius: var(--fg-radius-xl);
    overflow: hidden;
    box-shadow: var(--fg-shadow-soft);
}

.hm-claims-promo__image {
    line-height: 0;
}

.hm-claims-promo__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.hm-claims-promo__content {
    padding: 2rem 2rem 2rem 0;
}

.hm-claims-promo__heading {
    font-family: Manrope, Inter, sans-serif;
    font-size: clamp(1.4rem, 2.2vw, 1.9rem);
    line-height: 1.2;
    letter-spacing: -0.03em;
    color: var(--fg-green-900);
    margin: 0 0 1.5rem;
}

.hm-btn--cta {
    background: var(--fg-green-700);
    color: var(--fg-surface-strong);
    padding: 0.8rem 1.6rem;
    border-radius: var(--fg-radius-md);
    font-weight: 700;
    font-size: 0.95rem;
    text-decoration: none;
    display: inline-flex;
    transition: background 0.2s, transform 0.15s;
}

.hm-btn--cta:hover {
    background: var(--fg-green-800);
    color: var(--fg-surface-strong);
    transform: translateY(-1px);
}

@media (max-width: 760px) {
    .hm-claims-promo__layout {
        grid-template-columns: 1fr;
    }
    .hm-claims-promo__content {
        padding: 0 1.5rem 1.5rem;
    }
}

/* -----------------------------------------------------------------------------
   Experience section — forest background
   ----------------------------------------------------------------------------- */
.hm-experience {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    padding: 4rem 0;
}

.hm-experience::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(145deg,
        color-mix(in srgb, var(--fg-green-900) 88%, transparent),
        color-mix(in srgb, var(--fg-green-800) 75%, transparent));
    pointer-events: none;
}

.hm-experience .hm-inner {
    position: relative;
    z-index: 1;
}

.hm-experience__content { max-width: 680px; }

.hm-experience__lead {
    color: color-mix(in srgb, var(--fg-surface-strong) 82%, transparent);
    font-size: 1.05rem;
    margin: 0.875rem 0 1.5rem;
    line-height: 1.65;
}

.hm-experience__banner-img {
    width: 100%;
    border-radius: var(--fg-radius-lg);
    opacity: 0.85;
}

/* -----------------------------------------------------------------------------
   Why Figtree — COTS delivery
   ----------------------------------------------------------------------------- */
.hm-why__layout {
    display: grid;
    grid-template-columns: 0.95fr 1.05fr;
    gap: 1.5rem;
    align-items: stretch;
}

/* Dark panel */
.hm-dark-panel {
    background: linear-gradient(145deg, var(--fg-green-900), var(--fg-green-800));
    color: var(--fg-surface-strong);
    border-radius: 30px;
    padding: 2rem;
    box-shadow: 0 20px 50px color-mix(in srgb, var(--fg-green-900) 18%, transparent);
}

.hm-dark-panel__lead {
    color: color-mix(in srgb, var(--fg-surface-strong) 78%, transparent);
    font-size: 1rem;
    margin: 0.875rem 0 1.125rem;
}

.hm-dark-panel__list {
    margin: 0;
    padding-left: 1.25rem;
    display: grid;
    gap: 0.625rem;
}

.hm-dark-panel__list li {
    color: color-mix(in srgb, var(--fg-surface-strong) 78%, transparent);
    font-size: 0.95rem;
}

/* Compare grid */
.hm-compare-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    align-content: start;
}

.hm-compare-card {
    background: color-mix(in srgb, var(--fg-surface-strong) 88%, transparent);
    border: 1px solid var(--fg-border);
    border-radius: 22px;
    padding: 1.375rem;
}

.hm-compare-card__heading {
    margin: 0 0 0.625rem;
    font-family: Manrope, Inter, sans-serif;
    font-size: 1.02rem;
    color: var(--fg-green-900);
}

.hm-compare-card ul {
    margin: 0;
    padding-left: 1.125rem;
    display: grid;
    gap: 0.375rem;
}

.hm-compare-card li {
    color: var(--fg-green-800);
    font-size: 0.9rem;
    opacity: 0.82;
}

/* -----------------------------------------------------------------------------
   Figtree as a Service — cloud / SaaS
   ----------------------------------------------------------------------------- */
.hm-saas {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    padding: 4rem 0;
}

.hm-saas::before {
    content: "";
    position: absolute;
    inset: 0;
    background: color-mix(in srgb, var(--fg-green-900) 70%, transparent);
    pointer-events: none;
}

.hm-saas .hm-inner {
    position: relative;
    z-index: 1;
    display: grid;
    gap: 2rem;
}

.hm-saas__content { max-width: 560px; }

.hm-saas__content .hm-section-title {
    color: var(--fg-surface-strong);
}

.hm-saas__infographic {
    border-radius: var(--fg-radius-lg);
    box-shadow: var(--fg-shadow);
    background: var(--fg-surface-strong);
}

/* -----------------------------------------------------------------------------
   News / Blog
   ----------------------------------------------------------------------------- */
.hm-news {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    padding: 4rem 0;
    text-align: center;
    margin-top: 3rem;
}

.hm-news::before {
    content: "";
    position: absolute;
    inset: 0;
    background: color-mix(in srgb, var(--fg-green-900) 65%, transparent);
    pointer-events: none;
}

.hm-news .hm-inner {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2.75rem;
}

.hm-news__content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    max-width: 680px;
}

.hm-news__lead {
    font-family: Manrope, Inter, sans-serif;
    font-size: clamp(1.4rem, 2.5vw, 2rem);
    line-height: 1.3;
    color: var(--fg-surface-strong);
    margin: 0;
    letter-spacing: -0.02em;
}

/* -----------------------------------------------------------------------------
   News preview grid
   ----------------------------------------------------------------------------- */
.hm-news-grid__cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    width: 100%;
}

.hm-news-grid__card {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    height: 260px;
    border-radius: var(--fg-radius);
    background-color: var(--fg-green-dark);
    background-size: cover;
    background-position: center;
    overflow: hidden;
    padding: 1rem;
    text-decoration: none;
    isolation: isolate;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.hm-news-grid__card:hover,
.hm-news-grid__card:focus-visible {
    transform: translateY(-3px);
    box-shadow: 0 10px 28px rgba(0,0,0,0.18);
}

.hm-news-grid__card::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(
        to top,
        rgba(0,0,0,0.78) 0%,
        rgba(0,0,0,0.40) 45%,
        rgba(0,0,0,0.05) 80%
    );
}

.hm-news-grid__card--no-image {
    background-color: var(--fg-green-dark);
}

.hm-news-card__meta {
    position: absolute;
    top: 0.9rem;
    left: 1rem;
    font-size: 0.75rem;
    font-weight: 600;
    color: rgba(255,255,255,0.85);
    letter-spacing: 0.02em;
}

.hm-news-card__title {
    font-family: Manrope, Inter, sans-serif;
    font-weight: 700;
    font-size: 1.05rem;
    color: #fff;
    margin: 0;
    line-height: 1.35;
}

.hm-news-grid__cta {
    display: flex;
    justify-content: center;
}

@media (max-width: 900px) {
    .hm-news-grid__cards {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 700px) {
    .hm-news-grid__cards {
        grid-template-columns: 1fr;
    }

    .hm-news-grid__card {
        height: 220px;
    }
}

/* -----------------------------------------------------------------------------
   FAQ
   ----------------------------------------------------------------------------- */
.hm-faq__layout {
    display: grid;
    grid-template-columns: 0.92fr 1.08fr;
    gap: 1.5rem;
    align-items: start;
}


/* FAQ accordion */
.hm-faq__list { display: grid; gap: 0.875rem; }

.hm-faq__item {
    background: color-mix(in srgb, var(--fg-surface-strong) 88%, transparent);
    border: 1px solid var(--fg-border);
    border-radius: 20px;
    overflow: hidden;
}

.hm-faq__question {
    list-style: none;
    cursor: pointer;
    padding: 1.125rem 1.25rem;
    font-weight: 800;
    font-size: 0.97rem;
    color: var(--fg-green-900);
    display: flex;
    justify-content: space-between;
    gap: 0.75rem;
}

.hm-faq__question::-webkit-details-marker { display: none; }

.hm-faq__question::after {
    content: "+";
    color: var(--fg-green-700);
    font-size: 1.2rem;
    flex-shrink: 0;
}

.hm-faq__item[open] .hm-faq__question::after { content: "−"; }

.hm-faq__answer {
    padding: 0 1.25rem 1.125rem;
    color: var(--fg-green-800);
    font-size: 0.95rem;
    opacity: 0.82;
    line-height: 1.65;
}

/* -----------------------------------------------------------------------------
   Testimonials
   ----------------------------------------------------------------------------- */
.hm-quote-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.125rem;
    margin-top: 1.625rem;
}

.hm-quote {
    padding: 1.5rem;
    border-radius: 22px;
    background: color-mix(in srgb, var(--fg-surface-strong) 76%, transparent);
    border: 1px solid var(--fg-border);
    box-shadow: var(--fg-shadow-soft);
}

.hm-quote p {
    margin: 0 0 1rem;
    color: var(--fg-green-900);
    font-size: 1rem;
    line-height: 1.6;
}

.hm-quote strong {
    display: block;
    color: var(--fg-green-900);
    font-size: 0.95rem;
}

.hm-quote__role {
    display: block;
    font-size: 0.85rem;
    color: var(--fg-green-700);
    margin-top: 2px;
    opacity: 0.8;
}

/* -----------------------------------------------------------------------------
   Capterra reviews strip (inside testimonials section)
   ----------------------------------------------------------------------------- */
.hm-capterra {
    border-top: 1px solid var(--fg-border);
    padding: 1.75rem 0;
    margin-top: 2rem;
    display: flex;
    justify-content: center;
}

.hm-capterra .hm-inner {
    display: flex;
    justify-content: center;
}

.hm-capterra__link {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--fg-green-800);
    padding: 0.75rem 1.5rem;
    border-radius: var(--fg-radius-md);
    border: 2px solid var(--fg-green-700);
    transition: background 0.2s, color 0.2s;
}

.hm-capterra__link:hover {
    background: var(--fg-green-700);
    color: var(--fg-surface-strong);
}

.hm-capterra__link:hover img {
    filter: brightness(0) invert(1);
}

.hm-capterra__link img {
    display: block;
    height: 24px;
    width: auto;
    transition: filter 0.2s;
}

/* -----------------------------------------------------------------------------
   Contact / Demo form
   ----------------------------------------------------------------------------- */
.hm-contact__layout {
    display: grid;
    grid-template-columns: 0.95fr 1.05fr;
    gap: 1.5rem;
}

.hm-contact__layout > * {
    min-width: 0;
}

.hm-office-grid {
    display: grid;
    gap: 0.875rem;
    margin-top: 1.5rem;
}

.hm-office-card {
    background: color-mix(in srgb, var(--fg-surface-strong) 78%, transparent);
    border: 1px solid var(--fg-border);
    border-radius: 18px;
    padding: 1.125rem;
}

.hm-office-card strong {
    display: block;
    font-size: 0.95rem;
    color: var(--fg-green-900);
    margin-bottom: 4px;
}

.hm-office-card__details {
    font-size: 0.88rem;
    color: var(--fg-green-800);
    opacity: 0.75;
}

/* Form wrapper */
.hm-form-wrap {
    background: linear-gradient(180deg,
        color-mix(in srgb, var(--fg-surface-strong) 95%, transparent),
        color-mix(in srgb, var(--fg-green-pale) 92%, transparent));
    border: 1px solid var(--fg-border);
    border-radius: var(--fg-radius-xl);
    padding: 1.625rem;
    box-shadow: var(--fg-shadow);
}

.hm-form-wrap__heading {
    margin: 0 0 0.25rem;
    font-family: Manrope, Inter, sans-serif;
    font-size: 1.45rem;
    letter-spacing: -0.02em;
    color: var(--fg-green-900);
}

.hm-form-wrap__sub {
    margin: 0 0 1.25rem;
    font-size: 0.88rem;
    color: var(--fg-green-800);
    opacity: 0.75;
}

/* Form fields */
.hm-form__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.875rem;
}

.hm-form__grid > * {
    min-width: 0;
}

.hm-form__field { display: flex; flex-direction: column; }
.hm-form__field--full { grid-column: 1 / -1; }

.hm-form__field label {
    display: block;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
    color: var(--fg-green-800);
    font-family: Inter, system-ui, sans-serif;
}

.hm-form__field input,
.hm-form__field select,
.hm-form__field textarea {
    width: 100%;
    padding: 0.875rem 1rem;
    border-radius: 14px;
    border: 1px solid color-mix(in srgb, var(--fg-green-900) 14%, transparent);
    background: var(--fg-surface-strong);
    font: inherit;
    font-size: 0.95rem;
    color: var(--fg-green-900);
    transition: border-color 0.15s;
    box-sizing: border-box;
}

.hm-form__field select {
    appearance: auto;
    height: auto;
    min-height: 3rem;
    line-height: normal;
    padding-right: 2rem;
}

.hm-form__field input:focus,
.hm-form__field select:focus,
.hm-form__field textarea:focus {
    outline: none;
    border-color: var(--fg-green-600);
}

/* Phone prefix group — home demo form only, standalone (no fg-modal dependency) */
.hm-phone-group {
    display: flex;
    align-items: stretch;
    height: 3.25rem;
    border: 1px solid color-mix(in srgb, var(--fg-green-900) 14%, transparent);
    border-radius: 14px;
    overflow: hidden;
    transition: border-color 0.15s;
    background: var(--fg-surface-strong);
}

.hm-phone-group:focus-within {
    border-color: var(--fg-green-600);
}

.hm-form__field .hm-phone-group__prefix {
    appearance: none;
    -webkit-appearance: none;
    flex-shrink: 0;
    width: 130px;
    height: 100%;
    padding: 0 2rem 0 1rem;
    border: none;
    border-right: 1px solid color-mix(in srgb, var(--fg-green-900) 14%, transparent);
    background-color: color-mix(in srgb, var(--fg-green-900) 5%, var(--fg-surface-strong));
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23394d3a' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.65rem center;
    font: inherit;
    font-size: 0.95rem;
    line-height: 1.5;
    color: var(--fg-green-900);
    cursor: pointer;
    outline: none;
    box-sizing: border-box;
}

/* Searchable phone country-code combobox (js/phone-prefix-search.js) — this
   rule exists purely to make the combo's input match .hm-phone-group__prefix
   above pixel-for-pixel (shared structural/list styling lives in
   css/global.css, which can't reach this container's own sizing tokens). */
.hm-form__field .hm-phone-group .fg-phone-combo__input {
    appearance: none;
    width: 130px;
    height: 100%;
    padding: 0 2rem 0 1rem;
    border: none;
    border-right: 1px solid color-mix(in srgb, var(--fg-green-900) 14%, transparent);
    background-color: color-mix(in srgb, var(--fg-green-900) 5%, var(--fg-surface-strong));
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23394d3a' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.65rem center;
    font: inherit;
    font-size: 0.95rem;
    line-height: 1.5;
    color: var(--fg-green-900);
    cursor: pointer;
    outline: none;
    box-sizing: border-box;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.hm-form__field .hm-phone-group__number {
    flex: 1;
    width: auto;
    height: 100%;
    padding: 0 1rem;
    border: none;
    background: var(--fg-surface-strong);
    font: inherit;
    font-size: 0.95rem;
    color: var(--fg-green-900);
    outline: none;
    min-width: 0;
    box-sizing: border-box;
}

/* Success / error notices */
.hm-form-notice {
    padding: 0.9rem 1.1rem;
    border-radius: 14px;
    font-size: 0.92rem;
    line-height: 1.5;
    margin-bottom: 1.1rem;
}

.hm-form-notice p { margin: 0; }

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

.hm-form-notice--error {
    background: #fdf0ee;
    border: 1px solid #e8b4ae;
    color: #922b21;
}

.hm-form__field textarea {
    min-height: 110px;
    resize: vertical;
}

.hm-form__submit {
    width: 100%;
    margin-top: 4px;
    border: 0;
    border-radius: var(--fg-radius-md);
    padding: 1rem 1.125rem;
    font: inherit;
    font-size: 1rem;
    font-weight: 900;
    color: var(--fg-surface-strong);
    background: linear-gradient(135deg, var(--fg-green-800), var(--fg-green-600));
    cursor: pointer;
    box-shadow: 0 14px 32px color-mix(in srgb, var(--fg-green-700) 18%, transparent);
    transition: background 0.2s, transform 0.15s;
}

.hm-form__submit:hover {
    background: linear-gradient(135deg, var(--fg-green-700), var(--fg-green-500));
    transform: translateY(-1px);
}

.hm-form__submit:disabled {
    opacity: 0.65;
    cursor: not-allowed;
}

/* =============================================================================
   RESPONSIVE
   ============================================================================= */
@media (max-width: 1080px) {
    .hm-hero__grid,
    .hm-why__layout,
    .hm-faq__layout,
    .hm-contact__layout { grid-template-columns: 1fr; }

    .hm-solutions__grid { grid-template-columns: repeat(2, 1fr); }
    .hm-metrics,
    .hm-hero__proof { grid-template-columns: repeat(2, 1fr); }
    .hm-compare-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 760px) {
    .hm-hero__panel,
    .hm-brand-card,
    .hm-answer-box { padding: 1.5rem; }

    .hm-hero__heading { font-size: clamp(2.1rem, 10vw, 3.4rem); }

    .hm-solutions__grid,
    .hm-quote-grid,
    .hm-metrics,
    .hm-hero__proof,
    .hm-form__grid,
    .hm-faq__quotes,
    .hm-compare-grid { grid-template-columns: 1fr; }

    .hm-page section { padding: 2rem 0; }
    .hm-saas,
    .hm-experience { padding: 2.5rem 0; }
}
