/* Homepage Direction B refined — CTO_BUILD_03 + HOMEPAGE_REDESIGN_spec.md */

/* homepage_v2.html — values copied from mockup inline styles */

.home-page {
  --home-content-max: 1060px;
  --home-upload-col: 420px;
  --home-cross-col: 340px;
  --home-red: #cc0000;
  --home-rule: #ebe7e0;
  --home-border: #e8e4de;
  --home-dash: #d8d4ce;
  --home-paper: #fafaf8;
  background: #fff;
}

.home-hero {
  background: linear-gradient(180deg, #faf8f5 0%, #fff 100%);
}

@media (min-width: 1024px) {
  .home-hero {
    border-bottom: 1px solid #ebe7e0;
  }
}

.home-hero__inner {
  box-sizing: border-box;
  max-width: var(--home-content-max);
  margin: 0 auto;
  padding: 32px 18px 24px;
  text-align: center;
}

@media (min-width: 1024px) {
  .home-hero__inner {
    padding: 56px 40px 48px;
    text-align: start;
  }
}

.home-hero__grid {
  display: grid;
  width: 100%;
  gap: 28px;
  align-items: start;
}

.home-hero__lead {
  text-align: inherit;
}

.home-hero__aside {
  min-width: 0;
}

@media (min-width: 1024px) {
  .home-hero__grid {
    grid-template-columns: 1fr var(--home-upload-col);
    gap: 48px;
    align-items: center;
  }

  .home-hero__lead {
    text-align: start;
  }

  .home-h1,
  .home-sub {
    margin-left: 0;
    margin-right: 0;
  }

  .home-upload-card {
    margin-left: 0;
    margin-right: 0;
    max-width: none;
    width: 100%;
  }

  #home-hero-form,
  #home-processing {
    width: 100%;
  }
}

.home-trust-line--desktop {
  display: none;
  margin: 24px 0 0;
  font-size: 11px;
  color: #aaa;
  line-height: 1.5;
  text-align: left;
}

@media (min-width: 1024px) {
  .home-trust-line--desktop {
    display: block;
  }
}

.home-trust-line--mobile {
  display: block;
  margin: 10px 0 0;
  font-size: 11px;
  color: #aaa;
  line-height: 1.5;
  text-align: center;
}

@media (min-width: 1024px) {
  .home-trust-line--mobile {
    display: none;
  }
}

.home-hero--processing .home-trust-line--mobile,
.home-hero--processing .home-trust-line--desktop,
.home-hero--processing .home-press--desktop {
  display: none !important;
}

/* Press quotes — desktop: inline in hero, no label; mobile: below example with label */
.home-press__quote {
  font-size: 13px;
  color: #555;
  line-height: 1.5;
  margin: 0 0 6px;
}

.home-press__quote:last-child {
  margin-bottom: 0;
}

a.home-press__source {
  font-weight: 600;
  color: #888;
  text-decoration: underline;
  text-decoration-color: #ccc;
  text-underline-offset: 2px;
}

a.home-press__source:hover {
  color: #555;
  text-decoration-color: #888;
}

.home-press__kicker {
  font-size: 11px;
  font-weight: 600;
  color: #aaa;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  margin-bottom: 10px;
}

/* Desktop press: inline in hero left column, no label, no background */
.home-press--desktop {
  display: none;
  margin-bottom: 24px;
}

@media (min-width: 1024px) {
  .home-press--desktop {
    display: block;
  }
}

/* Mobile press: below example, paper background, border-top */
.home-press--mobile {
  display: block;
  background: var(--home-paper);
  border-top: 1px solid var(--home-rule);
  padding: 18px;
}

@media (min-width: 1024px) {
  .home-press--mobile {
    display: none;
  }
}

.home-lower {
  background: #fff;
  border-top: 1px solid var(--home-rule);
}

.home-lower__inner {
  box-sizing: border-box;
  max-width: var(--home-content-max);
  margin: 0 auto;
  padding: 0;
}

@media (min-width: 1024px) {
  .home-lower__inner {
    padding: 36px 40px;
  }
}

.home-lower__grid {
  display: grid;
  gap: 28px;
  align-items: start;
}

@media (min-width: 1024px) {
  .home-lower__grid {
    grid-template-columns: 1fr var(--home-cross-col);
    gap: 40px;
    align-items: start;
  }
}

