/* Scaling Maturity Website Styles - Sales Page */

:root {
    /* Core Color Palette (Extracted from the Book) */
    --color-primary: #29323E;        /* Primary Background (Dark Blue-Gray) */
    --color-secondary: #414B58;      /* Secondary Background (Muted Steel Blue) */
    --color-accent: #5C6774;         /* Accent Blue-Gray */
    --color-text-primary: #F5F3EF;   /* Primary Text on Dark Backgrounds (Off-White) */
    --color-text-secondary: #AAA9A7; /* Muted Neutral Gray */
    --color-bg-light: #DBDADB;       /* Secondary Text / Light Background */
    
    /* Gradient Color System (Cover-Style Transitions) */
    --gradient-primary: linear-gradient(135deg, #29323E 0%, #414B58 100%);
    --gradient-extended: linear-gradient(135deg, #29323E 0%, #343E4B 45%, #414B58 100%);
    --gradient-soft: linear-gradient(180deg, #414B58 0%, #5C6774 100%);
    
    /* Legacy variable names for compatibility */
    --primary-color: #29323E;
    --secondary-color: #414B58;
    --text-color: #1f2937;
    --text-light: #AAA9A7;
    --bg-color: #ffffff;
    --bg-alt: rgba(65, 75, 88, 0.1);
    --border-color: #5C6774;
    --max-width: 1200px;
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--bg-color);
}

/* General Link Styles */
a {
    color: var(--color-primary);
    text-decoration: underline;
    transition: all 0.2s ease;
    text-decoration-thickness: 1px;
}

a:hover {
    color: var(--color-accent);
    text-decoration-thickness: 2px;
}

/* Buttons should not have link underline styles.
   Do not inherit color on hover: that leaves dark text on a dark fill. */
.btn,
.btn a,
.btn:hover,
.btn:hover a,
.btn:focus-visible,
.btn:focus-visible a {
    text-decoration: none !important;
}

/* Links on dark backgrounds (hero, footer, CTA sections) */
.hero a,
.section-cta a,
footer a,
.form-note a,
.privacy-link,
.hero-note a,
.lead a,
.subtitle a {
    color: var(--color-text-primary);
    text-decoration: underline;
    font-weight: 500;
    transition: all 0.2s ease;
    text-decoration-thickness: 2px;
}

.hero a:hover,
.section-cta a:hover,
footer a:hover,
.form-note a:hover,
.privacy-link:hover,
.hero-note a:hover,
.lead a:hover,
.subtitle a:hover {
    color: rgba(245, 243, 239, 0.9);
    text-decoration-thickness: 3px;
    opacity: 1;
}

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

/* Header & Navigation */
header {
    background-color: var(--bg-color);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

nav {
    padding: 1rem 0;
}

nav .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-link {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    text-decoration: none;
}

.logo-icon {
    display: block;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 0.3rem;
    box-shadow: 0 1px 3px rgba(41, 50, 62, 0.22);
}

.logo h1 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-primary);
}

.logo sup {
    font-size: 0.6em;
    vertical-align: super;
    color: var(--color-text-secondary);
}

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

.nav-links a {
    text-decoration: none;
    color: var(--color-primary);
    font-weight: 500;
    transition: color 0.3s;
}

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

.nav-cta {
    background-color: var(--color-primary);
    color: var(--color-text-primary) !important;
    padding: 0.5rem 1.25rem;
    border-radius: 0.5rem;
    font-weight: 600;
}

.nav-cta:hover {
    background-color: var(--color-secondary);
    color: var(--color-text-primary) !important;
}

.lang-switch {
    display: flex;
    align-items: center;
}

.lang-switch-label {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
}

.lang-switch-select {
    appearance: none;
    -webkit-appearance: none;
    background-color: #fff;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'><path fill='%2329323E' d='M1 1l5 5 5-5'/></svg>");
    background-repeat: no-repeat;
    background-position: right 0.65rem center;
    background-size: 0.7rem;
    color: var(--color-primary);
    border: 1px solid var(--border-color, #cfcbc4);
    border-radius: 0.4rem;
    padding: 0.4rem 1.85rem 0.4rem 0.7rem;
    font: inherit;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    cursor: pointer;
}

.lang-switch-select:hover,
.lang-switch-select:focus {
    border-color: var(--color-primary);
    outline: none;
}

.nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
    width: 44px;
    height: 44px;
    margin-left: auto;
    padding: 0;
    border: 1px solid var(--border-color);
    border-radius: 0.5rem;
    background: var(--bg-color);
    color: var(--color-primary);
    cursor: pointer;
    flex-shrink: 0;
    appearance: none;
    -webkit-appearance: none;
    font: inherit;
    line-height: 1;
    z-index: 2;
}

@media (min-width: 769px) {
    .nav-toggle {
        display: none;
    }
}

.nav-toggle:hover,
.nav-toggle:focus-visible {
    border-color: var(--color-accent);
    outline: 2px solid var(--color-accent);
    outline-offset: 2px;
}

.nav-toggle-bar {
    display: block;
    width: 18px;
    height: 2px;
    border-radius: 999px;
    background: currentColor;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

nav.nav-open .nav-toggle-bar:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

nav.nav-open .nav-toggle-bar:nth-child(2) {
    opacity: 0;
}

nav.nav-open .nav-toggle-bar:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* Hero Section */
.hero {
    background: var(--gradient-primary);
    color: var(--color-text-primary);
    padding: 5rem 0;
    text-align: center;
}

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

.award-badge-hero {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1.5rem;
    background: rgba(255, 255, 255, 0.15);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 2rem;
    margin-bottom: 2rem;
    font-size: 0.95rem;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    cursor: pointer;
}

.award-badge-hero:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 215, 0, 0.3);
}

