/* IRIS landing 2026 components: the ruled layout.
   Requires tokens.css (artifact) or tokens.app.css (ASP.NET site). No cards, no shadows on content. */

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; background: var(--bg-primary); color: var(--text-primary); font-family: var(--font-body); -webkit-font-smoothing: antialiased; }
.bi-svg { width: 1em; height: 1em; flex-shrink: 0; fill: currentColor; }
.bi { display: inline-flex; line-height: 1; flex-shrink: 0; }
.bi::before { vertical-align: 0; }

/* ===== Page frame: side rails ===== */
.page { position: relative; }
.page-rails::before,
.page-rails::after {
    content: ""; position: absolute; top: 0; bottom: 0; width: 1px; pointer-events: none;
    background: linear-gradient(to bottom, transparent 0, var(--rule) var(--rail-fade));
}
.page-rails::before { left: calc(50% - var(--content-width) / 2); }
.page-rails::after { left: calc(50% + var(--content-width) / 2); }

/* ===== Navbar ===== */
.nav {
    display: flex; align-items: center; gap: 24px; height: var(--nav-height); padding: 0 32px;
    background: var(--nav-bg); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--rule);
}
.nav-logo { width: 132px; height: auto; }
.nav-group { display: flex; align-items: center; }
.nav-group--end { margin-left: auto; }
.nav-item {
    display: flex; align-items: center; padding: 10px 16px; border: 0; background: none; cursor: pointer;
    font-family: var(--font-body); font-size: 14px; font-weight: 500; color: var(--nav-text); text-decoration: none;
}
.nav-item:hover { color: var(--accent); }
.nav-item[aria-current="true"] { color: var(--accent); }
.nav-item .bi, .nav-item .bi-svg { font-size: 18px; }
.nav-divider {
    width: 1px; height: var(--nav-divider-height);
    background: linear-gradient(to bottom, transparent 0, var(--rule-strong) var(--space-1), var(--rule-strong) calc(100% - var(--space-1)), transparent 100%);
}

/* ===== Hero ===== */
.hero { position: relative; overflow: hidden; background: var(--bg-primary); }
.hero::before {
    content: ""; position: absolute; inset: 0; pointer-events: none;
    background-image: repeating-linear-gradient(-45deg, transparent 0 10px, var(--hero-hatch) 10px 12px);
    -webkit-mask-image: linear-gradient(to bottom, rgba(0,0,0,.6), transparent 55%);
    mask-image: linear-gradient(to bottom, rgba(0,0,0,.6), transparent 55%);
}
.hero::after {
    content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: var(--hero-fade); pointer-events: none;
    background: linear-gradient(to bottom, transparent 0%, color-mix(in srgb, var(--bg-primary) 55%, transparent) 40%, color-mix(in srgb, var(--bg-primary) 90%, transparent) 75%, var(--bg-primary) 100%);
}
.hero-content { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; text-align: center; padding-top: 104px; }
.hero-title { margin: 0 0 20px; max-width: 860px; font-family: var(--font-display); font-weight: 700; font-size: clamp(2.25rem, 5vw, 4rem); line-height: 1.06; letter-spacing: -0.025em; color: var(--text-primary); text-wrap: balance; }
.hero-title em { font-style: normal; color: var(--accent); }
.hero-subtitle { margin: 0 0 36px; max-width: 600px; font-size: clamp(1rem, 1.5vw, 1.1875rem); line-height: 1.6; color: var(--text-secondary); }
.hero-cta { display: flex; gap: 16px; flex-wrap: wrap; justify-content: center; }

