/* ── IRIS marketing site ── */
/* Whiteprint companion to the IRIS blueprint runtime */

:root {
    --bg:         #eef1f2;
    --bg-card:    #f6f7f5;
    --bg-code:    #e7ecee;
    --surface:    #e9eef0;
    --elevated:   #f7f8f5;
    --mist:       #e3e9ec;
    --blueprint:  #073a52;
    --blueprint-2:#0f4762;
    --paper:      #f6f4ee;
    --border:     rgba(51, 78, 97, 0.24);
    --rule-strong: rgba(31, 58, 79, 0.42);
    --fg:         #243342;
    --fg-bright:  #172838;
    --fg-dim:     #5f6e79;
    --fg-muted:   #82909b;
    --accent:     #3b5a73;
    --accent-dim: #2f4d65;
    --accent-active: #173d57;
    --green:      #3b5a73;
    --yellow:     #b98523;
    --red:        #7d4c4c;
    --glow-primary: rgba(51, 78, 97, 0.12);
    --glow-secondary: rgba(31, 58, 79, 0.08);
    --glow-highlight: rgba(246, 244, 238, 0.72);
    --shadow-soft: 0 1px 0 rgba(31, 58, 79, 0.12);
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'SF Pro Text', 'Segoe UI', sans-serif;
    --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, 'SF Mono', Menlo, Consolas, monospace;
    --radius:     6px;
    --space:      24px;
    --max-w:      1040px;
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    overflow-x: clip;
}

