:root {
    color-scheme: dark;
    --theo-obsidian: #080909;
    --theo-soft-black: #101110;
    --theo-surface: #171816;
    --theo-bone: #f1ede4;
    --theo-stone: #aaa59b;
    --theo-gold: #c99a49;
    --theo-gold-light: #e1b966;
    --theo-gold-line: rgba(225, 185, 102, 0.18);
    --theo-light-line: rgba(241, 237, 228, 0.1);
    --theo-serif: "Iowan Old Style", Baskerville, "Times New Roman", serif;
    --theo-sans: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

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

body.cms-glass-body {
    background: var(--theo-obsidian) !important;
    background-image: none !important;
    color: var(--theo-bone) !important;
    font-family: var(--theo-sans) !important;
}

/*
 * KAN-98: header is sticky CMS chrome in the page column.
 * Core glass theme pads <main> 5rem and pulls heroes -5rem under a fixed bar.
 * That makes the header look like a layer falling off the page — undo it.
 */
body.cms-glass-body main {
    overflow: clip;
    padding-top: 0 !important;
}

body.cms-glass-body .cms-hero-inbox,
body.cms-glass-body .cms-hero-fullscreen {
    margin-top: 0 !important;
}

.cms-glass-header.cms-glass-bar {
    position: sticky !important;
    top: 0;
    width: 100%;
}

::selection {
    background: var(--theo-gold);
    color: var(--theo-obsidian);
}

a:focus-visible,
button:focus-visible,
summary:focus-visible {
    outline: 2px solid var(--theo-gold-light);
    outline-offset: 4px;
}

.cms-glass-bar {
    background: rgba(8, 9, 9, 0.82) !important;
    border-color: var(--theo-light-line) !important;
    box-shadow: 0 1px 0 var(--theo-light-line);
    backdrop-filter: blur(18px) saturate(120%);
}

.cms-glass-header .cms-wordmark,
.cms-ink-footer .cms-wordmark {
    color: var(--theo-bone);
    font-family: var(--theo-sans);
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.cms-glass-header .cms-wordmark::after {
    color: var(--theo-gold-light) !important;
}

/* Dropdown parents sit in a wrapper, so nav > a misses "Reports". */
.cms-glass-header nav > a,
.cms-glass-header nav > div > .inline-flex > a,
.cms-glass-header nav a.cms-nav-link,
.cms-glass-header nav button {
    color: var(--theo-stone) !important;
    font-family: var(--theo-sans) !important;
    font-size: 0.72rem;
    font-weight: 650;
    letter-spacing: 0.11em;
    text-transform: uppercase;
}

.cms-glass-header nav > a:hover,
.cms-glass-header nav > div > .inline-flex > a:hover,
.cms-glass-header nav a.cms-nav-link:hover,
.cms-glass-header nav button:hover {
    color: var(--theo-bone) !important;
}

.cms-glass-header nav .absolute > div {
    background: rgba(8, 9, 9, 0.94) !important;
    border: 1px solid var(--theo-light-line);
    border-radius: 0 !important;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.45);
}

.cms-glass-header nav .absolute a,
.cms-glass-header nav a.cms-nav-child {
    color: var(--theo-stone) !important;
    font-family: var(--theo-sans) !important;
    font-size: 0.72rem;
    font-weight: 650;
    letter-spacing: 0.11em;
    text-transform: uppercase;
    background: transparent !important;
}

.cms-glass-header nav .absolute a:hover,
.cms-glass-header nav a.cms-nav-child:hover {
    color: var(--theo-bone) !important;
    background: rgba(241, 237, 228, 0.04) !important;
}

[aria-label="Site menu"] nav button.cms-nav-link,
[aria-label="Site menu"] nav a.cms-nav-link,
[aria-label="Site menu"] nav a.cms-nav-child {
    color: var(--theo-stone) !important;
    font-family: var(--theo-sans) !important;
    font-size: 0.72rem;
    font-weight: 650;
    letter-spacing: 0.11em;
    text-transform: uppercase;
    background: transparent !important;
}

[aria-label="Site menu"] nav button.cms-nav-link:hover,
[aria-label="Site menu"] nav a.cms-nav-link:hover,
[aria-label="Site menu"] nav a.cms-nav-child:hover {
    color: var(--theo-bone) !important;
    background: rgba(241, 237, 228, 0.04) !important;
}

.cms-nav-view-all,
[aria-label="Site menu"] nav a.cms-nav-view-all {
    position: relative;
    margin-top: 0.35rem;
    padding-top: 0.7rem;
    border: 0 !important;
    border-radius: 0 !important;
}

.cms-nav-view-all::before,
[aria-label="Site menu"] nav a.cms-nav-view-all::before {
    content: "";
    position: absolute;
    left: 0.75rem;
    right: 0.75rem;
    top: 0;
    height: 1px;
    background: var(--theo-light-line);
    border-radius: 0;
}

.cms-glass-header a.bg-brand-primary,
.cms-glass-header a.bg-brand-secondary {
    border: 1px solid var(--theo-gold);
    box-shadow: none !important;
    color: var(--theo-obsidian) !important;
    font-size: 0.7rem;
    font-weight: 750;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.cms-glass-header aside {
    background: var(--theo-soft-black) !important;
    border-right: 1px solid var(--theo-light-line);
}

.cms-page > .cms-slot > section,
.cms-page > .cms-slot > figure {
    border-color: var(--theo-light-line) !important;
}

.cms-display,
.cms-title,
.cms-figure,
.cms-numeral {
    font-family: var(--theo-serif) !important;
}

.cms-lede {
    line-height: 1.65;
}

#home .cms-hero-inbox {
    min-height: 100svh;
    display: flex;
    align-items: center;
    background: var(--theo-obsidian);
    isolation: isolate;
}

#home .cms-hero-inbox::before,
#home .cms-hero-inbox::after {
    content: "";
    position: absolute;
    z-index: -1;
    border-radius: 999px;
    pointer-events: none;
}

