/* Website Stylesheet */

:root {
    --spacer: 2rem;
    --bubble-radius: 0.5rem;
}

.ai-only {
    display: none;
}

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

html {
    font-size: 18px;
    height: 100%;
}

body {
    font-family:
        -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu,
        Cantarell, sans-serif;
    font-size: 18px;
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacer);
}

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

a:hover {
    text-decoration: underline;
}

/* TYPOGRAPHY */

.docs-section {
    font-size: 18px;
}

.docs-section h1 {
    color: var(--text-primary);
    font-size: 2.5rem;
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: var(--spacer);
    margin-top: calc(var(--spacer) * 1.5);
    text-align: left;
}

.docs-section h2,
.docs-section h3,
.docs-section h4,
.docs-section h5,
.docs-section h6 {
    color: var(--text-secondary);
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 2.5rem;
    margin-top: 2rem;
    text-align: left;
}

.docs-section h2 {
    color: var(--text-primary);
}

.docs-section h2 {
    font-size: 1.75rem;
}
.docs-section h3 {
    font-size: 1.5rem;
}
.docs-section h4 {
    font-size: 1.25rem;
}
.docs-section h5 {
    font-size: 1.125rem;
}
.docs-section h6 {
    font-size: 1rem;
}

.docs-section p {
    color: var(--text-secondary);
    margin-bottom: var(--spacer);
}

.docs-section pre {
    line-height: 1.25;
}

.docs-section pre code {
    font-size: 1rem;
}

.docs-section a {
    color: var(--complement);
    text-decoration: none;
    transition: opacity 0.2s;
}

.docs-section a:hover {
    opacity: 0.8;
    text-decoration: underline;
}

.docs-section ul,
ol {
    margin-bottom: var(--spacer);
    margin-left: 1.5rem;
    color: var(--text-secondary);
}

.docs-section li {
    list-style-position: outside;
    padding-left: 0.5rem;
    text-indent: 0;
    position: relative;
}

.docs-section li code:first-of-type {
    margin-right: 0.5rem;
}

/*
.docs-section li::before {
  content: "•";
  position: absolute;
  left: 0;
}
 */
/*
.docs-section li:not(:last-child) {
  margin-bottom: 0.5rem;
}
 */

.docs-section hr {
    border: none;
    border-top: 1px solid var(--border);
    margin: calc(var(--spacer) * 2) 0;
}

/* TABLES */
table {
    width: 100%;
    border-collapse: collapse;
    margin: var(--spacer) 0;
    background-color: var(--bg-primary);
    border: 1px solid var(--border);
    border-radius: 0.5rem;
    overflow: hidden;
}

table thead {
    background-color: var(--bg-tertiary);
}

table th {
    padding: 0.75rem 1rem;
    text-align: left;
    font-weight: 600;
    color: var(--text-primary);
    border-bottom: 1px solid var(--border);
}

table td {
    padding: 0.75rem 1rem;
    color: var(--text-secondary);
    border-bottom: 1px solid var(--border);
}

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

table tbody tr:hover {
    background-color: var(--bg-secondary);
    transition: background-color 0.15s ease;
}

/* NAVBAR */
.navbar {
    background-color: var(--bg-secondary);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 4px 12px -2px rgba(0, 0, 0, 0.15);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem var(--spacer);
}

.nav-brand {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary);
    cursor: pointer;
    text-decoration: none;
    transition: opacity 0.2s;
}

.nav-brand:hover {
    opacity: 0.8;
}

.nav-brand:hover,
.nav-brand:hover h1 {
    text-decoration: none !important;
}

.nav-brand.logo {
    width: 120px;
    height: 40px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: left center;
}

.nav-brand.logo h1 {
    color: transparent;
    margin: 0;
    font-size: inherit;
}

.nav-brand.logo .logo-lite {
    display: inline;
}

.nav-brand.logo .logo-dark {
    display: none;
}

[data-theme="dark"] .nav-brand.logo .logo-lite {
    display: none;
}

[data-theme="dark"] .nav-brand.logo .logo-dark {
    display: inline;
}

@media (prefers-color-scheme: dark) {
    [data-theme="auto"] .nav-brand.logo .logo-lite {
        display: none;
    }

    [data-theme="auto"] .nav-brand.logo .logo-dark {
        display: inline;
    }
}

[data-theme="light"] .nav-brand.logo {
    background-image: none;
}

[data-theme="dark"] .nav-brand.logo {
    background-image: none;
}

[data-theme="auto"] .nav-brand.logo {
    background-image: none;
}

/* PHONE MOCKUP */
.phone-container {
    display: flex;
    justify-content: center;
    align-items: center;
}

.phone-mockup {
    width: 280px;
    height: 560px;
    background: #000;
    border-radius: 40px;
    padding: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    position: relative;
}

.phone-mockup::before {
    content: "";
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 55%;
    height: 25px;
    background: #000;
    border-radius: 0 0 40px 40px;
    z-index: 10;
}

.phone-screen {
    width: 100%;
    height: 100%;
    background: white;
    border-radius: 32px;
    display: flex;
    flex-direction: column;
    padding: 25px 15px 15px;
    gap: 12px;
    overflow: hidden;
}

.phone-header {
    font-size: 0.95rem;
    color: #1a202c;
    padding: 0 15px 10px 15px;
    text-align: center;
    font-weight: 600;
    margin-bottom: 10px;
}

.conversation {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.message {
    padding: 10px 15px;
    border-radius: 18px;
    font-size: 0.875rem;
    line-height: 1.4;
    max-width: 85%;
    word-wrap: break-word;
    opacity: 0;
}

.message.incoming {
    background: #e2e8f0;
    color: #1a202c;
    align-self: flex-start;
}

.message.outgoing {
    background: var(--primary);
    color: white;
    align-self: flex-end;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (prefers-color-scheme: light) {
    [data-theme="auto"] .nav-brand.logo {
        background-image: url("/img/logo-black.png");
    }
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
    margin: 0;
    margin-left: 0;
    margin-bottom: 0;
}

.nav-links li {
    margin: 0;
    margin-bottom: 0;
}

.nav-links a {
    text-decoration: none;
    color: var(--code-complement);
    font-weight: 500;
}

.nav-links a:hover {
    color: var(--text-primary);
    text-decoration: underline;
}

.nav-links a.active {
    color: var(--text-primary);
}

/* THEME TOGGLE -- a labelled row, the last one in the footer and in the
   mobile menu (theme-toggle.du). One icon and one label per mode, and
   <html data-theme> picks which pair shows. */
.theme-toggle {
    font: inherit;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--code-complement);
    text-align: left;
}

.theme-toggle:hover {
    color: var(--text-primary);
    text-decoration: underline;
}

.theme-icon {
    flex: none;
    width: 1.25rem;
    height: 1.25rem;
    color: inherit;
}

.theme-icon,
.theme-label {
    display: none;
}

[data-theme="light"] .theme-icon-sun,
[data-theme="light"] .theme-label-light,
[data-theme="dark"] .theme-icon-moon,
[data-theme="dark"] .theme-label-dark,
[data-theme="auto"] .theme-icon-auto,
[data-theme="auto"] .theme-label-auto {
    display: inline-block;
}

/* HERO */
.hero {
    padding: var(--spacer) 0;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: -1;
    background-image: url("/img/duso-space.jpg");
}

[data-theme="dark"] .hero::before {
    background-image: url("/img/duso-space-dark.jpg");
}

@media (prefers-color-scheme: dark) {
    [data-theme="auto"] .hero::before {
        background-image: url("/img/duso-space-dark.jpg");
    }
}

[data-theme="light"] .hero::before {
    background-image: url("/img/duso-space.jpg");
}

@media (max-width: 768px) {
    .hero::before {
        background-position: left;
    }
}

#hero-network {
    display: none;
}

