/* ==========================================================================
   SUNDAY 2.0 — EDITORIAL WEBSITE DESIGN SYSTEM
   12-Column Grid System: 36px side margins, 16px gutters
   Typography: Trocchi (Serif Headlines) & Manrope (Sans-Serif Body)
   ========================================================================== */

/* --- CSS RESET & BASE TOKENS --- */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Color System */
    --bg-canvas: #EAE5DB;
    --color-text-main: #252525;
    --color-text-muted: #252525;
    --color-text-subtle: #555555;
    --color-highlight: #FFCC67;
    --color-border: #2C2C2C; /* Divider color #2C2C2C */
    --color-btn-bg: #252525;
    --color-btn-text: #C7C1A4;
    --color-btn-hover: #333333;

    /* Typography */
    --font-serif: 'Trocchi', Georgia, serif;
    --font-sans: 'Manrope', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

    /* Grid Layout Specs */
    --page-margin: 36px;
    --grid-gutter: 16px;
    --container-max-w: 1440px;

    /* Radius & Spacing */
    --radius-pill: 9999px;
    --transition-smooth: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-sans);
    background-color: var(--bg-canvas);
    color: var(--color-text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    color: inherit;
    text-decoration: none;
}

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

/* --- ACCESSIBILITY FOCUS & SKIP LINK --- */
.skip-link {
    position: absolute;
    top: -100px;
    left: var(--page-margin);
    background: var(--color-text-main);
    color: var(--bg-canvas);
    padding: 12px 24px;
    z-index: 1000;
    font-weight: 600;
    border-radius: 4px;
    transition: top 0.2s ease;
}

.skip-link:focus {
    top: 12px;
    outline: 3px solid var(--color-highlight);
}

:focus-visible {
    outline: 2px solid var(--color-text-main);
    outline-offset: 4px;
    border-radius: 2px;
}

/* --- 12-COLUMN CONTAINER & GRID SYSTEM --- */
.container {
    width: 100%;
    max-width: var(--container-max-w);
    margin-left: auto;
    margin-right: auto;
    padding-left: var(--page-margin);
    padding-right: var(--page-margin);
}

.grid-12 {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    column-gap: var(--grid-gutter);
}

.col-span-12 { grid-column: span 12; }
.col-span-10 { grid-column: span 10; }
.col-span-8  { grid-column: span 8; }
.col-span-7  { grid-column: span 7; }
.col-span-6  { grid-column: span 6; }
.col-span-5  { grid-column: span 5; }
.col-span-4  { grid-column: span 4; }
.col-span-3  { grid-column: span 3; }

.col-start-3 { grid-column-start: 3; }
.col-start-4 { grid-column-start: 4; }

/* Combined Grid Placement Shorthand (Prevents grid-column shorthand override) */
.col-start-3.col-span-8, .col-span-8.col-start-3 { grid-column: 3 / span 8 !important; }
.col-start-4.col-span-6, .col-span-6.col-start-4 { grid-column: 4 / span 6 !important; }
.col-start-3.col-span-6, .col-span-6.col-start-3 { grid-column: 3 / span 6 !important; }

/* --- SECTION DIVIDERS (Bounded by 12 Columns, color #2C2C2C) --- */
.grid-divider {
    border: none;
    height: 1px;
    background-color: var(--color-border);
    margin: 0;
    width: 100%;
}

.header-divider {
    margin-top: 0;
}

.footer-divider {
    margin-bottom: 32px;
}

/* --- BUTTONS --- */
/* Single reusable button component — two size variants */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-family: var(--font-serif); /* Trocchi */
    font-weight: 400;
    font-size: 20px;
    height: 64px;
    padding: 0 36px;
    border-radius: var(--radius-pill);
    border: none;
    cursor: pointer;
    text-decoration: none;
    white-space: nowrap;
    background-color: var(--color-btn-bg);
    color: var(--color-btn-text);
    transition: background-color 0.25s ease, color 0.25s ease;
    letter-spacing: 0;
}

.btn:hover {
    background-color: #A59B6C;
    color: var(--color-text-main);
}

/* Small variant */
.btn--sm {
    font-size: 16px;
    height: 48px;
    padding: 0 24px;
}

.btn-apple-icon {
    width: 20px;
    height: 20px;
    fill: currentColor;
    flex-shrink: 0;
    margin-top: -2px;
}

/* --- HEADER / NAVIGATION (Equal Spacing across 12-column width) --- */
.header {
    position: sticky;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background-color: var(--bg-canvas);
}

.nav-container {
    width: 100%;
    height: 80px;
    display: flex;
    align-items: center;
    position: relative;
    z-index: 2;
}

.nav-list {
    display: flex;
    align-items: center;
    justify-content: space-between; /* Equally distributes all 7 items (3 links, logo, 3 links) */
    width: 100%;
    list-style: none;
    padding: 0;
    margin: 0;
}

.nav-item {
    display: flex;
    align-items: center;
}

.nav-item-logo {
    display: flex;
    align-items: center;
    justify-content: center;
}

.brand-logo {
    display: inline-flex;
    align-items: center;
}

.brand-logo-img {
    height: 32px;
    width: auto;
    display: block;
}

.nav-link {
    font-family: var(--font-sans);
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    color: var(--color-text-main);
    opacity: 0.9;
    white-space: nowrap;
    position: relative;
    padding: 2px 4px;
    z-index: 1;
    display: inline-block;
    transition: opacity 0.3s ease;
}

