/* ── RESET & VARIABLES ── */

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --primary: #f97316;
    --primary-light: #fb923c;
    --dark: #1E1A1D;
    --cream: #F9E9D1;
    --mint: #A7D7C5;
    --yellow: #FFC107;
    --light: #F5F5F5;
    --white: #ffffff;
    --text: #111111;
    --muted: #6b7280;
    --border: #e5e7eb;
    --radius: 15px;
    --radius-lg: 15px;
    --radius-xl: 15px;
}

body {
    font-family: 'Outfit', sans-serif;
    background: var(--light);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
}

img {
    max-width: 100%;
}


/* ── BUTTONS ── */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: 999px;
    font-weight: 700;
    font-size: 15px;
    cursor: pointer;
    border: none;
    transition: all .2s ease;
    font-family: 'Outfit', sans-serif;
}

.btn-primary {
    background: var(--primary);
    color: #fff;
}

.btn-primary:hover {
    background: var(--primary-light);
    transform: translateY(-1px);
}

.btn-white {
    background: #fff;
    color: var(--text);
}

.btn-white:hover {
    background: #f3f4f6;
}

.btn-lg {
    padding: 16px 36px;
    font-size: 16px;
}

.btn-full {
    width: 100%;
    justify-content: center;
}


/* ── HERO ── */

#knowly-hero {
    background: var(--dark);
    color: white;
}

.hero-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 32px 24px 64px;
    display: flex;
    flex-direction: column;
}

.hero-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 64px;
}

.hero-brand {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 20px;
    font-weight: 800;
    color: white;
}

.hero-brand-icon {
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, #facc15, #86efac, #fb923c);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
}

.hero-nav-links {
    display: flex;
    gap: 32px;
    font-size: 14px;
    font-weight: 500;
    color: rgba(255, 255, 255, .7);
}

.hero-nav-links a:hover {
    color: white;
}

.hero-nav-cta {
    background: var(--primary);
    color: white;
    padding: 12px 24px;
    border-radius: 16px;
    font-size: 14px;
    font-weight: 700;
    transition: background .2s;
}

.hero-nav-cta:hover {
    background: var(--primary-light);
}

.hero-headline {
    text-align: center;
    margin-bottom: 56px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.hero-headline h1 {
    font-size: clamp(2.4rem, 6vw, 4.8rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 24px;
    color: white;
}

.shape-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    vertical-align: middle;
    background: var(--primary);
    border-radius: 999px;
    padding: 0 20px;
    height: 1.1em;
    gap: 6px;
    position: relative;
    overflow: hidden;
}

.shape-sq {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    vertical-align: middle;
    border-radius: 20px;
    width: 1em;
    height: 1em;
}

.hero-sub {
    font-size: 18px;
    color: rgba(255, 255, 255, .6);
    max-width: 520px;
    margin: 0 auto;
}


/* ── BENTO GRID ── */

.bento-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 16px;
    margin-bottom: 16px;
}

.bento-card {
    border-radius: 28px;
    padding: 28px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.bento-cream {
    background: var(--cream);
    color: var(--text);
}

.bento-purple {
    background: var(--primary);
    color: white;
}

.bento-mint {
    background: var(--mint);
    color: var(--text);
}

.bento-yellow {
    background: var(--yellow);
    color: var(--text);
}

.bento-border {
    border: 2px solid rgba(255, 255, 255, .1);
}

.bento-label {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    opacity: .6;
}

.avatar-stack {
    display: flex;
}

.avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 4px solid var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 800;
}

.avatar+.avatar {
    margin-left: -12px;
}

.bar-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.bar-label {
    font-size: 11px;
    font-weight: 700;
    opacity: .7;
    width: 110px;
    flex-shrink: 0;
}

.bar-track {
    flex: 1;
    height: 8px;
    background: rgba(0, 0, 0, .12);
    border-radius: 999px;
    overflow: hidden;
}