.hero .container {
    position: relative;
    z-index: 1;
}

.hero .container {
    display: grid;
    grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
    gap: 4rem;
    align-items: center;
}

.hero-content h1 {
    font-size: 2.625rem;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.tagline {
    font-size: 110%;
    color: var(--text-secondary);
    margin-bottom: 1.25rem;
    line-height: 1.5;
}

.hero-alt-bg {
    background-image: url("/img/build-with-duso-mobile.jpg");
    aspect-ratio: 1030 / 950;
    background-repeat: no-repeat;
}

[data-theme="dark"] .hero-alt-bg {
    background-image: url("/img/build-with-duso-mobile-dark.jpg");
}

@media (prefers-color-scheme: dark) {
    [data-theme="auto"] .hero-alt-bg {
        background-image: url("/img/build-with-duso-mobile-dark.jpg");
    }
}

@media (min-width: 1024px) {
    .hero-alt-bg {
        background-image: url("/img/build-with-duso.jpg");
        aspect-ratio: 1200 / 727;
    }

    [data-theme="dark"] .hero-alt-bg {
        background-image: url("/img/build-with-duso-dark.jpg");
    }

    @media (prefers-color-scheme: dark) {
        [data-theme="auto"] .hero-alt-bg {
            background-image: url("/img/build-with-duso-dark.jpg");
        }
    }
}

.hero-alt {
    margin: 0;
    padding: 0;
    background-color: var(--bg-tertiary);
}

.hero-alt-bg {
    display: grid;
    grid-template-rows: 1fr 1fr;
    align-items: center;
    justify-items: center;
    max-width: 100%;
    margin: 0 auto;
    aspect-ratio: 1030 / 950;
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
}

@media (min-width: 640px) {
    .hero-alt-bg {
        background-image: url("/img/build-with-duso.jpg");
        aspect-ratio: 1200 / 727;
    }

    [data-theme="dark"] .hero-alt-bg {
        background-image: url("/img/build-with-duso-dark.jpg");
    }

    [data-theme="auto"] .hero-alt-bg {
        background-image: url("/img/build-with-duso.jpg");
    }

    @media (prefers-color-scheme: dark) {
        [data-theme="auto"] .hero-alt-bg {
            background-image: url("/img/build-with-duso-dark.jpg");
        }
    }
}

@media (min-width: 1024px) {
    .hero-alt-bg {
        max-width: 1200px;
    }
}

.hero-alt-content {
    position: static;
    text-align: center;
    max-width: 66%;
    margin: 0;
    padding: 0;
    grid-row: 1;
}

.hero-alt-content h1 {
    font-size: 1.75rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0.5rem 0 0.5rem 0;
    line-height: 1;
}

.hero-alt-content .tagline {
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin: 0 auto;
    line-height: 1.6;
}

@media (max-width: 480px) {
    .hero-alt-content {
        max-width: unset;
        padding: 0 var(--spacer);
    }

    .hero-alt-content .tagline {
        line-height: 1.1;
    }
}

@media (min-width: 1100px) {
    .hero-alt-content {
        max-width: 50%;
    }
}

@media (min-width: 480px) {
    .hero-alt-content h1 {
        font-size: 2.5rem;
        margin: 0 0 0.75rem 0;
    }
}

@media (min-width: 640px) {
    .hero-alt-bg {
        grid-template-rows: 1fr 1fr 1fr;
    }
}

@media (min-width: 1024px) {
    .hero-alt-content h1 {
        font-size: 3.5rem;
    }
}

.hero-cta {
    display: flex;
    gap: 1rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.btn {
    padding: 0.5rem 1rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: var(--bubble-radius);
    border: none;
    cursor: pointer;
    transition:
        filter 0.1s,
        transform 0.1s;
    text-decoration: none;
    display: inline-block;
}

.btn-primary {
    background-color: var(--primary);
    color: white;
}

.btn-primary:hover:not(:disabled) {
    filter: brightness(var(--hover-brightness));
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transform: scale(1.05);
}

.btn-secondary {
    background-color: inherit;
    color: var(--primary);
    border: 2px solid var(--primary);
    padding: calc(0.5rem - 2px) calc(1rem - 2px);
}

/* The hero's backdrop is an image, so there's no color to inherit and
   the button would show the picture through it. Give it the page's. */
.hero .btn-secondary {
    background-color: var(--bg-primary);
}

.btn-secondary:hover:not(:disabled) {
    filter: brightness(var(--hover-brightness));
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transform: scale(1.05);
}

.step-content .btn,
.step-content input {
    align-self: flex-start;
    margin: var(--spacer);
}

.hero-feature {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 500;
    color: var(--text-primary);
}

/* Icon Styling */
img.icon,
img.icon-inline {
    filter: var(--icon-filter);
}

.feature-item .icon {
    width: 3rem;
    height: 3rem;
    display: inline-block;
    color: var(--code-primary);
    margin-right: 0.5rem;
    vertical-align: middle;
}

.icon-inline {
    width: 1.5rem;
    height: 1.5rem;
    display: inline;
    margin-right: 0.5rem;
    vertical-align: middle;
    color: inherit;
}

.value-prop .icon-inline {
    width: 2.5rem;
    height: 2.5rem;
    display: block;
    margin: 0 auto;
    color: var(--code-primary);
}

.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.hero-logo {
    max-width: 400px;
    height: auto;
    border-radius: 5px;
    position: relative;
    z-index: 1;
    animation: heroPulseLightMode 4s ease-in-out infinite;
}

.hero-sticker {
    width: clamp(350px, 100%, 550px);
    height: auto;
    position: relative;
    z-index: 1;
}

[data-theme="dark"] .hero-logo {
    animation: heroPulseDarkMode 4s ease-in-out infinite;
}

@media (prefers-color-scheme: dark) {
    [data-theme="auto"] .hero-logo {
        animation: heroPulseDarkMode 4s ease-in-out infinite;
    }
}

@keyframes pendulum {
    0% {
        transform: translateY(0px);
    }
    40% {
        transform: translateY(-50px);
    }
    55% {
        transform: translateY(-50px);
    }
    80% {
        transform: translateY(0px);
    }
    100% {
        transform: translateY(0px);
    }
}

@keyframes heroPulseLightMode {
    0%,
    100% {
        box-shadow:
            0 0 80px 40px hsla(var(--comp-hue), 40%, 65%, 0.5),
            0 30px 100px 50px hsla(var(--comp-hue), 40%, 65%, 0.4);
        transform: rotateZ(0deg) scale(1);
    }
    50% {
        box-shadow:
            0 0 40px 20px hsla(var(--comp-hue), 40%, 70%, 0.3),
            0 15px 50px 25px hsla(var(--comp-hue), 40%, 70%, 0.2);
        transform: rotateZ(0deg) scale(1.025);
    }
}

@keyframes heroPulseDarkMode {
    0%,
    100% {
        box-shadow:
            0 0 80px 40px hsla(var(--comp-hue), 100%, 50%, 0.25),
            0 30px 100px 50px hsla(var(--comp-hue), 100%, 50%, 0.15);
        transform: rotateZ(0deg) scale(1);
    }
    50% {
        box-shadow:
            0 0 40px 20px hsla(var(--comp-hue), 100%, 30%, 0.12),
            0 15px 50px 25px hsla(var(--comp-hue), 100%, 30%, 0.07);
        transform: rotateZ(0deg) scale(1.025);
    }
}

/* SECTIONS */
.section {
    padding: 2rem 0;
    scroll-margin-top: 3rem;
}

#the-problem {
    background-color: var(--bg-primary);
}

#the-problem .problem-card {
    background-color: var(--bg-secondary);
    border-radius: var(--bubble-radius);
}

