/**
 * Ana sayfa (index) — KardoPos tarzı hero, ürün blokları, sosyal kanıt, footer
 * Sadece body.home-index için geçerlidir.
 */

/* ——— Üst bar (yalnızca ana sayfa) ——— */
body.home-index header.site-chrome .header-container--kp {
    display: grid;
    grid-template-columns: auto 1fr auto;
    grid-template-areas: 'logo nav actions';
    align-items: center;
    gap: 1rem 1.5rem;
    max-width: 1280px;
    margin: 0 auto;
    width: 100%;
}

body.home-index .header-left {
    grid-area: logo;
}

body.home-index .header-actions {
    grid-area: actions;
    display: flex;
    align-items: center;
    gap: 0.65rem;
    flex-shrink: 0;
}

body.home-index .header-nav-center {
    grid-area: nav;
    display: flex;
    justify-content: center;
    min-width: 0;
}

body.home-index .header-nav-center ul {
    flex-wrap: wrap;
    justify-content: center;
}

body.home-index .header-cta-trial {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem 1rem;
    font-size: 0.8125rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    color: #fff !important;
    text-decoration: none !important;
    border-radius: 10px;
    background: linear-gradient(135deg, #4f46e5, #6366f1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 6px 20px rgba(79, 70, 229, 0.28);
    transition: transform 0.18s ease, filter 0.18s ease, box-shadow 0.18s ease;
    white-space: nowrap;
}

body.home-index .header-cta-trial:hover {
    filter: brightness(0.94);
    transform: translateY(-1px);
    box-shadow: 0 10px 28px rgba(79, 70, 229, 0.32);
}

@media (max-width: 1024px) {
    body.home-index header.site-chrome .header-container--kp {
        grid-template-columns: 1fr auto;
        grid-template-areas:
            'logo actions'
            'nav nav';
        position: relative;
    }


    body.home-index .header-actions .header-cta-trial,
    body.home-index .header-actions > a.auth-button {
        display: none;
    }

    body.home-index .header-nav-center ul:not(.open) {
        display: none;
    }

    body.home-index .header-nav-center ul.open {
        display: flex;
        flex-direction: column;
        width: 100%;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #fff;
        padding: 1rem 1.25rem 1.25rem;
        box-shadow: 0 16px 40px rgba(15, 23, 42, 0.1);
        border-bottom: 1px solid rgba(15, 23, 42, 0.08);
        z-index: 999;
        gap: 0.25rem;
    }

    body.home-index .ts-nav-extras-mobile {
        display: list-item;
    }

    body.home-index header.site-chrome {
        position: sticky;
    }

    body.home-index .header-cta-trial {
        font-size: 0.75rem;
        padding: 0.45rem 0.75rem;
    }
}

body.home-index .ts-nav-extras-mobile {
    display: none;
}

body.home-index .ts-nav-extras-mobile .header-cta-trial {
    width: 100%;
    justify-content: center;
    margin-top: 0.35rem;
}

body.home-index .ts-nav-extras-mobile a.auth-button {
    display: block;
    text-align: center;
    margin-top: 0.35rem;
}

@media (max-width: 480px) {
    body.home-index .header-cta-trial span.long {
        display: none;
    }
}

/* ——— Hero ——— */
.ts-hero {
    position: relative;
    padding: clamp(2.5rem, 6vw, 4.5rem) 1.25rem clamp(3rem, 8vw, 5rem);
    background: #fff;
    overflow: hidden;
}

.ts-hero-pattern {
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(ellipse 80% 50% at 10% -10%, rgba(79, 70, 229, 0.09), transparent 50%),
        radial-gradient(ellipse 60% 40% at 100% 0%, rgba(56, 189, 248, 0.08), transparent 45%),
        linear-gradient(180deg, #fff 0%, #f8fafc 100%);
    pointer-events: none;
}

.ts-hero-pattern::after {
    content: '';
    position: absolute;
    inset: 0;
    opacity: 0.35;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M30 0L30 60M0 30L60 30' stroke='%234f46e5' stroke-opacity='0.06' stroke-width='1'/%3E%3C/svg%3E");
    background-size: 60px 60px;
}

.ts-hero-inner {
    position: relative;
    z-index: 1;
    max-width: 1180px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr minmax(240px, 38%);
    gap: clamp(2rem, 5vw, 3.5rem);
    align-items: center;
}

@media (max-width: 900px) {
    .ts-hero-inner {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .ts-hero-copy {
        max-width: 36rem;
        margin: 0 auto;
    }

    .ts-hero-ctas,
    .ts-hero-metrics {
        justify-content: center;
    }

    .ts-hero-visual {
        justify-content: center;
    }
}

.ts-hero-kicker {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #4338ca;
    background: rgba(79, 70, 229, 0.08);
    border: 1px solid rgba(79, 70, 229, 0.12);
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    margin-bottom: 1rem;
}

.ts-hero-copy h1 {
    font-size: clamp(2rem, 4.5vw, 2.85rem);
    font-weight: 800;
    letter-spacing: -0.04em;
    line-height: 1.12;
    color: #0f172a;
    margin: 0 0 1rem;
}

.ts-hero-lead {
    font-size: 1.0625rem;
    line-height: 1.65;
    color: #64748b;
    margin: 0 0 1.5rem;
    max-width: 32rem;
}

.ts-hero-ctas {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 2rem;
}

.ts-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.85rem 1.35rem;
    font-size: 0.95rem;
    font-weight: 700;
    border-radius: 12px;
    text-decoration: none;
    transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, border-color 0.18s ease;
    border: 1px solid transparent;
}

.ts-btn--primary {
    background: linear-gradient(135deg, #4f46e5, #6366f1);
    color: #fff;
    box-shadow: 0 10px 28px rgba(79, 70, 229, 0.3);
}

.ts-btn--primary:hover {
    transform: translateY(-2px);
    filter: brightness(1.03);
    box-shadow: 0 14px 36px rgba(79, 70, 229, 0.35);
}

.ts-btn--ghost {
    background: #fff;
    color: #334155;
    border-color: #e2e8f0;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
}

.ts-btn--ghost:hover {
    border-color: #c7d2fe;
    color: #4f46e5;
    background: #f8fafc;
}

.ts-hero-metrics {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 1.25rem 2rem;
}

.ts-hero-metrics li {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.ts-hero-metrics strong {
    font-size: 1.35rem;
    font-weight: 800;
    color: #0f172a;
    letter-spacing: -0.02em;
}

.ts-hero-metrics span {
    font-size: 0.8125rem;
    color: #64748b;
    font-weight: 500;
}

/* Cihaz mockup — live.jpeg kırpma */
.ts-hero-visual {
    display: flex;
    justify-content: flex-end;
}

.ts-device {
    position: relative;
    width: min(300px, 100%);
    max-width: 300px;
    margin: 0 auto;
}

.ts-device--phone {
    aspect-ratio: 10 / 19.5;
}

.ts-device--tablet {
    aspect-ratio: 4 / 3;
    max-width: min(440px, 100%);
}

.ts-device-shell {
    position: absolute;
    inset: 0;
    border-radius: 2.25rem;
    border: 12px solid #1e293b;
    box-shadow:
        0 0 0 1px rgba(255, 255, 255, 0.08) inset,
        0 32px 64px rgba(15, 23, 42, 0.25),
        0 12px 24px rgba(79, 70, 229, 0.12);
    pointer-events: none;
    z-index: 2;
}

.ts-device--tablet .ts-device-shell {
    border-radius: 1.25rem;
    border-width: 10px;
}

.ts-device-notch {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 38%;
    height: 22px;
    background: #1e293b;
    border-radius: 0 0 14px 14px;
    z-index: 3;
}

.ts-device-screen {
    position: absolute;
    inset: 0;
    border-radius: 1.85rem;
    overflow: hidden;
    background: #0f172a;
}

.ts-device--tablet .ts-device-screen {
    border-radius: 0.85rem;
}

.ts-device--tablet .ts-device-notch {
    display: none;
}

.ts-live-crop {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.ts-live-crop--hero {
    object-position: 52% 10%;
}

.ts-live-crop--esnaf {
    object-position: 48% 28%;
}

.ts-live-crop--galerim {
    object-position: 50% 52%;
}

.ts-live-crop--feature {
    object-position: 50% 72%;
}

/* Yerli şerit */
.ts-yerli-strip {
    background: linear-gradient(90deg, rgba(79, 70, 229, 0.06), rgba(56, 189, 248, 0.06));
    border-top: 1px solid rgba(15, 23, 42, 0.06);
    border-bottom: 1px solid rgba(15, 23, 42, 0.06);
    padding: 0.85rem 1.25rem;
    text-align: center;
}

.ts-yerli-strip p {
    margin: 0 auto;
    max-width: 52rem;
    font-size: 0.9375rem;
    line-height: 1.55;
    color: #475569;
}

.ts-yerli-strip strong {
    color: #4338ca;
    font-weight: 700;
}

/* Bölüm başlıkları */
.ts-section {
    padding: clamp(3rem, 6vw, 4.5rem) 1.25rem;
}

.ts-section--muted {
    background: #f1f5f9;
}

.ts-section-head {
    text-align: center;
    max-width: 40rem;
    margin: 0 auto 2.5rem;
}

.ts-section-eyebrow {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #6366f1;
    margin-bottom: 0.5rem;
}

.ts-section-title {
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    color: #0f172a;
    margin: 0 0 0.65rem;
    line-height: 1.2;
}

.ts-section-desc {
    margin: 0;
    font-size: 1rem;
    color: #64748b;
    line-height: 1.6;
}

/* Ürünler */
.ts-products-inner {
    max-width: 1120px;
    margin: 0 auto;
}

.ts-product-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(1.5rem, 4vw, 3rem);
    align-items: center;
    margin-bottom: clamp(3rem, 6vw, 4.5rem);
}

.ts-product-row:last-child {
    margin-bottom: 0;
}

.ts-product-row--flip .ts-product-visual {
    order: 2;
}

.ts-product-row--flip .ts-product-copy {
    order: 1;
}

@media (max-width: 800px) {
    .ts-product-row,
    .ts-product-row--flip {
        grid-template-columns: 1fr;
    }

    .ts-product-row--flip .ts-product-visual,
    .ts-product-row--flip .ts-product-copy {
        order: unset;
    }
}

.ts-product-copy h3 {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    margin: 0 0 0.75rem;
    color: #0f172a;
}

.ts-product-copy > p {
    color: #64748b;
    line-height: 1.65;
    margin: 0 0 1.25rem;
}

.ts-product-list {
    list-style: none;
    padding: 0;
    margin: 0 0 1.25rem;
}

.ts-product-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    margin-bottom: 0.55rem;
    font-size: 0.9375rem;
    color: #334155;
    line-height: 1.45;
}

.ts-product-list svg {
    flex-shrink: 0;
    margin-top: 0.15rem;
    color: #4f46e5;
}

.ts-product-link {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-weight: 700;
    color: #4f46e5;
    text-decoration: none;
}

.ts-product-link:hover {
    color: #4338ca;
}

.ts-product-visual {
    display: flex;
    justify-content: center;
}

/* Özellik grid */
.ts-features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    max-width: 1000px;
    margin: 0 auto;
}

@media (min-width: 720px) {
    .ts-features-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.ts-feature-card {
    background: #fff;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 16px;
    padding: 1.35rem 1.2rem;
    box-shadow: 0 4px 20px rgba(15, 23, 42, 0.04);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.ts-feature-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.1);
}

.ts-feature-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: rgba(79, 70, 229, 0.09);
    color: #4f46e5;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.85rem;
}

.ts-feature-icon svg {
    width: 22px;
    height: 22px;
}

.ts-feature-card h4 {
    margin: 0 0 0.35rem;
    font-size: 1rem;
    font-weight: 700;
    color: #0f172a;
}

.ts-feature-card p {
    margin: 0;
    font-size: 0.875rem;
    color: #64748b;
    line-height: 1.5;
}

/* Sosyal kanıt */
.ts-testimonials {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    max-width: 1000px;
    margin: 0 auto 2rem;
}

@media (min-width: 700px) {
    .ts-testimonials {
        grid-template-columns: repeat(3, 1fr);
    }
}

.ts-quote-card {
    background: #fff;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 16px;
    padding: 1.35rem;
    box-shadow: 0 6px 24px rgba(15, 23, 42, 0.05);
}

.ts-quote-stars {
    color: #f59e0b;
    font-size: 0.95rem;
    letter-spacing: 0.05em;
    margin-bottom: 0.65rem;
}

.ts-quote-text {
    font-size: 0.9rem;
    line-height: 1.55;
    color: #475569;
    margin: 0 0 1rem;
}

.ts-quote-meta {
    display: flex;
    align-items: center;
    gap: 0.65rem;
}

.ts-quote-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #e0e7ff, #c7d2fe);
    flex-shrink: 0;
}