.award-icon {
    font-size: 1.25rem;
    color: #FFD700;
    font-weight: bold;
}

.award-text {
    font-weight: 600;
    color: var(--color-text-primary);
}

.award-detail {
    color: var(--color-text-primary);
    opacity: 0.9;
    font-size: 0.9rem;
}

.hero h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.hero h1 sup {
    font-size: 0.5em;
    vertical-align: super;
    opacity: 0.9;
}

.subtitle {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    opacity: 0.95;
    color: var(--color-text-primary);
}

.lead {
    font-size: 1.25rem;
    max-width: 800px;
    margin: 0 auto 2.5rem;
    line-height: 1.8;
    opacity: 0.95;
}

.hero-benefits {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-width: 600px;
    margin: 0 auto 2.5rem;
    text-align: left;
}

.benefit-item {
    font-size: 1.125rem;
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(245, 243, 239, 0.2);
}

.benefit-item:last-child {
    border-bottom: none;
}

.benefit-item strong {
    color: var(--color-text-primary);
    margin-right: 0.5rem;
    font-size: 1.25rem;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}

.btn {
    display: inline-block;
    padding: 0.875rem 2rem;
    border-radius: 0.5rem;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
    border: 2px solid transparent;
    font-size: 1rem;
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.btn-primary {
    background-color: var(--color-text-primary);
    color: var(--color-primary) !important;
    font-weight: 600;
    text-decoration: none;
}

.btn-primary:hover {
    background-color: #ffffff;
    color: var(--color-primary) !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
    text-decoration: none;
}

.btn-primary a,
.btn-primary:hover a {
    color: var(--color-primary) !important;
    text-decoration: none;
}

.btn-secondary {
    background-color: transparent;
    color: var(--color-text-primary) !important;
    border: 2px solid var(--color-text-primary);
    font-weight: 600;
    text-decoration: none;
}

.btn-secondary:hover {
    background-color: rgba(245, 243, 239, 0.15);
    color: #ffffff !important;
    border-color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(245, 243, 239, 0.3);
    text-decoration: none;
}

.btn-secondary a,
.btn-secondary:hover a {
    color: inherit !important;
    text-decoration: none;
}

.btn-outline {
    background-color: transparent;
    color: var(--color-primary) !important;
    border: 2px solid var(--color-primary);
}

.btn-outline:hover,
.btn-outline:focus-visible {
    background-color: var(--color-primary);
    border-color: var(--color-primary);
    color: var(--color-text-primary) !important;
}

.btn-large {
    padding: 1rem 2.5rem;
    font-size: 1.125rem;
}

.hero-note {
    font-size: 0.95rem;
    opacity: 0.8;
    font-style: italic;
}

/* Section Styles */
.section {
    padding: 5rem 0;
}

.section-alt {
    background-color: rgba(65, 75, 88, 0.05);
}

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

.section h2 {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 1rem;
    color: var(--color-primary);
}

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

.section-intro {
    text-align: center;
    font-size: 1.125rem;
    color: var(--color-text-secondary);
    max-width: 800px;
    margin: 0 auto 3rem;
    line-height: 1.8;
}

.section-cta .section-intro {
    color: var(--color-text-primary);
    opacity: 0.95;
}

/* Challenges & Solutions Section */
.problem-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.problem-box {
    background: white;
    padding: 2rem;
    border-radius: 0.75rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border-left: 4px solid var(--color-primary);
    transition: transform 0.3s, box-shadow 0.3s;
}

.problem-box:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.problem-box h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--color-primary);
}