.home-cross-eyebrow {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: var(--ink-4, #999);
  margin: 0 0 14px;
  padding: 16px 18px 0;
}

@media (min-width: 1024px) {
  .home-cross-eyebrow {
    padding: 0;
  }
}

.home-h1 {
  font-family: var(--font-display, "Playfair Display", Georgia, serif);
  font-size: 34px;
  font-weight: 700;
  line-height: 1.1;
  color: #1a1a1a;
  margin: 0 0 10px;
}

@media (min-width: 1024px) {
  .home-h1 {
    font-size: 48px;
    margin-bottom: 14px;
  }
}

.home-h1 em {
  color: var(--home-red);
  font-style: italic;
}

.home-sub {
  font-size: 15px;
  line-height: 1.55;
  color: #555;
  max-width: 300px;
  margin: 0 auto 20px;
}

@media (min-width: 1024px) {
  .home-sub {
    font-size: 18px;
    max-width: 440px;
    margin: 0 0 28px;
  }
}

/* Upload card */
.home-upload-card {
  max-width: 100%;
  margin: 0 auto;
  background: #fff;
  border: 1px solid var(--home-border);
  border-radius: 10px;
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.04);
  padding: 18px;
  text-align: left;
}

@media (min-width: 1024px) {
  .home-upload-card {
    padding: 24px;
  }
}

.home-drop-zone {
  position: relative;
  border: 2px dashed var(--home-dash);
  border-radius: 8px;
  background: #fafaf8;
  padding: 24px 16px;
  margin-bottom: 12px;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}

@media (min-width: 1024px) {
  .home-drop-zone {
    padding: 32px 20px;
    margin-bottom: 14px;
  }
}

#drop-zone .drop-file-input,
#drop-zone #file-input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
  font-size: 0;
}

.home-drop-zone.dragover {
  border-color: var(--home-red);
  background: #fff8f8;
}

.home-drop-zone.has-file .home-drop-default {
  display: none;
}

.home-drop-zone:not(.has-file) .home-drop-selected {
  display: none;
}

.home-drop-icon {
  font-size: 24px;
  display: block;
  margin-bottom: 8px;
}

.home-drop-title {
  font-size: 15px;
  font-weight: 600;
  color: #333;
}

.home-drop-sub {
  font-size: 12px;
  color: #999;
  margin-top: 4px;
}

.home-drop-selected {
  font-size: 14px;
  color: #333;
}

.home-drop-selected .fname {
  font-weight: 600;
  word-break: break-all;
}

.home-drop-file-input {
  position: absolute;
  width: 0;
  height: 0;
  opacity: 0;
  pointer-events: none;
}

.home-field-error {
  display: none;
  color: var(--home-red);
  font-size: 13px;
  margin-top: 10px;
}

.home-field-error.visible,
.field-error.visible {
  display: block;
}

@keyframes home-shake {
  0%,
  100% {
    transform: translateX(0);
  }
  25% {
    transform: translateX(-5px);
  }
  75% {
    transform: translateX(5px);
  }
}

#drop-zone.shake {
  animation: home-shake 0.4s ease;
}

.home-submit-btn {
  width: 100%;
  margin-top: 0;
  min-height: 52px;
  border-radius: 8px;
  background: var(--home-red);
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: none;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(204, 0, 0, 0.2);
}

.home-submit-btn:disabled {
  opacity: 0.75;
  cursor: not-allowed;
}

/* legacy single trust line */
.home-trust-line:not(.home-trust-line--desktop):not(.home-trust-line--mobile) {
  margin-top: 10px;
  font-size: 11px;
  color: #aaa;
  line-height: 1.5;
  text-align: center;
}

/* Processing state — spinner + rotating status + thin bar (homepage_v2.html) */
#home-processing[hidden] {
  display: none !important;
}

.home-hero--processing #home-hero-form {
  display: none;
}

.home-hero--processing #home-processing {
  display: block !important;
}

.home-processing-wrap {
  text-align: center;
  padding: 100px 18px 40px;
}

@media (min-width: 1024px) {
  .home-processing-wrap {
    padding: 160px 40px 60px;
  }
}

.home-spinner {
  width: 48px;
  height: 48px;
  border: 3px solid #eee;
  border-top-color: var(--home-red);
  border-radius: 50%;
  margin: 0 auto 24px;
  animation: home-spin 0.8s linear infinite;
}

@media (min-width: 1024px) {
  .home-spinner {
    width: 56px;
    height: 56px;
    margin-bottom: 28px;
  }
}

@keyframes home-spin {
  to {
    transform: rotate(360deg);
  }
}

.home-status-area {
  position: relative;
  height: 22px;
  margin-bottom: 20px;
}

@media (min-width: 1024px) {
  .home-status-area {
    height: 24px;
    margin-bottom: 24px;
  }
}

