/* ==========================================================================
   AI Studio — "精密校对台 / Precision Proofing Desk"
   专业工具 / 高科技感 · 浅色主题 design system for the /ai-tools section
   Shared across: ai_tools, ai_typo_work, ai_typo_tool, ai_polish_tool,
   ai_feature_tutorial

   Concept: a sheet of proofing paper on a drafting / copy-editing desk.
   - drafting-grid backdrop, white "proof sheet" panels
   - registration / crop marks on hero corners (the signature element)
   - ruler ticks, hairline rules, mono "instrument readout" data type
   - accents = real proofing-tool inks:
       emerald section stays for legacy, but each tool owns a real ink:
       错别字 = 朱红校对笔 (red proof pen)
       润色   = 蓝铅笔 (editor's blue pencil)
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@500;600;700&family=Space+Grotesk:wght@500;600;700&family=Noto+Sans+SC:wght@400;500;700;900&display=swap');

:root {
    /* paper & ink */
    --ais-bg: #eef0f4;
    --ais-bg-2: #f4f6f9;
    --ais-paper: #ffffff;
    --ais-surface: #ffffff;
    --ais-surface-2: #fbfcfe;
    --ais-ink: #0b1220;
    --ais-ink-2: #28324a;
    --ais-line: #e3e7ee;
    --ais-line-strong: #cfd5e0;
    --ais-text: #0b1220;
    --ais-text-soft: #4a5468;
    --ais-text-muted: #8a93a6;

    /* type roles */
    --ais-display: 'Space Grotesk', 'Noto Sans SC', sans-serif;
    --ais-body: 'Noto Sans SC', sans-serif;
    --ais-mono: 'JetBrains Mono', ui-monospace, monospace;

    --ais-radius: 10px;
    --ais-radius-sm: 8px;

    /* default accent = red proof pen */
    --accent: #e0402e;
    --accent-2: #c5331f;
    --accent-rgb: 224, 64, 46;
    --accent-name: "RED PROOF PEN";
}

.accent-emerald {
    /* 错别字 = 朱红校对笔 (red proof pen) */
    --accent: #e0402e;
    --accent-2: #b62f1d;
    --accent-rgb: 224, 64, 46;
    --accent-name: "RED PROOF PEN \00B7 校对笔";
}

.accent-orange {
    /* 润色 = 蓝铅笔 (editor's blue pencil) */
    --accent: #2f5fd0;
    --accent-2: #214aa8;
    --accent-rgb: 47, 95, 208;
    --accent-name: "BLUE PENCIL \00B7 蓝铅笔";
}

/* ==========================================================================
   Page shell — drafting desk
   ========================================================================== */
.ais-page {
    position: relative;
    min-height: calc(100vh - 9rem);
    font-family: var(--ais-body);
    color: var(--ais-text);
    background-color: var(--ais-bg);
    background-image:
        /* fine drafting grid */
        linear-gradient(var(--ais-line) 1px, transparent 1px),
        linear-gradient(90deg, var(--ais-line) 1px, transparent 1px),
        /* coarse grid */
        linear-gradient(rgba(11, 18, 32, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(11, 18, 32, 0.04) 1px, transparent 1px);
    background-size: 28px 28px, 28px 28px, 140px 140px, 140px 140px;
    overflow: hidden;
}

/* soft paper wash so the grid fades toward the edges */
.ais-page::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(1200px 700px at 50% -10%, rgba(255, 255, 255, 0.85), transparent 70%),
        linear-gradient(180deg, rgba(244, 246, 249, 0.4), rgba(238, 240, 244, 0.7));
    pointer-events: none;
}

.ais-shell {
    position: relative;
    z-index: 1;
    max-width: 1160px;
}

/* ==========================================================================
   Typography
   ========================================================================== */
.ais-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    font-family: var(--ais-mono);
    font-size: 11.5px;
    font-weight: 600;
    letter-spacing: 0.26em;
    text-transform: uppercase;
    color: var(--accent-2);
}

.ais-eyebrow::before {
    content: "";
    width: 26px;
    height: 2px;
    background: var(--accent);
}

