/* ============================================================
   K.N Landing Page Styles
   Extends production Panel visual language (style.css + ui-polish.css)
   ============================================================ */

/* --- Landing Layout --- */
.landing-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(246, 248, 251, 0.92);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--line);
}

.landing-header-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 14px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.landing-nav {
    display: flex;
    gap: 10px;
    align-items: center;
}

.landing-text-link {
    color: var(--muted);
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
}

.landing-text-link + .landing-text-link {
    margin-left: 12px;
}

.landing-text-link:hover {
    color: #155eef;
}

.landing-language {
    margin: 0 4px;
    width: auto;
}

.landing-language .language-select {
    width: auto;
    min-width: 112px;
}

.landing-main {
    min-height: calc(100vh - 200px);
}

/* --- Hero Section --- */
.landing-hero {
    max-width: 1200px;
    margin: 0 auto;
    padding: 80px 24px 64px;
    text-align: center;
}

.landing-hero .hero-eyebrow {
    display: inline-flex;
    margin-bottom: 20px;
    padding: 6px 14px;
    border-radius: 999px;
    background: #eef4ff;
    color: #155eef;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.01em;
}

.landing-hero h1 {
    margin: 0 0 16px;
    font-size: clamp(36px, 5.5vw, 64px);
    line-height: 1.05;
    letter-spacing: -0.04em;
    color: var(--text);
    font-weight: 800;
}

.landing-hero .hero-sub {
    max-width: 640px;
    margin: 0 auto 36px;
    font-size: 18px;
    line-height: 1.65;
    color: var(--muted);
}

