/* ==========================================================================
   Infyner Products - shared styles for the entire /products family.
   Scoped under .infyner-product-page so nothing leaks out.
   ========================================================================== */

.infyner-product-page {
    --p-bg:        #f8fafc;
    --p-card:      #ffffff;
    --p-border:    #e5e7eb;
    --p-border-2:  #cbd5e1;
    --p-text:      #0f172a;
    --p-muted:     #64748b;
    --p-navy:      #1a3a72;
    --p-navy-dk:   #0a1628;
    --p-gold:      #d4af37;
    --p-gold-soft: #fdf6dd;
    --p-emerald:   #0e9f6e;
    --p-rose:      #dc2626;
    --p-radius:    14px;
    --p-radius-sm: 10px;
    --p-shadow:    0 1px 2px rgba(15,23,42,0.05), 0 2px 6px rgba(15,23,42,0.04);
    --p-shadow-h:  0 12px 28px rgba(15,23,42,0.10), 0 3px 8px rgba(15,23,42,0.06);
    --p-accent:    var(--p-navy); /* overridden per page via inline style */
    background: var(--p-bg);
    color: var(--p-text);
    font-family: "Inter", "Manrope", "Segoe UI", system-ui, -apple-system, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.infyner-product-page * { box-sizing: border-box; }
.infyner-product-page a { color: var(--p-accent); text-decoration: none; }
.infyner-product-page a:hover { text-decoration: underline; }

/* --- The wordmark: Infyner [Product] ---------------------------------- */
.infyner-product-mark {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 4px 0;
    line-height: 1;
}
.infyner-product-mark img {
    height: 32px;
    width: auto;
}
.infyner-product-mark__word {
    font-weight: 700;
    font-size: 22px;
    letter-spacing: -0.02em;
    color: var(--p-accent);
    border-bottom: 2px solid var(--p-gold);
    padding-bottom: 2px;
}
.infyner-product-mark--lg img { height: 44px; }
.infyner-product-mark--lg .infyner-product-mark__word { font-size: 30px; }

/* --- Container ------------------------------------------------------- */
.infyner-product-page .ip-container {
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 20px;
}

/* --- Hero ------------------------------------------------------------ */
.ip-hero {
    background: linear-gradient(135deg, #ffffff 0%, #f1f5f9 70%);
    border-bottom: 1px solid var(--p-border);
    padding: 56px 0 48px;
    position: relative;
    overflow: hidden;
}
.ip-hero::before {
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    height: 4px;
    background: linear-gradient(90deg, var(--p-accent) 0%, var(--p-gold) 100%);
}
.ip-hero h1 {
    font-size: 38px;
    line-height: 1.15;
    margin: 18px 0 14px;
    letter-spacing: -0.02em;
    font-weight: 700;
    color: var(--p-text);
}
.ip-hero__lead {
    max-width: 760px;
    font-size: 17px;
    color: var(--p-muted);
    line-height: 1.55;
    margin: 0 0 24px;
}
.ip-hero__ctas {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 14px;
}
.ip-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 11px 22px;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 600;
    border: 1px solid transparent;
    cursor: pointer;
    transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease, color 160ms ease;
    text-decoration: none !important;
    white-space: nowrap;
}
.ip-btn--primary {
    background: var(--p-accent);
    color: #ffffff;
    box-shadow: 0 8px 18px rgba(15,23,42,0.10);
}
.ip-btn--primary:hover { transform: translateY(-1px); box-shadow: 0 12px 24px rgba(15,23,42,0.16); color: #ffffff; }
.ip-btn--ghost {
    background: #ffffff;
    color: var(--p-text);
    border-color: var(--p-border);
}
.ip-btn--ghost:hover { border-color: var(--p-accent); color: var(--p-accent); }
.ip-btn--gold {
    background: var(--p-gold-soft);
    color: var(--p-navy);
    border-color: var(--p-gold);
}

/* --- Stat strip under the hero --------------------------------------- */
.ip-stat-strip {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 12px;
    margin: 28px 0 0;
}
.ip-stat-chip {
    background: #ffffff;
    border: 1px solid var(--p-border);
    border-radius: var(--p-radius-sm);
    padding: 12px 14px;
    box-shadow: var(--p-shadow);
}
.ip-stat-chip__value {
    font-size: 20px;
    font-weight: 700;
    letter-spacing: -0.01em;
    color: var(--p-text);
}
.ip-stat-chip__label {
    font-size: 11.5px;
    color: var(--p-muted);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-top: 2px;
}

/* --- Section ---------------------------------------------------------- */
.ip-section { padding: 48px 0; }
.ip-section--alt { background: #ffffff; border-top: 1px solid var(--p-border); border-bottom: 1px solid var(--p-border); }
.ip-section__eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-size: 11.5px;
    font-weight: 600;
    color: var(--p-accent);
    margin: 0 0 8px;
}
.ip-section h2 {
    font-size: 28px;
    line-height: 1.2;
    letter-spacing: -0.02em;
    font-weight: 700;
    margin: 0 0 12px;
    max-width: 720px;
}
.ip-section__lead {
    font-size: 16px;
    color: var(--p-muted);
    line-height: 1.6;
    margin: 0 0 24px;
    max-width: 720px;
}
.ip-section p { font-size: 15.5px; color: var(--p-text); line-height: 1.65; }

/* --- Value grid (features) ------------------------------------------- */
.ip-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 16px;
}
.ip-card {
    background: #ffffff;
    border: 1px solid var(--p-border);
    border-radius: var(--p-radius);
    padding: 22px;
    box-shadow: var(--p-shadow);
    transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}
.ip-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--p-shadow-h);
    border-color: var(--p-accent);
}
.ip-card__icon {
    width: 38px; height: 38px;
    display: inline-flex; align-items: center; justify-content: center;
    border-radius: 10px;
    background: var(--p-gold-soft);
    color: var(--p-accent);
    margin-bottom: 12px;
    font-size: 18px;
}
.ip-card__title {
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 6px;
    color: var(--p-text);
}
.ip-card__body {
    font-size: 14px;
    line-height: 1.55;
    color: var(--p-muted);
}

