/* =========================================================
   HOMEPAGE V3 — COHESIVE PREMIUM MIDDLE
   ========================================================= */

.mid-showcase-section,
.platform-showcase-section,
.booking-journey-section,
.business-benefit-section,
.faq-premium-section {
    padding: 108px 0;
}

.mid-showcase-section {
    background:
        radial-gradient(circle at 12% 6%, rgba(37,99,235,.08), transparent 26%),
        #f4f7fb;
}

.mid-heading {
    max-width: 860px;
    margin: 0 auto 58px;
    text-align: center;
}

.mid-heading h2,
.booking-journey-intro h2,
.benefit-header h2,
.faq-premium-copy h2 {
    margin: 0;
    color: #162033;
    font-size: clamp(38px,4.6vw,58px);
    line-height: 1.06;
    letter-spacing: -.045em;
}

.mid-heading p,
.booking-journey-intro p,
.benefit-header p,
.faq-premium-copy p {
    margin: 18px auto 0;
    color: #718096;
    font-size: 17px;
    line-height: 1.75;
}

.mid-feature-row {
    min-height: 500px;
    margin-top: 26px;
    padding: 42px;
    display: grid;
    grid-template-columns: .9fr 1.1fr;
    gap: 52px;
    align-items: center;
    background: #fff;
    border: 1px solid #e5eaf1;
    border-radius: 30px;
    box-shadow: 0 24px 70px rgba(20,34,61,.08);
    overflow: hidden;
}