body {
    font-family: var(--font-sans);
    font-size: 17px;
    line-height: 1.65;
    color: var(--fg);
    background:
        linear-gradient(rgba(51, 78, 97, 0.055) 1px, transparent 1px),
        linear-gradient(90deg, rgba(51, 78, 97, 0.055) 1px, transparent 1px),
        linear-gradient(180deg, #f4f5f1 0%, #e6ecef 100%);
    background-attachment: fixed;
    -webkit-font-smoothing: antialiased;
    background-size: 48px 48px, 48px 48px, 100% 100%;
    overflow-x: clip;
}

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

code {
    font-family: var(--font-mono);
    font-size: 0.92em;
    background: var(--bg-code);
    border: 1px solid var(--border);
    border-radius: 3px;
    padding: 1px 5px;
}

img { max-width: 100%; height: auto; display: block; }
strong { color: var(--fg-bright); font-weight: 600; }
em { font-style: italic; color: var(--fg-dim); }

/* ── Skip link ── */
.skip {
    position: absolute;
    left: -9999px;
    top: 0;
    background: var(--accent);
    color: #ffffff;
    padding: 8px 16px;
    z-index: 100;
    border-radius: 0 0 var(--radius) var(--radius);
    font-size: 12px;
    font-weight: 600;
}
.skip:focus { left: 50%; transform: translateX(-50%); }

/* ── Layout ── */
.container {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 0 var(--space);
}

/* ── Header ── */
.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background:
        linear-gradient(rgba(51, 78, 97, 0.045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(51, 78, 97, 0.045) 1px, transparent 1px),
        rgba(246, 244, 238, 0.96);
    background-size: 24px 24px, 24px 24px, 100% 100%;
    border-bottom: 1px solid var(--rule-strong);
    padding: 12px 0;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.brand {
    font-family: var(--font-mono);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    gap: 2px;
    font-weight: 600;
    white-space: nowrap;
    line-height: 1;
    min-width: 146px;
}

.brand-main {
    display: inline-flex;
    align-items: baseline;
    gap: 0;
    font-size: 15px;
    letter-spacing: 0;
}

.brand-link {
    color: var(--fg-bright);
    text-decoration: none;
}
.brand-link:hover { color: var(--accent); text-decoration: none; }

.prompt {
    color: var(--green);
    font-weight: 400;
}

.runtime-identity {
    color: var(--fg-muted);
    font-size: 7.8px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.nav {
    display: flex;
    gap: 28px;
    font-family: var(--font-mono);
    font-size: 12px;
    letter-spacing: 0.3px;
    flex-wrap: wrap;
}

.nav a {
    color: var(--fg-dim);
    text-decoration: none;
    transition: color 0.15s;
}
.nav a:hover { color: var(--fg-bright); text-decoration: none; }

/* ── Main ── */
.site-main { padding-bottom: 80px; }

/* ── Sections ── */
.section {
    padding: 96px 0;
}

.section:nth-of-type(even) {
    background: rgba(231, 236, 238, 0.56);
}

.section:nth-of-type(4n) {
    background: rgba(227, 233, 236, 0.64);
}

.section-title {
    font-size: clamp(34px, 4vw, 52px);
    font-weight: 750;
    color: var(--fg-bright);
    line-height: 1.04;
    margin-bottom: 22px;
    letter-spacing: -0.04em;
}

.section-lede {
    color: var(--fg-dim);
    font-size: 21px;
    line-height: 1.48;
    margin-bottom: 34px;
    max-width: 820px;
}

/* ── Stack (vertical card list) ── */
.stack {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* ── Panel (card) ── */
.panel {
    position: relative;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 2px;
    padding: 26px 28px;
    box-shadow: var(--shadow-soft);
}

.panel-title {
    font-size: 20px;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--fg-bright);
    margin-bottom: 8px;
}

.panel p {
    font-size: 17px;
    line-height: 1.55;
    color: var(--fg);
}

/* ── Callout ── */
.callout {
    background: var(--bg-card);
    border: 1px solid var(--accent-dim);
    border-left: 3px solid var(--accent);
    border-radius: 2px;
    padding: 20px 24px;
}

.callout-title {
    font-size: 13px;
    font-weight: 600;
    color: var(--accent);
    margin-bottom: 6px;
}

.callout-body {
    font-size: 13px;
    line-height: 1.7;
    color: var(--fg);
}

/* ── Ruled edge accent ── */
.panel::before,
.code-panel::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 22%;
    height: 1px;
    background: linear-gradient(to right, var(--rule-strong), transparent);
    pointer-events: none;
    border-radius: var(--radius) 0 0 0;
}

/* ── Code panel ── */
.code-panel {
    position: relative;
    background: var(--bg-code);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
}

.code-header {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 16px;
    background: var(--bg-card);
    border-bottom: 1px solid var(--border);
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--border);
}

.code-title {
    font-family: var(--font-mono);
    margin-left: 8px;
    font-size: 11px;
    color: var(--fg-dim);
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

pre.code {
    font-family: var(--font-mono);
    padding: 16px 20px;
    overflow-x: auto;
    font-size: 12.5px;
    line-height: 1.65;
    color: var(--fg);
}

pre.code code {
    background: none;
    border: none;
    padding: 0;
    font-size: inherit;
}

/* ── Hero ── */
.hero {
    background: transparent;
    padding: 108px 0 56px;
}

.hero-card {
    position: relative;
    background: transparent;
    border: 0;
    border-radius: 0;
    padding: 0;
    box-shadow: none;
}

.hero-banner {
    position: relative;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    margin-bottom: 28px;
}

.hero-banner img {
    width: 100%;
    display: block;
}

.hero-banner-badge {
    position: absolute;
    top: 12px;
    left: 14px;
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid var(--border);
    border-radius: 4px;
    padding: 4px 10px;
    font-size: 12px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.hero-banner-prompt { color: var(--green); }
.hero-banner-name { color: var(--fg-bright); font-weight: 600; }

.kicker {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    color: var(--accent);
    margin-bottom: 10px;
    font-weight: 500;
}

.hero-card .title {
    font-family: var(--font-mono);
    font-weight: 600;
    color: var(--fg-bright);
    margin-bottom: 14px;
    line-height: 1.35;
    letter-spacing: -0.4px;
}

.subtitle {
    font-size: 13px;
    color: var(--fg-dim);
    margin-bottom: 16px;
    line-height: 1.7;
}

.value {
    font-size: 13px;
    color: var(--fg-dim);
    line-height: 1.7;
    margin-bottom: 24px;
}

/* ── Buttons ── */
.btn {
    display: inline-block;
    padding: 12px 24px;
    font-family: var(--font-mono);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.08em;
    border-radius: 2px;
    background: rgba(246, 244, 238, 0.72);
    color: var(--accent-active);
    border: 1px solid var(--rule-strong);
    text-decoration: none;
    text-transform: uppercase;
    transition: background 0.15s, border-color 0.15s, color 0.15s;
    cursor: pointer;
}
.btn:hover {
    background: var(--blueprint);
    border-color: var(--blueprint);
    color: var(--paper);
    text-decoration: none;
}

.btn-ghost {
    background: transparent;
    border: 1px solid transparent;
    color: var(--accent);
    padding-left: 8px;
    padding-right: 8px;
}
.btn-ghost:hover {
    background: transparent;
    border-color: transparent;
    color: var(--accent-dim);
}

.hero-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 24px;
}

.hero-actions .btn {
    padding: 10px 20px;
    font-size: 12px;
}

/* ── Hero meta ── */
.hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 10px;
    font-size: 11px;
    color: var(--fg-dim);
    line-height: 1.6;
    padding-top: 20px;
    border-top: 1px solid var(--border);
}

.meta-item { white-space: nowrap; }
.meta-dot { color: var(--border); }

/* ── Contact ── */
.contact-line {
    font-size: 17px;
    color: var(--fg);
}

/* ── Links ── */
.link {
    color: var(--accent);
    text-decoration: underline;
    text-underline-offset: 3px;
}
.link:hover { color: var(--fg-bright); }

/* ── Footer ── */
.site-footer {
    border-top: 1px solid var(--border);
    padding: 24px 0;
    font-size: 12px;
    color: var(--fg-dim);
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

.footer-right {
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.3px;
    text-transform: uppercase;
    color: var(--fg-muted);
}

.footer-note {
    flex-basis: 100%;
    line-height: 1.6;
    color: var(--fg-dim);
}

/* ── Hero demo (worksheet in banner) ── */
.hero-bridge {
    font-size: 12px;
    font-weight: 600;
    color: var(--fg-dim);
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-bottom: 16px;
    text-align: center;
}

.hero-demo {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    margin-bottom: 8px;
}

.hero-demo-header {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    border-bottom: 1px solid var(--border);
}

.hero-demo-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--border);
}