.problem-box p {
    line-height: 1.8;
    color: var(--text-color);
}

/* Framework Section */
.framework-core {
    max-width: 900px;
    margin: 3rem auto;
}

.sequence-box {
    background: white;
    padding: 3rem;
    border-radius: 0.75rem;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.sequence-box h3 {
    font-size: 1.75rem;
    font-weight: 600;
    margin-bottom: 2rem;
    color: var(--color-primary);
}

.sequence-flow {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 2rem;
}

.sequence-step {
    background: var(--gradient-primary);
    color: var(--color-text-primary);
    padding: 1rem 1.5rem;
    border-radius: 0.5rem;
    font-weight: 600;
    font-size: 1.125rem;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.sequence-step:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 10;
}

.sequence-step.step-active {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
    z-index: 10;
    outline: 2px solid var(--color-primary);
    outline-offset: 2px;
}

.sequence-arrow {
    font-size: 1.5rem;
    color: var(--color-primary);
    font-weight: bold;
}

.sequence-tooltip {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border: 3px solid var(--color-primary);
    border-left: 6px solid var(--color-primary);
    border-radius: 0.75rem;
    padding: 0;
    margin: 0 auto;
    max-width: 700px;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transform: translateY(-10px);
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), 
                opacity 0.4s ease, 
                transform 0.4s ease, 
                padding 0.4s ease, 
                margin 0.4s ease;
    text-align: left;
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text-color);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12), 0 2px 8px rgba(0, 0, 0, 0.08);
    position: relative;
}

.sequence-tooltip::before {
    content: '';
    position: absolute;
    top: -8px;
    left: 2rem;
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-bottom: 8px solid var(--color-primary);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.sequence-tooltip.active {
    max-height: 800px;
    opacity: 1;
    transform: translateY(0);
    padding: 1.75rem;
    margin: 2rem auto 3.5rem;
}

.sequence-tooltip.active::before {
    opacity: 1;
}

.sequence-tooltip h4 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-primary);
    margin: 0 0 1rem 0;
    text-transform: capitalize;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.sequence-tooltip h4::before {
    content: '→';
    font-size: 1.5rem;
    color: var(--color-primary);
    font-weight: bold;
}

.sequence-tooltip p {
    margin: 0;
    color: var(--text-color);
}

.sequence-description {
    font-size: 1.125rem;
    line-height: 1.8;
    color: var(--text-color);
    max-width: 700px;
    margin: 0 auto;
}

.outcomes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 4rem;
}

.outcome-box {
    background: white;
    padding: 2.5rem;
    border-radius: 0.75rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border-top: 4px solid var(--color-primary);
}

.outcome-box h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: var(--color-primary);
}

.outcome-box ul {
    list-style: none;
    padding-left: 0;
}

.outcome-box li {
    padding: 0.75rem 0;
    padding-left: 1.5rem;
    position: relative;
    line-height: 1.6;
    border-bottom: 1px solid rgba(92, 103, 116, 0.2);
}

.outcome-box li:last-child {
    border-bottom: none;
}

.outcome-box li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--color-primary);
    font-weight: bold;
}

/* Products Section */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.product-card {
    background: white;
    padding: 2.5rem;
    border-radius: 0.75rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border: 1px solid var(--color-accent);
    position: relative;
    transition: transform 0.3s, box-shadow 0.3s;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.product-card.featured {
    border: 2px solid var(--color-primary);
    background: linear-gradient(to bottom, rgba(41, 50, 62, 0.02), white);
}

.product-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    font-weight: 600;
    background-color: var(--color-accent);
    color: var(--color-text-primary);
}

.product-badge.award-badge-product {
    top: 1rem;
    right: 1rem;
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
    color: var(--color-primary);
    font-weight: 700;
    box-shadow: 0 2px 8px rgba(255, 215, 0, 0.3);
}

.product-card:has(.award-badge-product) .product-badge.coming-soon {
    top: 4rem;
}

.product-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.product-card-book {
    padding-top: 5.5rem;
}

