/* ----------------------------1. hero Section ---------------------------- */


.iqi-flow-section {
    background: linear-gradient(to bottom, #FFF4F5, #ffffff);
}
.iqi-flow-content{
    padding: 100px 0;
}

/* TITLE */
.iqi-flow-title {
    font-size: clamp(32px, 4.5vw, 64px);
    font-weight: 700;
    color: #1C1C19;
    margin-bottom: 20px; 
    /* white-space: nowrap;    */
}

.iqi-highlight {
    display: block;
    color: var(--app-color);
}

/* SUBTEXT */
.iqi-flow-subtext {
    font-size: 16px;
    color: #6b7280;
    max-width: 600px;
    margin: 0 auto 30px;
    line-height: 1.6;
}

/* BUTTON WRAPPER */
.iqi-flow-buttons {
    margin-top: 10px;
}

/* PRIMARY BUTTON */
.iqi-btn-primary {
    background: var(--btn-bg);
    color: #fff;
    padding: 12px 26px;
    border-radius: 10px;
    font-weight: 600;
    text-decoration: none;
    box-shadow: 0 8px 20px rgba(168, 50, 50, 0.25);
    transition: all 0.3s ease;
}

.iqi-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 25px rgba(168, 50, 50, 0.35);
}

/* OUTLINE BUTTON */
.iqi-btn-outline {
    border: 1px solid #d1d5db;
    color: #374151;
    padding: 12px 26px;
    border-radius: 10px;
    font-weight: 500;
    text-decoration: none;
    background: #fff;
    transition: all 0.3s ease;
}

.iqi-btn-outline:hover {
    background: #f9fafb;
}

@media (max-width: 576px) {
    .iqi-flow-title {
        font-size: 30px;
    }
}

/* ----------------------------2. Write once Section ---------------------------- */

/* SECTION */
.iqi-sync-section {
    padding: 100px 20px;
}

/* TITLE */
.iqi-sync-title {
    font-size: clamp(28px, 4vw, 48px);
    font-weight: 700;
    color: #1c1c19;
    margin-bottom: 10px;
}

.iqi-flow-title,
.iqi-flow-subtext {
    word-break: break-word;
}
.iqi-sync-subtext {
    font-size: clamp(14px, 1.5vw, 18px);
    color: #6b7280;
    margin-bottom: 60px;
}

/* MAIN CARD */
.iqi-sync-card {
    background: #efefef;
    border-radius: 24px;
    padding: 50px;
    max-width: 1100px;   
    margin: 0 auto;
    position: relative;
}

/* GRID LAYOUT */
.iqi-grid {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 40px;
    align-items: center;
}

/* BOXES */
.iqi-box {
    border-radius: 16px;
    padding: 22px;
    color: #fff;
    display: flex;
    flex-direction: column;
    gap: 20px;
    /* max-width: 400px; */
    width: 100%;
}

.iqi-arrow::after {
    content: "→";
}

