/**
 * Swift Auth — standalone account & subscribe experience.
 *
 * Self-contained: no Bootstrap, no theme CSS. AccountRouter dequeues the active
 * theme's assets on these routes, so everything here starts from scratch.
 *
 * Per-site branding comes from two custom properties only — --sa-accent and
 * --sa-panel-bg — emitted inline by templates/account-shell.php. Type scale,
 * spacing and the 4px radius are fixed so all sites read as one system.
 *
 * Class prefix: .sa-
 */

/* ==========================================================================
   Typeface  (OFL, self-hosted latin subsets — see public/fonts/README.md)
   Archivo   display: headings, buttons, labels
   Plex Sans body: prose, inputs
   Plex Mono utility: eyebrows, badges, the verification code
   Spectral  editorial: newspaper headlines, quoted from the publication itself
   ========================================================================== */

@font-face {
    font-family: 'Archivo';
    font-style: normal;
    font-weight: 600 800;
    font-display: swap;
    src: url('../fonts/archivo-var-latin.woff2') format('woff2');
}

@font-face {
    font-family: 'IBM Plex Sans';
    font-style: normal;
    font-weight: 400 600;
    font-display: swap;
    src: url('../fonts/ibm-plex-sans-var-latin.woff2') format('woff2');
}

@font-face {
    font-family: 'IBM Plex Mono';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('../fonts/ibm-plex-mono-400-latin.woff2') format('woff2');
}

@font-face {
    font-family: 'IBM Plex Mono';
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    src: url('../fonts/ibm-plex-mono-500-latin.woff2') format('woff2');
}

@font-face {
    font-family: 'Spectral';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('../fonts/spectral-400-latin.woff2') format('woff2');
}

/* ==========================================================================
   Tokens
   ========================================================================== */

