:root {
    color-scheme: light;
    font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
    color: #182543;
    background: #f6f7fc;
    --brand: #4338ca;
    --muted: #505d79;
    --line: #dce0ef;
    --page-x: clamp(1rem, 5vw, 5rem);
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; }
body:has(.deck.is-enhanced) { overflow: hidden; }
.sf-toolbar { display: none !important; }
[hidden] { display: none !important; }
a { color: var(--brand); }
:focus-visible { outline: 3px solid #e66c19; outline-offset: 4px; }

.deck {
    display: grid;
    grid-template-rows: auto minmax(0, 1fr) auto;
    min-height: 100vh;
    min-height: 100dvh;
}

.deck.is-enhanced {
    height: 100vh;
    height: 100dvh;
}

.deck-header, .deck-nav {
    display: flex;
    align-items: center;
    gap: .8rem;
    padding: .65rem var(--page-x);
    background: #fff;
}
.deck-header { justify-content: space-between; border-bottom: 1px solid var(--line); }
.deck-home { display: block; flex: none; }
.deck-home img { display: block; width: clamp(7rem, 13vw, 10rem); height: auto; }
.deck-signup { margin-inline-start: auto; font-size: .875rem; font-weight: 700; text-align: right; text-underline-offset: .2em; }
.deck-media-actions { display: flex; gap: .5rem; }
.deck-media-actions a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 2.75rem;
    padding: .45rem .8rem;
    border: 1px solid var(--line);
    border-radius: .55rem;
    background: #eeecff;
    font-size: .875rem;
    font-weight: 700;
    text-align: center;
    text-decoration: none;
}
.deck-media-actions a:hover { background: var(--brand); color: #fff; }

@media (max-width: 36rem) {
    .deck-header { display: grid; grid-template-columns: auto 1fr; gap: .5rem .8rem; }
    .deck-media-actions { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.deck-stage { min-height: 0; touch-action: pan-y pinch-zoom; }
.is-enhanced .deck-stage { overflow: auto; overscroll-behavior: contain; }
.slide {
    width: min(100%, 106rem);
    margin-inline: auto;
    padding: clamp(1rem, 4vh, 2.8rem) var(--page-x);
    min-height: 100%;
    display: grid;
    gap: clamp(.55rem, 1.7vh, 1.4rem) clamp(1.3rem, 4vw, 4.2rem);
    align-content: center;
}
.deck:not(.is-enhanced) .slide { min-height: min(48rem, 85vh); border-bottom: 1px solid var(--line); }
.slide h1, .slide h2, .slide p, .slide dl, .slide dd { margin: 0; }
.slide h1, .slide h2 { line-height: 1.1; letter-spacing: -.035em; text-wrap: balance; }
.slide h1 { font-size: clamp(1.6rem, 4vw, 3.6rem); max-width: 24ch; }
.slide h2 { font-size: clamp(1.45rem, 3.5vw, 3.15rem); }

.slide--cover, .slide--closing {
    width: 100%;
    justify-items: center;
    text-align: center;
    background: radial-gradient(ellipse at top, #edeaff 0, #fff 66%);
}
.slide--closing { background: #f4f2ff; }
.slide-brand { display: grid; gap: .45rem; justify-items: center; margin-bottom: clamp(.45rem, 2vh, 1.5rem); }
.slide-logo { width: min(66vw, 36rem); height: auto; display: block; }
.slide-logo--small { width: min(45vw, 15rem); margin-bottom: .6rem; }
.slide-tagline { font-size: clamp(1rem, 2vw, 1.45rem); color: var(--brand); font-weight: 700; }
.slide-label { color: var(--muted); font-size: clamp(1rem, 2vw, 1.2rem); max-width: 49ch; text-wrap: balance; }
.deck-button {
    display: inline-block;
    padding: .75rem 1.4rem;
    border-radius: .6rem;
    background: var(--brand);
    color: #fff;
    font-weight: 700;
    text-decoration: none;
}
.deck-button:hover { background: #352ba8; }
.slide-demo { font-weight: 650; text-underline-offset: .2em; }

.slide--overview { align-content: center; }
.slide-topics { display: grid; gap: clamp(.65rem, 2.8vh, 2rem); max-width: 60rem; }
.slide-topics > div { padding: .35rem 0 .35rem clamp(.75rem, 2vw, 1.5rem); border-left: 3px solid #bdb7f8; }
.slide-topics dt { font-weight: 750; color: var(--brand); font-size: clamp(1.08rem, 2.3vw, 1.8rem); }
.slide-topics dd { margin-top: .18rem; font-size: clamp(.9rem, 1.9vw, 1.25rem); }

.slide--feature, .slide--wide { grid-template-columns: minmax(14rem, 1fr) minmax(0, 2.25fr); align-items: center; }
.slide--feature h2, .slide--wide h2 { grid-column: 1 / -1; }
.slide--wide { grid-template-columns: minmax(0, 1fr); }
.slide--wide .slide-copy { grid-row: 3; max-width: 95ch; }
.slide-copy { display: grid; gap: clamp(.35rem, 1.35vh, .95rem); font-size: clamp(.95rem, 1.5vw, 1.23rem); line-height: 1.43; }
.slide-lead { color: var(--brand); font-weight: 750; }
.slide-example { color: var(--muted); font-size: .92em; }
.slide-screen {
    min-width: 0;
    position: relative;
    display: grid;
    place-items: center;
    border: 1px solid var(--line);
    border-radius: .65rem;
    overflow: hidden;
    background: #fff;
    color: var(--brand);
    text-decoration: none;
}
.slide-screen img { display: block; width: 100%; max-height: min(53vh, 37rem); object-fit: contain; }
.slide--wide .slide-screen img { max-height: 37vh; }
.slide-screen span {
    position: absolute;
    right: .4rem;
    bottom: .4rem;
    padding: .22rem .5rem;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: .35rem;
    font-size: .75rem;
    font-weight: 700;
}
.slide-screen:hover span { background: var(--brand); color: #fff; }

.deck-nav { justify-content: center; border-top: 1px solid var(--line); }
.deck-nav button, .deck-nav select { font: inherit; }
.deck-arrow {
    width: 2.75rem;
    height: 2.75rem;
    flex: none;
    border: 1px solid var(--line);
    border-radius: .55rem;
    background: #eeecff;
    color: var(--brand);
    cursor: pointer;
}
.deck-arrow:disabled { opacity: .42; cursor: default; }
.deck-nav select {
    color: inherit;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: .5rem;
    width: min(25rem, 47vw);
    min-width: 0;
    min-height: 2.75rem;
    padding: .35rem .45rem;
}
.deck-count { white-space: nowrap; color: var(--muted); font-size: .85rem; font-variant-numeric: tabular-nums; }

.deck-image-dialog { padding: .7rem; border: 0; border-radius: .8rem; max-width: 96vw; max-height: 94dvh; overflow: auto; }
.deck-image-dialog::backdrop { background: #1a2140d9; }
.deck-image-dialog img { display: block; max-width: 100%; max-height: 83dvh; object-fit: contain; }
.deck-image-dialog button {
    display: block;
    margin: 0 0 .35rem auto;
    width: 2.75rem;
    height: 2.75rem;
    border: 0;
    border-radius: .5rem;
    background: #eeecff;
    color: #241c8a;
    font-size: 1.6rem;
    cursor: pointer;
}

@media (max-width: 47.5rem) and (orientation: portrait) {
    .slide--feature, .slide--wide { grid-template-columns: 1fr; }
    .slide--wide .slide-copy { grid-row: auto; }
    .slide h2 { text-wrap: initial; }
    .slide-screen img, .slide--wide .slide-screen img { max-height: 29dvh; }
}

@media (max-height: 34rem) and (orientation: landscape) {
    .slide { padding-block: .65rem; gap: .45rem 1rem; }
    .slide h2 { font-size: clamp(1.28rem, 3.5vw, 2rem); }
    .slide-copy { font-size: .85rem; line-height: 1.3; }
    .slide--wide { grid-template-columns: minmax(13rem, 1fr) minmax(0, 1.5fr); }
    .slide--wide .slide-copy { grid-row: auto; }
    .slide-logo { width: min(37vw, 26rem); }
    .slide-logo--small { width: min(26vw, 13rem); }
    .deck-header, .deck-nav { padding-block: .35rem; }
}

@media (max-width: 25rem) {
    .deck-nav { gap: .4rem; padding-inline: .6rem; }
    .deck-count { font-size: .75rem; }
}