/* LEFT / RIGHT COLORS */
.iqi-box-left {
    background: linear-gradient(135deg, #3f5d2b, #1f2f14);
}

.iqi-box-right {
    background: linear-gradient(135deg, #a83232, #7a1f1f);
}

/* TAG ROW */
.iqi-tag-row {
    display: flex;
    align-items: center;
}

/* TAG */
.iqi-tag {
    font-size: clamp(11px, 1vw, 14px);
    font-weight: 600;
    opacity: 0.85;
}

/* PILL */
.iqi-pill {
    margin-left: auto;
    background: #FFE8E8;
    color: var(--app-color);
    font-size: clamp(10px, 0.9vw, 13px);
    padding: 2px 8px;
    border-radius: 16px;
    font-weight: 600;
}

/* FIELDS */
.iqi-fields {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.iqi-field {
    background: #fff;
    border-radius: 10px;
    padding: 14px;
    color: #333;
}

.iqi-field small {
    font-size: 11px;
    color: #6b7280;
    font-weight: 700;
}

.iqi-field p {
    margin: 4px 0 0;
    font-size: clamp(13px, 1.2vw, 16px);
    font-weight: 600;
    display: flex;
    justify-content: space-between;
}

/* CENTER */
.iqi-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
}

.iqi-logo {
    font-weight: 700;
}

.iqi-convert-btn {
    background: #fff;
    color: var(--app-color);
    border-radius: 999px;
    padding: 8px 16px;
    font-size: 14px;
    font-weight: 600;
    border: 1px solid #ddd;
}

/* SUCCESS FLOAT */
.iqi-success {
    position: absolute;
    bottom: 20px;
    right: 30px;
    background: #1f4d2b;
    color: #fff;
    padding: 12px 16px;
    border-radius: 10px;
    font-size: 13px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.15);
}

.iqi-stock-badge {
    position: absolute;
    top: 16px;
    right: 30px;  

    display: flex;
    align-items: center;
    gap: 6px;

    background: #ffffff;
    padding: 10px 14px;
    border-radius: 16px;

    font-size: 14px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.15);

    z-index: 5;
    max-width: 100%;
    flex-wrap: wrap;
    justify-content: center;
}
.iqi-stock-old {
    text-decoration: line-through;
}
.iqi-stock-new{
    color: #1f4d2b;
    font-weight: 700;
    font-size: 16px;
}
/* FEATURES */
.iqi-features {
    margin-top: 40px;
    font-size: 12px;
    color: #6b7280;
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

/* MOBILE */
@media (max-width: 576px) {

    /* Arrow direction */
    .iqi-arrow::after {
        content: "↓";
    }

    /* Layout stack */
    .iqi-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .iqi-sync-card {
        padding: 18px 14px;
        display: flex;
        flex-direction: column;
    }

    /* Cards */
    .iqi-box {
        padding: 14px;
        gap: 12px;
        border-radius: 14px;
        box-shadow: 0 6px 14px rgba(0,0,0,0.08);
    }

    .iqi-fields {
        gap: 10px;
    }

    .iqi-field {
        padding: 12px;
    }

    .iqi-field small {
        font-size: 10px;
    }

    .iqi-field p {
        font-size: 14px;
        gap: 6px;
    }

    .iqi-tag-row {
        margin-bottom: 6px;
    }

    /* Center section */
    .iqi-center {
        gap: 8px;
        margin: 8px 0;
    }

    .iqi-convert-btn {
        font-size: 12px;
        padding: 6px 10px;
    }

    /* Fix overlapping badges */
    .iqi-stock-badge,
    .iqi-success {
        position: static;
        display: flex;
        justify-content: center;
        margin: 10px auto;
    }
}
@media (min-width: 577px) and (max-width: 992px) {

    /* Stack everything */
    .iqi-grid {
        grid-template-columns: 1fr;
        gap: 26px;
        justify-items: center; /* center all children */
    }

    /* Main card spacing */
    .iqi-sync-card {
        padding: 32px 28px;
        display: flex;
        flex-direction: column;
        align-items: center; /* center inner content */
    }

    /* Cards */
    .iqi-box {
        width: 100%;
        max-width: 420px;   /* prevents full width */
        margin: 0 auto;
        padding: 20px;
        gap: 16px;
        border-radius: 16px;
    }

    /* Fields */
    .iqi-field {
        padding: 14px;
    }

    .iqi-field p {
        font-size: 15px;
    }

    /* Center section */
    .iqi-center {
        width: fit-content;
        margin: 14px auto;
        text-align: center;
        gap: 12px;
    }

    .iqi-convert-btn {
        font-size: 14px;
        padding: 8px 16px;
    }

    /* Arrow stays horizontal */
    .iqi-arrow::after {
        content: "→";
    }

    /* Badges (no overlap, no full width) */
    .iqi-stock-badge,
    .iqi-success {
        position: static;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: fit-content;
        max-width: 90%;
        margin: 12px auto;
        text-align: center;
    }

    /* Optional polish */
    .iqi-success {
        flex-direction: column;
    }

    .iqi-stock-badge {
        flex-wrap: wrap;
    }
}

/* ----------------------------3. Process Section ---------------------------- */
/* * {
    outline: 1px solid red;
} */

/* Label */
.process-label {
    font-size: 20px;
    color: #323232;
    font-weight: 500;
}

/* Heading */
.process-heading {
    font-size: 32px;
    line-height: 1.5;
    font-weight: 500;
}

.process-heading span {
    color: var(--app-color);
    font-weight: 600;
}

/* Cards */
.process-card {
    position: relative;
    border-radius: 16px;
    padding: 34px 24px 20px;
    color: #fff;
    height: 100%;
    min-height: 260px;
}

.card-top {
    margin-bottom: 0px;
}

/* Icon box */
.icon-box {
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;

    flex-shrink: 0;
}

.icon-box i {
    font-size: 20px;
    color: var(--app-color);
}

/* Step tag */
.step-tag {
    font-size: 18px;
    opacity: 0.8;
}
/* Gradients */
.step-1 {
    background: var(--card-4-bg);
}

.step-2 {
    background: var(--card-5-bg);
}

.step-3 {
    background: var(--card-6-bg);
}

.step-tag .auto {
    background: #cfead9;
    color: #1c6b4a;
    padding: 2px 8px;
    border-radius: 6px;
    margin-left: 6px;
    font-size: 10px;
}

/* Title */
.process-card h5 {
    font-size: 20px;
    margin-bottom: 16px;
    font-weight: 600;
}

/* Mock UI box */
.mock-box {
    border-radius: 10px;
    padding: 12px;
    margin-bottom: 14px;
}
.mock-box img {
    width: 100%;
    height: auto;
    display: block;
}

/* Description */
.process-card p {
    font-size: 16px;
    opacity: 0.9;
}

/* Connection line (desktop only) */
@media (min-width: 992px) {
    .process-steps {
        position: relative;
    }

    .process-steps::before {
        content: "";
        position: absolute;
        top: 50%;
        left: 10%;
        right: 10%;
        height: 2px;
        background: #ddd;
        z-index: 0;
    }

    .process-card {
        position: relative;
        z-index: 1;
    }
}

/* Mobile */
@media (max-width: 768px) {
    .process-heading {
        font-size: 22px;
    }

    .process-card {
        min-height: auto;
    }
}

/* ----------------------------4. catalog and manual invoice creation Section ---------------------------- */

/* Section */
.control-section {
    background: #f6f6f6;
    padding: clamp(80px, 10vw, 120px) 0 clamp(60px, 8vw, 80px);
    overflow: hidden; 
}

/* Heading */
.section-title {
    font-size: clamp(36px, 4vw, 42px);
    font-weight: 600;
}

.section-subtitle {
    color: #666;
    margin-top: 8px;
}

/* Cards */
.control-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border-radius: 16px;
    padding: 32px 24px;
    height: 100%;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

/* Header */
.card-head i {
    color: var(--app-color);
}

.card-head h5 {
    margin: 0;
    font-weight: 600;
}

/* Description */
.card-desc {
    color: #777;
    margin: 10px 0 16px;
}

/* UI Box */
.ui-box {
    display: flex;
    flex-direction: column;
    background: #fafafa;
    border: 1px solid #eee;
    border-radius: 12px;
    padding: 16px;
    flex-grow: 1;
}

.ui-actions {
    margin-top: auto;
}
/* Labels */
.label {
    font-size: 16px;
    color: #666;
    margin-bottom: 4px;
    display: block;
}

/* Fake inputs */
.fake-input {
    height: 40px;
    border-radius: 8px;
    border: 1px solid #ddd;
    background: #fff;
    display: flex;
    align-items: center;
    padding: 0 10px;
    font-size: 14px;
    color: #999;
}

/* Form spacing */
.form-group {
    margin-bottom: 16px;
}

/* Buttons (fake but real looking) */
.btn-fake {
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 15px;
}

.btn-fake.light {
    background: #eee;
    color: #333;
}
.ui-top {
    gap: 10px;
}
.btn-fake.primary {
    background: var(--btn-bg);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: auto;
    padding: 6px 14px;
}

/* Actions */
.preview {
    font-size: 15px;
    font-weight: 500;
    color: var(--app-color);
}

/* Table */
.ui-table {
    border-top: 1px solid #eee;
}

.table-head {
    font-size: 13px;
    color: var(--app-color);
    padding: 10px 0;
}

.table-row {
    padding: 10px 0;
    border-top: 1px solid #eee;
    font-size: 14px;
}

/* ----------------------------5.Benefit Section ---------------------------- */

/* ========================================
   BENTO SECTION
======================================== */

.bento-section {
    background: #f6f6f6;
    padding: clamp(80px, 8vw, 120px) 0;
}

/* ========================================
   HEADING
======================================== */

.bento-label {
    font-size: 14px;
    letter-spacing: 2px;
    color: #902A2C;
    font-weight: 600;
}

.bento-heading h2 {
    font-size: clamp(36px, 5vw, 52px);
    font-weight: 600;
    line-height: 1.2;
}

.bento-heading h2 span {
    color: #666;
    font-weight: 500;
}

/* ========================================
   GRID
======================================== */

.bento-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

/* ========================================
   CARD BASE
======================================== */

.bento-card {
    border-radius: 20px;
    padding: 28px;
    color: #fff;
    min-height: 280px;
    height: 100%;
    display: flex;
    overflow: hidden;
}

/* Large cards */
.bento-1 {
    grid-column: span 2;
    background: var(--card-2-bg);
}

/* Small cards */
.bento-2 {
    background: var(--card-4-bg);
}

.bento-3 {
    background: var(--card-5-bg);
}

/* Large card */
.bento-4 {
    grid-column: span 2;
    background: var(--card-6-bg);
}

/* ========================================
   INNER LAYOUT
======================================== */

.bento-inner {
    display: flex;
    width: 100%;
    height: 100%;
}
.bento-1,
.bento-2 {
    padding-bottom: 0;
}
/* BIG cards → image beside text */
.bento-inner.big {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

/* SMALL cards → image below text */
.bento-inner.small {
    flex-direction: column;
    height: 100%;
}

/* ========================================
   CONTENT
======================================== */

.bento-content {
    position: relative;
    z-index: 2;
}

/* Big cards text width */
.bento-inner.big .bento-content {
    max-width: 55%;
}

/* Small cards full width */
.bento-inner.small .bento-content {
    max-width: 100%;
}

/* ========================================
   IMAGE
======================================== */

.bento-image {
    position: relative;
    z-index: 1;
}

/* Proper SVG rendering */
.bento-image img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
}

/* Big card image */
.bento-inner.big .bento-image {
    max-width: 60%;
    flex-shrink: 0;
}

/* Small card image pushed down */
.bento-inner.small .bento-image {
    margin-top: auto;
    padding-top: 20px;
    display: flex;
    justify-content: center;
}

.bento-inner.small .bento-image img {
    width: 100%;
    max-width: 600px;
    height: auto;
    display: block;
}

.bento-2 .bento-image img {
    width: 100%;
    height: auto;
    max-width: 1000px;
}
/* ========================================
   ICON BOX
======================================== */

.bento-card .icon-box {
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.bento-card .icon-box i {
    color: var(--app-color);
    font-size: 20px;
}

/* ========================================
   TYPOGRAPHY
======================================== */

.bento-card h5 {
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 12px;
}

/* BIG cards */
.bento-1 h5,
.bento-4 h5 {
    font-size: 30px;
}

/* SMALL cards */
.bento-2 h5,
.bento-3 h5 {
    font-size: 22px;
}

.bento-card p {
    font-size: 16px;
    opacity: 0.9;
    margin-bottom: 0;
}



/* ========================================
   LARGE TABLET (992px → 769px)
======================================== */
@media (max-width: 992px) and (min-width: 769px) {

    .bento-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .bento-1,
    .bento-4 {
        grid-column: span 2;
    }

    .bento-1,
    .bento-2 {
        padding-bottom: 0;
    }

    /* Big cards: stack content + image vertically */
    .bento-1 .bento-inner.big,
    .bento-4 .bento-inner.big {
        flex-direction: column;
        align-items: flex-start;
    }

    .bento-1 .bento-inner.big .bento-content,
    .bento-4 .bento-inner.big .bento-content {
        max-width: 100%;
    }

    .bento-1 .bento-inner.big .bento-image,
    .bento-4 .bento-inner.big .bento-image {
        max-width: 100%;
        margin-top: 16px;
        display: flex;
        justify-content: center;
        width: 100%;
    }

    .bento-1 .bento-inner.big .bento-image img,
    .bento-4 .bento-inner.big .bento-image img {
        max-width: 280px;
        height: auto;
    }

    .bento-card {
        min-height: 260px;
    }

    .bento-1 h5,
    .bento-4 h5 {
        font-size: 26px;
    }

    .bento-2 h5,
    .bento-3 h5 {
        font-size: 20px;
    }

    .bento-3 .bento-image img {
        max-width: 200px;
    }
}


/* ========================================
   SMALL TABLET (768px → 577px)
======================================== */
@media (max-width: 768px) and (min-width: 577px) {

    .bento-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .bento-1,
    .bento-4 {
        grid-column: span 1;
    }

    .bento-1,
    .bento-2 {
        padding-bottom: 28px;
    }

    /* ALL cards: side-by-side layout */
    .bento-card .bento-inner {
        flex-direction: row !important;
        align-items: center;
        justify-content: space-between;
        gap: 16px;
    }

    .bento-card .bento-content {
        max-width: 55%;
    }

    /* Push image right */
    .bento-card .bento-image {
        max-width: 45%;
        margin-top: 0 !important;
        padding-top: 0 !important;
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .bento-card .bento-image img {
        width: 100%;
        max-width: 100%;
        height: auto;
    }

    .bento-2 .bento-image img {
        max-width: 200px;
    }

    .bento-card h5 {
        font-size: 20px !important;
        line-height: 1.3;
    }

    .bento-card p {
        font-size: 16px;
    }

    .bento-card .icon-box {
        width: 40px;
        height: 40px;
    }
}


/* ========================================
   MOBILE (576px ↓)
======================================== */
@media (max-width: 576px) {

    .bento-grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .bento-1,
    .bento-4 {
        grid-column: span 1;
    }

    .bento-1,
    .bento-2 {
        padding-bottom: 24px;
    }

    /* ALL cards: vertical stack */
    .bento-card .bento-inner {
        flex-direction: column !important;
        align-items: flex-start;
        text-align: left;
        gap: 16px;
    }

    .bento-card .bento-content {
        max-width: 100%;
    }

    .bento-card .bento-image {
        max-width: 320px;
        margin-top: 0 !important;
        padding-top: 0 !important;
        display: flex;
        justify-content: center;
        width: 100%;
    }

    .bento-card .bento-image img {
        max-width: 220px;
        height: auto;
        margin: 0 auto;
    }

    .bento-card h5 {
        font-size: 20px !important;
        line-height: 1.3;
    }

    .bento-card p {
        font-size: 16px;
    }
    .bento-1 .bento-inner.big .bento-content,
    .bento-4 .bento-inner.big .bento-content {
        max-width: 100% !important;
        justify-content: center;
    }

}

/* ----------------------------6.CTA Section ---------------------------- */

.iqi-cta {
    background: #fff;
}

.iqi-cta-title,
.iqi-cta-btn,
.iqi-cta-note {
    position: relative;
    z-index: 2;
}
/* Card */
.iqi-cta-card {
    position: relative;
    /* background: linear-gradient(135deg, #8B1E25, #A62B33); */
    background: var(--card-3-bg);
    border-radius: 28px;
    padding: clamp(40px, 6vw, 90px) 20px;
    overflow: hidden;
    color: #fff;
    max-width: 1100px;
    margin: auto;
}

/* shared styles */
.cta-pattern {
    position: absolute;
   width: clamp(180px, 35vw, 500px);
    opacity: 1;
    pointer-events: none;
    z-index: 1;
}

/* top left */
.pattern-top-left {
    top: -40px;
    left: -40px;
}

/* bottom right */
.pattern-bottom-right {
    bottom: -40px;
    right: -40px;
}

/* make sure content stays above */
.iqi-cta-card {
    position: relative;
    z-index: 2;
}

/* Grid overlay
.iqi-cta-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: 
        linear-gradient(rgba(255, 255, 255, 0.281) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.281) 1px, transparent 1px);
    background-size: 40px 40px;
    opacity: 1;
    pointer-events: none;
} */

/* Title */
.iqi-cta-title {
    font-size: clamp(26px, 3vw, 44px);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 25px;
    position: relative;
    z-index: 2;
}

/* Button */
.iqi-cta-btn {
    display: inline-block;
    background: #fff;
    color: var(--app-color);
    padding: 14px 28px;
    border-radius: 12px;
    font-weight: 600;
    text-decoration: none;
    transition: 0.2s ease;
    position: relative;
    z-index: 2;
}

.iqi-cta-btn:hover {
    transform: translateY(-2px);
}

/* Note */
.iqi-cta-note {
    margin-top: 18px;
    font-size: 12px;
    letter-spacing: 1px;
    opacity: 0.8;
    position: relative;
    z-index: 2;
}
