/* Local fonts - IBM Plex */
@font-face {
    font-family: 'IBM Plex Mono';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('fonts/woff2/IBMPlexMono-Regular.woff2') format('woff2');
}
@font-face {
    font-family: 'IBM Plex Mono';
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    src: url('fonts/woff2/IBMPlexMono-Medium.woff2') format('woff2');
}
@font-face {
    font-family: 'IBM Plex Mono';
    font-style: italic;
    font-weight: 400;
    font-display: swap;
    src: url('fonts/woff2/IBMPlexMono-Italic.woff2') format('woff2');
}
@font-face {
    font-family: 'IBM Plex Sans';
    font-style: normal;
    font-weight: 300;
    font-display: swap;
    src: url('fonts/woff2/IBMPlexSans-Light.woff2') format('woff2');
}
@font-face {
    font-family: 'IBM Plex Sans';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('fonts/woff2/IBMPlexSans-Regular.woff2') format('woff2');
}

/*
 * Type Scale (consolidated)
 * -------------------------
 * xs:    0.75rem  (12px) - meta only (dates, source numbers)
 * sm:    0.875rem (14px) - small UI (nav, footer, comparison content)
 * base:  1rem     (16px) - body, h2, privacy/terms content
 * md:    1.125rem (18px) - lead paragraphs
 * lg:    1.5rem   (24px) - h1, large text (landing-summary, CTA)
 * xl:    2.5rem   (40px) - hero title
 *
 * Spacing Scale (0.5rem base)
 * ---------------------------
 * 1:  0.5rem   (8px)
 * 2:  1rem     (16px)
 * 3:  1.5rem   (24px)
 * 4:  2rem     (32px)
 * 6:  3rem     (48px)
 * 8:  4rem     (64px)
 * 12: 6rem     (96px)
 */

:root {
    --black: #000;
    --dark: #111;
    --grey-dark: #333;
    --grey: #666;
    --grey-light: #aaa;
    --white: #eee;
    --accent: #00d9ff;
    --accent-warm: #ff7832;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
}

body {
    font-family: 'IBM Plex Sans', -apple-system, sans-serif;
    background: var(--black);
    color: var(--grey-light);
    line-height: 1.7;
    font-weight: 400;
}

.container {
    max-width: 600px;
    margin: 0 auto;
    padding: 0 2rem;
    padding-top: 1px; /* Extend background to top */
    position: relative;
    z-index: 1;
    background: var(--black);
}

/* ==================== */
/* HEADER               */
/* ==================== */

header {
    padding: 6rem 0 4rem;
}


.logo-slash {
    color: var(--accent);
    margin-right: -0.1em;
}

/* ==================== */
/* TYPOGRAPHY           */
/* ==================== */

h1 {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 1.5rem;
    font-weight: 500;
    line-height: 1.3;
    letter-spacing: -0.02em;
    color: var(--accent);
    margin-top: 2rem;
    margin-bottom: 2rem;
}

h2 {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 1rem;
    font-weight: 500;
    line-height: 1.4;
    letter-spacing: -0.01em;
    color: var(--white);
    margin-bottom: 1rem;
}

p {
    margin-bottom: 1.5rem;
}

p:last-child {
    margin-bottom: 0;
}

.lead {
    font-size: 1.125rem;
    color: var(--white);
    margin-bottom: 3rem;
}

.pullquote {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 1rem;
    font-style: italic;
    line-height: 1.6;
    color: var(--white);
    padding-left: 1.5rem;
    margin: 2rem 0;
    border-left: 1px solid var(--accent);
}

/* ==================== */
/* EVIDENCE FIGURE      */
/* ==================== */

.evidence {
    margin: 2rem 0;
    position: relative;
    width: 670px;
    left: 50%;
    transform: translateX(-50%);
}

.evidence-img {
    width: 100%;
    border-radius: 4px;
    border: 1px solid var(--grey-dark);
}

@media (max-width: 670px) {
    .evidence {
        width: 100%;
        left: 0;
        transform: none;
    }
}

