/* Buttons, matching a.buy in marketing-page-styles/buy-buttons.css on the books website. */

.swiftfairy-primary-link,
.swiftfairy-secondary-button {
    box-sizing: border-box;
    display: inline-block;
    min-width: 240px;
    padding: 10px 16px;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    text-transform: uppercase;
}

.swiftfairy-primary-link {
    color: #151515;
    background: var(--button-color);
}

.swiftfairy-primary-link:hover {
    filter: brightness(0.96);
}

.swiftfairy-secondary-button {
    color: var(--body-text-color);
    background: transparent;
    box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--body-text-color) 40%, transparent);
}

.swiftfairy-secondary-button:hover {
    background: color-mix(in srgb, var(--body-text-color) 7%, transparent);
}

@media (prefers-color-scheme: light) {
    .swiftfairy-primary-link,
    .swiftfairy-secondary-button {
        padding: 10px 18px;
        font-weight: 500;
    }
}

@media screen and (max-width: 700px) {
    .swiftfairy-primary-link,
    .swiftfairy-secondary-button {
        min-width: 100%;
        padding: 10px 20px;
    }
}
header {
    position: fixed;
    top: 0;
    width: 100%;
    
    display: flex;
    justify-content: center;
    z-index: 100;
}

header nav {
    max-width: 900px;
    width: 100%;
}

@media screen and (max-width: 940px) {
    header nav {
        box-sizing: border-box;
        padding: 0 20px 0 20px;
    }
}

.site-navigation-links {
    display: flex;
    justify-content: flex-start;
}

ul.site-navigation-links {
    list-style-type: none;
    padding-inline-start: 0;
    padding: 5px 0;
}

.site-navigation-link {
    margin-right: 20px;
    text-transform: uppercase;
    color: var(--header-text-color);
    font-weight: 700;
}

@media screen and (max-width: 700px) {
    .site-navigation-link {
        font-weight: 400;
    }
}

.site-navigation-link.selected {
    border-bottom: solid 2px var(--header-text-color);
}

a.site-navigation-link {
    text-decoration: none;
}

header.inverted {
    background-color: var(--header-inverted-background);
}

header.inverted .site-navigation-link  {
    color: var(--header-inverted-text-color);
}

header.inverted .site-navigation-link.selected {
    border-bottom: solid 2px var(--header-inverted-text-color);
}
/* Discount promotion styles, matching promotion.css on the books website. */

.promotion-banner {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 14px 20px;
    margin: 30px 0;
    border-radius: 8px;
    color: black;
    text-align: center;
    background: linear-gradient(45deg, #E88793, #BC95F7);
    box-shadow: 2px 2px 2px 1px rgba(0, 0, 0, 0.2);
}

.promotion-banner .promotion-offer {
    font-size: 1.6rem;
    font-weight: 700;
    letter-spacing: 0.9px;
    text-shadow: 0.5px 0.5px 0.1px black;
}

.promotion-banner .offer-dates {
    font-size: 1.1rem;
    font-weight: 700;
}

a.promotion-banner-link {
    text-decoration: none;
}

.promotion-headline {
    margin: 30px 0 20px;
    font-size: 2rem;
    font-weight: 500;
    text-transform: uppercase;
    text-wrap: balance;
    background: -webkit-linear-gradient(45deg, #B980F2, #FF7C79, #F9B24E);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.old-price {
    padding: 0 6px 0 0;
    text-decoration: line-through;
}

.promo-price {
    font-weight: 600;
    background: -webkit-linear-gradient(45deg, #9B6CE0, #ff907b);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.scroll-purchase-result-link .old-price {
    padding: 0 4px 0 2px;
    font-weight: 400;
}

.scroll-purchase-result-link .promo-price {
    font-weight: 700;
    background: none;
    -webkit-text-fill-color: currentColor;
}

.scroll-purchase-result-access-term.promo {
    width: fit-content;
    margin-inline: auto;
    font-weight: 500;
    background: -webkit-linear-gradient(45deg, #9B6CE0, #ff907b);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.promotion-checkout-info {
    margin: 0;
}

.buy-now-callout {
    display: block;
    padding: 12px 0 4px;
    color: #BC95F7;
    font-size: 1.4rem;
    font-weight: 700;
    text-align: center;
    text-transform: uppercase;
    text-shadow: 0.5px 0.5px 2px black;
}

.discount-info {
    display: block;
    color: var(--body-text-color);
    font-size: 0.9rem;
    font-weight: 300;
    text-align: center;
}

.promotion-buy-now .buy-now-callout,
.promotion-buy-now .discount-info,
.promotion-checkout-info .buy-now-callout,
.promotion-checkout-info .discount-info {
    text-align: left;
    text-decoration: none;
}

/* The same space above the offer as in the SwiftFairy hero. */
.promotion-buy-now .buy-now-callout,
.promotion-checkout-info .buy-now-callout {
    padding-top: 24px;
}

.swiftfairy-licenses .promotion-buy-now .buy-now-callout,
.swiftfairy-licenses .promotion-buy-now .discount-info {
    text-align: center;
}

a.promotion-info {
    display: block;
    padding: 24px 0 8px;
    color: #BC95F7;
    font-size: 1.2rem;
    font-weight: 600;
    text-decoration: none;
    text-transform: uppercase;
    text-shadow: 0.5px 0.5px 2px black;
}

@media (prefers-color-scheme: light) {
    .promotion-banner {
        background: linear-gradient(45deg, #FFA9B4, #D5B9FD);
        box-shadow: 0.5px 0.5px 0.5px 0.1px rgba(0, 0, 0, 0.2);
    }

    .promotion-banner .promotion-offer {
        font-weight: 600;
        text-shadow: 0.4px 0.4px 0.1px black;
    }

    .promotion-banner .offer-dates {
        font-weight: 600;
    }

    .buy-now-callout,
    a.promotion-info {
        color: #9B6CE0;
        text-shadow: 0.1px 0.1px 0.5px black;
    }

    .scroll-purchase-result-access-term.promo {
        background: -webkit-linear-gradient(45deg, #9B6CE0, #FF7D67);
        -webkit-background-clip: text;
    }
}

@media screen and (max-width: 700px) {
    .promotion-banner .promotion-offer {
        font-size: 1.4rem;
        letter-spacing: 0.3px;
        text-shadow: 0.3px 0.3px 0.05px black;
        text-wrap: balance;
    }

    .promotion-headline {
        font-size: 1.8rem;
    }

    .promotion-banner .offer-dates {
        font-size: 1rem;
    }

    .promotion-buy-now .buy-now-callout,
    .promotion-buy-now .discount-info {
        text-align: center;
    }
}
/* Shared layout copied from Books-Website/Resources/public/styles.css. */
body {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin: 0;
    min-height: 100vh;
    min-height: 100svh;
    
    color: var(--body-text-color);
    background-color: var(--background-color);
}

main {
    margin-top: 50px;
    max-width: 100vw;
    max-width: 100svw;
}

.container {
    flex-grow: 1;
    max-width: 900px;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto max-content;
    align-content: stretch;
    width: 100%;
    height: 100%;
}

.container.chapter-page {
    max-width: 1000px;
}

@media screen and (max-width: 1040px) {
    .container {
        box-sizing: border-box;
        padding: 0 20px 0 20px;
    }
}

@media screen and (max-width: 700px) {
    .container {
        padding: 0;
    }
    
    body.menu-expanded {
        overflow: hidden;
        height: 100vh;
        height: 100svh;
        position: fixed;
    }
}

#site-navigation-menu {
    display: none;
}

button#site-navigation-menu {
    cursor: pointer;
    border: none;
    background-color: var(--chapter-header-background);
    padding: 0;
    height: 30px;
    
    display: none;
}

@media screen and (max-width: 700px) {
    header {
        justify-content: flex-end;
    }
    
    ul.site-navigation-links {
        padding: 0;
    }
    
    header.menu-expanded {
        background-color: var(--header-inverted-background);
    }
    
    header.menu-expanded .site-navigation-link  {
        color: var(--header-inverted-text-color);
        font-weight: 500;
    }

    header.menu-expanded .site-navigation-link.selected {
        border-bottom: solid 2px var(--header-inverted-text-color);
    }
    
    nav {
        display: none;
    }
    
    button#site-navigation-menu {
        cursor: pointer;
        border: none;
        background-color: transparent;
        padding: 10px;
        height: 50px;
        
        display: block;
        
        margin-right: 10px;
    }
    
    button#site-navigation-menu svg {
        fill: var(--yellow);
        width: 32px;
    }
    
    @media (prefers-color-scheme: light) {
        button#site-navigation-menu svg {
            width: 34px;
        }
    }
    
    header.menu-expanded button#site-navigation-menu svg {
        fill: var(--header-inverted-text-color);
    }
    
    header.inverted button#site-navigation-menu svg {
        fill: var(--header-inverted-text-color);
    }
    
    nav.open {
        display: block;
        
        background-color: var(--header-inverted-background);
        position: absolute;
        top: 100%;
        margin-top: 0;
        
        width: 100vw;
        width: 100svw;
        right: auto;
        left: 0;
        box-sizing: border-box;
        padding: 10px 20px 30px 20px;
    }
    
    nav.open .site-navigation-links {
        display: flex;
        gap: 16px;
        flex-direction: column;
        justify-content: flex-start;
        align-items: flex-end;
        
        margin: 0;
        
    }
    
    nav.open .site-navigation-links .site-navigation-link {
        margin: 0;
        text-align: end;
    }
}
:root {
    color-scheme: light dark;
    --body-text-color: #202020;
    --background-color: #fcfdff;
    --secondary-text-color: #575757;
    --purple: #9663e1;
    --purple-deep: #5c5fee;
    --yellow: #ff9b00;
    --button-color: #fccb39;
    --pink: #f36783;
    --blue: #50aeea;
    --red: #f25757;
    --green: #17b890;
    --orange: #ff765f;
    --light-green: #90b494;
    --brown: #94594e;
    --code-background: #f6f3fa;
    --code-comment: #b6b6b6;
    --code-flag-background: #fff0c9;
    --code-flag-border: #e59a00;
    --header-text-color: #ffa800;
    --header-inverted-text-color: #151515;
    --header-inverted-background: #ffd65e;
    --selection-color: rgba(188, 149, 247, 0.4);
}

@media (prefers-color-scheme: dark) {
    :root {
        --body-text-color: #fff;
        --background-color: #252527;
        --secondary-text-color: #b6b6b6;
        --purple: #b39dff;
        --purple-deep: #a1a3fc;
        --yellow: #fccb39;
        --button-color: #fccb39;
        --pink: #f4718b;
        --blue: #6bb4e2;
        --red: #ff7d67;
        --green: #17b890;
        --orange: #ff765f;
        --light-green: #90b494;
        --brown: #94594e;
        --code-background: #171717;
        --code-comment: #646464;
        --code-flag-background: #403521;
        --code-flag-border: #ffcf70;
        --header-text-color: #fccb39;
        --header-inverted-text-color: #fccb39;
        --header-inverted-background: #1d1e20;
        --selection-color: rgba(107, 180, 226, 0.2);
    }
}

* { box-sizing: border-box; }

html {
    min-height: 100%;
    font-size: 1em;
}

body {
    min-height: 100vh;
    min-height: 100svh;
    margin: 0;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    overflow-x: clip;
    overflow-wrap: break-word;
    color: var(--body-text-color);
    background: var(--background-color);
    font-family: -apple-system, system-ui, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}


::selection {
    color: var(--body-text-color);
    background: var(--selection-color);
}

/* Every link gets the site style by default; components can override it. */
:where(a) {
    color: var(--yellow);
    font-weight: 400;
    text-decoration: none;
    text-underline-offset: 3px;
}

:where(a:hover) { text-decoration: underline; }

main a:focus-visible {
    border-radius: 2px;
    outline: 3px solid var(--purple);
    outline-offset: 4px;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.site-navigation-link:focus-visible,
.footer-links a:focus-visible,
#site-navigation-menu:focus-visible {
    outline: 3px solid var(--purple);
    outline-offset: 4px;
    border-radius: 2px;
}

/* Page sections add no second offset beneath the shared Books layout. */
.tools-page,
.ai-tools-page,
.swiftfairy-page,
.app-releases-page {
    padding: 0 0 60px;
}

.scroll-purchase-page {
    padding: 0 0 180px;
}

