:root,
html[data-theme="light"] {
    color-scheme: light;
    --bg: #f2f5f4;
    --surface: #fbfdfc;
    --surface-soft: #e8f0ef;
    --surface-strong: #071113;
    --text: #081416;
    --text-soft: #42585c;
    --text-faint: #718589;
    --border: #cbd8d8;
    --border-strong: #9fb5b7;
    --brand: #006d77;
    --brand-strong: #004b52;
    --brand-soft: #d9f6f7;
    --accent: #6847e8;
    --accent-soft: #eee9ff;
    --pulse: #577000;
    --pulse-soft: #edf5cf;
    --success: #087451;
    --success-soft: #def4eb;
    --danger: #a72d51;
    --danger-soft: #fae6ed;
    --on-brand: #ffffff;
    --grid-line: rgba(0, 109, 119, 0.045);
    --glass: rgba(251, 253, 252, 0.86);
    --shadow: 0 22px 70px rgba(22, 47, 52, 0.12);
    --shadow-soft: 0 9px 30px rgba(22, 47, 52, 0.08);
    --glow-brand: 0 0 0 1px rgba(0, 109, 119, 0.08), 0 18px 65px rgba(0, 109, 119, 0.10);
}

html[data-theme="dark"] {
    color-scheme: dark;
    --bg: #010203;
    --surface: #050709;
    --surface-soft: #090d10;
    --surface-strong: #eafcfd;
    --text: #effbfb;
    --text-soft: #a4b7ba;
    --text-faint: #6f8589;
    --border: #152329;
    --border-strong: #294149;
    --brand: #5ff5ff;
    --brand-strong: #a8fbff;
    --brand-soft: #08292e;
    --accent: #b092ff;
    --accent-soft: #1d1836;
    --pulse: #b8ff59;
    --pulse-soft: #17230d;
    --success: #6ce3aa;
    --success-soft: #0d2b20;
    --danger: #ff789a;
    --danger-soft: #35141d;
    --on-brand: #011012;
    --grid-line: rgba(95, 245, 255, 0.035);
    --glass: rgba(5, 7, 9, 0.88);
    --shadow: 0 26px 86px rgba(0, 0, 0, 0.62);
    --shadow-soft: 0 10px 34px rgba(0, 0, 0, 0.42);
    --glow-brand: 0 0 0 1px rgba(95, 245, 255, 0.08), 0 20px 80px rgba(95, 245, 255, 0.07);
}

@media (prefers-color-scheme: dark) {
    html[data-theme="system"] {
    color-scheme: dark;
    --bg: #010203;
    --surface: #050709;
    --surface-soft: #090d10;
    --surface-strong: #eafcfd;
    --text: #effbfb;
    --text-soft: #a4b7ba;
    --text-faint: #6f8589;
    --border: #152329;
    --border-strong: #294149;
    --brand: #5ff5ff;
    --brand-strong: #a8fbff;
    --brand-soft: #08292e;
    --accent: #b092ff;
    --accent-soft: #1d1836;
    --pulse: #b8ff59;
    --pulse-soft: #17230d;
    --success: #6ce3aa;
    --success-soft: #0d2b20;
    --danger: #ff789a;
    --danger-soft: #35141d;
    --on-brand: #011012;
    --grid-line: rgba(95, 245, 255, 0.035);
    --glass: rgba(5, 7, 9, 0.88);
    --shadow: 0 26px 86px rgba(0, 0, 0, 0.62);
    --shadow-soft: 0 10px 34px rgba(0, 0, 0, 0.42);
    --glow-brand: 0 0 0 1px rgba(95, 245, 255, 0.08), 0 20px 80px rgba(95, 245, 255, 0.07);

    }
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    background: var(--bg);
}

body {
    margin: 0;
    min-height: 100vh;
    background:
        radial-gradient(circle at 12% 0%, color-mix(in srgb, var(--brand) 8%, transparent), transparent 34rem),
        var(--bg);
    color: var(--text);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 16px;
    line-height: 1.6;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
}

img,
svg {
    display: block;
    max-width: 100%;
}

button,
textarea,
input {
    font: inherit;
}

button,
a {
    -webkit-tap-highlight-color: transparent;
}

a {
    color: inherit;
    text-decoration-thickness: 0.08em;
    text-underline-offset: 0.18em;
}

button:focus-visible,
a:focus-visible,
textarea:focus-visible,
input:focus-visible {
    outline: 3px solid color-mix(in srgb, var(--brand) 55%, transparent);
    outline-offset: 3px;
}

::selection {
    background: var(--brand);
    color: #fff;
}

.shell {
    width: min(1180px, calc(100% - 40px));
    margin-inline: auto;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.skip-link {
    position: fixed;
    top: 12px;
    left: 12px;
    z-index: 1000;
    transform: translateY(-160%);
    padding: 10px 14px;
    border-radius: 10px;
    background: var(--surface-strong);
    color: var(--bg);
    font-weight: 800;
}

.skip-link:focus {
    transform: translateY(0);
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 80;
    border-bottom: 1px solid color-mix(in srgb, var(--border) 85%, transparent);
    background: color-mix(in srgb, var(--bg) 88%, transparent);
    backdrop-filter: blur(18px);
}

.header-inner {
    min-height: 76px;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 24px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 11px;
    text-decoration: none;
}

.brand img {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    box-shadow: var(--shadow-soft);
}

.brand-copy {
    display: grid;
    line-height: 1.12;
}

.brand-copy strong {
    font-size: 1.08rem;
    letter-spacing: 0.09em;
}

.brand-copy small {
    margin-top: 4px;
    color: var(--text-soft);
    font-size: 0.7rem;
    letter-spacing: 0.025em;
}

.primary-nav {
    justify-self: center;
    display: flex;
    align-items: center;
    gap: 4px;
}

.primary-nav a,
.language-link {
    border-radius: 10px;
    padding: 9px 11px;
    color: var(--text-soft);
    text-decoration: none;
    font-size: 0.84rem;
    font-weight: 750;
}

.primary-nav a:hover,
.primary-nav a[aria-current="page"],
.language-link:hover {
    background: var(--surface-soft);
    color: var(--text);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 6px;
}

.icon-button {
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: var(--surface);
    color: var(--text);
    cursor: pointer;
}

.icon-button:hover {
    border-color: var(--border-strong);
    background: var(--surface-soft);
}

.icon-button svg {
    width: 19px;
    height: 19px;
    fill: currentColor;
}

main {
    overflow: clip;
}

.hero {
    min-height: 510px;
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(260px, 0.65fr);
    align-items: center;
    gap: 56px;
    padding-block: 72px 46px;
}

.hero-copy {
    max-width: 790px;
}

.eyebrow,
.section-kicker {
    display: inline-block;
    color: var(--brand);
    font-size: 0.72rem;
    font-weight: 850;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.hero h1,
.page-hero h1 {
    margin: 13px 0 20px;
    max-width: 900px;
    font-size: clamp(3rem, 7.2vw, 6.6rem);
    line-height: 0.94;
    letter-spacing: -0.065em;
}

.hero-lead,
.page-hero > p {
    max-width: 770px;
    margin: 0;
    color: var(--text-soft);
    font-size: clamp(1.05rem, 1.7vw, 1.3rem);
    line-height: 1.65;
}

.trust-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 28px;
}

.trust-row span {
    padding: 7px 11px;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: var(--surface);
    color: var(--text-soft);
    font-size: 0.76rem;
    font-weight: 750;
}

.hero-mark {
    position: relative;
    display: grid;
    place-items: center;
    aspect-ratio: 1;
}

.hero-mark img {
    position: relative;
    z-index: 2;
    width: min(100%, 320px);
    border-radius: 36px;
    box-shadow: var(--shadow);
}

.hero-mark-orbit {
    position: absolute;
    width: 88%;
    aspect-ratio: 1;
    border: 1px solid color-mix(in srgb, var(--brand) 24%, transparent);
    border-radius: 50%;
}

.hero-mark-orbit::before,
.hero-mark-orbit::after {
    content: "";
    position: absolute;
    inset: 12%;
    border: 1px dashed color-mix(in srgb, var(--accent) 28%, transparent);
    border-radius: inherit;
}

.hero-mark-orbit::after {
    inset: 26%;
    border-style: solid;
}

.engine-panel {
    margin-bottom: 38px;
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: 28px;
    background: var(--surface);
    box-shadow: var(--shadow);
}

.engine-panel-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 30px;
    padding: 30px 32px 24px;
    border-bottom: 1px solid var(--border);
}

.engine-panel-head h2,
.section-heading h2,
.split-section h2,
.feature-columns h2,
.boundary-card h2 {
    margin: 7px 0 8px;
    font-size: clamp(1.7rem, 3.3vw, 3rem);
    line-height: 1.08;
    letter-spacing: -0.035em;
}

.engine-panel-head p,
.section-heading p,
.split-section p,
.feature-columns p,
.boundary-card p {
    max-width: 740px;
    margin: 0;
    color: var(--text-soft);
}

.privacy-signal {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 7px 10px;
    border: 1px solid color-mix(in srgb, var(--success) 40%, var(--border));
    border-radius: 999px;
    background: var(--success-soft);
    color: var(--success);
    font-size: 0.7rem;
    font-weight: 850;
    letter-spacing: 0.09em;
}