:root {
    /* Per-site overrides (set inline by the shell template) */
    --sa-accent: #2f4f9e;
    --sa-panel-bg: #17181a;

    /* Derived from --sa-accent; the plain value is the fallback for browsers
       without color-mix(), the second declaration wins where it's supported. */
    --sa-accent-strong: #223b78;
    --sa-accent-strong: color-mix(in srgb, var(--sa-accent) 80%, #000);
    --sa-accent-wash: #f7f9fc;
    --sa-accent-wash: color-mix(in srgb, var(--sa-accent) 5%, #fff);
    --sa-focus-ring: rgba(47, 79, 158, 0.14);
    --sa-focus-ring: color-mix(in srgb, var(--sa-accent) 16%, transparent);

    /* Ink */
    --sa-ink: #17181a;
    --sa-ink-strong: #31363c;
    --sa-body: #41474e;
    --sa-muted: #5e646b;
    --sa-subtle: #8a9099;

    /* Surfaces */
    --sa-bg: #fff;
    --sa-surface: #f7f8fa;
    --sa-border: #d5d9de;
    --sa-border-light: #e2e5e8;
    --sa-border-input: #c3c8ce;
    --sa-border-control: #9aa1a9;

    /* Panel (dark) */
    --sa-panel-fg: #f2f3f4;
    --sa-panel-muted: #a8b0b8;
    --sa-panel-dim: #7f8790;
    --sa-panel-faint: #6b7379;
    --sa-panel-rule: #2c2e31;
    --sa-panel-kicker: #6d8ac9;

    /* Status */
    --sa-error: #a52020;
    --sa-error-border: #c0392b;
    --sa-error-bg: #fdf4f4;
    --sa-error-edge: #e0b4b4;
    --sa-error-title: #8e1b1b;
    --sa-ok: #1f6b43;
    --sa-ok-bg: #eef7f1;
    --sa-ok-edge: #b8d9c5;
    --sa-warn: #c98a1e;

    /* Type */
    --sa-font-display: 'Archivo', system-ui, -apple-system, 'Segoe UI', sans-serif;
    --sa-font-body: 'IBM Plex Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
    --sa-font-mono: 'IBM Plex Mono', ui-monospace, 'SF Mono', Menlo, monospace;
    --sa-font-serif: 'Spectral', Georgia, 'Times New Roman', serif;

    /* Geometry */
    --sa-radius: 4px;
    --sa-radius-sm: 3px;
    --sa-panel-w: 560px;
}

/* ==========================================================================
   Base
   ========================================================================== */

.swift-account * {
    box-sizing: border-box;
}

.swift-account {
    margin: 0;
    background: var(--sa-bg);
    color: var(--sa-ink);
    font-family: var(--sa-font-body);
    font-size: 14.5px;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
}

.swift-account a {
    color: var(--sa-accent);
}

.swift-account a:hover {
    color: var(--sa-accent-strong);
}

.sa-app {
    display: flex;
    min-height: 100vh;
}

/* One visible focus treatment for everything interactive. */
.swift-account :focus-visible {
    outline: 2px solid var(--sa-accent);
    outline-offset: 2px;
    border-radius: 2px;
}

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

/* Shown for the moment the legacy bundle takes to bring Cognito up. */
.sa-boot {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.swift-account-noscript {
    max-width: 34rem;
    margin: 0 auto;
    padding: 4rem 1.5rem;
    font-family: var(--sa-font-body);
}

/* ==========================================================================
   Layout
   ========================================================================== */

.sa-panel {
    width: var(--sa-panel-w);
    flex: none;
    background: var(--sa-panel-bg);
    padding: 34px 40px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.sa-main {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.sa-main__inner {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 58px 72px;
}

/* Plans and upgrade run full width — the panel is hidden and the content is
   wide enough that the vertical centring above would fight the page. */
.sa-app--wide .sa-main__inner {
    padding: 48px 60px 54px;
    justify-content: flex-start;
}

.sa-screen {
    width: 100%;
    max-width: 560px;
}

.sa-app--wide .sa-screen {
    max-width: 1000px;
}

.sa-screen--narrow {
    max-width: 470px;
}

/* Masthead bar. Hidden on desktop where the panel carries the brand, shown
   below 900px, and always shown on the wide screens where there is no panel. */
.sa-mobile-masthead {
    display: none;
    background: var(--sa-panel-bg);
    padding: 20px 20px 18px;
}

.sa-app--wide .sa-mobile-masthead {
    display: block;
    padding: 22px 60px 20px;
}

/* ==========================================================================
   Panel content
   ========================================================================== */

.sa-wordmark {
    font: 800 27px/1 var(--sa-font-display);
    letter-spacing: -0.02em;
    color: #fff;
    text-decoration: none;
    display: inline-block;
}

.sa-wordmark img {
    display: block;
    max-width: 260px;
    height: auto;
}

.sa-tagline {
    font: 500 9.5px/1 var(--sa-font-mono);
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: var(--sa-panel-dim);
    margin-top: 10px;
}

.sa-panel__kicker {
    margin-top: 44px;
    font: 600 15px/1.3 var(--sa-font-display);
    color: var(--sa-panel-muted);
}

.sa-teasers {
    margin-top: 18px;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.sa-teaser {
    border-top: 1px solid var(--sa-panel-rule);
    padding-top: 16px;
    text-decoration: none;
    display: block;
}

.sa-teaser__kicker {
    font: 500 9.5px/1 var(--sa-font-mono);
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--sa-panel-kicker);
}

.sa-teaser__title {
    font: 400 21px/1.3 var(--sa-font-serif);
    color: var(--sa-panel-fg);
    margin-top: 8px;
}

.sa-teaser:hover .sa-teaser__title {
    text-decoration: underline;
}

.sa-sponsor {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 34px;
}

.sa-sponsor__label {
    font: 500 9px/1 var(--sa-font-mono);
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--sa-panel-faint);
}

.sa-sponsor__slot {
    max-width: 480px;
}

.sa-sponsor__slot img,
.sa-sponsor__slot iframe {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ==========================================================================
   Typography
   ========================================================================== */

.sa-kicker {
    font: 500 10px/1 var(--sa-font-mono);
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--sa-subtle);
}

.sa-h1 {
    font: 700 34px/1.1 var(--sa-font-display);
    color: var(--sa-ink);
    letter-spacing: -0.025em;
    margin: 11px 0 0;
}

.sa-lede {
    font: 400 14.5px/1.55 var(--sa-font-body);
    color: var(--sa-muted);
    margin: 9px 0 0;
    max-width: 460px;
}

.sa-fine {
    margin-top: 28px;
    border-top: 1px solid var(--sa-border-light);
    padding-top: 18px;
    font: 400 11.5px/1.6 var(--sa-font-body);
    color: var(--sa-subtle);
}

.sa-note {
    font: 400 13px/1.6 var(--sa-font-body);
    color: var(--sa-muted);
    margin-top: 18px;
}

.sa-note--small {
    font-size: 12.5px;
    color: var(--sa-subtle);
    margin-top: 14px;
}

/* ==========================================================================
   Divider
   ========================================================================== */

.sa-divider {
    display: flex;
    align-items: center;
    gap: 14px;
    margin: 24px 0 17px;
}

.sa-divider::before,
.sa-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--sa-border-light);
}

.sa-divider span {
    font: 500 10px var(--sa-font-mono);
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--sa-subtle);
}

/* ==========================================================================
   Forms
   ========================================================================== */

.sa-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-top: 16px;
}