.landing-hero .hero-cta {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

.landing-hero .hero-cta .button {
    min-height: 48px;
    padding: 0 28px;
    font-size: 15px;
}

/* --- Promotions Page --- */
.welcome-credit-kicker {
    color: #155eef;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.promotions-page {
    max-width: 1200px;
    margin: 0 auto;
    padding: 72px 24px 88px;
}

.promotions-hero {
    max-width: 820px;
    margin-bottom: 36px;
}

.promotions-hero h1 {
    margin: 8px 0 14px;
    font-size: clamp(34px, 5vw, 54px);
    line-height: 1.08;
}

.promotions-hero > p:last-child {
    color: #475467;
    font-size: 18px;
    line-height: 1.7;
}

.promotion-steps {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.promotion-step,
.promotion-rules {
    padding: 26px;
    background: #fff;
    border: 1px solid #dfe5ee;
    border-radius: 20px;
    box-shadow: 0 12px 28px rgba(16, 24, 40, 0.05);
}

.promotion-step > span {
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    border-radius: 10px;
    background: #155eef;
    color: #fff;
    font-weight: 800;
}

.promotion-step h2 {
    margin: 18px 0 8px;
    font-size: 21px;
}

.promotion-step p,
.promotion-rules li {
    color: #475467;
    line-height: 1.65;
}

.promotion-rules {
    margin-top: 22px;
    background: #eef4ff;
    border-color: #b9d0ff;
}

.promotion-rules h2 {
    margin: 0 0 12px;
}

.promotion-rules ul {
    margin: 0 0 24px;
    padding-left: 22px;
}

/* --- Documentation Page --- */
.docs-page {
    max-width: 1120px;
    margin: 0 auto;
    padding: 72px 24px 88px;
}

.docs-hero {
    max-width: 800px;
    margin-bottom: 28px;
}

.docs-hero h1 {
    margin: 8px 0 14px;
    font-size: clamp(34px, 5vw, 54px);
    line-height: 1.08;
}

.docs-hero > p:last-child,
.docs-card p,
.docs-columns p,
.docs-list,
.faq-list p {
    color: #475467;
    line-height: 1.7;
}

.docs-toc {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 48px;
}

.docs-toc a {
    padding: 9px 14px;
    color: #344054;
    background: #f8fafc;
    border: 1px solid #e4e7ec;
    border-radius: 999px;
    font-weight: 700;
    text-decoration: none;
}

.docs-toc a:hover {
    color: #155eef;
    border-color: #b9d0ff;
}

.docs-section {
    padding: 36px 0;
    border-top: 1px solid #e4e7ec;
    scroll-margin-top: 100px;
}

.docs-section h2 {
    margin: 0 0 22px;
    font-size: clamp(26px, 3vw, 34px);
}

.docs-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}

.docs-card,
.docs-columns > div {
    padding: 22px;
    background: #fff;
    border: 1px solid #e4e7ec;
    border-radius: 18px;
}

.docs-card > span {
    display: grid;
    width: 34px;
    height: 34px;
    place-items: center;
    margin-bottom: 18px;
    color: #fff;
    background: #155eef;
    border-radius: 10px;
    font-weight: 800;
}

.docs-card h3,
.docs-columns h3 {
    margin: 0 0 10px;
    font-size: 17px;
}

.docs-card p,
.docs-columns p {
    margin: 0;
}

.docs-columns {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.docs-list {
    margin: 0;
    padding-left: 22px;
}

.docs-list li + li {
    margin-top: 10px;
}

.faq-list {
    display: grid;
    gap: 12px;
}

.faq-list details {
    padding: 18px 20px;
    background: #fff;
    border: 1px solid #e4e7ec;
    border-radius: 14px;
}

.faq-list details[open] {
    border-color: #b9d0ff;
    box-shadow: 0 8px 22px rgba(21, 94, 239, 0.06);
}

.faq-list summary {
    color: #101828;
    font-weight: 750;
    cursor: pointer;
}

.faq-list p {
    margin: 12px 0 0;
}

/* --- Features Section --- */
.landing-features {
    max-width: 1200px;
    margin: 0 auto;
    padding: 48px 24px 64px;
}

.landing-features h2 {
    text-align: center;
    margin: 0 0 12px;
    font-size: 28px;
    font-weight: 800;
    color: var(--text);
}

.landing-features .section-sub {
    text-align: center;
    margin: 0 auto 40px;
    max-width: 560px;
    font-size: 16px;
    color: var(--muted);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.feature-card {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 22px;
    padding: 28px 24px;
    box-shadow: 0 18px 50px rgba(16, 24, 40, 0.04);
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.feature-card:hover {
    box-shadow: 0 24px 60px rgba(16, 24, 40, 0.08);
    transform: translateY(-2px);
}

.feature-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: #eef4ff;
    display: grid;
    place-items: center;
    margin-bottom: 16px;
    font-size: 20px;
}

.feature-card h3 {
    margin: 0 0 8px;
    font-size: 16px;
    font-weight: 700;
    color: var(--text);
}

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

/* --- Pricing Section --- */
.landing-pricing {
    max-width: 1200px;
    margin: 0 auto;
    padding: 48px 24px 80px;
}

.landing-pricing h2 {
    text-align: center;
    margin: 0 0 12px;
    font-size: 28px;
    font-weight: 800;
    color: var(--text);
}

.landing-pricing .section-sub {
    text-align: center;
    margin: 0 auto 40px;
    max-width: 560px;
    font-size: 16px;
    color: var(--muted);
}

.pricing-table-wrap {
    overflow-x: auto;
    border: 1px solid var(--line);
    border-radius: 22px;
    background: var(--card);
    box-shadow: 0 18px 50px rgba(16, 24, 40, 0.04);
}

.pricing-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 720px;
}

.pricing-table thead th {
    padding: 16px 18px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--muted);
    text-align: left;
    border-bottom: 1px solid var(--line);
    background: #fafbfc;
    white-space: nowrap;
}

.pricing-table thead th:last-child {
    text-align: right;
}

.pricing-table tbody td {
    padding: 18px;
    font-size: 14px;
    color: var(--text);
    border-bottom: 1px solid #f2f4f7;
    vertical-align: middle;
}

.pricing-table tbody tr:last-child td {
    border-bottom: none;
}

.pricing-table tbody tr:hover {
    background: rgba(21, 94, 239, 0.02);
}

.pricing-table .plan-name {
    font-weight: 700;
    font-size: 15px;
}

.pricing-table .plan-spec {
    color: var(--muted);
    font-size: 13px;
}

.pricing-table .plan-price {
    text-align: right;
    font-weight: 700;
    font-size: 16px;
    white-space: nowrap;
}

.pricing-table .plan-price span {
    font-size: 13px;
    font-weight: 500;
    color: var(--muted);
}

.pricing-table .plan-cta {
    text-align: right;
}

.pricing-table .plan-cta .button {
    min-height: 36px;
    padding: 0 18px;
    font-size: 13px;
}

/* --- CTA Banner --- */
.landing-cta-banner {
    max-width: 1200px;
    margin: 0 auto 80px;
    padding: 0 24px;
}

.cta-banner-inner {
    background: #111827;
    border-radius: 22px;
    padding: 56px 40px;
    text-align: center;
}

.cta-banner-inner h2 {
    margin: 0 0 12px;
    font-size: 28px;
    font-weight: 800;
    color: #fff;
}

.cta-banner-inner p {
    margin: 0 auto 28px;
    max-width: 480px;
    font-size: 16px;
    color: rgba(255, 255, 255, 0.65);
}

.cta-banner-inner .button.blue {
    min-height: 48px;
    padding: 0 32px;
    font-size: 15px;
}

/* --- Footer --- */
.landing-footer {
    border-top: 1px solid var(--line);
    background: #fafbfc;
}

.landing-footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 48px 24px 32px;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 32px;
}

