/* Home conversion reel: a looping motion sequence built from the Dashboard
   converter markup and styles (conv-* values mirror dashboard.html). */
.home-reel {
  --reel-w: 800;
  --reel-h: 520;
  --reel-scale: 1;
  --reel-ease: cubic-bezier(0.22, 1, 0.36, 1);
  position: relative;
  width: 100%;
  margin: 0;
  aspect-ratio: 800 / 520;
  overflow: hidden;
  border: 1px solid rgba(20, 47, 79, .08);
  border-radius: 22px;
  background: #f5f8fb;
  box-shadow: 0 24px 58px rgba(4, 18, 31, .2);
}

.home-reel[data-format="portrait"] {
  --reel-w: 480;
  --reel-h: 720;
  aspect-ratio: 480 / 720;
  border-radius: 16px;
}

/* Reserve the portrait box before the script runs, so the page does not shift. */
.home-demo__product-column {
  container-type: inline-size;
}

@container (max-width: 519px) {
  .home-reel {
    --reel-format: portrait;
    aspect-ratio: 480 / 720;
    border-radius: 16px;
  }
}

.home-reel__canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: calc(var(--reel-w) * 1px);
  height: calc(var(--reel-h) * 1px);
  overflow: hidden;
  color: #0d1b24;
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  pointer-events: none;
  transform: scale(var(--reel-scale));
  transform-origin: 0 0;
  user-select: none;
  background:
    radial-gradient(circle at 50% 0, rgba(249, 115, 22, .08), transparent 42%),
    linear-gradient(180deg, #f8fafc, #edf2f6);
}

.home-reel.is-resetting *,
.home-reel.is-resetting *::before,
.home-reel.is-resetting *::after {
  transition: none !important;
  animation: none !important;
}

.home-reel.is-paused *,
.home-reel.is-paused *::before,
.home-reel.is-paused *::after {
  animation-play-state: paused !important;
}

/* Scenes */
.reel-scene {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transform: scale(.985);
  transition: opacity 480ms ease, transform 640ms var(--reel-ease), visibility 0s linear 480ms;
}

.home-reel[data-scene="app"] .reel-scene--app,
.home-reel[data-scene="output"] .reel-scene--output,
.home-reel[data-scene="langs"] .reel-scene--langs,
.home-reel[data-scene="features"] .reel-scene--features,
.home-reel[data-scene="end"] .reel-scene--end {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition: opacity 480ms ease, transform 640ms var(--reel-ease), visibility 0s;
}

/* Browser chrome around the Dashboard */
.reel-window {
  position: absolute;
  inset: 16px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid #d7e1e6;
  border-radius: 14px;
  background: #f4f7f8;
  box-shadow: 0 18px 44px rgba(8, 20, 28, .11);
}

.reel-window__bar {
  display: flex;
  flex: 0 0 34px;
  align-items: center;
  gap: 6px;
  padding: 0 12px;
  border-bottom: 1px solid #d7e1e6;
  background: #fff;
}

.reel-window__bar > i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #d7e1e6;
}

.reel-window__url {
  margin-left: 10px;
  padding: 4px 12px;
  border-radius: 999px;
  color: #526878;
  background: #f4f7f8;
  font-size: 11px;
  font-weight: 600;
}

.reel-window__body {
  position: relative;
  flex: 1;
  min-height: 0;
  padding: 16px 28px 18px;
}

.reel-window__title {
  margin: 0 0 12px;
  color: #0d1b24;
  font-family: "Space Grotesk", "Inter", sans-serif;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -.01em;
}

/* Conversion card and its views (dashboard .conversion-card / .conv-view) */
.reel-card {
  position: relative;
  height: calc(100% - 42px);
  border: 1px solid #e6edef;
  border-radius: 24px;
  background: rgba(255, 255, 255, .9);
  box-shadow: 0 18px 44px rgba(8, 20, 28, .11);
}

.reel-view {
  position: absolute;
  inset: 0;
  padding: 18px 20px;
  opacity: 0;
  transform: translateY(.65rem) scale(.992);
  transition: opacity 300ms ease, transform 520ms var(--reel-ease);
}

.home-reel:not(.s-processing) .reel-view--idle,
.home-reel.s-processing:not(.s-success) .reel-view--processing,
.home-reel.s-success .reel-view--success {
  opacity: 1;
  transform: none;
}

/* Dropzone (dashboard .conv-dropzone) */
.home-reel .conv-dropzone {
  position: relative;
  display: grid;
  height: 144px;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(30, 58, 95, .16);
  border-radius: 16px;
  background: rgba(245, 248, 251, .82);
  box-shadow: inset 0 2px 8px rgba(0, 0, 0, .02), 0 10px 30px rgba(0, 0, 0, .03);
  text-align: center;
  transition: border-color .3s, background-color .3s, transform .25s ease;
}

.home-reel .conv-dropzone::after {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 0;
  color: #0d1b24;
  content: '\0905';
  font-family: "Noto Sans Devanagari", "Inter", sans-serif;
  font-size: 150px;
  opacity: .02;
  transform: translate(-50%, -50%);
}

.home-reel.s-drag:not(.s-file) .conv-dropzone {
  border-color: #2563eb;
  background-color: #eff6ff;
  transform: scale(1.01);
}

.home-reel.s-file .conv-dropzone {
  border-color: #22c55e;
  background-color: #f0fdf4;
}

.reel-drop-empty,
.reel-drop-file {
  position: relative;
  z-index: 1;
  grid-area: 1 / 1;
  transition: opacity 260ms ease, transform 420ms var(--reel-ease);
}

.home-reel.s-file .reel-drop-empty,
.home-reel:not(.s-file) .reel-drop-file {
  opacity: 0;
  transform: translateY(6px);
}

.reel-upload-icon {
  display: grid;
  width: 50px;
  height: 50px;
  margin: 0 auto 10px;
  place-items: center;
  border: 1px solid #d7e1e6;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 8px 22px rgba(8, 20, 28, .07);
}

.reel-upload-icon svg {
  width: 24px;
  height: 24px;
  color: #c2410c;
}

.reel-drop-empty strong {
  display: block;
  color: #1f2937;
  font-size: 15px;
}

.reel-drop-empty small {
  display: block;
  margin-top: 3px;
  color: #526878;
  font-size: 12px;
}

.reel-file-row {
  display: flex;
  min-width: 320px;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  background: #fff;
  text-align: left;
  box-shadow: 0 6px 16px rgba(8, 20, 28, .06);
}