.bar-fill {
    height: 100%;
    border-radius: 999px;
}

.bar-pct {
    font-size: 11px;
    font-weight: 700;
    opacity: .6;
    width: 32px;
    text-align: right;
}

.pill-cloud {
    display: flex;
    align-items: flex-end;
    justify-content: center;
}

.exam-pill {
    background: var(--primary);
    color: white;
    padding: 12px 24px;
    border-radius: 999px;
    font-weight: 600;
    font-size: 14px;
    white-space: nowrap;
}


/* ── SOCIAL STRIP ── */

.social-strip {
    background: white;
    padding: 18px 40px;
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
    border-bottom: 1px solid var(--border);
}

.strip-label {
    font-size: 13px;
    font-weight: 600;
    color: var(--muted);
}

.strip-badges {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.board-badge {
    display: flex;
    align-items: center;
    gap: 6px;
    border: 1.5px solid var(--border);
    border-radius: 999px;
    padding: 6px 14px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text);
    cursor: pointer;
    transition: all .2s;
}

.board-badge:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.board-badge-dot {
    width: 7px;
    height: 7px;
    background: #22c55e;
    border-radius: 50%;
    flex-shrink: 0;
}


/* ── GENERIC SECTION ── */

.section {
    padding: 80px 40px;
    max-width: 1200px;
    margin: 0 auto;
}

.section-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
}

.section-header {
    margin-bottom: 52px;
}

.section-label {
    display: inline-block;
    background: #111;
    color: white;
    padding: 6px 16px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .08em;
    margin-bottom: 16px;
}

.section-title {
    font-size: clamp(1.8rem, 4vw, 3rem);
    font-weight: 800;
    line-height: 1.15;
    color: var(--text);
    margin-bottom: 14px;
}

.section-sub {
    font-size: 15px;
    color: var(--muted);
    max-width: 560px;
}

.text-center {
    text-align: center;
}

.text-center .section-sub {
    margin: 0 auto;
}


/* ── HOW IT WORKS ── */

.hiw-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
}

.hiw-card {
    background: white;
    border-radius: var(--radius-lg);
    padding: 36px;
    border: 1.5px solid var(--border);
    transition: box-shadow .2s;
}

.hiw-card:hover {
    box-shadow: 0 8px 32px rgba(0, 0, 0, .07);
}

.hiw-step {
    font-size: 11px;
    font-weight: 800;
    color: var(--muted);
    letter-spacing: .1em;
    margin-bottom: 16px;
}

.hiw-icon {
    font-size: 36px;
    margin-bottom: 16px;
}

.hiw-card h3 {
    font-size: 18px;
    font-weight: 800;
    margin-bottom: 10px;
}

.hiw-card p {
    font-size: 14px;
    color: var(--muted);
    line-height: 1.6;
}


/* ── BOARDS CAROUSEL ── */

.boards-section-wrap {
    background: white;
    padding: 80px 0;
}

.boards-pills {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
    margin-bottom: 36px;
}

.board-pill {
    padding: 10px 22px;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    border: 2px solid var(--border);
    background: white;
    color: var(--muted);
    transition: all .2s;
    font-family: 'Outfit', sans-serif;
}

.board-pill:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.board-pill.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.board-carousel-wrapper {
    border-radius: var(--radius-xl);
    border: 1.5px solid var(--border);
    background: #fafafa;
    overflow: hidden;
}


/* Slide visibility */

.board-slide {
    display: none;
}

.board-slide.active {
    display: block;
}


/* Standard 2-col slide */

.board-slide-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    padding: 48px;
    align-items: center;
}

.board-slide-badge {
    display: inline-block;
    padding: 6px 16px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .08em;
    margin-bottom: 20px;
    border: 1.5px solid var(--border);
}

.cbse-badge {
    background: #ecfdf5;
    color: #065f46;
    border-color: #6ee7b7;
}

.icse-badge {
    background: #eff6ff;
    color: #1e40af;
    border-color: #93c5fd;
}

