/* ArifFarm ERP landing — full Ruminants.AI content, ArifFarm brand */

.ariffarm-erp-hero {
    background: linear-gradient(135deg, #1a3d2e 0%, #2d6b4a 45%, #34ad54 100%);
    color: #fff;
    padding: 4.5rem 0 4rem;
    position: relative;
    overflow: hidden;
    transition: background 0.35s ease;
}

.ariffarm-erp-hero--beef {
    background: linear-gradient(135deg, #3d2614 0%, #6b4423 42%, #a67c52 100%);
}

.ariffarm-erp-hero--beef .ariffarm-erp-pill--active {
    color: #3d2614;
}

.ariffarm-erp-hero--beef .ariffarm-erp-hero-send {
    color: #3d2614;
}

.ariffarm-erp-hero--beef .ariffarm-erp-console-tab--active {
    background: #a67c52;
    border-color: #a67c52;
}

.ariffarm-erp-hero--poultry {
    background: linear-gradient(135deg, #5c4a0a 0%, #9a7b0a 42%, #e6c229 100%);
}

.ariffarm-erp-hero--poultry .ariffarm-erp-pill--active {
    color: #5c4a0a;
}

.ariffarm-erp-hero--poultry .ariffarm-erp-console-tab--active {
    background: #d4a017;
    border-color: #d4a017;
    color: #3d3000;
}

.ariffarm-erp-hero--poultry .ariffarm-erp-study-send {
    background: linear-gradient(135deg, #c9a227, #e6c229);
    color: #3d3000;
}

.ariffarm-erp-hero--poultry .ariffarm-erp-study-sparkle {
    color: #d4a017;
}

.ariffarm-erp-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: url("../img/stock/hero-slider-1.jpg") center/cover no-repeat;
    opacity: 0.12;
    pointer-events: none;
}

.ariffarm-erp-hero .container { position: relative; z-index: 1; }

.ariffarm-erp-hero h1 {
    font-size: clamp(1.85rem, 4vw, 2.75rem);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: #fff;
}

.ariffarm-erp-hero-lead {
    font-size: 1.1rem;
    line-height: 1.55;
    max-width: 38rem;
    opacity: 0.95;
    margin-bottom: 1.25rem;
}

.ariffarm-erp-hero-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.25rem;
}

.ariffarm-erp-pill {
    display: inline-block;
    padding: 0.35rem 0.85rem;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 600;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: #fff;
    cursor: pointer;
    font-family: inherit;
    line-height: 1.2;
    transition: background 0.15s ease, border-color 0.15s ease;
}

.ariffarm-erp-pill:hover {
    background: rgba(255, 255, 255, 0.22);
}

.ariffarm-erp-pill--active {
    background: #fff;
    color: #1a3d2e;
    border-color: #fff;
}

.ariffarm-erp-pill--active:hover {
    background: #f0faf3;
}

.ariffarm-erp-hero-ask {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
    max-width: 36rem;
}

.ariffarm-erp-hero-input {
    flex: 1 1 14rem;
    min-width: 0;
    padding: 0.7rem 0.9rem;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.35);
    background: rgba(255, 255, 255, 0.95);
    color: #1a3d2e;
    font-size: 0.92rem;
    line-height: 1.35;
}

.ariffarm-erp-hero-input::placeholder {
    color: #6a8695;
}

.ariffarm-erp-hero-input:focus {
    outline: 2px solid rgba(255, 255, 255, 0.85);
    outline-offset: 1px;
}

.ariffarm-erp-hero-send {
    flex: 0 0 auto;
    padding: 0.7rem 1.15rem;
    border-radius: 8px;
    border: none;
    background: #fff;
    color: #1a3d2e;
    font-size: 0.92rem;
    font-weight: 700;
    cursor: pointer;
    font-family: inherit;
    transition: background 0.15s ease, opacity 0.15s ease;
}

.ariffarm-erp-hero-send:hover:not(:disabled) {
    background: #f0faf3;
}

.ariffarm-erp-hero-send:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.ariffarm-erp-hero-examples {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    max-width: 36rem;
}

.ariffarm-erp-hero-example {
    display: block;
    width: 100%;
    text-align: left;
    padding: 0.65rem 0.9rem;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    font-size: 0.88rem;
    line-height: 1.4;
    color: #fff;
    cursor: pointer;
    font-family: inherit;
    transition: background 0.15s ease, border-color 0.15s ease;
}

.ariffarm-erp-hero-example:hover,
.ariffarm-erp-hero-example:focus-visible {
    background: rgba(255, 255, 255, 0.18);
    border-color: rgba(255, 255, 255, 0.35);
    color: #fff;
    outline: none;
}

.ariffarm-erp-hero-example:focus-visible {
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.5);
}

.ariffarm-erp-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: center;
}

.ariffarm-erp-hero-actions .default-btn {
    background: #fff;
    color: #1a3d2e !important;
}