.home-status-msg {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  margin: 0;
  font-size: 15px;
  font-weight: 600;
  color: var(--ink-2, #333);
  transition: opacity 0.4s ease;
}

@media (min-width: 1024px) {
  .home-status-msg {
    font-size: 17px;
  }
}

.home-progress-track--processing {
  width: 200px;
  height: 4px;
  margin: 0 auto;
  background: #eee;
  border-radius: 4px;
  overflow: hidden;
}

@media (min-width: 1024px) {
  .home-progress-track--processing {
    width: 320px;
    height: 5px;
  }
}

.home-progress-track--processing .home-progress-fill {
  height: 100%;
  width: 0%;
  background: var(--home-red);
  border-radius: 4px;
  transition: width 0.4s ease;
}

/* Example result */
.home-example {
  box-sizing: border-box;
  background: #fff;
  border-top: none;
  padding: 20px 18px;
}

@media (min-width: 1024px) {
  .home-example {
    padding: 0;
  }
}

.home-example__label {
  font-size: 10px;
  text-transform: uppercase;
  font-weight: 600;
  color: #999;
  letter-spacing: 1.4px;
  text-align: center;
  margin: 0 0 12px;
}

@media (min-width: 1024px) {
  .home-example__label {
    text-align: left;
    margin-bottom: 14px;
  }
}

.home-example-card {
  max-width: none;
  margin: 0;
  background: #fff;
  border: 1px solid var(--home-border);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
}

.home-example-card__head {
  padding: 14px 16px;
  border-bottom: 1px solid var(--home-border);
}

@media (min-width: 1024px) {
  .home-example-card__head {
    padding: 16px 20px;
  }
}

.home-example-card__hint {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #999;
}

.home-example-card__amount {
  font-family: var(--font-display, "Playfair Display", Georgia, serif);
  font-size: 28px;
  font-weight: 700;
  color: var(--home-red);
  margin-top: 4px;
}

@media (min-width: 1024px) {
  .home-example-card__amount {
    font-size: 32px;
  }
}

.home-example-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}

.home-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 999px;
}

.home-badge--red {
  color: #a71818;
  background: #fdf2f2;
}

.home-badge--amber {
  color: #8a6400;
  background: #fefbf0;
}

.home-badge--green {
  color: #226b2f;
  background: #f0f8f3;
}

.home-example-rows {
  font-size: 13px;
}

.home-ex-row {
  padding: 10px 16px;
  border-bottom: 1px solid #f4f2ee;
  display: grid;
  grid-template-columns: 7px 1fr auto;
  gap: 8px;
  align-items: start;
}

@media (min-width: 1024px) {
  .home-ex-row {
    padding: 10px 20px;
    gap: 10px;
  }
}

.home-ex-row:last-child {
  border-bottom: none;
}

.home-ex-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  margin-top: 5px;
}

.home-ex-dot--red {
  background: var(--home-red);
}

.home-ex-dot--amber {
  background: #c89400;
}

.home-ex-name {
  font-weight: 600;
  color: #222;
}

.home-ex-amt {
  font-weight: 600;
  color: var(--home-red);
  text-align: right;
}

.home-ex-row--review .home-ex-amt {
  color: #c89400;
}

.home-ex-row > div:first-of-type {
  min-width: 0;
}

.home-ex-reason {
  font-size: 11px;
  color: #999;
  margin-top: 2px;
}

.home-example-note {
  font-size: 11px;
  color: #ccc;
  text-align: center;
  margin-top: 10px;
}

@media (min-width: 1024px) {
  .home-example-note {
    text-align: left;
  }
}

/* Cross-sell */
.home-cross {
  background: #fff;
  border-top: none;
  padding: 0 18px 20px;
}

@media (min-width: 1024px) {
  .home-cross {
    padding: 0;
  }
}

.home-cross__grid {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.home-xcard {
  box-sizing: border-box;
  background: #fff;
  border: 1px solid var(--home-border);
  border-radius: 6px;
  padding: 16px;
  display: block;
  transition: box-shadow 0.15s;
}

@media (min-width: 1024px) {
  .home-xcard {
    padding: 18px;
  }

  .home-xcard--rz {
    margin-bottom: 12px;
  }

  .home-xcard--pro {
    margin-bottom: 0;
  }
}

.home-xcard:hover {
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.06);
}

.home-xcard--rz {
  border-left: 3px solid #1a4a8a;
}

.home-xcard--pro {
  border-left: 3px solid var(--home-red);
}

.home-xcard__label {
  font-size: 10px;
  text-transform: uppercase;
  font-weight: 600;
  color: #888;
  letter-spacing: 1.2px;
  margin-bottom: 4px;
}

.home-xcard__title {
  font-size: 16px;
  font-weight: 600;
  color: #111;
  margin: 0 0 4px;
}

.home-xcard__body {
  font-size: 13px;
  color: #666;
  line-height: 1.45;
  margin-bottom: 8px;
}

.home-xcard__cta {
  font-size: 13px;
  font-weight: 600;
}

.home-xcard--rz .home-xcard__cta {
  color: #1a4a8a;
}

.home-xcard--pro .home-xcard__cta {
  color: var(--home-red);
}