.promotion-book-link {
    width: 100%;
    padding: 16px 20px;
    display: flex;
    justify-content: center;
    color: #ff907b;
    background: linear-gradient(45deg, #202020, #191919, #202020);
    font-size: 1rem;
    font-weight: 400;
    text-align: center;
    text-decoration: none;
}

.promotion-book-link.narrow { display: none; }

.not-found-page {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.not-found-page h2 {
    margin: 12px 0 0;
    color: var(--secondary-text-color);
    font-weight: 300;
}

.not-found-page p { margin: 28px 0; }

.not-found-page a {
    color: var(--yellow);
    font-weight: 400;
    text-decoration: none;
}

.not-found-page a:hover { text-decoration: underline; }

@media (prefers-color-scheme: light) {
    .promotion-book-link {
        padding: 10px 20px;
        color: #fff;
        background: linear-gradient(45deg, #d5b9fd, #9b6ce0, #d5b9fd);
        font-weight: 600;
    }

    .promotion-book-link.narrow {
        color: #fff;
        background: linear-gradient(45deg, #9b6ce0, #cfaeff);
        font-weight: 600;
    }
}

@media (prefers-color-scheme: dark) {
    .promotion { --header-inverted-background: #151515; }
}

h1 {
    margin: 0;
    padding: 10px 0;
    color: transparent;
    /* Gradient text, matching h1 on the books website. */
    background: linear-gradient(90deg, #a16cdd 0%, #5c5fee 100%);
    background-clip: text;
    -webkit-background-clip: text;
    font-family: "Alegreya", Georgia, "Times New Roman", serif;
    font-size: 3rem;
    font-weight: 400;
    -webkit-text-fill-color: transparent;
}

@media (prefers-color-scheme: dark) {
    h1 {
        background: linear-gradient(90deg, #c39efa 0%, #a1a3fc 100%);
        background-clip: text;
        -webkit-background-clip: text;
    }
}

.ai-tools-list h2 {
    margin: 42px 0 10px;
    font-size: 1.5rem;
    font-weight: 300;
}

.ai-tools-list h3 {
    margin: 26px 0 8px;
    font-size: 1.25rem;
}

.ai-tools-list h3 a {
    color: var(--body-text-color);
    text-decoration: none;
}

.ai-tools-list h3 a:hover { color: var(--yellow); }

.featured-introduction {
    max-width: 700px;
    font-size: 1.1rem;
    font-weight: 300;
    line-height: 1.5;
    color: var(--secondary-text-color);
}

.featured-list {
    max-width: 700px;
    margin: 36px 0 0;
    padding: 0;
    list-style: none;
}

.featured-mention {
    padding: 24px 0;
    border-top: 1px solid color-mix(in srgb, var(--secondary-text-color) 25%, transparent);
}

.featured-kind {
    font-size: 0.8rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--secondary-text-color);
}

.featured-mention h2 {
    margin: 6px 0 8px;
    font-size: 1.3rem;
    font-weight: 400;
    line-height: 1.3;
}

.featured-mention h2 a {
    color: var(--body-text-color);
    text-decoration: none;
}

.featured-mention h2 a:hover { color: var(--yellow); }

.featured-mention p {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 300;
    line-height: 1.5;
}

.featured-badge { margin-top: 16px; }
.featured-badge img { display: block; }

.ai-tools-introduction,
.ai-tools-list p,
.swiftfairy-content p {
    max-width: 700px;
    font-size: 1.1rem;
    font-weight: 300;
    line-height: 1.5;
}

.swiftfairy-hero {
    max-width: 820px;
    padding: 0 0 72px;
}

.swiftfairy-content .swiftfairy-eyebrow {
    margin: 0 0 14px;
    color: var(--secondary-text-color);
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.swiftfairy-hero h1 {
    max-width: 800px;
    padding: 0.04em 0 0.08em;
    font-size: clamp(2.8rem, 7vw, 4.8rem);
    line-height: 1.08;
}


.swiftfairy-content .swiftfairy-introduction {
    margin: 28px 0 0;
    font-size: 1.3rem;
    line-height: 1.6;
}


/* Three connected stages: request, local analysis, and review. */
.swiftfairy-flow {
    margin-top: 28px;
    padding: 24px;
    border: 1px solid color-mix(in srgb, var(--purple) 30%, transparent);
    border-radius: 20px;
    background: color-mix(in srgb, var(--purple) 4%, var(--background-color));
}

.swiftfairy-workflow-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 64px;
    margin-top: 0;
}

.swiftfairy-workflow-card { position: relative; min-width: 0; }
.swiftfairy-workflow-card h3 { margin: 0 0 22px; font-size: 1.15rem; font-weight: 500; line-height: 1.4; }
.swiftfairy-local-stage h3 { color: var(--purple); }
.swiftfairy-workflow-card .swiftfairy-flow-caption { margin: 20px 0 0; font-size: 0.95rem; }

@media (min-width: 851px) {
    .swiftfairy-workflow-grid { row-gap: 0; }
    .swiftfairy-workflow-card {
        display: grid;
        grid-row: span 3;
        grid-template-rows: subgrid;
    }
    .swiftfairy-workflow-card h3 { align-self: first baseline; }
}

.swiftfairy-workflow-preview {
    box-sizing: border-box;
    height: 280px;
    padding: 16px;
    border: 1px solid color-mix(in srgb, var(--purple) 30%, transparent);
    border-radius: 12px;
    background: var(--background-color);
}
.swiftfairy-scan-preview {
    background: color-mix(in srgb, var(--purple) 10%, var(--background-color));
    border-color: var(--purple);
}
.swiftfairy-workflow-preview .swiftfairy-prompt-bubble {
    margin: 0 0 18px;
    padding: 10px 12px;
    border-radius: 10px 10px 3px 10px;
    background: color-mix(in srgb, var(--purple) 20%, var(--background-color));
    font-size: 0.95rem;
    font-weight: 500;
}
.swiftfairy-workflow-preview .swiftfairy-workflow-status {
    margin: 0 0 16px;
    color: var(--secondary-text-color);
    font-size: 0.75rem;
    line-height: 1.5;
}
.swiftfairy-code-lines {
    position: relative;
    display: grid;
    gap: 3px;
    padding: 2px 0;
    overflow: hidden;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 0.7rem;
    line-height: 1.35;
    color: var(--secondary-text-color);
}
.swiftfairy-code-row { display: flex; align-items: center; gap: 5px; white-space: nowrap; min-height: 14px; }
.swiftfairy-code-indent { padding-left: 12px; }
.swiftfairy-token-keyword { width: 24px; color: color-mix(in srgb, var(--purple) 80%, var(--body-text-color)); }
.swiftfairy-syntax-string { color: color-mix(in srgb, var(--yellow) 65%, var(--body-text-color)); }
.swiftfairy-syntax-comment { opacity: 0.5; }
.swiftfairy-code-token { display: inline-block; flex-shrink: 0; height: 4px; border-radius: 2px; background: currentColor; opacity: 0.6; }
.swiftfairy-token-name { width: 30px; }
.swiftfairy-token-value { width: 23px; color: color-mix(in srgb, #71b7c8 65%, var(--body-text-color)); }
.swiftfairy-token-comment { width: 65px; }
.swiftfairy-check-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 20px; }
.swiftfairy-check-tags span { padding: 3px 7px; border-radius: 5px; font-size: 0.7rem; background: color-mix(in srgb, var(--purple) 15%, transparent); }
.swiftfairy-check-tags span:nth-child(5) { opacity: 0.8; }
.swiftfairy-check-tags span:nth-child(6) { opacity: 0.65; }
.swiftfairy-check-tags span:nth-child(7) { opacity: 0.45; }
.swiftfairy-check-tags span:nth-child(8) { opacity: 0.3; }
.swiftfairy-finding-preview {
    margin-bottom: 16px;
    padding: 10px;
    border-left: 3px solid var(--yellow);
    border-radius: 3px 8px 8px 3px;
    background: color-mix(in srgb, var(--yellow) 7%, var(--background-color));
}
.swiftfairy-finding-preview p { margin: 0 0 6px; font-size: 0.75rem; }
.swiftfairy-finding-preview .swiftfairy-finding-title { font-size: 0.9rem; font-weight: 600; }
.swiftfairy-example-tag { font-family: monospace; font-size: 0.7rem; color: var(--secondary-text-color); }
.swiftfairy-result-preview .swiftfairy-code-lines { gap: 0; font-size: 0.65rem; }
.swiftfairy-workflow-guide { display: inline-block; margin-top: 28px; }

.swiftfairy-connection {
    position: absolute;
    top: 170px;
    left: 100%;
    width: 64px;
    height: 26px;
    color: var(--purple);
    z-index: 1;
}
.swiftfairy-connection-findings { color: var(--yellow); }
.swiftfairy-connection-label { position: absolute; bottom: 34px; width: 100%; text-align: center; font-size: 0.65rem; color: var(--secondary-text-color); }
.swiftfairy-connection-line { position: absolute; top: 3px; left: 8px; width: 48px; height: 20px; overflow: visible; }

@media (prefers-reduced-motion: no-preference) {
    .swiftfairy-scan-preview .swiftfairy-code-row {
        animation: swiftfairy-code-wave 6s ease-in-out infinite;
    }
    .swiftfairy-scan-preview .swiftfairy-code-row:nth-child(2) { animation-delay: 0.24s; }
    .swiftfairy-scan-preview .swiftfairy-code-row:nth-child(3) { animation-delay: 0.48s; }
    .swiftfairy-scan-preview .swiftfairy-code-row:nth-child(4) { animation-delay: 0.72s; }
    .swiftfairy-scan-preview .swiftfairy-code-row:nth-child(5) { animation-delay: 0.96s; }
    @keyframes swiftfairy-code-wave {
        0%, 28%, 52%, 100% { opacity: 0.6; filter: brightness(1); }
        37%, 42% { opacity: 1; filter: brightness(1.45); }
    }
}
@media (max-width: 850px) {
    .swiftfairy-workflow-grid { grid-template-columns: 1fr; gap: 96px; }
    .swiftfairy-workflow-card { width: 100%; max-width: 700px; justify-self: start; }
    .swiftfairy-workflow-preview { height: auto; min-height: 210px; }
    .swiftfairy-flow {
        padding: 0;
        border: 0;
        border-radius: 0;
        background: none;
    }
    .swiftfairy-connection { top: auto; bottom: -80px; left: calc(50% - 13px); width: 26px; height: 64px; }
    .swiftfairy-connection-line { top: 50%; left: 50%; transform: translate(-50%, -50%) rotate(90deg); }
    .swiftfairy-connection-label { top: 50%; bottom: auto; left: 38px; width: max-content; transform: translateY(-50%); text-align: left; }
}

.swiftfairy-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px 20px;
    margin-top: 32px;
}

.swiftfairy-secondary-link {
    text-decoration-line: underline;
    color: var(--body-text-color);
    font-weight: 600;
    text-decoration-color: color-mix(in srgb, var(--body-text-color) 45%, transparent);
    text-underline-offset: 4px;
}

.swiftfairy-secondary-link:hover { color: var(--yellow); text-decoration-color: currentColor; }

.swiftfairy-primary-link:focus-visible,
.swiftfairy-secondary-button:focus-visible,
.swiftfairy-secondary-link:focus-visible,
.swiftfairy-release-callout a:focus-visible {
    outline: 3px solid var(--yellow);
    outline-offset: 4px;
}

.swiftfairy-scrolls {
    padding: 64px 0;
    border-top: 1px solid color-mix(in srgb, var(--secondary-text-color) 25%, transparent);
}

.swiftfairy-scrolls > h2 {
    margin: 0 0 16px;
    font-size: 1.8rem;
    font-weight: 400;
}

.swiftfairy-scrolls > p { max-width: 760px; }

.swiftfairy-process {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
    margin-top: 38px;
}

.swiftfairy-process-step h3 {
    margin: 12px 0 8px;
    font-size: 1.1rem;
}

.swiftfairy-process-step p {
    margin: 0;
    font-size: 1rem;
}

.swiftfairy-step-number {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    color: #fff;
    background: var(--purple);
    font-weight: 700 !important;
}

.swiftfairy-token-savings {
    margin-top: 42px;
    padding: 26px 30px;
    border-left: 4px solid var(--purple);
    background: color-mix(in srgb, var(--purple) 7%, var(--background-color));
}

.swiftfairy-token-savings h3 {
    margin: 0 0 8px;
    font-size: 1.2rem;
}

.swiftfairy-token-savings p {
    max-width: 760px;
    margin: 0;
}

.swiftfairy-first-scrolls {
    padding: 64px 0;
    border-top: 1px solid color-mix(in srgb, var(--secondary-text-color) 25%, transparent);
}

.swiftfairy-first-scrolls > h2 {
    margin: 0 0 16px;
    font-size: 1.8rem;
    font-weight: 400;
}

.swiftfairy-first-scrolls > p { max-width: 760px; }

.swiftfairy-scroll-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
    margin-top: 36px;
}

.swiftfairy-first-scrolls .swiftfairy-scroll-card {
    width: 100%;
    max-width: 420px;
    justify-self: center;
}

.swiftfairy-scroll {
    padding: 24px;
    border-top: 3px solid var(--purple);
    background: color-mix(in srgb, var(--purple) 5%, var(--background-color));
}

.swiftfairy-scroll h3 {
    margin: 0 0 10px;
    font-size: 1.15rem;
}

.swiftfairy-scroll p {
    margin: 0;
    font-size: 1rem;
}

.swiftfairy-flagged-issues {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px 32px;
    margin: 28px 0 0;
    padding: 0;
    list-style: none;
}

.swiftfairy-flagged-issues li {
    padding-left: 16px;
    border-left: 3px solid var(--yellow);
    font-size: 1rem;
}

.swiftfairy-value-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    margin-top: 36px;
}

.swiftfairy-value {
    box-sizing: border-box;
    width: 100%;
    max-width: 420px;
    justify-self: center;
    padding: 24px;
    border: 1px solid color-mix(in srgb, var(--purple) 30%, transparent);
    border-radius: 18px;
    background: color-mix(in srgb, var(--purple) 6%, var(--background-color));
}

.swiftfairy-value-art svg {
    display: block;
    width: 100%;
    max-width: 240px;
    height: auto;
    margin: 0 auto 20px;
}

.swiftfairy-value h3 {
    margin: 0 0 8px;
    font-size: 1.25rem;
    font-weight: 600;
}

.swiftfairy-content .swiftfairy-value p {
    margin: 0;
    font-size: 1rem;
}

.swiftfairy-value-art .art-muted { fill: color-mix(in srgb, var(--secondary-text-color) 45%, transparent); }
.swiftfairy-value-art .art-flag { fill: var(--yellow); }
.swiftfairy-value-art .art-node { fill: color-mix(in srgb, var(--purple) 30%, transparent); }
.swiftfairy-value-art .art-node-mid { fill: color-mix(in srgb, var(--purple) 55%, var(--background-color)); }
.swiftfairy-value-art .art-node-flag {
    fill: color-mix(in srgb, var(--yellow) 18%, transparent);
    stroke: var(--yellow);
    stroke-width: 1.5;
}
.swiftfairy-value-art .art-card {
    fill: var(--background-color);
    stroke: var(--yellow);
    stroke-width: 1.5;
}
.swiftfairy-value-art .art-line,
.swiftfairy-value-art .art-line-flag {
    fill: none;
    stroke: color-mix(in srgb, var(--purple) 55%, transparent);
    stroke-width: 2;
    stroke-linejoin: round;
}
.swiftfairy-value-art .art-line-flag { stroke: var(--yellow); }
.swiftfairy-value-art .art-label {
    fill: var(--secondary-text-color);
    font-size: 11px;
    font-weight: 600;
}

.swiftfairy-content .swiftfairy-flagged-issues-more {
    margin: 28px 0 0;
    font-weight: 600;
}

@media (max-width: 700px) {
    .swiftfairy-actions {
        flex-direction: column;
        align-items: center;
    }

    .swiftfairy-flagged-issues { grid-template-columns: 1fr; }
}

.swiftfairy-scroll-card,
.swiftfairy-scroll-card:hover {
    display: block;
    color: var(--body-text-color);
    text-decoration: none;
}

.swiftfairy-scroll-card:hover,
.swiftfairy-scroll-card:focus-visible {
    box-shadow: inset 0 2px 0 var(--purple);
}

.swiftfairy-scroll-card h3 {
    color: var(--yellow);
}

.swiftfairy-scroll-card:focus-visible {
    outline: 3px solid var(--purple);
    outline-offset: 5px;
}

.swiftfairy-section {
    padding: 64px 0;
    border-top: 1px solid color-mix(in srgb, var(--secondary-text-color) 25%, transparent);
}

.swiftfairy-section > h2,
.swiftfairy-detail-grid h2,
.swiftfairy-release-callout h2 {
    margin: 0 0 16px;
    font-size: 1.8rem;
    font-weight: 400;
}

.swiftfairy-section > p { max-width: 760px; }

.swiftfairy-guide-content {
    max-width: 820px;
}

.swiftfairy-guide-content .swiftfairy-hero {
    padding: 0 0 40px;
}

.swiftfairy-guide-content [id] {
    scroll-margin-top: 130px;
}

.swiftfairy-guide-content .swiftfairy-introduction {
    max-width: 740px;
    margin-top: 0;
}

.swiftfairy-guide-content .swiftfairy-section {
    padding: 38px 0;
}

.swiftfairy-guide-content .swiftfairy-section h3 {
    margin: 28px 0 8px;
}

.swiftfairy-guide-content .swiftfairy-section h3 + p {
    margin-top: 0;
}

.swiftfairy-ui-path {
    display: inline;
    padding: 0.1em 0.35em;
    border-radius: 4px;
    background: color-mix(in srgb, var(--purple) 10%, var(--background-color));
    font-size: 0.95em;
    font-weight: 500;
    white-space: nowrap;
}

.swiftfairy-inline-code {
    padding: 0.08em 0.28em;
    border-radius: 4px;
    background: var(--code-background);
    font-family: 'Roboto Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: 0.88em;
    overflow-wrap: anywhere;
}

.swiftfairy-instruction-example {
    max-width: 760px;
    margin: 20px 0;
    padding: 2px 0 2px 20px;
    border-left: 2px solid var(--purple);
}

.swiftfairy-instruction-example p {
    margin: 0;
}

.swiftfairy-agent-status {
    margin: 30px 0;
}

.swiftfairy-agent-status a {
    font-size: 0.95rem;
}

.swiftfairy-guide-nav {
    padding: 0 0 30px;
}

.swiftfairy-guide-nav ul {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px 30px;
    margin: 0;
    padding-left: 18px;
}

.swiftfairy-agent-nav ul {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    list-style: none;
    padding-left: 0;
}

.swiftfairy-agent-nav a {
    display: inline-flex;
    min-height: 44px;
    align-items: center;
    gap: 12px;
}

.swiftfairy-agent-icon {
    display: grid;
    flex: none;
    place-items: center;
    width: 44px;
    height: 44px;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.16)) drop-shadow(0 4px 8px rgba(0, 0, 0, 0.1));
}

.swiftfairy-agent-icon img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* A macOS app icon fills about 80% of its frame. */
.swiftfairy-agent-icon-bleed img,
.swiftfairy-agent-icon-glyph img {
    width: 80%;
    height: 80%;
    border-radius: 22.5%;
}

.swiftfairy-agent-icon-glyph img {
    box-sizing: border-box;
    padding: 15%;
    background: #fff;
}

.swiftfairy-agent-monogram {
    width: 35px;
    height: 35px;
    margin: 4.5px;
    border-radius: 22.5%;
    background: var(--code-background);
    color: var(--secondary-text-color);
    font-size: 1.1rem;
    font-weight: 500;
    filter: none;
}

.swiftfairy-content .swiftfairy-agent-heading {
    display: flex;
    align-items: center;
    gap: 14px;
}

.swiftfairy-agent-table {
    width: 100%;
    margin: 24px 0;
    border-collapse: collapse;
    font-size: 0.92rem;
}

.swiftfairy-agent-table th,
.swiftfairy-agent-table td {
    padding: 10px 12px 10px 0;
    border-bottom: 1px solid color-mix(in srgb, var(--secondary-text-color) 20%, transparent);
    text-align: left;
    vertical-align: middle;
}

.swiftfairy-agent-table thead th {
    color: var(--secondary-text-color);
    font-size: 0.8rem;
    font-weight: 500;
}

.swiftfairy-agent-table tbody th { font-weight: 500; white-space: nowrap; }

.swiftfairy-agent-table td:nth-child(2) { overflow-wrap: anywhere; }

.swiftfairy-agent-table tbody tr { scroll-margin-top: 140px; }

.swiftfairy-agent-table-name {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.swiftfairy-agent-table .swiftfairy-agent-icon {
    width: 32px;
    height: 32px;
}

@media (max-width: 700px) {
    .swiftfairy-agent-table thead { display: none; }
    .swiftfairy-agent-table tr { display: block; padding: 12px 0; border-bottom: 1px solid color-mix(in srgb, var(--secondary-text-color) 20%, transparent); }
    .swiftfairy-agent-table th,
    .swiftfairy-agent-table td { display: block; padding: 2px 0; border: 0; }
}

.swiftfairy-agent-heading .swiftfairy-agent-icon {
    width: 48px;
    height: 48px;
}

.swiftfairy-agent-cloud {
    --scale: 1;
    position: relative;
    max-width: 560px;
    height: 380px;
    margin: 24px auto 0;
}

.swiftfairy-agent-cloud-item {
    position: absolute;
    left: var(--x);
    top: var(--y);
    display: grid;
    place-items: center;
    width: calc(var(--s) * var(--scale) * 1px);
    height: calc(var(--s) * var(--scale) * 1px);
    transform: translate(-50%, -50%) rotate(var(--r));
    transition: transform 0.2s ease;
}

.swiftfairy-agent-cloud-item:hover,
.swiftfairy-agent-cloud-item:focus-visible {
    transform: translate(-50%, -50%) rotate(0deg) scale(1.1);
}

.swiftfairy-agent-cloud .swiftfairy-agent-icon {
    width: 100%;
    height: 100%;
    filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.16)) drop-shadow(0 6px 10px rgba(0, 0, 0, 0.12));
}

.swiftfairy-agent-hub {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    color: var(--body-text-color);
    text-decoration: none;
    white-space: nowrap;
}

.swiftfairy-agent-hub-title { font-size: 1.05rem; font-weight: 500; }

.swiftfairy-agent-hub .swiftfairy-agent-hub-link { margin-top: 8px; font-size: 0.9rem; }

.swiftfairy-agent-hub-detail {
    color: var(--secondary-text-color);
    font-family: 'Roboto Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: 0.8rem;
}

@media (prefers-color-scheme: dark) {
}

@media (max-width: 700px) {
    .swiftfairy-agent-cloud { --scale: 0.62; height: 350px; }
    .swiftfairy-agent-hub-title { font-size: 0.9rem; }
    .swiftfairy-agent-hub-detail { font-size: 0.7rem; }
    .swiftfairy-agent-hub .swiftfairy-agent-hub-link { margin-top: 4px; font-size: 0.75rem; }
}


@media (max-width: 700px) {
    .swiftfairy-guide-content .swiftfairy-hero { padding-bottom: 26px; }

    .swiftfairy-guide-content .swiftfairy-section { padding: 32px 0; }

    .swiftfairy-guide-nav ul,
    .swiftfairy-agent-nav ul {
        grid-template-columns: 1fr;
    }
}

.swiftfairy-feature-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    margin-top: 36px;
}