.sa-field:first-of-type {
    margin-top: 18px;
}

.sa-label {
    font: 600 12px/1 var(--sa-font-display);
    color: var(--sa-ink-strong);
}

.sa-input {
    width: 100%;
    border: 1px solid var(--sa-border-input);
    border-radius: var(--sa-radius);
    padding: 13px 14px;
    font-family: var(--sa-font-body);
    font-size: 14.5px;
    line-height: 1.3;
    color: var(--sa-ink);
    background: #fff;
}

.sa-input:focus {
    outline: none;
    border-color: var(--sa-accent);
    box-shadow: 0 0 0 3px var(--sa-focus-ring);
}

.sa-input--error {
    border-color: var(--sa-error-border);
}

.sa-input--code {
    font-family: var(--sa-font-mono);
    font-size: 20px;
    letter-spacing: 0.34em;
    max-width: 260px;
}

.sa-input-wrap {
    position: relative;
    display: flex;
}

.sa-input-wrap .sa-input {
    padding-right: 62px;
}

.sa-reveal {
    position: absolute;
    right: 13px;
    top: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    font: 600 12.5px var(--sa-font-display);
    color: var(--sa-accent);
    background: none;
    border: 0;
    padding: 0;
    cursor: pointer;
}

.sa-error {
    font: 400 12.5px/1.4 var(--sa-font-body);
    color: var(--sa-error);
}

/* Checkbox — a real input, visually replaced by the box */

.sa-check {
    display: flex;
    gap: 11px;
    align-items: flex-start;
    margin-top: 18px;
    cursor: pointer;
}

.sa-check input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.sa-check__box {
    width: 18px;
    height: 18px;
    flex: none;
    border: 1px solid var(--sa-border-control);
    border-radius: var(--sa-radius-sm);
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font: 700 11px var(--sa-font-display);
    margin-top: 1px;
}

.sa-check input:checked + .sa-check__box {
    background: var(--sa-ink);
    border-color: var(--sa-ink);
}

.sa-check input:checked + .sa-check__box::after {
    content: '✓';
}

.sa-check input:focus-visible + .sa-check__box {
    outline: 2px solid var(--sa-accent);
    outline-offset: 2px;
}

.sa-check--error .sa-check__box {
    border-color: var(--sa-error-border);
}

.sa-check__text {
    font: 400 13px/1.55 var(--sa-font-body);
    color: var(--sa-body);
    max-width: 460px;
}

.sa-form-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-top: 16px;
}

/* Password strength */

.sa-strength {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 7px;
}

.sa-strength__track {
    flex: 1;
    height: 4px;
    background: #e6e9ec;
    border-radius: 2px;
    overflow: hidden;
}

.sa-strength__bar {
    height: 4px;
    width: 0;
    background: #e6e9ec;
    transition: width 0.18s ease, background-color 0.18s ease;
}