/* Book Highlighter Hover Animation (Left to Right, Ease In-Out) */
.nav-link::before {
    content: '';
    position: absolute;
    top: 15%;
    bottom: 10%;
    left: -2px;
    right: -2px;
    background-color: var(--color-highlight); /* Warm book highlighter yellow #F0DBAF */
    z-index: -1;
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform 0.35s cubic-bezier(0.65, 0, 0.35, 1);
    border-radius: 2px;
}

.nav-link:hover::before,
.nav-link:focus-visible::before {
    transform: scaleX(1);
}

.nav-link:hover, .nav-link.active {
    opacity: 1;
}

/* Mobile Navigation Toggle */
.mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    border-radius: 4px;
}

.mobile-toggle span {
    width: 24px;
    height: 2px;
    background-color: var(--color-text-main);
    border-radius: 2px;
    transition: var(--transition-smooth);
}

.mobile-drawer {
    display: flex;
    flex-direction: column;
    padding: 0;
    background-color: var(--bg-canvas);
    gap: 16px;
    position: relative;
    z-index: 2;
    /* Animate open/close with max-height — pushes single header-divider down */
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.35s ease, opacity 0.3s ease, padding 0.3s ease;
}

.mobile-drawer.open {
    max-height: 480px;
    opacity: 1;
    padding: 16px 0 24px 0;
}

.mobile-link {
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 1px;
    color: var(--color-text-main);
}

/* --- HERO SECTION --- */
.hero-section {
    padding-top: 24px;
    padding-bottom: 48px;
}
.hero-noise-wrapper {
    position: relative;
    line-height: 0;
    overflow: hidden;
    display: block;
}

.blog-inline-cta-wrap {
    margin-top: 48px;
    margin-bottom: 24px;
}

.blog-inline-cta-wrap a {
    text-decoration: none;
}

.hero-image-wrap {
    position: relative;
    width: 100%;
    border-radius: 0px !important;
    overflow: hidden;
}

.hero-image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 0px !important;
    object-fit: cover;
}

.hero-badge-overlay {
    position: absolute;
    bottom: 36px;
    left: 36px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    z-index: 10;
    max-width: 480px;
}

.hero-highlight-box {
    background-color: transparent;
    padding: 0;
    border-radius: 0;
    box-shadow: none;
}

.hero-title {
    font-family: var(--font-serif);
    font-size: clamp(28px, 4vw, 40px);
    font-weight: 400;
    line-height: 1.3;
    color: var(--color-text-main);
}

.hero-subtitle {
    font-family: var(--font-sans);
    font-size: clamp(14px, 2vw, 16px);
    font-weight: 500;
    color: var(--color-text-main);
    margin-top: 12px;
    margin-bottom: 0;
    line-height: 1.4;
    max-width: 95%;
}

.hero-highlight-line {
    display: inline;
    background-image: linear-gradient(var(--color-highlight), var(--color-highlight));
    background-size: 0% 100%;
    background-repeat: no-repeat;
    background-position: left center;
    box-decoration-break: clone;
    -webkit-box-decoration-break: clone;
    padding: 2px 4px;
    margin-bottom: 0;
}

.hero-highlight-line.line-1 {
    animation: highlightBg 0.55s cubic-bezier(0.65, 0, 0.35, 1) 0.3s forwards;
}

.hero-highlight-line.line-2 {
    animation: highlightBg 0.55s cubic-bezier(0.65, 0, 0.35, 1) 0.85s forwards;
}

@keyframes highlightBg {
    from { background-size: 0% 100%; }
    to { background-size: 100% 100%; }
}

/* Intro Text: 18pt, medium weight (500), 30px line height */
.hero-lead-text {
    width: 100%;
    margin-top: 24px;
    text-align: left;
}

.hero-lead-text p {
    font-family: var(--font-sans);
    font-size: 20px;
    line-height: 32px;
    font-weight: 500;
    color: var(--color-text-main);
    text-align: left;
}

/* --- IMAGE FRAMES FOR CARDS --- */
.img-frame {
    width: 100%;
    overflow: hidden;
    background-color: #DFD8CC;
}

.card-img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

.sharp-img {
    border-radius: 0px !important;
}

/* --- HOW IT WORKS SECTION --- */
.how-it-works-section {
    padding: 40px 0;
}

.section-header-row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-bottom: 36px;
}

.section-heading {
    font-family: var(--font-serif);
    font-size: 32px;
    font-weight: 400;
    color: var(--color-text-main);
    margin-bottom: 0;
}

.section-tagline {
    font-family: var(--font-sans);
    font-size: 16px;
    font-weight: 500;
    color: #585858;
}

.how-grid {
    align-items: stretch;
    row-gap: 32px;
}