.evidence-caption,
.dateline {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.75rem;
    color: var(--grey);
    margin-top: 0.75rem;
    line-height: 1.5;
}

.dateline {
    margin-top: -1rem;
}

/* ==================== */
/* SECTIONS             */
/* ==================== */

.section {
    padding: 2rem 0;
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.section.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ==================== */
/* CSS-ONLY TOGGLES     */
/* ==================== */

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

/* ==================== */
/* EXPAND SECTION       */
/* ==================== */

.expand-section {
    position: relative;
    margin: 3rem 0 0;
}

.expand-preview {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.75rem;
    color: var(--grey);
    margin-bottom: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.375rem;
}

.expand-preview-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    opacity: 0.6;
    transition: opacity 0.2s;
}

.expand-preview-item::before {
    content: '';
    width: 12px;
    height: 1px;
    background: var(--accent-warm);
    opacity: 0.6;
}

.expand-section:hover .expand-preview-item {
    opacity: 1;
}

.reveal-btn {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.875rem;
    font-weight: 400;
    color: var(--grey-light);
    background: transparent;
    border: none;
    padding: 0;
    cursor: pointer;
    transition: color 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.reveal-btn:hover {
    color: var(--accent);
}

.reveal-btn .arrow {
    display: inline-block;
    transition: transform 0.2s;
    color: var(--accent-warm);
}

.reveal-btn .label-expanded {
    display: none;
}

.reveal-btn .label-collapsed {
    display: inline;
}

.hidden-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.6s ease;
}

#expandToggle:checked ~ .hidden-content {
    overflow: visible;
}

/* Expand toggle checked states */
#expandToggle:checked ~ .reveal-btn .arrow {
    transform: rotate(180deg);
}

#expandToggle:checked ~ .reveal-btn .label-collapsed {
    display: none;
}

#expandToggle:checked ~ .reveal-btn .label-expanded {
    display: inline;
}

#expandToggle:checked ~ .expand-preview {
    display: none;
}

#expandToggle:checked ~ .hidden-content {
    max-height: 20000px;
}

/* ==================== */
/* NAVIGATION           */
/* ==================== */

.nav {
    padding: 2rem 0 0;
}

.expand-section + .nav {
    padding-top: 0;
}

.nav-link {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.875rem;
    color: var(--grey);
    text-decoration: none;
    transition: color 0.2s;
}

.nav-link .nav-arrow {
    color: var(--accent-warm);
}

.nav-link:hover {
    color: var(--accent);
}

/* ==================== */
/* LANDING PAGE         */
/* ==================== */

.landing {
    display: flex;
    flex-direction: column;
    padding: 6rem 0 2rem;
}

.landing-title {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 2.5rem;
    font-weight: 400;
    line-height: 1.2;
    letter-spacing: -0.02em;
    margin-bottom: 3rem;
}

.title-highlight {
    display: block;
    background: var(--accent);
    color: var(--black);
    padding: 0.25rem 0.5rem;
    margin-bottom: 0.5rem;
    width: fit-content;
}

.landing-summary {
    font-size: 1.5rem;
    line-height: 1.5;
    text-wrap: balance;
    color: var(--white);
    margin-bottom: 3rem;
}

.read-more {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 1.5rem;
    color: var(--grey-light);
    text-decoration: none;
    transition: color 0.2s;
    display: inline-block;
}

.read-more:hover {
    color: var(--accent);
}

.read-more:hover .read-more-arrow {
    transform: translateX(4px);
}

.read-more-arrow {
    display: inline-block;
    transition: transform 0.2s;
    color: var(--accent-warm);
}

/* ==================== */
/* PRODUCTS             */
/* ==================== */

.products {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    padding: 2rem 0 2rem;
}

.products-label {
    width: 100%;
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    color: var(--grey);
    margin-bottom: 0;
}

.product-card {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    transition: opacity 0.2s;
}

.product-card:hover {
    opacity: 0.8;
}

.product-logo {
    flex-shrink: 0;
}