.reel-file-row strong {
  display: block;
  color: #1f2937;
  font-size: 13px;
}

.reel-file-row small {
  color: #526878;
  font-size: 11px;
}

.reel-file-row > svg {
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
}

.reel-file-row__check {
  width: 20px;
  height: 20px;
  margin-left: auto;
  color: #22c55e;
}

/* The file chip that is dragged in */
.reel-drag-chip {
  position: absolute;
  z-index: 8;
  top: 300px;
  left: 640px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border: 1px solid #d7e1e6;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 16px 34px rgba(8, 20, 28, .18);
  font-size: 12px;
  font-weight: 700;
  opacity: 0;
  transform: rotate(-4deg);
  transition: top 800ms var(--reel-ease), left 800ms var(--reel-ease), opacity 260ms ease, transform 800ms var(--reel-ease);
}

.reel-drag-chip svg {
  width: 18px;
  height: 18px;
}

.home-reel.s-drag .reel-drag-chip {
  top: 128px;
  left: 330px;
  opacity: 1;
  transform: rotate(0);
}

.home-reel.s-file .reel-drag-chip {
  opacity: 0;
  transform: scale(.8);
}

.home-reel[data-format="portrait"] .reel-drag-chip { top: 420px; left: 300px; }
.home-reel[data-format="portrait"].s-drag .reel-drag-chip { top: 150px; left: 150px; }

/* Output format toggles (dashboard .conv-toggle, site-app checked state) */
.reel-label {
  display: block;
  margin: 14px 0 7px;
  color: #374151;
  font-size: 13px;
  font-weight: 700;
}

.reel-formats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.home-reel .conv-toggle {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  padding: 11px 14px;
  border: 2px solid #e5e7eb;
  border-radius: 12px;
  color: #405968;
  background: #fff;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.25;
  text-align: center;
  transition: border-color .2s ease, background-color .2s ease, color .2s ease, box-shadow .2s ease;
}

.home-reel .conv-toggle svg {
  width: 20px;
  height: 20px;
}

.home-reel .conv-toggle small {
  display: block;
  color: inherit;
  font-size: 11.5px;
  opacity: .85;
}

.home-reel.s-word .conv-toggle[data-reel-word],
.home-reel.s-excel .conv-toggle[data-reel-excel],
.home-reel.s-md .conv-toggle[data-reel-md] {
  border-color: #1e3a5f;
  color: #1e3a5f;
  background-color: #f3f7fa;
  box-shadow: 0 2px 8px rgba(30, 58, 95, .12);
  font-weight: 700;
}

/* Liquid action buttons (dashboard .conv-liquid-action & #conv-convert-btn) */
.home-reel .conv-liquid-action {
  --conv-action-rgb: 249, 115, 22;
  --conv-action-dark-rgb: 234, 88, 12;
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .52);
  border-radius: 12px;
  color: #fff;
  font-weight: 700;
  background:
    radial-gradient(90% 170% at 8% -78%, rgba(255, 255, 255, .4) 0%, rgba(255, 255, 255, .12) 43%, transparent 67%),
    linear-gradient(180deg, rgba(var(--conv-action-rgb), .82) 0%, rgba(var(--conv-action-rgb), .9) 54%, rgba(var(--conv-action-dark-rgb), .94) 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .58),
    inset 0 -1px 0 rgba(var(--conv-action-dark-rgb), .34),
    inset 0 -12px 24px rgba(var(--conv-action-dark-rgb), .1),
    0 8px 18px rgba(var(--conv-action-rgb), .2),
    0 2px 4px rgba(var(--conv-action-dark-rgb), .13);
  transition: transform 280ms var(--reel-ease), filter 280ms ease, box-shadow 280ms ease;
}

.home-reel .conv-liquid-action::after {
  position: absolute;
  top: -88%;
  left: -24%;
  z-index: 1;
  width: 13%;
  height: 276%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .58), transparent);
  content: "";
  opacity: .42;
  transform: rotate(18deg);
  transition: left 720ms var(--reel-ease), opacity 240ms ease;
}

.home-reel .conv-liquid-action > * {
  position: relative;
  z-index: 2;
}

.home-reel .conv-liquid-action svg {
  width: 20px;
  height: 20px;
}

.reel-convert {
  width: 100%;
  height: 54px;
  margin-top: 16px;
  font-size: 16.5px;
}

.home-reel.s-hover-convert .reel-convert {
  filter: saturate(1.04) brightness(1.025);
  transform: translateY(-1px) scale(1.006);
}

.home-reel.s-hover-convert .reel-convert::after,
.home-reel.s-hover-download .reel-download::after {
  left: 116%;
  opacity: .58;
}

.home-reel.s-press .reel-convert,
.home-reel.s-press-download .reel-download {
  filter: saturate(1.02) brightness(.99);
  transform: translateY(1px) scale(.984);
}

/* Processing theater (dashboard .conv-theater / .conv-preview-stage) */
.reel-view--processing {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.home-reel .conv-progress-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
}

.home-reel .conv-page-meta {
  color: #52627a;
  font-size: 13px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.home-reel .conv-theater-progress {
  height: 9px;
  overflow: hidden;
  border-radius: 999px;
  background: #dbe3ed;
}

.home-reel .conv-theater-progress > span {
  display: block;
  width: var(--reel-progress, 0%);
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #2563eb, #60a5fa);
  transition: width 900ms ease;
}

.home-reel .conv-progress-number {
  min-width: 44px;
  color: #1a2e4a;
  font-size: 14px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  text-align: right;
}

.home-reel .conv-preview-stage {
  --conv-glass-primary: 37, 99, 235;
  --conv-glass-secondary: 34, 211, 238;
  position: relative;
  display: grid;
  flex: 1;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(147, 197, 253, .78);
  border-radius: 14px;
  background: #eaf1f8;
}

.home-reel .conv-preview-stage[data-stage="ocr"] {
  --conv-glass-primary: 8, 145, 178;
  --conv-glass-secondary: 34, 211, 238;
}

.home-reel .conv-preview-stage[data-stage="layout_analysis"],
.home-reel .conv-preview-stage[data-stage="semantic_structuring"] {
  --conv-glass-primary: 124, 58, 237;
  --conv-glass-secondary: 56, 189, 248;
}

.home-reel .conv-preview-stage[data-stage="validating"] {
  --conv-glass-primary: 5, 150, 105;
  --conv-glass-secondary: 52, 211, 153;
}

.home-reel .conv-container-gradient {
  position: absolute;
  inset: 0;
  overflow: hidden;
  border-radius: inherit;
}

.home-reel .conv-container-gradient > span {
  position: absolute;
}

.home-reel .conv-container-gradient-layer--wash {
  inset: -14%;
  background:
    radial-gradient(ellipse 72% 48% at 18% 22%, rgba(var(--conv-glass-primary), .14), transparent 72%),
    radial-gradient(ellipse 68% 44% at 82% 78%, rgba(var(--conv-glass-secondary), .11), transparent 74%);
  animation: reel-wash 5.8s ease-in-out infinite alternate;
}

.home-reel .conv-container-gradient-layer--sweep {
  inset: -18% -55%;
  background: linear-gradient(112deg, transparent 30%, rgba(var(--conv-glass-primary), .04) 39%, rgba(255, 255, 255, .46) 48%, rgba(var(--conv-glass-secondary), .08) 55%, transparent 66%);
  animation: reel-sweep 4.8s ease-in-out infinite;
}

.home-reel .conv-container-gradient-layer--scan {
  top: 12%;
  right: 0;
  left: 0;
  z-index: 4;
  display: none;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(var(--conv-glass-secondary), .9), transparent);
  box-shadow: 0 0 14px rgba(var(--conv-glass-secondary), .68);
}

