:root {
    --bg-1: #130607;
    --bg-2: #230a0d;
    --bg-3: #341217;
    --maroon: #7a1820;
    --maroon-dark: #5b1118;
    --blue: #18365f;
    --blue-dark: #0d1f39;
    --ink: #2f2621;
    --paper: #f7f4ef;
    --paper-deep: #efe8de;
    --card: rgba(255, 255, 255, 0.82);
    --card-border: rgba(48, 37, 31, 0.12);
    --text-main: #f7efe8;
    --text-soft: rgba(247, 239, 232, 0.84);
    --text-dark: #342a25;
    --text-dark-soft: rgba(52, 42, 37, 0.74);
    --footer-text: #b6b8bd;
    --radius: 22px;
    --shadow-lg: 0 24px 50px rgba(0, 0, 0, 0.18);
    --shadow-md: 0 16px 34px rgba(21, 15, 12, 0.12);
    --focus: 0 0 0 3px rgba(255, 248, 242, 0.9), 0 0 0 6px rgba(122, 24, 32, 0.35);
    --font-display: "Cormorant Garamond", Georgia, serif;
    --font-ui: "IBM Plex Sans", ui-sans-serif, system-ui, sans-serif;
    --font-body: "Manrope", ui-sans-serif, system-ui, sans-serif;
 }

body {
    font-family: var(--font-body);
    background:
        radial-gradient(circle at top left, rgba(122, 24, 32, 0.12), transparent 28%),
        linear-gradient(180deg, var(--paper-deep) 0%, var(--paper) 100%);
    margin: 0;
    padding: 0;
    color: var(--text-dark);
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
}

.index-page {
    min-height: 100vh;
}

.index-topbar {
    position: sticky;
    top: 0;
    z-index: 20;
    display: grid;
    grid-template-columns: auto minmax(560px, 760px) 1fr;
    align-items: center;
    gap: 28px;
    padding: 16px 32px;
    background: linear-gradient(180deg, rgba(19, 6, 7, 0.96) 0%, rgba(35, 10, 13, 0.92) 100%);
    border-bottom: 1px solid rgba(245, 182, 66, 0.36);
    box-shadow: inset 0 -1px 0 rgba(255, 244, 214, 0.16), 0 16px 34px rgba(21, 15, 12, 0.14);
    backdrop-filter: blur(12px);
}

.index-topbar-brand {
    display: flex;
    flex-direction: column;
    gap: 2px;
    flex-shrink: 0;
    width: fit-content;
    max-width: max-content;
    padding-left: 6px;
    padding-right: 12px;
}

.brand-home-link {
    text-decoration: none;
}

.index-topbar-title {
    font-family: var(--font-display);
    font-size: 28px;
    line-height: 1;
    color: #f5b642;
}

.index-topbar-kicker {
    font-size: 11px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--text-soft);
    font-weight: 700;
}

.index-topbar-subtitle {
    font-size: 12px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-soft);
}

.index-quickbar {
    display: flex;
    align-items: flex-end;
    justify-content: stretch;
    gap: 0;
    flex-wrap: nowrap;
    max-width: none;
    width: 100%;
    justify-self: center;
    overflow: visible;
}

.quickbar-tool,
.quickbar-segment,
.quickbar-input,
.quickbar-query-input,
.quickbar-label,
.quickbar-submit {
    height: 48px;
    border: 1px solid rgba(247, 239, 232, 0.18);
    border-radius: 0;
    background: rgba(247, 244, 239, 0.98);
    color: var(--text-dark);
    font-size: 13px;
    box-sizing: border-box;
}

.quickbar-tool {
    width: max-content;
    min-width: 0;
    max-width: none;
    flex: 0 0 auto;
    border-top-left-radius: 16px;
    border-bottom-left-radius: 16px;
    padding: 0 14px;
    font-weight: 700;
}

.quickbar-segment {
    width: max-content;
    min-width: 0;
    max-width: none;
    flex: 0 0 auto;
    border-left: none;
    padding: 0 10px;
    text-align: center;
    font-weight: 700;
}

.quickbar-input {
    width: 100%;
    min-width: 0;
    border-left: none;
    padding: 0 14px;
}

.quickbar-input-shell {
    position: relative;
    flex: 1 1 auto;
    min-width: 220px;
    height: 48px;
    overflow: hidden;
}

.quickbar-query-input {
    flex: 1 1 220px;
    min-width: 180px;
    border-left: none;
    padding: 0 14px;
}

.quickbar-label {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 14px;
    border-left: none;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--maroon-dark);
    white-space: nowrap;
}

.quickbar-textarea {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    resize: none;
    overflow: hidden;
    line-height: 1.35;
    padding-top: 13px;
    padding-bottom: 13px;
    min-height: 48px;
    max-height: 180px;
    transition: height 0.16s ease;
}

.quickbar-multiline {
    min-height: 48px;
}

.quickbar-input-expanded {
    z-index: 5;
    box-shadow: 0 16px 30px rgba(21, 15, 12, 0.18);
}