.product-info {
    display: flex;
    flex-direction: column;
}

.product-name {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--white);
}

.product-desc {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.75rem;
    color: var(--grey);
}

.product-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.product-wordmark {
    display: block;
}

.product-tag {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.75rem;
    color: var(--grey-light);
}

/* ==================== */
/* CTA                  */
/* ==================== */

.cta {
    margin: 4rem 0;
    padding: 0;
}

.cta-landing {
    margin-top: 2rem;
    margin-bottom: 0;
    border-top: none;
    padding-top: 0;
}

.cta h2 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}

.cta p {
    font-size: 1.125rem;
    color: var(--white);
    margin-bottom: 1.5rem;
}

.signal-block {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0 0 1rem 0;
    padding: 0.5rem 0.75rem;
    background: var(--accent-warm);
    transition: opacity 0.2s;
}

.signal-block:hover {
    opacity: 0.9;
}

.signal-logo {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.signal-number {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 1rem;
    font-weight: 500;
    color: var(--black);
    white-space: nowrap;
    text-decoration: none;
}

.signal-number:hover {
    text-decoration: underline;
}

.privacy-note {
    font-size: 0.875rem;
    color: var(--grey);
    margin-top: 0;
    margin-bottom: 0;
}

/* ==================== */
/* COMPARISON           */
/* ==================== */

.comparison-intro {
    margin: 4rem 0 2rem;
}

.comparison-intro p {
    color: var(--grey-light);
    margin-bottom: 1rem;
}

.comparison-question {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 1rem;
    font-style: italic;
    line-height: 1.6;
    color: var(--black);
    margin: 0 auto 2rem;
    max-width: 900px;
}

.comparison-question span {
    background: var(--accent);
    padding: 0.25rem 0.5rem;
    box-decoration-break: clone;
    -webkit-box-decoration-break: clone;
}

.comparison-wrapper {
    position: relative;
    width: 100vw;
    left: 50%;
    transform: translateX(-50%);
    padding: 3rem 2rem 3rem;
    margin: 0;
}

.comparison-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    max-width: 900px;
    margin: 0 auto;
}

.comparison-column {
    background: transparent;
    border-left: 2px solid var(--grey-dark);
    min-width: 0;
}

.comparison-column.ours {
    border-left-color: var(--accent);
}

.comparison-label {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    padding: 0 0 0.5rem 1rem;
}

.comparison-column.ours .comparison-label {
    color: var(--accent);
    padding-top: 0.125rem;
    padding-bottom: 0.75rem;
}

.comparison-column.theirs .comparison-label {
    color: var(--grey);
}

.comparison-content {
    padding: 0.5rem 0 0 1rem;
    font-size: 0.875rem;
    line-height: 1.65;
    color: var(--grey-light);
    max-height: 425px;
    overflow-y: auto;
}

.comparison-content p {
    margin-bottom: 1rem;
}

.comparison-content p:last-child {
    margin-bottom: 0;
}

.comparison-content strong {
    color: var(--white);
    font-weight: 500;
}

.comparison-content ol,
.comparison-content ul {
    margin: 0.75rem 0;
    padding-left: 1.25rem;
}

.comparison-content li {
    margin-bottom: 0.5rem;
}

.comparison-content h3 {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--white);
    margin: 1.25rem 0 0.5rem;
}

.comparison-content h3:first-child {
    margin-top: 0;
}

.comparison-content hr {
    border: none;
    border-top: 1px solid var(--grey-dark);
    margin: 1rem 0;
}

.comparison-content blockquote {
    margin: 0.75rem 0;
    padding-left: 1rem;
    border-left: 2px solid var(--grey-dark);
    color: var(--grey);
    font-style: italic;
}


.comparison-column.ours .source-tag {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.75rem;
    color: var(--accent-warm);
    background: rgba(255, 120, 50, 0.1);
    padding: 0.125rem 0.375rem;
    border-radius: 2px;
    margin-left: 0.25rem;
}

/* Tabbed comparison column */
.comparison-column.tabbed {
    display: flex;
    flex-direction: column;
}