/* a small mono "spec tag" that can show the active ink */
.ais-eyebrow[data-ink]::after {
    content: "[ " attr(data-ink) " ]";
    margin-left: 4px;
    color: var(--ais-text-muted);
    letter-spacing: 0.18em;
}

.ais-title {
    font-family: var(--ais-display);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.02em;
    color: var(--ais-ink);
}

.ais-subtitle {
    font-family: var(--ais-body);
    color: var(--ais-text-soft);
    line-height: 1.75;
}

.ais-text-soft {
    color: var(--ais-text-soft);
}

.ais-text-muted {
    color: var(--ais-text-muted);
}

/* mono utility for numbers / readouts */
.ais-mono {
    font-family: var(--ais-mono);
    font-variant-numeric: tabular-nums;
    letter-spacing: 0.02em;
}

/* ==========================================================================
   Back link
   ========================================================================== */
.ais-back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--ais-mono);
    font-size: 12.5px;
    font-weight: 600;
    letter-spacing: 0.04em;
    color: var(--ais-text-soft);
    text-decoration: none;
    transition: color 160ms ease, gap 160ms ease;
}

.ais-back:hover {
    color: var(--accent-2);
    gap: 12px;
}

.ais-back i {
    color: var(--accent);
}

/* ==========================================================================
   Glass / proof-sheet panels
   ========================================================================== */
.ais-glass {
    position: relative;
    border: 1px solid var(--ais-line);
    border-radius: var(--ais-radius);
    background: var(--ais-paper);
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.9) inset,
        0 18px 40px -28px rgba(11, 18, 32, 0.35),
        0 2px 8px -4px rgba(11, 18, 32, 0.08);
}

/* hero = the proof sheet, gets crop marks + ruler + accent spine */
.ais-hero {
    overflow: visible;
}

/* accent "ink spine" down the left edge */
.ais-hero::before {
    content: "";
    position: absolute;
    left: 0;
    top: 14px;
    bottom: 14px;
    width: 3px;
    border-radius: 3px;
    background: linear-gradient(180deg, var(--accent), var(--accent-2));
}

/* registration / crop marks at the four corners — the SIGNATURE element */
.ais-hero .ais-regmark {
    position: absolute;
    width: 18px;
    height: 18px;
    pointer-events: none;
    opacity: 0.7;
}

.ais-hero .ais-regmark::before,
.ais-hero .ais-regmark::after {
    content: "";
    position: absolute;
    background: var(--ais-line-strong);
}

.ais-hero .ais-regmark::before {
    width: 100%;
    height: 1.5px;
    top: 50%;
    transform: translateY(-50%);
}

.ais-hero .ais-regmark::after {
    height: 100%;
    width: 1.5px;
    left: 50%;
    transform: translateX(-50%);
}

.ais-hero .ais-regmark.tl {
    top: -9px;
    left: -9px;
}

.ais-hero .ais-regmark.tr {
    top: -9px;
    right: -9px;
}

.ais-hero .ais-regmark.bl {
    bottom: -9px;
    left: -9px;
}

.ais-hero .ais-regmark.br {
    bottom: -9px;
    right: -9px;
}