/* ===== Buttons ===== */
.btn {
    display: inline-flex; align-items: center; gap: 10px; padding: 14px 28px; border-radius: var(--radius-md);
    font-family: var(--font-display); font-weight: 600; font-size: 15px; text-decoration: none; cursor: pointer;
    transition: background-color .2s ease, border-color .2s ease, transform .2s ease;
}
.btn-action { background: var(--action); color: var(--on-action); border: 0; box-shadow: var(--shadow-cta); }
.btn-action:hover { background: var(--action-hover); transform: translateY(-1px); }
.btn-secondary { background: var(--btn-secondary-bg); color: var(--text-primary); border: 1px solid var(--rule-strong); }
.btn-secondary:hover { border-color: var(--accent); transform: translateY(-1px); }
.btn--sm { padding: 12px 22px; font-size: 14px; }
.btn:focus-visible, .nav-item:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* ===== Sections ===== */
.section { position: relative; padding: var(--space-28) calc(50% - var(--content-width) / 2) var(--space-32); border-top: 1px solid var(--rule); }
.section--flush-bottom { padding-bottom: 0; }
.section-head { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-12); align-items: end; padding: 0 var(--cell-pad-x) var(--space-16); }
.section-label { font-family: var(--font-mono); font-size: 12px; letter-spacing: .04em; text-transform: uppercase; color: var(--accent); }
.section-title { margin: 14px 0 0; font-family: var(--font-display); font-weight: 600; font-size: clamp(1.75rem, 3.5vw, 2.5rem); line-height: 1.15; letter-spacing: -0.015em; color: var(--text-primary); }
.section-description { margin: 0; max-width: 520px; font-size: clamp(.9375rem, 1.1vw, 1.0625rem); line-height: 1.7; color: var(--text-secondary); }

/* Two-tone statement (overview) */
.statement { margin: 0 0 var(--space-24); padding: 0 var(--cell-pad-x); max-width: calc(1000px + 2 * var(--cell-pad-x)); font-family: var(--font-display); font-weight: 600; font-size: clamp(1.75rem, 3.2vw, 2.75rem); line-height: 1.15; letter-spacing: -0.02em; color: var(--text-primary); }
.statement span { color: var(--text-quiet); }

/* ===== Ruled grid and cells ===== */
/* The 1px gap shows the grid's rule-coloured background between cells, so the lines
   stay correct at any column count. Cells repaint the page ground. */
.ruled-grid { display: grid; grid-template-columns: repeat(var(--cols, 3), minmax(0, 1fr)); gap: 1px; background: var(--rule); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.ruled-grid > * { background: var(--bg-primary); }
.ruled-grid--4 { --cols: 4; }
.ruled-grid--open { border-top: 0; border-bottom: 0; }   /* overview columns: vertical dividers only */

.cell { display: flex; flex-direction: column; min-width: 0; }
.cell-body { display: flex; flex-direction: column; padding: var(--space-8) var(--cell-pad-x) 44px; }
.cell-title { margin: 8px 0 10px; font-family: var(--font-display); font-weight: 600; font-size: 17px; color: var(--text-primary); }
.cell-text { margin: 0; font-size: 15px; line-height: 1.6; color: var(--text-secondary); }

/* Cell header strip: icon box + diagonal hatch */
.cell-strip { display: flex; height: var(--strip-height); border-bottom: 1px solid var(--rule); }
.cell-strip-icon { width: var(--strip-height); flex-shrink: 0; display: flex; align-items: center; justify-content: center; border-right: 1px solid var(--rule); color: var(--accent); font-size: 18px; }
.cell-strip-hatch { flex: 1; background-image: repeating-linear-gradient(45deg, var(--hatch) 0 1px, transparent 1px 8px); }

/* Mono index label: ↘ .01 TAG */
.label-index { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-mono); font-size: 11px; letter-spacing: .05em; text-transform: uppercase; color: var(--text-muted); }
.label-index .bi, .label-index .bi-svg { font-size: 11px; }
.label-index b { font-weight: 400; margin-left: 6px; }

