:root {
    color-scheme: light;
    --ink: #17182b;
    --muted: #55586e;
    --link: #4142a4;
    --line: #e2e3ee;
    --paper: #fafafe;
    scroll-behavior: smooth;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font: 16px/1.55 system-ui,"Microsoft YaHei",sans-serif;
}

a {
    color: var(--link);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

a:focus-visible {
    outline: 3px solid #6767cf;
    outline-offset: 4px;
}

.bar,main,footer {
    max-width: 1180px;
    margin: auto;
    padding-inline: clamp(20px,5vw,60px);
}

.bar,footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}

.bar {
    min-height: 84px;
}

.brand {
    color: var(--ink);
    font-weight: 750;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.mark {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border-radius: 12px;
    background: #262650;
    color: white;
    font-size: 14px;
    letter-spacing: -.04em;
}

.bar nav {
    display: flex;
    gap: clamp(12px,3vw,28px);
    font-size: 14px;
    font-weight: 650;
}

.hero {
    padding-block: clamp(36px,7vw,108px);
    display: grid;
    grid-template-columns: 1.15fr 1fr;
    align-items: center;
    gap: clamp(24px,5vw,60px);
}

h1 {
    font-size: clamp(37px,6.3vw,76px);
    font-weight: 770;
    letter-spacing: -.055em;
    line-height: 1.09;
    margin: 0;
}

h1 em {
    font-style: normal;
    color: var(--link);
}

.intro {
    font-size: clamp(16px,2.1vw,20px);
    max-width: 510px;
    margin: 24px 0;
    color: var(--muted);
}

.actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 13px 20px;
}

.primary {
    display: inline-flex;
    gap: 12px;
    padding: 12px 18px;
    border-radius: 11px;
    background: #4142a4;
    color: #fff;
    font-weight: 720;
}

.secondary {
    font-weight: 650;
    padding: 10px 0;
}

.example {
    margin: 0;
    border: 1px solid #dfe0f2;
    border-radius: 24px;
    padding: clamp(18px,3vw,30px);
    background: radial-gradient(ellipse at top left,#efecff 0%,#e7ecff 85%);
    box-shadow: 0 18px 40px #27274e14;
}

.example figcaption {
    font-weight: 730;
}

.flow {
    margin-top: 15px;
}

.sources {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.sources span {
    background: #fff;
    border: 1px solid #e3dff5;
    border-radius: 9px;
    padding: 5px 11px;
    font-size: 14px;
}

.arrow {
    display: block;
    padding: 3px 12px;
    color: var(--link);
    font-size: 21px;
}

.answer {
    padding: 13px 15px;
    background: #fff;
    border-radius: 13px;
}

.answer p {
    margin: 0 0 8px;
}

.prompt {
    font-weight: 700;
}

.answer small,.permission {
    color: var(--muted);
}

.permission {
    margin: 13px 0 0;
    font-size: 13px;
}

.platforms {
    border-top: 1px solid var(--line);
    padding-block: 24px 55px;
}

.platforms h2 {
    margin: 0 0 14px;
    font-size: 24px;
}

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

.cards article {
    border: 1px solid var(--line);
    background: #fff;
    border-radius: 14px;
    padding: 15px 18px;
}

.cards h3 {
    margin: 0;
    font-size: 17px;
}

.cards p {
    color: var(--muted);
    margin: 5px 0 10px;
}

.cards a {
    font-weight: 650;
}

footer {
    padding-block: 14px 24px;
    font-size: 14px;
}

@media(max-width:720px) {
    .hero {
        grid-template-columns: 1fr;
    }
    .bar {
        padding-block: 14px;
        min-height: auto;
    }
    .cards {
        grid-template-columns: 1fr;
    }
    .platforms {
        padding-bottom: 25px;
    }
}

@media(prefers-reduced-motion:reduce) {
    :root {
        scroll-behavior: auto;
    }
}
