/* Kaki network-diagnostic website preview, based on the earlier site palette. */
.kd-page {
    --kd-ink: #17283e;
    --kd-muted: #667d96;
    --kd-blue: #2b70d6;
    --kd-line: #dfe9f3;
    color: var(--kd-ink);
    overflow-x: hidden;
}

.kd-container { width: min(1180px, calc(100% - 48px)); margin-inline: auto; }
.kd-page h1, .kd-page h2, .kd-page h3, .kd-page p { margin-top: 0; }
.kd-page h2 { font-size: clamp(32px, 3.5vw, 46px); line-height: 1.13; letter-spacing: -0.045em; }
.kd-page h3 { letter-spacing: -0.025em; }
.kd-page a:focus-visible { outline: 3px solid var(--kd-blue); outline-offset: 4px; }

.kd-header { position: sticky; top: 0; z-index: 20; background: rgba(255,255,255,.92); border-bottom: 1px solid #e7eef6; backdrop-filter: blur(18px); }
.kd-header__inner { min-height: 76px; display: flex; align-items: center; gap: 36px; }
.kd-brand { display: inline-flex; align-items: center; gap: 10px; color: var(--kd-ink); font-size: 20px; font-weight: 800; letter-spacing: -.04em; }
.kd-brand img, .kd-footer__brand img { border-radius: 9px; }
.kd-nav { display: flex; gap: 32px; margin-left: auto; }
.kd-nav a { color: #536b86; font-size: 14px; font-weight: 600; transition: color .2s; }
.kd-nav a:hover { color: var(--kd-blue); }
.kd-header__action { margin-left: 12px; border: 1px solid #cbdcf0; border-radius: 999px; padding: 11px 17px; color: var(--kd-blue); font-size: 13px; font-weight: 700; white-space: nowrap; }
.kd-header__action:hover { background: #eef5ff; }
.kd-header__action span { margin-left: 8px; }

.kd-hero { position: relative; background: radial-gradient(circle at 78% 37%, #d7e8ff 0, transparent 28%), linear-gradient(120deg, #f5f9ff 0%, #ecf4ff 54%, #f8fbff 100%); overflow: hidden; }
.kd-hero__grid { display: grid; grid-template-columns: 1.04fr .96fr; gap: 45px; min-height: 650px; align-items: center; }
.kd-hero__copy { padding: 90px 0 100px; position: relative; z-index: 2; }
.kd-eyebrow, .kd-kicker { display: inline-flex; align-items: center; color: var(--kd-blue); font-size: 12px; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }
.kd-eyebrow { border: 1px solid #d2e5fb; border-radius: 999px; background: rgba(255,255,255,.72); padding: 10px 14px; letter-spacing: .08em; }
.kd-eyebrow__dot { width: 7px; height: 7px; margin-right: 9px; border-radius: 50%; background: #46be8b; box-shadow: 0 0 0 4px #e2f8ef; }
.kd-hero h1 { margin: 27px 0 21px; font-size: clamp(45px, 5.2vw, 73px); line-height: 1.055; font-weight: 800; letter-spacing: -.065em; }
.kd-page--zh .kd-hero h1 { font-size: clamp(36px, 4.5vw, 62px); letter-spacing: -.055em; }
.kd-hero h1 span { color: var(--kd-blue); }
.kd-hero__copy > p:not(.kd-hero__note) { max-width: 590px; color: #526c87; font-size: 18px; line-height: 1.75; }
.kd-hero__actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 31px; }
.kd-button { min-height: 49px; display: inline-flex; gap: 16px; align-items: center; justify-content: center; border-radius: 999px; padding: 13px 22px; font-size: 14px; font-weight: 700; transition: transform .2s, box-shadow .2s, background .2s; }
.kd-button:hover { transform: translateY(-2px); }
.kd-button--primary { background: linear-gradient(135deg, #347de1, #2065c9); color: white; box-shadow: 0 11px 22px rgba(40,109,205,.19); }
.kd-button--primary:hover { color: white; box-shadow: 0 15px 26px rgba(40,109,205,.25); }
.kd-button--secondary { color: var(--kd-ink); border: 1px solid #cfdeee; background: rgba(255,255,255,.75); }
.kd-button--secondary:hover { background: white; }
.kd-hero__note { margin-top: 23px; color: #8295aa; font-size: 12px; }
.kd-hero__art { position: relative; display: grid; place-items: center; min-height: 615px; }
.kd-orbit { position: absolute; border: 1px solid rgba(71,135,221,.2); border-radius: 50%; }
.kd-orbit--one { width: 515px; height: 515px; }
.kd-orbit--two { width: 690px; height: 690px; }
.kd-phone { position: relative; z-index: 2; width: 294px; height: 552px; border-radius: 38px; padding: 14px 18px; border: 7px solid #233345; background: #f9fbff; box-shadow: 0 42px 70px rgba(38,80,139,.2), 0 0 0 2px rgba(255,255,255,.95) inset; transform: rotate(6deg); overflow: hidden; }
.kd-phone__top { display: flex; justify-content: space-between; padding: 0 12px 13px; color: #25354a; font-size: 11px; font-weight: 700; }
.kd-phone__brand { display: flex; align-items: center; gap: 8px; margin: 12px 0 7px; font-size: 17px; font-weight: 750; }
.kd-phone__mark { display: grid; place-items: center; width: 28px; height: 28px; background: #0a0e16; color: white; border-radius: 50%; font-size: 13px; }
.kd-phone__intro { color: #77889a; font-size: 10px; margin-bottom: 20px; }
.kd-phone__card { border: 1px solid #e4ebf4; border-radius: 19px; padding: 17px; background: white; }
.kd-phone__card--main { box-shadow: 0 10px 25px rgba(28,83,143,.07); }
.kd-phone__card-label { display: flex; align-items: center; gap: 7px; color: #4c76ac; font-size: 10px; font-weight: 750; }
.kd-pulse { width: 11px; height: 11px; border: 2px solid #3981df; border-radius: 50%; }
.kd-phone__card strong { display: block; margin-top: 13px; font-size: 16px; }
.kd-phone__card p { color: #8793a1; font-size: 10px; line-height: 1.55; margin: 7px 0 13px; }
.kd-phone__button { display: flex; align-items: center; justify-content: space-between; border-radius: 11px; padding: 10px 13px; background: #3178d6; color: white; font-size: 10px; font-weight: 700; }
.kd-phone__label { margin: 25px 0 11px; color: #8a97a6; font-size: 9px; font-weight: 800; letter-spacing: .08em; }
.kd-phone__checks { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.kd-phone__checks span { padding: 10px 8px; border: 1px solid #e6edf5; border-radius: 10px; color: #43566a; background: white; font-size: 10px; font-weight: 700; }
.kd-phone__checks span::before { content: '◇'; color: #327bd9; margin-right: 5px; }
.kd-phone__tabbar { position: absolute; bottom: 0; left: 0; right: 0; display: flex; justify-content: space-around; padding: 13px 5px 18px; background: white; border-top: 1px solid #ebeff5; color: #a0aab6; font-size: 8px; font-weight: 700; }
.kd-phone__tabbar .is-active { color: #2f74d4; }
.kd-floating { position: absolute; z-index: 3; display: flex; align-items: center; gap: 10px; padding: 12px 15px; background: rgba(255,255,255,.95); border: 1px solid #e9eff6; border-radius: 15px; box-shadow: 0 14px 30px rgba(35,84,146,.12); }
.kd-floating--left { left: -2%; top: 21%; transform: rotate(-5deg); }
.kd-floating--right { right: -2%; bottom: 20%; transform: rotate(5deg); }
.kd-floating__icon { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 10px; background: #e9f2ff; color: #3279d6; font-weight: 800; }
.kd-floating__icon--green { background: #e3f6ec; color: #22a965; }
.kd-floating strong, .kd-floating small { display: block; white-space: nowrap; }
.kd-floating strong { font-size: 11px; }
.kd-floating small { margin-top: 2px; color: #8392a4; font-size: 9px; }

.kd-section { padding: 106px 0; }
.kd-section--soft { background: #f6f9fd; }
.kd-section--steps { padding-bottom: 112px; }
.kd-section__heading { max-width: 700px; margin: 0 auto 50px; text-align: center; }
.kd-section__heading h2 { margin: 13px 0 18px; }
.kd-section__heading p { color: var(--kd-muted); font-size: 16px; line-height: 1.7; }
.kd-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.kd-step { position: relative; min-height: 265px; padding: 33px; background: white; border: 1px solid var(--kd-line); border-radius: 20px; box-shadow: 0 10px 25px rgba(43,91,140,.045); }
.kd-step__number { position: absolute; right: 30px; top: 28px; color: #d9e7f7; font-size: 31px; font-weight: 800; letter-spacing: -.05em; }
.kd-step__icon { display: grid; place-items: center; width: 45px; height: 45px; border-radius: 13px; background: #eaf3ff; color: #3277d4; font-size: 25px; font-weight: 700; }
.kd-step h3 { margin: 28px 0 10px; font-size: 21px; }
.kd-step p { margin: 0; color: var(--kd-muted); font-size: 14px; line-height: 1.65; }
.kd-feature-split, .kd-proxy-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 9%; align-items: center; }
.kd-feature-split__copy h2, .kd-proxy-copy h2 { margin: 15px 0 20px; }
.kd-feature-split__copy > p, .kd-proxy-copy > p { color: var(--kd-muted); font-size: 16px; line-height: 1.75; }
.kd-tick-list { list-style: none; padding: 0; margin: 28px 0 0; }
.kd-tick-list li { position: relative; padding: 0 0 0 29px; margin: 15px 0; color: #45617e; font-size: 14px; line-height: 1.55; }
.kd-tick-list li::before { content: '✓'; position: absolute; left: 0; top: 0; color: #27aa70; font-weight: 800; }
.kd-report { border: 1px solid #e1eaf5; background: white; border-radius: 23px; padding: 30px; box-shadow: 0 23px 55px rgba(34,80,131,.1); transform: rotate(2deg); }
.kd-report__top { display: flex; justify-content: space-between; gap: 12px; align-items: center; color: #4c6682; font-size: 12px; font-weight: 750; }
.kd-report__top > span:last-child { color: #8ca5bf; font-size: 10px; letter-spacing: .07em; }
.kd-report__dot { display: inline-block; width: 8px; height: 8px; margin-right: 6px; border-radius: 50%; background: #3b85de; }
.kd-report__title { margin: 28px 0 22px; color: var(--kd-ink); font-size: 23px; font-weight: 800; letter-spacing: -.03em; }
.kd-report__row { display: grid; grid-template-columns: 37px 1fr 50px; align-items: center; gap: 12px; padding: 15px 0; border-top: 1px solid #edf1f6; }
.kd-report__symbol { display: grid; place-items: center; width: 36px; height: 36px; background: #edf5ff; color: #3579d0; border-radius: 10px; font-size: 18px; }
.kd-report__row strong, .kd-report__row small { display: block; }
.kd-report__row strong { font-size: 13px; }
.kd-report__row small { margin-top: 4px; color: #8b9cac; font-size: 11px; }
.kd-report__line { width: 45px; height: 5px; border-radius: 5px; background: #e5eef8; }
.kd-report__foot { display: flex; gap: 8px; padding-top: 20px; }
.kd-report__foot span { background: #f1f7fe; border-radius: 20px; padding: 7px 10px; color: #5b7b9e; font-size: 10px; white-space: nowrap; }
.kd-tools { display: grid; grid-template-columns: repeat(5, 1fr); gap: 15px; }
.kd-tool { min-height: 190px; padding: 25px 19px; border: 1px solid var(--kd-line); border-radius: 18px; background: white; transition: transform .2s, box-shadow .2s; }
.kd-tool:hover { transform: translateY(-4px); box-shadow: 0 15px 30px rgba(36,82,140,.08); }
.kd-tool__icon { display: grid; place-items: center; width: 45px; height: 45px; border-radius: 13px; font-size: 23px; font-weight: 700; }
.kd-tool__icon--blue { background: #e8f2ff; color: #2e76d4; }
.kd-tool__icon--amber { background: #fff3e2; color: #c27c0f; }
.kd-tool__icon--purple { background: #f1edff; color: #7058d5; }
.kd-tool__icon--green { background: #e8f8ec; color: #2d9c60; }
.kd-tool h3 { margin: 18px 0 8px; font-size: 17px; }
.kd-tool p { margin: 0; color: var(--kd-muted); font-size: 12px; line-height: 1.55; }
.kd-section--proxy { background: linear-gradient(120deg, #edf5ff, #f7fbff); }
.kd-proxy-card { max-width: 510px; border: 1px solid #e2eaf3; border-radius: 24px; padding: 25px; background: white; box-shadow: 0 22px 45px rgba(39,83,132,.1); }
.kd-proxy-card__header { display: flex; align-items: center; gap: 12px; padding-bottom: 23px; }
.kd-proxy-card__shield { display: grid; place-items: center; width: 49px; height: 49px; border-radius: 15px; background: #ebf3ff; color: #2d75d4; font-size: 26px; }
.kd-proxy-card__header strong, .kd-proxy-card__header small, .kd-proxy-card__row strong, .kd-proxy-card__row small { display: block; }
.kd-proxy-card__header strong { font-size: 18px; }
.kd-proxy-card__header small { margin-top: 3px; color: #8b9aac; font-size: 11px; }
.kd-proxy-card__vip { margin-left: auto; color: #aa6a13; background: #fff3e4; padding: 6px 10px; border-radius: 999px; font-size: 10px; font-weight: 800; }
.kd-proxy-card__row { display: grid; grid-template-columns: 42px 1fr 10px; align-items: center; gap: 14px; padding: 19px 0; border-top: 1px solid #edf1f5; }
.kd-proxy-card__row-icon { display: grid; place-items: center; width: 42px; height: 42px; background: #f1f6fc; border-radius: 12px; color: #3278d1; font-size: 21px; }
.kd-proxy-card__row small { color: #9aabb9; font-size: 10px; letter-spacing: .07em; }
.kd-proxy-card__row strong { margin-top: 5px; font-size: 14px; }
.kd-proxy-card__row > span:last-child { color: #a2b4c5; font-size: 26px; }
.kd-proxy-card__bottom { margin-top: 5px; padding: 12px 14px; border-radius: 12px; background: #f5f9fd; color: #7a8ca2; font-size: 11px; }
.kd-proxy-copy__note { display: inline-flex; margin-top: 9px; border-left: 3px solid #347ddd; padding: 8px 0 8px 13px; color: #4f7299; font-size: 13px; line-height: 1.55; }
.kd-closing { padding: 95px 0; text-align: center; background: white; }
.kd-closing__inner { max-width: 750px; }
.kd-closing h2 { margin: 13px 0 17px; font-size: clamp(34px, 4vw, 49px); line-height: 1.13; letter-spacing: -.045em; }
.kd-closing p { margin-bottom: 28px; color: var(--kd-muted); font-size: 16px; line-height: 1.65; }
.kd-link-section { padding: 85px 0 95px; background: #f6f9fd; scroll-margin-top: 76px; }
.kd-link-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.kd-link-card { display: flex; align-items: center; gap: 17px; min-height: 112px; padding: 23px; border: 1px solid var(--kd-line); border-radius: 18px; background: white; color: var(--kd-ink); transition: transform .2s, box-shadow .2s; }
.kd-link-card:hover { transform: translateY(-3px); box-shadow: 0 12px 25px rgba(36,82,140,.08); color: var(--kd-ink); }
.kd-link-card__icon { flex: 0 0 42px; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; background: #eaf3ff; color: var(--kd-blue); font-size: 23px; font-weight: 700; }
.kd-link-card strong, .kd-link-card small { display: block; }
.kd-link-card strong { font-size: 16px; }
.kd-link-card small { margin-top: 5px; color: var(--kd-muted); font-size: 12px; line-height: 1.4; }
.kd-link-card__arrow { margin-left: auto; color: var(--kd-blue); font-size: 20px; }
.kd-footer { border-top: 1px solid #e8eef5; padding: 29px 0; background: #f9fbfe; }
.kd-footer__inner { display: flex; align-items: center; flex-wrap: wrap; gap: 18px 25px; }
.kd-footer__brand { display: flex; align-items: center; gap: 9px; font-size: 16px; font-weight: 800; }
.kd-footer__links { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 20px; margin-left: auto; }
.kd-footer p { margin: 0; color: #8a9aab; font-size: 12px; }
.kd-footer a { color: #547ca9; font-size: 12px; font-weight: 700; }
.kd-footer a:hover { color: var(--kd-blue); }

.kd-document { min-height: calc(100vh - 160px); padding: 65px 0 100px; background: linear-gradient(180deg, #f5f9ff, white 310px); }
.kd-document__container { max-width: 800px; }
.kd-document__topline { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 35px; }
.kd-back-link { display: inline-block; margin-bottom: 35px; color: var(--kd-blue); font-size: 14px; font-weight: 700; }
.kd-document__topline .kd-back-link { margin-bottom: 0; }
.kd-language-switch { flex: none; border: 1px solid #cbdcf0; border-radius: 999px; padding: 7px 13px; color: var(--kd-blue); background: white; font-size: 14px; font-weight: 700; }
.kd-language-switch:hover { background: #eef5ff; }
.kd-draft-badge { display: table; margin-bottom: 18px; padding: 7px 11px; border-radius: 999px; background: #fff2df; color: #95610d; font-size: 11px; font-weight: 800; letter-spacing: .05em; }
.kd-document h1 { margin: 0 0 18px; font-size: clamp(38px, 5vw, 54px); line-height: 1.1; letter-spacing: -.05em; }
.kd-document__lead { margin-bottom: 35px; color: var(--kd-muted); font-size: 18px; line-height: 1.7; }
.kd-document__callout { margin-bottom: 37px; padding: 23px 26px; border: 1px solid #d6e6f7; border-radius: 16px; background: #f2f7fe; }
.kd-document__callout strong { font-size: 15px; }
.kd-document__callout p { margin: 7px 0 0; color: #5e7690; font-size: 14px; line-height: 1.7; }
.kd-document section { padding: 25px 0; border-top: 1px solid var(--kd-line); }
.kd-document section h2 { margin: 0 0 10px; font-size: 22px; letter-spacing: -.025em; }
.kd-document section p, .kd-document section li, .kd-document address { color: #526b86; font-size: 16px; line-height: 1.75; }
.kd-document section p:last-child { margin-bottom: 0; }
.kd-document section a { color: var(--kd-blue); text-decoration: underline; text-underline-offset: 3px; }
.kd-document code { overflow-wrap: anywhere; }
.kd-document address { font-style: normal; }
.kd-support-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-bottom: 36px; }
.kd-document .kd-support-card { padding: 22px; border: 1px solid var(--kd-line); border-radius: 16px; background: white; }
.kd-document .kd-support-card h2 { font-size: 17px; }
.kd-document .kd-support-card p { font-size: 13px; }

@media (max-width: 1000px) {
    .kd-hero__grid { gap: 5px; grid-template-columns: 1fr .9fr; }
    .kd-hero h1 { font-size: clamp(43px, 5vw, 60px); }
    .kd-floating--left { left: -5%; }
    .kd-floating--right { right: -5%; }
    .kd-tools { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 760px) {
    .kd-container { width: min(100% - 36px, 580px); }
    .kd-header__inner { min-height: 66px; }
    .kd-nav { display: none; }
    .kd-header__action { margin-left: auto; }
    .kd-hero__grid { grid-template-columns: 1fr; gap: 0; }
    .kd-hero__copy { padding: 68px 0 15px; text-align: center; }
    .kd-hero h1 { font-size: clamp(40px, 9vw, 58px); }
    .kd-hero__copy > p:not(.kd-hero__note) { margin-inline: auto; font-size: 16px; }
    .kd-hero__actions { justify-content: center; }
    .kd-hero__art { min-height: 560px; }
    .kd-floating--left { left: 1%; }
    .kd-floating--right { right: 0; }
    .kd-section { padding: 78px 0; }
    .kd-steps { grid-template-columns: 1fr; }
    .kd-step { min-height: 0; }
    .kd-feature-split, .kd-proxy-grid { grid-template-columns: 1fr; gap: 45px; }
    .kd-proxy-card { order: 2; }
    .kd-tools { grid-template-columns: repeat(2, 1fr); }
    .kd-report { transform: none; }
    .kd-link-grid, .kd-support-grid { grid-template-columns: 1fr; }
    .kd-link-section { padding: 70px 0; }
    .kd-footer__links { margin-left: 0; }
    .kd-footer p { width: 100%; }
    .kd-document { padding: 45px 0 75px; }
}

@media (max-width: 480px) {
    .kd-container { width: calc(100% - 30px); }
    .kd-header__action { padding: 9px 12px; font-size: 11px; }
    .kd-hero__copy { padding-top: 51px; }
    .kd-eyebrow { font-size: 9px; }
    .kd-hero h1 { font-size: 40px; }
    .kd-page--zh .kd-hero h1 { font-size: clamp(30px, 8vw, 36px); }
    .kd-hero__actions { display: grid; }
    .kd-hero__art { min-height: 515px; }
    .kd-phone { transform: rotate(4deg) scale(.84); }
    .kd-floating--left { top: 19%; left: -3%; }
    .kd-floating--right { right: -4%; bottom: 18%; }
    .kd-section__heading { margin-bottom: 34px; }
    .kd-section__heading h2, .kd-feature-split__copy h2, .kd-proxy-copy h2 { font-size: 32px; }
    .kd-steps { gap: 11px; }
    .kd-step { padding: 25px; }
    .kd-tools { gap: 10px; }
    .kd-tool { min-height: 166px; padding: 18px 13px; }
    .kd-tool h3 { font-size: 15px; }
    .kd-tool p { font-size: 11px; }
    .kd-report { padding: 20px; }
    .kd-report__foot { flex-wrap: wrap; }
    .kd-proxy-card { padding: 19px; }
    .kd-link-card { min-height: 96px; padding: 18px; }
    .kd-document__lead { font-size: 16px; }
}

/* App-only reading mode; regular mobile browser pages keep the full site chrome. */
.kd-app-document .kd-page--document .kd-header,
.kd-app-document .kd-page--document .kd-footer,
.kd-app-document .kd-page--document .kd-back-link { display: none; }
.kd-app-document .kd-page--document .kd-document {
    min-height: 100vh;
    padding: 26px 0 48px;
    background: #fff;
}
.kd-app-document .kd-page--document .kd-document__container { max-width: 760px; }
.kd-app-document .kd-page--document .kd-document__topline {
    justify-content: flex-end;
    margin-bottom: 24px;
}
.kd-app-document .kd-page--document .kd-document h1 { font-size: clamp(30px, 6vw, 38px); }
.kd-app-document .kd-page--document .kd-document section h2 { font-size: 19px; }

@media (prefers-reduced-motion: reduce) {
    .kd-page *, .kd-page *::before, .kd-page *::after { scroll-behavior: auto !important; transition: none !important; }
}