.privacy-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: currentColor;
}

.engine-status {
    padding: 10px 32px;
    border-bottom: 1px solid var(--border);
    background: var(--surface-soft);
    color: var(--text-soft);
    font-size: 0.78rem;
    font-weight: 700;
}

.engine-status[data-state="ready"] {
    background: var(--success-soft);
    color: var(--success);
}

.engine-status[data-state="error"] {
    background: var(--danger-soft);
    color: var(--danger);
}

.engine-form {
    padding: 28px 32px 30px;
}

.mode-fieldset {
    margin: 0 0 18px;
    padding: 0;
    border: 0;
}

.mode-fieldset legend {
    margin-bottom: 8px;
    color: var(--text-soft);
    font-size: 0.74rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.segmented-control {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}

.segmented-control label {
    position: relative;
    cursor: pointer;
}

.segmented-control input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.segmented-control span {
    display: block;
    padding: 8px 12px;
    border: 1px solid var(--border);
    border-radius: 999px;
    color: var(--text-soft);
    background: var(--surface);
    font-size: 0.82rem;
    font-weight: 750;
}

.segmented-control input:checked + span {
    border-color: color-mix(in srgb, var(--brand) 45%, var(--border));
    background: var(--brand-soft);
    color: var(--brand);
}

.segmented-control input:focus-visible + span {
    outline: 3px solid color-mix(in srgb, var(--brand) 45%, transparent);
    outline-offset: 2px;
}

.engine-form textarea {
    width: 100%;
    min-height: 178px;
    resize: vertical;
    padding: 20px 21px;
    border: 1px solid var(--border-strong);
    border-radius: 18px;
    background: var(--bg);
    color: var(--text);
    line-height: 1.65;
    transition: border-color 160ms ease, box-shadow 160ms ease;
}

.engine-form textarea::placeholder {
    color: var(--text-faint);
}

.engine-form textarea:focus {
    border-color: var(--brand);
    box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand) 10%, transparent);
    outline: none;
}

.engine-form-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    margin-top: 17px;
}

.local-toggle {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    color: var(--text-soft);
    cursor: pointer;
}

.local-toggle input {
    width: 17px;
    height: 17px;
    margin-top: 4px;
    accent-color: var(--brand);
}

.local-toggle span {
    display: grid;
}

.local-toggle strong {
    color: var(--text);
    font-size: 0.82rem;
}

.local-toggle small {
    margin-top: 2px;
    font-size: 0.72rem;
}

.button-row {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
}

.button {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 16px;
    border: 1px solid transparent;
    border-radius: 12px;
    text-decoration: none;
    font-size: 0.82rem;
    font-weight: 820;
    cursor: pointer;
    transition: transform 140ms ease, background 140ms ease, border-color 140ms ease;
}

.button:hover:not(:disabled) {
    transform: translateY(-1px);
}

.button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.button-primary {
    background: var(--surface-strong);
    color: var(--bg);
}

.button-primary:hover:not(:disabled) {
    background: var(--brand);
    color: #fff;
}

.button-secondary {
    border-color: color-mix(in srgb, var(--brand) 36%, var(--border));
    background: var(--brand-soft);
    color: var(--brand-strong);
}

.button-ghost {
    border-color: var(--border);
    background: var(--surface);
    color: var(--text-soft);
}

.engine-results {
    border-top: 1px solid var(--border);
    background: color-mix(in srgb, var(--surface-soft) 58%, var(--surface));
    padding: 30px 32px 34px;
}

.results-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 20px;
}

.results-heading h3 {
    margin: 5px 0 0;
    font-size: 1.55rem;
    letter-spacing: -0.025em;
}

.readiness {
    display: grid;
    justify-items: end;
    line-height: 1.08;
}

.readiness strong {
    font-size: 1.8rem;
    color: var(--brand);
}

.readiness span {
    margin-top: 4px;
    color: var(--text-faint);
    font-size: 0.68rem;
    font-weight: 750;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.result-grid {
    display: grid;
    grid-template-columns: 0.95fr 1.05fr;
    gap: 14px;
}

.result-card {
    min-width: 0;
    padding: 20px;
    border: 1px solid var(--border);
    border-radius: 18px;
    background: var(--surface);
}

.result-card h4 {
    margin: 0 0 14px;
    font-size: 0.83rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.concept-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.concept-chip {
    position: relative;
    display: inline-grid;
    gap: 2px;
    padding: 8px 10px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: var(--surface-soft);
}

.concept-chip strong {
    font-size: 0.78rem;
}

.concept-chip small {
    color: var(--text-faint);
    font-size: 0.66rem;
}

.concept-chip[data-strength="direct"] {
    border-color: color-mix(in srgb, var(--success) 45%, var(--border));
}

.concept-chip[data-strength="inferred"] {
    border-color: color-mix(in srgb, var(--brand) 45%, var(--border));
}

.question-list {
    display: grid;
    gap: 10px;
}

.question-item {
    padding: 12px 13px;
    border: 1px solid var(--border);
    border-radius: 13px;
    background: var(--bg);
}

.question-item > p {
    margin: 0;
    color: var(--text);
    font-size: 0.88rem;
    font-weight: 720;
}

.question-item > small {
    display: block;
    margin-top: 4px;
    color: var(--text-faint);
}

.question-options {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 10px;
}

.question-options button {
    padding: 6px 9px;
    border: 1px solid var(--border);
    border-radius: 9px;
    background: var(--surface);
    color: var(--text-soft);
    font-size: 0.74rem;
    font-weight: 740;
    cursor: pointer;
}

.question-options button:hover,
.question-options button[aria-pressed="true"] {
    border-color: var(--brand);
    background: var(--brand-soft);
    color: var(--brand-strong);
}

.muted {
    color: var(--text-faint);
    font-size: 0.86rem;
}

.engine-output-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    margin-top: 16px;
}

.engine-feedback {
    min-height: 1.4em;
    margin: 10px 0 0;
    color: var(--success);
    font-size: 0.76rem;
    font-weight: 700;
}

.section {
    padding-block: 76px;
}

.section-heading {
    max-width: 780px;
    margin-bottom: 28px;
}

.compact-heading {
    margin-bottom: 22px;
}

.use-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 13px;
}

.use-card,
.info-panel,
.privacy-grid article,
.legal-stack article {
    border: 1px solid var(--border);
    border-radius: 18px;
    background: var(--surface);
    box-shadow: var(--shadow-soft);
}

.use-card {
    padding: 22px;
}

.use-index,
.privacy-grid article > span {
    color: var(--accent);
    font-size: 0.72rem;
    font-weight: 900;
    letter-spacing: 0.12em;
}

.use-card h3 {
    margin: 30px 0 7px;
    font-size: 1.14rem;
}

.use-card p {
    margin: 0;
    color: var(--text-soft);
    font-size: 0.9rem;
}

.section-contrast {
    border-block: 1px solid var(--border);
    background: var(--surface);
}

.split-section {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(360px, 1.1fr);
    align-items: center;
    gap: 60px;
}

.reasoning-flow {
    counter-reset: none;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.reasoning-flow li {
    min-height: 72px;
    display: flex;
    align-items: center;
    gap: 13px;
    padding: 12px 14px;
    border: 1px solid var(--border);
    border-radius: 13px;
    background: var(--bg);
    font-size: 0.86rem;
    font-weight: 740;
}

.reasoning-flow li span {
    color: var(--brand);
    font-size: 0.68rem;
    font-weight: 900;
}

.privacy-callout {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: end;
    gap: 30px;
}

.page-hero {
    padding-block: 86px 54px;
}

.page-hero h1 {
    max-width: 950px;
    font-size: clamp(2.6rem, 6vw, 5.7rem);
}

.narrow-hero {
    max-width: 900px;
}

.pont-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}

.pont-grid article {
    min-height: 230px;
    padding: 22px;
    border: 1px solid var(--border);
    border-radius: 18px;
    background: var(--surface);
}

.pont-grid article > span {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: var(--brand-soft);
    color: var(--brand);
    font-weight: 900;
}

.pont-grid h3 {
    margin: 46px 0 7px;
    font-size: 1.1rem;
}

.pont-grid p {
    margin: 0;
    color: var(--text-soft);
    font-size: 0.88rem;
}

.layer-list {
    display: grid;
    gap: 8px;
}

.layer-list article {
    display: grid;
    grid-template-columns: 70px 1fr;
    gap: 20px;
    align-items: center;
    padding: 17px 20px;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: var(--bg);
}

.layer-list article > span {
    color: var(--brand);
    font-size: 0.72rem;
    font-weight: 900;
}

.layer-list h3,
.layer-list p {
    margin: 0;
}

.layer-list h3 {
    font-size: 1rem;
}

.layer-list p {
    margin-top: 2px;
    color: var(--text-soft);
    font-size: 0.86rem;
}