/* --- How it works ---------------------------------------------------- */
.ip-steps {
    counter-reset: ipstep;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 16px;
}
.ip-step {
    background: #ffffff;
    border: 1px solid var(--p-border);
    border-radius: var(--p-radius);
    padding: 22px;
    position: relative;
    box-shadow: var(--p-shadow);
}
.ip-step::before {
    counter-increment: ipstep;
    content: counter(ipstep, decimal-leading-zero);
    position: absolute;
    top: -12px; left: 18px;
    background: var(--p-accent);
    color: #ffffff;
    font-size: 12px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 999px;
    letter-spacing: 0.04em;
}
.ip-step h3 { font-size: 15px; font-weight: 600; margin: 8px 0 6px; color: var(--p-text); }
.ip-step p  { font-size: 14px; color: var(--p-muted); line-height: 1.55; margin: 0; }

/* --- Persona cards (who is it for) ---------------------------------- */
.ip-persona {
    background: #ffffff;
    border: 1px solid var(--p-border);
    border-radius: var(--p-radius);
    padding: 22px;
    box-shadow: var(--p-shadow);
}
.ip-persona__role {
    font-size: 11.5px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--p-accent);
    font-weight: 600;
    margin: 0 0 6px;
}
.ip-persona__name {
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 8px;
    color: var(--p-text);
}
.ip-persona__quote {
    font-size: 14px;
    line-height: 1.6;
    color: var(--p-text);
    margin: 0 0 8px;
}
.ip-persona__use {
    font-size: 13px;
    color: var(--p-muted);
    line-height: 1.5;
}

/* --- FAQ accordion --------------------------------------------------- */
.ip-faq { margin-top: 16px; }
.ip-faq__item {
    background: #ffffff;
    border: 1px solid var(--p-border);
    border-radius: var(--p-radius-sm);
    margin-bottom: 10px;
    overflow: hidden;
    transition: border-color 160ms ease, box-shadow 160ms ease;
}
.ip-faq__item.is-open { border-color: var(--p-accent); box-shadow: var(--p-shadow); }
.ip-faq__q {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 18px;
    font-size: 15px;
    font-weight: 600;
    color: var(--p-text);
    cursor: pointer;
    user-select: none;
    background: transparent;
    border: 0;
    width: 100%;
    text-align: left;
}
.ip-faq__q::after {
    content: "+";
    font-size: 22px;
    line-height: 1;
    font-weight: 300;
    color: var(--p-muted);
    transition: transform 200ms ease, color 200ms ease;
}
.ip-faq__item.is-open .ip-faq__q::after { content: "-"; color: var(--p-accent); }
.ip-faq__a {
    padding: 0 18px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 280ms ease, padding 280ms ease;
    color: var(--p-text);
    font-size: 14.5px;
    line-height: 1.65;
}
.ip-faq__item.is-open .ip-faq__a { padding: 0 18px 16px; max-height: 600px; }

