/* Text Recognition Page Styles */

.tr-container {
    max-width: var(--layout-max-width);
    margin: 0 auto;
    padding: 0 var(--layout-gutter);
}

/* Hero Section */
.tr-hero {
    background-color: #03213D;
    padding-top: 160px;
    padding-bottom: 80px;
    color: #FFFFFF;
    overflow: hidden;
}

.tr-hero__content {
    max-width: 800px;
    margin-bottom: 60px;
}

.tr-hero__title {
    font-family: sans-serif;
    font-size: 3rem;
    line-height: 1.2;
    margin-bottom: 24px;
    color: #FFFFFF;
}

.tr-hero__text {
    font-size: 1.125rem;
    line-height: 1.6;
    color: #FFFFFF;
    opacity: 0.9;
}

.tr-hero__media {
    display: flex;
    justify-content: center;
    align-items: center;
}

.tr-hero__image {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}

/* Split Section */
.tr-split {
    padding: 100px 0;
    background-color: #FFFFFF;
}

.tr-split__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.tr-image-wrapper {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(3, 33, 61, 0.15);
}

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

.tr-split__heading {
    font-family: sans-serif;
    font-size: 2.25rem;
    color: #03213D;
    line-height: 1.3;
    margin-bottom: 24px;
}

.tr-split__text {
    font-size: 1rem;
    line-height: 1.7;
    color: #03213D;
    margin-bottom: 20px;
}

/* CTA Button */
.tr-action-area {
    margin-top: 40px;
}

.tr-button {
    display: inline-block;
    background-color: #FF8A3D;
    color: #03213D;
    padding: 14px 32px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    transition: transform 0.2s ease, background-color 0.2s ease;
    font-family: sans-serif;
}

.tr-button:hover {
    background-color: #FF7A2F;
    transform: translateY(-2px);
}

/* Responsive Adjustments */
@media (max-width: 900px) {
    .tr-hero {
        padding-top: 120px;
        padding-bottom: 60px;
    }
    
    .tr-hero__title {
        font-size: 2.5rem;
    }

    .tr-split__grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .tr-split__content {
        order: 2;
    }

    .tr-split__media {
        order: 1;
    }

    .tr-split__heading {
        font-size: 1.85rem;
    }
}

@media (max-width: 640px) {
    .tr-hero {
        padding-top: 100px;
        text-align: center;
    }

    .tr-hero__title {
        font-size: 2rem;
    }

    .tr-split {
        padding: 60px 0;
    }

    .tr-button {
        width: 100%;
        text-align: center;
    }
}

/* OCR function composition: native document text and matching extraction. */
main .ocr-demo { margin: 0; width: 100%; min-width: 0; color: #03213D; font-family: 'Open Sans', sans-serif; text-align: left; }
main .ocr-demo__sheet { background: #fff; border-radius: 8px 8px 0 0; overflow: hidden; }
main .ocr-demo__document-label { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 20px; font-size: 13px; color: #50697A; }
main .ocr-demo__document-label > span:first-child { color: #03213D; font-weight: 700; letter-spacing: .06em; }
main .ocr-demo__photo { display: block; width: 100%; height: auto; }
main .ocr-demo__source { margin: 0; padding: 20px; font-size: 20px; font-weight: 600; line-height: 1.5; }
main .ocr-demo__source > span { display: block; margin-top: 4px; font-size: 14px; color: #50697A; font-weight: 400; }
main .ocr-demo mark { white-space: nowrap; padding: 1px 4px; background: #B7FF3C; color: #03213D; box-decoration-break: clone; -webkit-box-decoration-break: clone; }
main .ocr-demo__extraction { background: #E2EEF4; padding: 20px; border-top: 1px solid #c5dce8; border-radius: 0 0 8px 8px; }
main .ocr-demo__label { display: block; font-size: 13px; line-height: 1.5; color: #50697A; }
main .ocr-demo__extraction p { margin: 6px 0 0; font-size: 24px; font-weight: 600; line-height: 1.4; }
main .ocr-demo figcaption { margin-top: 12px; font-size: 13px; line-height: 1.6; color: #50697A; }
main .ocr-hero .ocr-demo figcaption, main .tr-hero .ocr-demo figcaption { color: #c8dce9; }
main .ocr-demo__query { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 8px 24px; padding: 0 0 20px; border-bottom: 2px solid #03213D; }
main .ocr-demo__query > span { font-size: 14px; }
main .ocr-demo__query strong { font-size: 36px; line-height: 1.2; letter-spacing: -.02em; }
main .ocr-demo__match { display: grid; grid-template-columns: .85fr 1fr; gap: 24px; align-items: center; padding: 24px 0; border-bottom: 1px solid #c5dce8; }
main .ocr-demo__match > img { width: 100%; height: auto; border-radius: 4px; }
main .ocr-demo__match strong, main .ocr-demo__second-match strong { display: block; font-size: 17px; margin-top: 5px; }
main .ocr-demo__match p, main .ocr-demo__second-match p { margin: 8px 0 0; font-size: 16px; line-height: 1.6; }
main .ocr-demo__second-match { display: flex; align-items: center; gap: 20px; padding: 24px 0 16px; }
main .ocr-demo__pdf { flex: 0 0 60px; display: grid; place-items: center; align-self: stretch; min-height: 76px; border: 1px solid #a4bfd0; background: #E2EEF4; font-size: 13px; font-weight: 700; }
@media (max-width: 600px) {
  main .ocr-demo__document-label { padding: 12px 16px; }
  main .ocr-demo__source, main .ocr-demo__extraction { padding: 16px; }
  main .ocr-demo__source { font-size: 18px; }
  main .ocr-demo__extraction p { font-size: 21px; }
  main .ocr-demo__match { grid-template-columns: 1fr; gap: 16px; }
  main .ocr-demo__match > img { aspect-ratio: 3 / 2; object-fit: cover; }
  main .ocr-demo__second-match { gap: 16px; }
  main .ocr-demo__query strong { font-size: 30px; }
}