@media (min-width: 701px) {
    .swiftfairy-feature-grid:has(> :nth-child(4):last-child) {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.swiftfairy-feature {
    padding: 24px;
    border: 1px solid color-mix(in srgb, var(--purple) 30%, transparent);
    border-radius: 18px;
    background: color-mix(in srgb, var(--purple) 6%, var(--background-color));
}

.swiftfairy-feature h3 {
    margin: 0 0 10px;
    font-size: 1.15rem;
    font-weight: 600;
}

.swiftfairy-feature p {
    margin: 0;
    font-size: 1rem;
}

.swiftfairy-knowledge .swiftfairy-feature {
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 420px;
    justify-self: center;
    color: var(--body-text-color);
    text-decoration: none;
}

.swiftfairy-knowledge .swiftfairy-feature:hover {
    border-color: var(--purple);
}

.swiftfairy-knowledge .swiftfairy-feature h3 {
    color: var(--yellow);
}

.swiftfairy-knowledge .swiftfairy-feature:focus-visible {
    outline: 3px solid var(--purple);
    outline-offset: 5px;
}

.swiftfairy-detail-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 56px;
    padding: 64px 0;
    border-top: 1px solid color-mix(in srgb, var(--secondary-text-color) 25%, transparent);
}

.swiftfairy-detail-grid p { margin-bottom: 0; }

.swiftfairy-licenses {
    padding: 64px 0;
    border-top: 1px solid color-mix(in srgb, var(--secondary-text-color) 25%, transparent);
}

.swiftfairy-licenses > h2 {
    margin: 0 0 16px;
    font-size: 1.8rem;
    font-weight: 400;
}

.swiftfairy-licenses > p { max-width: 760px; }

.swiftfairy-license-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    justify-items: center;
    gap: 28px;
    margin-top: 34px;
}

.swiftfairy-license-option {
    width: 100%;
    max-width: 420px;
    padding: 24px;
    border: 1px solid color-mix(in srgb, var(--purple) 20%, transparent);
    border-radius: 14px;
    background: linear-gradient(
        135deg,
        color-mix(in srgb, var(--purple) 5%, var(--background-color)),
        color-mix(in srgb, var(--yellow) 3%, var(--background-color))
    );
    text-align: center;
}

.swiftfairy-licenses .swiftfairy-actions {
    justify-content: center;
}

.swiftfairy-license-option h3 {
    margin: 0 0 8px;
    color: var(--purple);
    font-size: 1.1rem;
}

.swiftfairy-license-option p {
    margin: 0;
    font-size: 1rem;
}

.swiftfairy-license-duration { display: block; white-space: nowrap; }

.swiftfairy-release-callout {
    margin-top: 8px;
    padding: 36px;
    border-radius: 22px;
    background: color-mix(in srgb, var(--yellow) 10%, var(--background-color));
}

.swiftfairy-release-callout p { max-width: 720px; }

.swiftfairy-release-callout > a {
    color: var(--yellow);
    font-weight: 600;
    text-decoration: none;
}

.swiftfairy-release-callout > a:hover { text-decoration: underline; }

@media (max-width: 700px) {
    .swiftfairy-feature-grid,
    .swiftfairy-detail-grid,
    .swiftfairy-process,
    .swiftfairy-scroll-grid,
    .swiftfairy-license-grid,
    .swiftfairy-value-grid { grid-template-columns: 1fr; }

    .swiftfairy-detail-grid { gap: 36px; }

    .swiftfairy-release-callout { padding: 26px; }
}

.scroll-purchase-back {
    display: inline-block;
    padding-top: 12px;
    margin-bottom: 28px;
    color: var(--secondary-text-color);
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
}

.scroll-purchase-back:hover { color: var(--yellow); }