.ebook-identity {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.25rem;
    margin: 0 0 2rem;
    text-align: center;
}

.ebook-identity--card {
    margin: 0 0 1.5rem;
    gap: 1rem;
}

.ebook-cover-open {
    display: block;
    margin: 0;
    padding: 0;
    border: 0;
    background: none;
    cursor: zoom-in;
    border-radius: 0.2rem;
}

.ebook-cover-open:focus-visible {
    outline: 2px solid var(--color-primary);
    outline-offset: 3px;
}

.ebook-cover {
    display: block;
    width: 100%;
    max-width: 13.5rem;
    height: auto;
    border-radius: 0.2rem;
    box-shadow: 0 10px 28px rgba(41, 50, 62, 0.28);
}

.ebook-cover-dialog {
    width: min(44rem, calc(100vw - 2rem));
    max-width: calc(100vw - 2rem);
    max-height: calc(100vh - 2rem);
    margin: auto;
    padding: 1.25rem 1.25rem 1.5rem;
    border: 0;
    border-radius: 0.4rem;
    background: #fff;
    color: var(--text-color);
    box-shadow: 0 24px 64px rgba(20, 24, 32, 0.45);
}

.ebook-cover-dialog::backdrop {
    background: rgba(20, 24, 32, 0.72);
}

.ebook-cover-dialog-toolbar {
    display: flex;
    justify-content: flex-end;
    margin: 0 0 0.75rem;
}

.ebook-cover-dialog-close {
    margin: 0;
    padding: 0.35rem 0.7rem;
    border: 0;
    border-radius: 0.25rem;
    background: var(--color-primary);
    color: #fff;
    font: inherit;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
}

.ebook-cover-dialog-image {
    display: block;
    width: auto;
    max-width: 100%;
    max-height: min(78vh, 52rem);
    height: auto;
    margin: 0 auto;
    border-radius: 0.2rem;
    box-shadow: 0 10px 28px rgba(41, 50, 62, 0.28);
}

.ebook-cover-dialog-caption {
    margin-top: 1rem;
    text-align: center;
}

.ebook-identity-caption {
    max-width: 28rem;
}

.ebook-kind {
    margin: 0 0 0.35rem;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--color-accent);
}

.ebook-title {
    margin: 0 0 0.4rem;
    font-size: 1.75rem;
    font-weight: 700;
    line-height: 1.2;
    color: var(--color-primary);
}

h3.ebook-title {
    margin: 0 0 0.4rem;
}

.ebook-subtitle {
    margin: 0 0 0.5rem;
    font-size: 1.05rem;
    font-style: italic;
    line-height: 1.45;
    color: var(--color-accent);
}

.ebook-edition-note {
    margin: 0;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--color-secondary);
}

.ebook-edition-note + .ebook-edition-note {
    margin-top: 0.25rem;
    font-weight: 500;
}

.product-card h3 {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--color-primary);
}

.product-subtitle {
    font-size: 1rem;
    color: var(--color-text-secondary);
    margin-bottom: 1.5rem;
    font-style: italic;
}

.product-description {
    margin-bottom: 1.5rem;
    line-height: 1.8;
    flex-grow: 1;
}

.product-benefits {
    margin-bottom: 1.5rem;
}

.product-benefits strong {
    color: var(--color-primary);
    display: block;
    margin-bottom: 0.75rem;
    font-size: 1rem;
}

.product-benefits ul {
    list-style: none;
    padding-left: 0;
}

.product-benefits li {
    padding: 0.5rem 0;
    padding-left: 1.25rem;
    position: relative;
    line-height: 1.6;
    font-size: 0.95rem;
}

.product-benefits li:before {
    content: "•";
    position: absolute;
    left: 0;
    color: var(--color-primary);
    font-weight: bold;
    font-size: 1.25rem;
}

.product-cta {
    margin-bottom: 1rem;
}

.product-status {
    text-align: center;
    font-size: 0.875rem;
    color: var(--color-text-secondary);
    font-style: italic;
    margin-top: auto;
}

.bundle-offer {
    margin-top: 4rem;
    padding: 3rem;
    background: var(--gradient-extended);
    color: var(--color-text-primary);
    border-radius: 0.75rem;
    text-align: center;
}

.bundle-offer h3 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--color-text-primary);
}