.home-reel .conv-preview-stage[data-stage="ocr"] .conv-container-gradient-layer--scan {
  display: block;
  animation: reel-scan 1.1s ease-in-out infinite alternate;
}

.reel-preview-frame {
  position: relative;
  z-index: 2;
  width: 172px;
  height: 238px;
}

.reel-preview-frame .reel-paper {
  transform: scale(.573);
  transform-origin: 0 0;
}

.home-reel .conv-ai-status {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 6;
  transform: translate(-50%, -50%);
}

.home-reel .conv-ai-status-label {
  display: inline-flex;
  min-width: 250px;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .9);
  border-radius: 999px;
  color: #0f2a4f;
  background: rgba(247, 251, 255, .8);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .98),
    inset 0 -10px 24px rgba(var(--conv-glass-primary), .055),
    0 14px 34px rgba(15, 23, 42, .14);
  padding: 10px 18px;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: .012em;
  white-space: nowrap;
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  backdrop-filter: blur(14px) saturate(140%);
}

.home-reel .conv-ai-status-label::after {
  width: 1px;
  height: 1.18em;
  margin-left: 6px;
  background: rgb(var(--conv-glass-primary));
  box-shadow: 0 0 7px rgba(var(--conv-glass-primary), .55);
  content: "";
  animation: reel-caret .72s steps(1, end) infinite;
}

.home-reel .conv-ai-status-message {
  display: inline-block;
  overflow: hidden;
}

.home-reel .conv-ai-status-label.is-typing .conv-ai-status-message {
  animation: reel-type 420ms steps(var(--reel-chars, 12), end) both;
}

/* Layout analysis outlines the regions it found */
.reel-preview-frame [data-block] {
  transition: box-shadow 360ms ease, background-color 360ms ease;
}

.home-reel.s-layout .reel-preview-frame [data-block] {
  border-radius: 3px;
  background-color: rgba(124, 58, 237, .06);
  box-shadow: 0 0 0 3px rgba(124, 58, 237, .7);
}

.home-reel.s-checked .reel-preview-frame [data-block] {
  background-color: rgba(5, 150, 105, .06);
  box-shadow: 0 0 0 3px rgba(5, 150, 105, .65);
}

/* Success view (dashboard #conv-success) */
.reel-view--success {
  display: grid;
  place-content: center;
  justify-items: center;
  text-align: center;
}

.reel-ring {
  position: relative;
  width: 96px;
  height: 96px;
  margin-bottom: 12px;
}

.reel-ring svg {
  width: 100%;
  height: 100%;
}

.reel-ring__arc {
  stroke-dasharray: 276.46;
  stroke-dashoffset: 276.46;
  transition: stroke-dashoffset 900ms var(--reel-ease);
}

.home-reel.s-success .reel-ring__arc {
  stroke-dashoffset: 0;
}

.reel-ring__check {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: #22c55e;
  opacity: 0;
  transform: scale(.5);
  transition: opacity 300ms ease 500ms, transform 500ms cubic-bezier(.34, 1.56, .64, 1) 500ms;
}

.reel-ring__check svg {
  width: 30px;
  height: 30px;
}

.home-reel.s-success .reel-ring__check {
  opacity: 1;
  transform: none;
}

.reel-view--success h3 {
  margin: 0 0 4px;
  color: #111827;
  font-size: 22px;
  font-weight: 700;
}

.reel-view--success p {
  margin: 0 0 16px;
  color: #64748b;
  font-size: 13px;
}

.reel-download {
  --conv-action-rgb: 21, 128, 61 !important;
  --conv-action-dark-rgb: 22, 101, 52 !important;
  height: 52px;
  padding: 0 32px;
  font-size: 16px;
}

.home-reel.s-hover-download .reel-download {
  filter: saturate(1.04) brightness(1.025);
  transform: translateY(-1px) scale(1.006);
}

/* Pointer */
.reel-pointer {
  position: absolute;
  z-index: 9;
  top: 0;
  left: 0;
  width: 22px;
  height: 22px;
  opacity: 0;
  filter: drop-shadow(0 3px 5px rgba(8, 20, 28, .3));
  transform: translate(var(--reel-px, 620px), var(--reel-py, 470px));
  transition: transform 700ms var(--reel-ease), opacity 300ms ease;
}

.home-reel.s-pointer:not(.s-pointer-out) .reel-pointer {
  opacity: 1;
}

/* Sample page: one Hindi notice used as the scan and the rebuilt document */
.reel-paper {
  width: 300px;
  height: 416px;
  padding: 22px 22px 18px;
  overflow: hidden;
  color: #1f2a37;
  background: #fff;
  font-family: "Noto Sans Devanagari", "Nirmala UI", "Mangal", sans-serif;
}