#home .cms-hero-inbox::before {
    width: min(54vw, 48rem);
    aspect-ratio: 1;
    right: -10vw;
    top: 4rem;
    border: 1px solid var(--theo-gold-line);
    box-shadow: 0 0 8rem rgba(201, 154, 73, 0.08);
}

#home .cms-hero-inbox::after {
    width: 7px;
    height: 7px;
    right: 8vw;
    top: 12rem;
    background: var(--theo-gold-light);
    box-shadow: 0 0 1.5rem rgba(225, 185, 102, 0.7);
}

#home .cms-hero-inbox > canvas {
    opacity: 0.15 !important;
}

#home .cms-hero-inbox > .blur-\[60px\] {
    opacity: 0.08 !important;
    filter: blur(90px) !important;
}

#home .cms-hero-inbox h1 {
    max-width: 10ch;
    margin-bottom: 2rem;
    color: var(--theo-bone) !important;
    font-family: var(--theo-serif);
    font-size: clamp(4rem, 8.2vw, 8rem) !important;
    font-weight: 500 !important;
    letter-spacing: -0.065em;
    line-height: 0.84 !important;
    text-wrap: balance;
}

#home .cms-hero-inbox h1 > span:first-child {
    display: inline-block;
    color: var(--theo-gold-light);
    font-family: var(--theo-sans);
    font-size: 0.18em;
    font-weight: 700;
    letter-spacing: 0.2em;
    line-height: 1;
    text-transform: uppercase;
    transform: translateY(-0.65rem);
}

#home .cms-hero-inbox h1 > span:last-child {
    color: var(--theo-bone) !important;
    background: none !important;
    -webkit-text-fill-color: currentColor;
}

#home .cms-hero-inbox .max-w-2xl > p {
    max-width: 34rem;
    color: var(--theo-stone) !important;
    font-size: clamp(1.05rem, 1.5vw, 1.25rem);
}

#home .cms-hero-inbox .max-w-2xl > .inline-flex {
    border-color: var(--theo-gold-line) !important;
    background: rgba(201, 154, 73, 0.06) !important;
    box-shadow: none !important;
}

#home .cms-hero-inbox .max-w-2xl > .flex a {
    min-height: 3.25rem;
    border-radius: 999px !important;
    box-shadow: none !important;
    font-size: 0.76rem;
    letter-spacing: 0.07em;
    text-transform: uppercase;
}

#home .cms-hero-inbox .max-w-2xl > .flex a:first-child {
    color: var(--theo-obsidian) !important;
}

#home .cms-hero-inbox .max-w-2xl > .flex a:last-child {
    background: transparent !important;
    border-color: var(--theo-gold-line) !important;
    color: var(--theo-bone) !important;
}

#home .cms-hero-inbox .aspect-square {
    aspect-ratio: 4 / 5;
    max-width: 27rem;
}

#home .cms-hero-inbox .aspect-square > div:first-child {
    background: #f7f4ed !important;
    border: 1px solid rgba(241, 237, 228, 0.34) !important;
    border-radius: 0.75rem !important;
    box-shadow: 0 2rem 7rem rgba(0, 0, 0, 0.55) !important;
    transform: rotate(1.5deg);
}

#home .cms-hero-inbox .aspect-square > div:first-child .bg-brand-bg-sec,
#home .cms-hero-inbox .aspect-square > div:first-child .bg-brand-bg-sec\/80,
#home .cms-hero-inbox .aspect-square > div:first-child .bg-brand-bg-sec\/95 {
    background: #fffdf8 !important;
}

#home .cms-hero-inbox .aspect-square > div:first-child .bg-\[\#f6f8fc\] {
    background: #f3efe7 !important;
}

#home .cms-hero-inbox .aspect-square > div:first-child .text-gray-900,
#home .cms-hero-inbox .aspect-square > div:first-child .text-gray-800 {
    color: #171816 !important;
}

#home .cms-hero-inbox .aspect-square > div:first-child .text-brand-text-muted {
    color: #777269 !important;
}

#home .cms-hero-inbox .aspect-square > div:nth-child(2),
#home .cms-hero-inbox .aspect-square > div:nth-child(3) {
    opacity: 0.08 !important;
    filter: blur(22px) !important;
}

/* Homepage treatments follow the section, not cms-slot-N. Slot indexes move when compose changes. */
body:has(#home) .cms-slot:has(blockquote) > section {
    position: relative;
    background: var(--theo-soft-black) !important;
    border-block: 1px solid var(--theo-light-line);
}

body:has(#home) .cms-slot:has(blockquote) blockquote {
    max-width: 75rem;
}

body:has(#home) .cms-slot:has(blockquote) blockquote::before {
    content: "THE PRODUCT DIFFERENCE";
    display: block;
    margin-bottom: 2.5rem;
    color: var(--theo-gold-light);
    font-family: var(--theo-sans);
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.2em;
}

body:has(#home) .cms-slot:has(blockquote) blockquote p {
    max-width: 18ch;
    color: var(--theo-bone) !important;
    font-size: clamp(3rem, 7vw, 7rem);
    font-weight: 500;
    letter-spacing: -0.055em;
    line-height: 0.92;
}

body:has(#home) .cms-slot:has(a[href="/reports/sales-vs-target"]) > section {
    background: var(--theo-obsidian) !important;
}

body:has(#home) .cms-slot:has(a[href="/reports/sales-vs-target"]) .cms-title {
    position: sticky;
    top: 8rem;
    max-width: 12ch;
    color: var(--theo-gold-light) !important;
    font-family: var(--theo-sans) !important;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    line-height: 1.5;
}

body:has(#home) .cms-slot:has(a[href="/reports/sales-vs-target"]) .cms-lede {
    display: grid;
    gap: 0;
}

body:has(#home) .cms-slot:has(a[href="/reports/sales-vs-target"]) .cms-lede h3 {
    margin: 0;
    padding: 2.5rem 0 0.75rem;
    border-top: 1px solid var(--theo-light-line);
    color: var(--theo-bone);
    font-family: var(--theo-serif);
    font-size: clamp(2rem, 4.2vw, 4.25rem);
    font-weight: 500;
    letter-spacing: -0.045em;
    line-height: 1;
}