.sa-strength__bar--weak { background: var(--sa-error-border); }
.sa-strength__bar--fair { background: var(--sa-warn); }
.sa-strength__bar--good,
.sa-strength__bar--strong { background: var(--sa-ok); }

.sa-strength__label {
    font: 500 11.5px var(--sa-font-body);
    color: #6b7279;
    min-width: 74px;
}

/* ==========================================================================
   Buttons
   ========================================================================== */

.sa-btn {
    display: block;
    width: 100%;
    text-align: center;
    padding: 15px 0;
    border: 1px solid transparent;
    border-radius: var(--sa-radius);
    font: 700 14.5px var(--sa-font-display);
    cursor: pointer;
    text-decoration: none;
    margin-top: 24px;
}

.sa-btn--primary {
    background: var(--sa-ink);
    color: #fff;
}

.sa-btn--primary:hover {
    background: #000;
    color: #fff;
}

.sa-btn--secondary {
    background: #fff;
    color: var(--sa-ink-strong);
    border-color: var(--sa-border-input);
    font-weight: 600;
    font-size: 14px;
}

.sa-btn--accent {
    background: var(--sa-accent);
    color: #fff;
    font-size: 13px;
    padding: 12px 17px;
    width: auto;
    margin-top: 0;
    white-space: nowrap;
}

.sa-btn--accent:hover {
    background: var(--sa-accent-strong);
    color: #fff;
}

.sa-btn--inline {
    width: auto;
    padding: 15px 30px;
    margin-top: 0;
}

.sa-btn[disabled],
.sa-btn[aria-busy='true'] {
    opacity: 0.6;
    cursor: not-allowed;
}

.sa-link {
    background: none;
    border: 0;
    padding: 0;
    font: 600 13px var(--sa-font-display);
    color: var(--sa-accent);
    cursor: pointer;
    text-decoration: none;
}

.sa-link:hover {
    color: var(--sa-accent-strong);
    text-decoration: underline;
}

.sa-link--back {
    font-size: 12.5px;
    display: inline-block;
}

.sa-link--quiet {
    color: var(--sa-subtle);
}

.sa-btn-stack {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 12px;
    align-items: center;
}

/* Social */

.sa-social {
    display: flex;
    gap: 11px;
}

.sa-social__btn {
    flex: 1;
    border: 1px solid var(--sa-border-input);
    border-radius: var(--sa-radius);
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 13px 0;
    font: 600 13.5px var(--sa-font-display);
    color: var(--sa-ink);
    cursor: pointer;
}

.sa-social__btn:hover {
    border-color: var(--sa-border-control);
}

