/* =========================================
   COFFEESIGHTS OFFICIAL PALETTE
   ========================================= */
:root {
    /* Base */
    --cream: #F5EEE0;
    --cream-deep: #EDE3CF;
    --espresso: #2B160E;
    --espresso-soft: #4A2C1C;
    --taupe: #8A7060;

    /* Brand */
    --violet: #5B2A86;
    --violet-deep: #3E1C61;
    --magenta: #C026D3;
    --magenta-glow: #E879F9;

    /* Functional */
    --border: rgba(43, 22, 14, 0.12);
    --border-hover: rgba(91, 42, 134, 0.4);
    --card-bg: rgba(255, 255, 255, 0.5);

    /* Typography */
    --font-heading: 'Fraunces', serif;
    --font-body: 'Inter', sans-serif;

    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}
/* Contenitore del logo nell'header */
.logo-link {
    display: inline-flex;
    align-items: center;
    /* Modifica questa altezza (es. 40px, 45px, 50px) per decidere quanto deve essere grande il logo */
    height: 45px; 
}

/* Regola l'immagine affinché si adatti proporzionalmente senza deformarsi */
.logo-img {
    height: 100%;
    width: auto;
    object-fit: contain;
    display: block;
}

/* Classe di utilità per l'accessibilità (nasconde il testo visivo ma lo lascia per gli screen reader) */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}
/* =========================================
   RESET & BASE
   ========================================= */
* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    background-color: var(--cream);
    color: var(--espresso);
    font-family: var(--font-body);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

a { text-decoration: none; color: inherit; transition: var(--transition); }

:focus-visible {
    outline: 2px solid var(--violet);
    outline-offset: 3px;
    border-radius: 2px;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Skip link (visible only on keyboard focus) */
.skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
    z-index: 200;
    background: var(--violet);
    color: var(--cream);
    padding: 0.6rem 1.2rem;
    border-radius: 0 0 8px 0;
    font-size: 0.85rem;
}
.skip-link:focus { left: 0; }

/* =========================================
   NAVIGATION
   ========================================= */
header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 100;
    background: rgba(245, 238, 224, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 72px;
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 500;
    letter-spacing: -0.02em;
    color: var(--espresso);
}
.logo span {
    background: linear-gradient(135deg, var(--violet) 0%, var(--magenta) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 600;
}

.nav-links {
    display: flex;
    gap: 2.5rem;
    list-style: none;
}

.nav-links a {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--espresso-soft);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--violet);
    transition: var(--transition);
}

.nav-links a:hover { color: var(--violet); }
.nav-links a:hover::after { width: 100%; }

/* Active page */
.nav-links a.active { color: var(--violet); font-weight: 600; }
.nav-links a.active::after { width: 100%; }

/* Hamburger (hidden on desktop) */
.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    padding: 10px;
    background: transparent;
    border: 1px solid var(--border);
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition);
}
.nav-toggle span {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--espresso);
    border-radius: 2px;
    transition: var(--transition);
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* =========================================
   HERO SECTION (Homepage)
   ========================================= */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: stretch;
    position: relative;
    padding-top: 72px;
    background:
        radial-gradient(circle at 80% 20%, rgba(192, 38, 211, 0.08) 0%, transparent 40%),
        radial-gradient(circle at 10% 80%, rgba(91, 42, 134, 0.1) 0%, transparent 45%),
        linear-gradient(180deg, var(--cream) 0%, var(--cream-deep) 100%);
    overflow: hidden;
}

.hero-neural {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    mask-image: radial-gradient(ellipse at center, black 20%, transparent 75%);
    -webkit-mask-image: radial-gradient(ellipse at center, black 20%, transparent 75%);
    pointer-events: none;
}

.hero .container {
    width: 100%;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 960px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.5rem 1.1rem;
    background: rgba(91, 42, 134, 0.08);
    border: 1px solid rgba(91, 42, 134, 0.2);
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--violet);
    text-transform: uppercase;
    letter-spacing: 0.12em;
    margin-bottom: 2rem;
}

.hero-badge::before {
    content: '';
    width: 7px;
    height: 7px;
    background: var(--magenta);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--magenta-glow);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.2); }
}

.hero h1 {
    font-family: var(--font-heading);
    font-size: clamp(2.8rem, 6.5vw, 5rem);
    font-weight: 400;
    line-height: 1.05;
    letter-spacing: -0.03em;
    margin-bottom: 1.5rem;
    color: var(--espresso);
}