.up-badge {
    background: #fff7ed;
    color: #9a3412;
    border-color: #fdba74;
}

.board-slide-title {
    font-size: clamp(1.4rem, 2.5vw, 2rem);
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 14px;
}

.board-slide-desc {
    font-size: 14px;
    color: var(--muted);
    line-height: 1.7;
    margin-bottom: 22px;
}

.board-slide-features {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 26px;
}

.board-slide-features li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    font-weight: 500;
}

.arrow {
    color: var(--primary);
    font-weight: 800;
}

.board-cta {
    display: inline-block;
    background: var(--primary);
    color: white;
    padding: 13px 26px;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 24px;
    transition: all .2s;
}

.board-cta:hover {
    background: var(--primary-light);
    transform: translateY(-1px);
}

.board-publishers {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.pub-label {
    font-size: 11px;
    font-weight: 700;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: .06em;
}

.pub-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.pub-tags span {
    background: var(--light);
    border: 1px solid var(--border);
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 600;
    color: var(--muted);
}


/* Visual cards inside standard slides */

.board-slide-visual {
    background: var(--light);
    border-radius: var(--radius-lg);
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.cbse-visual {
    background: linear-gradient(135deg, #ecfdf5, #d1fae5);
}

.icse-visual {
    background: linear-gradient(135deg, #eff6ff, #dbeafe);
}

.up-visual {
    background: linear-gradient(135deg, #fff7ed, #fed7aa);
}

.bv-card {
    background: white;
    border-radius: 12px;
    padding: 16px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .05);
}

.bv-subject {
    font-size: 11px;
    color: var(--muted);
    font-weight: 600;
    margin-bottom: 6px;
}

.bv-title {
    font-size: 14px;
    font-weight: 800;
    margin-bottom: 10px;
}

.bv-bar-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

.bv-bar {
    flex: 1;
    height: 8px;
    background: #e5e7eb;
    border-radius: 999px;
    overflow: hidden;
}

.bv-fill {
    height: 100%;
    background: var(--primary);
    border-radius: 999px;
}

.bv-fill-warn {
    background: #f59e0b;
}

.bv-fill-blue {
    background: #3b82f6;
}

.bv-fill-orange {
    background: #f97316;
}

.bv-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--primary);
    color: white;
    padding: 8px 16px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    align-self: flex-start;
}

.bv-badge-blue {
    background: #3b82f6;
}

.bv-badge-orange {
    background: #f97316;
}


/* Slide dots */

.slide-dots {
    display: flex;
    justify-content: center;
    gap: 6px;
    padding: 16px 0;
}

.dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #d1d5db;
    transition: all .25s;
}

.dot.active {
    background: var(--primary);
    width: 24px;
    border-radius: 999px;
}


/* ── FULL-WIDTH SLIDES (4 & 5) ── */

.slide-full-top {
    text-align: center;
    padding: 44px 48px 32px;
}

.slide-full-section {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 40px;
    padding: 40px 48px;
    border-top: 1px solid var(--border);
}

.slide-full-half {
    flex: 1;
    min-width: 260px;
}

.slide-full-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    padding: 40px 48px;
    border-top: 1px solid var(--border);
}

.mock-card {
    background: white;
    border-radius: 12px;
    padding: 14px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, .07);
}

.mock-video {
    background: #e5e7eb;
    border-radius: 10px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--muted);
    font-size: 13px;
}

.chat-bubble {
    background: white;
    border-radius: 16px;
    padding: 14px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .06);
}

.problem-card {
    background: white;
    border-radius: var(--radius-lg);
    padding: 24px;
    border: 1.5px solid var(--border);
}

.problem-card-visual {
    height: 100px;
    background: var(--light);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 14px;
    margin-bottom: 16px;
    overflow: hidden;
}

.problem-card h4 {
    font-size: 15px;
    font-weight: 800;
    margin-bottom: 8px;
}