.sa-social__mark {
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sa-social__mark svg {
    width: 18px;
    height: 18px;
    display: block;
}

/* ==========================================================================
   Upsell + banner
   ========================================================================== */

.sa-upsell {
    margin-top: 22px;
    border: 1px solid var(--sa-border);
    border-left: 3px solid var(--sa-accent);
    border-radius: var(--sa-radius);
    padding: 16px 18px;
    background: var(--sa-accent-wash);
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 13px;
}

.sa-upsell__copy {
    min-width: 190px;
}

.sa-upsell__title {
    font: 700 15px/1.3 var(--sa-font-display);
    color: var(--sa-ink);
}

.sa-upsell__body {
    font: 400 12.5px/1.45 var(--sa-font-body);
    color: var(--sa-muted);
    margin-top: 3px;
}

.sa-banner {
    margin-top: 16px;
    border: 1px solid var(--sa-error-edge);
    background: var(--sa-error-bg);
    border-left: 3px solid var(--sa-error);
    border-radius: var(--sa-radius);
    padding: 13px 15px;
    /* Focused programmatically to carry the reader to the message; the outline
       would otherwise read as though they had tabbed here themselves. */
    outline: none;
    scroll-margin-block: 24px;
}

.sa-banner__title {
    font: 700 13px/1.4 var(--sa-font-display);
    color: var(--sa-error-title);
}

.sa-banner__body {
    font: 400 12.5px/1.5 var(--sa-font-body);
    color: var(--sa-muted);
    margin-top: 3px;
}

.sa-banner__action {
    display: inline-block;
    margin-top: 10px;
    font: 700 12.5px var(--sa-font-display);
    color: var(--sa-accent);
    text-decoration: underline;
    background: none;
    border: 0;
    padding: 0;
    cursor: pointer;
}

.sa-callout {
    margin-top: 18px;
    border: 1px solid var(--sa-border-light);
    background: var(--sa-surface);
    border-radius: var(--sa-radius);
    padding: 13px 15px;
    font: 400 12.5px/1.6 var(--sa-font-body);
    color: var(--sa-muted);
}

/* Status mark (welcome / handoff screens) */

.sa-mark {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font: 700 18px var(--sa-font-display);
    border: 1px solid var(--sa-border);
    background: var(--sa-surface);
    color: var(--sa-muted);
}

.sa-mark--ok {
    border-color: var(--sa-ok-edge);
    background: var(--sa-ok-bg);
    color: var(--sa-ok);
}

.sa-mark--info {
    border-color: #c3d0ea;
    background: #f2f6fd;
    color: var(--sa-accent);
}

.sa-mark + .sa-h1 {
    margin-top: 20px;
}

/* ==========================================================================
   Plans
   ========================================================================== */

.sa-plans-head {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 16px;
    flex-wrap: wrap;
}

.sa-plans-head .sa-lede {
    max-width: 560px;
}

.sa-section {
    margin-top: 26px;
    border: 1px solid var(--sa-border-light);
    border-radius: var(--sa-radius);
    overflow: hidden;
}

.sa-section__head {
    background: var(--sa-surface);
    border-bottom: 1px solid var(--sa-border-light);
    padding: 11px 16px;
    font: 600 10px var(--sa-font-mono);
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--sa-muted);
}

.sa-section__body {
    padding: 18px 16px 20px;
}

.sa-pay {
    display: flex;
    gap: 12px;
    padding: 14px 16px;
}

.sa-pay__option {
    flex: 1;
    border: 1px solid var(--sa-border);
    border-radius: var(--sa-radius);
    padding: 14px 16px;
    display: flex;
    align-items: center;
    gap: 11px;
    background: #fff;
    cursor: pointer;
    text-align: left;
}

.sa-pay__option[aria-checked='true'] {
    border: 2px solid var(--sa-ink);
    padding: 13px 15px; /* keep the box the same size as the 1px state */
    background: var(--sa-surface);
}

.sa-pay__radio {
    width: 17px;
    height: 17px;
    border-radius: 50%;
    border: 1px solid var(--sa-border-control);
    flex: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sa-pay__radio::after {
    content: '';
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: transparent;
}

.sa-pay__option[aria-checked='true'] .sa-pay__radio::after {
    background: var(--sa-ink);
}

.sa-pay__name {
    font: 600 13.5px var(--sa-font-display);
    color: var(--sa-ink);
    flex: 1;
}

.sa-badge {
    font: 600 10.5px var(--sa-font-mono);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 5px 8px;
    border-radius: var(--sa-radius-sm);
    color: var(--sa-muted);
    background: #eef0f2;
    white-space: nowrap;
}

.sa-badge--free {
    color: var(--sa-ok);
    background: #e7f4ec;
}

.sa-plans {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    margin-top: 16px;
}

.sa-plans--two { grid-template-columns: repeat(2, 1fr); }
.sa-plans--one { grid-template-columns: 1fr; }

.sa-plan {
    border: 1px solid var(--sa-border);
    border-radius: var(--sa-radius);
    padding: 22px 20px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    background: #fff;
    cursor: pointer;
    text-align: left;
}

.sa-plan[aria-checked='true'] {
    border: 2px solid var(--sa-ink);
    padding: 21px 19px;
}

.sa-plan__tag {
    font: 600 10px var(--sa-font-mono);
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--sa-subtle);
    min-height: 12px;
}

.sa-plan__tag--featured {
    color: var(--sa-accent);
}

.sa-plan__name {
    font: 700 16px var(--sa-font-display);
    color: var(--sa-ink);
}

