/* =========================================================
   KEYDIAL - web homepage
   Scoped under .kd-home so it never affects the rest of the theme
   ========================================================= */

.kd-home {
    --kd-ink: #101828;
    --kd-body: #5b6478;
    --kd-line: #e6e9f2;
    --kd-orange: #f77426;
    --kd-orange-dark: #e05f10;
    --kd-navy: #101b3c;
    --kd-soft: #f5f7fc;
    --kd-white: #ffffff;
    --kd-radius: 20px;
    --kd-shadow: 0 18px 45px -28px rgba(16, 27, 60, .45);
    background: #fbfcff;
    color: var(--kd-ink);
    font-family: 'Roboto', system-ui, -apple-system, sans-serif;
    overflow: hidden;
}

.kd-home *,
.kd-home *::before,
.kd-home *::after { box-sizing: border-box; }

.kd-home img { max-width: 100%; display: block; }
.kd-home a { text-decoration: none; }
.kd-home h2,
.kd-home h3 { color: var(--kd-ink); margin: 0; line-height: 1.2; }
.kd-home p { color: var(--kd-body); margin: 0; }

.kd-home .wrap { max-width: 1300px; padding-left: 20px; padding-right: 20px; }

/* ---------- shared bits ---------- */
.kd-eyebrow {
    display: inline-block;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--kd-orange);
    margin-bottom: 10px;
}
.kd-eyebrow-light { color: #ffd9bf; }

.kd-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 13px 22px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 700;
    line-height: 1;
    transition: transform .2s ease, background-color .2s ease, box-shadow .2s ease, color .2s ease;
    border: 1px solid transparent;
}
.kd-btn:hover { transform: translateY(-2px); }
.kd-btn-primary { background: var(--kd-orange); color: #fff !important; box-shadow: 0 12px 24px -12px rgba(247, 116, 38, .9); }
.kd-btn-primary:hover { background: var(--kd-orange-dark); color: #fff !important; }
.kd-btn-ghost { background: #fff; color: var(--kd-ink) !important; border-color: var(--kd-line); }
.kd-btn-ghost:hover { border-color: #c9d0e3; color: var(--kd-ink) !important; }
.kd-btn-light { background: #fff; color: var(--kd-navy) !important; }
.kd-btn-outline-light { border-color: rgba(255, 255, 255, .45); color: #fff !important; }
.kd-btn-outline-light:hover { background: rgba(255, 255, 255, .14); color: #fff !important; }
.kd-btn-dark { background: var(--kd-navy); color: #fff !important; }
.kd-btn-dark:hover { background: #1b2a56; color: #fff !important; }

.kd-link {
    font-size: 14px;
    font-weight: 700;
    color: var(--kd-orange) !important;
    white-space: nowrap;
}
.kd-link i { font-size: 12px; margin-left: 4px; transition: transform .2s ease; }
.kd-link:hover i { transform: translateX(4px); }

.kd-section { padding: 64px 0; }
.kd-section-tight { padding: 28px 0; }
.kd-section-alt { background: var(--kd-soft); }

.kd-section-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 32px;
}
.kd-section-head h2 { font-size: 30px; font-weight: 800; letter-spacing: -.02em; }
.kd-section-head p { margin-top: 8px; font-size: 15px; max-width: 560px; }
.kd-section-head.kd-center { justify-content: center; text-align: center; }
.kd-section-head.kd-center p { margin-left: auto; margin-right: auto; }

/* ---------- hero ---------- */
.kd-hero { padding: 30px 0 8px; }
.kd-hero-grid {
    display: grid;
    grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr);
    gap: 26px;
    align-items: stretch;
}

.kd-hero-copy {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 44px 40px;
    border-radius: var(--kd-radius);
    background:
        radial-gradient(100% 120% at 100% 0%, #24376a 0%, rgba(36, 55, 106, 0) 55%),
        linear-gradient(150deg, #101b3c 0%, #16244c 100%);
    color: #fff;
    box-shadow: var(--kd-shadow);
}
.kd-hero-pill {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    align-self: flex-start;
    padding: 7px 13px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .1);
    border: 1px solid rgba(255, 255, 255, .16);
    color: #ffc39c;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    margin-bottom: 20px;
}
.kd-hero-copy h1 {
    color: #fff;
    font-size: 40px;
    line-height: 1.1;
    font-weight: 800;
    letter-spacing: -.03em;
    margin: 0 0 16px;
}
.kd-hero-copy h1 span { color: #ff9a5b; }
.kd-hero-copy > p { color: rgba(255, 255, 255, .74); font-size: 15px; line-height: 1.65; max-width: 420px; }
.kd-hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 26px 0 0; }
.kd-hero-copy .kd-btn-ghost { background: transparent; border-color: rgba(255, 255, 255, .3); color: #fff !important; }
.kd-hero-copy .kd-btn-ghost:hover { background: rgba(255, 255, 255, .12); }

.kd-hero-slider { position: relative; border-radius: var(--kd-radius); overflow: hidden; box-shadow: var(--kd-shadow); background: #0b1226; }

.kd-slides { position: relative; height: 100%; min-height: 430px; }

.kd-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity .6s ease, visibility .6s ease;
}
.kd-slide.is-active { opacity: 1; visibility: visible; z-index: 2; }

.kd-slide img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; background: #0b1226; }

.kd-slider-dots {
    position: absolute;
    left: 50%;
    bottom: 18px;
    transform: translateX(-50%);
    z-index: 4;
    display: flex;
    gap: 8px;
    padding: 7px 11px;
    border-radius: 999px;
    background: rgba(9, 15, 34, .45);
    backdrop-filter: blur(6px);
}
.kd-slider-dots button {
    width: 9px;
    height: 9px;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, .45);
    padding: 0;
    cursor: pointer;
    transition: background .2s ease, width .2s ease;
}
.kd-slider-dots button.is-active { background: #fff; width: 26px; }

.kd-stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1px;
    margin-top: 30px;
    background: rgba(255, 255, 255, .12);
    border-radius: 14px;
    overflow: hidden;
}
.kd-stats div { background: rgba(255, 255, 255, .04); padding: 12px 14px; }
.kd-stats strong { display: block; color: #fff; font-size: 20px; font-weight: 800; line-height: 1.1; }
.kd-stats span { display: block; margin-top: 2px; font-size: 10.5px; letter-spacing: .04em; color: rgba(255, 255, 255, .6); text-transform: uppercase; }

/* ---------- quick tiles ---------- */
.kd-tiles {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 14px;
}
.kd-tile {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 20px 12px 18px;
    background: #fff;
    border: 1px solid var(--kd-line);
    border-radius: 16px;
    text-align: center;
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.kd-tile:hover { transform: translateY(-4px); border-color: #d7dcec; box-shadow: 0 16px 30px -22px rgba(16, 27, 60, .55); }
.kd-tile-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    border-radius: 13px;
    font-size: 18px;
    margin-bottom: 6px;
}
.kd-tile-title { font-size: 14px; font-weight: 700; color: var(--kd-ink); }
.kd-tile-sub { font-size: 11.5px; color: var(--kd-body); }

.kd-tint-orange { background: #fff1e8; color: #e8681a; }
.kd-tint-pink { background: #ffe9f2; color: #dc3d84; }
.kd-tint-blue { background: #e8f1ff; color: #2563eb; }
.kd-tint-purple { background: #f0eaff; color: #7c3aed; }
.kd-tint-green { background: #e6f7ee; color: #128a4a; }
.kd-tint-amber { background: #fff6dd; color: #c2860a; }

/* ---------- business cards ---------- */
.kd-biz-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}
.kd-biz-card {
    display: flex;
    flex-direction: column;
    padding: 24px;
    background: #fff;
    border: 1px solid var(--kd-line);
    border-radius: var(--kd-radius);
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.kd-biz-card:hover { transform: translateY(-5px); border-color: #d7dcec; box-shadow: 0 24px 44px -30px rgba(16, 27, 60, .55); }
.kd-biz-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.kd-biz-top img {
    width: 68px;
    height: 68px;
    border-radius: 15px;
    object-fit: contain;
    background: #fff;
    border: 1px solid var(--kd-line);
    padding: 6px;
}
.kd-verified {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 10px;
    border-radius: 999px;
    background: #e8f7ee;
    color: #128a4a;
    font-size: 11px;
    font-weight: 700;
}
.kd-biz-card h3 { font-size: 18px; font-weight: 700; margin-bottom: 6px; }
.kd-biz-meta { font-size: 13px; color: var(--kd-body); }
.kd-biz-meta i { color: var(--kd-orange); margin-right: 5px; }
.kd-biz-text { margin-top: 10px; font-size: 13.5px; line-height: 1.55; color: var(--kd-body); }
.kd-biz-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: auto;
    padding-top: 18px;
}
.kd-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.kd-chips span {
    padding: 4px 9px;
    border-radius: 6px;
    background: var(--kd-soft);
    color: #44506b;
    font-size: 11px;
    font-weight: 600;
}
.kd-biz-cta { font-size: 12.5px; font-weight: 700; color: var(--kd-orange); white-space: nowrap; }
.kd-biz-card:hover .kd-biz-cta i { transform: translateX(3px); }
.kd-biz-cta i { font-size: 11px; margin-left: 3px; transition: transform .2s ease; }

/* ---------- events ---------- */
.kd-event-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
}
.kd-event-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid var(--kd-line);
    border-radius: 18px;
    overflow: hidden;
    transition: transform .2s ease, box-shadow .2s ease;
}
.kd-event-card:hover { transform: translateY(-5px); box-shadow: 0 24px 44px -30px rgba(16, 27, 60, .5); }
.kd-event-media { position: relative; aspect-ratio: 16 / 10; background: linear-gradient(135deg, #21325f, #101b3c); overflow: hidden; }
.kd-event-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.kd-event-card:hover .kd-event-media img { transform: scale(1.05); }
.kd-date-badge {
    position: absolute;
    left: 12px;
    top: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 54px;
    border-radius: 12px;
    background: rgba(255, 255, 255, .95);
    box-shadow: 0 8px 18px -10px rgba(0, 0, 0, .5);
}
.kd-date-badge strong { font-size: 18px; line-height: 1; color: var(--kd-ink); }
.kd-date-badge span { font-size: 10px; text-transform: uppercase; letter-spacing: .08em; color: var(--kd-body); margin-top: 2px; }
.kd-event-body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 14px; flex: 1; }
.kd-event-body h3 { font-size: 15px; font-weight: 700; line-height: 1.4; }
.kd-event-foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.kd-price { font-size: 13.5px; font-weight: 800; color: var(--kd-ink); }

/* ---------- movies ---------- */
.kd-movie-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 18px;
}
.kd-movie-card { display: block; }
.kd-movie-poster {
    position: relative;
    aspect-ratio: 2 / 3;
    border-radius: 14px;
    overflow: hidden;
    background: linear-gradient(150deg, #eef1f8, #e3e8f4);
    box-shadow: 0 18px 30px -26px rgba(16, 27, 60, .6);
    transition: transform .25s ease, box-shadow .25s ease;
}
.kd-movie-poster::before {
    content: "\f008";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #a9b2c9;
    font-size: 30px;
}
.kd-movie-card:hover .kd-movie-poster { transform: translateY(-5px); box-shadow: 0 24px 34px -26px rgba(16, 27, 60, .7); }
.kd-movie-poster img { position: relative; z-index: 1; width: 100%; height: 100%; object-fit: cover; transition: opacity .2s ease; }
.kd-movie-card h3 { font-size: 14px; font-weight: 700; margin-top: 12px; line-height: 1.35; }
.kd-movie-card p { font-size: 12px; color: var(--kd-body); margin-top: 3px; }

/* ---------- features ---------- */
.kd-feature-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.kd-feature {
    padding: 30px;
    background: #fff;
    border: 1px solid var(--kd-line);
    border-radius: var(--kd-radius);
}
.kd-feature-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    border-radius: 14px;
    font-size: 20px;
    margin-bottom: 18px;
}
.kd-feature h3 { font-size: 18px; font-weight: 700; margin-bottom: 10px; }
.kd-feature p { font-size: 14px; line-height: 1.6; }

/* ---------- cta band ---------- */
.kd-cta-band {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    padding: 44px 48px;
    border-radius: 24px;
    background:
        radial-gradient(90% 140% at 85% 10%, #2c3f78 0%, rgba(44, 63, 120, 0) 60%),
        linear-gradient(120deg, #101b3c 0%, #16244c 100%);
    box-shadow: 0 30px 60px -40px rgba(16, 27, 60, .9);
}
.kd-cta-copy h2 { color: #fff; font-size: 30px; font-weight: 800; letter-spacing: -.02em; }
.kd-cta-copy p { color: rgba(255, 255, 255, .72); margin-top: 10px; font-size: 15px; }
.kd-cta-actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- plans ---------- */
.kd-plan-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; align-items: stretch; }
.kd-plan {
    position: relative;
    display: flex;
    flex-direction: column;
    padding: 28px 24px;
    background: #fff;
    border: 1px solid var(--kd-line);
    border-radius: var(--kd-radius);
}
.kd-plan.is-featured { border-color: rgba(247, 116, 38, .5); box-shadow: 0 24px 48px -34px rgba(247, 116, 38, .8); }
.kd-plan-badge {
    position: absolute;
    top: -11px;
    left: 24px;
    padding: 4px 12px;
    border-radius: 999px;
    background: var(--kd-orange);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
}
.kd-plan h3 { font-size: 16px; font-weight: 700; }
.kd-plan-price { font-size: 28px; font-weight: 800; color: var(--kd-ink); margin-top: 12px; letter-spacing: -.02em; }
.kd-plan-price span { display: block; margin-top: 2px; font-size: 12px; font-weight: 500; color: var(--kd-body); letter-spacing: 0; }
.kd-plan-desc { margin: 14px 0 22px; font-size: 13.5px; line-height: 1.55; }
.kd-plan .kd-btn { margin-top: auto; width: 100%; }

/* ---------- app strip ---------- */
.kd-app-section { padding-bottom: 64px; }
.kd-app {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 26px 32px;
    border-radius: 20px;
    background: #fff;
    border: 1px solid var(--kd-line);
    box-shadow: var(--kd-shadow);
}
.kd-app-copy { display: flex; align-items: center; gap: 18px; }
.kd-app-logo { width: 58px; height: 58px; border-radius: 14px; object-fit: contain; background: #fff; }
.kd-app h2 { font-size: 20px; font-weight: 800; }
.kd-app p { font-size: 13.5px; margin-top: 4px; }

/* ---------- responsive ---------- */
@media (max-width: 1199px) {
    .kd-hero-copy { padding: 34px 30px; }
    .kd-hero-copy h1 { font-size: 32px; }
    .kd-tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .kd-movie-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .kd-plan-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 991px) {
    .kd-hero-grid { grid-template-columns: minmax(0, 1fr); }
    .kd-hero-slider { order: 1; }
    .kd-hero-copy { order: 2; }
    .kd-slides { min-height: 380px; }
    .kd-biz-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .kd-event-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .kd-feature-grid { grid-template-columns: 1fr; }
    .kd-cta-band { flex-direction: column; align-items: flex-start; padding: 36px; }
    .kd-section-head { flex-direction: column; align-items: flex-start; }
    .kd-section-head.kd-center { align-items: center; }
}

@media (max-width: 767px) {
    .kd-home .wrap { padding-left: 14px; padding-right: 14px; }
    .kd-section { padding: 44px 0; }
    .kd-hero-copy { padding: 26px 22px; }
    .kd-hero-copy h1 { font-size: 27px; }
    .kd-slides { min-height: 250px; }
    .kd-hero-actions .kd-btn { flex: 1 1 auto; }
    .kd-stats { grid-template-columns: 1fr 1fr; }
    .kd-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .kd-biz-grid { grid-template-columns: 1fr; }
    .kd-event-grid { grid-template-columns: 1fr; }
    .kd-movie-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
    .kd-plan-grid { grid-template-columns: 1fr; }
    .kd-app { flex-direction: column; align-items: flex-start; }
    .kd-cta-copy h2 { font-size: 24px; }
    .kd-section-head h2 { font-size: 24px; }
}