.problem-card p {
    font-size: 12px;
    color: var(--muted);
    line-height: 1.55;
}


/* ── FEATURES ── */

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
}

.feature-card {
    background: white;
    border-radius: var(--radius-lg);
    padding: 36px;
    border: 1.5px solid var(--border);
    transition: box-shadow .2s;
}

.feature-card:hover {
    box-shadow: 0 8px 32px rgba(0, 0, 0, .07);
}

.feature-icon {
    font-size: 30px;
    width: 56px;
    height: 56px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.bg-green {
    background: #dcfce7;
}

.bg-blue {
    background: #dbeafe;
}

.bg-purple {
    background: #ede9fe;
}

.feature-card h3 {
    font-size: 17px;
    font-weight: 800;
    margin-bottom: 10px;
}

.feature-card p {
    font-size: 14px;
    color: var(--muted);
    line-height: 1.6;
}


/* ── TESTIMONIAL ── */

.testimonial-bg {
    background: var(--dark);
    padding: 80px 40px;
}

.testimonial-card {
    background: rgba(255, 255, 255, .06);
    border: 1px solid rgba(255, 255, 255, .1);
    border-radius: var(--radius-xl);
    padding: 48px;
    max-width: 700px;
    margin: 0 auto;
}

.stars {
    color: #facc15;
    font-size: 20px;
    margin-bottom: 18px;
}

.testimonial-text {
    font-size: 17px;
    color: rgba(255, 255, 255, .85);
    line-height: 1.7;
    margin-bottom: 28px;
    font-style: italic;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 14px;
}

.author-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 16px;
    flex-shrink: 0;
}

.author-name {
    font-weight: 700;
    color: white;
}

.author-info {
    font-size: 13px;
    color: rgba(255, 255, 255, .5);
}


/* ── BUILT FOR ── */

.built-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 16px;
}

.built-item {
    background: white;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 24px;
    text-align: center;
    transition: all .2s;
}

.built-item:hover {
    border-color: var(--primary);
    box-shadow: 0 4px 16px rgba(139, 92, 246, .12);
}

.built-emoji {
    font-size: 28px;
    margin-bottom: 10px;
}

.built-item h4 {
    font-size: 13px;
    font-weight: 700;
}


/* ── URGENCY ── */

.urgency-bg {
    background: var(--light);
    padding: 80px 40px;
}

.progress-container {
    max-width: 600px;
    margin: 0 auto;
    background: white;
    border-radius: var(--radius-lg);
    padding: 36px;
    border: 1.5px solid var(--border);
}

.progress-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.progress-text {
    font-size: 14px;
    font-weight: 600;
    color: var(--muted);
}

.progress-count {
    font-size: 14px;
    font-weight: 800;
}

.progress-bar-outer {
    height: 12px;
    background: #e5e7eb;
    border-radius: 999px;
    overflow: hidden;
    margin-bottom: 10px;
}

.progress-bar-inner {
    height: 100%;
    width: 60%;
    background: linear-gradient(90deg, var(--primary), var(--primary-light));
    border-radius: 999px;
}

.progress-footer {
    font-size: 13px;
    color: var(--muted);
    text-align: center;
}


/* ── WAITLIST ── */

.waitlist-bg {
    background: white;
    padding: 80px 40px;
}

.waitlist-container {
    max-width: 480px;
    margin: 0 auto;
    background: var(--light);
    border-radius: var(--radius-xl);
    padding: 48px;
    border: 1.5px solid var(--border);
}

.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 8px;
}

.form-input,
.form-select {
    width: 100%;
    padding: 14px 16px;
    border-radius: 12px;
    border: 1.5px solid var(--border);
    font-size: 14px;
    font-family: 'Outfit', sans-serif;
    background: white;
    color: var(--text);
    outline: none;
    transition: border-color .2s;
}

.form-input:focus,
.form-select:focus {
    border-color: var(--primary);
}