.quickbar-submit {
    border-left: none;
    border-top-right-radius: 16px;
    border-bottom-right-radius: 16px;
    padding: 0 20px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    background: linear-gradient(180deg, #ffbf47 0%, #f59e0b 48%, #d97706 100%);
    color: #2f2621;
    cursor: pointer;
}

.quickbar-submit:hover {
    background: linear-gradient(180deg, #ffd36f 0%, #fbbf24 48%, #ea580c 100%);
}

.index-main {
    max-width: 1240px;
    margin: 0 auto;
    padding: 30px 28px 52px;
}

.app-shell {
    display: grid;
    grid-template-columns: 272px minmax(0, 1fr);
    grid-template-areas: "sidebar main";
    gap: 0;
    min-height: 100vh;
    max-width: none;
    margin: 0;
}

.main-panel {
    grid-area: main;
    min-width: 0;
    background: rgba(255, 255, 255, 0.9);
    border-left: 1px solid var(--card-border);
    border-radius: 0;
    padding: 34px 38px 48px;
    box-shadow: none;
    overflow-y: auto;
    min-height: 100vh;
}

.index-hero {
    margin-bottom: 28px;
    padding: 8px 0 12px;
    position: relative;
}

.index-hero-kicker {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--maroon);
}

.index-hero h1 {
    margin: 10px 0 0 0;
    font-size: 64px;
    line-height: 0.98;
    color: var(--maroon-dark);
    font-weight: 500;
}

.index-hero-subtitle {
    margin-top: 6px;
    font-size: 26px;
    line-height: 1.1;
    color: rgba(91, 17, 24, 0.82);
    font-family: var(--font-display);
}

.index-hero-meta {
    margin-top: 16px;
    display: grid;
    gap: 4px;
    max-width: 920px;
    font-size: 13px;
    line-height: 1.55;
    color: var(--text-dark-soft);
}

.dev-disclaimer {
    margin-top: 18px;
    padding: 14px 16px;
    border: 1px solid #e6c55d;
    border-radius: 14px;
    background: linear-gradient(180deg, #fff2b8 0%, #f6df7a 100%);
    color: #5b4606;
    font-size: 14px;
    line-height: 1.55;
    box-shadow: 0 10px 24px rgba(166, 124, 16, 0.16);
}

.results-main {
    max-height: none;
}

.task-sidebar {
    grid-area: sidebar;
    position: sticky;
    top: 0;
    align-self: start;
    height: 100vh;
    max-height: 100vh;
    overflow-y: auto;
    background: linear-gradient(180deg, var(--bg-2) 0%, var(--maroon-dark) 52%, var(--bg-1) 100%);
    color: var(--text-main);
    border-radius: 0;
    padding: 20px 14px 20px;
    box-shadow: 16px 0 40px rgba(35, 10, 13, 0.28);
}

.results-sidebar {
    display: flex;
    flex-direction: column;
}

.results-page {
    min-height: 100vh;
}

.results-shell {
    grid-template-columns: minmax(0, 1fr) 300px;
    grid-template-areas: "main sidebar";
    gap: 22px;
    max-width: 1320px;
    margin: 0 auto;
    padding: 28px 28px 48px;
    align-items: start;
}

.results-page .main-panel {
    border: 1px solid rgba(48, 37, 31, 0.08);
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.78);
    backdrop-filter: blur(8px);
    box-shadow: 0 18px 40px rgba(21, 15, 12, 0.08);
    min-height: 0;
    padding: 28px 30px 34px;
}

.results-content-header {
    margin-bottom: 18px;
}

.results-content-kicker {
    display: inline-block;
    margin-bottom: 0;
    color: var(--maroon);
}

.results-content-subtitle {
    margin: 6px 0 0 0;
    font-size: 12px;
    line-height: 1.45;
    color: var(--text-dark-soft);
}

.results-page .task-sidebar {
    position: sticky;
    top: 108px;
    height: auto;
    max-height: calc(100vh - 132px);
    overflow-y: auto;
    background: rgba(255, 255, 255, 0.6);
    color: var(--text-dark);
    border: 1px solid rgba(48, 37, 31, 0.08);
    border-radius: 24px;
    padding: 18px;
    box-shadow: 0 16px 34px rgba(21, 15, 12, 0.06);
}

.results-page .sidebar-header {
    margin-bottom: 12px;
}

.results-page .eyebrow {
    color: var(--maroon);
}

.results-page .sidebar-title {
    color: var(--maroon-dark);
    font-size: 28px;
    line-height: 1;
}

.results-page .sidebar-copy {
    color: var(--text-dark-soft);
    font-size: 12px;
}

.results-page .sidebar-card {
    background: rgba(255, 255, 255, 0.72);
    border-color: rgba(48, 37, 31, 0.08);
    color: var(--text-dark);
    box-shadow: 0 10px 24px rgba(21, 15, 12, 0.04);
}

.results-page .sidebar-stat-label {
    color: var(--maroon);
}

.results-page .sidebar-stat-value {
    color: var(--maroon-dark);
    font-size: 20px;
    line-height: 1.25;
}

.results-page .sidebar-mini-grid {
    color: #6b7280;
}

.results-page .sidebar-nav-link {
    background: rgba(122, 24, 32, 0.05);
    color: var(--text-dark);
    border: 1px solid rgba(122, 24, 32, 0.08);
}

.results-page .sidebar-nav-link:hover {
    background: rgba(122, 24, 32, 0.1);
}

.results-page .sidebar-actions {
    margin-top: 16px;
}

.results-page .sidebar-diagnostics {
    margin-top: 18px;
    padding-top: 14px;
    border-top: 1px solid rgba(48, 37, 31, 0.08);
}

.results-page .timing-grid-small .k,
.results-page .timing-grid-small .v {
    color: var(--text-dark-soft);
}

.sidebar-header {
    margin-bottom: 6px;
}

.eyebrow {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--paper-deep);
    margin-bottom: 10px;
}

.sidebar-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--paper);
    font-family: var(--font-display);
}

.sidebar-copy {
    font-size: 12px;
    line-height: 1.45;
    color: var(--text-soft);
    margin-top: 8px;
}

.compact-copy {
    margin-bottom: 0;
}

.btn {
    display: inline-block;
    background: linear-gradient(180deg, #ffbf47 0%, #f59e0b 48%, #d97706 100%);
    color: #2f2621;
    border: 1px solid rgba(146, 64, 14, 0.30);
    padding: 10px 14px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    text-decoration: none;
    line-height: 1;
    white-space: nowrap;
}
.btn:hover { background: linear-gradient(180deg, #ffd36f 0%, #fbbf24 48%, #ea580c 100%); }

.subtitle {
    font-size: 13px;
    color: var(--text-dark-soft);
    margin-bottom: 22px;
}

.section {
    margin-top: 22px;
}

.section h2 {
    font-size: 16px;
    margin: 0 0 10px 0;
    font-weight: 650;
    font-family: var(--font-display);
}

.card {
    border: 1px solid var(--card-border);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.92);
    padding: 18px;
    box-shadow: var(--shadow-md);
}

.sidebar-card {
    background: rgba(247, 244, 239, 0.08);
    border-color: rgba(247, 244, 239, 0.14);
    color: var(--paper);
    box-shadow: none;
}

.sidebar-stat-label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--paper-deep);
    margin-bottom: 8px;
}

.sidebar-stat-value {
    font-size: 18px;
    font-weight: 700;
    color: var(--paper);
}

.sidebar-mini-grid {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 8px 12px;
    margin-top: 14px;
    font-size: 13px;
    color: var(--text-soft);
}