.bundle-offer p {
    font-size: 1.125rem;
    margin-bottom: 2rem;
    line-height: 1.8;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* Authority Section */
.award-notice-top {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 2rem;
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.1) 0%, rgba(255, 165, 0, 0.1) 100%);
    border: 2px solid rgba(255, 215, 0, 0.3);
    border-radius: 0.75rem;
    margin-bottom: 3rem;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.award-icon-large {
    font-size: 3rem;
    color: #FFD700;
    font-weight: bold;
    flex-shrink: 0;
}

.award-notice-content {
    flex: 1;
}

.award-notice-content strong {
    display: block;
    font-size: 1.25rem;
    color: var(--color-primary);
    margin-bottom: 0.5rem;
}

.award-notice-content p {
    margin: 0;
    line-height: 1.6;
    color: var(--text-color);
}

.award-notice-content a,
.credential a,
.section-intro a {
    color: var(--color-primary);
    text-decoration: underline;
    font-weight: 600;
    transition: all 0.2s ease;
}

.award-notice-content a:hover,
.credential a:hover,
.section-intro a:hover {
    color: var(--color-accent);
    text-decoration-thickness: 2px;
}

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

.author-info {
    background: white;
    padding: 3rem;
    border-radius: 0.75rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.author-info h3 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--color-primary);
}

.author-title {
    font-size: 1.125rem;
    color: var(--color-text-secondary);
    margin-bottom: 1.5rem;
    font-style: italic;
}

.author-info > p {
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.author-credentials {
    margin-top: 2rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.credential {
    padding: 1.5rem;
    background-color: rgba(65, 75, 88, 0.05);
    border-radius: 0.5rem;
    border-left: 4px solid var(--color-primary);
}

.credential strong {
    color: var(--color-primary);
    display: block;
    margin-bottom: 0.75rem;
}

.credential p {
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 0.5rem;
}

.credential.award {
    background: linear-gradient(135deg, rgba(41, 50, 62, 0.1) 0%, rgba(65, 75, 88, 0.1) 100%);
    border-left: 4px solid #FFD700;
}

.credential.award strong {
    color: var(--color-primary);
    display: block;
    margin-bottom: 0.75rem;
    font-size: 1rem;
}

.award-link {
    color: var(--color-primary);
    text-decoration: underline;
    font-weight: 600;
    display: inline-block;
    margin-top: 0.5rem;
    transition: all 0.3s;
    text-decoration-thickness: 2px;
}

.award-link:hover {
    color: var(--color-accent);
    text-decoration-thickness: 3px;
}

/* CTA Section */
.cta-lead {
    font-size: 1.25rem;
    margin-bottom: 2.5rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    opacity: 0.95;
}

.contact-form {
    max-width: 600px;
    margin: 0 auto;
}

.form-group {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.form-group input,
.form-group select {
    flex: 1;
    min-width: 200px;
    padding: 1rem;
    border: 2px solid rgba(245, 243, 239, 0.3);
    border-radius: 0.5rem;
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--color-text-primary);
    font-size: 1rem;
}

.form-group input::placeholder {
    color: rgba(245, 243, 239, 0.7);
}

.form-group select {
    color: var(--color-text-primary);
}

.form-group select option {
    background-color: var(--color-primary);
    color: var(--color-text-primary);
}

.form-note {
    margin-top: 1.5rem;
    font-size: 0.95rem;
    opacity: 0.9;
}

/* .form-note a is now handled by dark background links above */

/* Form Messages */
.form-message {
    max-width: 600px;
    margin: 0 auto 2rem;
    padding: 1.5rem;
    border-radius: 0.5rem;
    text-align: center;
    font-size: 1.125rem;
}

.form-message.success {
    background-color: rgba(76, 175, 80, 0.2);
    border: 2px solid #4CAF50;
    color: #2E7D32;
}

.form-message.error {
    background-color: rgba(244, 67, 54, 0.2);
    border: 2px solid #F44336;
    color: #C62828;
}

.form-message.warning {
    background-color: rgba(255, 152, 0, 0.2);
    border: 2px solid #FF9800;
    color: #E65100;
}

.form-message.info,
.form-message.debug {
    background-color: rgba(76, 175, 80, 0.2);
    border: 2px solid #4CAF50;
    color: #2E7D32;
}

.form-message p {
    margin: 0;
    font-weight: 500;
}

/* Form Legal Section */
.form-legal {
    margin: 1.5rem 0;
    padding: 1.5rem;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 0.5rem;
    border: 1px solid rgba(245, 243, 239, 0.3);
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1rem;
    cursor: pointer;
}

.checkbox-label:last-child {
    margin-bottom: 0;
}

.checkbox-label input[type="checkbox"] {
    margin-right: 0.75rem;
    margin-top: 0.25rem;
    flex-shrink: 0;
    width: 1.25rem;
    height: 1.25rem;
    cursor: pointer;
}

.checkbox-text {
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--color-text-primary);
    opacity: 0.95;
}

/* .privacy-link is now handled by dark background links above */

/* Privacy Policy Section */
.privacy-content {
    max-width: 900px;
    margin: 0 auto;
}

.privacy-section {
    background: white;
    padding: 2rem;
    border-radius: 0.75rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    margin-bottom: 2rem;
    border-left: 4px solid var(--color-primary);
}

.privacy-section h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--color-primary);
}