.feature-columns {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.feature-columns article {
    padding: 22px 0;
}

.feature-columns article + article {
    padding-left: 24px;
    border-left: 1px solid var(--border);
}

.feature-columns h2 {
    font-size: 1.4rem;
}

.dual-panel {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.info-panel {
    padding: 26px;
}

.info-panel h2,
.privacy-grid h2,
.legal-stack h2 {
    margin: 7px 0 15px;
    font-size: 1.45rem;
    letter-spacing: -0.025em;
}

.check-list {
    display: grid;
    gap: 9px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.check-list li {
    position: relative;
    padding-left: 24px;
    color: var(--text-soft);
}

.check-list li::before {
    content: "";
    position: absolute;
    left: 2px;
    top: 0.65em;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--brand);
}

.evidence-section {
    align-items: stretch;
}

.claim-graph {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 9px;
    align-content: center;
}

.claim-main,
.claim-branch {
    padding: 16px;
    border: 1px solid var(--border);
    border-radius: 13px;
    background: var(--bg);
    font-weight: 780;
    text-align: center;
}

.claim-main {
    grid-column: 1 / -1;
    border-color: color-mix(in srgb, var(--brand) 45%, var(--border));
    background: var(--brand-soft);
    color: var(--brand-strong);
}

.claim-branch {
    font-size: 0.78rem;
    color: var(--text-soft);
}

.claim-branch.support {
    border-color: color-mix(in srgb, var(--success) 38%, var(--border));
}

.claim-branch.counter {
    border-color: color-mix(in srgb, var(--danger) 38%, var(--border));
}

.claim-branch.limit {
    border-color: color-mix(in srgb, var(--accent) 38%, var(--border));
}

.boundary-card {
    max-width: 880px;
}

.boundary-card .button {
    margin-top: 22px;
}

.privacy-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 13px;
}

.privacy-grid article {
    padding: 24px;
}

.privacy-grid article.wide {
    grid-column: 1 / -1;
}

.privacy-grid p,
.legal-stack p {
    margin: 0;
    color: var(--text-soft);
}

.legal-stack {
    max-width: 900px;
    display: grid;
    gap: 12px;
}

.legal-stack article {
    padding: 24px;
}

.legal-stack .button {
    justify-self: start;
    margin-top: 8px;
}

.page-actions {
    margin-top: 26px;
}

.error-page {
    min-height: 55vh;
}

.error-page .button {
    margin-top: 22px;
}

.site-footer {
    margin-top: 28px;
    border-top: 1px solid var(--border);
    background: var(--surface);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 0.7fr 0.7fr;
    gap: 52px;
    padding-block: 50px 34px;
}

.footer-brand p {
    max-width: 560px;
    margin: 16px 0 0;
    color: var(--text-soft);
    font-size: 0.86rem;
}

.footer-grid h2 {
    margin: 4px 0 13px;
    color: var(--text-faint);
    font-size: 0.69rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.footer-links {
    display: grid;
    gap: 7px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.footer-links a {
    color: var(--text-soft);
    font-size: 0.83rem;
    font-weight: 700;
    text-decoration: none;
}

.footer-links a:hover {
    color: var(--brand);
}

.footer-signature {
    display: grid;
    grid-template-columns: 1fr auto auto;
    align-items: center;
    gap: 22px;
    padding-block: 20px 26px;
    border-top: 1px solid var(--border);
    color: var(--text-faint);
    font-size: 0.72rem;
}

.footer-signature div {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.footer-signature p {
    margin: 0;
}

.footer-signature a {
    color: var(--text);
    text-decoration: none;
}

@media (max-width: 940px) {
    .header-inner {
        grid-template-columns: 1fr auto;
    }

    .primary-nav {
        grid-column: 1 / -1;
        grid-row: 2;
        justify-self: stretch;
        overflow-x: auto;
        padding-bottom: 8px;
        scrollbar-width: none;
    }

    .primary-nav::-webkit-scrollbar {
        display: none;
    }

    .site-header {
        position: relative;
    }

    .hero {
        grid-template-columns: 1fr;
        min-height: 0;
        padding-top: 54px;
    }

    .hero-mark {
        display: none;
    }

    .use-grid,
    .pont-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .split-section,
    .feature-columns,
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .feature-columns article + article {
        padding-left: 0;
        border-left: 0;
        border-top: 1px solid var(--border);
    }

    .footer-signature {
        grid-template-columns: 1fr;
        gap: 8px;
    }
}

@media (max-width: 700px) {
    .shell {
        width: min(100% - 28px, 1180px);
    }

    .header-inner {
        min-height: 68px;
        gap: 12px;
    }

    .brand-copy small {
        display: none;
    }

    .language-link {
        padding-inline: 7px;
        font-size: 0.76rem;
    }

    .hero {
        padding-block: 42px 30px;
    }

    .hero h1,
    .page-hero h1 {
        font-size: clamp(2.65rem, 15vw, 4.6rem);
    }

    .trust-row {
        margin-top: 22px;
    }

    .engine-panel {
        border-radius: 20px;
    }

    .engine-panel-head,
    .engine-form,
    .engine-results {
        padding-inline: 18px;
    }

    .engine-panel-head {
        flex-direction: column;
    }

    .engine-status {
        padding-inline: 18px;
    }

    .engine-form-footer,
    .results-heading,
    .privacy-callout {
        align-items: stretch;
        flex-direction: column;
        display: flex;
    }

    .button-row {
        width: 100%;
    }

    .button-row .button {
        flex: 1 1 auto;
    }

    .readiness {
        justify-items: start;
    }

    .result-grid,
    .dual-panel,
    .privacy-grid,
    .use-grid,
    .pont-grid,
    .reasoning-flow {
        grid-template-columns: 1fr;
    }

    .privacy-grid article.wide {
        grid-column: auto;
    }

    .claim-graph {
        grid-template-columns: 1fr;
    }

    .claim-main {
        grid-column: auto;
    }

    .section {
        padding-block: 54px;
    }

    .page-hero {
        padding-block: 58px 32px;
    }

    .layer-list article {
        grid-template-columns: 44px 1fr;
        gap: 10px;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
    }
}

/* Kerkito 8.1 : local memory, deterministic feedback and changelog */
.concept-chip {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 8px;
}

.concept-chip > div:first-child {
    display: grid;
    gap: 2px;
}

.concept-feedback {
    display: inline-flex;
    gap: 4px;
}

.concept-feedback button {
    display: grid;
    place-items: center;
    width: 26px;
    height: 26px;
    padding: 0;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--surface);
    color: var(--text-faint);
    font: inherit;
    font-weight: 900;
    cursor: pointer;
}

.concept-feedback button:hover,
.concept-feedback button:focus-visible {
    border-color: var(--brand);
    color: var(--brand-strong);
}

.question-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
}

.question-heading p {
    margin: 0;
    color: var(--text);
    font-size: 0.88rem;
    font-weight: 720;
}

.question-heading span {
    flex: 0 0 auto;
    padding: 4px 7px;
    border-radius: 999px;
    background: var(--brand-soft);
    color: var(--brand-strong);
    font-size: 0.61rem;
    font-weight: 850;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.question-item[data-priority="high"] {
    border-color: color-mix(in srgb, var(--brand) 48%, var(--border));
}

.reasoning-reading {
    margin-top: 14px;
    padding: 20px;
    border: 1px solid var(--border);
    border-radius: 18px;
    background: var(--surface);
}

.reasoning-reading-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
}

.reasoning-reading h4 {
    margin: 4px 0 0;
    font-size: 1.15rem;
}

.reasoning-state {
    padding: 7px 10px;
    border-radius: 999px;
    background: var(--surface-soft);
    color: var(--text-soft);
    font-size: 0.72rem;
}

.reasoning-state[data-state="stable"] {
    background: color-mix(in srgb, var(--success) 13%, var(--surface));
    color: var(--success);
}

.reasoning-state[data-state="fragile"] {
    background: color-mix(in srgb, #d97706 13%, var(--surface));
    color: #b45309;
}

.reasoning-metrics {
    display: grid;
    grid-template-columns: 1.6fr 0.7fr 0.7fr;
    gap: 8px;
    margin-top: 16px;
}

.reasoning-metrics article,
.memory-stats article {
    display: grid;
    gap: 7px;
    min-width: 0;
    padding: 14px;
    border: 1px solid var(--border);
    border-radius: 13px;
    background: var(--bg);
}

.reasoning-metrics span,
.memory-stats span {
    color: var(--text-faint);
    font-size: 0.67rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.reasoning-metrics strong {
    color: var(--text);
    font-size: 0.86rem;
    line-height: 1.35;
}

.reasoning-note {
    margin: 13px 0 0;
    color: var(--text-faint);
    font-size: 0.76rem;
}

.memory-home {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(360px, 0.82fr);
    gap: 42px;
    align-items: center;
}

.memory-home h2 {
    max-width: 720px;
    margin: 7px 0 10px;
    font-size: clamp(2rem, 4vw, 3.5rem);
    letter-spacing: -0.04em;
}

.memory-home p {
    max-width: 720px;
    color: var(--text-soft);
}

.memory-home-actions {
    display: grid;
    gap: 8px;
}

.memory-home-point {
    display: grid;
    grid-template-columns: 42px 1fr;
    align-items: center;
    gap: 8px;
    padding: 12px 14px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: var(--surface);
}

.memory-home-point strong {
    color: var(--brand);
    font-size: 0.72rem;
}

.memory-home-point span {
    font-size: 0.86rem;
    font-weight: 720;
}

.local-memory-status {
    margin-bottom: 18px;
    padding: 10px 13px;
    border: 1px solid var(--border);
    border-radius: 11px;
    background: var(--surface);
    color: var(--text-soft);
    font-size: 0.8rem;
    font-weight: 700;
}

.local-memory-status[data-state="ready"] {
    border-color: color-mix(in srgb, var(--success) 35%, var(--border));
    color: var(--success);
}

.memory-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.memory-stats strong {
    font-size: 2rem;
    letter-spacing: -0.04em;
}

.memory-heading {
    margin-top: 42px;
}

.memory-list {
    display: grid;
    gap: 10px;
}

.memory-item {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 20px;
    padding: 18px;
    border: 1px solid var(--border);
    border-radius: 16px;
    background: var(--surface);
}

.memory-item h2 {
    margin: 6px 0 5px;
    font-size: 1.08rem;
    line-height: 1.3;
}

.memory-item p {
    margin: 0;
    color: var(--text-faint);
    font-size: 0.76rem;
}

.memory-mode {
    display: inline-flex;
    padding: 4px 7px;
    border-radius: 999px;
    background: var(--brand-soft);
    color: var(--brand-strong);
    font-size: 0.64rem;
    font-weight: 850;
    text-transform: uppercase;
}

.memory-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 7px;
}

.memory-empty {
    padding: 34px;
    border: 1px dashed var(--border-strong);
    border-radius: 18px;
    text-align: center;
    background: var(--surface-soft);
}

.memory-empty strong {
    display: block;
    font-size: 1.05rem;
}

.memory-empty p {
    max-width: 620px;
    margin: 7px auto 17px;
    color: var(--text-soft);
}

.memory-controls {
    display: flex;
    justify-content: flex-end;
    margin-top: 18px;
}

.memory-learning-section {
    align-items: start;
}

.memory-principles {
    display: grid;
    gap: 8px;
}

.memory-principles article {
    display: grid;
    grid-template-columns: 38px 1fr;
    gap: 4px 10px;
    padding: 14px;
    border: 1px solid var(--border);
    border-radius: 13px;
    background: var(--bg);
}

.memory-principles article > span {
    grid-row: 1 / 3;
    color: var(--brand);
    font-size: 0.7rem;
    font-weight: 900;
}

.memory-principles p {
    margin: 0;
    color: var(--text-soft);
    font-size: 0.82rem;
}

.learning-reset {
    padding-bottom: 44px;
}

.changelog-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
    gap: 24px;
}

.changelog-hero .eyebrow,
.changelog-hero h1,
.changelog-hero > p {
    grid-column: 1;
}

.version-banner {
    grid-column: 2;
    grid-row: 1 / 4;
    display: grid;
    justify-items: end;
    align-self: center;
    gap: 4px;
    padding: 18px 20px;
    border: 1px solid var(--border);
    border-radius: 16px;
    background: var(--surface);
}

.version-banner strong {
    color: var(--brand);
    font-size: 2.4rem;
    letter-spacing: -0.06em;
}

.version-banner span {
    max-width: 180px;
    color: var(--text-faint);
    font-size: 0.68rem;
    font-weight: 750;
    text-align: right;
}

.changelog-note {
    padding-top: 14px;
}

.changelog-note h2 {
    margin: 0 0 8px;
    font-size: 1.1rem;
}

.changelog-note p {
    max-width: 900px;
    margin: 0;
    color: var(--text-soft);
}

.history-timeline {
    position: relative;
    display: grid;
    gap: 0;
    padding-top: 22px;
}

.history-timeline::before {
    content: '';
    position: absolute;
    left: 18px;
    top: 34px;
    bottom: 82px;
    width: 1px;
    background: var(--border-strong);
}

.history-entry {
    position: relative;
    display: grid;
    grid-template-columns: 130px minmax(0, 1fr);
    gap: 28px;
    margin-left: 52px;
    padding: 0 0 46px;
}

.history-marker {
    position: absolute;
    left: -41px;
    top: 6px;
    width: 14px;
    height: 14px;
    border: 3px solid var(--bg);
    border-radius: 50%;
    background: var(--brand);
    box-shadow: 0 0 0 1px var(--border-strong);
}

.history-entry.current .history-marker {
    background: var(--success);
}

.history-meta {
    display: grid;
    align-content: start;
    gap: 6px;
    padding-top: 2px;
}

.history-meta span {
    color: var(--text-faint);
    font-size: 0.72rem;
    font-weight: 750;
}

.history-meta strong {
    color: var(--brand);
    font-size: 0.88rem;
}

.history-content {
    padding: 0 0 4px;
}

.history-content h2 {
    margin: 0 0 8px;
    font-size: clamp(1.35rem, 3vw, 2rem);
    letter-spacing: -0.035em;
}

.history-content > p {
    max-width: 850px;
    margin: 0;
    color: var(--text-soft);
}

.history-content ul {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 14px 0 0;
    padding: 0;
    list-style: none;
}

.history-content li {
    padding: 5px 8px;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: var(--surface-soft);
    color: var(--text-soft);
    font-size: 0.68rem;
    font-weight: 700;
}

.history-figure {
    margin: 20px 0 0;
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: 16px;
    background: var(--surface);
}

.history-figure img {
    display: block;
    width: 100%;
    height: auto;
}

.changelog-principles {
    align-self: start;
}

@media (max-width: 940px) {
    .memory-home,
    .changelog-hero {
        grid-template-columns: 1fr;
    }

    .version-banner {
        grid-column: 1;
        grid-row: auto;
        justify-items: start;
        justify-self: start;
    }

    .version-banner span {
        text-align: left;
    }

    .reasoning-metrics,
    .memory-stats {
        grid-template-columns: 1fr;
    }

    .memory-item {
        grid-template-columns: 1fr;
    }

    .memory-actions {
        justify-content: flex-start;
    }
}

@media (max-width: 700px) {
    .reasoning-reading-head {
        display: grid;
    }

    .history-entry {
        grid-template-columns: 1fr;
        gap: 10px;
        margin-left: 38px;
    }

    .history-timeline::before {
        left: 9px;
    }

    .history-marker {
        left: -36px;
    }

    .memory-actions .button {
        flex: 1 1 100%;
    }
}

/* Kerkito 8.2 : guided journey, progressive disclosure and voice controls */
.engine-panel-v82 {
    overflow: visible;
}

.journey-overview {
    padding: 22px 28px 24px;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    background: color-mix(in srgb, var(--brand-soft) 35%, var(--surface));
}

.journey-promise {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 16px;
}

.journey-promise strong {
    font-size: 0.94rem;
}

.journey-promise span {
    color: var(--text-soft);
    font-size: 0.84rem;
    text-align: right;
}

.journey-steps {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.journey-steps li {
    position: relative;
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr);
    gap: 9px;
    align-items: center;
    min-height: 64px;
    padding: 10px 12px;
    border: 1px solid var(--border);
    border-radius: 13px;
    background: var(--surface);
    color: var(--text-soft);
    transition: border-color 160ms ease, background 160ms ease, transform 160ms ease;
}

.journey-steps li > span {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 1px solid var(--border-strong);
    background: var(--surface-soft);
    color: var(--text);
    font-weight: 900;
    font-size: 0.82rem;
}

.journey-steps li strong,
.journey-steps li small {
    display: block;
}

.journey-steps li strong {
    color: var(--text);
    font-size: 0.82rem;
    line-height: 1.25;
}

.journey-steps li small {
    margin-top: 2px;
    font-size: 0.72rem;
    line-height: 1.3;
}

.journey-steps li[data-state="current"] {
    border-color: color-mix(in srgb, var(--brand) 58%, var(--border));
    background: var(--brand-soft);
    transform: translateY(-1px);
}

.journey-steps li[data-state="current"] > span {
    border-color: var(--brand);
    background: var(--brand);
    color: #fff;
}

.journey-steps li[data-state="done"] {
    border-color: color-mix(in srgb, var(--success) 42%, var(--border));
}

.journey-steps li[data-state="done"] > span {
    border-color: var(--success);
    background: var(--success-soft);
    color: var(--success);
}

.mode-details {
    margin-bottom: 16px;
}

.mode-details > summary,
.other-answer > summary,
.why-question > summary,
.advanced-reasoning > summary {
    cursor: pointer;
    color: var(--text-soft);
    font-size: 0.82rem;
    font-weight: 800;
}

.mode-details > summary:hover,
.other-answer > summary:hover,
.why-question > summary:hover,
.advanced-reasoning > summary:hover {
    color: var(--brand-strong);
}

.mode-details .mode-fieldset {
    margin-top: 12px;
}

.intent-entry {
    display: grid;
    gap: 10px;
}

.intent-entry-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
}

.intent-entry-head strong,
.intent-entry-head small {
    display: block;
}

.intent-entry-head strong {
    font-size: 0.92rem;
}

.intent-entry-head small {
    margin-top: 2px;
    color: var(--text-soft);
    font-size: 0.78rem;
}

.speech-actions {
    display: flex;
    gap: 7px;
}

.speech-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 36px;
    padding: 7px 10px;
    border: 1px solid var(--border-strong);
    border-radius: 10px;
    background: var(--surface);
    color: var(--text);
    font-size: 0.78rem;
    font-weight: 800;
    cursor: pointer;
}