.sa-plan__price {
    font: 700 32px/1 var(--sa-font-display);
    color: var(--sa-ink);
    letter-spacing: -0.02em;
    margin-top: 6px;
}

.sa-plan__note {
    font: 400 12.5px/1.5 var(--sa-font-body);
    color: var(--sa-muted);
    margin-top: 2px;
}

.sa-grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
}

.sa-summary {
    margin-top: 20px;
    display: flex;
    gap: 14px;
    align-items: center;
    justify-content: space-between;
    border-top: 1px solid var(--sa-border-light);
    padding-top: 18px;
}

.sa-summary__line {
    font: 600 13.5px var(--sa-font-display);
    color: var(--sa-ink);
}

.sa-summary__fine {
    font: 400 12px/1.5 var(--sa-font-body);
    color: var(--sa-subtle);
    margin-top: 2px;
}

.sa-summary__actions {
    display: flex;
    gap: 10px;
    align-items: center;
}

/* Receipt-style rows on the checkout handoff */

.sa-receipt {
    margin-top: 22px;
    border: 1px solid var(--sa-border-light);
    border-radius: var(--sa-radius);
    padding: 16px 18px;
    background: var(--sa-surface);
}

.sa-receipt__row {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    font: 400 13px/1.7 var(--sa-font-body);
    color: var(--sa-muted);
}

.sa-receipt__row--total {
    border-top: 1px solid var(--sa-border-light);
    margin-top: 8px;
    padding-top: 8px;
}

.sa-receipt__row b {
    color: var(--sa-ink);
    font-weight: 600;
}

/* "Start here" article card on the welcome screen */

.sa-article {
    margin-top: 24px;
    border: 1px solid var(--sa-border-light);
    border-radius: var(--sa-radius);
    padding: 18px 20px;
    display: block;
    text-decoration: none;
}

.sa-article__kicker {
    font: 600 10px var(--sa-font-mono);
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--sa-subtle);
}

.sa-article__title {
    font: 400 19px/1.35 var(--sa-font-serif);
    color: var(--sa-ink);
    margin-top: 9px;
}

.sa-article__meta {
    font: 400 12.5px/1.5 var(--sa-font-body);
    color: var(--sa-subtle);
    margin-top: 7px;
}

/* Spinner used while waiting on the Stripe webhook */

.sa-spinner {
    width: 18px;
    height: 18px;
    border: 2px solid var(--sa-border);
    border-top-color: var(--sa-accent);
    border-radius: 50%;
    animation: sa-spin 0.7s linear infinite;
    display: inline-block;
}

.sa-mark .sa-spinner {
    margin: 0;
}

@keyframes sa-spin {
    to { transform: rotate(360deg); }
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 1180px) {
    :root { --sa-panel-w: 420px; }

    .sa-main__inner { padding: 48px 48px; }
    .sa-sponsor__slot { max-width: 340px; }
}

@media (max-width: 900px) {
    .sa-app {
        flex-direction: column;
        min-height: 100vh;
    }

    .sa-panel { display: none; }

    .sa-mobile-masthead,
    .sa-app--wide .sa-mobile-masthead {
        display: block;
        padding: 20px 20px 18px;
    }

    .sa-main__inner,
    .sa-app--wide .sa-main__inner {
        padding: 26px 20px 34px;
        justify-content: flex-start;
    }

    .sa-wordmark { font-size: 21px; }

    .sa-tagline {
        font-size: 8.5px;
        letter-spacing: 0.26em;
        margin-top: 9px;
    }

    .sa-h1 { font-size: 27px; }

    .sa-social { flex-direction: column; }

    .sa-pay { flex-direction: column; }

    .sa-plans,
    .sa-plans--two,
    .sa-grid-2 { grid-template-columns: 1fr; }

    .sa-summary {
        flex-direction: column;
        align-items: stretch;
    }

    .sa-summary__actions {
        flex-direction: column;
        width: 100%;
    }

    .sa-summary__actions .sa-btn { width: 100%; }

    .sa-btn--accent {
        width: 100%;
        text-align: center;
    }

    .sa-upsell__copy { min-width: 100%; }
}

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