.hero h1 em {
    font-style: italic;
    font-weight: 300;
    background: linear-gradient(135deg, var(--violet) 0%, var(--magenta) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-sub {
    font-size: 1.2rem;
    color: var(--espresso-soft);
    max-width: none;
    margin-bottom: 3rem;
    font-weight: 300;
    line-height: 1.6;
    position: relative;
    z-index: 2;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    margin-bottom: 5rem;
    flex-wrap: wrap;
}

/* =========================================
   PAGE HERO (Internal Pages)
   ========================================= */
.page-hero {
    padding: 10rem 0 5rem;
    min-height: 465px;
    position: relative;
    background:
        radial-gradient(circle at 70% 30%, rgba(192, 38, 211, 0.06) 0%, transparent 40%),
        radial-gradient(circle at 20% 70%, rgba(91, 42, 134, 0.08) 0%, transparent 45%),
        linear-gradient(180deg, var(--cream) 0%, var(--cream-deep) 100%);
    border-bottom: 1px solid var(--border);
}

/* Full-height variant for internal-page heroes, matching the
   homepage hero height. Used both by pages with the value-path arrow
   row (coffee, machines, about, methodology, brainmood) and by pages
   without one (press, privacy, prices) for visual consistency. */
.page-hero--full {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Without this, the flex item's auto side-margins (from .container's
   "margin: 0 auto") absorb the free space and re-center the container
   instead of stretching it -- pushing the (left-aligned) hero text
   toward the middle of the page instead of the left edge. Same fix
   .hero already uses. */
.page-hero--full .container {
    width: 100%;
}

.page-hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
}

.page-hero-content--wide {
    max-width: none;
}

.page-hero-content--wide .page-hero-sub {
    max-width: none;
}

.page-hero .section-tag {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: var(--violet);
    margin-bottom: 1rem;
    display: block;
    font-weight: 600;
}

.page-hero h1 {
    font-family: var(--font-heading);
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 400;
    line-height: 1.1;
    letter-spacing: -0.02em;
    margin-bottom: 1.5rem;
    color: var(--espresso);
}

.page-hero h1 em {
    font-style: italic;
    font-weight: 300;
    background: linear-gradient(135deg, var(--violet) 0%, var(--magenta) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.page-hero-sub {
    font-size: 1.15rem;
    color: var(--espresso-soft);
    max-width: 600px;
    font-weight: 300;
    line-height: 1.7;
}

.page-hero-sub strong,
.hero-sub strong {
    font-weight: 600;
    color: var(--espresso);
}

.page-hero-sub em {
    font-style: normal;
    color: var(--violet);
}

/* =========================================
   BUTTONS
   ========================================= */
.btn {
    padding: 0.95rem 2rem;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    border: 1px solid transparent;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-primary {
    background: linear-gradient(135deg, var(--violet) 0%, var(--violet-deep) 100%);
    color: var(--cream);
    box-shadow: 0 4px 20px rgba(91, 42, 134, 0.25);
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(91, 42, 134, 0.4);
}

.btn-secondary {
    background: transparent;
    border-color: var(--espresso);
    color: var(--espresso);
}
.btn-secondary:hover {
    background: var(--espresso);
    color: var(--cream);
}

.btn-violet {
    background: transparent;
    border-color: var(--violet);
    color: var(--violet);
}
.btn-violet:hover {
    background: var(--violet);
    color: var(--cream);
}

.btn-tertiary {
    background: transparent;
    border-color: transparent;
    color: var(--taupe);
}
.btn-tertiary:hover {
    color: var(--violet);
    border-color: var(--border-hover);
}

/* =========================================
   VALUE PATH (Data > Intelligence > Sights > Decision)
   ========================================= */
.value-path {
    display: flex;
    width: 100%;
    margin-top: 2.5rem;
    position: relative;
    z-index: 2;
}

.value-step {
    --notch: 22px;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 1.5rem 1.8rem;
    margin-left: calc(var(--notch) * -1);
    clip-path: polygon(0 0, calc(100% - var(--notch)) 0, 100% 50%, calc(100% - var(--notch)) 100%, 0 100%, var(--notch) 50%);
    font-size: 0.82rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    white-space: nowrap;
    transition: var(--transition);
}

.value-step:first-child {
    clip-path: polygon(0 0, calc(100% - var(--notch)) 0, 100% 50%, calc(100% - var(--notch)) 100%, 0 100%);
    margin-left: 0;
    padding-left: 2.2rem;
}

.value-step:nth-child(1) { background: rgba(91, 42, 134, 0.06);  color: var(--espresso-soft); z-index: 1; }
.value-step:nth-child(2) { background: rgba(91, 42, 134, 0.16);  color: var(--espresso-soft); z-index: 2; }
.value-step:nth-child(3) { background: rgba(192, 38, 211, 0.22); color: var(--espresso);      z-index: 3; }
.value-step:nth-child(4):not(:last-child) {
    background: rgba(192, 38, 211, 0.32);
    color: var(--espresso);
    z-index: 4;
}

.value-step:last-child {
    background: linear-gradient(135deg, var(--violet) 0%, var(--magenta) 100%);
    color: #fff;
    z-index: 5;
    padding-right: 2rem;
    box-shadow: 0 8px 24px rgba(192, 38, 211, 0.25);
}

/* Vertical list of 4 lines, each marked with a different official
   brand color (no icons) instead of boxed cards or a colored row. */
.connect-list {
    list-style: none;
    margin: 2.5rem 0 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 1.1rem;
}

.connect-line {
    padding: 0.9rem 0 0.9rem 1.3rem;
    border-left: 4px solid;
    background: rgba(43, 22, 14, 0.03);
    border-radius: 0 8px 8px 0;
}

.connect-line .connect-title {
    font-family: var(--font-heading);
    font-size: 1.02rem;
    font-weight: 600;
    color: var(--espresso);
    margin-bottom: 0.35rem;
    line-height: 1.3;
}

/* Highlights the word that ties a "Why Sights" item back to the
   name (Foresight / sights / sights) in bold violet. */
.connect-line .connect-title em {
    font-style: normal;
    font-weight: 700;
    color: var(--violet) !important;
}

.connect-line .connect-desc {
    font-size: 0.88rem;
    line-height: 1.5;
    color: var(--espresso-soft);
    margin: 0;
}

.connect-line:nth-child(1) { border-left-color: var(--violet-deep); }
.connect-line:nth-child(2) { border-left-color: var(--violet); }
.connect-line:nth-child(3) { border-left-color: var(--magenta); }
.connect-line:nth-child(4) { border-left-color: var(--magenta-glow); }

/* =========================================
   SECTIONS
   ========================================= */
.section {
    padding: 4.5rem 0;
    position: relative;
}

.section--tight-top { padding-top: 1rem; }
.section--tight-bottom { padding-bottom: 1rem; }

.section-header {
    margin-bottom: 3rem;
    max-width: 720px;
}

.section-header--wide {
    max-width: none;
}
.section-header--wide .section-title,
.section-header--wide .section-desc {
    max-width: none;
}

.section-tag {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: var(--violet);
    margin-bottom: 1rem;
    display: block;
    font-weight: 600;
}

.section-title {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 4vw, 3.25rem);
    font-weight: 400;
    line-height: 1.1;
    letter-spacing: -0.02em;
    margin-bottom: 1.5rem;
    color: var(--espresso);
}

.section-desc {
    font-size: 1.1rem;
    color: var(--espresso-soft);
    font-weight: 300;
    line-height: 1.7;
}

/* =========================================
   CARDS GRID (internal pages)
   ========================================= */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 1.5rem;
}

.card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 2.5rem;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 260px;
    backdrop-filter: blur(10px);
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, var(--violet) 0%, var(--magenta) 100%);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.card:hover {
    border-color: var(--border-hover);
    transform: translateY(-4px);
    background: rgba(255, 255, 255, 0.8);
    box-shadow: 0 20px 40px -20px rgba(91, 42, 134, 0.2);
}

.card:hover::before { transform: scaleX(1); }

.card-icon {
    width: 52px;
    height: 52px;
    background: linear-gradient(135deg, rgba(91, 42, 134, 0.1) 0%, rgba(192, 38, 212, 0.08) 100%);
    border: 1px solid rgba(91, 42, 134, 0.15);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 2rem;
    font-size: 1.5rem;
}

.card-title {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    margin-bottom: 0.75rem;
    color: var(--espresso);
    font-weight: 500;
    letter-spacing: -0.01em;
}

.card-desc {
    color: var(--espresso-soft);
    font-size: 0.95rem;
    line-height: 1.65;
}

/* =========================================
   PILLARS GRID (homepage, clickable cards)
   ========================================= */
.pillars-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 1.5rem;
}