.privacy-section p {
    line-height: 1.8;
    margin-bottom: 1rem;
}

.privacy-section ul {
    list-style: none;
    padding-left: 0;
    margin-top: 1rem;
}

.privacy-section li {
    padding: 0.75rem 0;
    padding-left: 1.5rem;
    position: relative;
    line-height: 1.6;
    border-bottom: 1px solid rgba(92, 103, 116, 0.2);
}

.privacy-section li:last-child {
    border-bottom: none;
}

.privacy-section li:before {
    content: "•";
    position: absolute;
    left: 0;
    color: var(--color-primary);
    font-weight: bold;
    font-size: 1.25rem;
}

.privacy-section a {
    color: var(--color-primary);
    text-decoration: underline;
    font-weight: 500;
    transition: all 0.2s ease;
    text-decoration-thickness: 2px;
}

.privacy-section a:hover {
    color: var(--color-accent);
    text-decoration-thickness: 3px;
}

.privacy-updated {
    text-align: center;
    font-style: italic;
    color: var(--color-text-secondary);
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(92, 103, 116, 0.2);
}

/* Scientific paper page */
.paper-page {
    max-width: 900px;
    margin: 0 auto;
}

.paper-page .container {
    max-width: 900px;
}

.paper-kicker {
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--color-accent);
    margin-bottom: 0.75rem;
}

.paper-page h1 {
    font-size: 2rem;
    line-height: 1.3;
    margin-bottom: 0.75rem;
    text-align: left;
}

.paper-byline {
    font-size: 1.125rem;
    color: var(--color-text-secondary);
    margin-bottom: 0.5rem;
}

.paper-status {
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.paper-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 2.5rem;
}

.paper-page .btn-primary {
    background-color: var(--color-primary);
    color: var(--color-text-primary) !important;
    border-color: var(--color-primary);
}

.paper-page .btn-primary:hover,
.paper-page .btn-primary:focus-visible {
    background-color: var(--color-text-primary);
    border-color: var(--color-primary);
    color: var(--color-primary) !important;
}

.paper-cite-label {
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--color-primary);
    margin: 1.35rem 0 0.45rem;
}

.paper-citation {
    margin: 0;
    padding: 1rem 1.15rem;
    background-color: rgba(65, 75, 88, 0.05);
    border-radius: 0.4rem;
    line-height: 1.65;
    overflow-wrap: anywhere;
}

.paper-citation a {
    display: inline;
}

.paper-citation cite {
    font-style: italic;
    font-weight: inherit;
}

/* Footer */
footer {
    background-color: var(--color-primary);
    color: var(--color-text-primary);
    padding: 3rem 0 1.5rem;
    margin-top: 5rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h4 {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: white;
}

.footer-section p {
    margin-bottom: 0.75rem;
    line-height: 1.6;
    font-size: 0.9rem;
    opacity: 0.9;
}

/* .footer-section a is now handled by dark background links above */

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(245, 243, 239, 0.2);
}

.footer-bottom p {
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    opacity: 0.8;
}