/* ruler ticks along the hero top */
.ais-ruler {
    position: relative;
    height: 16px;
    margin-bottom: 18px;
    background-image: repeating-linear-gradient(90deg,
            var(--ais-line-strong) 0,
            var(--ais-line-strong) 1px,
            transparent 1px,
            transparent 16px);
    -webkit-mask-image: linear-gradient(90deg, #000 0%, #000 60%, transparent 100%);
    mask-image: linear-gradient(90deg, #000 0%, #000 60%, transparent 100%);
}

.ais-ruler::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 1px;
    background: var(--ais-line);
}

/* ==========================================================================
   Interactive cards
   ========================================================================== */
.ais-card {
    position: relative;
    display: block;
    border: 1px solid var(--ais-line);
    border-radius: var(--ais-radius);
    background: var(--ais-surface);
    box-shadow: 0 14px 36px -28px rgba(11, 18, 32, 0.3);
    text-decoration: none;
    color: inherit;
    overflow: hidden;
    transition: transform 200ms cubic-bezier(.2, .7, .2, 1), border-color 200ms ease, box-shadow 200ms ease;
}

/* index tab on top-left, mono — encodes order only where it's real */
.ais-card[data-index]::before {
    content: attr(data-index);
    position: absolute;
    top: 0;
    left: 0;
    padding: 4px 10px;
    font-family: var(--ais-mono);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: var(--ais-text-muted);
    background: var(--ais-surface-2);
    border-right: 1px solid var(--ais-line);
    border-bottom: 1px solid var(--ais-line);
    border-bottom-right-radius: 8px;
}

/* accent top rule that grows on hover */
.ais-card::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    height: 3px;
    width: 0;
    background: linear-gradient(90deg, var(--accent), var(--accent-2));
    transition: width 260ms cubic-bezier(.2, .7, .2, 1);
}

.ais-card[href]:hover {
    transform: translateY(-5px);
    border-color: var(--ais-line-strong);
    box-shadow:
        0 28px 60px -34px rgba(11, 18, 32, 0.45),
        0 0 0 1px rgba(var(--accent-rgb), 0.18);
}

.ais-card[href]:hover::after {
    width: 100%;
}

.ais-card.is-disabled {
    opacity: 0.6;
    background:
        repeating-linear-gradient(45deg,
            transparent 0,
            transparent 9px,
            rgba(11, 18, 32, 0.025) 9px,
            rgba(11, 18, 32, 0.025) 18px),
        var(--ais-surface);
}

/* ==========================================================================
   Icon tiles
   ========================================================================== */
.ais-icon {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 54px;
    height: 54px;
    border-radius: 12px;
    color: var(--accent-2);
    background: rgba(var(--accent-rgb), 0.08);
    border: 1px solid rgba(var(--accent-rgb), 0.22);
    font-size: 1.35rem;
}

/* tiny corner ticks on icon tile for the instrument feel */
.ais-icon::after {
    content: "";
    position: absolute;
    inset: 5px;
    border: 1px solid rgba(var(--accent-rgb), 0.18);
    border-radius: 8px;
    pointer-events: none;
}

.ais-icon-muted {
    color: var(--ais-text-muted);
    background: rgba(11, 18, 32, 0.04);
    border-color: var(--ais-line);
}

.ais-icon-muted::after {
    border-color: var(--ais-line);
}

/* ==========================================================================
   Chips / spec tags
   ========================================================================== */
.ais-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border-radius: 6px;
    padding: 5px 10px;
    font-family: var(--ais-mono);
    font-size: 11.5px;
    font-weight: 600;
    letter-spacing: 0.02em;
    color: var(--ais-text-soft);
    background: var(--ais-surface-2);
    border: 1px solid var(--ais-line);
}

.ais-chip::before {
    content: "";
    width: 5px;
    height: 5px;
    border-radius: 1px;
    background: var(--accent);
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.ais-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    height: 46px;
    padding: 0 22px;
    border-radius: var(--ais-radius-sm);
    font-family: var(--ais-display);
    font-weight: 600;
    font-size: 14.5px;
    letter-spacing: 0.01em;
    cursor: pointer;
    border: 1px solid transparent;
    text-decoration: none;
    transition: transform 160ms ease, box-shadow 200ms ease, background 200ms ease, border-color 200ms ease, opacity 160ms ease;
}

.ais-btn-primary {
    color: #ffffff;
    background: var(--accent);
    box-shadow: 0 10px 24px -12px rgba(var(--accent-rgb), 0.7);
}

.ais-btn-primary:hover {
    transform: translateY(-2px);
    background: var(--accent-2);
    box-shadow: 0 16px 32px -12px rgba(var(--accent-rgb), 0.85);
}

.ais-btn-ghost {
    color: var(--ais-ink-2);
    background: var(--ais-surface);
    border-color: var(--ais-line-strong);
}

.ais-btn-ghost:hover {
    background: var(--ais-surface-2);
    border-color: var(--accent);
    color: var(--accent-2);
    transform: translateY(-2px);
}