.pillar-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 2.5rem;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 280px;
    backdrop-filter: blur(10px);
}

.pillar-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, var(--violet) 0%, var(--magenta) 100%);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.pillar-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-4px);
    background: rgba(255, 255, 255, 0.8);
    box-shadow: 0 20px 40px -20px rgba(91, 42, 134, 0.2);
}

.pillar-card:hover::before { transform: scaleX(1); }

.pillar-card::after {
    content: '→';
    position: absolute;
    top: 2.5rem;
    right: 2.5rem;
    font-size: 1.5rem;
    color: var(--taupe);
    transition: var(--transition);
}

.pillar-card:hover::after {
    color: var(--violet);
    transform: translateX(6px);
}

.pillar-icon {
    width: 52px;
    height: 52px;
    background: linear-gradient(135deg, rgba(91, 42, 134, 0.1) 0%, rgba(192, 38, 212, 0.08) 100%);
    border: 1px solid rgba(91, 42, 134, 0.15);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 2rem;
    font-size: 1.5rem;
}

.pillar-title {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    margin-bottom: 0.75rem;
    color: var(--espresso);
    font-weight: 500;
    letter-spacing: -0.01em;
}

.pillar-desc {
    color: var(--espresso-soft);
    font-size: 0.95rem;
    line-height: 1.65;
}