.hero-demo-label {
    font-family: var(--font-mono);
    margin-left: 6px;
    font-size: 11px;
    color: var(--fg-dim);
    letter-spacing: 0.3px;
    text-transform: uppercase;
}

.hero-demo-caption {
    font-size: 12px;
    color: var(--fg-dim);
    margin-bottom: 24px;
    text-align: center;
}

/* worksheet table */
.ws-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 12px;
    line-height: 1.5;
}

.ws-table th {
    text-align: left;
    font-size: 11px;
    font-weight: 600;
    color: var(--fg-dim);
    text-transform: uppercase;
    letter-spacing: 0.4px;
    padding: 8px 12px;
    border-bottom: 1px solid var(--border);
    background: var(--bg-card);
}

.ws-table td {
    padding: 6px 12px;
    color: var(--fg);
    border-bottom: 1px solid var(--border);
}

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

.ws-num { text-align: right; }

.ws-flagged td {
    background: rgba(51, 78, 97, 0.08);
}

.ws-flag {
    display: inline-block;
    font-size: 10px;
    font-weight: 600;
    color: var(--green);
    border: 1px solid var(--green);
    border-radius: 3px;
    padding: 1px 6px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.ws-flag-cell { text-align: right; }

/* ── Comparison columns ── */
.compare-columns {
    display: flex;
    gap: 24px;
}

.compare-col {
    flex: 1;
}

.compare-heading {
    font-family: var(--font-mono);
    font-size: 12px;
    font-weight: 600;
    color: var(--fg-bright);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 10px;
}

.compare-caption {
    font-size: 12px;
    color: var(--fg-dim);
    line-height: 1.6;
    margin-top: 10px;
}

/* ── Persona cues ── */
.pcue {
    display: inline-block;
    vertical-align: -2px;
    width: 14px;
    height: 14px;
    flex-shrink: 0;
    color: var(--fg-dim);
}

.persona-blocks {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 0;
}

.persona-block {
    margin-bottom: 0;
}

.persona-label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 600;
    color: var(--fg-bright);
    margin-bottom: 4px;
}

.persona-list {
    list-style: none;
    margin: 6px 0 0 0;
    padding-left: 18px;
}

.persona-list li {
    position: relative;
    margin: 3px 0;
    color: var(--fg-dim);
    font-size: 13px;
    line-height: 1.6;
}

.persona-list li::before {
    content: '\2022';
    position: absolute;
    left: -14px;
    color: var(--fg-dim);
}

.persona-label,
.persona-list,
.persona-list li {
    font-family: var(--font-mono);
}

.hero-result {
    margin-top: 20px;
    margin-bottom: 20px;
}

.section-cue {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    color: var(--fg-dim);
    letter-spacing: 0.3px;
    margin-bottom: 6px;
}

.section-cue .pcue {
    width: 12px;
    height: 12px;
    vertical-align: -1px;
}

/* ── Responsive ── */
@media (max-width: 640px) {
    :root { --space: 16px; }

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

    .brand {
        min-width: 0;
    }

    .nav { gap: 12px; font-size: 11px; }
    .hero { padding: 78px 0 44px; }
    .hero-card { padding: 0; }
    .hero-card .title { font-size: 15px; }
    .section { padding: 64px 0; }
    .section-title { font-size: 34px; }
    .hero-actions { flex-direction: column; }
    .hero-actions .btn { text-align: center; }
    .footer-inner { flex-direction: column; text-align: center; }
    .compare-columns { flex-direction: column; }
}
