@font-face {
    font-family: "Kanit Light";
    src: url("/assets/font/Kanit-Light.ttf") format("truetype");
    font-style: normal;
    font-weight: 300;
    font-display: swap;
}

.page-discovery {
    min-height: 100vh;
}

.discovery-shell {
    width: min(100% - 3rem, 1040px);
    margin: 0 auto;
    padding: 1.5rem 0 5rem;
}

.breadcrumbs {
    margin-bottom: 2.5rem;
}

.breadcrumbs ol {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    margin: 0;
    padding: 0;
    list-style: none;
    color: var(--d4-text-muted);
    font-size: 0.86rem;
}

.breadcrumbs li:not(:last-child)::after {
    content: "/";
    margin-left: 0.45rem;
    color: var(--d4-text-muted);
}

.breadcrumbs a {
    color: var(--d4-yellow);
    text-decoration: none;
}

.discovery-hero {
    max-width: 920px;
    margin: 0 auto 2rem;
    text-align: center;
}

.discovery-eyebrow {
    margin-bottom: 0.75rem;
    color: var(--d4-yellow);
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

.discovery-hero h1 {
    max-width: 960px;
    margin: 0 0 1.25rem;
    font-size: clamp(3rem, 8vw, 5.5rem);
    line-height: 0.98;
    letter-spacing: -0.045em;
}

.discovery-deck {
    max-width: 800px;
    margin: 0 auto;
    color: var(--hero-text-color);
    font-size: 1.25rem;
    line-height: 1.65;
}

.discovery-hero__stats {
    margin: 1.75rem 0 2rem;
}

.discovery-hero__ctas {
    margin-bottom: 1rem;
}

.discovery-hero--not-found {
    margin-bottom: 5rem;
}

.discovery-hero--not-found h1 {
    max-width: 900px;
    margin-right: auto;
    margin-bottom: 2rem;
    margin-left: auto;
    font-size: clamp(3rem, 6.5vw, 5rem);
}

.discovery-hero--not-found .discovery-deck {
    margin-bottom: 2rem;
}

.direct-answer {
    margin: 2rem 0 3rem;
    padding: 1.5rem;
    border: 1px solid rgba(255, 213, 0, 0.35);
    border-radius: 24px;
    background: var(--d4-surface);
    font-size: 1.25rem;
    line-height: 1.7;
}

.discovery-features {
    max-width: none;
}

.discovery-features .feature-name {
    font-weight: 504;
}

.direct-answer p {
    margin: 0;
}

.direct-answer p + p {
    margin-top: 0.85rem;
}

.discovery-section {
    margin: 4rem 0;
}

.discovery-section--ends-with-list {
    margin-bottom: 0;
}

.discovery-section--ends-with-list + .discovery-section {
    margin-top: 2rem;
}

.discovery-section h2,
.discovery-callout h2,
.discovery-cta h2 {
    margin: 0 0 1rem;
    font-size: clamp(2rem, 5vw, 3.1rem);
    font-weight: 504;
    line-height: 1.08;
    letter-spacing: -0.035em;
}

.discovery-section h3 {
    margin: 0 0 0.7rem;
    font-size: 1.35rem;
    font-weight: 504;
    line-height: 1.2;
}

.discovery-section p,
.discovery-section li,
.discovery-callout p,
.discovery-callout li {
    color: var(--hero-text-color);
    font-size: 1.08rem;
    line-height: 1.75;
}

.discovery-section .discovery-component-intro {
    margin: 0 0 1.5rem;
    line-height: 1.305;
}

.discovery-section p + p,
.discovery-callout p + p {
    margin-top: 1rem;
}

.direct-answer p,
.discovery-section > p,
.discovery-section > ul > li,
.discovery-section > ol > li,
.decision-card p,
.fact-card p,
.pros-limitations__card li,
.privacy-flow li span,
.discovery-callout p,
.discovery-callout li,
.discovery-inline-cta p,
.discovery-faq details p,
.discovery-cta p {
    font-family: "Kanit Light", sans-serif;
    font-weight: 300;
}

.discovery-section > p,
.discovery-section > ul > li,
.discovery-section > ol > li,
.pros-limitations__card li,
.discovery-callout p,
.discovery-callout li,
.discovery-faq details p {
    line-height: 1.575;
}

.direct-answer p {
    line-height: 1.53;
}

.discovery-section a,
.discovery-callout a {
    color: var(--d4-yellow);
}

.discovery-section ul,
.discovery-section ol,
.discovery-callout ul,
.discovery-callout ol {
    padding-left: 1.4rem;
}

.discovery-section > ul,
.discovery-callout > ul {
    list-style: disc;
}

.discovery-section > ol,
.discovery-callout > ol {
    list-style: decimal;
}

.discovery-section > p + ul,
.discovery-section > p + ol,
.discovery-callout > p + ul,
.discovery-callout > p + ol {
    margin-top: 1rem;
}

.decision-grid,
.pros-limitations,
.fact-grid,
.related-grid,
.platform-groups,
.privacy-flows {
    display: grid;
    gap: 1rem;
}

.decision-grid,
.pros-limitations,
.platform-groups,
.privacy-flows {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.privacy-flows--single {
    grid-template-columns: minmax(0, calc(50% - 0.5rem));
    justify-content: center;
}

.fact-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.decision-card,
.fact-card,
.pros-limitations__card,
.related-card,
.platform-group,
.privacy-flow {
    border: 1px solid var(--d4-border);
    border-radius: 24px;
    background: var(--d4-surface);
}

.decision-card,
.fact-card,
.pros-limitations__card,
.platform-group,
.privacy-flow {
    padding: 1.4rem;
}

.platform-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.7rem;
}

.platform-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.65rem 0.85rem;
    border: 1px solid var(--d4-border);
    border-radius: 999px;
    color: var(--d4-text);
    background: var(--d4-surface-alt);
}