/* =========================================
   STATS / METRICS
   ========================================= */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin: 3rem 0;
}

.stat-item {
    text-align: center;
    padding: 2rem;
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 12px;
    backdrop-filter: blur(10px);
}

.stat-value {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 500;
    color: var(--violet);
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, var(--violet) 0%, var(--magenta) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.stat-label {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--taupe);
    font-weight: 600;
}

.stat-sub {
    font-size: 0.72rem;
    color: var(--taupe);
    opacity: 0.8;
    font-weight: 400;
    margin-top: 0.4rem;
}

/* =========================================
   INSIGHT BOX
   ========================================= */
.insight-box {
    background: linear-gradient(135deg, rgba(91, 42, 134, 0.05) 0%, rgba(192, 38, 212, 0.03) 100%);
    border: 1px solid rgba(91, 42, 134, 0.2);
    border-left: 4px solid var(--violet);
    border-radius: 12px;
    padding: 2.5rem;
    margin: 3rem 0;
    position: relative;
}

.insight-box::before {
    content: '"';
    position: absolute;
    top: 1rem;
    left: 1.5rem;
    font-family: var(--font-heading);
    font-size: 4rem;
    color: var(--violet);
    opacity: 0.2;
    line-height: 1;
}

.insight-box p {
    font-size: 1.15rem;
    color: var(--espresso);
    line-height: 1.7;
    font-weight: 300;
    font-style: italic;
    padding-left: 2rem;
}

/* =========================================
   FOOTER
   ========================================= */
.site-footer {
    padding: 4rem 0 2.5rem;
    border-top: 1px solid var(--border);
    background: var(--cream-deep);
    color: var(--taupe);
    font-size: 0.85rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.6fr 1fr 1fr 1fr 1fr;
    gap: 2.5rem;
    align-items: start;
}

.footer-col {
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
}

.footer-brand {
    display: inline-block;
    line-height: 0;
}
.footer-logo-img {
    height: 48px;
    width: auto;
    display: block;
}

.footer-tagline {
    font-family: var(--font-heading);
    font-size: 1rem;
    font-style: italic;
    letter-spacing: 0;
    color: var(--taupe);
    font-weight: 400;
    margin-top: 0.6rem;
}
.footer-tagline .accent { color: var(--violet); }

.footer-text {
    color: var(--taupe);
    line-height: 1.6;
    max-width: 34ch;
    margin-top: 0.3rem;
}

.footer-copy {
    color: var(--taupe);
    margin-top: 0.6rem;
    font-size: 0.8rem;
}

.footer-col-title {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--espresso);
    font-weight: 700;
    margin-bottom: 0.3rem;
}

.footer-col a {
    color: var(--taupe);
    font-size: 0.88rem;
    transition: var(--transition);
    width: fit-content;
}
.footer-col a:hover { color: var(--violet); }