.comparison-column.tabbed .comparison-label {
    display: flex;
    align-items: center;
    padding-bottom: 0.5rem;
}

.comparison-tabs {
    display: inline-flex;
    gap: 0.25rem;
}

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

.tab-label {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    color: var(--grey);
    padding: 0.125rem 0.5rem;
    cursor: pointer;
    transition: color 0.2s, background 0.2s;
    border-radius: 2px;
}

.tab-label:hover {
    color: var(--grey-light);
}

.comparison-column.tabbed > #tabChatGPT:checked ~ .comparison-label label[for="tabChatGPT"],
.comparison-column.tabbed > #tabClaude:checked ~ .comparison-label label[for="tabClaude"] {
    color: var(--white);
    background: var(--grey-dark);
}

.tab-content {
    display: none;
}

.comparison-column.tabbed > #tabChatGPT:checked ~ .tab-chatgpt {
    display: block;
}

.comparison-column.tabbed > #tabClaude:checked ~ .tab-claude {
    display: block;
}

.comparison-sources {
    margin-top: 1.25rem;
    padding-top: 1rem;
    border-top: 1px solid var(--grey-dark);
}

.comparison-sources-toggle {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.75rem;
    color: var(--accent-warm);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: color 0.2s;
}

.comparison-sources-toggle:hover {
    color: var(--accent);
}

.comparison-sources-toggle .toggle-icon {
    display: inline-block;
    transition: transform 0.2s;
}

.comparison-sources-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
}

#sourcesToggle:checked ~ .comparison-sources-toggle .toggle-icon {
    transform: rotate(45deg);
}

#sourcesToggle:checked ~ .comparison-sources-content {
    max-height: 2000px;
    margin-top: 0.75rem;
}

.comparison-source {
    font-size: 0.75rem;
    line-height: 1.4;
    margin-bottom: 0.75rem;
    color: var(--grey);
    display: grid;
    grid-template-columns: 0.875rem 1fr;
    gap: 0.25rem 0.375rem;
}

.comparison-source a {
    color: var(--grey-light);
    text-decoration: none;
    grid-column: 2;
}

.comparison-source a:hover {
    color: var(--accent);
}

.comparison-source .source-num {
    font-family: 'IBM Plex Mono', monospace;
    color: var(--accent-warm);
    grid-column: 1;
    grid-row: 1;
}

.comparison-source .source-quote {
    grid-column: 2;
    color: var(--grey);
    font-style: italic;
    font-size: 0.75rem;
    line-height: 1.5;
}

.comparison-footer {
    max-width: 900px;
    margin: 2rem auto 0;
    font-size: 0.875rem;
    color: var(--grey-light);
}

.comparison-content::-webkit-scrollbar {
    width: 6px;
}

.comparison-content::-webkit-scrollbar-track {
    background: var(--dark);
}

.comparison-content::-webkit-scrollbar-thumb {
    background: var(--grey-dark);
    border-radius: 3px;
}

.comparison-column.ours .comparison-content::-webkit-scrollbar-thumb {
    background: var(--accent);
    opacity: 0.5;
}

@media (max-width: 1000px) {
    .comparison-grid {
        grid-template-columns: 1fr;
    }

    .comparison-content {
        max-height: 400px;
    }
}

/* ==================== */
/* REFERENCES           */
/* ==================== */

.references {
    margin: 2rem 0;
    padding-top: 2rem;
    border-top: 1px solid var(--grey-dark);
}

.references-toggle {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.875rem;
    color: var(--grey);
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: color 0.2s;
    margin-bottom: 1.5rem;
}

.references-toggle:hover {
    color: var(--accent);
}

.references-toggle .toggle-icon {
    display: inline-block;
    transition: transform 0.2s;
    color: var(--accent-warm);
}

.references-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
}

/* References toggle checked states */
#referencesToggle:checked ~ .references-toggle .toggle-icon {
    transform: rotate(45deg);
}

#referencesToggle:checked ~ .references-content {
    max-height: 5000px;
}

