/* UltraTrade homepage */
.home-page { --home-carbon: #151820; --home-red: #d11c37; --home-rule: #ccc8bc; --home-paper: #f7f5ee; }
.home-page .section { padding-block: clamp(42px, 6vw, 83px); }
.home-page .section-head { margin-bottom: clamp(20px, 3vw, 35px); }

.home-page .hero--home {
  --home-hero-overlay: linear-gradient(90deg, #141720f5, #141720cb 43%, #14172030 84%, #14172060);
  padding: 0; border-bottom: 5px solid var(--home-red);
}
.home-page .hero__inner {
  grid-template-columns: minmax(0, 1fr) minmax(340px, 420px);
  grid-template-areas: "heading form" "copy form";
  gap: 20px clamp(40px, 8vw, 110px); align-items: start; align-content: center;
  padding-block: clamp(42px, 6vw, 81px);
}
.home-hero-heading { grid-area: heading; align-self: end; }
.home-page .hero__copy { grid-area: copy; }
.home-page .hero__form {
  grid-area: form; align-self: center; min-width: 0; padding: clamp(14px, 2vw, 23px);
  border: 1px solid #ffe9e0; border-left: 5px solid #f54257; background: var(--home-paper);
  box-shadow: 9px 9px 0 #141720bb;
}
.home-page .hero__form .label-mono, .home-page .hero__form .form-note { color: #333742; text-shadow: none; }
.home-page .hero__form .form-block { border: 0; padding: 11px 0 0; max-width: none; box-shadow: none; background: transparent; }
.home-page .hero__form .form-block::before { display: none; }
.home-page .hero h1 {
  font-size: clamp(2.25rem, 1.2rem + 3.05vw, 4.08rem);
  line-height: 1.02; letter-spacing: -.035em; margin: 0; text-wrap: balance;
}
.home-page .hero__eyebrow { margin-bottom: 15px; }
.home-page .hero__eyebrow .label-mono { color: #ffe5e9; }
.home-page .hero__text { font-size: .99rem; max-width: 52ch; margin-bottom: 10px; }
.home-page .hero__badges { margin-top: 16px; }
.home-page .hero-badge { border-radius: 0; background: #1b2029d9; color: #fff; border-color: #ffffff5c; box-shadow: none; }
.home-page .hero-badge .icon { color: #ff9caa; }
.home-page .hero-badge:hover { color: #fff; border-color: #ff9caa; }

.home-page .home-markets { padding-block: 26px; background: var(--home-paper); }
.home-markets > .container { display: grid; gap: 10px 27px; align-items: center; }
.home-markets .section-head { margin: 0; }
.home-markets .section-head .label-mono { margin-bottom: 4px; }
.home-markets .section-head h2 { font-size: 1.45rem; margin-bottom: 5px; }
.home-markets .section-head p { font-size: .87rem; margin: 0; }
.home-markets .exchange-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; border: 1px solid var(--home-rule); }
.home-markets .exchange-chip { width: 100%; min-width: 0; height: 56px; border: 0; border-radius: 0; box-shadow: none; padding: 10px; }
.home-markets .exchange-chip + .exchange-chip { border-left: 1px solid var(--home-rule); }
.home-markets .exchange-chip img { max-width: 100%; height: auto; max-height: 24px; object-fit: contain; }
.home-markets .review-note { margin: 0; }

.home-steps { background: var(--home-carbon); }
.home-steps .section-head :is(h2, p.lead) { color: #f7f3e9; }
.home-steps .section-head .label-mono { color: #ffa0ad; }
.home-steps .steps { gap: 1px; background: #5a5961; border: 1px solid #5a5961; }
.home-steps .step { min-width: 0; border: 0; border-radius: 0; background: #1c202a; padding: clamp(16px, 2vw, 24px); box-shadow: none; }
.home-steps .step:hover { transform: none; background: #252733; }
.home-steps .step__no { color: #ffa9b4; background: transparent; border: 0; justify-content: start; font-size: 2.2rem; }
.home-steps .step h3 { color: #fff; }
.home-steps .step p { color: #d7d9e1; }

.home-estimate {
  background: repeating-linear-gradient(0deg, #4a40250d 0 1px, transparent 1px 26px), #fff8ec;
  border-bottom: 2px solid var(--home-red);
}
.home-estimate > .container { position: relative; }
.home-estimate .calc-widget__wrapper { gap: clamp(16px, 4vw, 50px); margin-bottom: clamp(18px, 4vw, 32px); }
.home-estimate .calc-widget__result { border-radius: 0; }
.home-compare { background: #fffdfa; }
.home-compare thead th { background: #222734; color: #fff; }
.home-compare thead .compare-col-brand { background: #9f162b !important; color: #fff; }
.home-security { background: #f2efe7; }
.home-security .card, .home-advantages .card { box-shadow: none; border-color: var(--home-rule); }
.home-reviews { background: #fffbf1; }
.home-reviews .review { border-radius: 0; box-shadow: 3px 3px 0 #e5dfd2; border-color: var(--home-rule); }
.home-reviews .review__stats { border-top: 1px dashed #c7bca8; }

.home-company {
  background: linear-gradient(90deg, #171b23fa, #171b23df 48%, #171b2388),
    url("../images/hero-au.webp") right 70% / cover;
  color: #f7f3e9;
}
.home-company .company-grid { align-items: center; }
.home-company h2, .home-company p.lead, .home-company .company-facts :is(li, strong, a) { color: #fff7e9; }
.home-company .company-grid > div:first-child > .label-mono { color: #ffacb5 !important; }
.home-company .company-link { border-radius: 0; }
.home-advantages { background: #f4efe4; }
.home-advantages .card { border-left: 3px solid var(--home-red); }

.home-join { background: linear-gradient(120deg, #251720 5%, #191d27 62%); border-left: clamp(5px, 1.7vw, 22px) solid var(--home-red); }
.home-join :is(h2, p.lead, .review-note, .label-mono, .form-note) { color: #f7f2ec; }
.home-join .company-grid > div:first-child > .label-mono { color: #ffacb5 !important; }
.home-join .form-block { max-width: none; box-shadow: 6px 6px 0 #7a2936; }
.home-faq { background: var(--home-paper); }
.home-faq .faq { border-radius: 0; box-shadow: none; border-color: var(--home-rule); }
.home-faq .faq[open] { border-left: 3px solid var(--home-red); }
.site-footer { border-top: 4px solid var(--accent); }

@media (min-width: 900px) {
  .home-markets > .container { grid-template-columns: minmax(240px, .8fr) minmax(0, 1.2fr); }
  .home-markets .review-note { grid-column: 2; }
  .home-steps .steps { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .home-faq .faq-list { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; }
}
@media (max-width: 899px) {
  .home-page .hero__inner { grid-template-columns: minmax(0, 1fr); grid-template-areas: "heading" "form" "copy"; gap: 25px; }
  .home-page .hero--home {
    --home-hero-overlay: linear-gradient(180deg, #1518208c, #151820 555px);
    background-position: center, right top;
    background-size: auto, auto clamp(420px, 72vw, 580px);
  }
  .home-page .hero__form { max-width: 500px; margin-right: 9px; }
  .home-steps .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 520px) {
  .home-markets .exchange-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .home-markets .exchange-chip:nth-child(odd) { border-left: 0; }
  .home-markets .exchange-chip:nth-child(n+3) { border-top: 1px solid var(--home-rule); }
}

/* Keep the market and strategy sections compact between the larger panels */
.home-page .hero__flagline { margin-block: 13px 0; }
.home-page .section-head > :last-child { margin-bottom: 0; }
.home-page .home-steps { padding-block: clamp(34px, 5vw, 65px); }
.home-page .home-steps .step__no { margin-bottom: 8px; }
.home-estimate .calc-widget__title { font-size: clamp(1.4rem, 2.65vw, 2rem); margin-bottom: 9px; }
.home-estimate .calc-widget__subtitle { margin-bottom: 22px; }
.home-estimate .calc-widget__controls { gap: clamp(16px, 3vw, 36px); }
.home-estimate .calc-widget__range:focus-visible { outline: 2px solid #98152a; outline-offset: 4px; }
.home-compare .table-wrap { min-width: 0; }
.home-security .feature-grid, .home-advantages .doc-grid { gap: 12px; }
.home-reviews .review-note { margin-bottom: 0; }
.home-page .home-company { padding-block: clamp(46px, 7vw, 95px); }
.home-join .company-grid > div > :last-child { margin-bottom: 0; }

@media (min-width: 1120px) {
  .home-compare > .container { display: grid; grid-template-columns: minmax(0, .72fr) minmax(0, 1.7fr); gap: 0 30px; align-items: start; }
  .home-compare > .container > :not(.section-head) { grid-column: 2; }
  .home-compare .section-head { grid-column: 1; grid-row: 1 / span 2; margin: 0; }
}

.home-page .hero--home { border-bottom: 0; }
.home-page .hero__eyebrow { width: fit-content; padding: 6px 10px; border: 1px solid #f497a6; color: #ffccd4; }
.home-page .home-markets { border-top: 5px solid #cd2340; }
.home-page .home-estimate { background: #ebe8de; }
.home-compare .section-head { border-top: 4px solid #bf1836; padding-top: 17px; }
.home-security .card { border-radius: 0; border-top: 3px solid #363942; }
@media (min-width: 900px) {
  .home-page .hero__inner { border-left: 1px solid #ffd4db66; padding-left: clamp(20px, 3vw, 45px); }
  .home-page .hero h1 { font-size: clamp(2.9rem, 5vw, 4.8rem); line-height: .99; }
  .home-page .hero__form { border-left: 0; border-top: 6px solid #e83852; box-shadow: 8px 8px 0 #241a22; }
}

.hero-deposit { display: flex; align-items: center; gap: 18px; max-width: 46ch; margin: 16px 0; padding: 12px 16px; border-left: 3px solid #ff8294; background: #151820d9; color: #fff; }
.hero-deposit > div { flex: none; display: grid; gap: 3px; }
.hero-deposit span { font-size: .78rem; }
.hero-deposit strong { font-size: 1.6rem; line-height: 1; }
.hero-deposit p { margin: 0; border-left: 1px solid #77757e; padding-left: 15px; font-size: .86rem; color: #f9e9e8; }
.home-page .hero__form > .label-mono { display: block; font-size: 1rem; line-height: 1.35; }
@media (min-width: 900px) { .home-page .hero h1 { max-width: 13ch; } }
@media (max-width: 899px) {
  .home-page .hero__inner { gap: 18px; padding-block: 24px 30px; }
  .home-page .hero h1 { max-width: 15ch; font-size: clamp(2.15rem, 7vw, 3.25rem); }
}