.footer-bottom {
    margin-top: 3rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border);
    text-align: center;
    color: var(--taupe);
    font-size: 0.8rem;
}
.footer-bottom a {
    color: var(--taupe);
    transition: var(--transition);
}
.footer-bottom a:hover { color: var(--violet); }

/* =========================================
   RESPONSIVE
   ========================================= */
@media (max-width: 768px) {
    .nav-toggle { display: flex; }

    .nav-links {
        display: none;
        position: absolute;
        top: 72px;
        left: 0;
        right: 0;
        flex-direction: column;
        gap: 1.25rem;
        padding: 1.75rem 2rem 2rem;
        background: rgba(245, 238, 224, 0.97);
        backdrop-filter: blur(16px);
        -webkit-backdrop-filter: blur(16px);
        border-bottom: 1px solid var(--border);
        box-shadow: 0 20px 40px -20px rgba(43, 22, 14, 0.2);
    }
    .nav-links.open { display: flex; }
    .nav-links a { display: inline-block; padding: 0.25rem 0; }

    .hero-actions { flex-direction: column; align-items: flex-start; }
    .value-path { flex-direction: column; max-width: 340px; }
    .value-step {
        --notch: 0px;
        clip-path: none !important;
        margin-left: 0;
        margin-top: 0;
        padding: 0.85rem 1.5rem !important;
        justify-content: center;
        text-align: center;
        border-radius: 8px;
        position: relative;
    }
    .value-step:not(:last-child) { margin-bottom: 20px; }
    .value-step:not(:last-child)::after {
        content: '▼';
        position: absolute;
        bottom: -18px;
        left: 50%;
        transform: translateX(-50%);
        font-size: 0.7rem;
        color: var(--violet);
        opacity: 0.5;
    }
    .btn { width: 100%; justify-content: center; }
    .cards-grid, .pillars-grid { grid-template-columns: 1fr; }
    .section { padding: 3rem 0; }
    .page-hero { padding: 8rem 0 3rem; }
    .stats-grid { grid-template-columns: 1fr; }
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 2.5rem 2rem;
    }
    .footer-col-brand { grid-column: 1 / -1; }
    .rank-table th, .rank-table td { padding: 0.75rem 0.9rem; font-size: 0.85rem; }
    .source-note { flex-direction: column; align-items: flex-start; text-align: left; }
}

/* Tablet: value-path arrow text can get cramped between 640-900px */
@media (min-width: 769px) and (max-width: 900px) {
    .value-step {
        font-size: 0.68rem;
        letter-spacing: 0.1em;
        padding: 1.3rem 1rem;
        --notch: 16px;
    }
}

/* Very small phones */
@media (max-width: 380px) {
    .hero h1 { font-size: 2.4rem; }
    .value-step { font-size: 0.75rem; }
    .footer-grid { grid-template-columns: 1fr; }
}

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

/* =========================================
   LIVE DATA RANKINGS (prices.php — GCCP feed)
   ========================================= */
.live-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5em;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 600;
    color: var(--violet);
    background: rgba(91, 42, 134, 0.08);
    border: 1px solid rgba(91, 42, 134, 0.2);
    padding: 0.35rem 0.8rem 0.35rem 0.65rem;
    border-radius: 999px;
    --live-rgb: 192, 38, 211;
}

.live-badge--green {
    color: #1a8a4c;
    background: rgba(34, 197, 94, 0.1);
    border-color: rgba(34, 197, 94, 0.3);
    --live-rgb: 34, 197, 94;
}

.live-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: rgb(var(--live-rgb, 192, 38, 211));
    box-shadow: 0 0 0 0 rgba(var(--live-rgb, 192, 38, 211), 0.5);
    animation: live-pulse 2s infinite;
}

@keyframes live-pulse {
    0%   { box-shadow: 0 0 0 0 rgba(var(--live-rgb, 192, 38, 211), 0.5); }
    70%  { box-shadow: 0 0 0 6px rgba(var(--live-rgb, 192, 38, 211), 0); }
    100% { box-shadow: 0 0 0 0 rgba(var(--live-rgb, 192, 38, 211), 0); }
}

.section-tag-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}

.section-tag-row .section-tag { margin-bottom: 0; }

.rank-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.rank-updated {
    font-size: 0.85rem;
    color: var(--taupe);
}

.table-wrap {
    overflow-x: auto;
    margin: 0 0 0.85rem;
    border-radius: 14px;
}

.table-source {
    font-size: 0.82rem;
    color: var(--taupe);
    margin: 0 0 3rem;
}