.reference {
    font-size: 0.875rem;
    line-height: 1.6;
    color: var(--grey);
    margin-bottom: 1.5rem;
    padding-left: 2rem;
    position: relative;
}

.reference-number {
    position: absolute;
    left: 0;
    color: var(--accent-warm);
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.75rem;
}

/* ==================== */
/* FOOTER               */
/* ==================== */

footer {
    padding: 2rem 0;
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.875rem;
    color: var(--grey);
}

footer .footer-logo {
    color: var(--grey-light);
    margin-bottom: 0.25rem;
}

footer .footer-logo span {
    color: var(--accent);
}

footer .footer-link {
    color: var(--grey);
    text-decoration: none;
    margin-top: 0.5rem;
    display: inline-block;
}

footer .footer-link:hover {
    color: var(--accent);
}

footer .footer-dot {
    display: inline-block;
    width: 4px;
    height: 4px;
    background: var(--accent-warm);
    vertical-align: middle;
    margin: 0 0.5rem;
}

/* ==================== */
/* PRIVACY PAGE         */
/* ==================== */

.privacy-article {
    max-width: 640px;
}

.privacy-section {
    margin-bottom: 2.5rem;
}

.privacy-section h2 {
    font-size: 1rem;
    font-weight: 500;
    margin-bottom: 0.75rem;
    color: var(--white);
}

.privacy-section h3 {
    font-size: 1rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: var(--white);
}

.privacy-section p {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--grey-light);
}

.privacy-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: 1rem;
}

.privacy-item {
    padding: 1rem;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 4px;
}

.privacy-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.privacy-list li {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--grey-light);
    padding-left: 1rem;
    position: relative;
}

.privacy-on-request {
    margin-top: 1rem;
}

.privacy-list li::before {
    content: "—";
    position: absolute;
    left: 0;
    color: var(--grey-light);
}

.privacy-contact {
    margin-top: 3rem;
    font-size: 1rem;
    color: var(--grey-light);
}

.privacy-updated {
    font-size: 0.75rem;
    color: var(--grey-light);
    margin-top: 0.5rem;
}

@media (max-width: 640px) {
    .privacy-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
}

/* ==================== */
/* UTILITIES            */
/* ==================== */

a {
    color: var(--accent);
    text-decoration: none;
}

sup {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.7em;
    color: var(--accent-warm);
    margin-left: 1px;
}

::selection {
    background: var(--accent);
    color: var(--black);
}

/* ==================== */
/* RESPONSIVE           */
/* ==================== */

@media (max-width: 640px) {
    header {
        padding: 4rem 0 3rem;
    }

    h1 {
        font-size: 1.5rem;
    }

    .landing {
        padding: 2rem 0 3rem;
    }

    .landing-title {
        font-size: 2rem;
        margin-top: 0;
        margin-bottom: 2rem;
    }

    .title-highlight {
        padding: 0.2rem 0.4rem;
        margin-bottom: 0.375rem;
    }

    .landing-summary {
        font-size: 1.125rem;
        margin-bottom: 2rem;
    }

    .read-more {
        font-size: 1.125rem;
    }

    .cta-landing {
        margin-top: 3rem;
    }

    .cta h2 {
        font-size: 1.5rem;
    }

    .cta p {
        font-size: 1rem;
    }

    .lead {
        font-size: 1rem;
    }

    .pullquote {
        font-size: 0.875rem;
    }

    .cta {
        margin: 3rem 0;
        padding: 2rem 0;
    }

    .signal-number {
        font-size: 1rem;
    }

    .products {
        flex-direction: column;
        align-items: flex-start;
    }

    .product-info:first-child {
        margin-left: calc(40px + 0.75rem);
    }
}

/* ==================== */
/* SCROLLBAR            */
/* ==================== */

::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--black);
}

::-webkit-scrollbar-thumb {
    background: var(--grey-dark);
    border-radius: 4px;
}

/* ==================== */
/* GAME OF LIFE BG      */
/* ==================== */

.ca-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.gol-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}