.docs-section {
    scroll-margin-top: var(--spacer);
}

.section h2 {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    text-align: center;
    color: var(--text-primary);
}

@media (min-width: 768px) {
    .section h2 {
        font-size: 1.75rem;
    }
}

@media (min-width: 1024px) {
    .section h2 {
        font-size: 2rem;
    }
}

.section h2:has(+ small) {
    margin-bottom: 0;
}

.section h2 + small {
    display: block;
    font-size: 1rem;
    text-align: center;
    margin-top: 0.5rem;
    margin-bottom: 2rem;
    color: var(--text-secondary);
}

.section h1 {
    font-size: 2rem;
    margin-bottom: 2rem;
    text-align: center;
    color: var(--text-primary);
}

@media (min-width: 768px) {
    .section h1 {
        font-size: 2.25rem;
    }
}

@media (min-width: 1024px) {
    .section h1 {
        font-size: 2.5rem;
    }
}

.section h1:has(+ small) {
    margin-bottom: 0;
}

.section h1 + small {
    display: block;
    font-size: 1rem;
    text-align: center;
    margin-top: 0;
    margin-bottom: 2rem;
    color: var(--text-secondary);
}

.section h3 {
    font-size: 1.5rem;
    line-height: 1.125;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

@media (max-width: 768px) {
    .section h3 {
        font-size: 1.25rem;
    }
}

.getting-started .steps .step-label h3 {
    margin-bottom: 0;
}

.section p {
    color: var(--text-secondary);
}

/* INSTALL CONTROLS */
.install-controls {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 2rem;
    align-items: center;
    flex-wrap: wrap;
    position: relative;
    padding: 2rem;
}

.step-content .install-controls {
    margin-bottom: 0;
}

.platform-select {
    padding: 0.75rem 1rem;
    border: 2px solid var(--border);
    background-color: var(--bg-secondary);
    color: var(--text-primary);
    border-radius: 0.5rem;
    font-weight: 500;
    cursor: pointer;
    transition: border-color 0.3s;
    font-size: 1rem;
    align-self: flex-start;
    margin: var(--spacer);
}

.platform-select:hover {
    border-color: var(--primary);
}

.platform-select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-lighter);
}

.install pre {
    padding: 2rem 4rem 2rem 2rem;
    border: none;
    word-break: break-word;
    white-space: pre-wrap;
    background-color: var(--bg-secondary);
}

/* FEATURES */
.features {
    background-color: var(--bg-tertiary);
}

/* TESTIMONIALS */
.testimonials {
    background-color: var(--bg-secondary);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacer);
}

.testimonial-card {
    padding: var(--spacer);
    background-color: var(--bg-primary);
    border-radius: var(--bubble-radius);
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.testimonial-quote {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
    line-height: 1.4;
    position: relative;
}

.testimonial-quote::before {
    content: "\2018\2018";
    font-family: "Georgia", "Garamond", "Cambria", serif;
    font-size: 2.8rem;
    letter-spacing: -0.125rem;
    position: absolute;
    top: -0.75rem;
    left: -1.5rem;
    font-style: normal;
    font-weight: 900;
    color: var(--complement);
}

.testimonial-full-quote {
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin: 0;
    line-height: 1.6;
    flex: 1;
}

.testimonial-meta {
    margin-top: auto;
    padding-top: 1rem;
}

.testimonial-name {
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 0.25rem 0;
    font-size: 0.95rem;
}

.testimonial-location {
    color: var(--code-primary);
    margin: 0 0 0.25rem 0;
    font-size: 0.85rem;
    font-weight: 500;
}

.testimonial-title {
    color: var(--text-secondary);
    margin: 0;
    font-size: 0.85rem;
    line-height: 1.4;
}

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

/* PROBLEMS */
.problems {
    background-color: var(--bg-secondary);
}

/* TEAM SECTION */
.team-section {
    background-color: var(--bg-secondary);
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacer);
}

@media (max-width: 940px) {
    .team-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

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

/* COMPARISON */
.comparison {
    background-color: var(--bg-primary);
}

.comparison-table {
    max-width: 100%;
    margin: var(--spacer) auto;
    background-color: var(--bg-primary);
}

.comparison-table td {
    vertical-align: top;
    padding: 1.5rem;
    border-bottom: 1px solid var(--border);
}

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

.comparison-table .trait {
    width: 25%;
    color: var(--text-primary);
    font-weight: 600;
}

.comparison-table .shannan {
    width: 37.5%;
    color: var(--text-secondary);
}

.comparison-table .typical {
    width: 37.5%;
    color: var(--text-secondary);
}

@media (max-width: 768px) {
    .comparison-table .trait {
        width: 30%;
    }

    .comparison-table .shannan {
        width: 35%;
    }

    .comparison-table .typical {
        width: 35%;
    }

    .comparison-table td {
        padding: 1rem;
        font-size: 0.95rem;
    }
}

/* WHY DUSO EXISTS */
.why-duso-section {
    background-color: var(--bg-secondary);
}

.why-duso-section .container {
    max-width: 700px;
}

.why-duso-section h2 {
    font-size: 2rem;
    margin-bottom: 2rem;
    text-align: center;
}

.why-duso-quote {
    display: block;
    margin: var(--spacer) 0;
    padding: 0;
    box-sizing: border-box;
    position: relative;
    line-height: 1.5;
}

.why-duso-quote::before {
    content: "\2018\2018";
    font-family: "Georgia", "Garamond", "Cambria", serif;
    font-size: 4rem;
    letter-spacing: -0.25rem;
    position: absolute;
    top: -1.75rem;
    left: -0.5rem;
    font-style: normal;
    font-weight: 900;
    text-align: left;
    color: var(--code-primary);
    hanging-punctuation: first;
}

.why-duso-quote p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    padding-left: 2rem;
    padding-right: 2rem;
}