.platform-badge i {
    color: var(--d4-yellow);
}

.privacy-flow ol {
    margin: 0;
    padding: 0;
    list-style: none;
    counter-reset: privacy-step;
}

.privacy-flow li {
    position: relative;
    display: grid;
    gap: 0.25rem;
    padding: 0 0 1.5rem 2.4rem;
    counter-increment: privacy-step;
}

.privacy-flow li::before {
    content: counter(privacy-step);
    position: absolute;
    top: 0;
    left: 0;
    display: grid;
    width: 1.65rem;
    height: 1.65rem;
    place-items: center;
    border-radius: 50%;
    background: var(--d4-yellow);
    color: var(--d4-surface);
    font-size: 0.78rem;
    font-weight: 700;
}

.privacy-flow li:not(:last-child)::after {
    content: "";
    position: absolute;
    top: 1.8rem;
    bottom: 0.2rem;
    left: 0.8rem;
    width: 1px;
    background: var(--d4-border);
}

.privacy-flow li span {
    color: var(--hero-text-color);
    font-size: 0.95rem;
    line-height: 1.395;
}

.decision-card p,
.fact-card p {
    margin: 0;
    color: var(--hero-text-color);
    font-size: 0.98rem;
    line-height: 1.44;
}

.fact-card__label {
    margin-bottom: 0.5rem;
    color: var(--hero-text-color);
    font-size: 0.74rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.fact-card__value {
    margin-bottom: 0.45rem;
    color: var(--d4-yellow);
    font-size: 1.4rem;
    font-weight: 600;
    line-height: 1.15;
}

.comparison-table-wrap {
    overflow-x: auto;
    border: 1px solid var(--d4-border);
    border-radius: 18px;
    background: var(--d4-surface);
}

.comparison-table-wrap:focus-visible {
    outline: 2px solid var(--d4-yellow);
    outline-offset: 3px;
}

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

.comparison-table th,
.comparison-table td {
    padding: 1rem;
    border-right: 1px solid var(--d4-border);
    border-bottom: 1px solid var(--d4-border);
    text-align: left;
    vertical-align: top;
    line-height: 1.55;
}

.comparison-table tr:last-child th,
.comparison-table tr:last-child td {
    border-bottom: 0;
}

.comparison-table th:last-child,
.comparison-table td:last-child {
    border-right: 0;
}

.comparison-table thead th {
    background: var(--d4-surface-alt);
    color: var(--d4-yellow);
    font-size: 0.82rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.comparison-table tbody th {
    width: 24%;
    color: var(--d4-text);
}

.comparison-table td {
    color: var(--hero-text-color);
    font-family: "Kanit Light", sans-serif;
    font-weight: 300;
    line-height: 1.395;
}

.pros-limitations__card ul {
    padding-left: 1.4rem;
    margin-bottom: 0;
    list-style: disc;
}

.discovery-callout {
    margin: 4rem 0;
    padding: 2rem;
    border: 1px solid rgba(255, 213, 0, 0.35);
    border-radius: 24px;
    background: var(--d4-surface);
}

.discovery-inline-cta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    margin: 4rem 0;
    padding: 1.5rem;
    border: 1px solid rgba(255, 213, 0, 0.35);
    border-radius: 24px;
    background: var(--d4-surface);
}

.discovery-inline-cta h2 {
    margin: 0 0 0.45rem;
    font-size: clamp(1.6rem, 4vw, 2.3rem);
    font-weight: 504;
    line-height: 1.1;
}

.discovery-inline-cta p {
    max-width: 620px;
    margin: 0;
    color: var(--hero-text-color);
    line-height: 1.44;
}

.discovery-inline-cta .cta-group {
    flex: 0 0 auto;
    margin: 0;
}

.discovery-faq__list {
    border-top: 1px solid var(--d4-border);
}

.discovery-faq details {
    border-bottom: 1px solid var(--d4-border);
}

.discovery-faq summary {
    padding: 1.15rem 0;
    color: var(--d4-text);
    font-size: 1.1rem;
    cursor: pointer;
}

.discovery-faq details p {
    margin-top: 0;
    padding: 0 0 1.2rem;
}

.related-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.related-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.2rem;
    color: var(--d4-text) !important;
    text-decoration: none;
    transition: transform 0.2s, border-color 0.2s;
}