body:has(#home) .cms-slot:has(a[href="/reports/sales-vs-target"]) .cms-lede h3 a {
    color: inherit !important;
    text-decoration: none;
}

body:has(#home) .cms-slot:has(a[href="/reports/sales-vs-target"]) .cms-lede h3 a::after {
    content: "↗";
    display: inline-block;
    margin-left: 0.45em;
    color: var(--theo-gold);
    font-family: var(--theo-sans);
    font-size: 0.36em;
    transform: translateY(-0.65em);
    transition: transform 180ms ease;
}

body:has(#home) .cms-slot:has(a[href="/reports/sales-vs-target"]) .cms-lede h3 a:hover::after {
    transform: translate(0.2em, -0.85em);
}

body:has(#home) .cms-slot:has(a[href="/reports/sales-vs-target"]) .cms-lede p {
    max-width: 44rem;
    margin: 0 0 2.5rem !important;
    color: var(--theo-stone);
    font-size: 1rem;
}

body:has(#home) .cms-slot:has(a[href="/reports/sales-vs-target"]) .cms-lede strong {
    display: inline-block;
    margin-bottom: 0.35rem;
    color: var(--theo-gold-light);
    font-size: 0.67rem;
    letter-spacing: 0.13em;
    text-transform: uppercase;
}

#a-day-with-theo > section {
    background: var(--theo-soft-black) !important;
    border-block: 1px solid var(--theo-light-line) !important;
}

#a-day-with-theo h2 {
    color: var(--theo-bone) !important;
    font-family: var(--theo-serif);
    font-size: clamp(2.8rem, 5.5vw, 5.5rem) !important;
    font-weight: 500 !important;
    letter-spacing: -0.05em;
    line-height: 0.95 !important;
}

#a-day-with-theo h2 span {
    color: var(--theo-gold-light) !important;
}

#a-day-with-theo .lg\:col-span-7 > div {
    overflow: hidden;
    background: #f5f1e8 !important;
    border: 0 !important;
    border-radius: 0.5rem !important;
    box-shadow: 0 2.5rem 7rem rgba(0, 0, 0, 0.42) !important;
}

#a-day-with-theo .lg\:col-span-7 .bg-gray-50,
#a-day-with-theo table thead tr {
    background: #eae4d8 !important;
}

#a-day-with-theo table th,
#a-day-with-theo table td,
#a-day-with-theo .lg\:col-span-7 p,
#a-day-with-theo .lg\:col-span-7 span {
    color: #24241f !important;
    border-color: rgba(36, 36, 31, 0.12) !important;
}

#a-day-with-theo table th:nth-child(2),
#a-day-with-theo table td:nth-child(2) {
    background: rgba(201, 154, 73, 0.12) !important;
}

#real-briefing > section {
    background: var(--theo-obsidian) !important;
}

#real-briefing > section > .absolute {
    opacity: 0.16 !important;
}

#real-briefing h2 {
    color: var(--theo-bone) !important;
    font-family: var(--theo-serif);
    font-size: clamp(3rem, 6vw, 6rem) !important;
    font-weight: 500 !important;
    letter-spacing: -0.055em;
    line-height: 0.9;
}

#real-briefing .lg\:w-1\/2 > div {
    background: #f7f4ed !important;
    border: 1px solid rgba(241, 237, 228, 0.18) !important;
    border-radius: 0.5rem !important;
    box-shadow: 0 2.5rem 8rem rgba(0, 0, 0, 0.52) !important;
    transform: rotate(0.8deg);
}

#real-briefing .lg\:w-1\/2 .bg-brand-bg,
#real-briefing .lg\:w-1\/2 .bg-brand-bg-sec,
#real-briefing .lg\:w-1\/2 .bg-gray-50,
#real-briefing .lg\:w-1\/2 .bg-gray-100 {
    background: #fffdf8 !important;
}

#real-briefing .lg\:w-1\/2 .text-gray-900,
#real-briefing .lg\:w-1\/2 .text-gray-800 {
    color: #171816 !important;
}

#real-briefing .lg\:w-1\/2 .text-brand-text-muted {
    color: #777269 !important;
}

#real-briefing .lg\:w-1\/2 .border-gray-100,
#real-briefing .lg\:w-1\/2 .border-gray-200,
#real-briefing .lg\:w-1\/2 .border-gray-50 {
    border-color: rgba(36, 36, 31, 0.12) !important;
}

body:has(#home) .cms-slot:has(.theo-report-showcase) {
    position: relative;
    padding-block: clamp(4rem, 8vw, 8rem);
    background:
        radial-gradient(ellipse 70% 55% at 18% 40%, rgba(201, 154, 73, 0.14), transparent 58%),
        radial-gradient(ellipse 50% 40% at 88% 12%, rgba(225, 185, 102, 0.08), transparent 50%),
        var(--theo-soft-black);
    border-block: 1px solid var(--theo-light-line);
}

body:has(#home) .cms-slot:has(.theo-report-showcase)::before {
    content: "THE REPORT IS THE PROOF";
    display: block;
    margin: 0 auto 2rem;
    color: var(--theo-gold-light);
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.19em;
    text-align: center;
}

body:has(#home) .cms-slot:has(figure img) {
    position: relative;
    padding-block: clamp(4rem, 8vw, 8rem);
    background: var(--theo-soft-black);
    border-block: 1px solid var(--theo-light-line);
}

body:has(#home) .cms-slot:has(figure img)::before {
    content: "THE REPORT IS THE PROOF";
    display: block;
    margin: 0 auto 2rem;
    color: var(--theo-gold-light);
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.19em;
    text-align: center;
}

body:has(#home) .cms-slot:has(figure img) figure {
    margin: 0;
}