.sidebar-actions {
    margin-top: auto;
}

.sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.sidebar-nav-link {
    display: block;
    padding: 9px 10px;
    border-radius: 10px;
    background: rgba(247, 244, 239, 0.08);
    color: var(--paper);
    text-decoration: none;
    font-size: 13px;
    line-height: 1.35;
    transition: background 0.18s ease, transform 0.18s ease;
}

.sidebar-nav-link:hover {
    background: rgba(247, 244, 239, 0.18);
    transform: translateX(2px);
}

.callout-warn {
    margin-top: 12px;
    border: 1px solid #d9b5b8;
    background: #fff3f1;
    color: #6e1b20;
    padding: 12px 14px;
    border-radius: 8px;
    font-size: 13px;
}

/* Support HTML wrapper: keep your generated HTML readable */
.support-wrapper {
    overflow-x: auto;
}
.support-wrapper * {
    max-width: 100%;
}

.support-result-intro {
    margin-bottom: 14px;
    font-size: 14px;
    line-height: 1.6;
    color: var(--text-dark-soft);
}

.support-result-card {
    margin-bottom: 16px;
    padding: 16px 18px;
    border: 1px solid #e2d8ca;
    border-radius: 14px;
    background: #fffdf9;
    box-shadow: 0 8px 22px rgba(52, 42, 37, 0.05);
}

.support-result-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 10px;
    flex-wrap: wrap;
}

.support-result-badge {
    display: inline-flex;
    align-items: center;
    padding: 5px 10px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.support-result-badge-strong {
    background: #ecfdf3;
    color: #166534;
    border: 1px solid #bbf7d0;
}

.support-result-badge-possible {
    background: #fff7e8;
    color: #92400e;
    border: 1px solid #f6d089;
}

.support-result-score {
    font-size: 12px;
    color: var(--text-dark-soft);
}

.support-result-body {
    line-height: 1.72;
    font-size: 15px;
    color: var(--text-dark);
}

.support-empty-state {
    padding: 16px 0 4px;
    font-size: 14px;
    color: var(--text-dark-soft);
}

/* Raw JSON */
pre {
    margin: 0;
    padding: 14px;
    border-radius: 10px;
    background: #0b1020;
    color: #e5e7eb;
    overflow-x: auto;
    font-size: 12px;
    line-height: 1.45;
}

/* Timings list */
.timing-grid {
    display: grid;
    grid-template-columns: 1fr 140px;
    gap: 8px 12px;
    align-items: center;
    font-size: 13px;
}
.timing-grid .k {
    color: #111827;
    font-weight: 600;
}
.timing-grid .v {
    text-align: right;
    font-variant-numeric: tabular-nums;
    color: #374151;
}

/* Claim charting */
.claim-chart-wrapper {
    padding: 20px;
    background:
        radial-gradient(circle at top right, rgba(122, 24, 32, 0.05), transparent 28%),
        rgba(255, 255, 255, 0.96);
}

.claim-chart-claim-text {
    margin-bottom: 18px;
    padding: 14px 16px;
    border: 1px solid #e5d9cc;
    border-radius: 14px;
    background: #fcf8f2;
    color: #3a2c26;
    font-size: 15px;
    line-height: 1.7;
    font-family: "Times New Roman", Times, serif;
    white-space: pre-wrap;
}

.claim-chart-tree {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.claim-chart-segment {
    position: relative;
    padding-left: 18px;
}

.claim-chart-segment::before {
    content: "";
    position: absolute;
    left: 7px;
    top: 18px;
    bottom: 12px;
    width: 2px;
    background: linear-gradient(180deg, rgba(122, 24, 32, 0.22), rgba(122, 24, 32, 0.08));
}

.claim-chart-root {
    position: relative;
    z-index: 1;
    padding: 14px 16px;
    border: 1px solid #dbcdbf;
    border-radius: 14px;
    background: #fffdf9;
    box-shadow: 0 10px 22px rgba(52, 42, 37, 0.06);
}

.claim-chart-root-label {
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--maroon-dark);
    margin-bottom: 8px;
}

.claim-chart-root-text {
    font-size: 14px;
    line-height: 1.6;
    color: #2f2621;
    font-family: "Times New Roman", Times, serif;
}

.claim-chart-children {
    position: relative;
    margin-top: 12px;
    margin-left: 26px;
    padding-left: 18px;
}

.claim-chart-children::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    bottom: 10px;
    width: 2px;
    background: rgba(122, 24, 32, 0.14);
}

.claim-chart-core-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.claim-chart-dependency-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
    margin-bottom: 12px;
}

.claim-chart-node,
.claim-chart-leaf-card,
.claim-chart-alt-card {
    position: relative;
    padding: 12px 14px;
    border: 1px solid #dfd2c5;
    border-radius: 12px;
    background: #ffffff;
}

.claim-chart-node::before,
.claim-chart-leaf-card::before,
.claim-chart-alt-card::before {
    content: "";
    position: absolute;
    left: -19px;
    top: 18px;
    width: 18px;
    height: 2px;
    background: rgba(122, 24, 32, 0.14);
}

.claim-chart-node-action {
    background: #fff8f5;
}

.claim-chart-node-object {
    background: #fdfaf5;
}

.claim-chart-node-dependency {
    background: #f8f4ff;
}

.claim-chart-node-label,
.claim-chart-leaf-label,
.claim-chart-alt-label,
.claim-chart-alt-group-title {
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--maroon);
    margin-bottom: 6px;
}

.claim-chart-node-text,
.claim-chart-leaf-text,
.claim-chart-alt-text {
    font-size: 13px;
    line-height: 1.55;
    color: #2f2621;
    font-family: "Times New Roman", Times, serif;
}

.claim-chart-leaf-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 12px;
    margin-top: 12px;
}

.claim-chart-alt-group {
    margin-top: 4px;
}

.claim-chart-alt-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 12px;
}

/* Footer actions */
.actions {
    display: flex;
    gap: 10px;
    margin-top: 18px;
}

/* ============================= */
/* INDEX PAGE FORM STYLES       */
/* ============================= */

label {
    font-weight: 500;
    display: block;
    margin-bottom: 6px;
}

.input-row {
    display: grid;
    grid-template-columns: 64px minmax(0, 1fr);
    gap: 0;
    align-items: stretch;
}