.why-duso-quote p:last-of-type {
    margin-bottom: 0;
}

.why-duso-quote footer {
    display: block;
    font-size: 0.9rem;
    margin-top: 1rem;
    color: var(--text-secondary);
    text-align: right;
    padding-right: 2rem;
}

.value-props {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacer);
}

.value-props-3 {
    grid-template-columns: repeat(3, 1fr);
}

.value-prop {
    padding: var(--spacer);
    background-color: var(--bg-primary);
    border-radius: var(--bubble-radius);
    /* border: 1px solid var(--border); */
    transition: all 0.3s;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
    text-align: center;
}

.value-prop-text {
    flex: 1;
    min-width: 0;
}

.value-prop svg {
    width: 2.5rem;
    height: 2.5rem;
    flex-shrink: 0;
}

.value-prop h3 {
    margin-bottom: 0.75rem;
    color: var(--text-primary);
}

/* PROBLEM GRID */
.problem-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacer);
    align-items: stretch;
}

@media (max-width: 940px) {
    .team-section .problem-grid {
        grid-template-columns: repeat(2, 1fr);
    }

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

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

/* PROBLEM CARD */
.problem-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: var(--spacer);
    background-color: var(--bg-primary);
    border-radius: var(--bubble-radius);
    gap: 1rem;
    width: 100%;
    height: 100%;
}

.problem-card-left {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.problem-card-right {
    text-align: center;
}

.problem-card h3 {
    margin: 0 0 1rem 0;
}

.problem-card-right p {
    margin: 0;
}

.problem-card p:first-child {
    margin-top: 0;
}

.problem-card-icon {
    display: flex;
    align-items: center;
    justify-content: center;
}

.problem-card-icon svg {
    width: 2.5rem;
    height: 2.5rem;
    color: var(--code-primary);
}

.problem-card h3 {
    margin: 0 0 1rem 0;
    color: var(--text-primary);
}

.problem-card p {
    margin: 0;
    color: var(--text-secondary);
}

#contact .problem-card {
    background-color: var(--bg-secondary);
    border-radius: var(--bubble-radius);
}

@media (max-width: 940px) {
    .problem-card {
        display: grid;
        grid-template-columns: auto 1fr;
        gap: var(--spacer);
        align-items: center;
        text-align: left;
    }

    .problem-card-left {
        grid-column: 1;
    }

    .problem-card-right {
        grid-column: 2;
        text-align: left;
    }

    .problem-card-icon svg {
        width: 2.25rem;
        height: 2.25rem;
    }
}

.team-card {
    display: flex;
    flex-direction: column;
    text-align: left;
    background-color: var(--bg-primary);
    border-radius: var(--bubble-radius);
    overflow: hidden;
}

.team-card img {
    width: 100%;
    height: 280px;
    object-fit: cover;
    display: block;
    margin: 0;
}

[data-theme="dark"] .team-card img {
    filter: brightness(0.75);
}

@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) .team-card img {
        filter: brightness(0.75);
    }
}

.team-card > *:not(img) {
    padding: 0 var(--spacer);
}

.team-card h3 {
    margin: var(--spacer) 0 0.5rem 0;
    color: var(--text-primary);
    padding-left: var(--spacer);
    padding-right: var(--spacer);
}

.team-card p {
    margin: 0;
    color: var(--text-secondary);
    padding-left: var(--spacer);
    padding-right: var(--spacer);
}

.team-card p:last-child {
    padding-bottom: var(--spacer);
}

.team-card h3 {
    margin: var(--spacer) 0 0.25rem 0;
}

.team-card h3 + small {
    display: block;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 0.5rem 0;
}

/* FORM STYLING */
form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

label {
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

div > label {
    display: block;
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
input[type="tel"],
input[type="url"],
textarea,
select {
    padding: 0.75rem;
    border: 1px solid var(--border);
    border-radius: var(--bubble-radius);
    font-size: 1rem;
    font-family: inherit;
    color: var(--text-primary);
    background-color: var(--bg-primary);
    width: 100%;
    box-sizing: border-box;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="password"]:focus,
input[type="number"]:focus,
input[type="tel"]:focus,
input[type="url"]:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(var(--primary-hue), var(--primary-sat), var(--primary-base-light), 0.1);
}

textarea {
    resize: none;
    min-height: 120px;
}

input[type="checkbox"],
select {
    cursor: pointer;
}

input[type="checkbox"] {
    width: 1.25rem;
    height: 1.25rem;
    accent-color: var(--primary);
    flex-shrink: 0;
    margin-right: 1rem;
    margin-top: 0;
}

input[type="checkbox"]:hover {
    opacity: 0.8;
}

select:hover {
    border-color: var(--primary);
}

label:has(input[type="checkbox"]) {
    display: flex;
    align-items: flex-start;
    font-weight: 400;
    font-size: 0.95rem;
    margin-bottom: 0;
    margin-top: 1.5rem;
    cursor: pointer;
}

button {
    cursor: pointer;
}

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

button:disabled:hover {
    opacity: 0.5;
}

/* EXAMPLES */
.examples {
    background-color: var(--bg-primary);
}

#examples .step {
    background-color: var(--bg-tertiary);
}

#examples .step-label {
    display: block;
    flex: none;
    width: 18rem;
    padding: var(--spacer);
}

#examples .step-content {
    background-color: var(--bg-secondary);
}