.disclaimer {
    font-size: 0.85rem;
    opacity: 0.7;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.5rem;
    }

    .subtitle {
        font-size: 1.25rem;
    }

    .lead {
        font-size: 1.125rem;
    }

    .nav-toggle {
        display: inline-flex;
    }

    nav .container {
        flex-wrap: wrap;
        gap: 0.5rem;
    }

    .logo h1 {
        font-size: 1.2rem;
    }

    .nav-links {
        display: none;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        width: 100%;
        flex-basis: 100%;
        padding-top: 0.5rem;
        border-top: 1px solid var(--border-color);
    }

    nav.nav-open .nav-links {
        display: flex;
    }

    .nav-links a {
        display: block;
        padding: 0.85rem 0;
    }

    .nav-cta {
        text-align: center;
    }

    .lang-switch {
        padding: 0.65rem 0 0.25rem;
        justify-content: flex-start;
    }

    body.nav-locked {
        overflow: hidden;
    }

    .paper-page h1 {
        font-size: 1.6rem;
    }

    .paper-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .section h2 {
        font-size: 2rem;
    }

    .cta-buttons {
        flex-direction: column;
        align-items: stretch;
    }

    .btn {
        text-align: center;
    }

    .sequence-flow {
        flex-direction: column;
    }

    .sequence-step {
        font-size: 1rem;
        padding: 0.75rem 1rem;
        max-width: 100%;
    }

    .sequence-arrow {
        transform: rotate(90deg);
    }

    .form-group {
        flex-direction: column;
    }

    .form-group input,
    .form-group select {
        width: 100%;
    }

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

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

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

/* Print Styles */
@media print {
    /* Reset colors for print */
    * {
        background: white !important;
        color: black !important;
        box-shadow: none !important;
        text-shadow: none !important;
    }

    /* Hide non-essential elements */
    nav,
    .nav-links,
    .cta-buttons,
    .btn,
    .contact-form,
    .form-group,
    .form-legal,
    .award-badge-hero,
    .product-badge,
    .bundle-offer,
    footer,
    .hero-note,
    .form-note,
    .form-message {
        display: none !important;
    }

    /* Page setup */
    @page {
        margin: 1.2cm;
        size: A4;
    }

    body {
        font-size: 12pt;
        line-height: 1.4;
        color: black;
        background: white;
    }

    /* Headings */
    h1, h2, h3, h4, h5, h6 {
        color: black !important;
        page-break-after: avoid;
        page-break-inside: avoid;
    }

    h1 {
        font-size: 24pt;
        margin-top: 0.6em;
        margin-bottom: 0.3em;
    }

    h2 {
        font-size: 20pt;
        margin-top: 0.6em;
        margin-bottom: 0.3em;
        border-bottom: 2px solid black;
        padding-bottom: 0.15em;
    }

    h3 {
        font-size: 16pt;
        margin-top: 0.5em;
        margin-bottom: 0.3em;
    }

    /* Links */
    a {
        color: black !important;
        text-decoration: underline;
    }

    a[href]:after {
        content: " (" attr(href) ")";
        font-size: 0.9em;
        color: #666;
    }

    a[href^="#"]:after,
    a[href^="javascript:"]:after {
        content: "";
    }

    /* Sections */
    .section {
        page-break-inside: avoid;
        margin-bottom: 0.8em;
    }

    .section-alt {
        background: white !important;
    }

    /* Hero section */
    .hero {
        background: white !important;
        padding: 0.6em 0;
        border-bottom: 2px solid black;
        margin-bottom: 0.8em;
    }

    .hero h1 {
        color: black !important;
        font-size: 24pt;
    }

    .subtitle {
        color: black !important;
        font-size: 14pt;
    }

    .lead {
        color: black !important;
        font-size: 12pt;
    }

    /* Sequence box */
    .sequence-box {
        background: white !important;
        border: 2px solid black !important;
        padding: 0.8em;
        margin: 0.8em auto;
        page-break-inside: avoid;
    }

    .sequence-box h3 {
        color: black !important;
        font-size: 18pt;
        margin-bottom: 0.6em;
    }

    .sequence-flow {
        display: block !important;
        margin-bottom: 0.8em;
    }

    .sequence-step {
        display: block !important;
        background: white !important;
        color: black !important;
        border: 2px solid black !important;
        border-bottom: none !important;
        padding: 0.5em 0.8em;
        font-weight: bold;
        font-size: 14pt;
        margin: 0;
        page-break-inside: avoid;
        position: relative;
    }

    /* Show explanation for each step in print */
    .sequence-step::after {
        content: attr(data-explanation);
        display: block !important;
        font-weight: normal;
        font-size: 11pt;
        padding: 0.5em 0.8em;
        margin: 0;
        border: 2px solid black;
        border-top: none;
        background: #f9f9f9 !important;
        color: black !important;
        line-height: 1.4;
        margin-bottom: 0.6em;
    }

    .sequence-arrow {
        display: none !important;
    }

    /* Hide the single tooltip div in print - we show all explanations inline */
    .sequence-tooltip {
        display: none !important;
    }

    .sequence-description {
        color: black !important;
        font-size: 11pt;
        margin-top: 0.8em;
    }

    /* Problem and outcome boxes */
    .problem-box,
    .outcome-box {
        background: white !important;
        border: 1px solid black !important;
        page-break-inside: avoid;
        margin-bottom: 0.6em;
        padding: 0.6em;
    }

    .problem-box h3,
    .outcome-box h3 {
        color: black !important;
    }

    /* Product cards */
    .product-card {
        background: white !important;
        border: 1px solid black !important;
        page-break-inside: avoid;
        margin-bottom: 0.8em;
        padding: 0.8em;
    }

    .product-card h3 {
        color: black !important;
    }

    /* Lists */
    ul, ol {
        margin-left: 1.2em;
    }

    li {
        margin-bottom: 0.3em;
    }

    /* Tables */
    table {
        border-collapse: collapse;
        width: 100%;
        page-break-inside: avoid;
    }

    th, td {
        border: 1px solid black;
        padding: 0.3em;
    }

    th {
        background: #f0f0f0 !important;
        font-weight: bold;
    }

    /* Images */
    img {
        max-width: 100% !important;
        height: auto !important;
        page-break-inside: avoid;
    }

    /* Avoid page breaks */
    .authority-content,
    .author-info,
    .credential {
        page-break-inside: avoid;
    }

    .author-info {
        padding: 0.8em !important;
    }

    .credential {
        padding: 0.6em !important;
        margin-bottom: 0.6em;
    }

    .author-credentials {
        margin-top: 0.8em;
    }

    p {
        margin-bottom: 0.5em;
    }

    /* Award notice */
    .award-notice-top {
        background: white !important;
        border: 2px solid black !important;
        padding: 0.6em;
        margin-bottom: 0.8em;
        page-break-inside: avoid;
    }

    .award-notice-top strong {
        color: black !important;
    }

    /* Container */
    .container {
        max-width: 100%;
        padding: 0;
    }

    /* Spacing adjustments */
    .section {
        padding: 0.6em 0;
    }

    /* Remove gradients */
    .gradient-primary,
    .gradient-extended,
    .gradient-soft {
        background: white !important;
    }
}