.speech-button:hover:not(:disabled) {
    border-color: var(--brand);
    background: var(--brand-soft);
}

.speech-button:disabled {
    opacity: 0.46;
    cursor: not-allowed;
}

.speech-button-small {
    min-width: 38px;
    padding-inline: 8px;
}

.speech-status {
    min-height: 1.2em;
    margin: 0;
    color: var(--text-faint);
    font-size: 0.74rem;
}

.guided-results {
    background: color-mix(in srgb, var(--surface-soft) 62%, var(--surface));
}

.guided-topline {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
    padding: 26px 28px 8px;
}

.guided-topline h3 {
    margin: 3px 0 0;
    font-size: clamp(1.28rem, 2.4vw, 1.75rem);
    line-height: 1.12;
}

.guided-progress-copy {
    display: grid;
    justify-items: end;
    max-width: 300px;
    text-align: right;
}

.guided-progress-copy strong {
    color: var(--brand-strong);
    font-size: 0.9rem;
}

.guided-progress-copy span {
    color: var(--text-soft);
    font-size: 0.74rem;
}

.understanding-card,
.guided-question-card,
.first-result {
    margin: 16px 28px 0;
    border: 1px solid var(--border);
    border-radius: 16px;
    background: var(--surface);
    box-shadow: var(--shadow-soft);
}

