/* Hero v5 (/hero-next-v5/): words on a clean ground, the photo framed below, product cards on its corners.
   Loaded after hero-cards.css; overrides its card placement. */
.hx.hx-frame { background: radial-gradient(ellipse 60% 55% at 50% 0%, #E4EDFD 0%, rgba(228,237,253,0) 70%), linear-gradient(180deg, #F4F7FD 0%, #FFFFFF 62%); }
.hx-frame .hx-in { min-height: 0; justify-content: flex-start; padding-top: clamp(40px, 4.4vw, 60px); padding-bottom: clamp(64px, 6vw, 88px); }
.hx-frame h1 { font-size: clamp(42px, 4.9vw, 70px); }
.hx-frame .hx-lead { margin-top: 22px; }
.hx-frame .hx-form { margin-top: 34px; }
.hx-frame .hx-ticks { margin-top: 24px; }
.hx-frame .hx-ticks .d-ic { color: var(--green); filter: none; }

/* the framed photo: true colour, no wash */
.hxf-win { position: relative; width: 100%; margin-top: 46px; }
.hxf-photo { position: relative; height: clamp(300px, 31vw, 450px); overflow: hidden; border-radius: 28px; background: #E9E2D6;
  box-shadow: 0 0 0 1px rgba(14,20,48,.06), 0 2px 4px rgba(14,20,48,.04), 0 46px 90px -46px rgba(18,36,90,.55); }
.hxf-photo::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 1px rgba(255,255,255,.25); pointer-events: none; }
.hxf-photo img, .hxf-photo picture { width: 100%; height: 100%; display: block; object-fit: cover; object-position: 50% 40%; aspect-ratio: auto !important; border-radius: 0 !important;
  transform: scale(1.045); transition: transform 1.8s cubic-bezier(.2,.8,.2,1); }
.hc-ready .hxf-photo img { transform: scale(1); }

/* cards on the photo's top corners, half outside it */
.hx-frame .hc-card { position: absolute; }
.hx-frame .hc-price { left: -104px; right: auto; top: -36px; margin: 0; width: 262px; text-align: left; }
.hx-frame .hc-price .hc-route { justify-content: flex-start; }
.hx-frame .hc-check { display: block; left: auto; right: -104px; top: -36px; }

/* no room beside the frame: the price card rests on the photo's bottom edge, the check card goes */
@media (max-width: 1419px) {
  .hx-frame .hc-check { display: none; }
  .hx-frame .hc-price { position: absolute; left: 50%; top: auto; bottom: -58px; width: 300px; margin-left: -150px; text-align: center; }
  .hx-frame .hc-price .hc-route { justify-content: center; }
  .hx-frame .hx-in { padding-bottom: 96px; }
}
@media (max-width: 700px) {
  .hx-frame .hx-in { padding-top: 32px; padding-bottom: 88px; }
  .hxf-win { margin-top: 30px; }
  .hxf-photo { height: 240px; border-radius: 22px; }
  .hx-frame .hc-price { width: 286px; margin-left: -143px; bottom: -54px; padding: 13px 16px 12px; }
  .hx-frame .hc-big { font-size: 25px; }
}
@media (prefers-reduced-motion: reduce) {
  .hxf-photo img { transform: none; transition: none; }
}

/* no photo (default since 2026-10-16): the two cards side by side under the ticks */
.hxf-nophoto { display: flex; justify-content: center; align-items: stretch; gap: 20px; margin-top: 40px; }
.hx-frame .hxf-nophoto .hc-card { position: relative; left: auto; right: auto; top: auto; bottom: auto; margin: 0; display: block; text-align: left; }
.hx-frame .hxf-nophoto .hc-price { width: 272px; }
.hx-frame .hxf-nophoto .hc-check { width: 272px; }
.hx-frame .hxf-nophoto .hc-price .hc-route { justify-content: flex-start; }
.hx-frame .hxf-nophoto .hc-card { box-shadow: 0 0 0 1px rgba(14,20,48,.07), 0 2px 4px rgba(14,20,48,.04), 0 26px 56px -28px rgba(18,36,90,.4); }
.hx-frame:has(.hxf-nophoto) .hx-in { padding-bottom: clamp(56px, 6vw, 84px); }
@media (max-width: 1419px) { .hx-frame .hxf-nophoto .hc-check { display: block; } }
@media (max-width: 700px) {
  .hxf-nophoto { flex-direction: column; align-items: center; gap: 14px; margin-top: 30px; }
  .hx-frame .hxf-nophoto .hc-price, .hx-frame .hxf-nophoto .hc-check { width: min(100%, 340px); margin: 0; }
}

.hx-frame .hxf-nophoto .hc-card { display: flex; flex-direction: column; font-size: 15px; line-height: 1.4; padding: 16px 18px 15px; }
.hx-frame .hxf-nophoto .hc-check { width: 300px; }
.hx-frame .hxf-nophoto .hc-kick { font-size: 11.5px; line-height: 1.3; letter-spacing: .07em; }
.hx-frame .hxf-nophoto .hc-ticks { flex-wrap: nowrap; gap: 5px; }
.hx-frame .hxf-nophoto .hc-ticks li { font-size: 12.5px; padding: 4px 9px 4px 6px; white-space: nowrap; }
.hx-frame .hxf-nophoto .hc-count, .hx-frame .hxf-nophoto .hc-meta { margin-top: auto; }
.hx-frame .hxf-nophoto .hc-count { padding-top: 10px; font-size: 13px; }
.hx-frame .hxf-nophoto .hc-big { margin-bottom: 10px; }
@media (max-width: 700px) {
  .hx-frame .hxf-nophoto .hc-check { width: min(100%, 340px); }
}
.hx-frame .hxf-nophoto .hc-check { width: 322px; }
.hx-frame .hxf-nophoto .hc-ticks { margin-bottom: 2px; }
@media (max-width: 700px) { .hx-frame .hxf-nophoto .hc-check { width: min(100%, 340px); } }

/* the live price line, attached under the search (no photo): one quiet sentence of real data */
.hx-frame .hxf-nophoto { order: 1; margin-top: 16px; }
.hx-frame .hx-ticks { order: 2; }
.hs { display: inline-flex; align-items: center; flex-wrap: wrap; justify-content: center; gap: 6px 12px; margin: 0; padding: 9px 18px 9px 14px;
  border-radius: 999px; background: rgba(255,255,255,.72); box-shadow: inset 0 0 0 1px rgba(14,20,48,.07);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); font-size: 14.5px; line-height: 1.3; color: var(--ink-2); white-space: nowrap;
  opacity: 0; transform: translateY(6px); transition: opacity .6s ease .15s, transform .8s cubic-bezier(.2,.8,.2,1) .15s; }