.scroll-purchase-back:focus-visible {
    outline: 3px solid var(--yellow);
    outline-offset: 4px;
}

/* Title, paragraphs and trial callout share the values of the SwiftFairy page
   (swiftfairy-product-page.css). */
.scroll-purchase-page h1 {
    padding: 10px 0;
    font-size: 3rem;
    line-height: normal;
}

.scroll-purchase-introduction {
    margin: 20px 0 0;
    font-size: 1.1rem;
    font-weight: 300;
    line-height: 1.5rem;
}

.scroll-purchase-trial {
    margin-top: 24px;
    padding: 12px 16px;
    border-left: 3px solid var(--purple);
    background: color-mix(in srgb, var(--purple) 7%, transparent);
    font-size: 1.1rem;
    line-height: 1.5rem;
}

.scroll-purchase-trial strong {
    font-weight: 600;
}

.scroll-purchase-trial p {
    margin: 6px 0 0;
    font-size: 1.1rem;
    font-weight: 300;
    line-height: 1.5rem;
}

.scroll-purchase-volume-link {
    display: inline-block;
    margin: 8px 0;
    color: var(--yellow);
    font-size: 0.9rem;
    font-weight: 600;
    line-height: 1.5;
    text-decoration: none;
    text-underline-offset: 3px;
}
.scroll-purchase-volume-link:hover { text-decoration: underline; }
.scroll-purchase-volume-link:focus-visible {
    outline: 2px solid var(--purple);
    outline-offset: 4px;
    border-radius: 2px;
}

.scroll-purchase-section {
    display: grid;
    grid-template-columns: 185px minmax(0, 1fr);
    gap: 36px;
    margin-top: 54px;
    padding-top: 42px;
    border-top: 1px solid color-mix(in srgb, var(--secondary-text-color) 24%, transparent);
}

.scroll-purchase-group-heading h2 {
    margin: 5px 0 10px;
    font-size: 1.65rem;
    font-weight: 500;
}

.scroll-purchase-group-heading > p:last-child {
    margin: 0;
    color: var(--secondary-text-color);
    font-size: 0.93rem;
    font-weight: 300;
    line-height: 1.5;
}

.scroll-purchase-kicker {
    margin: 0;
    color: var(--secondary-text-color);
    font-size: 0.78rem;
    font-weight: 750;
    letter-spacing: 0.09em;
    text-transform: uppercase;
}

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

.scroll-purchase-product {
    position: relative;
    overflow: hidden;
    border: 1px solid color-mix(in srgb, var(--secondary-text-color) 20%, transparent);
    border-radius: 14px;
    background: var(--background-color);
    transition: border-color 0.15s ease, background-color 0.15s ease, box-shadow 0.15s ease;
}

.scroll-purchase-product-label {
    display: flex;
    min-height: 100%;
    box-sizing: border-box;
    flex-direction: column;
    gap: 7px;
    padding: 18px 58px 42px 18px;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

.scroll-purchase-individual-price {
    display: none;
    position: absolute;
    right: 14px;
    bottom: 14px;
    color: var(--purple);
    font-size: 0.85rem;
    font-weight: 600;
    line-height: 1.4;
    white-space: nowrap;
}

.scroll-purchase-check-box {
    position: absolute;
    top: 14px;
    right: 14px;
    box-sizing: border-box;
    width: 28px;
    height: 28px;
    border: 1.5px solid var(--yellow);
    border-radius: 7px;
    background-color: var(--background-color);
}

.scroll-purchase-check-box::after {
    position: absolute;
    inset: 3px;
    border-radius: 4px;
    color: #151515;
    font-size: 0.95rem;
    font-weight: 700;
    line-height: 1;
}

.scroll-purchase-product:has(.scroll-purchase-state-input:checked) .scroll-purchase-check-box::after {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--yellow);
    content: "\2713";
}

.scroll-purchase-product h3,
.scroll-purchase-product p {
    margin: 0;
}

.scroll-purchase-product h3 { font-size: 1.05rem; }

.scroll-purchase-product p {
    color: var(--secondary-text-color);
    font-size: 0.88rem;
    line-height: 1.4;
}