.reel-paper--scan {
  border-radius: 3px;
  color: #3a3226;
  background:
    radial-gradient(circle at 80% 12%, rgba(120, 90, 40, .08), transparent 40%),
    radial-gradient(circle at 10% 90%, rgba(80, 60, 30, .1), transparent 45%),
    linear-gradient(180deg, #f6f0e2, #eee5d1);
  box-shadow: 0 20px 45px rgba(15, 23, 42, .18), inset 0 0 40px rgba(90, 70, 30, .12);
  filter: contrast(.94);
}

.reel-paper--scan > * {
  filter: blur(.25px);
}

.reel-paper [data-block] {
  margin: 0 0 10px;
}

.reel-paper__head {
  font-size: 19px;
  font-weight: 700;
  line-height: 1.35;
  text-align: center;
}

.reel-paper__head small {
  display: block;
  font-size: 13px;
  font-weight: 600;
}

.reel-paper__body {
  font-size: 12px;
  line-height: 1.6;
}

.reel-paper table {
  width: 100%;
  border-collapse: collapse;
  font-size: 11px;
  line-height: 1.35;
}

.reel-paper th,
.reel-paper td {
  padding: 4px 6px;
  border: 1px solid currentColor;
  text-align: left;
}

.reel-paper th {
  font-weight: 700;
}

.reel-paper td:last-child,
.reel-paper th:last-child {
  text-align: right;
}

.reel-paper__sign {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  font-weight: 600;
}

.reel-stamp {
  display: grid;
  width: 64px;
  height: 64px;
  place-items: center;
  border: 2px solid rgba(29, 78, 216, .7);
  border-radius: 50%;
  color: rgba(29, 78, 216, .8);
  font-size: 9px;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  transform: rotate(-12deg);
}

/* Output scene: scan beside the rebuilt Word document */
.reel-output {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 34px;
  padding: 24px;
}

.reel-output__scan {
  position: relative;
  flex: 0 0 auto;
  width: 225px;
  height: 312px;
  transform: rotate(-2.5deg);
}

.reel-output__scan .reel-paper {
  transform: scale(.75);
  transform-origin: 0 0;
}

.reel-output__scan [data-block] {
  transition: box-shadow 360ms ease, background-color 360ms ease;
}

.reel-output__arrow {
  flex: 0 0 auto;
  width: 40px;
  height: 40px;
  color: #f97316;
}

.reel-docx {
  flex: 0 0 auto;
  width: 400px;
  overflow: hidden;
  border: 1px solid #d7e1e6;
  border-radius: 12px;
  background: #f3f4f6;
  box-shadow: 0 22px 50px rgba(8, 20, 28, .16);
}

.reel-docx__bar {
  display: flex;
  height: 32px;
  align-items: center;
  gap: 8px;
  padding: 0 12px;
  color: #fff;
  background: #185abd;
  font-size: 11px;
  font-weight: 600;
}

.reel-docx__bar svg {
  width: 16px;
  height: 16px;
}

.reel-docx__ribbon {
  display: flex;
  height: 22px;
  align-items: center;
  gap: 14px;
  padding: 0 12px;
  border-bottom: 1px solid #e5e7eb;
  color: #4b5563;
  background: #fff;
  font-size: 10px;
}

.reel-docx__ribbon b {
  color: #185abd;
}

.reel-docx__page {
  width: 300px;
  height: 386px;
  margin: 12px auto 0;
  overflow: hidden;
  box-shadow: 0 4px 14px rgba(15, 23, 42, .1);
}

.reel-docx__page .reel-paper {
  height: 386px;
}

.reel-docx [data-block] {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 420ms ease, transform 560ms var(--reel-ease);
}

.home-reel.s-b1 .reel-docx [data-block="1"],
.home-reel.s-b2 .reel-docx [data-block="2"],
.home-reel.s-b3 .reel-docx [data-block="3"],
.home-reel.s-b4 .reel-docx [data-block="4"] {
  opacity: 1;
  transform: none;
}

.home-reel.s-b1:not(.s-b2) .reel-output__scan [data-block="1"],
.home-reel.s-b2:not(.s-b3) .reel-output__scan [data-block="2"],
.home-reel.s-b3:not(.s-b4) .reel-output__scan [data-block="3"],
.home-reel.s-b4:not(.s-b5) .reel-output__scan [data-block="4"] {
  border-radius: 3px;
  background-color: rgba(249, 115, 22, .12);
  box-shadow: 0 0 0 3px rgba(249, 115, 22, .8);
}

.reel-tag {
  position: absolute;
  z-index: 3;
  padding: 5px 11px;
  border-radius: 999px;
  color: #fff;
  background: #1e3a5f;
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
  box-shadow: 0 8px 18px rgba(8, 20, 28, .18);
}

.reel-output__scan .reel-tag {
  top: -12px;
  left: 12px;
  background: #78716c;
}

.reel-docx-wrap {
  position: relative;
}

.reel-docx-wrap .reel-tag {
  top: -12px;
  right: 14px;
  background: #22a35a;
  opacity: 0;
  transition: opacity 300ms ease;
}

.home-reel.s-b5 .reel-docx-wrap .reel-tag {
  opacity: 1;
}

/* Image input variation: camera photo frame & badge accent */
.home-reel[data-reel-input="image"] .reel-paper--scan {
  border: 4px solid #e2dfd7;
  background:
    radial-gradient(circle at 86% 10%, rgba(255, 255, 255, .36), transparent 34%),
    radial-gradient(circle at 12% 92%, rgba(55, 48, 36, .16), transparent 48%),
    linear-gradient(176deg, #f7f2e7 0%, #eae0cb 100%);
  box-shadow: 0 22px 46px rgba(15, 23, 42, .22), inset 0 0 34px rgba(70, 55, 28, .14);
}

.home-reel[data-reel-input="image"] .reel-output__scan .reel-tag {
  background: #0f766e;
}

/* Excel output variation (.reel-xlsx) */
.reel-xlsx {
  background: #fff;
}

.reel-xlsx .reel-docx__bar {
  background: #107c41;
}

.reel-xlsx .reel-docx__ribbon b {
  color: #107c41;
}

.reel-xlsx__fx {
  display: flex;
  height: 22px;
  align-items: center;
  gap: 8px;
  padding: 0 10px;
  border-bottom: 1px solid #e5e7eb;
  color: #475569;
  background: #f8fafc;
  font-size: 10px;
}

.reel-xlsx__fx span {
  padding: 1px 6px;
  border: 1px solid #cbd5e1;
  border-radius: 3px;
  color: #0f172a;
  background: #fff;
  font-weight: 700;
}

.reel-xlsx__fx i {
  color: #107c41;
  font-family: Georgia, serif;
  font-style: italic;
  font-weight: 700;
}

.reel-xlsx__fx code {
  color: #0f172a;
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 10px;
}

.reel-xlsx__sheet {
  height: 350px;
  padding: 0;
  overflow: hidden;
  background: #fff;
  font-family: "Noto Sans Devanagari", "Nirmala UI", "Mangal", sans-serif;
}

.reel-xlsx__grid {
  width: 100%;
  border-collapse: collapse;
  font-size: 10.5px;
  line-height: 1.32;
}

.reel-xlsx__grid th,
.reel-xlsx__grid td {
  padding: 4px 6px;
  border: 1px solid #e2e8f0;
  color: #1e293b;
  text-align: left;
}

.reel-xlsx__grid thead th,
.reel-xlsx__row-idx {
  width: 24px;
  padding: 3px 4px !important;
  background: #f1f5f9;
  color: #64748b !important;
  font-family: "Inter", system-ui, sans-serif;
  font-size: 9.5px;
  font-weight: 600;
  text-align: center !important;
}

.reel-xlsx__title td {
  background: #ecfdf5;
  color: #065f46;
  font-size: 12px;
  font-weight: 700;
  text-align: center;
}

.reel-xlsx__title small {
  display: block;
  color: #047857;
  font-size: 10px;
  font-weight: 600;
}

.reel-xlsx__note td {
  background: #f8fafc;
  color: #334155;
  font-size: 10px;
  line-height: 1.45;
}

.reel-xlsx__head td {
  background: #107c41 !important;
  color: #fff !important;
  font-weight: 700;
}

.reel-xlsx__num {
  text-align: right !important;
  font-variant-numeric: tabular-nums;
}

.reel-xlsx__total td {
  background: #f0fdf4;
  font-weight: 700;
}

.reel-xlsx__active-cell {
  outline: 2px solid #107c41;
  outline-offset: -2px;
  background: #dcfce7 !important;
  color: #065f46 !important;
}

.reel-xlsx__sign td {
  background: #eff6ff;
  color: #1e3a8a;
  font-size: 10px;
  font-weight: 600;
}

.reel-xlsx__tabs {
  display: flex;
  height: 26px;
  align-items: center;
  gap: 6px;
  padding: 0 10px;
  border-top: 1px solid #cbd5e1;
  background: #f1f5f9;
  font-size: 10px;
}

.reel-xlsx__tabs .is-active {
  padding: 3px 10px;
  border-bottom: 2px solid #107c41;
  border-radius: 4px 4px 0 0;
  color: #107c41;
  background: #fff;
  font-weight: 700;
}

/* Markdown output variation (.reel-md) */
.reel-md {
  background: #0f172a;
  border-color: #1e293b;
}

.reel-md .reel-docx__bar {
  background: #163454;
}

.reel-md .reel-docx__ribbon {
  border-bottom-color: #1e293b;
  color: #94a3b8;
  background: #0b1324;
}

.reel-md .reel-docx__ribbon b {
  color: #38bdf8;
}

.reel-md__body {
  height: 398px;
  padding: 14px 16px;
  overflow: hidden;
  color: #e2e8f0;
  background: #0f172a;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "Noto Sans Devanagari", sans-serif;
  font-size: 11px;
  line-height: 1.5;
}

.reel-md__body [data-block] {
  margin: 0 0 10px;
}

.reel-md__h1 {
  display: block;
  color: #f8fafc;
  font-size: 14px;
  font-weight: 700;
}

.reel-md__h2 {
  display: block;
  margin-top: 2px;
  color: #cbd5e1;
  font-size: 11.5px;
  font-weight: 600;
}

.reel-md__h1 i,
.reel-md__h2 i {
  color: #fb923c;
  font-style: normal;
  font-weight: 800;
}

.reel-md__p {
  padding: 6px 8px;
  border-radius: 6px;
  color: #cbd5e1;
  background: rgba(30, 41, 59, .55);
  font-size: 10.8px;
  line-height: 1.55;
}

.reel-md__p b,
.reel-md__quote b {
  color: #38bdf8;
}

.reel-md__table {
  margin: 0 0 10px;
  padding: 8px 10px;
  overflow: hidden;
  border: 1px solid #1e293b;
  border-radius: 8px;
  color: #e2e8f0;
  background: #0b1324;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "Noto Sans Devanagari", monospace;
  font-size: 10px;
  line-height: 1.42;
  white-space: pre;
}

.reel-md__quote {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border-left: 3px solid #38bdf8;
  border-radius: 0 6px 6px 0;
  color: #e2e8f0;
  background: rgba(56, 189, 248, .08);
  font-size: 10.8px;
}

.reel-md__quote i {
  color: #38bdf8;
  font-style: normal;
  font-weight: 800;
}

/* Language wall */
.reel-langs {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  grid-auto-rows: 1fr;
  gap: 8px;
  padding: 16px 16px 34px;
  transition: transform 4.2s ease-out, filter 600ms ease;
}

.home-reel[data-scene="langs"] .reel-langs {
  transform: scale(1.02);
}

.home-reel.s-langcap .reel-langs {
  filter: blur(1.5px) saturate(.9);
}

.reel-lang {
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 4px;
  border: 1px solid #d7e1e6;
  border-radius: 12px;
  background: rgba(255, 255, 255, .9);
  box-shadow: 0 6px 16px rgba(8, 20, 28, .05);
  opacity: 0;
}

.home-reel[data-scene="langs"] .reel-lang {
  animation: reel-tile-in 520ms var(--reel-ease) calc(var(--i) * 38ms) both;
}

.reel-lang b {
  color: #1e3a5f;
  font-family: "Noto Sans Devanagari", "Nirmala UI", "Segoe UI", "Segoe UI Historic", "Gadugi", "Microsoft Himalaya", "Myanmar Text", "Leelawadee UI", "Khmer UI", "Malgun Gothic", "Yu Gothic", "Microsoft YaHei", system-ui, sans-serif;
  font-size: 40px;
  font-weight: 600;
  line-height: 1.15;
}

.reel-lang:nth-child(3n + 2) b { color: #c2410c; }
.reel-lang:nth-child(5n + 4) b { color: #2563eb; }

.reel-lang small {
  color: #526878;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .02em;
}

.reel-langs__caption {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 3;
  width: max-content;
  max-width: calc(100% - 64px);
  padding: 18px 28px;
  border: 1px solid rgba(255, 255, 255, .9);
  border-radius: 20px;
  color: #0d1b24;
  background: rgba(255, 255, 255, .88);
  box-shadow: 0 24px 50px rgba(8, 20, 28, .2);
  text-align: center;
  opacity: 0;
  transform: translate(-50%, -40%) scale(.96);
  transition: opacity 420ms ease, transform 620ms var(--reel-ease);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

.home-reel.s-langcap .reel-langs__caption {
  opacity: 1;
  transform: translate(-50%, -50%);
}

.reel-kicker {
  display: block;
  margin-bottom: 6px;
  color: #c2410c;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .13em;
  text-transform: uppercase;
}

.reel-langs__caption strong,
.reel-features__title {
  display: block;
  font-family: "Space Grotesk", "Inter", sans-serif;
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -.03em;
  line-height: 1.15;
}

.reel-langs__caption small {
  display: block;
  margin-top: 6px;
  color: #405968;
  font-size: 13px;
}

/* Feature grid */
.reel-features {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 20px 24px 36px;
}

.reel-features__title {
  font-size: 24px;
  text-align: center;
}

.reel-pipeline {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  padding: 14px 18px;
  border-radius: 16px;
  color: #fff;
  background: #1a2e4a;
  box-shadow: 0 14px 30px rgba(26, 46, 74, .22);
  opacity: 0;
}

.home-reel[data-scene="features"] .reel-pipeline {
  animation: reel-card-in 520ms var(--reel-ease) 120ms both;
}

.reel-pipeline__group {
  display: flex;
  align-items: center;
  gap: 8px;
}

.reel-pipeline__item {
  display: grid;
  justify-items: center;
  gap: 3px;
  font-size: 11px;
  font-weight: 700;
}

.reel-pipeline__item svg {
  width: 30px;
  height: 30px;
}

.reel-pipeline__arrow {
  width: 30px;
  height: 30px;
  color: #fb923c;
}

.reel-pipeline__copy {
  max-width: 170px;
  color: #c7d4db;
  font-size: 12px;
  line-height: 1.35;
}

.reel-pipeline__copy b {
  display: block;
  color: #fff;
  font-size: 14px;
}

.reel-feature-grid {
  display: grid;
  flex: 1;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-rows: 1fr;
  gap: 10px;
}

.reel-feature {
  position: relative;
  padding: 14px;
  border: 1px solid #d7e1e6;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 8px 20px rgba(8, 20, 28, .05);
  opacity: 0;
}

.home-reel[data-scene="features"] .reel-feature {
  animation:
    reel-card-in 520ms var(--reel-ease) calc(380ms + var(--i) * 90ms) both,
    reel-card-glow 900ms ease calc(1500ms + var(--i) * 260ms) both;
}

.reel-feature__icon {
  display: grid;
  width: 34px;
  height: 34px;
  margin-bottom: 8px;
  place-items: center;
  border-radius: 10px;
  color: #c2410c;
  background: #fff7ed;
}

.reel-feature:nth-child(even) .reel-feature__icon {
  color: #1e3a5f;
  background: #eef4fb;
}

.reel-feature__icon svg {
  width: 19px;
  height: 19px;
}

.reel-feature strong {
  display: block;
  color: #0d1b24;
  font-size: 14px;
  font-weight: 800;
}

.reel-feature small {
  display: block;
  margin-top: 3px;
  color: #526878;
  font-size: 11.5px;
  line-height: 1.38;
}

/* End card */
.reel-end {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 10px;
  text-align: center;
}

.reel-end img {
  width: 64px;
  height: 64px;
  border-radius: 14px;
}

.home-reel[data-scene="end"] .reel-end > * {
  animation: reel-card-in 620ms var(--reel-ease) calc(var(--i, 0) * 140ms) both;
}

.reel-end strong {
  font-family: "Space Grotesk", "Inter", sans-serif;
  font-size: 40px;
  font-weight: 700;
  letter-spacing: -.04em;
  color: #1a2e4a;
}

.reel-end span {
  color: #c2410c;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .13em;
  text-transform: uppercase;
}

.reel-end small {
  color: #405968;
  font-size: 15px;
}

/* One progress bar for the whole walkthrough, over the bottom of the video */
.home-reel__progress {
  position: absolute;
  right: 60px;
  bottom: 22px;
  left: 18px;
  z-index: 10;
  height: 3px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(30, 58, 95, .14);
  pointer-events: none;
}

.home-reel__progress span {
  display: block;
  width: calc(var(--fill, 0) * 100%);
  height: 100%;
  border-radius: inherit;
  background: #f97316;
}

/* Pause control (outside the scaled canvas) */
.home-reel__toggle {
  position: absolute;
  right: 12px;
  bottom: 6px;
  z-index: 11;
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border: 1px solid #d7e1e6;
  border-radius: 50%;
  color: #1e3a5f;
  background: rgba(255, 255, 255, .92);
  box-shadow: 0 4px 12px rgba(8, 20, 28, .1);
  cursor: pointer;
}

.home-reel__toggle:hover {
  background: #fff;
}

.home-reel__toggle:focus-visible {
  outline: 3px solid rgba(249, 115, 22, .45);
  outline-offset: 2px;
}

.home-reel__toggle svg {
  width: 16px;
  height: 16px;
}

.home-reel__toggle [data-reel-icon="play"],
.home-reel.is-user-paused .home-reel__toggle [data-reel-icon="pause"] {
  display: none;
}

.home-reel.is-user-paused .home-reel__toggle [data-reel-icon="play"] {
  display: block;
}

.home-reel__sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* Portrait canvas */
.home-reel[data-format="portrait"] .reel-window__body { padding: 14px 18px 16px; }
.home-reel[data-format="portrait"] .reel-file-row { min-width: 0; }
.home-reel[data-format="portrait"] .conv-dropzone { height: 210px; }
.home-reel[data-format="portrait"] .reel-formats { grid-template-columns: minmax(0, 1fr); gap: 8px; }
.home-reel[data-format="portrait"] .reel-preview-frame { width: 225px; height: 312px; }
.home-reel[data-format="portrait"] .reel-preview-frame .reel-paper { transform: scale(.75); }
.home-reel[data-format="portrait"] .reel-output { display: block; padding: 0; }
.home-reel[data-format="portrait"] .reel-output__scan { position: absolute; top: 16px; left: 26px; z-index: 2; width: 150px; height: 208px; transform: rotate(-4deg); }
.home-reel[data-format="portrait"] .reel-output__scan .reel-paper { transform: scale(.5); }
.home-reel[data-format="portrait"] .reel-output__arrow { position: absolute; top: 120px; left: 214px; width: 52px; height: 52px; transform: rotate(35deg); }
.home-reel[data-format="portrait"] .reel-docx-wrap { position: absolute; top: 238px; right: 22px; }
.home-reel[data-format="portrait"] .reel-docx { width: 400px; }
.home-reel[data-format="portrait"] .reel-langs { grid-template-columns: repeat(4, minmax(0, 1fr)); padding: 14px 14px 52px; }
.home-reel[data-format="portrait"] .reel-langs__caption strong { font-size: 24px; }
.home-reel[data-format="portrait"] .reel-features { gap: 10px; padding: 18px 16px 58px; }
.home-reel[data-format="portrait"] .reel-features__title { font-size: 22px; }
.home-reel[data-format="portrait"] .reel-pipeline { flex-wrap: wrap; gap: 12px; }
.home-reel[data-format="portrait"] .reel-pipeline__copy { max-width: none; flex-basis: 100%; text-align: center; }
.home-reel[data-format="portrait"] .reel-feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.home-reel[data-format="portrait"] .reel-feature { display: grid; grid-template-columns: 30px minmax(0, 1fr); column-gap: 10px; align-content: center; padding: 10px 12px; }
.home-reel[data-format="portrait"] .reel-feature__icon { grid-row: span 2; width: 30px; height: 30px; margin: 0; }
.home-reel[data-format="portrait"] .reel-feature strong { font-size: 13.5px; }
.home-reel[data-format="portrait"] .reel-feature small { font-size: 11px; }

@keyframes reel-wash {
  from { opacity: .62; transform: translate3d(-3%, -2%, 0) scale(1); }
  to { opacity: 1; transform: translate3d(4%, 3%, 0) scale(1.08); }
}

@keyframes reel-sweep {
  0%, 12% { opacity: 0; transform: translateX(-25%); }
  35% { opacity: .82; }
  72%, 100% { opacity: 0; transform: translateX(25%); }
}

@keyframes reel-scan {
  from { top: 12%; }
  to { top: 88%; }
}

@keyframes reel-caret {
  50% { opacity: 0; }
}

@keyframes reel-type {
  from { max-width: 0; }
  to { max-width: 20em; }
}

@keyframes reel-tile-in {
  from { opacity: 0; transform: translateY(16px) scale(.7); }
  to { opacity: 1; transform: none; }
}

@keyframes reel-card-in {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}

@keyframes reel-card-glow {
  0%, 100% { border-color: #d7e1e6; box-shadow: 0 8px 20px rgba(8, 20, 28, .05); }
  40% { border-color: #f97316; box-shadow: 0 0 0 3px rgba(249, 115, 22, .18), 0 12px 26px rgba(249, 115, 22, .16); }
}

/* Reduced motion: the reel holds on the feature summary with no movement. */
@media (prefers-reduced-motion: reduce) {
  .home-reel *,
  .home-reel *::before,
  .home-reel *::after {
    transition: none !important;
    animation: none !important;
  }

  .home-reel .reel-feature,
  .home-reel .reel-pipeline {
    opacity: 1;
  }

  .home-reel .reel-lang {
    opacity: 1;
  }

  .home-reel__progress,
  .home-reel__toggle {
    display: none;
  }
}

/* How it works: conversion column beside the walkthrough */
/* Match the nav, hero and other home sections, which share the 1280px home frame. */
.site-home #try-free.home-demo.home-hiw {
  width: min(var(--home-frame-max), calc(100% - var(--home-gutter) - var(--home-gutter)));
}

.site-focused .focused-hero {
  padding-top: clamp(22px, 3vw, 34px);
}

.site-focused #converter.converter-shell.home-hiw {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  width: 100%;
  max-width: none;
  padding: clamp(28px, 4.5vw, 52px);
  border: 0 !important;
  border-radius: 30px !important;
  background: #102c4b !important;
  box-shadow: 0 32px 76px rgba(20, 47, 79, .18) !important;
}

.site-focused #converter.converter-shell.home-hiw::before {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  content: "";
  background:
    radial-gradient(circle at 12% 4%, rgba(47, 102, 160, .45), transparent 36%),
    linear-gradient(135deg, rgba(255, 255, 255, .035), transparent 56%);
}

.site-home #try-free .home-hiw__inner,
.site-focused #converter .home-hiw__inner {
  display: grid;
  grid-template-columns: minmax(300px, .8fr) minmax(0, 1.2fr);
  grid-template-areas:
    "intro media"
    "start media"
    "trust media";
  grid-template-rows: auto auto 1fr;
  column-gap: clamp(36px, 5vw, 64px);
  row-gap: 28px;
  align-items: start;
}

.site-home #try-free .home-hiw__intro,
.site-focused #converter .home-hiw__intro {
  position: static;
  grid-area: intro;
  max-width: 440px;
  margin: 0;
}

.site-focused #converter .converter-heading.home-hiw__intro {
  display: block;
  min-height: 0;
  padding: 0;
  border: 0;
  background: transparent;
  text-align: left;
}

.site-focused #converter .home-hiw__intro .fixed-format {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  padding: 5px 12px 5px 7px;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 999px;
  color: #dbe7f2;
  background: rgba(255, 255, 255, .08);
  font-size: 12.5px;
  font-weight: 700;
}