.footer-brand .brand {
    font-size: 16px;
}

.footer-brand .mark {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    font-size: 13px;
}

.footer-tagline {
    margin: 0;
    font-size: 13px;
    color: var(--muted);
}

.footer-links {
    display: flex;
    gap: 64px;
    margin-bottom: 32px;
}

.footer-col {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-legal-links {
    display: flex;
    align-items: center;
    gap: 14px 28px;
    flex-wrap: wrap;
}

.footer-col-title {
    margin: 0 0 4px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--muted);
}

.footer-col a {
    font-size: 14px;
    color: var(--text);
    text-decoration: none;
    transition: color 0.15s ease;
}

.footer-col a:hover {
    color: #155eef;
}

.footer-bottom {
    padding-top: 24px;
    border-top: 1px solid var(--line);
}

.footer-bottom p {
    margin: 0;
    font-size: 13px;
    color: var(--muted);
}

.footer-legal-entity {
    margin-top: 6px !important;
    font-size: 12px;
}

/* --- Pricing Note --- */
.pricing-note {
    max-width: 720px;
    margin: 20px auto 0;
    text-align: center;
    font-size: 13px;
    color: var(--muted);
    line-height: 1.6;
}

.plan-hourly {
    color: var(--muted);
}

/* --- Contact Page --- */
.landing-contact {
    max-width: 720px;
    margin: 0 auto;
    padding: 80px 24px 80px;
}

.landing-contact h1 {
    margin: 0 0 12px;
    font-size: clamp(28px, 4vw, 40px);
    font-weight: 800;
    color: var(--text);
}

.landing-contact .contact-sub {
    margin: 0 0 40px;
    font-size: 16px;
    color: var(--muted);
    line-height: 1.65;
}

.contact-info-card {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 22px;
    padding: 32px;
    box-shadow: 0 18px 50px rgba(16, 24, 40, 0.04);
}

.contact-info-card h2 {
    margin: 0 0 20px;
    font-size: 20px;
    font-weight: 700;
}

.contact-info-item {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    padding: 16px 0;
    border-bottom: 1px solid #f2f4f7;
}

.contact-info-item:last-child {
    border-bottom: none;
}

.contact-info-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: #eef4ff;
    display: grid;
    place-items: center;
    flex-shrink: 0;
    font-size: 18px;
}

