:root {
    --color-primary: #0F766E;
    --color-secondary: #0284C7;
    --color-accent: #F59E0B;
    --color-success: #10B981;
    --color-error: #EF4444;
    --color-bg-primary: #F8FAFC;
    --color-bg-secondary: #F1F5F9;
    --color-bg-card: #FFFFFF;
    --color-text-primary: #0F172A;
    --color-text-secondary: #475569;
    --color-text-muted: #64748B;
    --color-border-light: #E2E8F0;
    --color-border-focus: #0F766E;
    --font-heading: 'Plus Jakarta Sans', sans-serif;
    --font-body: 'Inter', sans-serif;
}

body {
    font-family: var(--font-body);
    background-color: var(--color-bg-primary);
    color: var(--color-text-primary);
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

.text-muted {
    color: #64748B !important;
}

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

.smooth-scroll {
    scroll-behavior: smooth;
}

/* ===== header ===== */
.header-block {
    font-family: 'Inter', sans-serif;
    background-color: #FFFFFF;
}

.header-block .font-sans {
    font-family: 'Plus Jakarta Sans', sans-serif;
}

.header-block nav a {
    white-space: nowrap;
}

.header-block .hidden.lg\:flex.items-center.space-x-8 {
    gap: 1.25rem;
}

.header-block .hidden.lg\:flex.items-center.space-x-8 > * + * {
    margin-left: 0;
}

/* ===== hero ===== */
.projecthandoff-hero {
    position: relative;
}

.projecthandoff-hero h1,
.projecthandoff-hero h2,
.projecthandoff-hero h3 {
    font-family: 'Plus Jakarta Sans', sans-serif;
}

.projecthandoff-hero p,
.projecthandoff-hero span,
.projecthandoff-hero a {
    font-family: 'Inter', sans-serif;
}

.projecthandoff-hero .line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ===== problem_solution ===== */
.handoff-comparison .js-problem-item.is-highlighted {
    background-color: rgba(254, 242, 242, 0.9);
    border-color: #fca5a5;
}

.handoff-comparison .js-solution-item.is-highlighted {
    background-color: rgba(240, 253, 250, 0.9);
    border-color: #99f6e4;
}

/* ===== case_collections ===== */
.case-collections-section {
    font-family: 'Inter', sans-serif;
}

.case-collections-section h2,
.case-collections-section h3 {
    font-family: 'Plus Jakarta Sans', sans-serif;
}

/* ===== case_examples ===== */
.case-examples-section {
    position: relative;
}

.case-examples-section .js-case-card {
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}

/* ===== key_benefits ===== */
.key-benefits-section {
    position: relative;
    overflow: hidden;
}

.key-benefits-section .blob-1 {
    position: absolute;
    top: -10%;
    left: -10%;
    width: 40%;
    height: 40%;
    background: rgba(224, 242, 254, 0.6);
    border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%;
    filter: blur(40px);
    z-index: 0;
    pointer-events: none;
}

.key-benefits-section .blob-2 {
    position: absolute;
    bottom: -10%;
    right: -10%;
    width: 45%;
    height: 45%;
    background: rgba(204, 251, 241, 0.6);
    border-radius: 60% 40% 30% 70% / 50% 30% 70% 50%;
    filter: blur(50px);
    z-index: 0;
    pointer-events: none;
}

.key-benefits-section .blob-3 {
    position: absolute;
    top: 40%;
    right: 15%;
    width: 30%;
    height: 30%;
    background: rgba(254, 243, 199, 0.5);
    border-radius: 50% 50% 30% 70% / 50% 60% 40% 60%;
    filter: blur(45px);
    z-index: 0;
    pointer-events: none;
}

/* ===== dictionary ===== */
.handoff-dictionary .js-dictionary-card {
    min-height: 200px;
}

.handoff-dictionary input::placeholder {
    color: #94A3B8;
    opacity: 1;
}

.handoff-dictionary .js-filter-btn.active {
    background-color: #0F766E;
    color: #FFFFFF;
}

/* ===== objections ===== */
.project-objections-section {
    font-family: 'Inter', sans-serif;
}

.project-objections-section h2,
.project-objections-section h3 {
    font-family: 'Plus Jakarta Sans', sans-serif;
}

.project-objections-section .js-accordion-item[data-open="true"] {
    border-color: #0F766E;
    box-shadow: 0 4px 20px -2px rgba(15, 118, 110, 0.08);
}

.project-objections-section .js-accordion-item[data-open="true"] .js-accordion-icon {
    transform: rotate(45deg);
    background-color: #0F766E;
    color: #FFFFFF;
}

/* ===== footer ===== */
.project-handoff-footer {
    background-color: #F8FAFC;
}

.project-handoff-footer a {
    transition: color 0.2s ease-in-out;
}

.project-handoff-footer a:focus-visible {
    outline: 2px solid #0F766E;
    outline-offset: 2px;
}

/* ===== PAGE: cases ===== */
.cases-intro-section h1 {
  line-height: 1.2;
}
.cases-grid-section .js-case-card {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.cases-grid-section .js-case-card:hover {
  box-shadow: 0 10px 25px -5px rgba(15, 118, 110, 0.1);
}
.cases-grid-section .js-case-card img {
  transition: transform 0.5s ease;
}
.cases-grid-section .js-case-card:hover img {
  transform: scale(1.05);
}
.cases-grid-section select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%23475569' stroke-width='2'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M19.5 8.25l-7.5 7.5-7.5-7.5' /%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  background-size: 1rem;
  padding-right: 2.5rem;
}

/* ===== PAGE: procore-page ===== */
.procore-case-block { font-family: 'Inter', sans-serif; }
.procore-case-block h2, .procore-case-block h3 { font-family: 'Plus Jakarta Sans', sans-serif; }
.procore-case-block .container { max-width: 1200px; }
.trust-copy-block { font-family: 'Inter', sans-serif; }
.trust-copy-block p { max-width: 800px; margin: 0 auto; }

/* ===== PAGE: solutions ===== */
.solutions-block-container .placeholder\:text-slate-300::placeholder {
  color: #CBD5E1;
  opacity: 1;
}
.solutions-block-container .js-form-section {
  scroll-margin-top: 2rem;
}
@media (max-width: 767px) {
  .solutions-block-container h2 {
    font-size: 18px !important;
  }
  .solutions-block-container h3 {
    font-size: 16px !important;
  }
  .solutions-block-container p {
    font-size: 14px !important;
  }
}

/* ===== PAGE: knowledge-base ===== */
.kb-intro-block .js-kb-search {
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
}
.kb-grid-block .js-filter-btn.active-filter {
  box-shadow: 0 4px 12px rgba(15, 118, 110, 0.2);
}
.kb-grid-block .js-article-card {
  height: 100%;
  display: flex;
  flex-direction: column;
}
.kb-grid-block .js-article-card img {
  aspect-ratio: 16 / 9;
}
@media (max-width: 768px) {
  .kb-intro-block h2 {
    font-size: 18px !important;
  }
  .kb-intro-block p {
    font-size: 14px !important;
  }
  .kb-grid-block h3 {
    font-size: 14px !important;
  }
  .kb-grid-block p {
    font-size: 12px !important;
  }
}

/* ===== PAGE: contact ===== */
.contact-page-block .contact-info-card { transition: transform 0.2s ease-in-out; }
.contact-page-block .contact-form-container { position: relative; }
.contact-page-block .js-input::placeholder { color: #94A3B8; opacity: 1; }
.contact-page-block .error-ring { border-color: #EF4444 !important; ring-color: #EF4444 !important; }

/* ===== PAGE: privacy ===== */
.privacy-content-section {
  font-family: 'Inter', sans-serif;
}

.privacy-content-section h1,
.privacy-content-section h2 {
  font-family: 'Plus Jakarta Sans', sans-serif;
}

.privacy-content-section .privacy-block {
  position: relative;
}

.privacy-content-section .privacy-block:not(:last-child)::after {
  content: '';
  position: absolute;
  bottom: -2.5rem;
  left: 0;
  width: 100%;
  height: 1px;
  background: #E2E8F0;
  opacity: 0.5;
}

@media (min-width: 768px) {
  .privacy-content-section .privacy-block:not(:last-child)::after {
    left: 3rem;
    width: calc(100% - 3rem);
  }
}

.privacy-content-section ul li::marker {
  color: #0F766E;
}

/* ===== PAGE: terms ===== */
.terms-section { font-family: 'Inter', sans-serif; }
.terms-section h2, .terms-section h3 { font-family: 'Plus Jakarta Sans', sans-serif; }
.terms-section .terms-block { transition: all 0.2s ease; }
.terms-section .terms-block:hover { transform: translateX(4px); }
@media (max-width: 768px) {
  .terms-section .pl-11 { padding-left: 0; margin-top: 1rem; }
}

/* ===== PAGE: disclaimer ===== */
.disclaimer-section {
  font-family: 'Inter', sans-serif;
}
.disclaimer-section h1, .disclaimer-section h2 {
  font-family: 'Plus Jakarta Sans', sans-serif;
}
.disclaimer-section__card {
  position: relative;
}
.disclaimer-section__item {
  transition: transform 0.2s ease;
}
.disclaimer-section__item:hover {
  transform: translateX(4px);
}
.disclaimer-section p {
  line-height: 1.7;
  hyphens: auto;
}

.comment-avatar {
    width: 56px;
    height: 56px;
    border-radius: 9999px;
    object-fit: cover;
    border: 2px solid #F1F5F9;
    flex-shrink: 0;
}

.font-heading {
    font-family: 'Plus Jakarta Sans', sans-serif;
}

.font-body {
    font-family: 'Inter', sans-serif;
}

.comment-container {
    background-color: #FFFFFF;
}

.comment-text {
    color: #475569;
}

.reply-avatar {
    width: 40px;
    height: 40px;
    border-radius: 9999px;
    object-fit: cover;
    border: 2px solid #FFFFFF;
    flex-shrink: 0;
}

.font-heading {
    font-family: 'Plus Jakarta Sans', sans-serif;
}

.font-body {
    font-family: 'Inter', sans-serif;
}

.reply-card {
    background-color: rgba(248, 250, 252, 0.5);
}

.reply-text {
    color: #475569;
}


/* ===== PAGE TEMPLATE: cases-list ===== */
.case-detail-hero h1,
.case-detail-hero p {
    text-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.js-tab-trigger.active {
    color: #0F766E;
    border-bottom-color: #0F766E;
}

.case-text-wrapper h2 {
    font-family: 'Plus Jakarta Sans', sans-serif;
}

.case-text-wrapper p {
    margin-bottom: 1.5rem;
}

.case-text-wrapper ul {
    list-style: disc;
    margin-left: 1.5rem;
    margin-bottom: 1.5rem;
}

.case-text-wrapper li {
    margin-bottom: 0.5rem;
}

.header-block {
    font-family: 'Inter', sans-serif;
    background-color: #FFFFFF;
}

.header-block .font-sans {
    font-family: 'Plus Jakarta Sans', sans-serif;
}

.project-handoff-footer {
    background-color: #F8FAFC;
}

.project-handoff-footer a {
    transition: color 0.2s ease-in-out;
}

.project-handoff-footer a:focus-visible {
    outline: 2px solid #0F766E;
    outline-offset: 2px;
}

/* ===== PAGE TEMPLATE: solutions-list ===== */
.solution-template-wrapper {
    font-family: 'Inter', sans-serif;
}

.solution-template-wrapper h1,
.solution-template-wrapper h2,
.solution-template-wrapper h3 {
    font-family: 'Plus Jakarta Sans', sans-serif;
}

.solution-template-wrapper .js-content-area p {
    margin-bottom: 1.5rem;
}

.solution-template-wrapper select {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%2364748b' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");
}

.solution-template-wrapper .line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

@media (max-width: 768px) {
    .solution-template-wrapper h1 {
        font-size: 18px !important;
    }

    .solution-template-wrapper h2 {
        font-size: 16px !important;
    }

    .solution-template-wrapper h3 {
        font-size: 14px !important;
    }
}

@media (min-width: 768px) {
    .solution-template-wrapper h1 {
        font-size: 42px !important;
    }

    .solution-template-wrapper h2 {
        font-size: 32px !important;
    }

    .solution-template-wrapper h3 {
        font-size: 26px !important;
    }
}

/* ===== PAGE TEMPLATE: kb-list ===== */
.kb-detail-page {
    font-family: 'Inter', sans-serif;
}

.kb-detail-page h1,
.kb-detail-page h2,
.kb-detail-page h3 {
    font-family: 'Plus Jakarta Sans', sans-serif;
}

.kb-article-body .prose p {
    margin-bottom: 1.5rem;
    line-height: 1.8;
    font-size: 16px;
    color: #334155;
}

.kb-article-body .prose h2 {
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    font-size: 26px;
    color: #0F172A;
    font-weight: 700;
}

.kb-article-body .prose h3 {
    margin-top: 2rem;
    margin-bottom: 0.75rem;
    font-size: 22px;
    color: #0F172A;
    font-weight: 600;
}

.kb-article-body .prose ul {
    list-style-type: none;
    padding-left: 0;
    margin-bottom: 1.5rem;
}

.kb-article-body .prose ul li {
    position: relative;
    padding-left: 1.75rem;
    margin-bottom: 0.75rem;
}

.kb-article-body .prose ul li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.6em;
    width: 8px;
    height: 8px;
    background-color: #0F766E;
    border-radius: 50%;
}

.kb-article-body .prose ul.kb-custom-marker {
    padding-left: 0;
}

.kb-article-body .prose ul.kb-custom-marker li {
    padding-left: 0;
}

.kb-article-body .prose ul.kb-custom-marker li::before {
    content: none;
}

.kb-article-body .prose ol {
    list-style-type: decimal;
    padding-left: 1.25rem;
    margin-bottom: 1.5rem;
}

.kb-article-body .prose em {
    font-style: italic;
    color: #475569;
}

.kb-article-body .prose strong {
    font-weight: 700;
    color: #0F172A;
}

.kb-cta form input::placeholder {
    color: #94A3B8;
}

@media (max-width: 768px) {
    .kb-article-body .prose p {
        font-size: 14px;
    }

    .kb-article-body .prose h2 {
        font-size: 20px;
    }

    .kb-article-body .prose h3 {
        font-size: 18px;
    }
}