.scroll-purchase-product-badge {
    align-self: flex-start;
    margin-bottom: 2px;
    padding: 3px 8px;
    border-radius: 999px;
    background: color-mix(in srgb, var(--purple) 14%, transparent);
    color: var(--purple);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.scroll-purchase-product:hover,
.scroll-purchase-product:focus-within {
    border-color: color-mix(in srgb, var(--purple) 55%, transparent);
}

.scroll-purchase-product:has(.scroll-purchase-state-input:checked) {
    border-color: var(--purple);
    background: color-mix(in srgb, var(--purple) 7%, var(--background-color));
    box-shadow: 0 0 0 1px color-mix(in srgb, var(--purple) 25%, transparent);
}

.scroll-purchase-option-list {
    border-top: 1px solid color-mix(in srgb, var(--secondary-text-color) 18%, transparent);
}

.scroll-purchase-option {
    position: relative;
    border-bottom: 1px solid color-mix(in srgb, var(--secondary-text-color) 18%, transparent);
    transition: border-color 150ms ease, background-color 150ms ease;
}

.scroll-purchase-option:hover,
.scroll-purchase-option:focus-within {
    border-color: color-mix(in srgb, var(--purple) 55%, transparent);
}

.scroll-purchase-state-input {
    position: absolute;
    inset-block-start: 0;
    inset-inline-start: 0;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

.scroll-purchase-option-label {
    display: grid;
    grid-template-columns: minmax(150px, 0.8fr) minmax(220px, 1.6fr);
    gap: 14px;
    align-items: center;
    width: 100%;
    padding: 21px 4px;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

.scroll-purchase-option:has(.scroll-purchase-state-input:checked) {
    border-color: color-mix(in srgb, var(--purple) 62%, transparent);
    background: color-mix(in srgb, var(--purple) 7%, var(--background-color));
}

.scroll-purchase-option:has(.scroll-purchase-state-input:checked)::before {
    position: absolute;
    top: 12px;
    bottom: 12px;
    left: -12px;
    width: 4px;
    border-radius: 999px;
    background: var(--purple);
    content: "";
}

.scroll-purchase-option-title {
    display: flex;
    gap: 10px;
    align-items: center;
}

.scroll-purchase-option-title h3 {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 650;
}

.scroll-purchase-duration {
    margin: 0;
    color: var(--purple);
    font-size: 0.95rem;
    font-weight: 650;
}

.scroll-purchase-detail {
    margin: 0;
    color: var(--secondary-text-color);
    font-size: 0.9rem;
    font-weight: 300;
    line-height: 1.45;
}

.scroll-purchase-results {
    --purchase-bar-background: radial-gradient(circle at 8% 20%, color-mix(in srgb, var(--yellow) 10%, transparent), transparent 34%), radial-gradient(circle at 78% 18%, color-mix(in srgb, var(--purple) 9%, transparent), transparent 32%), var(--background-color);
    position: fixed;
    z-index: 20;
    right: 0;
    bottom: 0;
    left: 0;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    width: min(900px, calc(100% - 40px));
    margin: 0 auto;
    pointer-events: none;
}

.scroll-purchase-billing-inputs {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.scroll-purchase-result {
    pointer-events: auto;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    align-items: center;
    gap: 24px;
    width: 100%;
    padding: 18px 20px calc(18px + env(safe-area-inset-bottom));
    border: 1px solid color-mix(in srgb, var(--purple) 45%, transparent);
    border-bottom: 0;
    border-radius: 12px 12px 0 0;
    background: var(--purchase-bar-background);
    box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.1);
}

.scroll-purchase-result-text {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.scroll-purchase-result-controls {
    display: contents;
}

.scroll-purchase-result-action {
    display: flex;
    flex-direction: column;
    gap: 5px;
    align-items: stretch;
    width: max-content;
    min-width: 170px;
    justify-self: end;
}

.scroll-purchase-result-action form { width: 100%; }

.scroll-purchase-result-access-term {
    color: var(--secondary-text-color);
    font-size: 0.78rem;
    font-weight: 500;
    line-height: 1.3;
    text-align: center;
}

.scroll-purchase-billing-toggle {
    position: absolute;
    z-index: 2;
    top: 50%;
    left: 50%;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    width: 250px;
    padding: 3px;
    overflow: hidden;
    border: 1px solid color-mix(in srgb, var(--secondary-text-color) 30%, transparent);
    border-radius: 11px;
    background: color-mix(in srgb, var(--secondary-text-color) 7%, transparent);
    pointer-events: auto;
    transform: translate(-50%, -50%);
}

.scroll-purchase-billing-toggle::before {
    position: absolute;
    z-index: 0;
    top: 3px;
    bottom: 3px;
    left: 3px;
    width: calc((100% - 6px) / 2);
    border-radius: 8px;
    background: var(--background-color);
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.14);
    content: "";
    transition: transform 0.22s ease-out;
}

.scroll-purchase-page:has(#scroll-purchase-billing-one-time:checked) .scroll-purchase-billing-toggle::before {
    transform: translateX(0);
}

.scroll-purchase-page:has(#scroll-purchase-billing-subscription:checked) .scroll-purchase-billing-toggle::before {
    transform: translateX(100%);
}

.scroll-purchase-page:has(#scroll-purchase-duration-lifetime:checked) .scroll-purchase-billing-toggle {
    display: none;
}

.scroll-purchase-billing-choice {
    position: relative;
    z-index: 1;
    padding: 8px 10px;
    border-radius: 8px;
    color: var(--secondary-text-color);
    font-size: 0.8rem;
    font-weight: 650;
    line-height: 1.2;
    text-align: center;
    white-space: nowrap;
    cursor: pointer;
}

.scroll-purchase-page:has(#scroll-purchase-billing-one-time:checked) .scroll-purchase-billing-choice.one-time,
.scroll-purchase-page:has(#scroll-purchase-billing-subscription:checked) .scroll-purchase-billing-choice.subscription {
    color: var(--body-text-color);
}

.scroll-purchase-page:has(#scroll-purchase-billing-one-time:focus-visible) .scroll-purchase-billing-choice.one-time,
.scroll-purchase-page:has(#scroll-purchase-billing-subscription:focus-visible) .scroll-purchase-billing-choice.subscription {
    outline: 3px solid var(--purple);
    outline-offset: 2px;
}

.scroll-purchase-lifetime-billing {
    width: 250px;
    color: var(--secondary-text-color);
    font-size: 0.85rem;
    font-weight: 600;
    text-align: center;
    white-space: nowrap;
}

.scroll-purchase-billing-spacer {
    width: 250px;
    height: 38px;
}

.scroll-purchase-result h2 {
    margin: 0;
    font-size: 1.25rem;
}

.scroll-purchase-result p {
    margin: 0;
    color: var(--secondary-text-color);
    font-size: 0.9rem;
    font-weight: 300;
}

.scroll-purchase-result-link {
    box-sizing: border-box;
    display: block;
    width: 100%;
    padding: 10px 16px;
    border: 0;
    border-radius: 10px;
    color: #151515;
    background: var(--button-color);
    cursor: pointer;
    font-family: inherit;
    font-size: 1rem;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    text-transform: uppercase;
    white-space: nowrap;
}

.scroll-purchase-result-link:hover { filter: brightness(1.05); }

@media (prefers-color-scheme: light) {
    .scroll-purchase-result-link {
        padding: 10px 18px;
        font-weight: 500;
    }
}

.scroll-purchase-owner-link {
    display: inline-flex;
    align-items: center;
    align-self: flex-start;
    min-height: 24px;
    padding: 0;
    border: 0;
    color: var(--yellow);
    background: none;
    cursor: pointer;
    font-family: inherit;
    font-size: 0.85rem;
    font-weight: 600;
    text-underline-offset: 3px;
}

.scroll-purchase-owner-link:hover { text-decoration: underline; }

.scroll-purchase-owner-link:focus-visible {
    outline: 2px solid var(--purple);
    outline-offset: 4px;
    border-radius: 2px;
}

.scroll-purchase-email-dialog {
    width: min(460px, calc(100% - 32px));
    padding: 0;
    border: 1px solid color-mix(in srgb, var(--purple) 45%, transparent);
    border-radius: 16px;
    color: var(--body-text-color);
    background: var(--background-color);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.3);
}

.scroll-purchase-email-dialog::backdrop { background: rgba(0, 0, 0, 0.5); }

.scroll-purchase-email-dialog-content {
    position: relative;
    display: grid;
    gap: 14px;
    padding: 28px;
}

.scroll-purchase-email-form { gap: 10px; }

.scroll-purchase-email-dialog h2 {
    margin: 0 44px 0 0;
    font-size: 1.4rem;
    line-height: 1.25;
}

.scroll-purchase-email-dialog p {
    margin: 0;
    color: var(--secondary-text-color);
    font-size: 0.95rem;
    line-height: 1.5;
}

.scroll-purchase-email-offer {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 2px 12px;
    margin-bottom: 8px;
    padding: 12px 14px;
    border-radius: 10px;
    color: var(--body-text-color);
    background: color-mix(in srgb, var(--purple) 10%, transparent);
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.4;
    white-space: nowrap;
}

.scroll-purchase-email-offer-title {
    grid-column: 1 / -1;
    overflow: hidden;
    text-overflow: ellipsis;
}

.scroll-purchase-email-offer > :nth-child(2) {
    grid-row: 2;
    grid-column: 2;
}

.scroll-purchase-email-offer-was { margin-left: 0.3em; }

.scroll-purchase-email-offer-was,
.scroll-purchase-email-offer-detail {
    color: var(--secondary-text-color);
    font-weight: 400;
}

.scroll-purchase-email-offer-detail {
    grid-row: 2;
    grid-column: 1;
    align-self: center;
    font-size: 0.85rem;
}

.scroll-purchase-email-form label {
    font-size: 0.9rem;
    font-weight: 600;
}

.scroll-purchase-email-form input[type="email"] {
    box-sizing: border-box;
    width: 100%;
    padding: 12px 14px;
    border: 1px solid color-mix(in srgb, var(--secondary-text-color) 40%, transparent);
    border-radius: 10px;
    color: var(--body-text-color);
    background: var(--background-color);
    font-family: inherit;
    font-size: 1rem;
}

.scroll-purchase-email-form input[type="email"]:focus-visible {
    outline: 3px solid var(--purple);
    outline-offset: 1px;
}

.scroll-purchase-notice { display: none; }

.scroll-purchase-notice:target {
    position: fixed;
    /* Above the fixed site header. */
    z-index: 200;
    inset: 0;
    display: grid;
    place-items: center;
}

.scroll-purchase-notice-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
}

.scroll-purchase-email-dismiss {
    display: grid;
    place-items: center;
    position: absolute;
    top: 14px;
    right: 14px;
    width: 36px;
    height: 36px;
    padding: 0;
    border: 2px solid var(--purple);
    border-radius: 10px;
    color: var(--secondary-text-color);
    background: transparent;
    cursor: pointer;
}

.scroll-purchase-email-dismiss:hover { color: var(--body-text-color); }

.scroll-purchase-email-dismiss:focus-visible {
    outline: 2px solid var(--purple);
    outline-offset: 2px;
}

.scroll-purchase-result-link:focus-visible {
    outline: 3px solid var(--purple);
    outline-offset: 3px;
}

.purchase-complete-page {
    min-height: 55vh;
    padding-top: 0;
}

.purchase-complete-page h1 {
    margin: 0;
    padding: 10px 0;
    padding: 10px 0;
    color: var(--purple);
    background: none;
    font-size: 2.5rem;
    -webkit-text-fill-color: currentColor;
}

.purchase-complete-page h2 {
    margin: 40px 0 10px;
    color: var(--blue);
    font-size: 1.6rem;
    font-weight: 400;
}

.purchase-complete-page .purchase-thank-you {
    max-width: 700px;
    font-size: 1.1rem;
    font-weight: 300;
    line-height: 1.5;
}

.purchase-complete-page .request-access {
    display: block;
    margin-top: 5vh;
    padding-top: 16px;
    font-size: 0.9rem;
    font-weight: 300;
    line-height: 1.4;
}

.purchase-complete-page .request-access a {
    color: var(--yellow);
    font-weight: 400;
    text-decoration: none;
}

.purchase-complete-page .request-access a:hover { text-decoration: underline; }

@media (prefers-color-scheme: dark) {
    .scroll-purchase-result { box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.34); }
}

@media (max-width: 700px) {
    .purchase-complete-page {
        padding: 0 20px 38px;
    }

    .purchase-complete-page h1 {
        font-size: 2rem;
        line-height: 1.2;
    }

    .purchase-complete-page h2 {
        margin-top: 30px;
        font-size: 1.4rem;
    }

    .scroll-purchase-page { padding: 0 20px 258px; }

    .scroll-purchase-product-list { grid-template-columns: 1fr; }

    .scroll-purchase-back { margin-bottom: 26px; }

    .scroll-purchase-page h1 {
        font-size: 2.3rem;
        line-height: 2.4rem;
    }

    .scroll-purchase-introduction {
        margin-top: 16px;
        font-size: 1rem;
        line-height: 1.4rem;
    }

    .scroll-purchase-trial,
    .scroll-purchase-trial p {
        font-size: 1rem;
        line-height: 1.4rem;
    }

    .scroll-purchase-section {
        grid-template-columns: 1fr;
        gap: 24px;
        margin-top: 44px;
        padding-top: 32px;
    }

    .scroll-purchase-group-heading { max-width: 520px; }

    .scroll-purchase-option {
        padding: 0;
    }

    .scroll-purchase-option-label {
        grid-template-columns: 1fr;
        gap: 6px 14px;
        padding: 18px 3px;
    }

    .scroll-purchase-option-title { grid-column: 1; }

    .scroll-purchase-detail { grid-column: 1 / -1; }

    .scroll-purchase-results { width: 100%; }

    .scroll-purchase-result {
        grid-template-columns: 1fr;
        gap: 14px;
        padding: 16px 16px calc(16px + env(safe-area-inset-bottom));
        border-right: 0;
        border-left: 0;
        border-radius: 0;
        text-align: center;
    }

    .scroll-purchase-billing-choice { padding: 9px 10px; }

    .scroll-purchase-billing-toggle {
        top: auto;
        right: 16px;
        bottom: calc(93px + env(safe-area-inset-bottom));
        left: 16px;
        width: auto;
        margin: 0 auto;
        transform: none;
    }

    .scroll-purchase-billing-spacer,
    .scroll-purchase-lifetime-billing {
        width: 100%;
        max-width: 360px;
        justify-self: center;
    }

    .scroll-purchase-billing-spacer { height: 41px; }

    .scroll-purchase-result-action {
        width: 100%;
        min-width: 0;
        justify-self: stretch;
    }

    .scroll-purchase-result-link { width: 100%; }

    .scroll-purchase-owner-link { align-self: center; }

    .scroll-purchase-email-dialog {
        width: 100%;
        max-width: 100%;
        border-right: 0;
        border-left: 0;
        border-radius: 0;
    }

    .scroll-purchase-email-dialog-content { padding: 24px 20px; }

}

@media (max-width: 420px) {
    .scroll-purchase-page { padding-bottom: 248px; }

    .scroll-purchase-section {
        gap: 20px;
        margin-top: 38px;
        padding-top: 28px;
    }

    .scroll-purchase-option-label {
        gap: 5px 10px;
        padding-block: 16px;
    }

    .scroll-purchase-option-title h3 { font-size: 1rem; }

    .scroll-purchase-result { gap: 11px; }

    .scroll-purchase-result h2 { font-size: 1.12rem; }

    .scroll-purchase-result-link {
        padding: 10px 20px;
    }

}

.releases-introduction,
.releases-empty {
    max-width: 700px;
    font-size: 1.1rem;
    font-weight: 300;
    line-height: 1.5;
}

.releases-introduction a,
.release-download a {
    color: var(--yellow);
    font-weight: 400;
    text-decoration: none;
}

.releases-introduction a:hover,
.release-download a:hover { text-decoration: underline; }

.release-list { margin-top: 42px; }

.app-release {
    padding: 0 0 40px;
    scroll-margin-top: 130px;
}

.app-release + .app-release {
    padding-top: 36px;
    border-top: 1px solid color-mix(in srgb, var(--secondary-text-color) 30%, transparent);
}

.app-release h2 {
    margin: 0 0 6px;
    font-size: 1.6rem;
    font-weight: 400;
}

.app-release time,
.release-requirements {
    color: var(--secondary-text-color);
    font-size: 0.9rem;
    font-weight: 300;
}

.release-summary,
.release-notes {
    max-width: 760px;
    line-height: 1.6;
}

.release-summary { font-size: 1.1rem; }

.support-content {
    max-width: 900px;
}

.support-page h1,
.request-access-page h1 {
    margin: 0;
    padding: 10px 0;
    padding: 10px 0;
    color: var(--purple);
    background: none;
    font-size: 2.5rem;
    -webkit-text-fill-color: currentColor;
}

.support-options {
    margin-top: 36px;
}

.support-option {
    margin: 0 0 30px;
}

.support-content .support-option h2 {
    margin: 0 0 6px;
    padding: 0;
}

.support-content .support-option h2 a {
    color: var(--body-text-color);
    text-decoration: none;
}

.support-content .support-option h2 a:hover { color: var(--yellow); }

.support-option p {
    margin: 0;
    font-size: 1rem;
    font-weight: 300;
    line-height: 1.5;
}

.assign-license-page h1 {
    margin: 0;
    padding: 10px 0;
    padding: 10px 0;
    color: var(--purple);
    background: none;
    font-size: 2.5rem;
    -webkit-text-fill-color: currentColor;
}

.assignment-content h2 {
    padding: 20px 0 0;
    font-size: 1.5rem;
    font-weight: 300;
}

.assignment-introduction {
    max-width: 700px;
    font-size: 1.1rem;
    font-weight: 300;
    line-height: 1.5;
}

.assignment-field { padding: 14px 0; }

.assignment-field label {
    display: flex;
    flex-direction: column;
    gap: 10px;
    font-size: 1.1rem;
    font-weight: 300;
}

.assignment-field input {
    width: 40%;
    padding: 10px;
    border: 1px solid var(--secondary-text-color);
    border-radius: 10px;
    color: var(--body-text-color);
    background: var(--background-color);
    font-size: 1rem;
    font-weight: 300;
}

.assignment-field input:focus-visible {
    border-color: var(--body-text-color);
    outline: 3px solid var(--purple);
    outline-offset: 2px;
}

.assignment-field .input-hint {
    margin: 0;
    font-size: 0.9rem;
    font-weight: 300;
    line-height: 1.1rem;
}

.assignment-status {
    width: 40%;
    padding: 6px 0;
    display: flex;
    justify-content: center;
    color: var(--secondary-text-color);
    font-size: 0.9rem;
    font-weight: 300;
}

.assignment-status span { display: none; }
.assignment-status span:target { display: block; }
.assignment-status .success { color: #297a42; }
.assignment-status .error { color: #b33939; }

.assignment-button { padding: 10px 0 20px; }

.assignment-button button {
    padding: 8px 30px;
    border: 0;
    border-radius: 10px;
    color: #151515;
    background: var(--yellow);
    font-size: 1rem;
    font-weight: 400;
    text-transform: uppercase;
    cursor: pointer;
}

.assignment-button button:focus-visible {
    outline: 3px solid var(--purple);
    outline-offset: 3px;
}

.assignment-email-usage,
.assignment-support {
    width: 70%;
    font-size: 1rem;
    font-weight: 300;
    line-height: 1.5rem;
}

.assignment-support { margin: 0; }

.assignment-support a {
    color: var(--yellow);
    font-weight: 400;
    text-decoration: none;
}

.assignment-support a:hover { text-decoration: underline; }

.support-content h2 {
    margin: 40px 0 10px;
    font-size: 1.5rem;
    font-weight: 300;
}

.support-callout,
.support-contact,
.support-privacy {
    line-height: 1.6;
}

.support-callout {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 300;
}

.license-recovery-form {
    margin: 30px 0 10px;
    padding: 6px 0;
    display: flex;
}

.license-recovery-form input[type="email"] {
    width: 40%;
    margin-right: 20px;
    padding: 10px;
    border: 1px solid var(--secondary-text-color);
    border-radius: 10px;
    color: var(--body-text-color);
    background: var(--background-color);
    font-size: 1rem;
    font-weight: 300;
}

.license-recovery-form input[type="email"]:focus-visible {
    border-color: var(--body-text-color);
    outline: 3px solid var(--purple);
    outline-offset: 2px;
}

.license-recovery-form button {
    padding: 10px 20px;
    border: 0;
    border-radius: 10px;
    color: #151515;
    background: var(--yellow);
    font-size: 0.9rem;
    font-weight: 400;
    text-transform: uppercase;
    cursor: pointer;
}

.license-recovery-form button:focus-visible {
    outline: 3px solid var(--purple);
    outline-offset: 3px;
}

.license-recovery-status {
    width: 40%;
    min-height: 1.5rem;
    display: flex;
    justify-content: center;
    color: var(--secondary-text-color);
    font-size: 0.9rem;
    font-weight: 300;
    line-height: 1.5;
}

.license-recovery-status p { display: none; }
.license-recovery-status p:target { display: block; }

.license-recovery-status .success { color: #297a42; }
.license-recovery-status .error { color: #b33939; }

@media (prefers-color-scheme: dark) {
    .license-recovery-status .success { color: #7fd398; }
    .license-recovery-status .error { color: #ff9a9a; }
    .assignment-status .success { color: #7fd398; }
    .assignment-status .error { color: #ff9a9a; }
}

.license-recovery-status a,
.support-contact a {
    color: var(--yellow);
    font-weight: 500;
    text-decoration: none;
}

.license-recovery-status a:hover,
.support-contact a:hover { text-decoration: underline; }

.support-contact {
    margin: 30px 0 0;
}

.support-privacy {
    max-width: 620px;
    color: var(--secondary-text-color);
    font-size: 0.9rem;
    font-weight: 300;
}

footer {
    padding: 26px 0 22px;
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 18px 30px;
    color: var(--secondary-text-color);
}

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

.footer-links a {
    color: var(--secondary-text-color);
    font-size: 1rem;
    font-weight: 300;
    text-decoration: none;
}

.footer-links a:hover { color: var(--yellow); }

.footer-links svg {
    display: block;
    width: 20px;
    height: 20px;
    fill: currentColor;
}

.footer-copyright {
    margin: 0;
    font-size: 0.8rem;
    font-weight: 300;
    line-height: 1.4;
    opacity: 0.7;
}

@media screen and (max-width: 700px) {
    .tools-page,
    .ai-tools-page,
    .swiftfairy-page,
    .app-releases-page { padding: 0 20px 60px; }
    .support-page,
    .request-access-page,
    .assign-license-page { padding: 0 20px; }
    h1 { font-size: 2.4rem; }

    .support-page h1,
    .request-access-page h1 {
        font-size: 2rem;
        line-height: 2.4rem;
    }

    .assign-license-page h1 {
        font-size: 2rem;
        line-height: 2.4rem;
    }

    .assignment-content h2 {
        padding: 20px 0 0;
        font-size: 1.4rem;
    }

    .assignment-field input {
        width: calc(100% - 20px);
        margin: 4px 0;
        font-size: 1rem;
    }

    .assignment-status { width: 100%; }

    .assignment-button {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .assignment-button button {
        width: 80%;
        padding: 8px 30px;
        font-size: 0.9rem;
    }

    .assignment-email-usage,
    .assignment-support { width: 100%; }

    .support-content h2 {
        margin: 30px 0 10px;
        font-size: 1.4rem;
    }

    .license-recovery-form {
        flex-direction: column;
        align-items: center;
        padding: 0;
    }

    .license-recovery-form input[type="email"] {
        width: calc(100% - 20px);
        margin: 0 0 20px;
        font-size: 1rem;
    }

    .license-recovery-form button {
        width: 80%;
        align-self: center;
        padding: 8px 20px;
        font-size: 0.9rem;
    }

    .license-recovery-status { width: 100%; }

    .promotion-book-link {
        background: linear-gradient(45deg, #191919, #202020);
    }

    .promotion-book-link.wide { display: none; }

    .promotion-book-link.narrow {
        display: flex;
        flex-direction: column;
        gap: 4px;
        padding: 13px 0;
    }

    .promotion-book-link.narrow.menu-expanded { display: none; }

    .promotion-book-link.narrow .deal-line { font-size: 0.9rem; }

    .promotion-book-link.narrow .discount-line {
        font-size: 0.9rem;
        font-weight: 300;
    }

    footer { padding: 24px 20px 18px; }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

.swiftfairy-scroll-link {
    display: inline-block;
    margin-top: 20px;
    color: var(--yellow);
    font-weight: 400;
    text-decoration: none;
}

.swiftfairy-scroll-link:hover { text-decoration: underline; }

.swiftfairy-scroll h3 a {
    color: var(--body-text-color);
    text-decoration: none;
}

.swiftfairy-scroll h3 a:hover { color: var(--yellow); }

.swiftfairy-knowledge > p a {
    color: var(--yellow);
    font-weight: 400;
    text-decoration: none;
}

.swiftfairy-knowledge > p a:hover { text-decoration: underline; }

.swiftfairy-scroll a:focus-visible {
    outline: 3px solid var(--purple);
    outline-offset: 5px;
}

.swiftfairy-scroll-page .swiftfairy-hero { max-width: none; padding-bottom: 48px; }

.swiftfairy-scroll-page .swiftfairy-scroll-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.swiftfairy-scroll-page .swiftfairy-release-callout { margin-bottom: 64px; }

@media (max-width: 700px) {
    .swiftfairy-scroll-page .swiftfairy-scroll-grid { grid-template-columns: 1fr; }
}

.scroll-example {
    margin-top: 36px;
    padding: 28px;
    border: 1px solid color-mix(in srgb, var(--purple) 35%, transparent);
    border-radius: 12px;
}
.scroll-example h3 { margin: 8px 0 16px; }
.scroll-example h4 { font-size: 1rem; margin: 0 0 14px; }
.swiftfairy-content .scroll-example-level {
    display: inline-block;
    margin: 0;
    padding: 4px 10px;
    border-radius: 5px;
    background: color-mix(in srgb, var(--purple) 16%, var(--background-color));
    font-size: 0.85rem;
    font-weight: 700;
}
.scroll-example-comparison {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
    margin-top: 24px;
}
.scroll-example-comparison > div { min-width: 0; }
.scroll-code {
    margin: 0;
    padding: 16px 0;
    overflow-x: auto;
    border-radius: 8px;
    background: var(--code-background);
    color: var(--secondary-text-color);
    font-size: 0.85rem;
    line-height: 1.65;
    tab-size: 4;
}
.scroll-code code { display: block; font-family: 'Roboto Mono', ui-monospace, SFMono-Regular, Menlo, monospace; }
.scroll-code-line { display: block; padding: 0 16px; min-height: 1.65em; white-space: pre-wrap; overflow-wrap: anywhere; border-left: 3px solid transparent; }
.scroll-code-flagged { background: var(--code-flag-background); color: inherit; border-left-color: var(--code-flag-border); }
.scroll-code .keyword { color: var(--pink); }
.scroll-code .type { color: var(--purple); }
.scroll-code .call { color: var(--blue); }
.scroll-code .property { color: var(--green); }
.scroll-code .number { color: var(--red); }
.scroll-code .string { color: var(--orange); }
.scroll-code .comment { color: var(--code-comment); }
.scroll-code .dotAccess { color: var(--light-green); }
.scroll-code .preprocessing { color: var(--brown); }
.scroll-code:focus-visible { outline: 3px solid var(--purple); outline-offset: 4px; }
.swiftfairy-content .scroll-code-caption { font-size: 0.95rem; margin: 14px 0 0; }
@media (max-width: 1000px) {
    .scroll-example-comparison { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
    .scroll-example { padding: 18px; }
}

/* Tools has a promotion bar in addition to the Books header. Its in-flow
   height reserves the banner space, so main needs no second header offset. */
body > .promotion-book-link {
    position: sticky;
    top: var(--site-header-height, 50px);
    z-index: 99;
    flex: none;
    margin-top: var(--site-header-height, 50px);
}

body:has(> .promotion-book-link) main { margin-top: 0; }

/* This site's menu icon uses strokes rather than the Books filled SVG. */
#site-navigation-menu { color: var(--header-text-color); }
header.inverted #site-navigation-menu,
header.menu-expanded #site-navigation-menu { color: var(--header-inverted-text-color); }

.scroll-volume-form { width: 100%; min-width: 0; }
.scroll-volume-page { padding-bottom: 280px; }
.scroll-volume-page .scroll-purchase-results {
    background: var(--purchase-bar-background);
    border: 1px solid color-mix(in srgb, var(--purple) 45%, transparent);
    border-bottom: 0;
    border-radius: 12px 12px 0 0;
    box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.1);
}
.scroll-volume-page .scroll-purchase-result {
    grid-column: 1;
    grid-row: 1;
    padding-bottom: 18px;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}
.scroll-volume-seats {
    grid-column: 1;
    grid-row: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
    padding: 0 20px calc(18px + env(safe-area-inset-bottom));
    pointer-events: auto;
}
.scroll-volume-seats { position: relative; }
.scroll-volume-seats > label {
    position: absolute;
    right: calc(50% + min(210px, (100% - 144px) / 2) + 12px);
    font-weight: 600;
}
.scroll-volume-seat-control { position: relative; width: min(420px, calc(100% - 104px)); min-width: 0; }
.scroll-volume-seat-control input {
    appearance: none;
    display: block;
    width: 100%;
    height: 44px;
    margin: 0;
    border-radius: 10px;
    background: transparent;
    cursor: grab;
}
.scroll-volume-seat-control input::-webkit-slider-runnable-track {
    height: 44px;
    border-radius: 10px;
    background: color-mix(in srgb, var(--purple) 12%, transparent);
    box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--purple) 25%, transparent);
}
.scroll-volume-seat-control input::-moz-range-track {
    height: 44px;
    border-radius: 10px;
    background: color-mix(in srgb, var(--purple) 12%, transparent);
    box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--purple) 25%, transparent);
}
.scroll-volume-seat-control input::-webkit-slider-thumb {
    appearance: none;
    width: calc(100% / 9);
    height: 44px;
    border: 2px solid var(--purple);
    border-radius: 10px;
    background: color-mix(in srgb, var(--purple) 25%, var(--background-color));
}
.scroll-volume-seat-control input::-moz-range-thumb {
    box-sizing: border-box;
    width: calc(100% / 9);
    height: 44px;
    border: 2px solid var(--purple);
    border-radius: 10px;
    background: color-mix(in srgb, var(--purple) 25%, var(--background-color));
}
.scroll-volume-seat-control input:active { cursor: grabbing; }
.scroll-volume-seat-labels {
    position: absolute;
    inset: 0;
    display: grid;
    grid-template-columns: repeat(9, 1fr);
    align-items: center;
    text-align: center;
    font-size: 0.85rem;
    font-weight: 600;
    pointer-events: none;
}
.scroll-volume-seat-control input:focus-visible { outline: 3px solid var(--purple); outline-offset: 3px; }
@media (min-width: 701px) {
    .scroll-volume-page .scroll-purchase-billing-toggle {
        position: relative;
        grid-row: 1;
        grid-column: 1;
        align-self: center;
        justify-self: center;
        top: auto;
        left: auto;
        transform: none;
    }
}
@media (max-width: 700px) {
    .scroll-volume-page { padding-bottom: 340px; }
    .scroll-volume-page .scroll-purchase-billing-toggle {
        bottom: calc(155px + env(safe-area-inset-bottom));
    }
    .scroll-volume-page .scroll-purchase-results { border-radius: 0; border-right: 0; border-left: 0; }
}

.scroll-volume-total { display: none; }

/* Stylized crop of the Claude desktop app window, sized to macOS metrics. */
.claude-app-figure {
    --mock-surface: #faf9f5;
    --mock-content: #ffffff;
    --mock-border: #dedcd4;
    --mock-text: #3d3d3a;
    --mock-dim: #a3a29b;
    --mock-tabs: #ebe9e2;
    --mock-selected: #ffffff;
    --mock-row-selected: #edebe4;
    --mock-fade: 72px;
    margin: 26px 0;
    max-width: 440px;
}

@media (prefers-color-scheme: dark) {
    .claude-app-figure {
        --mock-surface: #262624;
        --mock-content: #1f1e1d;
        --mock-border: #3e3e3a;
        --mock-text: #e8e6de;
        --mock-dim: #75746e;
        --mock-tabs: #1d1d1b;
        --mock-selected: #3a3a37;
        --mock-row-selected: #33332f;
    }
}

/* The window is cropped: its real corner keeps the macOS 10pt radius, and the
   sides where it continues fade out. */
.claude-app-mock {
    display: flex;
    overflow: hidden;
    border: 1px solid var(--mock-border);
    background: var(--mock-content);
    color: var(--mock-text);
    font-family: -apple-system, BlinkMacSystemFont, 'Helvetica Neue', sans-serif;
    font-size: 13px;
    line-height: 16px;
    -webkit-mask-composite: source-in;
    mask-composite: intersect;
}

.claude-app-mock-crop-top-left {
    border-radius: 10px 0 0 0;
    -webkit-mask-image: linear-gradient(to right, #000 calc(100% - var(--mock-fade)), transparent), linear-gradient(to bottom, #000 calc(100% - var(--mock-fade)), transparent);
    mask-image: linear-gradient(to right, #000 calc(100% - var(--mock-fade)), transparent), linear-gradient(to bottom, #000 calc(100% - var(--mock-fade)), transparent);
}

.claude-app-mock-crop-bottom-left {
    border-radius: 0 0 0 10px;
    -webkit-mask-image: linear-gradient(to right, #000 calc(100% - var(--mock-fade)), transparent), linear-gradient(to top, #000 calc(100% - var(--mock-fade)), transparent);
    mask-image: linear-gradient(to right, #000 calc(100% - var(--mock-fade)), transparent), linear-gradient(to top, #000 calc(100% - var(--mock-fade)), transparent);
}

.claude-app-mock-sidebar {
    flex: 0 0 min(300px, 78%);
    min-width: 0;
    padding: 0 8px 10px;
    border-right: 1px solid var(--mock-border);
    background: var(--mock-surface);
}

.claude-app-mock-main {
    flex: 1;
}

/* A 52pt unified toolbar with the window controls 20pt from the leading edge. */
.claude-app-mock-toolbar {
    display: flex;
    height: 52px;
    align-items: center;
    gap: 14px;
    padding-left: 12px;
}

.claude-app-mock-lights {
    display: inline-flex;
    gap: 8px;
    margin-right: 6px;
}

.claude-app-mock-lights i {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #ff5f57;
    box-shadow: inset 0 0 0 0.5px rgba(0, 0, 0, 0.18);
}

.claude-app-mock-lights i:nth-child(2) { background: #febc2e; }
.claude-app-mock-lights i:nth-child(3) { background: #28c840; }

.claude-app-mock-glyph {
    width: 16px;
    height: 16px;
    flex: none;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.4;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.claude-app-mock-dim { color: var(--mock-dim); }

.claude-app-mock-tabs {
    display: inline-flex;
    margin-left: auto;
    padding: 2px;
    border-radius: 8px;
    background: var(--mock-tabs);
}

.claude-app-mock-tab {
    position: relative;
    display: inline-flex;
    padding: 5px 9px;
    border-radius: 6px;
    color: var(--mock-dim);
}

.claude-app-mock-tab-selected {
    background: var(--mock-selected);
    color: var(--mock-text);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.12);
}

.claude-app-mock-sidebar:has(.claude-app-mock-callout) .claude-app-mock-toolbar {
    margin-bottom: 26px;
}

.claude-app-mock-callout {
    position: absolute;
    top: calc(100% + 10px);
    right: -4px;
    padding: 2px 8px;
    border-radius: 6px;
    background: var(--yellow);
    color: #151515;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
}

.claude-app-mock-callout::before {
    content: "";
    position: absolute;
    bottom: 100%;
    right: 14px;
    border: 5px solid transparent;
    border-bottom-color: var(--yellow);
}

.claude-app-mock-row {
    display: flex;
    align-items: center;
    gap: 10px;
    height: 30px;
    padding: 0 10px;
    border-radius: 7px;
}

.claude-app-mock-row > span {
    width: 16px;
    color: var(--mock-dim);
    text-align: center;
}

.claude-app-mock-row-selected { background: var(--mock-row-selected); }

.claude-app-mock-highlight {
    box-shadow: 0 0 0 2px var(--mock-surface), 0 0 0 4px var(--yellow);
}

.claude-app-mock-row.claude-app-mock-highlight {
    background: var(--mock-row-selected);
}

/* Placeholder session rows above the account menu. */
.claude-app-mock-placeholder {
    display: block;
    width: 55%;
    height: 8px;
    border-radius: 4px;
    background: var(--mock-border);
}

.claude-app-mock-placeholder.short { width: 38%; }

.claude-app-mock-menu {
    margin: 4px 0 8px;
    padding: 5px;
    border: 1px solid var(--mock-border);
    border-radius: 10px;
    background: var(--mock-selected);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.1);
}

.claude-app-mock-shortcut {
    margin-left: auto;
    color: var(--mock-dim);
    font-family: inherit;
    font-size: 12px;
}

.claude-app-mock-account {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 5px 8px 5px 5px;
    border-radius: 7px;
    background: var(--mock-row-selected);
}

.claude-app-mock-avatar {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--mock-border);
}

.claude-app-figure figcaption {
    margin-top: 12px;
    color: var(--secondary-text-color);
    font-size: 0.92rem;
}

.claude-app-figure figcaption kbd {
    padding: 0.05em 0.4em;
    border: 1px solid var(--mock-border);
    border-bottom-width: 2px;
    border-radius: 4px;
    background: var(--mock-surface);
    color: var(--body-text-color);
    font-family: inherit;
    font-size: 0.9em;
}

/* The agent cloud sits between the workflow and team sections without dividers. */
.swiftfairy-content .swiftfairy-agents { border-top: 0; }
.swiftfairy-content .swiftfairy-agents + * { border-top: 0; }
.swiftfairy-content .swiftfairy-agents { padding-top: 32px; }
/* The title moves up 32px, away from the icon cloud, which stays where it was. Its bottom
   margin collapses with the cloud's 24px top margin, so 56px is that 24px plus 32px. Scoped
   past `.swiftfairy-page .swiftfairy-content h2`, which loads later and sets a 20px margin. */
.swiftfairy-page .swiftfairy-content .swiftfairy-agents > h2 {
    margin-bottom: 56px;
    color: var(--purple);
    text-align: center;
}

/* Stylised SwiftFairy HTTP approval sheet, drawn over its Settings window. */
.fairy-mock-figure {
    --fm-window: #ececec;
    --fm-sheet: #f6f6f6;
    --fm-border: rgba(0, 0, 0, 0.14);
    --fm-text: #1d1d1f;
    --fm-dim: #6e6e73;
    --fm-button: #ffffff;
    margin: 26px 0;
    max-width: 520px;
}

@media (prefers-color-scheme: dark) {
    .fairy-mock-figure {
        --fm-window: #2a2a2c;
        --fm-sheet: #323234;
        --fm-border: rgba(255, 255, 255, 0.14);
        --fm-text: #f5f5f7;
        --fm-dim: #98989d;
        --fm-button: #545456;
    }
}

.fairy-mock-window {
    overflow: hidden;
    border: 1px solid var(--fm-border);
    border-radius: 12px;
    background: var(--fm-window);
    color: var(--fm-text);
    font-family: -apple-system, BlinkMacSystemFont, 'Helvetica Neue', sans-serif;
    font-size: 13px;
    line-height: 17px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.14);
}

.fairy-mock-toolbar {
    position: relative;
    padding: 12px 14px 34px;
    text-align: center;
}

.fairy-mock-lights { position: absolute; left: 14px; top: 14px; display: flex; gap: 8px; }

.fairy-mock-lights i {
    display: block;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #ff5f57;
}

.fairy-mock-lights i:nth-child(2) { background: #febc2e; }
.fairy-mock-lights i:nth-child(3) { background: #28c840; }
.fairy-mock-title { font-weight: 600; }

.fairy-mock-sheet {
    margin: 0 22px;
    padding: 20px;
    border: 1px solid var(--fm-border);
    border-bottom: 0;
    border-radius: 12px 12px 0 0;
    background: var(--fm-sheet);
    box-shadow: 0 -2px 18px rgba(0, 0, 0, 0.12);
}

.swiftfairy-content .fairy-mock-sheet p { margin: 0; font-size: 13px; line-height: 17px; }

.fairy-mock-header { display: flex; align-items: center; gap: 12px; }
.fairy-mock-icon { flex: none; width: 48px; height: 48px; }
.swiftfairy-content .fairy-mock-headline { font-weight: 600; }
.swiftfairy-content .fairy-mock-secondary { color: var(--fm-dim); }

.fairy-mock-details {
    display: grid;
    grid-template-columns: max-content minmax(0, 1fr);
    gap: 6px 12px;
    margin: 16px 0;
}

.fairy-mock-details div { display: contents; }
.fairy-mock-details dt { color: var(--fm-dim); text-align: right; }
.fairy-mock-details dd { margin: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.swiftfairy-content .fairy-mock-caption { color: var(--fm-dim); font-size: 11px; line-height: 14px; }

.fairy-mock-buttons { display: flex; justify-content: flex-end; gap: 10px; margin-top: 16px; }

.fairy-mock-button {
    min-width: 64px;
    padding: 3px 12px;
    border-radius: 6px;
    background: var(--fm-button);
    box-shadow: 0 0.5px 1.5px rgba(0, 0, 0, 0.3);
    text-align: center;
}

.fairy-mock-button-default { background: #0a84ff; color: #fff; }

.fairy-mock-figure figcaption {
    margin-top: 12px;
    color: var(--secondary-text-color);
    font-size: 0.9rem;
}

/* Stylised agent row in Settings → Integrations with its options popover. */
.fairy-mock-integrations { padding: 16px 16px 196px; box-shadow: none; }

.fairy-mock-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 8px;
    background: var(--fm-sheet);
}

.fairy-mock-status {
    display: grid;
    flex: none;
    place-items: center;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #34c759;
    color: #fff;
    font-size: 10px;
    font-weight: 700;
}

.fairy-mock-row-text { flex: 1; min-width: 0; }
.swiftfairy-content .fairy-mock-integrations p { margin: 0; font-size: 13px; line-height: 17px; }
.swiftfairy-content .fairy-mock-row-title { font-weight: 500; }

.fairy-mock-options-button { position: relative; flex: none; width: 20px; height: 20px; color: var(--fm-dim); }

.fairy-mock-options-button svg {
    width: 20px;
    height: 20px;
    fill: var(--fm-sheet);
    stroke: currentColor;
    stroke-width: 1.3;
    stroke-linecap: round;
}

/* The popover hangs from the options button, centred under it with its arrow on the button. */
.fairy-mock-popover {
    position: absolute;
    top: calc(100% + 16px);
    left: 50%;
    z-index: 1;
    width: 300px;
    padding: 14px 16px;
    border: 1px solid var(--fm-border);
    border-radius: 12px;
    background: var(--fm-sheet);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.16);
    color: var(--fm-text);
    transform: translateX(-50%);
}

.fairy-mock-popover::before {
    content: "";
    position: absolute;
    top: -7px;
    left: 50%;
    width: 12px;
    height: 12px;
    margin-left: -6px;
    border-top: 1px solid var(--fm-border);
    border-left: 1px solid var(--fm-border);
    background: var(--fm-sheet);
    transform: rotate(45deg);
}

.fairy-mock-picker { display: flex; gap: 10px; margin: 10px 0; }
.fairy-mock-radios { display: grid; gap: 6px; }
.fairy-mock-radio-row { display: flex; align-items: center; gap: 7px; }

.fairy-mock-radio {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--fm-button);
    box-shadow: inset 0 0 0 1px var(--fm-border);
}

.fairy-mock-radio-selected { background: #9663e1; box-shadow: inset 0 0 0 4px #9663e1, inset 0 0 0 7px #fff; }

@media (max-width: 700px) {
    .fairy-mock-row { flex-wrap: wrap; }
    .fairy-mock-row-text { flex-basis: calc(100% - 30px); }
    .fairy-mock-options-button { margin-left: 26px; }
    .fairy-mock-integrations { padding-bottom: 214px; }
    .fairy-mock-popover { left: -30px; width: min(280px, calc(100vw - 90px)); transform: none; }
    .fairy-mock-popover::before { left: 40px; }
}


/* Using SwiftFairy: prompts to try and code examples. */
.swiftfairy-try {
    display: flex;
    align-items: baseline;
    gap: 12px;
    max-width: 760px;
    margin: 20px 0 8px;
    padding: 12px 16px;
    border-radius: 10px;
    background: var(--code-background);
}

.swiftfairy-try-label {
    flex: none;
    color: var(--purple);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.swiftfairy-content .swiftfairy-try p { margin: 0; }

.swiftfairy-content .swiftfairy-try-note {
    color: var(--secondary-text-color);
    font-size: 0.9rem;
}

.swiftfairy-code-block {
    max-width: 760px;
    margin: 16px 0;
    padding: 14px 16px;
    overflow-x: auto;
    border-radius: 10px;
    background: var(--code-background);
    font-family: 'Roboto Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: 0.85rem;
    line-height: 1.6;
}

.swiftfairy-probe-list li { margin: 4px 0; }

/* Icons for each way of using SwiftFairy. */
.swiftfairy-use-icon {
    display: inline-grid;
    flex: none;
    place-items: center;
    width: 32px;
    height: 32px;
    border-radius: 9px;
    background: color-mix(in srgb, var(--purple) 14%, transparent);
    color: var(--purple);
}

.swiftfairy-use-icon svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.5;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.swiftfairy-content .swiftfairy-use-heading {
    display: flex;
    align-items: center;
    gap: 12px;
}

.swiftfairy-use-nav ul { list-style: none; padding-left: 0; }

.swiftfairy-use-nav a {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.swiftfairy-use-nav .swiftfairy-use-icon {
    width: 26px;
    height: 26px;
    border-radius: 7px;
}

.swiftfairy-use-nav .swiftfairy-use-icon svg { width: 16px; height: 16px; }

.swiftfairy-reference-table td:first-child { width: 58%; }
.swiftfairy-reference-table .swiftfairy-inline-code { white-space: normal; overflow-wrap: anywhere; }

/* Workflow: the finding preview's tags, and the other ways to use SwiftFairy beneath it. */
.swiftfairy-finding-tags { display: flex; flex-wrap: wrap; gap: 4px 12px; }
.swiftfairy-fixit-tag { color: var(--green); }

.swiftfairy-beyond-audits {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    margin: 40px 0 0;
    padding: 0;
    list-style: none;
}

.swiftfairy-beyond-audits a {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    color: var(--body-text-color);
    text-decoration: none;
}

.swiftfairy-beyond-audits a > span:last-child { display: flex; flex-direction: column; gap: 2px; }
.swiftfairy-beyond-audits strong { font-size: 0.95rem; font-weight: 500; }
.swiftfairy-beyond-audits a > span:last-child > span { color: var(--secondary-text-color); font-size: 0.82rem; line-height: 1.35; }
.swiftfairy-beyond-audits a:hover strong { color: var(--purple); }

@media (max-width: 860px) {
    .swiftfairy-beyond-audits { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 480px) {
    .swiftfairy-beyond-audits { grid-template-columns: 1fr; }
}

.swiftfairy-workflow .swiftfairy-workflow-guide { display: table; margin: 32px auto 0; }

/* On phones the row is a stacked list, so the link lines up with it on the left. */
@media (max-width: 480px) {
    .swiftfairy-workflow .swiftfairy-workflow-guide { margin-left: 0; }
}
/* SwiftFairy pages (the SwiftFairy page, the Scroll pages and the guides), sized like the
   book pages on the books website (book-marketing-page.css, content-summary.css, book-author.css).
   Rules scoped to .swiftfairy-page are shared; .swiftfairy-overview, .swiftfairy-scroll-page and
   .swiftfairy-guide-page rules are for those pages only. */

.swiftfairy-overview .swiftfairy-product-hero {
    max-width: none;
    padding: 0 0 40px;
}

.swiftfairy-product-header {
    display: flex;
    align-items: center;
    gap: 28px;
    padding-top: 32px;
}

.swiftfairy-product-icon {
    flex-shrink: 0;
    width: 150px;
    height: 150px;
    filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.2));
}

.swiftfairy-product-heading {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.swiftfairy-page .swiftfairy-hero h1 {
    margin: 0;
    padding: 10px 0;
    font-family: "Alegreya", Georgia, "Times New Roman", serif;
    font-size: 3rem;
    font-weight: 400;
    line-height: normal;
}

.swiftfairy-overview .swiftfairy-product-subtitle,
.swiftfairy-scroll-page .swiftfairy-content .swiftfairy-introduction {
    max-width: none;
    margin: 0;
    font-size: 1.3rem;
    font-weight: 400;
    line-height: 1.5rem;
}

/* The Scroll summary wraps to several lines, so it is lighter and more open than the one-line subtitle. */
.swiftfairy-scroll-page .swiftfairy-content .swiftfairy-introduction {
    font-weight: 300;
    line-height: 1.9rem;
}

/* The guide introduction uses the same type as the Scroll summary. */
.swiftfairy-guide-page .swiftfairy-content .swiftfairy-introduction {
    font-size: 1.3rem;
    font-weight: 300;
    line-height: 1.9rem;
}

.swiftfairy-product-release {
    padding-top: 14px;
    font-size: 0.8rem;
    font-weight: 300;
}

.swiftfairy-product-hero .promotion-banner {
    margin: 40px 0 0;
}

.swiftfairy-overview .swiftfairy-product-introduction {
    margin: 30px 0 0;
    font-size: 1.1rem;
    font-weight: 300;
    line-height: 1.5rem;
}

.swiftfairy-content .swiftfairy-review-callout {
    margin: 24px 0 0;
    padding: 12px 16px;
    border-left: 3px solid var(--purple);
    color: var(--purple);
    font-size: 1.1rem;
    font-weight: 600;
    line-height: 1.5rem;
    background: color-mix(in srgb, var(--purple) 7%, transparent);
}

.swiftfairy-overview .swiftfairy-product-trial {
    max-width: none;
    margin: 24px 0 0;
    padding-bottom: 40px;
    border-bottom: 1px solid color-mix(in srgb, var(--secondary-text-color) 25%, transparent);
    font-size: 1.1rem;
    font-weight: 600;
}

.swiftfairy-product-buy {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    margin-top: 40px;
}

.swiftfairy-product-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 16px;
}

.swiftfairy-product-buy .buy-now-callout {
    padding: 24px 0 4px;
    text-align: left;
    text-decoration: none;
}

.swiftfairy-product-buy .discount-info {
    text-align: left;
}

.swiftfairy-product-links {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 28px;
    margin-top: 24px;
}

.swiftfairy-arrow-link {
    color: var(--yellow);
    font-size: 1rem;
    font-weight: 500;
    text-decoration: none;
}

.swiftfairy-page .swiftfairy-content h2 {
    margin: 0 0 20px;
    font-size: 1.4rem;
    font-weight: 400;
}

.swiftfairy-page .swiftfairy-content h3 {
    font-size: 1.1rem;
    font-weight: 600;
}

.swiftfairy-page .swiftfairy-content > section > p {
    line-height: 1.7rem;
}

/* Author rows, matching book-author.css on the books website,
   with bios set in secondary text to separate them from the section text. */
.swiftfairy-team {
    margin: 26px 0;
}

.swiftfairy-team-member {
    display: flex;
    align-items: center;
    margin-top: 10px;
}

.swiftfairy-team-member picture {
    display: block;
    flex-shrink: 0;
}

.swiftfairy-team-member img {
    display: block;
    width: 80px;
    height: 80px;
    margin-right: 10px;
    border-radius: 50%;
}

.swiftfairy-team-info {
    display: flex;
    flex-direction: column;
}

.swiftfairy-team-name {
    margin-bottom: 4px;
    color: var(--yellow);
    font-size: 1.1rem;
    font-weight: 400;
    text-decoration: none;
}

.swiftfairy-team-role {
    color: var(--secondary-text-color);
    font-size: 1rem;
    font-weight: 300;
}

.swiftfairy-overview .swiftfairy-content .swiftfairy-team-bio {
    max-width: 760px;
    margin: 0;
    padding: 10px 0;
    color: var(--secondary-text-color);
    font-size: 1rem;
    font-weight: 300;
    line-height: 1.6rem;
}

@media screen and (max-width: 700px) {
    .swiftfairy-product-header {
        flex-direction: column;
        gap: 12px;
        padding-top: 24px;
    }

    .swiftfairy-product-icon {
        width: 112px;
        height: 112px;
    }

    .swiftfairy-product-heading {
        align-items: center;
        text-align: center;
    }

    .swiftfairy-page .swiftfairy-hero h1 {
        font-size: 2.3rem;
        line-height: 2.4rem;
    }

    /* The books centre the title block on phones. */
    .swiftfairy-scroll-page .swiftfairy-hero {
        text-align: center;
    }

    .swiftfairy-overview .swiftfairy-product-subtitle,
    .swiftfairy-scroll-page .swiftfairy-content .swiftfairy-introduction {
        padding-top: 10px;
        font-size: 1.2rem;
        text-wrap: balance;
    }

    .swiftfairy-scroll-page .swiftfairy-content .swiftfairy-introduction {
        line-height: 1.75rem;
    }

    .swiftfairy-guide-page .swiftfairy-content .swiftfairy-introduction {
        font-size: 1.2rem;
        line-height: 1.75rem;
    }

    .swiftfairy-product-release {
        padding-top: 20px;
        font-size: 0.75rem;
    }

    .swiftfairy-product-hero .promotion-banner {
        margin-top: 30px;
    }

    .swiftfairy-overview .swiftfairy-product-introduction,
    .swiftfairy-content .swiftfairy-review-callout {
        font-size: 1rem;
        line-height: 1.4rem;
        text-align: center;
    }

    .swiftfairy-overview .swiftfairy-product-trial {
        font-size: 1rem;
        text-align: center;
        text-wrap: balance;
    }

    .swiftfairy-product-buy {
        align-items: stretch;
        text-align: center;
    }

    .swiftfairy-product-buttons {
        flex-direction: column;
    }

    .swiftfairy-product-buy .buy-now-callout,
    .swiftfairy-product-buy .discount-info {
        text-align: center;
    }

    .swiftfairy-product-links {
        flex-direction: column;
        align-items: center;
    }

    .swiftfairy-overview .swiftfairy-section,
    .swiftfairy-scroll-page .swiftfairy-section,
    .swiftfairy-scroll-page .swiftfairy-first-scrolls,
    .swiftfairy-overview .swiftfairy-first-scrolls,
    .swiftfairy-overview .swiftfairy-licenses {
        padding: 40px 0;
    }

    .swiftfairy-page .swiftfairy-content h2 {
        margin: 0 0 10px;
        font-size: 1.2rem;
    }

    .swiftfairy-page .swiftfairy-content h3 {
        font-size: 1rem;
    }

    .swiftfairy-page .swiftfairy-content > section > p {
        font-size: 1rem;
    }

    .swiftfairy-team-member img {
        width: 70px;
        height: 70px;
    }

    .swiftfairy-team-name {
        margin: 0;
        font-size: 1rem;
    }

    .swiftfairy-overview .swiftfairy-content .swiftfairy-team-bio {
        font-size: 0.95rem;
    }

    .swiftfairy-team-role {
        font-size: 0.9rem;
    }
}
/* SwiftFairy testimonials: quotes, not cards, so they never read as feature tiles. The
   strongest quote is large and centred, and the others sit in a quiet row beneath. */

/* Tighter than the standard 64px section spacing, the same above and below. */
.swiftfairy-content .swiftfairy-section.testimonials {
    padding: 48px 0;
}

/* Scoped past `.swiftfairy-page .swiftfairy-content > section > p`, which would otherwise
   set the label's line height (and font size on phones). Line height 1 keeps the space above
   the label equal to the section's bottom spacing. */
.swiftfairy-page .swiftfairy-content .testimonials > .testimonials-label {
    max-width: none;
    margin: 0 0 29px;
    line-height: 1;
    color: var(--secondary-text-color);
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-align: center;
    text-transform: uppercase;
}

.testimonials .testimonial {
    display: block;
    color: var(--body-text-color);
    text-decoration: none;
}

.testimonials blockquote {
    margin: 0 0 10px;
    font-family: "Alegreya", Georgia, "Times New Roman", serif;
}

.swiftfairy-content .testimonials p {
    max-width: none;
}

.swiftfairy-content .testimonials blockquote p {
    margin: 0 0 4px;
    font-size: inherit;
    line-height: inherit;
}

.swiftfairy-content .testimonials .testimonial-who {
    margin: 0;
    color: var(--secondary-text-color);
    font-size: 0.85rem;
}

.testimonials .testimonial-who strong {
    color: var(--body-text-color);
    font-weight: 500;
}

.testimonials .testimonial:hover .testimonial-who strong {
    color: var(--purple);
}

.testimonial-spotlight {
    max-width: 680px;
    margin: 0 auto 36px;
    text-align: center;
}

.testimonial-spotlight blockquote {
    font-size: 1.75rem;
    line-height: 1.35;
}

.testimonial-spotlight mark {
    background: linear-gradient(transparent 58%, color-mix(in srgb, var(--button-color) 70%, transparent) 58%);
    color: inherit;
}

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

.testimonials-row .testimonial {
    padding: 4px 22px;
    border-left: 1px solid color-mix(in srgb, var(--secondary-text-color) 25%, transparent);
    text-align: left;
}

.testimonials-row .testimonial:first-child {
    padding-left: 0;
    border-left: 0;
}

.testimonials-row .testimonial:last-child {
    padding-right: 0;
}

/* In the row, the handle sits on its own line under the name. */
.testimonials-row .testimonial-separator {
    display: none;
}

.testimonials-row .testimonial-handle {
    display: block;
}

.testimonials-row blockquote {
    font-size: 1.05rem;
    line-height: 1.45;
}

@media (max-width: 700px) {
    .testimonial-spotlight blockquote {
        font-size: 1.4rem;
    }

    .testimonials-row {
        grid-template-columns: 1fr;
    }

    .testimonials-row .testimonial,
    .testimonials-row .testimonial:first-child {
        padding: 18px 0 0;
        border-left: 0;
        border-top: 1px solid color-mix(in srgb, var(--secondary-text-color) 25%, transparent);
    }

    .testimonials-row .testimonial:first-child {
        border-top: 0;
    }

    .testimonials-row .testimonial + .testimonial {
        margin-top: 18px;
    }
}
/* Developer Tools home page, laid out like the books page on the books website. */

.tools-page h1 {
    margin: 0;
    font-size: 3rem;
}

.tools-page .promotion-headline {
    margin: 30px 0 46px;
    font-size: 2rem;
    font-weight: 500;
    line-height: normal;
}

.tools-product {
    max-width: 900px;
    padding: 0 0 40px;
}

.tools-product-header {
    display: flex;
    align-items: center;
    gap: 36px;
}

.tools-product-icon {
    flex-shrink: 0;
    width: 150px;
    height: 150px;
    filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.2));
}

.tools-product-heading {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.tools-product-heading h2 {
    margin: 0;
    font-size: 2.2rem;
    font-weight: 600;
    line-height: 1.1;
}

.tools-product-tagline {
    margin: 6px 0 0;
    font-size: 1.15rem;
    font-weight: 400;
}

.tools-product-release {
    margin: 10px 0 0;
    font-size: 0.8rem;
    font-weight: 300;
}

.tools-product-actions {
    display: flex;
    align-items: center;
    gap: 24px;
    margin: 20px 0 0;
}

.tools-product-button {
    padding: 10px 20px;
    border-radius: 10px;
    color: black;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    text-transform: uppercase;
    background: var(--button-color);
}

.tools-product-link {
    color: var(--yellow);
    font-size: 1rem;
    font-weight: 500;
    text-decoration: none;
}

.tools-product-description,
.tools-product-trial {
    max-width: 700px;
    font-size: 1.07rem;
}

.tools-product-description {
    margin: 36px 0 0;
    font-weight: 300;
    line-height: 1.5rem;
}

.tools-product-trial {
    margin: 20px 0 0;
    font-weight: 600;
}

@media screen and (max-width: 700px) {
    .tools-page h1 {
        font-size: 2.4rem;
    }

    .tools-page .promotion-headline {
        margin-bottom: 36px;
        font-size: 1.8rem;
        text-align: center;
    }

    .tools-product-header {
        flex-direction: column;
        gap: 12px;
    }

    .tools-product-icon {
        width: 112px;
        height: 112px;
    }

    .tools-product-heading {
        align-items: center;
        text-align: center;
    }

    .tools-product-heading h2 {
        font-size: 2rem;
    }

    .tools-product-tagline {
        margin-top: 16px;
        font-size: 1.05rem;
        text-wrap: balance;
    }

    .tools-product-release {
        margin-top: 24px;
    }

    .tools-product-actions {
        flex-direction: column;
        gap: 16px;
        margin-top: 24px;
    }

    .tools-product-description,
    .tools-product-trial {
        margin-top: 24px;
        font-size: 1rem;
        text-align: center;
    }

    .tools-product-description {
        line-height: 2rem;
    }

    .tools-product-trial {
        text-wrap: balance;
    }
}
