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);
}
/* 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;
    background: linear-gradient(90deg, var(--purple), var(--purple-deep));
    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;
}

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

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

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

.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); }

.tools-content p,
.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;
}

.tools-swiftfairy-summary {
    display: flow-root;
    max-width: 820px;
    padding: 0 0 40px;
}

.tools-swiftfairy-icon {
    float: right;
    width: clamp(88px, 18vw, 150px);
    height: auto;
    margin: 12px 0 20px 24px;
    filter: drop-shadow(0 10px 16px rgba(0, 0, 0, 0.15));
}

.tools-swiftfairy-summary h1 {
    padding: 0.04em 0 0.08em;
    font-size: clamp(2.8rem, 7vw, 4.8rem);
    line-height: 1.08;
}

.tools-swiftfairy-summary .swiftfairy-actions {
    margin-top: 24px;
}

.tools-swiftfairy-summary .swiftfairy-eyebrow,
.swiftfairy-home-hero .swiftfairy-eyebrow {
    padding-top: 12px;
}

.swiftfairy-home-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 200px;
    align-items: start;
    gap: 0 36px;
    max-width: none;
}

.swiftfairy-home-hero > .swiftfairy-eyebrow { grid-area: 1 / 1; }
.swiftfairy-home-hero > .swiftfairy-hero-copy { grid-area: 2 / 1; }
.swiftfairy-home-hero > .swiftfairy-app-icon { grid-area: 1 / 2 / span 2; }

.swiftfairy-app-icon {
    width: 100%;
    height: auto;
    margin-top: 46px;
    filter: drop-shadow(0 16px 22px rgba(0, 0, 0, 0.18));
}

.swiftfairy-eyebrow {
    margin: 0 0 14px;
    color: var(--yellow);
    font-size: 0.95rem !important;
    font-weight: 700 !important;
    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-tagline {
    margin: 12px 0 0;
    color: var(--secondary-text-color);
    font-family: "Alegreya", Georgia, "Times New Roman", serif;
    font-size: clamp(1.7rem, 4vw, 2.3rem) !important;
    font-weight: 400 !important;
    line-height: 1.2 !important;
}

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

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

/* 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: 360px; justify-self: center; }
    .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-hero-trial {
    margin: 28px 0 0;
    font-weight: 600 !important;
}

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

.swiftfairy-primary-link {
    display: inline-block;
    text-align: center;
    padding: 12px 20px;
    border-radius: 10px;
    color: #151515;
    background: var(--button-color);
    font-weight: 600;
    text-decoration: none;
    text-transform: uppercase;
}

.swiftfairy-hero-actions {
    flex-direction: column;
    align-items: flex-start;
}

.swiftfairy-hero-secondary-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 20px;
}

.swiftfairy-hero-secondary-actions a {
    white-space: nowrap;
}

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

.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 { text-decoration-color: currentColor; }

.swiftfairy-primary-link: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(3, 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-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 .swiftfairy-hero h1 {
    font-size: clamp(2.2rem, 6vw, 3.4rem);
}

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

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

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

.swiftfairy-guide-content .swiftfairy-section h3 {
    margin: 28px 0 8px;
    font-size: 1.2rem;
    font-weight: 600;
}

.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-guide-content a:not(.swiftfairy-primary-link):not(.scroll-purchase-back) {
    color: var(--header-text-color);
    font-weight: 400;
    text-decoration: none;
}

.swiftfairy-guide-content a:not(.swiftfairy-primary-link):not(.scroll-purchase-back):hover {
    text-decoration: underline;
    text-underline-offset: 3px;
}

.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-nav img {
    display: block;
    width: 40px;
    height: 40px;
    object-fit: contain;
}

@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-team {
    display: flex;
    justify-content: space-around;
    align-items: flex-start;
    gap: 24px;
    max-width: 600px;
    margin: 48px auto;
}

.swiftfairy-team figure { flex: 0 1 180px; min-width: 0; margin: 0; text-align: center; }
.swiftfairy-team picture { display: block; }
.swiftfairy-team img { display: block; width: min(160px, 100%); height: auto; margin: 0 auto; }
.swiftfairy-team figcaption { margin-top: 12px; font-size: 1rem; font-weight: 500; line-height: 1.4; }

.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-home-hero {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .swiftfairy-home-hero > .swiftfairy-app-icon {
        grid-area: 2 / 1;
        width: 140px;
        margin: 0 0 24px;
    }

    .swiftfairy-home-hero > .swiftfairy-hero-copy { grid-area: 3 / 1; }

    .swiftfairy-feature-grid,
    .swiftfairy-detail-grid,
    .swiftfairy-process,
    .swiftfairy-scroll-grid,
    .swiftfairy-license-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(--purple); }

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

.scroll-purchase-page h1 {
    padding-bottom: 0.08em;
    font-size: clamp(2.5rem, 7vw, 4rem);
    line-height: 1.08;
}

.scroll-purchase-introduction {
    max-width: 720px;
    margin: 20px 0 0;
    color: var(--secondary-text-color);
    font-size: 1.15rem;
    font-weight: 300;
    line-height: 1.55;
}

.scroll-purchase-trial {
    max-width: 720px;
    margin-top: 28px;
    padding: 20px 24px;
    border-left: 4px solid var(--yellow);
    background: color-mix(in srgb, var(--yellow) 8%, var(--background-color));
}

.scroll-purchase-trial strong {
    font-size: 1.05rem;
    font-weight: 650;
}

.scroll-purchase-trial p {
    margin: 6px 0 0;
    color: var(--secondary-text-color);
    font-size: 0.95rem;
    font-weight: 300;
    line-height: 1.5;
}

.scroll-purchase-volume-link {
    display: inline-block;
    margin: 8px 0;
    color: var(--purple);
    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(--yellow);
    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: 11px 20px;
    border: 0;
    border-radius: 10px;
    color: #151515;
    background: var(--button-color);
    cursor: pointer;
    font-family: inherit;
    font-size: 0.95rem;
    font-weight: 700;
    text-align: center;
    text-decoration: none;
    text-transform: uppercase;
    white-space: nowrap;
}

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

.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 230px; }

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

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

    .scroll-purchase-page h1 {
        font-size: clamp(2.25rem, 12vw, 3rem);
        line-height: 1.08;
    }

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

    .scroll-purchase-trial {
        margin-top: 22px;
        padding: 18px 20px;
    }

    .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%; }

}

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

    .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 14px;
        font-size: 0.9rem;
    }

}

.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 { padding-bottom: 48px; }
.swiftfairy-scroll-page .swiftfairy-hero > p:not(.swiftfairy-eyebrow) { margin-top: 24px; }
.swiftfairy-scroll-page .swiftfairy-scroll-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }

@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 { font-size: 1.5rem; 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; }
.swiftfairy-content .scroll-example-more {
    margin: 30px 0 0;
    color: var(--yellow);
    font-size: 1.15rem;
    font-weight: 700;
}
@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; }