/* Overview figure column */
.figure-col { display: flex; flex-direction: column; padding: 0 var(--cell-pad-x); color: inherit; text-decoration: none; }
.figure-col .label-index { font-size: 12px; }
.figure-art { height: 280px; display: flex; align-items: center; justify-content: center; }
.figure-art svg { width: 240px; height: 240px; }
.figure-art [data-face] { fill: var(--bg-primary); stroke: var(--accent-line); stroke-linejoin: round; }

/* Module list cell */
.module-item { display: flex; flex-direction: column; gap: 6px; padding: 26px var(--cell-pad-x) 28px; }
.module-code { font-family: var(--font-mono); font-size: 12px; font-weight: 500; letter-spacing: .06em; color: var(--accent); }
.module-name { font-family: var(--font-display); font-weight: 500; font-size: 16px; color: var(--text-primary); }
.module-note { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 26px var(--cell-pad-x); }

/* Tech item (About) */
.tech-item { display: flex; flex-direction: column; gap: 4px; padding: 20px var(--cell-pad-x) 22px; }
.tech-role { font-family: var(--font-mono); font-size: 11px; letter-spacing: .05em; text-transform: uppercase; color: var(--text-muted); }

/* ===== Footer ===== */
.footer { display: flex; align-items: center; justify-content: space-between; gap: 32px; padding: var(--space-10) calc(50% - var(--content-width) / 2 + var(--cell-pad-x)); border-top: 1px solid var(--rule); }
.footer img { height: 52px; width: auto; }
.footer p { margin: 0; font-family: var(--font-display); font-size: 13px; color: var(--text-muted); }

/* ===== Dashboard mockup (hero) ===== */
.mockup { position: relative; width: min(1040px, 100%); margin: 0 auto; border-radius: var(--radius-window) var(--radius-window) 0 0; overflow: hidden; border: 1px solid var(--mockup-border); border-bottom: 0; background: var(--mockup-bg); box-shadow: var(--shadow-mockup); }
.mockup-titlebar { display: flex; align-items: center; gap: 6px; padding: 12px 16px; background: var(--mockup-titlebar); border-bottom: 1px solid var(--mockup-border); font-family: var(--font-display); font-size: 12px; font-weight: 500; color: var(--mockup-text-muted); }
.mockup-dot { width: 10px; height: 10px; border-radius: 50%; }
.mockup-dot--red { background: var(--dot-red); } .mockup-dot--yellow { background: var(--dot-yellow); } .mockup-dot--green { background: var(--dot-green); }
.mockup-sidebar { width: 200px; background: var(--mockup-sidebar); border-right: 1px solid var(--mockup-border); padding: 16px 0; font-family: var(--font-display); font-size: 12px; font-weight: 500; color: var(--mockup-text-muted); }
.mockup-sidebar > * { padding: 9px 18px; }
.mockup-sidebar .is-active { background: var(--accent-tint); color: var(--accent); }
.mockup-panel { background: var(--mockup-card-bg); border: 1px solid var(--mockup-border); border-radius: var(--radius-md); padding: 14px; }
.mockup-label { font-family: var(--font-display); font-size: 11px; font-weight: 500; letter-spacing: .05em; text-transform: uppercase; color: var(--mockup-text-muted); }
.mockup-value { font-family: var(--font-display); font-size: 24px; font-weight: 700; color: var(--mockup-text); margin: 4px 0 10px; }
.mockup-track { height: 4px; border-radius: 2px; background: var(--mockup-bar-track); }
.mockup-fill { height: 4px; border-radius: 2px; background: var(--accent-line); }

/* ===== Responsive ===== */
@media (max-width: 1024px) {
    .ruled-grid, .ruled-grid--4 { --cols: 2; }
    .section-head { grid-template-columns: 1fr; }
}
@media (max-width: 680px) {
    .ruled-grid, .ruled-grid--4 { --cols: 1; }
    .page-rails::before, .page-rails::after { display: none; }
    .section { padding-left: 0; padding-right: 0; }
    .nav-group:not(.nav-group--end) { display: none; }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