.ais-btn:disabled {
    opacity: 0.5;
    cursor: wait;
    transform: none;
    box-shadow: none;
}

/* ==========================================================================
   Card CTA row
   ========================================================================== */
.ais-card-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--ais-mono);
    font-weight: 600;
    font-size: 13px;
    letter-spacing: 0.04em;
    color: var(--accent-2);
    transition: gap 180ms ease;
}

.ais-card[href]:hover .ais-card-cta {
    gap: 13px;
}

.ais-work-card {
    display: flex;
    flex-direction: column;
    min-height: 100%;
}

.ais-work-footer {
    margin-top: auto;
    padding-top: 28px;
}

.ais-work-meta {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 5px;
    padding: 12px 14px;
    border: 1px solid var(--ais-line);
    border-radius: 8px;
    background: rgba(248, 250, 252, 0.72);
}

.ais-work-meta-label {
    display: inline-flex;
    margin-right: 6px;
    font-family: var(--ais-body);
    font-size: 11px;
    font-weight: 700;
    line-height: 1.35;
    color: var(--ais-text-muted);
}

.ais-work-usage {
    display: flex;
    align-items: center;
    min-width: 0;
}

.ais-work-usage strong {
    display: inline-block;
    font-family: var(--ais-mono);
    font-size: 15px;
    font-weight: 800;
    line-height: 1.35;
    color: var(--accent-2);
}

.ais-work-authors {
    display: flex;
    flex-direction: column;
    gap: 5px;
    min-width: 0;
}

.ais-work-authors > .ais-work-meta-label {
    display: block;
    margin-right: 0;
}

.ais-work-author {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 8px;
    align-items: baseline;
    width: 100%;
    font-family: var(--ais-body);
    font-size: 12.5px;
    font-weight: 700;
    line-height: 1.55;
    color: var(--ais-text);
}

.ais-work-author + .ais-work-author {
    padding-top: 5px;
    border-top: 1px dashed rgba(148, 163, 184, 0.32);
}

.ais-work-author em {
    font-style: normal;
    font-weight: 600;
    color: var(--ais-text-muted);
}

.ais-card-actions {
    border-top: 1px solid var(--ais-line);
}

/* ==========================================================================
   Inputs / upload / tables (tool pages)
   ========================================================================== */
.ais-upload {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px;
    border: 1.5px dashed var(--ais-line-strong);
    border-radius: var(--ais-radius-sm);
    background:
        linear-gradient(rgba(var(--accent-rgb), 0.03), rgba(var(--accent-rgb), 0.03));
    cursor: pointer;
    transition: border-color 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.ais-upload:hover {
    border-color: var(--accent);
    background: rgba(var(--accent-rgb), 0.06);
    box-shadow: 0 0 0 4px rgba(var(--accent-rgb), 0.06);
}

.ais-upload.has-file {
    border-style: solid;
    border-color: rgba(var(--accent-rgb), 0.5);
    background: var(--ais-surface-2);
}

.ais-upload-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    flex-shrink: 0;
    border-radius: 10px;
    color: #ffffff;
    background: var(--accent);
    box-shadow: 0 8px 20px -10px rgba(var(--accent-rgb), 0.8);
    font-size: 1.2rem;
}

.ais-file-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 18px 20px;
    border: 1px solid var(--ais-line);
    border-left: 3px solid var(--accent);
    border-radius: var(--ais-radius-sm);
    background: var(--ais-surface-2);
}

.ais-meta {
    font-family: var(--ais-mono);
    color: var(--ais-text-muted);
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.02em;
}

.ais-mini-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    height: 38px;
    padding: 0 14px;
    border-radius: var(--ais-radius-sm);
    font-family: var(--ais-mono);
    font-size: 12.5px;
    font-weight: 600;
    color: var(--accent-2);
    background: rgba(var(--accent-rgb), 0.07);
    border: 1px solid rgba(var(--accent-rgb), 0.25);
    cursor: pointer;
    white-space: nowrap;
    transition: background 160ms ease, border-color 160ms ease;
}