.input-prefix {
    white-space: nowrap;
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
    border-right: none;
    text-align: center;
    font-weight: 700;
    padding-left: 8px;
    padding-right: 8px;
}

.field {
    margin-bottom: 18px;
}

input, textarea, select {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    box-sizing: border-box;
}

textarea {
    min-height: 120px;
    resize: vertical;
}

button {
    background: linear-gradient(180deg, #ffbf47 0%, #f59e0b 48%, #d97706 100%);
    color: #2f2621;
    border: 1px solid rgba(146, 64, 14, 0.30);
    padding: 10px 18px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    margin-top: 10px;
}

.input-row input {
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
}
button:hover {
    background: linear-gradient(180deg, #ffd36f 0%, #fbbf24 48%, #ea580c 100%);
}

/* Progress */
.progress-wrapper {
    margin-top: 25px;
}

.progress-bar {
    width: 100%;
    height: 10px;
    background: rgba(247, 244, 239, 0.18);
    border-radius: 6px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    width: 0%;
    background: var(--paper-deep);
    transition: width 1.8s linear;
}

#progress_text {
    font-size: 13px;
    margin-bottom: 6px;
    color: var(--paper-deep);
}

.progress-text {
    font-size: 13px;
    margin-bottom: 6px;
    color: var(--maroon-dark);
}

.hidden {
    display: none !important;
}

.faq-card {
    margin-top: 36px;
    padding: 0;
    overflow: hidden;
    border: none;
    background: transparent;
    box-shadow: none;
}

.faq-header {
    margin-top: 40px;
    margin-bottom: 12px;
    font-size: 24px;
    color: var(--maroon-dark);
    font-family: var(--font-display);
}

.faq-item {
    border-bottom: 1px solid rgba(48, 37, 31, 0.08);
    padding: 16px 0;
    background: transparent;
    border-radius: 0;
    margin-bottom: 0;
}

.faq-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.faq-item summary {
    position: relative;
    cursor: pointer;
    font-weight: 700;
    color: var(--maroon-dark);
    list-style: none;
    font-family: var(--font-display);
    padding-right: 28px;
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item summary::after {
    content: ">";
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    font-family: var(--font-ui);
    font-size: 16px;
    font-weight: 700;
    color: var(--maroon-dark);
    transition: transform 0.16s ease;
}

.faq-item[open] summary::after {
    transform: translateY(-50%) rotate(90deg);
}

.faq-item p {
    margin: 12px 0 0 0;
    color: var(--text-dark-soft);
    line-height: 1.65;
}

.site-footer {
    margin-top: 48px;
    padding: 0;
    width: 100%;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.015) 16%, rgba(255, 255, 255, 0) 34%),
        linear-gradient(180deg, #121212 0%, #050505 42%, #000000 100%);
    border-top: 1px solid rgba(255, 255, 255, 0.22);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.site-footer-inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 24px;
    align-items: center;
    max-width: 1320px;
    margin: 0 auto;
    padding: 34px 28px 38px;
    background:
        radial-gradient(circle at top right, rgba(255, 191, 71, 0.12), transparent 26%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.055) 0%, rgba(255, 255, 255, 0.018) 16%, rgba(255, 255, 255, 0) 36%);
    color: var(--paper);
}

.site-footer-kicker {
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: rgba(247, 239, 232, 0.72);
}

.site-footer-title {
    margin-top: 10px;
    max-width: 780px;
    font-family: var(--font-display);
    font-size: clamp(2rem, 3.8vw, 3.4rem);
    line-height: 0.98;
    color: var(--paper);
}

.site-footer-text {
    margin: 14px 0 0 0;
    max-width: 700px;
    color: rgba(247, 239, 232, 0.76);
    font-size: 14px;
    line-height: 1.65;
}