/* --- Trust strip ----------------------------------------------------- */
.ip-trust {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin-top: 12px;
}
.ip-trust__item {
    padding: 16px;
    background: #ffffff;
    border: 1px solid var(--p-border);
    border-radius: var(--p-radius-sm);
}
.ip-trust__title { font-size: 13px; font-weight: 600; color: var(--p-text); margin: 0 0 4px; }
.ip-trust__body  { font-size: 13px; color: var(--p-muted); line-height: 1.5; margin: 0; }

/* --- Cross-links ----------------------------------------------------- */
.ip-cross {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 14px;
}
.ip-cross__card {
    display: block;
    background: #ffffff;
    border: 1px solid var(--p-border);
    border-radius: var(--p-radius);
    padding: 18px;
    color: var(--p-text);
    text-decoration: none !important;
    transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}
.ip-cross__card:hover {
    transform: translateY(-2px);
    border-color: var(--p-accent);
    box-shadow: var(--p-shadow-h);
    color: var(--p-text);
}
.ip-cross__name { font-weight: 600; font-size: 15px; margin: 0 0 4px; color: var(--p-accent); }
.ip-cross__desc { font-size: 13px; color: var(--p-muted); line-height: 1.55; margin: 0; }

/* --- Pricing tease --------------------------------------------------- */
.ip-pricing {
    background: linear-gradient(135deg, var(--p-navy) 0%, var(--p-navy-dk) 100%);
    color: #ffffff;
    border-radius: var(--p-radius);
    padding: 32px 28px;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 24px;
    align-items: center;
}
.ip-pricing h3 { color: #ffffff; font-size: 22px; margin: 0 0 6px; letter-spacing: -0.01em; }
.ip-pricing p  { color: #cbd5e1; font-size: 14.5px; line-height: 1.6; margin: 0; }
.ip-pricing .ip-btn { box-shadow: none; }

/* --- Contact form ---------------------------------------------------- */
.ip-form {
    background: #ffffff;
    border: 1px solid var(--p-border);
    border-radius: var(--p-radius);
    padding: 28px;
    box-shadow: var(--p-shadow);
    max-width: 720px;
    margin: 0 auto;
}
.ip-form h3 { font-size: 22px; margin: 0 0 6px; letter-spacing: -0.01em; color: var(--p-text); }
.ip-form__lead { color: var(--p-muted); margin: 0 0 18px; font-size: 14.5px; line-height: 1.55; }
.ip-form__row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 12px;
}
.ip-field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 12px; }
.ip-field label {
    font-size: 12.5px;
    font-weight: 600;
    color: var(--p-text);
    letter-spacing: 0.01em;
}
.ip-field input,
.ip-field textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--p-border);
    border-radius: 8px;
    font-size: 14.5px;
    font-family: inherit;
    color: var(--p-text);
    background: #ffffff;
    transition: border-color 160ms ease, box-shadow 160ms ease;
}
.ip-field textarea { min-height: 110px; resize: vertical; }
.ip-field input:focus,
.ip-field textarea:focus {
    outline: none;
    border-color: var(--p-accent);
    box-shadow: 0 0 0 3px rgba(212,175,55,0.18);
}
.ip-field .ip-err { display: none; color: var(--p-rose); font-size: 12px; }
.ip-field.has-error input,
.ip-field.has-error textarea { border-color: var(--p-rose); }
.ip-field.has-error .ip-err { display: block; }
.ip-form__honeypot { position: absolute; left: -9999px; width: 1px; height: 1px; }
.ip-form__status {
    margin-top: 12px;
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 14px;
    display: none;
}
.ip-form__status--ok    { background: #d1fae5; color: #065f46; display: block; }
.ip-form__status--err   { background: #fee2e2; color: #991b1b; display: block; }
.ip-form__submit {
    margin-top: 8px;
    background: var(--p-accent);
    color: #ffffff;
    border: 0;
    padding: 12px 24px;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 160ms ease, box-shadow 160ms ease, opacity 160ms ease;
}
.ip-form__submit:hover { transform: translateY(-1px); box-shadow: 0 8px 18px rgba(15,23,42,0.12); }
.ip-form__submit:disabled { opacity: 0.6; cursor: not-allowed; }

/* --- Hub page (collection of products) ------------------------------- */
.ip-hub-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 16px;
    margin-top: 24px;
}
.ip-hub-card {
    background: #ffffff;
    border: 1px solid var(--p-border);
    border-radius: var(--p-radius);
    padding: 22px;
    text-decoration: none !important;
    color: var(--p-text);
    box-shadow: var(--p-shadow);
    transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
    position: relative;
    overflow: hidden;
}
.ip-hub-card::before {
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    height: 3px;
    background: var(--ip-card-accent, var(--p-navy));
}
.ip-hub-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--p-shadow-h);
    border-color: var(--ip-card-accent, var(--p-accent));
    color: var(--p-text);
}
.ip-hub-card__name { color: var(--ip-card-accent, var(--p-navy)); font-weight: 700; font-size: 17px; margin: 6px 0 4px; }
.ip-hub-card__desc { color: var(--p-muted); font-size: 13.5px; line-height: 1.55; margin: 0; }