.site-focused #converter .home-hiw__intro .fixed-format > span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 2px 7px;
  border-radius: 999px;
  color: #0d1b24;
  background: #f9b173;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .04em;
}

.site-focused #converter .home-hiw__intro h1,
.site-focused #converter .home-hiw__intro h2 {
  max-width: none;
  margin: 0;
  color: #fff !important;
  font-family: "Inter", system-ui, -apple-system, sans-serif;
  font-size: clamp(28px, 3.4vw, 42px);
  font-weight: 800;
  letter-spacing: -.035em;
  line-height: 1.08;
  text-align: left;
}

.site-focused #converter .home-hiw__intro .state-copy,
.site-focused #converter .home-hiw__intro .hero-lead {
  max-width: none;
  margin: 14px 0 0;
  color: #dbe7f2 !important;
  font-size: 15.5px;
  line-height: 1.62;
  text-align: left;
}

.site-focused #converter .home-hiw__intro .trust-line {
  margin: 12px 0 0;
  color: #f9b173 !important;
  font-size: 13.5px;
  font-weight: 700;
  line-height: 1.45;
  text-align: left;
}

.site-focused #converter .converter-state {
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  text-align: left !important;
}

.site-focused #converter .drop-hint {
  margin: 10px 2px 0;
  color: #a9bfd3 !important;
  font-size: 13px;
  text-align: left;
}