.site-footer-action {
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.site-footer-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 56px;
    padding: 0 24px;
    border-radius: 999px;
    border: 1px solid rgba(255, 191, 71, 0.35);
    background: linear-gradient(180deg, #ffbf47 0%, #f59e0b 48%, #d97706 100%);
    color: #2f2621;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    text-decoration: none;
    white-space: nowrap;
}

.site-footer-link:hover {
    background: linear-gradient(180deg, #ffd36f 0%, #fbbf24 48%, #ea580c 100%);
}

.family-graph-frame {
    width: 100%;
    min-height: 560px;
    border: 0;
    border-radius: 0;
    background: #ffffff;
}

.family-graph-frame-full {
    min-height: calc(100vh - 120px);
}

.family-claim-block {
    padding: 18px 0;
    border-bottom: 1px solid #e5e7eb;
    scroll-margin-top: 24px;
}

.family-claim-block:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.family-claim-meta {
    font-size: 13px;
    color: #374151;
}

.family-claim-title {
    margin-top: 8px;
    font-size: 15px;
    font-weight: 600;
    color: #111827;
    font-family: var(--font-display);
}

.family-claim-links {
    margin-top: 8px;
}

.family-claim-links a {
    font-size: 13px;
    font-weight: 600;
    color: var(--maroon);
    text-decoration: none;
}

.family-claim-links a:hover {
    text-decoration: underline;
}

.family-claim-links-compact {
    margin-top: 8px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    align-items: flex-end;
}

.family-claim-links-compact a {
    font-size: 12px;
    font-weight: 500;
    color: var(--maroon-dark);
}

.family-claim-note {
    margin-top: 10px;
    padding: 10px 12px;
    border: 1px solid #d9cec0;
    border-radius: 8px;
    background: #fbf8f3;
    font-size: 13px;
    color: var(--text-dark-soft);
}

.claim-summary-overview {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.claim-summary-overview p {
    margin: 0;
    color: var(--text-dark-soft);
    line-height: 1.7;
}

.family-claim-entry {
    margin-top: 12px;
    padding: 12px;
    border: 1px solid #e2d8ca;
    border-radius: 8px;
    background: #fcfaf6;
}

.family-claim-entry-changed {
    border-color: #d9c2c5;
    background: #fffdfb;
}

.family-diff-entry {
    margin-top: 12px;
    padding: 12px;
    border: 1px solid #dcc9cb;
    border-radius: 10px;
    background: #fffdfb;
}

.family-diff-revised {
    border-color: #d9c2c5;
    background: #fff9f8;
}

.family-diff-added {
    border-color: #bbf7d0;
    background: #f0fdf4;
}

.family-diff-removed {
    border-color: #fecaca;
    background: #fef2f2;
}

.family-diff-header {
    font-size: 13px;
    font-weight: 700;
    color: var(--maroon-dark);
    margin-bottom: 10px;
}

.family-claim-label {
    font-size: 13px;
    font-weight: 600;
    color: #111827;
    margin-bottom: 6px;
}

.family-claim-text {
    white-space: pre-wrap;
    font-size: 13px;
    line-height: 1.5;
    color: #1f2937;
    font-family: "Times New Roman", Times, serif;
}

.family-claim-preview {
    white-space: pre-wrap;
    font-size: 13px;
    line-height: 1.5;
    color: #1f2937;
    font-family: "Times New Roman", Times, serif;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.family-main-tabs {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.family-main-tablist {
    position: relative;
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    border-bottom: 1px solid #d7c7ba;
    margin-bottom: 18px;
    border-radius: 18px 18px 0 0;
    background:
        linear-gradient(180deg, rgba(247, 244, 239, 0.88) 0%, rgba(255,255,255,0.6) 100%);
}

.family-main-tab {
    margin-top: 0;
    background: transparent;
    color: var(--text-dark-soft);
    border: 1px solid transparent;
    border-bottom: none;
    padding: 12px 16px;
    border-radius: 12px 12px 0 0;
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
    position: relative;
    top: 1px;
}

.family-main-tab:hover {
    background: #f4ece4;
    color: var(--maroon-dark);
}

.family-main-tab.active {
    background: rgba(255, 255, 255, 0.92);
    border-color: #d7c7ba;
    color: var(--maroon-dark);
}

.family-main-panel {
    display: none;
}

.family-main-panel.active {
    display: block;
}

.family-claim-snapshot {
    margin-top: 0;
    padding: 12px;
    border: 1px solid #dccfc1;
    border-radius: 8px;
    background: #fcf8f2;
    display: none;
}

.family-claim-snapshot.active {
    display: block;
}

.family-claim-snapshot-meta {
    font-size: 12px;
    color: var(--text-dark-soft);
    margin-bottom: 10px;
    font-weight: 600;
}

.family-snapshot-tabs {
    margin-top: 14px;
}

.family-snapshot-tablist {
    position: relative;
    display: flex;
    flex-wrap: nowrap;
    gap: 0;
    margin-bottom: 0;
    overflow-x: auto;
    border-bottom: 1px solid #d7c7ba;
    border-radius: 16px 16px 0 0;
    background: linear-gradient(180deg, rgba(247, 244, 239, 0.88) 0%, rgba(255,255,255,0.6) 100%);
}

.family-snapshot-tab {
    margin-top: 0;
    background: transparent;
    color: var(--text-dark-soft);
    border: 1px solid transparent;
    border-bottom: none;
    padding: 10px 14px 11px;
    border-radius: 12px 12px 0 0;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
    position: relative;
    top: 1px;
}

.family-snapshot-tab:hover {
    background: #f4ece4;
    color: var(--maroon-dark);
}

.family-snapshot-tab.active {
    background: #fcf8f2;
    border-color: #d7c7ba;
    color: var(--maroon-dark);
    box-shadow: 0 -1px 0 #fcf8f2 inset;
}

.claim-insert {
    background: #dcfce7;
    text-decoration: underline;
    text-decoration-thickness: 1.5px;
    text-underline-offset: 2px;
}

.claim-delete {
    background: #fee2e2;
    text-decoration: line-through;
    text-decoration-thickness: 1.5px;
}

.family-comparison-wrapper {
    padding: 0;
    overflow: hidden;
}

.family-comparison-scroll {
    overflow-x: auto;
    overflow-y: visible;
}

.family-comparison-table {
    width: max-content;
    min-width: 100%;
    table-layout: fixed;
    border-collapse: separate;
    border-spacing: 0;
}

.family-comparison-table th,
.family-comparison-table td {
    vertical-align: top;
    width: 320px;
    min-width: 280px;
    max-width: 360px;
    border-right: 1px solid #dbe4f0;
    border-bottom: 1px solid #dbe4f0;
    padding: 14px;
    background: #ffffff;
    text-align: left;
}

.family-comparison-table th {
    position: sticky;
    top: 0;
    z-index: 1;
    background: #f8fbff;
}

.family-comparison-table th:last-child,
.family-comparison-table td:last-child {
    border-right: none;
}

.family-comparison-table tbody tr:last-child td {
    border-bottom: none;
}

.family-comparison-headline {
    font-size: 15px;
    font-weight: 700;
    color: #0f172a;
    font-family: var(--font-display);
}

.family-comparison-subhead {
    margin-top: 4px;
    font-size: 12px;
    color: #475569;
}

.family-comparison-title {
    margin-top: 8px;
    font-size: 13px;
    line-height: 1.45;
    color: #1f2937;
}

.family-comparison-meta-section {
    margin-top: 8px;
    padding-bottom: 12px;
    border-bottom: 1px solid #eadfd4;
}

.family-summary-section {
    margin-top: 12px;
}

.family-summary-block {
    margin-top: 10px;
    padding: 10px 12px;
    border-radius: 10px;
    background: transparent;
    border: 1px solid #e1d6cb;
}

.family-summary-toggle {
    cursor: pointer;
    list-style: none;
    margin: 0;
    display: block;
}

.family-summary-toggle::-webkit-details-marker {
    display: none;
}

.family-summary-toggle span {
    font-size: 11px;
    color: var(--maroon-dark);
    letter-spacing: 0.02em;
    text-transform: none;
    text-decoration: underline;
}

.family-summary-label {
    font-size: 11px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--maroon-dark);
    font-weight: 600;
}

.family-summary-text {
    margin-top: 5px;
    font-size: 12px;
    line-height: 1.55;
    color: var(--text-dark);
    white-space: normal;
    font-weight: 400;
}

.family-summary-preview {
    margin-top: 6px;
    font-size: 12px;
    line-height: 1.55;
    color: var(--text-dark);
    font-weight: 400;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.family-links-section {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid #eadfd4;
    text-align: right;
}

.family-expand-toggle {
    margin-top: 8px;
    padding: 0;
    border: none;
    background: transparent;
    color: var(--maroon-dark);
    font-size: 11px;
    font-weight: 500;
    text-decoration: underline;
    width: auto;
}

.family-expand-toggle:hover {
    background: transparent;
    color: var(--maroon);
}

.family-summary-row td {
    background: #fffdfb;
}

.family-comparison-empty {
    font-size: 12px;
    color: #94a3b8;
    font-style: italic;
}

.family-tree-plain-section {
    margin-top: 0;
}

.family-tree-plain-section,
.family-main-panel#family-main-tree {
    padding: 0;
}

.family-tree-plain-section .family-graph-frame,
.family-main-panel#family-main-tree .family-graph-frame {
    display: block;
}

.sidebar-diagnostics {
    margin-top: 10px;
}

.timing-grid-small {
    font-size: 10px;
    gap: 4px 8px;
}

.timing-grid-small .k,
.timing-grid-small .v {
    color: var(--text-soft);
    font-weight: 500;
}

@media (max-width: 1180px) {
    .app-shell {
        grid-template-columns: 1fr;
        grid-template-areas:
            "sidebar"
            "main";
    }

    .index-topbar {
        grid-template-columns: 1fr;
        padding: 14px 18px;
        align-items: flex-start;
        gap: 14px;
    }

    .index-main {
        padding: 22px 16px 40px;
    }

    .index-quickbar {
        width: 100%;
        flex-wrap: wrap;
        max-width: none;
        justify-self: stretch;
    }

    .quickbar-tool,
    .quickbar-segment,
    .quickbar-input-shell,
    .quickbar-input,
    .quickbar-query-input,
    .quickbar-label,
    .quickbar-submit {
        width: 100%;
        border-left: 1px solid rgba(247, 239, 232, 0.18);
        border-radius: 16px;
        margin-top: 8px;
    }

    .quickbar-input-shell {
        height: auto;
        min-height: 48px;
    }

    .quickbar-textarea {
        position: relative;
    }

    .task-sidebar,
    .results-main {
        position: static;
        max-height: none;
        height: auto;
    }

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

    .main-panel {
        min-height: auto;
    }

    .site-footer {
        margin-top: 36px;
    }

    .site-footer-inner {
        grid-template-columns: 1fr;
        padding: 24px 16px 28px;
    }

    .site-footer-action {
        justify-content: flex-start;
    }

    .results-shell {
        grid-template-columns: 1fr;
        grid-template-areas:
            "main"
            "sidebar";
        padding: 18px 16px 32px;
    }

    .results-page .task-sidebar {
        position: static;
        top: auto;
        max-height: none;
    }
}

/* ============================= */
/* INDEX PAGE                   */
/* ============================= */

.background,
.grain,
.vignette {
    position: fixed;
    inset: 0;
    pointer-events: none;
}

.background {
    z-index: -3;
    overflow: hidden;
}

.ml-flow-bg {
    position: absolute;
    left: 50%;
    top: -12px;
    width: min(1500px, 106vw);
    height: 700px;
    transform: translateX(-50%);
    background-image: url("/static/ml_flow.svg");
    background-repeat: no-repeat;
    background-position: center 0;
    background-size: contain;
    opacity: 0.32;
    filter: invert(1);
    mix-blend-mode: normal;
    z-index: 0;
}

.hero-main {
    overflow: visible;
}

.hero-content,
.hero-circuit {
    position: relative;
    z-index: 1;
}

.blob {
    position: absolute;
    border-radius: 999px;
    filter: blur(22px);
    opacity: 0.72;
}

.blob-1 {
    width: 460px;
    height: 460px;
    top: -90px;
    left: -80px;
    background: radial-gradient(circle, rgba(167, 42, 53, 0.34) 0%, rgba(167, 42, 53, 0.02) 72%);
}

.blob-2 {
    width: 520px;
    height: 520px;
    top: 140px;
    right: -120px;
    background: radial-gradient(circle, rgba(24, 54, 95, 0.18) 0%, rgba(24, 54, 95, 0.02) 74%);
}

.blob-3 {
    width: 560px;
    height: 560px;
    bottom: -180px;
    left: 22%;
    background: radial-gradient(circle, rgba(122, 24, 32, 0.18) 0%, rgba(122, 24, 32, 0.02) 76%);
}

.grain {
    z-index: -2;
    opacity: 0.1;
    background-image:
        linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
    background-size: 4px 4px, 5px 5px;
    mix-blend-mode: multiply;
}

.vignette {
    z-index: -1;
    background: radial-gradient(circle at center, rgba(255,255,255,0) 42%, rgba(33, 14, 17, 0.08) 100%);
}

.shell {
    position: relative;
}

.index-topbar-main {
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    justify-content: stretch;
    gap: 16px;
    padding-top: 18px;
    padding-bottom: 18px;
}

.index-topbar-center {
    width: 100%;
    min-width: 0;
    display: flex;
    justify-content: flex-start;
}

.index-quickbar-main {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
    max-width: none;
    align-items: stretch;
}

.quickbar-row {
    display: flex;
    flex-direction: row;
    gap: 0;
    align-items: flex-start;
    width: 100%;
}

.index-quickbar-main.quickbar-has-query .quickbar-input-shell {
    flex: 0 0 clamp(180px, 18vw, 260px);
    min-width: 180px;
}

.index-quickbar-main.quickbar-has-query .quickbar-query-shell {
    display: grid;
    grid-template-columns: max-content minmax(0, 1fr);
    flex: 1 1 auto;
    min-width: 380px;
    width: auto;
}

.index-quickbar-main.quickbar-has-query .quickbar-query-input {
    min-width: 0;
}

.index-quickbar-main.quickbar-has-query .quickbar-submit {
    margin-left: -1px;
}

.index-quickbar-main .quickbar-tool,
.index-quickbar-main .quickbar-segment,
.index-quickbar-main .quickbar-input,
.index-quickbar-main .quickbar-query-input,
.index-quickbar-main .quickbar-submit,
.quickbar-query-chip {
    height: 64px;
    border-color: rgba(247, 239, 232, 0.22);
    box-sizing: border-box;
}

.index-quickbar-main .quickbar-tool,
.index-quickbar-main .quickbar-segment,
.index-quickbar-main .quickbar-input,
.index-quickbar-main .quickbar-query-input,
.quickbar-query-chip {
    background: rgba(252, 248, 243, 0.98);
}

.index-quickbar-main .quickbar-tool {
    flex: 0 0 auto;
    width: max-content;
    min-width: 0;
    max-width: none;
    padding-left: 16px;
    padding-right: 34px;
    font-size: 14px;
}

.index-quickbar-main .quickbar-segment {
    flex: 0 0 auto;
    width: max-content;
    padding-left: 14px;
    padding-right: 28px;
    font-size: 14px;
}

.index-quickbar-main .quickbar-input-shell {
    display: flex;
    align-items: flex-start;
    flex: 1 1 auto;
    min-width: 0;
    height: 64px;
    overflow: hidden;
    align-self: flex-start;
}

.index-quickbar-main .quickbar-textarea {
    position: relative;
    left: auto;
    right: auto;
    bottom: auto;
    display: block;
    width: 100%;
    min-height: 64px;
    max-height: 220px;
    padding-top: 18px;
    padding-bottom: 18px;
    font-size: 15px;
    vertical-align: top;
}

.quickbar-input-shell-expanded {
    overflow: visible;
}

.quickbar-query-shell {
    display: grid;
    grid-template-columns: max-content minmax(220px, 0.95fr);
    flex: 0 1 360px;
    min-width: 0;
    width: auto;
}

.quickbar-query-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(247, 239, 232, 0.22);
    border-left: none;
    color: var(--maroon-dark);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    padding-left: 16px;
    padding-right: 16px;
}

.index-quickbar-main .quickbar-query-input {
    border-left: none;
    min-width: 0;
    width: 100%;
    font-size: 15px;
}

.index-quickbar-main .quickbar-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    align-self: flex-start;
    width: max-content;
    padding-left: 24px;
    padding-right: 24px;
    font-size: 12px;
    line-height: 1;
    white-space: nowrap;
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
    margin-top: 0;
}

.quickbar-helper-row {
    display: block;
}

.quickbar-helper-block {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.quickbar-helper-copy,
.quickbar-speed-note {
    color: rgba(247, 239, 232, 0.72);
    font-size: 11px;
    line-height: 1.35;
    max-width: none;
}

.quickbar-speed-note {
    color: rgba(247, 239, 232, 0.6);
}

.quickbar-progress {
    margin-top: 0;
}

.quickbar-progress .progress-text {
    color: var(--paper-deep);
}

.index-topbar-links {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 8px;
    width: fit-content;
    flex: 0 0 auto;
    padding-left: 12px;
    padding-right: 8px;
}

.index-topbar-links a {
    color: rgba(247, 239, 232, 0.78);
    text-decoration: none;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.index-topbar-links a:hover {
    color: var(--paper);
}

.index-main-shell {
    max-width: 1320px;
    padding-top: 44px;
    padding-bottom: 64px;
}

.hero-main {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
    padding-top: 18px;
}

.hero-circuit {
    position: absolute;
    top: -30px;
    right: -20px;
    width: min(34vw, 420px);
    opacity: 0.09;
}

.hero-circuit-object {
    width: 100%;
    height: auto;
}

.lede {
    margin: 0;
    max-width: 980px;
    font-size: clamp(3rem, 6vw, 5.9rem);
    line-height: 0.94;
    color: var(--maroon-dark);
    font-weight: 500;
}

.rule {
    width: 120px;
    height: 2px;
    margin: 24px 0 20px;
    background: linear-gradient(90deg, rgba(122, 24, 32, 1), rgba(122, 24, 32, 0));
}

.subtext {
    max-width: 900px;
    margin: 0;
    font-size: 21px;
    line-height: 1.58;
    color: rgba(52, 42, 37, 0.84);
}

.hero-highlights {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin-top: 30px;
}

.hero-highlight,
.ai-card {
    box-shadow: 0 16px 34px rgba(21, 15, 12, 0.08);
}

.hero-highlight {
    padding: 8px 4px;
    border-radius: 0;
    background: transparent;
    border: none;
    box-shadow: none;
    backdrop-filter: none;
}

.hero-highlight-value {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 3rem);
    color: var(--maroon-dark);
}

.hero-highlight-label {
    margin-top: 6px;
    font-size: 12px;
    color: var(--text-dark-soft);
    line-height: 1.5;
}

.feature-eyebrow,
.news-meta {
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.ai-section-main {
    position: relative;
    margin-top: 54px;
    padding: 34px 0 30px;
    overflow: hidden;
    border-radius: 34px;
    background:
        radial-gradient(circle at top right, rgba(255,255,255,0.08), transparent 28%),
        linear-gradient(180deg, rgba(91, 17, 24, 0.98) 0%, rgba(27, 9, 14, 0.98) 100%);
}

.feature-inner-ai {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.ai-network {
    position: absolute;
    inset: 0;
    opacity: 0.08;
}

.ai-network-object {
    position: absolute;
    width: min(44vw, 560px);
    right: -20px;
    top: 12px;
}

.ai-copy-block {
    max-width: none;
    padding: 4px 0 2px;
    text-align: center;
}

.ai-copy-block .feature-title {
    color: var(--paper);
    margin: 0;
    font-size: clamp(2.4rem, 4.6vw, 4.25rem);
}

.feature-stack {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    padding: 4px 18px 0;
}

.feature-card,
.ai-card {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-height: 0;
    padding: 24px;
    border-radius: 24px;
    overflow: hidden;
    background:
        radial-gradient(circle at top right, rgba(255, 255, 255, 0.12), transparent 32%),
        linear-gradient(180deg, rgba(247, 244, 239, 0.12) 0%, rgba(247, 244, 239, 0.06) 100%);
    border: 1px solid rgba(247, 239, 232, 0.12);
    color: var(--paper);
}

.feature-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at bottom left, rgba(255, 191, 71, 0.12), transparent 34%),
        linear-gradient(135deg, rgba(255, 255, 255, 0.03), transparent 48%);
    opacity: 0.9;
    pointer-events: none;
}

.feature-card > * {
    position: relative;
    z-index: 1;
}

.feature-card.selected-tool {
    border-color: rgba(255, 191, 71, 0.9);
    box-shadow: 0 0 0 1px rgba(255, 191, 71, 0.22), 0 20px 36px rgba(0, 0, 0, 0.16);
}

.feature-side-label {
    color: rgba(247, 239, 232, 0.86);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.feature-card h3 {
    margin: 0;
    font-family: var(--font-display);
    font-size: 28px;
    line-height: 1;
}

.feature-side-copy {
    margin: 0;
    color: rgba(247, 239, 232, 0.82);
    font-size: 14px;
    line-height: 1.65;
}

.feature-cta {
    width: auto;
    align-self: flex-end;
    margin-top: auto;
    padding: 0;
    border: none;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    font-size: 12px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-weight: 800;
    color: rgba(247, 239, 232, 0.92);
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.feature-cta::after {
    content: "\2192";
    font-size: 16px;
    line-height: 1;
}

.feature-cta:hover {
    background: transparent;
    color: #ffffff;
    transform: translateX(2px);
}

.comparison-section {
    margin-top: 44px;
}

.comparison-inner {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.comparison-faq-header {
    margin-top: 0;
    margin-bottom: 6px;
}

.comparison-table {
    display: grid;
    grid-template-columns: 220px repeat(3, minmax(0, 1fr));
    gap: 14px;
    align-items: start;
}

.comparison-column {
    display: grid;
    grid-template-rows: 126px repeat(7, minmax(84px, auto));
    border-radius: 24px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(48, 37, 31, 0.08);
    box-shadow: 0 16px 34px rgba(21, 15, 12, 0.08);
}

.comparison-column-featured {
    background:
        radial-gradient(circle at top right, rgba(255,255,255,0.12), transparent 30%),
        linear-gradient(180deg, rgba(91, 17, 24, 0.98) 0%, rgba(122, 24, 32, 0.96) 100%);
    border-color: rgba(255, 191, 71, 0.7);
    box-shadow: 0 22px 42px rgba(91, 17, 24, 0.24);
}

.comparison-label-column {
    background: transparent;
    border: none;
    box-shadow: none;
}

.comparison-header {
    padding: 22px 20px;
    border-bottom: 1px solid rgba(48, 37, 31, 0.08);
    background: rgba(255, 255, 255, 0.72);
}

.comparison-column-featured .comparison-header {
    background: rgba(247, 244, 239, 0.08);
    border-bottom-color: rgba(247, 239, 232, 0.12);
}

.comparison-label-header {
    background: transparent;
    border-bottom-color: transparent;
    display: flex;
    align-items: end;
}

.comparison-title {
    font-family: var(--font-display);
    font-size: 30px;
    line-height: 1;
    color: var(--maroon-dark);
}

.comparison-subtitle {
    margin-top: 8px;
    font-size: 12px;
    line-height: 1.5;
    color: var(--text-dark-soft);
}

.comparison-column-featured .comparison-title,
.comparison-column-featured .comparison-subtitle,
.comparison-column-featured .comparison-cell {
    color: var(--paper);
}

.comparison-column-featured .comparison-subtitle {
    color: rgba(247, 239, 232, 0.78);
}

.comparison-cell {
    padding: 18px 20px;
    border-top: 1px solid rgba(48, 37, 31, 0.08);
    font-size: 14px;
    line-height: 1.6;
    color: var(--text-dark);
    background: rgba(255, 255, 255, 0.76);
}

.comparison-column-featured .comparison-cell {
    background: rgba(247, 244, 239, 0.06);
    border-top-color: rgba(247, 239, 232, 0.1);
}

.comparison-link {
    color: #ffe3a3;
    font-weight: 700;
    text-decoration-color: rgba(255, 227, 163, 0.72);
}

.comparison-link:hover {
    color: #fff3d1;
    text-decoration-color: currentColor;
}

.comparison-label-cell {
    display: flex;
    align-items: center;
    padding-left: 0;
    padding-right: 10px;
    background: transparent;
    border-top-color: rgba(48, 37, 31, 0.08);
    color: var(--maroon-dark);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.faq-card {
    margin-top: 18px;
}

.faq-item {
    background: transparent;
    box-shadow: none;
}

.faq-item summary {
    font-size: 28px;
}

@media (max-width: 1180px) {
    .index-topbar {
        position: static;
        top: auto;
    }

    .index-topbar-main {
        grid-template-columns: 1fr;
        justify-content: stretch;
        gap: 12px;
        padding: 14px 16px 16px;
    }

    .quickbar-row {
        display: flex;
        flex-direction: column;
        gap: 8px;
        width: 100%;
    }

    .quickbar-query-shell {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .quickbar-query-chip,
    .index-quickbar-main .quickbar-tool,
    .index-quickbar-main .quickbar-segment,
    .index-quickbar-main .quickbar-input,
    .index-quickbar-main .quickbar-query-input,
    .index-quickbar-main .quickbar-submit {
        border-radius: 16px;
        border-left: 1px solid rgba(247, 239, 232, 0.22);
    }

    .index-quickbar-main .quickbar-input-shell {
        min-height: 56px;
        height: auto;
    }

    .index-quickbar-main .quickbar-textarea {
        position: relative;
    }

    .index-topbar-center,
    .index-quickbar-main {
        max-width: none;
        width: 100%;
    }

    .index-topbar-links {
        justify-content: flex-start;
        width: auto;
    }

    .index-quickbar-main {
        gap: 10px;
    }

    .index-quickbar-main .quickbar-input-shell,
    .index-quickbar-main .quickbar-query-shell,
    .index-quickbar-main .quickbar-submit,
    .index-quickbar-main .quickbar-tool,
    .index-quickbar-main .quickbar-segment {
        flex: 0 0 auto;
        width: 100%;
        min-width: 0;
        max-width: none;
    }

    .index-quickbar-main .quickbar-input,
    .index-quickbar-main .quickbar-query-input {
        width: 100%;
    }

    .quickbar-helper-copy,
    .quickbar-speed-note {
        max-width: none;
    }

    .feature-cta {
        align-self: flex-start;
    }

    .hero-highlights,
    .feature-inner-ai,
    .feature-stack,
    .comparison-table {
        grid-template-columns: 1fr;
    }

    .comparison-column {
        grid-template-rows: auto;
    }

    .feature-stack {
        padding: 10px 0 0;
    }

    .comparison-label-column {
        display: none;
    }

    .comparison-section {
        display: none;
    }

    .hero-circuit,
    .ai-network-object {
        display: none;
    }

    .news-title {
        font-size: 28px;
    }
}
