/* ============================================================
   REAL ESTATE AI AGENT DEVELOPMENT — page-scoped styles (.reai-*)
   Namespaced so it cannot collide with the global bundle.
   Visual language follows the DramaBox / white-label pages:
   light sections with soft cards, punctuated by full-bleed
   near-black bands, brand red (#ec2024) as the single accent.
   ============================================================ */

.reai-page {
    overflow-x: hidden;
    background: #ffffff;
}

/* ---------- shared type ---------- */
.reai-h2 {
    font-size: clamp(28px, 3.2vw, 45px);
    line-height: 1.28;
    font-weight: 700;
    color: #111827;
    text-align: center;
    margin: 0;
}
.reai-h2--light { color: #ffffff; }

.reai-sub {
    font-size: clamp(15px, 1.4vw, 17px);
    line-height: 1.75;
    color: #6b6b6b;
    max-width: 1000px;
    margin: 16px auto 0;
    text-align: center;
}
.reai-sub--light { color: rgba(255, 255, 255, 0.82); }

.reai-eyebrow {
    display: inline-block;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #ec2024;
    background: #fdecec;
    border-radius: 999px;
    padding: 7px 16px;
    margin-bottom: 20px;
}
.reai-accent { color: #ec2024; }

.reai-head { margin-bottom: 48px; }

.reai-card-title {
    font-size: clamp(18px, 1.6vw, 21px);
    line-height: 1.35;
    font-weight: 600;
    color: #111827;
    margin: 0 0 10px;
}
.reai-card-desc {
    font-size: 16px;
    line-height: 1.7;
    color: #6b6b6b;
    margin: 0;
}
.reai-btn { gap: 10px; }

/* ============================================================
   HERO
   ============================================================ */
.reai-hero {
    background: linear-gradient(180deg, #fdf3f3 0%, #ffffff 100%);
    border-bottom: 1px solid #f2e6e6;
    padding: clamp(60px, 7vw, 104px) 0;
}
.reai-hero-row {
    display: grid;
    grid-template-columns: 1.28fr 0.72fr;
    gap: 56px;
    align-items: center;
}
.reai-hero-title {
    font-size: clamp(30px, 3.6vw, 50px);
    line-height: 1.16;
    font-weight: 800;
    color: #0f172a;
    margin: 0 0 20px;
}
.reai-hero-sub {
    font-size: clamp(15px, 1.4vw, 17px);
    line-height: 1.75;
    color: #4b5563;
    margin: 0 0 24px;
}
.reai-hero-points {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 11px;
}
.reai-hero-points li {
    position: relative;
    padding-left: 28px;
    font-size: 16px;
    font-weight: 500;
    color: #111827;
}
.reai-hero-points li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 6px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #ec2024;
    /* white tick */
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='%23000' stroke-width='4' stroke-linecap='round' stroke-linejoin='round' d='M20 6L9 17l-5-5'/%3E%3C/svg%3E") center / 11px no-repeat, linear-gradient(#000, #000);
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='%23000' stroke-width='4' stroke-linecap='round' stroke-linejoin='round' d='M20 6L9 17l-5-5'/%3E%3C/svg%3E") center / 11px no-repeat, linear-gradient(#000, #000);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
}

/* ---------- hero lead form ---------- */
.reai-hero-form-wrap { width: 100%; }
.reai-hero-form-card {
    background: #ffffff;
    border: 1px solid #ececf1;
    border-radius: 16px;
    padding: 24px 22px;
    box-shadow: 0 22px 54px rgba(15, 23, 42, 0.10);
}
.reai-form-title {
    font-size: 18px;
    font-weight: 700;
    color: #111827;
    margin: 0 0 6px;
}
.reai-form-sub {
    font-size: 13px;
    line-height: 1.6;
    color: #6b6b6b;
    margin: 0 0 16px;
}
.reai-field { margin-bottom: 11px; }
.reai-label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: #111827;
    margin-bottom: 6px;
}
.reai-input {
    width: 100%;
    border: 1px solid #e2e2e9;
    border-radius: 9px;
    padding: 10px 12px;
    font-size: 14px;
    color: #111827;
    background: #fcfcfd;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.reai-input::placeholder { color: #a6a6ae; }
.reai-input:focus {
    outline: none;
    border-color: #ec2024;
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(236, 32, 36, 0.12);
}
.reai-textarea { resize: vertical; min-height: 68px; }
.reai-form-submit {
    width: 100%;
    justify-content: center;
    margin-top: 4px;
}
.reai-form-note {
    font-size: 11.5px;
    color: #8e8e93;
    text-align: center;
    margin: 12px 0 0;
}

/* ============================================================
   WHAT IS AN AI REAL ESTATE AGENT
   ============================================================ */
.reai-what { padding: clamp(56px, 6vw, 90px) 0; }
.reai-what-row {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 52px;
    align-items: start;
}
.reai-what-copy p {
    font-size: 17px;
    line-height: 1.8;
    color: #6b6b6b;
    margin: 0 0 18px;
}
.reai-cap-list {
    list-style: none;
    padding: 26px;
    margin: 0;
    background: #fafafc;
    border: 1px solid #ececf1;
    border-radius: 18px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.reai-cap {
    display: flex;
    align-items: flex-start;
    gap: 13px;
    font-size: 16px;
    font-weight: 500;
    line-height: 1.55;
    color: #111827;
}
.reai-tick {
    width: 24px;
    height: 24px;
    flex: 0 0 24px;
    border-radius: 50%;
    background: #ec2024;
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 1px;
}
.reai-tick svg { width: 13px; height: 13px; }

/* ============================================================
   ANATOMY OF AN AGENT
   ============================================================ */
.reai-anatomy { padding: clamp(56px, 6vw, 90px) 0; background: #fafafc; }
.reai-anatomy-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
.reai-anatomy-card {
    background: #ffffff;
    border: 1px solid #ececf1;
    border-radius: 18px;
    padding: 28px 26px;
}
.reai-anatomy-num {
    display: block;
    font-size: 15px;
    font-weight: 800;
    letter-spacing: 0.08em;
    color: #ec2024;
    margin-bottom: 12px;
}

/* ============================================================
   WHERE DEALS ARE LOST
   ============================================================ */
.reai-challenges { padding: clamp(56px, 6vw, 90px) 0; }
.reai-challenges-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
.reai-challenge-card {
    border: 1px solid #f2dede;
    border-radius: 18px;
    background: #fffafa;
    padding: 28px 26px;
}
.reai-challenge-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: #fdecec;
    color: #ec2024;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
}
.reai-challenge-icon svg { width: 22px; height: 22px; }

/* ============================================================
   SEGMENTS
   ============================================================ */
.reai-segments { padding: clamp(56px, 6vw, 90px) 0; background: #fafafc; }
.reai-segments-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
.reai-segment-card {
    background: #ffffff;
    border: 1px solid #ececf1;
    border-left: 3px solid #ec2024;
    border-radius: 14px;
    padding: 26px 24px;
}

/* ============================================================
   TECH STACK (DARK BAND)
   ============================================================ */
.reai-stack { background: #0b0b0f; padding: clamp(64px, 7vw, 100px) 0; }
.reai-stack-grid {
    max-width: 1000px;
    margin: 0 auto;
    border: 1px solid #23232c;
    border-radius: 18px;
    overflow: hidden;
    background: #101017;
}
.reai-stack-row {
    display: grid;
    grid-template-columns: 210px 1fr;
    gap: 20px;
    padding: 18px 26px;
}
.reai-stack-row + .reai-stack-row { border-top: 1px solid #1c1c25; }
.reai-stack-group {
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #ec2024;
}
.reai-stack-items {
    font-size: 15px;
    line-height: 1.65;
    color: #d1d1d6;
}

/* ============================================================
   COST & SCOPE
   ============================================================ */
.reai-cost { padding: clamp(56px, 6vw, 90px) 0; }
.reai-cost-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-bottom: 40px;
}
.reai-cost-card {
    border: 1px solid #ececf1;
    border-radius: 18px;
    background: #ffffff;
    padding: 28px 26px;
    display: flex;
    flex-direction: column;
}
.reai-cost-tier {
    font-size: 20px;
    font-weight: 700;
    color: #111827;
    margin: 0 0 12px;
}
.reai-cost-note {
    display: inline-block;
    align-self: flex-start;
    margin-top: 16px;
    font-size: 13px;
    font-weight: 600;
    color: #ec2024;
    background: #fdecec;
    border-radius: 999px;
    padding: 6px 14px;
}
.reai-drivers {
    background: #fafafc;
    border: 1px solid #ececf1;
    border-radius: 18px;
    padding: 28px 30px;
    max-width: 940px;
    margin: 0 auto;
}
.reai-drivers-title {
    font-size: 19px;
    font-weight: 700;
    color: #111827;
    margin: 0 0 16px;
}
.reai-drivers-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px 28px;
}
.reai-drivers-list li {
    position: relative;
    padding-left: 20px;
    font-size: 15.5px;
    line-height: 1.6;
    color: #6b6b6b;
}
.reai-drivers-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 9px;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #ec2024;
}

/* ============================================================
   COMPARISON (DARK BAND)
   ============================================================ */
.reai-compare {
    background: #0b0b0f;
    padding: clamp(64px, 7vw, 100px) 0;
}
.reai-compare-table {
    max-width: 900px;
    margin: 0 auto;
    border: 1px solid #23232c;
    border-radius: 18px;
    overflow: hidden;
    background: #101017;
}
.reai-compare-head,
.reai-compare-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
}
.reai-compare-head {
    background: #16161f;
    border-bottom: 1px solid #23232c;
}
.reai-compare-head span {
    padding: 18px 24px;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #8e91a1;
}
.reai-compare-head--new { color: #ffffff !important; }
.reai-compare-row + .reai-compare-row { border-top: 1px solid #1c1c25; }
.reai-compare-old,
.reai-compare-new {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 18px 24px;
    font-size: 16px;
    line-height: 1.5;
}
.reai-compare-old { color: #8e91a1; }
.reai-compare-new { color: #ffffff; font-weight: 500; border-left: 1px solid #1c1c25; }
.reai-compare-old svg { width: 17px; height: 17px; flex: 0 0 17px; color: #6b7280; }
.reai-compare-new svg { width: 17px; height: 17px; flex: 0 0 17px; color: #22c55e; }

/* ============================================================
   SERVICES
   ============================================================ */
.reai-services { padding: clamp(56px, 6vw, 90px) 0; }
.reai-services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
.reai-service-card {
    border: 1px solid #ececf1;
    border-radius: 18px;
    background: #ffffff;
    padding: 30px 28px;
    transition: box-shadow 0.25s ease, transform 0.25s ease;
}
.reai-service-card:hover {
    box-shadow: 0 18px 44px rgba(15, 23, 42, 0.09);
    transform: translateY(-3px);
}
.reai-service-icon {
    width: 48px;
    height: 48px;
    border-radius: 13px;
    background: #fdecec;
    color: #ec2024;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 18px;
}
.reai-service-icon svg { width: 24px; height: 24px; }
.reai-integrations {
    font-size: 14px;
    line-height: 1.6;
    color: #8e8e93;
    margin: 16px 0 0;
    padding-top: 14px;
    border-top: 1px dashed #e6e6ec;
}
.reai-integrations strong { color: #111827; font-weight: 600; }

/* ============================================================
   CTA spacing (house red-bg-cta component)
   ============================================================ */
.reai-cta { padding: 18px 0 44px; }

/* ============================================================
   CUSTOMER JOURNEY
   ============================================================ */
.reai-journey { padding: clamp(56px, 6vw, 90px) 0; background: #fafafc; }
.reai-stage {
    background: #ffffff;
    border: 1px solid #ececf1;
    border-radius: 20px;
    padding: 32px;
    margin-bottom: 26px;
}
.reai-stage:last-child { margin-bottom: 0; }
.reai-stage-head {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    margin-bottom: 26px;
}
.reai-stage-num {
    font-size: 34px;
    font-weight: 800;
    color: #ec2024;
    line-height: 1;
    flex: 0 0 auto;
}
.reai-stage-title {
    font-size: clamp(20px, 1.9vw, 25px);
    font-weight: 700;
    color: #111827;
    margin: 0 0 10px;
}
.reai-stage-desc {
    font-size: 16px;
    line-height: 1.72;
    color: #6b6b6b;
    margin: 0;
}
.reai-stage-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px 26px;
}
.reai-stage-item {
    background: #fafafc;
    border: 1px solid #f0f0f4;
    border-radius: 13px;
    padding: 18px 20px;
}
.reai-stage-item-title {
    font-size: 16px;
    font-weight: 600;
    color: #111827;
    margin: 0 0 6px;
}
.reai-stage-item-desc {
    font-size: 15px;
    line-height: 1.65;
    color: #6b6b6b;
    margin: 0;
}

/* ============================================================
   PROCESS (DARK BAND)
   ============================================================ */
.reai-process {
    background: #0a0b10;
    padding: clamp(64px, 7vw, 100px) 0;
}
.reai-process-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 22px;
}
.reai-process-item {
    display: flex;
    gap: 18px;
    background: #0f1017;
    border: 1px solid #1c1f2a;
    border-radius: 16px;
    padding: 26px 24px;
}
.reai-process-num {
    font-size: 20px;
    font-weight: 700;
    color: #ec2024;
    background: rgba(236, 32, 36, 0.12);
    border: 1px solid rgba(236, 32, 36, 0.35);
    width: 46px;
    height: 46px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 46px;
}
.reai-process-title {
    font-size: 19px;
    font-weight: 600;
    color: #ffffff;
    margin: 0 0 8px;
}
.reai-process-desc {
    font-size: 15px;
    line-height: 1.7;
    color: #aeaeb2;
    margin: 0 0 12px;
}
.reai-process-points {
    list-style: none;
    padding: 0;
    margin: 0;
}
.reai-process-points li {
    position: relative;
    padding-left: 17px;
    font-size: 14px;
    line-height: 1.6;
    color: #d1d1d6;
    margin-bottom: 7px;
}
.reai-process-points li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 8px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #ec2024;
}

/* ============================================================
   CASE STUDY (DARK BAND)
   ============================================================ */
.reai-case { background: #0a0b10; padding: clamp(64px, 7vw, 100px) 0; }
.reai-case .reai-eyebrow { background: rgba(236, 32, 36, 0.14); color: #ff6b6e; }
.reai-case-card {
    display: grid;
    grid-template-columns: 1.25fr 0.75fr;
    gap: 40px;
    background: #0f1017;
    border: 1px solid #1c1f2a;
    border-radius: 20px;
    padding: 36px;
    align-items: center;
}
.reai-case-name {
    font-size: clamp(20px, 1.9vw, 25px);
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 12px;
}
.reai-case-desc {
    font-size: 16px;
    line-height: 1.72;
    color: #aeaeb2;
    margin: 0 0 20px;
}
.reai-case-points {
    list-style: none;
    padding: 0;
    margin: 0 0 26px;
}
.reai-case-points li {
    position: relative;
    padding-left: 26px;
    font-size: 15px;
    line-height: 1.65;
    color: #d1d1d6;
    margin-bottom: 11px;
}
.reai-case-points li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 7px;
    width: 15px;
    height: 15px;
    border-radius: 50%;
    background: #ec2024;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='%23000' stroke-width='4' stroke-linecap='round' stroke-linejoin='round' d='M20 6L9 17l-5-5'/%3E%3C/svg%3E") center / 10px no-repeat, linear-gradient(#000, #000);
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='%23000' stroke-width='4' stroke-linecap='round' stroke-linejoin='round' d='M20 6L9 17l-5-5'/%3E%3C/svg%3E") center / 10px no-repeat, linear-gradient(#000, #000);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
}
.reai-case-link { display: inline-flex; }
.reai-case-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
}
.reai-case-stat {
    background: #14151d;
    border: 1px solid #23232c;
    border-radius: 13px;
    padding: 18px 16px;
    text-align: center;
}
.reai-case-stat:first-child { grid-column: 1 / -1; }
.reai-case-stat-num {
    display: block;
    font-size: clamp(26px, 2.4vw, 34px);
    font-weight: 800;
    color: #ec2024;
    line-height: 1.1;
}
.reai-case-stat-label {
    display: block;
    font-size: 13px;
    color: #8e91a1;
    margin-top: 5px;
}
.reai-case-foot {
    max-width: 900px;
    margin: 28px auto 0;
    text-align: center;
    font-size: 15.5px;
    line-height: 1.7;
    color: #8e91a1;
}

/* ============================================================
   WHY TRIPLE MINDS
   ============================================================ */
.reai-why { padding: clamp(56px, 6vw, 90px) 0; }
.reai-why-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
.reai-why-card {
    border: 1px solid #ececf1;
    border-radius: 18px;
    background: #ffffff;
    padding: 28px;
}
.reai-why-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: #fdecec;
    color: #ec2024;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
}
.reai-why-icon svg { width: 21px; height: 21px; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1199.98px) {
    .reai-services-grid,
    .reai-why-grid,
    .reai-anatomy-grid,
    .reai-challenges-grid,
    .reai-segments-grid,
    .reai-cost-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 991.98px) {
    .reai-hero-row { grid-template-columns: 1fr; gap: 36px; }
    .reai-hero-form-card { max-width: 520px; margin: 0 auto; }
    .reai-what-row { grid-template-columns: 1fr; gap: 32px; }
    .reai-process-list { grid-template-columns: 1fr; }
}

@media (max-width: 767.98px) {
    .reai-services-grid,
    .reai-why-grid,
    .reai-stage-grid,
    .reai-anatomy-grid,
    .reai-challenges-grid,
    .reai-segments-grid,
    .reai-cost-grid,
    .reai-drivers-list { grid-template-columns: 1fr; }
    .reai-stack-row { grid-template-columns: 1fr; gap: 6px; padding: 16px 18px; }
    .reai-head { margin-bottom: 32px; }
    .reai-stage { padding: 24px 20px; }
    .reai-stage-head { gap: 14px; }
    .reai-stage-num { font-size: 27px; }
    .reai-compare-head span,
    .reai-compare-old,
    .reai-compare-new { padding: 14px 16px; font-size: 15px; }
}

@media (max-width: 575.98px) {
    .reai-compare-head span { font-size: 12px; }
    .reai-process-item { flex-direction: column; gap: 14px; }
}

@media (max-width: 991.98px) {
    .reai-case-card { grid-template-columns: 1fr; gap: 28px; padding: 26px 22px; }
}
@media (max-width: 575.98px) {
    .reai-case-stats { grid-template-columns: 1fr; }
    .reai-case-stat:first-child { grid-column: auto; }
}