.how-card {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.how-card .feature-card-media {
    height: 640px;
    aspect-ratio: unset;
}

.how-card-content {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.how-card-title {
    font-family: var(--font-serif);
    font-size: 24px;
    font-weight: 400;
    color: var(--color-text-main);
    margin-bottom: 8px;
}

.how-card-desc {
    font-family: var(--font-sans);
    font-size: 16px;
    font-weight: 500;
    line-height: 1.6;
    color: var(--color-text-muted);
    flex-grow: 1;
    margin-bottom: 24px;
}

.how-card-divider {
    border: none;
    border-top: 1px solid var(--color-border);
    margin-top: auto;
    width: 100%;
}

/* --- FEATURE BANNER SECTION --- */
.feature-banner-section {
    padding: 40px 0;
}

/* --- REUSABLE FEATURE SPLIT CARD COMPONENT --- */
.feature-split-card {
    position: relative;
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    column-gap: 0; /* Seamless transition: 0px gap between text and image */
    width: 100%;
    align-items: stretch;
    background-color: #E5E1CB;
    overflow: hidden;
}

/* Paper Grain Noise Texture Overlay for Featured Split Cards */
.feature-split-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('assets/noise-texture.png');
    background-repeat: repeat;
    background-size: 180px 180px;
    opacity: 0.28;
    mix-blend-mode: multiply;
    pointer-events: none;
    z-index: 1;
}

/* Default Variant: Text Card on Left (4 cols), Image on Right (8 cols) */
.feature-split-card .card-text-col {
    position: relative;
    z-index: 2;
    grid-column: span 4;
    background-color: transparent;
    padding: 24px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
}

.feature-split-card .card-img-col {
    position: relative;
    z-index: 2;
    grid-column: span 8;
    display: flex;
    overflow: hidden;
}

.feature-split-card .card-img-col .card-img {
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    display: block;
}

/* Inverted Variant: Image on Left (8 cols), Text Card on Right (4 cols) */
.feature-split-card--inverted .card-img-col {
    grid-column: span 8;
    order: 1;
}

.feature-split-card--inverted .card-text-col {
    grid-column: span 4;
    order: 2;
}

.banner-heading {
    font-family: var(--font-serif);
    font-size: 28px;
    font-weight: 400;
    line-height: 1.25;
    color: var(--color-text-main);
    margin-bottom: 24px;
}

.banner-desc {
    font-family: var(--font-sans);
    font-size: 16px;
    font-weight: 500;
    line-height: 1.6;
    color: var(--color-text-main);
    margin-top: auto;
}

/* --- FEATURES GRID SECTION (6 CARDS) --- */
.features-grid-section {
    padding: 40px 0;
}

.features-grid {
    align-items: stretch;
    row-gap: 48px;
}

.feature-card {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.feature-card-content {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.feature-card-title {
    font-family: var(--font-serif);
    font-size: 24px;
    font-weight: 400;
    line-height: 1.25;
    color: var(--color-text-main);
    margin-bottom: 10px;
}

.feature-card-desc {
    font-family: var(--font-sans);
    font-size: 16px;
    font-weight: 500;
    line-height: 1.6;
    color: var(--color-text-main);
    flex-grow: 1;
    margin-bottom: 24px;
}

.feature-card-divider {
    border: none;
    border-top: 1px solid var(--color-border);
    margin-top: auto;
    width: 100%;
}

.feature-card-media {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    background-color: #E5E1CB;
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
    box-sizing: border-box;
    overflow: hidden;
}

/* High-Resolution Paper Grain Noise Texture File Overlay */
.feature-card-media::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('assets/noise-texture.png');
    background-repeat: repeat;
    background-size: 180px 180px;
    opacity: 0.28;
    mix-blend-mode: multiply;
    pointer-events: none;
    z-index: 1;
}

/* Variant 1: Mockup cut off at the BOTTOM (flush to bottom edge) */
.feature-card-media--cut-bottom {
    padding: 36px 36px 0 36px;
    align-items: flex-end;
}

.feature-card-media--cut-bottom .feature-card-mockup {
    max-width: 84%;
    width: auto;
    height: auto;
    max-height: 100%;
    display: block;
    object-fit: contain;
    object-position: bottom center;
    position: relative;
    z-index: 2;
}

/* Variant 2: Mockup cut off at the TOP (flush to top edge) */
.feature-card-media--cut-top {
    padding: 0 36px 36px 36px;
    align-items: flex-start;
}

.feature-card-media--cut-top .feature-card-mockup {
    max-width: 84%;
    width: auto;
    height: auto;
    max-height: 100%;
    display: block;
    object-fit: contain;
    object-position: top center;
    position: relative;
    z-index: 2;
}

.feature-card-title {
    font-family: var(--font-serif);
    font-size: 24px;
    font-weight: 400;
    line-height: 1.25;
    color: var(--color-text-main);
    margin-bottom: 10px;
}

.feature-card-desc {
    font-family: var(--font-sans);
    font-size: 16px;
    font-weight: 500;
    line-height: 1.6;
    color: var(--color-text-main);
    margin-bottom: 24px;
}

.feature-card-divider {
    border: none;
    border-top: 1px solid var(--color-border);
    margin: 0;
    width: 100%;
}

/* --- QUOTE SECTION --- */
.quote-section {
    padding: 0 0 40px;
}

.quote-two-col {
    align-items: center;
    row-gap: 36px;
}

.featured-quote {
    font-family: var(--font-sans);
    font-size: 16px;
    font-weight: 500;
    line-height: 1.6;
    color: var(--color-text-main);
    margin-bottom: auto;
}

.author-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-top: 32px;
}

.author-name {
    font-family: var(--font-serif);
    font-size: 28px;
    font-weight: 400;
    font-style: normal;
    color: var(--color-text-main);
}

.author-title {
    font-family: var(--font-sans);
    font-size: 16px;
    font-weight: 500;
    color: var(--color-text-muted);
}

/* --- CTA SECTION --- */
.cta-section {
    padding: 40px 0 40px;
    text-align: left;
}

.cta-heading {
    font-family: var(--font-serif);
    font-size: clamp(28px, 4vw, 40px);
    font-weight: 400;
    line-height: 1.15;
    color: var(--color-text-main);
    margin-bottom: 24px;
}

/* Footer CTA Title Yellow Book Quote Highlighter */
.cta-highlight-line {
    display: inline;
    background-image: linear-gradient(var(--color-highlight), var(--color-highlight));
    background-size: 0% 100%;
    background-repeat: no-repeat;
    background-position: left center;
    box-decoration-break: clone;
    -webkit-box-decoration-break: clone;
    padding: 0 4px;
}

.cta-section.is-revealed .cta-highlight-line.line-1 {
    animation: highlightBg 0.75s cubic-bezier(0.65, 0, 0.35, 1) 0.25s forwards;
}

.cta-section.is-revealed .cta-highlight-line.line-2 {
    animation: highlightBg 0.75s cubic-bezier(0.65, 0, 0.35, 1) 0.75s forwards;
}

/* --- SCROLL REVEAL & STAGGERED MOVE-UP ANIMATIONS --- */
.reveal-item {
    opacity: 0;
    transform: translateY(36px);
    transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: opacity, transform;
}

.reveal-item.is-revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Staggered entry: Left element moves up first, then right element */
.grid-12 > .reveal-item:nth-child(1),
.grid-12 > .reveal-item:nth-child(odd) {
    transition-delay: 0s;
}

.grid-12 > .reveal-item:nth-child(2),
.grid-12 > .reveal-item:nth-child(even) {
    transition-delay: 0.18s;
}

.grid-12 > .reveal-item:nth-child(3) {
    transition-delay: 0.36s;
}

.cta-sub {
    font-family: var(--font-sans);
    font-size: 24px;
    font-weight: 500;
    line-height: 1.45;
    color: var(--color-text-muted);
    margin-bottom: 24px;
    max-width: 680px;
}

/* --- FOOTER --- */
.footer {
    padding: 0 0 40px;
}

.footer-divider {
    margin-top: 0;
    margin-bottom: 40px;
}

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

.footer-right {
    display: flex;
    align-items: center;
    gap: 28px;
    flex-wrap: wrap;
}

.footer-link {
    font-size: 11.5px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--color-text-muted);
    position: relative;
    padding: 2px 4px;
    z-index: 1;
    display: inline-block;
    transition: color 0.3s ease;
}

