/* OCR 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;
  color: #FFFFFF;
  padding: 80px 0;
  text-align: center;
}

.tr-hero__content {
  max-width: 900px;
  margin: 0 auto;
}

.tr-hero__title {
  font-family: sans-serif;
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 24px;
  line-height: 1.2;
}

.tr-hero__text {
  font-size: 1.125rem;
  line-height: 1.6;
  margin-bottom: 40px;
  color: #E2EEF4;
}

.tr-hero__media {
  margin-top: 40px;
  display: flex;
  justify-content: center;
}

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

/* Feature 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-split__image {
  width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(3, 33, 61, 0.1);
}

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

.tr-split__content p {
  /* color: #03213D; */
  line-height: 1.7;
  margin-bottom: 20px;
}

/* CTA Styling */
.tr-action-area {
  margin-top: 32px;
}

.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;
}

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

/* Responsive Rules */
@media (max-width: 900px) {
  .tr-hero {
    padding: 60px 0;
  }

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

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

  .tr-split__media {
    order: 2;
  }

  .tr-split__content {
    order: 1;
  }
}

@media (max-width: 640px) {
  .tr-hero {
    padding: 40px 0;
  }

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

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

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


main .tr-hero__media { margin-top: 0; }
main .tr-split__grid > * { min-width: 0; }
@media (prefers-reduced-motion: reduce) { main .tr-button { transition: none; } main .tr-button:hover { transform: none; } }

main .tr-hero__text { line-height: 1.7; margin-bottom: 20px; }

/* V4: document text, automatic image caption and semantic retrieval. */
main .ocr-motion { margin: 0; width: 100%; min-width: 0; color: #03213D; font-family: 'Open Sans', sans-serif; text-align: left; container-type: inline-size; }
main .ocr-motion * { box-sizing: border-box; }
main .ocr-motion__canvas { height: 660px; position: relative; isolation: isolate; border-radius: 12px; background: #E2EEF4; }
main .ocr-motion__document { position: absolute; top: 24px; left: 24px; width: 84%; background: #fff; border-radius: 5px; box-shadow: 0 16px 30px #03213D26; transform: rotate(-2deg); }
main .ocr-motion__file { min-height: 42px; padding: 10px 16px; display: flex; align-items: center; gap: 10px; color: #216D99; font-size: 13px; font-weight: 600; border-bottom: 1px solid #E2EEF4; }
main .ocr-motion__page { padding: 14px 20px 24px; }
main .ocr-motion__eyebrow { display: block; font-size: 11px; font-weight: 600; line-height: 1.4; color: #216D99; letter-spacing: .06em; }
main .ocr-motion__doc-heading { display: block; font-size: 23px; font-weight: 700; line-height: 1.25; margin: 5px 0 12px; }
main .ocr-motion__photo-wrap { position: relative; }
main .ocr-motion__photo { display: block; width: 100%; height: 185px; object-fit: cover; }
main .ocr-motion__image-focus { position: absolute; inset: 9px; border: 2px solid #fff; outline: 2px solid #216D99; opacity: 0; pointer-events: none; }
main .ocr-motion__document-text { position: relative; padding-top: 14px; }
main .ocr-motion__document-text p { margin: 0; font-size: 13px; line-height: 1.55; }
main .ocr-motion__textline { box-decoration-break: clone; -webkit-box-decoration-break: clone; }
main .ocr-motion mark { background: #B7FF3C; color: #03213D; padding: 1px 2px; box-decoration-break: clone; -webkit-box-decoration-break: clone; }
main :is(.ocr-motion__source-code,.ocr-motion__output-code) { white-space: nowrap; }
main .ocr-motion__rules { display: grid; gap: 6px; margin-top: 12px; }
main .ocr-motion__rules i { height: 2px; width: 91%; background: #E2EEF4; }
main .ocr-motion__rules i:nth-child(2) { width: 68%; }
main .ocr-motion__output { position: absolute; bottom: 22px; right: 20px; width: 84%; padding: 17px 20px; border-radius: 7px; background: #fff; box-shadow: 0 14px 28px #03213D26; }
main .ocr-motion__output-label { display: flex; align-items: center; gap: 8px; color: #216D99; font-size: 12px; font-weight: 600; line-height: 1.5; }
main .ocr-motion__output-label svg { flex: 0 0 18px; }
main .ocr-motion__output-line { margin: 8px 0 0; font-size: 14px; line-height: 1.5; }
main .ocr-motion__caption { margin-top: 14px; padding-top: 13px; border-top: 1px solid #B9D3E1; }
main .ocr-motion__caption-text { margin: 7px 0 0; font-size: 14px; line-height: 1.5; }
main .ocr-motion__scan { position: absolute; left: -7px; right: -7px; top: 4px; height: 28px; border-bottom: 2px solid #216D99; background: linear-gradient(transparent, #54ABDF55); opacity: 0; pointer-events: none; }
main .ocr-motion__scan span { position: absolute; bottom: -2px; right: -2px; padding: 2px 5px; background: #216D99; color: #fff; font-size: 11px; }
main .ocr-motion__moving-code { position: absolute; left: 0; top: 0; z-index: 5; padding: 1px 3px; background: #B7FF3C; color: #03213D; font-size: 14px; opacity: 0; pointer-events: none; white-space: nowrap; }
main .ocr-motion--find .ocr-motion__canvas { height: 620px; }
main .ocr-motion__search { position: absolute; top: 24px; left: 22px; right: 22px; min-height: 100px; padding: 16px 20px; display: flex; align-items: center; gap: 14px; background: #fff; border-radius: 24px; box-shadow: 0 6px 16px #03213D14; z-index: 2; }
main .ocr-motion__search > svg { flex: 0 0 26px; color: #216D99; }
main .ocr-motion__search-copy { min-width: 0; }
main .ocr-motion__search-label { display: block; font-size: 11px; line-height: 1.4; color: #216D99; margin-bottom: 4px; }
main .ocr-motion__query { display: block; font-size: 20px; font-weight: 600; line-height: 1.4; }
main .ocr-motion__query > span { display: inline-block; }
main .ocr-motion__connections { position: absolute; width: 100%; height: 100%; inset: 0; fill: #216D99; stroke: #216D99; stroke-width: 2; }
main .ocr-motion__connections path { fill: none; }
main .ocr-motion__documents { position: absolute; top: 182px; left: 24px; right: 24px; display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 18px; align-items: stretch; }
main .ocr-motion__match { min-width: 0; background: #fff; box-shadow: 0 10px 22px #03213D26; border-radius: 5px; outline: 2px solid #216D99; outline-offset: 3px; }
main .ocr-motion__match--article { transform: rotate(-1deg); }
main .ocr-motion__match--photo { transform: rotate(1deg); }
main .ocr-motion__match .ocr-motion__file { min-height: 42px; padding: 10px; justify-content: space-between; gap: 4px; font-size: 12px; color: #03213D; }
main .ocr-motion__tick { flex: 0 0 20px; display: grid; place-items: center; height: 20px; background: #B7FF3C; border-radius: 50%; color: #03213D; }
main .ocr-motion__mini-page { padding: 13px 12px 16px; }
main .ocr-motion__mini-page .ocr-motion__doc-heading { font-size: 17px; margin: 5px 0 11px; }
main .ocr-motion__mini-page img { display: block; width: 100%; height: 108px; object-fit: cover; }
main .ocr-motion__mini-page .ocr-motion__archive-photo { height: 162px; }
main .ocr-motion__mini-page p { margin: 13px 0 0; line-height: 1.55; font-size: 13px; }
main .ocr-motion__origin { display: block; margin-top: 13px; font-size: 11px; line-height: 1.45; color: #216D99; }
main .ocr-motion__found { position: absolute; bottom: 22px; left: 24px; right: 24px; display: flex; gap: 9px; align-items: center; font-size: 14px; font-weight: 600; line-height: 1.5; }
main .ocr-motion__found > span { color: #216D99; font-size: 22px; }
main .ocr-motion[data-ocr-phase="waiting"] :is(.ocr-motion__output-line,.ocr-motion__caption-text,.ocr-motion__query > span,.ocr-motion__connections,.ocr-motion__tick,.ocr-motion__found) { opacity: 0; }
main .ocr-motion[data-ocr-phase="waiting"] .ocr-motion__match { outline-color: transparent; }
main .ocr-motion[data-ocr-phase="waiting"] mark { background: transparent; }
@media (prefers-reduced-motion: no-preference) {
  main .ocr-motion[data-ocr-phase="playing"] .ocr-motion__scan { animation: ocr-sweep 1.9s ease-in-out both; }
  main .ocr-motion[data-ocr-phase="playing"] .ocr-motion__source-code { animation: ocr-mark 1.9s linear both; }
  main .ocr-motion[data-ocr-phase="playing"] .ocr-motion__moving-code { animation: ocr-transfer 4.6s cubic-bezier(.4,0,.2,1) both; }
  main .ocr-motion[data-ocr-phase="playing"] .ocr-motion__output-line { animation: ocr-output 4.6s ease both; }
  main .ocr-motion[data-ocr-phase="playing"] .ocr-motion__image-focus { animation: ocr-image 4.6s ease both; }
  main .ocr-motion[data-ocr-phase="playing"] .ocr-motion__caption-text { animation: ocr-caption 4.6s ease both; }
  main .ocr-motion[data-ocr-phase="playing"] .ocr-motion__query > span { animation: ocr-type .15s linear both; animation-delay: calc(var(--ocr-word) * .16s); }
  main .ocr-motion[data-ocr-phase="playing"] .ocr-motion__connections { animation: ocr-connect 2.4s ease both; }
  main .ocr-motion[data-ocr-phase="playing"] .ocr-motion__match { animation: ocr-match 3.7s ease both; }
  main .ocr-motion[data-ocr-phase="playing"] .ocr-motion__match--photo { animation-delay: .2s; }
  main .ocr-motion[data-ocr-phase="playing"] .ocr-motion__hit mark { animation: ocr-search-hit 3.7s ease both; }
  main .ocr-motion[data-ocr-phase="playing"] :is(.ocr-motion__tick,.ocr-motion__found) { animation: ocr-found 4.6s ease both; }
}
@keyframes ocr-sweep { 0% { opacity:0; transform:translateY(0); } 12% { opacity:1; } 90% { opacity:1; } 100% { opacity:0; transform:translateY(var(--ocr-scan-end,60px)); } }
@keyframes ocr-mark { 0%,38% { background:transparent; } 65%,100% { background:#B7FF3C; } }
@keyframes ocr-transfer { 0%,39% { opacity:0; transform:translate(var(--ocr-from-x),var(--ocr-from-y)); } 42% { opacity:1; transform:translate(var(--ocr-from-x),var(--ocr-from-y)); } 60% { opacity:1; transform:translate(var(--ocr-to-x),var(--ocr-to-y)); } 66%,100% { opacity:0; transform:translate(var(--ocr-to-x),var(--ocr-to-y)); } }
@keyframes ocr-output { 0%,58% { opacity:0; } 69%,100% { opacity:1; } }
@keyframes ocr-image { 0%,61% { opacity:0; } 70%,85% { opacity:1; } 100% { opacity:0; } }
@keyframes ocr-caption { 0%,78% { opacity:0; } 95%,100% { opacity:1; } }
@keyframes ocr-type { from { opacity:0; } to { opacity:1; } }
@keyframes ocr-connect { 0%,48% { clip-path:inset(0 0 100%); } 100% { clip-path:inset(0); } }
@keyframes ocr-match { 0%,43% { outline-color:transparent; } 70%,100% { outline-color:#216D99; } }
@keyframes ocr-search-hit { 0%,43% { background:transparent; } 70%,100% { background:#B7FF3C; } }
@keyframes ocr-found { 0%,65% { opacity:0; } 81%,100% { opacity:1; } }
@container (max-width: 440px) {
  main .ocr-motion__canvas { height: 685px; }
  main .ocr-motion__document { top: 22px; left: 14px; width: calc(100% - 34px); }
  main .ocr-motion__file { padding: 9px 12px; font-size: 12px; }
  main .ocr-motion__page { padding: 13px 14px 24px; }
  main .ocr-motion__doc-heading { font-size: 21px; }
  main .ocr-motion__photo { height: 170px; }
  main .ocr-motion__output { bottom: 18px; right: 12px; width: calc(100% - 24px); padding: 15px 16px; }
  main .ocr-motion__output-line, main .ocr-motion__caption-text { font-size: 13px; }
  main .ocr-motion__output-label { font-size: 11px; }
  main .ocr-motion--find .ocr-motion__canvas { height: 850px; }
  main .ocr-motion__search { left: 14px; right: 14px; top: 18px; padding: 15px; gap: 10px; min-height: 126px; border-radius: 20px; }
  main .ocr-motion__query { font-size: 18px; }
  main .ocr-motion__connections { display: none; }
  main .ocr-motion__documents { top: 180px; left: 18px; right: 18px; grid-template-columns: minmax(0,1fr); gap: 23px; }
  main .ocr-motion__match--article, main .ocr-motion__match--photo { transform: none; }
  main .ocr-motion__mini-page { padding: 13px 14px 16px; }
  main .ocr-motion__mini-page .ocr-motion__doc-heading { font-size: 18px; }
  main .ocr-motion__article-photo { float: left; width: 72px; margin: 0 12px 5px 0; }
  main .ocr-motion__article-photo img { height: 82px; }
  main .ocr-motion__mini-page p { margin: 10px 0 0; font-size: 13px; }
  main .ocr-motion__origin { clear: both; padding-top: 8px; margin-top: 6px; }
  main .ocr-motion__mini-page .ocr-motion__archive-photo { height: 164px; }
  main .ocr-motion__found { left: 18px; right: 18px; bottom: 22px; font-size: 13px; }
}