.ais-mini-btn:hover {
    background: rgba(var(--accent-rgb), 0.13);
    border-color: rgba(var(--accent-rgb), 0.4);
}

.ais-mini-btn.danger {
    width: 38px;
    padding: 0;
    color: #c5331f;
    background: rgba(224, 64, 46, 0.08);
    border-color: rgba(224, 64, 46, 0.28);
}

.ais-mini-btn.danger:hover {
    background: rgba(224, 64, 46, 0.16);
}

/* action tiles */
.ais-action-tile {
    position: relative;
    display: block;
    width: 100%;
    text-align: left;
    padding: 20px;
    border: 1px solid var(--ais-line);
    border-radius: var(--ais-radius-sm);
    background: var(--ais-surface);
    cursor: pointer;
    transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.ais-action-tile::after {
    content: "";
    position: absolute;
    left: 0;
    top: 14px;
    bottom: 14px;
    width: 0;
    border-radius: 3px;
    background: var(--accent);
    transition: width 180ms ease;
}

.ais-action-tile:hover {
    transform: translateY(-3px);
    border-color: var(--ais-line-strong);
    background: var(--ais-surface-2);
    box-shadow: 0 18px 40px -28px rgba(var(--accent-rgb), 0.55);
}

.ais-action-tile:hover::after {
    width: 3px;
}

.ais-action-tile:disabled {
    opacity: 0.55;
    cursor: wait;
    transform: none;
    box-shadow: none;
}

.ais-action-tile:disabled::after {
    width: 0;
}

/* text input / textarea / selects */
.ais-input,
.ais-textarea,
.ais-select {
    width: 100%;
    font-family: var(--ais-body);
    color: var(--ais-text);
    background: var(--ais-surface);
    border: 1px solid var(--ais-line-strong);
    border-radius: var(--ais-radius-sm);
    outline: none;
    transition: border-color 160ms ease, box-shadow 160ms ease;
}

.ais-textarea {
    min-height: 240px;
    padding: 16px;
    resize: vertical;
    line-height: 1.8;
}

.ais-input {
    padding: 0 14px;
    height: 46px;
}

.ais-select {
    padding: 0 14px;
    height: 46px;
    font-weight: 500;
}

.ais-input:focus,
.ais-textarea:focus,
.ais-select:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(var(--accent-rgb), 0.12);
}

.ais-textarea::placeholder {
    color: var(--ais-text-muted);
}

/* segmented tabs */
.ais-segmented {
    display: inline-flex;
    gap: 3px;
    padding: 4px;
    border-radius: 10px;
    background: var(--ais-bg);
    border: 1px solid var(--ais-line);
}

.ais-seg {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    height: 40px;
    padding: 0 18px;
    border-radius: 7px;
    font-family: var(--ais-display);
    font-weight: 600;
    font-size: 14px;
    color: var(--ais-text-soft);
    cursor: pointer;
    border: none;
    background: transparent;
    transition: color 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

.ais-seg.active {
    color: var(--accent-2);
    background: var(--ais-paper);
    box-shadow: 0 2px 8px -3px rgba(11, 18, 32, 0.2);
}

/* status banner — monospaced readout */
.ais-status {
    border-radius: var(--ais-radius-sm);
    border: 1px solid var(--ais-line);
    border-left: 3px solid var(--ais-line-strong);
    background: var(--ais-surface-2);
    color: var(--ais-text-soft);
    padding: 14px 16px;
    font-family: var(--ais-mono);
    font-size: 13px;
    font-weight: 500;
    line-height: 1.6;
}

.ais-status.is-error {
    border-left-color: #c5331f;
    background: rgba(224, 64, 46, 0.06);
    color: #a52a19;
}

.ais-status.is-success {
    border-left-color: var(--accent);
    background: rgba(var(--accent-rgb), 0.07);
    color: var(--accent-2);
}

/* progress */
.ais-progress {
    height: 8px;
    border-radius: 999px;
    overflow: hidden;
    background: var(--ais-line);
}

.ais-progress-bar {
    height: 100%;
    width: 0;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--accent), var(--accent-2));
    transition: width 420ms ease;
}