.home-hiw__start,
.home-hiw__notice {
  grid-area: start;
  max-width: 440px;
}

.home-hiw__trust {
  grid-area: trust;
  max-width: 440px;
}

.site-home #try-free .home-hiw__media,
.site-focused #converter .home-hiw__media {
  grid-area: media;
  align-self: center;
  min-width: 0;
}

.home-hiw__label {
  display: block;
  margin-bottom: 9px;
  color: #dbe7f2;
  font-size: 14px;
  font-weight: 700;
}

.home-hiw__field {
  display: flex;
  gap: 6px;
  padding: 6px;
  border: 1px solid rgba(255, 255, 255, .5);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 18px 40px rgba(4, 18, 31, .28);
  transition: box-shadow 160ms ease;
}

.home-hiw__field:focus-within {
  box-shadow: 0 0 0 2px #f97316, 0 0 0 6px rgba(249, 115, 22, .22), 0 18px 40px rgba(4, 18, 31, .28);
}

.home-hiw__field input {
  flex: 1;
  min-width: 0;
  height: 48px;
  padding: 0 12px;
  border: 0;
  border-radius: 10px;
  color: #0d1b24;
  background: transparent;
  font: inherit;
  font-size: 16px;
  box-shadow: none !important;
  outline: none;
}

.home-hiw__field input::placeholder {
  color: #8a9aa8;
}