.footer-link::before {
    content: '';
    position: absolute;
    top: 15%;
    bottom: 10%;
    left: -2px;
    right: -2px;
    background-color: var(--color-highlight);
    z-index: -1;
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform 0.35s cubic-bezier(0.65, 0, 0.35, 1);
    border-radius: 2px;
}

.footer-link:hover::before,
.footer-link:focus-visible::before {
    transform: scaleX(1);
}

.footer-link:hover,
.footer-link.active {
    color: var(--color-text-main);
}

/* --- RESPONSIVE MEDIA QUERIES --- */
@media (max-width: 1024px) {
    .nav-link:not(.brand-logo):not(.nav-cta) {
        font-size: 11px;
    }
    .hero-lead-text p {
        font-size: 16pt;
        line-height: 26px;
    }
    .how-card-desc, .banner-desc, .feature-card-desc, .cta-sub {
        font-size: 14pt;
    }
}

@media (max-width: 880px) {
    :root {
        --page-margin: 16px; /* 16px left and right page margin on mobile */
    }
    
    /* Override grid offsets on mobile so content articles span full width */
    .content-article > * {
        grid-column: 1 / -1 !important;
    }
    
    /* Reduce space between navigation and title on mobile content pages */
    .content-hero {
        padding-top: 0 !important;
    }
    
    /* Stack roadmap header: tag chip first, then title, left-aligned */
    .roadmap-card-header {
        flex-direction: column-reverse !important;
        align-items: flex-start !important;
        text-align: left !important;
        gap: 12px;
    }
    
    .nav-list {
        display: none;
    }
    /* Mobile top bar: logo on left, hamburger on right */
    .nav-container {
        display: flex;
        align-items: center;
        justify-content: space-between;
    }
    .mobile-logo {
        display: block !important;
    }
    .mobile-toggle {
        display: flex;
    }
    /* Match footer link font size with mobile drawer links */
    .footer-link {
        font-size: 14px;
    }
    /* Small buttons on mobile (height: 48px, font-size: 16px) */
    .btn:not(.btn--sm) {
        font-size: 16px;
        height: 48px;
        padding: 0 24px;
    }
    /* Feature split card: stack vertically — text on top, image below */
    .feature-split-card {
        grid-template-columns: 1fr;
    }
    
    /* Hide the 'Timeless words...' tagline on mobile to save vertical space */
    .section-tagline {
        display: none;
    }
    .feature-split-card .card-text-col,
    .feature-split-card .card-img-col,
    .feature-split-card--inverted .card-text-col,
    .feature-split-card--inverted .card-img-col {
        grid-column: span 1;
    }
    /* Text always comes first, image always second regardless of inverted variant */
    .feature-split-card .card-text-col,
    .feature-split-card--inverted .card-text-col {
        order: 1;
    }
    .feature-split-card .card-img-col,
    .feature-split-card--inverted .card-img-col {
        order: 2;
    }
    /* Content pages span full width on mobile with 16px page margins */
    .col-span-12, .col-span-10, .col-span-8, .col-span-7,
    .col-span-6, .col-span-5, .col-span-4, .col-span-3,
    .col-start-3.col-span-8, .col-span-8.col-start-3,
    .col-start-4.col-span-6, .col-span-6.col-start-4,
    .col-start-3.col-span-6, .col-span-6.col-start-3,
    .content-hero, .content-prose-text, .prose-text-wrapper, .roadmap-list {
        grid-column: 1 / -1 !important;
    }
    .col-start-3, .col-start-4 {
        grid-column-start: auto !important;
    }
    .hero-image-wrap {
        display: flex;
        flex-direction: column;
    }
    .hero-badge-overlay {
        position: relative;
        left: auto;
        bottom: auto;
        right: auto;
        max-width: none;
        margin-top: 16px;
    }
    .footer-container {
        flex-direction: column;
        align-items: flex-start;
        gap: 24px;
    }
    /* Footer menu vertically arranged on top of each other */
    .footer-right {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
        width: 100%;
    }
    /* Section header mobile: title 2 points smaller, subheader stacked underneath left-aligned */
    .section-header-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
        margin-bottom: 24px;
    }
    .section-heading {
        font-size: 28px;
    }
    .section-tagline {
        text-align: left;
    }
    /* How it works cards on mobile: scale down height from 640px to 380px */
    .how-card .feature-card-media {
        height: 380px;
    }
    .feature-card-media--cut-bottom {
        padding: 24px 24px 0 24px;
    }
    .feature-card-media--cut-top {
        padding: 0 24px 24px 24px;
    }
    /* Space above feature banner card on mobile: 32px */
    .how-it-works-section {
        padding-bottom: 0;
    }
    .feature-banner-section {
        padding-top: 32px;
        padding-bottom: 32px;
    }
}