.understanding-card {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(250px, 0.9fr);
    gap: 22px;
    padding: 22px;
}

.micro-label {
    display: block;
    margin-bottom: 5px;
    color: var(--brand-strong);
    font-size: 0.66rem;
    font-weight: 900;
    letter-spacing: 0.1em;
}

.understanding-card h4,
.guided-question-card h4,
.first-result h4 {
    margin: 0;
    font-size: 1.1rem;
    line-height: 1.25;
}

.understanding-card p,
.first-result p {
    margin: 7px 0 0;
    color: var(--text-soft);
    font-size: 0.86rem;
}

.occupation-context {
    font-weight: 760;
    color: var(--text) !important;
}

.primary-concepts {
    display: flex;
    align-content: flex-start;
    flex-wrap: wrap;
    gap: 8px;
}

.primary-concept {
    min-width: 118px;
    padding: 8px 10px;
    border: 1px solid var(--border);
    border-radius: 11px;
    background: var(--surface-soft);
}

.primary-concept strong,
.primary-concept small {
    display: block;
}

.primary-concept strong {
    font-size: 0.78rem;
}

.primary-concept small {
    margin-top: 2px;
    color: var(--text-faint);
    font-size: 0.66rem;
}

.primary-concept[data-strength="suggested"] {
    border-style: dashed;
    border-color: color-mix(in srgb, var(--accent) 55%, var(--border));
    background: var(--accent-soft);
}

.primary-concept[data-strength="confirmed"],
.primary-concept[data-strength="direct"] {
    border-color: color-mix(in srgb, var(--success) 38%, var(--border));
}

.guided-question-card {
    padding: 22px;
    border-color: color-mix(in srgb, var(--brand) 34%, var(--border));
}

.guided-question-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
    color: var(--brand-strong);
    font-size: 0.72rem;
    font-weight: 850;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.text-action {
    padding: 2px 0;
    border: 0;
    background: transparent;
    color: var(--brand-strong);
    font: inherit;
    font-weight: 800;
    text-decoration: underline;
    text-decoration-thickness: 0.08em;
    text-underline-offset: 0.18em;
    cursor: pointer;
}

.question-reassurance {
    max-width: 780px;
    margin: 7px 0 14px;
    color: var(--text-soft);
    font-size: 0.84rem;
}

.guided-answer-controls {
    display: grid;
    gap: 12px;
    margin-top: 16px;
}

.guided-choices {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
}

.guided-choices button {
    min-height: 42px;
    padding: 9px 14px;
    border: 1px solid var(--border-strong);
    border-radius: 12px;
    background: var(--surface-soft);
    color: var(--text);
    font-size: 0.82rem;
    font-weight: 820;
    cursor: pointer;
}

.guided-choices button:hover,
.guided-choices button[aria-pressed="true"] {
    border-color: var(--brand);
    background: var(--brand-soft);
    color: var(--brand-strong);
}

.question-bypass {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    padding-top: 3px;
}

.other-answer {
    padding-top: 2px;
}

.other-answer .question-text-answer {
    margin-top: 10px;
}

.question-text-answer {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    gap: 8px;
}

.question-text-answer input {
    min-width: 0;
    min-height: 42px;
    padding: 9px 11px;
    border: 1px solid var(--border-strong);
    border-radius: 10px;
    background: var(--surface);
    color: var(--text);
}

.why-question {
    margin-top: 14px;
    padding-top: 12px;
    border-top: 1px solid var(--border);
}

.why-question p {
    margin: 8px 0 0;
    max-width: 760px;
    color: var(--text-soft);
    font-size: 0.8rem;
}

.guided-change {
    margin-top: 14px;
    padding: 9px 11px;
    border-radius: 10px;
    background: var(--success-soft);
    color: var(--success);
    font-size: 0.78rem;
    font-weight: 760;
}

.guided-complete p {
    margin-bottom: 0;
    color: var(--text-soft);
}

.first-result {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 24px;
    align-items: center;
    padding: 20px 22px;
}

.first-result-status {
    display: grid;
    justify-items: end;
    text-align: right;
}

.first-result-status strong {
    color: var(--success);
    font-size: 0.84rem;
}

.first-result-status span {
    margin-top: 3px;
    color: var(--text-faint);
    font-size: 0.72rem;
}

.advanced-reasoning {
    margin: 18px 28px 0;
    padding: 14px 16px;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: color-mix(in srgb, var(--surface) 70%, transparent);
}

.advanced-reasoning-inner {
    padding-top: 16px;
}

.advanced-reasoning .results-heading,
.advanced-reasoning .result-grid,
.advanced-reasoning .reasoning-reading {
    padding-inline: 0;
}

.llm-contrast {
    padding-top: 74px;
}

.comparison-intro {
    max-width: 1120px;
    margin-bottom: 24px;
}

.comparison-intro-copy h2,
.section-heading h2,
.hero h1,
.privacy-callout h2,
.memory-home h2,
.split-section h2 {
    text-wrap: balance;
}

.comparison-intro-copy h2 {
    max-width: 100%;
    margin: 7px 0 10px;
}

.comparison-intro-note p {
    max-width: 840px;
    margin: 0;
    color: var(--text-soft);
}

.contrast-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin-top: 24px;
}

.contrast-grid article {
    display: grid;
    grid-template-columns: 32px 1fr;
    gap: 10px;
    padding: 18px;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: var(--surface);
    box-shadow: var(--shadow-soft);
}

.contrast-grid article > span {
    color: var(--accent);
    font-size: 0.7rem;
    font-weight: 900;
}

.contrast-grid h3 {
    margin: 0;
    font-size: 0.92rem;
}

.contrast-grid p {
    margin: 6px 0 0;
    color: var(--text-soft);
    font-size: 0.78rem;
}