.home-hiw__field input[aria-invalid="true"] {
  color: #b91c1c;
}

.home-hiw__cta,
.site-focused #converter .home-hiw__cta {
  display: inline-flex;
  min-height: 48px;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  padding: 0 22px;
  border: 0;
  border-radius: 12px;
  color: #fff !important;
  background: linear-gradient(180deg, #fb8a3c, #ea580c) !important;
  box-shadow: 0 10px 22px rgba(234, 88, 12, .3) !important;
  font-size: 16px;
  font-weight: 800;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
  transition: transform 180ms ease, box-shadow 180ms ease, filter 180ms ease;
}

.home-hiw__cta:hover,
.site-focused #converter .home-hiw__cta:hover {
  filter: brightness(1.05);
  background: linear-gradient(180deg, #fb8a3c, #ea580c) !important;
  box-shadow: 0 14px 28px rgba(234, 88, 12, .38) !important;
  transform: translateY(-1px);
}

/* Browser autofill paints a pale blue box; keep the field white. */
body.site-frosted .home-hiw .home-hiw__field input:-webkit-autofill,
body.site-frosted .home-hiw .home-hiw__field input:-webkit-autofill:hover,
body.site-frosted .home-hiw .home-hiw__field input:-webkit-autofill:focus {
  -webkit-text-fill-color: #0d1b24;
  box-shadow: 0 0 0 1000px #fff inset !important;
  caret-color: #0d1b24;
  transition: background-color 600000s 0s;
}