.ts-quote-who strong {
    display: block;
    font-size: 0.875rem;
    color: #0f172a;
}

.ts-quote-who span {
    font-size: 0.78rem;
    color: #94a3b8;
}

.ts-stats-bar {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem 1.5rem;
    padding: 1rem 1.25rem;
    background: #fff;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 999px;
    max-width: 640px;
    margin: 0 auto 2.5rem;
    font-size: 0.9rem;
    font-weight: 600;
    color: #334155;
}

.ts-stats-bar span {
    color: #cbd5e1;
    font-weight: 400;
}

/* Neden Turkinsoft — 4 kart */
.ts-why-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    max-width: 1100px;
    margin: 0 auto;
}

@media (min-width: 640px) {
    .ts-why-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1000px) {
    .ts-why-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.ts-why-card {
    background: #fff;
    border-radius: 16px;
    padding: 1.5rem 1.25rem;
    border: 1px solid rgba(15, 23, 42, 0.07);
    box-shadow: 0 6px 24px rgba(15, 23, 42, 0.04);
}

.ts-why-card .ts-why-icon {
    font-size: 1.75rem;
    line-height: 1;
    margin-bottom: 0.85rem;
}

.ts-why-card h4 {
    margin: 0 0 0.5rem;
    font-size: 1.05rem;
    font-weight: 800;
    color: #0f172a;
}

.ts-why-card p {
    margin: 0;
    font-size: 0.875rem;
    line-height: 1.55;
    color: #64748b;
}

/* Ara CTA */
.ts-inline-cta {
    text-align: center;
    padding: 2rem 1.25rem;
    background: linear-gradient(135deg, rgba(79, 70, 229, 0.06), rgba(129, 140, 248, 0.05));
    border-top: 1px solid rgba(15, 23, 42, 0.06);
    border-bottom: 1px solid rgba(15, 23, 42, 0.06);
}

.ts-inline-cta p {
    margin: 0 0 1rem;
    font-weight: 600;
    color: #334155;
}

/* Paket CTA tam genişlik */
.ts-pricing-cta {
    padding: clamp(3rem, 7vw, 4.5rem) 1.25rem;
    background: linear-gradient(165deg, #1e1b4b 0%, #312e81 40%, #4338ca 100%);
    color: #e0e7ff;
    text-align: center;
}

.ts-pricing-cta h2 {
    margin: 0 0 0.75rem;
    font-size: clamp(1.5rem, 3.5vw, 2.1rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    color: #fff;
}

.ts-pricing-cta .ts-lead {
    margin: 0 auto 1.5rem;
    max-width: 36rem;
    opacity: 0.92;
    line-height: 1.6;
    font-size: 1rem;
}

.ts-pricing-cta .ts-btn--primary {
    background: #fff;
    color: #4338ca;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.2);
}

.ts-pricing-cta .ts-btn--primary:hover {
    filter: brightness(1.05);
}

.ts-pricing-notes {
    margin: 1.25rem 0 0;
    font-size: 0.875rem;
    opacity: 0.85;
}

/* Footer zengin */
.ts-footer {
    background: #1a1a2e;
    color: #cbd5e1;
    padding: 3rem 1.25rem 0;
}

.ts-footer-grid {
    max-width: 1120px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem 2.5rem;
    padding-bottom: 2.5rem;
    border-bottom: 1px solid rgba(148, 163, 184, 0.15);
}

@media (min-width: 768px) {
    .ts-footer-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.ts-footer-col h4 {
    margin: 0 0 1rem;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #94a3b8;
}

.ts-footer-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.ts-footer-col li {
    margin-bottom: 0.5rem;
}

.ts-footer-col a {
    color: #e2e8f0;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.15s ease;
}

.ts-footer-col a:hover {
    color: #a5b4fc;
}

.ts-footer-bar {
    max-width: 1120px;
    margin: 0 auto;
    padding: 1.25rem 0 1.5rem;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.ts-footer-pay {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.ts-footer-pay img {
    height: 36px;
    width: auto;
    object-fit: contain;
    opacity: 0.88;
}

.ts-footer-meta {
    font-size: 0.8125rem;
    color: #94a3b8;
    text-align: right;
}

@media (max-width: 640px) {
    .ts-footer-bar {
        flex-direction: column;
        text-align: center;
    }

    .ts-footer-meta {
        text-align: center;
    }
}

/* Ana sayfa: 769–1024 arası index satır içi nav kurallarını geçersiz kıl */
@media (max-width: 1024px) {
    body.home-index .header-nav-center ul:not(.open) {
        display: none !important;
        opacity: 0;
        pointer-events: none;
    }

    body.home-index .header-nav-center ul.open {
        display: flex !important;
        opacity: 1 !important;
        pointer-events: all !important;
    }
}

@media (min-width: 1025px) {
    body.home-index .header-nav-center ul {
        display: flex !important;
        position: static !important;
        opacity: 1 !important;
        pointer-events: all !important;
        box-shadow: none !important;
        padding: 0 !important;
        background: transparent !important;
        border: none !important;
    }
}