/* result table */
.ais-table-wrap {
    max-height: 400px;
    overflow: auto;
    border: 1px solid var(--ais-line);
    border-radius: var(--ais-radius-sm);
}

.ais-table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
}

.ais-table th {
    position: sticky;
    top: 0;
    z-index: 1;
    text-align: left;
    padding: 13px 18px;
    font-family: var(--ais-mono);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--ais-text-soft);
    background: var(--ais-bg-2);
    border-bottom: 1px solid var(--ais-line-strong);
}

.ais-table td {
    padding: 13px 18px;
    font-size: 14px;
    color: var(--ais-text-soft);
    border-top: 1px solid var(--ais-line);
    vertical-align: middle;
}

.ais-table tbody tr {
    transition: background 140ms ease;
}

.ais-table tbody tr:hover {
    background: rgba(var(--accent-rgb), 0.035);
}

.ais-table .wrong {
    color: #c5331f;
    font-weight: 700;
}

.ais-table .right {
    color: #1d7a4d;
    font-weight: 700;
}

/* line numbers feel like an editor gutter */
.ais-table .line-cell {
    font-family: var(--ais-mono);
    color: var(--ais-text-muted);
    font-variant-numeric: tabular-nums;
}

.ais-truncate {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ais-check {
    width: 20px;
    height: 20px;
    accent-color: var(--accent);
    cursor: pointer;
}

/* pill / badge */
.ais-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border-radius: 6px;
    padding: 5px 11px;
    font-family: var(--ais-mono);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.04em;
    color: var(--accent-2);
    background: rgba(var(--accent-rgb), 0.09);
    border: 1px solid rgba(var(--accent-rgb), 0.28);
}

.ais-pill::before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent);
}

/* divider */
.ais-divider {
    border-top: 1px solid var(--ais-line);
}

/* result text box (polish) */
.ais-result-box {
    min-height: 220px;
    max-height: 460px;
    overflow: auto;
    white-space: pre-wrap;
    word-break: break-word;
    border: 1px solid var(--ais-line);
    border-radius: var(--ais-radius-sm);
    background: var(--ais-surface-2);
    color: var(--ais-text-soft);
    line-height: 1.85;
    padding: 18px;
}

.ais-result-box strong {
    color: var(--accent-2);
    font-weight: 700;
}

/* video frame */
.ais-video {
    overflow: hidden;
    border-radius: var(--ais-radius-sm);
    background: #0b1220;
    border: 1px solid var(--ais-line-strong);
}

.ais-video video {
    display: block;
    width: 100%;
    aspect-ratio: 16/9;
    background: #0b1220;
}

/* numbered steps — these ARE a sequence, so numbering is honest */
.ais-steps {
    counter-reset: ais-step;
}

.ais-step {
    position: relative;
    padding-left: 48px;
    color: var(--ais-text-soft);
    line-height: 1.8;
}

.ais-step::before {
    counter-increment: ais-step;
    content: counter(ais-step, decimal-leading-zero);
    position: absolute;
    left: 0;
    top: -1px;
    width: 34px;
    height: 28px;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: var(--ais-mono);
    font-size: 12.5px;
    font-weight: 700;
    color: var(--accent-2);
    background: rgba(var(--accent-rgb), 0.08);
    border: 1px solid rgba(var(--accent-rgb), 0.26);
}

/* section heading with mono kicker */
.ais-section-head {
    font-family: var(--ais-display);
    font-weight: 700;
    color: var(--ais-ink);
}

@media (max-width: 760px) {
    .ais-table {
        min-width: 760px;
    }

    .ais-page {
        background-size: 22px 22px, 22px 22px, 110px 110px, 110px 110px;
    }
}

@media (prefers-reduced-motion: reduce) {

    .ais-card,
    .ais-card::after,
    .ais-btn,
    .ais-action-tile,
    .ais-action-tile::after,
    .ais-card-cta,
    .ais-back {
        transition: none !important;
    }
}