/* ==========================================================================
   CONTENT PAGE TEMPLATE STYLES (ABOUT, PRIVACY, BLOG, ETC.)
   ========================================================================== */

.content-page {
    padding-top: 40px;
}

.content-article {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    column-gap: var(--grid-gutter);
    row-gap: 24px; /* 24px vertical spacing between sections and images */
    width: 100%;
    padding-bottom: 60px;
}

.content-hero,
.prose-text-wrapper {
    width: 100%;
    font-family: var(--font-sans);
    font-size: 16px;
    line-height: 1.65;
    color: var(--color-text-main);
}

.content-hero {
    padding-top: 20px;
    padding-bottom: 0;
}

.content-title {
    font-family: var(--font-serif);
    font-size: clamp(36px, 5vw, 52px);
    font-weight: 400;
    line-height: 1.15;
    color: var(--color-text-main);
    margin-bottom: 16px; /* Exactly 16px space between title and sub-header */
}

.prose-kicker {
    font-family: var(--font-sans);
    font-size: 16px;
    font-weight: 600;
    color: var(--color-text-main);
    margin-bottom: 0; /* Spacing is handled by the divider below */
}

.prose-header-divider {
    border: none;
    height: 1px;
    background-color: var(--color-border);
    width: 100%; /* Snaps to the 6 columns width of the header container */
    margin: 24px 0 24px 0; /* Perfectly equal space above and below the divider */
}

.content-prose-text p,
.prose-text-wrapper p {
    margin-bottom: 24px;
}

.content-prose-text p:last-child,
.prose-text-wrapper p:last-child {
    margin-bottom: 0;
}

.content-prose-text h2,
.prose-text-wrapper h2 {
    font-family: var(--font-serif);
    font-size: 24px; /* Trocchi 24px */
    font-weight: 400;
    line-height: 1.3;
    color: var(--color-text-main);
    margin-top: 36px;
    margin-bottom: 16px;
}

.content-prose-text h2:first-child,
.prose-text-wrapper h2:first-child {
    margin-top: 0;
}

.release-header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-bottom: 12px;
}

.release-header h2 {
    margin-top: 0;
    margin-bottom: 0;
}

.release-date {
    font-family: var(--font-sans);
    font-size: 14px;
    font-weight: 500;
    color: var(--color-text-muted);
}

/* ==========================================================================
   ROADMAP COMPONENT STYLES
   ========================================================================== */

.roadmap-hero-top {
    display: flex;
    align-items: center; /* Vertically centers button with the full title+kicker block */
    justify-content: space-between;
    gap: 24px;
}

.roadmap-hero-text {
    flex: 1;
    min-width: 0;
}

/* suggest-feature-link inherits .btn .btn--sm — only layout override here */
.suggest-feature-link {
    flex-shrink: 0;
}

.roadmap-list {
    display: flex;
    flex-direction: column;
    gap: 24px;
    width: 100%;
}

.roadmap-card {
    background-color: rgba(229, 225, 203, 0.45);
    border: 1px solid rgba(44, 44, 44, 0.5);
    border-radius: 12px;
    padding: 28px 32px;
    position: relative;
    overflow: hidden;
}

.roadmap-card::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('assets/noise-texture.png');
    background-repeat: repeat;
    background-size: 180px 180px;
    opacity: 0.28;
    mix-blend-mode: multiply;
    pointer-events: none;
    z-index: 0;
}