/* --- Glossary (AEO target) ------------------------------------------- */
.ip-glossary {
    margin-top: 16px;
    background: #ffffff;
    border: 1px solid var(--p-border);
    border-radius: var(--p-radius);
    padding: 22px;
}
.ip-glossary dt { font-weight: 600; color: var(--p-text); font-size: 14px; margin-top: 12px; }
.ip-glossary dt:first-child { margin-top: 0; }
.ip-glossary dd { margin: 4px 0 0; color: var(--p-muted); font-size: 13.5px; line-height: 1.55; }

/* --- Last reviewed footer note --------------------------------------- */
.ip-reviewed {
    margin-top: 14px;
    color: var(--p-muted);
    font-size: 12.5px;
}

/* --- Mobile ---------------------------------------------------------- */
@media (max-width: 640px) {
    .ip-hero { padding: 36px 0 28px; }
    .ip-hero h1 { font-size: 28px; }
    .ip-hero__lead { font-size: 15px; }
    .ip-section { padding: 32px 0; }
    .ip-section h2 { font-size: 22px; }
    .ip-pricing { grid-template-columns: 1fr; text-align: left; }
    .infyner-product-mark img { height: 26px; }
    .infyner-product-mark__word { font-size: 18px; }
    .infyner-product-mark--lg img { height: 34px; }
    .infyner-product-mark--lg .infyner-product-mark__word { font-size: 22px; }
}

/* ============================================================
   Late-cascade fixes — these win over the generic ".infyner-product-page a"
   color rule that was making "Talk to us" text invisible (emerald on emerald),
   plus the wordmark gap collapse.
   ============================================================ */

/* Issue 3 — wordmark gap collapse */
.infyner-product-page .infyner-product-mark,
.infyner-product-mark { gap: 0 !important; }
.infyner-product-page .infyner-product-mark img,
.infyner-product-mark img { margin: 0 !important; }
.infyner-product-page .infyner-product-mark__word,
.infyner-product-mark__word { margin-left: 0 !important; }

/* Issue 2 — button text colour (override the generic 'a' rule) */
.infyner-product-page a.ip-btn--primary,
.infyner-product-page .ip-btn--primary {
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
}
.infyner-product-page a.ip-btn--primary:hover,
.infyner-product-page .ip-btn--primary:hover {
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
}
.infyner-product-page a.ip-btn--ghost,
.infyner-product-page .ip-btn--ghost {
    color: var(--p-text) !important;
    -webkit-text-fill-color: var(--p-text) !important;
}
.infyner-product-page a.ip-btn--ghost:hover,
.infyner-product-page .ip-btn--ghost:hover {
    color: var(--p-accent) !important;
    -webkit-text-fill-color: var(--p-accent) !important;
}
.infyner-product-page a.ip-btn--gold,
.infyner-product-page .ip-btn--gold {
    color: var(--p-navy) !important;
    -webkit-text-fill-color: var(--p-navy) !important;
}

/* Inside the dark navy pricing band, button text should also stay solid white */
.infyner-product-page .ip-pricing a.ip-btn,
.infyner-product-page .ip-pricing .ip-btn {
    color: var(--p-navy) !important;
    -webkit-text-fill-color: var(--p-navy) !important;
}