body:has(#home) .cms-slot:has(figure img) img {
    width: min(48rem, calc(100% - 2rem));
    height: min(66rem, 78svh);
    margin-inline: auto;
    object-fit: cover;
    object-position: top;
    border: 1px solid rgba(241, 237, 228, 0.16);
    border-radius: 0.6rem;
    box-shadow: 0 2.5rem 7rem rgba(0, 0, 0, 0.48);
}

body:has(#home) .cms-slot:has(figure img) figcaption {
    max-width: 48rem;
    padding-top: 1.25rem;
    color: var(--theo-stone) !important;
    font-size: 0.78rem;
    text-align: center;
}

body:has(#home) .cms-slot:has(.cms-numeral) > section {
    background: var(--theo-obsidian) !important;
}

body:has(#home) .cms-slot:has(.cms-numeral) h2 {
    max-width: 13ch;
    color: var(--theo-bone) !important;
    font-size: clamp(3.25rem, 7vw, 7rem);
    font-weight: 500;
    letter-spacing: -0.055em;
    line-height: 0.9;
}

body:has(#home) .cms-slot:has(.cms-numeral) .cms-numeral {
    color: var(--theo-gold) !important;
    font-family: var(--theo-sans) !important;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.16em;
}

body:has(#home) .cms-slot:has(.cms-numeral) h3 {
    color: var(--theo-bone) !important;
    font-family: var(--theo-serif);
    font-size: 2rem;
    font-weight: 500;
}

body:has(#home) .cms-slot:has(.cms-numeral) article {
    padding-top: 1.5rem;
    border-top: 1px solid var(--theo-light-line);
}

body:has(#home) .cms-slot:has(.cms-numeral) .bg-brand-primary {
    background: var(--theo-soft-black) !important;
    border: 1px solid var(--theo-gold-line);
    color: var(--theo-bone) !important;
}

body:has(#home) .cms-slot:has(section.bg-brand-primary ul) > section {
    background: var(--theo-gold) !important;
    color: var(--theo-obsidian) !important;
}

body:has(#home) .cms-slot:has(section.bg-brand-primary ul) li {
    background: rgba(8, 9, 9, 0.08) !important;
    border-color: rgba(8, 9, 9, 0.18) !important;
}

#pricing > section {
    background: var(--theo-soft-black) !important;
    border-block: 1px solid var(--theo-light-line) !important;
}

#pricing h2 {
    color: var(--theo-bone) !important;
    font-family: var(--theo-serif);
    font-size: clamp(3rem, 6vw, 6rem) !important;
    font-weight: 500 !important;
    letter-spacing: -0.055em;
    line-height: 0.92 !important;
}

#pricing .rounded-3xl {
    background: var(--theo-surface) !important;
    border: 1px solid var(--theo-light-line) !important;
    border-radius: 0.35rem !important;
    box-shadow: none !important;
}

#pricing .rounded-3xl:nth-child(2) {
    border-color: var(--theo-gold) !important;
    box-shadow: inset 0 3px 0 var(--theo-gold) !important;
}

#pricing .rounded-3xl h3,
#pricing .rounded-3xl span,
#pricing .rounded-3xl li {
    color: var(--theo-bone) !important;
}

#pricing .rounded-3xl .text-brand-muted,
#pricing .rounded-3xl p {
    color: var(--theo-stone) !important;
}

#pricing .rounded-3xl a {
    border-color: var(--theo-gold-line) !important;
    background: transparent !important;
    color: var(--theo-bone) !important;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

#pricing .rounded-3xl:nth-child(2) a {
    background: var(--theo-gold) !important;
    color: var(--theo-obsidian) !important;
}

#get-theo > section {
    position: relative;
    min-height: 34rem;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: var(--theo-obsidian) !important;
    border-top: 1px solid var(--theo-light-line);
    isolation: isolate;
}

#get-theo > section::before {
    content: "";
    position: absolute;
    z-index: -1;
    width: min(74vw, 42rem);
    aspect-ratio: 1;
    border: 1px solid var(--theo-gold);
    border-radius: 999px;
    box-shadow: inset 4rem -3rem 8rem rgba(201, 154, 73, 0.07), 0 0 8rem rgba(201, 154, 73, 0.05);
}

#get-theo > section > .absolute {
    display: none;
}

#get-theo h2 {
    color: var(--theo-bone) !important;
    font-family: var(--theo-serif);
    font-size: clamp(4rem, 9vw, 8.5rem) !important;
    font-weight: 500 !important;
    letter-spacing: -0.06em;
    line-height: 0.85;
}

#get-theo p {
    color: var(--theo-stone) !important;
}

#get-theo .w-16 {
    display: none;
}

#get-theo a {
    background: var(--theo-gold) !important;
    color: var(--theo-obsidian) !important;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

