/* RackingZone — homepage-only styles (loaded after global.css) */

/* ---------- Hero ---------- */
.hero { position: relative; padding: 72px 0 96px; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: 0;
  background-image: linear-gradient(rgba(35, 35, 35, .045) 1px, transparent 1px), linear-gradient(90deg, rgba(35, 35, 35, .045) 1px, transparent 1px);
  background-size: 44px 44px;
  -webkit-mask-image: radial-gradient(ellipse at 30% 40%, #000 30%, transparent 75%); mask-image: radial-gradient(ellipse at 30% 40%, #000 30%, transparent 75%);
  pointer-events: none;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: .5rem; background: var(--main); border: 1px solid var(--line);
  border-radius: 999px; padding: .35rem .9rem .35rem .4rem; font-size: .85rem; font-weight: 500; box-shadow: var(--shadow-sm);
}
.hero-badge .dot { background: var(--teal); color: #fff; border-radius: 999px; padding: .1rem .55rem; font-size: .72rem; font-weight: 700; letter-spacing: .05em; }
.hero h1 { font-size: clamp(2.4rem, 5vw, 4rem); font-weight: 800; line-height: 1.05; margin: 1.2rem 0 1.1rem; letter-spacing: -.02em; }
.hero .lead { font-size: 1.15rem; color: var(--muted); max-width: 560px; }

.hero-search {
  background: var(--main); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow);
  padding: 8px; display: flex; gap: 8px; margin-top: 1.8rem; max-width: 620px; transition: box-shadow .3s var(--ease), border-color .3s;
}
.hero-search:focus-within { box-shadow: 0 16px 40px rgba(7, 128, 128, .16); border-color: rgba(7, 128, 128, .4); }
.hero-search .field { display: flex; align-items: center; gap: .5rem; flex: 1; padding: 0 .75rem; min-width: 0; }
.hero-search .field + .field { border-left: 1px solid var(--line); }
.hero-search .field .bi { color: var(--teal); }
.hero-search input, .hero-search select { border: 0; background: transparent; width: 100%; height: 46px; font-size: .97rem; color: var(--ink); outline: none; min-width: 0; }
.hero-search .field-zip { flex: 0 0 150px; }
@media (max-width: 575.98px) {
  .hero-search { flex-direction: column; }
  .hero-search .field + .field { border-left: 0; border-top: 1px solid var(--line); }
  .hero-search .field-zip { flex: 1; }
}
.quick-tags { margin-top: 1rem; font-size: .88rem; color: var(--muted); }
.quick-tags a {
  display: inline-block; margin: .25rem .2rem; padding: .22rem .7rem; border-radius: 999px; border: 1px solid var(--line);
  background: rgba(255, 255, 254, .7); color: var(--ink); transition: all .2s var(--ease);
}
.quick-tags a:hover { border-color: var(--teal); color: var(--teal); transform: translateY(-2px); }
.hero-trust { margin-top: 2rem; display: flex; flex-wrap: wrap; gap: 1.4rem; font-size: .9rem; font-weight: 500; }
.hero-trust span { display: inline-flex; align-items: center; gap: .45rem; }
.hero-trust .bi { color: var(--red); font-size: 1.1rem; }

.hero-visual { position: relative; padding: 20px 0 20px 30px; }
.hero-visual .frame { position: relative; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); aspect-ratio: 4 / 5; }
.hero-visual .frame img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.06); will-change: transform; }
.hero-visual::before {
  content: ""; position: absolute; right: -24px; top: -10px; width: 62%; height: 70%; border-radius: var(--radius-lg);
  background: repeating-linear-gradient(-45deg, var(--red) 0 10px, transparent 10px 22px); opacity: .16; z-index: -1;
}
.float-card {
  position: absolute; background: var(--main); border-radius: 14px; box-shadow: var(--shadow-lg);
  padding: .95rem 1.1rem; font-size: .86rem; border: 1px solid var(--line);
  animation: floaty 6s ease-in-out infinite;
}
.float-card.fc-1 { left: -12px; bottom: 56px; max-width: 270px; }
.float-card.fc-2 { right: -14px; top: 54px; animation-delay: -3s; }
.float-card .fc-label { font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.float-card .fc-title { font-family: var(--font-head); font-weight: 700; color: var(--ink); font-size: 1.02rem; }
.float-card .fc-icon { width: 38px; height: 38px; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center; font-size: 1.15rem; flex: none; }
.fc-icon.red { background: var(--red-soft); color: var(--red); }
.fc-icon.teal { background: var(--teal-soft); color: var(--teal); }
.match-bar { height: 6px; border-radius: 6px; background: var(--line); overflow: hidden; margin-top: .55rem; }
.match-bar i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--teal), var(--red)); border-radius: 6px; transition: width 1.6s var(--ease) .4s; }
.is-visible .match-bar i { width: 100%; }
@keyframes floaty { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@media (max-width: 991.98px) {
  .hero { padding: 48px 0 64px; }
  .hero-visual { margin-top: 3rem; padding-left: 0; }
  .hero-visual .frame { aspect-ratio: 16 / 11; }
  .float-card.fc-1 { left: 8px; bottom: -22px; }
  .float-card.fc-2 { right: 8px; top: -18px; }
}


/* ---------- Logo strip / standards ---------- */
.standards-strip { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--main); padding: 22px 0; overflow: hidden; }
.standards-strip .label { font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); font-weight: 600; white-space: nowrap; }
.marquee { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee-track { display: flex; gap: 3rem; width: max-content; animation: marquee 38s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-track span { font-family: var(--font-head); font-weight: 700; font-size: 1.05rem; color: #6b7070; white-space: nowrap; display: inline-flex; align-items: center; gap: .5rem; transition: color .2s; }
.marquee-track span:hover { color: var(--ink); }
.marquee-track .bi { color: var(--teal); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- How it works ---------- */
.steps { position: relative; }
.step-card { position: relative; background: var(--main); border: 1px solid var(--line); border-radius: var(--radius); padding: 2rem 1.6rem 1.7rem; height: 100%; transition: all .35s var(--ease); }
.step-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-color: transparent; }
.step-num { font-family: var(--font-head); font-weight: 800; font-size: 3.4rem; line-height: 1; color: transparent; -webkit-text-stroke: 1.6px var(--red); opacity: .9; }
.step-card h3 { font-size: 1.3rem; margin: .9rem 0 .5rem; }
.step-card p { color: var(--muted); margin: 0; font-size: .95rem; }
.step-icon { position: absolute; right: 1.4rem; top: 1.6rem; width: 48px; height: 48px; border-radius: 12px; background: var(--teal-soft); color: var(--teal); display: flex; align-items: center; justify-content: center; font-size: 1.35rem; transition: all .35s var(--ease); }
.step-card:hover .step-icon { background: var(--teal); color: #fff; transform: rotate(-8deg) scale(1.05); }
.steps-line { position: absolute; top: 62px; left: 16%; right: 16%; border-top: 2px dashed rgba(35, 35, 35, .15); z-index: 0; }
.steps .col-md-4 { position: relative; z-index: 1; }
.step-meta { margin-top: 1rem; padding-top: .9rem; border-top: 1px dashed var(--line); font-size: .82rem; color: var(--muted); }
.step-meta .bi { color: var(--teal); }

.tool-card { position: relative; overflow: hidden; border-radius: var(--radius-lg); padding: 1.8rem; height: 100%; background: var(--main); border: 1px solid var(--line); transition: all .35s var(--ease); }
.tool-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); border-color: transparent; }
.tool-card h3 { font-size: 1.35rem; margin: .8rem 0 .4rem; }
.tool-card p { color: var(--muted); font-size: .95rem; }
.tool-card .tool-bg { position: absolute; right: 18px; top: 10px; font-size: 5.5rem; opacity: .9; line-height: 1; color: var(--bg); transition: transform .5s var(--ease), color .5s; pointer-events: none; }
.tool-card:hover .tool-bg { transform: rotate(-10deg) scale(1.05); color: var(--red-soft); }
.tool-card > *:not(.tool-bg) { position: relative; z-index: 1; }
.mini-calc { background: var(--bg); border-radius: 12px; padding: 1rem 1.1rem; margin: 1rem 0 1.2rem; font-size: .86rem; }
.mini-calc label { font-weight: 600; margin-bottom: .15rem; display: flex; justify-content: space-between; }
.mini-calc label output { font-family: var(--font-head); color: var(--teal); }
.mini-calc input[type=range] { width: 100%; accent-color: var(--teal); }
.mini-calc .result { display: flex; justify-content: space-between; align-items: baseline; border-top: 1px dashed var(--line); margin-top: .6rem; padding-top: .6rem; }
.mini-calc .result strong { font-family: var(--font-head); font-size: 1.5rem; color: var(--ink); }
.mini-calc .note { font-size: .74rem; color: var(--muted); margin-top: .35rem; }

.news-tabs .nav-link { font-family: var(--font-head); font-weight: 700; color: var(--muted); border-radius: 999px; padding: .45rem 1.05rem; margin-left: .35rem; transition: all .25s var(--ease); }
.news-tabs .nav-link:hover { color: var(--ink); background: var(--main); }
.news-tabs .nav-link.active { background: var(--ink); color: #fff; }

/* ---------- Mobile refinements (homepage) ---------- */
@media (max-width: 575.98px) {
  .float-card { padding: .7rem .85rem; }
  .float-card.fc-1 { max-width: 220px; }
  .hero h1 { font-size: 2.3rem; }
}
.mini-calc .result { flex-wrap: wrap; gap: .25rem .75rem; }
.mini-calc .result strong { white-space: nowrap; }

/* Interview portraits are AI illustrations: small caption under the avatar */
.interview-card .avatar { text-align: center; }
.interview-card .avatar .img-caption { display: block; margin-top: .3rem; font-size: .58rem; }
.interview-card .avatar { height: auto; }
.interview-card .avatar img { height: 92px; }