.example-tabs {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.tab-button {
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    cursor: pointer;
    font-weight: 500;
}

.tab-button.active {
    background-color: var(--primary-lighter);
    color: var(--primary-contrast);
    border-color: var(--primary);
    border-width: 2px;
    font-weight: 700;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.example-content {
    position: relative;
    min-height: 400px;
}

.example {
    display: none;
    animation: fadeIn 0.3s ease-in;
}

.example.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.example-desc {
    margin-bottom: 1.5rem;
    font-weight: 500;
    color: var(--text-secondary);
}

/* Code blocks — ported from balmerdev (js/prism.js, js/prism-duso.js,
   js/copy-to-clipboard.js implement the header + copy button markup) */
code {
    font-family:
        "SF Mono", Menlo, Monaco, Consolas, "Cascadia Code", "Source Code Pro",
        "JetBrains Mono", ui-monospace, monospace;
    font-size: 92%;
    color: inherit;
    background: inherit;
}

pre {
    position: relative;
    background-color: var(--bg-tertiary);
    padding: 0.25rem 0;
    overflow-x: auto;
    min-height: 3rem;
    margin: var(--spacer) 0;
    border: none;
    border-radius: 4px;
    font-size: 90%;
    line-height: 1.5;
    color: var(--text-primary);
}

pre code {
    background: none;
    padding: 0;
    color: var(--text-secondary);
    line-height: inherit;
    margin-right: 6rem;
}

.code-wrapper {
    position: relative;
}

.code-header {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.25rem 0.5rem;
    background-color: var(--bg-primary);
    border: 1px solid var(--border);
    z-index: 2;
    transition: all 0.2s ease;
}

.code-header:hover {
    transform: scale(1.1);
    cursor: pointer;
}

.code-language-label {
    font-size: 0.75rem;
    color: var(--text-secondary);
    text-transform: lowercase;
    font-weight: 500;
    transition: color 0.2s ease;
}

.code-header:hover .code-language-label {
    color: var(--primary);
}

.code-copy-button {
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s ease;
}

.code-copy-button svg {
    width: 1.25rem;
    height: 1.25rem;
    color: inherit;
}

.code-header:hover .code-copy-button {
    color: var(--primary);
}

/* GETTING STARTED */
.getting-started {
    background-color: var(--bg-primary);
}

.getting-started .steps {
    background-color: var(--bg-primary);
    padding: 0;
}

.steps {
    display: flex;
    flex-direction: column;
    gap: var(--spacer);
}

.step {
    overflow: hidden;
    display: flex;
    gap: 1.5rem;
    padding: var(--spacer);
    background-color: var(--bg-secondary);
    border-radius: var(--bubble-radius);
    align-items: center;
}

.step-label {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.step-number {
    flex-shrink: 0;
    width: 3rem;
    height: 3rem;
    background-color: var(--primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: bold;
}

.step-label h3 {
    margin: 0;
    color: var(--text-primary);
    line-height: 1.25;
}

.step-content {
    flex: 1;
    min-width: 0;
    padding: 0;
    background-color: var(--bg-tertiary);
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: stretch;
}

.examples .step-content {
    justify-content: unset;
}

.step-content p {
    margin-bottom: 2rem;
}

.step-content pre {
    border-radius: 0;
    flex: 1;
    border: none;
    padding: var(--spacer);
    margin: 0;
    overflow: hidden;
    white-space: pre-wrap;
    word-break: break-word;
    align-self: normal;
    background: inherit;
}

.step-content pre code {
    display: block;
    white-space: pre;
    word-break: break-word;
    min-height: 4rem;
    align-content: center;
    background: inherit;
}

#macos-instructions {
    padding: var(--spacer);
    margin: 0;
}

#macos-instructions p {
    margin-bottom: 0;
}

.step-content .code-block-wrapper:not(:last-of-type) {
    border-bottom: 2px solid var(--bg-tertiary);
}

.cta {
    text-align: center;
    background-color: var(--bg-primary);
}

#faq {
    background-color: var(--bg-primary);
}

#faq .value-prop {
    background-color: var(--bg-secondary);
}

.cta-content {
    max-width: 900px;
    margin: 0 auto;
}

.cta-content h2 {
    margin-bottom: calc(var(--spacer) * 1.5);
}

.cta-content > p {
    margin-bottom: calc(var(--spacer) * 2 - 1rem);
    font-size: 1.1rem;
}

.cta-buttons {
    display: flex;
    flex-direction: row;
    gap: 1rem;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
}

.cta-note {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin: 0;
}

.cta-section {
    text-align: center;
    padding: 3rem var(--spacer);
    background-color: var(--bg-tertiary);
    /* border-radius: 0.75rem; */
    box-shadow:
        inset 0 4px 8px -3px rgba(0, 0, 0, 0.15),
        inset 0 -4px 8px -3px rgba(0, 0, 0, 0.15);
}

.cta-section h3 {
    margin-bottom: 0.5rem;
}

.cta-section p {
    margin-bottom: 2rem;
}

/* CHAT WIDGET */
.chat-widget {
    background-color: var(--bg-primary);
}

.chat-widget-content {
    max-width: 800px;
    margin: 0 auto;
}