.table-source a {
    color: var(--taupe);
    font-weight: 400;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.table-source a:hover { color: var(--espresso-soft); }

.rank-table {
    width: 100%;
    min-width: 620px;
    border-collapse: separate;
    border-spacing: 0;
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 14px;
    backdrop-filter: blur(10px);
}

.rank-table th {
    text-align: left;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--taupe);
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--border);
    white-space: nowrap;
}

.rank-table td {
    padding: 0.9rem 1.25rem;
    border-bottom: 1px solid var(--border);
    font-size: 0.95rem;
    color: var(--espresso);
    vertical-align: middle;
}

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

.rank-table tbody tr {
    transition: var(--transition);
}

.rank-table tbody tr:hover {
    background: rgba(91, 42, 134, 0.04);
}

.rank-table th.num, .rank-table td.num { text-align: right; }

.rank-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--violet) 0%, var(--magenta) 100%);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 600;
}

.rank-name { font-weight: 600; color: var(--espresso); }
.rank-name .rank-sub {
    display: block;
    font-weight: 400;
    font-size: 0.78rem;
    color: var(--taupe);
    margin-top: 0.15rem;
}

.rank-price { font-weight: 600; color: var(--violet); }

.rank-table td.rank-up { color: #dc2626; font-weight: 600; }
.rank-table td.rank-down { color: #16a34a; font-weight: 600; }

.rank-table tbody tr.rank-row-global {
    border-top: 2px solid var(--border);
    background: rgba(43, 22, 14, 0.03);
}

.rank-table tbody tr.rank-row-global td { font-weight: 600; color: var(--espresso); }

.rank-row-global .rank-badge {
    background: var(--taupe);
    opacity: 0.6;
}

.source-note {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    flex-wrap: wrap;
    background: rgba(43, 22, 14, 0.03);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1rem 1.5rem;
    margin: -1rem 0 3rem;
    font-size: 0.85rem;
    color: var(--taupe);
}

.source-note a {
    color: var(--violet);
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.source-note a:hover { color: var(--magenta); }

.notice-box {
    background: rgba(138, 112, 96, 0.08);
    border: 1px dashed var(--border);
    border-radius: 12px;
    padding: 2.5rem 2rem;
    text-align: center;
    color: var(--espresso-soft);
    margin: 2rem 0 3rem;
}

/* =========================================
   CTA BOX (data licensing / commercial pitch)
   ========================================= */
.cta-box {
    background: linear-gradient(135deg, rgba(91, 42, 134, 0.08) 0%, rgba(192, 38, 211, 0.05) 100%);
    border: 1px solid rgba(91, 42, 134, 0.22);
    border-radius: 16px;
    padding: 3rem 2.5rem;
    text-align: center;
    margin: 0 0 1rem;
}

.cta-box .section-tag { display: inline-block; margin-bottom: 1rem; }

.cta-box h3 {
    font-family: var(--font-heading);
    font-size: 1.9rem;
    font-weight: 500;
    color: var(--espresso);
    margin-bottom: 0.85rem;
    letter-spacing: -0.01em;
}

.cta-box p {
    color: var(--espresso-soft);
    font-size: 1rem;
    line-height: 1.7;
    max-width: 620px;
    margin: 0 auto 1.85rem;
}

/* Shorter variant: same look, less vertical padding/spacing
   (press.php contact box, sitting right under the release list). */
.cta-box--compact {
    padding: 1.75rem 2.5rem;
    margin-bottom: 0;
}

.cta-box--compact .section-tag { margin-bottom: 0.5rem; }
.cta-box--compact h3 { font-size: 1.5rem; margin-bottom: 0.5rem; }
.cta-box--compact p { margin-bottom: 1.1rem; }

.channels-cta {
    text-align: center;
    margin-top: 2.5rem;
}

.channels-cta p {
    color: var(--espresso-soft);
    font-size: 0.95rem;
    margin-bottom: 1.25rem;
}

/* =========================================
   MOOD GRID (BrainMood official colours)
   ========================================= */
.mood-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin: 2.5rem 0 0.75rem;
}

.mood-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1.5rem 1.1rem;
    text-align: center;
    backdrop-filter: blur(10px);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.mood-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-3px);
}

/* Stack the BrainMood colour cards one per row on phones. Placed after
   the base .mood-grid rule above so it actually wins the cascade
   (the old override inside the RESPONSIVE block earlier in this file
   was being defeated by that later, unscoped base rule). */