.dcc-consent-dialog, .dcc-cookie-settings {
  --dcc-bg: #fff;
  --dcc-text: #1f2937;
  --dcc-muted: #5c6774;
  --dcc-border: #5c6774;
  --dcc-primary: #29323e;
  --dcc-primary-text: #f5f3ef;
  --dcc-font: inherit;
}

.cf-page {
    background: #fff;
    color: var(--text-color);
    color-scheme: light;
}
.cf-wrap {
    max-width: 720px;
}
.cf-kicker {
    font-weight: 600;
    margin-bottom: 1rem;
}
.cf-form .form-group,
.cf-stack {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.cf-page .form-group input,
.cf-page .form-group select,
.cf-page .cf-stack input,
.cf-page .cf-stack select {
    width: 100%;
    color: var(--text-color);
    background: #fff;
    border: 1px solid var(--border-color);
}
/* Hint text on the white figures form. Do not inherit the waitlist
   cream placeholder (meant for a dark CTA). Firefox also needs opacity 1. */
.cf-page .form-group input::placeholder,
.cf-page .cf-stack input::placeholder {
    color: #3d4a59;
    opacity: 1;
}
.cf-page .form-group input::-webkit-input-placeholder,
.cf-page .cf-stack input::-webkit-input-placeholder {
    color: #3d4a59;
    -webkit-text-fill-color: #3d4a59;
    opacity: 1;
}
.cf-page .form-group input::-moz-placeholder,
.cf-page .cf-stack input::-moz-placeholder {
    color: #3d4a59;
    opacity: 1;
}
.cf-page .form-group select:has(> option[value=""]:checked),
.cf-page .cf-stack select:has(> option[value=""]:checked) {
    color: #3d4a59;
}
.cf-page .checkbox-text,
.cf-page .form-legal,
.cf-legal {
    color: var(--text-color);
    background: #f6f6f6;
    border-color: #ddd;
}
.cf-help {
    font-size: 0.9rem;
    color: #555;
    margin: 0;
}
.cf-edition-links {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    max-width: 28rem;
    margin: 1.5rem 0 0;
}
.cf-edition-links .btn {
    text-align: center;
}
.cf-error {
    color: #c62828;
    margin: 0;
}

.hp-field {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