.form-hint {
    font-size: 12px;
    color: var(--muted);
    text-align: center;
    margin-top: 12px;
}

.form-success {
    display: none;
    text-align: center;
    padding: 24px 0;
}

.success-icon {
    font-size: 48px;
    margin-bottom: 16px;
}

.success-title {
    font-size: 22px;
    font-weight: 800;
    margin-bottom: 10px;
}

.success-text {
    font-size: 14px;
    color: var(--muted);
    line-height: 1.6;
}


/* ── FAQ ── */

.faq-bg {
    background: var(--light);
    padding: 80px 40px;
}

.faq-list {
    max-width: 700px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.faq-item {
    background: white;
    border-radius: var(--radius);
    border: 1.5px solid var(--border);
    overflow: hidden;
}

.faq-question {
    width: 100%;
    padding: 20px 24px;
    font-size: 15px;
    font-weight: 700;
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: 'Outfit', sans-serif;
    text-align: left;
    color: var(--text);
}

.faq-icon {
    font-size: 20px;
    color: var(--primary);
    transition: transform .2s;
    flex-shrink: 0;
}

.faq-item.open .faq-icon {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height .35s ease;
}

.faq-item.open .faq-answer {
    max-height: 200px;
}

.faq-answer-inner {
    padding: 0 24px 20px;
    font-size: 14px;
    color: var(--muted);
    line-height: 1.7;
}


/* ── FINAL CTA ── */

.final-cta {
    background: var(--dark);
    text-align: center;
    padding: 100px 40px;
}

.final-cta .section-title {
    color: white;
    margin-bottom: 14px;
}

.final-cta-sub {
    font-size: 15px;
    color: rgba(255, 255, 255, .55);
    max-width: 520px;
    margin: 0 auto 36px;
}


/* ── FOOTER — Handled via Tailwind in template ── */
footer {
    display: block;
    /* clearing old styles */
}



/* ── STICKY CTA ── */

.sticky-cta {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 100;
    background: var(--primary);
    color: white;
    padding: 14px 24px;
    border-radius: 999px;
    font-weight: 700;
    font-size: 14px;
    box-shadow: 0 4px 24px rgba(139, 92, 246, .4);
    transition: all .2s;
}

.sticky-cta:hover {
    background: var(--primary-light);
    transform: translateY(-2px);
}


/* ── REVEAL ANIMATION ── */

.reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity .5s ease, transform .5s ease;
}

.reveal.visible {
    opacity: 1;
    transform: none;
}


/* ── RESPONSIVE ── */

@media (max-width: 1024px) {
    .bento-grid {
        grid-template-columns: repeat(6, 1fr);
    }

    .board-slide-inner {
        grid-template-columns: 1fr;
        padding: 28px;
        gap: 28px;
    }

    .slide-full-section {
        padding: 28px;
        gap: 28px;
    }

    .slide-full-top {
        padding: 28px 28px 20px;
    }

    .slide-full-cards {
        padding: 0 28px 28px;
    }
}

@media (max-width: 768px) {
    .hero-nav-links {
        display: none;
    }

    .bento-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .bento-card[style*="span 3"],
    .bento-card[style*="span 4"],
    .bento-card[style*="span 8"],
    .bento-card[style*="span 2"] {
        grid-column: span 2;
    }

    .pill-cloud {
        transform: scale(.8);
    }

    .section {
        padding: 60px 20px;
    }

    .boards-section-wrap {
        padding: 60px 0;
    }
}

/* ────────────────────────────────────────────────────────────
   MOBILE & TABLET RESPONSIVE  (LearnGecko – clean rewrite)
   ──────────────────────────────────────────────────────────── */