/* FOOTER */
.footer {
    background-color: var(--bg-tertiary);
    /* border-top: 1px solid var(--border); */
    padding: 3rem 0 1rem;
    margin-top: auto;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

@media (max-width: 768px) {
    .footer-content {
        grid-template-columns: 1fr;
    }
}

.footer-section h2 {
    font-size: 1.25rem;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.footer-section h4 {
    color: var(--primary);
    margin-bottom: 1rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section a {
    color: var(--code-complement);
    text-decoration: none;
    display: block;
    margin-bottom: 0.5rem;
}

/* Icon first, then the label (footer.du). */
.foot-links a {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.foot-icon {
    flex: none;
    width: 1.25rem;
    height: 1.25rem;
    color: inherit;
}

/* The reports under Reports: no icon, but set in to where the text of an
   iconed row starts -- icon width plus the gap. */
.foot-sub a {
    padding-left: 1.75rem;
}

/* A control, not a destination: the gap sets it apart. */
.foot-theme {
    margin-top: 1rem;
}

.footer-section a:hover {
    color: var(--text-primary);
    text-decoration: underline;
}



.footer-branding {
    margin-bottom: 2rem;
}

.footer-logo {
    width: 100%;
    max-width: 120px;
    height: 3rem;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: left;
    margin-bottom: 0.5rem;
}

.footer-logo h1 {
    color: transparent;
    margin: 0;
    font-size: inherit;
}

[data-theme="light"] .footer-logo {
    background-image: url("/img/logo-black.png");
}

[data-theme="dark"] .footer-logo {
    background-image: url("/img/logo-white.png");
}

[data-theme="auto"] .footer-logo {
    background-image: url("/img/logo-white.png");
}

@media (prefers-color-scheme: light) {
    [data-theme="auto"] .footer-logo {
        background-image: url("/img/logo-black.png");
    }
}

.footer-bottom {
    text-align: center;
    margin-top: var(--spacer);
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* ANIMATIONS */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes fadeOut {
    from {
        opacity: 1;
    }
    to {
        opacity: 0;
    }
}

/* MOBILE NAV */
.mobile-nav {
    display: none;
}

.mobile-nav[data-menu="open"] {
    display: block;
}

.mobile-nav-header {
    padding: 1rem var(--spacer);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
}

[data-theme="dark"] .mobile-nav-header {
    background-color: rgba(0, 0, 0, 0.5);
}

@media (prefers-color-scheme: dark) {
    [data-theme="auto"] .mobile-nav-header {
        background-color: rgba(0, 0, 0, 0.5);
    }
}

.mobile-nav-controls {
    display: flex;
    gap: 2rem;
    align-items: center;
}

#mobile-nav .nav-brand.logo {
    display: inline-block;
    height: 2rem;
}

#mobile-nav .nav-brand.logo img {
    height: 100%;
}

#mobile-nav .hamburger-btn {
    width: 1.75rem;
    height: 1.75rem;
}

.hamburger-btn {
    display: none;
    width: 1.5rem;
    height: 1.5rem;
    color: var(--complement);
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
}

.hamburger-btn svg {
    width: 100%;
    height: 100%;
    stroke: currentColor;
}

.hamburger-btn:hover {
    color: var(--text-primary);
}

.mobile-nav-links {
    list-style: none;
    padding: 0.5rem var(--spacer) 1rem;
    text-align: left;
    background-color: rgba(255, 255, 255, 0.125);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid var(--border);
    margin: 0;
    margin-left: 0;
    margin-bottom: 0;
}

[data-theme="dark"] .mobile-nav-links {
    background-color: rgba(0, 0, 0, 0.125);
}

@media (prefers-color-scheme: dark) {
    [data-theme="auto"] .mobile-nav-links {
        background-color: rgba(0, 0, 0, 0.125);
    }
}

.mobile-nav-links li {
    margin: 0;
    margin-bottom: 0;
}

.mobile-nav-links a {
    text-decoration: none;
    color: var(--complement);
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.45rem 0;
    font-size: 0.95rem;
}

.nav-icon {
    flex: none;
    width: 1.2rem;
    height: 1.2rem;
    color: inherit;
}

/* The menu's last row: the theme toggle, set like the links above it. */
.nav-theme .theme-toggle {
    gap: 0.6rem;
    padding: 0.45rem 0;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--complement);
}

.nav-theme .theme-icon {
    width: 1.2rem;
    height: 1.2rem;
}

.mobile-nav-links a:hover {
    color: var(--text-primary);
    text-decoration: underline;
}

.mobile-nav-links a.active {
    color: var(--text-primary);
    font-weight: 600;
}

/* RESPONSIVE */
@media (max-width: 768px) {
    :root {
        --spacer: 1rem;
    }

    body {
        font-size: 16px;
    }

    .docs-section {
        font-size: 16px;
    }

    #desktop-nav {
        display: none;
    }

    #mobile-nav {
        display: block;
        position: sticky;
        top: 0;
        z-index: 100;
        border-bottom: 1px solid var(--border);
    }

    .hamburger-btn {
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .mobile-nav-links {
        display: none;
    }

    #mobile-nav[data-menu="open"] .mobile-nav-links {
        display: block;
    }
    .nav-links {
        flex-wrap: wrap;
        gap: 1rem;
    }

    .hero .container {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .hero-content {
        text-align: center;
    }

    .hero-cta {
        justify-content: center;
        flex-wrap: wrap;
    }

    .hero-content h1 {
        font-size: 2rem;
    }

    .hero-visual {
        display: flex;
        justify-content: center;
        align-items: center;
        margin-top: var(--spacer);
        width: 100%;
    }

    .hero-logo {
        max-width: 66%;
        height: auto;
    }

    .value-props {
        grid-template-columns: 1fr;
    }

    .value-prop {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 0;
    }

    .value-prop .icon-inline {
        width: 2.25rem;
        height: 2.25rem;
        margin: 0.5rem 0;
    }

    .hero-feature {
        grid-template-columns: 1fr;
    }

    .example-tabs {
        flex-direction: column;
    }

    .step {
        flex-direction: column;
        align-items: center;
        gap: var(--spacer);
    }

    .step-label {
        flex: 1;
        width: 100%;
        min-width: unset;
        padding-bottom: 0;
        text-align: center;
    }

    .step-number {
        width: 2.25rem;
        height: 2.25rem;
        font-size: 1.125rem;
    }

    #examples .step {
        gap: 0;
    }

    #examples .step-label {
        width: unset;
    }

    .step-content {
        width: 100%;
    }

    pre {
        font-size: 0.8rem;
    }

    pre code {
        font-size: inherit;
    }

    .step-content pre {
        white-space: pre;
        overflow-x: auto;
        overflow: auto;
        word-break: normal;
    }

    .step-content pre code {
        white-space: pre;
        word-break: normal;
    }

    .getting-started .step-content pre {
        white-space: pre-wrap;
        overflow: visible;
        word-break: break-word;
    }

    .getting-started .step-content pre code {
        white-space: pre-wrap;
        word-break: break-word;
    }
}

#the-problem .excerpt p {
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* BLOCKQUOTE */
blockquote {
    font-weight: 400;
    font-style: italic;
    border-left: none;
    font-size: 1rem;
    box-sizing: border-box;
    position: relative;
    line-height: 1.5;
}

blockquote::before {
    content: "‘‘";
    font-family: "Arial", "Helvetica", sans-serif;
    font-size: 6rem;
    letter-spacing: -0.25rem;
    position: absolute;
    font-style: normal;
    font-weight: 900;
    color: var(--code-primary);
    top: -5rem;
    left: -0.5rem;
}

.docs-section blockquote p {
    color: var(--text-secondary);
    font-style: normal;
    margin-bottom: 1rem;
    line-height: 1.6;
}

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

.section-sticker {
    width: clamp(150px, 30%, 225px);
    height: auto;
}

/* ABOUT */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-left {
    text-align: center;
}

.about-left .section-sticker {
    width: clamp(250px, 100%, 400px);
}

.about-left h2 {
    margin-top: 1.5rem;
    margin-bottom: 1.5rem;
}

.about-left h3 {
    text-align: center;
    color: var(--text-secondary);
    margin: 0;
}

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

    .about-left {
        text-align: center;
        margin-bottom: 1rem;
    }
}

/* CALLOUT */
.callout {
    padding: 0.5rem 0;
    background-color: var(--bg-tertiary);
}

.callout .container {
    text-align: center;
}

/* QUOTE EXPANDABLE */
.quote-expandable {
    background-color: var(--bg-secondary);
}

.quote-expandable .container {
    max-width: 800px;
}

.quote-expandable details summary {
    cursor: pointer;
    user-select: none;
    padding: 1.5rem;
    margin: 0 -1.5rem;
    border-radius: var(--bubble-radius);
    transition: background-color 0.2s;
}

.quote-expandable details summary:hover {
    background-color: var(--bg-tertiary);
}

.quote-expandable details summary h2 {
    margin: 0;
    display: inline;
}

.quote-expandable .quote-body {
    padding: 0 1.5rem 1.5rem 1.5rem;
    color: var(--text-secondary);
}

.quote-expandable .quote-body p {
    margin-bottom: 1rem;
}

.quote-expandable .quote-body p:last-of-type {
    margin-bottom: 0;
}

/* Report Tiers */
.report-tiers {
    background-color: var(--bg-tertiary);
}

.report-tiers-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacer);
    margin-top: var(--spacer);
}

.report-tier-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 1rem;
    background-color: var(--bg-secondary);
    border-radius: var(--bubble-radius);
    gap: 1rem;
    width: 100%;
    height: 100%;
    text-decoration: none;
    color: inherit;
    transition: transform 0.2s;
}

.report-tier-card:hover {
    transform: translateY(-2px);
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.report-tier-thumb {
    display: block;
    width: 100%;
    flex-shrink: 0;
}

.report-tier-thumb img {
    max-width: 100%;
    height: auto;
}

[data-theme="dark"] .report-tier-thumb img {
    filter: brightness(0.75);
}

@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) .report-tier-thumb img {
        filter: brightness(0.75);
    }
}

.report-tier-content {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    width: 100%;
}