@media (max-width: 768px) {
    .mood-grid {
        grid-template-columns: 1fr;
    }
}

.mood-swatch {
    display: block;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    margin: 0 auto 0.9rem;
    box-shadow: 0 4px 14px -4px rgba(43, 22, 14, 0.35);
}

.mood-name {
    font-family: var(--font-heading);
    font-size: 1.05rem;
    font-weight: 500;
    color: var(--espresso);
    margin: 0 0 0.3rem;
}

.mood-hex {
    font-family: 'Courier New', monospace;
    font-size: 0.78rem;
    letter-spacing: 0.03em;
    color: var(--taupe);
    margin: 0 0 0.5rem;
}

.mood-tag {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--taupe);
    font-weight: 600;
    margin: 0 0 0.7rem;
}

.mood-desc {
    font-size: 0.85rem;
    line-height: 1.5;
    color: var(--espresso-soft);
    margin: 0;
}

/* =========================================
   OUTCOMES ROW
   ========================================= */
.outcomes-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-top: 3.5rem;
}

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

.outcome-arrow {
    width: 130px;
    height: 24px;
    flex: none;
    align-self: center;
}

.outcome-arrow svg {
    width: 100%;
    height: 100%;
    display: block;
}

@media (max-width: 768px) {
    .outcome-arrow { transform: rotate(90deg); margin: -0.5rem 0; }
}

/* =========================================
   EXAMPLE BOX (brainmood.php)
   ========================================= */
.example-box {
    background: linear-gradient(135deg, rgba(91, 42, 134, 0.05) 0%, rgba(192, 38, 212, 0.03) 100%);
    border: 1px solid rgba(91, 42, 134, 0.2);
    border-radius: 16px;
    padding: 3rem;
}

.example-title {
    font-family: var(--font-heading);
    font-size: 1.7rem;
    font-weight: 500;
    color: var(--espresso);
    margin: 0.75rem 0 2rem;
    letter-spacing: -0.01em;
}

.example-steps {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 1.75rem;
}

.example-step {
    display: flex;
    align-items: flex-start;
    gap: 1.25rem;
}

.example-num {
    flex: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--violet) 0%, var(--magenta) 100%);
    color: #fff;
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
}

.example-content p {
    color: var(--espresso-soft);
    font-size: 0.95rem;
    line-height: 1.65;
    margin: 0;
}

.example-content strong {
    color: var(--espresso);
}

@media (max-width: 600px) {
    .example-box { padding: 2rem 1.5rem; }
}

/* =========================================
   BOOK LIST (brainmood.php)
   ========================================= */
.book-list {
    list-style: none;
    max-width: 520px;
    margin: 0 auto 0.5rem;
    padding: 0;
    text-align: left;
    display: inline-block;
}

.book-list li {
    position: relative;
    padding-left: 1.4rem;
    margin-bottom: 0.6rem;
    color: var(--espresso-soft);
    font-size: 0.92rem;
    line-height: 1.6;
}

.book-list li:last-child { margin-bottom: 0; }

.book-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.55em;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--violet) 0%, var(--magenta) 100%);
}

/* =========================================
   PRESS ROOM (press.php + /press/*.php)
   ========================================= */
.section-header-row {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1.5rem;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}

.rss-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--violet);
    font-size: 0.9rem;
    font-weight: 500;
    text-decoration: none;
    border: 1px solid var(--border);
    border-radius: 999px;
    padding: 0.55rem 1.1rem;
    transition: var(--transition);
    white-space: nowrap;
}

.rss-link:hover {
    border-color: var(--border-hover);
    background: rgba(91, 42, 134, 0.06);
}

.press-list {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.press-item {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 2rem 2.25rem;
    position: relative;
    overflow: hidden;
    transition: var(--transition);
    backdrop-filter: blur(10px);
}

.press-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, var(--violet) 0%, var(--magenta) 100%);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.press-item:hover {
    border-color: var(--border-hover);
    background: rgba(255, 255, 255, 0.8);
    box-shadow: 0 20px 40px -20px rgba(91, 42, 134, 0.2);
}

.press-item:hover::before { transform: scaleX(1); }

.press-item-meta {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    flex-wrap: wrap;
    margin-bottom: 0.85rem;
    font-size: 0.82rem;
    color: var(--taupe);
}

