:root {
    --color-primary: #D95D39;
    --color-primary-hover: #C04926;
    --color-primary-light: #FDEEE9;
    --color-secondary: #334155;
    --color-secondary-hover: #1E293B;
    --color-accent: #4B6B5B;
    --color-accent-hover: #3D584A;
    --color-accent-light: #EEF4F1;
    --color-bg-main: #FAF8F5;
    --color-bg-surface: #FFFFFF;
    --color-bg-subtle: #F2ECE4;
    --color-bg-muted: #ECE5DB;
    --color-text-primary: #181B1E;
    --color-text-secondary: #5F6770;
    --color-text-muted: #8C95A0;
    --color-border-light: #E5DED4;
    --color-border-focus: #D95D39;
    --font-headings: 'Space Grotesk', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background-color: var(--color-bg-main);
    color: var(--color-text-primary);
    margin: 0;
    padding: 0;
    line-height: 1.6;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-headings);
}

.font-mono {
    font-family: var(--font-mono);
}

.text-muted {
    color: #8C95A0 !important;
}

a,
button {
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ===== header ===== */
.header-space-atlas {
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
}

.header-space-atlas .js-mobile-menu {
    border-top: 1px solid #E5DED4;
}

/* ===== hero ===== */
.hero-spatial-section {
    background-image: radial-gradient(#E5DED4 1px, transparent 1px);
    background-size: 24px 24px;
}

.hero-spatial-section .js-mode-toggle {
    cursor: pointer;
    outline: none;
}

.hero-spatial-section .js-mode-toggle:focus-visible {
    ring: 2px solid #D95D39;
}

/* ===== atlas-core ===== */
.core-tradeoffs-section {
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
}

.core-tradeoffs-section h2,
.core-tradeoffs-section h3,
.core-tradeoffs-section h4 {
    font-family: 'Space Grotesk', -apple-system, BlinkMacSystemFont, sans-serif;
}

.core-tradeoffs-section .font-mono {
    font-family: 'JetBrains Mono', monospace;
}

.core-tradeoffs-section .scrollbar-none::-webkit-scrollbar {
    display: none;
}

.core-tradeoffs-section .scrollbar-none {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.core-tradeoffs-section .js-tradeoff-card.is-hidden {
    display: none;
}

.core-tradeoffs-section .js-tradeoff-card {
    will-change: transform, box-shadow;
}

.core-tradeoffs-section .js-tradeoff-card:hover {
    transform: translateY(-4px);
}

/* ===== featured-comparison ===== */
.featured-comparison-block .js-faq-toggle[aria-expanded="true"] i {
    transform: rotate(180deg);
    color: #D95D39;
}

.featured-comparison-block .js-faq-toggle:focus {
    outline: none;
}

/* ===== choose-concern ===== */
.space-concern-section .concern-tab.active {
    background-color: #FFFFFF;
    border-color: #D95D39;
    box-shadow: 0 4px 16px rgba(217, 93, 57, 0.12);
}

.space-concern-section .concern-tab:not(.active) {
    opacity: 0.85;
}

.space-concern-section .concern-tab:not(.active):hover {
    opacity: 1;
    border-color: rgba(217, 93, 57, 0.4);
}

/* ===== contractor-questions ===== */
.contractor-verification-section {
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
}

.contractor-verification-section h2,
.contractor-verification-section h3 {
    font-family: 'Space Grotesk', -apple-system, BlinkMacSystemFont, sans-serif;
}

.contractor-verification-section .js-question-card.is-hidden {
    display: none;
}

.contractor-verification-section .js-filter-btn.active {
    background-color: #D95D39;
    color: #FFFFFF;
    border-color: #D95D39;
}

.contractor-verification-section .js-copy-trigger.copied {
    color: #4B6B5B;
}

/* ===== founder-message ===== */
.founder-message-section {
    box-sizing: border-box;
}

.founder-message-section * {
    box-sizing: border-box;
}

.founder-message-section .founder-image-wrapper img {
    transition: transform 0.5s ease-out;
}

.founder-message-section .founder-image-wrapper:hover img {
    transform: scale(1.03);
}

.founder-message-section .founder-signature-box {
    min-width: 140px;
}

.founder-message-section .founder-drawer-content.is-open {
    display: block;
    animation: founderDrawerFade 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes founderDrawerFade {
    from {
        opacity: 0.2;
        transform: translateY(-4px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== free-audit ===== */
.space-audit-block input::placeholder {
    color: #8C95A0;
    opacity: 1;
}

.space-audit-block input:-ms-input-placeholder {
    color: #8C95A0;
}

.space-audit-block input::-ms-input-placeholder {
    color: #8C95A0;
}

/* ===== numbers ===== */
.stats-compromise-section {
    position: relative;
}

.stats-compromise-section .stat-card {
    box-shadow: 0 2px 12px rgba(24, 27, 30, 0.03);
}

/* ===== footer ===== */
.site-footer {
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
}

.site-footer .font-heading {
    font-family: 'Space Grotesk', -apple-system, BlinkMacSystemFont, sans-serif;
}

.site-footer .font-mono {
    font-family: 'JetBrains Mono', monospace;
}

.site-footer__disclaimer {
    box-shadow: 0 1px 3px rgba(24, 27, 30, 0.02);
}

.site-footer a {
    transition: color 0.2s ease, transform 0.2s ease;
}

/* ===== PAGE: sweet-home-3d ===== */
.sh3d-content-wrapper .js-search-input:focus { border-color: #D95D39; } .sh3d-content-wrapper .js-case-card { will-change: transform, opacity; }

/* ===== PAGE: trade-off-atlas ===== */
.trade-off-atlas-section {
  position: relative;
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
}
.trade-off-atlas-section h1, 
.trade-off-atlas-section h2, 
.trade-off-atlas-section h3 {
  font-family: 'Space Grotesk', -apple-system, BlinkMacSystemFont, sans-serif;
}
.trade-off-atlas-section .js-atlas-card {
  will-change: transform, box-shadow;
}
.trade-off-atlas-section input::placeholder {
  color: #8C95A0;
  opacity: 1;
}
.trade-off-atlas-section .active-filter {
  background-color: #D95D39 !important;
  color: #FFFFFF !important;
  border-color: #D95D39 !important;
}
.trade-off-atlas-section .card-hidden {
  display: none !important;
}

/* ===== PAGE: comparison-cases ===== */
.comparison-cases-section .active-filter {
  background-color: #D95D39 !important;
  color: #FFFFFF !important;
  border-color: #D95D39 !important;
}

.comparison-cases-section .page-num-btn.active-page {
  background-color: #D95D39 !important;
  color: #FFFFFF !important;
  border-color: #D95D39 !important;
}

.comparison-cases-section input::placeholder {
  color: #8C95A0;
  opacity: 1;
}

.comparison-cases-section .js-case-card {
  display: flex;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease, border-color 0.3s ease;
}

.comparison-cases-section .js-case-card:hover {
  transform: translateY(-4px);
}

/* ===== PAGE: about ===== */
.about-compromise-atlas input::placeholder, .about-compromise-atlas textarea::placeholder {
  color: #8C95A0;
  opacity: 1;
}
.about-compromise-atlas .js-tab-btn {
  cursor: pointer;
}
.about-compromise-atlas .js-tab-pane.hidden {
  display: none;
}

/* ===== PAGE: privacy ===== */
.privacy-content-section { font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif; }
.privacy-content-section h1, .privacy-content-section h2, .privacy-content-section h3 { font-family: 'Space Grotesk', -apple-system, BlinkMacSystemFont, sans-serif; }
.privacy-content-section article { scroll-margin-top: 2rem; }

/* ===== PAGE: terms ===== */
.terms-page-section { font-family: 'Plus Jakarta Sans', sans-serif; }
.terms-page-section h1, .terms-page-section h2, .terms-page-section h3 { font-family: 'Space Grotesk', sans-serif; }
.terms-page-section .js-nav-link.active { background-color: #FDEEE9; color: #D95D39; font-weight: 600; border-left: 3px solid #D95D39; padding-left: 0.65rem; }
.terms-page-section .js-terms-card:hover { border-color: rgba(217, 93, 57, 0.4); box-shadow: 0 10px 24px rgba(24, 27, 30, 0.04); }

/* ===== PAGE: disclaimer ===== */
.space-disclaimer { font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif; }
.space-disclaimer h1, .space-disclaimer h2, .space-disclaimer h3 { font-family: 'Space Grotesk', -apple-system, BlinkMacSystemFont, sans-serif; hyphens: auto; }
.space-disclaimer p { hyphens: auto; }

.comment-item {
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
}

.comment-avatar {
    width: 44px;
    height: 44px;
    min-width: 44px;
    min-height: 44px;
    object-fit: cover;
}

.comment-action-btn:focus-visible {
    outline: 2px solid #D95D39;
    outline-offset: 2px;
    border-radius: 4px;
}

.reply-avatar {
    width: 36px;
    height: 36px;
    min-width: 36px;
    min-height: 36px;
    object-fit: cover;
}

.reply-thread::before {
    pointer-events: none;
}

.comment-action-btn:focus-visible {
    outline: 2px solid #D95D39;
    outline-offset: 2px;
    border-radius: 4px;
}


/* ===== PAGE TEMPLATE: atlas-entries ===== */
.header-space-atlas {
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
}

.header-space-atlas .js-mobile-menu {
    border-top: 1px solid #E5DED4;
}

.hero-spatial-section {
    background-image: radial-gradient(#E5DED4 1px, transparent 1px);
    background-size: 24px 24px;
}

.atlas-detail-page .detail-content-area p {
    color: #5F6770;
    line-height: 1.7;
}

.atlas-detail-page .comment-item {
    word-break: break-word;
}

.site-footer {
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
}

.site-footer .font-heading {
    font-family: 'Space Grotesk', -apple-system, BlinkMacSystemFont, sans-serif;
}

.site-footer .font-mono {
    font-family: 'JetBrains Mono', monospace;
}

.site-footer__disclaimer {
    box-shadow: 0 1px 3px rgba(24, 27, 30, 0.02);
}

.site-footer a {
    transition: color 0.2s ease, transform 0.2s ease;
}

/* ===== PAGE TEMPLATE: comparison-entries ===== */
.header-space-atlas {
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
}

.header-space-atlas .js-mobile-menu {
    border-top: 1px solid #E5DED4;
}

.site-footer {
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
}

.site-footer .font-heading {
    font-family: 'Space Grotesk', -apple-system, BlinkMacSystemFont, sans-serif;
}

.site-footer .font-mono {
    font-family: 'JetBrains Mono', monospace;
}

.site-footer__disclaimer {
    box-shadow: 0 1px 3px rgba(24, 27, 30, 0.02);
}

.site-footer a {
    transition: color 0.2s ease, transform 0.2s ease;
}

.comparison-detail-page .comp-hero-section {
    background-image: radial-gradient(#E5DED4 1px, transparent 1px);
    background-size: 24px 24px;
}

.comparison-detail-page .comment-item {
    word-break: break-word;
}

.comparison-detail-page .js-like-btn.is-liked {
    color: #D95D39;
}

.comparison-detail-page .js-like-btn.is-liked i {
    font-weight: 900;
}

.comparison-detail-page .js-view-filter.active {
    background-color: #D95D39;
    color: #FFFFFF;
}