@media (max-width: 900px) {
    .journey-steps,
    .contrast-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .understanding-card {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .journey-overview,
    .guided-topline,
    .understanding-card,
    .guided-question-card,
    .first-result,
    .advanced-reasoning {
        margin-inline: 16px;
    }

    .journey-overview {
        margin-inline: 0;
        padding-inline: 16px;
    }

    .journey-promise,
    .guided-topline,
    .intent-entry-head,
    .first-result {
        display: grid;
        grid-template-columns: 1fr;
    }

    .journey-promise span,
    .guided-progress-copy,
    .first-result-status {
        justify-items: start;
        text-align: left;
    }

    .journey-steps {
        grid-template-columns: 1fr 1fr;
    }

    .journey-steps li {
        grid-template-columns: 30px 1fr;
        min-height: 58px;
        padding: 9px;
    }

    .journey-steps li > span {
        width: 30px;
        height: 30px;
    }

    .speech-actions {
        justify-content: flex-start;
    }

    .question-text-answer {
        grid-template-columns: 1fr auto;
    }

    .question-text-answer .button {
        grid-column: 1 / -1;
    }

    .contrast-grid {
        grid-template-columns: 1fr;
    }
}

/* 8.2 : two complementary roles */
.comparison-duo {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    margin: 0 0 18px;
    align-items: stretch;
}

.comparison-side {
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 178px;
    padding: 24px;
    border: 1px solid var(--border);
    border-radius: 22px;
    background: linear-gradient(180deg, color-mix(in srgb, var(--surface) 92%, transparent), color-mix(in srgb, var(--surface-alt) 65%, var(--surface)));
    box-shadow: var(--shadow-soft);
}

.comparison-side::before {
    content: '';
    position: absolute;
    inset: 0 auto auto 0;
    width: 96px;
    height: 2px;
    border-radius: 999px;
    background: color-mix(in srgb, var(--accent) 58%, transparent);
}

.comparison-side-kerkito {
    border-color: color-mix(in srgb, var(--accent) 34%, var(--border));
    background: linear-gradient(180deg, color-mix(in srgb, var(--accent) 8%, var(--surface)), color-mix(in srgb, var(--surface-alt) 72%, var(--surface)));
}

.comparison-side-kerkito::before {
    background: linear-gradient(90deg, var(--accent), var(--accent-secondary, #8b5cf6));
}

.comparison-label {
    display: inline-flex;
    margin-bottom: 12px;
    font-size: .68rem;
    font-weight: 800;
    letter-spacing: .12em;
    color: var(--accent);
}

.comparison-side h3 {
    margin: 0 0 10px;
}

.comparison-side p {
    margin: 0;
    color: var(--text-soft);
    max-width: 48ch;
}

.comparison-together {
    max-width: 820px;
    margin: 0 0 22px;
    color: var(--text-soft);
}

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

    .comparison-side {
        min-height: auto;
    }
}

/* Kerkito 8.2.1 : mobile-first navigation and responsive polish */
.menu-toggle,
.language-short {
    display: none;
}

.menu-lines {
    width: 20px;
    height: 16px;
    display: grid;
    align-content: space-between;
}

.menu-lines > span {
    display: block;
    width: 100%;
    height: 2px;
    border-radius: 999px;
    background: currentColor;
    transform-origin: center;
    transition: transform 160ms ease, opacity 160ms ease;
}

.header-inner[data-nav-open="true"] .menu-lines > span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.header-inner[data-nav-open="true"] .menu-lines > span:nth-child(2) {
    opacity: 0;
}

.header-inner[data-nav-open="true"] .menu-lines > span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

@media (max-width: 940px) {
    .site-header {
        position: sticky;
        top: 0;
    }

    .header-inner {
        position: relative;
        min-height: 68px;
        grid-template-columns: minmax(0, 1fr) auto;
        gap: 12px;
    }

    .header-actions {
        justify-self: end;
    }

    /* No-JS fallback: navigation remains directly accessible. */
    .primary-nav {
        grid-column: 1 / -1;
        grid-row: 2;
        justify-self: stretch;
        display: flex;
        overflow-x: auto;
        padding: 0 0 8px;
        scrollbar-width: none;
    }

    .primary-nav a {
        flex: 0 0 auto;
        min-height: 44px;
        display: inline-flex;
        align-items: center;
    }

    html.nav-enhanced .menu-toggle {
        display: grid;
    }

    html.nav-enhanced .primary-nav {
        position: absolute;
        z-index: 95;
        top: calc(100% + 1px);
        left: 0;
        right: 0;
        grid-column: auto;
        grid-row: auto;
        display: none;
        max-height: calc(100dvh - 84px);
        overflow: auto;
        padding: 8px;
        border: 1px solid var(--border);
        border-radius: 0 0 16px 16px;
        background: color-mix(in srgb, var(--surface) 96%, transparent);
        box-shadow: 0 24px 48px rgba(16, 35, 58, 0.18);
        backdrop-filter: blur(18px);
    }

    html.nav-enhanced .header-inner[data-nav-open="true"] .primary-nav {
        display: grid;
        gap: 3px;
    }

    html.nav-enhanced .primary-nav a {
        width: 100%;
        min-height: 48px;
        padding: 10px 12px;
        border-radius: 10px;
        font-size: 0.9rem;
    }

    html.nav-enhanced .primary-nav a[aria-current="page"] {
        background: var(--brand-soft);
        color: var(--brand-strong);
    }

    body.mobile-menu-open {
        overflow: hidden;
    }

    .hero {
        gap: 0;
    }
}

@media (max-width: 700px) {
    .shell {
        width: min(100% - 24px, 1180px);
    }

    .header-inner {
        min-height: 64px;
        gap: 8px;
    }

    .brand {
        min-width: 0;
        gap: 8px;
    }

    .brand img {
        width: 38px;
        height: 38px;
        border-radius: 10px;
    }

    .brand-copy strong {
        font-size: 0.94rem;
        letter-spacing: 0.075em;
    }

    .header-actions {
        gap: 4px;
    }

    .icon-button {
        width: 44px;
        height: 44px;
        border-radius: 11px;
    }

    .language-link {
        min-width: 44px;
        min-height: 44px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        padding: 0 8px;
        border-radius: 11px;
        font-size: 0.76rem;
    }

    .language-long {
        display: none;
    }

    .language-short {
        display: inline;
        font-weight: 850;
        letter-spacing: 0.04em;
    }

    .hero {
        padding-block: 28px 22px;
    }

    .hero h1,
    .page-hero h1 {
        margin: 10px 0 14px;
        font-size: clamp(2.3rem, 11.5vw, 3.25rem);
        line-height: 0.98;
        letter-spacing: -0.055em;
    }

    .hero-lead,
    .page-hero > p {
        font-size: 0.98rem;
        line-height: 1.55;
    }

    .trust-row {
        gap: 6px;
        margin-top: 16px;
    }

    .trust-row span {
        padding: 6px 9px;
        font-size: 0.68rem;
    }

    .engine-panel {
        margin-bottom: 24px;
        border-radius: 18px;
    }

    .engine-panel-head {
        gap: 12px;
        padding: 20px 18px 16px;
    }

    .engine-panel-head h2,
    .section-heading h2,
    .split-section h2,
    .feature-columns h2,
    .boundary-card h2 {
        font-size: clamp(1.55rem, 8vw, 2.1rem);
        line-height: 1.08;
    }

    .engine-panel-head p,
    .section-heading p,
    .split-section p,
    .feature-columns p,
    .boundary-card p {
        font-size: 0.9rem;
        line-height: 1.55;
    }

    .privacy-signal {
        align-self: flex-start;
        padding: 6px 9px;
        font-size: 0.63rem;
    }

    .journey-overview {
        margin-inline: 0;
        padding: 15px 14px 16px;
    }

    .journey-promise {
        display: grid;
        gap: 3px;
        margin-bottom: 11px;
    }

    .journey-promise strong {
        font-size: 0.82rem;
    }

    .journey-promise span {
        font-size: 0.72rem;
        line-height: 1.35;
        text-align: left;
    }

    .journey-steps {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 5px;
    }

    .journey-steps li {
        display: flex;
        min-width: 0;
        min-height: 67px;
        flex-direction: column;
        justify-content: center;
        gap: 5px;
        padding: 7px 3px;
        text-align: center;
        border-radius: 11px;
    }

    .journey-steps li > span {
        width: 28px;
        height: 28px;
        font-size: 0.72rem;
    }

    .journey-steps li strong {
        font-size: 0.64rem;
        line-height: 1.15;
        overflow-wrap: anywhere;
    }

    .journey-steps li small {
        display: none;
    }

    .engine-status {
        padding: 9px 16px;
        font-size: 0.72rem;
        line-height: 1.4;
    }

    .engine-form {
        padding: 18px 16px 20px;
    }

    .mode-details {
        margin-bottom: 12px;
    }

    .intent-entry-head {
        display: grid;
        align-items: stretch;
        gap: 10px;
    }

    .intent-entry-head strong {
        font-size: 0.88rem;
    }

    .intent-entry-head small {
        font-size: 0.74rem;
        line-height: 1.4;
    }

    .speech-actions {
        width: 100%;
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 7px;
    }

    .speech-button {
        width: 100%;
        min-height: 44px;
        padding: 8px 10px;
    }

    .engine-form textarea {
        min-height: 132px;
        padding: 14px 15px;
        border-radius: 14px;
        font-size: 0.95rem;
        line-height: 1.5;
    }

    .speech-status {
        font-size: 0.7rem;
    }

    .engine-form-footer {
        display: grid;
        align-items: stretch;
        gap: 14px;
        margin-top: 14px;
    }

    .local-toggle {
        min-height: 44px;
        align-items: center;
    }

    .local-toggle input {
        flex: 0 0 auto;
        width: 20px;
        height: 20px;
        margin-top: 0;
    }

    .button-row {
        width: 100%;
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
    }

    .button-row .button {
        width: 100%;
        min-height: 46px;
        padding-inline: 10px;
    }

    .button-row .button-primary {
        grid-column: 1 / -1;
        grid-row: 1;
    }

    .guided-topline {
        display: grid;
        gap: 7px;
        padding: 20px 16px 6px;
    }

    .guided-topline h3 {
        font-size: 1.35rem;
    }

    .guided-progress-copy {
        justify-items: start;
        max-width: none;
        text-align: left;
    }

    .understanding-card,
    .guided-question-card,
    .first-result,
    .advanced-reasoning {
        margin: 12px 12px 0;
        border-radius: 14px;
    }

    .understanding-card,
    .guided-question-card,
    .first-result {
        padding: 16px;
    }

    .primary-concepts {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 7px;
    }

    .primary-concept {
        min-width: 0;
        padding: 8px;
    }

    .primary-concept strong {
        font-size: 0.74rem;
    }

    .guided-question-meta {
        align-items: flex-start;
        gap: 8px;
        font-size: 0.66rem;
    }

    .guided-question-card h4,
    .understanding-card h4,
    .first-result h4 {
        font-size: 1.02rem;
    }

    .guided-choices {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(132px, 1fr));
        gap: 7px;
    }

    .guided-choices button {
        width: 100%;
        min-height: 48px;
        padding: 9px 10px;
        font-size: 0.78rem;
        line-height: 1.3;
    }

    .question-bypass {
        gap: 10px 14px;
    }

    .question-text-answer {
        grid-template-columns: 1fr;
    }

    .question-text-answer input,
    .question-text-answer .button,
    .question-text-answer .speech-button-small {
        width: 100%;
        min-height: 46px;
    }

    .question-text-answer .speech-button-small {
        display: none;
    }

    .first-result-status {
        justify-items: start;
        text-align: left;
    }

    .advanced-reasoning {
        padding: 12px;
    }

    .advanced-reasoning .engine-results,
    .advanced-reasoning .results-heading,
    .advanced-reasoning .result-grid,
    .advanced-reasoning .reasoning-reading {
        padding-inline: 0;
    }

    .engine-output-actions {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
        margin-inline: 12px;
    }

    .engine-output-actions .button {
        width: 100%;
    }

    .engine-feedback {
        margin-inline: 12px;
    }

    .section {
        padding-block: 48px;
    }

    .section-heading {
        margin-bottom: 20px;
    }

    .use-card,
    .comparison-side,
    .pont-grid article,
    .info-panel,
    .privacy-grid article,
    .legal-stack article {
        border-radius: 15px;
    }

    .use-card,
    .comparison-side {
        padding: 18px;
    }

    .use-card h3 {
        margin-top: 18px;
    }

    .split-section {
        gap: 24px;
    }

    .reasoning-flow li {
        min-height: 62px;
    }

    .memory-home {
        gap: 24px;
    }

    .memory-home h2 {
        font-size: clamp(1.8rem, 9vw, 2.5rem);
    }

    .memory-home-point {
        min-height: 54px;
    }

    .memory-item {
        padding: 15px;
    }

    .memory-actions .button {
        min-height: 46px;
    }

    .page-hero {
        padding-block: 42px 24px;
    }

    .history-entry {
        padding-bottom: 34px;
    }

    .history-content h2 {
        font-size: 1.35rem;
    }

    .footer-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 26px 18px;
        padding-block: 34px 26px;
    }

    .footer-brand {
        grid-column: 1 / -1;
    }

    .footer-links {
        gap: 2px;
    }

    .footer-links a {
        min-height: 40px;
        display: flex;
        align-items: center;
        font-size: 0.8rem;
    }

    .footer-signature {
        gap: 10px;
        padding-block: 18px 24px;
        overflow-wrap: anywhere;
    }
}