.hc-ready .hs { opacity: 1; transform: none; }
.hs-live { position: relative; width: 8px; height: 8px; flex: none; border-radius: 50%; background: var(--green); }
.hs-live::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--green); animation: hsPing 2.4s cubic-bezier(.2,.6,.4,1) infinite; }
@keyframes hsPing { 0% { transform: scale(1); opacity: .45; } 75%, 100% { transform: scale(2.8); opacity: 0; } }
.hs-lab { font-weight: 650; color: var(--muted); }
.hs-route { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; color: var(--ink); }
.hs-route svg { color: #9AA3B8; }
.hs-sep { width: 1px; height: 16px; background: var(--line); }
.hs-size { color: var(--muted); }
.hs-range { font-size: 16px; font-weight: 800; letter-spacing: -0.01em; color: var(--ink); font-variant-numeric: tabular-nums; }
.hs-meta { font-size: 13px; color: var(--muted); }
.hs-meta a { color: inherit; text-decoration: underline; text-decoration-color: rgba(92,102,130,.35); text-underline-offset: 3px; }
.hs-meta a:hover { color: var(--blue-d); }
.hs.hc-swap [data-hc] { transition: opacity .25s; }
.hs.hc-swap.out [data-hc] { opacity: 0; }
.hs.is-yours .hs-live, .hs.is-yours .hs-live::after { background: var(--blue); }
@media (max-width: 1100px) { .hs-meta { flex-basis: 100%; text-align: center; } }
@media (max-width: 700px) {
  .hx-frame .hxf-nophoto { margin-top: 14px; }
  .hs { border-radius: 18px; padding: 10px 14px; font-size: 14px; gap: 4px 10px; white-space: normal; }
  .hs-lab { flex-basis: 100%; text-align: center; font-size: 12.5px; }
  .hs-live { display: none; }
  .hs-sep { display: none; }
}
@media (prefers-reduced-motion: reduce) { .hs-live::after { animation: none; } }

/* the line is not a floating card: none of the card placement applies */
.hx-frame .hs.hc-price { position: relative; left: auto; right: auto; top: auto; bottom: auto; width: auto; max-width: 100%; margin: 0; text-align: left; }
.hx-frame:has(.hxf-nophoto) .hx-in { padding-bottom: clamp(36px, 4vw, 56px); }