.roadmap-card > * {
    position: relative;
    z-index: 1;
}

/* Hover elevation removed per design spec */

.roadmap-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 12px;
}

.roadmap-status {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-sans);
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    padding: 4px 12px;
    border-radius: 20px;
    white-space: nowrap;
    flex-shrink: 0;
}

.status-in-progress {
    background-color: rgba(46, 125, 50, 0.12);
    color: #1B5E20;
}

.status-in-progress::before {
    content: "";
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background-color: #2E7D32;
    display: inline-block;
}

.status-up-next {
    background-color: rgba(230, 81, 0, 0.12);
    color: #E65100;
}

.status-up-next::before {
    content: "";
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background-color: #F57C00;
    display: inline-block;
}

.status-exploring {
    background-color: rgba(100, 116, 139, 0.12);
    color: #475569;
}

.status-exploring::before {
    content: "";
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background-color: #64748B;
    display: inline-block;
}

.roadmap-card-title {
    font-family: var(--font-serif);
    font-size: 24px;
    font-weight: 400;
    line-height: 1.3;
    color: var(--color-text-main);
    margin: 0;
}

.roadmap-card-desc {
    font-family: var(--font-sans);
    font-size: 16px;
    line-height: 1.65;
    color: var(--color-text-main);
    margin-bottom: 20px !important;
}

.roadmap-card-footer {
    padding-top: 16px;
    border-top: 1px solid rgba(44, 44, 44, 0.12);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.btn-vote {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-sans);
    font-size: 13px;
    font-weight: 600;
    color: var(--color-text-main);
    background-color: rgba(28, 25, 23, 0.05);
    border: 1px solid var(--color-border);
    padding: 8px 16px;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    outline: none;
}

.btn-vote:hover {
    background-color: rgba(28, 25, 23, 0.1);
    transform: translateY(-1px);
}

.btn-vote .vote-icon {
    width: 15px;
    height: 15px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    transition: transform 0.25s ease, fill 0.25s ease;
}

.btn-vote:hover .vote-icon {
    transform: scale(1.15);
}

.btn-vote.voted {
    background-color: #1C1917;
    color: #E5E1CB;
    border-color: #1C1917;
}

.btn-vote.voted .vote-icon {
    fill: #E5E1CB;
    stroke: #E5E1CB;
}

.roadmap-feedback-link {
    font-family: var(--font-sans);
    font-size: 14px;
    font-weight: 600;
    color: var(--color-text-main);
    text-decoration: none;
    position: relative;
    padding: 2px 4px;
    z-index: 1;
    display: inline-block;
    transition: color 0.3s ease;
}

.roadmap-feedback-link::before {
    content: '';
    position: absolute;
    top: 15%;
    bottom: 10%;
    left: -2px;
    right: -2px;
    background-color: var(--color-highlight);
    z-index: -1;
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform 0.35s cubic-bezier(0.65, 0, 0.35, 1);
    border-radius: 2px;
}

.roadmap-feedback-link:hover::before,
.roadmap-feedback-link:focus-visible::before {
    transform: scaleX(1);
}

.roadmap-feedback-link:hover {
    color: var(--color-text-main);
    transform: none;
}

/* ==========================================================================
   FEEDBACK FORM STYLES
   ========================================================================== */

.feedback-form {
    margin-top: 16px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-label {
    font-family: var(--font-sans);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--color-text-main);
}

.form-control {
    font-family: var(--font-sans);
    font-size: 16px;
    color: var(--color-text-main);
    background-color: rgba(255, 255, 255, 0.45);
    border: 1px solid rgba(44, 44, 44, 0.4);
    border-radius: 12px;
    padding: 14px 18px;
    transition: border-color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
    outline: none;
}

.form-select {
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%231C1917' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 18px center;
    padding-right: 48px;
    cursor: pointer;
}

.form-control:focus {
    background-color: #FFFFFF;
    border-color: #1C1917;
    box-shadow: 0 0 0 3px rgba(28, 25, 23, 0.1);
}

.form-textarea {
    resize: vertical;
    min-height: 140px;
    line-height: 1.6;
}

.btn-submit {
    gap: 10px;
    height: 52px;
    padding: 0 32px;
    border-radius: 26px;
    font-size: 16px;
    font-family: var(--font-serif);
    font-weight: 400;
}