/* Small colored "logo" per release: which part of the site (or which
   syndicated source, e.g. GCCP) it relates to. Color comes from
   $PRESS_SECTIONS in includes/press_data.php via --badge-color. */
.press-section-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    color: var(--badge-color, var(--taupe));
    border: 1px solid currentColor;
    border-radius: 999px;
    padding: 0.15rem 0.6rem 0.15rem 0.5rem;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    line-height: 1.5;
}

.press-section-badge svg { flex-shrink: 0; }

.press-item-meta time {
    font-weight: 600;
    letter-spacing: 0.02em;
    color: var(--espresso-soft);
}

.press-tag {
    display: inline-block;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--violet);
    background: rgba(91, 42, 134, 0.08);
    border: 1px solid rgba(91, 42, 134, 0.15);
    border-radius: 999px;
    padding: 0.2rem 0.65rem;
}

.press-item-title {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 500;
    line-height: 1.3;
    margin-bottom: 0.6rem;
    letter-spacing: -0.01em;
}

.press-item-title a {
    color: var(--espresso);
    text-decoration: none;
}

.press-item-title a:hover { color: var(--violet); }

.press-item-desc {
    color: var(--espresso-soft);
    font-size: 0.95rem;
    line-height: 1.65;
    margin-bottom: 1rem;
}

.press-item-link {
    color: var(--violet);
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
}

.press-item-link:hover { color: var(--magenta); }

@media (max-width: 600px) {
    .press-item { padding: 1.5rem; }
}

/* ---- Individual press release page ---- */
.press-breadcrumb {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    color: var(--violet);
    font-size: 0.85rem;
    font-weight: 500;
    text-decoration: none;
    margin-bottom: 1.5rem;
}

.press-breadcrumb:hover { color: var(--magenta); }

.press-article-meta {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    margin-bottom: 1rem;
    font-size: 0.85rem;
    color: var(--taupe);
}

.press-article-meta time {
    font-weight: 600;
    color: var(--espresso-soft);
}

.press-article {
    max-width: none;
}

.press-article p {
    color: var(--espresso-soft);
    font-size: 1.05rem;
    line-height: 1.8;
    font-weight: 300;
    margin-bottom: 1.4rem;
}

.press-article p:first-of-type {
    color: var(--espresso);
    font-weight: 400;
}

.press-article h2 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 500;
    color: var(--espresso);
    margin: 2rem 0 1rem;
}

.press-article-contact {
    border-top: 1px solid var(--border);
    margin-top: 2rem;
    padding-top: 1.5rem;
    font-size: 0.9rem;
    color: var(--espresso-soft);
}

.press-article-contact a { color: var(--violet); }

/* =========================================
   FAQ ACCORDION (faqs.php)
   ========================================= */
.faq-category { margin-bottom: 3rem; }
.faq-category:last-child { margin-bottom: 0; }

.faq-category-title {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--espresso);
    margin-bottom: 1.25rem;
    padding-bottom: 0.6rem;
    border-bottom: 1px solid var(--border);
}

.faq-item {
    border: 1px solid var(--border);
    border-radius: 10px;
    background: var(--card-bg);
    margin-bottom: 0.85rem;
    overflow: hidden;
    transition: var(--transition);
}
.faq-item:last-child { margin-bottom: 0; }
.faq-item[open] { border-color: var(--border-hover); }

.faq-question {
    cursor: pointer;
    list-style: none;
    padding: 1.1rem 1.4rem;
    font-family: var(--font-heading);
    font-weight: 500;
    font-size: 1rem;
    color: var(--espresso);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}
.faq-question::-webkit-details-marker { display: none; }
.faq-question::marker { content: ''; }

.faq-question::after {
    content: '+';
    font-size: 1.3rem;
    font-weight: 300;
    color: var(--violet);
    flex-shrink: 0;
    line-height: 1;
    transition: var(--transition);
}
.faq-item[open] .faq-question::after { content: '\2212'; }

.faq-answer {
    padding: 0 1.4rem 1.2rem;
    color: var(--espresso-soft);
    font-size: 0.95rem;
    line-height: 1.65;
}
.faq-answer a { color: var(--violet); text-decoration: underline; }

/* =========================================
   PRINT
   Browsers drop background colors/gradients by default when printing
   (ink-saving). Opt back in so the hero gradients, value-path chevrons
   and badges actually show up on printed pages / PDF export.
   ========================================= */
@media print {
    html {
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }
}