.report-tier-content h3 {
    margin: 0;
    color: var(--text-primary);
}

.report-tier-content p {
    margin: 0;
    color: var(--text-secondary);
}

@media (max-width: 900px) {
    .report-tiers-grid {
        grid-template-columns: 1fr;
    }

    .report-tier-card {
        display: grid;
        grid-template-columns: minmax(120px, 35%) 1fr;
        gap: 1rem;
        align-items: start;
        text-align: left;
    }

    .report-tier-thumb {
        grid-row: 1 / 2;
    }

    .report-tier-content {
        text-align: left;
    }
}

/* BLOG */

.posts-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.post-item {
    padding: 0;
}

/* Pinned card images (fixed aspect ratio) */
.post-item img {
    width: 100%;
    height: auto;
    display: block;
    aspect-ratio: 16/9;
    object-fit: fill;
    margin-bottom: var(--spacer);
}

.post-item h3 {
    margin: 0 0 0.5rem 0;
    color: var(--text-primary);
}

.post-item h3 a {
    color: var(--text-primary);
    text-decoration: none;
}

.post-item h3 a:visited {
    color: var(--text-secondary);
}

.post-item h3 a:hover,
.post-item h3 a:visited:hover {
    color: var(--primary);
    text-decoration: underline;
}

.post-meta {
    display: block;
    color: var(--text-muted);
    margin: 0.5rem 0;
}

.post-excerpt {
    color: var(--text-secondary);
    margin: 0;
}

.post-excerpt .read-more {
    color: var(--text-primary);
    font-weight: 500;
    text-decoration: underline;
    text-decoration-color: var(--text-muted);
    text-underline-offset: 2px;
}

.post-excerpt .read-more:hover {
    color: var(--primary);
    text-decoration-color: var(--primary);
}

.tag-link {
    color: inherit;
    text-decoration: underline;
    text-decoration-color: var(--text-muted);
    text-underline-offset: 2px;
}

.tag-link:hover {
    color: var(--primary);
    text-decoration-color: var(--primary);
}

.tag-icon {
    display: inline-block;
    width: 0.75rem;
    height: 0.75rem;
    vertical-align: -0.125em;
}

.tag-page-icon {
    width: 2rem;
    height: 2rem;
    vertical-align: -0.3rem;
}

.image-wrapper {
    position: relative;
    display: block;
    width: 100%;
    margin-bottom: var(--spacer);
}

.image-wrapper img {
    width: 100%;
    height: auto;
    display: block;
    margin-bottom: 0;
}

/* Post images (flexible aspect ratio) */
.post img {
    width: 100%;
    height: auto;
    display: block;
    margin-bottom: var(--spacer);
}

/* Content images with border and padding (exclude featured image) */
.post > *:not(.image-wrapper) img {
    padding: var(--spacer);
    border: 2px solid var(--text-secondary);
    border-radius: 3px;
    margin-top: var(--spacer);
}

.post-header {
    margin-bottom: var(--spacer);
}

.post-header h1 {
    text-align: left;
    margin-bottom: 0.5rem;
}

.post > *:last-child {
    margin-bottom: 0;
}

/* More posts / pinned cards */
.more-posts {
    margin-top: calc(var(--spacer) * 1.5);
    border-top: 1px solid var(--border);
}

.more-posts h2 {
    margin-bottom: var(--spacer);
    text-align: left;
}

.pinned-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--spacer);
    row-gap: 2rem;
}

.pinned-card img {
    width: 100%;
    height: auto;
    aspect-ratio: 16/9;
    object-fit: cover;
    margin-bottom: 1rem;
    border-radius: var(--bubble-radius);
    transition: transform 0.2s ease;
}

.pinned-card a:hover img {
    transform: scale(1.03);
}

.pinned-card h3 {
    margin-bottom: 0.5rem;
}

/* The honeypot in request-analysis.du. display:none rather than an
   off-screen position: nothing human — including a screen reader — should
   ever meet it, so anything that arrives filled came from something
   parsing the HTML rather than looking at the page. */
.hp-field {
    display: none;
}

/* ===== BUSINESS INTELLIGENCE CATALOG ===== */

.eyebrow {
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--code-primary);
    margin-bottom: 0.75rem;
}

.eyebrow a {
    color: inherit;
}

.section-more {
    text-align: center;
    margin-top: var(--spacer);
}

.value-props-4 {
    grid-template-columns: repeat(4, 1fr);
}