body.site-frosted .home-hiw .home-hiw__field input:autofill {
  box-shadow: 0 0 0 1000px #fff inset !important;
}

/* Beat the site-wide square :focus-visible outline; the field's rounded ring shows focus. */
body.site-frosted .home-hiw .home-hiw__field input:focus-visible {
  outline: none;
}

body.site-frosted .home-hiw .home-hiw__cta:focus-visible {
  border-radius: 12px;
  outline: 3px solid #fff;
  outline-offset: 3px;
}

.home-hiw__cta.is-nudged {
  animation: home-hiw-nudge 1.4s ease-out 1;
}

.home-hiw__error {
  margin: 8px 2px 0;
  color: #fecaca;
  font-size: 13px;
  font-weight: 600;
}

.home-hiw__error[hidden] {
  display: none;
}

.home-hiw__alt {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 8px;
  margin: 14px 2px 0;
  color: #bfd0e1;
  font-size: 14px;
}

.home-hiw__link {
  color: #fff !important;
  font-weight: 700;
  text-decoration: underline;
  text-decoration-color: rgba(255, 255, 255, .45);
  text-underline-offset: 3px;
}

.home-hiw__link:hover {
  text-decoration-color: #f9b173;
}

.home-hiw__notice[hidden] {
  display: none;
}

html.is-authenticated .home-hiw__notice {
  display: block;
}

.home-hiw__notice p,
.site-focused #converter .home-hiw__notice p {
  margin: 0 0 16px;
  color: #dbe7f2 !important;
  font-size: 16px;
  line-height: 1.5;
  text-align: left;
}

.home-hiw__trust {
  display: grid;
  gap: 9px;
  color: #a9bfd3;
  font-size: 13px;
  line-height: 1.4;
}

.home-hiw__trust > span {
  display: flex;
  align-items: flex-start;
  gap: 9px;
}

.home-hiw__trust svg {
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
  margin-top: 1px;
  color: #f9b173;
}

@media (max-width: 1050px) {
  .site-home #try-free .home-hiw__inner,
  .site-focused #converter .home-hiw__inner {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas:
      "intro"
      "media"
      "start"
      "trust";
    grid-template-rows: none;
    row-gap: 26px;
  }

  .site-home #try-free .home-hiw__intro,
  .site-focused #converter .home-hiw__intro,
  .home-hiw__start,
  .home-hiw__notice,
  .home-hiw__trust {
    max-width: 560px;
  }
}

@media (max-width: 720px) {
  .home-hiw__start,
  .home-hiw__notice,
  .home-hiw__trust {
    padding-inline: 12px;
  }
}

@media (max-width: 420px) {
  .home-hiw__field {
    flex-direction: column;
  }

  .home-hiw__cta {
    width: 100%;
  }
}

@keyframes home-hiw-nudge {
  0% { box-shadow: 0 10px 22px rgba(234, 88, 12, .3), 0 0 0 0 rgba(249, 115, 22, .6); }
  60% { box-shadow: 0 10px 22px rgba(234, 88, 12, .3), 0 0 0 14px rgba(249, 115, 22, 0); }
  100% { box-shadow: 0 10px 22px rgba(234, 88, 12, .3), 0 0 0 0 rgba(249, 115, 22, 0); }
}

@media (prefers-reduced-motion: reduce) {
  .home-hiw__cta,
  .home-hiw__field {
    transition: none;
  }

  .home-hiw__cta.is-nudged {
    animation: none;
  }
}

@media (forced-colors: active) {
  .home-hiw__field {
    border: 1px solid CanvasText;
  }
}

@media (max-width: 720px) {
  .home-hiw__alt > span[aria-hidden="true"] {
    display: none;
  }

  .home-hiw__alt > .home-hiw__link:first-child {
    flex-basis: 100%;
    margin-bottom: 2px;
  }
}