.contact-info-text {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.contact-info-label {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: var(--muted);
}

.contact-info-value {
    font-size: 15px;
    font-weight: 600;
    color: var(--text);
}

.contact-region-list {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.contact-info-value a {
    color: #155eef;
    text-decoration: none;
}

.contact-info-value a:hover {
    text-decoration: underline;
}

/* --- Docs --- */
.docs-home,
.docs-layout {
    max-width: 1120px;
    margin: 0 auto;
    padding: 72px 24px 88px;
}

.docs-hero {
    max-width: 720px;
    margin-bottom: 40px;
}

.docs-kicker {
    margin: 0 0 10px;
    color: #155eef;
    font-size: 12px;
    font-weight: 750;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.docs-hero h1,
.docs-article h1 {
    margin: 0;
    color: var(--text);
    font-size: clamp(32px, 5vw, 48px);
    line-height: 1.08;
    letter-spacing: -0.035em;
}

.docs-hero > p:last-child,
.docs-article header > p:last-child {
    margin: 18px 0 0;
    color: var(--muted);
    font-size: 17px;
    line-height: 1.7;
}

.docs-card-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.docs-card {
    min-height: 210px;
    padding: 26px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: var(--card);
    color: var(--text);
    text-decoration: none;
    box-shadow: 0 12px 36px rgba(16, 24, 40, 0.035);
    transition: transform 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease;
}

.docs-card:hover {
    transform: translateY(-2px);
    border-color: #b2ccff;
    box-shadow: 0 18px 42px rgba(21, 94, 239, 0.08);
}

.docs-card-index {
    color: #84adff;
    font-size: 12px;
    font-weight: 700;
}

.docs-card h2 {
    margin: 30px 0 8px;
    font-size: 20px;
}

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

.docs-card-link {
    display: inline-block;
    margin-top: 20px;
    color: #155eef;
    font-size: 13px;
    font-weight: 650;
}

.docs-help-strip {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    margin-top: 32px;
    padding: 26px 28px;
    border: 1px solid #d6e4ff;
    border-radius: 18px;
    background: #f5f8ff;
}

.docs-help-strip h2 { margin: 0 0 5px; font-size: 18px; }
.docs-help-strip p { margin: 0; color: var(--muted); font-size: 14px; }

.docs-layout {
    display: grid;
    grid-template-columns: 220px minmax(0, 760px);
    gap: 64px;
    justify-content: center;
}

.docs-sidebar {
    align-self: start;
    position: sticky;
    top: 96px;
}

.docs-sidebar-home {
    display: inline-block;
    margin-bottom: 20px;
    color: var(--muted);
    font-size: 13px;
    text-decoration: none;
}

.docs-sidebar nav {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding-left: 12px;
    border-left: 1px solid var(--line);
}

.docs-sidebar nav a {
    padding: 9px 12px;
    border-radius: 8px;
    color: #475467;
    font-size: 14px;
    font-weight: 550;
    text-decoration: none;
}

.docs-sidebar nav a:hover,
.docs-sidebar nav a[aria-current="page"] {
    color: #155eef;
    background: #eef4ff;
}

.docs-article header {
    padding-bottom: 34px;
    border-bottom: 1px solid var(--line);
}

.docs-sections section {
    padding: 30px 0;
    border-bottom: 1px solid #eaecf0;
}

.docs-sections h2 {
    margin: 0 0 12px;
    color: var(--text);
    font-size: 21px;
    line-height: 1.35;
}

.docs-sections p {
    margin: 0;
    color: #475467;
    font-size: 15px;
    line-height: 1.78;
}

.docs-inline-link {
    display: inline-block;
    margin-top: 14px;
    color: #155eef;
    font-size: 14px;
    font-weight: 650;
    text-decoration: none;
}

.docs-article-footer {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    margin-top: 34px;
    padding: 22px 24px;
    border-radius: 14px;
    background: #f8fafc;
    color: #475467;
    font-size: 14px;
}

.docs-article-footer a { color: #155eef; font-weight: 650; text-decoration: none; }

/* --- Responsive --- */
@media (max-width: 880px) {

    .landing-hero {
        padding: 56px 20px 48px;
    }

    .landing-hero .hero-sub {
        font-size: 16px;
    }

    .features-grid,
    .promotion-steps,
    .docs-grid,
    .docs-columns {
        grid-template-columns: repeat(2, 1fr);
    }

    .docs-card-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .docs-layout {
        grid-template-columns: 190px minmax(0, 1fr);
        gap: 34px;
    }

    .footer-links {
        gap: 40px;
    }
}

@media (max-width: 640px) {
    .landing-header-inner {
        padding: 12px 16px;
    }

    .landing-nav {
        flex-wrap: wrap;
        justify-content: flex-end;
    }

    .landing-text-link {
        display: none;
    }

    .landing-hero {
        padding: 40px 16px 36px;
    }

    .landing-hero h1 {
        font-size: 32px;
    }


    .features-grid,
    .promotion-steps,
    .docs-grid,
    .docs-columns {
        grid-template-columns: 1fr;
    }

    .promotions-page,
    .docs-page {
        padding: 48px 16px 64px;
    }

    .landing-features,
    .landing-pricing {
        padding-left: 16px;
        padding-right: 16px;
    }

    .cta-banner-inner {
        padding: 40px 24px;
    }

    .footer-links {
        flex-direction: column;
        gap: 24px;
    }

    .footer-brand {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .landing-contact {
        padding: 48px 16px 48px;
    }

    .docs-home,
    .docs-layout {
        padding: 48px 16px 64px;
    }

    .docs-card-grid {
        grid-template-columns: 1fr;
    }

    .docs-card {
        min-height: 0;
    }

    .docs-layout {
        display: block;
    }

    .docs-sidebar {
        position: static;
        margin-bottom: 38px;
    }

    .docs-sidebar nav {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        padding: 0;
        border: 0;
    }

    .docs-help-strip,
    .docs-article-footer {
        align-items: flex-start;
        flex-direction: column;
    }
}