@media (max-width: 360px) {
    .shell {
        width: min(100% - 18px, 1180px);
    }

    .brand img {
        width: 36px;
        height: 36px;
    }

    .brand-copy strong {
        font-size: 0.88rem;
    }

    .header-actions {
        gap: 2px;
    }

    .icon-button,
    .language-link {
        width: 42px;
        min-width: 42px;
        height: 42px;
        min-height: 42px;
    }

    .hero h1,
    .page-hero h1 {
        font-size: clamp(2.15rem, 11vw, 2.75rem);
    }

    .journey-overview,
    .engine-form,
    .engine-panel-head {
        padding-left: 12px;
        padding-right: 12px;
    }

    .journey-steps {
        gap: 4px;
    }

    .journey-steps li {
        min-height: 64px;
        padding-inline: 2px;
    }

    .journey-steps li strong {
        font-size: 0.59rem;
    }

    .guided-choices {
        grid-template-columns: 1fr;
    }

    .primary-concepts {
        grid-template-columns: 1fr;
    }
}

.speech-icon {
    flex: 0 0 auto;
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

@media (max-width: 940px) {
    html.nav-enhanced .primary-nav {
        background: var(--surface);
    }
}

/* Mobile browser details: safe areas, iOS focus zoom and touch ergonomics. */
html {
    -webkit-text-size-adjust: 100%;
    scroll-padding-top: calc(82px + env(safe-area-inset-top));
}

button,
a,
label,
summary {
    touch-action: manipulation;
}

@media (max-width: 940px) {
    .site-header {
        padding-top: env(safe-area-inset-top);
    }

    html.nav-enhanced .primary-nav {
        max-height: calc(100dvh - 84px - env(safe-area-inset-top));
    }

    .site-footer {
        padding-bottom: env(safe-area-inset-bottom);
    }
}

@media (max-width: 700px) {
    .engine-form textarea,
    .question-text-answer input {
        font-size: 1rem;
    }
}


/* Kerkito 8.2.2: reversible future palette */
body {
    background:
        radial-gradient(circle at 8% -8%, color-mix(in srgb, var(--brand) 14%, transparent), transparent 34rem),
        radial-gradient(circle at 96% 2%, color-mix(in srgb, var(--accent) 10%, transparent), transparent 30rem),
        linear-gradient(to right, var(--grid-line) 1px, transparent 1px),
        linear-gradient(to bottom, var(--grid-line) 1px, transparent 1px),
        var(--bg);
    background-size: auto, auto, 48px 48px, 48px 48px, auto;
    background-attachment: fixed;
}

.site-header {
    border-bottom-color: color-mix(in srgb, var(--brand) 12%, var(--border));
    background: var(--glass);
}

.brand img {
    box-shadow: var(--shadow-soft), 0 0 0 1px color-mix(in srgb, var(--brand) 13%, transparent);
}

.icon-button,
.language-link {
    border-color: color-mix(in srgb, var(--brand) 14%, var(--border));
    background: color-mix(in srgb, var(--surface) 92%, transparent);
}

.icon-button:hover,
.language-link:hover {
    border-color: color-mix(in srgb, var(--brand) 48%, var(--border));
    background: var(--brand-soft);
}


.theme-glyph {
    display: grid;
    place-items: center;
}

.theme-glyph [data-theme-glyph] {
    display: none;
}

html[data-theme="system"] .theme-glyph [data-theme-glyph="system"],
html[data-theme="light"] .theme-glyph [data-theme-glyph="light"],
html[data-theme="dark"] .theme-glyph [data-theme-glyph="dark"] {
    display: block;
}

[data-theme-toggle] {
    position: relative;
    overflow: hidden;
}

[data-theme-toggle]::after {
    content: "";
    position: absolute;
    right: 5px;
    bottom: 5px;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--pulse);
    box-shadow: 0 0 12px color-mix(in srgb, var(--pulse) 70%, transparent);
}

.hero-mark-orbit {
    border-color: color-mix(in srgb, var(--brand) 36%, transparent);
    box-shadow: 0 0 70px color-mix(in srgb, var(--brand) 9%, transparent);
}

.hero-mark-orbit::before {
    border-color: color-mix(in srgb, var(--accent) 34%, transparent);
}

.hero-mark-orbit::after {
    border-color: color-mix(in srgb, var(--pulse) 28%, transparent);
}

.engine-panel,
.use-card,
.info-panel,
.privacy-grid article,
.legal-stack article,
.comparison-side,
.pont-grid article,
.memory-item,
.reasoning-reading,
.understanding-card,
.guided-question-card,
.first-result,
.version-banner {
    background:
        linear-gradient(145deg, color-mix(in srgb, var(--surface) 96%, var(--brand) 4%), var(--surface));
}

.engine-panel {
    border-color: color-mix(in srgb, var(--brand) 18%, var(--border));
    box-shadow: var(--shadow), var(--glow-brand);
}

.journey-overview {
    background:
        linear-gradient(110deg, color-mix(in srgb, var(--brand-soft) 52%, var(--surface)), color-mix(in srgb, var(--accent-soft) 22%, var(--surface)));
}

.journey-steps li[data-state="current"] {
    box-shadow: 0 0 0 1px color-mix(in srgb, var(--brand) 10%, transparent), 0 10px 30px color-mix(in srgb, var(--brand) 8%, transparent);
}

.journey-steps li[data-state="done"] > span,
.privacy-dot,
.check-list li::before {
    box-shadow: 0 0 14px color-mix(in srgb, var(--success) 30%, transparent);
}

.use-index,
.privacy-grid article > span,
.contrast-grid article > span,
.comparison-label {
    color: var(--accent);
}

.micro-label,
.section-kicker,
.eyebrow,
.layer-list article > span,
.memory-home-point strong,
.memory-principles article > span {
    text-shadow: 0 0 20px color-mix(in srgb, var(--brand) 14%, transparent);
}

.button-primary {
    border-color: color-mix(in srgb, var(--brand) 46%, transparent);
    background: linear-gradient(135deg, var(--brand), color-mix(in srgb, var(--brand) 58%, var(--accent)));
    color: var(--on-brand);
    box-shadow: 0 10px 28px color-mix(in srgb, var(--brand) 16%, transparent);
}

.button-primary:hover:not(:disabled) {
    border-color: color-mix(in srgb, var(--pulse) 45%, var(--brand));
    background: linear-gradient(135deg, color-mix(in srgb, var(--brand) 88%, var(--pulse)), color-mix(in srgb, var(--accent) 72%, var(--brand)));
    color: var(--on-brand);
}