.ariffarm-erp-hero-actions .default-btn:hover { background: #f0faf3; }

.ariffarm-erp-hero-actions .default-btn--ghost {
    background: transparent;
    border: 2px solid #fff;
    color: #fff !important;
}

.ariffarm-erp-hero-note {
    font-size: 0.85rem;
    opacity: 0.85;
    margin-top: 1rem;
    max-width: 36rem;
}

.ariffarm-erp-trust-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem 1.5rem;
    justify-content: center;
    margin-top: 2.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    font-size: 0.85rem;
    font-weight: 600;
    opacity: 0.95;
}

/* Farm Mode live console mock */
.ariffarm-erp-console {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.15);
    overflow: hidden;
    margin-top: 2rem;
}

@media (min-width: 992px) { .ariffarm-erp-console { margin-top: 0; } }

.ariffarm-erp-console-top {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    padding: 0.65rem 1rem;
    background: #f0faf3;
    border-bottom: 1px solid #dceee3;
    font-size: 0.75rem;
    color: #4a6572;
}

.ariffarm-erp-console-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
}

.ariffarm-erp-console-tab {
    padding: 0.25rem 0.55rem;
    border-radius: 4px;
    background: #fff;
    border: 1px solid #dceee3;
    font-weight: 600;
    font-size: 0.7rem;
    cursor: pointer;
    font-family: inherit;
    color: #4a6572;
    line-height: 1.2;
}

.ariffarm-erp-console-tab:hover {
    border-color: #34ad54;
}

.ariffarm-erp-console-tab--active {
    background: #34ad54;
    color: #fff;
    border-color: #34ad54;
}

.ariffarm-erp-console-panel[hidden] {
    display: none !important;
}

.ariffarm-erp-console-study-q {
    font-weight: 600;
    color: #1a3d2e;
    font-size: 0.88rem;
    margin-bottom: 0.65rem;
}

.ariffarm-erp-console-study-a {
    background: #f7faf8;
    border-radius: 6px;
    padding: 0.75rem;
    font-size: 0.82rem;
    color: #4a6572;
    line-height: 1.45;
}

.ariffarm-erp-console-study-a p {
    margin: 0 0 0.5rem;
}

.ariffarm-erp-console-webinar {
    padding: 0.65rem 0;
    border-bottom: 1px solid #e8efeb;
    font-size: 0.82rem;
}

.ariffarm-erp-console-webinar strong {
    display: block;
    color: #1a3d2e;
    margin-bottom: 0.2rem;
}

.ariffarm-erp-console-webinar span {
    color: #6a8695;
}

.ariffarm-erp-hero-examples--fade {
    opacity: 0.35;
    transition: opacity 0.18s ease;
}

/* Study panel — chat layout */
.ariffarm-erp-study-chat {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 520px;
    max-height: 520px;
    position: relative;
    overflow: hidden;
    background-color: #f3faf6;
    background-image:
        radial-gradient(ellipse 85% 65% at 50% 0%, rgba(52, 173, 84, 0.14), transparent 58%),
        radial-gradient(circle at 12% 88%, rgba(52, 173, 84, 0.08), transparent 42%),
        radial-gradient(circle at 88% 72%, rgba(26, 61, 46, 0.06), transparent 38%),
        linear-gradient(180deg, #f7fcf9 0%, #eef6f1 48%, #e8f2ec 100%);
}

.ariffarm-erp-study-chat::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: 0.45;
    background-image:
        linear-gradient(rgba(52, 173, 84, 0.06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(52, 173, 84, 0.06) 1px, transparent 1px);
    background-size: 22px 22px;
    mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.55) 0%, transparent 92%);
}

.ariffarm-erp-study-chat::after {
    content: "";
    position: absolute;
    inset: auto 1.25rem 1.25rem 1.25rem;
    height: 42%;
    border-radius: 1.25rem;
    pointer-events: none;
    background: radial-gradient(ellipse at center, rgba(255, 255, 255, 0.72), transparent 70%);
    opacity: 0.9;
}