/* ── PHONE (<= 640px) ── */
@media (max-width: 640px) {

    /* 1. BODY – must be a normal block, never flex on mobile */
    body {
        display: block !important;
        align-items: unset !important;
        justify-content: unset !important;
        padding: 0 !important;
        min-height: unset !important;
        overflow-x: hidden !important;
    }

    /* 2. Every section fills full width, no side-scroll */
    section,
    div,
    header,
    footer,
    nav {
        max-width: 100vw;
        box-sizing: border-box;
    }

    /* 3. HERO – Dark Knowly Bento */
    #knowly-hero>div {
        padding: 16px !important;
        min-height: unset !important;
    }

    /* Hero headline font */
    #knowly-hero h1 {
        font-size: clamp(1.9rem, 8.5vw, 3rem) !important;
        line-height: 1.15 !important;
    }

    /* Hero dashboard grid – 1 column, auto row heights */
    #hero-dashboard-grid {
        grid-template-columns: 1fr !important;
        grid-auto-rows: auto !important;
        gap: 12px !important;
    }

    /* Reset every hero card's col/row span */
    #hero-dashboard-grid>div {
        grid-column: span 1 !important;
        grid-row: span 1 !important;
        min-height: unset !important;
        height: auto !important;
    }

    /* Daily Diagnostic card – stack vertically */
    #hero-card-diagnostic {
        flex-direction: column !important;
        gap: 16px !important;
    }

    .diag-half {
        width: 100% !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    /* 4. BOARDS / BOARDS CAROUSEL */
    .board-slide-inner {
        grid-template-columns: 1fr !important;
        padding: 20px !important;
        gap: 16px !important;
    }

    .slide-full-section {
        padding: 20px !important;
        gap: 16px !important;
        flex-direction: column !important;
    }

    .slide-full-top {
        padding: 20px 20px 12px !important;
    }

    .slide-full-cards {
        padding: 0 20px 20px !important;
        flex-direction: column !important;
    }

    /* 5. GECKO ENGINE stepper */
    #gecko-engine-grid {
        grid-template-columns: 1fr !important;
        gap: 24px !important;
    }

    #gecko-engine-grid>div {
        grid-column: span 1 !important;
    }

    #gecko-step-content-area {
        min-height: auto !important;
        position: relative !important;
    }

    .gecko-content-pane {
        position: relative !important;
        opacity: 1 !important;
        transform: none !important;
        pointer-events: auto !important;
        display: none !important;
    }

    .gecko-content-pane.active {
        display: grid !important;
        grid-template-columns: 1fr !important;
        gap: 16px !important;
    }

    /* 6. COMPETITORS section – stack cards */
    #competitors-grid,
    .competitors-flex {
        flex-direction: column !important;
    }

    /* 7. TEAM grid – 2 columns on phone */
    .team-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }

    /* 8. FAQ accordion */
    .faq-question {
        font-size: 0.9rem !important;
    }

    /* 9. FOOTER */
    #footer-grid {
        grid-template-columns: 1fr !important;
    }

    #footer-grid>div {
        grid-column: span 1 !important;
    }

    #footer-bottom {
        flex-direction: column !important;
        gap: 16px !important;
    }

    /* 10. GENERIC utility overrides – only correct ones */
    .py-24 {
        padding-top: 48px !important;
        padding-bottom: 48px !important;
    }

    .py-20 {
        padding-top: 40px !important;
        padding-bottom: 40px !important;
    }

    .px-8 {
        padding-left: 16px !important;
        padding-right: 16px !important;
    }

    .text-7xl {
        font-size: 2.25rem !important;
    }

    .text-6xl {
        font-size: 1.9rem !important;
    }

    .text-5xl {
        font-size: 1.6rem !important;
    }

    /* Waitlist modal – full width */
    #waitlistModal>div {
        margin: 12px !important;
        max-width: calc(100vw - 24px) !important;
    }

    /* Sticky CTA – don't cover content */
    .sticky-cta {
        bottom: 16px !important;
        right: 16px !important;
        font-size: 13px !important;
        padding: 10px 18px !important;
    }
}