.related-card:hover {
    transform: translateY(-3px);
    border-color: rgba(255, 213, 0, 0.45);
}

.related-card i {
    color: var(--d4-yellow);
}

.discovery-cta {
    margin-top: 5rem;
    padding: 3rem 2rem;
    border: 1px solid rgba(255, 213, 0, 0.35);
    border-radius: 24px;
    background: var(--d4-surface);
    text-align: center;
}

.discovery-cta p {
    max-width: 650px;
    margin: 0 auto 1.5rem;
    color: var(--d4-text-muted);
    font-size: 1.05rem;
    line-height: 1.485;
}

.discovery-cta .cta-group {
    margin-bottom: 1rem;
}

.discovery-cta .discovery-cta__note {
    margin-bottom: 0;
    font-size: 0.84rem;
}

@media (max-width: 900px) {
    .fact-grid,
    .related-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .discovery-shell {
        width: min(100% - 2rem, 1040px);
        padding-top: 1rem;
    }

    .breadcrumbs {
        margin-bottom: 2rem;
    }

    .discovery-hero h1 {
        font-size: clamp(2.75rem, 14vw, 4rem);
    }

    .discovery-deck,
    .direct-answer {
        font-size: 1.08rem;
    }

    .discovery-hero__stats {
        align-items: center;
    }

    .discovery-hero__ctas {
        flex-direction: column;
        align-items: stretch;
    }

    .page-discovery .cta-group .btn {
        text-align: center;
    }

    .decision-grid,
    .pros-limitations,
    .fact-grid,
    .related-grid,
    .platform-groups,
    .privacy-flows {
        grid-template-columns: 1fr;
    }

    .discovery-section,
    .discovery-callout {
        margin: 3rem 0;
    }

    .discovery-cta {
        padding: 2rem 1rem;
    }

    .discovery-inline-cta {
        align-items: stretch;
        flex-direction: column;
    }

    .discovery-inline-cta .cta-group {
        align-items: stretch;
        flex-direction: column;
    }

    .discovery-cta .cta-group {
        flex-direction: column;
        align-items: stretch;
    }
}