@media (max-width: 1024px) {
    .value-props-4 {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Product grid and cards */
.products {
    background-color: var(--bg-secondary);
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--spacer);
}

.product-grid-3 {
    grid-template-columns: repeat(3, 1fr);
}

@media (max-width: 1024px) {
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .product-grid,
    .product-grid-3 {
        grid-template-columns: 1fr;
    }
}

.product-card {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    padding: var(--spacer);
    background-color: var(--bg-primary);
    border-radius: var(--bubble-radius);
    color: inherit;
    transition: transform 0.2s, box-shadow 0.2s;
}

.product-card:hover {
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.product-card h3 {
    margin: 0;
    font-size: 1.25rem;
}

.product-card p {
    margin: 0;
    flex: 1;
    font-size: 0.95rem;
}

.product-card-icon svg {
    width: 2.25rem;
    height: 2.25rem;
    color: var(--code-primary);
}

.product-card-meta {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 0.5rem;
    flex-wrap: wrap;
    border-top: 1px solid var(--border);
    padding-top: 0.75rem;
}

.product-price {
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--text-primary);
}

.product-days {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* Product detail page */
.product-hero {
    background-color: var(--bg-primary);
}

.product-detail {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
    gap: calc(var(--spacer) * 1.5);
    align-items: start;
}

/* On a report's own page the icon sits above the title, so everything
   in the main column lines up with the page's left edge. */
.product-icon {
    margin-bottom: 0.75rem;
}

@media (max-width: 900px) {
    .product-detail {
        grid-template-columns: 1fr;
    }
}

.section h1.product-title {
    margin: 0;
    text-align: left;
    line-height: 1.2;
}

.product-tagline {
    font-size: 1.25rem;
    margin: 1rem 0;
    color: var(--text-primary) !important;
}

.product-main h2 {
    text-align: left;
    font-size: 1.4rem !important;
    margin: 2rem 0 1rem;
}

.checklist {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.checklist li {
    position: relative;
    padding-left: 1.75rem;
    color: var(--text-secondary);
}

.checklist li::before {
    content: "✓";
    position: absolute;
    left: 0;
    font-weight: 700;
    color: var(--code-complement);
}

.report-contents {
    padding-left: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.report-contents li {
    color: var(--text-secondary);
}

.report-contents li strong {
    color: var(--text-primary);
}

.report-contents li span::before {
    content: "— ";
}

.order-box {
    position: sticky;
    top: 5rem;
    padding: var(--spacer);
    background-color: var(--bg-secondary);
    border-radius: var(--bubble-radius);
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.order-box-price {
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1;
    color: var(--text-primary);
}

.order-box-days {
    margin: 0;
    color: var(--text-muted);
}

.order-box .btn {
    text-align: center;
}

.order-box-points {
    list-style: none;
    font-size: 0.9rem;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.order-box-points li::before {
    content: "✓ ";
    color: var(--code-complement);
    font-weight: 700;
}

.order-box-sample,
.order-box-note {
    margin: 0;
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* Comparison table wrapper, so it scrolls rather than squeezing */
.table-scroll {
    overflow-x: auto;
}

/* Custom & enterprise callout */
.custom-callout-box {
    display: flex;
    gap: var(--spacer);
    align-items: center;
    justify-content: space-between;
    padding: var(--spacer);
    background-color: var(--bg-secondary);
    border-radius: var(--bubble-radius);
}

.custom-callout-box h2 {
    text-align: left;
    margin-bottom: 0.5rem !important;
    font-size: 1.5rem !important;
}

.custom-callout-box .btn {
    flex-shrink: 0;
}

@media (max-width: 768px) {
    .custom-callout-box {
        flex-direction: column;
        align-items: flex-start;
    }
}

.custom-intro {
    background-color: var(--bg-secondary);
}

.custom-intro .value-prop {
    align-items: flex-start;
    text-align: left;
}

/* Chat intro sits directly on top of the widget */
.chat-intro {
    padding-bottom: 0;
    background-color: var(--bg-primary);
}

.chat-intro h2 {
    margin-bottom: 1rem;
}

/* The heading sits right on top of the widget it introduces. */
.section.chat-intro {
    padding-bottom: 0;
}

.section.chat-intro h2 + small {
    margin-bottom: 0.5rem;
}

.chat-intro + .chat-widget {
    padding-top: 0;
}

/* FAQ as <details> */
.faq-list {
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.faq-list details {
    background-color: var(--bg-secondary);
    border-radius: var(--bubble-radius);
    padding: 1rem 1.25rem;
}

.faq-list summary {
    cursor: pointer;
    font-weight: 600;
    color: var(--text-primary);
    list-style: none;
    display: flex;
    justify-content: space-between;
    gap: 1rem;
}

.faq-list summary::-webkit-details-marker {
    display: none;
}

.faq-list summary::after {
    content: "+";
    font-weight: 700;
    color: var(--code-primary);
}

.faq-list details[open] summary::after {
    content: "−";
}

.faq-list details p {
    margin: 0.75rem 0 0;
}

.faq-section {
    margin-bottom: calc(var(--spacer) * 1.5);
}

.faq-section h2 {
    font-size: 1.4rem !important;
    margin-bottom: 1rem !important;
}

/* Pay-after-report messaging in the product page's order box */
.order-box-pay {
    margin: 0;
    font-size: 0.95rem;
    padding: 0.75rem 1rem;
    border-radius: var(--bubble-radius);
    background-color: var(--bg-primary);
    border-left: 4px solid var(--code-complement);
}

.order-box-pay strong {
    color: var(--text-primary);
}

.order-box-summary p {
    margin: 0 0 0.4rem;
    font-size: 0.9rem;
}

.order-box-summary ul + p {
    margin-top: 0.6rem;
}

.order-box-summary ul {
    font-size: 0.9rem;
    list-style: none;
    padding-left: 0;
    color: var(--text-secondary);
}

.order-box-summary li::before {
    content: "· ";
    font-weight: 700;
    color: var(--code-complement);
}

/* The link under the home page's chat widget */
.chat-outro {
    padding-top: 0;
    background-color: var(--bg-primary);
}

/* The FAQ link sits just under the widget, not a section's width away. */
.chat-widget:has(+ .chat-outro) {
    padding-bottom: 0;
}

.chat-outro .section-more {
    margin-top: 1rem;
}

/* ===== REPORTS PAGE (products-page.du) ===== */

.reports-intro {
    background-color: var(--bg-primary);
    padding-bottom: 0;
}

.buy-steps {
    list-style: none;
    counter-reset: buy;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    max-width: 960px;
    margin: 0 auto var(--spacer);
}

.buy-steps li {
    counter-increment: buy;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    padding: 1rem 1.25rem;
    border-radius: var(--bubble-radius);
    background-color: var(--bg-secondary);
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.buy-steps li strong {
    color: var(--text-primary);
    font-size: 1rem;
}

.buy-steps li strong::before {
    content: counter(buy) ". ";
    color: var(--code-primary);
}

@media (max-width: 768px) {
    .buy-steps {
        grid-template-columns: 1fr;
    }
}

.report-jump {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: var(--spacer);
}

.report-jump a {
    padding: 0.3rem 0.85rem;
    border: 1px solid var(--border);
    border-radius: 999px;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.report-jump a:hover {
    border-color: var(--code-complement);
    color: var(--code-complement);
    text-decoration: none;
}

.reports-list {
    background-color: var(--bg-secondary);
}

.reports-list .container {
    display: flex;
    flex-direction: column;
    gap: var(--spacer);
}

.report-row {
    display: grid;
    grid-template-columns: 3rem minmax(0, 1.6fr) minmax(16rem, 1fr);
    /* Icon to title: the same as the row's padding left of the icon. The
       right-hand column keeps half as much again, via its margin below. */
    gap: var(--spacer);
    padding: var(--spacer);
    background-color: var(--bg-primary);
    border-radius: var(--bubble-radius);
    scroll-margin-top: 5rem;
}

.report-row-side {
    margin-left: calc(var(--spacer) * 0.5);
}

@media (max-width: 800px) {
    .report-row {
        grid-template-columns: 1fr;
    }

    .report-row-side {
        margin-left: 0;
    }
}

/* The report's icon has a column of its own on desktop, so the title and
   the text under it share one left edge. When the columns stack on a
   narrow screen it's simply the first thing, above the title. */
.report-icon svg {
    width: 3rem;
    height: 3rem;
}

.section h2.report-row-title {
    margin: 0;
    text-align: left;
    font-size: 1.5rem;
    line-height: 1.2;
}

.report-row-title a {
    color: var(--text-primary);
}

.report-row-tagline {
    margin: 0.75rem 0 1.25rem;
    font-size: 1.05rem;
    color: var(--text-primary) !important;
}

.section .report-row h3 {
    font-size: 0.8rem;
    line-height: 1.3;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 0.6rem;
}

.report-row .checklist {
    font-size: 0.95rem;
}

/* The right-hand column: price and Order on one line at the top, then
   what the results cover. */
.report-row-side {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.report-row-buy {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
}

.report-row-buy .btn {
    white-space: nowrap;
}

.report-row-price {
    font-size: 2rem;
    font-weight: 800;
    line-height: 1;
    color: var(--text-primary);
}

.report-row .hint {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin: 0.1rem 0 0;
}

.report-row-summary ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    font-size: 0.95rem;
    color: var(--text-secondary);
}

.report-row-summary li::before {
    content: "· ";
    font-weight: 700;
    color: var(--code-complement);
}

.report-row-sample {
    display: inline-block;
    margin-top: 0.6rem;
    font-size: 0.9rem;
}