.mid-feature-dark {
    color: #fff;
    background:
        radial-gradient(circle at 80% 18%, rgba(109,93,252,.27), transparent 28%),
        linear-gradient(135deg,#0b1120,#111827 55%,#172554);
    border-color: rgba(255,255,255,.08);
}

.mid-feature-dark .mid-feature-copy h3 {
    color: #fff;
}

.mid-feature-dark .mid-feature-copy p {
    color: #cbd5e1;
}

.feature-index {
    display: block;
    margin-bottom: 16px;
    color: #94a3b8;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: .16em;
}

.mid-feature-copy h3 {
    margin: 8px 0 16px;
    color: #162033;
    font-size: clamp(30px,3vw,44px);
    line-height: 1.08;
    letter-spacing: -.035em;
}

.mid-feature-copy p {
    margin: 0;
    color: #718096;
    font-size: 16px;
    line-height: 1.75;
}

.mini-pill-row {
    margin-top: 24px;
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
}

.mini-pill-row span {
    padding: 9px 12px;
    color: #334155;
    background: #f8fafc;
    border: 1px solid #e5eaf1;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 800;
}

.mid-feature-dark .mini-pill-row span {
    color: #dbeafe;
    background: rgba(255,255,255,.07);
    border-color: rgba(255,255,255,.10);
}

.product-window {
    overflow: hidden;
    background: #fff;
    border: 1px solid #e5eaf1;
    border-radius: 24px;
    box-shadow: 0 26px 60px rgba(0,0,0,.18);
}

.product-window-bar {
    padding: 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #e5eaf1;
}

.product-window-title {
    display: flex;
    gap: 12px;
    align-items: center;
}

.product-avatar {
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    color: #fff;
    background: linear-gradient(135deg,#2563eb,#6d5dfc);
    border-radius: 13px;
    font-size: 12px;
    font-weight: 900;
}

.product-window-title div {
    display: grid;
    gap: 3px;
}

.product-window-title strong {
    color: #162033;
}

.product-window-title small {
    color: #159a6b;
}

.product-status {
    padding: 7px 10px;
    color: #087443;
    background: #e8f8f1;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 900;
}

.product-chat {
    padding: 18px;
    display: grid;
    gap: 12px;
    background: #fbfcfe;
}

.product-bubble {
    max-width: 82%;
    padding: 12px 14px;
    border-radius: 14px;
    font-size: 13px;
    line-height: 1.5;
}

.product-bubble.user {
    justify-self: end;
    color: #fff;
    background: #2563eb;
    border-bottom-right-radius: 5px;
}

.product-bubble.ai {
    color: #334155;
    background: #eef2f7;
    border-bottom-left-radius: 5px;
}

.product-bubble.success {
    color: #087443;
    background: #e8f8f1;
}

.product-input {
    padding: 12px;
    display: flex;
    justify-content: space-between;
    gap: 10px;
    align-items: center;
    color: #94a3b8;
    border-top: 1px solid #e5eaf1;
    font-size: 13px;
}

.product-input button {
    width: 38px;
    height: 38px;
    border: 0;
    border-radius: 11px;
    background: #eef2ff;
}

.gap-feature-row {
    grid-template-columns: 1.1fr .9fr;
    background:
        radial-gradient(circle at 10% 80%, rgba(21,154,107,.08), transparent 24%),
        #fff;
}

.gap-visual {
    position: relative;
    min-height: 380px;
}

.gap-calendar-card,
.gap-pupils-card {
    position: absolute;
    background: #fff;
    border: 1px solid #e5eaf1;
    border-radius: 20px;
    box-shadow: 0 20px 52px rgba(20,34,61,.10);
}

.gap-calendar-card {
    left: 0;
    top: 0;
    width: 76%;
    padding: 18px;
}

.gap-pupils-card {
    right: 0;
    bottom: 0;
    width: 60%;
    padding: 16px;
}

.gap-calendar-header,
.gap-pupils-head {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: center;
}

.gap-calendar-header > div {
    display: grid;
    gap: 3px;
}

.gap-calendar-header span,
.gap-pupils-head span {
    color: #94a3b8;
    font-size: 11px;
}

.gap-calendar-badge {
    padding: 6px 9px;
    color: #a65f00 !important;
    background: #fff4d6;
    border-radius: 999px;
    font-weight: 900;
}

.gap-calendar-slot {
    min-height: 72px;
    padding: 12px;
    display: grid;
    grid-template-columns: 54px 1fr auto;
    gap: 10px;
    align-items: center;
    border-top: 1px solid #edf1f5;
}

.gap-calendar-slot > span {
    color: #718096;
    font-size: 12px;
}

.gap-calendar-slot > div {
    display: grid;
    gap: 2px;
}

.gap-calendar-slot small {
    color: #94a3b8;
}

.gap-highlight {
    margin: 5px 0;
    background: #fff8e8;
    border: 1px dashed #efb64d;
    border-radius: 12px;
}

.gap-highlight strong {
    color: #a65f00;
}

.gap-highlight button {
    padding: 7px 9px;
    color: #a65f00;
    background: #fff0c5;
    border: 0;
    border-radius: 8px;
    font-size: 11px;
    font-weight: 900;
}

.gap-pupils-head {
    margin-bottom: 8px;
}

.gap-pupil-row {
    padding: 10px 0;
    display: grid;
    grid-template-columns: 36px 1fr auto;
    gap: 9px;
    align-items: center;
    border-top: 1px solid #edf1f5;
}

.gap-pupil-avatar {
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    color: #2563eb;
    background: #eaf2ff;
    border-radius: 10px;
    font-size: 11px;
    font-weight: 900;
}

.gap-pupil-row > div {
    display: grid;
    gap: 2px;
}

.gap-pupil-row small,
.gap-pupil-row em {
    color: #94a3b8;
    font-size: 10px;
}

.gap-pupil-row em {
    color: #159a6b;
    font-style: normal;
    font-weight: 900;
}

.premium-value-box {
    margin-top: 24px;
    padding: 17px 18px;
    display: grid;
    gap: 4px;
    background: #ecfdf5;
    border: 1px solid #c7f0df;
    border-radius: 14px;
}

.premium-value-box strong {
    color: #087443;
}

.premium-value-box span {
    color: #4b6b5d;
    font-size: 13px;
}

.website-feature-row {
    background:
        radial-gradient(circle at 90% 10%, rgba(109,93,252,.08), transparent 24%),
        #fff;
}

.website-demo-shell {
    display: grid;
    grid-template-columns: 1fr .48fr;
    gap: 16px;
    align-items: center;
}

.website-demo-browser {
    overflow: hidden;
    border: 1px solid #dfe5ee;
    border-radius: 20px;
    box-shadow: 0 18px 46px rgba(20,34,61,.10);
}

.website-demo-bar {
    min-height: 40px;
    padding: 10px 12px;
    display: flex;
    align-items: center;
    gap: 10px;
    background: #f8fafc;
    border-bottom: 1px solid #e5eaf1;
}

.browser-dots {
    display: flex;
    gap: 5px;
}

.browser-dots i {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #d5dce7;
}

.website-demo-bar > span {
    color: #94a3b8;
    font-size: 10px;
}

.website-demo-body {
    min-height: 310px;
    padding: 22px;
    background: linear-gradient(180deg,#eef4ff 0 44%,#fff 44%);
}

.website-demo-copy {
    display: grid;
    gap: 4px;
}

.website-demo-copy strong {
    color: #162033;
}

.website-demo-copy span {
    color: #718096;
    font-size: 11px;
}

.website-chat-card {
    width: min(280px,92%);
    margin: 28px 0 0 auto;
    padding: 12px;
    background: #fff;
    border: 1px solid #e5eaf1;
    border-radius: 15px;
    box-shadow: 0 12px 34px rgba(20,34,61,.12);
}

.website-chat-head {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
}

.website-chat-head span {
    width: 28px;
    height: 28px;
    display: grid;
    place-items: center;
    color: #fff;
    background: #2563eb;
    border-radius: 9px;
    font-size: 9px;
    font-weight: 900;
}

.website-chat-card p {
    margin: 7px 0;
    padding: 8px 9px;
    border-radius: 10px;
    font-size: 10px;
    line-height: 1.4;
}

.web-ai {
    margin-right: 24px !important;
    background: #f1f5f9;
}

.web-user {
    margin-left: 72px !important;
    color: #fff;
    background: #2563eb;
}

.web-success {
    color: #087443;
    background: #e8f8f1;
}

.website-to-diary {
    padding: 16px;
    display: grid;
    gap: 6px;
    color: #087443;
    background: #e8f8f1;
    border: 1px solid #b9ebcc;
    border-radius: 18px;
}

.website-to-diary span {
    font-size: 10px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: .08em;
}

.website-to-diary small {
    color: #4f6f62;
    line-height: 1.4;
}

.platform-showcase-section {
    background: linear-gradient(180deg,#fff,#fbfcfe);
}

.platform-dashboard-grid {
    display: grid;
    grid-template-columns: repeat(4,minmax(0,1fr));
    gap: 18px;
}

.platform-panel {
    min-height: 245px;
    padding: 25px;
    background: #fff;
    border: 1px solid #e5eaf1;
    border-radius: 22px;
    box-shadow: 0 12px 34px rgba(20,34,61,.05);
}

.platform-panel-large {
    grid-column: span 2;
    min-height: 320px;
    background:
        radial-gradient(circle at 88% 12%, rgba(37,99,235,.08), transparent 30%),
        #fff;
}

.platform-panel-accent {
    background:
        radial-gradient(circle at 88% 12%, rgba(109,93,252,.10), transparent 30%),
        #fff;
}

.platform-panel-top {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: flex-start;
}

.platform-label {
    color: #2563eb;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.platform-panel h3 {
    margin: 8px 0 0;
    color: #162033;
    font-size: 22px;
}

.platform-icon {
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg,#eaf2ff,#f0edff);
    border-radius: 13px;
    font-size: 20px;
}

.platform-panel > p {
    margin: 15px 0 0;
    color: #718096;
    font-size: 14px;
    line-height: 1.65;
}

.mini-calendar-grid {
    margin-top: 24px;
    display: grid;
    grid-template-columns: repeat(4,1fr);
    gap: 8px;
}

.mini-calendar-grid div {
    padding: 10px;
    display: grid;
    gap: 3px;
    background: #f8fafc;
    border: 1px solid #edf1f5;
    border-radius: 11px;
}

.mini-calendar-grid span,
.mini-calendar-grid small {
    color: #94a3b8;
    font-size: 10px;
}

.mini-calendar-grid strong {
    color: #334155;
}

.mini-calendar-active {
    background: #eaf2ff !important;
    border-color: #bfd3ff !important;
}

.platform-progress {
    height: 8px;
    margin-top: 22px;
    overflow: hidden;
    background: #edf1f5;
    border-radius: 999px;
}

.platform-progress span {
    width: 72%;
    height: 100%;
    display: block;
    background: linear-gradient(90deg,#2563eb,#6d5dfc);
    border-radius: inherit;
}

.wallet-strip {
    margin-top: 22px;
    padding: 13px;
    display: flex;
    justify-content: space-between;
    gap: 12px;
    background: #f8fafc;
    border: 1px solid #e5eaf1;
    border-radius: 12px;
}

.wallet-strip span {
    color: #718096;
    font-size: 12px;
}

.booking-journey-section {
    background:
        radial-gradient(circle at 10% 18%, rgba(37,99,235,.16), transparent 24%),
        linear-gradient(135deg,#0b1120,#111827 55%,#172554);
}

.booking-journey-layout {
    display: grid;
    grid-template-columns: .72fr 1.28fr;
    gap: 70px;
}

.booking-journey-intro h2 {
    color: #fff;
}

.booking-journey-intro p {
    margin-left: 0;
    color: #cbd5e1;
}

.booking-journey-intro .button {
    margin-top: 24px;
}

.booking-journey-list {
    display: grid;
    grid-template-columns: repeat(2,minmax(0,1fr));
    gap: 14px;
}

.booking-journey-list article {
    min-height: 185px;
    padding: 24px;
    display: grid;
    grid-template-columns: 48px 1fr;
    gap: 14px;
    background: rgba(255,255,255,.07);
    border: 1px solid rgba(255,255,255,.10);
    border-radius: 18px;
}

.booking-journey-list article > span {
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    color: #9eb8ff;
    background: rgba(37,99,235,.18);
    border: 1px solid rgba(158,184,255,.18);
    border-radius: 13px;
    font-size: 12px;
    font-weight: 900;
}

.booking-journey-list strong {
    color: #fff;
    font-size: 18px;
}

.booking-journey-list p {
    margin: 8px 0 0;
    color: #b8c5d9;
    font-size: 13px;
    line-height: 1.6;
}

.business-benefit-section {
    background: #fff;
}

.benefit-header {
    max-width: 820px;
    margin-bottom: 50px;
}

.benefit-header p {
    margin-left: 0;
}

.benefit-grid {
    display: grid;
    grid-template-columns: repeat(4,minmax(0,1fr));
    gap: 18px;
}

.benefit-grid article {
    min-height: 230px;
    padding: 26px;
    background: #f8fafc;
    border: 1px solid #e5eaf1;
    border-radius: 20px;
}

.benefit-grid article > span {
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    margin-bottom: 28px;
    background: #fff;
    border: 1px solid #e5eaf1;
    border-radius: 14px;
    font-size: 21px;
}

.benefit-grid strong {
    display: block;
    color: #162033;
    font-size: 18px;
}

.benefit-grid p {
    margin: 10px 0 0;
    color: #718096;
    font-size: 14px;
    line-height: 1.65;
}

.faq-premium-section {
    background:
        radial-gradient(circle at 8% 10%, rgba(109,93,252,.07), transparent 22%),
        #fff;
}

.faq-premium-layout {
    display: grid;
    grid-template-columns: .72fr 1.28fr;
    gap: 70px;
}

.faq-premium-copy p {
    margin-left: 0;
}

.faq-premium-list {
    display: grid;
    gap: 12px;
}

.faq-premium-list details {
    padding: 0 22px;
    background: #f8fafc;
    border: 1px solid #e5eaf1;
    border-radius: 16px;
}

.faq-premium-list details[open] {
    background: #fff;
    border-color: #cfdaf0;
    box-shadow: 0 14px 36px rgba(20,34,61,.06);
}

.faq-premium-list summary {
    padding: 21px 42px 21px 0;
    position: relative;
    color: #162033;
    cursor: pointer;
    list-style: none;
    font-size: 17px;
    font-weight: 800;
}

.faq-premium-list summary::-webkit-details-marker {
    display: none;
}

.faq-premium-list summary::after {
    content: "+";
    position: absolute;
    right: 0;
    top: 16px;
    width: 30px;
    height: 30px;
    display: grid;
    place-items: center;
    color: #2563eb;
    background: #eaf2ff;
    border-radius: 9px;
    font-size: 18px;
}

.faq-premium-list details[open] summary::after {
    content: "−";
}

.faq-premium-list p {
    margin: -2px 0 22px;
    padding-right: 35px;
    color: #718096;
    line-height: 1.7;
}

@media (max-width:1100px) {
    .mid-feature-row,
    .gap-feature-row {
        grid-template-columns: 1fr;
    }

    .gap-visual {
        min-height: 430px;
    }

    .platform-dashboard-grid {
        grid-template-columns: repeat(2,minmax(0,1fr));
    }

    .booking-journey-layout,
    .faq-premium-layout {
        grid-template-columns: 1fr;
    }

    .benefit-grid {
        grid-template-columns: repeat(2,minmax(0,1fr));
    }
}

@media (max-width:800px) {
    .mid-showcase-section,
    .platform-showcase-section,
    .booking-journey-section,
    .business-benefit-section,
    .faq-premium-section {
        padding: 78px 0;
    }

    .mid-feature-row {
        padding: 26px;
        gap: 34px;
        border-radius: 22px;
    }

    .website-demo-shell,
    .platform-dashboard-grid,
    .booking-journey-list,
    .benefit-grid {
        grid-template-columns: 1fr;
    }

    .platform-panel-large {
        grid-column: auto;
    }

    .gap-visual {
        min-height: auto;
        display: grid;
        gap: 14px;
    }

    .gap-calendar-card,
    .gap-pupils-card {
        position: relative;
        inset: auto;
        width: 100%;
    }
}

@media (max-width:560px) {
    .mid-heading h2,
    .booking-journey-intro h2,
    .benefit-header h2,
    .faq-premium-copy h2 {
        font-size: 34px;
    }

    .gap-calendar-slot {
        grid-template-columns: 48px 1fr;
    }

    .gap-highlight button {
        grid-column: 2;
        justify-self: start;
    }

    .mini-calendar-grid {
        grid-template-columns: repeat(2,1fr);
    }
}