/* ── TABLET (641px – 1023px) ── */
@media (min-width: 641px) and (max-width: 1023px) {
    #hero-dashboard-grid {
        grid-template-columns: repeat(6, 1fr) !important;
        grid-auto-rows: auto !important;
    }

    #hero-dashboard-grid>div {
        min-height: unset !important;
    }

    #gecko-engine-grid {
        grid-template-columns: 1fr !important;
        gap: 32px !important;
    }

    #gecko-step-content-area {
        position: relative !important;
        min-height: auto !important;
    }

    .gecko-content-pane {
        position: relative !important;
        opacity: 1 !important;
        transform: none !important;
        pointer-events: auto !important;
        display: none !important;
    }

    .gecko-content-pane.active {
        display: grid !important;
        grid-template-columns: 1fr 1fr !important;
        gap: 16px !important;
    }

    .team-grid {
        grid-template-columns: repeat(4, 1fr) !important;
    }
}

/* ── end of responsive section ── */

/* ── MOBILE ONLY: additional targeted fixes ── */
@media (max-width: 640px) {

    /* Remove the dark strip gap below the stats tiles — comes from py-8 on
       the inner hero container. We cut bottom padding to 0 on mobile. */
    #knowly-hero {
        margin-bottom: 0 !important;
        border-bottom: none !important;
    }

    /* The inner hero container: remove bottom padding on mobile */
    #knowly-hero>div {
        padding-bottom: 0 !important;
        padding-top: 16px !important;
    }

    /* The hero dashboard grid: tighten the gap and remove bottom spacing */
    #hero-dashboard-grid {
        gap: 10px !important;
        margin-bottom: 0 !important;
    }

    /* The Trusted By strip that follows the hero — remove top gap on mobile */
    #knowly-hero+section {
        padding-top: 12px !important;
        margin-top: 0 !important;
        border-top: none !important;
    }

    /* Institutional labels grid — always show on mobile (lg:hidden handles desktop) */
    .inst-mobile-labels {
        display: grid !important;
    }
}





/* ── GECKO ENGINE STEPPER ── */
.gecko-step-item.active {
    background-color: #fff7ed;
    /* Very light orange-50 */
    border-color: #ffedd5;
    /* orange-100 */
    box-shadow: 0 10px 25px -5px rgba(249, 115, 22, 0.08);
}

.gecko-step-item.active .material-symbols-rounded {
    color: #f97316;
}

.gecko-step-item.active circle.progress-bar {
    stroke: #f97316;
}

.progress-bar {
    stroke-dasharray: 88;
    stroke-dashoffset: 88;
    transition: stroke-dashoffset 0.3s ease;
}

.gecko-content-pane {
    opacity: 0;
    transform: translateY(20px);
    pointer-events: none;
    transition: all 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.gecko-content-pane.active {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

/* Glassmorphism for Mockup Containers */
.gecko-mockup-glass {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.18);
}

/* ── MEET THE TEAM SECTION ── */
.team-member-card {
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.team-member-card:hover {
    transform: translateY(-5px);
}

.team-image-container {
    background-color: #121c3a;
    /* Dark blue/slate from the image */
    position: relative;
    width: 100%;
    aspect-ratio: 1/1;
    border-radius: 28px;
    overflow: hidden;
    margin-bottom: 20px;
}

.team-image-text {
    position: absolute;
    top: 14px;
    left: 14px;
    color: rgba(255, 255, 255, 0.3);
    font-size: 8px;
    font-weight: 900;
    line-height: 1.1;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    text-align: left;
    pointer-events: none;
}

.team-member-name {
    font-size: 1rem;
    font-weight: 800;
    color: #0b1221;
    margin-bottom: 4px;
    width: min-content;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.1;
    white-space: normal;
}



.team-member-role {
    font-size: 0.75rem;
    font-weight: 700;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: -0.2px;
    margin-bottom: 12px;
}

.team-member-logo {
    height: 16px;
    opacity: 0.2;
    filter: grayscale(100%) brightness(0);
    object-fit: contain;
}