.ariffarm-erp-hero--beef .ariffarm-erp-study-chat {
    background-color: #f8f4ef;
    background-image:
        radial-gradient(ellipse 85% 65% at 50% 0%, rgba(166, 124, 82, 0.16), transparent 58%),
        radial-gradient(circle at 12% 88%, rgba(139, 90, 43, 0.08), transparent 42%),
        linear-gradient(180deg, #faf6f1 0%, #f3ebe3 48%, #ede4da 100%);
}

.ariffarm-erp-hero--beef .ariffarm-erp-study-chat::before {
    background-image:
        linear-gradient(rgba(166, 124, 82, 0.07) 1px, transparent 1px),
        linear-gradient(90deg, rgba(166, 124, 82, 0.07) 1px, transparent 1px);
}

.ariffarm-erp-hero--poultry .ariffarm-erp-study-chat {
    background-color: #faf8ef;
    background-image:
        radial-gradient(ellipse 85% 65% at 50% 0%, rgba(201, 162, 39, 0.18), transparent 58%),
        radial-gradient(circle at 12% 88%, rgba(201, 162, 39, 0.08), transparent 42%),
        linear-gradient(180deg, #fcfaf2 0%, #f5f0e0 48%, #efe8d4 100%);
}

.ariffarm-erp-hero--poultry .ariffarm-erp-study-chat::before {
    background-image:
        linear-gradient(rgba(201, 162, 39, 0.08) 1px, transparent 1px),
        linear-gradient(90deg, rgba(201, 162, 39, 0.08) 1px, transparent 1px);
}

.ariffarm-erp-study-messages {
    position: relative;
    z-index: 1;
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    padding: 1rem 1.15rem 0.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.ariffarm-erp-study-chat--idle .ariffarm-erp-study-messages {
    display: none;
}

.ariffarm-erp-study-composer {
    flex-shrink: 0;
    position: relative;
    z-index: 1;
}

.ariffarm-erp-study-chat--idle .ariffarm-erp-study-composer {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.25rem 1.15rem;
}

.ariffarm-erp-study-composer-inner {
    width: 100%;
    max-width: 34rem;
}

.ariffarm-erp-study-chat--idle .ariffarm-erp-study-composer-inner {
    text-align: center;
    position: relative;
    padding: 1.35rem 1.1rem 1.1rem;
    border-radius: 1.1rem;
    background: rgba(255, 255, 255, 0.82);
    border: 1px solid rgba(52, 173, 84, 0.14);
    box-shadow: 0 10px 28px rgba(26, 61, 46, 0.08);
    backdrop-filter: blur(6px);
}

.ariffarm-erp-hero--beef .ariffarm-erp-study-chat--idle .ariffarm-erp-study-composer-inner {
    border-color: rgba(166, 124, 82, 0.18);
    box-shadow: 0 10px 28px rgba(107, 68, 35, 0.08);
}

.ariffarm-erp-hero--poultry .ariffarm-erp-study-chat--idle .ariffarm-erp-study-composer-inner {
    border-color: rgba(201, 162, 39, 0.2);
    box-shadow: 0 10px 28px rgba(120, 96, 24, 0.08);
}

.ariffarm-erp-study-chat--active .ariffarm-erp-study-composer {
    padding: 0.65rem 1.15rem 1rem;
    border-top: 1px solid rgba(52, 173, 84, 0.12);
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(8px);
    width: 100%;
}

.ariffarm-erp-study-chat--active .ariffarm-erp-study-composer-inner {
    max-width: none;
    width: 100%;
}

.ariffarm-erp-study-chat--active .ariffarm-erp-study-ask-row {
    width: 100%;
    max-width: none;
}

.ariffarm-erp-study-chat--active .ariffarm-erp-study-examples {
    display: none;
}

.ariffarm-erp-study-chat--idle .ariffarm-erp-study-examples {
    justify-content: center;
}

.ariffarm-erp-study-msg--user {
    display: flex;
    justify-content: flex-end;
}

.ariffarm-erp-study-msg--user .ariffarm-erp-study-bubble {
    max-width: 92%;
    padding: 0.6rem 0.9rem;
    border-radius: 14px 14px 4px 14px;
    background: #e8f7ed;
    color: #1a3d2e;
    font-size: 0.86rem;
    font-weight: 600;
    line-height: 1.45;
}

.ariffarm-erp-study-msg--assistant {
    display: flex;
    justify-content: flex-start;
}

.ariffarm-erp-study-msg--assistant .ariffarm-erp-study-bubble {
    max-width: 96%;
    padding: 0.75rem 0.9rem;
    border-radius: 4px 14px 14px 14px;
    background: #fff;
    border: 1px solid #e8efeb;
    font-size: 0.84rem;
    color: #4a6572;
    line-height: 1.5;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.ariffarm-erp-study-msg--assistant .ariffarm-erp-study-bubble p {
    margin: 0 0 0.5rem;
}

.ariffarm-erp-study-msg--assistant .ariffarm-erp-study-bubble ul {
    margin: 0 0 0.5rem;
    padding-left: 1.1rem;
}

.ariffarm-erp-md p {
    margin: 0 0 0.65em;
}

.ariffarm-erp-md p:last-child {
    margin-bottom: 0;
}

.ariffarm-erp-md h1,
.ariffarm-erp-md h2,
.ariffarm-erp-md h3,
.ariffarm-erp-md h4,
.ariffarm-erp-md h5,
.ariffarm-erp-md h6 {
    margin: 0.75em 0 0.35em;
    font-weight: 700;
    line-height: 1.35;
    color: #1a3d2e;
}

.ariffarm-erp-md h1 { font-size: 1.15rem; }
.ariffarm-erp-md h2 { font-size: 1.05rem; }
.ariffarm-erp-md h3 { font-size: 1rem; }

.ariffarm-erp-md ul,
.ariffarm-erp-md ol {
    margin: 0.35em 0 0.65em;
    padding-left: 1.25em;
}

.ariffarm-erp-md li {
    margin: 0.2em 0;
}

.ariffarm-erp-md strong {
    font-weight: 700;
    color: #143326;
}

.ariffarm-erp-md em {
    font-style: italic;
}

.ariffarm-erp-md a {
    color: #2a8f4a;
    text-decoration: underline;
}

.ariffarm-erp-md code {
    font-size: 0.88em;
    padding: 0.1em 0.35em;
    border-radius: 4px;
    background: #f0f5f2;
}

.ariffarm-erp-md pre {
    margin: 0.5em 0;
    padding: 0.65rem 0.75rem;
    border-radius: 8px;
    background: #f4f8f6;
    overflow-x: auto;
    font-size: 0.85em;
}

.ariffarm-erp-study-register-cta {
    margin-top: 0.85rem;
    padding-top: 0.75rem;
    border-top: 1px dashed #dceee3;
    text-align: center;
}

.ariffarm-erp-study-register-cta--rate-limit {
    border-top-style: solid;
    border-color: #f0d0d0;
    background: #fffaf9;
    margin: 0.75rem -0.85rem -0.85rem;
    padding: 0.85rem 0.85rem 0.9rem;
    border-radius: 0 0 12px 12px;
}

.ariffarm-erp-study-register-cta-text {
    font-size: 0.8rem;
    font-weight: 600;
    color: #1a3d2e;
    margin: 0 0 0.65rem;
    line-height: 1.45;
}

.ariffarm-erp-study-register-cta-lock {
    margin-right: 0.15rem;
}

.ariffarm-erp-study-register-cta-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.ariffarm-erp-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 2.35rem;
    padding: 0.45rem 1rem;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 600;
    line-height: 1.2;
    text-decoration: none !important;
    white-space: nowrap;
    transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.ariffarm-erp-btn--primary {
    background: #34ad54;
    border: 1px solid #34ad54;
    color: #fff !important;
}

.ariffarm-erp-btn--primary:hover,
.ariffarm-erp-btn--primary:focus-visible {
    background: #2d9a4a;
    border-color: #2d9a4a;
    color: #fff !important;
}

.ariffarm-erp-btn--outline {
    background: #fff;
    border: 1px solid #c5d9cc;
    color: #1a3d2e !important;
}

.ariffarm-erp-btn--outline:hover,
.ariffarm-erp-btn--outline:focus-visible {
    border-color: #34ad54;
    color: #2a8f4a !important;
    background: #f7faf8;
}

.ariffarm-erp-hero--beef .ariffarm-erp-btn--primary {
    background: #8b5a2b;
    border-color: #8b5a2b;
}

.ariffarm-erp-hero--beef .ariffarm-erp-btn--primary:hover,
.ariffarm-erp-hero--beef .ariffarm-erp-btn--primary:focus-visible {
    background: #7a4f26;
    border-color: #7a4f26;
}

.ariffarm-erp-hero--poultry .ariffarm-erp-btn--primary {
    background: #c9a227;
    border-color: #c9a227;
    color: #1a1a1a !important;
}

.ariffarm-erp-hero--poultry .ariffarm-erp-btn--primary:hover,
.ariffarm-erp-hero--poultry .ariffarm-erp-btn--primary:focus-visible {
    background: #b89220;
    border-color: #b89220;
}

.ariffarm-erp-study-msg--loading .ariffarm-erp-study-bubble {
    color: #6a8695;
    background: #f7faf8;
    min-width: 4.5rem;
}

.ariffarm-erp-study-bubble--typing {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 2.5rem;
    padding: 0.65rem 0.95rem !important;
}

.ariffarm-erp-study-typing {
    display: inline-flex;
    align-items: center;
    gap: 0.28rem;
    height: 0.55rem;
}

.ariffarm-erp-study-typing span {
    display: block;
    width: 0.45rem;
    height: 0.45rem;
    border-radius: 50%;
    background: #34ad54;
    opacity: 0.35;
    animation: ariffarm-erp-typing-bounce 1.2s infinite ease-in-out;
}

.ariffarm-erp-study-typing span:nth-child(1) {
    animation-delay: 0s;
}

.ariffarm-erp-study-typing span:nth-child(2) {
    animation-delay: 0.15s;
}

.ariffarm-erp-study-typing span:nth-child(3) {
    animation-delay: 0.3s;
}

@keyframes ariffarm-erp-typing-bounce {
    0%,
    60%,
    100% {
        transform: translateY(0);
        opacity: 0.35;
    }
    30% {
        transform: translateY(-0.28rem);
        opacity: 1;
    }
}

.ariffarm-erp-hero--beef .ariffarm-erp-study-typing span {
    background: #a67c52;
}

.ariffarm-erp-hero--poultry .ariffarm-erp-study-typing span {
    background: #c9a227;
}

.ariffarm-erp-study-msg--error .ariffarm-erp-study-bubble {
    color: #b33;
    border-color: #f0d0d0;
    background: #fff8f8;
}

.ariffarm-erp-study-retry {
    margin: 0.5rem 0 0;
}

.ariffarm-erp-study-retry-btn {
    appearance: none;
    border: 1px solid #d8c0c0;
    background: #fff;
    color: #8a3030;
    border-radius: 999px;
    font: inherit;
    font-size: 0.8125rem;
    font-weight: 600;
    padding: 0.25rem 0.75rem;
    cursor: pointer;
}

.ariffarm-erp-study-retry-btn:hover {
    background: #fff0f0;
}

.ariffarm-erp-study-ask-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.35rem 0.45rem 0.35rem 0.75rem;
    border-radius: 999px;
    background: #fff;
    border: 1px solid #e0ebe4;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.06);
}

.ariffarm-erp-study-sparkle {
    flex-shrink: 0;
    font-size: 1rem;
    color: #34ad54;
    line-height: 1;
}

.ariffarm-erp-study-input {
    flex: 1 1 auto;
    min-width: 0;
    border: none;
    background: transparent;
    font-size: 0.9rem;
    color: #1a3d2e;
    padding: 0.45rem 0;
    line-height: 1.35;
}

.ariffarm-erp-study-input:focus {
    outline: none;
}

.ariffarm-erp-study-input::placeholder {
    color: #9aaeb8;
}

.ariffarm-erp-study-send {
    flex-shrink: 0;
    width: 2.35rem;
    height: 2.35rem;
    border-radius: 50%;
    border: none;
    background: linear-gradient(135deg, #2d6b4a, #34ad54);
    color: #fff;
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.15s ease, transform 0.15s ease;
}

.ariffarm-erp-study-send:hover:not(:disabled) {
    transform: scale(1.04);
}

.ariffarm-erp-study-send:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.ariffarm-erp-hero--beef .ariffarm-erp-study-send {
    background: linear-gradient(135deg, #6b4423, #a67c52);
}

.ariffarm-erp-hero--beef .ariffarm-erp-study-sparkle {
    color: #a67c52;
}

.ariffarm-erp-study-examples {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    margin-top: 0.75rem;
    min-height: 4.75rem;
    align-content: flex-start;
    transition:
        opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1),
        transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.ariffarm-erp-study-examples--out {
    opacity: 0;
    transform: translateY(8px);
    pointer-events: none;
}

.ariffarm-erp-study-example {
    display: inline-block;
    padding: 0.45rem 0.75rem;
    border-radius: 999px;
    background: #fff;
    border: 1px solid #dceee3;
    font-size: 0.78rem;
    line-height: 1.35;
    color: #4a6572;
    cursor: pointer;
    font-family: inherit;
    text-align: left;
    transition:
        border-color 0.15s ease,
        background 0.15s ease,
        opacity 0.45s cubic-bezier(0.4, 0, 0.2, 1),
        transform 0.45s cubic-bezier(0.4, 0, 0.2, 1);
}

.ariffarm-erp-study-example--enter {
    opacity: 0;
    transform: translateY(10px);
    transition-delay: var(--erp-example-delay, 0ms);
}

.ariffarm-erp-study-example--enter.ariffarm-erp-study-example--enter-active {
    opacity: 1;
    transform: translateY(0);
}

.ariffarm-erp-study-example:hover,
.ariffarm-erp-study-example:focus-visible {
    border-color: #34ad54;
    background: #f7faf8;
    outline: none;
}

.ariffarm-erp-console-body {
    min-height: 520px;
    max-height: 520px;
    overflow: hidden;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
}

.ariffarm-erp-console-panel {
    padding: 1rem 1.15rem 1.25rem;
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    box-sizing: border-box;
}

.ariffarm-erp-console-panel[data-console-panel="study"] {
    padding: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.ariffarm-erp-console-panel--active {
    min-height: 100%;
}

.ariffarm-erp-console-meta {
    font-size: 0.78rem;
    color: #6a8695;
    margin-bottom: 0.75rem;
}

.ariffarm-erp-console-total {
    font-size: 0.85rem;
    margin-bottom: 1rem;
}

.ariffarm-erp-console-title span {
    font-size: 0.75rem;
    color: #6a8695;
}

.ariffarm-erp-console-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.ariffarm-erp-console-title h3 {
    font-size: 1rem;
    margin: 0;
    color: #1a3d2e;
}

.ariffarm-erp-kpi-group { margin-bottom: 1.15rem; }

.ariffarm-erp-kpi-group h4 {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #6a8695;
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.ariffarm-erp-kpi-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
}

@media (min-width: 576px) {
    .ariffarm-erp-kpi-grid--4 { grid-template-columns: repeat(4, 1fr); }
    .ariffarm-erp-kpi-grid--3 { grid-template-columns: repeat(3, 1fr); }
}

.ariffarm-erp-kpi {
    padding: 0.55rem 0.5rem;
    border-radius: 6px;
    background: #f7faf8;
    border: 1px solid #e8efeb;
}

.ariffarm-erp-kpi-label {
    font-size: 0.68rem;
    color: #6a8695;
    margin-bottom: 0.15rem;
}

.ariffarm-erp-kpi-value {
    font-size: 1rem;
    font-weight: 700;
    color: #1a3d2e;
    line-height: 1.2;
}

.ariffarm-erp-kpi-value-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.4rem;
    flex-wrap: nowrap;
}

.ariffarm-erp-kpi-value-row .ariffarm-erp-kpi-value {
    flex: 1 1 auto;
    min-width: 0;
}

.ariffarm-erp-kpi-meta {
    font-size: 0.62rem;
    color: #9aaeb8;
    margin-top: 0.15rem;
    line-height: 1.3;
}

.ariffarm-erp-kpi-badge {
    display: inline-block;
    flex: 0 0 auto;
    font-size: 0.58rem;
    font-weight: 700;
    text-transform: uppercase;
    padding: 0.12rem 0.38rem;
    border-radius: 999px;
    margin-top: 0;
    white-space: nowrap;
    line-height: 1.2;
}

.ariffarm-erp-kpi-badge--ok { background: #e8f7ed; color: #2a9648; }
.ariffarm-erp-kpi-badge--warn { background: #fff4e5; color: #c47a12; }
.ariffarm-erp-kpi-badge--ok-alt { background: #e8f0f7; color: #3a6ea5; }

.ariffarm-erp-section-lead {
    max-width: 44rem;
    margin: 0 auto 2rem;
    color: #6a8695;
    line-height: 1.55;
}

.ariffarm-erp-section-eyebrow {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #34ad54;
    margin-bottom: 0.5rem;
}

.ariffarm-erp-shipping-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 0.75rem;
    border-radius: 6px;
    background: #1a3d2e;
    color: #e8f7ed;
    font-size: 0.78rem;
    margin-top: 1rem;
}

.ariffarm-erp-shipping-badge span { opacity: 0.7; }

.ariffarm-erp-feature-card {
    background: #fff;
    border-radius: 8px;
    padding: 1.5rem;
    height: 100%;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    border: 1px solid #e8efeb;
}

.ariffarm-erp-feature-card img {
    width: 48px;
    height: 48px;
    margin-bottom: 1rem;
}

.ariffarm-erp-feature-card h3 {
    font-size: 1.15rem;
    margin-bottom: 0.65rem;
    color: #1a3d2e;
}

.ariffarm-erp-feature-card p,
.ariffarm-erp-feature-card li {
    font-size: 0.92rem;
    color: #6a8695;
    line-height: 1.5;
}

.ariffarm-erp-feature-card ul {
    margin: 0.75rem 0 0;
    padding-left: 1.1rem;
}

.ariffarm-erp-feature-card li { margin-bottom: 0.4rem; }

.ariffarm-erp-demo-panel {
    background: #1a3d2e;
    color: #e8f7ed;
    border-radius: 8px;
    padding: 1.25rem 1.5rem;
    font-size: 0.88rem;
    line-height: 1.5;
}

.ariffarm-erp-demo-panel .ariffarm-erp-demo-label {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #8fd4a8;
    margin-bottom: 0.5rem;
}

.ariffarm-erp-demo-panel .ariffarm-erp-demo-q {
    color: #fff;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.ariffarm-erp-demo-panel .ariffarm-erp-demo-a {
    border-left: 3px solid #34ad54;
    padding-left: 0.85rem;
    margin-bottom: 0;
}

.ariffarm-erp-grounded {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 700;
    color: #34ad54;
    background: rgba(52, 173, 84, 0.15);
    padding: 0.15rem 0.45rem;
    border-radius: 4px;
    margin-top: 0.5rem;
}

.ariffarm-erp-tmr-wrap {
    background: #fff;
    border: 1px solid #e8efeb;
    border-radius: 8px;
    padding: 1.25rem;
    overflow-x: auto;
}

.ariffarm-erp-tmr-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem 1.25rem;
    font-size: 0.78rem;
    color: #6a8695;
    margin-bottom: 0.75rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid #e8efeb;
}

.ariffarm-erp-tmr-meta strong { color: #1a3d2e; }

.ariffarm-erp-tmr-table {
    width: 100%;
    min-width: 320px;
    font-size: 0.78rem;
    border-collapse: collapse;
}

.ariffarm-erp-tmr-table th,
.ariffarm-erp-tmr-table td {
    padding: 0.4rem 0.5rem;
    border-bottom: 1px solid #e8efeb;
    text-align: left;
}

.ariffarm-erp-tmr-table th {
    color: #6a8695;
    font-weight: 600;
    background: #f7faf8;
}

.ariffarm-erp-tmr-foot {
    font-size: 0.75rem;
    color: #6a8695;
    margin-top: 0.75rem;
}

.ariffarm-erp-subgrid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    margin-top: 1rem;
}

@media (min-width: 576px) {
    .ariffarm-erp-subgrid { grid-template-columns: 1fr 1fr; }
}

.ariffarm-erp-mini-table {
    width: 100%;
    font-size: 0.75rem;
    border-collapse: collapse;
}

.ariffarm-erp-mini-table th,
.ariffarm-erp-mini-table td {
    padding: 0.35rem 0.45rem;
    border-bottom: 1px solid #e8efeb;
}

.ariffarm-erp-soon-badge {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    background: #fff4e5;
    color: #c47a12;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    margin-left: 0.5rem;
    vertical-align: middle;
}

.ariffarm-erp-multimodal {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    justify-content: center;
}

.ariffarm-erp-mm-card {
    flex: 1 1 10rem;
    max-width: 14rem;
    padding: 1rem;
    border-radius: 8px;
    background: #fff;
    border: 1px solid #e8efeb;
    text-align: center;
}

.ariffarm-erp-mm-card .ariffarm-erp-mm-type {
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    color: #34ad54;
    margin-bottom: 0.35rem;
}

.ariffarm-erp-mm-card p {
    font-size: 0.82rem;
    color: #4a6572;
    margin: 0;
}

.ariffarm-erp-mm-output {
    text-align: center;
    padding: 1rem 1.25rem;
    margin-top: 1.5rem;
    border-radius: 8px;
    background: #1a3d2e;
    color: #e8f7ed;
    font-size: 0.88rem;
}

.ariffarm-erp-econ-panel {
    background: #fff;
    border: 1px solid #e8efeb;
    border-radius: 8px;
    padding: 1.25rem;
}

.ariffarm-erp-econ-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.ariffarm-erp-econ-metric {
    flex: 1 1 7rem;
    background: #f7faf8;
    border-radius: 6px;
    padding: 0.75rem;
    text-align: center;
}

.ariffarm-erp-econ-metric strong {
    display: block;
    font-size: 1.25rem;
    color: #34ad54;
}

.ariffarm-erp-econ-metric span {
    font-size: 0.72rem;
    color: #6a8695;
}

.ariffarm-erp-pnl-list {
    list-style: none;
    padding: 0;
    margin: 0;
    font-size: 0.85rem;
}

.ariffarm-erp-pnl-list li {
    display: flex;
    justify-content: space-between;
    padding: 0.45rem 0;
    border-bottom: 1px solid #e8efeb;
}

.ariffarm-erp-pnl-list .pos { color: #34ad54; font-weight: 600; }
.ariffarm-erp-pnl-list .neg { color: #c44; font-weight: 600; }

/* WhatsApp mock */
.ariffarm-erp-wa-mock {
    max-width: 320px;
    margin: 0 auto;
    border-radius: 24px;
    overflow: hidden;
    border: 8px solid #1a1a1a;
    background: #e5ddd5;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.ariffarm-erp-wa-header {
    background: #075e54;
    color: #fff;
    padding: 0.75rem 1rem;
    font-size: 0.9rem;
    font-weight: 600;
}

.ariffarm-erp-wa-body {
    padding: 1rem;
    min-height: 200px;
}

.ariffarm-erp-wa-bubble {
    background: #fff;
    border-radius: 8px;
    padding: 0.55rem 0.75rem;
    font-size: 0.82rem;
    max-width: 85%;
    margin-bottom: 0.5rem;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
}

.ariffarm-erp-wa-bubble--out {
    background: #dcf8c6;
    margin-left: auto;
}

.ariffarm-erp-roles {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.25rem;
}

@media (min-width: 768px) {
    .ariffarm-erp-roles { grid-template-columns: repeat(3, 1fr); }
}

.ariffarm-erp-role {
    background: #fff;
    border-radius: 8px;
    padding: 1.5rem;
    border-top: 4px solid #34ad54;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05);
    height: 100%;
}

.ariffarm-erp-role-tag {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #34ad54;
    margin-bottom: 0.35rem;
}

.ariffarm-erp-role h3 {
    font-size: 1.1rem;
    color: #1a3d2e;
    margin-bottom: 0.35rem;
}

.ariffarm-erp-role .ariffarm-erp-role-sub {
    font-size: 0.88rem;
    font-weight: 600;
    color: #4a6572;
    margin-bottom: 0.75rem;
}

.ariffarm-erp-community-banner {
    text-align: center;
    padding: 2rem 1.5rem;
    border-radius: 8px;
    background: linear-gradient(135deg, #e8f7ed 0%, #f7faf8 100%);
    border: 1px solid #c8e6d0;
}

.ariffarm-erp-community-feed {
    margin-top: 1rem;
    padding: 0.75rem 1rem;
    background: #fff;
    border-radius: 6px;
    font-size: 0.88rem;
    color: #4a6572;
    border: 1px solid #e8efeb;
}

.ariffarm-erp-webinar-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.25rem;
}

@media (min-width: 768px) {
    .ariffarm-erp-webinar-grid { grid-template-columns: repeat(2, 1fr); }
}

.ariffarm-erp-webinar-card {
    background: #fff;
    border-radius: 8px;
    padding: 1.35rem;
    border: 1px solid #e8efeb;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.ariffarm-erp-webinar-card .ariffarm-erp-webinar-type {
    font-size: 0.72rem;
    font-weight: 700;
    color: #34ad54;
    text-transform: uppercase;
    margin-bottom: 0.35rem;
}

.ariffarm-erp-webinar-card h3 {
    font-size: 1.05rem;
    color: #1a3d2e;
    margin-bottom: 0.65rem;
}

.ariffarm-erp-webinar-card p {
    font-size: 0.88rem;
    color: #6a8695;
    flex: 1;
    margin-bottom: 1rem;
}

.ariffarm-erp-pricing-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.25rem;
    align-items: stretch;
}

@media (min-width: 768px) {
    .ariffarm-erp-pricing-grid { grid-template-columns: repeat(3, 1fr); }
}

.ariffarm-erp-price-card {
    background: #fff;
    border-radius: 10px;
    padding: 1.5rem;
    border: 2px solid #e8efeb;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.ariffarm-erp-price-card--popular {
    border-color: #34ad54;
    box-shadow: 0 8px 32px rgba(52, 173, 84, 0.15);
    position: relative;
}

.ariffarm-erp-price-popular {
    position: absolute;
    top: -0.65rem;
    left: 50%;
    transform: translateX(-50%);
    background: #34ad54;
    color: #fff;
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    padding: 0.2rem 0.65rem;
    border-radius: 999px;
    white-space: nowrap;
}

.ariffarm-erp-price-card h3 {
    font-size: 1.2rem;
    color: #1a3d2e;
    margin-bottom: 0.35rem;
}

.ariffarm-erp-price-card .ariffarm-erp-price-desc {
    font-size: 0.85rem;
    color: #6a8695;
    margin-bottom: 1rem;
    min-height: 2.5rem;
}

.ariffarm-erp-price-amount {
    font-size: 2rem;
    font-weight: 700;
    color: #1a3d2e;
    line-height: 1;
    margin-bottom: 0.25rem;
}

.ariffarm-erp-price-amount small {
    font-size: 0.9rem;
    font-weight: 500;
    color: #6a8695;
}

.ariffarm-erp-price-note {
    font-size: 0.78rem;
    color: #9aaeb8;
    margin-bottom: 1rem;
}

.ariffarm-erp-price-card ul {
    list-style: none;
    padding: 0;
    margin: 0 0 1.25rem;
    flex: 1;
    font-size: 0.88rem;
    color: #4a6572;
}

.ariffarm-erp-price-card li {
    padding: 0.35rem 0;
    padding-left: 1.25rem;
    position: relative;
}

.ariffarm-erp-price-card li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #34ad54;
    font-weight: 700;
}

.ariffarm-erp-pricing-toggle {
    text-align: center;
    margin-bottom: 2rem;
    font-size: 0.9rem;
    color: #6a8695;
}

.ariffarm-erp-pricing-toggle strong { color: #34ad54; }

.ariffarm-erp-attribution {
    font-size: 0.8rem;
    color: #9aaeb8;
    margin-top: 2rem;
    text-align: center;
}

.ariffarm-erp-attribution a {
    color: #6a8695;
    text-decoration: underline;
}

.ariffarm-erp-split {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    align-items: start;
}

@media (min-width: 992px) {
    .ariffarm-erp-split { grid-template-columns: 1fr 1fr; }
}

/* Hero search modal */
body.ariffarm-erp-modal-open {
    overflow: hidden;
}

.ariffarm-erp-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 1.5rem 1rem 2rem;
    overflow-y: auto;
}

.ariffarm-erp-modal[hidden] {
    display: none !important;
}

.ariffarm-erp-modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 20, 0.55);
    backdrop-filter: blur(4px);
}

.ariffarm-erp-modal-dialog {
    position: relative;
    width: min(640px, 100%);
    margin-top: 2rem;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.18);
    padding: 1.25rem 1.35rem 1.5rem;
    color: #1a3d2e;
}

.ariffarm-erp-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.ariffarm-erp-modal-species {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.78rem;
    font-weight: 700;
    padding: 0.25rem 0.65rem;
    border-radius: 999px;
    background: #e8f7ed;
    color: #1a3d2e;
}

.ariffarm-erp-modal-close {
    border: none;
    background: transparent;
    font-size: 1.5rem;
    line-height: 1;
    color: #6a8695;
    cursor: pointer;
    padding: 0.15rem 0.35rem;
}

.ariffarm-erp-modal-query {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: 1rem;
    color: #1a3d2e;
}

.ariffarm-erp-modal-search-icon {
    opacity: 0.45;
    flex-shrink: 0;
}

.ariffarm-erp-modal-body {
    font-size: 0.92rem;
    line-height: 1.55;
    color: #4a6572;
    margin-bottom: 1rem;
}

.ariffarm-erp-modal-body p {
    margin: 0 0 0.65rem;
}

.ariffarm-erp-modal-body ul {
    margin: 0 0 0.75rem;
    padding-left: 1.15rem;
}

.ariffarm-erp-modal-loading {
    color: #6a8695;
    font-style: italic;
}

.ariffarm-erp-modal-gated {
    filter: blur(5px);
    user-select: none;
    pointer-events: none;
    opacity: 0.55;
    margin-top: 0.5rem;
    max-height: 9rem;
    overflow: hidden;
}

.ariffarm-erp-modal-error {
    color: #b33;
    margin: 0;
}

.ariffarm-erp-modal-footer {
    border-top: 1px solid #e8efeb;
    padding-top: 1rem;
    text-align: center;
}

.ariffarm-erp-modal-lock {
    font-size: 0.88rem;
    font-weight: 600;
    color: #1a3d2e;
    margin-bottom: 0.85rem;
}

.ariffarm-erp-modal-cta {
    display: block;
    width: 100%;
    text-align: center;
    padding: 0.75rem 1rem;
    border-radius: 10px;
    font-weight: 700;
    font-size: 0.95rem;
    text-decoration: none !important;
    margin-bottom: 0.5rem;
}

.ariffarm-erp-modal-cta--primary {
    background: linear-gradient(90deg, #2d6b4a, #34ad54);
    color: #fff !important;
}

.ariffarm-erp-modal-cta--secondary {
    background: #fff;
    border: 1px solid #dceee3;
    color: #1a3d2e !important;
}

.ariffarm-erp-modal-micro {
    font-size: 0.78rem;
    color: #9aaeb8;
    margin: 0.35rem 0 0.75rem;
}