.thankyou-gif-box {
    width: 100%;
    height: 320px;
    background-color: #232323;
    border-radius: 0;
    overflow: hidden;
    margin-top: 16px;
    margin-bottom: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.thankyou-gif {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.thankyou-content-text {
    width: 100%;
    font-family: var(--font-sans);
    font-size: 16px;
    line-height: 1.6;
    color: var(--color-text-main);
}

.thankyou-title {
    font-family: var(--font-serif);
    font-size: 28px;
    font-weight: 400;
    color: var(--color-text-main);
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.thankyou-check {
    font-family: var(--font-sans);
    font-size: 22px;
    font-weight: 700;
}

.prose-image-wrap {
    width: 100%; /* Spans full 8 columns width of container */
    margin: 0;
    overflow: hidden;
}

.prose-img {
    width: 100%;
    height: auto;
    max-height: 420px;
    object-fit: cover;
    display: block;
}

.content-prose h3 {
    font-family: var(--font-serif);
    font-size: 24px;
    font-weight: 400;
    color: var(--color-text-main);
    margin-top: 36px;
    margin-bottom: 16px;
}

.prose-divider {
    border: none;
    border-top: 1px solid var(--color-border);
    margin: 40px 0;
}

.principles-list {
    list-style: none;
    padding-left: 0;
    margin: 28px 0 36px;
}

.principles-list li {
    position: relative;
    padding-left: 28px;
    margin-bottom: 16px;
    line-height: 1.65;
}

.principles-list li::before {
    content: "—";
    position: absolute;
    left: 0;
    color: var(--color-text-muted);
    font-weight: 600;
}

.author-signature-card {
    background-color: #E5E1CB;
    position: relative;
    padding: 32px 36px;
    margin-top: 48px;
    border-radius: 0;
    overflow: hidden;
}

.author-signature-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('assets/noise-texture.png');
    background-repeat: repeat;
    background-size: 180px 180px;
    opacity: 0.28;
    mix-blend-mode: multiply;
    pointer-events: none;
    z-index: 1;
}

.author-signature-card p {
    position: relative;
    z-index: 2;
}

.signature-tagline {
    font-family: var(--font-serif);
    font-size: 22px;
    font-weight: 400;
    color: var(--color-text-main);
    margin-bottom: 8px !important;
}

.signature-author {
    font-family: var(--font-sans);
    font-size: 16px;
    font-weight: 500;
    color: var(--color-text-muted);
    margin-bottom: 0 !important;
}

/* ==========================================================================
   BLOG PAGE STYLES
   ========================================================================== */

.blog-page {
    padding-bottom: 0;
}

/* Page title — full width, left-aligned, no kicker/divider */
.blog-page-header {
    padding-top: 48px;
    padding-bottom: 40px;
}

.blog-page-title {
    font-family: var(--font-serif);
    font-size: clamp(36px, 4vw, 52px);
    font-weight: 400;
    color: var(--color-text-main);
    margin: 0;
}

/* Blog grid — 3 columns, cards stretch to equal height in each row */
.blog-grid {
    row-gap: 0;
    column-gap: 24px;
    align-items: stretch;
}

/* Article card */
.blog-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding-bottom: 0;
}

.blog-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
    flex-grow: 1;
}

/* Image — 4:3 aspect ratio */
.blog-card-image-wrap {
    aspect-ratio: 4 / 3;
    overflow: hidden;
    border-radius: 4px;
    background-color: rgba(44, 44, 44, 0.06);
    margin-bottom: 40px;
}

.blog-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    /* Lazy load fade-in + slow 5% zoom on hover */
    opacity: 0;
    transition: opacity 0.5s ease, transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.blog-card-img.loaded {
    opacity: 1;
}

.blog-card-link:hover .blog-card-img {
    transform: scale(1.05); /* Slowly zoom in 5% */
}

/* 40px gap moved to image-wrap - 22px Trocchi font (2 points smaller) */
.blog-card-title {
    font-family: var(--font-serif);
    font-size: 22px;
    font-weight: 400;
    line-height: 1.3;
    color: #252525;
    margin: 0;
    display: inline;
    background-image: linear-gradient(var(--color-highlight), var(--color-highlight));
    background-size: 0% 100%;
    background-repeat: no-repeat;
    background-position: left center;
    box-decoration-break: clone;
    -webkit-box-decoration-break: clone;
    padding: 2px 4px;
    transition: background-size 0.35s cubic-bezier(0.65, 0, 0.35, 1);
}

.blog-card-link:hover .blog-card-title {
    background-size: 100% 100%;
}

/* 16px gap between title and excerpt */
.blog-card-excerpt {
    font-family: var(--font-sans);
    font-size: 20px;
    line-height: 1.55;
    color: #252525;
    margin: 16px 0 0 0;
}

/* 16px gap between excerpt and date, 40px gap between date and divider */
.blog-card-date {
    display: block;
    font-family: var(--font-sans);
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.5px;
    color: #5F5F5F;
    margin-top: 16px;
    margin-bottom: 40px;
    text-transform: uppercase;
}

/* Divider aligns across cards to the bottom of the tallest content block in the row */
.blog-card-divider {
    border: none;
    border-top: 1px solid var(--color-border);
    margin-top: auto;
    margin-bottom: 64px;
    width: 100%;
}

/* Load more button — centered below the grid */
.blog-load-more {
    display: flex;
    justify-content: center;
    padding: 0 0 80px 0;
}

/* Mobile — single column */
@media (max-width: 880px) {
    .blog-grid .blog-card {
        grid-column: span 12;
    }
    .blog-page-header {
        padding-top: 32px;
        padding-bottom: 28px;
    }
}

/* ==========================================================================
   SINGLE BLOG ARTICLE PAGE STYLES
   ========================================================================== */

/* Breadcrumb navigation above article title */
.blog-breadcrumb {
    font-family: var(--font-sans);
    font-size: 13px;
    font-weight: 500;
    color: #5F5F5F;
    margin-bottom: 12px;
}

.blog-breadcrumb a {
    color: #5F5F5F;
    text-decoration: none;
    transition: opacity 0.2s ease;
}

.blog-breadcrumb a:hover {
    opacity: 0.7;
}

.breadcrumb-sep {
    margin: 0 4px;
    color: #8E8E8E;
}