.button-secondary {
    border-color: color-mix(in srgb, var(--accent) 30%, var(--border));
    background: color-mix(in srgb, var(--accent-soft) 64%, var(--surface));
    color: color-mix(in srgb, var(--accent) 72%, var(--text));
}

::selection {
    background: var(--brand);
    color: var(--on-brand);
}

html[data-theme="dark"] .section-contrast {
    background: color-mix(in srgb, var(--surface) 94%, var(--brand) 2%);
}

@media (prefers-color-scheme: dark) {
    html[data-theme="system"] .section-contrast {
        background: color-mix(in srgb, var(--surface) 94%, var(--brand) 2%);
    }
}

html[data-theme="dark"] .site-footer {
    background: #030405;
}

html[data-theme="light"] .site-footer {
    background: color-mix(in srgb, var(--surface) 96%, var(--brand) 1%);
}

@media (prefers-color-scheme: dark) {
    html[data-theme="system"] .site-footer {
        background: #030405;
    }
}

@media (prefers-color-scheme: light) {
    html[data-theme="system"] .site-footer {
        background: color-mix(in srgb, var(--surface) 96%, var(--brand) 1%);
    }
}

@media (max-width: 700px) {
    body {
        background-size: auto, auto, 36px 36px, 36px 36px, auto;
        background-attachment: scroll;
    }

    .engine-panel {
        box-shadow: var(--shadow-soft), 0 0 0 1px color-mix(in srgb, var(--brand) 7%, transparent);
    }
}

/* Kerkito 8.2.4: unified language-independent identity */
.brand-symbol {
    position: relative;
    display: inline-grid;
    place-items: center;
    flex: 0 0 auto;
    isolation: isolate;
    aspect-ratio: 541 / 574;
}

.brand-symbol::after {
    content: "";
    position: absolute;
    z-index: -1;
    inset: 19%;
    border-radius: 50%;
    background:
        radial-gradient(circle at 72% 28%, color-mix(in srgb, #22d3ee 24%, transparent), transparent 43%),
        radial-gradient(circle at 28% 75%, color-mix(in srgb, #8b5cf6 22%, transparent), transparent 45%);
    filter: blur(18px);
    opacity: 0.5;
    animation: kerkito-brand-halo 7s ease-in-out infinite;
    pointer-events: none;
}

.brand-symbol-image {
    grid-area: 1 / 1;
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 0;
    box-shadow: none;
}

.brand-symbol-image--dark {
    display: none;
}

html[data-theme="dark"] .brand-symbol-image--light {
    display: none;
}

html[data-theme="dark"] .brand-symbol-image--dark {
    display: block;
}

@media (prefers-color-scheme: dark) {
    html[data-theme="system"] .brand-symbol-image--light {
        display: none;
    }

    html[data-theme="system"] .brand-symbol-image--dark {
        display: block;
    }
}

.brand-symbol--header {
    width: 42px;
}

.brand-symbol--footer {
    width: 44px;
}

.brand-symbol--hero {
    width: min(88%, 318px);
}

.brand .brand-symbol-image,
.hero-mark .brand-symbol-image,
.footer-brand .brand-symbol-image {
    width: 100%;
    height: 100%;
    border-radius: 0;
    box-shadow: none;
}

.hero-mark .brand-symbol {
    position: relative;
    z-index: 2;
}

.hero-mark .brand-symbol::after {
    inset: 12%;
    filter: blur(30px);
    opacity: 0.72;
}

.footer-brand .brand-symbol::after,
.site-header .brand-symbol::after {
    filter: blur(11px);
    opacity: 0.34;
}

@keyframes kerkito-brand-halo {
    0%, 100% {
        transform: scale(0.985);
        opacity: 0.34;
    }
    50% {
        transform: scale(1.025);
        opacity: 0.48;
    }
}

@media (prefers-reduced-motion: reduce) {
    .brand-symbol::after {
        animation: none;
    }
}

@media (max-width: 940px) {
    .brand-symbol--header {
        width: 38px;
    }
}

@media (max-width: 430px) {
    .brand-symbol--header {
        width: 35px;
    }

    .brand-symbol--hero {
        width: min(74vw, 250px);
    }
}

/* Kerkito 8.2.4 : reliable theme control and restrained brand motion */
[data-theme-toggle] {
    touch-action: manipulation;
    -webkit-user-select: none;
    user-select: none;
}

[data-theme-toggle] > *,
[data-theme-toggle]::after {
    pointer-events: none;
}

.brand-symbol-image {
    transition: filter .28s ease, transform .28s ease;
    will-change: auto;
}

.brand-symbol:hover .brand-symbol-image,
.brand-symbol:focus-visible .brand-symbol-image {
    filter: drop-shadow(0 0 10px color-mix(in srgb, var(--accent) 28%, transparent));
    transform: scale(1.015);
}

@media (prefers-reduced-motion: reduce) {
    .brand-symbol-image {
        transition: none;
    }
}

/* The toggle always shows the effective day/night state, including system mode. */
[data-theme-toggle][data-effective-theme="light"] .theme-glyph [data-theme-glyph],
[data-theme-toggle][data-effective-theme="dark"] .theme-glyph [data-theme-glyph] {
    display: none;
}

[data-theme-toggle][data-effective-theme="light"] .theme-glyph [data-theme-glyph="light"],
[data-theme-toggle][data-effective-theme="dark"] .theme-glyph [data-theme-glyph="dark"] {
    display: block;
}

/* Kerkito 8.2.7: internal ecosystem promotions */
.ecosystem-promos {
    padding-top: 54px;
}

.ecosystem-promos-head {
    display: block;
    max-width: 760px;
    margin-bottom: 22px;
}

.ecosystem-promos-head h2 {
    margin: 6px 0 8px;
    text-wrap: balance;
}

.ecosystem-promos-head p {
    margin: 0;
    max-width: 62ch;
    color: var(--text-soft);
}

.ecosystem-promo-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 18px;
}

.ecosystem-promo-card {
    position: relative;
    display: grid;
    grid-template-columns: 1fr;
    min-height: 0;
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: 22px;
    background: color-mix(in srgb, var(--surface) 94%, transparent);
    box-shadow: var(--shadow-soft);
    color: var(--text);
    text-decoration: none;
    isolation: isolate;
    transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease;
}

.ecosystem-promo-card::after {
    content: '';
    position: absolute;
    inset: auto 18px 0 18px;
    height: 1px;
    background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--accent) 78%, transparent), color-mix(in srgb, var(--accent-secondary, #8b5cf6) 74%, transparent), transparent);
    opacity: .72;
    transform: translateX(-18%);
    animation: ecosystem-scan 7s ease-in-out infinite alternate;
    pointer-events: none;
}

.ecosystem-promo-card:hover,
.ecosystem-promo-card:focus-visible {
    border-color: color-mix(in srgb, var(--accent) 40%, var(--border));
    transform: translateY(-2px);
    box-shadow: 0 20px 46px color-mix(in srgb, var(--accent) 10%, transparent);
}

.ecosystem-promo-card:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
}

.ecosystem-promo-media {
    position: relative;
    display: grid;
    place-items: center;
    min-width: 0;
    aspect-ratio: 1672 / 941;
    overflow: hidden;
    background: #03060c;
}

.ecosystem-promo-media::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(180deg, color-mix(in srgb, #03060c 4%, transparent), color-mix(in srgb, #03060c 13%, transparent));
    pointer-events: none;
}

.ecosystem-promo-media-bg,
.ecosystem-promo-media-main {
    display: block;
    grid-area: 1 / 1;
}

.ecosystem-promo-media-bg {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: blur(18px) saturate(.88) brightness(.42);
    opacity: .68;
    transform: scale(1.03);
}

.ecosystem-promo-media-main {
    position: relative;
    z-index: 2;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center center;
    transition: transform .35s ease;
}

.ecosystem-promo-card:hover .ecosystem-promo-media-main,
.ecosystem-promo-card:focus-visible .ecosystem-promo-media-main {
    transform: scale(1.012);
}

.ecosystem-promo-copy {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 8px;
    min-width: 0;
    padding: 17px 18px 19px;
    min-height: 138px;
}

.ecosystem-promo-copy strong {
    font-size: .92rem;
    letter-spacing: .01em;
}

.ecosystem-promo-copy > span:not(.ecosystem-promo-action) {
    color: var(--text-soft);
    font-size: .79rem;
    line-height: 1.55;
    max-width: 48ch;
    text-wrap: pretty;
}

.ecosystem-promo-action {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 4px;
    color: var(--accent);
    font-size: .72rem;
    font-weight: 800;
    letter-spacing: .03em;
}

@keyframes ecosystem-scan {
    from { transform: translateX(-18%); opacity: .42; }
    to { transform: translateX(18%); opacity: .9; }
}

@media (min-width: 700px) {
    .ecosystem-promo-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 1080px) {
    .ecosystem-promo-grid[data-count="3"] {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 420px) {
    .ecosystem-promo-card {
        border-radius: 18px;
    }

    .ecosystem-promo-copy {
        padding: 14px 15px 17px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .ecosystem-promo-card,
    .ecosystem-promo-media-main,
    .ecosystem-promo-card::after {
        transition: none;
        animation: none;
    }
}