body:not(:has(#home)) .cms-hero-inbox {
    min-height: 76svh;
    display: flex;
    align-items: center;
    background: var(--theo-obsidian);
    border-bottom: 1px solid var(--theo-light-line);
    isolation: isolate;
}

body:not(:has(#home)) .cms-hero-inbox::before {
    content: "";
    position: absolute;
    z-index: -1;
    width: min(54vw, 42rem);
    aspect-ratio: 1;
    right: -9vw;
    top: 7rem;
    border: 1px solid var(--theo-gold-line);
    border-radius: 999px;
    box-shadow: 0 0 7rem rgba(201, 154, 73, 0.06);
}

body:not(:has(#home)) .cms-hero-inbox > canvas {
    opacity: 0.1 !important;
}

body:not(:has(#home)) .cms-hero-inbox > .blur-\[60px\] {
    opacity: 0.06 !important;
}

body:not(:has(#home)) .cms-hero-inbox h1 {
    max-width: 12ch;
    color: var(--theo-bone) !important;
    font-family: var(--theo-serif);
    font-size: clamp(3.6rem, 7.5vw, 7.5rem) !important;
    font-weight: 500 !important;
    letter-spacing: -0.06em;
    line-height: 0.88 !important;
}

body:not(:has(#home)) .cms-hero-inbox h1 > span:last-child {
    color: var(--theo-gold-light) !important;
    background: none !important;
    -webkit-text-fill-color: currentColor;
}

body:not(:has(#home)) .cms-hero-inbox .max-w-2xl > p {
    max-width: 38rem;
    color: var(--theo-stone) !important;
}

body:not(:has(#home)) .cms-hero-inbox .max-w-2xl > .inline-flex {
    background: rgba(201, 154, 73, 0.06) !important;
    border-color: var(--theo-gold-line) !important;
    box-shadow: none !important;
}

body:not(:has(#home)) .cms-hero-inbox .max-w-2xl > .flex a {
    min-height: 3.2rem;
    border-radius: 999px !important;
    box-shadow: none !important;
    font-size: 0.72rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

body:not(:has(#home)) .cms-hero-inbox .max-w-2xl > .flex a:first-child {
    color: var(--theo-obsidian) !important;
}

body:not(:has(#home)) .cms-hero-inbox .max-w-2xl > .flex a:last-child {
    background: transparent !important;
    border-color: var(--theo-gold-line) !important;
    color: var(--theo-bone) !important;
}

body:not(:has(#home)) .cms-hero-inbox .aspect-square {
    aspect-ratio: 4 / 5;
    max-width: 25rem;
}

body:not(:has(#home)) .cms-hero-inbox .aspect-square > div:first-child {
    background: #f7f4ed !important;
    border: 1px solid rgba(241, 237, 228, 0.3) !important;
    border-radius: 0.6rem !important;
    box-shadow: 0 2rem 7rem rgba(0, 0, 0, 0.52) !important;
    transform: rotate(1deg);
}

body:not(:has(#home)) .cms-hero-inbox .aspect-square > div:first-child .bg-brand-bg-sec,
body:not(:has(#home)) .cms-hero-inbox .aspect-square > div:first-child .bg-brand-bg-sec\/80,
body:not(:has(#home)) .cms-hero-inbox .aspect-square > div:first-child .bg-brand-bg-sec\/95 {
    background: #fffdf8 !important;
}

body:not(:has(#home)) .cms-hero-inbox .aspect-square > div:first-child .bg-\[\#f6f8fc\] {
    background: #f3efe7 !important;
}

body:not(:has(#home)) .cms-hero-inbox .aspect-square > div:first-child .text-gray-900,
body:not(:has(#home)) .cms-hero-inbox .aspect-square > div:first-child .text-gray-800 {
    color: #171816 !important;
}

body:not(:has(#home)) .cms-hero-inbox .aspect-square > div:first-child .text-brand-text-muted {
    color: #777269 !important;
}

body:not(:has(#home)) .cms-hero-inbox .aspect-square > div:nth-child(2),
body:not(:has(#home)) .cms-hero-inbox .aspect-square > div:nth-child(3) {
    opacity: 0.07 !important;
}

body:has(#reports-hub) .cms-slot:has(a[href="/reports/sales-vs-target"]) > section {
    background: var(--theo-obsidian) !important;
}

body:has(#reports-hub) .cms-slot:has(a[href="/reports/sales-vs-target"]) .cms-title {
    color: var(--theo-gold-light) !important;
    font-family: var(--theo-sans) !important;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    line-height: 1.5;
}

body:has(#reports-hub) .cms-slot:has(a[href="/reports/sales-vs-target"]) .cms-lede h3 {
    margin: 0;
    padding: 2.3rem 0 0.75rem;
    border-top: 1px solid var(--theo-light-line);
    color: var(--theo-bone);
    font-family: var(--theo-serif);
    font-size: clamp(2.2rem, 4.5vw, 4.5rem);
    font-weight: 500;
    letter-spacing: -0.05em;
    line-height: 1;
}

body:has(#reports-hub) .cms-slot:has(a[href="/reports/sales-vs-target"]) .cms-lede h3 a {
    color: inherit !important;
    text-decoration: none;
}

body:has(#reports-hub) .cms-slot:has(a[href="/reports/sales-vs-target"]) .cms-lede h3 a::after {
    content: "↗";
    margin-left: 0.45em;
    color: var(--theo-gold);
    font-family: var(--theo-sans);
    font-size: 0.36em;
    vertical-align: top;
}

body:has(#reports-hub) .cms-slot:has(a[href="/reports/sales-vs-target"]) .cms-lede p {
    margin: 0 0 2.5rem !important;
    color: var(--theo-stone);
}

body:has(#reports-hub) .cms-slot:has(a[href="/reports/sales-vs-target"]) .cms-lede strong {
    color: var(--theo-bone);
}

#pricing-page-plans > section {
    background: var(--theo-soft-black) !important;
    border-block: 1px solid var(--theo-light-line) !important;
}

#pricing-page-plans h2 {
    color: var(--theo-bone) !important;
    font-family: var(--theo-serif);
    font-size: clamp(3rem, 6vw, 6rem) !important;
    font-weight: 500 !important;
    letter-spacing: -0.055em;
    line-height: 0.92 !important;
}

#pricing-page-plans .rounded-3xl {
    background: var(--theo-surface) !important;
    border: 1px solid var(--theo-light-line) !important;
    border-radius: 0.35rem !important;
    box-shadow: none !important;
}

#pricing-page-plans .rounded-3xl:nth-child(2) {
    border-color: var(--theo-gold) !important;
    box-shadow: inset 0 3px 0 var(--theo-gold) !important;
}

#pricing-page-plans .rounded-3xl h3,
#pricing-page-plans .rounded-3xl span,
#pricing-page-plans .rounded-3xl li {
    color: var(--theo-bone) !important;
}

#pricing-page-plans .rounded-3xl p {
    color: var(--theo-stone) !important;
}

#pricing-page-plans .rounded-3xl a {
    background: transparent !important;
    border-color: var(--theo-gold-line) !important;
    color: var(--theo-bone) !important;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

#pricing-page-plans .rounded-3xl:nth-child(2) a {
    background: var(--theo-gold) !important;
    color: var(--theo-obsidian) !important;
}

body:has(#pricing-page) .cms-slot:has(.cms-lede) > section,
body:has(#pricing-page) .cms-slot:has(details) > section,
body:has(#faq-page) .cms-slot:has(details) > section,
body:has(#how-it-works-page) .cms-slot:has(ol) > section,
body:has(#how-it-works-page) .cms-slot:has(details) > section {
    background: var(--theo-obsidian) !important;
}

body:has(#pricing-page) .cms-slot:has(.cms-lede) .cms-title,
body:has(#how-it-works-page) .cms-slot:has(ol) .cms-title {
    max-width: 14ch;
    color: var(--theo-bone) !important;
    font-size: clamp(2.8rem, 5vw, 5.5rem);
    font-weight: 500;
    letter-spacing: -0.05em;
    line-height: 0.95;
}

body:has(#pricing-page) .cms-slot:has(.cms-lede) .cms-lede h3 {
    margin-top: 2.2rem;
    color: var(--theo-gold-light);
    font-family: var(--theo-sans);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

body:has(#how-it-works-page) .cms-slot:has(ol) ol {
    display: grid;
    gap: 0;
    list-style: none;
    padding: 0;
    counter-reset: theo-step;
}

body:has(#how-it-works-page) .cms-slot:has(ol) li {
    position: relative;
    padding: 2.3rem 0 2.3rem 4rem;
    border-top: 1px solid var(--theo-light-line);
    counter-increment: theo-step;
}

body:has(#how-it-works-page) .cms-slot:has(ol) li::before {
    content: "0" counter(theo-step);
    position: absolute;
    left: 0;
    top: 2.75rem;
    color: var(--theo-gold);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.1em;
}

body:has(#how-it-works-page) .cms-slot:has(ol) li h3 {
    margin: 0 0 0.5rem;
    color: var(--theo-bone);
    font-family: var(--theo-serif);
    font-size: clamp(2rem, 3.5vw, 3.5rem);
    font-weight: 500;
    letter-spacing: -0.045em;
}

body:has(#how-it-works-page) .cms-slot:has(ol) li p {
    margin: 0 !important;
    color: var(--theo-stone);
}

#report-timings > section {
    background: var(--theo-soft-black) !important;
    border-block: 1px solid var(--theo-light-line) !important;
}

#report-timings h2 {
    color: var(--theo-bone) !important;
    font-family: var(--theo-serif);
    font-size: clamp(2.8rem, 5.5vw, 5.5rem) !important;
    font-weight: 500 !important;
    letter-spacing: -0.05em;
    line-height: 0.95 !important;
}

#report-timings .lg\:col-span-7 > div {
    background: #f5f1e8 !important;
    border: 0 !important;
    border-radius: 0.5rem !important;
    box-shadow: 0 2rem 6rem rgba(0, 0, 0, 0.4) !important;
}

#report-timings .lg\:col-span-7 .bg-gray-50,
#report-timings table thead tr {
    background: #eae4d8 !important;
}

#report-timings table th,
#report-timings table td,
#report-timings .lg\:col-span-7 p,
#report-timings .lg\:col-span-7 span {
    color: #24241f !important;
    border-color: rgba(36, 36, 31, 0.12) !important;
}

body:has([id^="report-"]) .cms-slot:has(.cms-figure) > section {
    background: var(--theo-soft-black) !important;
    border-bottom: 1px solid var(--theo-light-line);
}

body:has([id^="report-"]) .cms-slot:has(.cms-figure) .cms-title {
    color: var(--theo-gold-light) !important;
    font-family: var(--theo-sans) !important;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

body:has([id^="report-"]) .cms-slot:has(.cms-figure) .cms-figure {
    color: var(--theo-bone) !important;
    font-size: clamp(2.25rem, 4vw, 4rem);
    font-weight: 500;
}

#what-theo-tells-you > section {
    background: var(--theo-obsidian) !important;
}

#what-theo-tells-you > section > .absolute {
    opacity: 0.14 !important;
}

#what-theo-tells-you h2 {
    color: var(--theo-bone) !important;
    font-family: var(--theo-serif);
    font-size: clamp(3rem, 5.5vw, 5.5rem) !important;
    font-weight: 500 !important;
    letter-spacing: -0.055em;
    line-height: 0.92;
}

#what-theo-tells-you .lg\:w-1\/2 > div {
    background: #f7f4ed !important;
    border: 1px solid rgba(241, 237, 228, 0.18) !important;
    border-radius: 0.5rem !important;
    box-shadow: 0 2.5rem 8rem rgba(0, 0, 0, 0.5) !important;
    transform: rotate(0.7deg);
}

#what-theo-tells-you .lg\:w-1\/2 .bg-brand-bg,
#what-theo-tells-you .lg\:w-1\/2 .bg-brand-bg-sec,
#what-theo-tells-you .lg\:w-1\/2 .bg-gray-50,
#what-theo-tells-you .lg\:w-1\/2 .bg-gray-100 {
    background: #fffdf8 !important;
}

#what-theo-tells-you .lg\:w-1\/2 .text-gray-900,
#what-theo-tells-you .lg\:w-1\/2 .text-gray-800 {
    color: #171816 !important;
}

#what-theo-tells-you .lg\:w-1\/2 .text-brand-text-muted {
    color: #777269 !important;
}

body:has([id^="report-"]) .cms-slot figure {
    padding-block: clamp(4rem, 8vw, 8rem);
    background: var(--theo-soft-black);
    border-block: 1px solid var(--theo-light-line);
}

body:has([id^="report-"]) .cms-slot figure img {
    width: min(50rem, calc(100% - 2rem));
    max-height: 76rem;
    margin-inline: auto;
    object-fit: contain;
    border: 1px solid rgba(241, 237, 228, 0.15);
    border-radius: 0.55rem;
    box-shadow: 0 2.5rem 7rem rgba(0, 0, 0, 0.48);
}

body:has([id^="report-"]) .cms-slot figure figcaption {
    max-width: 50rem;
    padding-top: 1.25rem;
    color: var(--theo-stone) !important;
    text-align: center;
}

body:has([id^="report-"]) .cms-slot > section:has(.cms-title) {
    background: var(--theo-obsidian) !important;
}

body:has([id^="report-"]) .cms-slot > section:has(.cms-title) .cms-title {
    color: var(--theo-bone) !important;
    font-size: clamp(2.8rem, 5vw, 5.25rem);
    font-weight: 500;
    letter-spacing: -0.05em;
    line-height: 0.95;
}

body:has([id^="report-"]) .cms-slot > section:has(.cms-title) h3 {
    margin-top: 2rem;
    color: var(--theo-gold-light);
    font-family: var(--theo-sans);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

body:has([id^="report-"]) .cms-slot > section.bg-brand-primary,
body:has([id^="report-"]) .cms-slot > section[class*="bg-brand-primary"] {
    background: var(--theo-gold) !important;
    color: var(--theo-obsidian) !important;
}

.cms-page details {
    border-color: var(--theo-light-line) !important;
}

.cms-page details summary {
    color: var(--theo-bone) !important;
}

.cms-page details p {
    color: var(--theo-stone) !important;
}

.cms-slot[id*="-cta"] > section {
    position: relative;
    overflow: hidden;
    background: var(--theo-soft-black) !important;
    border-top: 1px solid var(--theo-light-line);
}

.cms-slot[id*="-cta"] > section > .absolute {
    opacity: 0.08 !important;
}

.cms-slot[id*="-cta"] h2 {
    color: var(--theo-bone) !important;
    font-family: var(--theo-serif);
    font-size: clamp(3rem, 6vw, 6rem) !important;
    font-weight: 500 !important;
    letter-spacing: -0.055em;
    line-height: 0.9;
}

.cms-slot[id*="-cta"] p {
    color: var(--theo-stone) !important;
}

.cms-slot[id*="-cta"] a {
    background: var(--theo-gold) !important;
    color: var(--theo-obsidian) !important;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.cms-page-copy {
    background: var(--theo-obsidian);
}

.cms-page-copy .prose {
    max-width: 50rem;
    color: var(--theo-stone) !important;
}

.cms-page-copy h2,
.cms-page-copy h3 {
    margin: 2.5rem 0 0.8rem;
    color: var(--theo-bone);
    font-family: var(--theo-serif);
    font-size: 1.75rem;
}

.cms-page-copy a {
    color: var(--theo-gold-light);
}

.cms-ink-footer {
    background: #050606 !important;
    border-top: 1px solid var(--theo-gold-line) !important;
    color: var(--theo-bone) !important;
}

.cms-ink-footer a,
.cms-ink-footer p {
    color: var(--theo-stone) !important;
}

.cms-ink-footer a:hover {
    color: var(--theo-gold-light) !important;
}

/*
 * KAN-87: cream --brand-text on gold / primary / secondary hides type.
 * Core ink-footer CTA is bg-brand-secondary + text-brand-text; this sheet
 * also painted every footer <a> stone. Gold fills use --theo-obsidian.
 * Nested paper cards and remapped-dark slabs keep their own type.
 */
.cms-ink-footer a.bg-brand-primary,
.cms-ink-footer a.bg-brand-secondary,
.cms-ink-footer a.bg-brand-primary-hover,
.cms-ink-footer a.bg-brand-secondary-hover {
    background: var(--theo-gold) !important;
    color: var(--theo-obsidian) !important;
    box-shadow: none !important;
}

.cms-ink-footer a.bg-brand-primary:hover,
.cms-ink-footer a.bg-brand-secondary:hover,
.cms-ink-footer a.bg-brand-primary-hover:hover,
.cms-ink-footer a.bg-brand-secondary-hover:hover {
    background: var(--theo-gold-light) !important;
    color: var(--theo-obsidian) !important;
}

body.cms-glass-body a.bg-brand-primary,
body.cms-glass-body a.bg-brand-secondary,
body.cms-glass-body button.bg-brand-primary,
body.cms-glass-body button.bg-brand-secondary,
body.cms-glass-body .theme-btn.bg-brand-primary,
body.cms-glass-body .theme-btn.bg-brand-secondary {
    color: var(--theo-obsidian) !important;
}

body.cms-glass-body [class*="rounded-full"].bg-brand-primary:not(.cms-float):not([class*="blur"]),
body.cms-glass-body [class*="rounded-full"].bg-brand-secondary:not(.cms-float):not([class*="blur"]),
body.cms-glass-body [class*="rounded-full"].bg-brand-primary:not(.cms-float):not([class*="blur"]) *,
body.cms-glass-body [class*="rounded-full"].bg-brand-secondary:not(.cms-float):not([class*="blur"]) * {
    color: var(--theo-obsidian) !important;
}

body.cms-glass-body section.bg-brand-primary li[class*="rounded-full"],
body.cms-glass-body section[class*="bg-brand-primary"] li[class*="rounded-full"] {
    color: var(--theo-obsidian) !important;
}

#pricing .rounded-3xl a.bg-brand-primary,
#pricing .rounded-3xl a.bg-brand-secondary,
#pricing-page-plans .rounded-3xl a.bg-brand-primary,
#pricing-page-plans .rounded-3xl a.bg-brand-secondary {
    background: var(--theo-gold) !important;
    color: var(--theo-obsidian) !important;
}

@media (max-width: 1023px) {
    #home .cms-hero-inbox h1 {
        max-width: 9ch;
    }

    #home .cms-hero-inbox .lg\:h-\[600px\] {
        height: auto !important;
        min-height: 34rem;
    }

    body:has(#home) .cms-slot:has(a[href="/reports/sales-vs-target"]) .cms-title {
        position: static;
        max-width: 28rem;
    }
}

@media (max-width: 767px) {
    .cms-wrap {
        width: min(100% - 2rem, 90rem) !important;
    }

    .cms-pad {
        padding-block: 4.5rem !important;
    }

    #home .cms-hero-inbox h1 {
        font-size: clamp(3.75rem, 18vw, 5.75rem) !important;
    }

    #home .cms-hero-inbox h1 > span:first-child {
        transform: translateY(-0.3rem);
    }

    #home .cms-hero-inbox .aspect-square {
        max-width: 21rem;
    }

    body:has(#home) .cms-slot:has(blockquote) blockquote p {
        font-size: clamp(2.8rem, 14vw, 4.6rem);
    }

    body:has(#home) .cms-slot:has(a[href="/reports/sales-vs-target"]) .cms-lede h3 {
        font-size: clamp(2.15rem, 11vw, 3.4rem);
    }

    #a-day-with-theo table th:nth-child(4),
    #a-day-with-theo table td:nth-child(4) {
        display: none;
    }

    #a-day-with-theo table th,
    #a-day-with-theo table td {
        padding: 0.8rem 0.65rem !important;
        white-space: normal;
    }

    #real-briefing .lg\:w-1\/2 > div {
        transform: none;
    }

    body:has(#home) .cms-slot:has(figure img) img {
        width: calc(100% - 2rem);
        height: 70svh;
    }

    #pricing .rounded-3xl {
        padding: 1.5rem !important;
    }

    #get-theo > section {
        min-height: 30rem;
    }
}

.cms-slot[id*="-cta"] a {
    border-radius: 999px;
}

/* Live report showcase — same frame as Shopify listing media, rendered from /demo emails */
.theo-report-showcase {
    position: relative;
    padding: clamp(3rem, 6vw, 5rem) clamp(1rem, 4vw, 2.5rem);
    color: var(--theo-bone);
}

.theo-report-showcase__stage {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
    gap: clamp(2rem, 4vw, 3rem);
    align-items: center;
    max-width: 80rem;
    margin-inline: auto;
}

.theo-report-showcase__copy {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.theo-report-showcase__brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: clamp(2rem, 4vw, 3rem);
}

.theo-report-showcase__brand-word {
    font-size: 0.8125rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--theo-bone);
}

.theo-report-showcase__brand-word span {
    color: var(--theo-gold-light);
}

.theo-report-showcase__kicker {
    margin: 0 0 1.125rem;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--theo-gold-light);
}

.theo-report-showcase__question {
    margin: 0 0 1.375rem;
    font-family: var(--theo-serif);
    font-size: clamp(2.5rem, 4.5vw, 3.625rem);
    font-weight: 400;
    line-height: 1.05;
    letter-spacing: -0.02em;
    color: var(--theo-bone);
}

.theo-report-showcase__line {
    margin: 0 0 2.25rem;
    max-width: 26rem;
    font-size: clamp(1rem, 1.6vw, 1.125rem);
    line-height: 1.45;
    color: var(--theo-stone);
}

.theo-report-showcase__badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0;
    padding-top: 1.125rem;
    border-top: 1px solid rgba(225, 185, 102, 0.28);
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    color: var(--theo-bone);
}

.theo-report-showcase__badge::before {
    content: "";
    width: 0.5rem;
    height: 0.5rem;
    border-radius: 50%;
    background: var(--theo-gold-light);
}

.theo-report-showcase__preview {
    display: flex;
    justify-content: center;
}

.theo-report-showcase__mail {
    width: 100%;
    max-width: 36rem;
    min-height: 28rem;
    background: #101110;
    border: 1px solid #2a2b28;
    border-radius: 0.875rem;
    overflow: hidden;
    box-shadow:
        0 0 0 1px rgba(225, 185, 102, 0.06),
        0 2.5rem 5rem rgba(0, 0, 0, 0.55);
    display: flex;
    flex-direction: column;
}

.theo-report-showcase__mail-bar {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    padding: 0.875rem 1.125rem;
    border-bottom: 1px solid #2a2b28;
    background: #131412;
}

.theo-report-showcase__dots {
    display: flex;
    gap: 0.375rem;
}

.theo-report-showcase__dots i {
    display: block;
    width: 0.625rem;
    height: 0.625rem;
    border-radius: 50%;
    background: #2a2b28;
}

.theo-report-showcase__dots i:nth-child(1) {
    background: #4a4029;
}

.theo-report-showcase__subject-wrap {
    min-width: 0;
    flex: 1;
}

.theo-report-showcase__from {
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--theo-stone);
}

.theo-report-showcase__subject {
    margin-top: 0.125rem;
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--theo-bone);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.theo-report-showcase__when {
    font-size: 0.75rem;
    color: var(--theo-stone);
    white-space: nowrap;
}

.theo-report-showcase__mail-body {
    position: relative;
    flex: 1;
    overflow: hidden;
}

.theo-report-showcase__email-scale {
    position: absolute;
    top: -0.5rem;
    left: 50%;
    width: 680px;
    transform: translateX(-50%) scale(0.72);
    transform-origin: top center;
}

.theo-report-showcase__email-root {
    width: 680px;
}

.theo-report-showcase__fade {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 5rem;
    background: linear-gradient(to top, #101110 8%, transparent);
    pointer-events: none;
}

.theo-report-showcase__caption {
    max-width: 48rem;
    margin: 1.25rem auto 0;
    color: var(--theo-stone);
    font-size: 0.78rem;
    text-align: center;
}

body:has([id^="report-"]) .cms-slot:has(.theo-report-showcase) {
    padding-block: clamp(3rem, 6vw, 5rem);
    background: var(--theo-soft-black);
    border-block: 1px solid var(--theo-light-line);
}

body:has([id^="report-"]) .cms-slot:has(.theo-report-showcase) .theo-report-showcase__email-scale {
    transform: translateX(-50%) scale(0.76);
}

@media (max-width: 960px) {
    .theo-report-showcase__stage {
        grid-template-columns: 1fr;
    }

    .theo-report-showcase__copy {
        order: 1;
    }

    .theo-report-showcase__preview {
        order: 2;
    }

    .theo-report-showcase__email-scale {
        transform: translateX(-50%) scale(0.62);
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
    }
}