.blog-post-date {
    display: block;
    font-family: var(--font-sans);
    font-size: 13px;
    font-weight: 500;
    color: #5F5F5F;
    margin-top: 12px;
    margin-bottom: 40px;
}

/* Feature Cover Image */
.blog-post-cover-wrap {
    width: 100%;
    margin-top: 24px;
    margin-bottom: 40px;
    overflow: hidden;
    border-radius: 4px;
}

.blog-post-cover-img {
    width: 100%;
    height: auto;
    max-height: 480px;
    object-fit: cover;
    display: block;
}

/* Article Body Typography */
.blog-article-body {
    font-family: var(--font-sans);
    font-size: 16px;
    line-height: 1.7;
    color: #252525;
}

.blog-lead-text {
    font-size: 18px;
    line-height: 1.65;
    color: #252525;
    margin-bottom: 32px;
}

.blog-prose-divider {
    border: none;
    border-top: 1px solid var(--color-border);
    margin: 32px 0;
    width: 100%;
}

/* Table of Contents */
.blog-toc-box {
    padding: 8px 0;
}

.blog-toc-heading {
    font-family: var(--font-sans);
    font-size: 16px;
    font-weight: 400;
    color: #252525;
    margin-bottom: 16px;
}

.blog-toc-heading .toc-bold {
    font-family: var(--font-serif);
    font-weight: 700;
}

.blog-toc-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
    font-family: var(--font-sans);
    font-size: 15px;
    color: #252525;
}

.blog-toc-list li a {
    color: #252525;
    text-decoration: none;
    transition: opacity 0.2s ease;
}

.blog-toc-list li a:hover {
    opacity: 0.7;
}

.toc-num {
    font-weight: 500;
}

.toc-dash {
    margin: 0 4px;
    color: #5F5F5F;
}

/* Blog Article Sections */
.blog-section {
    margin-bottom: 40px;
}

.blog-heading {
    font-family: var(--font-serif);
    font-size: 26px;
    font-weight: 400;
    color: #252525;
    margin-top: 40px;
    margin-bottom: 16px;
}

.blog-section p {
    margin-bottom: 20px;
}

/* Principles Bulleted List */
.blog-principles-list {
    margin: 20px 0 32px 0;
    padding-left: 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    font-family: var(--font-sans);
    font-size: 16px;
    line-height: 1.65;
    color: #252525;
}

.blog-principles-list li strong {
    font-weight: 600;
    color: #252525;
}

/* Inline Illustration Image */
.blog-inline-img-wrap {
    width: 100%;
    margin: 40px 0;
    overflow: hidden;
    border-radius: 4px;
}

.blog-inline-img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

/* Author Signature Box */
.blog-author-signature {
    margin-top: 48px;
    margin-bottom: 32px;
}

.blog-author-signature .author-name {
    font-family: var(--font-serif);
    font-size: 22px;
    font-weight: 700;
    color: #252525;
    margin-bottom: 4px;
}

.blog-author-signature .author-role {
    font-family: var(--font-sans);
    font-size: 14px;
    font-weight: 500;
    color: #5F5F5F;
    margin: 0;
}

/* Privacy Page Specific Styles */
.privacy-section {
    margin-bottom: 32px;
}

.privacy-subheading {
    font-family: var(--font-sans);
    font-size: 17px;
    font-weight: 600;
    color: var(--color-text-main);
    margin-top: 24px;
    margin-bottom: 12px;
}

.content-prose-text a {
    color: var(--color-text-main);
    text-decoration: underline;
    text-underline-offset: 3px;
    transition: opacity 0.2s ease;
}

.content-prose-text a:hover {
    opacity: 0.7;
}

/* Newsletter Signup Component */
.blog-newsletter-box {
    background-color: #E5E1CB;
    border-radius: 12px;
    padding: 32px 28px;
    margin: 40px 0 24px 0;
    position: relative;
}

.blog-newsletter-box::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('assets/noise-texture.png');
    background-repeat: repeat;
    background-size: 180px 180px;
    opacity: 0.28;
    mix-blend-mode: multiply;
    pointer-events: none;
    border-radius: 12px;
}

.newsletter-title {
    font-family: var(--font-serif);
    font-size: 22px;
    font-weight: 400;
    color: var(--color-text-main);
    margin-bottom: 8px;
    position: relative;
    z-index: 2;
}

.newsletter-desc {
    font-family: var(--font-sans);
    font-size: 15px;
    line-height: 1.55;
    color: var(--color-text-muted);
    margin-bottom: 20px;
    position: relative;
    z-index: 2;
}

.newsletter-form {
    position: relative;
    z-index: 2;
}

.newsletter-form-group {
    display: flex;
    gap: 12px;
    align-items: center;
}

.newsletter-input {
    flex: 1;
    height: 48px;
    border-radius: var(--radius-pill);
    border: 1px solid var(--color-border);
    padding: 0 20px;
    font-family: var(--font-sans);
    font-size: 15px;
    background-color: var(--bg-canvas);
    color: var(--color-text-main);
}

.newsletter-input:focus {
    outline: none;
    border-color: var(--color-text-main);
}

@media (max-width: 600px) {
    .newsletter-form-group {
        flex-direction: column;
        align-items: stretch;
    }
    .newsletter-btn {
        width: 100%;
    }
}

@media (max-width: 880px) {
    .roadmap-hero-top {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }
}



